PageSourceSearch

https://2b83060.com/_nuxt/entry.DlZO3oqA.js

js 2b83060.com collected 2026-10-09 04:36:18 UTC 2,295,693 bytes, 138 lines download raw bytes

vendor: 10,633 bytes, lines 1-2
1import{S as F2,P as gM,A as IL,a as B2}from"./swiper.ZQMPEWJ1.js";import"./entry.DlZO3oqA.js";(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const s of document.querySelectorAll('link[rel="modulepreload"]'))r(s);new MutationObserver(s=>{for(const i of s)if(i.type==="childList")for(const o of i.addedNodes)o.tagName==="LINK"&&o.rel==="modulepreload"&&r(o)}).observe(document,{childList:!0,subtree:!0});function n(s){const i={};return s.integrity&&(i.integrity=s.integrity),s.referrerPolicy&&(i.referrerPolicy=s.referrerPolicy),s.crossOrigin==="use-credentials"?i.credentials="include":s.crossOrigin==="anonymous"?i.credentials="omit":i.credentials="same-origin",i}function r(s){if(s.ep)return;s.ep=!0;const i=n(s);fetch(s.href,i)}})();function Or(e){const t=Object.create(null);for(const n of e.split(","))t[n]=1;return n=>n in t}const Jt={},Ql=[],Pr=()=>{},Yl=()=>!1,_l=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&(e.charCodeAt(2)>122||e.charCodeAt(2)<97),Sg=e=>e.startsWith("onUpdate:"),Xt=Object.assign,Eg=(e,t)=>{const n=e.indexOf(t);n>-1&&e.splice(n,1)},yM=Object.prototype.hasOwnProperty,an=(e,t)=>yM.call(e,t),dt=Array.isArray,eu=e=>ku(e)==="[object Map]",Sl=e=>ku(e)==="[object Set]",Vx=e=>ku(e)==="[object Date]",LL=e=>ku(e)==="[object RegExp]",Lt=e=>typeof e=="function",Ot=e=>typeof e=="string",ks=e=>typeof e=="symbol",un=e=>e!==null&&typeof e=="object",wg=e=>(un(e)||Lt(e))&&Lt(e.then)&&Lt(e.catch),N2=Object.prototype.toString,ku=e=>N2.call(e),DL=e=>ku(e).slice(8,-1),vh=e=>ku(e)==="[object Object]",Tg=e=>Ot(e)&&e!=="NaN"&&e[0]!=="-"&&""+parseInt(e,10)===e,ya=Or(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),PL=Or("bind,cloak,else-if,else,for,html,if,model,on,once,pre,show,slot,text,memo"),Cg=e=>{const t=Object.create(null);return(n=>t[n]||(t[n]=e(n)))},xM=/-\w/g,Tn=Cg(e=>e.replace(xM,t=>t.slice(1).toUpperCase())),bM=/\B([A-Z])/g,as=Cg(e=>e.replace(bM,"-$1").toLowerCase()),hi=Cg(e=>e.charAt(0).toUpperCase()+e.slice(1)),tu=Cg(e=>e?`on${hi(e)}`:""),is=(e,t)=>!Object.is(e,t),nu=(e,...t)=>{for(let n=0;n<e.length;n++)e[n](...t)},V2=(e,t,n,r=!1)=>{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,writable:r,value:n})},gh=e=>{const t=parseFloat(e);return isNaN(t)?e:t},Cf=e=>{const t=Ot(e)?Number(e):NaN;return isNaN(t)?e:t};let hw;const yh=()=>hw||(hw=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{}),_M=/^[_$a-zA-Z\xA0-\uFFFF][_$a-zA-Z0-9\xA0-\uFFFF]*$/;function SM(e){return _M.test(e)?`__props.${e}`:`__props[${JSON.stringify(e)}]`}function EM(e,t){return e+JSON.stringify(t,(n,r)=>typeof r=="function"?r.toString():r)}const wM={TEXT:1,1:"TEXT",CLASS:2,2:"CLASS",STYLE:4,4:"STYLE",PROPS:8,8:"PROPS",FULL_PROPS:16,16:"FULL_PROPS",NEED_HYDRATION:32,32:"NEED_HYDRATION",STABLE_FRAGMENT:64,64:"STABLE_FRAGMENT",KEYED_FRAGMENT:128,128:"KEYED_FRAGMENT",UNKEYED_FRAGMENT:256,256:"UNKEYED_FRAGMENT",NEED_PATCH:512,512:"NEED_PATCH",DYNAMIC_SLOTS:1024,1024:"DYNAMIC_SLOTS",DEV_ROOT_FRAGMENT:2048,2048:"DEV_ROOT_FRAGMENT",CACHED:-1,"-1":"CACHED",BAIL:-2,"-2":"BAIL"},TM={1:"TEXT",2:"CLASS",4:"STYLE",8:"PROPS",16:"FULL_PROPS",32:"NEED_HYDRATION",64:"STABLE_FRAGMENT",128:"KEYED_FRAGMENT",256:"UNKEYED_FRAGMENT",512:"NEED_PATCH",1024:"DYNAMIC_SLOTS",2048:"DEV_ROOT_FRAGMENT",[-1]:"CACHED",[-2]:"BAIL"},CM={ELEMENT:1,1:"ELEMENT",FUNCTIONAL_COMPONENT:2,2:"FUNCTIONAL_COMPONENT",STATEFUL_COMPONENT:4,4:"STATEFUL_COMPONENT",TEXT_CHILDREN:8,8:"TEXT_CHILDREN",ARRAY_CHILDREN:16,16:"ARRAY_CHILDREN",SLOTS_CHILDREN:32,32:"SLOTS_CHILDREN",TELEPORT:64,64:"TELEPORT",SUSPENSE:128,128:"SUSPENSE",COMPONENT_SHOULD_KEEP_ALIVE:256,256:"COMPONENT_SHOULD_KEEP_ALIVE",COMPONENT_KEPT_ALIVE:512,512:"COMPONENT_KEPT_ALIVE",COMPONENT:6,6:"COMPONENT"},AM={STABLE:1,1:"STABLE",DYNAMIC:2,2:"DYNAMIC",FORWARDED:3,3:"FORWARDED"},kM={1:"STABLE",2:"DYNAMIC",3:"FORWARDED"},IM="Infinity,undefined,NaN,isFinite,isNaN,parseFloat,parseInt,decodeURI,decodeURIComponent,encodeURI,encodeURIComponent,Math,Number,Date,Array,Object,Boolean,String,RegExp,Map,Set,JSON,Intl,BigInt,console,Error,Symbol",U2=Or(IM),LM=U2,pw=2;function RL(e,t=0,n=e.length){if(t=Math.max(0,Math.min(t,e.length)),n=Math.max(0,Math.min(n,e.length)),t>n)return"";let r=e.split(/(\r?\n)/);const s=r.filter((a,l)=>l%2===1);r=r.filter((a,l)=>l%2===0);let i=0;const o=[];for(let a=0;a<r.length;a++)if(i+=r[a].length+(s[a]&&s[a].length||0),i>=t){for(let l=a-pw;l<=a+pw||n>i;l++){if(l<0||l>=r.length)continue;const u=l+1;o.push(`${u}${" ".repeat(Math.max(3-String(u).length,0))}|  ${r[l]}`);const c=r[l].length,d=s[l]&&s[l].length||0;if(l===a){const f=t-(i-(c+d)),h=Math.max(1,n>i?c-f:n-t);o.push("   |  "+" ".repeat(f)+"^".repeat(h))}else if(l>a){if(n>i){const f=Math.max(Math.min(n-i,c),1);o.push("   |  "+"^".repeat(f))}i+=c+d}}break}return o.join(`
2`)}function Qe(e){if(dt(e)){const t={};for(let n=0;n<e.length;n++){const r=e[n],s=Ot(r)?j2(r):Qe(r);if(s)for(const i in s)t[i]=s[i]}return t}else if(Ot(e)||un(e))return e}const DM=/;(?![^(]*\))/g,PM=/:([^]+)/,RM=/\/\*[^]*?\*\//g;function j2(e){const t={};return e.replace(RM,"").split(DM).forEach(n=>{if(n){const r=n.split(PM);r.length>1&&(t[r[0].trim()]=r[1].trim())}}),t}function OM(e){if(!e)return"";if(Ot(e))return e;let t="";for(const n in e){const r=e[n];if(Ot(r)||typeof r=="number"){const s=n.startsWith("--")?n:as(n);t+=`${s}:${r};`}}return t}function Ie(e){let t="";if(Ot(e))t=e;else if(dt(e))for(let n=0;n<e.length;n++){const r=Ie(e[n]);r&&(t+=r+" ")}else if(un(e))for(const n in e)e[n]&&(t+=n+" ");return t.trim()}function Ks(e){if(!e)return null;let{class:t,style:n}=e;return t&&!Ot(t)&&(e.class=Ie(t)),n&&(e.style=Qe(n)),e}const $M="html,body,base,head,link,meta,style,title,address,article,aside,footer,header,hgroup,h1,h2,h3,h4,h5,h6,nav,section,div,dd,dl,dt,figcaption,figure,picture,hr,img,li,main,ol,p,pre,ul,a,b,abbr,bdi,bdo,br,cite,code,data,dfn,em,i,kbd,mark,q,rp,rt,ruby,s,samp,small,span,strong,sub,sup,time,u,var,wbr,area,audio,map,track,video,embed,object,param,source,canvas,script,noscript,del,ins,caption,col,colgroup,table,thead,tbody,td,th,tr,button,datalist,fieldset,form,input,label,legend,meter,optgroup,option,output,progress,select,textarea,details,dialog,menu,summary,template,blockquote,iframe,tfoot",MM="svg,animate,animateMotion,animateTransform,circle,clipPath,color-profile,defs,desc,discard,ellipse,feBlend,feColorMatrix,feComponentTransfer,feComposite,feConvolveMatrix,feDiffuseLighting,feDisplacementMap,feDistantLight,feDropShadow,feFlood,feFuncA,feFuncB,feFuncG,feFuncR,feGaussianBlur,feImage,feMerge,feMergeNode,feMorphology,feOffset,fePointLight,feSpecularLighting,feSpotLight,feTile,feTurbulence,filter,foreignObject,g,hatch,hatchpath,image,line,linearGradient,marker,mask,mesh,meshgradient,meshpatch,meshrow,metadata,mpath,path,pattern,polygon,polyline,radialGradient,rect,set,solidcolor,stop,switch,symbol,text,textPath,title,tspan,unknown,use,view",FM="annotation,annotation-xml,maction,maligngroup,malignmark,math,menclose,merror,mfenced,mfrac,mfraction,mglyph,mi,mlabeledtr,mlongdiv,mmultiscripts,mn,mo,mover,mpadded,mphantom,mprescripts,mroot,mrow,ms,mscarries,mscarry,msgroup,msline,mspace,msqrt,msrow,mstack,mstyle,msub,msubsup,msup,mtable,mtd,mtext,mtr,munder,munderover,none,semantics",BM="area,base,br,col,embed,hr,img,input,link,meta,param,source,track,wbr",OL=Or($M),$L=Or(MM),ML=Or(FM),FL=Or(BM),BL="itemscope,allowfullscreen,formnovalidate,ismap,nomodule,novalidate,readonly",NL=Or(BL),NM=Or(BL+",async,autofocus,autoplay,controls,default,defer,disabled,hidden,inert,loop,open,required,reversed,scoped,seamless,checked,muted,multiple,selected");function z2(e){return!!e||e===""}const VM=/[>/="'\u0009\u000a\u000c\u0020]/,n1={};function UM(e){if(n1.hasOwnProperty(e))return n1[e];const t=VM.test(e);return t&&console.error(`unsafe attribute name: ${e}`),n1[e]=!t}const jM={acceptCharset:"accept-charset",className:"class",htmlFor:"for",httpEquiv:"http-equiv"},zM=Or("accept,accept-charset,accesskey,action,align,allow,alt,async,autocapitalize,autocomplete,autofocus,autoplay,background,bgcolor,border,buffered,capture,challenge,charset,checked,cite,class,code,codebase,color,cols,colspan,content,contenteditable,contextmenu,controls,coords,crossorigin,csp,data,datetime,decoding,default,defer,dir,dirname,disabled,download,draggable,dropzone,enctype,enterkeyhint,for,form,formaction,formenctype,formmethod,formnovalidate,formtarget,headers,height,hidden,high,href,hreflang,http-equiv,icon,id,importance,inert,integrity,ismap,itemprop,keytype,kind,label,lang,language,loading,list,loop,low,manifest,max,maxlength,minlength,media,min,multiple,muted,name,novalidate,open,optimum,pattern,ping,placeholder,poster,preload,radiogroup,readonly,referrerpolicy,rel,required,reversed,rows,rowspan,sandbox,scope,scoped,selected,shape,size,sizes,slot,span,spellcheck,src,srcdoc,srclang,srcset,start,step,style,summary,tabindex,target,title,translate,type,usemap,value,width,wrap"),HM=Or("xmlns,accent-height,accumulate,additive,alignment-baseline,alphabetic,amplitude,arabic-form,ascent,attributeName,attributeType,azimuth,baseFrequency,baseline-shift,baseProfile,bbox,begin,bias,by,calcMode,cap-height,class,clip,clipPathUnits,clip-path,clip-rule,color,color-interpolation,color-interpolation-filters,color-profile,color-rendering,contentScriptType,contentStyleType,crossorigin,cursor,cx,cy,d,decelerate,descent,diffuseConstant,direction,display,divisor,dominant-baseline,dur,dx,dy,edgeMode,elevation,enable-background,end,exponent,fill,fill-opacity,fill-rule,filter,filterRes,filterUnits,flood-color,flood-opacity,font-family,font-size,font-size-adjust,font-stretch,font-style,font-variant,font-weight,format,from,fr,fx,fy,g1,g2,glyph-name,glyph-orientation-horizontal,glyph-orientation-vertical,glyphRef,gradientTransform,gradientUnits,hanging,height,href,hreflang,horiz-adv-x,horiz-origin-x,id,ideographic,image-rendering,in,in2,intercept,k,k1,k2,k3,k4,kernelMatrix,kernelUnitLength,kerning,keyPoints,keySplines,keyTimes,lang,lengthAdjust,letter-spacing,lighting-color,limitingConeAngle,local,marker-end,marker-mid,marker-start,markerHeight,markerUnits,markerWidth,mask,maskContentUnits,maskUnits,mathematical,max,media,method,min,mode,name,numOctaves,offset,opacity,operator,order,orient,orientation,origin,overflow,overline-position,overline-thickness,panose-1,paint-order,path,pathLength,patternContentUnits,patternTransform,patternUnits,ping,pointer-events,points,pointsAtX,pointsAtY,pointsAtZ,preserveAlpha,preserveAspectRatio,primitiveUnits,r,radiu
2s,referrerPolicy,refX,refY,rel,rendering-intent,repeatCount,repeatDur,requiredExtensions,requiredFeatures,restart,result,rotate,rx,ry,scale,seed,shape-rendering,slope,spacing,specularConstant,specularExponent,speed,spreadMethod,startOffset,stdDeviation,stemh,stemv,stitchTiles,stop-color,stop-opacity,strikethrough-position,strikethrough-thickness,string,stroke,stroke-dasharray,stroke-dashoffset,stroke-linecap,stroke-linejoin,stroke-miterlimit,stroke-opacity,stroke-width,style,surfaceScale,systemLanguage,tabindex,tableValues,target,targetX,targetY,text-anchor,text-decoration,text-rendering,textLength,to,transform,transform-origin,type,u1,u2,underline-position,underline-thickness,unicode,unicode-bidi,unicode-range,units-per-em,v-alphabetic,v-hanging,v-ideographic,v-mathematical,values,vector-effect,version,vert-adv-y,vert-origin-x,vert-origin-y,viewBox,viewTarget,visibility,width,widths,word-spacing,writing-mode,x,x-height,x1,x2,xChannelSelector,xlink:actuate,xlink:arcrole,xlink:href,xlink:role,xlink:show,xlink:title,xlink:type,xmlns:xlink,xml:base,xml:lang,xml:space,y,y1,y2,yChannelSelector,z,zoomAndPan"),GM=Or("accent,accentunder,actiontype,align,alignmentscope,altimg,altimg-height,altimg-valign,altimg-width,alttext,bevelled,close,columnsalign,columnlines,columnspan,denomalign,depth,dir,display,displaystyle,encoding,equalcolumns,equalrows,fence,fontstyle,fontweight,form,frame,framespacing,groupalign,height,href,id,indentalign,indentalignfirst,indentalignlast,indentshift,indentshiftfirst,indentshiftlast,indextype,justify,largetop,largeop,lquote,lspace,mathbackground,mathcolor,mathsize,mathvariant,maxsize,minlabelspacing,mode,other,overflow,position,rowalign,rowlines,rowspan,rquote,rspace,scriptlevel,scriptminsize,scriptsizemultiplier,selection,separator,separators,shift,side,src,stackalign,stretchy,subscriptshift,superscriptshift,symmetric,voffset,width,widths,xlink:href,xlink:show,xlink:type,xmlns");function KM(e){if(e==null)return!1;const t=typeof e;return t==="string"||t==="number"||t==="boolean"}const WM=/["'&<>]/;function qM(e){const t=""+e,n=WM.exec(t);if(!n)return t;let r="",s,i,o=0;for(i=n.index;i<t.length;i++){switch(t.charCodeAt(i)){case 34:s="&quot;";break;case 38:s="&amp;";break;case 39:s="&#39;";break;case 60:s="&lt;";break;case 62:s="&gt;";break;default:continue}o!==i&&(r+=t.slice(o,i)),o=i+1,r+=s}return o!==i?r+t.slice(o,i):r}const YM=/^-?>|<!--|-->|--!>|<!-$/g;function XM(e){return e.replace(YM,"")}const VL=/[ !"#$%&'()*+,./:;<=>?@[\\\]^`{|}~]/g;function ZM(e,t){return e.replace(VL,n=>t?n==='"'?'\\\\\\"':`\\\\${n}`:`\\${n}`)}function JM(e,t){if(e.length!==t.length)return!1;let n=!0;for(let r=0;n&&r<e.length;r++)n=wa(e[r],t[r]);return n}function wa(e,t){if(e===t)return!0;let n=Vx(e),r=Vx(t);if(n||r)return n&&r?e.getTime()===t.getTime():!1;if(n=ks(e),r=ks(t),n||r)return e===t;if(n=dt(e),r=dt(t),n||r)return n&&r?JM(e,t):!1;if(n=un(e),r=un(t),n||r){if(!n||!r)return!1;const s=Object.keys(e).length,i=Object.keys(t).length;if(s!==i)return!1;for(const o in e){const a=e.hasOwnProperty(o),l=t.hasOwnProperty(o);if(a&&!l||!a&&l||!wa(e[o],t[o]))return!1}}return String(e)===String(t)}function xh(e,t){return e.findIndex(n=>wa(n,t))}const UL=e=>!!(e&&e.__v_isRef===!0),Z=e=>Ot(e)?e:e==null?"":dt(e)||un(e)&&(e.toString===N2||!Lt(e.toString))?UL(e)?Z(e.value):JSON.stringify(e,jL,2):String(e),jL=(e,t)=>UL(t)?jL(e,t.value):eu(t)?{[`Map(${t.size})`]:[...t.entries()].reduce((n,[r,s],i)=>(n[r1(r,i)+" =>"]=s,n),{})}:Sl(t)?{[`Set(${t.size})`]:[...t.values()].map(n=>r1(n))}:ks(t)?r1(t):un(t)&&!dt(t)&&!vh(t)?String(t):t,r1=(e,t="")=>{var n;return ks(e)?`Symbol(${(n=e.description)!=null?n:t})`:e};function zL(e){return e==null?"initial":typeof e=="string"?e===""?" ":e:String(e)}const QM=Object.freeze(Object.defineProperty({__proto__:null,EMPTY_ARR:Ql,EMPTY_OBJ:Jt,NO:Yl,NOOP:Pr,PatchFlagNames:TM,PatchFlags:wM,ShapeFlags:CM,SlotFlags:AM,camelize:Tn,capitalize:hi,cssVarNameEscapeSymbolsRE:VL,def:V2,escapeHtml:qM,escapeHtmlComment:XM,extend:Xt,genCacheKey:EM,genPropsAccessExp:SM,generateCodeFrame:RL,getEscapedCssVarName:ZM,getGlobalThis:yh,hasChanged:is,hasOwn:an,hyphenate:as,includeBooleanAttr:z2,invokeArrayFns:nu,isArray:dt,isBooleanAttr:NM,isBuiltInDirective:PL,isDate:Vx,isFunction:Lt,isGloballyAllowed:U2,isGloballyWhitelisted:LM,isHTMLTag:OL,isIntegerKey:Tg,isKnownHtmlAttr:zM,isKnownMathMLAttr:GM,isKnownSvgAttr:HM,isMap:eu,isMathMLTag:ML,isModelListener:Sg,isObject:un,isOn:_l,isPlainObject:vh,isPromise:wg,isRegExp:LL,isRenderableAttrValue:KM,isReservedProp:ya,isSSRSafeAttrName:UM,isSVGTag:$L,isSet:Sl,isSpecialBooleanAttr:NL,isString:Ot,isSymbol:ks,isVoidTag:FL,looseEqual:wa,looseIndexOf:xh,looseToNumber:gh,makeMap:Or,normalizeClass:Ie,normalizeCssVarValue:zL,normalizeProps:Ks,normalizeStyle:Qe,objectToString:N2,parseStringStyle:j2,propsToAttrMap:jM,remove:Eg,slotFlagsText:kM,stringifyStyle:OM,toDisplayString:Z,toHandlerKey:tu,toNumber:Cf,toRawType:DL,toTypeString:ku},Symbol.toStringTag,{value:"Module"}));let rs;class H2{constructor(t=!1){this.detached=t,this._active=!0,this._on=0,this.effects=[],this.cleanups=[],this._isPaused=!1,this.parent=rs,!t&&rs&&(this.index=(rs.scopes||(rs.scopes=[])).push(this)-1)}get active(){return this._active}pause(){if(this._active){this._isPaused=!0;let t,n;if(this.scopes)for(t=0,n=this.scopes.length;t<n;t++)this.scopes[t].pause();for(t=0,n=this.effects.length;t<n;t++)this.effects[t].pause()}}resume(){if(this._active&&this._isPaused){this._isPaused=!1;let t,n;if(this.scopes)for(t=0,n=this.scopes.length;t<n;t++)this.scopes[t].resume();for(t=0,n=this.effects.length;t<n;t++)this.effects[t].resume()}}run(t){if(this._active){const n=rs;try{return rs=this,t()}finally{rs=n}}}on(){++this._on===1&&(this.prevScope=rs,rs=this)}off(){this._on>0&&--this._on===0&&(rs=this.prevScope,this.prevScope=void 0)}stop(t){if(this._active){this._active=!1;let n,r;for(n=0,r=this.effects.length;n<r;n++)this.effects[n].stop();for(this.effects.length=0,n=0,r=this.cleanups.length;n<r;n++)this.cleanups[n]();if(this.cleanups.length=0,this.scopes){for(n=0,r=this.scopes.length;n<r;n++)this.scopes[n].stop(!0);this.scopes.length=0}if(!this.detached&&this.parent&&!t){const s=this.parent.scopes.pop();s&&s!==this&&(this.parent.scopes[this.index]=s,s.index=this.index)}this.parent=void 0}}}function fl(e){return new H2(e)}function El(){return rs}function qn(e,t=!1){rs&&rs.cleanups.push(e)}let Rn;const s1=new WeakSet;class Af{constructor(t){this.fn=t,this.deps=void 0,this.depsTail=void 0,this.flags=5,this.next=void 0,this.cleanup=void 0,this.scheduler
vendor: 102,715 bytes, lines 2-4
2=void 0,rs&&rs.active&&rs.effects.push(this)}pause(){this.flags|=64}resume(){this.flags&64&&(this.flags&=-65,s1.has(this)&&(s1.delete(this),this.trigger()))}notify(){this.flags&2&&!(this.flags&32)||this.flags&8||GL(this)}run(){if(!(this.flags&1))return this.fn();this.flags|=2,mw(this),KL(this);const t=Rn,n=ao;Rn=this,ao=!0;try{return this.fn()}finally{WL(this),Rn=t,ao=n,this.flags&=-3}}stop(){if(this.flags&1){for(let t=this.deps;t;t=t.nextDep)W2(t);this.deps=this.depsTail=void 0,mw(this),this.onStop&&this.onStop(),this.flags&=-2}}trigger(){this.flags&64?s1.add(this):this.scheduler?this.scheduler():this.runIfDirty()}runIfDirty(){Ux(this)&&this.run()}get dirty(){return Ux(this)}}let HL=0,af,lf;function GL(e,t=!1){if(e.flags|=8,t){e.next=lf,lf=e;return}e.next=af,af=e}function G2(){HL++}function K2(){if(--HL>0)return;if(lf){let t=lf;for(lf=void 0;t;){const n=t.next;t.next=void 0,t.flags&=-9,t=n}}let e;for(;af;){let t=af;for(af=void 0;t;){const n=t.next;if(t.next=void 0,t.flags&=-9,t.flags&1)try{t.trigger()}catch(r){e||(e=r)}t=n}}if(e)throw e}function KL(e){for(let t=e.deps;t;t=t.nextDep)t.version=-1,t.prevActiveLink=t.dep.activeLink,t.dep.activeLink=t}function WL(e){let t,n=e.depsTail,r=n;for(;r;){const s=r.prevDep;r.version===-1?(r===n&&(n=s),W2(r),eF(r)):t=r,r.dep.activeLink=r.prevActiveLink,r.prevActiveLink=void 0,r=s}e.deps=t,e.depsTail=n}function Ux(e){for(let t=e.deps;t;t=t.nextDep)if(t.dep.version!==t.version||t.dep.computed&&(qL(t.dep.computed)||t.dep.version!==t.version))return!0;return!!e._dirty}function qL(e){if(e.flags&4&&!(e.flags&16)||(e.flags&=-17,e.globalVersion===kf)||(e.globalVersion=kf,!e.isSSR&&e.flags&128&&(!e.deps&&!e._dirty||!Ux(e))))return;e.flags|=2;const t=e.dep,n=Rn,r=ao;Rn=e,ao=!0;try{KL(e);const s=e.fn(e._value);(t.version===0||is(s,e._value))&&(e.flags|=128,e._value=s,t.version++)}catch(s){throw t.version++,s}finally{Rn=n,ao=r,WL(e),e.flags&=-3}}function W2(e,t=!1){const{dep:n,prevSub:r,nextSub:s}=e;if(r&&(r.nextSub=s,e.prevSub=void 0),s&&(s.prevSub=r,e.nextSub=void 0),n.subs===e&&(n.subs=r,!r&&n.computed)){n.computed.flags&=-5;for(let i=n.computed.deps;i;i=i.nextDep)W2(i,!0)}!t&&!--n.sc&&n.map&&n.map.delete(n.key)}function eF(e){const{prevDep:t,nextDep:n}=e;t&&(t.nextDep=n,e.prevDep=void 0),n&&(n.prevDep=t,e.nextDep=void 0)}function tF(e,t){e.effect instanceof Af&&(e=e.effect.fn);const n=new Af(e);t&&Xt(n,t);try{n.run()}catch(s){throw n.stop(),s}const r=n.run.bind(n);return r.effect=n,r}function nF(e){e.effect.stop()}let ao=!0;const YL=[];function Ta(){YL.push(ao),ao=!1}function Ca(){const e=YL.pop();ao=e===void 0?!0:e}function mw(e){const{cleanup:t}=e;if(e.cleanup=void 0,t){const n=Rn;Rn=void 0;try{t()}finally{Rn=n}}}let kf=0;class rF{constructor(t,n){this.sub=t,this.dep=n,this.version=n.version,this.nextDep=this.prevDep=this.nextSub=this.prevSub=this.prevActiveLink=void 0}}class Ag{constructor(t){this.computed=t,this.version=0,this.activeLink=void 0,this.subs=void 0,this.map=void 0,this.key=void 0,this.sc=0,this.__v_skip=!0}track(t){if(!Rn||!ao||Rn===this.computed)return;let n=this.activeLink;if(n===void 0||n.sub!==Rn)n=this.activeLink=new rF(Rn,this),Rn.deps?(n.prevDep=Rn.depsTail,Rn.depsTail.nextDep=n,Rn.depsTail=n):Rn.deps=Rn.depsTail=n,XL(n);else if(n.version===-1&&(n.version=this.version,n.nextDep)){const r=n.nextDep;r.prevDep=n.prevDep,n.prevDep&&(n.prevDep.nextDep=r),n.prevDep=Rn.depsTail,n.nextDep=void 0,Rn.depsTail.nextDep=n,Rn.depsTail=n,Rn.deps===n&&(Rn.deps=r)}return n}trigger(t){this.version++,kf++,this.notify(t)}notify(t){G2();try{for(let n=this.subs;n;n=n.prevSub)n.sub.notify()&&n.sub.dep.notify()}finally{K2()}}}function XL(e){if(e.dep.sc++,e.sub.flags&4){const t=e.dep.computed;if(t&&!e.dep.subs){t.flags|=20;for(let r=t.deps;r;r=r.nextDep)XL(r)}const n=e.dep.subs;n!==e&&(e.prevSub=n,n&&(n.nextSub=e)),e.dep.subs=e}}const Nm=new WeakMap,ru=Symbol(""),jx=Symbol(""),If=Symbol("");function os(e,t,n){if(ao&&Rn){let r=Nm.get(e);r||Nm.set(e,r=new Map);let s=r.get(n);s||(r.set(n,s=new Ag),s.map=r,s.key=n),s.track()}}function ma(e,t,n,r,s,i){const o=Nm.get(e);if(!o){kf++;return}const a=l=>{l&&l.trigger()};if(G2(),t==="clear")o.forEach(a);else{const l=dt(e),u=l&&Tg(n);if(l&&n==="length"){const c=Number(r);o.forEach((d,f)=>{(f==="length"||f===If||!ks(f)&&f>=c)&&a(d)})}else switch((n!==void 0||o.has(void 0))&&a(o.get(n)),u&&a(o.get(If)),t){case"add":l?u&&a(o.get("length")):(a(o.get(ru)),eu(e)&&a(o.get(jx)));break;case"delete":l||(a(o.get(ru)),eu(e)&&a(o.get(jx)));break;case"set":eu(e)&&a(o.get(ru));break}}K2()}function sF(e,t){const n=Nm.get(e);return n&&n.get(t)}function zu(e){const t=yt(e);return t===e?t:(os(t,"iterate",If),li(e)?t:t.map(Hr))}function kg(e){return os(e=yt(e),"iterate",If),e}const iF={__proto__:null,[Symbol.iterator](){return i1(this,Symbol.iterator,Hr)},concat(...e){return zu(this).concat(...e.map(t=>dt(t)?zu(t):t))},entries(){return i1(this,"entries",e=>(e[1]=Hr(e[1]),e))},every(e,t){return Zo(this,"every",e,t,void 0,arguments)},filter(e,t){return Zo(this,"filter",e,t,n=>n.map(Hr),arguments)},find(e,t){return Zo(this,"find",e,t,Hr,arguments)},findIndex(e,t){return Zo(this,"findIndex",e,t,void 0,arguments)},findLast(e,t){return Zo(this,"findLast",e,t,Hr,arguments)},findLastIndex(e,t){return Zo(this,"findLastIndex",e,t,void 0,arguments)},forEach(e,t){return Zo(this,"forEach",e,t,void 0,arguments)},includes(...e){return o1(this,"includes",e)},indexOf(...e){return o1(this,"indexOf",e)},join(e){return zu(this).join(e)},lastIndexOf(...e){return o1(this,"lastIndexOf",e)},map(e,t){return Zo(this,"map",e,t,void 0,arguments)},pop(){return Ld(this,"pop")},push(...e){return Ld(this,"push",e)},reduce(e,...t){return vw(this,"reduce",e,t)},reduceRight(e,...t){return vw(this,"reduceRight",e,t)},shift(){return Ld(this,"shift")},some(e,t){return Zo(this,"some",e,t,void 0,arguments)},splice(...e){return Ld(this,"splice",e)},toReversed(){return zu(this).toReversed()},toSorted(e){return zu(this).toSorted(e)},toSpliced(...e){return zu(this).toSpliced(...e)},unshift(...e){return Ld(this,"unshift",e)},values(){return i1(this,"values",Hr)}};function i1(e,t,n){const r=kg(e),s=r[t]();return r!==e&&!li(e)&&(s._next=s.next,s.next=()=>{const i=s._next();return i.done||(i.value=n(i.value)),i}),s}const oF=Array.prototype;function Zo(e,t,n,r,s,i){const o=kg(e),a=o!==e&&!li(e),l=o[t];if(l!==oF[t]){const d=l.apply(e,i);return a?Hr(d):d}let u=n;o!==e&&(a?u=function(d,f){return n.call(this,Hr(d),f,e)}:n.length>2&&(u=function(d,f){return n.call(this,d,f,e)}));const c=l.call(o,u,r);return a&&s?s(c):c}function vw(e,t,n,r){const s=kg(e);let i=n;return s!==e&&(li(e)?n.length>3&&(i=function(o,a,l){return n.call(this,o,a,l,e)}):i=function(o,a,l){return n.call(this,o,Hr(a),l,e)}),s[t](i,...r)}function o1(e,t,n){const r=yt(e);os(r,"iterate",If);const s=r[t](...n);return(s===-1||s===!1)&&Dg(n[0])?(n[0]=yt(n[0]),r[t](...n)):s}function Ld(e,t,n=[]){Ta(),G2();const r=yt(e)[t].apply(e,n);return K2(),Ca(),r}const aF=Or("__proto__,__v_isRef,__isVue"),ZL=new Set(Object.getOwnPropertyNames(Symbol).filter(e=>e!=="arguments"&&e!=="caller").map(e=>Symbol[e]).filter(ks));function lF(e){ks(e)||(e=String(e));const t=yt(this);return os(t,"has",e),t.hasOwnProperty(e)}class JL{constructor(t=!1,n=!1){this._isReadonly=t,this._isShallow=n}get(t,n,r){if(n==="__v_skip")return t.__v_skip;const s=this._isReadonly,i=this._isShallow;if(n==="__v_isReactive")return!s;if(n==="__v_isReadonly")return s;if(n==="__v_isShallow")return i;if(n==="__v_raw")return r===(s?i?sD:rD:i?nD:tD).get(t)||Object.getPrototypeOf(t)===Object.getPrototypeOf(r)?t:void 0;const o=dt(t);if(!s){let l;if(o&&(l=iF[n]))return l;if(n==="hasOwnProperty")return lF}const a=Reflect.get(t,n,Ce(t)?t:r);if((ks(n)?ZL.has(n):aF(n))||(s||os(t,"get",n),i))return a;if(Ce(a)){const l=o&&Tg(n)?a:a.value;return s&&un(l)?ds(l):l}return un(a)?s?ds(a):Wt(a):a}}class QL extends JL{constructor(t=!1){super(!1,t)}set(t,n,r,s){let i=t[n];if(!this._isShallow){const l=Bo(i);if(!li(r)&&!Bo(r)&&(i=yt(i),r=yt(r)),!dt(t)&&Ce(i)&&!Ce(r))return l||(i.value=r),!0}const o=dt(t)&&Tg(n)?Number(n)<t.length:an(t,n),a=Reflect.set(t,n,r,Ce(t)?t:s);return t===yt(s)&&(o?is(r,i)&&ma(t,"set",n,r):ma(t,"add",n,r)),a}deleteProperty(t,n){const r=an(t,n);t[n];const s=Reflect.deleteProperty(t,n);return s&&r&&ma(t,"delete",n,void 0),s}has(t,n){const r=Reflect.has(t,n);return(!ks(n)||!ZL.has(n))&&os(t,"has",n),r}ownKeys(t){return os(t,"iterate",dt(t)?"length":ru),Reflect.ownKeys(t)}}class eD extends JL{constructor(t=!1){super(!0,t)}set(t,n){return!0}deleteProperty(t,n){return!0}}const uF=new QL,cF=new eD,dF=new QL(!0),fF=new eD(!0),zx=e=>e,c0=e=>Reflect.getPrototypeOf(e);function hF(e,t,n){return function(...r){const s=this.__v_raw,i=yt(s),o=eu(i),a=e==="entries"||e===Symbol.iterator&&o,l=e==="keys"&&o,u=s[e](...r),c=n?zx:t?Vm:Hr;return!t&&os(i,"iterate",l?jx:ru),{next(){const{value:d,done:f}=u.next();return f?{value:d,done:f}:{value:a?[c(d[0]),c(d[1])]:c(d),done:f}},[Symbol.iterator](){return this}}}}function d0(e){return function(...t){return e==="delete"?!1:e==="clear"?void 0:this}}function pF(e,t){const n={get(s){const i=this.__v_raw,o=yt(i),a=yt(s);e||(is(s,a)&&os(o,"get",s),os(o,"get",a));const{has:l}=c0(o),u=t?zx:e?Vm:Hr;if(l.call(o,s))return u(i.get(s));if(l.call(o,a))return u(i.get(a));i!==o&&i.get(s)},get size(){const s=this.__v_raw;return!e&&os(yt(s),"iterate",ru),s.size},has(s){const i=this.__v_raw,o=yt(i),a=yt(s);return e||(is(s,a)&&os(o,"has",s),os(o,"has",a)),s===a?i.has(s):i.has(s)||i.has(a)},forEach(s,i){const o=this,a=o.__v_raw,l=yt(a),u=t?zx:e?Vm:Hr;return!e&&os(l,"iterate",ru),a.forEach((c,d)=>s.call(i,u(c),u(d),o))}};return Xt(n,e?{add:d0("add"),set:d0("set"),delete:d0("delete"),clear:d0("clear")}:{add(s){!t&&!li(s)&&!Bo(s)&&(s=yt(s));const i=yt(this);return c0(i).has.call(i,s)||(i.add(s),ma(i,"add",s,s)),this},set(s,i){!t&&!li(i)&&!Bo(i)&&(i=yt(i));const o=yt(this),{has:a,get:l}=c0(o);let u=a.call(o,s);u||(s=yt(s),u=a.call(o,s));const c=l.call(o,s);return o.set(s,i),u?is(i,c)&&ma(o,"set",s,i):ma(o,"add",s,i),this},delete(s){const i=yt(this),{has:o,get:a}=c0(i);let l=o.call(i,s);l||(s=yt(s),l=o.call(i,s)),a&&a.call(i,s);const u=i.delete(s);return l&&ma(i,"delete",s,void 0),u},clear(){const s=yt(this),i=s.size!==0,o=s.clear();return i&&ma(s,"clear",void 0,void 0),o}}),["keys","values","entries",Symbol.iterator].forEach(s=>{n[s]=hF(s,e,t)}),n}function Ig(e,t){const n=pF(e,t);return(r,s,i)=>s==="__v_isReactive"?!e:s==="__v_isReadonly"?e:s==="__v_raw"?r:Reflect.get(an(n,s)&&s in r?n:r,s,i)}const mF={get:Ig(!1,!1)},vF={get:Ig(!1,!0)},gF={get:Ig(!0,!1)},yF={get:Ig(!0,!0)},tD=new WeakMap,nD=new WeakMap,rD=new WeakMap,sD=new WeakMap;function xF(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function bF(e){return e.__v_skip||!Object.isExtensible(e)?0:xF(DL(e))}function Wt(e){return Bo(e)?e:Lg(e,!1,uF,mF,tD)}function so(e){return Lg(e,!1,dF,vF,nD)}function ds(e){return Lg(e,!0,cF,gF,rD)}function _F(e){return Lg(e,!0,fF,yF,sD)}function Lg(e,t,n,r,s){if(!un(e)||e.__v_raw&&!(t&&e.__v_isReactive))return e;const i=bF(e);if(i===0)return e;const o=s.get(e);if(o)return o;const a=new Proxy(e,i===2?r:n);return s.set(e,a),a}function ll(e){return Bo(e)?ll(e.__v_raw):!!(e&&e.__v_isReactive)}function Bo(e){return!!(e&&e.__v_isReadonly)}function li(e){return!!(e&&e.__v_isShallow)}function Dg(e){return e?!!e.__v_raw:!1}function yt(e){const t=e&&e.__v_raw;return t?yt(t):e}function q2(e){return!an(e,"__v_skip")&&Object.isExtensible(e)&&V2(e,"__v_skip",!0),e}const Hr=e=>un(e)?Wt(e):e,Vm=e=>un(e)?ds(e):e;function Ce(e){return e?e.__v_isRef===!0:!1}function M(e){return iD(e,!1)}function Ze(e){return iD(e,!0)}function iD(e,t){return Ce(e)?e:new SF(e,t)}class SF{constructor(t,n){this.dep=new Ag,this.__v_isRef=!0,this.__v_isShallow=!1,this._rawValue=n?t:yt(t),this._value=n?t:Hr(t),this.__v_isShallow=n}get value(){return this.dep.track(),this._value}set value(t){const n=this._rawValue,r=this.__v_isShallow||li(t)||Bo(t);t=r?t:yt(t),is(t,n)&&(this._rawValue=t,this._value=r?t:Hr(t),this.dep.trigger())}}function EF(e){e.dep&&e.dep.trigger()}function b(e){return Ce(e)?e.value:e}function qr(e){return Lt(e)?e():b(e)}const wF={get:(e,t,n)=>t==="__v_raw"?e:b(Reflect.get(e,t,n)),set:(e,t,n,r)=>{const s=e[t];return Ce(s)&&!Ce(n)?(s.value=n,!0):Reflect.set(e,t,n,r)}};function Y2(e){return ll(e)?e:new Proxy(e,wF)}class TF{constructor(t){this.__v_isRef=!0,this._value=void 0;const n=this.dep=new Ag,{get:r,set:s}=t(n.track.bind(n),n.trigger.bind(n));this._get=r,this._set=s}get value(){return this._value=this._get()}set value(t){this._set(t)}}function X2(e){return new TF(e)}function Pg(e){const t=dt(e)?new Array(e.length):{};for(const n in e)t[n]=oD(e,n);return t}class CF{constructor(t,n,r){this._object=t,this._key=n,this._defaultValue=r,this.__v_isRef=!0,this._value=void 0}get value(){const t=this._object[this._key];return this._value=t===void 0?this._defaultValue:t}set value(t){this._object[this._key]=t}get dep(){return sF(yt(this._object),this._key)}}class AF{constructor(t){this._getter=t,this.__v_isRef=!0,this.__v_isReadonly=!0,this._value=void 0}get value(){return this._value=this._getter()}}function Ae(e,t,n){return Ce(e)?e:Lt(e)?new AF(e):un(e)&&arguments.length>1?oD(e,t,n):M(e)}function oD(e,t,n){const r=e[t];return Ce(r)?r:new CF(e,t,n)}class kF{constructor(t,n,r){this.fn=t,this.setter=n,this._value=void 0,this.dep=new Ag(this),this.__v_isRef=!0,this.deps=void 0,this.depsTail=void 0,this.flags=16,this.globalVersion=kf-1,this.next=void 0,this.effect=this,this.__v_isReadonly=!n,this.isSSR=r}notify(){if(this.flags|=16,!(this.flags&8)&&Rn!==this)return GL(this,!0),!0}get value(){const t=this.dep.track();return qL(this),t&&(t.version=this.dep.version),this._value}set value(t){this.setter&&this.setter(t)}}function IF(e,t,n=!1){let r,s;return Lt(e)?r=e:(r=e.get,s=e.set),new kF(r,s,n)}const LF={GET:"get",HAS:"has",ITERATE:"iterate"},DF={SET:"set",ADD:"add",DELETE:"delete",CLEAR:"clear"},f0={},Um=new WeakMap;let Ha;function PF(){return Ha}function aD(e,t=!1,n=Ha){if(n){let r=Um.get(n);r||Um.set(n,r=[]),r.push(e)}}function RF(e,t,n=Jt){const{immediate:r,deep:s,once:i,scheduler:o,augmentJob:a,call:l}=n,u=_=>s?_:li(_)||s===!1||s===0?va(_,1):va(_);let c,d,f,h,p=!1,m=!1;if(Ce(e)?(d=()=>e.value,p=li(e)):ll(e)?(d=()=>u(e),p=!0):dt(e)?(m=!0,p=e.some(_=>ll(_)||li(_)),d=()=>e.map(_=>{if(Ce(_))return _.value;if(ll(_))return u(_);if(Lt(_))return l?l(_,2):_()})):Lt(e)?t?d=l?()=>l(e,2):e:d=()=>{if(f){Ta();try{f()}finally{Ca()}}const _=Ha;Ha=c;try{return l?l(e,3,[h]):e(h)}finally{Ha=_}}:d=Pr,t&&s){const _=d,E=s===!0?1/0:s;d=()=>va(_(),E)}const v=El(),x=()=>{c.stop(),v&&v.active&&Eg(v.effects,c)};if(i&&t){const _=t;t=(...E)=>{_(...E),x()}}let g=m?new Array(e.length).fill(f0):f0;const y=_=>{if(!(!(c.flags&1)||!c.dirty&&!_))if(t){const E=c.run();if(s||p||(m?E.some((w,T)=>is(w,g[T])):is(E,g))){f&&f();const w=Ha;Ha=c;try{const T=[E,g===f0?void 0:m&&g[0]===f0?[]:g,h];g=E,l?l(t,3,T):t(...T)}finally{Ha=w}}}else c.run()};return a&&a(y),c=new Af(d),c.scheduler=o?()=>o(y,!1):y,h=_=>aD(_,!1,c),f=c.onStop=()=>{const _=Um.get(c);if(_){if(l)l(_,4);else for(const E of _)E();Um.delete(c)}},t?r?y(!0):g=c.run():o?o(y.bind(null,!0),!0):c.run(),x.pause=c.pause.bind(c),x.resume=c.resume.bind(c),x.stop=x,x}function va(e,t=1/0,n){if(t<=0||!un(e)||e.__v_skip||(n=n||new Map,(n.get(e)||0)>=t))return e;if(n.set(e,t),t--,Ce(e))va(e.value,t,n);else if(dt(e))for(let r=0;r<e.length;r++)va(e[r],t,n);else if(Sl(e)||eu(e))e.forEach(r=>{va(r,t,n)});else if(vh(e)){for(const r in e)va(e[r],t,n);for(const r of Object.getOwnPropertySymbols(e))Object.prototype.propertyIsEnumerable.call(e,r)&&va(e[r],t,n)}return e}const lD=[];function OF(e){lD.push(e)}function $F(){lD.pop()}function MF(e,t){}const FF={SETUP_FUNCTION:0,0:"SETUP_FUNCTION",RENDER_FUNCTION:1,1:"RENDER_FUNCTION",NATIVE_EVENT_HANDLER:5,5:"NATIVE_EVENT_HANDLER",COMPONENT_EVENT_HANDLER:6,6:"COMPONENT_EVENT_HANDLER",VNODE_HOOK:7,7:"VNODE_HOOK",DIRECTIVE_HOOK:8,8:"DIRECTIVE_HOOK",TRANSITION_HOOK:9,9:"TRANSITION_HOOK",APP_ERROR_HANDLER:10,10:"APP_ERROR_HANDLER",APP_WARN_HANDLER:11,11:"APP_WARN_HANDLER",FUNCTION_REF:12,12:"FUNCTION_REF",ASYNC_COMPONENT_LOADER:13,13:"ASYNC_COMPONENT_LOADER",SCHEDULER:14,14:"SCHEDULER",COMPONENT_UPDATE:15,15:"COMPONENT_UPDATE",APP_UNMOUNT_CLEANUP:16,16:"APP_UNMOUNT_CLEANUP"},BF={sp:"serverPrefetch hook",bc:"beforeCreate hook",c:"created hook",bm:"beforeMount hook",m:"mounted hook",bu:"beforeUpdate hook",u:"updated",bum:"beforeUnmount hook",um:"unmounted hook",a:"activated hook",da:"deactivated hook",ec:"errorCaptured hook",rtc:"renderTracked hook",rtg:"renderTriggered hook",0:"setup function",1:"render function",2:"watcher getter",3:"watcher callback",4:"watcher cleanup function",5:"native event handler",6:"component event handler",7:"vnode hook",8:"directive hook",9:"transition hook",10:"app errorHandler",11:"app warnHandler",12:"ref function",13:"async component loader",14:"scheduler flush",15:"component update",16:"app unmount cleanup function"};function ed(e,t,n,r){try{return r?e(...r):e()}catch(s){Iu(s,t,n)}}function $i(e,t,n,r){if(Lt(e)){const s=ed(e,t,n,r);return s&&wg(s)&&s.catch(i=>{Iu(i,t,n)}),s}if(dt(e)){const s=[];for(let i=0;i<e.length;i++)s.push($i(e[i],t,n,r));return s}}function Iu(e,t,n,r=!0){const s=t?t.vnode:null,{errorHandler:i,throwUnhandledErrorInProduction:o}=t&&t.appContext.config||Jt;if(t){let a=t.parent;const l=t.proxy,u=`https://vuejs.org/error-reference/#runtime-${n}`;for(;a;){const c=a.ec;if(c){for(let d=0;d<c.length;d++)if(c[d](e,l,u)===!1)return}a=a.parent}if(i){Ta(),ed(i,null,10,[e,l,u]),Ca();return}}NF(e,n,s,r,o)}function NF(e,t,n,r=!0,s=!1){if(s)throw e;console.error(e)}const Ss=[];let bo=-1;const mc=[];let Ga=null,rc=0;const uD=Promise.resolve();let jm=null;function tt(e){const t=jm||uD;return e?t.then(this?e.bind(this):e):t}function VF(e){let t=bo+1,n=Ss.length;for(;t<n;){const r=t+n>>>1,s=Ss[r],i=Df(s);i<e||i===e&&s.flags&2?t=r+1:n=r}return t}function Z2(e){if(!(e.flags&1)){const t=Df(e),n=Ss[Ss.length-1];!n||!(e.flags&2)&&t>=Df(n)?Ss.push(e):Ss.splice(VF(t),0,e),e.flags|=1,cD()}}function cD(){jm||(jm=uD.then(dD))}function Lf(e){dt(e)?mc.push(...e):Ga&&e.id===-1?Ga.splice(rc+1,0,e):e.flags&1||(mc.push(e),e.flags|=1),cD()}function gw(e,t,n=bo+1){for(;n<Ss.length;n++){const r=Ss[n];if(r&&r.flags&2){if(e&&r.id!==e.uid)continue;Ss.splice(n,1),n--,r.flags&4&&(r.flags&=-2),r(),r.flags&4||(r.flags&=-2)}}}function zm(e){if(mc.length){const t=[...new Set(mc)].sort((n,r)=>Df(n)-Df(r));if(mc.length=0,Ga){Ga.push(...t);return}for(Ga=t,rc=0;rc<Ga.length;rc++){const n=Ga[rc];n.flags&4&&(n.flags&=-2),n.flags&8||n(),n.flags&=-2}Ga=null,rc=0}}const Df=e=>e.id==null?e.flags&2?-1:1/0:e.id;function dD(e){try{for(bo=0;bo<Ss.length;bo++){const t=Ss[bo];t&&!(t.flags&8)&&(t.flags&4&&(t.flags&=-2),ed(t,t.i,t.i?15:14),t.flags&4||(t.flags&=-2))}}finally{for(;bo<Ss.length;bo++){const t=Ss[bo];t&&(t.flags&=-2)}bo=-1,Ss.length=0,zm(),jm=null,(Ss.length||mc.length)&&dD()}}let sc,h0=[];function fD(e,t){var n,r;sc=e,sc?(sc.enabled=!0,h0.forEach(({event:s,args:i})=>sc.emit(s,...i)),h0=[]):typeof window<"u"&&window.HTMLElement&&!((r=(n=window.navigator)==null?void 0:n.userAgent)!=null&&r.includes("jsdom"))?((t.__VUE_DEVTOOLS_HOOK_REPLAY__=t.__VUE_DEVTOOLS_HOOK_REPLAY__||[]).push(i=>{fD(i,t)}),setTimeout(()=>{sc||(t.__VUE_DEVTOOLS_HOOK_REPLAY__=null,h0=[])},3e3)):h0=[]}let Wr=null,Rg=null;function Pf(e){const t=Wr;return Wr=e,Rg=e&&e.type.__scopeId||null,t}function UF(e){Rg=e}function jF(){Rg=null}const zF=e=>A;function A(e,t=Wr,n){if(!t||e._n)return e;const r=(...s)=>{r._d&&$f(-1);const i=Pf(t);let o;try{o=e(...s)}finally{Pf(i),r._d&&$f(1)}return o};return r._n=!0,r._c=!0,r._d=!0,r}function pn(e,t){if(Wr===null)return e;const n=Th(Wr),r=e.dirs||(e.dirs=[]);for(let s=0;s<t.length;s++){let[i,o,a,l=Jt]=t[s];i&&(Lt(i)&&(i={mounted:i,updated:i}),i.deep&&va(o),r.push({dir:i,instance:n,value:o,oldValue:void 0,arg:a,modifiers:l}))}return e}function So(e,t,n,r){const s=e.dirs,i=t&&t.dirs;for(let o=0;o<s.length;o++){const a=s[o];i&&(a.oldValue=i[o].value);let l=a.dir[r];l&&(Ta(),$i(l,n,8,[e.el,a,e,t]),Ca())}}const hD=Symbol("_vte"),pD=e=>e.__isTeleport,uf=e=>e&&(e.disabled||e.disabled===""),yw=e=>e&&(e.defer||e.defer===""),xw=e=>typeof SVGElement<"u"&&e instanceof SVGElement,bw=e=>typeof MathMLElement=="function"&&e instanceof MathMLElement,Hx=(e,t)=>{const n=e&&e.to;return Ot(n)?t?t(n):null:n},mD={name:"Teleport",__isTeleport:!0,process(e,t,n,r,s,i,o,a,l,u){const{mc:c,pc:d,pbc:f,o:{insert:h,querySelector:p,createText:m,createComment:v}}=u,x=uf(t.props);let{shapeFlag:g,children:y,dynamicChildren:_}=t;if(e==null){const E=t.el=m(""),w=t.anchor=m("");h(E,n,r),h(w,n,r);const T=(I,k)=>{g&16&&c(y,I,k,s,i,o,a,l)},C=()=>{const I=t.target=Hx(t.props,p),k=vD(I,t,m,h);I&&(o!=="svg"&&xw(I)?o="svg":o!=="mathml"&&bw(I)&&(o="mathml"),s&&s.isCE&&(s.ce._teleportTargets||(s.ce._teleportTargets=new Set)).add(I),x||(T(I,k),vp(t,!1)))};x&&(T(n,w),vp(t,!0)),yw(t.props)?(t.el.__isMounted=!1,xr(()=>{C(),delete t.el.__isMounted},i)):C()}else{if(yw(t.props)&&e.el.__isMounted===!1){xr(()=>{mD.process(e,t,n,r,s,i,o,a,l,u)},i);return}t.el=e.el,t.targetStart=e.targetStart;const E=t.anchor=e.anchor,w=t.target=e.target,T=t.targetAnchor=e.targetAnchor,C=uf(e.props),I=C?n:w,k=C?E:T;if(o==="svg"||xw(w)?o="svg":(o==="mathml"||bw(w))&&(o="mathml"),_?(f(e.dynamicChildren,_,I,s,i,o,a),u_(e,t,!0)):l||d(e,t,I,k,s,i,o,a,!1),x)C?t.props&&e.props&&t.props.to!==e.props.to&&(t.props.to=e.props.to):p0(t,n,E,u,1);else if((t.props&&t.props.to)!==(e.props&&e.props.to)){const $=t.target=Hx(t.props,p);$&&p0(t,$,null,u,0)}else C&&p0(t,w,T,u,1);vp(t,x)}},remove(e,t,n,{um:r,o:{remove:s}},i){const{shapeFlag:o,children:a,anchor:l,targetStart:u,targetAnchor:c,target:d,props:f}=e;if(d&&(s(u),s(c)),i&&s(l),o&16){const h=i||!uf(f);for(let p=0;p<a.length;p++){const m=a[p];r(m,t,n,h,!!m.dynamicChildren)}}},move:p0,hydrate:HF};function p0(e,t,n,{o:{insert:r},m:s},i=2){i===0&&r(e.targetAnchor,t,n);const{el:o,anchor:a,shapeFlag:l,children:u,props:c}=e,d=i===2;if(d&&r(o,t,n),(!d||uf(c))&&l&16)for(let f=0;f<u.length;f++)s(u[f],t,n,2);d&&r(a,t,n)}function HF(e,t,n,r,s,i,{o:{nextSibling:o,parentNode:a,querySelector:l,insert:u,createText:c}},d){function f(m,v,x,g){v.anchor=d(o(m),v,a(m),n,r,s,i),v.targetStart=x,v.targetAnchor=g}const h=t.target=Hx(t.props,l),p=uf(t.props);if(h){const m=h._lpa||h.firstChild;if(t.shapeFlag&16)if(p)f(e,t,m,m&&o(m));else{t.anchor=o(e);let v=m;for(;v;){if(v&&v.nodeType===8){if(v.data==="teleport start anchor")t.targetStart=v;else if(v.data==="teleport anchor"){t.targetAnchor=v,h._lpa=t.targetAnchor&&o(t.targetAnchor);break}}v=o(v)}t.targetAnchor||vD(h,t,c,u),d(m&&o(m),t,h,n,r,s,i)}vp(t,p)}else p&&t.shapeFlag&16&&f(e,t,e,o(e));return t.anchor&&o(t.anchor)}const J2=mD;function vp(e,t){const n=e.ctx;if(n&&n.ut){let r,s;for(t?(r=e.el,s=e.anchor):(r=e.targetStart,s=e.targetAnchor);r&&r!==s;)r.nodeType===1&&r.setAttribute("data-v-owner",n.uid),r=r.nextSibling;n.ut()}}function vD(e,t,n,r){const s=t.targetStart=n(""),i=t.targetAnchor=n("");return s[hD]=i,e&&(r(s,e),r(i,e)),i}const aa=Symbol("_leaveCb"),m0=Symbol("_enterCb");function Q2(){const e={isMounted:!1,isLeaving:!1,isUnmounting:!1,leavingVNodes:new Map};return ft(()=>{e.isMounted=!0}),cn(()=>{e.isUnmounting=!0}),e}const _i=[Function,Array],e_={mode:String,appear:Boolean,persisted:Boolean,onBeforeEnter:_i,onEnter:_i,onAfterEnter:_i,onEnterCancelled:_i,onBeforeLeave:_i,onLeave:_i,onAfterLeave:_i,onLeaveCancelled:_i,onBeforeAppear:_i,onAppear:_i,onAfterAppear:_i,onAppearCancelled:_i},gD=e=>{const t=e.subTree;return t.component?gD(t.component):t},GF={name:"BaseTransition",props:e_,setup(e,{slots:t}){const n=$r(),r=Q2();return()=>{const s=t.default&&Og(t.default(),!0);if(!s||!s.length)return;const i=yD(s),o=yt(e),{mode:a}=o;if(r.isLeaving)return a1(i);const l=_w(i);if(!l)return a1(i);let u=kc(l,o,r,n,d=>u=d);l.type!==tr&&Aa(l,u);let c=n.subTree&&_w(n.subTree);if(c&&c.type!==tr&&!no(c,l)&&gD(n).type!==tr){let d=kc(c,o,r,n);if(Aa(c,d),a==="out-in"&&l.type!==tr)return r.isLeaving=!0,d.afterLeave=()=>{r.isLeaving=!1,n.job.flags&8||n.update(),delete d.afterLeave,c=void 0},a1(i);a==="in-out"&&l.type!==tr?d.delayLeave=(f,h,p)=>{const m=bD(r,c);m[String(c.key)]=c,f[aa]=()=>{h(),f[aa]=void 0,delete u.delayedLeave,c=void 0},u.delayedLeave=()=>{p(),delete u.delayedLeave,c=void 0}}:c=void 0}else c&&(c=void 0);return i}}};function yD(e){let t=e[0];if(e.length>1){for(const n of e)if(n.type!==tr){t=n;break}}return t}const xD=GF;function bD(e,t){const{leavingVNodes:n}=e;let r=n.get(t.type);return r||(r=Object.create(null),n.set(t.type,r)),r}function kc(e,t,n,r,s){const{appear:i,mode:o,persisted:a=!1,onBeforeEnter:l,onEnter:u,onAfterEnter:c,onEnterCancelled:d,onBeforeLeave:f,onLeave:h,onAfterLeave:p,onLeaveCancelled:m,onBeforeAppear:v,onAppear:x,onAfterAppear:g,onAppearCancelled:y}=t,_=String(e.key),E=bD(n,e),w=(I,k)=>{I&&$i(I,r,9,k)},T=(I,k)=>{const $=k[1];w(I,k),dt(I)?I.every(R=>R.length<=1)&&$():I.length<=1&&$()},C={mode:o,persisted:a,beforeEnter(I){let k=l;if(!n.isMounted)if(i)k=v||l;else return;I[aa]&&I[aa](!0);const $=E[_];$&&no(e,$)&&$.el[aa]&&$.el[aa](),w(k,[I])},enter(I){let k=u,$=c,R=d;if(!n.isMounted)if(i)k=x||u,$=g||c,R=y||d;else return;let D=!1;const O=I[m0]=B=>{D||(D=!0,B?w(R,[I]):w($,[I]),C.delayedLeave&&C.delayedLeave(),I[m0]=void 0)};k?T(k,[I,O]):O()},leave(I,k){const $=String(e.key);if(I[m0]&&I[m0](!0),n.isUnmounting)return k();w(f,[I]);let R=!1;const D=I[aa]=O=>{R||(R=!0,k(),O?w(m,[I]):w(p,[I]),I[aa]=void 0,E[$]===e&&delete E[$])};E[$]=e,h?T(h,[I,D]):D()},clone(I){const k=kc(I,t,n,r,s);return s&&s(k),k}};return C}function a1(e){if(bh(e))return e=Bi(e),e.children=null,e}function _w(e){if(!bh(e))return pD(e.type)&&e.children?yD(e.children):e;if(e.component)return e.component.subTree;const{shapeFlag:t,children:n}=e;if(n){if(t&16)return n[0];if(t&32&&Lt(n.default))return n.default()}}function Aa(e,t){e.shapeFlag&6&&e.component?(e.transition=t,Aa(e.component.subTree,t)):e.shapeFlag&128?(e.ssContent.transition=t.clone(e.ssContent),e.ssFallback.transition=t.clone(e.ssFallback)):e.transition=t}function Og(e,t=!1,n){let r=[],s=0;for(let i=0;i<e.length;i++){let o=e[i];const a=n==null?o.key:String(n)+String(o.key!=null?o.key:i);o.type===se?(o.patchFlag&128&&s++,r=r.concat(Og(o.children,t,a))):(t||o.type!==tr)&&r.push(a!=null?Bi(o,{key:a}):o)}if(s>1)for(let i=0;i<r.length;i++)r[i].patchFlag=-2;return r}function ke(e,t){return Lt(e)?Xt({name:e.name},t,{setup:e}):e}function Ds(){const e=$r();return e?(e.appContext.config.idPrefix||"v")+"-"+e.ids[0]+e.ids[1]++:""}function t_(e){e.ids=[e.ids[0]+e.ids[2]+++"-",0,0]}function KF(e){const t=$r(),n=Ze(null);if(t){const s=t.refs===Jt?t.refs={}:t.refs;Object.defineProperty(s,e,{enumerable:!0,get:()=>n.value,set:i=>n.value=i})}return n}const Hm=new WeakMap;function vc(e,t,n,r,s=!1){if(dt(e)){e.forEach((p,m)=>vc(p,t&&(dt(t)?t[m]:t),n,r,s));return}if(ul(r)&&!s){r.shapeFlag&512&&r.type.__asyncResolved&&r.component.subTree.component&&vc(e,t,n,r.component.subTree);return}const i=r.shapeFlag&4?Th(r.component):r.el,o=s?null:i,{i:a,r:l}=e,u=t&&t.r,c=a.refs===Jt?a.refs={}:a.refs,d=a.setupState,f=yt(d),h=d===Jt?Yl:p=>an(f,p);if(u!=null&&u!==l){if(Sw(t),Ot(u))c[u]=null,h(u)&&(d[u]=null);else if(Ce(u)){u.value=null;const p=t;p.k&&(c[p.k]=null)}}if(Lt(l))ed(l,a,12,[o,c]);else{const p=Ot(l),m=Ce(l);if(p||m){const v=()=>{if(e.f){const x=p?h(l)?d[l]:c[l]:l.value;if(s)dt(x)&&Eg(x,i);else if(dt(x))x.includes(i)||x.push(i);else if(p)c[l]=[i],h(l)&&(d[l]=c[l]);else{const g=[i];l.value=g,e.k&&(c[e.k]=g)}}else p?(c[l]=o,h(l)&&(d[l]=o)):m&&(l.value=o,e.k&&(c[e.k]=o))};if(o){const x=()=>{v(),Hm.delete(e)};x.id=-1,Hm.set(e,x),xr(x,n)}else Sw(e),v()}}}function Sw(e){const t=Hm.get(e);t&&(t.flags|=8,Hm.delete(e))}let Ew=!1;const Hu=()=>{Ew||(console.error("Hydration completed but contains mismatches."),Ew=!0)},WF=e=>e.namespaceURI.includes("svg")&&e.tagName!=="foreignObject",qF=e=>e.namespaceURI.includes("MathML"),v0=e=>{if(e.nodeType===1){if(WF(e))return"svg";if(qF(e))return"mathml"}},cc=e=>e.nodeType===8;function YF(e){const{mt:t,p:n,o:{patchProp:r,createText:s,nextSibling:i,parentNode:o,remove:a,insert:l,createComment:u}}=e,c=(y,_)=>{if(!_.hasChildNodes()){n(null,y,_),zm(),_._vnode=y;return}d(_.firstChild,y,null,null,null),zm(),_._vnode=y},d=(y,_,E,w,T,C=!1)=>{C=C||!!_.dynamicChildren;const I=cc(y)&&y.data==="[",k=()=>m(y,_,E,w,T,I),{type:$,ref:R,shapeFlag:D,patchFlag:O}=_;let B=y.nodeType;_.el=y,O===-2&&(C=!1,_.dynamicChildren=null);let U=null;switch($){case xa:B!==3?_.children===""?(l(_.el=s(""),o(y),y),U=y):U=k():(y.data!==_.children&&(Hu(),y.data=_.children),U=i(y));break;case tr:g(y)?(U=i(y),x(_.el=y.content.firstChild,y,E)):B!==8||I?U=k():U=i(y);break;case iu:if(I&&(y=i(y),B=y.nodeType),B===1||B===3){U=y;const N=!_.children.length;for(let V=0;V<_.staticCount;V++)N&&(_.children+=U.nodeType===1?U.outerHTML:U.data),V===_.staticCount-1&&(_.anchor=U),U=i(U);return I?i(U):U}else k();break;case se:I?U=p(y,_,E,w,T,C):U=k();break;default:if(D&1)(B!==1||_.type.toLowerCase()!==y.tagName.toLowerCase())&&!g(y)?U=k():U=f(y,_,E,w,T,C);else if(D&6){_.slotScopeIds=T;const N=o(y);if(I?U=v(y):cc(y)&&y.data==="teleport start"?U=v(y,y.data,"teleport end"):U=i(y),t(_,N,null,E,w,v0(N),C),ul(_)&&!_.type.__asyncResolved){let V;I?(V=S(se),V.anchor=U?U.previousSibling:N.lastChild):V=y.nodeType===3?z(""):S("div"),V.el=y,_.component.subTree=V}}else D&64?B!==8?U=k():U=_.type.hydrate(y,_,E,w,T,C,e,h):D&128&&(U=_.type.hydrate(y,_,E,w,v0(o(y)),T,C,e,d))}return R!=null&&vc(R,null,w,_),U},f=(y,_,E,w,T,C)=>{C=C||!!_.dynamicChildren;const{type:I,props:k,patchFlag:$,shapeFlag:R,dirs:D,transition:O}=_,B=I==="input"||I==="option";if(B||$!==-1){D&&So(_,null,E,"created");let U=!1;if(g(y)){U=UD(null,O)&&E&&E.vnode.props&&E.vnode.props.appear;const V=y.content.firstChild;if(U){const H=V.getAttribute("class");H&&(V.$cls=H),O.beforeEnter(V)}x(V,y,E),_.el=y=V}if(R&16&&!(k&&(k.innerHTML||k.textContent))){let V=h(y.firstChild,_,y,E,w,T,C);for(;V;){g0(y,1)||Hu();const H=V;V=V.nextSibling,a(H)}}else if(R&8){let V=_.children;V[0]===`
3`&&(y.tagName==="PRE"||y.tagName==="TEXTAREA")&&(V=V.slice(1));const{textContent:H}=y;H!==V&&H!==V.replace(/\r\n|\r/g,`
4`)&&(g0(y,0)||Hu(),y.textContent=_.children)}if(k){if(B||!C||$&48){const V=y.tagName.includes("-");for(const H in k)(B&&(H.endsWith("value")||H==="indeterminate")||_l(H)&&!ya(H)||H[0]==="."||V)&&r(y,H,null,k[H],void 0,E)}else if(k.onClick)r(y,"onClick",null,k.onClick,void 0,E);else if($&4&&ll(k.style))for(const V in k.style)k.style[V]}let N;(N=k&&k.onVnodeBeforeMount)&&Bs(N,E,_),D&&So(_,null,E,"beforeMount"),((N=k&&k.onVnodeMounted)||D||U)&&XD(()=>{N&&Bs(N,E,_),U&&O.enter(y),D&&So(_,null,E,"mounted")},w)}return y.nextSibling},h=(y,_,E,w,T,C,I)=>{I=I||!!_.dynamicChildren;const k=_.children,$=k.length;for(let R=0;R<$;R++){const D=I?k[R]:k[R]=Ns(k[R]),O=D.type===xa;y?(O&&!I&&R+1<$&&Ns(k[R+1]).type===xa&&(l(s(y.data.slice(D.children.length)),E,i(y)),y.data=D.children),y=d(y,D,w,T,C,I)):O&&!D.children?l(D.el=s(""),E):(g0(E,1)||Hu(),n(null,D,E,null,w,T,v0(E),C))}return y},p=(y,_,E,w,T,C)=>{const{slotScopeIds:I}=_;I&&(T=T?T.concat(I):I);const k=o(y),$=h(i(y),_,k,E,w,T,C);return $&&cc($)&&$.data==="]"?i(_.anchor=$):(Hu(),l(_.anchor=u("]"),k,$),$)},m=(y,_,E,w,T,C)=>{if(g0(y.parentElement,1)||Hu(),_.el=null,C){const $=v(y);for(;;){const R=i(y);if(R&&R!==$)a(R);else break}}const I=i(y),k=o(y);return a(y),n(null,_,k,I,E,w,v0(k),T),E&&(E.vnode.el=_.el,Fg(E,_.el)),I},v=(y,_="[",E="]")=>{let w=0;for(;y;)if(y=i(y),y&&cc(y)&&(y.data===_&&w++,y.data===E)){if(w===0)return i(y);w--}return y},x=(y,_,E)=>{const w=_.parentNode;w&&w.replaceChild(y,_);let T=E;for(;T;)T.vnode.el===_&&(T.vnode.el=T.subTree.el=y),T=T.parent},g=y=>y.nodeType===1&&y.tagName==="TEMPLATE";return[c,d]}const ww="data-allow-mismatch",XF={0:"text",1:"children",2:"class",3:"style",4:"attribute"};function g0(e,t){if(t===0||t===1)for(;e&&!e.hasAttribute(ww);)e=e.parentElement;const n=e&&e.getAttribute(ww);if(n==null)return!1;if(n==="")return!0;{const r=n.split(",");return t===0&&r.includes("children")?!0:r.includes(XF[t])}}const ZF=yh().requestIdleCallback||(e=>setTimeout(e,1)),JF=yh().cancelIdleCallback||(e=>clearTimeout(e)),QF=(e=1e4)=>t=>{const n=ZF(t,{timeout:e});return()=>JF(n)};function eB(e){const{top:t,left:n,bottom:r,right:s}=e.getBoundingClientRect(),{innerHeight:i,innerWidth:o}=window;return(t>0&&t<i||r>0&&r<i)&&(n>0&&n<o||s>0&&s<o)}const tB=e=>(t,n)=>{const r=new IntersectionObserver(s=>{for(const i of s)if(i.isIntersecting){r.disconnect(),t();break}},e);return n(s=>{if(s instanceof Element){if(eB(s))return t(),r.disconnect(),!1;r.observe(s)}}),()=>r.disconnect()},nB=e=>t=>{if(e){const n=matchMedia(e);if(n.matches)t();else return n.addEventListener("change",t,{once:!0}),()=>n.removeEventListener("change",t)}},rB=(e=[])=>(t,n)=>{Ot(e)&&(e=[e]);let r=!1;const s=o=>{r||(r=!0,i(),t(),o.target.dispatchEvent(new o.constructor(o.type,o)))},i=()=>{n(o=>{for(const a of e)o.removeEventListener(a,s)})};return n(o=>{for(const a of e)o.addEventListener(a,s,{once:!0})}),i};function sB(e,t){if(cc(e)&&e.data==="["){let n=1,r=e.nextSibling;for(;r;){if(r.nodeType===1){if(t(r)===!1)break}else if(cc(r))if(r.data==="]"){if(--n===0)break}else r.data==="["&&n++;r=r.nextSibling}}else t(e)}const ul=e=>!!e.type.__asyncLoader;function Ke(e){Lt(e)&&(e={loader:e});const{loader:t,loadingComponent:n,errorComponent:r,delay:s=200,hydrate:i,timeout:o,suspensible:a=!0,onError:l}=e;let u=null,c,d=0;const f=()=>(d++,u=null,h()),h=()=>{let p;return u||(p=u=t().catch(m=>{if(m=m instanceof Error?m:new Error(String(m)),l)return new Promise((v,x)=>{l(m,()=>v(f()),()=>x(m),d+1)});throw m}).then(m=>p!==u&&u?u:(m&&(m.__esModule||m[Symbol.toStringTag]==="Module")&&(m=m.default),c=m,m)))};return ke({name:"AsyncComponentWrapper",__asyncLoader:h,__asyncHydrate(p,m,v){let x=!1;(m.bu||(m.bu=[])).push(()=>x=!0);const g=()=>{x||v()},y=i?()=>{const _=i(g,E=>sB(p,E));_&&(m.bum||(m.bum=[])).push(_)}:g;c?y():h().then(()=>!m.isUnmounted&&y())},get __asyncResolved(){return c},setup(){const p=Kr;if(t_(p),c)return()=>y0(c,p);const m=y=>{u=null,Iu(y,p,13,!r)};if(a&&p.suspense||Lc)return h().then(y=>()=>y0(y,p)).catch(y=>(m(y),()=>r?S(r,{error:y}):null));const v=M(!1),x=M(),g=M(!!s);return s&&setTimeout(()=>{g.value=!1},s),o!=null&&setTimeout(()=>{if(!v.value&&!x.value){const y=new Error(`Async component timed out after ${o}ms.`);m(y),x.value=y}},o),h().then(()=>{v.value=!0,p.parent&&bh(p.parent.vnode)&&p.parent.update()}).catch(y=>{m(y),x.value=y}),()=>{if(v.value&&c)return y0(c,p);if(x.value&&r)return S(r,{error:x.value});if(n&&!g.value)return y0(n,p)}}})}function y0(e,t){const{ref:n,props:r,children:s,ce:i}=t.vnode,o=S(e,r,s);return o.ref=n,o.ce=i,delete t.vnode.ce,o}const bh=e=>e.type.__isKeepAlive,iB={name:"KeepAlive",__isKeepAlive:!0,props:{include:[String,RegExp,Array],exclude:[String,RegExp,Array],max:[String,Number]},setup(e,{slots:t}){const n=$r(),r=n.ctx;if(!r.renderer)return()=>{const g=t.default&&t.default();return g&&g.length===1?g[0]:g};const s=new Map,i=new Set;let o=null;const a=n.suspense,{renderer:{p:l,m:u,um:c,o:{createElement:d}}}=r,f=d("div");r.activate=(g,y,_,E,w)=>{const T=g.component;u(g,y,_,0,a),l(T.vnode,g,y,_,T,a,E,g.slotScopeIds,w),xr(()=>{T.isDeactivated=!1,T.a&&nu(T.a);const C=g.props&&g.props.onVnodeMounted;C&&Bs(C,T.parent,g)},a)},r.deactivate=g=>{const y=g.component;Km(y.m),Km(y.a),u(g,f,null,1,a),xr(()=>{y.da&&nu(y.da);const _=g.props&&g.props.onVnodeUnmounted;_&&Bs(_,y.parent,g),y.isDeactivated=!0},a)};function h(g){l1(g),c(g,n,a,!0)}function p(g){s.forEach((y,_)=>{const E=tb(y.type);E&&!g(E)&&m(_)})}function m(g){const y=s.get(g);y&&(!o||!no(y,o))?h(y):o&&l1(o),s.delete(g),i.delete(g)}be(()=>[e.include,e.exclude],([g,y])=>{g&&p(_=>qd(g,_)),y&&p(_=>!qd(y,_))},{flush:"post",deep:!0});let v=null;const x=()=>{v!=null&&(Wm(n.subTree.type)?xr(()=>{s.set(v,x0(n.subTree))},n.subTree.suspense):s.set(v,x0(n.subTree)))};return ft(x),Du(x),cn(()=>{s.forEach(g=>{const{subTree:y,suspense:_}=n,E=x0(y);if(g.type===E.type&&g.key===E.key){l1(E);const w=E.component.da;w&&xr(w,_);return}h(g)})}),()=>{if(v=null,!t.default)return o=null;const g=t.default(),y=g[0];if(g.length>1)return o=null,g;if(!Fi(y)||!(y.shapeFlag&4)&&!(y.shapeFlag&128))return o=null,y;let _=x0(y);if(_.type===tr)return o=null,_;const E=_.type,w=tb(ul(_)?_.type.__asyncResolved||{}:E),{include:T,exclude:C,max:I}=e;if(T&&(!w||!qd(T,w))||C&&w&&qd(C,w))return _.shapeFlag&=-257,o=_,y;const k=_.key==null?E:_.key,$=s.get(k);return _.el&&(_=Bi(_),y.shapeFlag&128&&(y.ssContent=_)),v=k,$?(_.el=$.el,_.component=$.component,_.transition&&Aa(_,_.transition),_.shapeFlag|=512,i.delete(k),i.add(k)):(i.add(k),I&&i.size>parseInt(I,10)&&m(i.values().next().value)),_.shapeFlag|=256,o=_,Wm(y.type)?y:_}}},Ic=iB;function qd(e,t){return dt(e)?e.some(n=>qd(n,t)):Ot(e)?e.split(",").includes(t):LL(e)?(e.lastIndex=0,e.test(t)):!1}function zi(e,t){_D(e,"a",t)}function La(e,t){_D(e,"da",t)}function _D(e,t,n=Kr){const r=e.__wdc||(e.__wdc=()=>{let s=n;for(;s;){if(s.isDeactivated)return;s=s.parent}return e()});if($g(t,r,n),n){let s=n.parent;for(;s&&s.parent;)bh(s.parent.vnode)&&oB(r,t,n,s),s=s.parent}}function oB(e,t,n,r){const s=$g(t,e,r,!0);Er(()=>{Eg(r[t],s)},n)}function l1(e){e.shapeFlag&=-257,e.shapeFlag&=-513}function x0(e){return e.shapeFlag&128?e.ssContent:e}function $g(e,t,n=Kr,r=!1){if(n){const s=n[e]||(n[e]=[]),i=t.__weh||(t.__weh=(...o)=>{Ta();const a=pu(n),l=$i(t,n,e,o);return a(),Ca(),l});return r?s.unshift(i):s.push(i),i}}const Da=e=>(t,n=Kr)=>{(!Lc||e==="sp")&&$g(e,(...r)=>t(...r),n)},Lu=Da("bm"),ft=Da("m"),_h=Da("bu"),Du=Da("u"),cn=Da("bum"),Er=Da("um"),SD=Da("sp"),ED=Da("rtg"),wD=Da("rtc");function n_(e,t=Kr){$g("ec",e,t)}const r_="components",aB="directives";function Mi(e,t){return s_(r_,e,!0,t)||e}const TD=Symbol.for("v-ndc");function hl(e){return Ot(e)?s_(r_,e,!1)||e:e||TD}function lB(e){return s_(aB,e)}function s_(e,t,n=!0,r=!1){const s=Wr||Kr;if(s){const i=s.type;if(e===r_){const a=tb(i,!1);if(a&&(a===t||a===Tn(t)||a===hi(Tn(t))))return i}const o=Tw(s[e]||i[e],t)||Tw(s.appContext[e],t);return!o&&r?i:o}}function Tw(e,t){return e&&(e[t]||e[Tn(t)]||e[hi(Tn(t))])}function Fe(e,t,n,r){let s;const i=n&&n[r],o=dt(e);if(o||Ot(e)){const a=o&&ll(e);let l=!1,u=!1;a&&(l=!li(e),u=Bo(e),e=kg(e)),s=new Array(e.length);for(let c=0,d=e.length;c<d;c++)s[c]=t(l?u?Vm(Hr(e[c])):Hr(e[c]):e[c],c,void 0,i&&i[c])}else if(typeof e=="number"){s=new Array(e);for(let a=0;a<e;a++)s[a]=t(a+1,a,void 0,i&&i[a])}else if(un(e))if(e[Symbol.iterator])s=Array.from(e,(a,l)=>t(a,l,void 0,i&&i[l]));else{const a=Object.keys(e);s=new Array(a.length);for(let l=0,u=a.length;l<u;l++){const c=a[l];s[l]=t(e[c],c,l,i&&i[l])}}else s=[];return n&&(n[r]=s),s}function Sh(e,t){for(let n=0;n<t.length;n++){const r=t[n];if(dt(r))for(let s=0;s<r.length;s++)e[r[s].name]=r[s].fn;else r&&(e[r.name]=r.key?(...s)=>{const i=r.fn(...s);return i&&(i.key=r.key),i}:r.fn)}return e}function Ht(e,t,n={},r,s){if(Wr.ce||Wr.parent&&ul(Wr.parent)&&Wr.parent.ce){const u=Object.keys(n).length>0;return t!=="default"&&(n.name=t),P(),q(se,null,[S("slot",n,r&&r())],u?-2:64)}let i=e[t];i&&i._c&&(i._d=!1),P();const o=i&&i_(i(n)),a=n.key||o&&o.key,l=q(se,{key:(a&&!ks(a)?a:`_${t}`)+(!o&&r?"_fb":"")},o||(r?r():[]),o&&e._===1?64:-2);return!s&&l.scopeId&&(l.slotScopeIds=[l.scopeId+"-s"]),i&&i._c&&(i._d=!0),l}function i_(e){return e.some(t=>Fi(t)?!(t.type===tr||t.type===se&&!i_(t.children)):!0)?e:null}function uB(e,t){const n={};for(const r in e)n[t&&/[A-Z]/.test(r)?`on:${r}`:tu(r)]=e[r];return n}const Gx=e=>e?tP(e)?Th(e):Gx(e.parent):null,cf=Xt(Object.create(null),{$:e=>e,$el:e=>e.vnode.el,$data:e=>e.data,$props:e=>e.props,$attrs:e=>e.attrs,$slots:e=>e.slots,$refs:e=>e.refs,$parent:e=>Gx(e.parent),$root:e=>Gx(e.root),$host:e=>e.ce,$emit:e=>e.emit,$options:e=>o_(e),$forceUpdate:e=>e.f||(e.f=()=>{Z2(e.update)}),$nextTick:e=>e.n||(e.n=tt.bind(e.proxy)),$watch:e=>BB.bind(e)}),u1=(e,t)=>e!==Jt&&!e.__isScriptSetup&&an(e,t),Kx={get({_:e},t){if(t==="__v_skip")return!0;const{ctx:n,setupState:r,data:s,props:i,accessCache:o,type:a,appContext:l}=e;let u;if(t[0]!=="$"){const h=o[t];if(h!==void 0)switch(h){case 1:return r[t];case 2:return s[t];case 4:return n[t];case 3:return i[t]}else{if(u1(r,t))return o[t]=1,r[t];if(s!==Jt&&an(s,t))return o[t]=2,s[t];if((u=e.propsOptions[0])&&an(u,t))return o[t]=3,i[t];if(n!==Jt&&an(n,t))return o[t]=4,n[t];Wx&&(o[t]=0)}}const c=cf[t];let d,f;if(c)return t==="$attrs"&&os(e.attrs,"get",""),c(e);if((d=a.__cssModules)&&(d=d[t]))return d;if(n!==Jt&&an(n,t))return o[t]=4,n[t];if(f=l.config.globalProperties,an(f,t))return f[t]},set({_:e},t,n){const{data:r,setupState:s,ctx:i}=e;return u1(s,t)?(s[t]=n,!0):r!==Jt&&an(r,t)?(r[t]=n,!0):an(e.props,t)||t[0]==="$"&&t.slice(1)in e?!1:(i[t]=n,!0)},has({_:{data:e,setupState:t,accessCache:n,ctx:r,appContext:s,propsOptions:i,type:o}},a){let l,u;return!!(n[a]||e!==Jt&&a[0]!=="$"&&an(e,a)||u1(t,a)||(l=i[0])&&an(l,a)||an(r,a)||an(cf,a)||an(s.config.globalProperties,a)||(u=o.__cssModules)&&u[a])},defineProperty(e,t,n){return n.get!=null?e._.accessCache[t]=0:an(n,"value")&&this.set(e,t,n.value,null),Reflect.defineProperty(e,t,n)}},cB=Xt({},Kx,{get(e,t){if(t!==Symbol.unscopables)return Kx.get(e,t,e)},has(e,t){return t[0]!=="_"&&!U2(t)}});function dB(){return null}function fB(){return null}function hB(e){}function pB(e){}function mB(){return null}function vB(){}function gB(e,t){return null}function yB(){return AD().slots}function CD(){return AD().attrs}function AD(e){const t=$r();return t.setupContext||(t.setupContext=sP(t))}function Rf(e){return dt(e)?e.reduce((t,n)=>(t[n]=null,t),{}):e}function xB(e,t){const n=Rf(e);for(const r in t){if(r.startsWith("__skip"))continue;let s=n[r];s?dt(s)||Lt(s)?s=n[r]={type:s,default:t[r]}:s.default=t[r]:s===null&&(s=n[r]={default:t[r]}),s&&t[`__skip_${r}`]&&(s.skipFactory=!0)}return n}function bB(e,t){return!e||!t?e||t:dt(e)&&dt(t)?e.concat(t):Xt({},Rf(e),Rf(t))}function _B(e,t){const n={};for(const r in e)t.includes(r)||Object.defineProperty(n,r,{enumerable:!0,get:()=>e[r]});return n}function SB(e){const t=$r();let n=e();return Jx(),wg(n)&&(n=n.catch(r=>{throw pu(t),r})),[n,()=>pu(t)]}let Wx=!0;function EB(e){const t=o_(e),n=e.proxy,r=e.ctx;Wx=!1,t.beforeCreate&&Cw(t.beforeCreate,e,"bc");const{data:s,computed:i,methods:o,watch:a,provide:l,inject:u,created:c,beforeMount:d,mounted:f,beforeUpdate:h,updated:p,activated:m,deactivated:v,beforeDestroy:x,beforeUnmount:g,destroyed:y,unmounted:_,render:E,renderTracked:w,renderTriggered:T,errorCaptured:C,serverPrefetch:I,expose:k,inheritAttrs:$,components:R,directives:D,filters:O}=t;if(u&&wB(u,r,null),o)for(const N in o){const V=o[N];Lt(V)&&(r[N]=V.bind(n))}if(s){const N=s.call(n,n);un(N)&&(e.data=Wt(N))}if(Wx=!0,i)for(const N in i){const V=i[N],H=Lt(V)?V.bind(n,n):Lt(V.get)?V.get.bind(n,n):Pr,re=!Lt(V)&&Lt(V.set)?V.set.bind(n):Pr,W=F({get:H,set:re});Object.defineProperty(r,N,{enumerable:!0,configurable:!0,get:()=>W.value,set:X=>W.value=X})}if(a)for(const N in a)kD(a[N],r,n,N);if(l){const N=Lt(l)?l.call(n):l;Reflect.ownKeys(N).forEach(V=>{Cn(V,N[V])})}c&&Cw(c,e,"c");function U(N,V){dt(V)?V.forEach(H=>N(H.bind(n))):V&&N(V.bind(n))}if(U(Lu,d),U(ft,f),U(_h,h),U(Du,p),U(zi,m),U(La,v),U(n_,C),U(wD,w),U(ED,T),U(cn,g),U(Er,_),U(SD,I),dt(k))if(k.length){const N=e.exposed||(e.exposed={});k.forEach(V=>{Object.defineProperty(N,V,{get:()=>n[V],set:H=>n[V]=H,enumerable:!0})})}else e.exposed||(e.exposed={});E&&e.render===Pr&&(e.render=E),$!=null&&(e.inheritAttrs=$),R&&(e.components=R),D&&(e.directives=D),I&&t_(e)}function wB(e,t,n=Pr){dt(e)&&(e=qx(e));for(const r in e){const s=e[r];let i;un(s)?"default"in s?i=mt(s.from||r,s.default,!0):i=mt(s.from||r):i=mt(s),Ce(i)?Object.defineProperty(t,r,{enumerable:!0,configurable:!0,get:()=>i.value,set:o=>i.value=o}):t[r]=i}}function Cw(e,t,n){$i(dt(e)?e.map(r=>r.bind(t.proxy)):e.bind(t.proxy),t,n)}function kD(e,t,n,r){let s=r.includes(".")?KD(n,r):()=>n[r];if(Ot(e)){const i=t[e];Lt(i)&&be(s,i)}else if(Lt(e))be(s,e.bind(n));else if(un(e))if(dt(e))e.forEach(i=>kD(i,t,n,r));else{const i=Lt(e.handler)?e.handler.bind(n):t[e.handler];Lt(i)&&be(s,i,e)}}function o_(e){const t=e.type,{mixins:n,extends:r}=t,{mixins:s,optionsCache:i,config:{optionMergeStrategies:o}}=e.appContext,a=i.get(t);let l;return a?l=a:!s.length&&!n&&!r?l=t:(l={},s.length&&s.forEach(u=>Gm(l,u,o,!0)),Gm(l,t,o)),un(t)&&i.set(t,l),l}function Gm(e,t,n,r=!1){const{mixins:s,extends:i}=t;i&&Gm(e,i,n,!0),s&&s.forEach(o=>Gm(e,o,n,!0));for(const o in t)if(!(r&&o==="expose")){const a=TB[o]||n&&n[o];e[o]=a?a(e[o],t[o]):t[o]}return e}const TB={data:Aw,props:kw,emits:kw,methods:Yd,computed:Yd,beforeCreate:ys,created:ys,beforeMount:ys,mounted:ys,beforeUpdate:ys,updated:ys,beforeDestroy:ys,beforeUnmount:ys,destroyed:ys,unmounted:ys,activated:ys,deactivated:ys,errorCaptured:ys,serverPrefetch:ys,components:Yd,directives:Yd,watch:AB,provide:Aw,inject:CB};function Aw(e,t){return t?e?function(){return Xt(Lt(e)?e.call(this,this):e,Lt(t)?t.call(this,this):t)}:t:e}function CB(e,t){return Yd(qx(e),qx(t))}function qx(e){if(dt(e)){const t={};for(let n=0;n<e.length;n++)t[e[n]]=e[n];return t}return e}function ys(e,t){return e?[...new Set([].concat(e,t))]:t}function Yd(e,t){return e?Xt(Object.create(null),e,t):t}function kw(e,t){return e?dt(e)&&dt(t)?[...new Set([...e,...t])]:Xt(Object.create(null),Rf(e),Rf(t??{})):t}function AB(e,t){if(!e)return t;if(!t)return e;const n=Xt(Object.create(null),e);for(const r in t)n[r]=ys(e[r],t[r]);return n}function ID(){return{app:null,config:{isNativeTag:Yl,performance:!1,globalProperties:{},optionMergeStrategies:{},errorHandler:void 0,warnHandler:void 0,compilerOptions:{}},mixins:[],components:{},directives:{},provides:Object.create(null),optionsCache:new WeakMap,propsCache:new WeakMap,emitsCache:new WeakMap}}let kB=0;function IB(e,t){return function(r,s=null){Lt(r)||(r=Xt({},r)),s!=null&&!un(s)&&(s=null);const i=ID(),o=new WeakSet,a=[];let l=!1;const u=i.app={_uid:kB++,_component:r,_props:s,_container:null,_context:i,_instance:null,version:oP,get config(){return i.config},set config(c){},use(c,...d){return o.has(c)||(c&&Lt(c.install)?(o.add(c),c.install(u,...d)):Lt(c)&&(o.add(c),c(u,...d))),u},mixin(c){return i.mixins.includes(c)||i.mixins.push(c),u},component(c,d){return d?(i.components[c]=d,u):i.components[c]},directive(c,d){return d?(i.directives[c]=d,u):i.directives[c]},mount(c,d,f){if(!l){const h=u._ceVNode||S(r,s);return h.appContext=i,f===!0?f="svg":f===!1&&(f=void 0),d&&t?t(h,c):e(h,c,f),l=!0,u._container=c,c.__vue_app__=u,Th(h.component)}},onUnmount(c){a.push(c)},unmount(){l&&($i(a,u._instance,16),e(null,u._container),delete u._container.__vue_app__)},provide(c,d){return i.provides[c]=d,u},runWithContext(c){const d=su;su=u;try{return c()}finally{su=d}}};return u}}let su=null;function Cn(e,t){if(Kr){let n=Kr.provides;const r=Kr.parent&&Kr.parent.provides;r===n&&(n=Kr.provides=Object.create(r)),n[e]=t}}function mt(e,t,n=!1){const r=$r();if(r||su){let s=su?su._context.provides:r?r.parent==null||r.ce?r.vnode.appContext&&r.vnode.appContext.provides:r.parent.provides:void 0;if(s&&e in s)return s[e];if(arguments.length>1)return n&&Lt(t)?t.call(r&&r.proxy):t}}function Eh(){return!!($r()||su)}const LD={},DD=()=>Object.create(LD),PD=e=>Object.getPrototypeOf(e)===LD;function LB(e,t,n,r=!1){const s={},i=DD();e.propsDefaults=Object.create(null),RD(e,t,s,i);for(const o in e.propsOptions[0])o in s||(s[o]=void 0);n?e.props=r?s:so(s):e.type.props?e.props=s:e.props=i,e.attrs=i}function DB(e,t,n,r){const{props:s,attrs:i,vnode:{patchFlag:o}}=e,a=yt(s),[l]=e.propsOptions;let u=!1;if((r||o>0)&&!(o&16)){if(o&8){const c=e.vnode.dynamicProps;for(let d=0;d<c.length;d++){let f=c[d];if(Mg(e.emitsOptions,f))continue;const h=t[f];if(l)if(an(i,f))h!==i[f]&&(i[f]=h,u=!0);else{const p=Tn(f);s[p]=Yx(l,a,p,h,e,!1)}else h!==i[f]&&(i[f]=h,u=!0)}}}else{RD(e,t,s,i)&&(u=!0);let c;for(const d in a)(!t||!an(t,d)&&((c=as(d))===d||!an(t,c)))&&(l?n&&(n[d]!==void 0||n[c]!==void 0)&&(s[d]=Yx(l,a,d,void 0,e,!0)):delete s[d]);if(i!==a)for(const d in i)(!t||!an(t,d))&&(delete i[d],u=!0)}u&&ma(e.attrs,"set","")}function RD(e,t,n,r){const[s,i]=e.propsOptions;let o=!1,a;if(t)for(let l in t){if(ya(l))continue;const u=t[l];let c;s&&an(s,c=Tn(l))?!i||!i.includes(c)?n[c]=u:(a||(a={}))[c]=u:Mg(e.emitsOptions,l)||(!(l in r)||u!==r[l])&&(r[l]=u,o=!0)}if(i){const l=yt(n),u=a||Jt;for(let c=0;c<i.length;c++){const d=i[c];n[d]=Yx(s,l,d,u[d],e,!an(u,d))}}return o}function Yx(e,t,n,r,s,i){const o=e[n];if(o!=null){const a=an(o,"default");if(a&&r===void 0){const l=o.default;if(o.type!==Function&&!o.skipFactory&&Lt(l)){const{propsDefaults:u}=s;if(n in u)r=u[n];else{const c=pu(s);r=u[n]=l.call(null,t),c()}}else r=l;s.ce&&s.ce._setProp(n,r)}o[0]&&(i&&!a?r=!1:o[1]&&(r===""||r===as(n))&&(r=!0))}return r}const PB=new WeakMap;function OD(e,t,n=!1){const r=n?PB:t.propsCache,s=r.get(e);if(s)return s;const i=e.props,o={},a=[];let l=!1;if(!Lt(e)){const c=d=>{l=!0;const[f,h]=OD(d,t,!0);Xt(o,f),h&&a.push(...h)};!n&&t.mixins.length&&t.mixins.forEach(c),e.extends&&c(e.extends),e.mixins&&e.mixins.forEach(c)}if(!i&&!l)return un(e)&&r.set(e,Ql),Ql;if(dt(i))for(let c=0;c<i.length;c++){const d=Tn(i[c]);Iw(d)&&(o[d]=Jt)}else if(i)for(const c in i){const d=Tn(c);if(Iw(d)){const f=i[c],h=o[d]=dt(f)||Lt(f)?{type:f}:Xt({},f),p=h.type;let m=!1,v=!0;if(dt(p))for(let x=0;x<p.length;++x){const g=p[x],y=Lt(g)&&g.name;if(y==="Boolean"){m=!0;break}else y==="String"&&(v=!1)}else m=Lt(p)&&p.name==="Boolean";h[0]=m,h[1]=v,(m||an(h,"default"))&&a.push(d)}}const u=[o,a];return un(e)&&r.set(e,u),u}function Iw(e){return e[0]!=="$"&&!ya(e)}const a_=e=>e==="_"||e==="_ctx"||e==="$stable",l_=e=>dt(e)?e.map(Ns):[Ns(e)],RB=(e,t,n)=>{if(t._n)return t;const r=A((...s)=>l_(t(...s)),n);return r._c=!1,r},$D=(e,t,n)=>{const r=e._ctx;for(const s in e){if(a_(s))continue;const i=e[s];if(Lt(i))t[s]=RB(s,i,r);else if(i!=null){const o=l_(i);t[s]=()=>o}}},MD=(e,t)=>{const n=l_(t);e.slots.default=()=>n},FD=(e,t,n)=>{for(const r in t)(n||!a_(r))&&(e[r]=t[r])},OB=(e,t,n)=>{const r=e.slots=DD();if(e.vnode.shapeFlag&32){const s=t._;s?(FD(r,t,n),n&&V2(r,"_",s,!0)):$D(t,r)}else t&&MD(e,t)},$B=(e,t,n)=>{const{vnode:r,slots:s}=e;let i=!0,o=Jt;if(r.shapeFlag&32){const a=t._;a?n&&a===1?i=!1:FD(s,t,n):(i=!t.$stable,$D(t,s)),o=t}else t&&(MD(e,t),o={default:1});if(i)for(const a in s)!a_(a)&&o[a]==null&&delete s[a]},xr=XD;function BD(e){return VD(e)}function ND(e){return VD(e,YF)}function VD(e,t){const n=yh();n.__VUE__=!0;const{insert:r,remove:s,patchProp:i,createElement:o,createText:a,createComment:l,setText:u,setElementText:c,parentNode:d,nextSibling:f,setScopeId:h=Pr,insertStaticContent:p}=e,m=(J,Y,fe,xe=null,ne=null,ie=null,Le=void 0,we=null,Be=!!Y.dynamicChildren)=>{if(J===Y)return;J&&!no(J,Y)&&(xe=K(J),X(J,ne,ie,!0),J=null),Y.patchFlag===-2&&(Be=!1,Y.dynamicChildren=null);const{type:Pe,ref:qe,shapeFlag:Me}=Y;switch(Pe){case xa:v(J,Y,fe,xe);break;case tr:x(J,Y,fe,xe);break;case iu:J==null&&g(Y,fe,xe,Le);break;case se:R(J,Y,fe,xe,ne,ie,Le,we,Be);break;default:Me&1?E(J,Y,fe,xe,ne,ie,Le,we,Be):Me&6?D(J,Y,fe,xe,ne,ie,Le,we,Be):(Me&64||Me&128)&&Pe.process(J,Y,fe,xe,ne,ie,Le,we,Be,ue)}qe!=null&&ne?vc(qe,J&&J.ref,ie,Y||J,!Y):qe==null&&J&&J.ref!=null&&vc(J.ref,null,ie,J,!0)},v=(J,Y,fe,xe)=>{if(J==null)r(Y.el=a(Y.children),fe,xe);else{const ne=Y.el=J.el;Y.children!==J.children&&u(ne,Y.children)}},x=(J,Y,fe,xe)=>{J==null?r(Y.el=l(Y.children||""),fe,xe):Y.el=J.el},g=(J,Y,fe,xe)=>{[J.el,J.anchor]=p(J.children,Y,fe,xe,J.el,J.anchor)},y=({el:J,anchor:Y},fe,xe)=>{let ne;for(;J&&J!==Y;)ne=f(J),r(J,fe,xe),J=ne;r(Y,fe,xe)},_=({el:J,anchor:Y})=>{let fe;for(;J&&J!==Y;)fe=f(J),s(J),J=fe;s(Y)},E=(J,Y,fe,xe,ne,ie,Le,we,Be)=>{if(Y.type==="svg"?Le="svg":Y.type==="math"&&(Le="mathml"),J==null)w(Y,fe,xe,ne,ie,Le,we,Be);else{const Pe=J.el&&J.el._isVueCE?J.el:null;try{Pe&&Pe._beginPatch(),I(J,Y,ne,ie,Le,we,Be)}finally{Pe&&Pe._endPatch()}}},w=(J,Y,fe,xe,ne,ie,Le,we)=>{let Be,Pe;const{props:qe,shapeFlag:Me,transition:ze,dirs:et}=J;if(Be=J.el=o(J.type,ie,qe&&qe.is,qe),Me&8?c(Be,J.children):Me&16&&C(J.children,Be,null,xe,ne,c1(J,ie),Le,we),et&&So(J,null,xe,"created"),T(Be,J,J.scopeId,Le,xe),qe){for(const ge in qe)ge!=="value"&&!ya(ge)&&i(Be,ge,null,qe[ge],ie,xe);"value"in qe&&i(Be,"value",null,qe.value,ie),(Pe=qe.onVnodeBeforeMount)&&Bs(Pe,xe,J)}et&&So(J,null,xe,"beforeMount");const pe=UD(ne,ze);pe&&ze.beforeEnter(Be),r(Be,Y,fe),((Pe=qe&&qe.onVnodeMounted)||pe||et)&&xr(()=>{Pe&&Bs(Pe,xe,J),pe&&ze.enter(Be),et&&So(J,null,xe,"mounted")},ne)},T=(J,Y,fe,xe,ne)=>{if(fe&&h(J,fe),xe)for(let ie=0;ie<xe.length;ie++)h(J,xe[ie]);if(ne){let ie=ne.subTree;if(Y===ie||Wm(ie.type)&&(ie.ssContent===Y||ie.ssFallback===Y)){const Le=ne.vnode;T(J,Le,Le.scopeId,Le.slotScopeIds,ne.parent)}}},C=(J,Y,fe,xe,ne,ie,Le,we,Be=0)=>{for(let Pe=Be;Pe<J.length;Pe++){const qe=J[Pe]=we?Ka(J[Pe]):Ns(J[Pe]);m(null,qe,Y,fe,xe,ne,ie,Le,we)}},I=(J,Y,fe,xe,ne,ie,Le)=>{const we=Y.el=J.el;let{patchFlag:Be,dynamicChildren:Pe,dirs:qe}=Y;Be|=J.patchFlag&16;const Me=J.props||Jt,ze=Y.props||Jt;let et;if(fe&&Pl(fe,!1),(et=ze.onVnodeBeforeUpdate)&&Bs(et,fe,Y,J),qe&&So(Y,J,fe,"beforeUpdate"),fe&&Pl(fe,!0),(Me.innerHTML&&ze.innerHTML==null||Me.textContent&&ze.textContent==null)&&c(we,""),Pe?k(J.dynamicChildren,Pe,we,fe,xe,c1(Y,ne),ie):Le||V(J,Y,we,null,fe,xe,c1(Y,ne),ie,!1),Be>0){if(Be&16)$(we,Me,ze,fe,ne);else if(Be&2&&Me.class!==ze.class&&i(we,"class",null,ze.class,ne),Be&4&&i(we,"style",Me.style,ze.style,ne),Be&8){const pe=Y.dynamicProps;for(let ge=0;ge<pe.length;ge++){const he=pe[ge],ye=Me[he],me=ze[he];(me!==ye||he==="value")&&i(we,he,ye,me,ne,fe)}}Be&1&&J.children!==Y.children&&c(we,Y.children)}else!Le&&Pe==null&&$(we,Me,ze,fe,ne);((et=ze.onVnodeUpdated)||qe)&&xr(()=>{et&&Bs(et,fe,Y,J),qe&&So(Y,J,fe,"updated")},xe)},k=(J,Y,fe,xe,ne,ie,Le)=>{for(let we=0;we<Y.length;we++){const Be=J[we],Pe=Y[we],qe=Be.el&&(Be.type===se||!no(Be,Pe)||Be.shapeFlag&198)?d(Be.el):fe;m(Be,Pe,qe,null,xe,ne,ie,Le,!0)}},$=(J,Y,fe,xe,ne)=>{if(Y!==fe){if(Y!==Jt)for(const ie in Y)!ya(ie)&&!(ie in fe)&&i(J,ie,Y[ie],null,ne,xe);for(const ie in fe){if(ya(ie))continue;const Le=fe[ie],we=Y[ie];Le!==we&&ie!=="value"&&i(J,ie,we,Le,ne,xe)}"value"in fe&&i(J,"value",Y.value,fe.value,ne)}},R=(J,Y,fe,xe,ne,ie,Le,we,Be)=>{const Pe=Y.el=J?J.el:a(""),qe=Y.anchor=J?J.anchor:a("");let{patchFlag:Me,dynamicChildren:ze,slotScopeIds:et}=Y;et&&(we=we?we.concat(et):et),J==null?(r(Pe,fe,xe),r(qe,fe,xe),C(Y.children||[],fe,qe,ne,ie,Le,we,Be)):Me>0&&Me&64&&ze&&J.dynamicChildren?(k(J.dynamicChildren,ze,fe,ne,ie,Le,we),(Y.key!=null||ne&&Y===ne.subTree)&&u_(J,Y,!0)):V(J,Y,fe,qe,ne,ie,Le,we,Be)},D=(J,Y,fe,xe,ne,ie,Le,we,Be)=>{Y.slotScopeIds=we,J==null?Y.shapeFlag&512?ne.ctx.activate(Y,fe,xe,Le,Be):O(Y,fe,xe,ne,ie,Le,Be):B(J,Y,Be)},O=(J,Y,fe,xe,ne,ie,Le)=>{const we=J.component=eP(J,xe,ne);if(bh(J)&&(we.ctx.renderer=ue),nP(we,!1,Le),we.asyncDep){if(ne&&ne.registerDep(we,U,Le),!J.el){const Be=we.subTree=S(tr);x(null,Be,Y,fe),J.placeholder=Be.el}}else U(we,J,Y,fe,ne,ie,Le)},B=(J,Y,fe)=>{const xe=Y.component=J.component;if(HB(J,Y,fe))if(xe.asyncDep&&!xe.asyncResolved){N(xe,Y,fe);return}else xe.next=Y,xe.update();else Y.el=J.el,xe.vnode=Y},U=(J,Y,fe,xe,ne,ie,Le)=>{const we=()=>{if(J.isMounted){let{next:Me,bu:ze,u:et,parent:pe,vnode:ge}=J;{const Je=jD(J);if(Je){Me&&(Me.el=ge.el,N(J,Me,Le)),Je.asyncDep.then(()=>{J.isUnmounted||we()});return}}let he=Me,ye;Pl(J,!1),Me?(Me.el=ge.el,N(J,Me,Le)):Me=ge,ze&&nu(ze),(ye=Me.props&&Me.props.onVnodeBeforeUpdate)&&Bs(ye,pe,Me,ge),Pl(J,!0);const me=gp(J),Ne=J.subTree;J.subTree=me,m(Ne,me,d(Ne.el),K(Ne),J,ne,ie),Me.el=me.el,he===null&&Fg(J,me.el),et&&xr(et,ne),(ye=Me.props&&Me.props.onVnodeUpdated)&&xr(()=>Bs(ye,pe,Me,ge),ne)}else{let Me;const{el:ze,props:et}=Y,{bm:pe,m:ge,parent:he,root:ye,type:me}=J,Ne=ul(Y);if(Pl(J,!1),pe&&nu(pe),!Ne&&(Me=et&&et.onVnodeBeforeMount)&&Bs(Me,he,Y),Pl(J,!0),ze&&_e){const Je=()=>{J.subTree=gp(J),_e(ze,J.subTree,J,ne,null)};Ne&&me.__asyncHydrate?me.__asyncHydrate(ze,J,Je):Je()}else{ye.ce&&ye.ce._def.shadowRoot!==!1&&ye.ce._injectChildStyle(me);const Je=J.subTree=gp(J);m(null,Je,fe,xe,J,ne,ie),Y.el=Je.el}if(ge&&xr(ge,ne),!Ne&&(Me=et&&et.onVnodeMounted)){const Je=Y;xr(()=>Bs(Me,he,Je),ne)}(Y.shapeFlag&256||he&&ul(he.vnode)&&he.vnode.shapeFlag&256)&&J.a&&xr(J.a,ne),J.isMounted=!0,Y=fe=xe=null}};J.scope.on();const Be=J.effect=new Af(we);J.scope.off();const Pe=J.update=Be.run.bind(Be),qe=J.job=Be.runIfDirty.bind(Be);qe.i=J,qe.id=J.uid,Be.scheduler=()=>Z2(qe),Pl(J,!0),Pe()},N=(J,Y,fe)=>{Y.component=J;const xe=J.vnode.props;J.vnode=Y,J.next=null,DB(J,Y.props,xe,fe),$B(J,Y.children,fe),Ta(),gw(J),Ca()},V=(J,Y,fe,xe,ne,ie,Le,we,Be=!1)=>{const Pe=J&&J.children,qe=J?J.shapeFlag:0,Me=Y.children,{patchFlag:ze,shapeFlag:et}=Y;if(ze>0){if(ze&128){re(Pe,Me,fe,xe,ne,ie,Le,we,Be);return}else if(ze&256){H(Pe,Me,fe,xe,ne,ie,Le,we,Be);return}}et&8?(qe&16&&oe(Pe,ne,ie),Me!==Pe&&c(fe,Me)):qe&16?et&16?re(Pe,Me,fe,xe,ne,ie,Le,we,Be):oe(Pe,ne,ie,!0):(qe&8&&c(fe,""),et&16&&C(Me,fe,xe,ne,ie,Le,we,Be))},H=(J,Y,fe,xe,ne,ie,Le,we,Be)=>{J=J||Ql,Y=Y||Ql;const Pe=J.length,qe=Y.length,Me=Math.min(Pe,qe);let ze;for(ze=0;ze<Me;ze++){const et=Y[ze]=Be?Ka(Y[ze]):Ns(Y[ze]);m(J[ze],et,fe,null,ne,ie,Le,we,Be)}Pe>qe?oe(J,ne,ie,!0,!1,Me):C(Y,fe,xe,ne,ie,Le,we,Be,Me)},re=(J,Y,fe,xe,ne,ie,Le,we,Be)=>{let Pe=0;const qe=Y.length;let Me=J.length-1,ze=qe-1;for(;Pe<=Me&&Pe<=ze;){const et=J[Pe],pe=Y[Pe]=Be?Ka(Y[Pe]):Ns(Y[Pe]);if(no(et,pe))m(et,pe,fe,null,ne,ie,Le,we,Be);else break;Pe++}for(;Pe<=Me&&Pe<=ze;){const et=J[Me],pe=Y[ze]=Be?Ka(Y[ze]):Ns(Y[ze]);if(no(et,pe))m(et,pe,fe,null,ne,ie,Le,we,Be);else break;Me--,ze--}if(Pe>Me){if(Pe<=ze){const et=ze+1,pe=et<qe?Y[et].el:xe;for(;Pe<=ze;)m(null,Y[Pe]=Be?Ka(Y[Pe]):Ns(Y[Pe]),fe,pe,ne,ie,Le,we,Be),Pe++}}else if(Pe>ze)for(;Pe<=Me;)X(J[Pe],ne,ie,!0),Pe++;else{const et=Pe,pe=Pe,ge=new Map;for(Pe=pe;Pe<=ze;Pe++){const ot=Y[Pe]=Be?Ka(Y[Pe]):Ns(Y[Pe]);ot.key!=null&&ge.set(ot.key,Pe)}let he,ye=0;const me=ze-pe+1;let Ne=!1,Je=0;const Oe=new Array(me);for(Pe=0;Pe<me;Pe++)Oe[Pe]=0;for(Pe=et;Pe<=Me;Pe++){const ot=J[Pe];if(ye>=me){X(ot,ne,ie,!0);continue}let rt;if(ot.key!=null)rt=ge.get(ot.key);else for(he=pe;he<=ze;he++)if(Oe[he-pe]===0&&no(ot,Y[he])){rt=he;break}rt===void 0?X(ot,ne,ie,!0):(Oe[rt-pe]=Pe+1,rt>=Je?Je=rt:Ne=!0,m(ot,Y[rt],fe,null,ne,ie,Le,we,Be),ye++)}const Ye=Ne?MB(Oe):Ql;for(he=Ye.length-1,Pe=me-1;Pe>=0;Pe--){const ot=pe+Pe,rt=Y[ot],ct=Y[ot+1],Se=ot+1<qe?ct.el||ct.placeholder:xe;Oe[Pe]===0?m(null,rt,fe,Se,ne,ie,Le,we,Be):Ne&&(he<0||Pe!==Ye[he]?W(rt,fe,Se,2):he--)}}},W=(J,Y,fe,xe,ne=null)=>{const{el:ie,type:Le,transition:we,children:Be,shapeFlag:Pe}=J;if(Pe&6){W(J.component.subTree,Y,fe,xe);return}if(Pe&128){J.suspense.move(Y,fe,xe);return}if(Pe&64){Le.move(J,Y,fe,ue);return}if(Le===se){r(ie,Y,fe);for(let Me=0;Me<Be.length;Me++)W(Be[Me],Y,fe,xe);r(J.anchor,Y,fe);return}if(Le===iu){y(J,Y,fe);return}if(xe!==2&&Pe&1&&we)if(xe===0)we.beforeEnter(ie),r(ie,Y,fe),xr(()=>we.enter(ie),ne);else{const{leave:Me,delayLeave:ze,afterLeave:et}=we,pe=()=>{J.ctx.isUnmounted?s(ie):r(ie,Y,fe)},ge=()=>{ie._isLeaving&&ie[aa](!0),Me(ie,()=>{pe(),et&&et()})};ze?ze(ie,pe,ge):ge()}else r(ie,Y,fe)},X=(J,Y,fe,xe=!1,ne=!1)=>{const{type:ie,props:Le,ref:we,children:Be,dynamicChildren:Pe,shapeFlag:qe,patchFlag:Me,dirs:ze,cacheIndex:et}=J;if(Me===-2&&(ne=!1),we!=null&&(Ta(),vc(we,null,fe,J,!0),Ca()),et!=null&&(Y.renderCache[et]=void 0),qe&256){Y.ctx.deactivate(J);return}const pe=qe&1&&ze,ge=!ul(J);let he;if(ge&&(he=Le&&Le.onVnodeBeforeUnmount)&&Bs(he,Y,J),qe&6)ve(J.component,fe,xe);else{if(qe&128){J.suspense.unmount(fe,xe);return}pe&&So(J,null,Y,"beforeUnmount"),qe&64?J.type.remove(J,Y,fe,ue,xe):Pe&&!Pe.hasOnce&&(ie!==se||Me>0&&Me&64)?oe(Pe,Y,fe,!1,!0):(ie===se&&Me&384||!ne&&qe&16)&&oe(Be,Y,fe),xe&&Q(J)}(ge&&(he=Le&&Le.onVnodeUnmounted)||pe)&&xr(()=>{he&&Bs(he,Y,J),pe&&So(J,null,Y,"unmounted")},fe)},Q=J=>{const{type:Y,el:fe,anchor:xe,transition:ne}=J;if(Y===se){le(fe,xe);return}if(Y===iu){_(J);return}const ie=()=>{s(fe),ne&&!ne.persisted&&ne.afterLeave&&ne.afterLeave()};if(J.shapeFlag&1&&ne&&!ne.persisted){const{leave:Le,delayLeave:we}=ne,Be=()=>Le(fe,ie);we?we(J.el,ie,Be):Be()}else ie()},le=(J,Y)=>{let fe;for(;J!==Y;)fe=f(J),s(J),J=fe;s(Y)},ve=(J,Y,fe)=>{const{bum:xe,scope:ne,job:ie,subTree:Le,um:we,m:Be,a:Pe}=J;Km(Be),Km(Pe),xe&&nu(xe),ne.stop(),ie&&(ie.flags|=8,X(Le,J,Y,fe)),we&&xr(we,Y),xr(()=>{J.isUnmounted=!0},Y)},oe=(J,Y,fe,xe=!1,ne=!1,ie=0)=>{for(let Le=ie;Le<J.length;Le++)X(J[Le],Y,fe,xe,ne)},K=J=>{if(J.shapeFlag&6)return K(J.component.subTree);if(J.shapeFlag&128)return J.suspense.next();const Y=f(J.anchor||J.el),fe=Y&&Y[hD];return fe?f(fe):Y};let ee=!1;const ae=(J,Y,fe)=>{J==null?Y._vnode&&X(Y._vnode,null,null,!0):m(Y._vnode||null,J,Y,null,null,null,fe),Y._vnode=J,ee||(ee=!0,gw(),zm(),ee=!1)},ue={p:m,um:X,m:W,r:Q,mt:O,mc:C,pc:V,pbc:k,n:K,o:e};let Ee,_e;return t&&([Ee,_e]=t(ue)),{render:ae,hydrate:Ee,createApp:IB(ae,Ee)}}function c1({type:e,props:t},n){return n==="svg"&&e==="foreignObject"||n==="mathml"&&e==="annotation-xml"&&t&&t.encoding&&t.encoding.includes("html")?void 0:n}function Pl({effect:e,job:t},n){n?(e.flags|=32,t.flags|=4):(e.flags&=-33,t.flags&=-5)}function UD(e,t){return(!e||e&&!e.pendingBranch)&&t&&!t.persisted}function u_(e,t,n=!1){const r=e.children,s=t.children;if(dt(r)&&dt(s))for(let i=0;i<r.length;i++){const o=r[i];let a=s[i];a.shapeFlag&1&&!a.dynamicChildren&&((a.patchFlag<=0||a.patchFlag===32)&&(a=s[i]=Ka(s[i]),a.el=o.el),!n&&a.patchFlag!==-2&&u_(o,a)),a.type===xa&&a.patchFlag!==-1&&(a.el=o.el),a.type===tr&&!a.el&&(a.el=o.el)}}function MB(e){const t=e.slice(),n=[0];let r,s,i,o,a;const l=e.length;for(r=0;r<l;r++){const u=e[r];if(u!==0){if(s=n[n.length-1],e[s]<u){t[r]=s,n.push(r);continue}for(i=0,o=n.length-1;i<o;)a=i+o>>1,e[n[a]]<u?i=a+1:o=a;u<e[n[i]]&&(i>0&&(t[r]=n[i-1]),n[i]=r)}}for(i=n.length,o=n[i-1];i-- >0;)n[i]=o,o=t[o];return n}function jD(e){const t=e.subTree.component;if(t)return t.asyncDep&&!t.asyncResolved?t:jD(t)}function Km(e){if(e)for(let t=0;t<e.length;t++)e[t].flags|=8}const zD=Symbol.for("v-scx"),HD=()=>mt(zD);function zn(e,t){return wh(e,null,t)}function FB(e,t){return wh(e,null,{flush:"post"})}function GD(e,t){return wh(e,null,{flush:"sync"})}function be(e,t,n){return wh(e,t,n)}function wh(e,t,n=Jt){const{immediate:r,deep:s,flush:i,once:o}=n,a=Xt({},n),l=t&&r||!t&&i!=="post";let u;if(Lc){if(i==="sync"){const h=HD();u=h.__watcherHandles||(h.__watcherHandles=[])}else if(!l){const h=()=>{};return h.stop=Pr,h.resume=Pr,h.pause=Pr,h}}const c=Kr;a.call=(h,p,m)=>$i(h,c,p,m);let d=!1;i==="post"?a.scheduler=h=>{xr(h,c&&c.suspense)}:i!=="sync"&&(d=!0,a.scheduler=(h,p)=>{p?h():Z2(h)}),a.augmentJob=h=>{t&&(h.flags|=4),d&&(h.flags|=2,c&&(h.id=c.uid,h.i=c))};const f=RF(e,t,a);return Lc&&(u?u.push(f):l&&f()),f}function BB(e,t,n){const r=this.proxy,s=Ot(e)?e.includes(".")?KD(r,e):()=>r[e]:e.bind(r,r);let i;Lt(t)?i=t:(i=t.handler,n=t);const o=pu(this),a=wh(s,i.bind(r),n);return o(),a}function KD(e,t){const n=t.split(".");return()=>{let r=e;for(let s=0;s<n.length&&r;s++)r=r[n[s]];return r}}function Xd(e,t,n=Jt){const r=$r(),s=Tn(t),i=as(t),o=WD(e,s),a=X2((l,u)=>{let c,d=Jt,f;return GD(()=>{const h=e[s];is(c,h)&&(c=h,u())}),{get(){return l(),n.get?n.get(c):c},set(h){const p=n.set?n.set(h):h;if(!is(p,c)&&!(d!==Jt&&is(h,d)))return;const m=r.vnode.props;m&&(t in m||s in m||i in m)&&(`onUpdate:${t}`in m||`onUpdate:${s}`in m||`onUpdate:${i}`in m)||(c=h,u()),r.emit(`update:${t}`,p),is(h,p)&&is(h,d)&&!is(p,f)&&u(),d=h,f=p}}});return a[Symbol.iterator]=()=>{let l=0;return{next(){return l<2?{value:l++?o||Jt:a,done:!1}:{done:!0}}}},a}const WD=(e,t)=>t==="modelValue"||t==="model-value"?e.modelModifiers:e[`${t}Modifiers`]||e[`${Tn(t)}Modifiers`]||e[`${as(t)}Modifiers`];function NB(e,t,...n){if(e.isUnmounted)return;const r=e.vnode.props||Jt;let s=n;const i=t.startsWith("update:"),o=i&&WD(r,t.slice(7));o&&(o.trim&&(s=n.map(c=>Ot(c)?c.trim():c)),o.number&&(s=n.map(gh)));let a,l=r[a=tu(t)]||r[a=tu(Tn(t))];!l&&i&&(l=r[a=tu(as(t))]),l&&$i(l,e,6,s);const u=r[a+"Once"];if(u){if(!e.emitted)e.emitted={};else if(e.emitted[a])return;e.emitted[a]=!0,$i(u,e,6,s)}}const VB=new WeakMap;function qD(e,t,n=!1){const r=n?VB:t.emitsCache,s=r.get(e);if(s!==void 0)return s;const i=e.emits;let o={},a=!1;if(!Lt(e)){const l=u=>{const c=qD(u,t,!0);c&&(a=!0,Xt(o,c))};!n&&t.mixins.length&&t.mixins.forEach(l),e.extends&&l(e.extends),e.mixins&&e.mixins.forEach(l)}return!i&&!a?(un(e)&&r.set(e,null),null):(dt(i)?i.forEach(l=>o[l]=null):Xt(o,i),un(e)&&r.set(e,o),o)}function Mg(e,t){return!e||!_l(t)?!1:(t=t.slice(2).replace(/Once$/,""),an(e,t[0].toLowerCase()+t.slice(1))||an(e,as(t))||an(e,t))}function gp(e){const{type:t,vnode:n,proxy:r,withProxy:s,propsOptions:[i],slots:o,attrs:a,emit:l,render:u,renderCache:c,props:d,data:f,setupState:h,ctx:p,inheritAttrs:m}=e,v=Pf(e);let x,g;try{if(n.shapeFlag&4){const _=s||r,E=_;x=Ns(u.call(E,_,c,d,h,f,p)),g=a}else{const _=t;x=Ns(_.length>1?_(d,{attrs:a,slots:o,emit:l}):_(d,null)),g=t.props?a:jB(a)}}catch(_){df.length=0,Iu(_,e,1),x=S(tr)}let y=x;if(g&&m!==!1){const _=Object.keys(g),{shapeFlag:E}=y;_.length&&E&7&&(i&&_.some(Sg)&&(g=zB(g,i)),y=Bi(y,g,!1,!0))}return n.dirs&&(y=Bi(y,null,!1,!0),y.dirs=y.dirs?y.dirs.concat(n.dirs):n.dirs),n.transition&&Aa(y,n.transition),x=y,Pf(v),x}function UB(e,t=!0){let n;for(let r=0;r<e.length;r++){const s=e[r];if(Fi(s)){if(s.type!==tr||s.children==="v-if"){if(n)return;n=s}}else return}return n}const jB=e=>{let t;for(const n in e)(n==="class"||n==="style"||_l(n))&&((t||(t={}))[n]=e[n]);return t},zB=(e,t)=>{const n={};for(const r in e)(!Sg(r)||!(r.slice(9)in t))&&(n[r]=e[r]);return n};function HB(e,t,n){const{props:r,children:s,component:i}=e,{props:o,children:a,patchFlag:l}=t,u=i.emitsOptions;if(t.dirs||t.transition)return!0;if(n&&l>=0){if(l&1024)return!0;if(l&16)return r?Lw(r,o,u):!!o;if(l&8){const c=t.dynamicProps;for(let d=0;d<c.length;d++){const f=c[d];if(o[f]!==r[f]&&!Mg(u,f))return!0}}}else return(s||a)&&(!a||!a.$stable)?!0:r===o?!1:r?o?Lw(r,o,u):!0:!!o;return!1}function Lw(e,t,n){const r=Object.keys(t);if(r.length!==Object.keys(e).length)return!0;for(let s=0;s<r.length;s++){const i=r[s];if(t[i]!==e[i]&&!Mg(n,i))return!0}return!1}function Fg({vnode:e,parent:t},n){for(;t;){const r=t.subTree;if(r.suspense&&r.suspense.activeBranch===e&&(r.el=e.el),r===e)(e=t.vnode).el=n,t=t.parent;else break}}const Wm=e=>e.__isSuspense;let Xx=0;const GB={name:"Suspense",__isSuspense:!0,process(e,t,n,r,s,i,o,a,l,u){if(e==null)KB(t,n,r,s,i,o,a,l,u);else{if(i&&i.deps>0&&!e.suspense.isInFallback){t.suspense=e.suspense,t.suspense.vnode=t,t.el=e.el;return}WB(e,t,n,r,s,o,a,l,u)}},hydrate:qB,normalize:YB},td=GB;function Of(e,t){const n=e.props&&e.props[t];Lt(n)&&n()}function KB(e,t,n,r,s,i,o,a,l){const{p:u,o:{createElement:c}}=l,d=c("div"),f=e.suspense=YD(e,s,r,t,d,n,i,o,a,l);u(null,f.pendingBranch=e.ssContent,d,null,r,f,i,o),f.deps>0?(Of(e,"onPending"),Of(e,"onFallback"),u(null,e.ssFallback,t,n,r,null,i,o),gc(f,e.ssFallback)):f.resolve(!1,!0)}function WB(e,t,n,r,s,i,o,a,{p:l,um:u,o:{createElement:c}}){const d=t.suspense=e.suspense;d.vnode=t,t.el=e.el;const f=t.ssContent,h=t.ssFallback,{activeBranch:p,pendingBranch:m,isInFallback:v,isHydrating:x}=d;if(m)d.pendingBranch=f,no(m,f)?(l(m,f,d.hiddenContainer,null,s,d,i,o,a),d.deps<=0?d.resolve():v&&(x||(l(p,h,n,r,s,null,i,o,a),gc(d,h)))):(d.pendingId=Xx++,x?(d.isHydrating=!1,d.activeBranch=m):u(m,s,d),d.deps=0,d.effects.length=0,d.hiddenContainer=c("div"),v?(l(null,f,d.hiddenContainer,null,s,d,i,o,a),d.deps<=0?d.resolve():(l(p,h,n,r,s,null,i,o,a),gc(d,h))):p&&no(p,f)?(l(p,f,n,r,s,d,i,o,a),d.resolve(!0)):(l(null,f,d.hiddenContainer,null,s,d,i,o,a),d.deps<=0&&d.resolve()));else if(p&&no(p,f))l(p,f,n,r,s,d,i,o,a),gc(d,f);else if(Of(t,"onPending"),d.pendingBranch=f,f.shapeFlag&512?d.pendingId=f.component.suspenseId:d.pendingId=Xx++,l(null,f,d.hiddenContainer,null,s,d,i,o,a),d.deps<=0)d.resolve();else{const{timeout:g,pendingId:y}=d;g>0?setTimeout(()=>{d.pendingId===y&&d.fallback(h)},g):g===0&&d.fallback(h)}}function YD(e,t,n,r,s,i,o,a,l,u,c=!1){const{p:d,m:f,um:h,n:p,o:{parentNode:m,remove:v}}=u;let x;const g=XB(e);g&&t&&t.pendingBranch&&(x=t.pendingId,t.deps++);const y=e.props?Cf(e.props.timeout):void 0,_=i,E={vnode:e,parent:t,parentComponent:n,namespace:o,container:r,hiddenContainer:s,deps:0,pendingId:Xx++,timeout:typeof y=="number"?y:-1,activeBranch:null,pendingBranch:null,isInFallback:!c,isHydrating:c,isUnmounted:!1,effects:[],resolve(w=!1,T=!1){const{vnode:C,activeBranch:I,pendingBranch:k,pendingId:$,effects:R,parentComponent:D,container:O,isInFallback:B}=E;let U=!1;E.isHydrating?E.isHydrating=!1:w||(U=I&&k.transition&&k.transition.mode==="out-in",U&&(I.transition.afterLeave=()=>{$===E.pendingId&&(f(k,O,i===_?p(I):i,0),Lf(R),B&&C.ssFallback&&(C.ssFallback.el=null))}),I&&(m(I.el)===O&&(i=p(I)),h(I,D,E,!0),!U&&B&&C.ssFallback&&(C.ssFallback.el=null)),U||f(k,O,i,0)),gc(E,k),E.pendingBranch=null,E.isInFallback=!1;let N=E.parent,V=!1;for(;N;){if(N.pendingBranch){N.effects.push(...R),V=!0;break}N=N.parent}!V&&!U&&Lf(R),E.effects=[],g&&t&&t.pendingBranch&&x===t.pendingId&&(t.deps--,t.deps===0&&!T&&t.resolve()),Of(C,"onResolve")},fallback(w){if(!E.pendingBranch)return;const{vnode:T,activeBranch:C,parentComponent:I,container:k,namespace:$}=E;Of(T,"onFallback");const R=p(C),D=()=>{E.isInFallback&&(d(null,w,k,R,I,null,$,a,l),gc(E,w))},O=w.transition&&w.transition.mode==="out-in";O&&(C.transition.afterLeave=D),E.isInFallback=!0,h(C,I,null,!0),O||D()},move(w,T,C){E.activeBranch&&f(E.activeBranch,w,T,C),E.container=w},next(){return E.activeBranch&&p(E.activeBranch)},registerDep(w,T,C){const I=!!E.pendingBranch;I&&E.deps++;const k=w.vnode.el;w.asyncDep.catch($=>{Iu($,w,0)}).then($=>{if(w.isUnmounted||E.isUnmounted||E.pendingId!==w.suspenseId)return;w.asyncResolved=!0;const{vnode:R}=w;Qx(w,$,!1),k&&(R.el=k);const D=!k&&w.subTree.el;T(w,R,m(k||w.subTree.el),k?null:p(w.subTree),E,o,C),D&&(R.placeholder=null,v(D)),Fg(w,R.el),I&&--E.deps===0&&E.resolve()})},unmount(w,T){E.isUnmounted=!0,E.activeBranch&&h(E.activeBranch,n,w,T),E.pendingBranch&&h(E.pendingBranch,n,w,T)}};return E}function qB(e,t,n,r,s,i,o,a,l){const u=t.suspense=YD(t,r,n,e.parentNode,document.createElement("div"),null,s,i,o,a,!0),c=l(e,u.pendingBranch=t.ssContent,n,u,i,o);return u.deps===0&&u.resolve(!1,!0),c}function YB(e){const{shapeFlag:t,children:n}=e,r=t&32;e.ssContent=Dw(r?n.default:n),e.ssFallback=r?Dw(n.fallback):S(tr)}function Dw(e){let t;if(Lt(e)){const n=hu&&e._c;n&&(e._d=!1,P()),e=e(),n&&(e._d=!0,t=us,ZD())}return dt(e)&&(e=UB(e)),e=Ns(e),t&&!e.dynamicChildren&&(e.dynamicChildren=t.filter(n=>n!==e)),e}function XD(e,t){t&&t.pendingBranch?dt(e)?t.effects.push(...e):t.effects.push(e):Lf(e)}function gc(e,t){e.activeBranch=t;const{vnode:n,parentComponent:r}=e;let s=t.el;for(;!s&&t.component;)t=t.component.subTree,s=t.el;n.el=s,r&&r.subTree===n&&(r.vnode.el=s,Fg(r,s))}function XB(e){const t=e.props&&e.props.suspensible;return t!=null&&t!==!1}const se=Symbol.for("v-fgt"),xa=Symbol.for("v-txt"),tr=Symbol.for("v-cmt"),iu=Symbol.for("v-stc"),df=[];let us=null;function P(e=!1){df.push(us=e?null:[])}function ZD(){df.pop(),us=df[df.length-1]||null}let hu=1;function $f(e,t=!1){hu+=e,e<0&&us&&t&&(us.hasOnce=!0)}function JD(e){return e.dynamicChildren=hu>0?us||Ql:null,ZD(),hu>0&&us&&us.push(e),e}function j(e,t,n,r,s,i){return JD(L(e,t,n,r,s,i,!0))}function q(e,t,n,r,s){return JD(S(e,t,n,r,s,!0))}function Fi(e){return e?e.__v_isVNode===!0:!1}function no(e,t){return e.type===t.type&&e.key===t.key}function ZB(e){}const QD=({key:e})=>e??null,yp=({ref:e,ref_key:t,ref_for:n})=>(typeof e=="number"&&(e=""+e),e!=null?Ot(e)||Ce(e)||Lt(e)?{i:Wr,r:e,k:t,f:!!n}:e:null);function L(e,t=null,n=null,r=0,s=null,i=e===se?0:1,o=!1,a=!1){const l={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&QD(t),ref:t&&yp(t),scopeId:Rg,slotScopeIds:null,children:n,component:null,suspense:null,ssContent:null,ssFallback:null,dirs:null,transition:null,el:null,anchor:null,target:null,targetStart:null,targetAnchor:null,staticCount:0,shapeFlag:i,patchFlag:r,dynamicProps:s,dynamicChildren:null,appContext:null,ctx:Wr};return a?(c_(l,n),i&128&&e.normalize(l)):n&&(l.shapeFlag|=Ot(n)?8:16),hu>0&&!o&&us&&(l.patchFlag>0||i&6)&&l.patchFlag!==32&&us.push(l),l}const S=JB;function JB(e,t=null,n=null,r=0,s=null,i=!1){if((!e||e===TD)&&(e=tr),Fi(e)){const a=Bi(e,t,!0);return n&&c_(a,n),hu>0&&!i&&us&&(a.shapeFlag&6?us[us.indexOf(e)]=a:us.push(a)),a.patchFlag=-2,a}if(oN(e)&&(e=e.__vccOpts),t){t=pi(t);let{class:a,style:l}=t;a&&!Ot(a)&&(t.class=Ie(a)),un(l)&&(Dg(l)&&!dt(l)&&(l=Xt({},l)),t.style=Qe(l))}const o=Ot(e)?1:Wm(e)?128:pD(e)?64:un(e)?4:Lt(e)?2:0;return L(e,t,n,r,s,o,i,!0)}function pi(e){return e?Dg(e)||PD(e)?Xt({},e):e:null}function Bi(e,t,n=!1,r=!1){const{props:s,ref:i,patchFlag:o,children:a,transition:l}=e,u=t?Ve(s||{},t):s,c={__v_isVNode:!0,__v_skip:!0,type:e.type,props:u,key:u&&QD(u),ref:t&&t.ref?n&&i?dt(i)?i.concat(yp(t)):[i,yp(t)]:yp(t):i,scopeId:e.scopeId,slotScopeIds:e.slotScopeIds,children:a,target:e.target,targetStart:e.targetStart,targetAnchor:e.targetAnchor,staticCount:e.staticCount,shapeFlag:e.shapeFlag,patchFlag:t&&e.type!==se?o===-1?16:o|16:o,dynamicProps:e.dynamicProps,dynamicChildren:e.dynamicChildren,appContext:e.appContext,dirs:e.dirs,transition:l,component:e.component,suspense:e.suspense,ssContent:e.ssContent&&Bi(e.ssContent),ssFallback:e.ssFallback&&Bi(e.ssFallback),placeholder:e.placeholder,el:e.el,anchor:e.anchor,ctx:e.ctx,ce:e.ce};return l&&r&&Aa(c,l.clone(c)),c}function z(e=" ",t=0){return S(xa,null,e,t)}function QB(e,t){const n=S(iu,null,e);return n.staticCount=t,n}function te(e="",t=!1){return t?(P(),q(tr,null,e)):S(tr,null,e)}function Ns(e){return e==null||typeof e=="boolean"?S(tr):dt(e)?S(se,null,e.slice()):Fi(e)?Ka(e):S(xa,null,String(e))}function Ka(e){return e.el===null&&e.patchFlag!==-1||e.memo?e:Bi(e)}function c_(e,t){let n=0;const{shapeFlag:r}=e;if(t==null)t=null;else if(dt(t))n=16;else if(typeof t=="object")if(r&65){const s=t.default;s&&(s._c&&(s._d=!1),c_(e,s()),s._c&&(s._d=!0));return}else{n=32;const s=t._;!s&&!PD(t)?t._ctx=Wr:s===3&&Wr&&(Wr.slots._===1?t._=1:(t._=2,e.patchFlag|=1024))}else Lt(t)?(t={default:t,_ctx:Wr},n=32):(t=String(t),r&64?(n=16,t=[z(t)]):n=8);e.children=t,e.shapeFlag|=n}function Ve(...e){const t={};for(let n=0;n<e.length;n++){const r=e[n];for(const s in r)if(s==="class")t.class!==r.class&&(t.class=Ie([t.class,r.class]));else if(s==="style")t.style=Qe([t.style,r.style]);else if(_l(s)){const i=t[s],o=r[s];o&&i!==o&&!(dt(i)&&i.includes(o))&&(t[s]=i?[].concat(i,o):o)}else s!==""&&(t[s]=r[s])}return t}function Bs(e,t,n,r=null){$i(e,t,7,[n,r])}const eN=ID();let tN=0;function eP(e,t,n){const r=e.type,s=(t?t.appContext:e.appContext)||eN,i={uid:tN++,vnode:e,type:r,parent:t,appContext:s,root:null,next:null,subTree:null,effect:null,update:null,job:null,scope:new H2(!0),render:null,proxy:null,exposed:null,exposeProxy:null,withProxy:null,provides:t?t.provides:Object.create(s.provides),ids:t?t.ids:["",0,0],accessCache:null,renderCache:[],components:null,directives:null,propsOptions:OD(r,s),emitsOptions:qD(r,s),emit:null,emitted:null,propsDefaults:Jt,inheritAttrs:r.inheritAttrs,ctx:Jt,data:Jt,props:Jt,attrs:Jt,slots:Jt,refs:Jt,setupState:Jt,setupContext:null,suspense:n,suspenseId:n?n.pendingId:0,asyncDep:null,asyncResolved:!1,isMounted:!1,isUnmounted:!1,isDeactivated:!1,bc:null,c:null,bm:null,m:null,bu:null,u:null,um:null,bum:null,da:null,a:null,rtg:null,rtc:null,ec:null,sp:null};return i.ctx={_:i},i.root=t?t.root:i,i.emit=NB.bind(null,i),e.ce&&e.ce(i),i}let Kr=null;const $r=()=>Kr||Wr;let qm,Zx;{const e=yh(),t=(n,r)=>{let s;return(s=e[n])||(s=e[n]=[]),s.push(r),i=>{s.length>1?s.forEach(o=>o(i)):s[0](i)}};qm=t("__VUE_INSTANCE_SETTERS__",n=>Kr=n),Zx=t("__VUE_SSR_SETTERS__",n=>Lc=n)}const pu=e=>{const t=Kr;return qm(e),e.scope.on(),()=>{e.scope.off(),qm(t)}},Jx=()=>{Kr&&Kr.scope.off(),qm(null)};function tP(e){return e.vnode.shapeFlag&4}let Lc=!1;function nP(e,t=!1,n=!1){t&&Zx(t);const{props:r,children:s}=e.vnode,i=tP(e);LB(e,r,i,t),OB(e,s,n||t);const o=i?nN(e,t):void 0;return t&&Zx(!1),o}function nN(e,t){const n=e.type;e.accessCache=Object.create(null),e.proxy=new Proxy(e.ctx,Kx);const{setup:r}=n;if(r){Ta();const s=e.setupContext=r.length>1?sP(e):null,i=pu(e),o=ed(r,e,0,[e.props,s]),a=wg(o);if(Ca(),i(),(a||e.sp)&&!ul(e)&&t_(e),a){if(o.then(Jx,Jx),t)return o.then(l=>{Qx(e,l,t)}).catch(l=>{Iu(l,e,0)});e.asyncDep=o}else Qx(e,o,t)}else rP(e,t)}function Qx(e,t,n){Lt(t)?e.type.__ssrInlineRender?e.ssrRender=t:e.render=t:un(t)&&(e.setupState=Y2(t)),rP(e,n)}let Ym,eb;function rN(e){Ym=e,eb=t=>{t.render._rc&&(t.withProxy=new Proxy(t.ctx,cB))}}const sN=()=>!Ym;function rP(e,t,n){const r=e.type;if(!e.render){if(!t&&Ym&&!r.render){const s=r.template||o_(e).template;if(s){const{isCustomElement:i,compilerOptions:o}=e.appContext.config,{delimiters:a,compilerOptions:l}=r,u=Xt(Xt({isCustomElement:i,delimiters:a},o),l);r.render=Ym(s,u)}}e.render=r.render||Pr,eb&&eb(e)}{const s=pu(e);Ta();try{EB(e)}finally{Ca(),s()}}}const iN={get(e,t){return os(e,"get",""),e[t]}};function sP(e){const t=n=>{e.exposed=n||{}};return{attrs:new Proxy(e.attrs,iN),slots:e.slots,emit:e.emit,expose:t}}function Th(e){return e.exposed?e.exposeProxy||(e.exposeProxy=new Proxy(Y2(q2(e.exposed)),{get(t,n){if(n in t)return t[n];if(n in cf)return cf[n](e)},has(t,n){return n in t||n in cf}})):e.proxy}function tb(e,t=!0){return Lt(e)?e.displayName||e.name:e.name||t&&e.__name}function oN(e){return Lt(e)&&"__vccOpts"in e}const F=(e,t)=>IF(e,t,Lc);function Dt(e,t,n){try{$f(-1);const r=arguments.length;return r===2?un(t)&&!dt(t)?Fi(t)?S(e,null,[t]):S(e,t):S(e,null,t):(r>3?n=Array.prototype.slice.call(arguments,2):r===3&&Fi(n)&&(n=[n]),S(e,t,n))}finally{$f(1)}}function aN(){}function lN(e,t,n,r){const s=n[r];if(s&&iP(s,e))return s;const i=t();return i.memo=e.slice(),i.cacheIndex=r,n[r]=i}function iP(e,t){const n=e.memo;if(n.length!=t.length)return!1;for(let r=0;r<n.length;r++)if(is(n[r],t[r]))return!1;return hu>0&&us&&us.push(e),!0}const oP="3.5.24",uN=Pr,cN=BF,dN=sc,fN=fD,hN={createComponentInstance:eP,setupComponent:nP,renderComponentRoot:gp,setCurrentRenderingInstance:Pf,isVNode:Fi,normalizeVNode:Ns,getComponentPublicInstance:Th,ensureValidVNode:i_,pushWarningContext:OF,popWarningContext:$F},pN=hN,mN=null,vN=null,gN=null;let nb;const Pw=typeof window<"u"&&window.trustedTypes;if(Pw)try{nb=Pw.createPolicy("vue",{createHTML:e=>e})}catch{}const aP=nb?e=>nb.createHTML(e):e=>e,yN="http://www.w3.org/2000/svg",xN="http://www.w3.org/1998/Math/MathML",sa=typeof document<"u"?document:null,Rw=sa&&sa.createElement("template"),bN={insert:(e,t,n)=>{t.insertBefore(e,n||null)},remove:e=>{const t=e.parentNode;t&&t.removeChild(e)},createElement:(e,t,n,r)=>{const s=t==="svg"?sa.createElementNS(yN,e):t==="mathml"?sa.createElementNS(xN,e):n?sa.createElement(e,{is:n}):sa.createElement(e);return e==="select"&&r&&r.multiple!=null&&s.setAttribute("multiple",r.multiple),s},createText:e=>sa.createTextNode(e),createComment:e=>sa.createComment(e),setText:(e,t)=>{e.nodeValue=t},setElementText:(e,t)=>{e.textContent=t},parentNode:e=>e.parentNode,nextSibling:e=>e.nextSibling,querySelector:e=>sa.querySelector(e),setScopeId(e,t){e.setAttribute(t,"")},insertStaticContent(e,t,n,r,s,i){const o=n?n.previousSibling:t.lastChild;if(s&&(s===i||s.nextSibling))for(;t.insertBefore(s.cloneNode(!0),n),!(s===i||!(s=s.nextSibling)););else{Rw.innerHTML=aP(r==="svg"?`<svg>${e}</svg>`:r==="mathml"?`<math>${e}</math>`:e);const a=Rw.content;if(r==="svg"||r==="mathml"){const l=a.firstChild;for(;l.firstChild;)a.appendChild(l.firstChild);a.removeChild(l)}t.insertBefore(a,n)}return[o?o.nextSibling:t.firstChild,n?n.previousSibling:t.lastChild]}},Ma="transition",Dd="animation",Dc=Symbol("_vtc"),lP={name:String,type:String,css:{type:Boolean,default:!0},duration:[String,Number,Object],enterFromClass:String,enterActiveClass:String,enterToClass:String,appearFromClass:String,appearActiveClass:String,appearToClass:String,leaveFromClass:String,leaveActiveClass:String,leaveToClass:String},uP=Xt({},e_,lP),_N=e=>(e.displayName="Transition",e.props=uP,e),No=_N((e,{slots:t})=>Dt(xD,cP(e),t)),Rl=(e,t=[])=>{dt(e)?e.forEach(n=>n(...t)):e&&e(...t)},Ow=e=>e?dt(e)?e.some(t=>t.length>1):e.length>1:!1;function cP(e){const t={};for(const R in e)R in lP||(t[R]=e[R]);if(e.css===!1)return t;const{name:n="v",type:r,duration:s,enterFromClass:i=`${n}-enter-from`,enterActiveClass:o=`${n}-enter-active`,enterToClass:a=`${n}-enter-to`,appearFromClass:l=i,appearActiveClass:u=o,appearToClass:c=a,leaveFromClass:d=`${n}-leave-from`,leaveActiveClass:f=`${n}-leave-active`,leaveToClass:h=`${n}-leave-to`}=e,p=SN(s),m=p&&p[0],v=p&&p[1],{onBeforeEnter:x,onEnter:g,onEnterCancelled:y,onLeave:_,onLeaveCancelled:E,onBeforeAppear:w=x,onAppear:T=g,onAppearCancelled:C=y}=t,I=(R,D,O,B)=>{R._enterCancelled=B,za(R,D?c:a),za(R,D?u:o),O&&O()},k=(R,D)=>{R._isLeaving=!1,za(R,d),za(R,h),za(R,f),D&&D()},$=R=>(D,O)=>{const B=R?T:g,U=()=>I(D,R,O);Rl(B,[D,U]),$w(()=>{za(D,R?l:i),yo(D,R?c:a),Ow(B)||Mw(D,r,m,U)})};return Xt(t,{onBeforeEnter(R){Rl(x,[R]),yo(R,i),yo(R,o)},onBeforeAppear(R){Rl(w,[R]),yo(R,l),yo(R,u)},onEnter:$(!1),onAppear:$(!0),onLeave(R,D){R._isLeaving=!0;const O=()=>k(R,D);yo(R,d),R._enterCancelled?(yo(R,f),rb(R)):(rb(R),yo(R,f)),$w(()=>{R._isLeaving&&(za(R,d),yo(R,h),Ow(_)||Mw(R,r,v,O))}),Rl(_,[R,O])},onEnterCancelled(R){I(R,!1,void 0,!0),Rl(y,[R])},onAppearCancelled(R){I(R,!0,void 0,!0),Rl(C,[R])},onLeaveCancelled(R){k(R),Rl(E,[R])}})}function SN(e){if(e==null)return null;if(un(e))return[d1(e.enter),d1(e.leave)];{const t=d1(e);return[t,t]}}function d1(e){return Cf(e)}function yo(e,t){t.split(/\s+/).forEach(n=>n&&e.classList.add(n)),(e[Dc]||(e[Dc]=new Set)).add(t)}function za(e,t){t.split(/\s+/).forEach(r=>r&&e.classList.remove(r));const n=e[Dc];n&&(n.delete(t),n.size||(e[Dc]=void 0))}function $w(e){requestAnimationFrame(()=>{requestAnimationFrame(e)})}let EN=0;function Mw(e,t,n,r){const s=e._endId=++EN,i=()=>{s===e._endId&&r()};if(n!=null)return setTimeout(i,n);const{type:o,timeout:a,propCount:l}=dP(e,t);if(!o)return r();const u=o+"end";let c=0;const d=()=>{e.removeEventListener(u,f),i()},f=h=>{h.target===e&&++c>=l&&d()};setTimeout(()=>{c<l&&d()},a+1),e.addEventListener(u,f)}function dP(e,t){const n=window.getComputedStyle(e),r=p=>(n[p]||"").split(", "),s=r(`${Ma}Delay`),i=r(`${Ma}Duration`),o=Fw(s,i),a=r(`${Dd}Delay`),l=r(`${Dd}Duration`),u=Fw(a,l);let c=null,d=0,f=0;t===Ma?o>0&&(c=Ma,d=o,f=i.length):t===Dd?u>0&&(c=Dd,d=u,f=l.length):(d=Math.max(o,u),c=d>0?o>u?Ma:Dd:null,f=c?c===Ma?i.length:l.length:0);const h=c===Ma&&/\b(?:transform|all)(?:,|$)/.test(r(`${Ma}Property`).toString());return{type:c,timeout:d,propCount:f,hasTransform:h}}function Fw(e,t){for(;e.length<t.length;)e=e.concat(e);return Math.max(...t.map((n,r)=>Bw(n)+Bw(e[r])))}function Bw(e){return e==="auto"?0:Number(e.slice(0,-1).replace(",","."))*1e3}function rb(e){return(e?e.ownerDocument:document).body.offsetHeight}function wN(e,t,n){const r=e[Dc];r&&(t=(t?[t,...r]:[...r]).join(" ")),t==null?e.removeAttribute("class"):n?e.setAttribute("class",t):e.className=t}const Xm=Symbol("_vod"),fP=Symbol("_vsh"),hs={name:"show",beforeMount(e,{value:t},{transition:n}){e[Xm]=e.style.display==="none"?"":e.style.display,n&&t?n.beforeEnter(e):Pd(e,t)},mounted(e,{value:t},{transition:n}){n&&t&&n.enter(e)},updated(e,{value:t,oldValue:n},{transition:r}){!t!=!n&&(r?t?(r.beforeEnter(e),Pd(e,!0),r.enter(e)):r.leave(e,()=>{Pd(e,!1)}):Pd(e,t))},beforeUnmount(e,{value:t}){Pd(e,t)}};function Pd(e,t){e.style.display=t?e[Xm]:"none",e[fP]=!t}function TN(){hs.getSSRProps=({value:e})=>{if(!e)return{style:{display:"none"}}}}const hP=Symbol("");function CN(e){const t=$r();if(!t)return;const n=t.ut=(s=e(t.proxy))=>{Array.from(document.querySelectorAll(`[data-v-owner="${t.uid}"]`)).forEach(i=>Zm(i,s))},r=()=>{const s=e(t.proxy);t.ce?Zm(t.ce,s):sb(t.subTree,s),n(s)};_h(()=>{Lf(r)}),ft(()=>{be(r,Pr,{flush:"post"});const s=new MutationObserver(r);s.observe(t.subTree.el.parentNode,{childList:!0}),Er(()=>s.disconnect())})}function sb(e,t){if(e.shapeFlag&128){const n=e.suspense;e=n.activeBranch,n.pendingBranch&&!n.isHydrating&&n.effects.push(()=>{sb(n.activeBranch,t)})}for(;e.component;)e=e.component.subTree;if(e.shapeFlag&1&&e.el)Zm(e.el,t);else if(e.type===se)e.children.forEach(n=>sb(n,t));else if(e.type===iu){let{el:n,anchor:r}=e;for(;n&&(Zm(n,t),n!==r);)n=n.nextSibling}}function Zm(e,t){if(e.nodeType===1){const n=e.style;let r="";for(const s in t){const i=zL(t[s]);n.setProperty(`--${s}`,i),r+=`--${s}: ${i};`}n[hP]=r}}const AN=/(?:^|;)\s*display\s*:/;function kN(e,t,n){const r=e.style,s=Ot(n);let i=!1;if(n&&!s){if(t)if(Ot(t))for(const o of t.split(";")){const a=o.slice(0,o.indexOf(":")).trim();n[a]==null&&xp(r,a,"")}else for(const o in t)n[o]==null&&xp(r,o,"");for(const o in n)o==="display"&&(i=!0),xp(r,o,n[o])}else if(s){if(t!==n){const o=r[hP];o&&(n+=";"+o),r.cssText=n,i=AN.test(n)}}else t&&e.removeAttribute("style");Xm in e&&(e[Xm]=i?r.display:"",e[fP]&&(r.display="none"))}const Nw=/\s*!important$/;function xp(e,t,n){if(dt(n))n.forEach(r=>xp(e,t,r));else if(n==null&&(n=""),t.startsWith("--"))e.setProperty(t,n);else{const r=IN(e,t);Nw.test(n)?e.setProperty(as(r),n.replace(Nw,""),"important"):e[r]=n}}const Vw=["Webkit","Moz","ms"],f1={};function IN(e,t){const n=f1[t];if(n)return n;let r=Tn(t);if(r!=="filter"&&r in e)return f1[t]=r;r=hi(r);for(let s=0;s<Vw.length;s++){const i=Vw[s]+r;if(i in e)return f1[t]=i}return t}const Uw="http://www.w3.org/1999/xlink";function jw(e,t,n,r,s,i=NL(t)){r&&t.startsWith("xlink:")?n==null?e.removeAttributeNS(Uw,t.slice(6,t.length)):e.setAttributeNS(Uw,t,n):n==null||i&&!z2(n)?e.removeAttribute(t):e.setAttribute(t,i?"":ks(n)?String(n):n)}function zw(e,t,n,r,s){if(t==="innerHTML"||t==="textContent"){n!=null&&(e[t]=t==="innerHTML"?aP(n):n);return}const i=e.tagName;if(t==="value"&&i!=="PROGRESS"&&!i.includes("-")){const a=i==="OPTION"?e.getAttribute("value")||"":e.value,l=n==null?e.type==="checkbox"?"on":"":String(n);(a!==l||!("_value"in e))&&(e.value=l),n==null&&e.removeAttribute(t),e._value=n;return}let o=!1;if(n===""||n==null){const a=typeof e[t];a==="boolean"?n=z2(n):n==null&&a==="string"?(n="",o=!0):a==="number"&&(n=0,o=!0)}try{e[t]=n}catch{}o&&e.removeAttribute(s||t)}function ga(e,t,n,r){e.addEventListener(t,n,r)}function LN(e,t,n,r){e.removeEventListener(t,n,r)}const Hw=Symbol("_vei");function DN(e,t,n,r,s=null){const i=e[Hw]||(e[Hw]={}),o=i[t];if(r&&o)o.value=r;else{const[a,l]=PN(t);if(r){const u=i[t]=$N(r,s);ga(e,a,u,l)}else o&&(LN(e,a,o,l),i[t]=void 0)}}const Gw=/(?:Once|Passive|Capture)$/;function PN(e){let t;if(Gw.test(e)){t={};let r;for(;r=e.match(Gw);)e=e.slice(0,e.length-r[0].length),t[r[0].toLowerCase()]=!0}return[e[2]===":"?e.slice(3):as(e.slice(2)),t]}let h1=0;const RN=Promise.resolve(),ON=()=>h1||(RN.then(()=>h1=0),h1=Date.now());function $N(e,t){const n=r=>{if(!r._vts)r._vts=Date.now();else if(r._vts<=n.attached)return;$i(MN(r,n.value),t,5,[r])};return n.value=e,n.attached=ON(),n}function MN(e,t){if(dt(t)){const n=e.stopImmediatePropagation;return e.stopImmediatePropagation=()=>{n.call(e),e._stopped=!0},t.map(r=>s=>!s._stopped&&r&&r(s))}else return t}const Kw=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)>96&&e.charCodeAt(2)<123,FN=(e,t,n,r,s,i)=>{const o=s==="svg";t==="class"?wN(e,r,o):t==="style"?kN(e,n,r):_l(t)?Sg(t)||DN(e,t,n,r,i):(t[0]==="."?(t=t.slice(1),!0):t[0]==="^"?(t=t.slice(1),!1):BN(e,t,r,o))?(zw(e,t,r),!e.tagName.includes("-")&&(t==="value"||t==="checked"||t==="selected")&&jw(e,t,r,o,i,t!=="value")):e._isVueCE&&(/[A-Z]/.test(t)||!Ot(r))?zw(e,Tn(t),r,i,t):(t==="true-value"?e._trueValue=r:t==="false-value"&&(e._falseValue=r),jw(e,t,r,o))};function BN(e,t,n,r){if(r)return!!(t==="innerHTML"||t==="textContent"||t in e&&Kw(t)&&Lt(n));if(t==="spellcheck"||t==="draggable"||t==="translate"||t==="autocorrect"||t==="sandbox"&&e.tagName==="IFRAME"||t==="form"||t==="list"&&e.tagName==="INPUT"||t==="type"&&e.tagName==="TEXTAREA")return!1;if(t==="width"||t==="height"){const s=e.tagName;if(s==="IMG"||s==="VIDEO"||s==="CANVAS"||s==="SOURCE")return!1}return Kw(t)&&Ot(n)?!1:t in e}const Ww={};function pP(e,t,n){let r=ke(e,t);vh(r)&&(r=Xt({},r,t));class s extends Bg{constructor(o){super(r,o,n)}}return s.def=r,s}const NN=((e,t)=>pP(e,t,p_)),VN=typeof HTMLElement<"u"?HTMLElement:class{};class Bg extends VN{constructor(t,n={},r=Mf){super(),this._def=t,this._props=n,this._createApp=r,this._isVueCE=!0,this._instance=null,this._app=null,this._nonce=this._def.nonce,this._connected=!1,this._resolved=!1,this._patching=!1,this._dirty=!1,this._numberProps=null,this._styleChildren=new WeakSet,this._ob=null,this.shadowRoot&&r!==Mf?this._root=this.shadowRoot:t.shadowRoot!==!1?(this.attachShadow(Xt({},t.shadowRootOptions,{mode:"open"})),this._root=this.shadowRoot):this._root=this}connectedCallback(){if(!this.isConnected)return;!this.shadowRoot&&!this._resolved&&this._parseSlots(),this._connected=!0;let t=this;for(;t=t&&(t.parentNode||t.host);)if(t instanceof Bg){this._parent=t;break}this._instance||(this._resolved?this._mount(this._def):t&&t._pendingResolve?this._pendingResolve=t._pendingResolve.then(()=>{this._pendingResolve=void 0,this._resolveDef()}):this._resolveDef())}_setParent(t=this._parent){t&&(this._instance.parent=t._instance,this._inheritParentContext(t))}_inheritParentContext(t=this._parent){t&&this._app&&Object.setPrototypeOf(this._app._context.provides,t._instance.provides)}disconnectedCallback(){this._connected=!1,tt(()=>{this._connected||(this._ob&&(this._ob.disconnect(),this._ob=null),this._app&&this._app.unmount(),this._instance&&(this._instance.ce=void 0),this._app=this._instance=null,this._teleportTargets&&(this._teleportTargets.clear(),this._teleportTargets=void 0))})}_processMutations(t){for(const n of t)this._setAttr(n.attributeName)}_resolveDef(){if(this._pendingResolve)return;for(let r=0;r<this.attributes.length;r++)this._setAttr(this.attributes[r].name);this._ob=new MutationObserver(this._processMutations.bind(this)),this._ob.observe(this,{attributes:!0});const t=(r,s=!1)=>{this._resolved=!0,this._pendingResolve=void 0;const{props:i,styles:o}=r;let a;if(i&&!dt(i))for(const l in i){const u=i[l];(u===Number||u&&u.type===Number)&&(l in this._props&&(this._props[l]=Cf(this._props[l])),(a||(a=Object.create(null)))[Tn(l)]=!0)}this._numberProps=a,this._resolveProps(r),this.shadowRoot&&this._applyStyles(o),this._mount(r)},n=this._def.__asyncLoader;n?this._pendingResolve=n().then(r=>{r.configureApp=this._def.configureApp,t(this._def=r,!0)}):t(this._def)}_mount(t){this._app=this._createApp(t),this._inheritParentContext(),t.configureApp&&t.configureApp(this._app),this._app._ceVNode=this._createVNode(),this._app.mount(this._root);const n=this._instance&&this._instance.exposed;if(n)for(const r in n)an(this,r)||Object.defineProperty(this,r,{get:()=>b(n[r])})}_resolveProps(t){const{props:n}=t,r=dt(n)?n:Object.keys(n||{});for(const s of Object.keys(this))s[0]!=="_"&&r.includes(s)&&this._setProp(s,this[s]);for(const s of r.map(Tn))Object.defineProperty(this,s,{get(){return this._getProp(s)},set(i){this._setProp(s,i,!0,!this._patching)}})}_setAttr(t){if(t.startsWith("data-v-"))return;const n=this.hasAttribute(t);let r=n?this.getAttribute(t):Ww;const s=Tn(t);n&&this._numberProps&&this._numberProps[s]&&(r=Cf(r)),this._setProp(s,r,!1,!0)}_getProp(t){return this._props[t]}_setProp(t,n,r=!0,s=!1){if(n!==this._props[t]&&(this._dirty=!0,n===Ww?delete this._props[t]:(this._props[t]=n,t==="key"&&this._app&&(this._app._ceVNode.key=n)),s&&this._instance&&this._update(),r)){const i=this._ob;i&&(this._processMutations(i.takeRecords()),i.disconnect()),n===!0?this.setAttribute(as(t),""):typeof n=="string"||typeof n=="number"?this.setAttribute(as(t),n+""):n||this.removeAttribute(as(t)),i&&i.observe(this,{attributes:!0})}}_update(){const t=this._createVNode();this._app&&(t.appContext=this._app._context),EP(t,this._root)}_createVNode(){const t={};this.shadowRoot||(t.onVnodeMounted=t.onVnodeUpdated=this._renderSlots.bind(this));const n=S(this._def,Xt(t,this._props));return this._instance||(n.ce=r=>{this._instance=r,r.ce=this,r.isCE=!0;const s=(i,o)=>{this.dispatchEvent(new CustomEvent(i,vh(o[0])?Xt({detail:o},o[0]):{detail:o}))};r.emit=(i,...o)=>{s(i,o),as(i)!==i&&s(as(i),o)},this._setParent()}),n}_applyStyles(t,n){if(!t)return;if(n){if(n===this._def||this._styleChildren.has(n))return;this._styleChildren.add(n)}const r=this._nonce;for(let s=t.length-1;s>=0;s--){const i=document.createElement("style");r&&i.setAttribute("nonce",r),i.textContent=t[s],this.shadowRoot.prepend(i)}}_parseSlots(){const t=this._slots={};let n;for(;n=this.firstChild;){const r=n.nodeType===1&&n.getAttribute("slot")||"default";(t[r]||(t[r]=[])).push(n),this.removeChild(n)}}_renderSlots(){const t=this._getSlots(),n=this._instance.type.__scopeId;for(let r=0;r<t.length;r++){const s=t[r],i=s.getAttribute("name")||"default",o=this._slots[i],a=s.parentNode;if(o)for(const l of o){if(n&&l.nodeType===1){const u=n+"-s",c=document.createTreeWalker(l,1);l.setAttribute(u,"");let d;for(;d=c.nextNode();)d.setAttribute(u,"")}a.insertBefore(l,s)}else for(;s.firstChild;)a.insertBefore(s.firstChild,s);a.removeChild(s)}}_getSlots(){const t=[this];this._teleportTargets&&t.push(...this._teleportTargets);const n=new Set;for(const r of t){const s=r.querySelectorAll("slot");for(let i=0;i<s.length;i++)n.add(s[i])}return Array.from(n)}_injectChildStyle(t){this._applyStyles(t.styles,t)}_beginPatch(){this._patching=!0,this._dirty=!1}_endPatch(){this._patching=!1,this._dirty&&this._instance&&this._update()}_removeChildStyle(t){}}function mP(e){const t=$r(),n=t&&t.ce;return n||null}function UN(){const e=mP();return e&&e.shadowRoot}function jN(e="$style"){{const t=$r();if(!t)return Jt;const n=t.type.__cssModules;if(!n)return Jt;const r=n[e];return r||Jt}}const vP=new WeakMap,gP=new WeakMap,Jm=Symbol("_moveCb"),qw=Symbol("_enterCb"),zN=e=>(delete e.props.mode,e),HN=zN({name:"TransitionGroup",props:Xt({},uP,{tag:String,moveClass:String}),setup(e,{slots:t}){const n=$r(),r=Q2();let s,i;return Du(()=>{if(!s.length)return;const o=e.moveClass||`${e.name||"v"}-move`;if(!qN(s[0].el,n.vnode.el,o)){s=[];return}s.forEach(GN),s.forEach(KN);const a=s.filter(WN);rb(n.vnode.el),a.forEach(l=>{const u=l.el,c=u.style;yo(u,o),c.transform=c.webkitTransform=c.transitionDuration="";const d=u[Jm]=f=>{f&&f.target!==u||(!f||f.propertyName.endsWith("transform"))&&(u.removeEventListener("transitionend",d),u[Jm]=null,za(u,o))};u.addEventListener("transitionend",d)}),s=[]}),()=>{const o=yt(e),a=cP(o);let l=o.tag||se;if(s=[],i)for(let u=0;u<i.length;u++){const c=i[u];c.el&&c.el instanceof Element&&(s.push(c),Aa(c,kc(c,a,r,n)),vP.set(c,{left:c.el.offsetLeft,top:c.el.offsetTop}))}i=t.default?Og(t.default()):[];for(let u=0;u<i.length;u++){const c=i[u];c.key!=null&&Aa(c,kc(c,a,r,n))}return S(l,null,i)}}}),Ng=HN;function GN(e){const t=e.el;t[Jm]&&t[Jm](),t[qw]&&t[qw]()}function KN(e){gP.set(e,{left:e.el.offsetLeft,top:e.el.offsetTop})}function WN(e){const t=vP.get(e),n=gP.get(e),r=t.left-n.left,s=t.top-n.top;if(r||s){const i=e.el.style;return i.transform=i.webkitTransform=`translate(${r}px,${s}px)`,i.transitionDuration="0s",e}}function qN(e,t,n){const r=e.cloneNode(),s=e[Dc];s&&s.forEach(a=>{a.split(/\s+/).forEach(l=>l&&r.classList.remove(l))}),n.split(/\s+/).forEach(a=>a&&r.classList.add(a)),r.style.display="none";const i=t.nodeType===1?t:t.parentNode;i.appendChild(r);const{hasTransform:o}=dP(r);return i.removeChild(r),o}const pl=e=>{const t=e.props["onUpdate:modelValue"]||!1;return dt(t)?n=>nu(t,n):t};function YN(e){e.target.composing=!0}function Yw(e){const t=e.target;t.composing&&(t.composing=!1,t.dispatchEvent(new Event("input")))}const Di=Symbol("_assign");function Xw(e,t,n){return t&&(e=e.trim()),n&&(e=gh(e)),e}const Pc={created(e,{modifiers:{lazy:t,trim:n,number:r}},s){e[Di]=pl(s);const i=r||s.props&&s.props.type==="number";ga(e,t?"change":"input",o=>{o.target.composing||e[Di](Xw(e.value,n,i))}),(n||i)&&ga(e,"change",()=>{e.value=Xw(e.value,n,i)}),t||(ga(e,"compositionstart",YN),ga(e,"compositionend",Yw),ga(e,"change",Yw))},mounted(e,{value:t}){e.value=t??""},beforeUpdate(e,{value:t,oldValue:n,modifiers:{lazy:r,trim:s,number:i}},o){if(e[Di]=pl(o),e.composing)return;const a=(i||e.type==="number")&&!/^0\d/.test(e.value)?gh(e.value):e.value,l=t??"";a!==l&&(document.activeElement===e&&e.type!=="range"&&(r&&t===n||s&&e.value.trim()===l)||(e.value=l))}},d_={deep:!0,created(e,t,n){e[Di]=pl(n),ga(e,"change",()=>{const r=e._modelValue,s=Rc(e),i=e.checked,o=e[Di];if(dt(r)){const a=xh(r,s),l=a!==-1;if(i&&!l)o(r.concat(s));else if(!i&&l){const u=[...r];u.splice(a,1),o(u)}}else if(Sl(r)){const a=new Set(r);i?a.add(s):a.delete(s),o(a)}else o(yP(e,i))})},mounted:Zw,beforeUpdate(e,t,n){e[Di]=pl(n),Zw(e,t,n)}};function Zw(e,{value:t,oldValue:n},r){e._modelValue=t;let s;if(dt(t))s=xh(t,r.props.value)>-1;else if(Sl(t))s=t.has(r.props.value);else{if(t===n)return;s=wa(t,yP(e,!0))}e.checked!==s&&(e.checked=s)}const f_={created(e,{value:t},n){e.checked=wa(t,n.props.value),e[Di]=pl(n),ga(e,"change",()=>{e[Di](Rc(e))})},beforeUpdate(e,{value:t,oldValue:n},r){e[Di]=pl(r),t!==n&&(e.checked=wa(t,r.props.value))}},Ch={deep:!0,created(e,{value:t,modifiers:{number:n}},r){const s=Sl(t);ga(e,"change",()=>{const i=Array.prototype.filter.call(e.options,o=>o.selected).map(o=>n?gh(Rc(o)):Rc(o));e[Di](e.multiple?s?new Set(i):i:i[0]),e._assigning=!0,tt(()=>{e._assigning=!1})}),e[Di]=pl(r)},mounted(e,{value:t}){Jw(e,t)},beforeUpdate(e,t,n){e[Di]=pl(n)},updated(e,{value:t}){e._assigning||Jw(e,t)}};function Jw(e,t){const n=e.multiple,r=dt(t);if(!(n&&!r&&!Sl(t))){for(let s=0,i=e.options.length;s<i;s++){const o=e.options[s],a=Rc(o);if(n)if(r){const l=typeof a;l==="string"||l==="number"?o.selected=t.some(u=>String(u)===String(a)):o.selected=xh(t,a)>-1}else o.selected=t.has(a);else if(wa(Rc(o),t)){e.selectedIndex!==s&&(e.selectedIndex=s);return}}!n&&e.selectedIndex!==-1&&(e.selectedIndex=-1)}}function Rc(e){return"_value"in e?e._value:e.value}function yP(e,t){const n=t?"_trueValue":"_falseValue";return n in e?e[n]:t}const h_={created(e,t,n){b0(e,t,n,null,"created")},mounted(e,t,n){b0(e,t,n,null,"mounted")},beforeUpdate(e,t,n,r){b0(e,t,n,r,"beforeUpdate")},updated(e,t,n,r){b0(e,t,n,r,"updated")}};function xP(e,t){switch(e){case"SELECT":return Ch;case"TEXTAREA":return Pc;default:switch(t){case"checkbox":return d_;case"radio":return f_;default:return Pc}}}function b0(e,t,n,r,s){const o=xP(e.tagName,n.props&&n.props.type)[s];o&&o(e,t,n,r)}function XN(){Pc.getSSRProps=({value:e})=>({value:e}),f_.getSSRProps=({value:e},t)=>{if(t.props&&wa(t.props.value,e))return{checked:!0}},d_.getSSRProps=({value:e},t)=>{if(dt(e)){if(t.props&&xh(e,t.props.value)>-1)return{checked:!0}}else if(Sl(e)){if(t.props&&e.has(t.props.value))return{checked:!0}}else if(e)return{checked:!0}},h_.getSSRProps=(e,t)=>{if(typeof t.type!="string")return;const n=xP(t.type.toUpperCase(),t.props&&t.props.type);if(n.getSSRProps)return n.getSSRProps(e,t)}}const ZN=["ctrl","shift","alt","meta"],JN={stop:e=>e.stopPropagation(),prevent:e=>e.preventDefault(),self:e=>e.target!==e.currentTarget,ctrl:e=>!e.ctrlKey,shift:e=>!e.shiftKey,alt:e=>!e.altKey,meta:e=>!e.metaKey,left:e=>"button"in e&&e.button!==0,middle:e=>"button"in e&&e.button!==1,right:e=>"button"in e&&e.button!==2,exact:(e,t)=>ZN.some(n=>e[`${n}Key`]&&!t.includes(n))},Et=(e,t)=>{const n=e._withMods||(e._withMods={}),r=t.join(".");return n[r]||(n[r]=((s,...i)=>{for(let o=0;o<t.length;o++){const a=JN[t[o]];if(a&&a(s,t))return}return e(s,...i)}))},QN={esc:"escape",space:" ",up:"arrow-up",left:"arrow-left",right:"arrow-right",down:"arrow-down",delete:"backspace"},Vg=(e,t)=>{const n=e._withKeys||(e._withKeys={}),r=t.join(".");return n[r]||(n[r]=(s=>{if(!("key"in s))return;const i=as(s.key);if(t.some(o=>o===i||QN[o]===i))return e(s)}))},bP=Xt({patchProp:FN},bN);let ff,Qw=!1;function _P(){return ff||(ff=BD(bP))}function SP(){return ff=Qw?ff:ND(bP),Qw=!0,ff}const EP=((...e)=>{_P().render(...e)}),e7=((...e)=>{SP().hydrate(...e)}),Mf=((...e)=>{const t=_P().createApp(...e),{mount:n}=t;return t.mount=r=>{const s=TP(r);if(!s)return;const i=t._component;!Lt(i)&&!i.render&&!i.template&&(i.template=s.innerHTML),s.nodeType===1&&(s.textContent="");const o=n(s,!1,wP(s));return s instanceof Element&&(s.removeAttribute("v-cloak"),s.setAttribute("data-v-app","")),o},t}),p_=((...e)=>{const t=SP().createApp(...e),{mount:n}=t;return t.mount=r=>{const s=TP(r);if(s)return n(s,!0,wP(s))},t});function wP(e){if(e instanceof SVGElement)return"svg";if(typeof MathMLElement=="function"&&e instanceof MathMLElement)return"mathml"}function TP(e){return Ot(e)?document.querySelector(e):e}let eT=!1;const t7=()=>{eT||(eT=!0,XN(),TN())},n7=Object.freeze(Object.defineProperty({__proto__:null,BaseTransition:xD,BaseTransitionPropsValidators:e_,Comment:tr,DeprecationTypes:gN,EffectScope:H2,ErrorCodes:FF,ErrorTypeStrings:cN,Fragment:se,KeepAlive:Ic,ReactiveEffect:Af,Static:iu,Suspense:td,Teleport:J2,Text:xa,TrackOpTypes:LF,Transition:No,TransitionGroup:Ng,TriggerOpTypes:DF,VueElement:Bg,assertNumber:MF,callWithAsyncErrorHandling:$i,callWithErrorHandling:ed,camelize:Tn,capitalize:hi,cloneVNode:Bi,compatUtils:vN,computed:F,createApp:Mf,createBlock:q,createCommentVNode:te,createElementBlock:j,createElementVNode:L,createHydrationRenderer:ND,createPropsRestProxy:_B,createRenderer:BD,createSSRApp:p_,createSlots:Sh,createStaticVNode:QB,createTextVNode:z,createVNode:S,customRef:X2,defineAsyncComponent:Ke,defineComponent:ke,defineCustomElement:pP,defineEmits:fB,defineExpose:hB,defineModel:vB,defineOptions:pB,defineProps:dB,defineSSRCustomElement:NN,defineSlots:mB,devtools:dN,effect:tF,effectScope:fl,getCurrentInstance:$r,getCurrentScope:El,getCurrentWatcher:PF,getTransitionRawChildren:Og,guardReactiveProps:pi,h:Dt,handleError:Iu,hasInjectionContext:Eh,hydrate:e7,hydrateOnIdle:QF,hydrateOnInteraction:rB,hydrateOnMediaQuery:nB,hydrateOnVisible:tB,initCustomFormatter:aN,initDirectivesForSSR:t7,inject:mt,isMemoSame:iP,isProxy:Dg,isReactive:ll,isReadonly:Bo,isRef:Ce,isRuntimeOnly:sN,isShallow:li,isVNode:Fi,markRaw:q2,mergeDefaults:xB,mergeModels:bB,mergeProps:Ve,nextTick:tt,normalizeClass:Ie,normalizeProps:Ks,normalizeStyle:Qe,onActivated:zi,onBeforeMount:Lu,onBeforeUnmount:cn,onBeforeUpdate:_h,onDeactivated:La,onErrorCaptured:n_,onMounted:ft,onRenderTracked:wD,onRenderTriggered:ED,onScopeDispose:qn,onServerPrefetch:SD,onUnmounted:Er,onUpdated:Du,onWatcherCleanup:aD,openBlock:P,popScopeId:jF,provide:Cn,proxyRefs:Y2,pushScopeId:UF,queuePostFlushCb:Lf,reactive:Wt,readonly:ds,ref:M,registerRuntimeCompiler:rN,render:EP,renderList:Fe,renderSlot:Ht,resolve
4Component:Mi,resolveDirective:lB,resolveDynamicComponent:hl,resolveFilter:mN,resolveTransitionHooks:kc,setBlockTracking:$f,setDevtoolsHook:fN,setTransitionHooks:Aa,shallowReactive:so,shallowReadonly:_F,shallowRef:Ze,ssrContextKey:zD,ssrUtils:pN,stop:nF,toDisplayString:Z,toHandlerKey:tu,toHandlers:uB,toRaw:yt,toRef:Ae,toRefs:Pg,toValue:qr,transformVNodeArgs:ZB,triggerRef:EF,unref:b,useAttrs:CD,useCssModule:jN,useCssVars:CN,useHost:mP,useId:Ds,useModel:Xd,useSSRContext:HD,useShadowRoot:UN,useSlots:yB,useTemplateRef:KF,useTransitionState:Q2,vModelCheckbox:d_,vModelDynamic:h_,vModelRadio:f_,vModelSelect:Ch,vModelText:Pc,vShow:hs,version:oP,warn:uN,watch:be,watchEffect:zn,watchPostEffect:FB,watchSyncEffect:GD,withAsyncContext:SB,withCtx:A,withDefaults:gB,withDirectives:pn,withKeys:Vg,withMemo:lN,withModifiers:Et,withScopeId:zF},Symbol.toStringTag,{value:"Module"})),r7=/"(?:_|\\u0{2}5[Ff]){2}(?:p|\\u0{2}70)(?:r|\\u0{2}72)(?:o|\\u0{2}6[Ff])(?:t|\\u0{2}74)(?:o|\\u0{2}6[Ff])(?:_|\\u0{2}5[Ff]){2}"\s*:/,s7=/"(?:c|\\u0063)(?:o|\\u006[Ff])(?:n|\\u006[Ee])(?:s|\\u0073)(?:t|\\u0074)(?:r|\\u0072)(?:u|\\u0075)(?:c|\\u0063)(?:t|\\u0074)(?:o|\\u006[Ff])(?:r|\\u0072)"\s*:/,i7=/^\s*["[{]|^\s*-?\d{1,16}(\.\d{1,17})?([Ee][+-]?\d+)?\s*$/;function o7(e,t){if(e==="__proto__"||e==="constructor"&&t&&typeof t=="object"&&"prototype"in t){a7(e);return}return t}function a7(e){console.warn(`[destr] Dropping "${e}" key to prevent prototype pollution.`)}function Ff(e,t={}){if(typeof e!="string")return e;if(e[0]==='"'&&e[e.length-1]==='"'&&e.indexOf("\\")===-1)return e.slice(1,-1);const n=e.trim();if(n.length<=9)switch(n.toLowerCase()){case"true":return!0;case"false":return!1;case"undefined":return;case"null":return null;case"nan":return Number.NaN;case"infinity":return Number.POSITIVE_INFINITY;case"-infinity":return Number.NEGATIVE_INFINITY}if(!i7.test(e)){if(t.strict)throw new SyntaxError("[destr] Invalid JSON");return e}try{if(r7.test(e)||s7.test(e)){if(t.strict)throw new Error("[destr] Possible prototype pollution");return JSON.parse(e,o7)}return JSON.parse(e)}catch(r){if(t.strict)throw r;return e}}const l7=/#/g,u7=/&/g,c7=/\//g,d7=/=/g,m_=/\+/g,f7=/%5e/gi,h7=/%60/gi,p7=/%7c/gi,m7=/%20/gi;function v7(e){return encodeURI(""+e).replace(p7,"|")}function ib(e){return v7(typeof e=="string"?e:JSON.stringify(e)).replace(m_,"%2B").replace(m7,"+").replace(l7,"%23").replace(u7,"%26").replace(h7,"`").replace(f7,"^").replace(c7,"%2F")}function p1(e){return ib(e).replace(d7,"%3D")}function Qm(e=""){try{return decodeURIComponent(""+e)}catch{return""+e}}function g7(e){return Qm(e.replace(m_," "))}function y7(e){return Qm(e.replace(m_," "))}function v_(e=""){const t=Object.create(null);e[0]==="?"&&(e=e.slice(1));for(const n of e.split("&")){const r=n.match(/([^=]+)=?(.*)/)||[];if(r.length<2)continue;const s=g7(r[1]);if(s==="__proto__"||s==="constructor")continue;const i=y7(r[2]||"");t[s]===void 0?t[s]=i:Array.isArray(t[s])?t[s].push(i):t[s]=[t[s],i]}return t}function x7(e,t){return(typeof t=="number"||typeof t=="boolean")&&(t=String(t)),t?Array.isArray(t)?t.map(n=>`${p1(e)}=${ib(n)}`).join("&"):`${p1(e)}=${ib(t)}`:p1(e)}function b7(e){return Object.keys(e).filter(t=>e[t]!==void 0).map(t=>x7(t,e[t])).filter(Boolean).join("&")}const _7=/^[\s\w\0+.-]{2,}:([/\\]{1,2})/,S7=/^[\s\w\0+.-]{2,}:([/\\]{2})?/,E7=/^([/\\]\s*){2,}[^/\\]/,w7=/^[\s\0]*(blob|data|javascript|vbscript):$/i,T7=/\/$|\/\?|\/#/,C7=/^\.?\//;function Pu(e,t={}){return typeof t=="boolean"&&(t={acceptRelative:t}),t.strict?_7.test(e):S7.test(e)||(t.acceptRelative?E7.test(e):!1)}function A7(e){return!!e&&w7.test(e)}function ob(e="",t){return t?T7.test(e):e.endsWith("/")}function Bf(e="",t){if(!t)return(ob(e)?e.slice(0,-1):e)||"/";if(!ob(e,!0))return e||"/";let n=e,r="";const s=e.indexOf("#");s!==-1&&(n=e.slice(0,s),r=e.slice(s));const[i,...o]=n.split("?");return((i.endsWith("/")?i.slice(0,-1):i)||"/")+(o.length>0?`?${o.join("?")}`:"")+r}function CP(e="",t){if(!t)return e.endsWith("/")?e:e+"/";if(ob(e,!0))return e||"/";let n=e,r="";const s=e.indexOf("#");if(s!==-1&&(n=e.slice(0,s),r=e.slice(s),!n))return r;const[i,...o]=n.split("?");return i+"/"+(o.length>0?`?${o.join("?")}`:"")+r}function k7(e,t){if(kP(t)||Pu(e))return e;const n=Bf(t);return e.startsWith(n)?e:g_(n,e)}function tT(e,t){if(kP(t))return e;const n=Bf(t);if(!e.startsWith(n))return e;const r=e.slice(n.length);return r[0]==="/"?r:"/"+r}function AP(e,t){const n=DP(e),r={...v_(n.search),...t};return n.search=b7(r),D7(n)}function kP(e){return!e||e==="/"}function I7(e){return e&&e!=="/"}function g_(e,...t){let n=e||"";for(const r of t.filter(s=>I7(s)))if(n){const s=r.replace(C7,"");n=CP(n)+s}else n=r;return n}function IP(...e){const t=/\/(?!\/)/,n=e.filter(Boolean),r=[];let s=0;for(const o of n)if(!(!o||o==="/")){for(const[a,l]of o.split(t).entries())if(!(!l||l===".")){if(l===".."){if(r.length===1&&Pu(r[0]))continue;r.pop(),s--;continue}if(a===1&&r[r.length-1]?.endsWith(":/")){r[r.length-1]+="/"+l;continue}r.push(l),s++}}let i=r.join("/");return s>=0?n[0]?.startsWith("/")&&!i.startsWith("/")?i="/"+i:n[0]?.startsWith("./")&&!i.startsWith("./")&&(i="./"
4+i):i="../".repeat(-1*s)+i,n[n.length-1]?.endsWith("/")&&!i.endsWith("/")&&(i+="/"),i}function L7(e,t){return Qm(Bf(e))===Qm(Bf(t))}const LP=Symbol.for("ufo:protocolRelative");function DP(e="",t){const n=e.match(/^[\s\0]*(blob:|data:|javascript:|vbscript:)(.*)/i);if(n){const[,d,f=""]=n;return{protocol:d.toLowerCase(),pathname:f,href:d+f,auth:"",host:"",search:"",hash:""}}if(!Pu(e,{acceptRelative:!0}))return nT(e);const[,r="",s,i=""]=e.replace(/\\/g,"/").match(/^[\s\0]*([\w+.-]{2,}:)?\/\/([^/@]+@)?(.*)/)||[];let[,o="",a=""]=i.match(/([^#/?]*)(.*)?/)||[];r==="file:"&&(a=a.replace(/\/(?=[A-Za-z]:)/,""));const{pathname:l,search:u,hash:c}=nT(a);return{protocol:r.toLowerCase(),auth:s?s.slice(0,Math.max(0,s.length-1)):"",host:o,pathname:l,search:u,hash:c,[LP]:!r}}function nT(e=""){const[t="",n="",r=""]=(e.match(/([^#?]*)(\?[^#]*)?(#.*)?/)||[]).splice(1);return{pathname:t,search:n,hash:r}}function D7(e){const t=e.pathname||"",n=e.search?(e.search.startsWith("?")?"":"?")+e.search:"",r=e.hash||"",s=e.auth?e.auth+"@":"",i=e.host||"";return(e.protocol||e[LP]?(e.protocol||"")+"//":"")+s+i+t+n+r}let P7=class extends Error{constructor(t,n){super(t,n),this.name="FetchError",n?.cause&&!this.cause&&(this.cause=n.cause)}};function R7(e){const t=e.error?.message||e.error?.toString()||"",n=e.request?.method||e.options?.method||"GET",r=e.request?.url||String(e.request)||"/",s=`[${n}] ${JSON.stringify(r)}`,i=e.response?`${e.response.status} ${e.response.statusText}`:"<no response>",o=`${s}: ${i}${t?` ${t}`:""}`,a=new P7(o,e.error?{cause:e.error}:void 0);for(const l of["request","options","response"])Object.defineProperty(a,l,{get(){return e[l]}});for(const[l,u]of[["data","_data"],["status","status"],["statusCode","status"],["statusText","statusText"],["statusMessage","statusText"]])Object.defineProperty(a,l,{get(){return e.response&&e.response[u]}});return a}const O7=new Set(Object.freeze(["PATCH","POST","PUT","DELETE"]));function rT(e="GET"){return O7.has(e.toUpperCase())}function $7(e){if(e===void 0)return!1;const t=typeof e;return t==="string"||t==="number"||t==="boolean"||t===null?!0:t!=="object"?!1:Array.isArray(e)?!0:e.buffer||e instanceof FormData||e instanceof URLSearchParams?!1:e.constructor&&e.constructor.name==="Object"||typeof e.toJSON=="function"}const M7=new Set(["image/svg","application/xml","application/xhtml","application/html"]),F7=/^application\/(?:[\w!#$%&*.^`~-]*\+)?json(;.+)?$/i;function B7(e=""){if(!e)return"json";const t=e.split(";").shift()||"";return F7.test(t)?"json":t==="text/event-stream"?"stream":M7.has(t)||t.startsWith("text/")?"text":"blob"}function N7(e,t,n,r){const s=V7(t?.headers??e?.headers,n?.headers,r);let i;return(n?.query||n?.params||t?.params||t?.query)&&(i={...n?.params,...n?.query,...t?.params,...t?.query}),{...n,...t,query:i,params:i,headers:s}}function V7(e,t,n){if(!t)return new n(e);const r=new n(t);if(e)for(const[s,i]of Symbol.iterator in e||Array.isArray(e)?e:new n(e))r.set(s,i);return r}async function _0(e,t){if(t)if(Array.isArray(t))for(const n of t)await n(e);else await t(e)}const U7=new Set([408,409,425,429,500,502,503,504]),j7=new Set([101,204,205,304]);function PP(e={}){const{fetch:t=globalThis.fetch,Headers:n=globalThis.Headers,AbortController:r=globalThis.AbortController}=e;async function s(a){const l=a.error&&a.error.name==="AbortError"&&!a.options.timeout||!1;if(a.options.retry!==!1&&!l){let c;typeof a.options.retry=="number"?c=a.options.retry:c=rT(a.options.method)?0:1;const d=a.response&&a.response.status||500;if(c>0&&(Array.isArray(a.options.retryStatusCodes)?a.options.retryStatusCodes.includes(d):U7.has(d))){const f=typeof a.options.retryDelay=="function"?a.options.retryDelay(a):a.options.retryDelay||0;return f>0&&await new Promise(h=>setTimeout(h,f)),i(a.request,{...a.options,retry:c-1})}}const u=R7(a);throw Error.captureStackTrace&&Error.captureStackTrace(u,i),u}const i=async function(l,u={}){const c={request:l,options:N7(l,u,e.defaults,n),response:void 0,error:void 0};if(c.options.method&&(c.options.method=c.options.method.toUpperCase()),c.options.onRequest&&(await _0(c,c.options.onRequest),c.options.headers instanceof n||(c.options.headers=new n(c.options.headers||{}))),typeof c.request=="string"&&(c.options.baseURL&&(c.request=k7(c.request,c.options.baseURL)),c.options.query&&(c.request=AP(c.request,c.options.query),delete c.options.query),"query"in c.options&&delete c.options.query,"params"in c.options&&delete c.options.params),c.options.body&&rT(c.options.method))if($7(c.options.body)){const h=c.options.headers.get("content-type");typeof c.options.body!="string"&&(c.options.body=h==="application/x-www-form-urlencoded"?new URLSearchParams(c.options.body).toString():JSON.stringify(c.options.body)),h||c.options.headers.set("content-type","application/json"),c.options.headers.has("accept")||c.options.headers.set("accept","application/json")}else("pipeTo"in c.options.body&&typeof c.options.body.pipeTo=="function"||typeof c.options.body.pipe=="function")&&("duplex"in c.options||(c.options.duplex="half"));let d;if(!c.options.signal&&c.options.timeout){const h=new r;d=setTimeout(()=>{const p=new Error("[TimeoutError]: The operation was aborted due to timeout");p.name="TimeoutError",p.code=23,h.abort(p)},c.options.timeout),c.options.signal=h.signal}try{c.response=await t(c.request,c.options)}catch(h){return c.error=h,c.options.onRequestError&&await _0(c,c.options.onRequestError),await s(c)}finally{d&&clearTimeout(d)}if((c.response.body||c.response._bodyInit)&&!j7.has(c.response.status)&&c.options.method!=="HEAD"){const h=(c.options.parseResponse?"json":c.options.responseType)||B7(c.response.headers.get("content-type")||"");switch(h){case"json":{const p=await c.response.text(),m=c.options.parseResponse||Ff;c.response._data=m(p);break}case"stream":{c.response._data=c.response.body||c.response._bodyInit;break}default:c.response._data=await c.response[h]()}}return c.options.onResponse&&await _0(c,c.options.onResponse),!c.options.ignoreResponseError&&c.response.status>=400&&c.response.status<600?(c.options.onResponseError&&await _0(c,c.options.onResponseError),await s(c)):c.response},o=async function(l,u){return(await i(l,u))._data};return o.raw=i,o.native=(...a)=>t(...a),o.create=(a={},l={})=>PP({...e,...l,defaults:{...e.defaults,...l.defaults,...a}}),o}const ev=(function(){if(typeof globalThis<"u")return globalThis;if(typeof self<"u")return self;if(typeof window<"u")return window;if(typeof global<"u")return global;throw new Error("unable to locate global object")})(),z7=ev.fetch?(...e)=>ev.fetch(...e):()=>Promise.reject(new Error("[ofetch] global.fetch is not supported!")),H7=ev.Headers,G7=ev.AbortController,
4K7=PP({fetch:z7,Headers:H7,AbortController:G7}),W7=K7,q7=()=>window?.__NUXT__?.config||{},y_=()=>q7().app,Y7=()=>y_().baseURL,X7=()=>y_().buildAssetsDir,Z7=(...e)=>IP(RP(),X7(),...e),RP=(...e)=>{const t=y_(),n=t.cdnURL||t.baseURL;return e.length?IP(n,...e):n};globalThis.__buildAssetsURL=Z7,globalThis.__publicAssetsURL=RP;globalThis.$fetch||(globalThis.$fetch=W7.create({baseURL:Y7()}));"global"in globalThis||(globalThis.global=globalThis);function ab(e,t={},n){for(const r in e){const s=e[r],i=n?`${n}:${r}`:r;typeof s=="object"&&s!==null?ab(s,t,i):typeof s=="function"&&(t[i]=s)}return t}const J7={run:e=>e()},Q7=()=>J7,OP=typeof console.createTask<"u"?console.createTask:Q7;function eV(e,t){const n=t.shift(),r=OP(n);return e.reduce((s,i)=>s.then(()=>r.run(()=>i(...t))),Promise.resolve())}function tV(e,t){const n=t.shift(),r=OP(n);return Promise.all(e.map(s=>r.run(()=>s(...t))))}function m1(e,t){for(const n of[...e])n(t)}class nV{constructor(){this._hooks={},this._before=void 0,this._after=void 0,this._deprecatedMessages=void 0,this._deprecatedHooks={},this.hook=this.hook.bind(this),this.callHook=this.callHook.bind(this),this.callHookWith=this.callHookWith.bind(this)}hook(t,n,r={}){if(!t||typeof n!="function")return()=>{};const s=t;let i;for(;this._deprecatedHooks[t];)i=this._deprecatedHooks[t],t=i.to;if(i&&!r.allowDeprecated){let o=i.message;o||(o=`${s} hook has been deprecated`+(i.to?`, please use ${i.to}`:"")),this._deprecatedMessages||(this._deprecatedMessages=new Set),this._deprecatedMessages.has(o)||(console.warn(o),this._deprecatedMessages.add(o))}if(!n.name)try{Object.defineProperty(n,"name",{get:()=>"_"+t.replace(/\W+/g,"_")+"_hook_cb",configurable:!0})}catch{}return this._hooks[t]=this._hooks[t]||[],this._hooks[t].push(n),()=>{n&&(this.removeHook(t,n),n=void 0)}}hookOnce(t,n){let r,s=(...i)=>(typeof r=="function"&&r(),r=void 0,s=void 0,n(...i));return r=this.hook(t,s),r}removeHook(t,n){if(this._hooks[t]){const r=this._hooks[t].indexOf(n);r!==-1&&this._hooks[t].splice(r,1),this._hooks[t].length===0&&delete this._hooks[t]}}deprecateHook(t,n){this._deprecatedHooks[t]=typeof n=="string"?{to:n}:n;const r=this._hooks[t]||[];delete this._hooks[t];for(const s of r)this.hook(t,s)}deprecateHooks(t){Object.assign(this._deprecatedHooks,t);for(const n in t)this.deprecateHook(n,t[n])}addHooks(t){const n=ab(t),r=Object.keys(n).map(s=>this.hook(s,n[s]));return()=>{for(const s of r.splice(0,r.length))s()}}removeHooks(t){const n=ab(t);for(const r in n)this.removeHook(r,n[r])}removeAllHooks(){for(const t in this._hooks)delete this._hooks[t]}callHook(t,...n){return n.unshift(t),this.callHookWith(eV,t,...n)}callHookParallel(t,...n){return n.unshift(t),this.callHookWith(tV,t,...n)}callHookWith(t,n,...r){const s=this._before||this._after?{name:n,args:r,context:{}}:void 0;this._before&&m1(this._before,s);const i=t(n in this._hooks?[...this._hooks[n]]:[],r);return i instanceof Promise?i.finally(()=>{this._after&&s&&m1(this._after,s)}):(this._after&&s&&m1(this._after,s),i)}beforeEach(t){return this._before=this._before||[],this._before.push(t),()=>{if(this._before!==void 0){const n=this._before.indexOf(t);n!==-1&&this._before.splice(n,1)}}}afterEach(t){return this._after=this._after||[],this._after.push(t),()=>{if(this._after!==void 0){const n=this._after.indexOf(t);n!==-1&&this._after.splice(n,1)}}}}function $P(){return new nV}function rV(e={}){let t,n=!1;const r=o=>{if(t&&t!==o)throw new Error("Context conflict")};let s;if(e.asyncContext){const o=e.AsyncLocalStorage||globalThis.AsyncLocalStorage;o?s=new o:console.warn("[unctx] `AsyncLocalStorage` is not provided.")}const i=()=>{if(s){const o=s.getStore();if(o!==void 0)return o}return t};return{use:()=>{const o=i();if(o===void 0)throw new Error("Context is not available");return o},tryUse:()=>i(),set:(o,a)=>{a||r(o),t=o,n=!0},unset:()=>{t=void 0,n=!1},call:(o,a)=>{r(o),t=o;try{return s?s.run(o,a):a()}finally{n||(t=void 0)}},async callAsync(o,a){t=o;const l=()=>{t=o},u=()=>t===o?l:void 0;lb.add(u);try{const c=s?s.run(o,a):a();return n||(t=void 0),await c}finally{lb.delete(u)}}}}function sV(e={}){const t={};return{get(n,r={}){return t[n]||(t[n]=rV({...e,...r})),t[n]}}}const tv=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof global<"u"?global:typeof window<"u"?window:{},sT="__unctx__",iV=tv[sT]||(tv[sT]=sV()),oV=(e,t={})=>iV.get(e,t),iT="__unctx_async_handlers__",lb=tv[iT]||(tv[iT]=new Set);function hf(e){const t=[];for(const s of lb){const i=s();
4i&&t.push(i)}const n=()=>{for(const s of t)s()};let r=e();return r&&typeof r=="object"&&"catch"in r&&(r=r.catch(s=>{throw n(),s})),[r,n]}const aV=!1,oT=!1,lV=!1,uV={componentName:"NuxtLink",prefetch:!0,prefetchOn:{visibility:!0}},cV=null,dV="#__nuxt",MP="nuxt-app",fV="vite:preloadError";function FP(e=MP){return oV(e,{asyncContext:!1})}const hV="__nuxt_plugin";function pV(e){let t=0;const n={_id:e.id||MP||"nuxt-app",_scope:fl(),provide:void 0,globalName:"nuxt",versions:{get nuxt(){return"3.20.1"},get vue(){return n.vueApp.version}},payload:so({...e.ssrContext?.payload||{},data:so({}),state:Wt({}),once:new Set,_errors:so({})}),static:{data:{}},runWithContext(s){return n._scope.active&&!El()?n._scope.run(()=>aT(n,s)):aT(n,s)},isHydrating:!0,deferHydration(){if(!n.isHydrating)return()=>{};t++;let s=!1;return()=>{if(!s&&(s=!0,t--,t===0))return n.isHydrating=!1,n.callHook("app:suspense:resolve")}},_asyncDataPromises:{},_asyncData:so({}),_payloadRevivers:{},...e};{const s=window.__NUXT__;if(s)for(const i in s)switch(i){case"data":case"state":case"_errors":Object.assign(n.payload[i],s[i]);break;default:n.payload[i]=s[i]}}n.hooks=$P(),n.hook=n.hooks.hook,n.callHook=n.hooks.callHook,n.provide=(s,i)=>{const o="$"+s;S0(n,o,i),S0(n.vueApp.config.globalProperties,o,i)},S0(n.vueApp,"$nuxt",n),S0(n.vueApp.config.globalProperties,"$nuxt",n);{window.addEventListener(fV,i=>{n.callHook("app:chunkError",{error:i.payload}),i.payload.message.includes("Unable to preload CSS")&&i.preventDefault()}),window.useNuxtApp||=wt;const s=n.hook("app:error",(...i)=>{console.error("[nuxt] error caught during app initialization",...i)});n.hook("app:mounted",s)}const r=n.payload.config;return n.provide("config",r),n}function mV(e,t){t.hooks&&e.hooks.addHooks(t.hooks)}async function vV(e,t){if(typeof t=="function"){const{provide:n}=await e.runWithContext(()=>t(e))||{};if(n&&typeof n=="object")for(const r in n)e.provide(r,n[r])}}async function gV(e,t){const n=new Set,r=[],s=[];let i,o=0;async function a(l){const u=l.dependsOn?.filter(c=>t.some(d=>d._name===c)&&!n.has(c))??[];if(u.length>0)r.push([new Set(u),l]);else{const c=vV(e,l).then(async()=>{l._name&&(n.add(l._name),await Promise.all(r.map(async([d,f])=>{d.has(l._name)&&(d.delete(l._name),d.size===0&&(o++,await a(f)))})))}).catch(d=>{if(!l.parallel&&!e.payload.error)throw d;i||=d});l.parallel?s.push(c):await c}}for(const l of t)mV(e,l);for(const l of t)await a(l);if(await Promise.all(s),o)for(let l=0;l<o;l++)await Promise.all(s);if(i)throw e.payload.error||i}function mi(e){if(typeof e=="function")return e;const t=e._name||e.name;return delete e.name,Object.assign(e.setup||(()=>{}),e,{[hV]:!0,_name:t})}function aT(e,t,n){const r=()=>t();return FP(e._id).set(e),e.vueApp.runWithContext(r)}function BP(e){let t;return Eh()&&(t=$r()?.appContext.app.$nuxt),t||=FP(e).tryUse(),t||null}function wt(e){const t=BP(e);if(!t)throw new Error("[nuxt] instance unavailable");return t}function Zr(e){return wt().$config}function S0(e,t,n){Object.defineProperty(e,t,{get:()=>n})}function v1(e){if(e===null||typeof e!="object")return!1;const t=Object.getPrototypeOf(e);return t!==null&&t!==Object.prototype&&Object.getPrototypeOf(t)!==null||Symbol.iterator in e?!1:Symbol.toStringTag in e?Object.prototype.toString.call(e)==="[object Module]":!0}function ub(e,t,n=".",r){if(!v1(t))return ub(e,{},n,r);const s=Object.assign({},t);for(const i in e){if(i==="__proto__"||i==="constructor")continue;const o=e[i];o!=null&&(r&&r(s,i,o,n)||(Array.isArray(o)&&Array.isArray(s[i])?s[i]=[...o,...s[i]]:v1(o)&&v1(s[i])?s[i]=ub(o,s[i],(n?`${n}.`:"")+i.toString(),r):s[i]=o))}return s}function NP(e){return(...t)=>t.reduce((n,r)=>ub(n,r,"",e),{})}const yV=NP(),xV=NP((e,t,n)=>{if(e[t]!==void 0&&typeof n=="function")return e[t]=n(e[t]),!0});function bV(e,t){try{return t in e}catch{return!1}}class lT extends Error{static __h3_error__=!0;statusCode=500;fatal=!1;unhandled=!1;statusMessage;data;cause;constructor(t,n={}){super(t,n),n.cause&&!this.cause&&(this.cause=n.cause)}toJSON(){const t={message:this.message,statusCode:cb(this.statusCode,500)};return this.statusMessage&&(t.statusMessage=VP(this.statusMessage)),this.data!==void 0&&(t.data=this.data),t}}function _V(e){if(typeof e=="string")return new lT(e);if(SV(e))return e;const t=new lT(e.message??e.statusMessage??"",{cause:e.cause||e});if(bV(e,"stack"))try{Object.defineProperty(t,"stack",{get(){return e.stack}})}catch{try{t.stack=e.stack}catch{}}if(e.data&&(t.data=e.data),e.statusCode?t.statusCode=cb(e.statusCode,t.statusCode):e.status&&(t.statusCode=cb(e.status,t.statusCode)),e.statusMessage?t.statusMessage=e.statusMessage:e.statusText&&(t.statusMessage=e.statusText),t.statusMessage){const n=t.statusMessage;VP(t.statusMessage)!==n&&console.warn("[h3] Please prefer using `message` for longer error messages instead of `statusMessage`. In the future, `statusMessage` will be sanitized by default.")}return e.fatal!==void 0&&(t.fatal=e.fatal),e.unhandled!==void 0&&(t.unhandled=e.unhandled),t}function SV(e){return e?.constructor?.__h3_error__===!0}const EV=/[^\u0009\u0020-\u007E]/g;function VP(e=""){return e.replace(EV,"")}
4function cb(e,t=200){return!e||(typeof e=="string"&&(e=Number.parseInt(e,10)),e<100||e>999)?t:e}const UP=Symbol("layout-meta"),mu=Symbol("route");import.meta.url.replace(/\/app\/.*$/,"/");const Tt=()=>wt()?.$router,Fn=()=>Eh()?mt(mu,wt()._route):wt()._route;const wV=()=>{try{if(wt()._processingMiddleware)return!0}catch{return!1}return!1},Ah=(e,t)=>{e||="/";const n=typeof e=="string"?e:"path"in e?db(e):Tt().resolve(e).href;if(t?.open){const{target:l="_blank",windowFeatures:u={}}=t.open,c=[];for(const[d,f]of Object.entries(u))f!==void 0&&c.push(`${d.toLowerCase()}=${f}`);return open(n,l,c.join(", ")),Promise.resolve()}const r=Pu(n,{acceptRelative:!0}),s=t?.external||r;if(s){if(!t?.external)throw new Error("Navigating to an external URL is not allowed by default. Use `navigateTo(url, { external: true })`.");const{protocol:l}=new URL(n,window.location.href);if(l&&A7(l))throw new Error(`Cannot navigate to a URL with '${l}' protocol.`)}const i=wV();if(!s&&i){if(t?.replace){if(typeof e=="string"){const{pathname:l,search:u,hash:c}=DP(e);return{path:l,...u&&{query:v_(u)},...c&&{hash:c},replace:!0}}return{...e,replace:!0}}return e}const o=Tt(),a=wt();return s?(a._scope.stop(),t?.replace?location.replace(n):location.href=n,i?a.isHydrating?new Promise(()=>{}):!1:Promise.resolve()):t?.replace?o.replace(e):o.push(e)};function db(e){return AP(e.path||"",e.query||{})+(e.hash||"")}const jP="__nuxt_error",Ug=()=>Ae(wt().payload,"error"),jl=e=>{const t=cl(e);try{const n=Ug();wt().hooks.callHook("app:error",t),n.value||=t}catch{throw t}return t},TV=async(e={})=>{const t=wt(),n=Ug();t.callHook("app:error:cleared",e),e.redirect&&await Tt().replace(e.redirect),n.value=cV},zP=e=>!!e&&typeof e=="object"&&jP in e,cl=e=>{const t=_V(e);return Object.defineProperty(t,jP,{value:!0,configurable:!1,writable:!1}),t};function CV(e){const t=kV(e),n=new ArrayBuffer(t.length),r=new DataView(n);for(let s=0;s<n.byteLength;s++)r.setUint8(s,t.charCodeAt(s));return n}const AV="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";function kV(e){e.length%4===0&&(e=e.replace(/==?$/,""));let t="",n=0,r=0;for(let s=0;s<e.length;s++)n<<=6,n|=AV.indexOf(e[s]),r+=6,r===24&&(t+=String.fromCharCode((n&16711680)>>16),t+=String.fromCharCode((n&65280)>>8),t+=String.fromCharCode(n&255),n=r=0);return r===12?(n>>=4,t+=String.fromCharCode(n)):r===18&&(n>>=2,t+=String.fromCharCode((n&65280)>>8),t+=String.fromCharCode(n&255)),t}const IV=-1,LV=-2,DV=-3,PV=-4,RV=-5,OV=-6;function $V(e,t){return MV(JSON.parse(e),t)}function MV(e,t){if(typeof e=="number")return s(e,!0);if(!Array.isArray(e)||e.length===0)throw new Error("Invalid input");const n=e,r=Array(n.length);function s(i,o=!1){if(i===IV)return;if(i===DV)return NaN;if(i===PV)return 1/0;if(i===RV)return-1/0;if(i===OV)return-0;if(o||typeof i!="number")throw new Error("Invalid input");if(i in r)return r[i];const a=n[i];if(!a||typeof a!="object")r[i]=a;else if(Array.isArray(a))if(typeof a[0]=="string"){const l=a[0],u=t?.[l];if(u){let c=a[1];return typeof c!="number"&&(c=n.push(a[1])-1),r[i]=u(s(c))}switch(l){case"Date":r[i]=new Date(a[1]);break;case"Set":const c=new Set;r[i]=c;for(let h=1;h<a.length;h+=1)c.add(s(a[h]));break;case"Map":const d=new Map;r[i]=d;for(let h=1;h<a.length;h+=2)d.set(s(a[h]),s(a[h+1]));break;case"RegExp":r[i]=new RegExp(a[1],a[2]);break;case"Object":r[i]=Object(a[1]);break;case"BigInt":r[i]=BigInt(a[1]);break;case"null":const f=Object.create(null);r[i]=f;for(let h=1;h<a.length;h+=2)f[a[h]]=s(a[h+1]);break;case"Int8Array":case"Uint8Array":case"Uint8ClampedArray":case"Int16Array":case"Uint16Array":case"Int32Array":case"Uint32Array":case"Float32Array":case"Float64Array":case"BigInt64Array":case"BigUint64Array":{const h=globalThis[l],p=new h(s(a[1]));r[i]=a[2]!==void 0?p.subarray(a[2],a[3]):p;break}case"ArrayBuffer":{const h=a[1],p=CV(h);r[i]=p;break}case"Temporal.Duration":case"Temporal.Instant":case"Temporal.PlainDate":case"Temporal.PlainTime":case"Temporal.PlainDateTime":case"Temporal.PlainMonthDay":case"Temporal.PlainYearMonth":case"Temporal.ZonedDateTime":{const h=l.slice(9);r[i]=Temporal[h].from(a[1]);break}case"URL":{const h=new URL(a[1]);r[i]=h;break}case"URLSearchParams":{const h=new URLSearchParams(a[1]);r[i]=h;break}default:throw new Error(`Unknown type ${l}`)}}else{const l=new Array(a.length);r[i]=l;for(let u=0;u<a.length;u+=1){const c=a[u];c!==LV&&(l[u]=s(c))}}else{const l={};r[i]=l;for(const u in a){if(u==="__proto__")throw new Error("Cannot parse an object with a `__proto__` property");const c=a[u];l[u]=s(c)}}return r[i]}return s(0)}const FV=new Set(["link","style","script","noscript"]),BV=new Set(["title","titleTemplate","script","style","noscript"]),uT=new Set(["base","meta","link","style","script","noscript"]),NV=new Set(["title","base","htmlAttrs","bodyAttrs","meta","link","style","script","noscript"]),VV=new Set(["base","title","titleTemplate","bodyAttrs","htmlAttrs","templateParams"]),UV=new Set(["key","tagPosition","tagPriority","tagDuplicateStrategy","innerHTML","textContent","processTemplateParams"]),jV=new Set(["templateParams","htmlAttrs","bodyAttrs"]),zV=new Set(["theme-color","google-site-verification","og","article","book","profile","twitter","author"]);const HV=["name","property","http-equiv"],GV=new Set(["viewport","description","keywords","robots"]);function HP(e){const t=e.split(":");return t.length?zV.has(t[1]):!1}function fb(e){const{props:t,tag:n}=e;if(VV.has(n))return n;if(n==="link"&&t.rel==="canonical")return"canonical";if(t.charset)return"charset";if(e.tag==="meta"){for(const r of HV)if(t[r]!==void 0){const s=t[r],i=s.includes(":"),o=GV.has(s),l=!(i||o)&&e.key?`:key:${e.key}`:"";return`${n}:${s}${l}`}}if(e.key)return`${n}:key:${e.key}`;if(t.id)return`${n}:id:${t.id}`;if(BV.has(n)){const r=e.textContent||e.innerHTML;if(r)return`${n}:content:${r}`}}function cT(e){const t=e._h||e._d;if(t)return t;const n=e.textContent||e.innerHTML;return n||`${e.tag}:${Object.entries(e.props).map(([r,s])=>`${r}:${String(s)}`).join(",")}`}function nv(e,t,n){typeof e==="function"&&(!n||n!=="titleTemplate"&&!(n[0]==="o"&&n[1]==="n"))&&(e=e());let s;if(t&&(s=t(n,e)),Array.isArray(s))return s.map(i=>nv(i,t));if(s?.constructor===Object){const i={};for(const o of Object.keys(s))i[o]=nv(s[o],t,o);return i}return s}function KV(e,t){const n=e==="style"?new Map:new Set;function r(s){const i=s.trim();if(i)if(e==="style"){const[o,...a]=i.split(":").map(l=>l.trim());o&&a.length&&n.set(o,a.join(":"))}
4else i.split(" ").filter(Boolean).forEach(o=>n.add(o))}return typeof t=="string"?e==="style"?t.split(";").forEach(r):r(t):Array.isArray(t)?t.forEach(s=>r(s)):t&&typeof t=="object"&&Object.entries(t).forEach(([s,i])=>{i&&i!=="false"&&(e==="style"?n.set(s.trim(),i):r(s))}),n}function GP(e,t){return e.props=e.props||{},t?e.tag==="templateParams"?(e.props=t,e):(Object.entries(t).forEach(([n,r])=>{if(r===null){e.props[n]=null;return}if(n==="class"||n==="style"){e.props[n]=KV(n,r);return}if(UV.has(n)){if(["textContent","innerHTML"].includes(n)&&typeof r=="object"){let o=t.type;if(t.type||(o="application/json"),!o?.endsWith("json")&&o!=="speculationrules")return;t.type=o,e.props.type=o,e[n]=JSON.stringify(r)}else e[n]=r;return}const s=String(r),i=n.startsWith("data-");s==="true"||s===""?e.props[n]=i?s:!0:!r&&i&&s==="false"?e.props[n]="false":r!==void 0&&(e.props[n]=r)}),e):e}function WV(e,t){const n=typeof t=="object"&&typeof t!="function"?t:{[e==="script"||e==="noscript"||e==="style"?"innerHTML":"textContent"]:t},r=GP({tag:e,props:{}},n);return r.key&&FV.has(r.tag)&&(r.props["data-hid"]=r._h=r.key),r.tag==="script"&&typeof r.innerHTML=="object"&&(r.innerHTML=JSON.stringify(r.innerHTML),r.props.type=r.props.type||"application/json"),Array.isArray(r.props.content)?r.props.content.map(s=>({...r,props:{...r.props,content:s}})):r}function qV(e,t){if(!e)return[];typeof e=="function"&&(e=e());const n=(s,i)=>{for(let o=0;o<t.length;o++)i=t[o](s,i);return i};e=n(void 0,e);const r=[];return e=nv(e,n),Object.entries(e||{}).forEach(([s,i])=>{if(i!==void 0)for(const o of Array.isArray(i)?i:[i])r.push(WV(s,o))}),r.flat()}const hb=(e,t)=>e._w===t._w?e._p-t._p:e._w-t._w,dT={base:-10,title:10},YV={critical:-8,high:-1,low:2},fT={meta:{"content-security-policy":-30,charset:-20,viewport:-15},link:{preconnect:20,stylesheet:60,preload:70,modulepreload:70,prefetch:90,"dns-prefetch":90,prerender:90},script:{async:30,defer:80,sync:50},style:{imported:40,sync:60}},XV=/@import/,Rd=e=>e===""||e===!0;function ZV(e,t){if(typeof t.tagPriority=="number")return t.tagPriority;let n=100;const r=YV[t.tagPriority]||0,s=e.resolvedOptions.disableCapoSorting?{link:{},script:{},style:{}}:fT;if(t.tag in dT)n=dT[t.tag];else if(t.tag==="meta"){const i=t.props["http-equiv"]==="content-security-policy"?"content-security-policy":t.props.charset?"charset":t.props.name==="viewport"?"viewport":null;i&&(n=fT.meta[i])}else t.tag==="link"&&t.props.rel?n=s.link[t.props.rel]:t.tag==="script"?Rd(t.props.async)?n=s.script.async:t.props.src&&!Rd(t.props.defer)&&!Rd(t.props.async)&&t.props.type!=="module"&&!t.props.type?.endsWith("json")?n=s.script.sync:Rd(t.props.defer)&&t.props.src&&!Rd(t.props.async)&&(n=s.script.defer):t.tag==="style"&&(n=t.innerHTML&&XV.test(t.innerHTML)?s.style.imported:s.style.sync);return(n||100)+r}function hT(e,t){const n=typeof t=="function"?t(e):t,r=n.key||String(e.plugins.size+1);e.plugins.get(r)||(e.plugins.set(r,n),e.hooks.addHooks(n.hooks||{}))}function JV(e={}){const t=$P();t.addHooks(e.hooks||{});const n=!e.document,r=new Map,s=new Map,i=new Set,o={_entryCount:1,plugins:s,dirty:!1,resolvedOptions:e,hooks:t,ssr:n,entries:r,headEntries(){return[...r.values()]},use:a=>hT(o,a),push(a,l){const u={...l||{}};delete u.head;const c=u._index??o._entryCount++,d={_i:c,input:a,options:u},f={_poll(h=!1){o.dirty=!0,!h&&i.add(c),t.callHook("entries:updated",o)},dispose(){r.delete(c)&&o.invalidate()},patch(h){(!u.mode||u.mode==="server"&&n||u.mode==="client"&&!n)&&(d.input=h,r.set(c,d),f._poll())}};return f.patch(a),f},async resolveTags(){const a={tagMap:new Map,tags:[],entries:[...o.entries.values()]};for(await t.callHook("entries:resolve",a);i.size;){const f=i.values().next().value;i.delete(f);const h=r.get(f);if(h){const p={tags:qV(h.input,e.propResolvers||[]).map(m=>Object.assign(m,h.options)),entry:h};await t.callHook("entries:normalize",p),h._tags=p.tags.map((m,v)=>(m._w=ZV(o,m),m._p=(h._i<<10)+v,m._d=fb(m),m))}}let l=!1;a.entries.flatMap(f=>(f._tags||[]).map(h=>({...h,props:{...h.props}}))).sort(hb).reduce((f,h)=>{const p=String(h._d||h._p);if(!f.has(p))return f.set(p,h);const m=f.get(p);if((h?.tagDuplicateStrategy||(jV.has(h.tag)?"merge":null)||(h.key&&h.key===m.key?"merge":null))==="merge"){const x={...m.props};
4Object.entries(h.props).forEach(([g,y])=>x[g]=g==="style"?new Map([...m.props.style||new Map,...y]):g==="class"?new Set([...m.props.class||new Set,...y]):y),f.set(p,{...h,props:x})}else h._p>>10===m._p>>10&&h.tag==="meta"&&HP(p)?(f.set(p,Object.assign([...Array.isArray(m)?m:[m],h],h)),l=!0):(h._w===m._w?h._p>m._p:h?._w<m?._w)&&f.set(p,h);return f},a.tagMap);const u=a.tagMap.get("title"),c=a.tagMap.get("titleTemplate");if(o._title=u?.textContent,c){const f=c?.textContent;if(o._titleTemplate=f,f){let h=typeof f=="function"?f(u?.textContent):f;typeof h=="string"&&!o.plugins.has("template-params")&&(h=h.replace("%s",u?.textContent||"")),u?h===null?a.tagMap.delete("title"):a.tagMap.set("title",{...u,textContent:h}):(c.tag="title",c.textContent=h)}}a.tags=Array.from(a.tagMap.values()),l&&(a.tags=a.tags.flat().sort(hb)),await t.callHook("tags:beforeResolve",a),await t.callHook("tags:resolve",a),await t.callHook("tags:afterResolve",a);const d=[];for(const f of a.tags){const{innerHTML:h,tag:p,props:m}=f;if(NV.has(p)&&!(Object.keys(m).length===0&&!f.innerHTML&&!f.textContent)&&!(p==="meta"&&!m.content&&!m["http-equiv"]&&!m.charset)){if(p==="script"&&h){if(m.type?.endsWith("json")){const v=typeof h=="string"?h:JSON.stringify(h);f.innerHTML=v.replace(/</g,"\\u003C")}else typeof h=="string"&&(f.innerHTML=h.replace(new RegExp(`</${p}`,"g"),`<\\/${p}`));f._d=fb(f)}d.push(f)}}return d},invalidate(){for(const a of r.values())i.add(a._i);o.dirty=!0,t.callHook("entries:updated",o)}};return(e?.plugins||[]).forEach(a=>hT(o,a)),o.hooks.callHook("init",o),e.init?.forEach(a=>a&&o.push(a)),o}const g1="%separator";function QV(e,t,n=!1){let r;if(t==="s"||t==="pageTitle")r=e.pageTitle;else if(t.includes(".")){const s=t.indexOf(".");r=e[t.substring(0,s)]?.[t.substring(s+1)]}else r=e[t];if(r!==void 0)return n?(r||"").replace(/\\/g,"\\\\").replace(/</g,"\\u003C").replace(/"/g,'\\"'):r||""}function E0(e,t,n,r=!1){if(typeof e!="string"||!e.includes("%"))return e;let s=e;try{s=decodeURI(e)}catch{}const i=s.match(/%\w+(?:\.\w+)?/g);if(!i)return e;const o=e.includes(g1);return e=e.replace(/%\w+(?:\.\w+)?/g,a=>{if(a===g1||!i.includes(a))return a;const l=QV(t,a.slice(1),r);return l!==void 0?l:a}).trim(),o&&(e=e.split(g1).map(a=>a.trim()).filter(a=>a!=="").join(n?` ${n} `:" ")),e}const pT=e=>e.includes(":key")?e:e.split(":").join(":key:"),e9={key:"aliasSorting",hooks:{"tags:resolve":e=>{let t=!1;for(const n of e.tags){const r=n.tagPriority;if(!r)continue;const s=String(r);if(s.startsWith("before:")){const i=pT(s.slice(7)),o=e.tagMap.get(i);o&&(typeof o.tagPriority=="number"&&(n.tagPriority=o.tagPriority),n._p=o._p-1,t=!0)}else if(s.startsWith("after:")){const i=pT(s.slice(6)),o=e.tagMap.get(i);o&&(typeof o.tagPriority=="number"&&(n.tagPriority=o.tagPriority),n._p=o._p+1,t=!0)}}t&&(e.tags=e.tags.sort(hb))}}},t9={key:"deprecations",hooks:{"entries:normalize":({tags:e})=>{for(const t of e)t.props.children&&(t.innerHTML=t.props.children,delete t.props.children),t.props.hid&&(t.key=t.props.hid,delete t.props.hid),t.props.vmid&&(t.key=t.props.vmid,delete t.props.vmid),t.props.body&&(t.tagPosition="bodyClose",delete t.props.body)}}};async function pb(e){if(typeof e==="function")return e;if(e instanceof Promise)return await e;if(Array.isArray(e))return await Promise.all(e.map(n=>pb(n)));if(e?.constructor===Object){const n={};for(const r of Object.keys(e))n[r]=await pb(e[r]);return n}return e}const n9={key:"promises",hooks:{"entries:resolve":async e=>{const t=[];for(const n in e.entries)e.entries[n]._promisesProcessed||t.push(pb(e.entries[n].input).then(r=>{e.entries[n].input=r,e.entries[n]._promisesProcessed=!0}));await Promise.all(t)}}},r9={meta:"content",link:"href",htmlAttrs:"lang"},s9=["innerHTML","textContent"],i9=e=>({key:"template-params",hooks:{"entries:normalize":t=>{const n=t.tags.filter(r=>r.tag==="templateParams"&&r.mode==="server")?.[0]?.props||{};Object.keys(n).length&&(e._ssrPayload={templateParams:{...e._ssrPayload?.templateParams||{},...n}})},"tags:resolve":({tagMap:t,tags:n})=>{const r=t.get("templateParams")?.props||{},s=r.separator||"|";delete r.separator,r.pageTitle=E0(r.pageTitle||e._title||"",r,s);for(const i of n){if(i.processTemplateParams===!1)continue;const o=r9[i.tag];
4if(o&&typeof i.props[o]=="string")i.props[o]=E0(i.props[o],r,s);else if(i.processTemplateParams||i.tag==="titleTemplate"||i.tag==="title")for(const a of s9)typeof i[a]=="string"&&(i[a]=E0(i[a],r,s,i.tag==="script"&&i.props.type.endsWith("json")))}e._templateParams=r,e._separator=s},"tags:afterResolve":({tagMap:t})=>{const n=t.get("title");n?.textContent&&n.processTemplateParams!==!1&&(n.textContent=E0(n.textContent,e._templateParams,e._separator))}}}),o9=(e,t)=>Ce(t)?qr(t):t,x_="usehead";function a9(e){return{install(n){n.config.globalProperties.$unhead=e,n.config.globalProperties.$head=e,n.provide(x_,e)}}.install}function l9(){if(Eh()){const e=mt(x_);if(!e)throw new Error("useHead() was called without provide context, ensure you call it through the setup() function.");return e}throw new Error("useHead() was called without provide context, ensure you call it through the setup() function.")}function u9(e,t={}){const n=t.head||l9();return n.ssr?n.push(e||{},t):c9(n,e,t)}function c9(e,t,n={}){const r=M(!1);let s;return zn(()=>{const o=r.value?{}:nv(t,o9);s?s.patch(o):s=e.push(o,n)}),$r()&&(cn(()=>{s.dispose()}),La(()=>{r.value=!0}),zi(()=>{r.value=!1})),s}function d9(e){const t=e||BP();return t?.ssrContext?.head||t?.runWithContext(()=>{if(Eh())return mt(x_)})}function b_(e,t={}){const n=d9(t.nuxt);if(n)return u9(e,{head:n,...t})}async function f9(e){return null}let Ol=null;async function h9(){if(Ol)return Ol;const e=document.getElementById("__NUXT_DATA__");if(!e)return{};const t=await p9(e.textContent||""),n=e.dataset.src?await f9(e.dataset.src):void 0;return Ol={...t,...n,...window.__NUXT__},Ol.config?.public&&(Ol.config.public=Wt(Ol.config.public)),Ol}async function p9(e){return await $V(e,wt()._payloadRevivers)}function m9(e,t){wt()._payloadRevivers[e]=t}const v9=[["NuxtError",e=>cl(e)],["EmptyShallowRef",e=>Ze(e==="_"?void 0:e==="0n"?BigInt(0):Ff(e))],["EmptyRef",e=>M(e==="_"?void 0:e==="0n"?BigInt(0):Ff(e))],["ShallowRef",e=>Ze(e)],["ShallowReactive",e=>so(e)],["Ref",e=>M(e)],["Reactive",e=>Wt(e)]],g9=mi({name:"nuxt:revive-payload:client",order:-30,async setup(e){let t,n;for(const[r,s]of v9)m9(r,s);Object.assign(e.payload,([t,n]=hf(()=>e.runWithContext(h9)),t=await t,n(),t)),window.__NUXT__=e.payload}});async function __(e,t={}){const n=t.document||e.resolvedOptions.document;if(!n||!e.dirty)return;const r={shouldRender:!0,tags:[]};if(await e.hooks.callHook("dom:beforeRender",r),!!r.shouldRender)return e._domUpdatePromise||(e._domUpdatePromise=new Promise(async s=>{const i=new Map,o=new Promise(h=>{e.resolveTags().then(p=>{h(p.map(m=>{const v=i.get(m._d)||0,x={tag:m,id:(v?`${m._d}:${v}`:m._d)||cT(m),shouldRender:!0};return m._d&&HP(m._d)&&i.set(m._d,v+1),x}))})});let a=e._dom;if(!a){a={title:n.title,elMap:new Map().set("htmlAttrs",n.documentElement).set("bodyAttrs",n.body)};for(const h of["body","head"]){const p=n[h]?.children;for(const m of p){const v=m.tagName.toLowerCase();if(!uT.has(v))continue;const x=GP({tag:v,props:{}},{innerHTML:m.innerHTML,...m.getAttributeNames().reduce((g,y)=>(g[y]=m.getAttribute(y),g),{})||{}});if(x.key=m.getAttribute("data-hid")||void 0,x._d=fb(x)||cT(x),a.elMap.has(x._d)){let g=1,y=x._d;for(;a.elMap.has(y);)y=`${x._d}:${g++}`;a.elMap.set(y,m)}else a.elMap.set(x._d,m)}}}a.pendingSideEffects={...a.sideEffects},a.sideEffects={};function l(h,p,m){const v=`${h}:${p}`;a.sideEffects[v]=m,delete a.pendingSideEffects[v]}function u({id:h,$el:p,tag:m}){const v=m.tag.endsWith("Attrs");a.elMap.set(h,p),v||(m.textContent&&m.textContent!==p.textContent&&(p.textContent=m.textContent),m.innerHTML&&m.innerHTML!==p.innerHTML&&(p.innerHTML=m.innerHTML),l(h,"el",()=>{p?.remove(),a.elMap.delete(h)}));for(const x in m.props){if(!Object.prototype.hasOwnProperty.call(m.props,x))continue;const g=m.props[x];if(x.startsWith("on")&&typeof g=="function"){const _=p?.dataset;if(_&&_[`${x}fired`]){const E=x.slice(0,-5);g.call(p,new Event(E.substring(2)))}p.getAttribute(`data-${x}`)!==""&&((m.tag==="bodyAttrs"?n.defaultView:p).addEventListener(x.substring(2),g.bind(p)),p.setAttribute(`data-${x}`,""));continue}const y=`attr:${x}`;if(x==="class"){if(!g)continue;for(const _ of g)v&&l(h,`${y}:${_}`,()=>p.classList.remove(_)),!p.classList.contains(_)&&p.classList.add(_)}else if(x==="style"){if(!g)continue;for(const[_,E]of g)l(h,`${y}:${_}`,()=>{p.style.removeProperty(_)}),p.style.setProperty(_,E)}else g!==!1&&g!==null&&(p.getAttribute(x)!==g&&p.setAttribute(x,g===!0?"":String(g)),v&&l(h,y,()=>p.removeAttribute(x)))}}const c=[],d={bodyClose:void 0,bodyOpen:void 0,head:void 0},f=await o;for(const h of f){const{tag:p,shouldRender:m,id:v}=h;if(m){if(p.tag==="title"){n.title=p.textContent,l("title","",()=>n.title=a.title);continue}
4h.$el=h.$el||a.elMap.get(v),h.$el?u(h):uT.has(p.tag)&&c.push(h)}}for(const h of c){const p=h.tag.tagPosition||"head";h.$el=n.createElement(h.tag.tag),u(h),d[p]=d[p]||n.createDocumentFragment(),d[p].appendChild(h.$el)}for(const h of f)await e.hooks.callHook("dom:renderTag",h,n,l);d.head&&n.head.appendChild(d.head),d.bodyOpen&&n.body.insertBefore(d.bodyOpen,n.body.firstChild),d.bodyClose&&n.body.appendChild(d.bodyClose);for(const h in a.pendingSideEffects)a.pendingSideEffects[h]();e._dom=a,await e.hooks.callHook("dom:rendered",{renders:f}),s()}).finally(()=>{e._domUpdatePromise=void 0,e.dirty=!1})),e._domUpdatePromise}function y9(e={}){const t=e.domOptions?.render||__;e.document=e.document||(typeof window<"u"?document:void 0);const n=e.document?.head.querySelector('script[id="unhead:payload"]')?.innerHTML||!1;return JV({...e,plugins:[...e.plugins||[],{key:"client",hooks:{"entries:updated":t}}],init:[n?JSON.parse(n):!1,...e.init||[]]})}function x9(e,t){let n=0;return()=>{const r=++n;t(()=>{n===r&&e()})}}function b9(e={}){const t=y9({domOptions:{render:x9(()=>__(t),n=>setTimeout(n,0))},...e});return t.install=a9(t),t}const _9={disableDefaults:!0,disableCapoSorting:!1,plugins:[t9,n9,i9,e9]},S9=mi({name:"nuxt:head",enforce:"pre",setup(e){const t=b9(_9);e.vueApp.use(t);{let n=!0;const r=async()=>{n=!1,await __(t)};t.hooks.hook("dom:beforeRender",s=>{s.shouldRender=!n}),e.hooks.hook("page:start",()=>{n=!0}),e.hooks.hook("page:finish",()=>{e.isHydrating||r()}),e.hooks.hook("app:error",r),e.hooks.hook("app:suspense:resolve",r)}}});const ic=typeof document<"u";function KP(e){return typeof e=="object"||"displayName"in e||"props"in e||"__vccOpts"in e}function E9(e){return e.__esModule||e[Symbol.toStringTag]==="Module"||e.default&&KP(e.default)}const xn=Object.assign;function y1(e,t){const n={};for(const r in t){const s=t[r];n[r]=uo(s)?s.map(e):e(s)}return n}const pf=()=>{},uo=Array.isArray;function mT(e,t){const n={};for(const r in e)n[r]=r in t?t[r]:e[r];return n}const WP=/#/g,w9=/&/g,T9=/\//g,C9=/=/g,A9=/\?/g,qP=/\+/g,k9=/%5B/g,I9=/%5D/g,YP=/%5E/g,L9=/%60/g,XP=/%7B/g,D9=/%7C/g,ZP=/%7D/g,P9=/%20/g;function S_(e){return e==null?"":encodeURI(""+e).replace(D9,"|").replace(k9,"[").replace(I9,"]")}function R9(e){return S_(e).replace(XP,"{").replace(ZP,"}").replace(YP,"^")}function mb(e){return S_(e).replace(qP,"%2B").replace(P9,"+").replace(WP,"%23").replace(w9,"%26").replace(L9,"`").replace(XP,"{").replace(ZP,"}").replace(YP,"^")}function O9(e){return mb(e).replace(C9,"%3D")}function $9(e){return S_(e).replace(WP,"%23").replace(A9,"%3F")}function M9(e){return $9(e).replace(T9,"%2F")}function Nf(e){if(e==null)return null;try{return decodeURIComponent(""+e)}catch{}return""+e}const F9=/\/$/,B9=e=>e.replace(F9,"");function x1(e,t,n="/"){let r,s={},i="",o="";const a=t.indexOf("#");let l=t.indexOf("?");return l=a>=0&&l>a?-1:l,l>=0&&(r=t.slice(0,l),i=t.slice(l,a>0?a:t.length),s=e(i.slice(1))),a>=0&&(r=r||t.slice(0,a),o=t.slice(a,t.length)),r=j9(r??t,n),{fullPath:r+i+o,path:r,query:s,hash:Nf(o)}}function N9(e,t){const n=t.query?e(t.query):"";return t.path+(n&&"?")+n+(t.hash||"")}function vT(e,t){return!t||!e.toLowerCase().startsWith(t.toLowerCase())?e:e.slice(t.length)||"/"}function V9(e,t,n){const r=t.matched.length-1,s=n.matched.length-1;return r>-1&&r===s&&Oc(t.matched[r],n.matched[s])&&JP(t.params,n.params)&&e(t.query)===e(n.query)&&t.hash===n.hash}function Oc(e,t){return(e.aliasOf||e)===(t.aliasOf||t)}function JP(e,t){if(Object.keys(e).length!==Object.keys(t).length)return!1;for(const n in e)if(!U9(e[n],t[n]))return!1;return!0}function U9(e,t){return uo(e)?gT(e,t):uo(t)?gT(t,e):e===t}function gT(e,t){return uo(t)?e.length===t.length&&e.every((n,r)=>n===t[r]):e.length===1&&e[0]===t}function j9(e,t){if(e.startsWith("/"))return e;if(!e)return t;const n=t.split("/"),r=e.split("/"),s=r[r.length-1];(s===".."||s===".")&&r.push("");let i=n.length-1,o,a;for(o=0;o<r.length;o++)if(a=r[o],a!==".")if(a==="..")i>1&&i--;else break;return n.slice(0,i).join("/")+"/"+r.slice(o).join("/")}const Ti={path:"/",name:void 0,params:{},query:{},hash:"",fullPath:"/",matched:[],meta:{},redirectedFrom:void 0};let vb=(function(e){return e.pop="pop",e.push="push",e})({}),b1=(function(e){return e.back="back",e.forward="forward",e.unknown="",e})({});function z9(e){if(!e)if(ic){const t=document.querySelector("base");e=t&&t.getAttribute("href")||"/",e=e.replace(/^\w+:\/\/[^\/]+/,"")}else e="/";return e[0]!=="/"&&e[0]!=="#"&&(e="/"+e),B9(e)}const H9=/^[^#]+#/;function G9(e,t){return e.replace(H9,"#")+t}function K9(e,t){const n=document.documentElement.getBoundingClientRect(),r=e.getBoundingClientRect();return{behavior:t.behavior,left:r.left-n.left-(t.left||0),top:r.top-n.top-(t.top||0)}}const jg=()=>({left:window.scrollX,top:window.scrollY});function W9(e){let t;if("el"in e){const n=e.el,r=typeof n=="string"&&n.startsWith("#"),s=typeof n=="string"?r?document.getElementById(n.slice(1)):document.querySelector(n):n;if(!s)return;t=K9(s,e)}else t=e;"scrollBehavior"in document.documentElement.style?window.scrollTo(t):window.scrollTo(t.left!=null?t.left:window.scrollX,t.top!=null?t.top:window.scrollY)}
vendor: 20,079 bytes, line 4
4function yT(e,t){return(history.state?history.state.position-t:-1)+e}const gb=new Map;function q9(e,t){gb.set(e,t)}function Y9(e){const t=gb.get(e);return gb.delete(e),t}function X9(e){return typeof e=="string"||e&&typeof e=="object"}function QP(e){return typeof e=="string"||typeof e=="symbol"}let Jn=(function(e){return e[e.MATCHER_NOT_FOUND=1]="MATCHER_NOT_FOUND",e[e.NAVIGATION_GUARD_REDIRECT=2]="NAVIGATION_GUARD_REDIRECT",e[e.NAVIGATION_ABORTED=4]="NAVIGATION_ABORTED",e[e.NAVIGATION_CANCELLED=8]="NAVIGATION_CANCELLED",e[e.NAVIGATION_DUPLICATED=16]="NAVIGATION_DUPLICATED",e})({});const eR=Symbol("");Jn.MATCHER_NOT_FOUND+"",Jn.NAVIGATION_GUARD_REDIRECT+"",Jn.NAVIGATION_ABORTED+"",Jn.NAVIGATION_CANCELLED+"",Jn.NAVIGATION_DUPLICATED+"";function $c(e,t){return xn(new Error,{type:e,[eR]:!0},t)}function Jo(e,t){return e instanceof Error&&eR in e&&(t==null||!!(e.type&t))}const Z9=["params","query","hash"];function J9(e){if(typeof e=="string")return e;if(e.path!=null)return e.path;const t={};for(const n of Z9)n in e&&(t[n]=e[n]);return JSON.stringify(t,null,2)}function Q9(e){const t={};if(e===""||e==="?")return t;const n=(e[0]==="?"?e.slice(1):e).split("&");for(let r=0;r<n.length;++r){const s=n[r].replace(qP," "),i=s.indexOf("="),o=Nf(i<0?s:s.slice(0,i)),a=i<0?null:Nf(s.slice(i+1));if(o in t){let l=t[o];uo(l)||(l=t[o]=[l]),l.push(a)}else t[o]=a}return t}function xT(e){let t="";for(let n in e){const r=e[n];if(n=O9(n),r==null){r!==void 0&&(t+=(t.length?"&":"")+n);continue}(uo(r)?r.map(s=>s&&mb(s)):[r&&mb(r)]).forEach(s=>{s!==void 0&&(t+=(t.length?"&":"")+n,s!=null&&(t+="="+s))})}return t}function eU(e){const t={};for(const n in e){const r=e[n];r!==void 0&&(t[n]=uo(r)?r.map(s=>s==null?null:""+s):r==null?r:""+r)}return t}const tU=Symbol(""),bT=Symbol(""),zg=Symbol(""),E_=Symbol(""),yb=Symbol("");function Od(){let e=[];function t(r){return e.push(r),()=>{const s=e.indexOf(r);s>-1&&e.splice(s,1)}}function n(){e=[]}return{add:t,list:()=>e.slice(),reset:n}}function Wa(e,t,n,r,s,i=o=>o()){const o=r&&(r.enterCallbacks[s]=r.enterCallbacks[s]||[]);return()=>new Promise((a,l)=>{const u=f=>{f===!1?l($c(Jn.NAVIGATION_ABORTED,{from:n,to:t})):f instanceof Error?l(f):X9(f)?l($c(Jn.NAVIGATION_GUARD_REDIRECT,{from:t,to:f})):(o&&r.enterCallbacks[s]===o&&typeof f=="function"&&o.push(f),a())},c=i(()=>e.call(r&&r.instances[s],t,n,u));let d=Promise.resolve(c);e.length<3&&(d=d.then(u)),d.catch(f=>l(f))})}function _1(e,t,n,r,s=i=>i()){const i=[];for(const o of e)for(const a in o.components){let l=o.components[a];if(!(t!=="beforeRouteEnter"&&!o.instances[a]))if(KP(l)){const u=(l.__vccOpts||l)[t];u&&i.push(Wa(u,n,r,o,a,s))}else{let u=l();i.push(()=>u.then(c=>{if(!c)throw new Error(`Couldn't resolve component "${a}" at "${o.path}"`);const d=E9(c)?c.default:c;o.mods[a]=c,o.components[a]=d;const f=(d.__vccOpts||d)[t];return f&&Wa(f,n,r,o,a,s)()}))}}return i}function nU(e,t){const n=[],r=[],s=[],i=Math.max(t.matched.length,e.matched.length);for(let o=0;o<i;o++){const a=t.matched[o];a&&(e.matched.find(u=>Oc(u,a))?r.push(a):n.push(a));const l=e.matched[o];l&&(t.matched.find(u=>Oc(u,l))||s.push(l))}return[n,r,s]}let rU=()=>location.protocol+"//"+location.host;function tR(e,t){const{pathname:n,search:r,hash:s}=t,i=e.indexOf("#");if(i>-1){let o=s.includes(e.slice(i))?e.slice(i).length:1,a=s.slice(o);return a[0]!=="/"&&(a="/"+a),vT(a,"")}return vT(n,e)+r+s}function sU(e,t,n,r){let s=[],i=[],o=null;const a=({state:f})=>{const h=tR(e,location),p=n.value,m=t.value;let v=0;if(f){if(n.value=h,t.value=f,o&&o===p){o=null;return}v=m?f.position-m.position:0}else r(h);s.forEach(x=>{x(n.value,p,{delta:v,type:vb.pop,direction:v?v>0?b1.forward:b1.back:b1.unknown})})};function l(){o=n.value}function u(f){s.push(f);const h=()=>{const p=s.indexOf(f);p>-1&&s.splice(p,1)};return i.push(h),h}function c(){if(document.visibilityState==="hidden"){const{history:f}=window;if(!f.state)return;f.replaceState(xn({},f.state,{scroll:jg()}),"")}}function d(){for(const f of i)f();i=[],window.removeEventListener("popstate",a),window.removeEventListener("pagehide",c),document.removeEventListener("visibilitychange",c)}return window.addEventListener("popstate",a),window.addEventListener("pagehide",c),document.addEventListener("visibilitychange",c),{pauseListeners:l,listen:u,destroy:d}}function _T(e,t,n,r=!1,s=!1){return{back:e,current:t,forward:n,replaced:r,position:window.history.length,scroll:s?jg():null}}function iU(e){const{history:t,location:n}=window,r={value:tR(e,n)},s={value:t.state};s.value||i(r.value,{back:null,current:r.value,forward:null,position:t.length-1,replaced:!0,scroll:null},!0);function i(l,u,c){const d=e.indexOf("#"),f=d>-1?(n.host&&document.querySelector("base")?e:e.slice(d))+l:rU()+e+l;try{t[c?"replaceState":"pushState"](u,"",f),s.value=u}catch(h){console.error(h),n[c?"replace":"assign"](f)}}function o(l,u){i(l,xn({},t.state,_T(s.value.back,l,s.value.forward,!0),u,{position:s.value.position}),!0),r.value=l}function a(l,u){const c=xn({},s.value,t.state,{forward:l,scroll:jg()});i(c.current,c,!0),i(l,xn({},_T(r.value,l,null),{position:c.position+1},u),!1),r.value=l}return{location:r,state:s,push:a,replace:o}}function oU(e){e=z9(e);const t=iU(e),n=sU(e,t.state,t.location,t.replace);function r(i,o=!0){o||n.pauseListeners(),history.go(i)}const s=xn({location:"",base:e,go:r,createHref:G9.bind(null,e)},t,n);return Object.defineProperty(s,"location",{enumerable:!0,get:()=>t.location.value}),Object.defineProperty(s,"state",{enumerable:!0,get:()=>t.state.value}),s}let Xl=(function(e){return e[e.Static=0]="Static",e[e.Param=1]="Param",e[e.Group=2]="Group",e})({});var gr=(function(e){return e[e.Static=0]="Static",e[e.Param=1]="Param",e[e.ParamRegExp=2]="ParamRegExp",e[e.ParamRegExpEnd=3]="ParamRegExpEnd",e[e.EscapeNext=4]="EscapeNext",e})(gr||{});const aU={type:Xl.Static,value:""},lU=/[a-zA-Z0-9_]/;function uU(e){if(!e)return[[]];if(e==="/")return[[aU]];if(!e.startsWith("/"))throw new Error(`Invalid path "${e}"`);function t(h){throw new Error(`ERR (${n})/"${u}": ${h}`)}let n=gr.Static,r=n;const s=[];let i;function o(){i&&s.push(i),i=[]}let a=0,l,u="",c="";function d(){u&&(n===gr.Static?i.push({type:Xl.Static,value:u}):n===gr.Param||n===gr.ParamRegExp||n===gr.ParamRegExpEnd?(i.length>1&&(l==="*"||l==="+")&&t(`A repeatable param (${u}) must be alone in its segment. eg: '/:ids+.`),i.push({type:Xl.Param,value:u,regexp:c,repeatable:l==="*"||l==="+",optional:l==="*"||l==="?"})):t("Invalid state to consume buffer"),u="")}function f(){u+=l}for(;a<e.length;){if(l=e[a++],l==="\\"&&n!==gr.ParamRegExp){r=n,n=gr.EscapeNext;continue}switch(n){case gr.Static:l==="/"?(u&&d(),o()):l===":"?(d(),n=gr.Param):f();break;case gr.EscapeNext:f(),n=r;break;case gr.Param:l==="("?n=gr.ParamRegExp:lU.test(l)?f():(d(),n=gr.Static,l!=="*"&&l!=="?"&&l!=="+"&&a--);break;case gr.ParamRegExp:l===")"?c[c.length-1]=="\\"?c=c.slice(0,-1)+l:n=gr.ParamRegExpEnd:c+=l;break;case gr.ParamRegExpEnd:d(),n=gr.Static,l!=="*"&&l!=="?"&&l!=="+"&&a--,c="";break;default:t("Unknown state");break}}return n===gr.ParamRegExp&&t(`Unfinished custom RegExp for param "${u}"`),d(),o(),s}const ST="[^/]+?",cU={sensitive:!1,strict:!1,start:!0,end:!0};var bs=(function(e){return e[e._multiplier=10]="_multiplier",e[e.Root=90]="Root",e[e.Segment=40]="Segment",e[e.SubSegment=30]="SubSegment",e[e.Static=40]="Static",e[e.Dynamic=20]="Dynamic",e[e.BonusCustomRegExp=10]="BonusCustomRegExp",e[e.BonusWildcard=-50]="BonusWildcard",e[e.BonusRepeatable=-20]="BonusRepeatable",e[e.BonusOptional=-8]="BonusOptional",e[e.BonusStrict=.7000000000000001]="BonusStrict",e[e.BonusCaseSensitive=.25]="BonusCaseSensitive",e})(bs||{});const dU=/[.+*?^${}()[\]/\\]/g;function fU(e,t){const n=xn({},cU,t),r=[];let s=n.start?"^":"";const i=[];for(const u of e){const c=u.length?[]:[bs.Root];n.strict&&!u.length&&(s+="/");for(let d=0;d<u.length;d++){const f=u[d];let h=bs.Segment+(n.sensitive?bs.BonusCaseSensitive:0);if(f.type===Xl.Static)d||(s+="/"),s+=f.value.replace(dU,"\\$&"),h+=bs.Static;else if(f.type===Xl.Param){const{value:p,repeatable:m,optional:v,regexp:x}=f;i.push({name:p,repeatable:m,optional:v});const g=x||ST;if(g!==ST){h+=bs.BonusCustomRegExp;try{`${g}`}catch(_){throw new Error(`Invalid custom RegExp for param "${p}" (${g}): `+_.message)}}let y=m?`((?:${g})(?:/(?:${g}))*)`:`(${g})`;d||(y=v&&u.length<2?`(?:/${y})`:"/"+y),v&&(y+="?"),s+=y,h+=bs.Dynamic,v&&(h+=bs.BonusOptional),m&&(h+=bs.BonusRepeatable),g===".*"&&(h+=bs.BonusWildcard)}c.push(h)}r.push(c)}if(n.strict&&n.end){const u=r.length-1;r[u][r[u].length-1]+=bs.BonusStrict}n.strict||(s+="/?"),n.end?s+="$":n.strict&&!s.endsWith("/")&&(s+="(?:/|$)");const o=new RegExp(s,n.sensitive?"":"i");function a(u){const c=u.match(o),d={};if(!c)return null;for(let f=1;f<c.length;f++){const h=c[f]||"",p=i[f-1];d[p.name]=h&&p.repeatable?h.split("/"):h}return d}function l(u){let c="",d=!1;for(const f of e){(!d||!c.endsWith("/"))&&(c+="/"),d=!1;for(const h of f)if(h.type===Xl.Static)c+=h.value;else if(h.type===Xl.Param){const{value:p,repeatable:m,optional:v}=h,x=p in u?u[p]:"";if(uo(x)&&!m)throw new Error(`Provided param "${p}" is an array but it is not repeatable (* or + modifiers)`);const g=uo(x)?x.join("/"):x;if(!g)if(v)f.length<2&&(c.endsWith("/")?c=c.slice(0,-1):d=!0);else throw new Error(`Missing required param "${p}"`);c+=g}}return c||"/"}return{re:o,score:r,keys:i,parse:a,stringify:l}}function hU(e,t){let n=0;for(;n<e.length&&n<t.length;){const r=t[n]-e[n];if(r)return r;n++}return e.length<t.length?e.length===1&&e[0]===bs.Static+bs.Segment?-1:1:e.length>t.length?t.length===1&&t[0]===bs.Static+bs.Segment?1:-1:0}function nR(e,t){let n=0;const r=e.score,s=t.score;for(;n<r.length&&n<s.length;){const i=hU(r[n],s[n]);if(i)return i;n++}if(Math.abs(s.length-r.length)===1){if(ET(r))return 1;if(ET(s))return-1}return s.length-r.length}function ET(e){const t=e[e.length-1];return e.length>0&&t[t.length-1]<0}const pU={strict:!1,end:!0,sensitive:!1};function mU(e,t,n){const r=fU(uU(e.path),n),s=xn(r,{record:e,parent:t,children:[],alias:[]});return t&&!s.record.aliasOf==!t.record.aliasOf&&t.children.push(s),s}function vU(e,t){const n=[],r=new Map;t=mT(pU,t);function s(d){return r.get(d)}function i(d,f,h){const p=!h,m=TT(d);m.aliasOf=h&&h.record;const v=mT(t,d),x=[m];if("alias"in d){const _=typeof d.alias=="string"?[d.alias]:d.alias;for(const E of _)x.push(TT(xn({},m,{components:h?h.record.components:m.components,path:E,aliasOf:h?h.record:m})))}let g,y;for(const _ of x){const{path:E}=_;if(f&&E[0]!=="/"){const w=f.record.path,T=w[w.length-1]==="/"?"":"/";_.path=f.record.path+(E&&T+E)}if(g=mU(_,f,v),h?h.alias.push(g):(y=y||g,y!==g&&y.alias.push(g),p&&d.name&&!CT(g)&&o(d.name)),rR(g)&&l(g),m.children){const w=m.children;for(let T=0;T<w.length;T++)i(w[T],g,h&&h.children[T])}h=h||g}return y?()=>{o(y)}:pf}function o(d){if(QP(d)){const f=r.get(d);f&&(r.delete(d),n.splice(n.indexOf(f),1),f.children.forEach(o),f.alias.forEach(o))}else{const f=n.indexOf(d);f>-1&&(n.splice(f,1),d.record.name&&r.delete(d.record.name),d.children.forEach(o),d.alias.forEach(o))}}function a(){return n}function l(d){const f=xU(d,n);n.splice(f,0,d),d.record.name&&!CT(d)&&r.set(d.record.name,d)}function u(d,f){let h,p={},m,v;if("name"in d&&d.name){if(h=r.get(d.name),!h)throw $c(Jn.MATCHER_NOT_FOUND,{location:d});v=h.record.name,p=xn(wT(f.params,h.keys.filter(y=>!y.optional).concat(h.parent?h.parent.keys.filter(y=>y.optional):[]).map(y=>y.name)),d.params&&wT(d.params,h.keys.map(y=>y.name))),m=h.stringify(p)}else if(d.path!=null)m=d.path,h=n.find(y=>y.re.test(m)),h&&(p=h.parse(m),v=h.record.name);else{if(h=f.name?r.get(f.name):n.find(y=>y.re.test(f.path)),!h)throw $c(Jn.MATCHER_NOT_FOUND,{location:d,currentLocation:f});v=h.record.name,p=xn({},f.params,d.params),m=h.stringify(p)}const x=[];let g=h;for(;g;)x.unshift(g.record),g=g.parent;return{name:v,path:m,params:p,matched:x,meta:yU(x)}}e.forEach(d=>i(d));function c(){n.length=0,r.clear()}return{addRoute:i,resolve:u,removeRoute:o,clearRoutes:c,getRoutes:a,getRecordMatcher:s}}function wT(e,t){const n={};for(const r of t)r in e&&(n[r]=e[r]);return n}function TT(e){const t={path:e.path,redirect:e.redirect,name:e.name,meta:e.meta||{},aliasOf:e.aliasOf,beforeEnter:e.beforeEnter,props:gU(e),children:e.children||[],instances:{},leaveGuards:new Set,updateGuards:new Set,enterCallbacks:{},components:"components"in e?e.components||null:e.component&&{default:e.component}};return Object.defineProperty(t,"mods",{value:{}}),t}function gU(e){const t={},n=e.props||!1;if("component"in e)t.default=n;else for(const r in e.components)t[r]=typeof n=="object"?n[r]:n;return t}function CT(e){for(;e;){if(e.record.aliasOf)return!0;e=e.parent}return!1}function yU(e){return e.reduce((t,n)=>xn(t,n.meta),{})}function xU(e,t){let n=0,r=t.length;for(;n!==r;){const i=n+r>>1;nR(e,t[i])<0?r=i:n=i+1}const s=bU(e);return s&&(r=t.lastIndexOf(s,r-1)),r}function bU(e){let t=e;for(;t=t.parent;)if(rR(t)&&nR(e,t)===0)return t}function rR({record:e}){return!!(e.name||e.components&&Object.keys(e.components).length||e.redirect)}function AT(e){const t=mt(zg),n=mt(E_),r=F(()=>{const l=b(e.to);return t.resolve(l)}),s=F(()=>{const{matched:l}=r.value,{length:u}=l,c=l[u-1],d=n.matched;if(!c||!d.length)return-1;const f=d.findIndex(Oc.bind(null,c));if(f>-1)return f;const h=kT(l[u-2]);return u>1&&kT(c)===h&&d[d.length-1].path!==h?d.findIndex(Oc.bind(null,l[u-2])):f}),i=F(()=>s.value>-1&&TU(n.params,r.value.params)),o=F(()=>s.value>-1&&s.value===n.matched.length-1&&JP(n.params,r.value.params));function a(l={}){if(wU(l)){const u=t[b(e.replace)?"replace":"push"](b(e.to)).catch(pf);return e.viewTransition&&typeof document<"u"&&"startViewTransition"in document&&document.startViewTransition(()=>u),u}return Promise.resolve()}return{route:r,href:F(()=>r.value.href),isActive:i,isExactActive:o,navigate:a}}function _U(e){return e.length===1?e[0]:e}const SU=ke({name:"RouterLink",compatConfig:{MODE:3},props:{to:{type:[String,Object],required:!0},replace:Boolean,activeClass:String,exactActiveClass:String,custom:Boolean,ariaCurrentValue:{type:String,default:"page"},viewTransition:Boolean},useLink:AT,setup(e,{slots:t}){const n=Wt(AT(e)),{options:r}=mt(zg),s=F(()=>({[IT(e.activeClass,r.linkActiveClass,"router-link-active")]:n.isActive,[IT(e.exactActiveClass,r.linkExactActiveClass,"router-link-exact-active")]:n.isExactActive}));return()=>{const i=t.default&&_U(t.default(n));return e.custom?i:Dt("a",{"aria-current":n.isExactActive?e.ariaCurrentValue:null,href:n.href,onClick:n.navigate,class:s.value},i)}}}),EU=SU;function wU(e){if(!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)&&!e.defaultPrevented&&!(e.button!==void 0&&e.button!==0)){if(e.currentTarget&&e.currentTarget.getAttribute){const t=e.currentTarget.getAttribute("target");if(/\b_blank\b/i.test(t))return}return e.preventDefault&&e.preventDefault(),!0}}function TU(e,t){for(const n in t){const r=t[n],s=e[n];if(typeof r=="string"){if(r!==s)return!1}else if(!uo(s)||s.length!==r.length||r.some((i,o)=>i!==s[o]))return!1}return!0}function kT(e){return e?e.aliasOf?e.aliasOf.path:e.path:""}const IT=(e,t,n)=>e??t??n,CU=ke({name:"RouterView",inheritAttrs:!1,props:{name:{type:String,default:"default"},route:Object},compatConfig:{MODE:3},setup(e,{attrs:t,slots:n}){const r=mt(yb),s=F(()=>e.route||r.value),i=mt(bT,0),o=F(()=>{let u=b(i);const{matched:c}=s.value;let d;for(;(d=c[u])&&!d.components;)u++;return u}),a=F(()=>s.value.matched[o.value]);Cn(bT,F(()=>o.value+1)),Cn(tU,a),Cn(yb,s);const l=M();return be(()=>[l.value,a.value,e.name],([u,c,d],[f,h,p])=>{c&&(c.instances[d]=u,h&&h!==c&&u&&u===f&&(c.leaveGuards.size||(c.leaveGuards=h.leaveGuards),c.updateGuards.size||(c.updateGuards=h.updateGuards))),u&&c&&(!h||!Oc(c,h)||!f)&&(c.enterCallbacks[d]||[]).forEach(m=>m(u))},{flush:"post"}),()=>{const u=s.value,c=e.name,d=a.value,f=d&&d.components[c];if(!f)return LT(n.default,{Component:f,route:u});const h=d.props[c],p=h?h===!0?u.params:typeof h=="function"?h(u):h:null,v=Dt(f,xn({},p,t,{onVnodeUnmounted:x=>{x.component.isUnmounted&&(d.instances[c]=null)},ref:l}));return LT(n.default,{Component:v,route:u})||v}}});function LT(e,t){if(!e)return null;const n=e(t);return n.length===1?n[0]:n}const sR=CU;function AU(e){const t=vU(e.routes,e),n=e.parseQuery||Q9,r=e.stringifyQuery||xT,s=e.history,i=Od(),o=Od(),a=Od(),l=Ze(Ti);let u=Ti;ic&&e.scrollBehavior&&"scrollRestoration"in history&&(history.scrollRestoration="manual");const c=y1.bind(null,K=>""+K),d=y1.bind(null,M9),f=y1.bind(null,Nf);function h(K,ee){let ae,ue;return QP(K)?(ae=t.getRecordMatcher(K),ue=ee):ue=K,t.addRoute(ue,ae)}function p(K){const ee=t.getRecordMatcher(K);ee&&t.removeRoute(ee)}function m(){return t.getRoutes().map(K=>K.record)}function v(K){return!!t.getRecordMatcher(K)}function x(K,ee){if(ee=xn({},ee||l.value),typeof K=="string"){const Y=x1(n,K,ee.path),fe=t.resolve({path:Y.path},ee),xe=s.createHref(Y.fullPath);return xn(Y,fe,{params:f(fe.params),hash:Nf(Y.hash),redirectedFrom:void 0,href:xe})}let ae;if(K.path!=null)ae=xn({},K,{path:x1(n,K.path,ee.path).path});else{const Y=xn({},K.params);for(const fe in Y)Y[fe]==null&&delete Y[fe];ae=xn({},K,{params:d(Y)}),ee.params=d(ee.params)}const ue=t.resolve(ae,ee),Ee=K.hash||"";ue.params=c(f(ue.params));const _e=N9(r,xn({},K,{hash:R9(Ee),path:ue.path})),J=s.createHref(_e);return xn({fullPath:_e,hash:Ee,query:r===xT?eU(K.query):K.query||{}},ue,{redirectedFrom:void 0,href:J})}function g(K){return typeof K=="string"?x1(n,K,l.value.path):xn({},K)}function y(K,ee){if(u!==K)return $c(Jn.NAVIGATION_CANCELLED,{from:ee,to:K})}function _(K){return T(K)}function E(K){return _(xn(g(K),{replace:!0}))}function w(K,ee){const ae=K.matched[K.matched.length-1];if(ae&&ae.redirect){const{redirect:ue}=ae;let Ee=typeof ue=="function"?ue(K,ee):ue;return typeof Ee=="string"&&(Ee=Ee.includes("?")||Ee.includes("#")?Ee=g(Ee):{path:Ee},Ee.params={}),xn({query:K.query,hash:K.hash,params:Ee.path!=null?{}:K.params},Ee)}}function T(K,ee){const ae=u=x(K),ue=l.value,Ee=K.state,_e=K.force,J=K.replace===!0,Y=w(ae,ue);if(Y)return T(xn(g(Y),{state:typeof Y=="object"?xn({},Ee,Y.state):Ee,force:_e,replace:J}),ee||ae);const fe=ae;fe.redirectedFrom=ee;let xe;return!_e&&V9(r,ue,ae)&&(xe=$c(Jn.NAVIGATION_DUPLICATED,{to:fe,from:ue}),W(ue,ue,!0,!1)),(xe?Promise.resolve(xe):k(fe,ue)).catch(ne=>Jo(ne)?Jo(ne,Jn.NAVIGATION_GUARD_REDIRECT)?ne:re(ne):V(ne,fe,ue)).then(ne=>{if(ne){if(Jo(ne,Jn.NAVIGATION_GUARD_REDIRECT))return T(xn({replace:J},g(ne.to),{state:typeof ne.to=="object"?xn({},Ee,ne.to.state):Ee,force:_e}),ee||fe)}else ne=R(fe,ue,!0,J,Ee);return $(fe,ue,ne),ne})}function C(K,ee){const ae=y(K,ee);return ae?Promise.reject(ae):Promise.resolve()}function I(K){const ee=le.values().next().value;return ee&&typeof ee.runWithContext=="function"?ee.runWithContext(K):K()}function k(K,ee){let ae;const[ue,Ee,_e]=nU(K,ee);ae=_1(ue.reverse(),"beforeRouteLeave",K,ee);for(const Y of ue)Y.leaveGuards.forEach(fe=>{ae.push(Wa(fe,K,ee))});const J=C.bind(null,K,ee);return ae.push(J),oe(ae).then(()=>{ae=[];for(const Y of i.list())ae.push(Wa(Y,K,ee));return ae.push(J),oe(ae)}).then(()=>{ae=_1(Ee,"beforeRouteUpdate",K,ee);for(const Y of Ee)Y.updateGuards.forEach(fe=>{ae.push(Wa(fe,K,ee))});return ae.push(J),oe(ae)}).then(()=>{ae=[];for(const Y of _e)if(Y.beforeEnter)if(uo(Y.beforeEnter))for(const fe of Y.beforeEnter)ae.push(Wa(fe,K,ee));else ae.push(Wa(Y.beforeEnter,K,ee));return ae.push(J),oe(ae)}).then(()=>(K.matched.forEach(Y=>Y.enterCallbacks={}),ae=_1(_e,"beforeRouteEnter",K,ee,I),ae.push(J),oe(ae))).then(()=>{ae=[];for(const Y of o.list())ae.push(Wa(Y,K,ee));return ae.push(J),oe(ae)}).catch(Y=>Jo(Y,Jn.NAVIGATION_CANCELLED)?Y:Promise.reject(Y))}function $(K,ee,ae){a.list().forEach(ue=>I(()=>ue(K,ee,ae)))}function R(K,ee,ae,ue,Ee){const _e=y(K,ee);if(_e)return _e;const J=ee===Ti,Y=ic?history.state:{};ae&&(ue||J?s.replace(K.fullPath,xn({scroll:J&&Y&&Y.scroll},Ee)):s.push(K.fullPath,Ee)),l.value=K,W(K,ee,ae,J),re()}let D;function O(){D||(D=s.listen((K,ee,ae)=>{if(!ve.listening)return;const ue=x(K),Ee=w(ue,ve.currentRoute.value);if(Ee){T(xn(Ee,{replace:!0,force:!0}),ue).catch(pf);return}u=ue;const _e=l.value;
4ic&&q9(yT(_e.fullPath,ae.delta),jg()),k(ue,_e).catch(J=>Jo(J,Jn.NAVIGATION_ABORTED|Jn.NAVIGATION_CANCELLED)?J:Jo(J,Jn.NAVIGATION_GUARD_REDIRECT)?(T(xn(g(J.to),{force:!0}),ue).then(Y=>{Jo(Y,Jn.NAVIGATION_ABORTED|Jn.NAVIGATION_DUPLICATED)&&!ae.delta&&ae.type===vb.pop&&s.go(-1,!1)}).catch(pf),Promise.reject()):(ae.delta&&s.go(-ae.delta,!1),V(J,ue,_e))).then(J=>{J=J||R(ue,_e,!1),J&&(ae.delta&&!Jo(J,Jn.NAVIGATION_CANCELLED)?s.go(-ae.delta,!1):ae.type===vb.pop&&Jo(J,Jn.NAVIGATION_ABORTED|Jn.NAVIGATION_DUPLICATED)&&s.go(-1,!1)),$(ue,_e,J)}).catch(pf)}))}let B=Od(),U=Od(),N;function V(K,ee,ae){re(K);const ue=U.list();return ue.length?ue.forEach(Ee=>Ee(K,ee,ae)):console.error(K),Promise.reject(K)}function H(){return N&&l.value!==Ti?Promise.resolve():new Promise((K,ee)=>{B.add([K,ee])})}function re(K){return N||(N=!K,O(),B.list().forEach(([ee,ae])=>K?ae(K):ee()),B.reset()),K}function W(K,ee,ae,ue){const{scrollBehavior:Ee}=e;if(!ic||!Ee)return Promise.resolve();const _e=!ae&&Y9(yT(K.fullPath,0))||(ue||!ae)&&history.state&&history.state.scroll||null;return tt().then(()=>Ee(K,ee,_e)).then(J=>J&&W9(J)).catch(J=>V(J,K,ee))}const X=K=>s.go(K);let Q;const le=new Set,ve={currentRoute:l,listening:!0,addRoute:h,removeRoute:p,clearRoutes:t.clearRoutes,hasRoute:v,getRoutes:m,resolve:x,options:e,push:_,replace:E,go:X,back:()=>X(-1),forward:()=>X(1),beforeEach:i.add,beforeResolve:o.add,afterEach:a.add,onError:U.add,isReady:H,install(K){K.component("RouterLink",EU),K.component("RouterView",sR),K.config.globalProperties.$router=ve,Object.defineProperty(K.config.globalProperties,"$route",{enumerable:!0,get:()=>b(l)}),ic&&!Q&&l.value===Ti&&(Q=!0,_(s.location).catch(ue=>{}));const ee={};for(const ue in Ti)Object.defineProperty(ee,ue,{get:()=>l.value[ue],enumerable:!0});K.provide(zg,ve),K.provide(E_,so(ee)),K.provide(yb,l);const ae=K.unmount;le.add(K),K.unmount=function(){le.delete(K),le.size<1&&(u=Ti,D&&D(),D=null,l.value=Ti,Q=!1,N=!1),ae()}}};function oe(K){return K.reduce((ee,ae)=>ee.then(()=>I(ae)),Promise.resolve())}return ve}function w_(){return mt(zg)}function kh(e){return mt(E_)}const kU=/(:\w+)\([^)]+\)/g,IU=/(:\w+)[?+*]/g,LU=/:\w+/g,DU=(e,t)=>t.path.replace(kU,"$1").replace(IU,"$1").replace(LU,n=>e.params[n.slice(1)]?.toString()||""),xb=(e,t)=>{const n=e.route.matched.find(s=>s.components?.default===e.Component.type),r=t??n?.meta.key??(n&&DU(e.route,n));return typeof r=="function"?r(e.route):r},PU=(e,t)=>({default:()=>e?Dt(Ic,e===!0?{}:e,t):t});function T_(e){return Array.isArray(e)?e:[e]}const RU="modulepreload",OU=function(e,t){return new URL(e,t).href},DT={},Te=function(t,n,r){let s=Promise.resolve();if(n&&n.length>0){let u=function(c){return Promise.all(c.map(d=>Promise.resolve(d).then(f=>({status:"fulfilled",value:f}),f=>({status:"rejected",reason:f}))))};const o=document.getElementsByTagName("link"),a=document.querySelector("meta[property=csp-nonce]"),l=a?.nonce||a?.getAttribute("nonce");s=u(n.map(c=>{if(c=OU(c,r),c in DT)return;DT[c]=!0;const d=c.endsWith(".css"),f=d?'[rel="stylesheet"]':"";if(r)for(let p=o.length-1;p>=0;p--){const m=o[p];if(m.href===c&&(!d||m.rel==="stylesheet"))return}else if(document.querySelector(`link[href="${c}"]${f}`))return;const h=document.createElement("link");if(h.rel=d?"stylesheet":RU,d||(h.as="script"),h.crossOrigin="",h.href=c,l&&h.setAttribute("nonce",l),document.head.appendChild(h),d)return new Promise((p,m)=>{h.addEventListener("load",p),h.addEventListener("error",()=>m(new Error(`Unable to preload CSS for ${c}`)))})}))}function i(o){const a=new Event("vite:preloadError",{cancelable:!0});if(a.payload=o,window.dispatchEvent(a),!a.defaultPrevented)throw o}return s.then(o=>{for(const a of o||[])a.status==="rejected"&&i(a.reason);return t().catch(i)})},$U={title:"收藏管理",auth:!0},MU={title:"",auth:!0,hideAppBar:!0},FU={title:"登录"},BU={title:"个人中心",showAppBar:!0},NU={title:"找回密码"},VU={title:"积分明细",auth:!0},UU={auth:!0},jU={auth:!0},zU={title:"历史记录"},HU={title:"注册"},GU={hideBanner:!0,hideIcon:!0},KU={title:"社区",keepalive:!0},WU={title:"生成历史",auth:!0}
4,qU={title:"添加到桌面",showAppBar:!0},YU={title:"用户主页"},XU={title:"帖子详情"},S1=[{name:"404",path:"/404",component:()=>Te(()=>Promise.resolve().then(()=>E8),void 0,import.meta.url)},{name:"main",path:"/main",component:()=>Te(()=>Promise.resolve().then(()=>Lne),void 0,import.meta.url)},{name:"enter",path:"/enter",component:()=>Te(()=>Promise.resolve().then(()=>kne),void 0,import.meta.url)},{name:"index",path:"/",component:()=>Te(()=>Promise.resolve().then(()=>Qge),void 0,import.meta.url)},{name:"hlmain",path:"/hlmain",component:()=>Te(()=>Promise.resolve().then(()=>tye),void 0,import.meta.url)},{name:"user-fav",path:"/user/fav",meta:$U||{},component:()=>Te(()=>Promise.resolve().then(()=>aye),void 0,import.meta.url)},{name:"user-post",path:"/user/post",meta:MU||{},component:()=>Te(()=>Promise.resolve().then(()=>Mye),void 0,import.meta.url)},{name:"auth-login",path:"/auth/login",meta:FU||{},component:()=>Te(()=>Promise.resolve().then(()=>Vye),void 0,import.meta.url)},{name:"user",path:"/user",meta:BU||{},component:()=>Te(()=>Promise.resolve().then(()=>y1e),void 0,import.meta.url)},{name:"auth-forget",path:"/auth/forget",meta:NU||{},component:()=>Te(()=>Promise.resolve().then(()=>C1e),void 0,import.meta.url)},{name:"html-sub-sj",path:"/html/sub/sj",component:()=>Te(()=>Promise.resolve().then(()=>m$),void 0,import.meta.url)},{name:"user-credit",path:"/user/credit",meta:VU||{},component:()=>Te(()=>Promise.resolve().then(()=>Wxe),void 0,import.meta.url)},{name:"user-follow",path:"/user/follow",meta:UU||{},component:()=>Te(()=>Promise.resolve().then(()=>mbe),void 0,import.meta.url)},{name:"user-notify",path:"/user/notify",meta:jU||{},component:()=>Te(()=>Promise.resolve().then(()=>Qbe),void 0,import.meta.url)},{name:"html-sub-nvl",path:"/html/sub/nvl",component:()=>Te(()=>Promise.resolve().then(()=>_$),void 0,import.meta.url)},{name:"html-sub-pic",path:"/html/sub/pic",component:()=>Te(()=>Promise.resolve().then(()=>S$),void 0,import.meta.url)},{name:"html-sub-vod",path:"/html/sub/vod",component:()=>Te(()=>Promise.resolve().then(()=>E$),void 0,import.meta.url)},{name:"user-history",path:"/user/history",meta:zU||{},component:()=>Te(()=>Promise.resolve().then(()=>v2e),void 0,import.meta.url)},{name:"auth-register",path:"/auth/register",meta:HU||{},component:()=>Te(()=>Promise.resolve().then(()=>b2e),void 0,import.meta.url)},{name:"html-sub-down",path:"/html/sub/down",component:()=>Te(()=>Promise.resolve().then(()=>T$),void 0,import.meta.url)},{name:"html-sub-game",path:"/html/sub/game",meta:GU||{},component:()=>Te(()=>Promise.resolve().then(()=>C$),void 0,import.meta.url)},{name:"html-sub-help",path:"/html/sub/help",component:()=>Te(()=>Promise.resolve().then(()=>A$),void 0,import.meta.url)},{name:"html-sub-land",path:"/html/sub/land",component:()=>Te(()=>Promise.resolve().then(()=>L$),void 0,import.meta.url)},{name:"html-sub-main",path:"/html/sub/main",component:()=>Te(()=>Promise.resolve().then(()=>D$),void 0,import.meta.url)},{name:"html-sub-post",path:"/html/sub/post",meta:KU||{},component:()=>Te(()=>Promise.resolve().then(()=>R$),void 0,import.meta.url)},{name:"user-register",path:"/user/register",component:()=>Te(()=>Promise.resolve().then(()=>sSe),void 0,import.meta.url)},{name:"user-timeline",path:"/user/timeline",component:()=>Te(()=>Promise.resolve().then(()=>fSe),void 0,import.meta.url)},{name:"html-slug",path:"/html/:slug(.*)*",component:()=>Te(()=>Promise.resolve().then(()=>mSe),void 0,import.meta.url)},{name:"html-sub-actor",path:"/html/sub/actor",component:()=>Te(()=>Promise.resolve().then(()=>M$),void 0,import.meta.url)},{name:"html-sub-enter",path:"/html/sub/enter",component:()=>Te(()=>Promise.resolve().then(()=>F$),void 0,import.meta.url)},{name:"html-sub",path:"/html/sub",component:()=>Te(()=>Promise.resolve().then(()=>B$),void 0,import.meta.url)},{name:"user-slug",path:"/user/:slug(.*)*",component:()=>Te(()=>Promise.resolve().then(()=>kSe),void 0,import.meta.url)},{name:"user-share_doc",path:"/user/share_doc",component:()=>Te(()=>Promise.resolve().then(()=>NSe),void 0,import.meta.url)},{name:"html-sub-search",path:"/html/sub/search",component:()=>Te(()=>Promise.resolve().then(()=>U$),void 0,import.meta.url)},{name:"user-ai-history",path:"/user/ai-history",meta:WU||{},component:()=>Te(()=>Promise.resolve().then(()=>pEe),void 0,import.meta.url)}
4,{name:"hlhtml-slug",path:"/hlhtml/:slug(.*)*",component:()=>Te(()=>Promise.resolve().then(()=>vEe),void 0,import.meta.url)},{name:"html-sub-webclip",path:"/html/sub/webclip",meta:qU||{},component:()=>Te(()=>Promise.resolve().then(()=>j$),void 0,import.meta.url)},{name:"u-uid-slug",path:"/u/:uid()/:slug(.*)*",meta:YU||{},component:()=>Te(()=>Promise.resolve().then(()=>qEe),void 0,import.meta.url)},{name:"html-sub-sj_detail",path:"/html/sub/sj_detail",component:()=>Te(()=>Promise.resolve().then(()=>W$),void 0,import.meta.url)},{name:"html-sub-xz_detail",path:"/html/sub/xz_detail",component:()=>Te(()=>Promise.resolve().then(()=>Y$),void 0,import.meta.url)},{name:"html-sub-nvl_detail",path:"/html/sub/nvl_detail",component:()=>Te(()=>Promise.resolve().then(()=>Z$),void 0,import.meta.url)},{name:"html-sub-pic_detail",path:"/html/sub/pic_detail",component:()=>Te(()=>Promise.resolve().then(()=>J$),void 0,import.meta.url)},{name:"html-sub-vod_detail",path:"/html/sub/vod_detail",component:()=>Te(()=>Promise.resolve().then(()=>Q$),void 0,import.meta.url)},{name:"html-sub-down_detail",path:"/html/sub/down_detail",component:()=>Te(()=>Promise.resolve().then(()=>nM),void 0,import.meta.url)},{name:"html-sub-post_detail",path:"/html/sub/post_detail",meta:XU||{},component:()=>Te(()=>Promise.resolve().then(()=>rM),void 0,import.meta.url)},{name:"html-sub-actor_detail",path:"/html/sub/actor_detail",component:()=>Te(()=>Promise.resolve().then(()=>sM),void 0,import.meta.url)}],iR=(e,t)=>({default:()=>e?Dt(No,e===!0?{}:e,t):t.default?.()}),ZU=/(:\w+)\([^)]+\)/g,JU=/(:\w+)[?+*]/g,QU=/:\w+/g;function PT(e){const t=e?.meta.key??e.path.replace(ZU,"$1").replace(JU,"$1").replace(QU,n=>e.params[n.slice(1)]?.toString()||"");return typeof t=="function"?t(e):t}function ej(e,t){return e===t||t===Ti?!1:PT(e)!==PT(t)?!0:!e.matched.every((r,s)=>r.components&&r.components.default===t.matched[s]?.components?.default)}const tj={scrollBehavior(e,t,n){const r=wt(),s=Tt().options?.scrollBehaviorType??"auto";if(e.path.replace(/\/$/,"")===t.path.replace(/\/$/,""))return t.hash&&!e.hash?{left:0,top:0}:e.hash?{el:e.hash,top:oR(e.hash),behavior:s}:!1;if((typeof e.meta.scrollToTop=="function"?e.meta.scrollToTop(e,t):e.meta.scrollToTop)===!1)return!1;const o=r._runningTransition?"page:transition:finish":"page:loading:end";return new Promise(a=>{if(t===Ti){a(RT(e,t,n,s));return}r.hooks.hookOnce(o,()=>{requestAnimationFrame(()=>a(RT(e,t,n,s)))})})}};function oR(e){try{const t=document.querySelector(e);if(t)return(Number.parseFloat(getComputedStyle(t).scrollMarginTop)||0)+(Number.parseFloat(getComputedStyle(document.documentElement).scrollPaddingTop)||0)}catch{}return 0}function RT(e,t,n,r){if(n)return n;const s=ej(e,t);return e.hash?{el:e.hash,top:oR(e.hash),behavior:s?r:"instant"}:{left:0,top:0}}const nj={hashMode:!1,scrollBehaviorType:"auto"},Fa={...nj,...tj},rj=async(e,t)=>{let n,r;if(!e.meta?.validate)return;const s=([n,r]=hf(()=>Promise.resolve(e.meta.validate(e))),n=await n,r(),n);if(s===!0)return;const i=cl({fatal:!0,statusCode:s&&s.statusCode||404,statusMessage:s&&s.statusMessage||`Page Not Found: ${e.fullPath}`,data:{path:e.fullPath}});return typeof window<"u"&&window.history.pushState({},"",t.fullPath),i};function C_(e="",t){if(!t)return e||window.location.href;if(t=t.trim(),/^https?:\/\//i.test(t))return t;if(t.startsWith("//"))return`${window.location.protocol}${t}`;let n="";try{n=new URL(e).origin}catch{const s=document.createElement("a");s.href=e,n=s.protocol+"//"+s.host}const r=t.startsWith("/")?`${n}${t}`:`${e.replace(/\/$/,"")}/${t.replace(/^\//,"")}`;try{return new URL(r,window.location.href).href}catch{const s=document.createElement("a");return s.href=r,s.href}}function A_(e){return El()?(qn(e),!0):!1}function E1(){const e=new Set,t=s=>{e.delete(s)};return{on:s=>{e.add(s);const i=()=>t(s);return A_(i),{off:i}},off:t,trigger:(...s)=>Promise.all(Array.from(e).map(i=>i(...s)))}}function Ws(e){let t=0,n,r;const s=()=>{t-=1,r&&t<=0&&(r.stop(),n=void 0,r=void 0)};return(...i)=>(t+=1,n||(r=fl(!0),n=r.run(()=>e(...i))),A_(s),n)}function Ci(e){return typeof e=="function"?e():b(e)}const sj=typeof window<"u"&&typeof document<"u";typeof WorkerGlobalScope<"u"&&globalThis instanceof WorkerGlobalScope;const ij=Object.prototype.toString,oj=e=>ij.call(e)==="[object Object]",ml=()=>{};function k_(e,t){function n(...r){return new Promise((s,i)=>{Promise.resolve(e(()=>t.apply(this,r),{fn:t,thisArg:this,args:r})).then(s).catch(i)})}return n}const aR=e=>e();function aj(e,t={}){let n,r,s=ml;const i=a=>{clearTimeout(a),s(),s=ml};return a=>{const l=Ci(e),u=Ci(t.maxWait);return n&&i(n),l<=0||u!==void 0&&u<=0?(r&&(i(r),r=null),Promise.resolve(a())):new Promise((c,d)=>{s=t.rejectOnCancel?d:c,u&&!r&&(r=setTimeout(()=>{n&&i(n),r=null,c(a())},u)),n=setTimeout(()=>{r&&i(r),r=null,c(a())},l)})}}function lj(...e){let t=0,n,r=!0,s=ml,i,o,a,l,u;!Ce(e[0])&&typeof e[0]=="object"?{delay:o,trailing:a=!0,leading:l=!0,rejectOnCancel:u=!1}=e[0]:[o,a=!0,l=!0,u=!1]=e;const c=()=>{n&&(clearTimeout(n),n=void 0,s(),s=ml)};return f=>{const h=Ci(o),p=Date.now()-t,m=()=>i=f();return c(),h<=0?(t=Date.now(),m()):(p>h&&(l||!r)?(t=Date.now(),m()):a&&(i=new Promise((v,x)=>{s=u?x:v,n=setTimeout(()=>{t=Date.now(),r=!0,v(m()),c()},Math.max(0,h-p))})),!l&&!n&&(n=setTimeout(()=>r=!0,h)),r=!1,i)}}function uj(e=aR){const t=M(!0);function n(){t.value=!1}function r(){t.value=!0}const s=(...i)=>{t.value&&e(...i)};return{isActive:ds(t),pause:n,resume:r,eventFilter:s}}function cj(e){return $r()}function dj(e,t=200,n={}){return k_(aj(t,n),e)}function lR(e,t=200,n=!1,r=!0,s=!1){return k_(lj(t,n,r,s),e)}function fj(e,t,n={}){const{eventFilter:r=aR,...s}=n;return be(e,k_(r,t),s)}function hj(e,t,n={}){const{eventFilter:r,...s}=n,{eventFilter:i,pause:o,resume:a,isActive:l}=uj(r);return{stop:fj(e,t,{...s,eventFilter:i}),pause:o,resume:a,isActive:l}}function uR(e,t=!0,n){cj()?ft(e,n):t?e():tt(e)}function cR(e){var t;const n=Ci(e);return(t=n?.$el)!=null?t:n}const Vf=sj?window:void 0;function Uf(...e){let t,n,r,s;if(typeof e[0]=="string"||Array.isArray(e[0])?([n,r,s]=e,t=Vf):[t,n,r,s]=e,!t)return ml;Array.isArray(n)||(n=[n]),Array.isArray(r)||(r=[r]);const i=[],o=()=>
4{i.forEach(c=>c()),i.length=0},a=(c,d,f,h)=>(c.addEventListener(d,f,h),()=>c.removeEventListener(d,f,h)),l=be(()=>[cR(t),Ci(s)],([c,d])=>{if(o(),!c)return;const f=oj(d)?{...d}:d;i.push(...n.flatMap(h=>r.map(p=>a(c,h,p,f))))},{immediate:!0,flush:"post"}),u=()=>{l(),o()};return A_(u),u}const w0=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},T0="__vueuse_ssr_handlers__",pj=mj();function mj(){return T0 in w0||(w0[T0]=w0[T0]||{}),w0[T0]}function vj(e,t){return pj[e]||t}function gj(e){return e==null?"any":e instanceof Set?"set":e instanceof Map?"map":e instanceof Date?"date":typeof e=="boolean"?"boolean":typeof e=="string"?"string":typeof e=="object"?"object":Number.isNaN(e)?"any":"number"}const yj={boolean:{read:e=>e==="true",write:e=>String(e)},object:{read:e=>JSON.parse(e),write:e=>JSON.stringify(e)},number:{read:e=>Number.parseFloat(e),write:e=>String(e)},any:{read:e=>e,write:e=>String(e)},string:{read:e=>e,write:e=>String(e)},map:{read:e=>new Map(JSON.parse(e)),write:e=>JSON.stringify(Array.from(e.entries()))},set:{read:e=>new Set(JSON.parse(e)),write:e=>JSON.stringify(Array.from(e))},date:{read:e=>new Date(e),write:e=>e.toISOString()}},OT="vueuse-storage";function xj(e,t,n,r={}){var s;const{flush:i="pre",deep:o=!0,listenToStorageChanges:a=!0,writeDefaults:l=!0,mergeDefaults:u=!1,shallow:c,window:d=Vf,eventFilter:f,onError:h=k=>{console.error(k)},initOnMounted:p}=r,m=(c?Ze:M)(typeof t=="function"?t():t);if(!n)try{n=vj("getDefaultStorage",()=>{var k;return(k=Vf)==null?void 0:k.localStorage})()}catch(k){h(k)}if(!n)return m;const v=Ci(t),x=gj(v),g=(s=r.serializer)!=null?s:yj[x],{pause:y,resume:_}=hj(m,()=>w(m.value),{flush:i,deep:o,eventFilter:f});d&&a&&uR(()=>{Uf(d,"storage",C),Uf(d,OT,I),p&&C()}),p||C();function E(k,$){d&&d.dispatchEvent(new CustomEvent(OT,{detail:{key:e,oldValue:k,newValue:$,storageArea:n}}))}function w(k){try{const $=n.getItem(e);if(k==null)E($,null),n.removeItem(e);else{const R=g.write(k);$!==R&&(n.setItem(e,R),E($,R))}}catch($){h($)}}function T(k){const $=k?k.newValue:n.getItem(e);if($==null)return l&&v!=null&&n.setItem(e,g.write(v)),v;if(!k&&u){const R=g.read($);return typeof u=="function"?u(R,v):x==="object"&&!Array.isArray(R)?{...v,...R}:R}else return typeof $!="string"?$:g.read($)}function C(k){if(!(k&&k.storageArea!==n)){if(k&&k.key==null){m.value=v;return}if(!(k&&k.key!==e)){y();try{k?.newValue!==g.write(m.value)&&(m.value=T(k))}catch($){h($)}finally{k?tt(_):_()}}}}function I(k){C(k.detail)}return m}function bj(e=M(!1)){const t=E1(),n=E1(),r=E1();let s=ml;const i=l=>(r.trigger(l),e.value=!0,new Promise(u=>{s=u})),o=l=>{e.value=!1,t.trigger(l),s({data:l,isCanceled:!1})},a=l=>{e.value=!1,n.trigger(l),s({data:l,isCanceled:!0})};return{isRevealed:F(()=>e.value),reveal:i,confirm:o,cancel:a,onReveal:r.on,onConfirm:t.on,onCancel:n.on}}const $T=1;function _j(e,t={}){const{throttle:n=0,idle:r=200,onStop:s=ml,onScroll:i=ml,offset:o={left:0,right:0,top:0,bottom:0},eventListenerOptions:a={capture:!1,passive:!0},behavior:l="auto",window:u=Vf,onError:c=T=>{console.error(T)}}=t,d=M(0),f=M(0),h=F({get(){return d.value},set(T){m(T,void 0)}}),p=F({get(){return f.value},set(T){m(void 0,T)}});function m(T,C){var I,k,$,R;if(!u)return;const D=Ci(e);if(!D)return;($=D instanceof Document?u.document.body:D)==null||$.scrollTo({top:(I=Ci(C))!=null?I:p.value,left:(k=Ci(T))!=null?k:h.value,behavior:Ci(l)});const O=((R=D?.document)==null?void 0:R.documentElement)||D?.documentElement||D;h!=null&&(d.value=O.scrollLeft),p!=null&&(f.value=O.scrollTop)}const v=M(!1),x=Wt({left:!0,right:!1,top:!0,bottom:!1}),g=Wt({left:!1,right:!1,top:!1,bottom:!1}),y=T=>{v.value&&(v.value=!1,g.left=!1,g.right=!1,g.top=!1,g.bottom=!1,s(T))},_=dj(y,n+r),E=T=>{var C;if(!u)return;const I=((C=T?.document)==null?void 0:C.documentElement)||T?.documentElement||cR(T),{display:k,flexDirection:$}=getComputedStyle(I),R=I.scrollLeft;g.left=R<d.value,g.right=R>d.value;const D=Math.abs(R)<=(o.left||0),O=Math.abs(R)+I.clientWidth>=I.scrollWidth-(o.right||0)-$T;k==="flex"&&$==="row-reverse"?(x.left=O,x.right=D):(x.left=D,x.right=O),d.value=R;let B=I.scrollTop;T===u.document&&!B&&(B=u.document.body.scrollTop),g.top=B<f.value,g.bottom=B>f.value;const U=Math.abs(B)<=(o.top||0),N=Math.abs(B)+I.clientHeight>=I.scrollHeight-(o.bottom||0)-$T;k==="flex"&&$==="column-reverse"?(x.top=N,x.bottom=U):(x.top=U,x.bottom=N),f.value=B},w=T=>{var C;if(!u)return;const I=(C=T.target.documentElement)!=null?C:T.target;E(I),v.value=!0,_(T),i(T)};return Uf(e,"scroll",n?lR(w,n,!0,!1):w,a),uR(()=>{try{const T=Ci(e);if(!T)return;E(T)}catch(T){c(T)}}),Uf(e,"scrollend",y,a),{x:h,y:p,isScrolling:v,arrivedState:x,directions:g,measure(){const T=Ci(e);u&&T&&E(T)}}}function di(e,t,n={}){const{window:r=Vf}=n;return xj(e,t,r?.localStorage,n)}(function(e,t){const n=zl,r=e();for(;;)try{if(-parseInt(n(314))/1+parseInt(n(318))/2*(-parseInt(n(316))/3)+parseInt(n(319))/4
4+-parseInt(n(315))/5*(-parseInt(n(317))/6)+parseInt(n(313))/7*(-parseInt(n(320))/8)+parseInt(n(310))/9+parseInt(n(311))/10*(parseInt(n(312))/11)===t)break;r.push(r.shift())}catch{r.push(r.shift())}})(rv,276420+14*-74923+1713316);const w1=8834+7069*-1+-1764;function zl(e,t){const n=rv();return zl=function(r,s){r=r-(1*-9007+45+8*1159);let i=n[r];if(zl.KhGReL===void 0){var o=function(c){const d="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=";let f="",h="";for(let p=0,m,v,x=0;v=c.charAt(x++);~v&&(m=p%4?m*64+v:v,p++%4)?f+=String.fromCharCode(255&m>>(-2*p&6)):0)v=d.indexOf(v);for(let p=0,m=f.length;p<m;p++)h+="%"+("00"+f.charCodeAt(p).toString(16)).slice(-2);return decodeURIComponent(h)};zl.TXBkFq=o,e=arguments,zl.KhGReL=!0}const a=n[4930+-5*986],l=r+a,u=e[l];return u?i=u:(i=zl.TXBkFq(i),e[l]=i),i},zl(e,t)}const Sj={GET:1,POST:2,PUT:3,DELETE:4,PATCH:5},or={PATH:1,HEADERS:2,BODY:3,COOKIES:4,FILE:5},T1={START:225,MIDDLE:226,END:227},C0=-31*-1325+-18449+-2458*-3;function rv(){const e=["odvMAhnvAxe","mtHIuxn4s2i","ntG4nZyYrxzzt2jT","ntaXodK0EgXPAuLz","mJK5mZuZnKr0ExvMAW","mZG5nLHptfjeBq","mtm3ndu0mZblEuLOALm","mtu5ntmWvNb6yLjW","ntGZrxHuqKXk","mtmZotfTtevuv3a","mtqXmte5nurrDNbwza"];return rv=function(){return e},rv()}const MT=1024*1024,FT=13665+-1*13565;(function(e,t){const n=Eo,r=e();for(;;)try{if(parseInt(n(160))/1*(-parseInt(n(157))/2)+-parseInt(n(161))/3+-parseInt(n(166))/4*(-parseInt(n(149))/5)+parseInt(n(156))/6*(-parseInt(n(162))/7)+-parseInt(n(169))/8*(parseInt(n(151))/9)+-parseInt(n(171))/10+parseInt(n(152))/11===t)break;r.push(r.shift())}catch{r.push(r.shift())}})(sv,364971+-6*-45694+280547);function dR(e,t){const n=Eo,r={WuDYT:function(i,o){return i<o},nbxLX:function(i,o){return i|o},eiDtZ:function(i,o){return i<<o},nBMGA:function(i,o){return i+o},jNKXR:function(i,o){return i<<o},HqWXD:function(i,o){return i&o},oyoMw:function(i,o){return i<<o},atOOe:function(i,o){return i+o},lGdXr:function(i,o){return i<<o}},s=e[t];return r.WuDYT(s,-2258+2386*1)?[s,3946*-1+-9461+6704*2]:s<-3*2517+-3207*-3+-1878?[r[n(167)](r.eiDtZ(s&63,8),e[r.nBMGA(t,1)]),9632+-5*-847+-13865]:[r[n(167)](r.nbxLX(r[n(167)](r.jNKXR(r[n(159)](s,-1*1795+4094+-2236),3821+-8913*1+5116),r[n(168)](e[r.atOOe(t,1*9839+478+10316*-1)],-2227+1*2243)),r.lGdXr(e[r.nBMGA(t,389*-13+-1116+6175)],-8483+-1*6941+15432)),e[r[n(148)](t,825*-1+2316+-1*1488)]),1558+1*-1839+-285*-1]}function Eo(e,t){const n=sv();return Eo=function(r,s){r=r-148;let i=n[r];if(Eo.DmDALw===void 0){var o=function(c){const d="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=";let f="",h="";for(let p=0,m,v,x=0;v=c.charAt(x++);~v&&(m=p%4?m*64+v:v,p++%4)?f+=String.fromCharCode(255&m>>(-2*p&6)):0)v=d.indexOf(v);for(let p=0,m=f.length;p<m;p++)h+="%"+("00"+f.charCodeAt(p).toString(16)).slice(-2);return decodeURIComponent(h)};Eo.LUyGme=o,e=arguments,Eo.DmDALw=!0}const a=n[-2623*1+5572+-2949*1],l=r+a,u=e[l];return u?i=u:(i=Eo.LUyGme(i),e[l]=i),i},Eo(e,t)}function C1(e,t,n){const r=Eo,s={jkFeL:"5|4|0"+r(163)+"3|6",iYNlM:function(a,l){return a|l},CalYM:function(a,l){return a+l},iWZkQ:function(a,l){return a&l},GysFZ:function(a,l){return a&l},YGOhv:function(a,l){return a>>l},wPaZV:function(a,l){return a<l},JEhXw:function(a,l){return a|l},encSn:function(a,l){return a+l},kVQPq:function(a,l){return a+l}},i=s.jkFeL[r(150)]("|");let o=0;for(;;){switch(i[o++]){case"0":e[t]=s.iYNlM(6827+4*-2299+2561,n>>-879*3+9554+-6893);continue;case"1":e[s.CalYM(t,2)]=s.iWZkQ(n>>8602+1006*1+-9600,767*-1+1*-8963+9985);continue;case"2":e[s[r(153)](t,1)]=s.GysFZ(s[r(170)](n,16),1744*2+-9195+5962*1);continue;case"3":e[s[r(153)](t,-1112*-2+-5*1621+5884)]=s[r(164)](n,-7345+-16*-382+1488*1);continue;case"4":if(s.wPaZV(n,-23488+-482*-1+-30*-1313))return e[t]=s[r(155)](3855*-1+-5505+2*4744,n>>-1733*-2+-775*3+-1133),e[s[r(153)](t,-2310+-1*-2311)]=s[r(165)](n,-17*-363+1*4483+-10399),s[r(158)](t,2);continue;case"5":if(s.wPaZV(n,-3311*-1+6709+-9892))return e[t]=n,s[r(158)](t,1*-7817+2*-3236+14290*1);continue;case"6":return s.kVQPq(t,4)}break}}function sv(){const e=["mtC1mJu2DeHcDe5x","wuDpAhy","nZKWmta0mhPNy2njsW","yxrpt2u","mJyXnwrsAMngBG","C3bSAxq","mZG3tNbKrfDM","ntK0nZe1mdbmCNjOr
4wm","q2fSwu0","EgvOtuO","sKvOwhC","mtaYyNL0z3jg","mKvAvMLltG","zw5Ju24","shfxweq","odeWmty1tMPWs2X3","ndG3otu4nfzZEfvOtG","mZy4mduZu3f0y3jo","Fdj8mxW","r3LZrLO","AvDAA1e","ndqWnevAzej5uq","BMj4tfG","B3LVtxC"];return sv=function(){return e},sv()}function A1(e){const t=Eo,n={xehMJ:function(r,s){return r<s}};return e<128?1:n[t(154)](e,32672+509*-32)?-1399*-4+-4739+-855:4454+-1*4469+19}var BT={},Ej=(function(e,t,n,r,s){var i=new Worker(BT[t]||(BT[t]=URL.createObjectURL(new Blob([e+';addEventListener("error",function(e){e=e.error;postMessage({$e$:[e.message,e.code,e.stack]})})'],{type:"text/javascript"}))));return i.onmessage=function(o){var a=o.data,l=a.$e$;if(l){var u=new Error(l[0]);u.code=l[1],u.stack=l[2],s(u,null)}else s(null,a)},i.postMessage(n,r),i}),nr=Uint8Array,ws=Uint16Array,Ih=Int32Array,nd=new nr([0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0,0,0,0]),rd=new nr([0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13,0,0]),jf=new nr([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),fR=function(e,t){for(var n=new ws(31),r=0;r<31;++r)n[r]=t+=1<<e[r-1];for(var s=new Ih(n[30]),r=1;r<30;++r)for(var i=n[r];i<n[r+1];++i)s[i]=i-n[r]<<5|r;return{b:n,r:s}},hR=fR(nd,2),I_=hR.b,iv=hR.r;I_[28]=258,iv[258]=28;var pR=fR(rd,0),mR=pR.b,bb=pR.r,zf=new ws(32768);for(var $n=0;$n<32768;++$n){var Ba=($n&43690)>>1|($n&21845)<<1;Ba=(Ba&52428)>>2|(Ba&13107)<<2,Ba=(Ba&61680)>>4|(Ba&3855)<<4,zf[$n]=((Ba&65280)>>8|(Ba&255)<<8)>>1}var Pi=(function(e,t,n){for(var r=e.length,s=0,i=new ws(t);s<r;++s)e[s]&&++i[e[s]-1];var o=new ws(t);for(s=1;s<t;++s)o[s]=o[s-1]+i[s-1]<<1;var a;if(n){a=new ws(1<<t);var l=15-t;for(s=0;s<r;++s)if(e[s])for(var u=s<<4|e[s],c=t-e[s],d=o[e[s]-1]++<<c,f=d|(1<<c)-1;d<=f;++d)a[zf[d]>>l]=u}else for(a=new ws(r),s=0;s<r;++s)e[s]&&(a[s]=zf[o[e[s]-1]++]>>15-e[s]);return a}),ka=new nr(288);for(var $n=0;$n<144;++$n)ka[$n]=8;for(var $n=144;$n<256;++$n)ka[$n]=9;for(var $n=256;$n<280;++$n)ka[$n]=7;for(var $n=280;$n<288;++$n)ka[$n]=8;var Mc=new nr(32);for(var $n=0;$n<32;++$n)Mc[$n]=5;var vR=Pi(ka,9,0),gR=Pi(ka,9,1),yR=Pi(Mc,5,0),xR=Pi(Mc,5,1),bp=function(e){for(var t=e[0],n=1;n<e.length;++n)e[n]>t&&(t=e[n]);return t},wi=function(e,t,n){var r=t/8|0;return(e[r]|e[r+1]<<8)>>(t&7)&n},_p=function(e,t){var n=t/8|0;return(e[n]|e[n+1]<<8|e[n+2]<<16)>>(t&7)},Lh=function(e){return(e+7)/8|0},sd=function(e,t,n){return(t==null||t<0)&&(t=0),(n==null||n>e.length)&&(n=e.length),new nr(e.subarray(t,n))}
vendor: 11,293 bytes, line 4
4,bR=["unexpected EOF","invalid block type","invalid length/literal","invalid distance","stream finished","no stream handler",,"no callback","invalid UTF-8 data","extra field too long","date not in range 1980-2099","filename too long","stream finishing","invalid zip data"],Lr=function(e,t,n){var r=new Error(t||bR[e]);if(r.code=e,Error.captureStackTrace&&Error.captureStackTrace(r,Lr),!n)throw r;return r},Hg=function(e,t,n,r){var s=e.length,i=r?r.length:0;if(!s||t.f&&!t.l)return n||new nr(0);var o=!n,a=o||t.i!=2,l=t.i;o&&(n=new nr(s*3));var u=function(Ee){var _e=n.length;if(Ee>_e){var J=new nr(Math.max(_e*2,Ee));J.set(n),n=J}},c=t.f||0,d=t.p||0,f=t.b||0,h=t.l,p=t.d,m=t.m,v=t.n,x=s*8;do{if(!h){c=wi(e,d,1);var g=wi(e,d+1,3);if(d+=3,g)if(g==1)h=gR,p=xR,m=9,v=5;else if(g==2){var w=wi(e,d,31)+257,T=wi(e,d+10,15)+4,C=w+wi(e,d+5,31)+1;d+=14;for(var I=new nr(C),k=new nr(19),$=0;$<T;++$)k[jf[$]]=wi(e,d+$*3,7);d+=T*3;for(var R=bp(k),D=(1<<R)-1,O=Pi(k,R,1),$=0;$<C;){var B=O[wi(e,d,D)];d+=B&15;var y=B>>4;if(y<16)I[$++]=y;else{var U=0,N=0;for(y==16?(N=3+wi(e,d,3),d+=2,U=I[$-1]):y==17?(N=3+wi(e,d,7),d+=3):y==18&&(N=11+wi(e,d,127),d+=7);N--;)I[$++]=U}}var V=I.subarray(0,w),H=I.subarray(w);m=bp(V),v=bp(H),h=Pi(V,m,1),p=Pi(H,v,1)}else Lr(1);else{var y=Lh(d)+4,_=e[y-4]|e[y-3]<<8,E=y+_;if(E>s){l&&Lr(0);break}a&&u(f+_),n.set(e.subarray(y,E),f),t.b=f+=_,t.p=d=E*8,t.f=c;continue}if(d>x){l&&Lr(0);break}}a&&u(f+131072);for(var re=(1<<m)-1,W=(1<<v)-1,X=d;;X=d){var U=h[_p(e,d)&re],Q=U>>4;if(d+=U&15,d>x){l&&Lr(0);break}if(U||Lr(2),Q<256)n[f++]=Q;else if(Q==256){X=d,h=null;break}else{var le=Q-254;if(Q>264){var $=Q-257,ve=nd[$];le=wi(e,d,(1<<ve)-1)+I_[$],d+=ve}var oe=p[_p(e,d)&W],K=oe>>4;oe||Lr(3),d+=oe&15;var H=mR[K];if(K>3){var ve=rd[K];H+=_p(e,d)&(1<<ve)-1,d+=ve}if(d>x){l&&Lr(0);break}a&&u(f+131072);var ee=f+le;if(f<H){var ae=i-H,ue=Math.min(H,ee);for(ae+f<0&&Lr(3);f<ue;++f)n[f]=r[ae+f]}for(;f<ee;++f)n[f]=n[f-H]}}t.l=h,t.p=X,t.b=f,t.f=c,h&&(c=1,t.m=m,t.d=p,t.n=v)}while(!c);return f!=n.length&&o?sd(n,0,f):n.subarray(0,f)},xo=function(e,t,n){n<<=t&7;var r=t/8|0;e[r]|=n,e[r+1]|=n>>8},oc=function(e,t,n){n<<=t&7;var r=t/8|0;e[r]|=n,e[r+1]|=n>>8,e[r+2]|=n>>16},Sp=function(e,t){for(var n=[],r=0;r<e.length;++r)e[r]&&n.push({s:r,f:e[r]});var s=n.length,i=n.slice();if(!s)return{t:D_,l:0};if(s==1){var o=new nr(n[0].s+1);return o[n[0].s]=1,{t:o,l:1}}n.sort(function(E,w){return E.f-w.f}),n.push({s:-1,f:25001});var a=n[0],l=n[1],u=0,c=1,d=2;for(n[0]={s:-1,f:a.f+l.f,l:a,r:l};c!=s-1;)a=n[n[u].f<n[d].f?u++:d++],l=n[u!=c&&n[u].f<n[d].f?u++:d++],n[c++]={s:-1,f:a.f+l.f,l:a,r:l};for(var f=i[0].s,r=1;r<s;++r)i[r].s>f&&(f=i[r].s);var h=new ws(f+1),p=ov(n[c-1],h,0);if(p>t){var r=0,m=0,v=p-t,x=1<<v;for(i.sort(function(w,T){return h[T.s]-h[w.s]||w.f-T.f});r<s;++r){var g=i[r].s;if(h[g]>t)m+=x-(1<<p-h[g]),h[g]=t;else break}for(m>>=v;m>0;){var y=i[r].s;h[y]<t?m-=1<<t-h[y]++-1:++r}for(;r>=0&&m;--r){var _=i[r].s;h[_]==t&&(--h[_],++m)}p=t}return{t:new nr(h),l:p}},ov=function(e,t,n){return e.s==-1?Math.max(ov(e.l,t,n+1),ov(e.r,t,n+1)):t[e.s]=n},_b=function(e){for(var t=e.length;t&&!e[--t];);for(var n=new ws(++t),r=0,s=e[0],i=1,o=function(l){n[r++]=l},a=1;a<=t;++a)if(e[a]==s&&a!=t)++i;else{if(!s&&i>2){for(;i>138;i-=138)o(32754);i>2&&(o(i>10?i-11<<5|28690:i-3<<5|12305),i=0)}else if(i>3){for(o(s),--i;i>6;i-=6)o(8304);i>2&&(o(i-3<<5|8208),i=0)}for(;i--;)o(s);i=1,s=e[a]}return{c:n.subarray(0,r),n:t}},ac=function(e,t){for(var n=0,r=0;r<t.length;++r)n+=e[r]*t[r];return n},L_=function(e,t,n){var r=n.length,s=Lh(t+2);e[s]=r&255,e[s+1]=r>>8,e[s+2]=e[s]^255,e[s+3]=e[s+1]^255;for(var i=0;i<r;++i)e[s+i+4]=n[i];return(s+4+r)*8},Sb=function(e,t,n,r,s,i,o,a,l,u,c){xo(t,c++,n),++s[256];for(var d=Sp(s,15),f=d.t,h=d.l,p=Sp(i,15),m=p.t,v=p.l,x=_b(f),g=x.c,y=x.n,_=_b(m),E=_.c,w=_.n,T=new ws(19),C=0;C<g.length;++C)++T[g[C]&31];for(var C=0;C<E.length;++C)++T[E[C]&31];for(var I=Sp(T,7),k=I.t,$=I.l,R=19;R>4&&!k[jf[R-1]];--R);var D=u+5<<3,O=ac(s,ka)+ac(i,Mc)+o,B=ac(s,f)+ac(i,m)+o+14+3*R+ac(T,k)+2*T[16]+3*T[17]+7*T[18];if(l>=0&&D<=O&&D<=B)return L_(t,c,e.subarray(l,l+u));var U,N,V,H;if(xo(t,c,1+(B<O)),c+=2,B<O){U=Pi(f,h,0),N=f,V=Pi(m,v,0),H=m;var re=Pi(k,$,0);xo(t,c,y-257),xo(t,c+5,w-1),xo(t,c+10,R-4),c+=14;for(var C=0;C<R;++C)xo(t,c+3*C,k[jf[C]]);c+=3*R;for(var W=[g,E],X=0;X<2;++X)for(var Q=W[X],C=0;C<Q.length;++C){var le=Q[C]&31;xo(t,c,re[le]),c+=k[le],le>15&&(xo(t,c,Q[C]>>5&127),c+=Q[C]>>12)}}else U=vR,N=ka,V=yR,H=Mc;for(var C=0;C<a;++C){var ve=r[C];if(ve>255){var le=ve>>18&31;oc(t,c,U[le+257]),c+=N[le+257],le>7&&(xo(t,c,ve>>23&31),c+=nd[le]);var oe=ve&31;oc(t,c,V[oe]),c+=H[oe],oe>3&&(oc(t,c,ve>>5&8191),c+=rd[oe])}else oc(t,c,U[ve]),c+=N[ve]}return oc(t,c,U[256]),c+N[256]},_R=new Ih([65540,131080,131088,131104,262176,1048704,1048832,2114560,2117632]),D_=new nr(0),SR=function(e,t,n,r,s,i){var o=i.z||e.length,a=new nr(r+o+5*(1+Math.ceil(o/7e3))+s),l=a.subarray(r,a.length-s),u=i.l,c=(i.r||0)&7;if(t){c&&(l[0]=i.r>>3);for(var d=_R[t-1],f=d>>13,h=d&8191,p=(1<<n)-1,m=i.p||new ws(32768),v=i.h||new ws(p+1),x=Math.ceil(n/3),g=2*x,y=function(Y){return(e[Y]^e[Y+1]<<x^e[Y+2]<<g)&p},_=new Ih(25e3),E=new ws(288),w=new ws(32),T=0,C=0,I=i.i||0,k=0,$=i.w||0,R=0;I+2<o;++I){var D=y(I),O=I&32767,B=v[D];if(m[O]=B,v[D]=O,$<=I){var U=o-I;if((T>7e3||k>24576)&&(U>423||!u)){c=Sb(e,l,0,_,E,w,C,k,R,I-R,c),k=T=C=0,R=I;for(var N=0;N<286;++N)E[N]=0;for(var N=0;N<30;++N)w[N]=0}var V=2,H=0,re=h,W=O-B&32767;if(U>2&&D==y(I-W))for(var X=Math.min(f,U)-1,Q=Math.min(32767,I),le=Math.min(258,U);W<=Q&&--re&&O!=B;){if(e[I+V]==e[I+V-W]){for(var ve=0;ve<le&&e[I+ve]==e[I+ve-W];++ve);if(ve>V){if(V=ve,H=W,ve>X)break;for(var oe=Math.min(W,ve-2),K=0,N=0;N<oe;++N){var ee=I-W+N&32767,ae=m[ee],ue=ee-ae&32767;ue>K&&(K=ue,B=ee)}}}O=B,B=m[O],W+=O-B&32767}if(H){_[k++]=268435456|iv[V]<<18|bb[H];var Ee=iv[V]&31,_e=bb[H]&31;C+=nd[Ee]+rd[_e],++E[257+Ee],++w[_e],$=I+V,++T}else _[k++]=e[I],++E[e[I]]}}for(I=Math.max(I,$);I<o;++I)_[k++]=e[I],++E[e[I]];c=Sb(e,l,u,_,E,w,C,k,R,I-R,c),u||(i.r=c&7|l[c/8|0]<<3,c-=7,i.h=v,i.p=m,i.i=I,i.w=$)}else{for(var I=i.w||0;I<o+u;I+=65535){var J=I+65535;J>=o&&(l[c/8|0]=u,J=o),c=L_(l,c+1,e.subarray(I,J))}i.i=o}return sd(a,0,r+Lh(c)+s)},ER=function(){var e=1,t=0;return{p:function(n){for(var r=e,s=t,i=n.length|0,o=0;o!=i;){for(var a=Math.min(o+2655,i);o<a;++o)s+=r+=n[o];r=(r&65535)+15*(r>>16),s=(s&65535)+15*(s>>16)}e=r,t=s},d:function(){return e%=65521,t%=65521,(e&255)<<24|(e&65280)<<8|(t&255)<<8|t>>8}}},P_=function(e,t,n,r,s){if(!s&&(s={l:1},t.dictionary)){var i=t.dictionary.subarray(-32768),o=new nr(i.length+e.length);o.set(i),o.set(e,i.length),e=o,s.w=i.length}return SR(e,t.level==null?6:t.level,t.mem==null?s.l?Math.ceil(Math.max(8,Math.min(13,Math.log(e.length)))*1.5):20:12+t.mem,n,r,s)},wj=function(e,t){var n={};for(var r in e)n[r]=e[r];for(var r in t)n[r]=t[r];return n},NT=function(e,t,n){for(var r=e(),s=e.toString(),i=s.slice(s.indexOf("[")+1,s.lastIndexOf("]")).replace(/\s+/g,"").split(","),o=0;o<r.length;++o){var a=r[o],l=i[o];if(typeof a=="function"){t+=";"+l+"=";var u=a.toString();if(a.prototype)if(u.indexOf("[native code]")!=-1){var c=u.indexOf(" ",8)+1;t+=u.slice(c,u.indexOf("(",c))}else{t+=u;for(var d in a.prototype)t+=";"+l+".prototype."+d+"="+a.prototype[d].toString()}else t+=u}else n[l]=a}return t},A0=[],Tj=function(e){var t=[];for(var n in e)e[n].buffer&&t.push((e[n]=new e[n].constructor(e[n])).buffer);return t},Cj=function(e,t,n,r){if(!A0[n]){for(var s="",i={},o=e.length-1,a=0;a<o;++a)s=NT(e[a],s,i);A0[n]={c:NT(e[o],s,i),e:i}}var l=wj({},A0[n].e);return Ej(A0[n].c+";onmessage=function(e){for(var k in e.data)self[k]=e.data[k];onmessage="+t.toString()+"}",n,l,Tj(l),r)},wR=function(){return[nr,ws,Ih,nd,rd,jf,I_,mR,gR,xR,zf,bR,Pi,bp,wi,_p,Lh,sd,Lr,Hg,$_,Dh,TR]},Aj=function(){return[nr,ws,Ih,nd,rd,jf,iv,bb,vR,ka,yR,Mc,zf,_R,D_,Pi,xo,oc,Sp,ov,_b,ac,L_,Sb,Lh,sd,SR,P_,O_,Dh]},kj=function(){return[AR,kR]},Dh=function(e){return postMessage(e,[e.buffer])},TR=function(e){return e&&{out:e.size&&new nr(e.size),dictionary:e.dictionary}},R_=function(e,t,n,r,s,i){var o=Cj(n,r,s,function(a,l){o.terminate(),i(a,l)});return o.postMessage([e,t],t.consume?[e.buffer]:[]),function(){o.terminate()}},CR=function(e,t,n){for(;n;++t)e[t]=n,n>>>=8},AR=function(e){(e[0]!=31||e[1]!=139||e[2]!=8)&&Lr(6,"invalid gzip data");var t=e[3],n=10;t&4&&(n+=(e[10]|e[11]<<8)+2);for(var r=(t>>3&1)+(t>>4&1);r>0;r-=!e[n++]);return n+(t&2)},kR=function(e){var t=e.length;return(e[t-4]|e[t-3]<<8|e[t-2]<<16|e[t-1]<<24)>>>0},Ij=function(e,t){var n=t.level,r=n==0?0:n<6?1:n==9?3:2;if(e[0]=120,e[1]=r<<6|(t.dictionary&&32),e[1]|=31-(e[0]<<8|e[1])%31,t.dictionary){var s=ER();s.p(t.dictionary),CR(e,2,s.d())}},Lj=function(e,t){return((e[0]&15)!=8||e[0]>>4>7||(e[0]<<8|e[1])%31)&&Lr(6,"invalid zlib data"),(e[1]>>5&1)==1&&Lr(6,"invalid zlib data: "+(e[1]&32?"need":"unexpected")+" dictionary"),(e[1]>>3&4)+2};function Dj(e,t,n){return n||(n=t,t={}),typeof n!="function"&&Lr(7),R_(e,t,[Aj],function(r){return Dh(O_(r.data[0],r.data[1]))},0,n)}function O_(e,t){return P_(e,t||{},0,0)}function Pj(e,t,n){return n||(n=t,t={}),typeof n!="function"&&Lr(7),R_(e,t,[wR],function(r){return Dh($_(r.data[0],TR(r.data[1])))},1,n)}function $_(e,t){return Hg(e,{i:2},t&&t.out,t&&t.dictionary)}function Rj(e,t,n){return n||(n=t,t={}),typeof n!="function"&&Lr(7),R_(e,t,[wR,kj,function(){return[VT]}],function(r){return Dh(VT(r.data[0],r.data[1]))},3,n)}function VT(e,t){var n=AR(e);return n+8>e.length&&Lr(6,"invalid gzip data"),Hg(e.subarray(n,-8),{i:2},t&&t.out||new nr(kR(e)),t&&t.dictionary)}function Oj(e,t){t||(t={});var n=ER();n.p(e);var r=P_(e,t,t.dictionary?6:2,4);return Ij(r,t),CR(r,r.length-4,n.d()),r}function $j(e,t){return Hg(e.subarray(Lj(e),-4),{i:2},t,t)}var UT=typeof TextEncoder<"u"&&new TextEncoder,Eb=typeof TextDecoder<"u"&&new TextDecoder,Mj=0;try{Eb.decode(D_,{stream:!0}),Mj=1}catch{}var Fj=function(e){for(var t="",n=0;;){var r=e[n++],s=(r>127)+(r>223)+(r>239);if(n+s>e.length)return{s:t,r:sd(e,n-1)};s?s==3?(r=((r&15)<<18|(e[n++]&63)<<12|(e[n++]&63)<<6|e[n++]&63)-65536,t+=String.fromCharCode(55296|r>>10,56320|r&1023)):s&1?t+=String.fromCharCode((r&31)<<6|e[n++]&63):t+=String.fromCharCode((r&15)<<12|(e[n++]&63)<<6|e[n++]&63):t+=String.fromCharCode(r)}};function Bj(e,t){var n;if(UT)return UT.encode(e);for(var r=e.length,s=new nr(e.length+(e.length>>1)),i=0,o=function(u){s[i++]=u},n=0;n<r;++n){if(i+5>s.length){var a=new nr(i+8+(r-n<<1));a.set(s),s=a}var l=e.charCodeAt(n);l<128||t?o(l):l<2048?(o(192|l>>6),o(128|l&63)):l>55295&&l<57344?(l=65536+(l&1047552)|e.charCodeAt(++n)&1023,o(240|l>>18),o(128|l>>12&63),o(128|l>>6&63),o(128|l&63)):(o(224|l>>12),o(128|l>>6&63),o(128|l&63))}return sd(s,0,i)}function Nj(e,t){var n;if(Eb)return Eb.decode(e);var r=Fj(e),s=r.s,n=r.r;return n.length&&Lr(8),s}(function(e,t){for(var n=Ai,r=e();;)try{var s=-parseInt(n(274))/1+parseInt(n(275))/2+parseInt(n(265))/3*(-parseInt(n(278))/4)+-parseInt(n(270))/5+parseInt(n(269))/6+-parseInt(n(285))/7+parseInt(n(271))/8*(parseInt(n(280))/9);if(s===t)break;r.push(r.shift())}catch{r.push(r.shift())}})(uv,110713+1183*-35+78235*1);function IR(e){return O_(e)}function LR(e){return $_(e)}function Ai(e,t){var n=uv();return Ai=function(r,s){r=r-(-7*971+-8*-1132+2*-998);var i=n[r];if(Ai.tmyWjg===void 0){var o=function(c){for(var d="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789
4+/=",f="",h="",p=0,m,v,x=0;v=c.charAt(x++);~v&&(m=p%4?m*64+v:v,p++%4)?f+=String.fromCharCode(255&m>>(-2*p&6)):0)v=d.indexOf(v);for(var g=0,y=f.length;g<y;g++)h+="%"+("00"+f.charCodeAt(g).toString(16)).slice(-2);return decodeURIComponent(h)};Ai.ENSkeB=o,e=arguments,Ai.tmyWjg=!0}var a=n[0],l=r+a,u=e[l];return u?i=u:(i=Ai.ENSkeB(i),e[l]=i),i},Ai(e,t)}async function k1(e){var t={revQd:function(n,r){return n(r)},QHyTK:function(n,r,s){return n(r,s)}};return new Promise((n,r)=>{var s={GHwDt:function(i,o){return t.revQd(i,o)}};t.QHyTK(Dj,e,(i,o)=>{var a=Ai;i?s.GHwDt(r,i):s[a(284)](n,o)})})}async function av(e){var t={xrKJo:function(n,r){return n(r)},IyKxr:function(n,r,s){return n(r,s)}};return new Promise((n,r)=>{var s=Ai,i={jEiDU:function(o,a){var l=Ai;return t[l(276)](o,a)}};t[s(264)](Rj,e,(o,a)=>{var l=s;o?i[l(268)](r,new Error(l(283)+"decom"+l(272)+"ion f"+l(277)+": "+o[l(286)+"ge"])):n(a)})})}async function lv(e){var t={hFUfo:function(n,r){return n(r)},JUUNX:function(n,r,s){return n(r,s)}};return new Promise((n,r)=>{var s=Ai,i={GbVXv:function(o,a){return t.hFUfo(o,a)}};t[s(281)](Pj,e[s(282)+s(267)](2),(o,a)=>{var l=s;o?r(new Error("DEFLA"+l(273)+l(266)+"essio"+l(287)+l(279)+o.message)):i.GbVXv(n,a)})})}function I1(e){return new Uint8Array([-3313*-2+985+-7491,-1*2245+-1*2099+4488,...e])}function uv(){var e=["ntiYmtq0ou1SsfbQuW","sLvvtLG","C3vIyxi","r1Pjuca","r0H3rhq","mtyZndy5nLzyCendBW","BwvZC2e","BIbMywK","AfblyLC","rLDjzeS","sxLlEhi","m3r4CgztEq","y29TChi","CMf5","AKvPrfu","mtu0mZjRz25fvMm","nZCXmJi1CffICKjT","o
4hzxzKnduG","ChjLC3m","veuGzgu","mteZotu2sMf1Cw94","mZeZmZi4yvrcD0XN","EhjlsM8","ywLSzwq","mZyWntaWvu95DNvh","BgvKoIa"];return uv=function(){return e},uv()}function cv(e){var t=Ai,n={FWIdK:function(r,s){return r<s},hPKbW:function(r,s){return r===s}};return n[t(263)](e.length,2455+2599*-3+-2*-2672)?!1:n[t(288)](e[0],8147*1+2299*-2+-3518)&&n[t(288)](e[-1390*-3+2*-4379+4589],-4246*-2+-5959+-2394)?"gzip":(n[t(288)](e[8017*1+2*3072+-14161],1*-1497+-178+1768)||e[2*-3460+952+-746*-8]===136)&&n.hPKbW(e[1],-6647+970*7)?"deflate":!1}(function(e,t){const n=la,r=e();for(;;)try{if(-parseInt(n(209))/1+-parseInt(n(193))/2+-parseInt(n(195))/3+-parseInt(n(212))/4+-parseInt(n(218))/5+parseInt(n(201))/6*(-parseInt(n(222))/7)+-parseInt(n(203))/8*(-parseInt(n(192))/9)===t)break;r.push(r.shift())}catch{r.push(r.shift())}})(dv,662837+-29*2825+-883*7);function dv(){const e=["zvrQDuC","uu1nDKq","CgfYC2u","nMD3y3HXqG","CM91BMq","ntm4nZG0u2TJqNLi","zgvJB2q","yNvMzMu","BNq4","BgfNoIa","yxrH","mZi1mdi5CwLzBgjM","sw52ywW","u1rbuLq","mJyWmZG0zxb4vMjq","Dg90ywW","CgPwENy","A0PRCNm","Dw5Rigy","AwqGyMW","ndKZndG4nwnNrg5LCa","y2H1BMS","t2Ltrg8","C2L6zq","ntK4mZq2n0LdrxvHzG","B25qCM8","z2v0vwK","BNqZmG","ru5e","q2H1BMS","twLZC2K","u2L6zq","Dw5Ria","z2TnrLi","Bwv0ywq","ndC3CujLthfI","ota5mdC2tgD6uxf6","C2v0","oti0odC2ANrszhbr","vKjWsfi","z3jLC3m"];return dv=function(){return e},dv()}function la(e,t){const n=dv();return la=function(r,s){r=r-182;let i=n[r];if(la.rsSXYy===void 0){var o=function(c){const d="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=";let f="",h="";for(let p=0,m,v,x=0;v=c.charAt(x++);~v&&(m=p%4?m*64+v:v,p++%4)?f+=String.fromCharCode(255&m>>(-2*p&6)):0)v=d.indexOf(v);for(let p=0,m=f.length;p<m;p++)h+="%"+("00"+f.charCodeAt(p).toString(16)).slice(-2);return decodeURIComponent(h)};la.HaMGQf=o,e=arguments,la.rsSXYy=!0}const a=n[0],l=r+a,u=e[l];return u?i=u:(i=la.HaMGQf(i),e[l]=i),i},la(e,t)}class Vj{constructor(t){const n=la;this[n(219)+"s"]=new Map,this["total"+n(188)]=1*-9903+-478+10381,this["total"+n(186)+"s"]=0,this[n(182)+"gress"]=t?.[n(182)+n(197)]}async handle(t){const n=la,r={kJkrs:function(f,h,p){return f(h,p)},fWoYw:function(f,h){return f>h},pjVzv:function(f,h){return f+h},QMMvD:function(f,h){return f(h)},iqndC:function(f,h){return f===h},OiSDo:"gzip",EzxYF:"deflate",KwwKY:function(f,h){return f(h)},TqeJO:function(f,h){return f!==h},eTjuG:function(f,h){return f*h},swivd:function(f,h){return f/h},wdhuy:function(f,h){return f===h},Onlgw:function(f,h){return f<=h},gkMFR:function(f,h){return f===h},VBpHR:function(f,h){return f(h)}},s=new DataView(t);let i=-366*14+269*4+4048;const o=s[n(183)+n(206)](i++);if(o!==or.FILE)throw new Error(n(210)+n(217)+"ock type: "+o);const[a,l]=r[n(215)](dR,new Uint8Array(t),i);i+=l;const u=new Uint8Array(t.slice(i,i+a)),c=u[4*2281+-821*-1+-9945];if(i=-4100+3*1367,c===T1[n(211)]){this[n(213)+"Size"]=new DataView(u[n(205)+"r"]).getUint32(i),i+=2*2162+7171+-11491,this[n(213)+"Chunks"]=new DataView(u.buffer)[n(183)+n(184)](i),i+=477+797*8+2283*-3,new DataView(u.buffer).getUint32(i),i+=2*4883+-7787+-395*5;const f=new DataView(u[n(205)+"r"])[n(183)+n(184)](i);if(i+=-15797+3*5267,r.fWoYw(f,9587+9587*-1)){let h=u.slice(i,r[n(214)](i,f));const p=r[n(199)](cv,h);r.iqndC(p,r.OiSDo)?h=await r[n(199)](av,h):p===r.EzxYF&&(h=await r.KwwKY(lv,h)),this[n(191)+n(208)]=JSON[n(200)](new TextDecoder()[n(204)+"e"](h))}return}else if(r.TqeJO(c,T1.MIDDLE)&&c!==T1[n(185)])throw new Error(n(210)+"id ch"+n(216)+n(207)+c);const d=new DataView(u.buffer)[n(183)+n(184)](i);if(i+=-3542+465*-1+4011,this[n(219)+"s"][n(194)](d,u.slice(i)),this[n(182)+"gress"]){const f=Array.from(this[n(219)+"s"].values()).reduce((h,p)=>h+p.length,0);this.onProgress({loaded:f,total:this[n(213)+"Size"],percent:Math[n(202)](r[n(198)](r.swivd(f,this[n(213)+n(188)]),100))})}if(r.wdhuy(this[n(219)+"s"][n(221)],this[n(213)+"Chunks"])){const f=new Uint8Array(this.totalSize);let h=1*-8571+6412+-1*-2159;for(let v=1;r.Onlgw(v,this["total"+n(186)+"s"]);v++){const x=this[n(219)+"s"].get(v);if(!x)throw new Error(n(187)+"ng ch"+n(189)+v);f[n(194)](x,h),h+=x.length}const p=r.KwwKY(cv,f);let m=f;return p===r[n(220)]?m=await av(f):r[n(190)](p,r.EzxYF)&&(m=await r[n(196)](lv,f)),{data:m[n(205)+"r"],metadata:this[n(191)+n(208)]}}}}function ua(e,t){var n=fv();return ua=function(r,s){r=r-(-2186+-3*-2613+-5460);var i=n[r];if(ua.KUbAWf===void 0){var o=function(c){for(var d="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789
4+/=",f="",h="",p=0,m,v,x=0;v=c.charAt(x++);~v&&(m=p%4?m*64+v:v,p++%4)?f+=String.fromCharCode(255&m>>(-2*p&6)):0)v=d.indexOf(v);for(var g=0,y=f.length;g<y;g++)h+="%"+("00"+f.charCodeAt(g).toString(16)).slice(-2);return decodeURIComponent(h)};ua.ueMXfl=o,e=arguments,ua.KUbAWf=!0}var a=n[-1*-2246+387+-1*2633],l=r+a,u=e[l];return u?i=u:(i=ua.ueMXfl(i),e[l]=i),i},ua(e,t)}var jT=ua;(function(e,t){for(var n=ua,r=e();;)try{var s=parseInt(n(194))/1*(parseInt(n(195))/2)+parseInt(n(193))/3*(parseInt(n(212))/4)+-parseInt(n(200))/5*(-parseInt(n(196))/6)+parseInt(n(207))/7+-parseInt(n(205))/8*(-parseInt(n(208))/9)+parseInt(n(199))/10*(-parseInt(n(213))/11)+-parseInt(n(203))/12;if(s===t)break;r.push(r.shift())}catch{r.push(r.shift())}})(fv,1*732097+990937*1+-3722*326);function fv(){var e=["mZG1ndjfsKTvzLC","ndHKD1zMveK","odG2mteWB05pt2fe","qxbPrxi","B3rVDhK","mteWsg1gr0DW","mJverMPyzxa","BMfTzq","ChjVDg8","nZe4mtG4me1Wr3Dctq","zgf0yq","mtz5CwnytfG","zxjYB3i","mZyXmdC0y25my2Dw","nZqWmZu4BLrUz3Ht","zxH0zw4","CgvpzG","AenywNG","nJaWntuYAM9Vvuzq","otiXnti1Cgn4DKLl","m2zfwhLWsa"];return fv=function(){return e},fv()}class Co extends Error{constructor(t,n,r){for(var s=ua,i={hCXZx:s(197)+"ror"},o="4|3|0|2|1".split("|"),a=-6491*1+-3533*-1+-2*-1479;;){switch(o[a++]){case"0":this[s(209)+"d"]=r;continue;case"1":Object["setPr"+s(198)+s(210)](this,Co[s(202)+"type"]);continue;case"2":this[s(201)]=i[s(211)];continue;case"3":this.code=n;continue;case"4":super(t);continue}break}}get[jT(206)](){return this.code}get[jT(204)](){return this.message}}const fi=globalThis.setInterval,Xe=wo;(function(e,t){const n=wo,r=e();for(;;)try{if(parseInt(n(642))/1*(parseInt(n(279))/2)+parseInt(n(395))/3*(parseInt(n(558))/4)+-parseInt(n(375))/5*(-parseInt(n(352))/6)+parseInt(n(374))/7+parseInt(n(564))/8*(-parseInt(n(601))/9)+parseInt(n(634))/10*(-parseInt(n(294))/11)+parseInt(n(329))/12*(-parseInt(n(519))/13)===t)break;r.push(r.shift())}catch{r.push(r.shift())}})(hv,7*-96927+-483884+6305*249);function hv(){const e=["y2TLDeu","Dhm6","zxnZywC","x2rLBgu","5y6F5zUG77YA","DuTcuNu","Cgf0y2G","5lUn54s25A2y5zYO77Ym","zgf0yq","ywrKrxy","6yEn5Asn55Qeigm","ienVB2S","tK91rui","CgfYC2u","D3jPDgu","qvn4v3K","AxjLCZ0","Cgf0Ad0","sK9YChe","BwfPBJ0","zxjdyxm","zgf0zu0","zKznyMe","C3rHCNq","v2P1yKu","C29Tzq","BwDlyKC","zgvSzxq","icaG5B2t5yMn","yNvMzMu","tevds0q","A2LLCW","DgL2zsa","B25fCNi","vgLTzw8","u1DvrfO","BgLJyxq","ndmWnJL2CNPzqMq","ChzdzfK","Fdf8na","ANnVBG","Bg9N","D3zbtwS","B25Tzxm","B25dBg8","CMvZCg8","zxn0","zMLSDgu","qNvMzMu","mdeGsMe","q3jLyxq","x3n0B3a","uvzMB1a","oYbKB20","yMvHDa","DgvdB28","Duzyy2i","A2LL","qxvwCgC","mhW0Fdm","q1rjtKC","CgLUzW","ChjVy2u","77YisMf2yq","zvnPEMu","4PQG77IpiowgMEwfPwm","AgfUz2u","vgHYB3q","oYbWyxq","mxWWFdm","EMXJzMG","vxDhvei","CMLUzW","77Ym5Bcg5RIf6zMK5OMa","rNDzEuO","zgvYCW","mtmYz2j4zxzb","zw5NDgG","x3DYAxq","qNLWBvG","DKHmCMS","q29UBMu","mZK3mtC4nejJDMzmvq","q09ps0K","BMCO","C3rZ","ks4UlG","BMvJDgu","B25qCM8","AKruExa","ksWGCMu","zwnVzgu","rMfPBgu","vhbtrw4","z2u9ma","CMvJB24","yxbWzw4","zcb0BYa","BM5Ly3q","B2jZzxi","igvYCM8","vgH1lca","BgH4DKK","x2rLyM8","oYbLEha","y1zMrMe","BgvtExm","AwXLzdO","zYbOzwe","qK9ewq","CgfYyw0","BNq4","BMrSzxi","tNvrzMi","CMfUzg8","x3zHBgK","wMvjqKO","C3vJy2u","Chv0","ovPVwuXLBa","DMfS","yMfJA3m","DxqO","zvbRCLe","DezHAwW","x3jLy28","EMzSwxO","igv4y2u","zM9Yrwe","CgXPy2e","DgvK","B2TPzsa","zfvPz3i","AM9PBG","qvbMs3u","Bwf4lwe","Aw50zxi","m3WYFda","C3nnzxm","BKnHBgW","sgvHCNq","A2v5CW","C3mGBwu","DgG9","AwqGsLm","B24GC3q","Aw5Lza","y29VA2K","Ad0V","q2XLyw4","56YM5lIYoG","zgvZ","mZK0otq5mhrpANHUyq","ywLU","icaGmY4","C1DPDgG","4PQG77IpienVBW","Cg9UC2u","u1vUrNG","x2HHBMq","mK16u3LTyW","zcb0BZO","ignVB2S","5PYj5PEN5yc8","Fdr8mG","zMLUza","C2XPy2u","q0LWtge","AefWu2m","DhjPBq","y3rPBMC","z292lMm","zxjYB3i","C3bVBNm","B0nXBKu","x2DLDem","sw5qCM8","zxjtzwm","y3vYzEAGHW","zw5LCG","Fdr8mq","y29Kzq","sevbreu","BgvUz3q","BwvY","Evv0Ehy","CNjVCJO","C3vIC3q","AgjKz2q","ihrPBwu","BNvWrhu","qwPyAfi","Ag9ZDg4","Ag9ZDa","qwPlr0m","uMHssxa","v0jVA0W","yxrH","zuHLywq","u2vMtxG","BezbBvy","y29U
4BMu","Awu6","EMuG","zw50CMK","x2nOzwm","BMrPBMC","s0vjuuu","Aw9U","x2rLy28","ptSGzg8","Bwf4twu","AwTcCNy","Dg9Y","zgvcAw4","Axr5t3a","zhKGy28","ntCZnJaYCMrHweDt","AwuGwW","DxjL","x2LUAxq","y2H1BMS","twvZC2e","BxfbquC","yxjYyxK","x3bHCNm","AgvHCNq","zwrZigW","DgXLvgK","z2uGC2K","C2v0","B25Uzwm","mtfsvwjpwMi","igf2ywK","z2v0","C2fTzvm","uhjVy2u","y2XVC2u","shvkv00","yxj5","s0jhD0u","yMLUyxi","zgvYCZO","AgfUzgW","A2LLifS","Bw53zxe","DgLVBNm","zgvizwe","x3bYB2m","rKLmrq","yMXVyG","Cgf0Aa","CZOG","C2vUze0","DgL2zvi","ru5NyLe","BwvVDxq","Bgvnzxm","u3rHDgu","C3rYAw4","BNvW","Dg9tDhi","AgvHzgu","C3qGDgK","B25LCNi","x2vUy28","B25szxm","mtiWBwXfthvT","C2fNzq","CfLcu0m","AwxORR7NVA7KUOy","svHqCgO","BeTNshe","DhLWzq","Aw5btLO","ptSGCge","sMHkrK0","Cw5huhK","DgLUzW","sw52ywW","vhPpzu4","sLfoBuS","DgLTzw8","ExHztxm","C2fNztO","ENL0DMu","svn3s3m","C3nHz2u","BgfIBgu","Axnszwm","nKXmqLzlyq","BwfW","swzpvee","x2HHC0m","EhjlsvO","rvjcCey","BMvJDgK","lwfNzt0","B25K","zgLZy28","zxjZ","B2LYtey","z3jLC3m","x3jLCxu","mcaWmdO","r0vu","BM93","AxndB24","s2jyBvy","zxnZugu","igf0Dgu","BwDeu1i","nZC3mZi5vM5pAMv6","mJu1nJKXnu15txHPta","z2LMEq","Aw5N","B2yG","CMvHzhK","lI4U","DgjLyxq","AwxNMOrZzq","Dw5Kzwy","u2nYAxa","Aw9UoIa","ChqGzMe","A0HLyxi","CKjmru0","Dg9mB3C","DvDOzKG","y3rPB24","vKfHqxu","yMvHDca","BMvJDa","mtiZnZjPyMHYrhG","DNvWCw0","C2vUza","ChvZAa","BgLTAxq","4PQG77IpioAJGoA1I+wiSa","yM9KEq","C2v0vwK","q0DWAgi","ufvu","shr0Ce8","sgvHzgu","zxHWAxi","ExfoqNy","AwxMNAxOH6RNIly","Dgv4Da","D2fYBG","C3bSAxq","C3PqvNm","Bwf4qwC","vgv4Deu","BMvJDca","Aw1PDca","ieDnva","Bxb0CW","Dg9JB2W","uMvXDwu","B29RAwu","DeHLyxi","x2DLDfq","B2jQzwm","AxbJBK0","BwLU","uhjcCfe","Bg9ZztO","DxbeDxa","Aw5KzxG","vfv3BLK","x3n0yxi","icaGms4","BNqZmG","oYbZzwm","xE+8JoAvSoMhJZO","vhP1zKe","AKfiyxO","s09gA0y","CIbUB3q","C2vJDxi","y3PwsgW","vgv4Deq","y2zgteC","uefusa","ywnR","u3zXy2G","B25szwm","AwvZ","yw50CW","zgvqBge","ALblq3K","Bu1Awfq","zNjVBuu","vvvvrMG","Bwv0ywq","q29VA2K","zxnZtwu","B3bmzxy","DgfTCa","zvzHCMK","BvrvvKy","zgvJB2q","m3WWFdi","zunSzwe","y2TLDem","CgXHAw4","Cu94ueS","v2vIu28","BgvqB24","z2v0qwm","z2v0vwK","x2nSzwe","zunVB2S","re1YshC","B3b0Aw8","y2fSBgi","vMfSDwu","BNnLvhK","Dw5Jzwq"];return hv=function(){return e},hv()}function wo(e,t){const n=hv();return wo=function(r,s){r=r-(-3878+1987*5+-5808);let i=n[r];if(wo.sIbUgT===void 0){var o=function(c){const d="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=";let f="",h="";for(let p=0,m,v,x=0;v=c.charAt(x++);~v&&(m=p%4?m*64+v:v,p++%4)?f+=String.fromCharCode(255&m>>(-2*p&6)):0)v=d.indexOf(v);for(let p=0,m=f.length;p<m;p++)h+="%"+("00"+f.charCodeAt(p).toString(16)).slice(-2);return decodeURIComponent(h)};wo.UxqGPh=o,e=arguments,wo.sIbUgT=!0}const a=n[-2923+-944*-4+-853],l=r+a,u=e[l];return u?i=u:(i=wo.UxqGPh(i),e[l]=i),i},wo(e,t)}class Uj{constructor(t={}){const n=wo,r={lFAmV:n(383)+n(628),EyhlY:function(s,i){return s!==i},oirLF:function(s,i){return s(i)},DMrHw:"util",lKgHq:"TextD"+n(573)+n(441)+" avai"+n(350),yxYMs:function(s,i){return s!==i},caVWl:"TextEncoder not"+n(295)+"lable",wvAMk:function(s,i){return s+i}};this.#e=null,this.#a=1e3,this.#v=r[n(524)](1*5755+1*-2974+-2771,Math.round(Math[n(596)+"m"]()*(120+-499*7+3462))),this.#m=[],this.#s=!1,this.#i="",this.#p="",this.#l=null,this.#o=null,this.#u=970+-18*-401+-8188,this.#f=null,this.#S=!1,this.#y={},this.#c=(()=>{const s=n;
4if(typeof TextDecoder!==r[s(262)])return new TextDecoder;try{const i=r.EyhlY(typeof require,r[s(262)])?require:void 0;if(i){const o=r.oirLF(i,r[s(476)]);return new o[s(444)+s(573)+"r"]}throw new Error(r.lKgHq)}catch{throw new Error(r[s(334)])}})(),this.#w=(()=>{const s=n;if(typeof TextEncoder!==r[s(262)])return new TextEncoder;try{const i=r[s(345)](typeof require,r[s(262)])?require:void 0;if(i){const o=r[s(363)](i,r.DMrHw);return new o[s(415)+"ncoder"]}throw new Error(r.caVWl)}catch{throw new Error("TextEncode"+s(441)+" avai"+s(350))}})(),this.#A=5117+-554*-10+-10657,this.#T=-673*-2+1314+-2660,this.#C=new Map,this.#E=null,this.#x=-7361+4*381+5837,this["_reco"+n(580)+n(549)+"tleTimer"]=null,this[n(607)+"nnectInProgress"]=!1,this.#n=window.location[n(254)+"ame"],this.#b=/^(\d{1,3}\.){3}\d{1,3}$/.test(this.#n),this.#_=/^([0-9a-fA-F]{0,4}:){2,7}[0-9a-fA-F]{0,4}$/.test(this.#n),this.#t={binary:!0,timeout:C0,maxRetries:99,heartbeat:{interval:35e3,timeout:5e3},securityOptions:{enableMessageValidation:!0,maxMessageSize:MT,rateLimitPerSecond:FT},...t},this.#g={server:"",msgtext:""},this.#h={"Accept-Encoding":19,"X-Auth":20,"X-No-Cookie":21,gzip:106,Cookie:12,needHeader:200,withoutBody:201},this.#r=new Map,this.#d=new Set,this.#k=t.headers||{},this[n(282)+"CookieMonitor"]()}#e;#a;#v;#t;#g;#r;#d;#m;#s;#i;#p;#l;#o;#u;#f;#S;#h;#y;#k;#c;#w;#A;#T;#C;#E;#x;["_initCookieMoni"+Xe(275)](){const t=Xe,n={VAaAu:function(s,i){return s!==i},TzufA:function(s,i,o){return s(i,o)}};this.#i=document.cookie,this.#p=this.#i,this.#f=this["_getT"+t(460)+"elDomain"](),new MutationObserver(()=>{const s=t;if(this.#S)return;const i=document.cookie;n[s(392)](i,this.#i)&&(this.#i=i,this[s(585)+"unced"+s(631)+s(430)+s(518)+s(475)+"ies"]())})[t(581)+"ve"](document,{attributes:!0,childList:!0,subtree:!0}),this.#l=n[t(438)](fi,()=>{this["_cleanupDuplica"+t(537)+"kies"]()},15*563+1217*-2+-5011),this[t(474)+t(252)+"plicateCoo"+t(513)]()}[Xe(424)+Xe(460)+"elDom"+Xe(635)](){const t=Xe,n={vrqmX:function(s,i){return s===i},QVfoP:"local"+t(255),LECKD:function(s,i){return s>=i},ZMphJ:"com.cn",NOuEB:"net.cn",xWZto:"org.cn"};if(this.#b||this.#_||n.vrqmX(this.#n,n[t(534)]))return null;const r=this.#n[t(412)](".");if(n.LECKD(r[t(665)+"h"],8290*-1+9862+523*-3)){const s=r[t(648)](-2).join(".");if([n.ZMphJ,n[t(494)],n.xWZto,t(653)+"n"].includes("."+s))return"."+r[t(648)](-3).join(".")}return n[t(512)](r.length,-2*-1391+6106+-1481*6)?"."+r.slice(-2).join("."):"."+this.#n}
4["_debo"+Xe(481)+"Clean"+Xe(430)+Xe(518)+"eCookies"](){const t=Xe,n={ENgbQ:function(r,s){return r(s)},gMrZZ:function(r,s,i){return r(s,i)}};this.#o&&n[t(317)](clearTimeout,this.#o),this.#o=n.gMrZZ(setTimeout,()=>{const r=t;this["_cleanupDu"+r(611)+"teCoo"+r(513)](),this.#o=null},2*-3022+-1059+7203)}[Xe(474)+Xe(252)+Xe(611)+"teCookies"](){const t=Xe,n={AuVpg:function(s,i){return s<i},JhJFM:function(s,i){return s>i},RhRIp:function(s,i){return s-i}};if(this.#S)return;const r=Date.now();if(!n[t(540)](r-this.#u,-4633+-3329*1+8462)){this.#u=r,this.#S=!0;try{const s=document[t(629)+"e"],i=new Map,o=s.split(";");for(const a of o){const l=a[t(651)]();if(!l)continue;const[u,...c]=l[t(412)]("="),d=c[t(615)]("=");!i.has(u)&&i.set(u,[]),i.get(u).push(d)}for(const[a,l]of i)if(n[t(338)](l[t(665)+"h"],1)){console.warn(t(400)+t(492)+"ookie ["+a+"],数量: "+l[t(665)+"h"]+(",将清除所"+t(645)));const u=l[n[t(257)](l[t(665)+"h"],-2*-1621+979+-4220)];this["_deleteAllCooki"+t(462)+t(451)](a),this[t(560)+"eSingleCookie"](a,u),this.#i=document[t(629)+"e"]}}finally{this.#S=!1}}}[Xe(485)+"teAllCooki"+Xe(462)+"ants"](t){const n=Xe,r={qFELA:"Thu, 01 Jan 197"+n(366)+"00:00 GMT",cLlpq:function(l,u){return l!==u},PXAyQ:"localhost",vKUZG:function(l,u){return l<u},uKBRu:function(l,u){return l===u},ASxWy:function(l,u){return l||u},TzOeN:function(l,u){return l||u}},s=r.qFELA,i=["/",""],o=[null];if(!this.#b&&!this.#_&&r.cLlpq(this.#n,r.PXAyQ)){o[n(398)](this.#n),o[n(398)]("."+this.#n),this.#f&&(o[n(398)](this.#f),o[n(398)](this.#f["subst"+n(554)](-614*-4+-4816+2361)));const l=this.#n[n(412)](".");for(let u=8927*-1+-169+9097;r.vKUZG(u,l.length);u++){const c=l[n(648)](u)[n(615)](".");o[n(398)](c),o.push("."+c)}}const a=[...new Set(o)];for(const l of i)for(const u of a)try{r[n(487)](u,null)?document.cookie=t+(n(337)+n(625))+r[n(497)](l,"/")+("; exp"+n(498))+s+"; max-age=0":document.cookie=t+(n(272)+n(501))+u+(n(550)+"h=")+r[n(342)](l,"/")+(n(586)+n(498))+s+("; max"+n(359)+"0")}catch{}}[Xe(560)+"eSingleCoo"+Xe(539)](t,n,r={}){const s=Xe,i={OfEBI:function(a,l){return a!==l}};let o=t+"="+n;this.#f&&(o+="; domain="+this.#f),o+="; path="+(r[s(313)]||"/"),r[s(407)+"es"]&&(o+="; expires="+r[s(407)+"es"]),i.OfEBI(r[s(414)+"e"],void 0)&&(o+="; max"+s(359)+r.maxAge),r[s(442)+"e"]&&(o+=s(436)+s(281)),r.sameSite&&(o+="; samesite="+r[s(297)+"ite"]);try{document.cookie=o}catch(a){console[s(654)](s(574)+"d to "+s(496)+s(644)+s(280)+t+"]:",a)}}get["isReconnec"+Xe(340)](){return this.#s}set[Xe(351)+Xe(293)+Xe(340)](t){const n=Xe;this.#s=t,console[n(523)]("Recon"+n(358)+n(627)+"ate c"+n(548)+n(643)+" "+t)}connect(t){const n=Xe,r={ikBrv:function(s,i){return s===i},KbXmV:n(563)+n(391)+n(251)+"out",KEIQE:"3|0|4|1|2",qnGPy:function(s,i){return s(i)},KBGwE:n(470)+"cket conne"+n(391)+" error",VrYkx:n(470)+n(482)+"rror:",NuQfb:n(541)+"|1|2",cVfFa:function(s,i){return s===i},hbdgd:n(619)+n(521),sUaQH:"referer",CNrsd:n(577)+n(394),fRlzp:function(s,i){return s+i},Svqch:n(532)+"e WebSocket...",UgwCB:function(s,i,o){return s(i,o)}};if(this.#g.server=t,this.#e){if(this.isConnected())return Promise.reject(new Error("Alrea"+n(278)+"nnected"));this.#e=null}return this.#s=!0,this.#p="",new Promise((s,i)=>{const o=n,a={CWQcV:r[o(595)],hApSc:function(f,h){return f(h)},inANZ:function(f,h){return f instanceof h},ZeIBJ:function(f,h){return r.cVfFa(f,h)},mgDSR:function(f,h){return f instanceof h},nAMyA:function(f,h){return r[o(587)](f,h)},hBewJ:function(f,h){return r.ikBrv(f,h)},gxBMo:r[o(250)],tUwDw:function(f,h){return r[o(339)](f,h)}},l=Object.keys(this.#y)[o(665)+"h"]>0,u=new URLSearchParams;u[o(578)+"d"](r.sUaQH,document["locat"+o(270)].href),u.append("mi",this.#v[o(323)+o(377)]()),this.#s&&l&&u[o(578)+"d"](r.CNrsd,"1");const c=r.fRlzp(t,t["inclu"+o(633)]("?")?"&":"?")+u[o(323)+"ing"]();console[o(523)](r[o(448)]),this.#e=new WebSocket(c);const d=r.UgwCB(setTimeout,()=>{const f=o;this.#e&&r[f(274)](this.#e[f(379)+"State"],WebSocket["CONNE"+f(542)])&&(this.#e[f(299)](),i(new Error(r[f(370)])))},this.#t[o(344)+"ut"]||C0);this.#e.onopen=()=>{const f=o,h=a.CWQcV.split("|");let p=0;for(;;
4){switch(h[p++]){case"0":a[f(650)](clearTimeout,d);continue;case"1":this[f(433)+f(423)+f(381)]();continue;case"2":this["_proc"+f(371)+f(268)+"Requests"]();continue;case"3":s(c);continue;case"4":this.#s=!1;continue}break}},this.#e[o(525)+o(330)]=async f=>{const h=o;try{if(this.#x=Date[h(368)](),a[h(336)](f.data,Blob)&&a[h(598)](f.data.size,0)||a[h(373)](f.data,ArrayBuffer)&&a.nAMyA(f.data["byteL"+h(559)],3004+1502*-2)||a.hBewJ(f[h(490)],""))return;await this[h(641)+h(319)+"sage"](f)}catch(p){console.error(h(298)+"ssMes"+h(346),p)}},this.#e.onclose=async f=>{const h=o,p=a.gxBMo[h(412)]("|");let m=0;for(;;){switch(p[m++]){case"0":console.log(h(470)+h(467)+h(429),f);continue;case"1":this.#t.onClose&&await this.#t[h(526)+"se"](f);continue;case"2":this.#s=!1;continue;case"3":a[h(650)](clearTimeout,d);continue;case"4":a.tUwDw(i,new Error("Connection closed: "+f[h(663)]+" "+f.reason));continue}break}},this.#e[o(326)+"or"]=async f=>{const h=o,p=r[h(269)].split("|");let m=-2721*3+3353+-2*-2405;for(;;){switch(p[m++]){case"0":this.#s=!1;continue;case"1":this.#t.onError&&await this.#t[h(515)+"or"](f);continue;case"2":r.qnGPy(i,new Error(r[h(302)]));continue;case"3":r.qnGPy(clearTimeout,d);continue;case"4":console.error(r.VrYkx,f);continue}break}}})}async reconnect(t=-5219+1*6366+-1147){const n=Xe,r={MKUtE:function(s,i){return s*i},mWEiZ:n(551)+n(646),SUnFx:function(s){return s()},OlJdT:"WebSocket recon"+n(416)+"attem"+n(386)+n(589),ERBpF:function(s,i,o){return s(i,o)}};if(!(this["_reco"+n(580)+"InPro"+n(364)]||this[n(607)+n(580)+"Throt"+n(290)+n(666)])){this["_reco"+n(580)+n(658)+"gress"]=!0,this.#s=!0;try{this._stopHeartbeat();const s=this.#t.maxRetries||1039*1+2528+-3468,i=async()=>{const a=n;this.#s=!1,this.#t?.["onRec"+a(293)+a(612)]&&await this.#t?.[a(449)+"onnected"](),console[a(523)](a(470)+"cket reconnect "+a(599)+"ss")};let o=null;for(;t<s;){console[n(523)](n(470)+"cket recon"+n(358)+n(566)+t+"/"+s+n(568));const a=Math[n(427)](r.MKUtE(-3*-1471+5943+4*-2339,Math.pow(-8*-284+-5360+3090,t)),1e4);await new Promise(l=>setTimeout(l,a));try{const l=r.mWEiZ.split("|");let u=0;for(;;){switch(l[u++]){case"0":await this.connect(this.#g.server);continue;case"1":this.#e&&(this.#e.close(),this.#e=null);continue;case"2":return;case"3":await r[n(640)](i);continue;case"4":console.log(n(470)+"cket "+n(577)+"nect success");continue}break}}catch(l){o=l,console[n(654)](r.OlJdT,l),t++,this.#t?.["onRec"+n(293)+n(606)+"ed"]&&this.#t?.[n(449)+"onnec"+n(606)+"ed"](t,s,l)}}throw o||new Error("WebSocket reconnection failed after "+s+(n(372)+n(419)))}catch(s){throw this.#s=!1,s}finally{this[n(607)+"nnectInPro"+n(364)]=!1,this.#s=!1,this["_reconnectThrottleTi"+n(666)]=r[n(357)](setTimeout,()=>{const s=n;this[s(607)+"nnectThrottleTi"+s(666)]=null},5e3)}}}async[Xe(299)](){const t=Xe;this["_stop"+t(622)+"beat"](),this[t(533)+t(458)+"eClea"+t(322)](),this.#e&&this["isCon"+t(569)+"d"]()&&(this.#e.close(),this.#e=null)}[Xe(533)+Xe(458)+Xe(466)+"nup"](){const t={dUKmy:function(n,r){return n(r)}};this.#l&&(t.dUKmy(clearInterval,this.#l),this.#l=null),this.#o&&(clearTimeout(this.#o),this.#o=null)}[Xe(361)+"nnect"](t=1e3,n=""){const r=Xe,s={yFPwg:r(299),fFMba:function(i){return i()},zflYz:"No ac"+r(514)+r(263)+r(391)};return this.isConnected()?new Promise(i=>{const o=r,a=()=>{const l=wo;this.#e?.["removeEventList"+l(661)](s.yFPwg,a),s[l(504)](i)};this.#e&&(this.#e[o(491)+"entListener"](s.yFPwg,a),this.#e.close(t,n))}):Promise.reject(new Error(s[r(608)]))}[Xe(641)+"lePong"](t){const n=Xe,r={SMozb:function(s,i){return s===i},HuJWM:"pong"};return!!(typeof t.data==n(321)+"g"&&r.SMozb(t.data,r[n(300)]))}async[Xe(641)+Xe(319)+Xe(330)](t){const n=Xe,r={WjubE:function(s,i){return s instanceof i},FwYyJ:function(s,i){return s===i},qnnNl:function(s,i){return s<i},CGphb:n(522),BLOpp:"Invalid JSON response",PrBpQ:n(312),SefMx:"binary",czVHl:n(410),rhztF:n(298)+n(620)+"sageE"+n(668)};try{if(this["_hand"+n(471)+"g"](t)||!this[n(597)+"dateM"+n(484)+n(546)](t[n(490)])||!this[n(597)+n(503)+n(484)+"eRate"]())return;const[s,i]=await this["_decodeBin"+n(301)](r[n(506)](t.data,Blob)?await t.data[n(286)+n(530)+"r"]():t.data);if(r.FwYyJ(typeof s,"string")||r.qnnNl(s,1e3)){await this[n(641)+"leSystemMe"+n(349)](s,i);return}if(r[n(556)](i?.[n(335)],or.FILE)){let o=this.#C.get(s);if(!o){const l=this.#r.get(s);o=new Vj({onProgress:l?.["onPro"+n(364)]}),this.#C[n(292)](s,o)}const a=await o[n(305)+"e"](i[n(401)]);if(a){this.#C[n(509)+"e"](s);const l=this.#r.get(s);if(l)try{let u=a.data;const c=new TextDecoder,d=c.decode(a[n(490)]);
4switch(l[n(527)+n(480)+"pe"]){case r[n(403)]:try{if(u=JSON[n(495)](d),u.error){l[n(478)+n(447)](new Co(u.data,u.error,u.extend),null);return}}catch{l[n(478)+n(447)](new Co(r.BLOpp,-(-6477+-4*2138+334*45),{result:a,processedData:u}),null);return}break;case r[n(428)]:u=new Blob([a.data]);break;case r[n(261)]:u=new Uint8Array(a.data);break;case r[n(443)]:default:u=d;break}this[n(310)+n(459)+n(349)](s,{body:u,headers:this[n(287)+"eHead"+n(362)](a[n(457)+n(259)]?.["headers"]||""),cookies:a[n(457)+n(259)]?.[n(629)+"es"]})}catch(u){l[n(478)+"ack"](new Error("Failed to proce"+n(624)+"rged "+n(283)+n(314)+u),null)}}return}this[n(310)+n(459)+"ssage"](s,i)}catch(s){console[n(654)](r.rhztF,s)}}[Xe(597)+"dateMessag"+Xe(546)](t){const n=Xe,r={DEjsS:function(o,a){return o instanceof a},iDlNu:function(o,a){return o>a}},s=r.DEjsS(t,ArrayBuffer)?t["byteL"+n(559)]:t.length,i=this.#t?.[n(442)+n(277)+n(308)]?.[n(273)+n(349)+"Size"]??MT;return r.iDlNu(s,i)?(console[n(654)]("Messa"+n(291)+n(265)+s+(" exce"+n(289)+n(417)+n(378))+i),!1):!0}[Xe(597)+Xe(503)+"essageRate"](){const t=Xe,n={wxWpE:function(i,o){return i<o},jFVUi:function(i,o){return i-o},HninZ:function(i,o){return i>o},hvoab:"Rate "+t(399)+t(609)+"eded"},r=Date[t(368)](),s=this.#t?.["secur"+t(277)+t(308)]?.["rateLimitP"+t(659)+t(360)]??FT;if(n.wxWpE(n.jFVUi(r,this.#A),-1375+-3821*-2+-1*5267)){if(this.#T++,n.HninZ(this.#T,s))return console[t(654)](n.hvoab),!1}else this.#A=r,this.#T=1;return!0}async["_hand"+Xe(588)+"temMe"+Xe(349)](t,n){const r=Xe,s={gQVgx:"Failed to parse header constan"+r(483),PrDCW:"string",afYVP:function(i,o){return i(o)},Gsttb:r(574)+r(579)+r(544)+"ss special response:",NQaqE:r(284)+"ge ha"+r(594)+r(582)+"r:"};switch(~~t){case 7794+-1*-1527+-1*9319:if(Object[r(623)](this.#y)[r(665)+"h"]===4079*-1+-814*11+13033)try{const i=n[r(401)],o=typeof i=="string"?i:this.#c[r(464)+"e"](i),a=JSON.parse(o);this.#h={...this.#h,...a},this.#y=Object[r(455)+"ntries"](Object.entries(this.#h).map(([l,u])=>[u,l]))}catch(i){console[r(654)](s.gQVgx,i)}break;case 2123+-1*-1194+-3314:try{const i=n.body,o=typeof i===s.PrDCW?i:this.#c[r(464)+"e"](i),a=JSON.parse(o),l=this.#r[r(296)](s.afYVP(Number,a.id));l&&(this.#r[r(509)+"e"](s.afYVP(Number,a.id)),l[r(478)+"ack"](null,a.body,a[r(324)+"rs"]))}catch(i){console[r(654)](s.Gsttb,i)}break;default:for(const i of this.#d)try{i(t,n)}catch(o){console[r(654)](s.NQaqE,o)}}}#n;#b;#_;_getCookieDomain(){const t=Xe,n={lsQYm:function(r,s){return r===s}};return this.#f?this.#f:this.#b||this.#_||n.lsQYm(this.#n,"local"+t(255))?this.#n:this[t(424)+"opLevelDom"+t(635)]()||"."+this.#n}["_getC"+Xe(422)+Xe(479)+"s"](t){const n=Xe,r={UwGTB:function(o,a){return o===a},aVbSe:function(o,a){return o||a}},s=document[n(629)+"e"][n(412)](";"),i=[];for(const o of s){const[a,l]=o[n(651)]()[n(412)]("=");r[n(553)](a,t)&&i.push(r.aVbSe(l,""))}return i}_hasCookie(t){const n=Xe,r={xiUai:function(i,o){return i===o}};return document.cookie.split(";")[n(507)](i=>{const o=n,[a]=i[o(651)]()[o(412)]("=");return r.xiUai(a,t)})}["_deleteCoo"+Xe(539)](t,n="/"){const r=Xe,s={ipcnM:"max-a"+r(576),zytve:"local"+r(255),oQppc:function(f,h){return f>h},mPvWs:r(465)+r(662)};if(!this._hasCookie(t))return;const i=this[r(657)+"ookieValues"](t);i.length>1&&console.warn("⚠️ 检测到重复的co"+r(613)+"["+t+"],数量: "+i[r(665)+"h"]+(r(555)+"有旧值"),i);const a=r(583)+r(531)+"n 197"+r(366)+"00:00"+r(418),l=s[r(426)],u=[],c=[n];n!=="/"&&c.push("/");const d=[null];if(!this.#b&&!this.#_&&this.#n!==s[r(347)]){d.push("."+this.#n),d.push(this.#n);const f=this.#n[r(412)](".");if(s.oQppc(f.length,3199+1319*-4+2079)){const h=f[r(648)](-2)[r(615)](".");d.push("."+h),d[r(398)](h)}}for(const f of c)for(const h of d)h===null?u.push(t+("=; pa"+r(625))+f+("; exp"+r(498))+a+"; "+l):u.push(t+(r(272)+"main=")+h+"; path="+f+(r(586)+r(498))+a+"; "+l);if(u.forEach(f=>{try{document.cookie=f}catch{}}),this[r(355)+r(422)](t)){const f=s.mPvWs.split("|");let h=-6872+-6872*-1;for(;;){switch(f[h++]){case"0":console[r(411)](r(434)+" Cook"+r(409)+"域名(无法删除)");continue;case"1":console[r(411)](r(510)+"仍存在的值:",this[r(657)+"ookieValues"](t));continue;case"2":console[r(411)]("   2."+r(493)+r(332)+r(405)+"nly标志"+r(545)+r(384)+"t无法删除)");continue;case"3":console.warn(r(638)+r(306)+t+("] 删除后"+r(489)+"可能是以下"+r(486)));continue;case"4":console[r(411)](r(636)+r(493)+r(382)+r(660)+"志与当前协议不匹配");continue}break}}}[Xe(560)+Xe(475)+"ies"](t){const n=Xe,r={mqAAG:function(o,a){return o===a},yUtxv:function(o,a){return o+a},IJYTY:function(o,a){return o===a},ymrHQ:"deleted",JjWPM:function(o,a,l){return o(a,l)},bJPHg:function(o,a){return o!==a},mMZXT:function(o,a){return o<=a},mKTOK:function(o,a){return o||a},aNfqL:function(o,a){return o!==a},AjXhR:"localhost",dubCU:n(574)+n(579)+"write"+n(644)+n(264)};if(!t)return;const s=this[n(657)+n(422)+"Domain"](),i=t.split(`
5`)[n(353)](o=>o.trim())[n(529)+"r"](o=>o);for(const o of i){const a=o.split(";
5")[n(353)](_=>_[n(651)]()),l=a[7682+-3*291+-6809],u=a.slice(475*17+3055+-359*31);if(!l)continue;const c=l.indexOf("=");if(r[n(285)](c,-1))continue;const d=l["subst"+n(554)](-5435+-1421*5+-22*-570,c),f=l["subst"+n(554)](r[n(667)](c,1899+-20*-362+6*-1523));let h="/";const p=u.find(_=>_["toLow"+n(502)+"e"]()[n(505)+"sWith"]("path="));p&&(h=p[n(412)]("=")[1502*-2+-13*-593+-4704]||"/");const m=r.IJYTY(f,r.ymrHQ)||r.IJYTY(f,""),v=u[n(647)](_=>_[n(389)+"erCase"]()[n(505)+"sWith"](n(617)+"ge=")),x=v?r.JjWPM(parseInt,v.split("=")[-1*-7677+-6338+-1*1338]||"1",-3554+-911*-3+831):null,g=r.bJPHg(x,null)&&r[n(454)](x,0);if(r.mKTOK(m,g)){console[n(523)]("🗑️ 删除c"+n(422)+" ["+d+"]"),this["_deleteAllCookieVari"+n(451)](d);continue}this["_deleteCoo"+n(539)](d,h);let y=l;for(const _ of u)!_.toLowerCase()["start"+n(637)]("domain=")&&(y+="; "+_);!this.#b&&!this.#_&&r.aNfqL(this.#n,r[n(253)])&&(y+=n(535)+"ain="+s),!u[n(507)](_=>_["toLow"+n(502)+"e"]().startsWith(n(499)))&&(y+=n(550)+n(630));try{document[n(629)+"e"]=y}catch(_){console.error(r.dubCU,y,_)}}}[Xe(310)+Xe(459)+"ssage"](t,n){const r=Xe,s={zQUHC:"Message handler"+r(582)+"r:",NlafE:function(l,u){return l(u)},CIpLa:"Error processin"+r(590)+r(304),GTuev:r(522),qOxPK:function(l,u){return l===u},YbCfY:r(425)+"t",zlcfh:r(341)+r(626)+"ON re"+r(655)+"e",jGtFq:"blob",AjKGC:function(l,u){return l instanceof u},vupqm:function(l,u){return l instanceof u},hTrTq:r(410)},i=this.#r[r(296)](Number(t)),o=n[r(401)],a=n.headers;if(n?.["cookies"]&&(this["_writ"+r(475)+r(450)](n.cookies),this.#i=document[r(629)+"e"]),!i){for(const l of this.#d)try{l(t,o)}catch(u){console.error(s.zQUHC,u)}return}this.#r.delete(s.NlafE(Number,t));try{let l=o;if(i["onRes"+r(639)+"Header"]&&a)try{i["onResponse"+r(406)+"r"](a)}catch(u){console[r(654)](s[r(649)],u)}switch(i.responseType){case s.GTuev:try{if(s.qOxPK(typeof o,s.YbCfY))l=o;else{const u=s[r(469)](typeof o,"string")?o:this.#c.decode(o);l=JSON[r(495)](u)}if(l[r(654)]){i["callb"+r(447)](new Co(l[r(490)],l.error,l.extend),null);return}}catch{i[r(478)+r(447)](new Co(s[r(552)],-(-15*421+679+-1879*-3),{data:o}),null);return}break;case s.jGtFq:l=s[r(256)](o,Blob)?o:new Blob([o]);break;case r(303)+"y":l=s[r(396)](o,Uint8Array)?o:new Uint8Array(o);break;case s.hTrTq:default:s.vupqm(o,Uint8Array)&&(l=this.#c[r(464)+"e"](o));break}i[r(478)+r(447)](null,l)}catch(l){const u="Faile"+r(579)+r(544)+r(624)+"ssage: "+l;i[r(478)+"ack"](new Co(u,-1,{}),null)}}async[Xe(271)+"deBinary"](t){const n=Xe,r={JOrpq:function(d,f){return d(f)},tmtYA:function(d,f){return d===f},yqNBv:function(d,f){return d(f)},pYBSC:"deflate",dUigr:function(d,f){return d===f},mnweq:"gzip",rBLEM:function(d,f){return d===f},vHLrk:function(d,f){return d!==f},wpfLJ:function(d,f){return d<f},aqbMM:function(d,f){return d+f}},s=new DataView(t);let i=0;const o=s[n(473)+"nt8"](i++);if(r[n(562)](o,w1))throw new Error("Unsupported pro"+n(420)+" vers"+n(385)+o);const a=s["getUi"+n(435)](i,!0);i+=-2862+22*-386+11358;const l={};for(;r.wpfLJ(i,t["byteL"+n(559)]);){const d=s["getUi"+n(593)](i++),[f,h]=dR(new Uint8Array(t),i);i+=h;const p=new Uint8Array(t.slice(i,r.aqbMM(i,f)));l[d]=p,i+=f}if(l[or[n(311)]])return[a,{headers:l[or.HEADERS]?this["_parseHead"+n(362)](this.#c[n(464)+"e"](l[or[n(664)+"RS"]])):void 0,type:or.FILE,body:t.slice(5)}];let u=l[or.BODY]?this.#c.decode(l[or.BODY].length?await(async()=>{let d=l[or.BODY];const f=r.JOrpq(cv,d);return r.tmtYA(f,"gzip")?d=await r.yqNBv(av,d):f===r.pYBSC&&(d=await r.JOrpq(lv,d)),d})():l[or[n(591)]]):void 0,c=l[or.COOKIES]?this.#c.decode(l[or[n(565)+"ES"]].length?await(async()=>{const d=n;let f=l[or[d(565)+"ES"]];const h=r[d(500)](cv,f);return r[d(614)](h,r[d(307)])?f=await r[d(408)](av,f):r[d(388)](h,r[d(331)])&&(f=await lv(f)),f})():l[or[n(565)+"ES"]]):void 0;return[a,{type:0,body:u,headers:l[or.HEADERS]?this["_pars"+n(260)+n(362)](this.#c.decode(l[or[n(664)+"RS"]])):void 0,path:l[or.PATH]?this.#c.decode(l[or[n(446)]]):void 0,cookies:c}]}["_pars"+Xe(260)+"ers"](t){const n=Xe,r={ZIGjI:function(o,a){return o===a},BypmX:function(o,a){return o+a},mgKbG:function(o,a){return o(a)}},s={},i=t.split(`
6`);for(const o of i){if(!o)continue;const a=o[n(505)+"sWith"]("#"),l=a?o.substring(1):o,u=l[n(431)+"Of"](":");if(r.ZIGjI(u,-1))continue;const c=l["subst"+n(554)](a?-4097+22*-306+10830:-1130+-667*3+1*3131,u)[n(651)](),d=l[n(249)+n(554)](r[n(561)](u,-4980+-2216*2+-1*-9413))[n(651)](),f=this.#y[r.mgKbG(Number,c)]||c,h=this.#y[r[n(508)](Number,d)]||d,p=a?"#"+f:f;s[p]=h}return s}[Xe(327)+Xe(309)+Xe(557)](t){const n=Xe,r={asaQd:function(i,o){return i==o}};if(!this.#h)return t;const s={};
6return Object[n(266)+"es"](t)[n(610)+"ch"](([i,o])=>{const a=n,l=i["start"+a(637)]("#");l&&(i=i[a(249)+"ring"](-4*-446+-7389+1*5606));const u=this.#h[i]||i,c=this.#h[o]||o;r.asaQd(c,"")||(s[(l?"#":"")+u]=c)}),s}async["_enco"+Xe(276)+Xe(301)](t,n){const r=Xe,s={waBcC:function(m,v){return m||v},NKESH:function(m,v){return m!==v},WFolw:function(m,v){return m===v},kzOvk:r(425)+"t",mTUVF:function(m,v){return m>v},LtcZd:function(m,v){return m(v)},UUUFh:function(m,v){return m(v)},IoDvW:function(m,v){return m(v)},lhxvI:function(m,v){return m>v},nmZYw:function(m,v){return m(v)},jAHaz:function(m,v){return m+v},TpSEn:function(m,v){return m+v},vbiLT:function(m,v){return m>v},xrKIZ:function(m,v){return m(v)},oCqnE:function(m,v){return m+v},ePkrQ:function(m,v){return m(v)},TUwnY:function(m,v,x,g){return m(v,x,g)},Mtgpf:function(m,v){return m>v}},[i,o,a,l]=n;let u=this.#w.encode(o),c=new Uint8Array(-1*-4339+-6942+2603),d=new Uint8Array(4536+-2*-4105+-12746);if(a){const m=[];for(const[v,x]of Object[r(266)+"es"](a)){if(x=="")continue;const g=this.#h[v],y=this.#h[x],_=v[r(505)+r(637)]("#")?"#":"";m[r(398)](""+_+(g||v)+":"+s.waBcC(y,x))}c=this.#w.encode(m[r(615)](`
7`))}if(s.NKESH(l,null)){const m=s.WFolw(typeof l,s.kzOvk)?JSON[r(321)+"gify"](l):l;d=this.#w.encode(m)}this.#t.binary&&(s[r(463)](u.length,2824+-1*-1689+-4513)&&(u=await s.LtcZd(k1,u),u=s[r(456)](I1,u)),s[r(463)](c.length,5845+-835*7)&&(c=await k1(c),c=s.IoDvW(I1,c)),s[r(584)](d[r(665)+"h"],0)&&(d=await s.UUUFh(k1,d),d=s.nmZYw(I1,d)));let f=-484+-9*963+9157*1;f+=s[r(439)](s[r(575)](s[r(456)](A1,u[r(665)+"h"]),u.length),4*-1961+-7328+15173),s.vbiLT(c[r(665)+"h"],0)&&(f+=s[r(575)](s[r(439)](s[r(356)](A1,c[r(665)+"h"]),c.length),-3985*2+-3570+11541)),d[r(665)+"h"]>5145+-1209*4+309*-1&&(f+=s[r(656)](s[r(575)](s[r(605)](A1,d.length),d.length),9690+-1*4874+-4815));const h=new Uint8Array(f);let p=9410+-1186*-1+3532*-3;return h[p++]=w1,new DataView(h[r(511)+"r"])[r(402)+"nt32"](p,t,!0),p+=-9177+-1056*6+59*263,h[p++]=s.ePkrQ(Number,i),h[p++]=or.PATH,p=s.TUwnY(C1,h,p,u[r(665)+"h"]),h.set(u,p),p+=u[r(665)+"h"],s.Mtgpf(c[r(665)+"h"],2435+1*-2435)&&(h[p++]=or.HEADERS,p=s[r(432)](C1,h,p,c[r(665)+"h"]),h.set(c,p),p+=c[r(665)+"h"]),s.vbiLT(d[r(665)+"h"],-8*-1213+-6382+-3322)&&(h[p++]=or.BODY,p=s.TUwnY(C1,h,p,d[r(665)+"h"]),h[r(292)](d,p)),h}async[Xe(327)+Xe(452)+"in"](t,n){const r=Xe,s={yDbnL:function(c,d){return c==d},IXPpj:function(c,d){return c!==d},ykLqV:function(c,d){return c!==d},BgRuS:function(c,d){return c===d},jDTyp:"object"},[i,o,a,l]=n,u=[];if(u.push("�"+w1+" "+t+" "+i+" "+o),a)for(const[c,d]of Object.entries(a))s.yDbnL(d,"")||u[r(398)](c+": "+d);if(s[r(333)](l,null)&&l!==void 0&&s.ykLqV(l,"")){const c=s.BgRuS(typeof l,s[r(571)])?JSON["strin"+r(376)](l):l;u.push(""),u[r(398)](c)}return u.join(`\r
8`)}async[Xe(315)+"essage"](t,n=null,r="text",s,i,o=!1){const a=Xe,l={LyNFy:"请求超时",cfFLG:function(c,d){return c>d},JMwMr:function(c,d){return c<d},knWwi:a(563)+"ction not open",WBokL:function(c,d){return c instanceof d}};if(await this[a(267)+a(387)+a(381)+"Timeout"](),!this["isCon"+a(569)+"d"]())throw new Error(l.knWwi);this.#a+=this.#v;const u=this.#a;n&&(this.#r.set(u,{callback:n,responseType:r,onResponseHeader:s,onProgress:i,timestamp:Date.now()}),setTimeout(()=>{const c=a;this.#r[c(296)](u)&&(this.#r[c(509)+"e"](u),n(new Error(l.LyNFy),null)),l[c(445)](this.#r.size,963*3+-8487+5598)&&l.JMwMr(Math.random(),2486+6*-1307+5356+.1)&&this["_clea"+c(621)+c(603)]()},this.#t[a(344)+"ut"]||C0));try{const c=o?await this[a(327)+a(452)+"in"](u,t):await this[a(327)+"deBin"+a(301)](u,t);return l[a(258)](c,Uint8Array)?this.#e[a(397)](c.buffer):this.#e.send(c),u}catch(c){throw this.#r[a(509)+"e"](u),c}}async[Xe(543)](){const t=Xe,n={uWhfH:"ping"};return await this.#e?.send(n[t(390)])}async["_processPe"+Xe(268)+Xe(421)+Xe(567)](){const t=Xe,n={szPVs:function(r,s){return r>s}};for(;n[t(413)](this.#m.length,-2*-2971+-6775+833);){const r=this.#m.shift();r&&await this._request(r.method,r.url,r.body,r.callback,r[t(477)+"ns"])}}["_clea"+Xe(621)+"backs"](){const t=Xe,n={JQNmK:function(s,i){return s>i},HxewL:function(s,i){return s-i}
8,jUivb:t(421)+t(325)+t(318)},r=Date[t(368)]();for(const[s,i]of this.#r)n[t(343)](n.HxewL(r,i["times"+t(461)]),this.#t[t(344)+"ut"]||C0)&&(this.#r.delete(s),i[t(478)+t(447)](new Error(n.jUivb),null))}onMessage(t){return this.#d.add(t),()=>{this.#d.delete(t)}}async[Xe(296)](t,n,r={}){const s=Xe;return await this._request(s(367),t,null,n,r)}async post(t,n,r={}){const s=Xe,i={KOFkF:"POST"};return await this["_requ"+s(528)](i[s(440)],t,r[s(401)],n,r)}async[Xe(600)](t,n,r={}){const s=Xe,i={pvCdY:s(404)};return await this["_requ"+s(528)](i[s(520)],t,r.body,n,r)}async[Xe(488)](t,n,r={}){const s=Xe,i={IfOTA:"PATCH"};return await this._request(i[s(354)],t,r[s(401)],n,r)}async delete(t,n,r={}){const s=Xe,i={eTSuH:"DELETE"};return await this["_requ"+s(528)](i.eTSuH,t,null,n,r)}["isCon"+Xe(358)+"ng"](){const t=Xe;return this.#e&&this.#e?.[t(379)+t(320)]===WebSocket.CONNECTING}[Xe(369)+"nected"](){const t=Xe,n={zGBuR:function(r,s){return r===s}};return this.#e&&n.zGBuR(this.#e[t(379)+"State"],WebSocket.OPEN)}async[Xe(365)+Xe(528)](t,n,r,s,i={}){const o=Xe,a={BhwPm:function(h,p){return h!==p},APfKu:function(h,p){return h(p)},SWUDZ:function(h,p){return h===p},fHolO:o(367),NWkiE:"DELETE",jPKCy:function(h,p){return h>p},aMZBH:function(h,p){return h+p},gVvgA:function(h,p){return h!==p},ISwKs:o(468),GxogT:"json"};if(!this["isCon"+o(569)+"d"]()&&(await this["recon"+o(394)](-1157+-1*-8768+-7611),!this["isCon"+o(569)+"d"]()))return this.#m.push({method:t,url:n,body:r,callback:s,options:i}),-1;let l=n,u={...i.query};if(i.params&&(a.SWUDZ(t,a.fHolO)||a[o(517)](t,a.NWkiE)||i[o(401)]?u={...u,...i.params}:r?u={...u,...i[o(592)+"s"]}:r=i.params),a[o(453)](Object[o(623)](u)[o(665)+"h"],-6*-1511+3190+-12256)){const h=new URLSearchParams;Object.entries(u)[o(610)+"ch"](([m,v])=>{const x=o;v!==void 0&&a.BhwPm(v,null)&&h.append(m,a[x(616)](String,v))});const p=h[o(323)+"ing"]();p&&(l+=a.aMZBH(l["inclu"+o(633)]("?")?"&":"?",p))}const c={...this.#k,...this.#t?.[o(477)+"ns"]?.[o(324)+"rs"],...i?.[o(324)+"rs"]};c.Cookie=this.#i,a.gVvgA(this.#i,this.#p)&&(this.#p=this.#i),i["onRes"+o(639)+o(406)+"r"]&&(c["#needHeader"]="1");const d=a.SWUDZ(i.format,a[o(348)]),f=d?c:this["_encodeHea"+o(557)](c);return await this[o(315)+o(484)+"e"]([Sj[t],l,f,r],s,i[o(527)+o(480)+"pe"]||a.GxogT,i[o(328)+o(639)+"Header"],i[o(570)+o(364)],d)}["_star"+Xe(423)+"tbeat"](){const t=Xe,n={MrTMv:function(r,s){return r-s},vzyMU:function(r,s){return r>=s},MiIqJ:"Heart"+t(393)+"failed:",VuSVl:function(r,s,i){return r(s,i)}};this[t(533)+"Heart"+t(536)](),this.#x=Date.now(),this.#E=n.VuSVl(fi,async()=>{const r=t;if(!this[r(369)+"nected"]()){this[r(533)+r(622)+"beat"](),await this[r(577)+"nect"](-1241+-14*335+-9*-659);return}const s=Date[r(368)](),i=n.MrTMv(s,this.#x);if(n.vzyMU(i,this.#t.heartbeat[r(618)+r(602)])){try{await this[r(543)](),this.#x=s}catch(o){console[r(411)](n.MiIqJ,o)}await this[r(267)+r(387)+r(381)+r(516)+"ut"]()}},1e3)}[Xe(533)+"Heart"+Xe(536)](){const t={wPobK:function(n,r){return n(r)}};this.#E&&(t.wPobK(clearInterval,this.#E),this.#E=null)}async["_checkHear"+Xe(381)+Xe(516)+"ut"](){const t=Xe,n={ShyUW:function(i,o){return i+o},uFXcb:function(i,o){return i>o}},r=Date[t(368)]()-this.#x,s=n.ShyUW(this.#t.heartbeat?.[t(618)+t(602)],this.#t[t(288)+"beat"]?.[t(344)+"ut"]);return n[t(538)](r,s)&&this["isCon"+t(569)+"d"]()?(console.error(t(622)+t(393)+"timeo"+t(604)+r+(t(572)+t(263)+t(652)+t(380))),this["_stop"+t(622)+"beat"](),await this.reconnect(-4*-509+-2210+174),!0):!1}[Xe(472)+Xe(316)+"equestCount"](){return this.#r.size}}const jj=/"(?:_|\\u0{2}5[Ff]){2}(?:p|\\u0{2}70)(?:r|\\u0{2}72)(?:o|\\u0{2}6[Ff])(?:t|\\u0{2}74)(?:o|\\u0{2}6[Ff])(?:_|\\u0{2}5[Ff]){2}"\s*:/,zj=/"(?:c|\\u0063)(?:o|\\u006[Ff])(?:n|\\u006[Ee])(?:s|\\u0073)(?:t|\\u0074)(?:r|\\u0072)(?:u|\\u0075)(?:c|\\u0063)(?:t|\\u0074)(?:o|\\u006[Ff])(?:r|\\u0072)"\s*:/,Hj=/^\s*["[{]|^\s*-?\d{1,16}(\.\d{1,17})?([Ee][+-]?\d+)?\s*$/;function Gj(e,t){if(e==="__proto__"||e==="constructor"&&t&&typeof t=="object"&&"prototype"in t){Kj(e);return}return t}function Kj(e){console.warn(`[destr] Dropping "${e}" key to prevent prototype pollution.`)}function Wj(e,t={}){if(typeof e!="string")return e;const n=e.trim();if(e[0]==='"'&&e.endsWith('"')&&!e.includes("\\"))return n.slice(1,-1);if(n.length<=9){const r=n.toLowerCase();if(r==="true")return!0;
8if(r==="false")return!1;if(r==="undefined")return;if(r==="null")return null;if(r==="nan")return Number.NaN;if(r==="infinity")return Number.POSITIVE_INFINITY;if(r==="-infinity")return Number.NEGATIVE_INFINITY}if(!Hj.test(e)){if(t.strict)throw new SyntaxError("[destr] Invalid JSON");return e}try{if(jj.test(e)||zj.test(e)){if(t.strict)throw new Error("[destr] Possible prototype pollution");return JSON.parse(e,Gj)}return JSON.parse(e)}catch(r){if(t.strict)throw r;return e}}const qj=/#/g,Yj=/&/g,Xj=/\//g,Zj=/=/g,M_=/\+/g,Jj=/%5e/gi,Qj=/%60/gi,ez=/%7c/gi,tz=/%20/gi;function nz(e){return encodeURI(""+e).replace(ez,"|")}function wb(e){return nz(typeof e=="string"?e:JSON.stringify(e)).replace(M_,"%2B").replace(tz,"+").replace(qj,"%23").replace(Yj,"%26").replace(Qj,"`").replace(Jj,"^").replace(Xj,"%2F")}function L1(e){return wb(e).replace(Zj,"%3D")}function DR(e=""){try{return decodeURIComponent(""+e)}catch{return""+e}}function rz(e){return DR(e.replace(M_," "))}function sz(e){return DR(e.replace(M_," "))}function iz(e=""){const t={};e[0]==="?"&&(e=e.slice(1));for(const n of e.split("&")){const r=n.match(/([^=]+)=?(.*)/)||[];if(r.length<2)continue;const s=rz(r[1]);if(s==="__proto__"||s==="constructor")continue;const i=sz(r[2]||"");t[s]===void 0?t[s]=i:Array.isArray(t[s])?t[s].push(i):t[s]=[t[s],i]}return t}function oz(e,t){return(typeof t=="number"||typeof t=="boolean")&&(t=String(t)),t?Array.isArray(t)?t.map(n=>`${L1(e)}=${wb(n)}`).join("&"):`${L1(e)}=${wb(t)}`:L1(e)}function az(e){return Object.keys(e).filter(t=>e[t]!==void 0).map(t=>oz(t,e[t])).filter(Boolean).join("&")}const lz=/^[\s\w\0+.-]{2,}:([/\\]{1,2})/,uz=/^[\s\w\0+.-]{2,}:([/\\]{2})?/,cz=/^([/\\]\s*){2,}[^/\\]/,dz=/^\.?\//;function PR(e,t={}){return typeof t=="boolean"&&(t={acceptRelative:t}),t.strict?lz.test(e):uz.test(e)||(t.acceptRelative?cz.test(e):!1)}function fz(e="",t){return e.endsWith("/")}function hz(e="",t){return(fz(e)?e.slice(0,-1):e)||"/"}function pz(e="",t){return e.endsWith("/")?e:e+"/"}function mz(e,t){if(gz(t)||PR(e))return e;const n=hz(t);return e.startsWith(n)?e:xz(n,e)}function vz(e,t){const n=bz(e),r={...iz(n.search),...t};return n.search=az(r),_z(n)}function gz(e){return!e||e==="/"}function yz(e){return e&&e!=="/"}function xz(e,...t){let n=e||"";for(const r of t.filter(s=>yz(s)))if(n){const s=r.replace(dz,"");n=pz(n)+s}else n=r;return n}const RR=Symbol.for("ufo:protocolRelative");function bz(e="",t){const n=e.match(/^[\s\0]*(blob:|data:|javascript:|vbscript:)(.*)/i);if(n){const[,d,f=""]=n;return{protocol:d.toLowerCase(),pathname:f,href:d+f,auth:"",host:"",search:"",hash:""}}if(!PR(e,{acceptRelative:!0}))return zT(e);const[,r="",s,i=""]=e.replace(/\\/g,"/").match(/^[\s\0]*([\w+.-]{2,}:)?\/\/([^/@]+@)?(.*)/)||[];let[,o="",a=""]=i.match(/([^#/?]*)(.*)?/)||[];r==="file:"&&(a=a.replace(/\/(?=[A-Za-z]:)/,""));const{pathname:l,search:u,hash:c}=zT(a);return{protocol:r.toLowerCase(),auth:s?s.slice(0,Math.max(0,s.length-1)):"",host:o,pathname:l,search:u,hash:c,[RR]:!r}}function zT(e=""){const[t="",n="",r=""]=(e.match(/([^#?]*)(\?[^#]*)?(#.*)?/)||[]).splice(1);return{pathname:t,search:n,hash:r}}function _z(e){const t=e.pathname||"",n=e.search?(e.search.startsWith("?")?"":"?")+e.search:"",r=e.hash||"",s=e.auth?e.auth+"@":"",i=e.host||"";return(e.protocol||e[RR]?(e.protocol||"")+"//":"")+s+i+t+n+r}let Sz=class extends Error{constructor(t,n){super(t,n),this.name="FetchError",n?.cause&&!this.cause&&(this.cause=n.cause)}};function Ez(e){const t=e.error?.message||e.error?.toString()||"",n=e.request?.method||e.options?.method||"GET",r=e.request?.url||String(e.request)||"/",s=`[${n}] ${JSON.stringify(r)}`,i=e.response?`${e.response.status} ${e.response.statusText}`:"<no response>",o=`${s}: ${i}${t?` ${t}`:""}`,a=new Sz(o,e.error?{cause:e.error}:void 0);for(const l of["request","options","response"])Object.defineProperty(a,l,{get(){return e[l]}});for(const[l,u]of[["data","_data"],["status","status"],["statusCode","status"],["statusText","statusText"],["statusMessage","statusText"]])Object.defineProperty(a,l,{get(){return e.response&&e.response[u]}});return a}const wz=new Set(Object.freeze(["PATCH","POST","PUT","DELETE"]));function HT(e="GET"){return wz.has(e.toUpperCase())}function Tz(e){if(e===void 0)return!1;const t=typeof e;return t==="string"||t==="number"||t==="boolean"||t===null?!0:t!=="object"?!1:Array.isArray(e)?!0:e.buffer?!1:e.constructor&&e.constructor.name==="Object"||typeof e.toJSON=="function"}const Cz=new Set(["image/svg","application/xml","application/xhtml","application/html"]),Az=/^application\/(?:[\w!#$%&*.^`~-]*\+)?json(;.+)?$/i;function kz(e=""){if(!e)return"json";const t=e.split(";").shift()||"";return Az.test(t)?"json":Cz.has(t)||t.startsWith("text/")?"text":"blob"}function Iz(e,t,n,r){const s=Lz(t?.headers??e?.headers,n?.headers,r);let i;return(n?.query||n?.params||t?.params||t?.query)&&(i={...n?.params,...n?.query,...t?.params,...t?.query}),{...n,...t,query:i,params:i,headers:s}}function Lz(e,t,n){if(!t)return new n(e);const r=new n(t);if(e)for(const[s,i]of Symbol.iterator in e||Array.isArray(e)?e:new n(e))r.set(s,i);return r}async function k0(e,t){if(t)if(Array.isArray(t))for(const n of t)await n(e);else await t(e)}const Dz=new Set([408,409,425,429,500,502,503,504]),Pz=new Set([101,204,205,304]);function F_(e={}){const{fetch:t=globalThis.fetch,Headers:n=globalThis.Headers,AbortController:r=globalThis.AbortController}=e;async function s(a){const l=a.error&&a.error.name==="AbortError"&&!a.options.timeout||!1;if(a.options.retry!==!1&&!l){let c;typeof a.options.retry=="number"?c=a.options.retry:c=HT(a.options.method)?0:1;const d=a.response&&a.response.status||500;if(c>0&&(Array.isArray(a.options.retryStatusCodes)?a.options.retryStatusCodes.includes(d):Dz.has(d))){const f=typeof a.options.retryDelay=="function"?a.options.retryDelay(a):a.options.retryDelay||0;return f>0&&await new Promise(h=>setTimeout(h,f)),i(a.request,{...a.options,retry:c-1})}}const u=Ez(a);throw Error.captureStackTrace&&Error.captureStackTrace(u,i),u}const i=async function(l,u={}){const c={request:l,options:Iz(l,u,e.defaults,n),response:void 0,error:void 0};c.options.method&&(c.options.method=c.options.method.toUpperCase()),c.options.onRequest&&await k0(c,c.options.onRequest),typeof c.request=="string"&&(c.options.baseURL&&(c.request=mz(c.request,c.options.baseURL)),c.options.query&&(c.request=vz(c.request,c.options.query),delete c.options.query),"query"in c.options&&delete c.options.query,"params"in c.options&&delete c.options.params),c.options.body&&HT(c.options.method)&&(Tz(c.options.body)?(c.options.body=typeof c.options.body=="str
8ing"?c.options.body:JSON.stringify(c.options.body),c.options.headers=new n(c.options.headers||{}),c.options.headers.has("content-type")||c.options.headers.set("content-type","application/json"),c.options.headers.has("accept")||c.options.headers.set("accept","application/json")):("pipeTo"in c.options.body&&typeof c.options.body.pipeTo=="function"||typeof c.options.body.pipe=="function")&&("duplex"in c.options||(c.options.duplex="half")));let d;if(!c.options.signal&&c.options.timeout){const h=new r;d=setTimeout(()=>{const p=new Error("[TimeoutError]: The operation was aborted due to timeout");p.name="TimeoutError",p.code=23,h.abort(p)},c.options.timeout),c.options.signal=h.signal}try{c.response=await t(c.request,c.options)}catch(h){return c.error=h,c.options.onRequestError&&await k0(c,c.options.onRequestError),await s(c)}finally{d&&clearTimeout(d)}if((c.response.body||c.response._bodyInit)&&!Pz.has(c.response.status)&&c.options.method!=="HEAD"){const h=(c.options.parseResponse?"json":c.options.responseType)||kz(c.response.headers.get("content-type")||"");switch(h){case"json":{const p=await c.response.text(),m=c.options.parseResponse||Wj;c.response._data=m(p);break}case"stream":{c.response._data=c.response.body||c.response._bodyInit;break}default:c.response._data=await c.response[h]()}}return c.options.onResponse&&await k0(c,c.options.onResponse),!c.options.ignoreResponseError&&c.response.status>=400&&c.response.status<600?(c.options.onResponseError&&await k0(c,c.options.onResponseError),await s(c)):c.response},o=async function(l,u){return(await i(l,u))._data};return o.raw=i,o.native=(...a)=>t(...a),o.create=(a={},l={})=>F_({...e,...l,defaults:{...e.defaults,...l.defaults,...a}}),o}const pv=(function(){if(typeof globalThis<"u")return globalThis;if(typeof self<"u")return self;if(typeof window<"u")return window;if(typeof global<"u")return global;throw new Error("unable to locate global object")})(),Rz=pv.fetch?(...e)=>pv.fetch(...e):()=>Promise.reject(new Error("[ofetch] global.fetch is not supported!")),Oz=pv.Headers,$z=pv.AbortController,Mz=F_({fetch:Rz,Headers:Oz,AbortController:$z});function mv(){const e=["qZaZrtq","qZzdnJe","idKYrdi","mufequq","mJKGmJm","qZC1ieq","qKyWiee","ndHgieu","murfnsa","ideYqJC","qsbeouq","nJGGnJK","oteWnuu","nJeXree","rtzfnZC","mJb5q21gz3e","osa5req","mZG1qZC","mei1qYa","oujdquu","rKjendq","n0qYrdK","mtCYidm","Aw5N","z1fcs1K","iefgmee","q0renZa","qIa3rui","rda4meq","qJy0qZi","ideWree","m0y4ide","mJyXnsa","qtzgmKi","idC5rem","mZyWmZq","m0yYmJy","mJaWneu","ouqGmee","ody4nem","mZyZmei","rdKXide","mIbbnZy","mdncm0m","ouzdiee","rdu0nZm","otbfidi","rJuGm0i","qsaYnty","qtG4rsa","n0uGmZG","oemWiey","nZDfmsa","qZvgieq","qZaWnZq","mKqWnYa","ndfersa","rcbem0q","yxj0","nKi2qJu","idvbmdu","odyYquu","mZDeodm","otu5osa","idzdmdy","rJHe","mZvcnue","qKi5rum","rKqWnJe","m0qXnYa","nJvbrem","mdaWmda","mJa4rJq","oevfrIa","nLPMrxfnBG","rtCGrKu","mey2qtC","ruzgiey","rdrcntu","rerertq","oda4nue","idzgqJa","nKy0rKi","nufboca","nZreidm","muqXotm","nKuYmem","rdyYrJK","otG1nIa","mtGWiei","rdCWreq","nYbdmZa","rtqWrum","rdeZrdu","nJuZmeq","nde5mca","ncbdmKq","mtbjvKX0AuO","ocbgmJy","qJHbnca","numWmsa","ieq1nJa","nJqGnKe","mdG2idu","ida0rei","mKqWmKu","mKvcnda","nsa0n0i","nMz1AKXkyW","ouq5qZK","oezbidq","q0y5nda","oeeGntm","nJbfrKm","mJqWmJK5mxDAu1PRyW","mta0n0e","mdrendq","nJGZieu","ieiXmei","qJbcndC","wvDwA0S","rtzcmdy","qsa3mui","osaXn0i","rKzfosa","rdeGnei","qKe2q0e","mtiGotq","idC1nKe","otyZqtu","qZa5mdy","mKy2rJC","iejbrda","qKrfquu","rdGXiei","nZmZmdu2mvjbwgn3vq","n0ngmYa","reqGndG","oueGrue","qJrgnei","mtK2qZm","mYbbody","nJiGodu","rKrbodm","mdDdoue","qZKWqZi","mJqXque","rda5odi","rKyYnti","qtm5qYa","nte4oda5r0rWs0Dv","rtbenuu","qundiey","mZyWnsa","mJu3nuq","oevbiey","qJHcree","muy0ide","msa4m0q","mezdndu","rsbgnZy","idqWrey","nKuGode","qZHenZu","rdzenKe","CgfKu3q","nKq0mdK","qJm2qta","mdzdmKy","nZK1iei","iengqKe","ntK2mdq1nLHzALHqrq","otL1C3POA2G","rIa3mJa","ntq2nti2ogDVverzyG","iei1rda","rcbgnKi","qZy1idq","nJvdouu","nIbbq0i","ndffnca","nJDerdq","qZHfqte","n0jenum","nuq2ode","nefcoca","qKi0nue","rJbcidK","Dg9tDhi","reqXreq","osa1nta","ieq0qKi","mtiYntuWmMjYDLbbqG","qJyXqJm","rtC5iem","mtzgnYa","mZe4mZa3nNbkANfsCW","mZbbidK","oui5rey","mYaXnJy","qKjdouq","mdaWidC","qJaYidi","ocbdnJa","mtDdqKq","qJCGmei","mtaXmca","nJKGnJe","mZjcrta","otvcrJq","qKiGmdG","mZbfmIa","qJuXrIa","odaYqJG","nKneosa","odGGmdK","nJbcoeq","quy2idq","mtyGmJe","ntCXmYa","idyZmdy","rdG1rKq","n0rgntu","mKvfidq","meuZnJm","rejerJi","ntDcidG","nJjem0q","idDbnKe","rdHdmKm","idK2mdK","odCWoee","ndverJu","q0yZmsa","oe
8jcrui","rti3oca","nti2mKy","qJi4idi","mui0qYa","m0jcrsa","nca0rKq","idLbqKy","m0qYrdq","nJDbmKu","qJeYqKe","rtyGrKy","nJKZidu","nZneqZe","neiXrdi","idmYrdG","m0iGqZa","idyWqJa","rKi1mdy","ideXmde","rdK2n0i","meu2mti","rtaXrJi","A25kBhK","ida2qJy","oti2nui","n0mGnJi","mdbbrti","nJy4mZe"];return mv=function(){return e},mv()}function ca(e,t){const n=mv();return ca=function(r,s){r=r-(19*347+-236+6182*-1);let i=n[r];if(ca.FCxhcI===void 0){var o=function(c){const d="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=";let f="",h="";for(let p=0,m,v,x=0;v=c.charAt(x++);~v&&(m=p%4?m*64+v:v,p++%4)?f+=String.fromCharCode(255&m>>(-2*p&6)):0)v=d.indexOf(v);for(let p=0,m=f.length;p<m;p++)h+="%"+("00"+f.charCodeAt(p).toString(16)).slice(-2);return decodeURIComponent(h)};ca.EzEUUw=o,e=arguments,ca.FCxhcI=!0}const a=n[-2*836+-3*2917+-1*-10423],l=r+a,u=e[l];return u?i=u:(i=ca.EzEUUw(i),e[l]=i),i},ca(e,t)}(function(e,t){const n=ca,r=e();for(;;)try{if(-parseInt(n(203))/1+parseInt(n(245))/2*(parseInt(n(390))/3)+parseInt(n(249))/4*(-parseInt(n(413))/5)+parseInt(n(424))/6*(-parseInt(n(188))/7)+-parseInt(n(224))/8+parseInt(n(430))/9*(-parseInt(n(331))/10)+-parseInt(n(225))/11*(-parseInt(n(227))/12)===t)break;r.push(r.shift())}catch{r.push(r.shift())}})(mv,-513597+-280285*-5);let Ep=null;function Fz(){const e=ca,t={ZufHo:e(387)+e(254)+"7073096 EE"+e(308)+"C 990951BA 076DC419 706AF"+e(323)+e(182)+"35 9E6495A3 0EDB8832"+e(350)+e(415)+e(204)+"91E 9"+e(337)+e(268)+e(345)+e(343)+e(257)+" E7B8"+e(371)+"90BF1"+e(357)+"DB710"+e(418)+"B020F2 F3B97148 84BE"+e(372)+e(319)+"47D 6"+e(395)+"EB F4"+e(394)+e(211)+e(333)+" 136C"+e(404)+"646BA"+e(367)+e(403)+"7A 8A"+e(231)+"C 14015C4F"+e(273)+e(267)+"FA0F3D63 8"+e(344)+e(363)+e(402)+"8 4C6"+e(328)+e(417)+e(233)+"A2677"+e(338)+e(316)+e(178)+e(432)+"7 D20"+e(274)+" A50AB56B "+e(382)+e(426)+"2B2986C DB"+e(253)+e(232)+e(427)+e(302)+"6CE3 "+e(285)+e(321)+"CD60DCF AB"+e(409)+"9 26D930AC 51DE003A "+e(216)+e(405)+e(384)+e(271)+e(192)+"5 56B3C423"+e(223)+e(379)+e(209)+"50F 2"+e(266)+"9E 5F05880"+e(256)+"CD9B2"+e(434)+"E924 "+e(184)+"C87 5"+e(355)+"11 C1"+e(329)+"B B66"+e(280)+" 76DC"+e(411)+"01DB7106 98D220BC EFD5102"+e(175)+"18589"+e(311)+e(265)+"9FBFE4A5 E8B8D433 78"+e(197)+"2 0F00F934"+e(283)+e(365)+"E10E9818 7F6A0D"+e(263)+"6D3D2D 91646C97 E663"+e(416)+e(375)+e(210)+e(317)+e(195)+e(410)+e(414)+e(353)+e(380)+"95ED 1B01A"+e(279)+e(388)+"C1 F5"+e(212)+"7 65B0D9C6"+e(325)+"E950 "+e(287)+e(208)+"CB988"+e(313)+e(242)+"F 15DA2D49 8CD3"+e(189)+e(336)+e(230)+"DB26158 3AB551CE A3B"+e(370)+e(244)+e(264)+"4ADFA541 3DD895D7 A4D1C46"+e(373)+e(398)+" 4369E96A 346ED"+e(360)+"D678846 DA"+e(269)+"0 44042D73 3303"+e(324)+"AA0A4"+e(369)+("D0D7CC9 5005713C 270"+e(199)+" BE0B"+e(259)+e(198)+e(419)+"768B525 206F85B3 B96"+e(219)+" CE61E49F 5EDEF"+e(362)+e(425)+"98 B0"+e(200)+"2 C7D7A8B4 59B3"+e(385)+e(422)+e(187)+e(236)+e(303)+e(179)+"D EDB88320"+e(294)+"B3B6 03B6E20C 7"+e(301)+e(191)+e(361)+e(332)+"277AF"+e(420)+e(348)+e(300)+e(433)+e(356)+e(180)+"643B84 0D6D6A3E"+e(281)+e(399)+e(408)+e(240)+"309FF"+e(354)+e(314)+"7 7D079EB1 F00F9344 "+e(284)+"3D2 1"+e(309)+e(327)+e(221)+e(213)+e(207)+" 806567CB "+e(193)+"671 6"+e(437)+e(391)+"D41B76 89D"+e(261)+e(346)+"7A5A "+e(234)+e(205)+e(251)+"6F 8EBEEFF"+e(176)+"7BE43"+e(304)+"8ED5 "+e(217)+"3E8 A"+e(401)+e(366)+e(282)+e(293)+e(201)+" D1BB67F1 A6BC5767 3"+e(305)+e(190)+"B2364B D80D2BDA"+e(341)+e(291)+e(351)+e(270)+e(431)+"60 DF"+e(429)+e(194)+e(275)+" 316E"+e(389)+"4669B"+e(247)+e(246)+"8C BC"+e(315)+e(364)+"FD2A0 5268E236 CC0C7"+e(222)+e(435)+"03 220216B"+e(243)+e(289)+" C5BA"+e(292)+"B2BD0"+e(290)+e(239)+"92 5C"+e(220)+e(412)+"7FFA7"+e(228)+e(286)+"2CD99E8B 5"+e(186)+"1D 9B64C2B0 EC6"+e(352)+e(181)+e(202)+"026D9"+e(250)+e(183)+"A9 EB"+e(277)+e(226)+"76785 0500"+e(272)+e(262)+"A82 E2B87A14 7B"+e(297)+"E 0CB61B38"+e(318)+"8E9B E5D5BE0D 7CDCEF"+e(258)+e(278)+"1 86D"+e(295)+" F1D4E242 68DDB"+e(347)+e(196)+e(215)+"BE16C"+e(229)+e(312)+e(397)+e(368)+"18B74777 8"+e(396)+e(298)+e(392)+"0 66063BCA"+e(306)+e(334)+"8F659"+e(393)+e(377)+e(260))+("6BFFD"+e(252)+"CCF45 A00A"+e(288)+e(406)+e(276)+"E048354 39"+e(359)+e(358)+"72661 D060"+e(248)+"49694"+e(400)+e(330)+"DB AED16A4"+e(326)+e(386)+e(214)+"0B66 "+e(378)+e(322)+e(335)+"53 DE"+e(383)+e(423)+"2CF7F 30B5"+e(177)+"BDBDF21C CABAC2"+e(428)+"B39330 24B4A3A6"+e(185)+e(206)+e(342)+e(299)+"4DE57"+e(320)+e(307)+"F B36"+e(296)+" C461"+e(238)+e(237)+e(255)+e(349)+"94 B40BBE3"+e(407)+e(235)+e(376)+"DF1B "+e(421)+e(381))};
8if(Ep)return Ep;Ep=t.ZufHo.split(" ").map(r=>parseInt(r,-8081+-1*-8097))}function Tb(e){const t=ca,n={YWVkK:function(o){return o()},gQBKY:function(o,a){return o<a},knJly:function(o,a){return o^a},lrrXe:function(o,a){return o&a},THhoQ:function(o,a){return o>>>a}};n[t(436)](Fz);const r=new TextEncoder,s=r.encode(e);let i=-1;for(let o=-1175+-1*9247+10422;n[t(340)](o,s.length);o++)i=n.knJly(i>>>-2*4254+7123+-1*-1393,Ep[n.lrrXe(i^s[o],-4271+-2263*-2)]);return n.THhoQ(n[t(310)](i,-1),8866+-1*-4971+-13837)[t(241)+t(339)](16)[t(218)+t(374)](3268+-1*9109+-1*-5849,"0")}const kr=da;function da(e,t){const n=vv();return da=function(r,s){r=r-(-4831+-2*-3767+-2220);let i=n[r];if(da.oepeYF===void 0){var o=function(c){const d="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=";let f="",h="";for(let p=0,m,v,x=0;v=c.charAt(x++);~v&&(m=p%4?m*64+v:v,p++%4)?f+=String.fromCharCode(255&m>>(-2*p&6)):0)v=d.indexOf(v);for(let p=0,m=f.length;p<m;p++)h+="%"+("00"+f.charCodeAt(p).toString(16)).slice(-2);return decodeURIComponent(h)};da.cEJteK=o,e=arguments,da.oepeYF=!0}const a=n[0],l=r+a,u=e[l];return u?i=u:(i=da.cEJteK(i),e[l]=i),i},da(e,t)}(function(e,t){const n=da,r=e();for(;;)try{if(-parseInt(n(519))/1+-parseInt(n(505))/2*(-parseInt(n(528))/3)+-parseInt(n(516))/4*(-parseInt(n(497))/5)+parseInt(n(499))/6*(parseInt(n(484))/7)+-parseInt(n(501))/8*(parseInt(n(511))/9)+parseInt(n(507))/10*(-parseInt(n(496))/11)+parseInt(n(524))/12*(parseInt(n(514))/13)===t)break;r.push(r.shift())}catch{r.push(r.shift())}})(vv,-90*-515+294177+604*-284);function vv(){const e=["C2XPy2u","DxbuAw0","qKfZBey","zwfUDxa","mJe3CevYs1zK","BeTLExm","y2XLyw4","BgvHBNu","yxjL","DhzhtKe","DxbfEha","CMfUzg8","C3rHCNq","vevsvKe","C1DPDgG","BMrVBvm","mJi4ogPbzKnrza","mtCWrhDYAMP4","q0Xfqu4","mtKZmZHTALnbC1C","qwfMrNe","ohPYwwD1sq","z2v0uMe","z2LMEq","CMvTB3y","mte5odq2rhLOCxrh","z2v0s2u","mtuYnJbTCxf3wwe","ufjfrKK","C3nrDwu","ywnOzq","mJCWntmZn1bzD2n0uG","Bg9JywW","v1v2Cgy","mJyZmtjYuuzszMS","zxjYB3i","mJGYotzry1j2zNq","ENjtsMy","BwfW","mtCWmZKWsw9zuhDn","zwfbwgi","BgvUz3q","AM56BM4","wfzzzu0","mJu5mNfutKfkDW","C3rYAw4","AxjLzem","DxrVq2W","ow9VBgTytq","CKLbwuO","z2v0qwW","vvbFsu4","z2v0","yw1WBgu","igvYCM8","zMLSDgu","qxv0B0m","zunVBxa"];return vv=function(){return e},vv()}class B_{constructor(){const t=da,n={XVYeM:function(r,s){return r*s}};this[t(508)+"X"]="api2:",this[t(498)+"UP_INTERVAL"]=n[t(523)]((-7239+-1*-8021+-777)*(6109+263*-23),4441*1+-8405+1241*4),this.cleanupTimer=null,this[t(492)+t(536)+t(487)+"p"]()}[kr(506)+"y"](t){return""+this[kr(508)+"X"]+t}static processQuery(t){const n=kr;return Object.entries(t)[n(535)+"r"](([r,s])=>r!=="FORM_HASH"&&s!=null&&s!=="").sort(([r],[s])=>r[n(512)+n(537)+n(488)](s))[n(518)](([r,s])=>r+"="+s)}url2Key(t,n){const r=kr,s={AafFq:function(o,a){return o(a)}},i=B_["proce"+r(509)+"ry"](n);return s[r(500)](Tb,t+"_"+JSON[r(525)+r(503)](i))}get(t,n=!1){const r=kr,s={BAslF:function(o,a){return o<a},eaAXb:function(o,a){return o(a)},mouuE:function(o,a){return o/a},WolZg:function(o,a){return o&&a},VEkTt:"Cache read"+r(534)+"r:"},i=localStorage.getItem(this[r(506)+"y"](t));if(!i)return{value:null,isExpired:!1};try{const[o,a]=i.split("|"),l=s[r(540)](s[r(520)](parseInt,o),s.mouuE(Date.now(),1e3));return s.WolZg(l,!n)?(localStorage[r(504)+"eItem"](this[r(506)+"y"](t)),{value:null,isExpired:!1}):{value:a,isExpired:l}}catch(o){return console[r(515)](s.VEkTt,o),{value:null,isExpired:!1}}}set(t,n,r){const s=kr,i={zrSJf:function(a,l){return a+l},jnznn:function(a,l){return a/l}},o=Math.ceil(i[s(517)](i[s(522)](Date.now(),6984+5*-1999+4011),r));localStorage.setItem(this[s(506)+"y"](t),o+"|"+n)}remove(t){const n=kr;localStorage.removeItem(this[n(506)+"y"](t))}["cleanupExp"+kr(526)+"ache"](t=-1*-8285+9985+-18260){const n=kr,r={rIAYJ:function(o,a){return o===a}},s=this.getAllKeys();if(r[n(529)](s[n(521)+"h"],1526+-2*763))return;this[n(502)+n(495)+n(533)](s,t).forEach(o=>{const a=n,{isExpired:l}=this[a(532)](o,!0);l&&this[a(504)+"e"](o)})}[kr(530)+kr(485)](){const t=kr,n={tvGNA:function(s,i){return s<i}},r=[];for(let s=1007*4+-7946+6*653;n[t(489)](s,localStorage.length);s++){const i=localStorage.key(s);i&&i[t(492)+t(494)](this[t(508)+"X"])&&r.push(i.slice(this[t(508)+"X"][t(521)+"h"]))}return r}["getRa"+kr(495)+"ample"](t,n){const r=kr;return[...t].sort(()=>6198+3*-2066+.5-Math[r(491)+"m"]())[r(538)](2527+2*-4829+-7131*-1,n)}startAutoCleanup(){const t=kr,n={WUvpf:function(r,s){return r(s)}};this[t(486)+t(539)+"er"]&&n[t(513)](clearInterval,this["clean"+t(539)+"er"]),this.cleanupTimer=window.setInterval(()=>{const r=t;
8this[r(486)+r(490)+r(526)+r(510)]()},this[t(498)+t(531)+t(493)+"L"])}["stopA"+kr(527)+kr(483)](){const t=kr,n={QTftB:function(r,s){return r(s)}};this["clean"+t(539)+"er"]&&(n.QTftB(clearInterval,this[t(486)+t(539)+"er"]),this[t(486)+"upTimer"]=null)}}const OR="3.7.7",Bz=OR,id=typeof Buffer=="function",GT=typeof TextDecoder=="function"?new TextDecoder:void 0,KT=typeof TextEncoder=="function"?new TextEncoder:void 0,Nz="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",Zd=Array.prototype.slice.call(Nz),I0=(e=>{let t={};return e.forEach((n,r)=>t[n]=r),t})(Zd),Vz=/^(?:[A-Za-z\d+\/]{4})*?(?:[A-Za-z\d+\/]{2}(?:==)?|[A-Za-z\d+\/]{3}=?)?$/,jr=String.fromCharCode.bind(String),WT=typeof Uint8Array.from=="function"?Uint8Array.from.bind(Uint8Array):e=>new Uint8Array(Array.prototype.slice.call(e,0)),$R=e=>e.replace(/=/g,"").replace(/[+\/]/g,t=>t=="+"?"-":"_"),MR=e=>e.replace(/[^A-Za-z0-9\+\/]/g,""),FR=e=>{let t,n,r,s,i="";const o=e.length%3;for(let a=0;a<e.length;){if((n=e.charCodeAt(a++))>255||(r=e.charCodeAt(a++))>255||(s=e.charCodeAt(a++))>255)throw new TypeError("invalid character found");t=n<<16|r<<8|s,i+=Zd[t>>18&63]+Zd[t>>12&63]+Zd[t>>6&63]+Zd[t&63]}return o?i.slice(0,o-3)+"===".substring(o):i},N_=typeof btoa=="function"?e=>btoa(e):id?e=>Buffer.from(e,"binary").toString("base64"):FR,Cb=id?e=>Buffer.from(e).toString("base64"):e=>{let n=[];for(let r=0,s=e.length;r<s;r+=4096)n.push(jr.apply(null,e.subarray(r,r+4096)));return N_(n.join(""))},wp=(e,t=!1)=>t?$R(Cb(e)):Cb(e),Uz=e=>{if(e.length<2){var t=e.charCodeAt(0);return t<128?e:t<2048?jr(192|t>>>6)+jr(128|t&63):jr(224|t>>>12&15)+jr(128|t>>>6&63)+jr(128|t&63)}else{var t=65536+(e.charCodeAt(0)-55296)*1024+(e.charCodeAt(1)-56320);return jr(240|t>>>18&7)+jr(128|t>>>12&63)+jr(128|t>>>6&63)+jr(128|t&63)}},jz=/[\uD800-\uDBFF][\uDC00-\uDFFFF]|[^\x00-\x7F]/g,BR=e=>e.replace(jz,Uz),qT=id?e=>Buffer.from(e,"utf8").toString("base64"):KT?e=>Cb(KT.encode(e)):e=>N_(BR(e)),yc=(e,t=!1)=>t?$R(qT(e)):qT(e),YT=e=>yc(e,!0),zz=/[\xC0-\xDF][\x80-\xBF]|[\xE0-\xEF][\x80-\xBF]{2}|[\xF0-\xF7][\x80-\xBF]{3}/g,Hz=e=>{switch(e.length){case 4:var t=(7&e.charCodeAt(0))<<18|(63&e.charCodeAt(1))<<12|(63&e.charCodeAt(2))<<6|63&e.charCodeAt(3),n=t-65536;return jr((n>>>10)+55296)+jr((n&1023)+56320);case 3:return jr((15&e.charCodeAt(0))<<12|(63&e.charCodeAt(1))<<6|63&e.charCodeAt(2));default:return jr((31&e.charCodeAt(0))<<6|63&e.charCodeAt(1))}},NR=e=>e.replace(zz,Hz),VR=e=>{if(e=e.replace(/\s+/g,""),!Vz.test(e))throw new TypeError("malformed base64.");e+="==".slice(2-(e.length&3));let t,n="",r,s;for(let i=0;i<e.length;)t=I0[e.charAt(i++)]<<18|I0[e.charAt(i++)]<<12|(r=I0[e.charAt(i++)])<<6|(s=I0[e.charAt(i++)]),n+=r===64?jr(t>>16&255):s===64?jr(t>>16&255,t>>8&255):jr(t>>16&255,t>>8&255,t&255);return n},V_=typeof atob=="function"?e=>atob(MR(e)):id?e=>Buffer.from(e,"base64").toString("binary"):VR,UR=id?e=>WT(Buffer.from(e,"base64")):e=>WT(V_(e).split("").map(t=>t.charCodeAt(0))),jR=e=>UR(zR(e)),Gz=id?e=>Buffer.from(e,"base64").toString("utf8"):GT?e=>GT.decode(UR(e)):e=>NR(V_(e)),zR=e=>MR(e.replace(/[-_]/g,t=>t=="-"?"+":"/")),Ab=e=>Gz(zR(e)),Kz=e=>{if(typeof e!="string")return!1;const t=e.replace(/\s+/g,"").replace(/={0,2}$/,"");return!/[^\s0-9a-zA-Z\+/]/.test(t)||!/[^\s0-9a-zA-Z\-_]/.test(t)},HR=e=>({value:e,enumerable:!1,writable:!0,configurable:!0}),GR=function(){const e=(t,n)=>Object.defineProperty(String.prototype,t,HR(n));e("fromBase64",function(){return Ab(this)}),e("toBase64",function(t){return yc(this,t)}),e("toBase64URI",function(){return yc(this,!0)}),e("toBase64URL",function(){return yc(this,!0)}),e("toUint8Array",function(){return jR(this)})},KR=function(){const e=(t,n)=>Object.defineProperty(Uint8Array.prototype,t,HR(n));e("toBase64",function(t){return wp(this,t)}),e("toBase64URI",function(){return wp(this,!0)}),e("toBase64URL",function(){return wp(this,!0)})},Wz=()=>{GR(),KR()},XT={version:OR,VERSION:Bz,atob:V_,atobPolyfill:VR,btoa:N_,btoaPolyfill:FR,fromBase64:Ab,toBase64:yc,encode:yc,encodeURI:YT,encodeURL:YT,utob:BR,btou:NR,decode:Ab,isValid:Kz,fromUint8Array:wp,toUint8Array:jR,extendString:GR,extendUint8Array:KR,extendBuiltins:Wz},Nn=qa;(function(e,t){const n=qa,r=e();for(;;)try{if(-parseInt(n(443))/1+-parseInt(n(439))/2+-parseInt(n(434))/3*(-parseInt(n(451))/4)+-parseInt(n(480))/5*(-parseInt(n(493))/6)+-parseInt(n(483))/7+parseInt(n(466))/8*(-parseInt(n(460))/9)+-parseInt(n(433))/10*(-parseInt(n(497))/11)===t)break;r.push(r.shift())}catch{r.push(r.shift())}})(gv,-42621*7+-17*-8215+421706);
8function gv(){const e=["CMvZCg8","z09QrMC","rKDisuO","CNjHEq","DhLWzq","yM9VBgu","mJCWotLOC3PPyMu","C2zcs04","BeHxB3G","seHJug4","ywXPEMu","ywjZB2W","nJa4se9VuxLU","qujdreu","y29TChi","u2vYDMu","yMfZzvu","zxnZ","ignVBxa","DxjSmKS","z2v0","zxnZuMu","y2HLy2S","yw5ZzM8","D2fYBG","zxjY","nZCXntCWufHoy29M","zNjVBq","ihjLywq","mJm3nJC1ou9zB1PRta","x2LZrxG","y1jnA3u","mZq1nJC","DxrLvxi","BxbYzxm","B2jQzwm","A1PQsMi","zNjVBvu","CxvLCNK","mtHetfjjrgG","z0DKufG","ywjSzq","ywrLCNm","nJe2Cezzswf1","uMvZCg8","AM9PBG","zxjYB3i","Aw5Lza","ywnR","twT4Cvi","y2HHCKm","C3bVBNm","uKD3DxG","BfPPrxC","BuvYCM8","Ew51AwO","zMfKvNC","C3rYAw4","wMfIy2q","zw5JB2q","vvzxwfK","CgLYzwq","A2v5","C2v0","uwvQswe","yM9KEq","y3nYzKm","B2rLqxq","ExOWmti","BKHLywq","ota0nJbQDM5kA2y","mZzvuLnwsNq","x3bYB2m","y29UBMu","igvYCM8","zMfSBgi","nteZodeWs29kAgf4","zxH0zw4","vLH6D2e","y2fJAgu","mtC3ntmWtePZuevO","zxjZ","zgf0yq","q2fJAgu","DhrS","BNnLvhK","t29pDgS","C3bSAxq","otG3nJHhsfnKAM8","y29TBw8","tfnkEMC"];return gv=function(){return e},gv()}function qa(e,t){const n=gv();return qa=function(r,s){r=r-(-9479*-1+-6027*-1+-15087);let i=n[r];if(qa.ikjChU===void 0){var o=function(c){const d="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=";let f="",h="";for(let p=0,m,v,x=0;v=c.charAt(x++);~v&&(m=p%4?m*64+v:v,p++%4)?f+=String.fromCharCode(255&m>>(-2*p&6)):0)v=d.indexOf(v);for(let p=0,m=f.length;p<m;p++)h+="%"+("00"+f.charCodeAt(p).toString(16)).slice(-2);return decodeURIComponent(h)};qa.pnKkNh=o,e=arguments,qa.ikjChU=!0}const a=n[1466+2*-733],l=r+a,u=e[l];return u?i=u:(i=qa.pnKkNh(i),e[l]=i),i},qa(e,t)}const ZT=Nn(467)+Nn(456)+"KLMNOPQRST"+Nn(423)+Nn(421)+"efghijklmnopqrstuvwx"+Nn(431)+Nn(486)+"89";function WR(){const e=Nn;return Array[e(481)]({length:8},()=>ZT[Math.floor(Math.random()*ZT.length)])[e(499)]("")}function qR(e,t){const n=Nn,r={Maxci:function(i,o){return i(o)}},s=r.Maxci(decodeURIComponent,e);return Array.from(s,(i,o)=>String.fromCharCode(t[n(504)+n(430)](o%t.length)^i["charC"+n(430)](-6215+1035*1+5180)))[n(499)]("")}class YR{constructor(t,n={}){const r=Nn,s={kNptQ:"4|2|1|3|0"},i=s.kNptQ[r(450)]("|");let o=-5483+2163*-1+7646;for(;;){switch(i[o++]){case"0":this.cache=new B_;continue;case"1":this[r(452)+r(432)+r(444)]=n;continue;case"2":this.baseURL=t;continue;case"3":this[r(429)+"ache"]={key:"",value:"",expiry:0};continue;case"4":this[r(436)+"ctionAttempts"]=0;continue}break}}["getHe"+Nn(496)](){const t=Nn,n={ynuij:function(r,s){return r===s},LSJzg:"function"};return n[t(509)](typeof this[t(452)+"nHeaders"],n[t(453)])?this.commonHeaders():this["commonHead"+t(444)]}async[Nn(435)+Nn(475)+Nn(505)+"e"](t,n){const r=Nn,s={kXLla:function(i,o){return i===o},MIuDN:"blob"};return s.kXLla(n[r(454)+r(448)+"pe"],s.MIuDN)&&n.responseTransform?.type?new Blob([t],{type:n[r(454)+"nseTr"+r(477)+"rm"][r(458)]}):t}["_normalize"+Nn(498)+"nse"](t){const n=Nn,r={dmtGt:n(420)+"g",lHWox:function(s,i){return s instanceof i},VXzwa:function(s,i){return s===i},cRMku:"undef"+n(501)};return typeof t===r.dmtGt||r[n(462)](t,Uint8Array)||r.lHWox(t,Blob)?t:r[n(441)](t?.[n(500)],void 0)?typeof t==n(489)+"t"&&typeof t?.[n(479)]!==r[n(485)]?{error:t.err,data:t.msg,extend:t.ext||{}}:{error:999,data:n(469)+"rError: "+t,extend:{}}:t}async[Nn(476)+"Cache"](t,n){const r=Nn,s={sfBKN:function(o,a){return o<=a},nnVFY:function(o,a){return o(a)},IhDYf:r(446)+" deco"+r(488)+"s error:",RGwux:function(o,a){return o!==a},MkxqR:function(o,a){return o===a},QejIa:"object",OoOtk:"Cache"+r(482)+r(437)+"r:"};if(!n?.[r(442)]||s[r(461)](n[r(442)].ttl,10862+-10862*1))return null;n[r(442)][r(438)+r(502)]=n[r(442)][r(438)+r(502)]??!0;const i=n[r(442)].key||this.cache[r(473)+"ey"](t,n[r(492)]||n[r(428)]||{});try{const{value:o,isExpired:a}=this.cache[r(474)](i,n[r(442)][r(438)+"ack"]);if(o){let l;if(n.cache[r(468)+"ess"])try{const c=XT.toUint8Array(o),d=s.nnVFY(LR,c),f=new TextDecoder,h=f.decode(d);l=JSON.parse(h)}catch(c){return console[r(478)](s.IhDYf,c),null}else l=JSON.parse(o);if(n[r(442)].cacheable&&!n.cache.cacheable(l))return this[r(442)].remove(i),null;l!==null&&s[r(506)](l,void(1291*1+-3616+5*465))&&(l[r(484)+r(424)]=a);const u=this["_norm"+r(464)+r(498)+"nse"](l);return a&&s[r(503)](typeof u,s[r(427)])&&(u._isExpired=!0),u}}catch(o){console[r(478)](s[r(449)],o)}return null}setCacheData(t,n,r){const s=Nn,i={gGdPX:function(l,u){return l<=u},UYcpl:function(l,u){return l(u)},jKdap:s(446)+s(472)+"ress "+s(500)+":"};if(!r?.cache||i[s(494)](r[s(442)][s(447)],0)||r[s(442)][s(442)+s(495)]&&!r[s(442)][s(442)+"able"](n))return;const o=r[s(442)][s(425)]||this.cache.url2Key(t,r[s(492)]||r.body||{}),a=JSON[s(420)+"gify"](n);if(r[s(442)][s(468)+s(471)])try{const l=new TextEncoder,u=i.UYcpl(IR,l[s(422)+"e"](a)),c=XT[s(491)+"int8A"+s(457)](u);this.cache[s(426)](o,c,r.cache.ttl);return}catch(l){console.warn(i.jKdap,l)}this[s(442)].set(o,a,r[s(442)][s(447)])}async handleApiResponse(t,n={},r){const s=Nn,i={HHcPn:"Syste"+s(508)+"r",gOjFg:function(a,l){return a(l)},TLlZO:function(a,l){return a instanceof l},fadVw:function(a,l){return a(l)}},o=i[s(463)];try{const a=await t;if(a?.[s(500)]===void(7951*1+-5231+-2720))return a;
8if(r)return i[s(455)](r,a);throw new Co(a.data||o,a.error,a[s(440)+"d"])}catch(a){const l=i.TLlZO(a,Co)?a:new Co(a?.["message"]||a?.[s(445)]||o,500,{originalError:a});if(r)return i[s(419)](r,l);throw l}}[Nn(465)+Nn(487)+"l"](t,n){const r=Nn,s={kZjJb:function(i,o){return i===o},lZiEw:r(459)+"an",ZfNWy:function(i,o){return i===o},VMWzZ:"string"};return n.baseUrl&&(s[r(490)](typeof n.baseUrl,s[r(507)])&&n.baseUrl&&(n[r(470)+"rl"]=this.baseURL),s.ZfNWy(typeof n[r(470)+"rl"],s.VMWzZ)&&n.baseUrl&&(t=C_(n[r(470)+"rl"],t))),t}close(){}}const Na=fa;function fa(e,t){const n=yv();return fa=function(r,s){r=r-(559*11+7681+-13505);let i=n[r];if(fa.SSpNeM===void 0){var o=function(c){const d="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=";let f="",h="";for(let p=0,m,v,x=0;v=c.charAt(x++);~v&&(m=p%4?m*64+v:v,p++%4)?f+=String.fromCharCode(255&m>>(-2*p&6)):0)v=d.indexOf(v);for(let p=0,m=f.length;p<m;p++)h+="%"+("00"+f.charCodeAt(p).toString(16)).slice(-2);return decodeURIComponent(h)};fa.yGXckL=o,e=arguments,fa.SSpNeM=!0}const a=n[-3269+-1*-1915+1354*1],l=r+a,u=e[l];return u?i=u:(i=fa.yGXckL(i),e[l]=i),i},fa(e,t)}(function(e,t){const n=fa,r=e();for(;;)try{if(-parseInt(n(378))/1+-parseInt(n(330))/2*(-parseInt(n(353))/3)+-parseInt(n(376))/4*(parseInt(n(340))/5)+-parseInt(n(367))/6*(-parseInt(n(361))/7)+-parseInt(n(385))/8*(-parseInt(n(343))/9)+parseInt(n(379))/10*(-parseInt(n(368))/11)+-parseInt(n(357))/12===t)break;r.push(r.shift())}catch{r.push(r.shift())}})(yv,-2351*-57+-86*-280+-420514*-1);function yv(){const e=["z2v0","yxjYyxK","tKTgrhe","DMfSDwu","yMXVyG","CMvWBge","y29TBw8","zcbJywm","ChjTCe8","ue9tva","C3rYAw4","vNrbvwW","ywnR","mJi1oty2wuzQDKjf","r0vu","sgvHzgu","y3nYzKm","ufvu","CMvXDwu","Cg9UC2u","zNvUy3q","ywnOzq","Au5Sy1i","nvDksgDnwq","z2v0sgu","uMvTB3q","nJnUu1bXrNK","x2vYCM8","CMvZCg8","ywrLCNm","yMLUyxi","zxjZ","B3b0Aw8","y3nYzLa","y3nYzG","BNnLvhK","mtHptNHUDKm","DhjPBq","Dw1pyvG","C3rHCNq","ntC3mJa3mKzSDhvTyq","Dgv4Da","zcWGzMe","y2fJAgu","n2jqtLLHwG","yMfZzvu","zefAtwu","AMDtzK8","DxrOv2u","zxHWAxi","nJeYmZa5mfDuv2vRqW","nZGXDvvJC0rR","AgjtD3C","Agu6","BM93","BNnL","y2HLrge","Auf5ue4","ChjLzMK","mJC1otuWnfzxBuPfCa","DMzwENe","nJCXnZe4y01VtKXw","
8nJGZmfv6uNPdvW","Aw9U","qNvMzMu","AgvHzgu","Ec92mq","y2HLy2S","odGXndy0A3rWuKzk","zMfPBgu","CM9TAxm","quzzuLi"];return yv=function(){return e},yv()}class qz extends YR{constructor(t,n={},r={}){const s=fa,i={AFYRR:"FORM_HASH",KMoAS:function(o,a){return o(a)},QpgUg:"/@api"+s(383),EaWDg:function(o,a){return o===a},FvxpM:s(337)+s(380),prmpO:"http",tExUZ:function(o,a){return o(a)}};super(t,n),this[s(350)+s(387)+"e"]=null,this.#a={prefix:i.QpgUg,...r},i.EaWDg(typeof this.#a[s(375)+"x"],i.FvxpM)&&(this.#a[s(375)+"x"]=this.#a.prefix(i[s(325)])),!t.startsWith("/")&&!t[s(356)+"sWith"](i[s(325)])&&(t="/"),this[s(362)+"RL"]=""+t+this.#a[s(375)+"x"]?.[s(394)+"ce"](/^\/+/,""),this.#e=i.tExUZ(F_,{defaults:{baseURL:this.baseURL,headers:{},onRequest:async o=>{const a=s,l=this[a(341)+a(346)]();o[a(349)+"ns"][a(382)+"rs"]={...l,...o.options[a(382)+"rs"]||{}};const u=o.options.query??={},{value:c}=await this.csrf(-10733+10733*1);u[i[a(388)]]=c},onResponse:async o=>{const a=s,l=o.options["onRes"+a(336)+a(332)+"r"];l&&o.response&&i.KMoAS(l,o[a(345)+"nse"][a(382)+"rs"])}}})}#e;#a;async[Na(389)](t,n={}){const r=Na,s={eCafj:r(331)};return this[r(335)+"st"](t,{...n,method:s.eCafj})}async post(t,n={}){const r=Na,s={sLidU:r(326)};return this[r(335)+"st"](t,{...n,method:s.sLidU})}async put(t,n={}){const r=Na,s={IRJtX:r(334)};return this.request(t,{...n,method:s.IRJtX})}async delete(t,n={}){const r=Na,s={sIXjg:"DELETE"};return this[r(335)+"st"](t,{...n,method:s.sIXjg})}async[Na(351)](t=44933*-2+1*-20185+170051){const n=Na,r={uQPIj:function(i){return i()},UlrzM:function(i,o,a){return i(o,a)},Nmdjd:function(i,o){return i+o},VtAUl:function(i,o){return i(o)},jgSfO:function(i,o){return i<o}},s=Date[n(371)]();return r[n(364)](s,this["csrfC"+n(338)][n(366)+"y"])?{key:this[n(333)+n(338)].key,value:this[n(333)+"ache"][n(392)]}:this["csrfP"+n(387)+"e"]?this[n(350)+n(387)+"e"]:(this["csrfP"+n(387)+"e"]=new Promise(async(i,o)=>{const a=n;try{const l=r.uQPIj(WR),u=await r.UlrzM(Mz,"/@csrf",{query:{key:l},headers:this[a(395)+"nHead"+a(348)]}),c=r.UlrzM(qR,u[a(354)](),l);this[a(333)+"ache"].key=l,this[a(333)+a(338)][a(392)]=c,this.csrfCache.expiry=r.Nmdjd(s,t),this[a(350)+"romise"]=null,r[a(328)](i,{key:l,value:c})}catch(l){this["csrfP"+a(387)+"e"]=null,r[a(328)](o,l)}}),this.csrfPromise)}async request(t,n){const r=Na,s={uthWe:function(o,a){return o===a},dAZMe:r(393),RjLep:r(390)+r(381)+"r",iAyPN:r(358),MERsg:"json",iNlcR:function(o,a){return o===a},hbSww:function(o,a){return o instanceof a},KHeAT:function(o,a){return o===a},ofVoL:function(o,a){return o===a},dWoJF:function(o,a){return o!==a},YWPML:r(327)+"g",NKFDq:r(342)+"e request "+r(386)+r(359)+"lling back to expire"+r(396)+r(370),vfVzq:function(o,a){return o===a},umOaX:"object"},i=await this[r(384)+"Cache"](t,n);if(i&&!i._isExpired)return i;try{t=this.absoluteUrl(t,n);const o={...n,responseType:s.uthWe(n.responseType,s[r(363)])?s.dAZMe:n[r(345)+r(352)+"pe"]===r(347)+"y"?s.RjLep:s[r(365)](n[r(345)+"nseType"],s[r(374)])?s[r(374)]:s.MERsg};delete o[r(360)];const a=await this.#e(t,o);let l=a;s[r(339)](n[r(345)+"nseType"],r(347)+"y")&&s[r(369)](a,ArrayBuffer)?l=new Uint8Array(a):s.KHeAT(n["respo"+r(352)+"pe"],s.dAZMe)?l=await this._processResponse(s[r(369)](a,Blob)?a:new Blob([a]),n):s.ofVoL(n[r(345)+r(352)+"pe"],s[r(374)])&&s.dWoJF(typeof a,s.YWPML)&&(l=JSON[r(327)+"gify"](a));const u=this["_normalizeRespo"+r(372)](l);return this["setCa"+r(373)+"ta"](t,l,n),u}catch(o){if(n.cache?.["fallb"+r(329)]&&i)return console.warn(s[r(391)],o),s[r(377)](typeof i,s[r(355)])&&(i[r(344)+"r"]=o),i;throw o}}}function xv(){const e=["nJGZnJuXneDwvvjhAG","y3nYzKm","q2vTDw0","y2fJAgu","Dgv4Da","EMToz2y","C1DPDgG","mteXnZK3mND5EfviCG","ywXPzfC","AwXLzcW","ANnVBG","q1LVBK0","qwnJzxa","y3rPB24","D2fYBG","mJKYnJaWy21dDwPV","yw5KBgK","ote0mZG4me9bvNbhDW","ywnRihq","zxHWAxi","y2XVC2u","C3rYAw4","mta5otDPywLLywG","seftsa","CxvLC3q","BNnLvhK","A0nVA1O","zgvSzxq","r0vu","A2v5","ywXPEMu","zNvUy3q","q29UDgu","CMvJB24","qxr0zw0","zgvK","C3vJy2u","ywnOzq","z2v0sgu","igzHBgW","mtbzy3zcy1O","B2jQzwm","y2f0Aw8","Fdz8nxW","mtm2mtG3ofbcCxvlta","B2PdBhe","C3DVt0q","yxbWBgK","te5tyvm","Dg9tDhi","nZuXnJCWmwrzyw9WEa","x2DLDfy","DgvxC0m","D3nZoG","uMvZCg8","x3bYB2m","yMfZzvu","BMvJDa","shnfvgG","y29S","zuDRshK","Aw9U","q2fJAgu","z3PPCa","zM9YBwe","vhz0rvC","D0P6DMy","Bgr4C1a","BgLLBNq","Bg9N","CM0TDxi","z2v0","CMvZCg8","Bg9Jyxq","oti4ohnVz1bqtG","t3b0Aw8","C3rHCNq","x25VCM0","BI94lxC","rwzcyK4","y2f0y2G","C3bSAxq","y2TLDca","zxnZuMu","C3nMDwW","Chv0","y3nYzG","m0rlqLzcvq","sgfUzgW","Cg9ZDa","CgLYzwq","Dgvszxm","revmrvq","CKrms2e","D3ndBgK","DNPcEwC","BNnL","x2nYzwe","BLHiChK","Aw5N","ov9DkW","w15HlxO","x2DLDee","Ahr0Chm","C1vsta","ufvu","zKzbzvO","Aw5PDgK","qMHoD1K","C3qGzMe","ufbKwue","ywrLCNm","y2HLrge","vNnrA08","ufLMwNa","y29U
8BMu","D3m6","zw50","B3bLBG","zxjdyxm","CMvXDwu","x2LZrxG"];return xv=function(){return e},xv()}const Zt=ha;(function(e,t){const n=ha,r=e();for(;;)try{if(parseInt(n(310))/1+-parseInt(n(339))/2*(-parseInt(n(382))/3)+parseInt(n(302))/4+-parseInt(n(312))/5+-parseInt(n(295))/6+parseInt(n(317))/7*(parseInt(n(369))/8)+-parseInt(n(345))/9*(-parseInt(n(335))/10)===t)break;r.push(r.shift())}catch{r.push(r.shift())}})(xv,799*1855+1*-874043+25835*13);function ha(e,t){const n=xv();return ha=function(r,s){r=r-(6*-604+10*-607+9975);let i=n[r];if(ha.KLcZYZ===void 0){var o=function(c){const d="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=";let f="",h="";for(let p=0,m,v,x=0;v=c.charAt(x++);~v&&(m=p%4?m*64+v:v,p++%4)?f+=String.fromCharCode(255&m>>(-2*p&6)):0)v=d.indexOf(v);for(let p=0,m=f.length;p<m;p++)h+="%"+("00"+f.charCodeAt(p).toString(16)).slice(-2);return decodeURIComponent(h)};ha.HSMlTN=o,e=arguments,ha.KLcZYZ=!0}const a=n[-9596+2*842+7912],l=r+a,u=e[l];return u?i=u:(i=ha.HSMlTN(i),e[l]=i),i},ha(e,t)}class Yz extends YR{#e;#a;#v;#t;#g;#r=new RegExp("w@#$s$_%#t@#e$x%".replace(new RegExp(Zt(396)+"A-Z0-"+Zt(395),"g"),"")+"t");#d=()=>document.cookie.search(this.#r)===-1;#m;#s;#i;#p=new Promise((t,n)=>{this.#s=t,this.#i=n});#l=null;#o=!1;#u=null;constructor(t,n,r={},s={}){const i=Zt,o={fFAeZ:"format",gGbiX:i(307)+"t-Encoding",jfahk:i(358)},a=("3|8|1"+i(338)+"4|2|7|0").split("|");let l=0;for(;;){switch(a[l++]){case"0":this.connect(n);continue;case"1":this.#a=o[i(401)];continue;case"2":this.#m={prefix:"/1",...s};continue;case"3":super(t,r);continue;case"4":this.#g=n;continue;case"5":this.#t=o.gGbiX;continue;case"6":this.#v="plain";continue;case"7":this[i(389)+i(290)]=this[i(392)+i(347)+i(363)]();continue;case"8":this.#e=o.jfahk;continue}break}}["_crea"+Zt(347)+Zt(363)](){const t=Zt,n=this.#d(),r=this[t(333)+t(284)]();return new Uj({binary:n,headers:{...r,[this.#t]:n?this.#e:""},timeout:3e4})}async connect(t){const n=Zt,r={XnigS:"WebSocket "+n(402)+"al connect failed:"};try{const s="4|1|2|3|0"[n(376)]("|");let i=-12256+32*383;for(;;){switch(s[i++]){case"0":console[n(364)]("WebSo"+n(377)+"connected "+n(331)+n(379)+"ly");continue;case"1":this.#o=!0;continue;case"2":this[n(288)+n(308)+n(329)+"pts"]=4176+-4176*1;continue;case"3":this.#s();continue;case"4":await this["wsCli"+n(290)].connect(this[n(346)+n(303)+"sURL"](t));continue}break}}catch(s){console.error(r.XnigS,s),this.#o=!1;try{await this[n(328)+n(352)](),this.#s()}catch(i){throw this.#i(i),i}}}async["recon"+Zt(352)](){const t=Zt;this.#l&&clearTimeout(this.#l),await this["wsCli"+t(290)].reconnect(0)}_getValidWsURL(t){const n=Zt,r={iBhLy:n(398)+":",oAEEO:n(348),Cemum:n(289),Szprp:function(i,o){return i!==o}},s=window["locat"+n(356)]["proto"+n(354)]===r.iBhLy?r.oAEEO:r[n(297)];return r.Szprp(t.search(/^https?:/i),-1)?t.replace(/^http/,"ws"):t[n(371)+n(301)]("//")?""+s+t:t.startsWith("/")?s+"//"+window[n(368)+n(356)].host+t:t}async[Zt(366)](t,n={}){const r=Zt,s={nnKdx:r(323)};return this.request(s.nnKdx,t,n)}async[Zt(384)](t,n={}){const r=Zt,s={BhNwY:"POST"};return this[r(293)+"st"](s[r(281)],t,n)}async[Zt(380)](t,n={}){const r=Zt,s={ojClq:r(400)};return this.request(s[r(340)],t,n)}async[Zt(322)+"e"](t,n={}){const r=Zt,s={IWntV:r(387)+"E"};return this.request(s.IWntV,t,n)}async[Zt(381)](t=-113748+1*74897+1*98851){const n=Zt,r={kCokZ:function(i,o){return i(o)},hbDVL:function(i,o){return i(o)},PPdYA:function(i,o){return i+o},YmXPC:"/@csrf?key=",PYfZp:n(299)};await this.#p;const s=Date.now();return s<this["csrfC"+n(332)][n(314)+"y"]?{key:this["csrfC"+n(332)][n(324)],value:this[n(296)+n(332)].value}:this.#u?this.#u:(this.#u=new Promise((i,o)=>{const a=n,l={uTCSa:function(c,d){return r[ha(321)](c,d)},EfBbN:function(c,d){return r.hbDVL(c,d)},nwMPv:function(c,d){return c(d)}},u=WR();this.wsClient.get(r[a(283)](r.YmXPC,u),async(c,d)=>{const f=a;if(c){this.#u=null,l.uTCSa(o,c);return}const h=qR(d.trim(),u);this[f(296)+"ache"].key=u,this.csrfCache.value=h,this["csrfC"+f(332)].expiry=s+t,this.#u=null,l[f(374)](i,{key:u,value:h})},{headers:{[this.#t]:""},responseType:r[a(287)],...this.#d()?{}:{[this.#a]:this.#v}}).catch(c=>{this.#u=null,l.nwMPv(o,c)})}),this.#u)}
8[Zt(397)+"piUrl"](t){const n=Zt,r={rDLKa:function(o,a){return o===a},cVWec:n(326)+n(356),wJzvf:function(o,a){return o(a)}};let s=this.#m.prefix||"";return r[n(388)](typeof s,r.cVWec)&&(s=r[n(361)](s,"ws")),s.replace(/\/+$/g,"")+"/"+t.replace(/^\/+/g,"")}async[Zt(293)+"st"](t,n,r){const s=Zt,i={SNWfF:s(305),bckVU:"WebSocket reque"+s(282)+s(304)+s(334)+"ing b"+s(313)+"o expired "+s(298)+":",SWodZ:s(336)+"t",fPJas:"Request failed:"};try{await this.#p,r[s(351)+"rl"]?n=this.absoluteUrl(n,r):n=this._getApiUrl(n);const o=await this["check"+s(357)](n,r);if(o&&!o[s(294)+s(385)])return this[s(372)+s(325)+s(349)+s(391)](o);const{processedOptions:a}=await this["_proc"+s(378)+s(319)+s(370)+"ns"](t,r);return new Promise((l,u)=>{const c=s,d=t["toLow"+c(292)+"e"]();this[c(389)+c(290)][d](n,this[c(392)+c(386)+"ponse"+c(383)+"er"](l,u,r),{responseType:i.SNWfF,...a}).catch(u)}).then(l=>{const u=s;return this["setCa"+u(285)+"ta"](n,l,r),this["_normalizeRespo"+u(391)](l)})[s(375)](l=>{const u=s;if(r.cache?.["fallback"]&&o)return console[u(309)](i.bckVU,l),typeof o===i.SWodZ&&(o._error=l),o;throw l})}catch(o){throw console.error(i.fPJas,o),o}}["_crea"+Zt(386)+"ponse"+Zt(383)+"er"](t,n,r){const s=Zt,i={eGkHy:function(o,a){return o(a)},zkNgf:s(316)+"g",IvbYL:function(o,a){return o instanceof a},yDvFF:function(o,a){return o===a},ZjYlH:function(o,a){return o(a)},HsETh:function(o,a){return o(a)},TvtEW:"Response h"+s(311)+"ng error:",swoOD:function(o,a){return o(a)}};return async(o,a,l)=>{const u=s;try{if(o)return i[u(355)](t,o);if(typeof a===i[u(300)]||a instanceof Uint8Array||i.IvbYL(a,Blob))return i.yDvFF(r[u(367)+u(320)+"pe"],"blob")&&(a=await this[u(350)+u(378)+"sponse"](a,r)),i.ZjYlH(t,a);i[u(353)](t,this[u(372)+u(325)+"Respo"+u(391)](a))}catch(c){console.error(i[u(360)],c),i[u(341)](n,c)}}}async["_proc"+Zt(378)+"quest"+Zt(370)+"ns"](t,n){const r=Zt,s={veiUf:"FORM_"+r(318),vzByg:function(l,u){return l!==u},MgOQw:r(327)+"nt-Type",wPQLl:"binary"},i={...n},o={...this[r(333)+r(284)](),...i.headers||{}},{value:a}=await this[r(381)]();if(o[s.veiUf]=a,s[r(390)](t,r(323))){const l=i.body||i.params,{processedBody:u,contentType:c}=this["_processRe"+r(319)+"Body"](l);i.body=u,o[s.MgOQw]||(o[s.MgOQw]=c)}return i.headers=o,i[r(359)+"t"]=this.#d()?s.wPQLl:"plain",{processedOptions:i}}["_proc"+Zt(378)+Zt(319)+"Body"](t){const n=Zt,r={CYonM:"appli"+n(337)+n(373)+"ww-fo"+n(365)+"lenco"+n(330),VsQkO:function(i,o){return i instanceof o},LNSaS:function(i,o){return i===o},tdejT:n(336)+"t",nXHpy:n(342)+n(337)+"n/json"},s=r[n(306)];if(r[n(286)](t,FormData)){const i=Array.from(t.entries()).map(([o,a])=>[o,a["toStr"+n(394)]()]);return{processedBody:new URLSearchParams(i)[n(344)+"ing"](),contentType:s}}if(t){if(r[n(286)](t,URLSearchParams))return{processedBody:t["toStr"+n(394)](),contentType:s};if(r[n(343)](typeof t,r.tdejT))return{processedBody:JSON[n(316)+"gify"](t),contentType:r[n(393)]}}return{processedBody:t,contentType:s}}[Zt(315)](){const t=Zt,n={ldxsP:function(r,s){return r(s)}};this.#l&&(n[t(362)](clearTimeout,this.#l),this.#l=null),this.#o=!1,this[t(288)+t(308)+t(329)+"pts"]=-3287*1+-6526+9813,this["wsCli"+t(290)]?.[t(315)]()}[Zt(291)](){const t=Zt;!this.#o&&this[t(288)+"ct"](this["_getValidW"+t(399)](this.#g))}}function Ya(e,t){const n=bv();return Ya=function(r,s){r=r-310;let i=n[r];if(Ya.XMkUlW===void 0){var o=function(c){const d="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=";let f="",h="";for(let p=0,m,v,x=0;v=c.charAt(x++);~v&&(m=p%4?m*64+v:v,p++%4)?f+=String.fromCharCode(255&m>>(-2*p&6)):0)v=d.indexOf(v);for(let p=0,m=f.length;p<m;p++)h+="%"+("00"+f.charCodeAt(p).toString(16)).slice(-2);return decodeURIComponent(h)};Ya.krISRp=o,e=arguments,Ya.XMkUlW=!0}const a=n[0],l=r+a,u=e[l];return u?i=u:(i=Ya.krISRp(i),e[l]=i),i},Ya(e,t)}(function(e,t){const n=Ya,r=e();for(;;)try{if(-parseInt(n(339))/1*(-parseInt(n(318))/2)+parseInt(n(310))/3*(parseInt(n(343))/4)+parseInt(n(344))/5*(-parseInt(n(337))/6)+parseInt(n(320))/7+-parseInt(n(323))/8*(parseInt(n(325))/9)+-parseInt(n(348))/10*(parseInt(n(342))/11)+parseInt(n(312))/12*(parseInt(n(326))/13)===t)break;r.push(r.shift())}catch{r.push(r.shift())}})(bv,-8*121937+-1243104+3214768);function bv(){const e=["Aw9U","x3DZ","ChjVDg8","C1DPDgG","ChvIBgK","DhjPBq","z2v0","C3rHCNq","zw50","Ag9ZDa","mZa1ndq5mKHqENL3vq","yxHMyM0","m
80TiweLpqq","DgvZDa","y29VA2K","mtfYzgzTEvm","ndq0odrkA3jnA2q","nwT0wML0va","Bg9Jyxq","y29S","s3PQDhy","mtCWnZK0mZbHwLfWEui","AhjLzG","ndGZBK1btMjy","C2vHCMm","mZq4sNzKz2f6","y3jLyxq","v0vNDgO","D3jeAxm","CMvWBge","yNvUyNG","nJeXndzeDw9qB2C","txfTA3O","nduXnZq3mwDXzerVBW","C3bSAxq","B3jPz2K","ntqXnMTSrfLxzG","y2TLDa","ota2m0rOCMzctG","nJeYotyZq093CNvx"];return bv=function(){return e},bv()}async function Xz(e,t,n=null){const r=Ya,s={SIyxJ:function(p,m){return p(m)},WEgtj:r(328),Mqmkz:function(p){return p()},bhtdU:function(p,m){return p in m},EQsNK:"WebSo"+r(324),wrDis:"http",bunbx:"_proto",axfbm:function(p,m){return p(m)}},i=new URLSearchParams(window["locat"+r(327)][r(311)+"h"]),o=p=>document[r(341)+"e"][r(321)](";")?.find(m=>m[r(332)]().startsWith(p))?.[r(321)]("=")[1*-2281+-3662+1486*4]||"",a=s.SIyxJ(o,s[r(314)]),l=s[r(319)](Zr),{baseURL:u}=l[r(331)+"c"],c=i.get(s[r(314)])||a||l.public.wsURL,d=s.bhtdU(s.EQsNK,window)?"ws":s[r(315)],f=i[r(333)](s[r(317)])||s[r(338)](o,s.bunbx)||n||d,h={ws:()=>new Yz(u,c,e,t),http:()=>new qz(u,e,t)};return h[f]?h[f]():h[d]()}(function(e,t){const n=Xa,r=e();for(;;)try{if(parseInt(n(427))/1+parseInt(n(429))/2+parseInt(n(430))/3+parseInt(n(432))/4+parseInt(n(435))/5*(-parseInt(n(433))/6)+parseInt(n(434))/7+-parseInt(n(431))/8===t)break;r.push(r.shift())}catch{r.push(r.shift())}})(_v,19951*25+-348975+24197*21);function Zz(){const e=Xa;if({LHqSk:function(r,s){return r!==s}}.LHqSk(typeof performance,"undefined")&&performance.now)return performance;const n=Date.now();return{now:()=>Date[e(428)]()-n,timeOrigin:n}}function _v(){const e=["mJi2ntKWnZjsDwnVsee","ndK2mtq4me1WwvfSta","mtGXotK4BfLprNDU","odG1nZmZmwrrAxfKDa","mty1rvrQB09P","mti3ntCXmLrrqKD2uq","BM93","mJqYodKWB25hrevp","mtC2ntm1merSsMH4yq"];return _v=function(){return e},_v()}function Xa(e,t){const n=_v();return Xa=function(r,s){r=r-427;let i=n[r];if(Xa.jMQVSm===void 0){var o=function(c){const d="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=";let f="",h="";for(let p=0,m,v,x=0;v=c.charAt(x++);~v&&(m=p%4?m*64+v:v,p++%4)?f+=String.fromCharCode(255&m>>(-2*p&6)):0)v=d.indexOf(v);for(let p=0,m=f.length;p<m;p++)h+="%"+("00"+f.charCodeAt(p).toString(16)).slice(-2);return decodeURIComponent(h)};Xa.ygoJUc=o,e=arguments,Xa.jMQVSm=!0}const a=n[-4312+4*699+1516],l=r+a,u=e[l];return u?i=u:(i=Xa.ygoJUc(i),e[l]=i),i},Xa(e,t)}const D1=Zz();function Sv(){const e=["AeHrzLK","wfLmvKC","Chbiv1i","r3nvsvO","mti5mJCWmgTIzhPbDG","yMvMB3i","tujgtey","B2zXA3a","zNrPr3a","tez4rgK","BMzMDxq","Eu5OvuG","z2v0qwm","nZmZotq4tNLgCgfO","DgHLBG","mZyZmtK1zK5TsKjJ","zw50tgK","mta1nZy0zujfBwzX","AgfUzgW","wvr0AwK","Aw9U","D3ndBgK","mteYnZu2mKnHyMzlsG","ufvu","BM93","zw50","mZG0nZi4ywvwDLDT","C3rLBMu","se1LAge","ue9tva","DMLZAwi","mZm5nteXohrZzePpuq","q1nsrG","q0TSCKu","q1nsrIa","y2HHBMC","zvjYzw4","zgvSzxq","DMfSDwu","zcbivfq","turisKW","z1rvze0","Bwv0Ag8","vfPYzNG","wuHMvwW","AwXPDhK","y2XVC2u","revmrvq","DenVDw4","zxvUBg8","zxnWB24"];return Sv=function(){return e},Sv()}(function(e,t){const n=ki,r=e();for(;;)try{if(-parseInt(n(207))/1+-parseInt(n(203))/2+parseInt(n(212))/3+parseInt(n(165))/4+-parseInt(n(194))/5+parseInt(n(170))/6+parseInt(n(205))/7===t)break;r.push(r.shift())}catch{r.push(r.shift())}})(Sv,-467140+-84*-9829);function ki(e,t){const n=Sv();return ki=function(r,s){r=r-165;let i=n[r];if(ki.RHzTLz===void 0){var o=function(c){const d="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=";let f="",h="";for(let p=0,m,v,x=0;v=c.charAt(x++);~v&&(m=p%4?m*64+v:v,p++%4)?f+=String.fromCharCode(255&m>>(-2*p&6)):0)v=d.indexOf(v);for(let p=0,m=f.length;p<m;p++)h+="%"+("00"+f.charCodeAt(p).toString(16)).slice(-2);return decodeURIComponent(h)};ki.GFxDbS=o,e=arguments,ki.RHzTLz=!0}const a=n[-9693+-1*-521+9172],l=r+a,u=e[l];return u?i=u:(i=ki.GFxDbS(i),e[l]=i),i},ki(e,t)}async function Jz(e,t,n,r=null){const s=ki,i={LFxDi:function(m,v,x){return m(v,x)},MDHJL:function(m,v){return m===v},BNcos:"funct"+s(210),ftiGp:function(m){return m()},ppHWR:s(171),YHfUl:function(m,v){return m-v},GsUIZ:function(m,v){return m<v},ATfsZ:function(m,v){return m(v)},ofqkp:function(m,v){return m-v},kniLW:function(m,v){return m===v},MBFLF:"hidden",TZrfx:function(m,v){return m(v)},Wrumj:function(m,v,x){return m(v,x)},OdrJw:function(m,v){return m(v)},eRren:function(m){return m()},gTUdM:s(169)+"ility"+s(174)+"e",gIsCl:function(m,v,x,g){return m(v,x,g)},CKlrE:function(m,v){return m(v)},hHQfY:s(195)+s(188)+"ad",lSDeV:"pagehide"};let o=null,a=()=>{},l=null,u=D1.now();const c=-34*-673+2059*17+-27885;function d(m){const v=s,x={cRflW:function(g,y,_){return i[ki(199)](g,y,_)},UlfmF:function(g,y){return i[ki(179)](g,y)},nffut:i.BNcos,jHrKQ:function(g){return i[ki(198)](g)},HMeha:"GET",YTtii:v(168),nJEbC:v(186)+"E",XYLVG:i[v(192)]};return async(g,y={})=>{const _=v,E={yNhUH:function(C,I,k){return x.cRflW(C,I,k)}};
8u=D1[_(214)](),l&&(clearTimeout(l),l=null),x.UlfmF(typeof g,x[_(200)])&&(g=x.jHrKQ(g));const w=(y[_(181)+"d"]||x[_(167)]).toUpperCase();let T;switch(w){case x[_(167)]:T=m.get(g,y);break;case x[_(209)]:T=m.post(g,y);break;case _(213):T=m.put(g,y);break;case x.nJEbC:T=m[_(176)+"e"](g,y);break;case x[_(191)]:T=m.csrf()[_(204)](C=>{const I=_;return{data:C[I(177)],status:200,message:I(173)+"token fetched"}});break;default:throw new Error("Unsupporte"+_(178)+"P method: "+w)}return m[_(208)+"eApiR"+_(189)+"se"](T,y,async C=>await E[_(201)](n,C,y))}}function f(){const m=s;if(!o?.[m(211)+m(215)])return;const v=D1[m(214)](),x=i[m(183)](v,u);if(i[m(193)](x,c)){l&&i.ATfsZ(clearTimeout,l),l=i[m(199)](setTimeout,()=>{i[m(198)](f)},i[m(197)](c,x));return}const g=o[m(211)+m(215)][m(202)+"tiveReques"+m(187)+"t"]?.()||-16939+-1*-16939;i.kniLW(g,-6910+-2*-3207+496)&&a()}document["addEv"+s(206)+"stener"](i[s(180)],()=>{const m=s,v={iHuKY:function(x){return i[ki(198)](x)}};document["visib"+m(184)+"State"]===i[m(196)]?(l&&i[m(182)](clearTimeout,l),l=i.Wrumj(setTimeout,()=>{v.iHuKY(f)},c)):l&&(i.TZrfx(clearTimeout,l),l=null)});const h=await i.gIsCl(Xz,e,t,r);o=h,a=()=>h[s(185)]();const p=i[s(172)](d,h);return window["addEv"+s(206)+s(166)+"r"](i[s(190)],()=>{l&&i.TZrfx(clearTimeout,l),i.ftiGp(a)}),window["addEv"+s(206)+s(166)+"r"](i.lSDeV,()=>{const m=s;l&&i.OdrJw(clearTimeout,l),i[m(175)](a)}),{provide:{api:p}}}(function(e,t){for(var n=Hl,r=e();;)try{var s=-parseInt(n(393))/1+-parseInt(n(384))/2*(-parseInt(n(390))/3)+-parseInt(n(394))/4*(parseInt(n(391))/5)+parseInt(n(392))/6*(-parseInt(n(387))/7)+parseInt(n(395))/8+-p
8arseInt(n(386))/9*(parseInt(n(389))/10)+-parseInt(n(385))/11*(-parseInt(n(388))/12);if(s===t)break;r.push(r.shift())}catch{r.push(r.shift())}})(Ev,1113968*1+1*-568571+-1*-44180);function Hl(e,t){var n=Ev();return Hl=function(r,s){r=r-(2120+-2*3001+9*474);var i=n[r];if(Hl.spfHju===void 0){var o=function(c){for(var d="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=",f="",h="",p=0,m,v,x=0;v=c.charAt(x++);~v&&(m=p%4?m*64+v:v,p++%4)?f+=String.fromCharCode(255&m>>(-2*p&6)):0)v=d.indexOf(v);for(var g=0,y=f.length;g<y;g++)h+="%"+("00"+f.charCodeAt(g).toString(16)).slice(-2);return decodeURIComponent(h)};Hl.DNvFVl=o,e=arguments,Hl.spfHju=!0}var a=n[0],l=r+a,u=e[l];return u?i=u:(i=Hl.DNvFVl(i),e[l]=i),i},Hl(e,t)}function Ev(){var e=["n0nMsvzhrG","mJrWtfjzEwW","mZy3mgTeCLDKvG","m2rjEKDXDq","mJm1wLjgvejx","mtK5odu4mNjIB2vVDW","otm1oti4AMnOz3ry","ntu5otzMB1nIzKW","mJKXote3nKPnDKjUrW","nJGWnda4B3nQAfj6","mtaXmty0mdnNswP1tMu","nJG0qLnrzujw"];return Ev=function(){return e},Ev()}const XR="3.7.8",Qz=XR,od=typeof Buffer=="function",JT=typeof TextDecoder=="function"?new TextDecoder:void 0,QT=typeof TextEncoder=="function"?new TextEncoder:void 0,eH="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",Jd=Array.prototype.slice.call(eH),L0=(e=>{let t={};return e.forEach((n,r)=>t[n]=r),t})(Jd),tH=/^(?:[A-Za-z\d+\/]{4})*?(?:[A-Za-z\d+\/]{2}(?:==)?|[A-Za-z\d+\/]{3}=?)?$/,zr=String.fromCharCode.bind(String),eC=typeof Uint8Array.from=="function"?Uint8Array.from.bind(Uint8Array):e=>new Uint8Array(Array.prototype.slice.call(e,0)),ZR=e=>e.replace(/=/g,"").replace(/[+\/]/g,t=>t=="+"?"-":"_"),JR=e=>e.replace(/[^A-Za-z0-9\+\/]/g,""),QR=e=>{let t,n,r,s,i="";const o=e.length%3;for(let a=0;a<e.length;){if((n=e.charCodeAt(a++))>255||(r=e.charCodeAt(a++))>255||(s=e.charCodeAt(a++))>255)throw new TypeError("invalid character found");t=n<<16|r<<8|s,i+=Jd[t>>18&63]+Jd[t>>12&63]+Jd[t>>6&63]+Jd[t&63]}return o?i.slice(0,o-3)+"===".substring(o):i},U_=typeof btoa=="function"?e=>btoa(e):od?e=>Buffer.from(e,"binary").toString("base64"):QR,kb=od?e=>Buffer.from(e).toString("base64"):e=>{let n=[];for(let r=0,s=e.length;r<s;r+=4096)n.push(zr.apply(null,e.subarray(r,r+4096)));return U_(n.join(""))},Tp=(e,t=!1)=>t?ZR(kb(e)):kb(e),nH=e=>{if(e.length<2){var t=e.charCodeAt(0);return t<128?e:t<2048?zr(192|t>>>6)+zr(128|t&63):zr(224|t>>>12&15)+zr(128|t>>>6&63)+zr(128|t&63)}else{var t=65536+(e.charCodeAt(0)-55296)*1024+(e.charCodeAt(1)-56320);return zr(240|t>>>18&7)+zr(128|t>>>12&63)+zr(128|t>>>6&63)+zr(128|t&63)}},rH=/[\uD800-\uDBFF][\uDC00-\uDFFFF]|[^\x00-\x7F]/g,e3=e=>e.replace(rH,nH),tC=od?e=>Buffer.from(e,"utf8").toString("base64"):QT?e=>kb(QT.encode(e)):e=>U_(e3(e)),xc=(e,t=!1)=>t?ZR(tC(e)):tC(e),nC=e=>xc(e,!0),sH=/[\xC0-\xDF][\x80-\xBF]|[\xE0-\xEF][\x80-\xBF]{2}|[\xF0-\xF7][\x80-\xBF]{3}/g,iH=e=>{switch(e.length){case 4:var t=(7&e.charCodeAt(0))<<18|(63&e.charCodeAt(1))<<12|(63&e.charCodeAt(2))<<6|63&e.charCodeAt(3),n=t-65536;return zr((n>>>10)+55296)+zr((n&1023)+56320);case 3:return zr((15&e.charCodeAt(0))<<12|(63&e.charCodeAt(1))<<6|63&e.charCodeAt(2));default:return zr((31&e.charCodeAt(0))<<6|63&e.charCodeAt(1))}},t3=e=>e.replace(sH,iH),n3=e=>{if(e=e.replace(/\s+/g,""),!tH.test(e))throw new TypeError("malformed base64.");e+="==".slice(2-(e.length&3));let t,n,r,s=[];for(let i=0;i<e.length;)t=L0[e.charAt(i++)]<<18|L0[e.charAt(i++)]<<12|(n=L0[e.charAt(i++)])<<6|(r=L0[e.charAt(i++)]),n===64?s.push(zr(t>>16&255)):r===64?s.push(zr(t>>16&255,t>>8&255)):s.push(zr(t>>16&255,t>>8&255,t&255));return s.join("")},j_=typeof atob=="function"?e=>atob(JR(e)):od?e=>Buffer.from(e,"base64").toString("binary"):n3,r3=od?e=>eC(Buffer.from(e,"base64")):e=>eC(j_(e).split("").map(t=>t.charCodeAt(0))),s3=e=>r3(i3(e)),oH=od?e=>Buffer.from(e,"base64").toString("utf8"):JT?e=>JT.decode(r3(e)):e=>t3(j_(e)),i3=e=>JR(e.replace(/[-_]/g,t=>t=="-"?"+":"/")),Ib=e=>oH(i3(e)),aH=e=>{if(typeof e!="string")return!1;const t=e.replace(/\s+/g,"").replace(/={0,2}$/,"");return!/[^\s0-9a-zA-Z\+/]/.test(t)||!/[^\s0-9a-zA-Z\-_]/.test(t)},o3=e=>({value:e,enumerable:!1,writable:!0,configurable:!0}),a3=function(){const e=(t,n)=>Object.defineProperty(String.prototype,t,o3(n));e("fromBase64",function(){return Ib(this)}),e("toBase64",function(t){return xc(this,t)}),e("toBase64URI",function(){return xc(this,!0)}),e("toBase64URL",function(){return xc(this,!0)}),e("toUint8Array",function(){return s3(this)})},l3=function(){const e=(t,n)=>Object.defineProperty(Uint8Array.prototype,t,o3(n));e("toBase64",function(t){return Tp(this,t)}),e("toBase64URI",function(){return Tp(this,!0)}),e("toBase64URL",function(){return Tp(this,!0)})},lH=()=>{a3(),l3()}
8,vl={version:XR,VERSION:Qz,atob:j_,atobPolyfill:n3,btoa:U_,btoaPolyfill:QR,fromBase64:Ib,toBase64:xc,encode:xc,encodeURI:nC,encodeURL:nC,utob:e3,btou:t3,decode:Ib,isValid:aH,fromUint8Array:Tp,toUint8Array:s3,extendString:a3,extendUint8Array:l3,extendBuiltins:lH},Lb=(e,t)=>di(`api:${e}`,t||{},{serializer:{write:n=>{try{const r=JSON.stringify(n),s=new TextEncoder,i=IR(s.encode(r));return vl.fromUint8Array(i)}catch(r){return console.error("CompressFail:",r),n}},read:n=>{try{const r=vl.toUint8Array(n),s=LR(r),o=new TextDecoder().decode(s);return o?JSON.parse(o):null}catch(r){return console.error("DecompressFail:",r),n}}}});class uH{data;storage;refreshTimer=null;constructor(t,n){this.storage=Lb(`acm:${n.key}`,t),this.data=M(this.storage.value)}async refresh(t){try{const n=await t();return this.data.value=n,this.storage.value=n,!0}catch(n){return console.error("Refresh failed:",n),!1}}startAutoRefresh(t,n,r){this.stopAutoRefresh(),this.refreshTimer=fi(()=>{this.refresh(t).catch(console.error)},n),r&&this.refresh(t)}stopAutoRefresh(){this.refreshTimer&&(clearInterval(this.refreshTimer),this.refreshTimer=null)}getData(){return ds(this.data)}}function D0(e){try{const t=new URL(e).hostname;return/^(\d{1,3}\.){3}\d{1,3}$/.test(t)||t.includes(":")}catch{return!1}}function rC(e){const t=e.filter(i=>i.valid&&!i.isIP).sort((i,o)=>i.latency-o.latency),n=e.filter(i=>i.valid&&i.isIP).sort((i,o)=>i.latency-o.latency),r=e.filter(i=>i.pending),s=e.filter(i=>!i.valid&&!i.pending);return[...t,...n,...r,...s]}Promise.allSettled||(Promise.allSettled=function(e){return Promise.all(e.map(t=>Promise.resolve(t).then(n=>({status:"fulfilled",value:n})).catch(n=>({status:"rejected",reason:n}))))});async function cH(e,t,n=3e4){const r=new Map(e.map(i=>[i,{url:i,latency:1/0,valid:!1,isIP:D0(i),pending:!0}])),s=()=>
8{if(t){const i=rC(Array.from(r.values()));t(i.map(o=>o.url))}};try{const i=e.map(async o=>{const a=performance.now(),l=new AbortController,u=setTimeout(()=>l.abort(),n);try{const c=new URL(o).origin+`/__network?_=${Date.now()}`,d=await fetch(c,{mode:"cors",cache:"no-store",signal:l.signal});if(clearTimeout(u),!d.ok)throw new Error("not ok");if(!(await d.text()).includes("__nw"))throw new Error("invalid response");r.set(o,{url:o,latency:performance.now()-a,valid:!0,isIP:D0(o),pending:!1}),s()}catch{clearTimeout(u),r.set(o,{url:o,latency:1/0,valid:!1,isIP:D0(o),pending:!1}),s()}});return await Promise.allSettled(i),rC(Array.from(r.values()))}catch(i){return console.error(i),e.map(o=>({url:o,latency:1/0,valid:!1,isIP:D0(o),pending:!1}))}}const Db=globalThis.requestIdleCallback||(e=>{const t=Date.now(),n={didTimeout:!1,timeRemaining:()=>Math.max(0,50-(Date.now()-t))};return setTimeout(()=>{e(n)},1)}),dH=globalThis.cancelIdleCallback||(e=>{clearTimeout(e)}),ad=e=>{const t=wt();t.isHydrating?t.hooks.hookOnce("app:suspense:resolve",()=>{Db(()=>e())}):Db(()=>e())},ld=Ws(()=>{const{$api:e}=wt(),t=M(!1),n=M([]);let r=null;Fn();const{prod:s}=Zr().public,i=600*1e3,o=p=>new uH({},{key:p,refreshInterval:i}),a=async(p,m=3)=>{for(;m-- >0;)try{return await p()}catch(v){if(m>0){await new Promise(x=>setTimeout(x,1e3));continue}throw v}throw new Error("Max retries reached")};o("boot"),o("assets");function l(){const p=d.boot.getData().value;p?.h5?.imgUrls?.length>0&&cH(p.h5.imgUrls,m=>{n.value=m}).catch(m=>{console.error("CDN 节点探测失败:",m)})}async function u(p,m,v){try{const x=await a(m);return await p.refresh(()=>Promise.resolve(x))?(p===d.boot&&(Object.assign(window,{SITE:Rr()}),l()),x):(console.error(v),p.getData().value)}catch(x){return console.error(v,x),p.getData().value}}const c=[{key:"boot",apiCall:()=>e("boot",{onResponseHeader:p=>{const m=p["Set-Cookie"];if(m)try{const[v,...x]=m.split(";"),[g,y]=v.split("=").map(w=>w.trim()),_={};x.forEach(w=>{const[T,...C]=w.split("=").map(I=>I.trim());if(T){const I=C.length?C.join("="):"";_[T.toLowerCase()]=I}});let E=`${g}=${y}`;_.expires&&(E+=`; Expires=${new Date(_.expires).toUTCString()}`),_["max-age"]&&(E+=`; Max-Age=${_["max-age"]}`),_.path?E+=`; Path=${_.path}`:E+="; Path=/",_.domain,"secure"in _&&(E+="; Secure"),"httponly"in _&&(E+="; HttpOnly"),_.samesite&&(E+=`; SameSite=${_.samesite}`),document.cookie=E}catch(v){console.error("Failed to set cookie:",v)}}}),errorMessage:"Failed to refresh site data"},{key:"assets",apiCall:()=>e("assets"),errorMessage:"Failed to refresh assets data"}],d=c.reduce((p,m)=>({...p,[m.key]:o(m.key)}),{}),f=c.reduce((p,m)=>({...p,[m.key]:()=>u(d[m.key],m.apiCall,m.errorMessage)}),{});async function h(){return r||(t.value?Promise.resolve():(r=(async()=>{Object.values(d).some(m=>Object.keys(m.getData().value).length>0)||await Promise.all(Object.values(f).map(m=>m())),Object.entries(f).forEach(([m,v])=>{d[m].startAutoRefresh(v,i,!0)}),s||(console.group("Cache Contents:"),Object.entries(d).forEach(([m,v])=>{console.log(`${m} cache:`,v.getData().value)}),console.groupEnd()),t.value=!0})(),r))}return ad(()=>{}),{site:d.boot.getData(),assets:d.assets.getData(),refreshSite:f.boot,refreshAssets:f.assets,init:h,isInitialized:ds(t),sortedImgUrls:ds(n)}});function On(){return ld().site.value}function wr(){const{h5:e}=On();return e}let sC="",P0=null;function fH(){const e=window.location.pathname;if(e==sC)return P0;const n=window.location.pathname.split("/")[1]||null,r=["html/","main","enter"];P0=null;for(const s of r)if(e.includes(s)){P0=n?.split(s.replace(/\//g,""))[0]||"";break}return sC=e,P0}function Rr(e){let n=(e??Fn())?.params?.SITE||null;return n===null&&(n=fH(),n||(n=localStorage.getItem("sd")||ld().site.value?.xd||"")),n}function Vo(){return wr()}function u3(){return On().menu}function hH(e,t){return 0}function Gg(){const e=ld().sortedImgUrls.value;return e&&e.length>0?e:Vo().imgUrls}function co(e,t){const n=Gg();t===void 0&&(t=hH());const r=n[t]||"",s=e.replace(/{SITE}/ig,Rr());return C_(r,s.replace(/^https?:\/\/[^\/]+\//,"/"))}function pH(e,t){if(t=t||"y",e.startsWith("/avatar"))return co(e);const n=`/@s3/${t}/${e.trimStart("/")}`;return co(n)}function Hf(e,t,n){if(!e)return"";t=t||"y";const r=`/@hls/${t}/${e}`;return co(r,n)}function Is(e){const t=On();return t?t?.category?.[e]||t?.[e]?.category||[]:[]}const mH=F(()=>{const e=Rr()||"yj";return co(`/static/img/icon-logo${e}.png`)});function wl(){return mH.value}function qs(e){return e?e.startsWith("blob:")||e.startsWith("data:")?e:pH(e,"y@b"):wl()}function vu(){const{xd:e}=On();return e===""||e==="yj"}function vH(e,t){if(typeof e!="string")throw new TypeError("argument str must be a string");const n={},r=t||{},s=r.decode||gH;let i=0;for(;i<e.length;){const o=e.indexOf("=",i);if(o===-1)break;let a=e.indexOf(";",i);if(a===-1)a=e.length;else if(a<o){i=e.lastIndexOf(";",o-1)+1;continue}const l=e.slice(i,o).trim();if(r?.filter&&!r?.filter(l)){i=a+1;continue}if(n[l]===void 0){let u=e.slice(o+1,a).trim();u.codePointAt(0)===34&&(u=u.slice(1,-1)),n[l]=yH(u,s)}i=a+1}return n}
8function gH(e){return e.includes("%")?decodeURIComponent(e):e}function yH(e,t){try{return t(e)}catch{return e}}const R0=/^[\u0009\u0020-\u007E\u0080-\u00FF]+$/;function iC(e,t,n){const r=n||{},s=r.encode||encodeURIComponent;if(typeof s!="function")throw new TypeError("option encode is invalid");if(!R0.test(e))throw new TypeError("argument name is invalid");const i=s(t);if(i&&!R0.test(i))throw new TypeError("argument val is invalid");let o=e+"="+i;if(r.maxAge!==void 0&&r.maxAge!==null){const a=r.maxAge-0;if(Number.isNaN(a)||!Number.isFinite(a))throw new TypeError("option maxAge is invalid");o+="; Max-Age="+Math.floor(a)}if(r.domain){if(!R0.test(r.domain))throw new TypeError("option domain is invalid");o+="; Domain="+r.domain}if(r.path){if(!R0.test(r.path))throw new TypeError("option path is invalid");o+="; Path="+r.path}if(r.expires){if(!xH(r.expires)||Number.isNaN(r.expires.valueOf()))throw new TypeError("option expires is invalid");o+="; Expires="+r.expires.toUTCString()}if(r.httpOnly&&(o+="; HttpOnly"),r.secure&&(o+="; Secure"),r.priority)switch(typeof r.priority=="string"?r.priority.toLowerCase():r.priority){case"low":{o+="; Priority=Low";break}case"medium":{o+="; Priority=Medium";break}case"high":{o+="; Priority=High";break}
8default:throw new TypeError("option priority is invalid")}if(r.sameSite)switch(typeof r.sameSite=="string"?r.sameSite.toLowerCase():r.sameSite){case!0:{o+="; SameSite=Strict";break}case"lax":{o+="; SameSite=Lax";break}case"strict":{o+="; SameSite=Strict";break}case"none":{o+="; SameSite=None";break}default:throw new TypeError("option sameSite is invalid")}return r.partitioned&&(o+="; Partitioned"),o}function xH(e){return Object.prototype.toString.call(e)==="[object Date]"||e instanceof Date}function oC(e){return typeof e=="string"?`'${e}'`:new bH().serialize(e)}const bH=(function(){class e{#e=new Map;compare(n,r){const s=typeof n,i=typeof r;return s==="string"&&i==="string"?n.localeCompare(r):s==="number"&&i==="number"?n-r:String.prototype.localeCompare.call(this.serialize(n,!0),this.serialize(r,!0))}serialize(n,r){if(n===null)return"null";switch(typeof n){case"string":return r?n:`'${n}'`;case"bigint":return`${n}n`;case"object":return this.$object(n);case"function":return this.$function(n)}return String(n)}serializeObject(n){const r=Object.prototype.toString.call(n);if(r!=="[object Object]")return this.serializeBuiltInType(r.length<10?`unknown:${r}`:r.slice(8,-1),n);const s=n.constructor,i=s===Object||s===void 0?"":s.name;if(i!==""&&globalThis[i]===s)return this.serializeBuiltInType(i,n);if(typeof n.toJSON=="function"){const o=n.toJSON();return i+(o!==null&&typeof o=="object"?this.$object(o):`(${this.serialize(o)})`)}return this.serializeObjectEntries(i,Object.entries(n))}serializeBuiltInType(n,r){const s=this["$"+n];if(s)return s.call(this,r);if(typeof r?.entries=="function")return this.serializeObjectEntries(n,r.entries());throw new Error(`Cannot serialize ${n}`)}serializeObjectEntries(n,r){const s=Array.from(r).sort((o,a)=>this.compare(o[0],a[0]));let i=`${n}{`;for(let o=0;o<s.length;o++){const[a,l]=s[o];i+=`${this.serialize(a,!0)}:${this.serialize(l)}`,o<s.length-1&&(i+=",")}return i+"}"}$object(n){let r=this.#e.get(n);return r===void 0&&(this.#e.set(n,`#${this.#e.size}`),r=this.serializeObject(n),this.#e.set(n,r)),r}$function(n){const r=Function.prototype.toString.call(n);return r.slice(-15)==="[native code] }"?`${n.name||""}()[native]`:`${n.name}(${n.length})${r.replace(/\s*\n\s*/g,"")}`}$Array(n){let r="[";for(let s=0;s<n.length;s++)r+=this.serialize(n[s]),s<n.length-1&&(r+=",");return r+"]"}$Date(n){try{return`Date(${n.toISOString()})`}catch{return"Date(null)"}}$ArrayBuffer(n){return`ArrayBuffer[${new Uint8Array(n).join(",")}]`}$Set(n){return`Set${this.$Array(Array.from(n).sort((r,s)=>this.compare(r,s)))}`}
8$Map(n){return this.serializeObjectEntries("Map",n.entries())}}for(const t of["Error","RegExp","URL"])e.prototype["$"+t]=function(n){return`${t}(${n})`};for(const t of["Int8Array","Uint8Array","Uint8ClampedArray","Int16Array","Uint16Array","Int32Array","Uint32Array","Float32Array","Float64Array"])e.prototype["$"+t]=function(n){return`${t}[${n.join(",")}]`};for(const t of["BigInt64Array","BigUint64Array"])e.prototype["$"+t]=function(n){return`${t}[${n.join("n,")}${n.length>0?"n":""}]`};return e})();function _H(e,t){return e===t||oC(e)===oC(t)}function eo(e){if(typeof e!="object")return e;var t,n,r=Object.prototype.toString.call(e);if(r==="[object Object]"){if(e.constructor!==Object&&typeof e.constructor=="function"){n=new e.constructor;for(t in e)e.hasOwnProperty(t)&&n[t]!==e[t]&&(n[t]=eo(e[t]))}else{n={};for(t in e)t==="__proto__"?Object.defineProperty(n,t,{value:eo(e[t]),configurable:!0,enumerable:!0,writable:!0}):n[t]=eo(e[t])}return n}if(r==="[object Array]"){for(t=e.length,n=Array(t);t--;)n[t]=eo(e[t]);return n}return r==="[object Set]"?(n=new Set,e.forEach(function(s){n.add(eo(s))}),n):r==="[object Map]"?(n=new Map,e.forEach(function(s,i){n.set(eo(i),eo(s))}),n):r==="[object Date]"?new Date(+e):r==="[object RegExp]"?(n=new RegExp(e.source,e.flags),n.lastIndex=e.lastIndex,n):r==="[object DataView]"?new e.constructor(eo(e.buffer)):r==="[object ArrayBuffer]"?e.slice(0):r.slice(-6)==="Array]"?new e.constructor(e):e}const SH={path:"/",watch:!0,decode:e=>Ff(decodeURIComponent(e)),encode:e=>encodeURIComponent(typeof e=="string"?e:JSON.stringify(e))},O0=globalThis.cookieStore;function Kg(e,t){const n={...SH,...t};n.filter??=u=>u===e;const r=aC(n)||{};let s;n.maxAge!==void 0?s=n.maxAge*1e3:n.expires&&(s=n.expires.getTime()-Date.now());const i=s!==void 0&&s<=0,o=i||r[e]===void 0||r[e]===null,a=eo(i?void 0:r[e]??n.default?.()),l=s&&!i?TH(a,s,n.watch&&n.watch!=="shallow"):M(a);{let u=null;try{!O0&&typeof BroadcastChannel<"u"&&(u=new BroadcastChannel(`nuxt:cookies:${e}`))}catch{}const c=(p=!1)=>{!p&&(n.readonly||_H(l.value,r[e]))||(wH(e,l.value,n),r[e]=eo(l.value),u?.postMessage({value:n.encode(l.value)}))},d=p=>{const m=p.refresh?aC(n)?.[e]:n.decode(p.value);f=!0,l.value=m,r[e]=eo(m),tt(()=>{f=!1})};let f=!1;const h=!!El();if(h&&qn(()=>{f=!0,c(),u?.close()}),O0){const p=m=>{const v=m.changed.find(g=>g.name===e),x=m.deleted.find(g=>g.name===e);v&&d({value:v.value}),x&&d({value:null})};O0.addEventListener("change",p),h&&qn(()=>O0.removeEventListener("change",p))}else u&&(u.onmessage=({data:p})=>d(p));n.watch&&be(l,()=>{f||c()},{deep:n.watch!=="shallow"}),o&&c(o)}return l}function aC(e={}){return vH(document.cookie,e)}function EH(e,t,n={}){return t==null?iC(e,t,{...n,maxAge:-1}):iC(e,t,n)}function wH(e,t,n={}){document.cookie=EH(e,t,n)}const lC=2147483647;function TH(e,t,n){let r,s,i=0;const o=n?M(e):{value:e};return El()&&qn(()=>{s?.(),clearTimeout(r)}),X2((a,l)=>{n&&(s=be(o,l));function u(){i=0,clearTimeout(r);const c=t-i,d=c<lC?c:lC;r=setTimeout(()=>{if(i+=d,i<t)return u();o.value=void 0,l()},d)}return{get(){return a(),o.value},set(c){u(),o.value=c,l()}}})}function fo(e){const t=localStorage.getItem("assets_"+e)||"";return t?JSON.parse(t):ld().assets.value[e]||[]}function CH(e,t){t&&(t=JSON.stringify(t),localStorage.setItem("assets_"+e,t))}let uC="";function z_(e=!1){uC===location.href&&!e||(uC=location.href,setTimeout(()=>{try{const n=Kg("land").value||"";n&&(window.TJ=n),window?._tj()}catch(n){console.error("TjCallError:",n)}let t=fo("tj");if(t.length>0){t=t.trim(),t.startsWith("<script")&&t.endsWith("<\/script>")&&(t=t.replace(/<script[^>]*?>/ig,"").replace(/<\/script>$/ig,""));try{new Function(t)()}catch(n){console.error("TjScriptError:",n)}}},200))}let cC=!1;const AH=(e,t)=>{cC||(Object.assign(window,{SITE:Rr(e),TJ:Rr(e)||1,TJ_URL:"/pv",TJ_QUERY:"h="+location.hostname}),cC=!0),z_(!0)};var mf=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function H_(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function Ph(e){if(Object.prototype.hasOwnProperty.call(e,"__esMo
8dule"))return e;var t=e.default;if(typeof t=="function"){var n=function r(){var s=!1;try{s=this instanceof r}catch{}return s?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};n.prototype=t.prototype}else n={};return Object.defineProperty(n,"__esModule",{value:!0}),Object.keys(e).forEach(function(r){var s=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(n,r,s.get?s:{enumerable:!0,get:function(){return e[r]}})}),n}var Cp={exports:{}};function Pb(e){throw new Error('Could not dynamically require "'+e+'". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.')}var Ap={exports:{}};const kH={},IH=Object.freeze(Object.defineProperty({__proto__:null,default:kH},Symbol.toStringTag,{value:"Module"})),LH=Ph(IH);var DH=Ap.exports,dC;function nn(){return dC||(dC=1,(function(e,t){(function(n,r){e.exports=r()})(DH,function(){var n=n||(function(r,s){var i;if(typeof window<"u"&&window.crypto&&(i=window.crypto),typeof self<"u"&&self.crypto&&(i=self.crypto),typeof globalThis<"u"&&globalThis.crypto&&(i=globalThis.crypto),!i&&typeof window<"u"&&window.msCrypto&&(i=window.msCrypto),!i&&typeof mf<"u"&&mf.crypto&&(i=mf.crypto),!i&&typeof Pb=="function")try{i=LH}catch{}var o=function(){if(i){if(typeof i.getRandomValues=="function")try{return i.getRandomValues(new Uint32Array(1))[0]}catch{}if(typeof i.randomBytes=="function")try{return i.randomBytes(4).readInt32LE()}catch{}}throw new Error("Native crypto module could not be used to get secure random number.")},a=Object.create||(function(){function g(){}return function(y){var _;return g.prototype=y,_=new g,g.prototype=null,_}})(),l={},u=l.lib={},c=u.Base=(function(){return{extend:function(g){var y=a(this);return g&&y.mixIn(g),(!y.hasOwnProperty("init")||this.init===y.init)&&(y.init=function(){y.$super.init.apply(this,arguments)}),y.init.prototype=y,y.$super=this,y},create:function(){var g=this.extend();return g.init.apply(g,arguments),g},init:function(){},mixIn:function(g){for(var y in g)g.hasOwnProperty(y)&&(this[y]=g[y]);g.hasOwnProperty("toString")&&(this.toString=g.toString)},clone:function(){return this.init.prototype.extend(this)}}})(),d=u.WordArray=c.extend({init:function(g,y){g=this.words=g||[],y!=s?this.sigBytes=y:this.sigBytes=g.length*4},toString:function(g){return(g||h).stringify(this)},concat:function(g){var y=this.words,_=g.words,E=this.sigBytes,w=g.sigBytes;if(this.clamp(),E%4)for(var T=0;T<w;T++){var C=_[T>>>2]>>>24-T%4*8&255;y[E+T>>>2]|=C<<24-(E+T)%4*8}else for(var I=0;I<w;I+=4)y[E+I>>>2]=_[I>>>2];return this.sigBytes+=w,this},clamp:function(){var g=this.words,y=this.sigBytes;g[y>>>2]&=4294967295<<32-y%4*8,g.length=r.ceil(y/4)},clone:function(){var g=c.clone.call(this);return g.words=this.words.slice(0),g},random:function(g){for(var y=[],_=0;_<g;_+=4)y.push(o());return new d.init(y,g)}}),f=l.enc={},h=f.Hex={stringify:function(g){for(var y=g.words,_=g.sigBytes,E=[],w=0;w<_;w++){var T=y[w>>>2]>>>24-w%4*8&255;E.push((T>>>4).toString(16)),E.push((T&15).toString(16))}return E.join("")},parse:function(g){for(var y=g.length,_=[],E=0;E<y;E+=2)_[E>>>3]|=parseInt(g.substr(E,2),16)<<24-E%8*4;return new d.init(_,y/2)}},p=f.Latin1={stringify:function(g){for(var y=g.words,_=g.sigBytes,E=[],w=0;w<_;w++){var T=y[w>>>2]>>>24-w%4*8&255;E.push(String.fromCharCode(T))}return E.join("")},parse:function(g){for(var y=g.length,_=[],E=0;E<y;E++)_[E>>>2]|=(g.charCodeAt(E)&255)<<24-E%4*8;return new d.init(_,y)}},m=f.Utf8={stringify:function(g){try{return decodeURIComponent(escape(p.stringify(g)))}catch{throw new Error("Malformed UTF-8 data")}},parse:function(g){return p.parse(unescape(encodeURIComponent(g)))}},v=u.BufferedBlockAlgorithm=c.extend({reset:function(){this._data=new d.init,this._nDataBytes=0},_append:function(g){typeof g=="string"&&(g=m.parse(g)),this._data.concat(g),this._nDataBytes+=g.sigBytes},_process:function(g){var y,_=this._data,E=_.words,w=_.sigBytes,T=this.blockSize,C=T*4,I=w/C;g?I=r.ceil(I):I=r.max((I|0)-this._minBufferSize,0);var k=I*T,$=r.min(k*4,w);if(k){for(var R=0;R<k;R+=T)this._doProcessBlock(E,R);y=E.splice(0,k),_.sigBytes-=$}return new d.init(y,$)},clone:function(){var g=c.clone.call(this);return g._data=this._data.clone(),g},_minBufferSize:0});u.Hasher=v.extend({cfg:c.extend(),init:function(g){this.cfg=this.cfg.extend(g),this.reset()},reset:function(){v.reset.call(this),this._doReset()},update:function(g){return this._append(g),this._process(),this},finalize:function(g){g&&this._append(g);var y=this._doFinalize();return y},blockSize:16,_createHelper:function(g){return function(y,_){return new g.init(_).finalize(y)}},_createHmacHelper:function(g){return function(y,_){return new x.HMAC.init(g,_).finalize(y)}}});var x=l.algo={};return l})(Math);return n})})(Ap)),Ap.exports}var kp={exports:{}},PH=kp.exports,fC;function Wg(){return fC||(fC=1,(function(e,t){(function(n,r){e.exports=r(nn())})(PH,function(n){return(function(r){var s=n,i=s.lib,o=i.Base,a=i.WordArray,l=s.x64={};l.Word=o.extend({init:function(u,c){this.high=u,this.low=c}}),l.WordArray=o.extend({init:function(u,c){u=this.words=u||[],c!=r?this.sigBytes=c:this.sigBytes=u.length*8},toX32:function(){for(var u=this.words,c=u.length,d=[],f=0;f<c;f++){var h=u[f];d.push(h.high),d.push(h.low)}return a.create(d,this.sigBytes)},clone:function(){for(var u=o.clone.call(this),c=u.words=this.words.slice(0),d=c.length,f=0;f<d;f++)c[f]=c[f].clone();return u}})})(),n})})(kp)),kp.exports}var Ip={exports:{}},RH=Ip.exports,hC;function OH(){return hC||(hC=1,(function(e,t){(function(n,r){e.exports=r(nn())})(RH,function(n){return(function(){if(typeof ArrayBuffer=="function"){var r=n,s=r.lib,i=s.WordArray,o=i.init,a=i.init=function(l){if(l instanceof ArrayBuffer&&(l=new Uint8Array(l)),(l instanceof Int8Array||typeof Uint8ClampedArray<"u"&&l instanceof Uint8ClampedArray||l instanceof Int16Array||l instanceof Uint16Array||l instanceof Int32Array||l instanceof Uint32Array||l instanceof Float32Array||l instanceof Float64Array)&&(l=new Uint8Array(l.buffer,l.byteOffset,l.byteLength)),l instanceof Uint8Array){for(var u=l.byteLength,c=[],d=0;d<u;d++)c[d>>>2]|=l[d]<<24-d%4*8;o.call(this,c,u)}else o.apply(this,arguments)};a.prototype=i}})(),n.lib.WordArray})})(Ip)),Ip.exports}
vendor: 20,477 bytes, line 8
8var Lp={exports:{}},$H=Lp.exports,pC;function MH(){return pC||(pC=1,(function(e,t){(function(n,r){e.exports=r(nn())})($H,function(n){return(function(){var r=n,s=r.lib,i=s.WordArray,o=r.enc;o.Utf16=o.Utf16BE={stringify:function(l){for(var u=l.words,c=l.sigBytes,d=[],f=0;f<c;f+=2){var h=u[f>>>2]>>>16-f%4*8&65535;d.push(String.fromCharCode(h))}return d.join("")},parse:function(l){for(var u=l.length,c=[],d=0;d<u;d++)c[d>>>1]|=l.charCodeAt(d)<<16-d%2*16;return i.create(c,u*2)}},o.Utf16LE={stringify:function(l){for(var u=l.words,c=l.sigBytes,d=[],f=0;f<c;f+=2){var h=a(u[f>>>2]>>>16-f%4*8&65535);d.push(String.fromCharCode(h))}return d.join("")},parse:function(l){for(var u=l.length,c=[],d=0;d<u;d++)c[d>>>1]|=a(l.charCodeAt(d)<<16-d%2*16);return i.create(c,u*2)}};function a(l){return l<<8&4278255360|l>>>8&16711935}})(),n.enc.Utf16})})(Lp)),Lp.exports}var Dp={exports:{}},FH=Dp.exports,mC;function Ru(){return mC||(mC=1,(function(e,t){(function(n,r){e.exports=r(nn())})(FH,function(n){return(function(){var r=n,s=r.lib,i=s.WordArray,o=r.enc;o.Base64={stringify:function(l){var u=l.words,c=l.sigBytes,d=this._map;l.clamp();for(var f=[],h=0;h<c;h+=3)for(var p=u[h>>>2]>>>24-h%4*8&255,m=u[h+1>>>2]>>>24-(h+1)%4*8&255,v=u[h+2>>>2]>>>24-(h+2)%4*8&255,x=p<<16|m<<8|v,g=0;g<4&&h+g*.75<c;g++)f.push(d.charAt(x>>>6*(3-g)&63));var y=d.charAt(64);if(y)for(;f.length%4;)f.push(y);return f.join("")},parse:function(l){var u=l.length,c=this._map,d=this._reverseMap;if(!d){d=this._reverseMap=[];for(var f=0;f<c.length;f++)d[c.charCodeAt(f)]=f}var h=c.charAt(64);if(h){var p=l.indexOf(h);p!==-1&&(u=p)}return a(l,u,d)},_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/="};function a(l,u,c){for(var d=[],f=0,h=0;h<u;h++)if(h%4){var p=c[l.charCodeAt(h-1)]<<h%4*2,m=c[l.charCodeAt(h)]>>>6-h%4*2,v=p|m;d[f>>>2]|=v<<24-f%4*8,f++}return i.create(d,f)}})(),n.enc.Base64})})(Dp)),Dp.exports}var Pp={exports:{}},BH=Pp.exports,vC;function NH(){return vC||(vC=1,(function(e,t){(function(n,r){e.exports=r(nn())})(BH,function(n){return(function(){var r=n,s=r.lib,i=s.WordArray,o=r.enc;o.Base64url={stringify:function(l,u){u===void 0&&(u=!0);var c=l.words,d=l.sigBytes,f=u?this._safe_map:this._map;l.clamp();for(var h=[],p=0;p<d;p+=3)for(var m=c[p>>>2]>>>24-p%4*8&255,v=c[p+1>>>2]>>>24-(p+1)%4*8&255,x=c[p+2>>>2]>>>24-(p+2)%4*8&255,g=m<<16|v<<8|x,y=0;y<4&&p+y*.75<d;y++)h.push(f.charAt(g>>>6*(3-y)&63));var _=f.charAt(64);if(_)for(;h.length%4;)h.push(_);return h.join("")},parse:function(l,u){u===void 0&&(u=!0);var c=l.length,d=u?this._safe_map:this._map,f=this._reverseMap;if(!f){f=this._reverseMap=[];for(var h=0;h<d.length;h++)f[d.charCodeAt(h)]=h}var p=d.charAt(64);if(p){var m=l.indexOf(p);m!==-1&&(c=m)}return a(l,c,f)},_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",_safe_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_"};function a(l,u,c){for(var d=[],f=0,h=0;h<u;h++)if(h%4){var p=c[l.charCodeAt(h-1)]<<h%4*2,m=c[l.charCodeAt(h)]>>>6-h%4*2,v=p|m;d[f>>>2]|=v<<24-f%4*8,f++}return i.create(d,f)}})(),n.enc.Base64url})})(Pp)),Pp.exports}var Rp={exports:{}},VH=Rp.exports,gC;function Ou(){return gC||(gC=1,(function(e,t){(function(n,r){e.exports=r(nn())})(VH,function(n){return(function(r){var s=n,i=s.lib,o=i.WordArray,a=i.Hasher,l=s.algo,u=[];(function(){for(var m=0;m<64;m++)u[m]=r.abs(r.sin(m+1))*4294967296|0})();var c=l.MD5=a.extend({_doReset:function(){this._hash=new o.init([1732584193,4023233417,2562383102,271733878])},_doProcessBlock:function(m,v){for(var x=0;x<16;x++){var g=v+x,y=m[g];m[g]=(y<<8|y>>>24)&16711935|(y<<24|y>>>8)&4278255360}var _=this._hash.words,E=m[v+0],w=m[v+1],T=m[v+2],C=m[v+3],I=m[v+4],k=m[v+5],$=m[v+6],R=m[v+7],D=m[v+8],O=m[v+9],B=m[v+10],U=m[v+11],N=m[v+12],V=m[v+13],H=m[v+14],re=m[v+15],W=_[0],X=_[1],Q=_[2],le=_[3];W=d(W,X,Q,le,E,7,u[0]),le=d(le,W,X,Q,w,12,u[1]),Q=d(Q,le,W,X,T,17,u[2]),X=d(X,Q,le,W,C,22,u[3]),W=d(W,X,Q,le,I,7,u[4]),le=d(le,W,X,Q,k,12,u[5]),Q=d(Q,le,W,X,$,17,u[6]),X=d(X,Q,le,W,R,22,u[7]),W=d(W,X,Q,le,D,7,u[8]),le=d(le,W,X,Q,O,12,u[9]),Q=d(Q,le,W,X,B,17,u[10]),X=d(X,Q,le,W,U,22,u[11]),W=d(W,X,Q,le,N,7,u[12]),le=d(le,W,X,Q,V,12,u[13]),Q=d(Q,le,W,X,H,17,u[14]),X=d(X,Q,le,W,re,22,u[15]),W=f(W,X,Q,le,w,5,u[16]),le=f(le,W,X,Q,$,9,u[17]),Q=f(Q,le,W,X,U,14,u[18]),X=f(X,Q,le,W,E,20,u[19]),W=f(W,X,Q,le,k,5,u[20]),le=f(le,W,X,Q,B,9,u[21]),Q=f(Q,le,W,X,re,14,u[22]),X=f(X,Q,le,W,I,20,u[23]),W=f(W,X,Q,le,O,5,u[24]),le=f(le,W,X,Q,H,9,u[25]),Q=f(Q,le,W,X,C,14,u[26]),X=f(X,Q,le,W,D,20,u[27]),W=f(W,X,Q,le,V,5,u[28]),le=f(le,W,X,Q,T,9,u[29]),Q=f(Q,le,W,X,R,14,u[30]),X=f(X,Q,le,W,N,20,u[31]),W=h(W,X,Q,le,k,4,u[32]),le=h(le,W,X,Q,D,11,u[33]),Q=h(Q,le,W,X,U,16,u[34]),X=h(X,Q,le,W,H,23,u[35]),W=h(W,X,Q,le,w,4,u[36]),le=h(le,W,X,Q,I,11,u[37]),Q=h(Q,le,W,X,R,16,u[38]),X=h(X,Q,le,W,B,23,u[39]),W=h(W,X,Q,le,V,4,u[40]),le=h(le,W,X,Q,E,11,u[41]),Q=h(Q,le,W,X,C,16,u[42]),X=h(X,Q,le,W,$,23,u[43]),W=h(W,X,Q,le,O,4,u[44]),le=h(le,W,X,Q,N,11,u[45]),Q=h(Q,le,W,X,re,16,u[46]),X=h(X,Q,le,W,T,23,u[47]),W=p(W,X,Q,le,E,6,u[48]),le=p(le,W,X,Q,R,10,u[49]),Q=p(Q,le,W,X,H,15,u[50]),X=p(X,Q,le,W,k,21,u[51]),W=p(W,X,Q,le,N,6,u[52]),le=p(le,W,X,Q,C,10,u[53]),Q=p(Q,le,W,X,B,15,u[54]),X=p(X,Q,le,W,w,21,u[55]),W=p(W,X,Q,le,D,6,u[56]),le=p(le,W,X,Q,re,10,u[57]),Q=p(Q,le,W,X,$,15,u[58]),X=p(X,Q,le,W,V,21,u[59]),W=p(W,X,Q,le,I,6,u[60]),le=p(le,W,X,Q,U,10,u[61]),Q=p(Q,le,W,X,T,15,u[62]),X=p(X,Q,le,W,O,21,u[63]),_[0]=_[0]+W|0,_[1]=_[1]+X|0,_[2]=_[2]+Q|0,_[3]=_[3]+le|0},_doFinalize:function(){var m=this._data,v=m.words,x=this._nDataBytes*8,g=m.sigBytes*8;v[g>>>5]|=128<<24-g%32;var y=r.floor(x/4294967296),_=x;v[(g+64>>>9<<4)+15]=(y<<8|y>>>24)&16711935|(y<<24|y>>>8)&4278255360,v[(g+64>>>9<<4)+14]=(_<<8|_>>>24)&16711935|(_<<24|_>>>8)&4278255360,m.sigBytes=(v.length+1)*4,this._process();for(var E=this._hash,w=E.words,T=0;T<4;T++){var C=w[T];w[T]=(C<<8|C>>>24)&16711935|(C<<24|C>>>8)&4278255360}return E},clone:function(){var m=a.clone.call(this);return m._hash=this._hash.clone(),m}});function d(m,v,x,g,y,_,E){var w=m+(v&x|~v&g)+y+E;return(w<<_|w>>>32-_)+v}function f(m,v,x,g,y,_,E){var w=m+(v&g|x&~g)+y+E;return(w<<_|w>>>32-_)+v}function h(m,v,x,g,y,_,E){var w=m+(v^x^g)+y+E;return(w<<_|w>>>32-_)+v}function p(m,v,x,g,y,_,E){var w=m+(x^(v|~g))+y+E;return(w<<_|w>>>32-_)+v}s.MD5=a._createHelper(c),s.HmacMD5=a._createHmacHelper(c)})(Math),n.MD5})})(Rp)),Rp.exports}var Op={exports:{}},UH=Op.exports,yC;function c3(){return yC||(yC=1,(function(e,t){(function(n,r){e.exports=r(nn())})(UH,function(n){return(function(){var r=n,s=r.lib,i=s.WordArray,o=s.Hasher,a=r.algo,l=[],u=a.SHA1=o.extend({_doReset:function(){this._hash=new i.init([1732584193,4023233417,2562383102,271733878,3285377520])},_doProcessBlock:function(c,d){for(var f=this._hash.words,h=f[0],p=f[1],m=f[2],v=f[3],x=f[4],g=0;g<80;g++){if(g<16)l[g]=c[d+g]|0;else{var y=l[g-3]^l[g-8]^l[g-14]^l[g-16];l[g]=y<<1|y>>>31}var _=(h<<5|h>>>27)+x+l[g];g<20?_+=(p&m|~p&v)+1518500249:g<40?_+=(p^m^v)+1859775393:g<60?_+=(p&m|p&v|m&v)-1894007588:_+=(p^m^v)-899497514,x=v,v=m,m=p<<30|p>>>2,p=h,h=_}f[0]=f[0]+h|0,f[1]=f[1]+p|0,f[2]=f[2]+m|0,f[3]=f[3]+v|0,f[4]=f[4]+x|0},_doFinalize:function(){var c=this._data,d=c.words,f=this._nDataBytes*8,h=c.sigBytes*8;return d[h>>>5]|=128<<24-h%32,d[(h+64>>>9<<4)+14]=Math.floor(f/4294967296),d[(h+64>>>9<<4)+15]=f,c.sigBytes=d.length*4,this._process(),this._hash},clone:function(){var c=o.clone.call(this);return c._hash=this._hash.clone(),c}});r.SHA1=o._createHelper(u),r.HmacSHA1=o._createHmacHelper(u)})(),n.SHA1})})(Op)),Op.exports}var $p={exports:{}},jH=$p.exports,xC;function G_(){return xC||(xC=1,(function(e,t){(function(n,r){e.exports=r(nn())})(jH,function(n){return(function(r){var s=n,i=s.lib,o=i.WordArray,a=i.Hasher,l=s.algo,u=[],c=[];(function(){function h(x){for(var g=r.sqrt(x),y=2;y<=g;y++)if(!(x%y))return!1;return!0}function p(x){return(x-(x|0))*4294967296|0}for(var m=2,v=0;v<64;)h(m)&&(v<8&&(u[v]=p(r.pow(m,1/2))),c[v]=p(r.pow(m,1/3)),v++),m++})();var d=[],f=l.SHA256=a.extend({_doReset:function(){this._hash=new o.init(u.slice(0))},_doProcessBlock:function(h,p){for(var m=this._hash.words,v=m[0],x=m[1],g=m[2],y=m[3],_=m[4],E=m[5],w=m[6],T=m[7],C=0;C<64;C++){if(C<16)d[C]=h[p+C]|0;else{var I=d[C-15],k=(I<<25|I>>>7)^(I<<14|I>>>18)^I>>>3,$=d[C-2],R=($<<15|$>>>17)^($<<13|$>>>19)^$>>>10;d[C]=k+d[C-7]+R+d[C-16]}var D=_&E^~_&w,O=v&x^v&g^x&g,B=(v<<30|v>>>2)^(v<<19|v>>>13)^(v<<10|v>>>22),U=(_<<26|_>>>6)^(_<<21|_>>>11)^(_<<7|_>>>25),N=T+U+D+c[C]+d[C],V=B+O;T=w,w=E,E=_,_=y+N|0,y=g,g=x,x=v,v=N+V|0}m[0]=m[0]+v|0,m[1]=m[1]+x|0,m[2]=m[2]+g|0,m[3]=m[3]+y|0,m[4]=m[4]+_|0,m[5]=m[5]+E|0,m[6]=m[6]+w|0,m[7]=m[7]+T|0},_doFinalize:function(){var h=this._data,p=h.words,m=this._nDataBytes*8,v=h.sigBytes*8;return p[v>>>5]|=128<<24-v%32,p[(v+64>>>9<<4)+14]=r.floor(m/4294967296),p[(v+64>>>9<<4)+15]=m,h.sigBytes=p.length*4,this._process(),this._hash},clone:function(){var h=a.clone.call(this);return h._hash=this._hash.clone(),h}});s.SHA256=a._createHelper(f),s.HmacSHA256=a._createHmacHelper(f)})(Math),n.SHA256})})($p)),$p.exports}var Mp={exports:{}},zH=Mp.exports,bC;function HH(){return bC||(bC=1,(function(e,t){(function(n,r,s){e.exports=r(nn(),G_())})(zH,function(n){return(function(){var r=n,s=r.lib,i=s.WordArray,o=r.algo,a=o.SHA256,l=o.SHA224=a.extend({_doReset:function(){this._hash=new i.init([3238371032,914150663,812702999,4144912697,4290775857,1750603025,1694076839,3204075428])},_doFinalize:function(){var u=a._doFinalize.call(this);return u.sigBytes-=4,u}});r.SHA224=a._createHelper(l),r.HmacSHA224=a._createHmacHelper(l)})(),n.SHA224})})(Mp)),Mp.exports}var Fp={exports:{}},GH=Fp.exports,_C;function d3(){return _C||(_C=1,(function(e,t){(function(n,r,s){e.exports=r(nn(),Wg())})(GH,function(n){return(function(){var r=n,s=r.lib,i=s.Hasher,o=r.x64,a=o.Word,l=o.WordArray,u=r.algo;function c(){return a.create.apply(a,arguments)}var d=[c(1116352408,3609767458),c(1899447441,602891725),c(3049323471,3964484399),c(3921009573,2173295548),c(961987163,4081628472),c(1508970993,3053834265),c(2453635748,2937671579),c(2870763221,3664609560),c(3624381080,2734883394),c(310598401,1164996542),c(607225278,1323610764),c(1426881987,3590304994),c(1925078388,4068182383),c(2162078206,991336113),c(2614888103,633803317),c(3248222580,3479774868),c(3835390401,2666613458),c(4022224774,944711139),c(264347078,2341262773),c(604807628,2007800933),c(770255983,1495990901),c(1249150122,1856431235),c(1555081692,3175218132),c(1996064986,2198950837),c(2554220882,3999719339),c(2821834349,766784016),c(2952996808,2566594879),c(3210313671,3203337956),c(3336571891,1034457026),c(3584528711,2466948901),c(113926993,3758326383),c(338241895,168717936),c(666307205,1188179964),c(773529912,1546045734),c(1294757372,1522805485),c(1396182291,2643833823),c(1695183700,2343527390),c(1986661051,1014477480),c(2177026350,1206759142),c(2456956037,344077627),c(2730485921,1290863460),c(2820302411,3158454273),c(3259730800,3505952657),c(3345764771,106217008),c(3516065817,3606008344),c(3600352804,1432725776),c(4094571909,1467031594),c(275423344,851169720),c(430227734,3100823752),c(506948616,1363258195),c(659060556,3750685593),c(883997877,3785050280),c(958139571,3318307427),c(1322822218,3812723403),c(1537002063,2003034995),c(1747873779,3602036899),c(1955562222,1575990012),c(2024104815,1125592928),c(2227730452,2716904306),c(2361852424,442776044),c(2428436474,593698344),c(2756734187,3733110249),c(3204031479,2999351573),c(3329325298,3815920427),c(3391569614,3928383900),c(3515267271,566280711),c(3940187606,3454069534),c(4118630271,4000239992),c(116418474,1914138554),c(174292421,2731055270),c(289380356,3203993006),c(460393269,320620315),c(685471733,587496836),c(852142971,1086792851),c(1017036298,365543100),c(1126000580,2618297676),c(1288033470,3409855158),c(1501505948,4234509866),c(1607167915,987167468),c(1816402316,1246189591)],f=[];(function(){for(var p=0;p<80;p++)f[p]=c()})();var h=u.SHA512=i.extend({_doReset:function(){this._hash=new l.init([new a.init(1779033703,4089235720),new a.init(3144134277,2227873595),new a.init(1013904242,4271175723),new a.init(2773480762,1595750129),new a.init(1359893119,2917565137),new a.init(2600822924,725511199),new a.init(528734635,4215389547),new a.init(1541459225,327033209)])},_doProcessBlock:function(p,m){for(var v=this._hash.words,x=v[0],g=v[1],y=v[2],_=v[3],E=v[4],w=v[5],T=v[6],C=v[7],I=x.high,k=x.low,$=g.high,R=g.low,D=y.high,O=y.low,B=_.high,U=_.low,N=E.high,V=E.low,H=w.high,re=w.low,W=T.high,X=T.low,Q=C.high,le=C.low,ve=I,oe=k,K=$,ee=R,ae=D,ue=O,Ee=B,_e=U,J=N,Y=V,fe=H,xe=re,ne=W,ie=X,Le=Q,we=le,Be=0;Be<80;Be++){var Pe,qe,Me=f[Be];if(Be<16)qe=Me.high=p[m+Be*2]|0,Pe=Me.low=p[m+Be*2+1]|0;else{var ze=f[Be-15],et=ze.high,pe=ze.low,ge=(et>>>1|pe<<31)^(et>>>8|pe<<24)^et>>>7,he=(pe>>>1|et<<31)^(pe>>>8|et<<24)^(pe>>>7|et<<25),ye=f[Be-2],me=ye.high,Ne=ye.low,Je=(me>>>19|Ne<<13)^(me<<3|Ne>>>29)^me>>>6,Oe=(Ne>>>19|me<<13)^(Ne<<3|me>>>29)^(Ne>>>6|me<<26),Ye=f[Be-7],ot=Ye.high,rt=Ye.low,ct=f[Be-16],Se=ct.high,Ue=ct.low;Pe=he+rt,qe=ge+ot+(Pe>>>0<he>>>0?1:0),Pe=Pe+Oe,qe=qe+Je+(Pe>>>0<Oe>>>0?1:0),Pe=Pe+Ue,qe=qe+Se+(Pe>>>0<Ue>>>0?1:0),Me.high=qe,Me.low=Pe}var gt=J&fe^~J&ne,_t=Y&xe^~Y&ie,gn=ve&K^ve&ae^K&ae,bi=oe&ee^oe&ue^ee&ue,Dl=(ve>>>28|oe<<4)^(ve<<30|oe>>>2)^(ve<<25|oe>>>7),Wi=(oe>>>28|ve<<4)^(oe<<30|ve>>>2)^(oe<<25|ve>>>7),yn=(J>>>14|Y<<18)^(J>>>18|Y<<14)^(J<<23|Y>>>9),e1=(Y>>>14|J<<18)^(Y>>>18|J<<14)^(Y<<23|J>>>9),l0=d[Be],t1=l0.high,u0=l0.low,fn=we+e1,es=Le+yn+(fn>>>0<we>>>0?1:0),fn=fn+_t,es=es+gt+(fn>>>0<_t>>>0?1:0),fn=fn+u0,es=es+t1+(fn>>>0<u0>>>0?1:0),fn=fn+Pe,es=es+qe+(fn>>>0<Pe>>>0?1:0),_n=Wi+bi,qi=Dl+gn+(_n>>>0<Wi>>>0?1:0);Le=ne,we=ie,ne=fe,ie=xe,fe=J,xe=Y,Y=_e+fn|0,J=Ee+es+(Y>>>0<_e>>>0?1:0)|0,Ee=ae,_e=ue,ae=K,ue=ee,K=ve,ee=oe,oe=fn+_n|0,ve=es+qi+(oe>>>0<fn>>>0?1:0)|0}k=x.low=k+oe,x.high=I+ve+(k>>>0<oe>>>0?1:0),R=g.low=R+ee,g.high=$+K+(R>>>0<ee>>>0?1:0),O=y.low=O+ue,y.high=D+ae+(O>>>0<ue>>>0?1:0),U=_.low=U+_e,_.high=B+Ee+(U>>>0<_e>>>0?1:0),V=E.low=V+Y,E.high=N+J+(V>>>0<Y>>>0?1:0),re=w.low=re+xe,w.high=H+fe+(re>>>0<xe>>>0?1:0),X=T.low=X+ie,T.high=W+ne+(X>>>0<ie>>>0?1:0),le=C.low=le+we,C.high=Q+Le+(le>>>0<we>>>0?1:0)},_doFinalize:function(){var p=this._data,m=p.words,v=this._nDataBytes*8,x=p.sigBytes*8;m[x>>>5]|=128<<24-x%32,m[(x+128>>>10<<5)+30]=Math.floor(v/4294967296),m[(x+128>>>10<<5)+31]=v,p.sigBytes=m.length*4,this._process();var g=this._hash.toX32();return g},clone:function(){var p=i.clone.call(this);return p._hash=this._hash.clone(),p},blockSize:1024/32});r.SHA512=i._createHelper(h),r.HmacSHA512=i._createHmacHelper(h)})(),n.SHA512})})(Fp)),Fp.exports}var Bp={exports:{}},KH=Bp.exports,SC;function WH(){return SC||(SC=1,(function(e,t){(function(n,r,s){e.exports=r(nn(),Wg(),d3())})(KH,function(n){return(function(){var r=n,s=r.x64,i=s.Word,o=s.WordArray,a=r.algo,l=a.SHA512,u=a.SHA384=l.extend({_doReset:function(){this._hash=new o.init([new i.init(3418070365,3238371032),new i.init(1654270250,914150663),new i.init(2438529370,812702999),new i.init(355462360,4144912697),new i.init(1731405415,4290775857),new i.init(2394180231,1750603025),new i.init(3675008525,1694076839),new i.init(1203062813,3204075428)])},_doFinalize:function(){var c=l._doFinalize.call(this);return c.sigBytes-=16,c}});r.SHA384=l._createHelper(u),r.HmacSHA384=l._createHmacHelper(u)})(),n.SHA384})})(Bp)),Bp.exports}var Np={exports:{}},qH=Np.exports,EC;function YH(){return EC||(EC=1,(function(e,t){(function(n,r,s){e.exports=r(nn(),Wg())})(qH,function(n){return(function(r){var s=n,i=s.lib,o=i.WordArray,a=i.Hasher,l=s.x64,u=l.Word,c=s.algo,d=[],f=[],h=[];(function(){for(var v=1,x=0,g=0;g<24;g++){d[v+5*x]=(g+1)*(g+2)/2%64;var y=x%5,_=(2*v+3*x)%5;v=y,x=_}for(var v=0;v<5;v++)for(var x=0;x<5;x++)f[v+5*x]=x+(2*v+3*x)%5*5;for(var E=1,w=0;w<24;w++){for(var T=0,C=0,I=0;I<7;I++){if(E&1){var k=(1<<I)-1;k<32?C^=1<<k:T^=1<<k-32}E&128?E=E<<1^113:E<<=1}h[w]=u.create(T,C)}})();var p=[];(function(){for(var v=0;v<25;v++)p[v]=u.create()})();var m=c.SHA3=a.extend({cfg:a.cfg.extend({outputLength:512}),_doReset:function(){for(var v=this._state=[],x=0;x<25;x++)v[x]=new u.init;this.blockSize=(1600-2*this.cfg.outputLength)/32},_doProcessBlock:function(v,x){for(var g=this._state,y=this.blockSize/2,_=0;_<y;_++){var E=v[x+2*_],w=v[x+2*_+1];E=(E<<8|E>>>24)&16711935|(E<<24|E>>>8)&4278255360,w=(w<<8|w>>>24)&16711935|(w<<24|w>>>8)&4278255360;var T=g[_];T.high^=w,T.low^=E}for(var C=0;C<24;C++){for(var I=0;I<5;I++){for(var k=0,$=0,R=0;R<5;R++){var T=g[I+5*R];k^=T.high,$^=T.low}var D=p[I];D.high=k,D.low=$}for(var I=0;I<5;I++)for(var O=p[(I+4)%5],B=p[(I+1)%5],U=B.high,N=B.low,k=O.high^(U<<1|N>>>31),$=O.low^(N<<1|U>>>31),R=0;R<5;R++){var T=g[I+5*R];T.high^=k,T.low^=$}for(var V=1;V<25;V++){var k,$,T=g[V],H=T.high,re=T.low,W=d[V];W<32?(k=H<<W|re>>>32-W,$=re<<W|H>>>32-W):(k=re<<W-32|H>>>64-W,$=H<<W-32|re>>>64-W);var X=p[f[V]];X.high=k,X.low=$}var Q=p[0],le=g[0];Q.high=le.high,Q.low=le.low;for(var I=0;I<5;I++)for(var R=0;R<5;R++){var V=I+5*R,T=g[V],ve=p[V],oe=p[(I+1)%5+5*R],K=p[(I+2)%5+5*R];T.high=ve.high^~oe.high&K.high,T.low=ve.low^~oe.low&K.low}var T=g[0],ee=h[C];T.high^=ee.high,T.low^=ee.low}},_doFinalize:function(){var v=this._data,x=v.words;this._nDataBytes*8;var g=v.sigBytes*8,y=this.blockSize*32;x[g>>>5]|=1<<24-g%32,x[(r.ceil((g+1)/y)*y>>>5)-1]|=128,v.sigBytes=x.length*4,this._process();for(var _=this._state,E=this.cfg.outputLength/8,w=E/8,T=[],C=0;C<w;C++){var I=_[C],k=I.high,$=I.low;k=(k<<8|k>>>24)&16711935|(k<<24|k>>>8)&4278255360,$=($<<8|$>>>24)&16711935|($<<24|$>>>8)&4278255360,T.push($),T.push(k)}return new o.init(T,E)},clone:function(){for(var v=a.clone.call(this),x=v._state=this._state.slice(0),g=0;g<25;g++)x[g]=x[g].clone();return v}});s.SHA3=a._createHelper(m),s.HmacSHA3=a._createHmacHelper(m)})(Math),n.SHA3})})(Np)),Np.exports}var Vp={exports:{}},XH=Vp.exports,wC;function ZH(){return wC||(wC=1,(function(e,t){(function(n,r){e.exports=r(nn())})(XH,function(n){return(function(r){var s=n,i=s.lib,o=i.WordArray,a=i.Hasher,l=s.algo,u=o.create([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,7,4,13,1,10,6,15,3,12,0,9,5,2,14,11,8,3,10,14,4,9,15,8,1,2,7,0,6,13,11,5,12,1,9,11,10,0,8,12,4,13,3,7,15,14,5,6,2,4,0,5,9,7,12,2,10,14,1,3,8,11,6,15,13]),c=o.create([5,14,7,0,9,2,11,4,13,6,15,8,1,10,3,12,6,11,3,7,0,13,5,10,14,15,8,12,4,9,1,2,15,5,1,3,7,14,6,9,11,8,12,2,10,0,4,13,8,6,4,1,3,11,15,0,5,12,2,13,9,7,10,14,12,15,10,4,1,5,8,7,6,2,13,14,0,3,9,11]),d=o.create([11,14,15,12,5,8,7,9,11,13,14,15,6,7,9,8,7,6,8,13,11,9,7,15,7,12,15,9,11,7,13,12,11,13,6,7,14,9,13,15,14,8,13,6,5,12,7,5,11,12,14,15,14,15,9,8,9,14,5,6,8,6,5,12,9,15,5,11,6,8,13,12,5,12,13,14,11,8,5,6]),f=o.create([8,9,9,11,13,15,15,5,7,7,8,11,14,14,12,6,9,13,15,7,12,8,9,11,7,7,12,7,6,15,13,11,9,7,15,11,8,6,6,14,12,13,5,14,13,13,7,5,15,5,8,11,14,14,6,14,6,9,12,9,12,5,15,8,8,5,12,9,12,5,14,6,8,13,6,5,15,13,11,11]),h=o.create([0,1518500249,1859775393,2400959708,2840853838]),p=o.create([1352829926,1548603684,1836072691,2053994217,0]),m=l.RIPEMD160=a.extend({_doReset:function(){this._hash=o.create([1732584193,4023233417,2562383102,271733878,3285377520])},_doProcessBlock:function(w,T){for(var C=0;C<16;C++){var I=T+C,k=w[I];w[I]=(k<<8|k>>>24)&16711935|(k<<24|k>>>8)&4278255360}var $=this._hash.words,R=h.words,D=p.words,O=u.words,B=c.words,U=d.words,N=f.words,V,H,re,W,X,Q,le,ve,oe,K;Q=V=$[0],le=H=$[1],ve=re=$[2],oe=W=$[3],K=X=$[4];for(var ee,C=0;C<80;C+=1)ee=V+w[T+O[C]]|0,C<16?ee+=v(H,re,W)+R[0]:C<32?ee+=x(H,re,W)+R[1]:C<48?ee+=g(H,re,W)+R[2]:C<64?ee+=y(H,re,W)+R[3]:ee+=_(H,re,W)+R[4],ee=ee|0,ee=E(ee,U[C]),ee=ee+X|0,V=X,X=W,W=E(re,10),re=H,H=ee,ee=Q+w[T+B[C]]|0,C<16?ee+=_(le,ve,oe)+D[0]:C<32?ee+=y(le,ve,oe)+D[1]:C<48?ee+=g(le,ve,oe)+D[2]:C<64?ee+=x(le,ve,oe)+D[3]:ee+=v(le,ve,oe)+D[4],ee=ee|0,ee=E(ee,N[C]),ee=ee+K|0,Q=K,K=oe,oe=E(ve,10),ve=le,le=ee;ee=$[1]+re+oe|0,$[1]=$[2]+W+K|0,$[2]=$[3]+X+Q|0,$[3]=$[4]+V+le|0,$[4]=$[0]+H+ve|0,$[0]=ee},_doFinalize:function(){var w=this._data,T=w.words,C=this._nDataBytes*8,I=w.sigBytes*8;T[I>>>5]|=128<<24-I%32,T[(I+64>>>9<<4)+14]=(C<<8|C>>>24)&16711935|(C<<24|C>>>8)&4278255360,w.sigBytes=(T.length+1)*4,this._process();for(var k=this._hash,$=k.words,R=0;R<5;R++){var D=$[R];$[R]=(D<<8|D>>>24)&16711935|(D<<24|D>>>8)&4278255360}return k},clone:function(){var w=a.clone.call(this);return w._hash=this._hash.clone(),w}});function v(w,T,C){return w^T^C}function x(w,T,C){return w&T|~w&C}function g(w,T,C){return(w|~T)^C}function y(w,T,C){return w&C|T&~C}function _(w,T,C){return w^(T|~C)}function E(w,T){return w<<T|w>>>32-T}s.RIPEMD160=a._createHelper(m),s.HmacRIPEMD160=a._createHmacHelper(m)})(),n.RIPEMD160})})(Vp)),Vp.exports}
vendor: 11,599 bytes, line 8
8var Up={exports:{}},JH=Up.exports,TC;function K_(){return TC||(TC=1,(function(e,t){(function(n,r){e.exports=r(nn())})(JH,function(n){(function(){var r=n,s=r.lib,i=s.Base,o=r.enc,a=o.Utf8,l=r.algo;l.HMAC=i.extend({init:function(u,c){u=this._hasher=new u.init,typeof c=="string"&&(c=a.parse(c));var d=u.blockSize,f=d*4;c.sigBytes>f&&(c=u.finalize(c)),c.clamp();for(var h=this._oKey=c.clone(),p=this._iKey=c.clone(),m=h.words,v=p.words,x=0;x<d;x++)m[x]^=1549556828,v[x]^=909522486;h.sigBytes=p.sigBytes=f,this.reset()},reset:function(){var u=this._hasher;u.reset(),u.update(this._iKey)},update:function(u){return this._hasher.update(u),this},finalize:function(u){var c=this._hasher,d=c.finalize(u);c.reset();var f=c.finalize(this._oKey.clone().concat(d));return f}})})()})})(Up)),Up.exports}var jp={exports:{}},QH=jp.exports,CC;function eG(){return CC||(CC=1,(function(e,t){(function(n,r,s){e.exports=r(nn(),G_(),K_())})(QH,function(n){return(function(){var r=n,s=r.lib,i=s.Base,o=s.WordArray,a=r.algo,l=a.SHA256,u=a.HMAC,c=a.PBKDF2=i.extend({cfg:i.extend({keySize:128/32,hasher:l,iterations:25e4}),init:function(d){this.cfg=this.cfg.extend(d)},compute:function(d,f){for(var h=this.cfg,p=u.create(h.hasher,d),m=o.create(),v=o.create([1]),x=m.words,g=v.words,y=h.keySize,_=h.iterations;x.length<y;){var E=p.update(f).finalize(v);p.reset();for(var w=E.words,T=w.length,C=E,I=1;I<_;I++){C=p.finalize(C),p.reset();for(var k=C.words,$=0;$<T;$++)w[$]^=k[$]}m.concat(E),g[0]++}return m.sigBytes=y*4,m}});r.PBKDF2=function(d,f,h){return c.create(h).compute(d,f)}})(),n.PBKDF2})})(jp)),jp.exports}var zp={exports:{}},tG=zp.exports,AC;function Tl(){return AC||(AC=1,(function(e,t){(function(n,r,s){e.exports=r(nn(),c3(),K_())})(tG,function(n){return(function(){var r=n,s=r.lib,i=s.Base,o=s.WordArray,a=r.algo,l=a.MD5,u=a.EvpKDF=i.extend({cfg:i.extend({keySize:128/32,hasher:l,iterations:1}),init:function(c){this.cfg=this.cfg.extend(c)},compute:function(c,d){for(var f,h=this.cfg,p=h.hasher.create(),m=o.create(),v=m.words,x=h.keySize,g=h.iterations;v.length<x;){f&&p.update(f),f=p.update(c).finalize(d),p.reset();for(var y=1;y<g;y++)f=p.finalize(f),p.reset();m.concat(f)}return m.sigBytes=x*4,m}});r.EvpKDF=function(c,d,f){return u.create(f).compute(c,d)}})(),n.EvpKDF})})(zp)),zp.exports}var Hp={exports:{}},nG=Hp.exports,kC;function Mr(){return kC||(kC=1,(function(e,t){(function(n,r,s){e.exports=r(nn(),Tl())})(nG,function(n){n.lib.Cipher||(function(r){var s=n,i=s.lib,o=i.Base,a=i.WordArray,l=i.BufferedBlockAlgorithm,u=s.enc;u.Utf8;var c=u.Base64,d=s.algo,f=d.EvpKDF,h=i.Cipher=l.extend({cfg:o.extend(),createEncryptor:function(k,$){return this.create(this._ENC_XFORM_MODE,k,$)},createDecryptor:function(k,$){return this.create(this._DEC_XFORM_MODE,k,$)},init:function(k,$,R){this.cfg=this.cfg.extend(R),this._xformMode=k,this._key=$,this.reset()},reset:function(){l.reset.call(this),this._doReset()},process:function(k){return this._append(k),this._process()},finalize:function(k){k&&this._append(k);var $=this._doFinalize();return $},keySize:128/32,ivSize:128/32,_ENC_XFORM_MODE:1,_DEC_XFORM_MODE:2,_createHelper:(function(){function k($){return typeof $=="string"?I:w}return function($){return{encrypt:function(R,D,O){return k(D).encrypt($,R,D,O)},decrypt:function(R,D,O){return k(D).decrypt($,R,D,O)}}}})()});i.StreamCipher=h.extend({_doFinalize:function(){var k=this._process(!0);return k},blockSize:1});var p=s.mode={},m=i.BlockCipherMode=o.extend({createEncryptor:function(k,$){return this.Encryptor.create(k,$)},createDecryptor:function(k,$){return this.Decryptor.create(k,$)},init:function(k,$){this._cipher=k,this._iv=$}}),v=p.CBC=(function(){var k=m.extend();k.Encryptor=k.extend({processBlock:function(R,D){var O=this._cipher,B=O.blockSize;$.call(this,R,D,B),O.encryptBlock(R,D),this._prevBlock=R.slice(D,D+B)}}),k.Decryptor=k.extend({processBlock:function(R,D){var O=this._cipher,B=O.blockSize,U=R.slice(D,D+B);O.decryptBlock(R,D),$.call(this,R,D,B),this._prevBlock=U}});function $(R,D,O){var B,U=this._iv;U?(B=U,this._iv=r):B=this._prevBlock;for(var N=0;N<O;N++)R[D+N]^=B[N]}return k})(),x=s.pad={},g=x.Pkcs7={pad:function(k,$){for(var R=$*4,D=R-k.sigBytes%R,O=D<<24|D<<16|D<<8|D,B=[],U=0;U<D;U+=4)B.push(O);var N=a.create(B,D);k.concat(N)},unpad:function(k){var $=k.words[k.sigBytes-1>>>2]&255;k.sigBytes-=$}};i.BlockCipher=h.extend({cfg:h.cfg.extend({mode:v,padding:g}),reset:function(){var k;h.reset.call(this);var $=this.cfg,R=$.iv,D=$.mode;this._xformMode==this._ENC_XFORM_MODE?k=D.createEncryptor:(k=D.createDecryptor,this._minBufferSize=1),this._mode&&this._mode.__creator==k?this._mode.init(this,R&&R.words):(this._mode=k.call(D,this,R&&R.words),this._mode.__creator=k)},_doProcessBlock:function(k,$){this._mode.processBlock(k,$)},_doFinalize:function(){var k,$=this.cfg.padding;return this._xformMode==this._ENC_XFORM_MODE?($.pad(this._data,this.blockSize),k=this._process(!0)):(k=this._process(!0),$.unpad(k)),k},blockSize:128/32});var y=i.CipherParams=o.extend({init:function(k){this.mixIn(k)},toString:function(k){return(k||this.formatter).stringify(this)}}),_=s.format={},E=_.OpenSSL={stringify:function(k){var $,R=k.ciphertext,D=k.salt;return D?$=a.create([1398893684,1701076831]).concat(D).concat(R):$=R,$.toString(c)},parse:function(k){var $,R=c.parse(k),D=R.words;return D[0]==1398893684&&D[1]==1701076831&&($=a.create(D.slice(2,4)),D.splice(0,4),R.sigBytes-=16),y.create({ciphertext:R,salt:$})}},w=i.SerializableCipher=o.extend({cfg:o.extend({format:E}),encrypt:function(k,$,R,D){D=this.cfg.extend(D);var O=k.createEncryptor(R,D),B=O.finalize($),U=O.cfg;return y.create({ciphertext:B,key:R,iv:U.iv,algorithm:k,mode:U.mode,padding:U.padding,blockSize:k.blockSize,formatter:D.format})},decrypt:function(k,$,R,D){D=this.cfg.extend(D),$=this._parse($,D.format);var O=k.createDecryptor(R,D).finalize($.ciphertext);return O},_parse:function(k,$){return typeof k=="string"?$.parse(k,this):k}}),T=s.kdf={},C=T.OpenSSL={execute:function(k,$,R,D,O){if(D||(D=a.random(64/8)),O)var B=f.create({keySize:$+R,hasher:O}).compute(k,D);else var B=f.create({keySize:$+R}).compute(k,D);var U=a.create(B.words.slice($),R*4);return B.sigBytes=$*4,y.create({key:B,iv:U,salt:D})}},I=i.PasswordBasedCipher=w.extend({cfg:w.cfg.extend({kdf:C}),encrypt:function(k,$,R,D){D=this.cfg.extend(D);var O=D.kdf.execute(R,k.keySize,k.ivSize,D.salt,D.hasher);D.iv=O.iv;var B=w.encrypt.call(this,k,$,O.key,D);return B.mixIn(O),B},decrypt:function(k,$,R,D){D=this.cfg.extend(D),$=this._parse($,D.format);var O=D.kdf.execute(R,k.keySize,k.ivSize,$.salt,D.hasher);D.iv=O.iv;var B=w.decrypt.call(this,k,$,O.key,D);return B}})})()})})(Hp)),Hp.exports}var Gp={exports:{}},rG=Gp.exports,IC;function sG(){return IC||(IC=1,(function(e,t){(function(n,r,s){e.exports=r(nn(),Mr())})(rG,function(n){return n.mode.CFB=(function(){var r=n.lib.BlockCipherMode.extend();r.Encryptor=r.extend({processBlock:function(i,o){var a=this._cipher,l=a.blockSize;s.call(this,i,o,l,a),this._prevBlock=i.slice(o,o+l)}}),r.Decryptor=r.extend({processBlock:function(i,o){var a=this._cipher,l=a.blockSize,u=i.slice(o,o+l);s.call(this,i,o,l,a),this._prevBlock=u}});function s(i,o,a,l){var u,c=this._iv;c?(u=c.slice(0),this._iv=void 0):u=this._prevBlock,l.encryptBlock(u,0);for(var d=0;d<a;d++)i[o+d]^=u[d]}return r})(),n.mode.CFB})})(Gp)),Gp.exports}var Kp={exports:{}},iG=Kp.exports,LC;function oG(){return LC||(LC=1,(function(e,t){(function(n,r,s){e.exports=r(nn(),Mr())})(iG,function(n){return n.mode.CTR=(function(){var r=n.lib.BlockCipherMode.extend(),s=r.Encryptor=r.extend({processBlock:function(i,o){var a=this._cipher,l=a.blockSize,u=this._iv,c=this._counter;u&&(c=this._counter=u.slice(0),this._iv=void 0);var d=c.slice(0);a.encryptBlock(d,0),c[l-1]=c[l-1]+1|0;for(var f=0;f<l;f++)i[o+f]^=d[f]}});return r.Decryptor=s,r})(),n.mode.CTR})})(Kp)),Kp.exports}var Wp={exports:{}},aG=Wp.exports,DC;function lG(){return DC||(DC=1,(function(e,t){(function(n,r,s){e.exports=r(nn(),Mr())})(aG,function(n){return n.mode.CTRGladman=(function(){var r=n.lib.BlockCipherMode.extend();function s(a){if((a>>24&255)===255){var l=a>>16&255,u=a>>8&255,c=a&255;l===255?(l=0,u===255?(u=0,c===255?c=0:++c):++u):++l,a=0,a+=l<<16,a+=u<<8,a+=c}else a+=1<<24;return a}function i(a){return(a[0]=s(a[0]))===0&&(a[1]=s(a[1])),a}var o=r.Encryptor=r.extend({processBlock:function(a,l){var u=this._cipher,c=u.blockSize,d=this._iv,f=this._counter;d&&(f=this._counter=d.slice(0),this._iv=void 0),i(f);var h=f.slice(0);u.encryptBlock(h,0);for(var p=0;p<c;p++)a[l+p]^=h[p]}});return r.Decryptor=o,r})(),n.mode.CTRGladman})})(Wp)),Wp.exports}var qp={exports:{}},uG=qp.exports,PC;function cG(){return PC||(PC=1,(function(e,t){(function(n,r,s){e.exports=r(nn(),Mr())})(uG,function(n){return n.mode.OFB=(function(){var r=n.lib.BlockCipherMode.extend(),s=r.Encryptor=r.extend({processBlock:function(i,o){var a=this._cipher,l=a.blockSize,u=this._iv,c=this._keystream;u&&(c=this._keystream=u.slice(0),this._iv=void 0),a.encryptBlock(c,0);for(var d=0;d<l;d++)i[o+d]^=c[d]}});return r.Decryptor=s,r})(),n.mode.OFB})})(qp)),qp.exports}var Yp={exports:{}},dG=Yp.exports,RC;function fG(){return RC||(RC=1,(function(e,t){(function(n,r,s){e.exports=r(nn(),Mr())})(dG,function(n){return n.mode.ECB=(function(){var r=n.lib.BlockCipherMode.extend();return r.Encryptor=r.extend({processBlock:function(s,i){this._cipher.encryptBlock(s,i)}}),r.Decryptor=r.extend({processBlock:function(s,i){this._cipher.decryptBlock(s,i)}}),r})(),n.mode.ECB})})(Yp)),Yp.exports}var Xp={exports:{}},hG=Xp.exports,OC;function pG(){return OC||(OC=1,(function(e,t){(function(n,r,s){e.exports=r(nn(),Mr())})(hG,function(n){return n.pad.AnsiX923={pad:function(r,s){var i=r.sigBytes,o=s*4,a=o-i%o,l=i+a-1;r.clamp(),r.words[l>>>2]|=a<<24-l%4*8,r.sigBytes+=a},unpad:function(r){var s=r.words[r.sigBytes-1>>>2]&255;r.sigBytes-=s}},n.pad.Ansix923})})(Xp)),Xp.exports}var Zp={exports:{}},mG=Zp.exports,$C;function vG(){return $C||($C=1,(function(e,t){(function(n,r,s){e.exports=r(nn(),Mr())})(mG,function(n){return n.pad.Iso10126={pad:function(r,s){var i=s*4,o=i-r.sigBytes%i;r.concat(n.lib.WordArray.random(o-1)).concat(n.lib.WordArray.create([o<<24],1))},unpad:function(r){var s=r.words[r.sigBytes-1>>>2]&255;r.sigBytes-=s}},n.pad.Iso10126})})(Zp)),Zp.exports}var Jp={exports:{}},gG=Jp.exports,MC;function yG(){return MC||(MC=1,(function(e,t){(function(n,r,s){e.exports=r(nn(),Mr())})(gG,function(n){return n.pad.Iso97971={pad:function(r,s){r.concat(n.lib.WordArray.create([2147483648],1)),n.pad.ZeroPadding.pad(r,s)},unpad:function(r){n.pad.ZeroPadding.unpad(r),r.sigBytes--}},n.pad.Iso97971})})(Jp)),Jp.exports}var Qp={exports:{}},xG=Qp.exports,FC;function bG(){return FC||(FC=1,(function(e,t){(function(n,r,s){e.exports=r(nn(),Mr())})(xG,function(n){return n.pad.ZeroPadding={pad:function(r,s){var i=s*4;r.clamp(),r.sigBytes+=i-(r.sigBytes%i||i)},unpad:function(r){for(var s=r.words,i=r.sigBytes-1,i=r.sigBytes-1;i>=0;i--)if(s[i>>>2]>>>24-i%4*8&255){r.sigBytes=i+1;break}}},n.pad.ZeroPadding})})(Qp)),Qp.exports}var em={exports:{}},_G=em.exports,BC;function SG(){return BC||(BC=1,(function(e,t){(function(n,r,s){e.exports=r(nn(),Mr())})(_G,function(n){return n.pad.NoPadding={pad:function(){},unpad:function(){}},n.pad.NoPadding})})(em)),em.exports}var tm={exports:{}},EG=tm.exports,NC;function wG(){return NC||(NC=1,(function(e,t){(function(n,r,s){e.exports=r(nn(),Mr())})(EG,function(n){return(function(r){var s=n,i=s.lib,o=i.CipherParams,a=s.enc,l=a.Hex,u=s.format;u.Hex={stringify:function(c){return c.ciphertext.toString(l)},parse:function(c){var d=l.parse(c);return o.create({ciphertext:d})}}})(),n.format.Hex}
vendor: 2,919 bytes, line 8
8)})(tm)),tm.exports}var nm={exports:{}},TG=nm.exports,VC;function CG(){return VC||(VC=1,(function(e,t){(function(n,r,s){e.exports=r(nn(),Ru(),Ou(),Tl(),Mr())})(TG,function(n){return(function(){var r=n,s=r.lib,i=s.BlockCipher,o=r.algo,a=[],l=[],u=[],c=[],d=[],f=[],h=[],p=[],m=[],v=[];(function(){for(var y=[],_=0;_<256;_++)_<128?y[_]=_<<1:y[_]=_<<1^283;for(var E=0,w=0,_=0;_<256;_++){var T=w^w<<1^w<<2^w<<3^w<<4;T=T>>>8^T&255^99,a[E]=T,l[T]=E;var C=y[E],I=y[C],k=y[I],$=y[T]*257^T*16843008;u[E]=$<<24|$>>>8,c[E]=$<<16|$>>>16,d[E]=$<<8|$>>>24,f[E]=$;var $=k*16843009^I*65537^C*257^E*16843008;h[T]=$<<24|$>>>8,p[T]=$<<16|$>>>16,m[T]=$<<8|$>>>24,v[T]=$,E?(E=C^y[y[y[k^C]]],w^=y[y[w]]):E=w=1}})();var x=[0,1,2,4,8,16,32,64,128,27,54],g=o.AES=i.extend({_doReset:function(){var y;if(!(this._nRounds&&this._keyPriorReset===this._key)){for(var _=this._keyPriorReset=this._key,E=_.words,w=_.sigBytes/4,T=this._nRounds=w+6,C=(T+1)*4,I=this._keySchedule=[],k=0;k<C;k++)k<w?I[k]=E[k]:(y=I[k-1],k%w?w>6&&k%w==4&&(y=a[y>>>24]<<24|a[y>>>16&255]<<16|a[y>>>8&255]<<8|a[y&255]):(y=y<<8|y>>>24,y=a[y>>>24]<<24|a[y>>>16&255]<<16|a[y>>>8&255]<<8|a[y&255],y^=x[k/w|0]<<24),I[k]=I[k-w]^y);for(var $=this._invKeySchedule=[],R=0;R<C;R++){var k=C-R;if(R%4)var y=I[k];else var y=I[k-4];R<4||k<=4?$[R]=y:$[R]=h[a[y>>>24]]^p[a[y>>>16&255]]^m[a[y>>>8&255]]^v[a[y&255]]}}},encryptBlock:function(y,_){this._doCryptBlock(y,_,this._keySchedule,u,c,d,f,a)},decryptBlock:function(y,_){var E=y[_+1];y[_+1]=y[_+3],y[_+3]=E,this._doCryptBlock(y,_,this._invKeySchedule,h,p,m,v,l);var E=y[_+1];y[_+1]=y[_+3],y[_+3]=E},_doCryptBlock:function(y,_,E,w,T,C,I,k){for(var $=this._nRounds,R=y[_]^E[0],D=y[_+1]^E[1],O=y[_+2]^E[2],B=y[_+3]^E[3],U=4,N=1;N<$;N++){var V=w[R>>>24]^T[D>>>16&255]^C[O>>>8&255]^I[B&255]^E[U++],H=w[D>>>24]^T[O>>>16&255]^C[B>>>8&255]^I[R&255]^E[U++],re=w[O>>>24]^T[B>>>16&255]^C[R>>>8&255]^I[D&255]^E[U++],W=w[B>>>24]^T[R>>>16&255]^C[D>>>8&255]^I[O&255]^E[U++];R=V,D=H,O=re,B=W}var V=(k[R>>>24]<<24|k[D>>>16&255]<<16|k[O>>>8&255]<<8|k[B&255])^E[U++],H=(k[D>>>24]<<24|k[O>>>16&255]<<16|k[B>>>8&255]<<8|k[R&255])^E[U++],re=(k[O>>>24]<<24|k[B>>>16&255]<<16|k[R>>>8&255]<<8|k[D&255])^E[U++],W=(k[B>>>24]<<24|k[R>>>16&255]<<16|k[D>>>8&255]<<8|k[O&255])^E[U++];y[_]=V,y[_+1]=H,y[_+2]=re,y[_+3]=W},keySize:256/32});r.AES=i._createHelper(g)})(),n.AES})})(nm)),nm.exports}var rm={exports:{}},AG=rm.exports,UC;function kG(){return UC||(UC=1,(function(e,t){(function(n,r,s){e.exports=r(nn(),Ru(),Ou(),Tl(),Mr())})(AG,function(n){return(function(){var r=n,s=r.lib,i=s.WordArray,o=s.BlockCipher,a=r.algo,l=[57,49,41,33,25,17,9,1,58,50,42,34,26,18,10,2,59,51,43,35,27,19,11,3,60,52,44,36,63,55,47,39,31,23,15,7,62,54,46,38,30,22,14,6,61,53,45,37,29,21,13,5,28,20,12,4],u=[14,17,11,24,1,5,3,28,15,6,21,10,23,19,12,4,26,8,16,7,27,20,13,2,41,52,31,37,47,55,30,40,51,45,33,48,44,49,39,56,34,53,46,42,50,36,29,32],c=[1,2,4,6,8,10,12,14,15,17,19,21,23,25,27,28],d
vendor: 7,629 bytes, line 8
8=[{0:8421888,268435456:32768,536870912:8421378,805306368:2,1073741824:512,1342177280:8421890,1610612736:8389122,1879048192:8388608,2147483648:514,2415919104:8389120,2684354560:33280,2952790016:8421376,3221225472:32770,3489660928:8388610,3758096384:0,4026531840:33282,134217728:0,402653184:8421890,671088640:33282,939524096:32768,1207959552:8421888,1476395008:512,1744830464:8421378,2013265920:2,2281701376:8389120,2550136832:33280,2818572288:8421376,3087007744:8389122,3355443200:8388610,3623878656:32770,3892314112:514,4160749568:8388608,1:32768,268435457:2,536870913:8421888,805306369:8388608,1073741825:8421378,1342177281:33280,1610612737:512,1879048193:8389122,2147483649:8421890,2415919105:8421376,2684354561:8388610,2952790017:33282,3221225473:514,3489660929:8389120,3758096385:32770,4026531841:0,134217729:8421890,402653185:8421376,671088641:8388608,939524097:512,1207959553:32768,1476395009:8388610,1744830465:2,2013265921:33282,2281701377:32770,2550136833:8389122,2818572289:514,3087007745:8421888,3355443201:8389120,3623878657:0,3892314113:33280,4160749569:8421378},{0:1074282512,16777216:16384,33554432:524288,50331648:1074266128,67108864:1073741840,83886080:1074282496,100663296:1073758208,117440512:16,134217728:540672,150994944:1073758224,167772160:1073741824,184549376:540688,201326592:524304,218103808:0,234881024:16400,251658240:1074266112,8388608:1073758208,25165824:540688,41943040:16,58720256:1073758224,75497472:1074282512,92274688:1073741824,109051904:524288,125829120:1074266128,142606336:524304,159383552:0,176160768:16384,192937984:1074266112,209715200:1073741840,226492416:540672,243269632:1074282496,260046848:16400,268435456:0,285212672:1074266128,301989888:1073758224,318767104:1074282496,335544320:1074266112,352321536:16,369098752:540688,385875968:16384,402653184:16400,419430400:524288,436207616:524304,452984832:1073741840,469762048:540672,486539264:1073758208,503316480:1073741824,520093696:1074282512,276824064:540688,293601280:524288,310378496:1074266112,327155712:16384,343932928:1073758208,360710144:1074282512,377487360:16,394264576:1073741824,411041792:1074282496,427819008:1073741840,444596224:1073758224,461373440:524304,478150656:0,494927872:16400,511705088:1074266128,528482304:540672},{0:260,1048576:0,2097152:67109120,3145728:65796,4194304:65540,5242880:67108868,6291456:67174660,7340032:67174400,8388608:67108864,9437184:67174656,10485760:65792,11534336:67174404,12582912:67109124,13631488:65536,14680064:4,15728640:256,524288:67174656,1572864:67174404,2621440:0,3670016:67109120,4718592:67108868,5767168:65536,6815744:65540,7864320:260,8912896:4,9961472:256,11010048:67174400,12058624:65796,13107200:65792,14155776:67109124,15204352:67174660,16252928:67108864,16777216:67174656,17825792:65540,18874368:65536,19922944:67109120,20971520:256,22020096:67174660,23068672:67108868,24117248:0,25165824:67109124,26214400:67108864,27262976:4,28311552:65792,29360128:67174400,30408704:260,31457280:65796,32505856:67174404,17301504:67108864,18350080:260,19398656:67174656,20447232:0,21495808:65540,22544384:67109120,23592960:256,24641536:67174404,25690112:65536,26738688:67174660,27787264:65796,28835840:67108868,29884416:67109124,30932992:67174400,31981568:4,33030144:65792},{0:2151682048,65536:2147487808,131072:4198464,196608:2151677952,262144:0,327680:4198400,393216:2147483712,458752:4194368,524288:2147483648,589824:4194304,655360:64,720896:2147487744,786432:2151678016,851968:4160,917504:4096,983040:2151682112,32768:2147487808,98304:64,163840:2151678016,229376:2147487744,294912:4198400,360448:2151682112,425984:0,491520:2151677952,557056:4096,622592:2151682048,688128:4194304,753664:4160,819200:2147483648,884736:4194368,950272:4198464,1015808:2147483712,1048576:4194368,1114112:4198400,1179648:2147483712,1245184:0,1310720:4160,1376256:2151678016,1441792:2151682048,1507328:2147487808,1572864:2151682112,1638400:2147483648,1703936:2151677952,1769472:4198464,1835008:2147487744,1900544:4194304,1966080:64,2031616:4096,1081344:2151677952,1146880:2151682112,1212416:0,1277952:4198400,1343488:4194368,1409024:2147483648,1474560:2147487808,1540096:64,1605632:2147483712,1671168:4096,1736704:2147487744,1802240:2151678016,1867776:4160,1933312:2151682048,1998848:4194304,2064384:4198464},{0:128,4096:17039360,8192:262144,12288:536870912,16384:537133184,20480:16777344,24576:553648256,28672:262272,32768:16777216,36864:537133056,40960:536871040,45056:553910400,49152:553910272,53248:0,57344:17039488,61440:553648128,2048:17039488,6144:553648256,10240:128,14336:17039360,18432:262144,22528:537133184,26624:553910272,30720:536870912,34816:537133056,38912:0,43008:553910400,47104:16777344,51200:536871040,55296:553648128,59392:16777216,63488:262272,65536:262144,69632:128,73728:536870912,77824:553648256,81920:16777344,86016:553910272,90112:537133184,94208:16777216,98304:553910400,102400:553648128,106496:17039360,110592:537133056,114688:262272,118784:536871040,122880:0,126976:17039488,67584:553648256,71680:16777216,75776:17039360,79872:537133184,83968:536870912,88064:17039488,92160:128,96256:553910272,100352:262272,104448:553910400,108544:0,112640:553648128,116736:16777344,120832:262144,124928:537133056,129024:536871040},{0:268435464,256:8192,512:270532608,768:270540808,1024:268443648,1280:2097152,1536:2097160,1792:268435456,2048:0,2304:268443656,2560:2105344,2816:8,3072:270532616,3328:2105352,3584:8200,3840:270540800,128:270532608,384:270540808,640:8,896:2097152,1152:2105352,1408:268435464,1664:268443648,1920:8200,2176:2097160,2432:8192,2688:268443656,2944:270532616,3200:0,3456:270540800,3712:2105344,3968:268435456,4096:268443648,4352:270532616,4608:270540808,4864:8200,5120:2097152,5376:268435456,5632:268435464,5888:2105344,6144:2105352,6400:0,6656:8,6912:270532608,7168:8192,7424:268443656,7680:270540800,7936:2097160,4224:8,4480:2105344,4736:2097152,4992:268435464,5248:268443648,5504:8200,5760:270540808,6016:270532608,6272:270540800,6528:270532616,6784:8192,7040:2105352,7296:2097160,7552:0,7808:268435456,8064:268443656},{0:1048576,16:33555457,32:1024,48:1049601,64:34604033,80:0,96:1,112:34603009,128:33555456,144:1048577,160:33554433,176:34604032,192:34603008,208:1025,224:1049600,240:33554432,8:34603009,24:0,40:33555457,56:34604032,72:1048576,88:33554433,104:33554432,120:1025,136:1049601,152:33555456,168:34603008,184:1048577,200:1024,216:34604033,232:1,248:1049600,256:33554432,272:1048576,288:33555457,304:34603009,320:1048577,336:33555456,352:34604032,368:1049601,384:1025,400:34604033,416:1049600,432:1,448:0,464:34603008,480:33554433,496:1024,264:1049600,280:33555457,296:34603009,312:1,328:33554432,344:1048576,360:1025,376:34604032,392:33554433,408:34603008,424:0,440:34604033,456:1049601,472:1024,488:33555456,504:1048577},{0:134219808,1:131072,2:134217728,3:32,4:131104,5:134350880,6:134350848,7:2048,8:134348800,9:134219776,10:133120,11:134348832,12:2080,13:0,14:134217760,15:133152,2147483648:2048,2147483649:134350880,2147483650:134219808,2147483651:134217728,2147483652:134348800,2147483653:133120,2147483654:133152,2147483655:32,2147483656:134217760,2147483657:2080,2147483658:131104,2147483659:134350848,2147483660:0,2147483661:134348832,2147483662:134219776,2147483663:131072,16:133152,17:134350848,18:32,19:2048,20:134219776,21:134217760,22:134348832,23:131072,24:0,25:131104,26:134348800,27:134219808,28:134350880,29:133120,30:2080,31:134217728,2147483664:131072,2147483665:2048,2147483666:134348832,2147483667:133152,2147483668:32,2147483669:134348800,2147483670:134217728,2147483671:134219808,2147483672:134350880,2147483673:134217760,2147483674:134219776,2147483675:0,2147483676:133120,2147483677:2080,2147483678:131104,2147483679:134350848}],
vendor: 4,981 bytes, line 8
8f=[4160749569,528482304,33030144,2064384,129024,8064,504,2147483679],h=a.DES=o.extend({_doReset:function(){for(var x=this._key,g=x.words,y=[],_=0;_<56;_++){var E=l[_]-1;y[_]=g[E>>>5]>>>31-E%32&1}for(var w=this._subKeys=[],T=0;T<16;T++){for(var C=w[T]=[],I=c[T],_=0;_<24;_++)C[_/6|0]|=y[(u[_]-1+I)%28]<<31-_%6,C[4+(_/6|0)]|=y[28+(u[_+24]-1+I)%28]<<31-_%6;C[0]=C[0]<<1|C[0]>>>31;for(var _=1;_<7;_++)C[_]=C[_]>>>(_-1)*4+3;C[7]=C[7]<<5|C[7]>>>27}for(var k=this._invSubKeys=[],_=0;_<16;_++)k[_]=w[15-_]},encryptBlock:function(x,g){this._doCryptBlock(x,g,this._subKeys)},decryptBlock:function(x,g){this._doCryptBlock(x,g,this._invSubKeys)},_doCryptBlock:function(x,g,y){this._lBlock=x[g],this._rBlock=x[g+1],p.call(this,4,252645135),p.call(this,16,65535),m.call(this,2,858993459),m.call(this,8,16711935),p.call(this,1,1431655765);for(var _=0;_<16;_++){for(var E=y[_],w=this._lBlock,T=this._rBlock,C=0,I=0;I<8;I++)C|=d[I][((T^E[I])&f[I])>>>0];this._lBlock=T,this._rBlock=w^C}var k=this._lBlock;this._lBlock=this._rBlock,this._rBlock=k,p.call(this,1,1431655765),m.call(this,8,16711935),m.call(this,2,858993459),p.call(this,16,65535),p.call(this,4,252645135),x[g]=this._lBlock,x[g+1]=this._rBlock},keySize:64/32,ivSize:64/32,blockSize:64/32});function p(x,g){var y=(this._lBlock>>>x^this._rBlock)&g;this._rBlock^=y,this._lBlock^=y<<x}function m(x,g){var y=(this._rBlock>>>x^this._lBlock)&g;this._lBlock^=y,this._rBlock^=y<<x}r.DES=o._createHelper(h);var v=a.TripleDES=o.extend({_doReset:function(){var x=this._key,g=x.words;if(g.length!==2&&g.length!==4&&g.length<6)throw new Error("Invalid key length - 3DES requires the key length to be 64, 128, 192 or >192.");var y=g.slice(0,2),_=g.length<4?g.slice(0,2):g.slice(2,4),E=g.length<6?g.slice(0,2):g.slice(4,6);this._des1=h.createEncryptor(i.create(y)),this._des2=h.createEncryptor(i.create(_)),this._des3=h.createEncryptor(i.create(E))},encryptBlock:function(x,g){this._des1.encryptBlock(x,g),this._des2.decryptBlock(x,g),this._des3.encryptBlock(x,g)},decryptBlock:function(x,g){this._des3.decryptBlock(x,g),this._des2.encryptBlock(x,g),this._des1.decryptBlock(x,g)},keySize:192/32,ivSize:64/32,blockSize:64/32});r.TripleDES=o._createHelper(v)})(),n.TripleDES})})(rm)),rm.exports}var sm={exports:{}},IG=sm.exports,jC;function LG(){return jC||(jC=1,(function(e,t){(function(n,r,s){e.exports=r(nn(),Ru(),Ou(),Tl(),Mr())})(IG,function(n){return(function(){var r=n,s=r.lib,i=s.StreamCipher,o=r.algo,a=o.RC4=i.extend({_doReset:function(){for(var c=this._key,d=c.words,f=c.sigBytes,h=this._S=[],p=0;p<256;p++)h[p]=p;for(var p=0,m=0;p<256;p++){var v=p%f,x=d[v>>>2]>>>24-v%4*8&255;m=(m+h[p]+x)%256;var g=h[p];h[p]=h[m],h[m]=g}this._i=this._j=0},_doProcessBlock:function(c,d){c[d]^=l.call(this)},keySize:256/32,ivSize:0});function l(){for(var c=this._S,d=this._i,f=this._j,h=0,p=0;p<4;p++){d=(d+1)%256,f=(f+c[d])%256;var m=c[d];c[d]=c[f],c[f]=m,h|=c[(c[d]+c[f])%256]<<24-p*8}return this._i=d,this._j=f,h}r.RC4=i._createHelper(a);var u=o.RC4Drop=a.extend({cfg:a.cfg.extend({drop:192}),_doReset:function(){a._doReset.call(this);for(var c=this.cfg.drop;c>0;c--)l.call(this)}});r.RC4Drop=i._createHelper(u)})(),n.RC4})})(sm)),sm.exports}var im={exports:{}},DG=im.exports,zC;function PG(){return zC||(zC=1,(function(e,t){(function(n,r,s){e.exports=r(nn(),Ru(),Ou(),Tl(),Mr())})(DG,function(n){return(function(){var r=n,s=r.lib,i=s.StreamCipher,o=r.algo,a=[],l=[],u=[],c=o.Rabbit=i.extend({_doReset:function(){for(var f=this._key.words,h=this.cfg.iv,p=0;p<4;p++)f[p]=(f[p]<<8|f[p]>>>24)&16711935|(f[p]<<24|f[p]>>>8)&4278255360;var m=this._X=[f[0],f[3]<<16|f[2]>>>16,f[1],f[0]<<16|f[3]>>>16,f[2],f[1]<<16|f[0]>>>16,f[3],f[2]<<16|f[1]>>>16],v=this._C=[f[2]<<16|f[2]>>>16,f[0]&4294901760|f[1]&65535,f[3]<<16|f[3]>>>16,f[1]&4294901760|f[2]&65535,f[0]<<16|f[0]>>>16,f[2]&4294901760|f[3]&65535,f[1]<<16|f[1]>>>16,f[3]&4294901760|f[0]&65535];this._b=0;for(var p=0;p<4;p++)d.call(this);for(var p=0;p<8;p++)v[p]^=m[p+4&7];if(h){var x=h.words,g=x[0],y=x[1],_=(g<<8|g>>>24)&16711935|(g<<24|g>>>8)&4278255360,E=(y<<8|y>>>24)&16711935|(y<<24|y>>>8)&4278255360,w=_>>>16|E&4294901760,T=E<<16|_&65535;v[0]^=_,v[1]^=w,v[2]^=E,v[3]^=T,v[4]^=_,v[5]^=w,v[6]^=E,v[7]^=T;for(var p=0;p<4;p++)d.call(this)}},_doProcessBlock:function(f,h){var p=this._X;d.call(this),a[0]=p[0]^p[5]>>>16^p[3]<<16,a[1]=p[2]^p[7]>>>16^p[5]<<16,a[2]=p[4]^p[1]>>>16^p[7]<<16,a[3]=p[6]^p[3]>>>16^p[1]<<16;for(var m=0;m<4;m++)a[m]=(a[m]<<8|a[m]>>>24)&16711935|(a[m]<<24|a[m]>>>8)&4278255360,f[h+m]^=a[m]},blockSize:128/32,ivSize:64/32});function d(){for(var f=this._X,h=this._C,p=0;p<8;p++)l[p]=h[p];h[0]=h[0]+1295307597+this._b|0,h[1]=h[1]+3545052371+(h[0]>>>0<l[0]>>>0?1:0)|0,h[2]=h[2]+886263092+(h[1]>>>0<l[1]>>>0?1:0)|0,h[3]=h[3]+1295307597+(h[2]>>>0<l[2]>>>0?1:0)|0,h[4]=h[4]+3545052371+(h[3]>>>0<l[3]>>>0?1:0)|0,h[5]=h[5]+886263092+(h[4]>>>0<l[4]>>>0?1:0)|0,h[6]=h[6]+1295307597+(h[5]>>>0<l[5]>>>0?1:0)|0,h[7]=h[7]+3545052371+(h[6]>>>0<l[6]>>>0?1:0)|0,this._b=h[7]>>>0<l[7]>>>0?1:0;for(var p=0;p<8;
vendor: 3,251 bytes, line 8
8p++){var m=f[p]+h[p],v=m&65535,x=m>>>16,g=((v*v>>>17)+v*x>>>15)+x*x,y=((m&4294901760)*m|0)+((m&65535)*m|0);u[p]=g^y}f[0]=u[0]+(u[7]<<16|u[7]>>>16)+(u[6]<<16|u[6]>>>16)|0,f[1]=u[1]+(u[0]<<8|u[0]>>>24)+u[7]|0,f[2]=u[2]+(u[1]<<16|u[1]>>>16)+(u[0]<<16|u[0]>>>16)|0,f[3]=u[3]+(u[2]<<8|u[2]>>>24)+u[1]|0,f[4]=u[4]+(u[3]<<16|u[3]>>>16)+(u[2]<<16|u[2]>>>16)|0,f[5]=u[5]+(u[4]<<8|u[4]>>>24)+u[3]|0,f[6]=u[6]+(u[5]<<16|u[5]>>>16)+(u[4]<<16|u[4]>>>16)|0,f[7]=u[7]+(u[6]<<8|u[6]>>>24)+u[5]|0}r.Rabbit=i._createHelper(c)})(),n.Rabbit})})(im)),im.exports}var om={exports:{}},RG=om.exports,HC;function OG(){return HC||(HC=1,(function(e,t){(function(n,r,s){e.exports=r(nn(),Ru(),Ou(),Tl(),Mr())})(RG,function(n){return(function(){var r=n,s=r.lib,i=s.StreamCipher,o=r.algo,a=[],l=[],u=[],c=o.RabbitLegacy=i.extend({_doReset:function(){var f=this._key.words,h=this.cfg.iv,p=this._X=[f[0],f[3]<<16|f[2]>>>16,f[1],f[0]<<16|f[3]>>>16,f[2],f[1]<<16|f[0]>>>16,f[3],f[2]<<16|f[1]>>>16],m=this._C=[f[2]<<16|f[2]>>>16,f[0]&4294901760|f[1]&65535,f[3]<<16|f[3]>>>16,f[1]&4294901760|f[2]&65535,f[0]<<16|f[0]>>>16,f[2]&4294901760|f[3]&65535,f[1]<<16|f[1]>>>16,f[3]&4294901760|f[0]&65535];this._b=0;for(var v=0;v<4;v++)d.call(this);for(var v=0;v<8;v++)m[v]^=p[v+4&7];if(h){var x=h.words,g=x[0],y=x[1],_=(g<<8|g>>>24)&16711935|(g<<24|g>>>8)&4278255360,E=(y<<8|y>>>24)&16711935|(y<<24|y>>>8)&4278255360,w=_>>>16|E&4294901760,T=E<<16|_&65535;m[0]^=_,m[1]^=w,m[2]^=E,m[3]^=T,m[4]^=_,m[5]^=w,m[6]^=E,m[7]^=T;for(var v=0;v<4;v++)d.call(this)}},_doProcessBlock:function(f,h){var p=this._X;d.call(this),a[0]=p[0]^p[5]>>>16^p[3]<<16,a[1]=p[2]^p[7]>>>16^p[5]<<16,a[2]=p[4]^p[1]>>>16^p[7]<<16,a[3]=p[6]^p[3]>>>16^p[1]<<16;for(var m=0;m<4;m++)a[m]=(a[m]<<8|a[m]>>>24)&16711935|(a[m]<<24|a[m]>>>8)&4278255360,f[h+m]^=a[m]},blockSize:128/32,ivSize:64/32});function d(){for(var f=this._X,h=this._C,p=0;p<8;p++)l[p]=h[p];h[0]=h[0]+1295307597+this._b|0,h[1]=h[1]+3545052371+(h[0]>>>0<l[0]>>>0?1:0)|0,h[2]=h[2]+886263092+(h[1]>>>0<l[1]>>>0?1:0)|0,h[3]=h[3]+1295307597+(h[2]>>>0<l[2]>>>0?1:0)|0,h[4]=h[4]+3545052371+(h[3]>>>0<l[3]>>>0?1:0)|0,h[5]=h[5]+886263092+(h[4]>>>0<l[4]>>>0?1:0)|0,h[6]=h[6]+1295307597+(h[5]>>>0<l[5]>>>0?1:0)|0,h[7]=h[7]+3545052371+(h[6]>>>0<l[6]>>>0?1:0)|0,this._b=h[7]>>>0<l[7]>>>0?1:0;for(var p=0;p<8;p++){var m=f[p]+h[p],v=m&65535,x=m>>>16,g=((v*v>>>17)+v*x>>>15)+x*x,y=((m&4294901760)*m|0)+((m&65535)*m|0);u[p]=g^y}f[0]=u[0]+(u[7]<<16|u[7]>>>16)+(u[6]<<16|u[6]>>>16)|0,f[1]=u[1]+(u[0]<<8|u[0]>>>24)+u[7]|0,f[2]=u[2]+(u[1]<<16|u[1]>>>16)+(u[0]<<16|u[0]>>>16)|0,f[3]=u[3]+(u[2]<<8|u[2]>>>24)+u[1]|0,f[4]=u[4]+(u[3]<<16|u[3]>>>16)+(u[2]<<16|u[2]>>>16)|0,f[5]=u[5]+(u[4]<<8|u[4]>>>24)+u[3]|0,f[6]=u[6]+(u[5]<<16|u[5]>>>16)+(u[4]<<16|u[4]>>>16)|0,f[7]=u[7]+(u[6]<<8|u[6]>>>24)+u[5]|0}r.RabbitLegacy=i._createHelper(c)})(),n.RabbitLegacy})})(om)),om.exports}var am={exports:{}},$G=am.exports,GC;function MG(){return GC||(GC=1,(function(e,t){(function(n,r,s){e.exports=r(nn(),Ru(),Ou(),Tl(),Mr())})($G,function(n){return(function(){var r=n,s=r.lib,i=s.BlockCipher,o=r.algo;const a=16,l=[608135816,2242054355,320440878,57701188,2752067618,698298832,137296536,3964562569,1160258022,953160567,3193202383,887688300,3232508343,3380367581,1065670069,3041331479,2450970073,2306472731],u
vendor: 11,033 bytes, line 8
8=[[3509652390,2564797868,805139163,3491422135,3101798381,1780907670,3128725573,4046225305,614570311,3012652279,134345442,2240740374,1667834072,1901547113,2757295779,4103290238,227898511,1921955416,1904987480,2182433518,2069144605,3260701109,2620446009,720527379,3318853667,677414384,3393288472,3101374703,2390351024,1614419982,1822297739,2954791486,3608508353,3174124327,2024746970,1432378464,3864339955,2857741204,1464375394,1676153920,1439316330,715854006,3033291828,289532110,2706671279,2087905683,3018724369,1668267050,732546397,1947742710,3462151702,2609353502,2950085171,1814351708,2050118529,680887927,999245976,1800124847,3300911131,1713906067,1641548236,4213287313,1216130144,1575780402,4018429277,3917837745,3693486850,3949271944,596196993,3549867205,258830323,2213823033,772490370,2760122372,1774776394,2652871518,566650946,4142492826,1728879713,2882767088,1783734482,3629395816,2517608232,2874225571,1861159788,326777828,3124490320,2130389656,2716951837,967770486,1724537150,2185432712,2364442137,1164943284,2105845187,998989502,3765401048,2244026483,1075463327,1455516326,1322494562,910128902,469688178,1117454909,936433444,3490320968,3675253459,1240580251,122909385,2157517691,634681816,4142456567,3825094682,3061402683,2540495037,79693498,3249098678,1084186820,1583128258,426386531,1761308591,1047286709,322548459,995290223,1845252383,2603652396,3431023940,2942221577,3202600964,3727903485,1712269319,422464435,3234572375,1170764815,3523960633,3117677531,1434042557,442511882,3600875718,1076654713,1738483198,4213154764,2393238008,3677496056,1014306527,4251020053,793779912,2902807211,842905082,4246964064,1395751752,1040244610,2656851899,3396308128,445077038,3742853595,3577915638,679411651,2892444358,2354009459,1767581616,3150600392,3791627101,3102740896,284835224,4246832056,1258075500,768725851,2589189241,3069724005,3532540348,1274779536,3789419226,2764799539,1660621633,3471099624,4011903706,913787905,3497959166,737222580,2514213453,2928710040,3937242737,1804850592,3499020752,2949064160,2386320175,2390070455,2415321851,4061277028,2290661394,2416832540,1336762016,1754252060,3520065937,3014181293,791618072,3188594551,3933548030,2332172193,3852520463,3043980520,413987798,3465142937,3030929376,4245938359,2093235073,3534596313,375366246,2157278981,2479649556,555357303,3870105701,2008414854,3344188149,4221384143,3956125452,2067696032,3594591187,2921233993,2428461,544322398,577241275,1471733935,610547355,4027169054,1432588573,1507829418,2025931657,3646575487,545086370,48609733,2200306550,1653985193,298326376,1316178497,3007786442,2064951626,458293330,2589141269,3591329599,3164325604,727753846,2179363840,146436021,1461446943,4069977195,705550613,3059967265,3887724982,4281599278,3313849956,1404054877,2845806497,146425753,1854211946],[1266315497,3048417604,3681880366,3289982499,290971e4,1235738493,2632868024,2414719590,3970600049,1771706367,1449415276,3266420449,422970021,1963543593,2690192192,3826793022,1062508698,1531092325,1804592342,2583117782,2714934279,4024971509,1294809318,4028980673,1289560198,2221992742,1669523910,35572830,157838143,1052438473,1016535060,1802137761,1753167236,1386275462,3080475397,2857371447,1040679964,2145300060,2390574316,1461121720,2956646967,4031777805,4028374788,33600511,2920084762,1018524850,629373528,3691585981,3515945977,2091462646,2486323059,586499841,988145025,935516892,3367335476,2599673255,2839830854,265290510,3972581182,2759138881,3795373465,1005194799,847297441,406762289,1314163512,1332590856,1866599683,4127851711,750260880,613907577,1450815602,3165620655,3734664991,3650291728,3012275730,3704569646,1427272223,778793252,1343938022,2676280711,2052605720,1946737175,3164576444,3914038668,3967478842,3682934266,1661551462,3294938066,4011595847,840292616,3712170807,616741398,312560963,711312465,1351876610,322626781,1910503582,271666773,2175563734,1594956187,70604529,3617834859,1007753275,1495573769,4069517037,2549218298,2663038764,504708206,2263041392,3941167025,2249088522,1514023603,1998579484,1312622330,694541497,2582060303,2151582166,1382467621,776784248,2618340202,3323268794,2497899128,2784771155,503983604,4076293799,907881277,423175695,432175456,1378068232,4145222326,3954048622,3938656102,3820766613,2793130115,2977904593,26017576,3274890735,3194772133,1700274565,1756076034,4006520079,3677328699,720338349,1533947780,354530856,688349552,3973924725,1637815568,332179504,3949051286,53804574,2852348879,3044236432,1282449977,3583942155,3416972820,4006381244,1617046695,2628476075,3002303598,1686838959,431878346,2686675385,1700445008,1080580658,1009431731,832498133,3223435511,2605976345,2271191193,2516031870,1648197032,4164389018,2548247927,300782431,375919233,238389289,3353747414,2531188641,2019080857,1475708069,455242339,2609103871,448939670,3451063019,1395535956,2413381860,1841049896,1491858159,885456874,4264095073,4001119347,1565136089,3898914787,1108368660,540939232,1173283510,2745871338,3681308437,4207628240,3343053890,4016749493,1699691293,1103962373,3625875870,2256883143,3830138730,1031889488,3479347698,1535977030,4236805024,3251091107,2132092099,1774941330,1199868427,1452454533,157007616,2904115357,342012276,595725824,1480756522,206960106,497939518,591360097,863170706,2375253569,3596610801,1814182875,2094937945,3421402208,1082520231,3463918190,2785509508,435703966,3908032597,1641649973,2842273706,3305899714,1510255612,2148256476,2655287854,3276092548,4258621189,236887753,3681803219,274041037,1734335097,3815195456,3317970021,1899903192,1026095262,4050517792,356393447,2410691914,3873677099,3682840055],[3913112168,2491498743,4132185628,2489919796,1091903735,1979897079,3170134830,3567386728,3557303409,857797738,1136121015,1342202287,507115054,2535736646,337727348,3213592640,1301675037,2528481711,1895095763,1721773893,3216771564,62756741,2142006736,835421444,2531993523,1442658625,3659876326,2882144922,676362277,1392781812,170690266,3921047035,1759253602,3611846912,1745797284,664899054,1329594018,3901205900,3045908486,2062866102,2865634940,3543621612,3464012697,1080764994,553557557,3656615353,3996768171,991055499,499776247,1265440854,648242737,3940784050,980351604,3713745714,1749149687,3396870395,4211799374,3640570775,1161844396,3125318951,1431517754,545492359,4268468663,3499529547,1437099964,2702547544,3433638243,2581715763,2787789398,1060185593,1593081372,2418618748,4260947970,69676912,2159744348,86519011,2512459080,3838209314,1220612927,3339683548,133810670,1090789135,1078426020,1569222167,845107691,3583754449,4072456591,1091646820,628848692,1613405280,3757631651,526609435,236106946,48312990,2942717905,3402727701,1797494240,859738849,992217954,4005476642,2243076622,3870952857,3732016268,765654824,3490871365,2511836413,1685915746,3888969200,1414112111,2273134842,3281911079,4080962846,172450625,2569994100,980381355,4109958455,2819808352,2716589560,2568741196,3681446669,3329971472,1835478071,660984891,3704678404,4045999559,3422617507,3040415634,1762651403,1719377915,3470491036,2693910283,3642056355,3138596744,1364962596,2073328063,1983633131,926494387,3423689081,2150032023,4096667949,1749200295,3328846651,309677260,2016342300,1779581495,3079819751,111262694,1274766160,443224088,298511866,1025883608,3806446537,1145181785,168956806,3641502830,3584813610,1689216846,3666258015,3200248200,1692713982,2646376535,4042768518,1618508792,1610833997,3523052358,4130873264,2001055236,3610705100,2202168115,4028541809,2961195399,1006657119,2006996926,3186142756,1430667929,3210227297,1314452623,4074634658,4101304120,2273951170,1399257539,3367210612,3027628629,1190975929,2062231137,2333990788,2221543033,2438960610,1181637006,548689776,2362791313,3372408396,3104550113,3145860560,296247880,1970579870,3078560182,3769228297,1714227617,3291629107,3898220290,166772364,1251581989,493813264,448347421,195405023,2709975567,677966185,3703036547,1463355134,2715995803,1338867538,1343315457,2802222074,2684532164,233230375,2599980071,2000651841,3277868038,1638401717,4028070440,3237316320,6314154,819756386,300326615,590932579,1405279636,3267499572,3150704214,2428286686,3959192993,3461946742,1862657033,1266418056,963775037,2089974820,2263052895,1917689273,448879540,3550394620,3981727096,150775221,3627908307,1303187396,508620638,2975983352,2726630617,1817252668,1876281319,1457606340,908771278,3720792119,3617206836,2455994898,1729034894,1080033504],[976866871,3556439503,2881648439,1522871579,1555064734,1336096578,3548522304,2579274686,3574697629,3205460757,3593280638,3338716283,3079412587,564236357,2993598910,1781952180,1464380207,3163844217,3332601554,1699332808,1393555694,1183702653,3581086237,1288719814,691649499,2847557200,2895455976,3193889540,2717570544,1781354906,1676643554,2592534050,3230253752,1126444790,2770207658,2633158820,2210423226,2615765581,2414155088,3127139286,673620729,2805611233,1269405062,4015350505,3341807571,4149409754,1057255273,2012875353,2162469141,2276492801,2601117357,993977747,3918593370,2654263191,753973209,36408145,2530585658,25011837,3520020182,2088578344,530523599,2918365339,1524020338,1518925132,3760827505,3759777254,1202760957,3985898139,3906192525,674977740,4174734889,2031300136,2019492241,3983892565,4153806404,3822280332,352677332,2297720250,60907813,90501309,3286998549,1016092578,2535922412,2839152426,457141659,509813237,4120667899,652014361,1966332200,2975202805,55981186,2327461051,676427537,3255491064,2882294119,3433927263,1307055953,942726286,933058658,2468411793,3933900994,4215176142,1361170020,2001714738,2830558078,3274259782,1222529897,1679025792,2729314320,3714953764,1770335741,151462246,3013232138,1682292957,1483529935,471910574,1539241949,458788160,3436315007,1807016891,3718408830,978976581,1043663428,3165965781,1927990952,4200891579,2372276910,3208408903,3533431907,1412390302,2931980059,4132332400,1947078029,3881505623,4168226417,2941484381,1077988104,1320477388,886195818,18198404,3786409e3,2509781533,112762804,3463356488,1866414978,891333506,18488651,661792760,1628790961,3885187036,3141171499,876946877,2693282273,1372485963,791857591,2686433993,3759982718,3167212022,3472953795,2716379847,445679433,3561995674,3504004811,3574258232,54117162,3331405415,2381918588,3769707343,4154350007,1140177722,4074052095,668550556,3214352940,367459370,261225585,2610173221,4209349473,3468074219,3265815641,314222801,3066103646,3808782860,282218597,3406013506,3773591054,379116347,1285071038,846784868,2669647154,3771962079,3550491691,2305946142,453669953,1268987020,3317592352,3279303384,3744833421,2610507566,3859509063,266596637,3847019092,517658769,3462560207,3443424879,370717030,4247526661,2224018117,4143653529,4112773975,2788324899,2477274417,1456262402,2901442914,1517677493,1846949527,2295493580,3734397586,2176403920,1280348187,1908823572,3871786941,846861322,1172426758,3287448474,3383383037,1655181056,3139813346,901632758,1897031941,2986607138,3066810236,3447102507,1393639104,373351379,950779232,625454576,3124240540,4148612726,2007998917,544563296,2244738638,2330496472,2058025392,1291430526,424198748,50039436,29584100,3605783033,2429876329,2791104160,1057563949,3255363231,3075367218,3463963227,1469046755,985887462]]
8;var c={pbox:[],sbox:[]};function d(v,x){let g=x>>24&255,y=x>>16&255,_=x>>8&255,E=x&255,w=v.sbox[0][g]+v.sbox[1][y];return w=w^v.sbox[2][_],w=w+v.sbox[3][E],w}function f(v,x,g){let y=x,_=g,E;for(let w=0;w<a;++w)y=y^v.pbox[w],_=d(v,y)^_,E=y,y=_,_=E;return E=y,y=_,_=E,_=_^v.pbox[a],y=y^v.pbox[a+1],{left:y,right:_}}function h(v,x,g){let y=x,_=g,E;for(let w=a+1;w>1;--w)y=y^v.pbox[w],_=d(v,y)^_,E=y,y=_,_=E;return E=y,y=_,_=E,_=_^v.pbox[1],y=y^v.pbox[0],{left:y,right:_}}function p(v,x,g){for(let T=0;T<4;T++){v.sbox[T]=[];for(let C=0;C<256;C++)v.sbox[T][C]=u[T][C]}let y=0;for(let T=0;T<a+2;T++)v.pbox[T]=l[T]^x[y],y++,y>=g&&(y=0);let _=0,E=0,w=0;for(let T=0;T<a+2;T+=2)w=f(v,_,E),_=w.left,E=w.right,v.pbox[T]=_,v.pbox[T+1]=E;for(let T=0;T<4;T++)for(let C=0;C<256;C+=2)w=f(v,_,E),_=w.left,E=w.right,v.sbox[T][C]=_,v.sbox[T][C+1]=E;return!0}var m=o.Blowfish=i.extend({_doReset:function(){if(this._keyPriorReset!==this._key){var v=this._keyPriorReset=this._key,x=v.words,g=v.sigBytes/4;p(c,x,g)}},encryptBlock:function(v,x){var g=f(c,v[x],v[x+1]);v[x]=g.left,v[x+1]=g.right},decryptBlock:function(v,x){var g=h(c,v[x],v[x+1]);v[x]=g.left,v[x+1]=g.right},blockSize:64/32,keySize:128/32,ivSize:64/32});r.Blowfish=i._createHelper(m)})(),n.Blowfish})})(am)),am.exports}var FG=Cp.exports,KC;function BG(){return KC||(KC=1,(function(e,t){(function(n,r,s){e.exports=r(nn(),Wg(),OH(),MH(),Ru(),NH(),Ou(),c3(),G_(),HH(),d3(),WH(),YH(),ZH(),K_(),eG(),Tl(),Mr(),sG(),oG(),lG(),cG(),fG(),pG(),vG(),yG(),bG(),SG(),wG(),CG(),kG(),LG(),PG(),OG(),MG())})(FG,function(n){return n})})(Cp)),Cp.exports}var NG=BG();const $0=H_(NG);
8function Vt(e,t=new FormData,n=""){for(const r in e)if(Object.prototype.hasOwnProperty.call(e,r)){const s=e[r];if(s==null)continue;const i=n?`${n}[${r}]`:r;s instanceof Date?t.append(i,s.toISOString()):s instanceof File?t.append(i,s):typeof s=="object"&&!Array.isArray(s)?Vt(s,t,i):Array.isArray(s)?s.forEach((o,a)=>{const l=`${i}[${a}]`;typeof o=="object"&&o!==null?Vt(o,t,l):o!=null&&t.append(l,o)}):t.append(i,s)}return t}const Rh={TOP_LEFT:"top-left",TOP_RIGHT:"top-right",TOP_CENTER:"top-center",BOTTOM_LEFT:"bottom-left",BOTTOM_RIGHT:"bottom-right",BOTTOM_CENTER:"bottom-center"},Fc={LIGHT:"light",DARK:"dark",COLORED:"colored",AUTO:"auto"},Ls={INFO:"info",SUCCESS:"success",WARNING:"warning",ERROR:"error",DEFAULT:"default"},VG={BOUNCE:"bounce",SLIDE:"slide",FLIP:"flip",ZOOM:"zoom",NONE:"none"},UG={dangerouslyHTMLString:!1,multiple:!0,position:Rh.TOP_RIGHT,autoClose:5e3,transition:"bounce",hideProgressBar:!1,pauseOnHover:!0,pauseOnFocusLoss:!0,closeOnClick:!0,className:"",bodyClassName:"",style:{},progressClassName:"",progressStyle:{},role:"alert",theme:"light"},jG={rtl:!1,newestOnTop:!1,toastClassName:""},f3={...UG,...jG};Ls.DEFAULT;var bn=(e=>(e[e.COLLAPSE_DURATION=300]="COLLAPSE_DURATION",e[e.DEBOUNCE_DURATION=50]="DEBOUNCE_DURATION",e.CSS_NAMESPACE="Toastify",e))(bn||{}),Rb=(e=>(e.ENTRANCE_ANIMATION_END="d",e))(Rb||{});const zG={enter:"Toastify--animate Toastify__bounce-enter",exit:"Toastify--animate Toastify__bounce-exit",appendPosition:!0},HG={enter:"Toastify--animate Toastify__slide-enter",exit:"Toastify--animate Toastify__slide-exit",appendPosition:!0},GG={enter:"Toastify--animate Toastify__zoom-enter",exit:"Toastify--animate Toastify__zoom-exit"},KG={enter:"Toastify--animate Toastify__flip-enter",exit:"Toastify--animate Toastify__flip-exit"},WC="Toastify--animate Toastify__none-enter";function h3(e,t=!1){var n;let r=zG;if(!e||typeof e=="string")switch(e){case"flip":r=KG;break;case"zoom":r=GG;break;case"slide":r=HG;break}else r=e;if(t)r.enter=WC;else if(r.enter===WC){const s=(n=r.exit.split("__")[1])==null?void 0:n.split("-")[0];r.enter=`Toastify--animate Toastify__${s}-enter`}return r}function WG(e){return e.containerId||String(e.position)}const qg="will-unmount";function qG(e=Rh.TOP_RIGHT){return!!document.querySelector(`.${bn.CSS_NAMESPACE}__toast-container--${e}`)}function YG(e=Rh.TOP_RIGHT){return`${bn.CSS_NAMESPACE}__toast-container--${e}`}function XG(e,t,n=!1){const r=[`${bn.CSS_NAMESPACE}__toast-container`,`${bn.CSS_NAMESPACE}__toast-container--${e}`,n?`${bn.CSS_NAMESPACE}__toast-container--rtl`:null].filter(Boolean).join(" ");return bc(t)?t({position:e,rtl:n,defaultClassName:r}):`${r} ${t||""}`}function ZG(e){var t;const{position:n,containerClassName:r,rtl:s=!1,style:i={}}=e,o=bn.CSS_NAMESPACE,a=YG(n),l=document.querySelector(`.${o}`),u=document.querySelector(`.${a}`),c=!!u&&!((t=u.className)!=null&&t.includes(qg)),d=l||document.createElement("div"),f=document.createElement("div");f.className=XG(n,r,s),f.dataset.testid=`${bn.CSS_NAMESPACE}__toast-container--${n}`,f.id=WG(e);for(const h in i)if(Object.prototype.hasOwnProperty.call(i,h)){const p=i[h];f.style[h]=p}return l||(d.className=bn.CSS_NAMESPACE,document.body.appendChild(d)),c||d.appendChild(f),f}function Ob(e){var t,n,r;const s=typeof e=="string"?e:((t=e.currentTarget)==null?void 0:t.id)||((n=e.target)==null?void 0:n.id),i=document.getElementById(s);i&&i.removeEventListener("animationend",Ob,!1);try{Gf[s].unmount(),(r=document.getElementById(s))==null||r.remove(),delete Gf[s],delete Nr[s]}catch{}}const Gf=Wt({});function JG(e,t){const n=document.getElementById(String(t));n&&(Gf[n.id]=e)}function $b(e,t=!0){const n=String(e);if(!Gf[n])return;const r=document.getElementById(n);r&&r.classList.add(qg),t?(eK(e),r&&r.addEventListener("animationend",Ob,!1)):Ob(n),Uo.items=Uo.items.filter(s=>s.containerId!==e)}function QG(e){for(const t in Gf)$b(t,e);Uo.items=[]}function p3(e,t){const n=document.getElementById(e.toastId);if(n){let r=e;r={...r,...h3(r.transition)};const s=r.appendPosition?`${r.exit}--${r.position}`:r.exit;n.className+=` ${s}`,t&&t(n)}}function eK(e){for(const t in Nr)if(t===e)for(const n of Nr[t]||[])p3(n)}function tK(e){const t=Bc().find(n=>n.toastId===e);return t?.containerId}function W_(e){return document.getElementById(e)}function nK(e){const t=W_(e.containerId);return t&&t.classList.contains(qg)}function qC(e){var t;const n=Fi(e.content)?yt(e.content.props):null;return n??yt((t=e.data)!=null?t:{})}function rK(e){return e?Uo.items.filter(t=>t.containerId===e).length>0:Uo.items.length>0}function sK(){if(Uo.items.length>0){const e=Uo.items.shift();lm(e?.toastContent,e?.toastProps)}}const Nr=Wt({}),Uo=Wt({items:[]});function Bc(){const e=yt(Nr);return Object.values(e).reduce((t,n)=>[...t,...n],[])}function iK(e){return Bc().find(t=>t.toastId===e)}function lm(e,t={}){if(nK(t)){const n=W_(t.containerId);n&&n.addEventListener("animationend",Mb.bind(null,e,t),!1)}else Mb(e,t)}function Mb(e,t={}){const n=W_(t.containerId);n&&n.removeEventListener("animationend",Mb.bind(null,e,t),!1);const r=Nr[t.containerId]||[],s=r.length>0;if(!s&&!qG(t.position)){const i=ZG(t),o=Mf(TK,t);t.useHandler&&t.useHandler(o),o.mount(i),JG(o,i.id)}s&&!t.updateId&&(t.position=r[0].position),tt(()=>{t.updateId?ri.update(t):ri.add(e,t)})}const ri={add(e,t){const{containerId:n=""}=t;n&&(Nr[n]=Nr[n]||[],Nr[n].find(r=>r.toastId===t.toastId)||setTimeout(()=>{var r,s;t.newestOnTop?(r=Nr[n])==null||r.unshift(t):(s=Nr[n])==null||s.push(t),t.onOpen&&t.onOpen(qC(t))},t.delay||0))},remove(e){if(e){const t=tK(e);if(t){const n=Nr[t];let r=n.find(s=>s.toastId===e);Nr[t]=n.filter(s=>s.toastId!==e),!Nr[t].length&&!rK(t)&&$b(t,!1),sK(),tt(()=>{r!=null&&r.onClose&&(r.onClose(qC(r)),r=void 0)})}}},update(e={}){const{containerId:t=""}=e;if(t&&e.updateId){Nr[t]=Nr[t]||[];const n=Nr[t].find(i=>i.toastId===e.toastId),r=n?.position!==e.position||n?.transition!==e.transition,s={...e,disabledEnterTransition:!r,updateId:void 0};ri.dismissForce(e?.toastId),setTimeout(()=>{ln(s.content,s)},e.delay||0)}},clear(e,t=!0){e?$b(e,t):QG(t)},dismissCallback(e){var t;const n=(t=e.currentTarget)==null?void 0:t.id,r=document.getElementById(n);r&&(r.removeEventListener("animationend",ri.dismissCallback,!1),setTimeout(()=>{ri.remove(n)}))},dismiss(e){if(e){const t=Bc();for(const n of t)if(n.toastId===e){p3(n,r=>{r.addEventListener("animationend",ri.dismissCallback,!1)});break}}}
8,dismissForce(e){if(e){const t=Bc();for(const n of t)if(n.toastId===e){const r=document.getElementById(e);r&&(r.remove(),r.removeEventListener("animationend",ri.dismissCallback,!1),ri.remove(e));break}}}},oK=Wt({useHandler:void 0}),m3=Wt({}),wv=Wt({});function v3(){return Math.random().toString(36).substring(2,9)}function aK(e){return typeof e=="number"&&!isNaN(e)}function Fb(e){return typeof e=="string"}function bc(e){return typeof e=="function"}function Yg(...e){return Ve(...e)}function um(e){return typeof e=="object"&&(!!(e!=null&&e.render)||!!(e!=null&&e.setup)||typeof e?.type=="object")}function lK(e={}){m3[`${bn.CSS_NAMESPACE}-default-options`]=e}function uK(){return m3[`${bn.CSS_NAMESPACE}-default-options`]||f3}function cK(){const e=window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches;return document.documentElement.classList.contains("dark")||e?"dark":"light"}var cm=(e=>(e[e.Enter=0]="Enter",e[e.Exit=1]="Exit",e))(cm||{});const g3={containerId:{type:[String,Number],required:!1,default:""},clearOnUrlChange:{type:Boolean,required:!1,default:!0},disabledEnterTransition:{type:Boolean,required:!1,default:!1},dangerouslyHTMLString:{type:Boolean,required:!1,default:!1},multiple:{type:Boolean,required:!1,default:!0},limit:{type:Number,required:!1,default:void 0},position:{type:String,required:!1,default:Rh.TOP_LEFT},bodyClassName:{type:String,required:!1,default:""},autoClose:{type:[Number,Boolean],required:!1,default:!1},closeButton:{type:[Boolean,Function,Object],required:!1,default:void 0},transition:{type:[String,Object],required:!1,default:"bounce"},hideProgressBar:{type:Boolean,required:!1,default:!1},pauseOnHover:{type:Boolean,required:!1,default:!0},pauseOnFocusLoss:{type:Boolean,required:!1,default:!0},closeOnClick:{type:Boolean,required:!1,default:!0},progress:{type:Number,required:!1,default:void 0},progressClassName:{type:String,required:!1,default:""},toastStyle:{type:Object,required:!1,default(){return{}}},progressStyle:{type:Object,required:!1,default(){return{}}},role:{type:String,required:!1,default:"alert"},theme:{type:String,required:!1,default:Fc.AUTO},content:{type:[String,Object,Function],required:!1,default:""},toastId:{type:[String,Number],required:!1,default:""},data:{type:[Object,String],required:!1,default(){return{}}},type:{type:String,required:!1,default:Ls.DEFAULT},icon:{type:[Boolean,String,Number,Object,Function],required:!1,default:void 0},delay:{type:Number,required:!1,default:void 0},onOpen:{type:Function,required:!1,default:void 0},onClose:{type:Function,required:!1,default:void 0},onClick:{type:Function,required:!1,default:void 0},isLoading:{type:Boolean,required:!1,default:void 0},rtl:{type:Boolean,required:!1,default:!1},toastClassName:{type:String,required:!1,default:""},updateId:{type:[String,Number],required:!1,default:""},contentProps:{type:Object,required:!1,default:null},expandCustomProps:{type:Boolean,required:!1,default:!1}},dK={autoClose:{type:[Number,Boolean],required:!0},isRunning:{type:Boolean,required:!1,default:void 0},type:{type:String,required:!1,default:Ls.DEFAULT},theme:{type:String,required:!1,default:Fc.AUTO},hide:{type:Boolean,required:!1,default:void 0},className:{type:[String,Function],required:!1,default:""},controlledProgress:{type:Boolean,required:!1,default:void 0},rtl:{type:Boolean,required:!1,default:void 0},isIn:{type:Boolean,required:!1,default:void 0},progress:{type:Number,required:!1,default:void 0},closeToast:{type:Function,required:!1,default:void 0}},fK=ke({name:"ProgressBar",props:dK,setup(e,{attrs:t}){const n=M(),r=F(()=>e.hide?"true":"false"),s=F(()=>({...t.style||{},animationDuration:`${e.autoClose===!0?5e3:e.autoClose}ms`,animationPlayState:e.isRunning?"running":"paused",opacity:e.hide||e.autoClose===!1?0:1,transform:e.controlledProgress?`scaleX(${e.progress})`:"none"})),i=F(()=>[`${bn.CSS_NAMESPACE}__progress-bar`,e.controlledProgress?`${bn.CSS_NAMESPACE}__progress-bar--controlled`:`${bn.CSS_NAMESPACE}__progress-bar--animated`,`${bn.CSS_NAMESPACE}__progress-bar-theme--${e.theme}`,`${bn.CSS_NAMESPACE}__progress-bar--${e.type}`,e.rtl?`${bn.CSS_NAMESPACE}
8__progress-bar--rtl`:null].filter(Boolean).join(" ")),o=F(()=>`${i.value} ${t?.class||""}`),a=()=>{n.value&&(n.value.onanimationend=null,n.value.ontransitionend=null)},l=()=>{e.isIn&&e.closeToast&&e.autoClose!==!1&&(e.closeToast(),a())},u=F(()=>e.controlledProgress?null:l),c=F(()=>e.controlledProgress?l:null);return zn(()=>{n.value&&(a(),n.value.onanimationend=u.value,n.value.ontransitionend=c.value)}),()=>S("div",{ref:n,role:"progressbar","aria-hidden":r.value,"aria-label":"notification timer",class:o.value,style:s.value},null)}}),hK=ke({name:"CloseButton",inheritAttrs:!1,props:{theme:{type:String,required:!1,default:Fc.AUTO},type:{type:String,required:!1,default:Fc.LIGHT},ariaLabel:{type:String,required:!1,default:"close"},closeToast:{type:Function,required:!1,default:void 0}},setup(e){return()=>S("button",{class:`${bn.CSS_NAMESPACE}__close-button ${bn.CSS_NAMESPACE}__close-button--${e.theme}`,type:"button",onClick:t=>{t.stopPropagation(),e.closeToast&&e.closeToast(t)},"aria-label":e.ariaLabel},[S("svg",{"aria-hidden":"true",viewBox:"0 0 14 16"},[S("path",{"fill-rule":"evenodd",d:"M7.71 8.23l3.75 3.75-1.48 1.48-3.75-3.75-3.75 3.75L1 11.98l3.75-3.75L1 4.48 2.48 3l3.75 3.75L9.98 3l1.48 1.48-3.75 3.75z"},null)])])}}),Xg=({theme:e,type:t,path:n,...r})=>S("svg",Ve({viewBox:"0 0 24 24",width:"100%",height:"100%",fill:e==="colored"?"currentColor":`var(--toastify-icon-color-${t})`},r),[S("path",{d:n},null)]);function pK(e){return S(Xg,Ve(e,{path:"M23.32 17.191L15.438 2.184C14.728.833 13.416 0 11.996 0c-1.42 0-2.733.833-3.443 2.184L.533 17.448a4.744 4.744 0 000 4.368C1.243 23.167 2.555 24 3.975 24h16.05C22.22 24 24 22.044 24 19.632c0-.904-.251-1.746-.68-2.44zm-9.622 1.46c0 1.033-.724 1.823-1.698 1.823s-1.698-.79-1.698-1.822v-.043c0-1.028.724-1.822 1.698-1.822s1.698.79 1.698 1.822v.043zm.039-12.285l-.84 8.06c-.057.581-.408.943-.897.943-.49 0-.84-.367-.896-.942l-.84-8.065c-.057-.624.25-1.095.779-1.095h1.91c.528.005.84.476.784 1.1z"}),null)}function mK(e){return S(Xg,Ve(e,{path:"M12 0a12 12 0 1012 12A12.013 12.013 0 0012 0zm.25 5a1.5 1.5 0 11-1.5 1.5 1.5 1.5 0 011.5-1.5zm2.25 13.5h-4a1 1 0 010-2h.75a.25.25 0 00.25-.25v-4.5a.25.25 0 00-.25-.25h-.75a1 1 0 010-2h1a2 2 0 012 2v4.75a.25.25 0 00.25.25h.75a1 1 0 110 2z"}),null)}function vK(e){return S(Xg,Ve(e,{path:"M12 0a12 12 0 1012 12A12.014 12.014 0 0012 0zm6.927 8.2l-6.845 9.289a1.011 1.011 0 01-1.43.188l-4.888-3.908a1 1 0 111.25-1.562l4.076 3.261 6.227-8.451a1 1 0 111.61 1.183z"}),null)}function gK(e){return S(Xg,Ve(e,{path:"M11.983 0a12.206 12.206 0 00-8.51 3.653A11.8 11.8 0 000 12.207 11.779 11.779 0 0011.8 24h.214A12.111 12.111 0 0024 11.791 11.766 11.766 0 0011.983 0zM10.5 16.542a1.476 1.476 0 011.449-1.53h.027a1.527 1.527 0 011.523 1.47 1.475 1.475 0 01-1.449 1.53h-.027a1.529 1.529 0 01-1.523-1.47zM11 12.5v-6a1 1 0 012 0v6a1 1 0 11-2 0z"}),null)}function yK(){return S("div",{class:`${bn.CSS_NAMESPACE}__spinner`},null)}const dm={info:mK,warning:pK,success:vK,error:gK,spinner:yK},xK=e=>e in dm;function bK({theme:e,type:t,isLoading:n,icon:r}){let s;const i=!!n||t==="loading",o={theme:e,type:t};if(i&&(r===void 0||typeof r=="boolean"))return dm.spinner();if(r!==!1){if(um(r))s=yt(r);else if(bc(r)){const a=r;o.type=i?"loading":t,s=a(o),s=!s&&i?dm.spinner():s}else Fi(r)?s=Bi(r,o):Fb(r)||aK(r)?s=r:xK(t)&&(s=dm[t](o));return s}}const _K=()=>{};function SK(e,t,n=bn.COLLAPSE_DURATION){const{scrollHeight:r,style:s}=e,i=n;requestAnimationFrame(()=>{s.minHeight="initial",s.height=r+"px",s.transition=`all ${i}ms`,requestAnimationFrame(()=>{s.height="0",s.padding="0",s.margin="0",setTimeout(t,i)})})}function EK(e){const t=M(!1),n=M(!1),r=M(!1),s=M(cm.Enter),i=Wt({...e,appendPosition:e.appendPosition||!1,collapse:typeof e.collapse>"u"?!0:e.collapse,collapseDuration:e.collapseDuration||bn.COLLAPSE_DURATION}),o=i.done||_K,a=F(()=>i.appendPosition?`${i.enter}--${i.position}`:i.enter),l=F(()=>i.appendPosition?`${i.exit}--${i.position}`:i.exit),u=F(()=>e.pauseOnHover?{onMouseenter:v,onMouseleave:m}:{});function c(){const g=a.value.split(" ");f().addEventListener(Rb.ENTRANCE_ANIMATION_END,m,{once:!0});const y=E=>{const w=f();E.target===w&&(w.dispatchEvent(new Event(Rb.ENTRANCE_ANIMATION_END)),w.removeEventListener("animationend",y),w.removeEventListener("animationcancel",y),s.value===cm.Enter&&E.type!=="animationcancel"&&w.classList.remove(...g))},_=()=>{const E=f();E.classList.add(...g),E.addEventListener("animationend",y),E.addEventListener("animationcancel",y)};e.pauseOnFocusLoss&&h(),_()}function d(){if(!f())return;const g=()=>{const _=f();
8_.removeEventListener("animationend",g),i.collapse?SK(_,o,i.collapseDuration):o()},y=()=>{const _=f();s.value=cm.Exit,_&&(_.className+=` ${l.value}`,_.addEventListener("animationend",g))};n.value||(r.value?g():setTimeout(y))}function f(){return e.toastRef.value}function h(){document.hasFocus()||v(),window.addEventListener("focus",m),window.addEventListener("blur",v)}function p(){window.removeEventListener("focus",m),window.removeEventListener("blur",v)}function m(){(!e.loading.value||e.isLoading===void 0)&&(t.value=!0)}function v(){t.value=!1}function x(g){g&&(g.stopPropagation(),g.preventDefault()),n.value=!1}return zn(d),zn(()=>{const g=Bc();n.value=g.findIndex(y=>y.toastId===i.toastId)>-1}),zn(()=>{e.isLoading!==void 0&&(e.loading.value?v():m())}),ft(c),Er(()=>{e.pauseOnFocusLoss&&p()}),{isIn:n,isRunning:t,hideToast:x,eventHandlers:u}}const wK=ke({name:"ToastItem",inheritAttrs:!1,props:g3,setup(e){const t=M(),n=F(()=>!!e.isLoading),r=F(()=>e.progress!==void 0&&e.progress!==null),s=F(()=>bK(e)),i=F(()=>[`${bn.CSS_NAMESPACE}__toast`,`${bn.CSS_NAMESPACE}__toast-theme--${e.theme}`,`${bn.CSS_NAMESPACE}__toast--${e.type}`,e.rtl?`${bn.CSS_NAMESPACE}__toast--rtl`:void 0,e.toastClassName||""].filter(Boolean).join(" ")),{isRunning:o,isIn:a,hideToast:l,eventHandlers:u}=EK({toastRef:t,loading:n,done:()=>{ri.remove(e.toastId)},...h3(e.transition,e.disabledEnterTransition),...e});return()=>S("div",Ve({id:e.toastId,class:i.value,style:e.toastStyle||{},ref:t,"data-testid":`toast-item-${e.toastId}`,onClick:c=>{e.closeOnClick&&l(),e.onClick&&e.onClick(c)}},u.value),[S("div",{role:e.role,"data-testid":"toast-body",class:`${bn.CSS_NAMESPACE}__toast-body ${e.bodyClassName||""}`},[s.value!=null&&S("div",{"data-testid":`toast-icon-${e.type}`,class:[`${bn.CSS_NAMESPACE}__toast-icon`,e.isLoading?"":`${bn.CSS_NAMESPACE}--animate-icon ${bn.CSS_NAMESPACE}__zoom-enter`].join(" ")},[um(s.value)?Dt(yt(s.value),{theme:e.theme,type:e.type}):bc(s.value)?s.value({theme:e.theme,type:e.type}):s.value]),S("div",{"data-testid":"toast-content"},[um(e.content)?Dt(yt(e.content),{toastProps:yt(e),closeToast:l,data:e.data,...e.expandCustomProps?e.contentProps:{contentProps:e.contentProps||{}}}):bc(e.content)?e.content({toastProps:yt(e),closeToast:l,data:e.data}):e.dangerouslyHTMLString?Dt("div",{innerHTML:e.content}):e.content])]),(e.closeButton===void 0||e.closeButton===!0)&&S(hK,{theme:e.theme,closeToast:c=>{c.stopPropagation(),c.preventDefault(),l()}},null),um(e.closeButton)?Dt(yt(e.closeButton),{closeToast:l,type:e.type,theme:e.theme}):bc(e.closeButton)?e.closeButton({closeToast:l,type:e.type,theme:e.theme}):null,S(fK,{className:e.progressClassName,style:e.progressStyle,rtl:e.rtl,theme:e.theme,isIn:a.value,type:e.type,hide:e.hideProgressBar,isRunning:o.value,autoClose:e.autoClose,controlledProgress:r.value,progress:e.progress,closeToast:e.isLoading?void 0:l},null)])}});let vf=0;function y3(){typeof window>"u"||(vf&&window.cancelAnimationFrame(vf),vf=window.requestAnimationFrame(y3),wv.lastUrl!==window.location.href&&(wv.lastUrl=window.location.href,ri.clear()))}const TK=ke({name:"ToastifyContainer",inheritAttrs:!1,props:g3,setup(e){const t=F(()=>e.containerId),n=F(()=>Nr[t.value]||[]),r=F(()=>n.value.filter(s=>s.position===e.position));return ft(()=>{typeof window<"u"&&e.clearOnUrlChange&&window.requestAnimationFrame(y3)}),Er(()=>{typeof window<"u"&&vf&&(window.cancelAnimationFrame(vf),wv.lastUrl="")}),()=>S(se,null,[r.value.map(s=>{const{toastId:i=""}=s;return S(wK,Ve({key:i},s),null)})])}});let P1=!1;const x3={isLoading:!0,autoClose:!1,closeOnClick:!1,closeButton:!1,draggable:!1};function b3(){const e=[];return Bc().forEach(t=>{const n=document.getElementById(t.containerId);n&&!n.classList.contains(qg)&&e.push(t)}),e}function CK(e){const t=b3().length,n=e??0;return n>0&&t+Uo.items.length>=n}function AK(e){CK(e.limit)&&!e.updateId&&Uo.items.push({toastId:e.toastId,containerId:e.containerId,toastContent:e.content,toastProps:e})}function Cl(e,t,n={}){if(P1)return;n=Yg(uK(),{type:t}
8,yt(n)),(!n.toastId||typeof n.toastId!="string"&&typeof n.toastId!="number")&&(n.toastId=v3()),n={...n,...n.type==="loading"?x3:{},content:e,containerId:n.containerId||String(n.position)};const r=Number(n?.progress);return!isNaN(r)&&r<0&&(n.progress=0),r>1&&(n.progress=1),n.theme==="auto"&&(n.theme=cK()),AK(n),wv.lastUrl=window.location.href,n.multiple?Uo.items.length?n.updateId&&lm(e,n):lm(e,n):(P1=!0,ln.clearAll(void 0,!1),setTimeout(()=>{lm(e,n)},0),setTimeout(()=>{P1=!1},390)),n.toastId}const ln=(e,t)=>Cl(e,Ls.DEFAULT,t);ln.info=(e,t)=>Cl(e,Ls.DEFAULT,{...t,type:Ls.INFO});ln.error=(e,t)=>Cl(e,Ls.DEFAULT,{...t,type:Ls.ERROR});ln.warning=(e,t)=>Cl(e,Ls.DEFAULT,{...t,type:Ls.WARNING});ln.warn=ln.warning;ln.success=(e,t)=>Cl(e,Ls.DEFAULT,{...t,type:Ls.SUCCESS});ln.loading=(e,t)=>Cl(e,Ls.DEFAULT,Yg(t,x3));ln.dark=(e,t)=>Cl(e,Ls.DEFAULT,Yg(t,{theme:Fc.DARK}));ln.remove=e=>{e?ri.dismiss(e):ri.clear()};ln.clearAll=(e,t)=>{tt(()=>{ri.clear(e,t)})};ln.isActive=e=>{let t=!1;return t=b3().findIndex(n=>n.toastId===e)>-1,t};ln.update=(e,t={})=>{setTimeout(()=>{const n=iK(e);if(n){const r=yt(n),{content:s}=r,i={...r,...t,toastId:t.toastId||e,updateId:v3()},o=i.render||s;delete i.render,Cl(o,i.type,i)}},0)};ln.done=e=>{ln.update(e,{isLoading:!1,progress:1})};ln.promise=kK;function kK(e,{pending:t,error:n,success:r},s){var i,o,a;let l;const u={...s||{},autoClose:!1};t&&(l=Fb(t)?ln.loading(t,u):ln.loading(t.render,{...u,...t}));const c={autoClose:(i=s?.autoClose)!=null?i:!0,closeOnClick:(o=s?.closeOnClick)!=null?o:!0,closeButton:(a=s?.autoClose)!=null?a:null,isLoading:void 0,draggable:null,delay:100},d=(h,p,m)=>{if(p==null){ln.remove(l);return}const v={type:h,...c,...s,data:m},x=Fb(p)?{render:p}:p;return l?ln.update(l,{...v,...x,isLoading:!1}):ln(x.render,{...v,...x,isLoading:!1}),m},f=bc(e)?e():e;return f.then(h=>{d("success",r,h)}).catch(h=>{d("error",n,h)}),f}ln.POSITION=Rh;ln.THEME=Fc;ln.TYPE=Ls;ln.TRANSITIONS=VG;const IK={install(e,t={}){oK.useHandler=t.useHandler||(()=>{}),q_(t)}};typeof window<"u"&&(window.Vue3Toastify=IK);function q_(e={}){const t=Yg(f3,e);lK(t)}q_({autoClose:3e3,position:"bottom-center"});const M0={lastMessage:"",lastTime:0};function Gu(e,t){let n,r={};typeof e=="string"?(n=e,r=t||{}):(n=e.data||"",r=e);const s=Date.now();if(!(n===M0.lastMessage&&s-M0.lastTime<1e3))return M0.lastMessage=n,M0.lastTime=s,ln(n,r)}const je=Object.assign(Gu,{success:(e,t={})=>Gu(e,{...t,type:"success"}),error:(e,t={})=>Gu(e,{...t,type:"error"}),warning:(e,t={})=>Gu(e,{...t,type:"warning"}),info:(e,t={})=>Gu(e,{...t,type:"info"}),loading:(e,t={})=>Gu(e,{...t,type:"default",isLoading:!0,closeButton:!1,closeOnClick:!1,autoClose:!1}),update:(e,t)=>ln.update(e,t),dismiss:e=>ln.dismiss(e),clearAll:()=>ln.clearAll(),isActive:e=>ln.isActive(e),configure:e=>q_(e),promise:(e,{pending:t,success:n,error:r},s)=>ln.promise(e,{pending:t,success:n,error:r},s)});function LK(e,t){return wt().$api(e,t)}function DK(e,t){const n=M(!1),r=M(!1),s=M(!1),i=F(()=>t.value&&e.value.username?"authenticated":"guest"),o=M({});async function a(){n.value=!0;try{const x=await wt().$api("user/online",{silent:!0});f(x.auth),h(x.user)}catch(x){x?.error===401&&(f(null),h({}))}finally{n.value=!1}}async function l(x){n.value=!0;try{const g=await wt().$api("user/login",{method:"POST",body:Vt(x)});t.value=g.auth,e.value=g.user,je("登录成功",{type:"success"})}finally{n.value=!1}}async function u(x){if(!r.value){r.value=!0;try{const g=await wt().$api("user/register",{method:"POST",body:Vt(x)});f(g.auth),h(g.user)}finally{r.value=!1}}}async function c(){try{await wt().$api("user/logout",{method:"POST"})}finally{f(null),h(null),o.value={}}}async function d(x){try{return await wt().$api("user/password",{method:"POST",body:Vt(x)}),je("密码修改成功",{type:"success"}),!0}catch(g){return console.error(g),!1}}function f(x){t.value=x}function h(x){e.value=x===null?{}:typeof x=="object"?x:{}}async function p(){return o.value?.eid?o.value||{}:(await m(),o.value||{})}async function m(){try{if(s.value)return;s.value=!0,await a()}catch(x){x?.error===401&&(f(null),h({}))}finally{s.value=!1}}async function v(x,g){try{const y={method:"POST",body:Vt(x),silent:g||!1};return await LK("user/update",y),!0}catch(y){return console.error(y),!1}}return ad(()=>{t.value&&m()}),{loging:n,login:l,setAuth:f,logout:c,register:u,getShareInfo:p,changePassword:d,refreshAuth:m,status:i,updateUser:v}}const Ct=Ws(()=>{const e=M(!1),t=di("yj:device",""),n=()=>{const w=[navigator.language,screen.colorDepth,new Date().getTimezoneOffset()];return $0.SHA256(w.join("###")).toString().slice(0,32)},r=F(()=>{let w=t.value;return w||(w=n(),t.value=w),w}),s=w=>
8{try{return r.value?$0.AES.encrypt(w,r.value).toString():""}catch(T){return console.error("加密失败:",T),""}},i=w=>{try{if(!r.value||!w)return[];const T=$0.AES.decrypt(w,r.value);return JSON.parse(T.toString($0.enc.Utf8))}catch(T){return console.error("解密失败:",T),[]}},o=di("yj:user",{},{serializer:{read:w=>w?i(w):{},write:w=>s(JSON.stringify(w))}}),a=Kg("xauth",{path:"/",maxAge:3600*24*300}),{loging:l,status:u,setAuth:c,login:d,logout:f,register:h,changePassword:p,getShareInfo:m,refreshAuth:v,updateUser:x}=DK(o,a);async function g(){if(!(e.value||!a.value)&&u.value!=="guest")try{await v(),e.value=!0}catch(w){console.error("获取用户信息失败,使用本地缓存:",w)}}ad(()=>{a.value&&u.value!=="guest"&&g()});const y=F(()=>{if(!a.value)return null;try{const T=decodeURIComponent(a.value).substring(9),k=atob(T).substring(5).split(/[\t]/ig);return k[0]<1||k[4]<1?null:{userId:~~k[0],username:k[2],phone:k[3],expire:~~k[4],vip:~~k[5],expireTime:~~k[6]}}catch(w){return console.error("解析认证信息失败:",w),null}}),_=F(()=>o.value?.role>=98),E=F(()=>o.value?.role>=100);return{loging:l,status:u,user:o,isEditor:_,isAdmin:E,token:a,setAuth:c,login:d,getShareInfo:m,logout:f,register:h,changePassword:p,refreshAuth:v,init:g,updateUser:x,authInfo:y,isLogin:F(()=>!!o.value?.username)}}),PK=(e,t)=>{const n=(r="/auth/login")=>Ah({path:r,query:{from:e.fullPath}},{replace:!0});if((e.meta.agent||e.meta.admin)&&(e.meta.auth=!0),e.meta.auth){const{user:r,status:s}=Ct();if(s.value!=="authenticated")return n()}},RK=[rj,AH,PK],Bb={};function OK(e,t,n){const{pathname:r,search:s,hash:i}=t,o=e.indexOf("#");if(o>-1){const u=i.includes(e.slice(o))?e.slice(o).length:1;let c=i.slice(u);return c[0]!=="/"&&(c="/"+c),tT(c,"")}const a=tT(r,e),l=!n||L7(a,n)?a:n;return l+(l.includes("?")?"":s)+i}const $K=mi({name:"nuxt:router",enforce:"pre",async setup(e){let t,n,r=Zr().app.baseURL;const s=Fa.history?.(r)??oU(r),i=Fa.routes?([t,n]=hf(()=>Fa.routes(S1)),t=await t,n(),t??S1):S1;let o;const a=AU({...Fa,scrollBehavior:(v,x,g)=>{if(x===Ti){o=g;return}if(Fa.scrollBehavior){if(a.options.scrollBehavior=Fa.scrollBehavior,"scrollRestoration"in window.history){const y=a.beforeEach(()=>{y(),window.history.scrollRestoration="manual"})}return Fa.scrollBehavior(v,Ti,o||g)}},history:s,routes:i});"scrollRestoration"in window.history&&(window.history.scrollRestoration="auto"),e.vueApp.use(a);const l=Ze(a.currentRoute.value);a.afterEach((v,x)=>{l.value=x}),Object.defineProperty(e.vueApp.config.globalProperties,"previousRoute",{get:()=>l.value});const u=OK(r,window.location,e.payload.path),c=Ze(a.currentRoute.value),d=()=>{c.value=a.currentRoute.value};e.hook("page:finish",d),a.afterEach((v,x)=>{v.matched[v.matched.length-1]?.components?.default===x.matched[x.matched.length-1]?.components?.default&&d()});const f={};for(const v in c.value)Object.defineProperty(f,v,{get:()=>c.value[v],enumerable:!0});e._route=so(f),e._middleware||={global:[],named:{}};const h=Ug();a.afterEach(async(v,x,g)=>{delete e._processingMiddleware,!e.isHydrating&&h.value&&await e.runWithContext(TV),g&&await e.callHook("page:loading:end")});try{[t,n]=hf(()=>a.isReady()),await t,n()}catch(v){[t,n]=hf(()=>e.runWithContext(()=>jl(v))),await t,n()}const p=u!==a.currentRoute.value.fullPath?a.resolve(u):a.currentRoute.value;d();const m=e.payload.state._layout;return a.beforeEach(async(v,x)=>{await e.callHook("page:loading:start"),v.meta=Wt(v.meta),e.isHydrating&&m&&!Bo(v.meta.layout)&&(v.meta.layout=m),e._processingMiddleware=!0;{const g=new Set([...RK,...e._middleware.global]);for(const y of v.matched){const _=y.meta.middleware;if(_)for(const E of T_(_))g.add(E)}for(const y of g){const _=typeof y=="string"?e._middleware.named[y]||await Bb[y]?.().then(E=>E.default||E):y;if(!_)throw new Error(`Unknown route middleware: '${y}'.`);try{const E=await e.runWithContext(()=>_(v,x));if(!e.payload.serverRendered&&e.isHydrating&&(E===!1||E instanceof Error)){const w=E||cl({statusCode:404,statusMessage:`Page Not Found: ${u}`});return await e.runWithContext(()=>jl(w)),!1}if(E===!0)continue;if(E===!1)return E;if(E)return zP(E)&&E.fatal&&await e.runWithContext(()=>jl(E)),E}catch(E){const w=cl(E);return w.fatal&&await e.runWithContext(()=>jl(w)),w}}}}),a.onError(async()=>{delete e._processingMiddleware,await e.callHook("page:loading:end")}),a.afterEach(v=>{if(v.matched.length===0)return e.runWithContext(()=>jl(cl({statusCode:404,fatal:!1,statusMessage:`Page not found: ${v.fullPath}`,data:{path:v.fullPath}})))}),e.hooks.hookOnce("app:created",async()=>{try{"name"in p&&(p.name=void 0),await a.replace({...p,force:!0}),a.options.scrollBehavior=Fa.scrollBehavior}catch(v){await e.runWithContext(()=>jl(v))}}),{provide:{router:a}}}}),MK=mi(()=>{const e=Tt();ad(()=>
8{e.beforeResolve(async()=>{await new Promise(t=>{setTimeout(t,100),requestAnimationFrame(()=>{setTimeout(t,0)})})})})});function FK(e={}){const t=e.path||window.location.pathname;let n={};try{n=Ff(sessionStorage.getItem("nuxt:reload")||"{}")}catch{}if(e.force||n?.path!==t||n?.expires<Date.now()){try{sessionStorage.setItem("nuxt:reload",JSON.stringify({path:t,expires:Date.now()+(e.ttl??1e4)}))}catch{}if(e.persistState)try{sessionStorage.setItem("nuxt:reload:state",JSON.stringify({state:wt().payload.state}))}catch{}window.location.pathname!==t?window.location.href=t:window.location.reload()}}const BK=mi({name:"nuxt:chunk-reload",setup(e){const t=Tt(),n=Zr(),r=new Set;t.beforeEach(()=>{r.clear()}),e.hook("app:chunkError",({error:i})=>{r.add(i)});function s(i){const o=g_(n.app.baseURL,i.fullPath);FK({path:o,persistState:!0})}e.hook("app:manifest:update",()=>{t.beforeResolve(s)}),t.onError((i,o)=>{r.has(i)&&s(o)})}}),NK=Ke(()=>Te(()=>Promise.resolve().then(()=>ACe),void 0,import.meta.url).then(e=>e.default||e.default||e)),VK=Ke(()=>Te(()=>Promise.resolve().then(()=>gSe),void 0,import.meta.url).then(e=>e.default||e.default||e)),UK=Ke(()=>Te(()=>Promise.resolve().then(()=>cge),void 0,import.meta.url).then(e=>e.default||e.default||e)),jK=Ke(()=>Te(()=>Promise.resolve().then(()=>sue),void 0,import.meta.url).then(e=>e.default||e.default||e)),zK=Ke(()=>Te(()=>Promise.resolve().then(()=>Sue),void 0,import.meta.url).then(e=>e.default||e.default||e)),HK=Ke(()=>Te(()=>Promise.resolve().then(()=>yye),void 0,import.meta.url).then(e=>e.default||e.default||e)),GK=Ke(()=>Te(()=>Promise.resolve().then(()=>Age),void 0,import.meta.url).then(e=>e.default||e.default||e)),KK=Ke(()=>Te(()=>Promise.resolve().then(()=>wee),void 0,import.meta.url).then(e=>e.default||e.default||e)),WK=Ke(()=>Te(()=>Promise.resolve().then(()=>zte),void 0,import.meta.url).then(e=>e.default||e.default||e)),qK=Ke(()=>Te(()=>Promise.resolve().then(()=>Fte),void 0,import.meta.url).then(e=>e.default||e.default||e)),YK=Ke(()=>Te(()=>Promise.resolve().then(()=>Rte),void 0,import.meta.url).then(e=>e.default||e.default||e)),XK=Ke(()=>Te(()=>Promise.resolve().then(()=>Ate),void 0,import.meta.url).then(e=>e.default||e.default||e)),ZK=Ke(()=>Te(()=>Promise.resolve().then(()=>Zne),void 0,import.meta.url).then(e=>e.default||e.default||e)),JK=Ke(()=>Te(()=>Promise.resolve().then(()=>qte),void 0,import.meta.url).then(e=>e.default||e.default||e)),QK=Ke(()=>Te(()=>Promise.resolve().then(()=>Kge),void 0,import.meta.url).then(e=>e.default||e.default||e)),eW=Ke(()=>Te(()=>Promise.resolve().then(()=>tme),void 0,import.meta.url).then(e=>e.default||e.default||e)),tW=Ke(()=>Te(()=>Promise.resolve().then(()=>pte),void 0,import.meta.url).then(e=>e.default||e.default||e)),nW=Ke(()=>Te(()=>Promise.resolve().then(()=>ane),void 0,import.meta.url).then(e=>e.default||e.default||e)),rW=Ke(()=>Te(()=>Promise.resolve().then(()=>Kle),void 0,import.meta.url).then(e=>e.default||e.default||e)),sW=Ke(()=>Te(()=>Promise.resolve().then(()=>vse),void 0,import.meta.url).then(e=>e.default||e.default||e)),iW=Ke(()=>Te(()=>Promise.resolve().then(()=>xie),void 0,import.meta.url).then(e=>e.default||e.default||e)),oW=Ke(()=>Te(()=>Promise.resolve().then(()=>vxe),void 0,import.meta.url).then(e=>e.default||e.default||e)),aW=Ke(()=>Te(()=>Promise.resolve().then(()=>ere),void 0,import.meta.url).then(e=>e.default||e.default||e)),lW=Ke(()=>Te(()=>Promise.resolve().then(()=>rge),void 0,import.meta.url).then(e=>e.default||e.default||e)),uW=Ke(()=>Te(()=>Promise.resolve().then(()=>txe),void 0,import.meta.url).then(e=>e.default||e.default||e)),cW=Ke(()=>Te(()=>Promise.resolve().then(()=>awe),void 0,import.meta.url).then(e=>e.default||e.default||e)),dW=Ke(()=>Te(()=>Promise.resolve().then(()=>$Ce),void 0,import.meta.url).then(e=>e.default||e.default||e)),fW=Ke(()=>Te(()=>Promise.resolve().then(()=>S2e),void 0,import.meta.url).then(e=>e.default||e.default||e)),hW=Ke(()=>Te(()=>Promise.resolve().then(()=>i_e),void 0,import.meta.url).then(e=>e.default||e.default||e)),pW=Ke(()=>Te(()=>Promise.resolve().then(()=>n_e),void 0,import.meta.url).then(e=>e.default||e.default||e)),mW=Ke(()=>Te(()=>Promise.resolve().then(()=>Zge),void 0,import.meta.url).then(e=>e.default||e.default||e)),vW=Ke(()=>Te(()=>Promise.resolve().then(()=>Yte),void 0,import.meta.url).then(e=>e.default||e.default||e)),gW=Ke(()=>Te(()=>Promise.resolve().then(()=>jCe),void 0,import.meta.url).then(e=>e.default||e.default||e)),yW=Ke(()=>Te(()=>Promise.resolve().then(()=>wte),void 0,import.meta.url).then(e=>e.default||e.default||e)),xW=Ke(()=>Te(()=>Promise.resolve().then(()=>exe),void 0,import.meta.url).then(e=>e.default||e.default||e)),bW=Ke(()=>Te(()=>Promise.resolve().then(()=>ZQ),void 0,import.meta.url).then(e=>e.default||e.default||e)),_W=Ke(()=>Te(()=>Promise.resolve().then(()=>QJ),void 0,import.meta.url).then(e=>e.default||e.default||e)),SW=Ke(()=>Te(()=>Promise.resolve().then(()=>tQ),void 0,import.meta.url).then(e=>e.default||e.default||e)),EW=Ke(()=>Te(()=>Promise.resolve().then(()=>XCe),void 0,import.meta.url).then(e=>e.default||e.default||e)),wW=Ke(()=>Te(()=>Promise.resolve().then(()=>qwe),void 0,import.meta.url).then(e=>e.default||e.default||e)),TW=Ke(()=>Te(()=>Promise.resolve().then(()=>Yse),void 0,import.meta.url).then(e=>e.default||e.default||e)),CW=Ke(()=>Te(()=>Promise.resolve().then(()=>P1e),void 0,import.meta.url).then(e=>e.default||e.default||e)),AW=Ke(()=>Te(()=>Promise.resolve().then(()=>$1e),void 0,import.meta.url).then(e=>e.default||e.default||e)),kW=Ke(()=>Te(()=>Promise.resolve().then(()=>tce),void 0,import.meta.url).then(e=>e.default||e.default||e)),IW=Ke(()=>Te(()=>Promise.resolve().then(()=>Cre),void 0,import.meta.url).then(e=>e.default||e.default||e)),LW=Ke(()=>Te(()=>Promise.resolve().then(()=>pge),void 0,import.meta.url).then(e=>e.default||e.default||e)),DW=Ke(()=>Te(()=>Promise.resolve().then(()=>Ece),void 0,import.meta.url).then(e=>e.default||e.default||e)),PW=Ke(()=>Te(()=>Promise.resolve().then(()=>rAe),void 0,import.meta.url).then(e=>e.default||e.default||e)),RW=Ke(()=>Te(()=>Promise.resolve().then(()=>Ace),void 0,import.meta.url).then(e=>e.default||e.default||e)),OW=Ke(()=>Te(()=>Promise.resolve().then(()=>H_e),void 0,import.meta.url).then(e=>e.default||e.default||e)),$W=Ke(()=>Te(()=>Promise.resolve().then(()=>mse),void 0,import.meta.url).then(e=>e.default||e.default||e)),MW=Ke(()=>Te(()=>Promise.resolve().then(()=>Qpe),void 0,import.meta.url).then(e=>e.default||e.default||e)),FW=Ke(()=>Te(()=>Promise.resolve().then(()=>N_e),void 0,import.meta.url).then(e=>e.default||e.default||e)),BW=Ke(()=>Te(()=>Promise.resolve().then(()=>d_e),void 0,import.meta.url).then(e=>e.default||e.default||e)),NW=Ke(()=>Te(()=>Promise.resolve().then(()=>bye),void 0,import.meta.url).then(e=>e.default||e.default||e)),VW=Ke(()=>Te(()=>Promise.resolve().then(()=>Qve),void 0,import.meta.url).then(e=>e.default||e.default||e)),UW=Ke(()=>Te(()=>Promise.resolve().then(()=>Hse),void 0,import.meta.url).then(e=>e.default||e.default||e)),jW=Ke(()=>Te(()=>Promise.resolve().then(()=>Y_e),void 0,import.meta.url).then(e=>e.default||e.default||e)),zW=Ke(()=>Te(()=>Promise.resolve().then(()=>JQ),void 0,import.meta.url).then(e=>e.default||e.default||e)),HW=Ke(()=>Te(()=>Promise.resolve().then(()=>iAe),void 0,import.meta.url).then(e=>e.default||e.default||e)),GW=Ke(()=>Te(()=>Promise.resolve().then(()=>l1e),void 0,import.meta.url).then(e=>e.default||e.default||e)),KW=Ke(()=>Te(()=>Promise.resolve().then(()=>aAe),void 0,import.meta.url).then(e=>e.default||e.default||e)),WW=Ke(()=>Te(()=>Promise.resolve().then(()=>JIe),void 0,import.meta.url).then(e=>e.default||e.default||e)),qW=Ke(()=>Te(()=>Promise.resolve().then(()=>fAe),void 0,import.meta.url).then(e=>e.default||e.default||e)),YW=Ke(()=>Te(()=>Promise.resolve().then(()=>twe),void 0,import.meta.url).then(e=>e.default||e.default||e)),XW=Ke(()=>Te(()=>Promise.resolve().then(()=>oge),void 0,import.meta.url).then(e=>e.default||e.default||e)),ZW=Ke(()=>Te(()=>Promise.resolve().then(()=>swe),void 0,import.meta.url).then(e=>e.default||e.default||e)),JW=Ke(()=>Te(()=>Promise.resolve().then(()=>One),void 0,import.meta.url).then(e=>e.default||e.default||e)),QW=Ke(()=>Te(()=>Promise.resolve().then(()=>vge),void 0,import.meta.url).then(e=>e.default||e.default||e)),eq=Ke(()=>Te(()=>Promise.resolve().then(()=>yre),void 0,import.meta.url).then(e=>e.default||e.default||e)),tq=Ke(()=>Te(()=>Promise.resolve().then(()=>Wpe),void 0,import.meta.url).then(e=>e.default||e.default||e)),nq=Ke(()=>Te(()=>Promise.resolve().then(()=>Xpe),void 0,import.meta.url).then(e=>e.default||e.default||e)),rq=Ke(()=>Te(()=>Promise.resolve().then(()=>qve),void 0,import.meta.url).then(e=>e.default||e.default||e)),sq=Ke(()=>Te(()=>Promise.resolve().then(()=>rre),void 0,import.meta.url).then(e=>e.default||e.default||e)),iq=Ke(()=>Te(()=>Promise.resolve().then(()=>Aue),void 0,import.meta.url).then(e=>e.default||e.default||e)),oq=Ke(()=>Te(()=>Promise.resolve().then(()=>jie),void 0,import.meta.url).then(e=>e.default||e.default||e)),aq=Ke(()=>Te(()=>Promise.resolve().then(()=>nve),void 0,import.meta.url).then(e=>e.default||e.default||e)),lq=Ke(()=>Te(()=>Promise.resolve().then(()=>Kme),void 0,import.meta.url).then(e=>e.default||e.default||e)),uq=Ke(()=>Te(()=>Promise.resolve().then(()=>Hme),void 0,import.meta.url).then(e=>e.default||e.default||e)),cq=Ke(()=>Te(()=>Promise.resolve().then(()=>Ome),void 0,import.meta.url).then(e=>e.default||e.default||e)),dq=Ke(()=>Te(()=>Promise.resolve().then(()=>dve),void 0,import.meta.url).then(e=>e.default||e.default||e)),fq=Ke(()=>Te(()=>Promise.resolve().then(()=>Gme),void 0,import.meta.url).then(e=>e.default||e.default||e)),hq=Ke(()=>Te(()=>Promise.resolve().then(()=>Vme),void 0,import.meta.url).then(e=>e.default||e.default||e)),pq=Ke(()=>Te(()=>Promise.resolve().then(()=>Vle),void 0,import.meta.url).then(e=>e.default||e.default||e)),mq=Ke(()=>Te(()=>Promise.resolve().then(()=>fse),void 0,import.meta.url).then(e=>e.default||e.default||e)),vq=Ke(()=>Te(()=>Promise.resolve().then(()=>cre),void 0,import.meta.url).then(e=>e.default||e.default||e)),gq=Ke(()=>Te(()=>Promise.resolve().then(()=>Xue),void 0,import.meta.url).then(e=>e.default||e.default||e)),yq=Ke(()=>Te(()=>Promise.resolve().then(()=>Wye),void 0,import.meta.url).then(e=>e.default||e.default||e)),xq=Ke(()=>Te(()=>Promise.resolve().then(()=>Exe),void 0,import.meta.url).then(e=>e.default||e.default||e)),bq=Ke(()=>Te(()=>Promise.resolve().then(()=>Nse),void 0,import.meta.url).then(e=>e.default||e.default||e)),_q=Ke(()=>Te(()=>Promise.resolve().then(()=>Kse),void 0,import.meta.url).then(e=>e.default||e.default||e)),Sq=Ke(()=>Te(()=>Promise.resolve().then(()=>ube),void 0,import.meta.url).then(e=>e.default||e.default||e)),Eq=Ke(()=>Te(()=>Promise.resolve().then(()=>tbe),void 0,import.meta.url).then(e=>e.default||e.default||e)),wq=Ke(()=>Te(()=>Promise.resolve().then(()=>a1e),void 0,import.meta.url).then(e=>e.default||e.default||e)),Tq=Ke(()=>Te(()=>Promise.resolve().then(()=>o1e),void 0,import.meta.url).then(e=>e.default||e.default||e)),Cq=Ke(()=>Te(()=>Promise.resolve().then(()=>Vie),void 0,import.meta.url).then(e=>e.default||e.default||e)),Aq=Ke(()=>Te(()=>Promise.resolve().then(()=>i1e),void 0,import.meta.url).then(e=>e.default||e.default||e)),kq=Ke(()=>Te(()=>Promise.resolve().then(()=>s1e),void 0,import.meta.url).then(e=>e.default||e.default||e)),Iq=Ke(()=>Te(()=>Promise.resolve().then(()=>Lxe),void 0,import.meta.url).then(e=>e.default||e.default||e)),Lq=Ke(()=>Te(()=>Promise.resolve().then(()=>Lme),void 0,import.meta.url).then(e=>e.default||e.default||e)),Dq=Ke(()=>Te(()=>Promise.resolve().then(()=>Vxe),void 0,import.meta.url).then(e=>e.default||e.default||e)),Pq=Ke(()=>Te(()=>Promise.resolve().then(()=>$pe),void 0,import.meta.url).then(e=>e.default||e.default||e)),Rq=Ke(()=>Te(()=>Promise.resolve().then(()=>nLe),void 0,import.meta.url).then(e=>e.default||e.default||e)),Oq=Ke(()=>Te(()=>Promise.resolve().then(()=>PCe),void 0,import.meta.url).then(e=>e.default||e.default||e)),$q=Ke(()=>Te(()=>Promise.resolve().then(()=>sLe),void 0,import.meta.url).then(e=>e.default||e.default||e)),Mq=Ke(()=>Te(()=>Promise.resolve().then(()=>xce),void 0,import.meta.url).then(e=>e.default||e.default||e)),Fq=Ke(()=>Te(()=>Promise.resolve().then(()=>Hge),void 0,import.meta.url).then(e=>e.default||e.default||e)),Bq=Ke(()=>Te(()=>Promise.resolve().then(()=>axe),void 0,import.meta.url).then(e=>e.default||e.default||e)),Nq=Ke(()=>Te(()=>Promise.resolve().then(()=>Yne),void 0,import.meta.url).then(e=>e.default||e.default||e)),Vq=Ke(()=>Te(()=>Promise.resolve().then(()=>LJ),void 0,import.meta.url).then(e=>e.default||e.default||e)),Uq=[["ActorCard",NK],["ActorListOfIndexCommend",VK],["AiPublishSheet",UK],["AiTemplatePicker",jK],["AiWorkflowDialog",zK],["AppBar",HK],["AppD
8ownloadDialog",GK],["AuthDialog",KK],["BannerIconList",WK],["BannerList",qK],["BannerNotice",YK],["BannerSwipeList",XK],["BannerText2List",ZK],["BannerTextList",JK],["BusinessContactDialog",QK],["CaptchaField",eW],["CategoryDialog",tW],["CdnImg",nW],["CdnVideo",rW],["ConfirmDialog",sW],["CreditRechargeDialog",iW],["CreditSummaryCard",oW],["DataList",aW],["DataListOfIndexCommend",lW],["DataListPage",uW],["DetailBase",cW],["DownCard",dW],["DownListOfIndexCommend",fW],["FloatBottom",hW],["FloatNavIcon",pW],["GlobalFooter",mW],["GlobalHeader",vW],["HeaderMenu",gW],["HeaderTop",yW],["ListTabContent",xW],["LoginForm",bW],["LogoGradient",_W],["NavGradientIcon",SW],["NvlCard",EW],["NvlReaderSettings",wW],["PayConfirmDialog",TW],["PicCard",CW],["PicGrid",AW],["PlayerAdOverlay",kW],["PostAwardsHistoryCard",IW],["PostBottomNav",LW],["PostFavBtn",DW],["PostLayout",PW],["PostLikeBtn",RW],["PostListFilterMenu",OW],["PostReportDialog",$W],["PostRewardBtn",MW],["PostTagDetailCard",FW],["PostTagEditDialog",BW],["PostTags",NW],["PostTimelineList",VW],["PostTopDialog",UW],["RecommendedUsersList",jW],["RegisterForm",zW],["RightFloatAd",HW],["SettingTheme",GW],["ShareBottomSheet",KW],["SjCard",WW],["SjCardFloat",qW],["SjLike",YW],["SjListOfIndexCommend",XW],["SjPlaylist",ZW],["SkeletonCard",JW],["SplashDialog",QW],["TextTimePicker",eq],["TimelineAttachmentCard",tq],["TimelineAttachmentList",nq],["TimelineCard",rq],["TimelineCardSkeleton",sq],["TimelineContentCard",iq],["TimelineMenu",oq],["TimelineReplyCard",aq],["TimelineReplyChildrenSheet",lq],["TimelineReplyDialog",uq],["TimelineReplyInput",cq],["TimelineReplyList",dq],["TimelineReplyMenu",fq],["TimelineReplySuggest",hq],["UploadFiles",pq],["UserAuditPostDialog",mq],["UserAvatar",vq],["UserBuyPostConfirmDialog",gq],["UserCardCredits",yq],["UserCreditCard",xq],["UserEditDialog",bq],["UserFollowButton",_q],["UserFollowersList",Sq],["UserFollowingList",Eq],["UserLogout",wq],["UserPasswordDialog",Tq],["UserPostRewardDialog",Cq],["UserProfileForm",Aq],["UserProfileFormContent",kq],["UserRechargeCard",Iq],["UserVerifyDialog",Lq],["UserWithdrawCard",Dq],["VideoArt",Pq],["VodCard",Rq],["VodCardFloat",Oq],["VodListInfiniteScroll",$q],["VodPayDialog",Mq],["WelcomeDialog",Fq],["WithdrawDialog",Bq],["Tabs",Nq],["Icon",Vq]],jq=mi({name:"nuxt:global-components",setup(e){for(const[t,n]of Uq)e.vueApp.component(t,n),e.vueApp.component("Lazy"+t,n)}}),il={auth:Ke(()=>Te(()=>Promise.resolve().then(()=>oLe),void 0,import.meta.url).then(e=>e.default||e)),default:Ke(()=>Te(()=>Promise.resolve().then(()=>uLe),void 0,import.meta.url).then(e=>e.default||e))};function zq(e){if(e?.__asyncLoader&&!e.__asyncResolved)return e.__asyncLoader()}async function _3(e,t=Tt()){const{path:n,matched:r}=t.resolve(e);if(!r.length||(t._routePreloaded||=new Set,t._routePreloaded.has(n)))return;const s=t._preloadPromises||=[];if(s.length>4)return Promise.all(s).then(()=>_3(e,t));t._routePreloaded.add(n);for(const i of r){const o=i.components?.default;if(typeof o!="function")continue;const a=Promise.resolve(o()).catch(()=>{}).finally(()=>s.splice(s.indexOf(a)));s.push(a)}await Promise.all(s)}const Hq=mi({name:"nuxt:prefetch",setup(e){const t=Tt();e.hooks.hook("app:mounted",()=>{t.beforeEach(async n=>{const r=n?.meta?.layout;r&&typeof il[r]=="function"&&await il[r]()})}),e.hooks.hook("link:prefetch",n=>{if(Pu(n))return;const r=t.resolve(n);if(!r)return;const s=r.meta.layout;let i=T_(r.meta.middleware);i=i.filter(o=>typeof o=="string");for(const o of i)typeof Bb[o]=="function"&&Bb[o]();typeof s=="string"&&s in il&&zq(il[s])})}}),S3=/^[a-z0-9]+(-[a-z0-9]+)*$/,Oh=(e,t,n,r="")=>{const s=e.split(":");if(e.slice(0,1)==="@"){if(s.length<2||s.length>3)return null;r=s.shift().slice(1)}if(s.length>3||!s.length)return null;if(s.length>1){const a=s.pop(),l=s.pop(),u={provider:s.length>0?s[0]:r,prefix:l,name:a};return t&&!fm(u)?null:u}const i=s[0],o=i.split("-");if(o.length>1){const a={provider:r,prefix:o.shift(),name:o.join("-")};return t&&!fm(a)?null:a}if(n&&r===""){const a={provider:r,prefix:"",name:i};return t&&!fm(a,n)?null:a}return null},fm=(e,t)=>
8e?!!((t&&e.prefix===""||e.prefix)&&e.name):!1,E3=Object.freeze({left:0,top:0,width:16,height:16}),Tv=Object.freeze({rotate:0,vFlip:!1,hFlip:!1}),ud=Object.freeze({...E3,...Tv}),Nb=Object.freeze({...ud,body:"",hidden:!1});function Gq(e,t){const n={};!e.hFlip!=!t.hFlip&&(n.hFlip=!0),!e.vFlip!=!t.vFlip&&(n.vFlip=!0);const r=((e.rotate||0)+(t.rotate||0))%4;return r&&(n.rotate=r),n}function YC(e,t){const n=Gq(e,t);for(const r in Nb)r in Tv?r in e&&!(r in n)&&(n[r]=Tv[r]):r in t?n[r]=t[r]:r in e&&(n[r]=e[r]);return n}function Kq(e,t){const n=e.icons,r=e.aliases||Object.create(null),s=Object.create(null);function i(o){if(n[o])return s[o]=[];if(!(o in s)){s[o]=null;const a=r[o]&&r[o].parent,l=a&&i(a);l&&(s[o]=[a].concat(l))}return s[o]}return Object.keys(n).concat(Object.keys(r)).forEach(i),s}function Wq(e,t,n){const r=e.icons,s=e.aliases||Object.create(null);let i={};function o(a){i=YC(r[a]||s[a],i)}return o(t),n.forEach(o),YC(e,i)}function w3(e,t){const n=[];if(typeof e!="object"||typeof e.icons!="object")return n;e.not_found instanceof Array&&e.not_found.forEach(s=>{t(s,null),n.push(s)});const r=Kq(e);for(const s in r){const i=r[s];i&&(t(s,Wq(e,s,i)),n.push(s))}return n}const qq={provider:"",aliases:{},not_found:{},...E3};function R1(e,t){for(const n in t)if(n in e&&typeof e[n]!=typeof t[n])return!1;return!0}function T3(e){if(typeof e!="object"||e===null)return null;const t=e;if(typeof t.prefix!="string"||!e.icons||typeof e.icons!="object"||!R1(e,qq))return null;const n=t.icons;for(const s in n){const i=n[s];if(!s||typeof i.body!="string"||!R1(i,Nb))return null}const r=t.aliases||Object.create(null);for(const s in r){const i=r[s],o=i.parent;if(!s||typeof o!="string"||!n[o]&&!r[o]||!R1(i,Nb))return null}return t}const XC=Object.create(null);function Yq(e,t){return{provider:e,prefix:t,icons:Object.create(null),missing:new Set}}function gu(e,t){const n=XC[e]||(XC[e]=Object.create(null));return n[t]||(n[t]=Yq(e,t))}function C3(e,t){return T3(t)?w3(t,(n,r)=>{r?e.icons[n]=r:e.missing.add(n)}):[]}function Xq(e,t,n){try{if(typeof n.body=="string")return e.icons[t]={...n},!0}catch{}return!1}let Kf=!1;function A3(e){return typeof e=="boolean"&&(Kf=e),Kf}function Y_(e){const t=typeof e=="string"?Oh(e,!0,Kf):e;if(t){const n=gu(t.provider,t.prefix),r=t.name;return n.icons[r]||(n.missing.has(r)?null:void 0)}}function X_(e,t){const n=Oh(e,!0,Kf);if(!n)return!1;const r=gu(n.provider,n.prefix);return t?Xq(r,n.name,t):(r.missing.add(n.name),!0)}function Zq(e,t){if(typeof e!="object")return!1;if(typeof t!="string"&&(t=e.provider||""),Kf&&!t&&!e.prefix){let s=!1;return T3(e)&&(e.prefix="",w3(e,(i,o)=>{X_(i,o)&&(s=!0)})),s}const n=e.prefix;if(!fm({prefix:n,name:"a"}))return!1;const r=gu(t,n);return!!C3(r,e)}function Vb(e){const t=Y_(e);return t&&{...ud,...t}}const k3=Object.freeze({width:null,height:null}),I3=Object.freeze({...k3,...Tv}),Jq=/(-?[0-9.]*[0-9]+[0-9.]*)/g,Qq=/^-?[0-9.]*[0-9]+[0-9.]*$/g;function ZC(e,t,n){if(t===1)return e;if(n=n||100,typeof e=="number")return Math.ceil(e*t*n)/n;if(typeof e!="string")return e;const r=e.split(Jq);if(r===null||!r.length)return e;const s=[];let i=r.shift(),o=Qq.test(i);for(;;){if(o){const a=parseFloat(i);isNaN(a)?s.push(i):s.push(Math.ceil(a*t*n)/n)}else s.push(i);if(i=r.shift(),i===void 0)return s.join("");o=!o}}function eY(e,t="defs"){let n="";const r=e.indexOf("<"+t);for(;r>=0;){const s=e.indexOf(">",r),i=e.indexOf("</"+t);if(s===-1||i===-1)break;const o=e.indexOf(">",i);if(o===-1)break;n+=e.slice(s+1,i).trim(),e=e.slice(0,r).trim()+e.slice(o+1)}return{defs:n,content:e}}function tY(e,t){return e?"<defs>"+e+"</defs>"+t:t}function nY(e,t,n){const r=eY(e);return tY(r.defs,t+r.content+n)}const rY=e=>e==="unset"||e==="undefined"||e==="none";function sY(e,t){const n={...ud,...e},r={...I3,...t},s={left:n.left,top:n.top,width:n.width,height:n.height};let i=n.body;[n,r].forEach(m=>{const v=[],x=m.hFlip,g=m.vFlip;let y=m.rotate;x?g?y+=2:(v.push("translate("+(s.width+s.left).toString()+" "+(0-s.top).toString()+")"),v.push("scale(-1 1)"),s.top=s.left=0):g&&(v.push("translate("+(0-s.left).toString()+" "+(s.height+s.top).toString()+")"),v.push("scale(1 -1)"),s.top=s.left=0);let _;switch(y<0&&(y-=Math.floor(y/4)*4),y=y%4,y){case 1:_=s.height/2+s.top,v.unshift("rotate(90 "+_.toString()+" "+_.toString()+")");break;case 2:v.unshift("rotate(180 "+(s.width/2+s.left).toString()+" "+(s.height/2+s.top).toString()+")");break;case 3:_=s.width/2+s.left,v.unshift("rotate(-90 "+_.toString()+" "+_.toString()+")");break}y%2===1&&(s.left!==s.top&&(_=s.left,s.left=s.top,s.top=_),s.width!==s.height&&(_=s.width,s.width=s.height,s.height=_)),v.length&&(i=nY(i,'<g transform="'+v.join(" ")+'">',"</g>"))});const o=r.width,a=r.height,l=s.width,u=s.height;
8let c,d;o===null?(d=a===null?"1em":a==="auto"?u:a,c=ZC(d,l/u)):(c=o==="auto"?l:o,d=a===null?ZC(c,u/l):a==="auto"?u:a);const f={},h=(m,v)=>{rY(v)||(f[m]=v.toString())};h("width",c),h("height",d);const p=[s.left,s.top,l,u];return f.viewBox=p.join(" "),{attributes:f,viewBox:p,body:i}}const iY=/\sid="(\S+)"/g,oY="IconifyId"+Date.now().toString(16)+(Math.random()*16777216|0).toString(16);let aY=0;function lY(e,t=oY){const n=[];let r;for(;r=iY.exec(e);)n.push(r[1]);if(!n.length)return e;const s="suffix"+(Math.random()*16777216|Date.now()).toString(16);return n.forEach(i=>{const o=typeof t=="function"?t(i):t+(aY++).toString(),a=i.replace(/[.*+?^${}()|[\]\\]/g,"\\$&");e=e.replace(new RegExp('([#;"])('+a+')([")]|\\.[a-z])',"g"),"$1"+o+s+"$3")}),e=e.replace(new RegExp(s,"g"),""),e}const Ub=Object.create(null);function L3(e,t){Ub[e]=t}function jb(e){return Ub[e]||Ub[""]}function Z_(e){let t;if(typeof e.resources=="string")t=[e.resources];else if(t=e.resources,!(t instanceof Array)||!t.length)return null;return{resources:t,path:e.path||"/",maxURL:e.maxURL||500,rotate:e.rotate||750,timeout:e.timeout||5e3,random:e.random===!0,index:e.index||0,dataAfterTimeout:e.dataAfterTimeout!==!1}}const Zg=Object.create(null),$d=["https://api.simplesvg.com","https://api.unisvg.com"],hm=[];for(;$d.length>0;)$d.length===1||Math.random()>.5?hm.push($d.shift()):hm.push($d.pop());Zg[""]=Z_({resources:["https://api.iconify.design"].concat(hm)});function D3(e,t){const n=Z_(t);return n===null?!1:(Zg[e]=n,!0)}function Jg(e){return Zg[e]}function uY(){return Object.keys(Zg)}const cY=()=>{let e;try{if(e=fetch,typeof e=="function")return e}catch{}};let Cv=cY();function dY(e){Cv=e}function fY(){return Cv}function hY(e,t){const n=Jg(e);if(!n)return 0;let r;if(!n.maxURL)r=0;else{let s=0;n.resources.forEach(o=>{s=Math.max(s,o.length)});const i=t+".json?icons=";r=n.maxURL-s-n.path.length-i.length}return r}function pY(e){return e===404}const mY=(e,t,n)=>{const r=[],s=hY(e,t),i="icons";let o={type:i,provider:e,prefix:t,icons:[]},a=0;return n.forEach((l,u)=>{a+=l.length+1,a>=s&&u>0&&(r.push(o),o={type:i,provider:e,prefix:t,icons:[]},a=l.length),o.icons.push(l)}),r.push(o),r};function vY(e){if(typeof e=="string"){const t=Jg(e);if(t)return t.path}return"/"}const gY=(e,t,n)=>{if(!Cv){n("abort",424);return}let r=vY(t.provider);switch(t.type){case"icons":{const i=t.prefix,a=t.icons.join(","),l=new URLSearchParams({icons:a});r+=i+".json?"+l.toString();break}case"custom":{const i=t.uri;r+=i.slice(0,1)==="/"?i.slice(1):i;break}default:n("abort",400);return}let s=503;Cv(e+r).then(i=>{const o=i.status;if(o!==200){setTimeout(()=>{n(pY(o)?"abort":"next",o)});return}return s=501,i.json()}).then(i=>{if(typeof i!="object"||i===null){setTimeout(()=>{i===404?n("abort",i):n("next",s)});return}setTimeout(()=>{n("success",i)})}).catch(()=>{n("next",s)})},yY={prepare:mY,send:gY};function xY(e){const t={loaded:[],missing:[],pending:[]},n=Object.create(null);e.sort((s,i)=>s.provider!==i.provider?s.provider.localeCompare(i.provider):s.prefix!==i.prefix?s.prefix.localeCompare(i.prefix):s.name.localeCompare(i.name));let r={provider:"",prefix:"",name:""};return e.forEach(s=>{if(r.name===s.name&&r.prefix===s.prefix&&r.provider===s.provider)return;r=s;const i=s.provider,o=s.prefix,a=s.name,l=n[i]||(n[i]=Object.create(null)),u=l[o]||(l[o]=gu(i,o));let c;a in u.icons?c=t.loaded:o===""||u.missing.has(a)?c=t.missing:c=t.pending;const d={provider:i,prefix:o,name:a};c.push(d)}),t}function P3(e,t){e.forEach(n=>{const r=n.loaderCallbacks;r&&(n.loaderCallbacks=r.filter(s=>s.id!==t))})}function bY(e){e.pendingCallbacksFlag||(e.pendingCallbacksFlag=!0,setTimeout(()=>{e.pendingCallbacksFlag=!1;const t=e.loaderCallbacks?e.loaderCallbacks.slice(0):[];if(!t.length)return;let n=!1;const r=e.provider,s=e.prefix;t.forEach(i=>{const o=i.icons,a=o.pending.length;o.pending=o.pending.filter(l=>{if(l.prefix!==s)return!0;const u=l.name;if(e.icons[u])o.loaded.push({provider:r,prefix:s,name:u});else if(e.missing.has(u))o.missing.push({provider:r,prefix:s,name:u});else return n=!0,!0;return!1}),o.pending.length!==a&&(n||P3([e],i.id),i.callback(o.loaded.slice(0),o.missing.slice(0),o.pending.slice(0),i.abort))})}))}let _Y=0;function SY(e,t,n){const r=_Y++,s=P3.bind(null,n,r);if(!t.pending.length)return s;const i={id:r,icons:t,callback:e,abort:s};
8return n.forEach(o=>{(o.loaderCallbacks||(o.loaderCallbacks=[])).push(i)}),s}function EY(e,t=!0,n=!1){const r=[];return e.forEach(s=>{const i=typeof s=="string"?Oh(s,t,n):s;i&&r.push(i)}),r}var wY={resources:[],index:0,timeout:2e3,rotate:750,random:!1,dataAfterTimeout:!1};function TY(e,t,n,r){const s=e.resources.length,i=e.random?Math.floor(Math.random()*s):e.index;let o;if(e.random){let w=e.resources.slice(0);for(o=[];w.length>1;){const T=Math.floor(Math.random()*w.length);o.push(w[T]),w=w.slice(0,T).concat(w.slice(T+1))}o=o.concat(w)}else o=e.resources.slice(i).concat(e.resources.slice(0,i));const a=Date.now();let l="pending",u=0,c,d=null,f=[],h=[];typeof r=="function"&&h.push(r);function p(){d&&(clearTimeout(d),d=null)}function m(){l==="pending"&&(l="aborted"),p(),f.forEach(w=>{w.status==="pending"&&(w.status="aborted")}),f=[]}function v(w,T){T&&(h=[]),typeof w=="function"&&h.push(w)}function x(){return{startTime:a,payload:t,status:l,queriesSent:u,queriesPending:f.length,subscribe:v,abort:m}}function g(){l="failed",h.forEach(w=>{w(void 0,c)})}function y(){f.forEach(w=>{w.status==="pending"&&(w.status="aborted")}),f=[]}function _(w,T,C){const I=T!=="success";switch(f=f.filter(k=>k!==w),l){case"pending":break;case"failed":if(I||!e.dataAfterTimeout)return;break;default:return}if(T==="abort"){c=C,g();return}if(I){c=C,f.length||(o.length?E():g());return}if(p(),y(),!e.random){const k=e.resources.indexOf(w.resource);k!==-1&&k!==e.index&&(e.index=k)}l="completed",h.forEach(k=>{k(C)})}function E(){if(l!=="pending")return;p();const w=o.shift();if(w===void 0){if(f.length){d=setTimeout(()=>{p(),l==="pending"&&(y(),g())},e.timeout);return}g();return}const T={status:"pending",resource:w,callback:(C,I)=>{_(T,C,I)}};f.push(T),u++,d=setTimeout(E,e.rotate),n(w,t,T.callback)}return setTimeout(E),x}function R3(e){const t={...wY,...e};let n=[];function r(){n=n.filter(a=>a().status==="pending")}function s(a,l,u){const c=TY(t,a,l,(d,f)=>{r(),u&&u(d,f)});return n.push(c),c}function i(a){return n.find(l=>a(l))||null}return{query:s,find:i,setIndex:a=>{t.index=a},getIndex:()=>t.index,cleanup:r}}function JC(){}const O1=Object.create(null);function CY(e){if(!O1[e]){const t=Jg(e);if(!t)return;const n=R3(t),r={config:t,redundancy:n};O1[e]=r}return O1[e]}function O3(e,t,n){let r,s;if(typeof e=="string"){const i=jb(e);if(!i)return n(void 0,424),JC;s=i.send;const o=CY(e);o&&(r=o.redundancy)}else{const i=Z_(e);if(i){r=R3(i);const o=e.resources?e.resources[0]:"",a=jb(o);a&&(s=a.send)}}return!r||!s?(n(void 0,424),JC):r.query(t,s,n)().abort}function QC(){}function AY(e){e.iconsLoaderFlag||(e.iconsLoaderFlag=!0,setTimeout(()=>{e.iconsLoaderFlag=!1,bY(e)}))}function kY(e){const t=[],n=[];return e.forEach(r=>{(r.match(S3)?t:n).push(r)}),{valid:t,invalid:n}}function Md(e,t,n){function r(){const s=e.pendingIcons;t.forEach(i=>{s&&s.delete(i),e.icons[i]||e.missing.add(i)})}if(n&&typeof n=="object")try{if(!C3(e,n).length){r();return}}catch(s){console.error(s)}r(),AY(e)}function eA(e,t){e instanceof Promise?e.then(n=>{t(n)}).catch(()=>{t(null)}):t(e)}function IY(e,t){e.iconsToLoad?e.iconsToLoad=e.iconsToLoad.concat(t).sort():e.iconsToLoad=t,e.iconsQueueFlag||(e.iconsQueueFlag=!0,setTimeout(()=>{e.iconsQueueFlag=!1;const{provider:n,prefix:r}=e,s=e.iconsToLoad;if(delete e.iconsToLoad,!s||!s.length)return;const i=e.loadIcon;if(e.loadIcons&&(s.length>1||!i)){eA(e.loadIcons(s,r,n),c=>{Md(e,s,c)});return}if(i){s.forEach(c=>{const d=i(c,r,n);eA(d,f=>{const h=f?{prefix:r,icons:{[c]:f}}:null;Md(e,[c],h)})});return}const{valid:o,invalid:a}=kY(s);if(a.length&&Md(e,a,null),!o.length)return;const l=r.match(S3)?jb(n):null;if(!l){Md(e,o,null);return}
8l.prepare(n,r,o).forEach(c=>{O3(n,c,d=>{Md(e,c.icons,d)})})}))}const $3=(e,t)=>{const n=EY(e,!0,A3()),r=xY(n);if(!r.pending.length){let l=!0;return t&&setTimeout(()=>{l&&t(r.loaded,r.missing,r.pending,QC)}),()=>{l=!1}}const s=Object.create(null),i=[];let o,a;return r.pending.forEach(l=>{const{provider:u,prefix:c}=l;if(c===a&&u===o)return;o=u,a=c,i.push(gu(u,c));const d=s[u]||(s[u]=Object.create(null));d[c]||(d[c]=[])}),r.pending.forEach(l=>{const{provider:u,prefix:c,name:d}=l,f=gu(u,c),h=f.pendingIcons||(f.pendingIcons=new Set);h.has(d)||(h.add(d),s[u][c].push(d))}),i.forEach(l=>{const u=s[l.provider][l.prefix];u.length&&IY(l,u)}),t?SY(t,r,i):QC},LY=e=>new Promise((t,n)=>{const r=typeof e=="string"?Oh(e,!0):e;if(!r){n(e);return}$3([r||e],s=>{if(s.length&&r){const i=Y_(r);if(i){t({...ud,...i});return}}n(e)})});function DY(e,t,n){gu("",t).loadIcons=e}function PY(e,t){const n={...e};for(const r in t){const s=t[r],i=typeof s;r in k3?(s===null||s&&(i==="string"||i==="number"))&&(n[r]=s):i===typeof n[r]&&(n[r]=r==="rotate"?s%4:s)}return n}const RY=/[\s,]+/;function OY(e,t){t.split(RY).forEach(n=>{switch(n.trim()){case"horizontal":e.hFlip=!0;break;case"vertical":e.vFlip=!0;break}})}function $Y(e,t=0){const n=e.replace(/^-?[0-9.]*/,"");function r(s){for(;s<0;)s+=4;return s%4}if(n===""){const s=parseInt(e);return isNaN(s)?0:r(s)}else if(n!==e){let s=0;switch(n){case"%":s=25;break;case"deg":s=90}if(s){let i=parseFloat(e.slice(0,e.length-n.length));return isNaN(i)?0:(i=i/s,i%1===0?r(i):0)}}return t}function MY(e,t){let n=e.indexOf("xlink:")===-1?"":' xmlns:xlink="http://www.w3.org/1999/xlink"';for(const r in t)n+=" "+r+'="'+t[r]+'"';return'<svg xmlns="http://www.w3.org/2000/svg"'+n+">"+e+"</svg>"}function FY(e){return e.replace(/"/g,"'").replace(/%/g,"%25").replace(/#/g,"%23").replace(/</g,"%3C").replace(/>/g,"%3E").replace(/\s+/g," ")}function BY(e){return"data:image/svg+xml,"+FY(e)}function NY(e){return'url("'+BY(e)+'")'}const tA={...I3,inline:!1},VY={xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink","aria-hidden":!0,role:"img"},UY={display:"inline-block"},zb={backgroundColor:"currentColor"},M3={backgroundColor:"transparent"},nA={Image:"var(--svg)",Repeat:"no-repeat",Size:"100% 100%"},rA={webkitMask:zb,mask:zb,background:M3};for(const e in rA){const t=rA[e];for(const n in nA)t[e+n]=nA[n]}const pm={};["horizontal","vertical"].forEach(e=>{const t=e.slice(0,1)+"Flip";pm[e+"-flip"]=t,pm[e.slice(0,1)+"-flip"]=t,pm[e+"Flip"]=t});function sA(e){return e+(e.match(/^[-0-9.]+$/)?"px":"")}const iA=(e,t)=>{const n=PY(tA,t),r={...VY},s=t.mode||"svg",i={},o=t.style,a=typeof o=="object"&&!(o instanceof Array)?o:{};for(let m in t){const v=t[m];
8if(v!==void 0)switch(m){case"icon":case"style":case"onLoad":case"mode":case"ssr":break;case"inline":case"hFlip":case"vFlip":n[m]=v===!0||v==="true"||v===1;break;case"flip":typeof v=="string"&&OY(n,v);break;case"color":i.color=v;break;case"rotate":typeof v=="string"?n[m]=$Y(v):typeof v=="number"&&(n[m]=v);break;case"ariaHidden":case"aria-hidden":v!==!0&&v!=="true"&&delete r["aria-hidden"];break;default:{const x=pm[m];x?(v===!0||v==="true"||v===1)&&(n[x]=!0):tA[m]===void 0&&(r[m]=v)}}}const l=sY(e,n),u=l.attributes;if(n.inline&&(i.verticalAlign="-0.125em"),s==="svg"){r.style={...i,...a},Object.assign(r,u);let m=0,v=t.id;return typeof v=="string"&&(v=v.replace(/-/g,"_")),r.innerHTML=lY(l.body,v?()=>v+"ID"+m++:"iconifyVue"),Dt("svg",r)}const{body:c,width:d,height:f}=e,h=s==="mask"||(s==="bg"?!1:c.indexOf("currentColor")!==-1),p=MY(c,{...u,width:d+"",height:f+""});return r.style={...i,"--svg":NY(p),width:sA(u.width),height:sA(u.height),...UY,...h?zb:M3,...a},Dt("span",r)};A3(!0);L3("",yY);if(typeof document<"u"&&typeof window<"u"){const e=window;if(e.IconifyPreload!==void 0){const t=e.IconifyPreload,n="Invalid IconifyPreload syntax.";typeof t=="object"&&t!==null&&(t instanceof Array?t:[t]).forEach(r=>{try{(typeof r!="object"||r===null||r instanceof Array||typeof r.icons!="object"||typeof r.prefix!="string"||!Zq(r))&&console.error(n)}catch{console.error(n)}})}if(e.IconifyProviders!==void 0){const t=e.IconifyProviders;if(typeof t=="object"&&t!==null)for(let n in t){const r="IconifyProviders["+n+"] is invalid.";try{const s=t[n];if(typeof s!="object"||!s||s.resources===void 0)continue;D3(n,s)||console.error(r)}catch{console.error(r)}}}}const jY={...ud,body:""},zY=ke((e,{emit:t})=>{const n=M(null);function r(){n.value&&(n.value.abort?.(),n.value=null)}const s=M(!!e.ssr),i=M(""),o=Ze(null);function a(){const u=e.icon;if(typeof u=="object"&&u!==null&&typeof u.body=="string")return i.value="",{data:u};let c;if(typeof u!="string"||(c=Oh(u,!1,!0))===null)return null;let d=Y_(c);if(!d){const p=n.value;return(!p||p.name!==u)&&(d===null?n.value={name:u}:n.value={name:u,abort:$3([c],l)}),null}r(),i.value!==u&&(i.value=u,tt(()=>{t("load",u)}));const f=e.customise;if(f){d=Object.assign({},d);const p=f(d.body,c.name,c.prefix,c.provider);typeof p=="string"&&(d.body=p)}const h=["iconify"];return c.prefix!==""&&h.push("iconify--"+c.prefix),c.provider!==""&&h.push("iconify--"+c.provider),{data:d,classes:h}}function l(){const u=a();u?u.data!==o.value?.data&&(o.value=u):o.value=null}return s.value?l():ft(()=>{s.value=!0,l()}),be(()=>e.icon,l),Er(r),()=>{const u=o.value;if(!u)return iA(jY,e);let c=e;return u.classes&&(c={...e,class:u.classes.join(" ")}),iA({...ud,...u.data},c)}},{props:["icon","mode","ssr","width","height","style","color","inline","rotate","hFlip","horizontalFlip","vFlip","verticalFlip","flip","id","ariaHidden","customise","title"],emits:["load"]}),oA={getAPIConfig:Jg,setAPIModule:L3,sendAPIQuery:O3,setFetch:dY,getFetch:fY,listAPIProviders:uY},HY={nuxt:{},icon:{provider:"iconify",class:"",aliases:{},iconifyApiEndpoint:"https://api.iconify.design",localApiEndpoint:"/api/_nuxt_icon",fallbackToApi:!0,cssSelectorPrefix:"i-",cssWherePseudo:!0,mode:"css",attrs:{"aria-hidden":!0},collections:["academicons","akar-icons","ant-design","arcticons","basil","bi","bitcoin-icons","bpmn","brandico","bx","bxl","bxs","bytesize","carbon","catppuccin","cbi","charm","ci","cib","cif","cil","circle-flags","circum","clarity","codicon","covid","cryptocurrency","cryptocurrency-color","dashicons","devicon","devicon-plain","ei","el","emojione","emojione-monotone","emojione-v1","entypo","entypo-social","eos-icons","ep","et","eva","f7","fa","fa-brands","fa-regular","fa-solid","fa6-brands","fa6-regular","fa6-solid","fad","fe","feather","file-icons","flag","flagpack","flat-color-icons","flat-ui","flowbite","fluent","fluent-emoji","fluent-emoji-flat","fluent-emoji-high-contrast","fluent-mdl2","fontelico","fontisto","formkit","foundation","fxemoji","gala","game-icons","geo","gg","gis","gravity-ui","gridicons","grommet-icons","guidance","healthicons","heroicons","heroicons-outline","heroicons-solid","hugeicons","humbleicons","ic","icomoon-free","icon-park","icon-park-outline","icon-park-solid","icon-park-twotone","iconamoon","iconoir","icons8","il","ion","iwwa","jam","la","lets-icons","line-md","logos","ls","lucide","lucide-lab","mage","majesticons","maki","map","marketeq","material-symbols","material-symbols-light","mdi","mdi-light","medical-icon","memory","meteocons","mi","mingcute","mono-icons","mynaui","nimbus","nonicons","noto","noto-v1","octicon","oi","ooui","openmoji","oui","pajamas","pepicons","pepicons-pencil","pepicons-pop","pepicons-print","ph","pixelarticons","prime","ps","quill","radix-icons","raphael","ri","rivet-icons","si-glyph","simple-icons","simple-line-icons","skill-icons","solar","streamline","streamline-emojis","subway","svg-spinners","system-uicons","tabler","tdesign","teenyicons","token","token-branded","topcoat","twemoji","typcn","uil","uim","uis","uit","uiw","unjs","vaadin","vs","vscode-icons","websymbol","weui","whh","wi","wpf","zmdi","zondicons"],fetchTimeout:1500}},GY=xV(HY);function $h(){const e=wt();return e._appConfig||=Wt(GY),e._appConfig}const KY=mi({name:"@nuxt/icon",setup(){const e=Zr(),t=$h().icon;oA.setFetch($fetch.native);const n=[];if(t.provider==="server"){const s=e.app?.baseURL?.replace(/\/$/,"")??"";n.push(s+(t.localApiEndpoint||"/api/_nuxt_icon")),(t.fallbackToApi===!0||t.fallbackToApi==="client-only")&&n.push(t.iconifyApiEndpoint)}else t.provider==="none"?oA.setFetch(()=>Promise.resolve(new Response)):n.push(t.iconifyApiEndpoint);async function r(s,i){try{const o=await $fetch(n[0]+"/"+i+".json",{query:{icons:s.join(",")}});if(!o||o.prefix!==i||!o.icons)throw new Error("Invalid data"+JSON.stringify(o));return o}catch(o){return console.error("Failed to load custom icons",o),null}}D3("",{resources:n});for(const s of t.customCollections||[])s&&DY(r,s)}});(function(e,t){const n=Za,r=e();for(;;)try{if(-parseInt(n(506))/1*(-parseInt(n(504))/2)+-parseInt(n(491))/3*(parseInt(n(501))/4)+-parseInt(n(497))/5+parseInt(n(494))/6+-parseInt(n(511))/7+-parseInt(n(500))/8+parseInt(n(507))/9===t)break;r.push(r.shift())}catch{r.push(r.shift())}})(Av,15293*61+126060+-476133);function Za(e,t){const n=Av();return Za=function(r,s){r=r-(-3423+1*9587+1*-5673);let i=n[r];if(Za.aGJtzs===void 0){var o=function(c){const d="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789
8+/=";let f="",h="";for(let p=0,m,v,x=0;v=c.charAt(x++);~v&&(m=p%4?m*64+v:v,p++%4)?f+=String.fromCharCode(255&m>>(-2*p&6)):0)v=d.indexOf(v);for(let p=0,m=f.length;p<m;p++)h+="%"+("00"+f.charCodeAt(p).toString(16)).slice(-2);return decodeURIComponent(h)};Za.vXevov=o,e=arguments,Za.aGJtzs=!0}const a=n[3010+-10*301],l=r+a,u=e[l];return u?i=u:(i=Za.vXevov(i),e[l]=i),i},Za(e,t)}const WY=mi(()=>{const e=Za,t={XrZyD:"devic"+e(503)+e(510),JBDHv:e(519)+"tel",KyNDT:function(n,r){return n>r},VLfNu:e(508),sgTfy:"android",EGzLI:function(n){return n()}};{const n=()=>{const s=e,i=r["getDeviceT"+s(512)]();document.body.classList.add(s(518)+"e-"+i),r[s(515)+s(510)]()&&document[s(505)][s(513)+s(502)].add(t[s(509)])},r={isIOS(){const s=e;return/iPhone|iPad|iPod/i.test(navigator.userAgent)||navigator.platform===t[s(517)]&&t.KyNDT(navigator[s(492)+"uchPo"+s(516)],1)},isAndroid(){return/Android/i.test(navigator.userAgent)},isMobile(){return this.isIOS()||this.isAndroid()},isPC(){return!this["isMob"+e(510)]()},isSafari(){const s=e,i=navigator[s(493)+"gent"];return/MicroMessenger|QQ\/|QQBrowser|UCBrowser|baiduboxapp|weibo|toutiao|DingTalk|AlipayClient/i.test(i)?!1:this[s(514)]()?/WebKit/i.test(i)&&!/CriOS|FxiOS|EdgiOS|OPiOS|GSA/i[s(499)](i):/^((?!chrome|android|crios|fxios).)*safari/i.test(i)},getDeviceType(){const s=e;return this.isIOS()?t.VLfNu:this[s(498)+s(495)]()?t[s(496)]:"pc"}};return t.EGzLI(n),{provide:{device:r}}}});function Av(){const e=["AwXL","mJK3mZa2mxjgAeXXCW","ExbL","y2XHC3m","Axnjt1m","AxnnB2i","Aw50CW","sKjeshy","zgv2Awm","twfJsw4","m3H3vgzSsa","Bwf4vg8","DxnLCKe","ntC4ota3mfjIufDgEG","CM9Pza","C2DuzNK","mZy5nJGWmhHNCxjyqG","AxnbBMq","DgvZDa","mtC5mZyXnLzhDgHqza","odmZnZqWDfLIs1Py","tgLZDa","zs1TB2i","mZrbEMnirvy","yM9KEq","nteXmtvXsw1PBgu","mZeXmtq4mgnKqKLUDq","Aw9Z","whjAEuq"];return Av=function(){return e},Av()}const $l={MAX_JUMP_TIME:5e3,MAX_COMPRESSED_SIZE:4e3,TRANSFER_PARAM_KEY:"td",STORAGE_KEYS:["browse-history","player-settings","reader-settings"],COOKIE_KEYS:["xauth","xd","xld","_t","land"]};function F3(){let e=Date.now(),t=null;const n=Tt(),r={compress:d=>{try{const f=JSON.stringify(d),h=Oj(Bj(f),{level:9});return{size:h.length,data:vl.encodeURI(String.fromCharCode.apply(null,Array.from(h)))}}catch(f){return console.error("TkDataCompressError:",f),null}},decompress:d=>{try{const f=vl.decode(d),h=new Uint8Array(f.split("").map(v=>v.charCodeAt(0))),p=$j(h),m=Nj(p);return JSON.parse(m)}catch(f){throw console.error("TkDataDecompressError:",f),f}}},s=d=>{const f=document.cookie.split("; ").find(h=>h.startsWith(`${d}=`))?.split("=")[1];return f?decodeURIComponent(f):null},i={getStorageData:()=>$l.STORAGE_KEYS.map(d=>{const f=localStorage.getItem(d);return f?[d,f]:null}).filter(Boolean),getCookieData:()=>$l.COOKIE_KEYS.map(d=>{const f=s(d);return f?[d,f]:null}).filter(Boolean)},o={shouldSkipJump:d=>{const{prod:f}=Zr().public;return!f||location.pathname.search(/html\/[a-z]{1,2}\d+\/?$/ig)>-1?!0:d.match(/^(127\.|localhost|192\.168\.|10\.1\.1)/ig)!==null||document.cookie.search(/_unjmp/ig)>-1},buildJumpUrl:(d,f,h)=>{const p=`//${d}:${f}${location.pathname}`,m=location.search,v=h?`${$l.TRANSFER_PARAM_KEY}=${encodeURIComponent(h)}`:"";return h?`${p}${m?m+"&":"?"}${v}`:`${p}${m}`},speedTest:async(d,f,h=5e3)=>{const p=Math.round(Date.now()/1e3).toString(),m=Math.round(Math.random()*1e8).toString(16),v=`__speed_${Math.random().toString(36).slice(2)}`,x=`//${d}:${f}/__speed?callback=${v}&time=${p}&rand=${m}`;return new Promise(g=>{const y=Date.now(),_=setTimeout(()=>{window[v]=null,g(1e4)},h);window[v]=w=>{clearTimeout(_);const T=Date.now()-y;try{if(a(w,p)!==m){g(1e4);return}g(T)}catch{g(1e4)}finally{window[v]=null}};const E=document.createElement("script");E.src=x,document.body.appendChild(E),E.onload=()=>{document.body.removeChild(E)}})},testAllHosts:async(d,f)=>{const h=d.map(v=>{const x=f[Math.floor(Math.random()*f.length)];return{host:v,port:x,promise:o.speedTest(v,x)}}),m=await Promise.race(h.map(async v=>{const x=await v.promise;return{host:v.host,port:v.port,speed:x}}));return{host:m.host,port:m.port}}};function a(d,f){let h="";try{d=decodeURIComponent(d)}catch{}for(let p=0;p<d.length;p++)h+=String.fromCharCode(f.charCodeAt(p%f.length)^d.charCodeAt(p));return h}n.afterEach(()=>{e=Date.now(),t&&c(t)});const l=async()=>{const d=Fn(),f=d.query[$l.TRANSFER_PARAM_KEY];if(f&&typeof f=="string")try{const h=r.decompress(f);if(h.st?.length&&h.st.forEach(([p,m])=>{localStorage.setItem(p,m)}
8),h.co?.length&&(h.co.forEach(([p,m])=>{document.cookie=`${p}=${encodeURIComponent(m)};path=/;max-age=${86400*300}`}),s("xauth"))){const{refreshAuth:p}=Ct();await p()}delete d.query[$l.TRANSFER_PARAM_KEY]}catch(h){console.error("DataParseError:",h)}},u=d=>{const f=d.split(".");return f.length<2?d:f.slice(-2).join(".")},c=async d=>{Date.now()-e<=$l.MAX_JUMP_TIME?(t&&(t=null),(()=>{const{hosts:p,keeps:m,ports:v}=d,x=location.hostname;if(m)try{const _=u(x).toLowerCase();for(const E of m)if(_==E.toLowerCase())return}catch(_){console.error("Error in top domain check:",_)}if((p?.length||0)<1){console.warn("No hosts provided for jump");return}if(o.shouldSkipJump(x)||p.some(_=>x.includes(_)))return;const g=i.getStorageData(),y=i.getCookieData();o.testAllHosts(p,v).then(({host:_,port:E})=>{if(!g.length&&!y.length){window.location.href=o.buildJumpUrl(_,E);return}const w={st:g,co:y},T=r.compress(w);if(T){if(T.size<=$l.MAX_COMPRESSED_SIZE){window.location.href=o.buildJumpUrl(_,E,T.data);return}if(y.length){const C=r.compress({co:y});if(C){console.warn("JumpData is too large, only transfer cookie data"),window.location.href=o.buildJumpUrl(_,E,C.data);return}}window.location.href=o.buildJumpUrl(_,E)}})})()):t=d};return{useJumps:c,checkJumpHandle:l}}(function(e,t){const n=Ja,r=e();for(;;)try{if(parseInt(n(373))/1*(-parseInt(n(378))/2)+-parseInt(n(356))/3+parseInt(n(364))/4+parseInt(n(366))/5*(-parseInt(n(350))/6)+parseInt(n(352))/7+parseInt(n(370))/8*(-parseInt(n(355))/9)+parseInt(n(336))/10===t)break;r.push(r.shift())}catch{r.push(r.shift())}})(kv,-39523*9+10*-40709+1*1032389);function Ja(e,t){const n=kv();return Ja=function(r,s){r=r-(-15883+-1*-16217);let i=n[r];if(Ja.yqLgDD===void 0){var o=function(c){const d="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=";let f="",h="";for(let p=0,m,v,x=0;v=c.charAt(x++);~v&&(m=p%4?m*64+v:v,p++%4)?f+=String.fromCharCode(255&m>>(-2*p&6)):0)v=d.indexOf(v);for(let p=0,m=f.length;p<m;p++)h+="%"+("00"+f.charCodeAt(p).toString(16)).slice(-2);return decodeURIComponent(h)};Ja.WBIqvc=o,e=arguments,Ja.yqLgDD=!0}const a=n[1*-1361+-11*667+-4349*-2],l=r+a,u=e[l];return u?i=u:(i=Ja.WBIqvc(i),e[l]=i),i},Ja(e,t)}const qY=mi({setup:e=>{const t=Ja,n={WtvtT:function(a,l){return a===l},pZasZ:function(a){return a()},oFZJG:function(a,l){return a(l)},qjGiF:t(362)+"1.2",zjweE:"10.1.1.4",vdSUX:function(a,l){return a>l},LLubm:function(a,l){return a!==l},bIuCa:"reportTJ error",QOFAI:function(a,l){return a(l)},XOwQU:t(334)+"t",FAiXW:function(a,l){return a==l},wjhBf:"error",AvUVi:function(a,l){return a in l},krgBQ:"data",awVCX:t(335),AZHDl:function(a,l,u){return a(l,u)},nwyMj:"success",hPOzo:function(a,l){return a===l},YBDxF:function(a,l,u,c){return a(l,u,c)}},{refreshAuth:r,user:s,setAuth:i}=Ct(),{useJumps:o}=n[t(349)](F3);return n[t(338)](Jz,()=>({Referer:location.href}),{prefix:a=>n.WtvtT(a,"ws")?"/1"+n.pZasZ(Rr):"/api/v1"},async(a,l)=>{const u=t,c={cwhww:function(m,v){return n.vdSUX(m,v)}},{error:d,extend:f={}}=a,{prod:h}=Zr().public;if((f?.[u(357)]||f?.[u(357)]===null)&&n[u(363)](i,f[u(357)]),window.j=()=>{const m=u;n.oFZJG(o,{hosts:[n.qjGiF,"10.1."+m(368),n[m(341)]],ports:[location.port]})},window.jumps&&(f.jumps=window[u(372)]),f?.["DEFINE"]){let m=!1;for(const v of Object[u(340)](f[u(342)+"E"]))n[u(348)](window[v],f[u(342)+"E"][v])&&(window[v]=f[u(342)+"E"][v],m=!0);if(m)try{window[u(351)+u(376)]?.()}catch(v){console.error(n.bIuCa,v)}}if(h&&f?.[u(372)]&&n.QOFAI(o,f[u(372)]),f?.["refresh"]){const m={auth:async()=>await r(),site:async()=>await ld()[u(339)+"shSite"]()},v=JSON[u(337)+"gify"](f[u(339)+"sh"]);for(const x of Object.keys(m))v.includes(x)&&await m[x]?.()}if(f?.[u(375)+"es"]){let m=f?.["cookies"]||[];typeof m!==n[u(371)]&&(m=[m]),m.forEach(v=>{const x=u;c[x(346)](v[x(359)+"h"](/=/),-1)&&(document.cookie=v)})}if(!l.silent&&d)if(n.FAiXW(d,-1))console[u(353)](n.wjhBf,a);else{const m=(n.AvUVi(n[u(344)],a)?a[u(369)]:a?.[u(374)+"ge"])||n[u(345)];n[u(354)](je,m,{type:n.WtvtT(d,0)?n.nwyMj:u(353),autoClose:5e3})}const p=n[u(349)](Tt);if(n.hPOzo(d,3308+-758*1+1*-2150)&&await p[u(377)+"ce"](u(347)+"/login"),d===-613*3+407+1432)return l?.["fullR"+u(367)+"se"]?a:f;throw a})}});function kv(){const e=["y29VA2K","Dfrk","CMvWBge","mteWmJq0vNHgwxPr","B2jQzwm","57o757UF6zsz6k+V","nZq1mJy3mgXhDfLPqG","C3rYAw4","
8wujeEey","CMvMCMu","A2v5CW","EMP3zuu","revgsu4","BwfPBNm","A3jNqLe","yxDwq1G","y3DOD3C","l2f1DgG","teX1yM0","CfPHC1O","mtH1venlCei","CMvWB3i","ntC1mJC0sxzNvu5N","zxjYB3i","qvPirgW","mJy4nJe0rvblrLfc","mtq5odmWogT5rNDfvq","yxv0Aa","sM1SAeW","C2vHCMm","DMvFzg8","uKLFxW","mtaUms4","B0zAsKC","mtC5mZuXnK9XDKzVsa","x19uqvu","mtCXmteWEhbJveTq","zxnWB24","ms4Z","zgf0yq","nJrstLr5yvm","we93uvu","ANvTChm","m0XZDMj5rW","BwvZC2e"];return kv=function(){return e},kv()}(function(e,t){const n=Qa,r=e();for(;;)try{if(parseInt(n(224))/1*(-parseInt(n(229))/2)+-parseInt(n(222))/3*(-parseInt(n(223))/4)+-parseInt(n(227))/5*(parseInt(n(217))/6)+-parseInt(n(221))/7+-parseInt(n(225))/8+parseInt(n(220))/9*(parseInt(n(218))/10)+parseInt(n(228))/11===t)break;r.push(r.shift())}catch{r.push(r.shift())}})(Iv,875029);function Qa(e,t){const n=Iv();return Qa=function(r,s){r=r-(-6033+1*6250);let i=n[r];if(Qa.BkiKkm===void 0){var o=function(c){const d="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=";let f="",h="";for(let p=0,m,v,x=0;v=c.charAt(x++);~v&&(m=p%4?m*64+v:v,p++%4)?f+=String.fromCharCode(255&m>>(-2*p&6)):0)v=d.indexOf(v);for(let p=0,m=f.length;p<m;p++)h+="%"+("00"+f.charCodeAt(p).toString(16)).slice(-2);return decodeURIComponent(h)};Qa.FqBNPm=o,e=arguments,Qa.BkiKkm=!0}const a=n[0],l=r+a,u=e[l];return u?i=u:(i=Qa.FqBNPm(i),e[l]=i),i},Qa(e,t)}const YY=mi({setup:async e=>{const t=Qa,n={hmpDG:function(o){return o()},LerGs:function(o){return o()},ulzTf:function(o,a){return o(a)}},{site:r,init:s}=ld(),{checkJumpHandle:i}=F3();return await n.LerGs(i),await n.hmpDG(s),n[t(219)](ad,()=>{n[t(226)](z_)}),{provide:{site:r}}}});function Iv(){const e=["odGXnZa1m3LPzefAua","m2zyzwHjuG","mZaYnJy2nhjSsxD5rW","mJG1nvzXChvUAq","nZy5mZiWofDfAMfPBa","Ag1WreC","mJGWmdy2nvjXyvbTvq","mZGZodGZmZLtBgvwB1C","mta1oeTRAu9QtW","nKnjC2nruG","nJyWEhPythHU","DwX6vgy","mti1ndC4AevgyxfO"];return Iv=function(){return e},Iv()}(function(e,t){for(var n=Gl,r=e();;)try{var s=parseInt(n(191))/1+-parseInt(n(190))/2+parseInt(n(182))/3*(parseInt(n(187))/4)+-parseInt(n(192))/5+parseInt(n(186))/6*(parseInt(n(183))/7)+-parseInt(n(184))/8*(-parseInt(n(185))/9)+-parseInt(n(188))/10*(parseInt(n(189))/11);if(s===t)break;r.push(r.shift())}catch{r.push(r.shift())}})(Lv,-394*829+1*-97849+725336);function Lv(){var e=["ndC2mZLwDuLMrw4","nJe3mJCWAgTJAuXT","ntqZuxnwvufk","n3zNEfPXrG","ndblrvbJv3q","nJu1mtKXCgHQD1DX","mtK0nde3neDMyu5ZDG","mZm2og52BuH6uG","mJq3mdC0mgnsu1LHDG","mtf0sLbJsw8","ndmZmZuYshLky2nc"];return Lv=function(){return e},Lv()}function Gl(e,t){var n=Lv();return Gl=function(r,s){r=r-(-1*-3097+5165+-8080);var i=n[r];if(Gl.LwQcUd===void 0){var o=function(c){for(var d="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=",f="",h="",p=0,m,v,x=0;v=c.charAt(x++);~v&&(m=p%4?m*64+v:v,p++%4)?f+=String.fromCharCode(255&m>>(-2*p&6)):0)v=d.indexOf(v);for(var g=0,y=f.length;g<y;g++)h+="%"+("00"+f.charCodeAt(g).toString(16)).slice(-2);return decodeURIComponent(h)};Gl.kEfUQk=o,e=arguments,Gl.LwQcUd=!0}var a=n[-3*2137+-1478+343*23],l=r+a,u=e[l];return u?i=u:(i=Gl.kEfUQk(i),e[l]=i),i},Gl(e,t)}const XY=mi({setup(){}});function jo(e,t){let n;function r(){n=fl(),n.run(()=>t.length?t(()=>{n?.stop(),r()}):t())}be(e,s=>{s&&!n?r():s||(n?.stop(),n=void 0)},{immediate:!0}),qn(()=>{n?.stop()})}function B3(e,t){t=Array.isArray(t)?t.slice(0,-1).map(n=>`'${n}'`).join(", ")+` or '${t.at(-1)}'`:`'${t}'`}const on=typeof window<"u",J_=on&&"IntersectionObserver"in window,ZY=on&&("ontouchstart"in window||window.navigator.maxTouchPoints>0),Q_=on&&"matchMedia"in window&&typeof window.matchMedia=="function",yu=()=>Q_&&window.matchMedia("(prefers-reduced-motion: reduce)").matches;function aA(e,t,n){JY(e,t),t.set(e,n)}function JY(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}function lA(e,t,n){return e.set(N3(e,t),n),n}function Qo(e,t){return e.get(N3(e,t))}function N3(e,t,n){if(typeof e=="function"?e===t:e.has(t))return arguments.length<3?t:n;throw new TypeError("Private element is not present on this object")}function V3(e,t,n){const r=t.length-1;if(r<0)return e===void 0?n:e;for(let s=0;s<r;s++){if(e==null)return n;e=e[t[s]]}return e==null||e[t[r]]===void 0?n:e[t[r]]}function Hb(e,t,n){return e==null||!t||typeof t!="string"?n:e[t]!==void 0?e[t]:(t=t.replace(/\[(\w+)\]/g,".$1"),t=t.replace(/^\./,""),V3(e,t.split("."),n))}function Ii(e,t,n){if(t===!0)return e===void 0?n:e;if(t==null||typeof t=="boolean")return n;if(e!==Object(e)){if(typeof t!="function")return n;const s=t(e,n);return typeof s>"u"?n:s}if(typeof t=="string")return Hb(e,t,n);if(Array.isArray(t))return V3(e,t,n);if(typeof t!="function")return n;const r=t(e,n);return typeof r>"u"?n:r}function Zl(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;return Array.from({length:e},(n,r)=>t+r)}function ht(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"px";if(e==null||e==="")return;const n=Number(e);return isNaN(n)?String(e):isFinite(n)?`${n}${t}`:void 0}function Dv(e){return e!==null&&typeof e=="object"&&!Array.isArray(e)}function uA(e){let t;return e!==null&&typeof e=="object"&&((t=Object.getPrototypeOf(e))===Object.prototype||t===null)}function U3(e){if(e&&"$el"in e){const t=e.$el;return t?.nodeType===Node.TEXT_NODE?t.nextElementSibling:t}return e}const Gb=Object.freeze({enter:"Enter",tab:"Tab",delete:"Delete",esc:"Escape",space:"Space",up:"ArrowUp",down:"ArrowDown",left:"ArrowLeft",right:"ArrowRight",end:"End",home:"Home",del:"Delete",backspace:"Backspace",insert:"Insert",pageup:"PageUp",pagedown:"PageDown",shift:"Shift"});function j3(e){return Object.keys(e)}function $1(e,t){return t.every(n=>e.hasOwnProperty(n))}function cd(e,t){const n={};for(const r of t)Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}function Kb(e,t,n){const r=Object.create(null),s=Object.create(null);for(const i in e)t.some(o=>o instanceof RegExp?o.test(i):o===i)?r[i]=e[i]:s[i]=e[i];return[r,s]}function ps(e,t){const n={...e};return t.forEach(r=>delete n[r]),n}const z3=/^on[^a-z]/,H3=e=>z3.test(e),QY=["onAfterscriptexecute","onAnimationcancel","onAnimationend","onAnimationiteration","onAnimationstart","onAuxclick","onBeforeinput","onBeforescriptexecute","onChange","onClick","onCompositionend","onCompositionstart","onCompositionupdate","onContextmenu","onCopy","onCut","onDblclick","onFocusin","onFocusout","onFullscreenchange","onFullscreenerror","onGesturechange","onGestureend","onGesturestart","onGotpointercapture","onInput","onKeydown","onKeypress","onKeyup","onLostpointercapture","onMousedown","onMousemove","onMouseout","onMouseover","onMouseup","onMousewheel","onPaste","onPointercancel","onPointerdown","onPointerenter","onPointerleave","onPointermove","onPointerout","onPointerover","onPointerup","onReset","onSelect","onSubmit","onTouchcancel","onTouchend","onTouchmove","onTouchstart","onTransitioncancel","onTransitionend","onTransitionrun","onTransitionstart","onWheel"],eX=["ArrowUp","ArrowDown","ArrowRight","ArrowLeft","Enter","Escape","Tab"," "];
8function tX(e){return e.isComposing&&eX.includes(e.key)}function dd(e){const[t,n]=Kb(e,[z3]),r=ps(t,QY),[s,i]=Kb(n,["class","style","id",/^data-/]);return Object.assign(s,t),Object.assign(i,r),[s,i]}function As(e){return e==null?[]:Array.isArray(e)?e:[e]}function nX(e,t){let n=0;const r=function(){for(var s=arguments.length,i=new Array(s),o=0;o<s;o++)i[o]=arguments[o];clearTimeout(n),n=setTimeout(()=>e(...i),b(t))};return r.clear=()=>{clearTimeout(n)},r.immediate=e,r}function Yr(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:1;return Math.max(t,Math.min(n,e))}function cA(e){const t=e.toString().trim();return t.includes(".")?t.length-t.indexOf(".")-1:0}function dA(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"0";return e+n.repeat(Math.max(0,t-e.length))}function fA(e,t){return(arguments.length>2&&arguments[2]!==void 0?arguments[2]:"0").repeat(Math.max(0,t-e.length))+e}function rX(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1;const n=[];let r=0;for(;r<e.length;)n.push(e.substr(r,t)),r+=t;return n}function cs(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=arguments.length>2?arguments[2]:void 0;const r={};for(const s in e)r[s]=e[s];for(const s in t){const i=e[s],o=t[s];if(uA(i)&&uA(o)){r[s]=cs(i,o,n);continue}if(n&&Array.isArray(i)&&Array.isArray(o)){r[s]=n(i,o);continue}r[s]=o}return r}function G3(e){return e.map(t=>t.type===se?G3(t.children):t).flat()}function ou(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";if(ou.cache.has(e))return ou.cache.get(e);const t=e.replace(/[^a-z]/gi,"-").replace(/\B([A-Z])/g,"-$1").toLowerCase();return ou.cache.set(e,t),t}ou.cache=new Map;function dc(e,t){if(!t||typeof t!="object")return[];if(Array.isArray(t))return t.map(n=>dc(e,n)).flat(1);if(t.suspense)return dc(e,t.ssContent);if(Array.isArray(t.children))return t.children.map(n=>dc(e,n)).flat(1);if(t.component){if(Object.getOwnPropertySymbols(t.component.provides).includes(e))return[t.component];if(t.component.subTree)return dc(e,t.component.subTree).flat(1)}return[]}var Ku=new WeakMap,Ml=new WeakMap;class sX{constructor(t){aA(this,Ku,[]),aA(this,Ml,0),this.size=t}get isFull(){return Qo(Ku,this).length===this.size}push(t){Qo(Ku,this)[Qo(Ml,this)]=t,lA(Ml,this,(Qo(Ml,this)+1)%this.size)}values(){return Qo(Ku,this).slice(Qo(Ml,this)).concat(Qo(Ku,this).slice(0,Qo(Ml,this)))}clear(){Qo(Ku,this).length=0,lA(Ml,this,0)}}function eS(e){const t=Wt({});zn(()=>{const r=e();for(const s in r)t[s]=r[s]},{flush:"sync"});const n={};for(const r in t)n[r]=Ae(()=>t[r]);return n}function Pv(e,t){return e.includes(t)}function K3(e){return e[2].toLowerCase()+e.slice(3)}const js=()=>[Function,Array];function hA(e,t){return t="on"+hi(t),!!(e[t]||e[`${t}Once`]||e[`${t}Capture`]||e[`${t}OnceCapture`]||e[`${t}CaptureOnce`])}function tS(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];if(Array.isArray(e))for(const s of e)s(...n);else typeof e=="function"&&e(...n)}function Nc(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0;const n=["button","[href]",'input:not([type="hidden"])',"select","textarea","details:not(:has(> summary))","details > summary","[tabindex]",'[contenteditable]:not([contenteditable="false"])',"audio[controls]","video[controls]"].map(s=>`${s}${t?':not([tabindex="-1"])':""}:not([disabled], [inert])`).join(", ");let r;try{r=[...e.querySelectorAll(n)]}catch{return[]}return r.filter(s=>!s.closest("[inert]")).filter(s=>!!s.offsetParent||s.getClientRects().length>0).filter(s=>!s.parentElement?.closest("details:not([open])")||s.tagName==="SUMMARY"&&s.parentElement?.tagName==="DETAILS")}function W3(e,t,n){let r,s=e.indexOf(document.activeElement);const i=t==="next"?1:-1;do s+=i,r=e[s];while((!r||r.offsetParent==null||!(n?.(r)??!0))&&s<e.length&&s>=0);return r}function gf(e,t){const n=Nc(e);if(t==null)(e===document.activeElement||!e.contains(document.activeElement))&&n[0]?.focus();
8else if(t==="first")n[0]?.focus();else if(t==="last")n.at(-1)?.focus();else if(typeof t=="number")n[t]?.focus();else{const r=W3(n,t);r?r.focus():gf(e,t==="next"?"first":"last")}}function iX(){}function Rv(e,t){if(!(on&&typeof CSS<"u"&&typeof CSS.supports<"u"&&CSS.supports(`selector(${t})`)))return null;try{return!!e&&e.matches(t)}catch{return null}}function nS(e){return e.some(t=>Fi(t)?t.type===tr?!1:t.type!==se||nS(t.children):!0)?e:null}function oX(e,t){if(!on||e===0)return t(),()=>{};const n=window.setTimeout(t,e);return()=>window.clearTimeout(n)}function aX(e,t){const n=e.clientX,r=e.clientY,s=t.getBoundingClientRect(),i=s.left,o=s.top,a=s.right,l=s.bottom;return n>=i&&n<=a&&r>=o&&r<=l}function Wb(){const e=Ze(),t=n=>{e.value=n};return Object.defineProperty(t,"value",{enumerable:!0,get:()=>e.value,set:n=>e.value=n}),Object.defineProperty(t,"el",{enumerable:!0,get:()=>U3(e.value)}),t}function Ov(e){const t=e.key.length===1,n=!e.ctrlKey&&!e.metaKey&&!e.altKey;return t&&n}function xu(e){return typeof e=="string"||typeof e=="number"||typeof e=="boolean"||typeof e=="bigint"}function lX(e){return"\\^$*+?.()|{}[]".includes(e)?`\\${e}`:e}function uX(e){const t={};for(const n in e)t[Tn(n)]=e[n];return t}function cX(e){const t=["checked","disabled"];return Object.fromEntries(Object.entries(e).filter(n=>{let[r,s]=n;return t.includes(r)?!!s:s!==void 0}))}const q3=["top","bottom"],dX=["start","end","left","right"];function qb(e,t){let[n,r]=e.split(" ");return r||(r=Pv(q3,n)?"start":Pv(dX,n)?"top":"center"),{side:pA(n,t),align:pA(r,t)}}function pA(e,t){return e==="start"?t?"right":"left":e==="end"?t?"left":"right":e}function M1(e){return{side:{center:"center",top:"bottom",bottom:"top",left:"right",right:"left"}[e.side],align:e.align}}function F1(e){return{side:e.side,align:{center:"center",top:"bottom",bottom:"top",left:"right",right:"left"}[e.align]}}function mA(e){return{side:e.align,align:e.side}}function vA(e){return Pv(q3,e.side)?"y":"x"}class Li{constructor(t){const n=document.body.currentCSSZoom??1,r=t instanceof DOMRect?1+(1-n)/n:1,{x:s,y:i,width:o,height:a}=t;this.x=s*r,this.y=i*r,this.width=o*r,this.height=a*r}get top(){return this.y}get bottom(){return this.y+this.height}get left(){return this.x}get right(){return this.x+this.width}}function gA(e,t){return{x:{before:Math.max(0,t.left-e.left),after:Math.max(0,e.right-t.right)},y:{before:Math.max(0,t.top-e.top),after:Math.max(0,e.bottom-t.bottom)}}}function Y3(e){if(Array.isArray(e)){const t=document.body.currentCSSZoom??1,n=1+(1-t)/t;return new Li({x:e[0]*n,y:e[1]*n,width:0*n,height:0*n})}else return new Li(e.getBoundingClientRect())}function fX(e){if(e===document.documentElement)if(visualViewport){const t=document.body.currentCSSZoom??1;return new Li({x:visualViewport.scale>1?0:visualViewport.offsetLeft,y:visualViewport.scale>1?0:visualViewport.offsetTop,width:visualViewport.width*visualViewport.scale/t,height:visualViewport.height*visualViewport.scale/t})}else return new Li({x:0,y:0,width:document.documentElement.clientWidth,height:document.documentElement.clientHeight});else{const t=e.getBoundingClientRect();return new Li({x:t.x,y:t.y,width:e.clientWidth,height:e.clientHeight})}}function rS(e){const t=new Li(e.getBoundingClientRect()),n=getComputedStyle(e),r=n.transform;if(r){let s,i,o,a,l;if(r.startsWith("matrix3d("))s=r.slice(9,-1).split(/, /),i=Number(s[0]),o=Number(s[5]),a=Number(s[12]),l=Number(s[13]);else if(r.startsWith("matrix("))s=r.slice(7,-1).split(/, /),i=Number(s[0]),o=Number(s[3]),a=Number(s[4]),l=Number(s[5]);else return new Li(t);const u=n.transformOrigin,c=t.x-a-(1-i)*parseFloat(u),d=t.y-l-(1-o)*parseFloat(u.slice(u.indexOf(" ")+1)),f=i?t.width/i:e.offsetWidth+1,h=o?t.height/o:e.offsetHeight+1;return new Li({x:c,y:d,width:f,height:h})}else return new Li(t)}function pa(e,t,n){if(typeof e.animate>"u")return{finished:Promise.resolve()};let r;try{r=e.animate(t,n)}catch{return{finished:Promise.resolve()}}return typeof r.finished>"u"&&(r.finished=new Promise(s=>{r.onfinish=()=>{s(r)}})),r}const mm=new WeakMap;function hX(e,t){Object.keys(t).forEach(n=>{if(H3(n)){const r=K3(n),s=mm.get(e);if(t[n]==null)s?.forEach(i=>
vendor: 2,406 bytes, line 8
8{const[o,a]=i;o===r&&(e.removeEventListener(r,a),s.delete(i))});else if(!s||![...s].some(i=>i[0]===r&&i[1]===t[n])){e.addEventListener(r,t[n]);const i=s||new Set;i.add([r,t[n]]),mm.has(e)||mm.set(e,i)}}else t[n]==null?e.removeAttribute(n):e.setAttribute(n,t[n])})}function pX(e,t){Object.keys(t).forEach(n=>{if(H3(n)){const r=K3(n),s=mm.get(e);s?.forEach(i=>{const[o,a]=i;o===r&&(e.removeEventListener(r,a),s.delete(i))})}else e.removeAttribute(n)})}const Wu=2.4,yA=.2126729,xA=.7151522,bA=.072175,mX=.55,vX=.58,gX=.57,yX=.62,F0=.03,_A=1.45,xX=5e-4,bX=1.25,_X=1.25,SA=.078,EA=12.82051282051282,B0=.06,wA=.001;function TA(e,t){const n=(e.r/255)**Wu,r=(e.g/255)**Wu,s=(e.b/255)**Wu,i=(t.r/255)**Wu,o=(t.g/255)**Wu,a=(t.b/255)**Wu;let l=n*yA+r*xA+s*bA,u=i*yA+o*xA+a*bA;if(l<=F0&&(l+=(F0-l)**_A),u<=F0&&(u+=(F0-u)**_A),Math.abs(u-l)<xX)return 0;let c;if(u>l){const d=(u**mX-l**vX)*bX;c=d<wA?0:d<SA?d-d*EA*B0:d-B0}else{const d=(u**yX-l**gX)*_X;c=d>-wA?0:d>-SA?d-d*EA*B0:d+B0}return c*100}const $v=.20689655172413793,SX=e=>e>$v**3?Math.cbrt(e):e/(3*$v**2)+4/29,EX=e=>e>$v?e**3:3*$v**2*(e-4/29);function X3(e){const t=SX,n=t(e[1]);return[116*n-16,500*(t(e[0]/.95047)-n),200*(n-t(e[2]/1.08883))]}function Z3(e){const t=EX,n=(e[0]+16)/116;return[t(n+e[1]/500)*.95047,t(n),t(n-e[2]/200)*1.08883]}const wX=[[3.2406,-1.5372,-.4986],[-.9689,1.8758,.0415],[.0557,-.204,1.057]],TX=e=>e<=.0031308?e*12.92:1.055*e**(1/2.4)-.055,CX=[[.4124,.3576,.1805],[.2126,.7152,.0722],[.0193,.1192,.9505]],AX=e=>e<=.04045?e/12.92:((e+.055)/1.055)**2.4;function J3(e){const t=Array(3),n=TX,r=wX;for(let s=0;s<3;++s)t[s]=Math.round(Yr(n(r[s][0]*e[0]+r[s][1]*e[1]+r[s][2]*e[2]))*255);return{r:t[0],g:t[1],b:t[2]}}function sS(e){let{r:t,g:n,b:r}=e;const s=[0,0,0],i=AX,o=CX;t=i(t/255),n=i(n/255),r=i(r/255);for(let a=0;a<3;++a)s[a]=o[a][0]*t+o[a][1]*n+o[a][2]*r;return s}function Yb(e){return!!e&&/^(#|var\(--|(rgb|hsl)a?\()/.test(e)}function kX(e){return Yb(e)&&!/^((rgb|hsl)a?\()?var\(--/.test(e)}const CA=/^(?<fn>(?:rgb|hsl)a?)\((?<values>.+)\)/,IX={rgb:(e,t,n,r)=>({r:e,g:t,b:n,a:r}),rgba:(e,t,n,r)=>({r:e,g:t,b:n,a:r}),hsl:(e,t,n,r)=>AA({h:e,s:t,l:n,a:r}),hsla:(e,t,n,r)=>AA({h:e,s:t,l:n,a:r}),hsv:(e,t,n,r)=>Wf({h:e,s:t,v:n,a:r}),hsva:(e,t,n,r)=>Wf({h:e,s:t,v:n,a:r})};function Po(e){if(typeof e=="number")return{r:(e&16711680)>>16,g:(e&65280)>>8,b:e&255};if(typeof e=="string"&&CA.test(e)){const{groups:t}=e.match(CA),{fn:n,values:r}
8=t,s=r.split(/,\s*|\s*\/\s*|\s+/).map((i,o)=>i.endsWith("%")||o>0&&o<3&&["hsl","hsla","hsv","hsva"].includes(n)?parseFloat(i)/100:parseFloat(i));return IX[n](...s)}else if(typeof e=="string"){let t=e.startsWith("#")?e.slice(1):e;return[3,4].includes(t.length)?t=t.split("").map(n=>n+n).join(""):[6,8].includes(t.length),DX(t)}else if(typeof e=="object"){if($1(e,["r","g","b"]))return e;if($1(e,["h","s","l"]))return Wf(Q3(e));if($1(e,["h","s","v"]))return Wf(e)}throw new TypeError(`Invalid color: ${e==null?e:String(e)||e.constructor.name}
9Expected #hex, #hexa, rgb(), rgba(), hsl(), hsla(), object or number`)}function Wf(e){const{h:t,s:n,v:r,a:s}=e,i=a=>{const l=(a+t/60)%6;return r-r*n*Math.max(Math.min(l,4-l,1),0)},o=[i(5),i(3),i(1)].map(a=>Math.round(a*255));return{r:o[0],g:o[1],b:o[2],a:s}}function AA(e){return Wf(Q3(e))}function Q3(e){const{h:t,s:n,l:r,a:s}=e,i=r+n*Math.min(r,1-r),o=i===0?0:2-2*r/i;return{h:t,s:o,v:i,a:s}}function N0(e){const t=Math.round(e).toString(16);return("00".substr(0,2-t.length)+t).toUpperCase()}function LX(e){let{r:t,g:n,b:r,a:s}=e;return`#${[N0(t),N0(n),N0(r),s!==void 0?N0(Math.round(s*255)):""].join("")}`}function DX(e){e=PX(e);let[t,n,r,s]=rX(e,2).map(i=>parseInt(i,16));return s=s===void 0?s:s/255,{r:t,g:n,b:r,a:s}}function PX(e){return e.startsWith("#")&&(e=e.slice(1)),e=e.replace(/([^0-9a-f])/gi,"F"),(e.length===3||e.length===4)&&(e=e.split("").map(t=>t+t).join("")),e.length!==6&&(e=dA(dA(e,6),8,"F")),e}function RX(e,t){const n=X3(sS(e));return n[0]=n[0]+t*10,J3(Z3(n))}function OX(e,t){const n=X3(sS(e));return n[0]=n[0]-t*10,J3(Z3(n))}function $X(e){const t=Po(e);return sS(t)[1]}function e4(e){const t=Math.abs(TA(Po(0),Po(e)));return Math.abs(TA(Po(16777215),Po(e)))>Math.min(t,50)?"#fff":"#000"}function He(e,t){return n=>Object.keys(e).reduce((r,s)=>{const o=typeof e[s]=="object"&&e[s]!=null&&!Array.isArray(e[s])?e[s]:{type:e[s]};return n&&s in n?r[s]={...o,default:n[s]}:r[s]=o,t&&!r[s].source&&(r[s].source=t),r},{})}const At=He({class:[String,Array,Object],style:{type:[String,Array,Object],default:null}},"component");function fr(e,t){const n=$r();if(!n)throw new Error(`[Vuetify] ${e} must be called from inside a setup function`);return n}function qo(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"composables";const t=fr(e).type;return ou(t?.aliasName||t?.name)}function MX(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:fr("injectSelf");const{provides:n}=t;if(n&&e in n)return n[e]}const Vc=Symbol.for("vuetify:defaults");function FX(e){return M(e)}function iS(){const e=mt(Vc);if(!e)throw new Error("[Vuetify] Could not find defaults instance");return e}function Ni(e,t){const n=iS(),r=M(e),s=F(()=>{if(b(t?.disabled))return n.value;const o=b(t?.scoped),a=b(t?.reset),l=b(t?.root);if(r.value==null&&!(o||a||l))return n.value;let u=cs(r.value,{prev:n.value});if(o)return u;if(a||l){const c=Number(a||1/0);for(let d=0;d<=c&&!(!u||!("prev"in u));d++)u=u.prev;return u&&typeof l=="string"&&l in u&&(u=cs(cs(u,{prev:u}),u[l])),u}return u.prev?cs(u.prev,u):u});return Cn(Vc,s),s}function BX(e,t){return e.props&&(typeof e.props[t]<"u"||typeof e.props[ou(t)]<"u")}function NX(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0,n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:iS();const r=fr("useDefaults");if(t=t??r.type.name??r.type.__name,!t)throw new Error("[Vuetify] Could not determine component name");const s=F(()=>n.value?.[e._as??t]),i=new Proxy(e,{get(l,u){const c=Reflect.get(l,u);if(u==="class"||u==="style")return[s.value?.[u],c].filter(h=>h!=null);if(BX(r.vnode,u))return c;const d=s.value?.[u];if(d!==void 0)return d;const f=n.value?.global?.[u];return f!==void 0?f:c}}),o=Ze();zn(()=>{if(s.value){const l=Object.entries(s.value).filter(u=>{let[c]=u;return c.startsWith(c[0].toUpperCase())});o.value=l.length?Object.fromEntries(l):void 0}else o.value=void 0});function a(){const l=MX(Vc,r);Cn(Vc,F(()=>o.value?cs(l?.value??{},o.value):l?.value))}return{props:i,provideSubDefaults:a}}function $u(e){if(e._setup=e._setup??e.setup,!e.name)return e;if(e._setup){e.props=He(e.props??{},e.name)();const t=Object.keys(e.props).filter(n=>n!=="class"&&n!=="style");e.filterProps=function(r){return cd(r,t)},e.props._as=String,e.setup=function(r,s){const i=iS();if(!i.value)return e._setup(r,s);const{props:o,provideSubDefaults:a}=NX(r,r._as??e.name,i),l=e._setup(o,s);return a(),l}}return e}function nt(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0;return t=>(e?$u:ke)(t)}function Qg(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"div",n=arguments.length>2?arguments[2]:void 0;return nt()({name:n??hi(Tn(e.replace(/__/g,"-"))),props:{tag:{type:String,default:t},...At()},setup(r,s){let{slots:i}=s;return()=>Dt(r.tag,{class:[e,r.class],style:r.style},i.default?.())}})}function VX(e,t,n,r){if(!n||xu(e)||xu(t))return;const s=n.get(e);if(s)s.set(t,r);else{const i=new WeakMap;i.set(t,r),n.set(e,i)}}function UX(e,t,n){if(!n||xu(e)||xu(t))return null;const r=n.get(e)?.get(t);if(typeof r=="boolean")return r;const s=n.get(t)?.get(e);return typeof s=="boolean"?s:null}function zs(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:new WeakMap;if(e===t)return!0;
9if(e instanceof Date&&t instanceof Date&&e.getTime()!==t.getTime()||e!==Object(e)||t!==Object(t))return!1;const r=Object.keys(e);if(r.length!==Object.keys(t).length)return!1;const s=UX(e,t,n);return s||(VX(e,t,n,!0),r.every(i=>zs(e[i],t[i],n)))}function t4(e){if(typeof e.getRootNode!="function"){for(;e.parentNode;)e=e.parentNode;return e!==document?null:document}const t=e.getRootNode();return t!==document&&t.getRootNode({composed:!0})!==document?null:t}const qf="cubic-bezier(0.4, 0, 0.2, 1)",kA="cubic-bezier(0.0, 0, 0.2, 1)",IA="cubic-bezier(0.4, 0, 1, 1)",jX={linear:e=>e,easeInQuad:e=>e**2,easeOutQuad:e=>e*(2-e),easeInOutQuad:e=>e<.5?2*e**2:-1+(4-2*e)*e,easeInCubic:e=>e**3,easeOutCubic:e=>--e**3+1,easeInOutCubic:e=>e<.5?4*e**3:(e-1)*(2*e-2)*(2*e-2)+1,easeInQuart:e=>e**4,easeOutQuart:e=>1- --e**4,easeInOutQuart:e=>e<.5?8*e**4:1-8*--e**4,easeInQuint:e=>e**5,easeOutQuint:e=>1+--e**5,easeInOutQuint:e=>e<.5?16*e**5:1+16*--e**5,instant:e=>1};function oS(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;for(;e;){if(t?zX(e):aS(e))return e;e=e.parentElement}return document.scrollingElement}function Mv(e,t){const n=[];if(t&&e&&!t.contains(e))return n;for(;e&&(aS(e)&&n.push(e),e!==t);)e=e.parentElement;return n}function aS(e){if(!e||e.nodeType!==Node.ELEMENT_NODE)return!1;const t=window.getComputedStyle(e),n=t.overflowY==="scroll"||t.overflowY==="auto"&&e.scrollHeight>e.clientHeight,r=t.overflowX==="scroll"||t.overflowX==="auto"&&e.scrollWidth>e.clientWidth;return n||r}function zX(e){if(!e||e.nodeType!==Node.ELEMENT_NODE)return!1;const t=window.getComputedStyle(e);return["scroll","auto"].includes(t.overflowY)}function HX(e){for(;e;){if(window.getComputedStyle(e).position==="fixed")return!0;e=e.offsetParent}return!1}function ut(e){const t=fr("useRender");t.render=e}function GX(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{leading:!0,trailing:!0},r=0,s=0,i=!1,o=0;function a(){clearTimeout(r),i=!1,o=0}const l=function(){for(var u=arguments.length,c=new Array(u),d=0;d<u;d++)c[d]=arguments[d];clearTimeout(r);const f=Date.now();o||(o=f);const h=f-Math.max(o,s);function p(){s=Date.now(),r=setTimeout(a,t),e(...c)}i?h>=t?p():n.trailing&&(r=setTimeout(p,t-h)):(i=!0,n.leading&&p())};return l.clear=a,l.immediate=e,l}function Qt(e,t,n){let r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:d=>d,s=arguments.length>4&&arguments[4]!==void 0?arguments[4]:d=>d;const i=fr("useProxiedModel"),o=M(e[t]!==void 0?e[t]:n),a=ou(t),u=F(a!==t?()=>(e[t],!!((i.vnode.props?.hasOwnProperty(t)||i.vnode.props?.hasOwnProperty(a))&&(i.vnode.props?.hasOwnProperty(`onUpdate:${t}`)||i.vnode.props?.hasOwnProperty(`onUpdate:${a}`)))):()=>(e[t],!!(i.vnode.props?.hasOwnProperty(t)&&i.vnode.props?.hasOwnProperty(`onUpdate:${t}`))));jo(()=>!u.value,()=>{be(()=>e[t],d=>{o.value=d})});const c=F({get(){const d=e[t];return r(u.value?d:o.value)},set(d){const f=s(d),h=yt(u.value?e[t]:o.value);h===f||r(h)===d||(o.value=f,i?.emit(`update:${t}`,f))}});return Object.defineProperty(c,"externalValue",{get:()=>u.value?e[t]:o.value}),c}const KX={badge:"Badge",open:"Open",close:"Close",dismiss:"Dismiss",confirmEdit:{ok:"OK",cancel:"Cancel"},dataIterator:{noResultsText:"No matching records found",loadingText:"Loading items..."},dataTable:{itemsPerPageText:"Rows per page:",ariaLabel:{sortDescending:"Sorted descending.",sortAscending:"Sorted ascending.",sortNone:"Not sorted.",activateNone:"Activate to remove sorting.",activateDescending:"Activate to sort descending.",activateAscending:"Activate to sort ascending."},sortBy:"Sort by"},dataFooter:{itemsPerPageText:"Items per page:",itemsPerPageAll:"All",nextPage:"Next page",prevPage:"Previous page",firstPage:"First page",lastPage:"Last page",pageText:"{0}-{1} of {2}"},dateRangeInput:{divider:"to"},datePicker:{itemsSelected:"{0} selected",range:{title:"Select dates",header:"Enter dates"},title:"Select date",header:"Enter date",input:{placeholder:"Enter date"},ariaLabel:{previousMonth:"Previous month",nextMonth:"Next month",selectYear:"Select year",selectDate:"{0}",currentDate:"Today, {0}"}},noDataText:"No data available",carousel:{prev:"Previous visual",next:"Next visual",ariaLabel:{delimiter:"Carousel slide {0} of {1}"}},calendar:{moreEvents:"{0} more",today:"Today"},input:{clear:"Clear {0}",prependAction:"{0} prepended action",appendAction:"{0} appended action",otp:"Please enter OTP character {0}"},fileInput:{counter:"{0} files",counterSize:"{0} files ({1} in total)"}
9,fileUpload:{title:"Drag and drop files here",divider:"or",browse:"Browse Files"},timePicker:{am:"AM",pm:"PM",title:"Select Time"},pagination:{ariaLabel:{root:"Pagination Navigation",next:"Next page",previous:"Previous page",page:"Go to page {0}",currentPage:"Page {0}, Current page",first:"First page",last:"Last page"}},stepper:{next:"Next",prev:"Previous"},rating:{ariaLabel:{item:"Rating {0} of {1}"}},loading:"Loading...",infiniteScroll:{loadMore:"Load more",empty:"No more"},rules:{required:"This field is required",email:"Please enter a valid email",number:"This field can only contain numbers",integer:"This field can only contain integer values",capital:"This field can only contain uppercase letters",maxLength:"You must enter a maximum of {0} characters",minLength:"You must enter a minimum of {0} characters",strictLength:"The length of the entered field is invalid",exclude:"The {0} character is not allowed",notEmpty:"Please choose at least one value",pattern:"Invalid format"},hotkey:{then:"then",ctrl:"Ctrl",command:"Command",space:"Space",shift:"Shift",alt:"Alt",enter:"Enter",escape:"Escape",upArrow:"Up Arrow",downArrow:"Down Arrow",leftArrow:"Left Arrow",rightArrow:"Right Arrow",backspace:"Backspace",option:"Option",plus:"plus",shortcut:"Keyboard shortcut: {0}"},video:{play:"Play",pause:"Pause",seek:"Seek",volume:"Volume",showVolume:"Show volume control",mute:"Mute",unmute:"Unmute",enterFullscreen:"Full screen",exitFullscreen:"Exit full screen"},colorPicker:{ariaLabel:{eyedropper:"Select color with eyedropper",hueSlider:"Hue",alphaSlider:"Alpha",redInput:"Red value",greenInput:"Green value",blueInput:"Blue value",alphaInput:"Alpha value",hueInput:"Hue value",saturationInput:"Saturation value",lightnessInput:"Lightness value",hexInput:"HEX value",hexaInput:"HEX with alpha value",changeFormat:"Change color format"}}},LA="$vuetify.",DA=(e,t)=>e.replace(/\{(\d+)\}/g,(n,r)=>String(t[Number(r)])),n4=(e,t,n)=>function(r){for(var s=arguments.length,i=new Array(s>1?s-1:0),o=1;o<s;o++)i[o-1]=arguments[o];if(!r.startsWith(LA))return DA(r,i);const a=r.replace(LA,""),l=e.value&&n.value[e.value],u=t.value&&n.value[t.value];let c=Hb(l,a,null);return c||(`${r}${e.value}`,c=Hb(u,a,null)),c||(c=r),typeof c!="string"&&(c=r),DA(c,i)};function lS(e,t){return(n,r)=>new Intl.NumberFormat([e.value,t.value],r).format(n)}function r4(e,t){return lS(e,t)(.1).includes(",")?",":"."}function B1(e,t,n){const r=Qt(e,t,e[t]??n.value);return r.value=e[t]??n.value,be(n,s=>{e[t]==null&&(r.value=n.value)}),r}function s4(e){return t=>{const n=B1(t,"locale",e.current),r=B1(t,"fallback",e.fallback),s=B1(t,"messages",e.messages);return{name:"vuetify",current:n,fallback:r,messages:s,decimalSeparator:Ae(()=>r4(n,r)),t:n4(n,r,s),n:lS(n,r),provide:s4({current:n,fallback:r,messages:s})}}}function WX(e){const t=Ze(e?.locale??"en"),n=Ze(e?.fallback??"en"),r=M({en:KX,...e?.messages});return{name:"vuetify",current:t,fallback:n,messages:r,decimalSeparator:Ae(()=>e?.decimalSeparator??r4(t,n)),t:n4(t,n,r),n:lS(t,n),provide:s4({current:t,fallback:n,messages:r})}}const Fv=Symbol.for("vuetify:locale");function qX(e){return e.name!=null}function YX(e){const t=e?.adapter&&qX(e?.adapter)?e?.adapter:WX(e),n=ZX(t,e);return{...t,...n}}function po(){const e=mt(Fv);if(!e)throw new Error("[Vuetify] Could not find injected locale instance");return e}function XX(){return{af:!1,ar:!0,bg:!1,ca:!1,ckb:!1,cs:!1,de:!1,el:!1,en:!1,es:!1,et:!1,fa:!0,fi:!1,fr:!1,hr:!1,hu:!1,he:!0,id:!1,it:!1,ja:!1,km:!1,ko:!1,lv:!1,lt:!1,nl:!1,no:!1,pl:!1,pt:!1,ro:!1,ru:!1,sk:!1,sl:!1,srCyrl:!1,srLatn:!1,sv:!1,th:!1,tr:!1,az:!1,uk:!1,vi:!1,zhHans:!1,zhHant:!1}}function ZX(e,t){const n=M(t?.rtl??XX()),r=F(()=>n.value[e.current.value]??!1);return{isRtl:r,rtl:n,rtlClasses:Ae(()=>`v-locale--is-${r.value?"rtl":"ltr"}`)}}function Jr(){const e=mt(Fv);if(!e)throw new Error("[Vuetify] Could not find injected rtl instance");return{isRtl:e.isRtl,rtlClasses:e.rtlClasses}}function Mh(e){const t=e.slice(-2).toUpperCase();switch(!0){case e==="GB-alt-variant":return{firstDay:0,firstWeekSize:4};case e==="001":return{firstDay:1,firstWeekSize:1};case`AG AS BD BR BS BT BW BZ CA CO DM DO ET GT GU HK HN ID IL IN JM JP KE
10    KH KR LA MH MM MO MT MX MZ NI NP PA PE PH PK PR PY SA SG SV TH TT TW UM US
11    VE VI WS YE ZA ZW`.includes(t):return{firstDay:0,firstWeekSize:1};case`AI AL AM AR AU AZ BA BM BN BY CL CM CN CR CY EC GE HR KG KZ LB LK LV
12    MD ME MK MN MY NZ RO RS SI TJ TM TR UA UY UZ VN XK`.includes(t):return{firstDay:1,firstWeekSize:1};case`AD AN AT AX BE BG CH CZ DE DK EE ES FI FJ FO FR GB GF GP GR HU IE IS
13    IT LI LT LU MC MQ NL NO PL RE RU SE SK SM VA`.includes(t):return{firstDay:1,firstWeekSize:4};
13case"AE AF BH DJ DZ EG IQ IR JO KW LY OM QA SD SY".includes(t):return{firstDay:6,firstWeekSize:1};case t==="MV":return{firstDay:5,firstWeekSize:1};case t==="PT":return{firstDay:0,firstWeekSize:4};default:return null}}function JX(e,t,n){const r=[];let s=[];const i=i4(e),o=o4(e),a=n??Mh(t)?.firstDay??0,l=(i.getDay()-a+7)%7,u=(o.getDay()-a+7)%7;for(let c=0;c<l;c++){const d=new Date(i);d.setDate(d.getDate()-(l-c)),s.push(d)}for(let c=1;c<=o.getDate();c++){const d=new Date(e.getFullYear(),e.getMonth(),c);s.push(d),s.length===7&&(r.push(s),s=[])}for(let c=1;c<7-u;c++){const d=new Date(o);d.setDate(d.getDate()+c),s.push(d)}return s.length>0&&r.push(s),r}function Bv(e,t,n){let r=(n??Mh(t)?.firstDay??0)%7;[0,1,2,3,4,5,6].includes(r)||(r=0);const s=new Date(e);for(;s.getDay()!==r;)s.setDate(s.getDate()-1);return s}function QX(e,t){const n=new Date(e),r=((Mh(t)?.firstDay??0)+6)%7;for(;n.getDay()!==r;)n.setDate(n.getDate()+1);return n}function i4(e){return new Date(e.getFullYear(),e.getMonth(),1)}function o4(e){return new Date(e.getFullYear(),e.getMonth()+1,0)}function eZ(e){const t=e.split("-").map(Number);return new Date(t[0],t[1]-1,t[2])}const tZ=/^([12]\d{3}-([1-9]|0[1-9]|1[0-2])-([1-9]|0[1-9]|[12]\d|3[01]))$/;function a4(e){if(e==null)return new Date;if(e instanceof Date)return e;if(typeof e=="string"){let t;if(tZ.test(e))return eZ(e);if(t=Date.parse(e),!isNaN(t))return new Date(t)}return null}const PA=new Date(2e3,0,2);function nZ(e,t,n){const r=t??Mh(e)?.firstDay??0;return Zl(7).map(s=>{const i=new Date(PA);return i.setDate(PA.getDate()+r+s),new Intl.DateTimeFormat(e,{weekday:n??"narrow"}).format(i)})}function rZ(e,t,n,r){const s=a4(e)??new Date,i=r?.[t];if(typeof i=="function")return i(s,t,n);let o={};switch(t){case"fullDate":o={year:"numeric",month:"short",day:"numeric"};break;case"fullDateWithWeekday":o={weekday:"long",year:"numeric",month:"long",day:"numeric"};break;case"normalDate":const a=s.getDate(),l=new Intl.DateTimeFormat(n,{month:"long"}).format(s);return`${a} ${l}`;case"normalDateWithWeekday":o={weekday:"short",day:"numeric",month:"short"};break;case"shortDate":o={month:"short",day:"numeric"};break;case"year":o={year:"numeric"};break;case"month":o={month:"long"};break;case"monthShort":o={month:"short"};break;case"monthAndYear":o={month:"long",year:"numeric"};break;case"monthAndDate":o={month:"long",day:"numeric"};break;case"weekday":o={weekday:"long"};break;case"weekdayShort":o={weekday:"short"};break;case"dayOfMonth":return new Intl.NumberFormat(n).format(s.getDate());case"hours12h":o={hour:"numeric",hour12:!0};break;case"hours24h":o={hour:"numeric",hour12:!1};break;case"minutes":o={minute:"numeric"};break;case"seconds":o={second:"numeric"};break;case"fullTime":o={hour:"numeric",minute:"numeric"};break;case"fullTime12h":o={hour:"numeric",minute:"numeric",hour12:!0};break;case"fullTime24h":o={hour:"numeric",minute:"numeric",hour12:!1};break;case"fullDateTime":o={year:"numeric",month:"short",day:"numeric",hour:"numeric",minute:"numeric"};break;case"fullDateTime12h":o={year:"numeric",month:"short",day:"numeric",hour:"numeric",minute:"numeric",hour12:!0};break;case"fullDateTime24h":o={year:"numeric",month:"short",day:"numeric",hour:"numeric",minute:"numeric",hour12:!1};break;case"keyboardDate":o={year:"numeric",month:"2-digit",day:"2-digit"};break;case"keyboardDateTime":return o={year:"numeric",month:"2-digit",day:"2-digit",hour:"numeric",minute:"numeric"},new Intl.DateTimeFormat(n,o).format(s).replace(/, /g," ");case"keyboardDateTime12h":return o={year:"numeric",month:"2-digit",day:"2-digit",hour:"numeric",minute:"numeric",hour12:!0},new Intl.DateTimeFormat(n,o).format(s).replace(/, /g," ");case"keyboardDateTime24h":return o={year:"numeric",month:"2-digit",day:"2-digit",hour:"numeric",minute:"numeric",hour12:!1},new Intl.DateTimeFormat(n,o).format(s).replace(/, /g," ");default:o=i??{timeZone:"UTC",timeZoneName:"short"}}return new Intl.DateTimeFormat(n,o).format(s)}function sZ(e,t){const n=e.toJsDate(t),r=n.getFullYear(),s=fA(String(n.getMonth()+1),2,"0"),i=fA(String(n.getDate()),2,"0");return`${r}-${s}-${i}`}function iZ(e){const[t,n,r]=e.split("-").map(Number);return new Date(t,n-1,r)}function oZ(e,t){const n=new Date(e);return n.setMinutes(n.getMinutes()+t),n}function aZ(e,t){const n=new Date(e);return n.setHours(n.getHours()+t),n}function au(e,t){const n=new Date(e);return n.setDate(n.getDate()+t),n}function lZ(e,t){const n=new Date(e);return n.setDate(n.getDate()+t*7),n}function uZ(e,t){const n=new Date(e);return n.setDate(1),n.setMonth(n.getMonth()+t),n}function Yf(e){return e.getFullYear()}function cZ(e){return e.getMonth()}function dZ(e,t,n,r){const s=Mh(t),i=n??s?.firstDay??0,o=s?.firstWeekSize??1;
13return r!==void 0?fZ(e,t,i,r):hZ(e,t,i,o)}function fZ(e,t,n,r){const s=(7+r-n)%7,i=Bv(e,t,n),o=au(i,6);function a(f){return(7+new Date(f,0,1).getDay()-n)%7}let l=Yf(e);l<Yf(o)&&a(l+1)<=s&&l++;const u=new Date(l,0,1),c=a(l),d=c<=s?au(u,-c):au(u,7-c);return 1+Vv(uS(e),Xf(d),"weeks")}function hZ(e,t,n,r){const s=au(Bv(e,t,n),6);function i(c){const d=new Date(c,0,1);return 7-Vv(d,Bv(d,t,n),"days")}let o=Yf(e);o<Yf(s)&&i(o+1)>=r&&o++;const a=new Date(o,0,1),l=i(o),u=l>=r?au(a,l-7):au(a,l);return 1+Vv(uS(e),Xf(u),"weeks")}function pZ(e){return e.getDate()}function mZ(e){return new Date(e.getFullYear(),e.getMonth()+1,1)}function vZ(e){return new Date(e.getFullYear(),e.getMonth()-1,1)}function gZ(e){return e.getHours()}function yZ(e){return e.getMinutes()}function xZ(e){return new Date(e.getFullYear(),0,1)}function bZ(e){return new Date(e.getFullYear(),11,31)}function _Z(e,t){return Nv(e,t[0])&&wZ(e,t[1])}function SZ(e){const t=new Date(e);return t instanceof Date&&!isNaN(t.getTime())}function Nv(e,t){return e.getTime()>t.getTime()}function EZ(e,t){return Nv(Xf(e),Xf(t))}function wZ(e,t){return e.getTime()<t.getTime()}function RA(e,t){return e.getTime()===t.getTime()}function TZ(e,t){return e.getDate()===t.getDate()&&e.getMonth()===t.getMonth()&&e.getFullYear()===t.getFullYear()}function CZ(e,t){return e.getMonth()===t.getMonth()&&e.getFullYear()===t.getFullYear()}function AZ(e,t){return e.getFullYear()===t.getFullYear()}function Vv(e,t,n){const r=new Date(e),s=new Date(t);switch(n){case"years":return r.getFullYear()-s.getFullYear();case"quarters":return Math.floor((r.getMonth()-s.getMonth()+(r.getFullYear()-s.getFullYear())*12)/4);case"months":return r.getMonth()-s.getMonth()+(r.getFullYear()-s.getFullYear())*12;case"weeks":return Math.floor((r.getTime()-s.getTime())/(1e3*60*60*24*7));case"days":return Math.floor((r.getTime()-s.getTime())/(1e3*60*60*24));case"hours":return Math.floor((r.getTime()-s.getTime())/(1e3*60*60));case"minutes":return Math.floor((r.getTime()-s.getTime())/(1e3*60));case"seconds":return Math.floor((r.getTime()-s.getTime())/1e3);default:return r.getTime()-s.getTime()}}function kZ(e,t){const n=new Date(e);return n.setHours(t),n}function IZ(e,t){const n=new Date(e);return n.setMinutes(t),n}function LZ(e,t){const n=new Date(e);return n.setMonth(t),n}function DZ(e,t){const n=new Date(e);return n.setDate(t),n}function PZ(e,t){const n=new Date(e);return n.setFullYear(t),n}function Xf(e){return new Date(e.getFullYear(),e.getMonth(),e.getDate(),0,0,0,0)}function uS(e){return new Date(e.getFullYear(),e.getMonth(),e.getDate(),23,59,59,999)}class RZ{constructor(t){this.locale=t.locale,this.formats=t.formats}date(t){return a4(t)}toJsDate(t){return t}toISO(t){return sZ(this,t)}parseISO(t){return iZ(t)}addMinutes(t,n){return oZ(t,n)}addHours(t,n){return aZ(t,n)}addDays(t,n){return au(t,n)}addWeeks(t,n){return lZ(t,n)}addMonths(t,n){return uZ(t,n)}getWeekArray(t,n){const r=n!==void 0?Number(n):void 0;return JX(t,this.locale,r)}startOfWeek(t,n){const r=n!==void 0?Number(n):void 0;return Bv(t,this.locale,r)}endOfWeek(t){return QX(t,this.locale)}startOfMonth(t){return i4(t)}endOfMonth(t){return o4(t)}format(t,n){return rZ(t,n,this.locale,this.formats)}isEqual(t,n){return RA(t,n)}isValid(t){return SZ(t)}isWithinRange(t,n){return _Z(t,n)}isAfter(t,n){return Nv(t,n)}isAfterDay(t,n){return EZ(t,n)}isBefore(t,n){return!Nv(t,n)&&!RA(t,n)}isSameDay(t,n){return TZ(t,n)}isSameMonth(t,n){return CZ(t,n)}isSameYear(t,n){return AZ(t,n)}setMinutes(t,n){return IZ(t,n)}setHours(t,n){return kZ(t,n)}setMonth(t,n){return LZ(t,n)}setDate(t,n){return DZ(t,n)}setYear(t,n){return PZ(t,n)}getDiff(t,n,r){return Vv(t,n,r)}getWeekdays(t,n){const r=t!==void 0?Number(t):void 0;return nZ(this.locale,r,n)}getYear(t){return Yf(t)}getMonth(t){return cZ(t)}getWeek(t,n,r){const s=n!==void 0?Number(n):void 0,i=r!==void 0?Number(r):void 0;return dZ(t,this.locale,s,i)}getDate(t){return pZ(t)}getNextMonth(t){return mZ(t)}getPreviousMonth(t){return vZ(t)}getHours(t){return gZ(t)}getMinutes(t){return yZ(t)}startOfDay(t){return Xf(t)}endOfDay(t){return uS(t)}startOfYear(t){return xZ(t)}endOfYear(t){return bZ(t)}}const OZ=Symbol.for("vuetify:date-options"),OA=Symbol.for("vuetify:date-adapter");function $Z(e,t){const n=cs({adapter:RZ,locale:{af:"af-ZA",bg:"bg-BG",ca:"ca-ES",ckb:"",cs:"cs-CZ",de:"de-DE",el:"el-GR",en:"en-US",et:"et-EE",fa:"fa-IR",fi:"fi-FI",hr:"hr-HR",hu:"hu-HU",he:"he-IL",id:"id-ID",it:"it-IT",ja:"ja-JP",ko:"ko-KR",lv:"lv-LV",lt:"lt-LT",nl:"nl-NL",no:"no-NO",pl:"pl-PL",pt:"pt-PT",ro:"ro-RO",ru:"ru-RU",sk:"sk-SK",sl:"sl-SI",srCyrl:"sr-SP",srLatn:"sr-SP",sv:"sv-SE",th:"th-TH",tr:"tr-TR",az:"az-AZ",uk:"uk-UA",vi:"vi-VN",zhHans:"zh-CN",zhHant:"zh-TW"}},e);return{options:n,instance:MZ(n,t)}}function MZ(e,t){const n=Wt(typeof e.adapter=="function"?new e.adapter({locale:e.locale[t.current.value]??t.current.value,formats:e.formats}):e.adapter);return be(t.current,r=>{n.locale=e.locale[r]??r??n.locale}),n}const ey=["sm","md","lg","xl","xxl"],Xb=Symbol.for("vuetify:display"),$A={mobileBreakpoint:"lg",thresholds:{xs:0,sm:600,md:960,lg:1280,xl:1920,xxl:2560}},FZ=function(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:$A;return cs($A,e)};function MA(e){return on&&!e?window.innerWidth:typeof e=="object"&&e.clientWidth||0}function FA(e){return on&&!e?window.innerHeight:typeof e=="object"&&e.clientHeight||0}function BA(e){const t=on&&!e?window.navigator.userAgent:"ssr";function n(p){return!!t.match(p)}const r=n(/android/i),s=n(/iphone|ipad|ipod/i),i=n(/cordova/i),o=n(/electron/i),a=n(/chrome/i),l=n(/edge/i),u=n(/firefox/i),c=n(/opera/i),d=n(/win/i),f=n(/mac/i),h=n(/linux/i);return{android:r,ios:s,cordova:i,electron:o,chrome:a,edge:l,firefox:u,opera:c,win:d,mac:f,linux:h,touch:ZY,ssr:t==="ssr"}}function BZ(e,t){const{thresholds:n,mobileBreakpoint:r}=FZ(e),s=Ze(FA(t)),i=Ze(BA(t)),o=Wt({}),a=Ze(MA(t));function l(){s.value=FA(),a.value=MA()}
vendor: 1,026 bytes, line 13
13function u(){l(),i.value=BA()}return zn(()=>{const c=a.value<n.sm,d=a.value<n.md&&!c,f=a.value<n.lg&&!(d||c),h=a.value<n.xl&&!(f||d||c),p=a.value<n.xxl&&!(h||f||d||c),m=a.value>=n.xxl,v=c?"xs":d?"sm":f?"md":h?"lg":p?"xl":"xxl",x=typeof r=="number"?r:n[r],g=a.value<x;o.xs=c,o.sm=d,o.md=f,o.lg=h,o.xl=p,o.xxl=m,o.smAndUp=!c,o.mdAndUp=!(c||d),o.lgAndUp=!(c||d||f),o.xlAndUp=!(c||d||f||h),o.smAndDown=!(f||h||p||m),o.mdAndDown=!(h||p||m),o.lgAndDown=!(p||m),o.xlAndDown=!m,o.name=v,o.height=s.value,o.width=a.value,o.mobile=g,o.mobileBreakpoint=r,o.platform=i.value,o.thresholds=n}),on&&(window.addEventListener("resize",l,{passive:!0}),qn(()=>{window.removeEventListener("resize",l)},!0)),{...Pg(o),update:u,ssr:!!t}}const NZ=He({mobile:{type:Boolean,default:!1},mobileBreakpoint:[Number,String]},"display");function fd(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{mobile:null},t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:qo();const n=mt(Xb);if(!n)throw new Error("Could not find Vuetify display 
13injection");const r=F(()=>e.mobile?!0:typeof e.mobileBreakpoint=="number"?n.width.value<e.mobileBreakpoint:e.mobileBreakpoint?n.width.value<n.thresholds.value[e.mobileBreakpoint]:e.mobile===null?n.mobile.value:!1),s=Ae(()=>t?{[`${t}--mobile`]:r.value}:{});return{...n,displayClasses:s,mobile:r}}const l4=Symbol.for("vuetify:goto");function u4(){return{container:void 0,duration:300,layout:!1,offset:0,easing:"easeInOutCubic",patterns:jX}}function VZ(e){return cS(e)??(document.scrollingElement||document.body)}function cS(e){return typeof e=="string"?document.querySelector(e):U3(e)}function N1(e,t,n){if(typeof e=="number")return t&&n?-e:e;let r=cS(e),s=0;for(;r;)s+=t?r.offsetLeft:r.offsetTop,r=r.offsetParent;return s}function UZ(e,t){return{rtl:t.isRtl,options:cs(u4(),e)}}async function NA(e,t,n,r){const s=n?"scrollLeft":"scrollTop",i=cs(r?.options??u4(),t),o=r?.rtl.value,a=(typeof e=="number"?e:cS(e))??0,l=i.container==="parent"&&a instanceof HTMLElement?a.parentElement:VZ(i.container),u=yu()?i.patterns.instant:typeof i.easing=="function"?i.easing:i.patterns[i.easing];if(!u)throw new TypeError(`Easing function "${i.easing}" not found.`);let c;if(typeof a=="number")c=N1(a,n,o);else if(c=N1(a,n,o)-N1(l,n,o),i.layout){const p=window.getComputedStyle(a).getPropertyValue("--v-layout-top");p&&(c-=parseInt(p,10))}c+=i.offset,c=jZ(l,c,!!o,!!n);const d=l[s]??0;if(c===d)return Promise.resolve(c);const f=performance.now();return new Promise(h=>requestAnimationFrame(function p(m){const x=(m-f)/i.duration,g=Math.floor(d+(c-d)*u(Yr(x,0,1)));if(l[s]=g,x>=1&&Math.abs(g-l[s])<10)return h(c);if(x>2)return h(l[s]);requestAnimationFrame(p)}))}function dS(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};const t=mt(l4),{isRtl:n}=Jr();if(!t)throw new Error("[Vuetify] Could not find injected goto instance");const r={...t,rtl:Ae(()=>t.rtl.value||n.value)};async function s(i,o){return NA(i,cs(e,o),!1,r)}return s.horizontal=async(i,o)=>NA(i,cs(e,o),!0,r),s}function jZ(e,t,n,r){const{scrollWidth:s,scrollHeight:i}=e,[o,a]=e===document.scrollingElement?[window.innerWidth,window.innerHeight]:[e.offsetWidth,e.offsetHeight];let l,u;return r?n?(l=-(s-o),u=0):(l=0,u=s-o):(l=0,u=i+-a),Yr(t,l,u)}const c4={collapse:"mdi-chevron-up",complete:"mdi-check",cancel:"mdi-close-circle",close:"mdi-close",delete:"mdi-close-circle",clear:"mdi-close-circle",success:"mdi-check-circle",info:"mdi-information",warning:"mdi-alert-circle",error:"mdi-close-circle",prev:"mdi-chevron-left",next:"mdi-chevron-right",checkboxOn:"mdi-checkbox-marked",checkboxOff:"mdi-checkbox-blank-outline",checkboxIndeterminate:"mdi-minus-box",delimiter:"mdi-circle",sortAsc:"mdi-arrow-up",sortDesc:"mdi-arrow-down",expand:"mdi-chevron-down",menu:"mdi-menu",subgroup:"mdi-menu-down",dropdown:"mdi-menu-down",radioOn:"mdi-radiobox-marked",radioOff:"mdi-radiobox-blank",edit:"mdi-pencil",ratingEmpty:"mdi-star-outline",ratingFull:"mdi-star",ratingHalf:"mdi-star-half-full",loading:"mdi-cached",first:"mdi-page-first",last:"mdi-page-last",unfold:"mdi-unfold-more-horizontal",file:"mdi-paperclip",plus:"mdi-plus",minus:"mdi-minus",calendar:"mdi-calendar",treeviewCollapse:"mdi-menu-down",treeviewExpand:"mdi-menu-right",tableGroupCollapse:"mdi-chevron-down",tableGroupExpand:"mdi-chevron-right",eyeDropper:"mdi-eyedropper",upload:"mdi-cloud-upload",color:"mdi-palette",command:"mdi-apple-keyboard-command",ctrl:"mdi-apple-keyboard-control",space:"mdi-keyboard-space",shift:"mdi-apple-keyboard-shift",alt:"mdi-apple-keyboard-option",enter:"mdi-keyboard-return",arrowup:"mdi-arrow-up",arrowdown:"mdi-arrow-down",arrowleft:"mdi-arrow-left",arrowright:"mdi-arrow-right",backspace:"mdi-backspace",play:"mdi-play",pause:"mdi-pause",fullscreen:"mdi-fullscreen",fullscreenExit:"mdi-fullscreen-exit",volumeHigh:"mdi-volume-high",volumeMedium:"mdi-volume-medium",volumeLow:"mdi-volume-low",volumeOff:"mdi-volume-variant-off"},zZ={component:e=>Dt(f4,{...e,class:"mdi"})},jt=[String,Function,Object,Array],Zb=Symbol.for("vuetify:icons"),ty=He({icon:{type:jt},tag:{type:[String,Object,Function],required:!0}},"icon"),VA=nt()({name:"VComponentIcon",props:ty(),setup(e,t){let{slots:n}=t;return()=>{const r=e.icon;return S(e.tag,null,{default:()=>[e.icon?S(r,null,null):n.default?.()]})}}}),d4=$u({name:"VSvgIcon",inheritAttrs:!1,props:ty(),setup(e,t){let{attrs:n}=t;return()=>S(e.tag,Ve(n,{style:null}),{default:()=>[L("svg",{class:"v-icon__svg",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",role:"img","aria-hidden":"true"},[Array.isArray(e.icon)?e.icon.map(r=>Array.isArray(r)?L("path",{d:r[0],"fill-opacity":r[1]},null):L("path",{d:r},null)):L("path",{d:e.icon},null)])]})}});$u({name:"VLigatureIcon",props:ty(),setup(e){return()=>S(e.tag,null,{default:()=>[e.icon]})}});const f4=$u({name:"VClassIcon",props:ty(),setup(e){return()=>S(e.tag,{class:Ie(e.icon)},null)}});function HZ(){return{svg:{component:d4},class:{component:f4}}}function GZ(e){const t=HZ(),n=e?.defaultSet??"mdi";return n==="mdi"&&!t.mdi&&(t.mdi=zZ),cs({defaultSet:n,sets:t,aliases:{...c4,vuetify:["M8.2241 14.2009L12 21L22 3H14.4459L8.2241 14.2009Z",["M7.26303 12.4733L7.00113 12L2 3H12.5261C12.5261 3 12.5261 3 12.5261 3L7.26303 12.4733Z",.6]],"vuetify-outline":"svg:M7.26 12.47 12.53 3H2L7.26 12.47ZM14.45 3 8.22 14.2 12 21 22 3H14.45ZM18.6 5 12 16.88 10.51 14.2 15.62 5ZM7.26 8.35 5.4 5H9.13L7.26 8.35Z","vuetify-play":["m6.376 13.184-4.11-7.192C1.505 4.66 2.467 3 4.003 3h8.532l-.953 1.576-.006.01-.396.677c-.429.732-.214 1.507.194 2.015.404.503 1.092.878 1.869.806a3.72 3.72 0 0 1 1.005.022c.276.053.434.143.523.237.138.146.38.635-.25 2.09-.893 1.63-1.553 1.722-1.847 1.677-.213-.033-.468
13-.158-.756-.406a4.95 4.95 0 0 1-.8-.927c-.39-.564-1.04-.84-1.66-.846-.625-.006-1.316.27-1.693.921l-.478.826-.911 1.506Z",["M9.093 11.552c.046-.079.144-.15.32-.148a.53.53 0 0 1 .43.207c.285.414.636.847 1.046 1.2.405.35.914.662 1.516.754 1.334.205 2.502-.698 3.48-2.495l.014-.028.013-.03c.687-1.574.774-2.852-.005-3.675-.37-.391-.861-.586-1.333-.676a5.243 5.243 0 0 0-1.447-.044c-.173.016-.393-.073-.54-.257-.145-.18-.127-.316-.082-.392l.393-.672L14.287 3h5.71c1.536 0 2.499 1.659 1.737 2.992l-7.997 13.996c-.768 1.344-2.706 1.344-3.473 0l-3.037-5.314 1.377-2.278.004-.006.004-.007.481-.831Z",.6]]}},e)}const KZ=e=>{const t=mt(Zb);if(!t)throw new Error("Missing Vuetify Icons provide!");return{iconData:F(()=>{const r=qr(e);if(!r)return{component:VA};let s=r;if(typeof s=="string"&&(s=s.trim(),s.startsWith("$")&&(s=t.aliases?.[s.slice(1)])),Array.isArray(s))return{component:d4,icon:s};if(typeof s!="string")return{component:VA,icon:s};const i=Object.keys(t.sets).find(l=>typeof s=="string"&&s.startsWith(`${l}:`)),o=i?s.slice(i.length+1):s;return{component:t.sets[i??t.defaultSet].component,icon:o}})}},Zf=Symbol.for("vuetify:theme"),Dn=He({theme:String},"theme");function UA(){return{defaultTheme:"light",prefix:"v-",variations:{colors:[],lighten:0,darken:0},themes:{light:{dark:!1,colors:{background:"#FFFFFF",surface:"#FFFFFF","surface-bright":"#FFFFFF","surface-light":"#EEEEEE","surface-variant":"#424242","on-surface-variant":"#EEEEEE",primary:"#1867C0","primary-darken-1":"#1F5592",secondary:"#48A9A6","secondary-darken-1":"#018786",error:"#B00020",info:"#2196F3",success:"#4CAF50",warning:"#FB8C00"},variables:{"border-color":"#000000","border-opacity":.12,"high-emphasis-opacity":.87,"medium-emphasis-opacity":.6,"disabled-opacity":.38,"idle-opacity":.04,"hover-opacity":.04,"focus-opacity":.12,"selected-opacity":.08,"activated-opacity":.12,"pressed-opacity":.12,"dragged-opacity":.08,"theme-kbd":"#EEEEEE","theme-on-kbd":"#000000","theme-code":"#F5F5F5","theme-on-code":"#000000"}},dark:{dark:!0,colors:{background:"#121212",surface:"#212121","surface-bright":"#ccbfd6","surface-light":"#424242","surface-variant":"#c8c8c8","on-surface-variant":"#000000",primary:"#2196F3","primary-darken-1":"#277CC1",secondary:"#54B6B2","secondary-darken-1":"#48A9A6",error:"#CF6679",info:"#2196F3",success:"#4CAF50",warning:"#FB8C00"},variables:{"border-color":"#FFFFFF","border-opacity":.12,"high-emphasis-opacity":1,"medium-emphasis-opacity":.7,"disabled-opacity":.5,"idle-opacity":.1,"hover-opacity":.04,"focus-opacity":.12,"selected-opacity":.08,"activated-opacity":.12,"pressed-opacity":.16,"dragged-opacity":.08,"theme-kbd":"#424242","theme-on-kbd":"#FFFFFF","theme-code":"#343434","theme-on-code":"#CCCCCC"}}},stylesheetId:"vuetify-theme-stylesheet",scoped:!1,unimportant:!1,utilities:!0}}function WZ(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:UA();const t=UA();if(!e)return{...t,isDisabled:!0};const n={};for(const[r,s]of Object.entries(e.themes??{})){const i=s.dark||r==="dark"?t.themes?.dark:t.themes?.light;n[r]=cs(i,s)}return cs(t,{...e,themes:n})}function Fl(e,t,n,r){e.push(`${ZZ(t,r)} {
14`,...n.map(s=>`  ${s};
15`),`}
16`)}function jA(e,t){const n=e.dark?2:1,r=e.dark?1:2,s=[];for(const[i,o]of Object.entries(e.colors)){const a=Po(o);s.push(`--${t}theme-${i}: ${a.r},${a.g},${a.b}`),i.startsWith("on-")||s.push(`--${t}theme-${i}-overlay-multiplier: ${$X(o)>.18?n:r}`)}for(const[i,o]of Object.entries(e.variables)){const a=typeof o=="string"&&o.startsWith("#")?Po(o):void 0,l=a?`${a.r}, ${a.g}, ${a.b}`:void 0;s.push(`--${t}${i}: ${l??o}`)}return s}function qZ(e,t,n){const r={};if(n)for(const s of["lighten","darken"]){const i=s==="lighten"?RX:OX;for(const o of Zl(n[s],1))r[`${e}-${s}-${o}`]=LX(i(Po(t),o))}return r}function YZ(e,t){if(!t)return{};let n={};for(const r of t.colors){const s=e[r];s&&(n={...n,...qZ(r,s,t)})}return n}function XZ(e){const t={};for(const n of Object.keys(e)){if(n.startsWith("on-")||e[`on-${n}`])continue;const r=`on-${n}`,s=Po(e[n]);t[r]=e4(s)}return t}function ZZ(e,t){if(!t)return e;const n=`:where(${t})`;return e===":root"?n:`${n} ${e}`}function JZ(e,t,n){const r=QZ(e,t);r&&(r.innerHTML=n)}function QZ(e,t){if(!on)return null;let n=document.getElementById(e);return n||(n=document.createElement("style"),n.id=e,n.type="text/css",t&&n.setAttribute("nonce",t),document.head.appendChild(n)),n}function eJ(e){const t=WZ(e),n=Ze(t.defaultTheme),r=M(t.themes),s=Ze("light"),i=F({get(){return n.value==="system"?s.value:n.value},set(x){n.value=x}}),o=F(()=>{const x={};for(const[g,y]of Object.entries(r.value)){const _={...y.colors,...YZ(y.colors,t.variations)};x[g]={...y,colors:{..._,...XZ(_)}}}return x}),a=Ae(()=>o.value[i.value]),l=Ae(()=>n.value==="system"),u=F(()=>{const x=[],g=t.unimportant?"":" !important",y=t.scoped?t.prefix:"";a.value?.dark&&Fl(x,":root",["color-scheme: dark"],t.scope),Fl(x,":root",jA(a.value,t.prefix),t.scope);for(const[_,E]of Object.entries(o.value))Fl(x,`.${t.prefix}theme--${_}`,[`color-scheme: ${E.dark?"dark":"normal"}`,...jA(E,t.prefix)],t.scope);if(t.utilities){const _=[],E=[],w=new Set(Object.values(o.value).flatMap(T=>Object.keys(T.colors)));for(const T of w)T.startsWith("on-")?Fl(E,`.${T}`,[`color: rgb(var(--${t.prefix}theme-${T}))${g}`],t.scope):(Fl(_,`.${y}bg-${T}`,[`--${t.prefix}theme-overlay-multiplier: var(--${t.prefix}theme-${T}-overlay-multiplier)`,`background-color: rgb(var(--${t.prefix}theme-${T}))${g}`,`color: rgb(var(--${t.prefix}theme-on-${T}))${g}`],t.scope),Fl(E,`.${y}text-${T}`,[`color: rgb(var(--${t.prefix}theme-${T}))${g}`],t.scope),Fl(E,`.${y}border-${T}`,[`--${t.prefix}border-color: var(--${t.prefix}theme-${T})`],t.scope));x.push(..._,...E)}return x.map((_,E)=>E===0?_:`    ${_}`).join("")}),c=Ae(()=>t.isDisabled?void 0:`${t.prefix}theme--${i.value}`),d=Ae(()=>Object.keys(o.value));
16if(Q_){let g=function(){s.value=x.matches?"dark":"light"};const x=window.matchMedia("(prefers-color-scheme: dark)");g(),x.addEventListener("change",g,{passive:!0}),El()&&qn(()=>{x.removeEventListener("change",g)})}function f(x){if(t.isDisabled)return;const g=x._context.provides.usehead;if(g){let y=function(){return{style:[{textContent:u.value,id:t.stylesheetId,nonce:t.cspNonce||!1}]}};if(g.push){const _=g.push(y);on&&be(u,()=>{_.patch(y)})}else on?(g.addHeadObjs(Ae(y)),zn(()=>g.updateDOM())):g.addHeadObjs(y())}else{let y=function(){JZ(t.stylesheetId,t.cspNonce,u.value)};on?be(u,y,{immediate:!0}):y()}}function h(x){x!=="system"&&!d.value.includes(x)||(i.value=x)}function p(){let x=arguments.length>0&&arguments[0]!==void 0?arguments[0]:d.value;const g=x.indexOf(i.value),y=g===-1?0:(g+1)%x.length;h(x[y])}function m(){let x=arguments.length>0&&arguments[0]!==void 0?arguments[0]:["light","dark"];p(x)}const v=new Proxy(i,{get(x,g){return Reflect.get(x,g)},set(x,g,y){return g==="value"&&B3(`theme.global.name.value = ${y}`,`theme.change('${y}')`),Reflect.set(x,g,y)}});return{install:f,change:h,cycle:p,toggle:m,isDisabled:t.isDisabled,isSystem:l,name:i,themes:r,current:a,computedThemes:o,prefix:t.prefix,themeClasses:c,styles:u,global:{name:v,current:a}}}function ir(e){fr("provideTheme");const t=mt(Zf,null);if(!t)throw new Error("Could not find Vuetify theme injection");const n=Ae(()=>e.theme??t.name.value),r=Ae(()=>t.themes.value[n.value]),s=Ae(()=>t.isDisabled?void 0:`${t.prefix}theme--${n.value}`),i={...t,name:n,current:r,themeClasses:s};return Cn(Zf,i),i}function Mu(){fr("useTheme");const e=mt(Zf,null);if(!e)throw new Error("Could not find Vuetify theme injection");return e}function Ia(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"content";const n=Wb(),r=M();if(on){const s=new ResizeObserver(i=>{e?.(i,s),i.length&&(t==="content"?r.value=i[0].contentRect:r.value=i[0].target.getBoundingClientRect())});cn(()=>{s.disconnect()}),be(()=>n.el,(i,o)=>{o&&(s.unobserve(o),r.value=void 0),i&&s.observe(i)},{flush:"post"})}return{resizeRef:n,contentRect:ds(r)}}const Uv=Symbol.for("vuetify:layout"),h4=Symbol.for("vuetify:layout-item"),zA=1e3,tJ=He({overlaps:{type:Array,default:()=>[]},fullHeight:Boolean},"layout"),fS=He({name:{type:String},order:{type:[Number,String],default:0},absolute:Boolean},"layout-item");function nJ(){const e=mt(Uv);if(!e)throw new Error("[Vuetify] Could not find injected layout");return{getLayoutItem:e.getLayoutItem,mainRect:e.mainRect,mainStyles:e.mainStyles}}function hS(e){const t=mt(Uv);if(!t)throw new Error("[Vuetify] Could not find injected layout");const n=e.id??`layout-item-${Ds()}`,r=fr("useLayoutItem");Cn(h4,{id:n});const s=Ze(!1);La(()=>s.value=!0),zi(()=>s.value=!1);const{layoutItemStyles:i,layoutItemScrimStyles:o}=t.register(r,{...e,active:F(()=>s.value?!1:e.active.value),id:n});return cn(()=>t.unregister(n)),{layoutItemStyles:i,layoutRect:t.layoutRect,layoutItemScrimStyles:o}}const rJ=(e,t,n,r)=>{let s={top:0,left:0,right:0,bottom:0};const i=[{id:"",layer:{...s}}];for(const o of e){const a=t.get(o),l=n.get(o),u=r.get(o);if(!a||!l||!u)continue;const c={...s,[a.value]:parseInt(s[a.value],10)+(u.value?parseInt(l.value,10):0)};i.push({id:o,layer:c}),s=c}return i};function sJ(e){const t=mt(Uv,null),n=F(()=>t?t.rootZIndex.value-100:zA),r=M([]),s=Wt(new Map),i=Wt(new Map),o=Wt(new Map),a=Wt(new Map),l=Wt(new Map),{resizeRef:u,contentRect:c}=Ia(),d=F(()=>{const w=new Map,T=e.overlaps??[];for(const C of T.filter(I=>I.includes(":"))){const[I,k]=C.split(":");if(!r.value.includes(I)||!r.value.includes(k))continue;const $=s.get(I),R=s.get(k),D=i.get(I),O=i.get(k);!$||!R||!D||!O||(w.set(k,{position:$.value,amount:parseInt(D.value,10)}),w.set(I,{position:R.value,amount:-parseInt(O.value,10)}))}return w}),f=F(()=>{const w=[...new Set([...o.values()].map(C=>C.value))].sort((C,I)=>C-I),T=[];for(const C of w){const I=r.value.filter(k=>o.get(k)?.value===C);T.push(...I)}return rJ(T,s,i,a)}),h=F(()=>!Array.from(l.values()).some(w=>w.value)),p=F(()=>f.value[f.value.length-1].layer),m=Ae(()=>({"--v-layout-left":ht(p.value.left),"--v-layout-right":ht(p.value.right),"--v-layout-top":ht(p.value.top),"--v-layout-bottom":ht(p.value.bottom),...h.value?void 0:{transition:"none"}})),v=F(()=>f.value.slice(1).map((w,T)=>{let{id:C}=w;const{layer:I}=f.value[T],k=i.get(C),$=s.get(C);return{id:C,...I,size:Number(k.value),position:$.value}})),x=w=>v.value.find(T=>T.id===w),g=fr("createLayout"),y=Ze(!1);ft(()=>{y.value=!0}),Cn(Uv,{register:(w,T)=>{let{id:C,order:I,position:k,layoutSize:$,elementSize:R,active:D,disableTransitions:O,absolute:B}=T;o.set(C,I),s.set(C,k),i.set(C,$),a.set(C,D),O&&l.set(C,O);const N=dc(h4,g?.vnode).indexOf(w);N>-1?r.value.splice(N,0,C):r.value.push(C);const V=F(()=>v.value.findIndex(X=>X.id===C)),H=F(()=>n.value+f.value.length*2-V.value*2),re=F(()=>{const X=k.value==="left"||k.value==="right",Q=k.value==="right",le=k.value==="bottom",ve=R.value??$.value,oe=ve===0?"%":"px",K={[k.value]:0,zIndex:H.value,transform:`translate${X?"X":"Y"}(${(D.value?0:-(ve===0?100:ve))*(Q||le?-1:1)}${oe})`,position:B.value||n.value!==zA?"absolute":"fixed",...h.value?void 0:{transition:"none"}};if(!y.value)return K;const ee=v.value[V.value],ae=d.value.get(C);return ae&&(ee[ae.position]+=ae.amount),{...K,height:X?`calc(100% - ${ee.top}px - ${ee.bottom}px)`:R.value?`${R.value}px`:void 0,left:Q?void 0:`${ee.left}px`,right:Q?`${ee.right}px`:void 0,top:k.value!=="bottom"?`${ee.top}px`:void 0,bottom:k.value!=="top"?`${ee.bottom}px`:void 0,width:X?R.value?`${R.value}px`:void 0:`calc(100% - ${ee.left}px - ${ee.right}px)`}}
16),W=F(()=>({zIndex:H.value-1}));return{layoutItemStyles:re,layoutItemScrimStyles:W,zIndex:H}},unregister:w=>{o.delete(w),s.delete(w),i.delete(w),a.delete(w),l.delete(w),r.value=r.value.filter(T=>T!==w)},mainRect:p,mainStyles:m,getLayoutItem:x,items:v,layoutRect:c,rootZIndex:n});const _=Ae(()=>["v-layout",{"v-layout--full-height":e.fullHeight}]),E=Ae(()=>({zIndex:t?n.value:void 0,position:t?"relative":void 0,overflow:t?"hidden":void 0}));return{layoutClasses:_,layoutStyles:E,getLayoutItem:x,items:v,layoutRect:c,layoutRef:u}}function p4(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};const{blueprint:t,...n}=e,r=cs(t,n),{aliases:s={},components:i={},directives:o={}}=r,a=fl();return a.run(()=>{const l=FX(r.defaults),u=BZ(r.display,r.ssr),c=eJ(r.theme),d=GZ(r.icons),f=YX(r.locale),h=$Z(r.date,f),p=UZ(r.goTo,f);function m(x){for(const y in o)x.directive(y,o[y]);for(const y in i)x.component(y,i[y]);for(const y in s)x.component(y,$u({...s[y],name:y,aliasName:s[y].name}));const g=fl();if(g.run(()=>{c.install(x)}),x.onUnmount(()=>g.stop()),x.provide(Vc,l),x.provide(Xb,u),x.provide(Zf,c),x.provide(Zb,d),x.provide(Fv,f),x.provide(OZ,h.options),x.provide(OA,h.instance),x.provide(l4,p),on&&r.ssr)if(x.$nuxt)x.$nuxt.hook("app:suspense:resolve",()=>{u.update()});else{const{mount:y}=x;x.mount=function(){const _=y(...arguments);return tt(()=>u.update()),x.mount=y,_}}x.mixin({computed:{$vuetify(){return Wt({defaults:qu.call(this,Vc),display:qu.call(this,Xb),theme:qu.call(this,Zf),icons:qu.call(this,Zb),locale:qu.call(this,Fv),date:qu.call(this,OA)})}}})}function v(){a.stop()}return{install:m,unmount:v,defaults:l,display:u,theme:c,icons:d,locale:f,date:h,goTo:p}})}const iJ="3.10.9";p4.version=iJ;function qu(e){const t=this.$,n=t.parent?.provides??t.vnode.appContext?.provides;if(n&&e in n)return n[e]}const oJ=Object.freeze({left:0,top:0,width:16,height:16}),m4=Object.freeze({rotate:0,vFlip:!1,hFlip:!1}),pS=Object.freeze({...oJ,...m4});Object.freeze({...pS,body:"",hidden:!1});function aJ(e,t){let n=e.indexOf("xlink:")===-1?"":' xmlns:xlink="http://www.w3.org/1999/xlink"';for(const r in t)n+=" "+r+'="'+t[r]+'"';return'<svg xmlns="http://www.w3.org/2000/svg"'+n+">"+e+"</svg>"}const lJ=/(-?[0-9.]*[0-9]+[0-9.]*)/g,uJ=/^-?[0-9.]*[0-9]+[0-9.]*$/g;function Jb(e,t,n){if(t===1)return e;if(n=n||100,typeof e=="number")return Math.ceil(e*t*n)/n;if(typeof e!="string")return e;const r=e.split(lJ);if(r===null||!r.length)return e;const s=[];let i=r.shift(),o=uJ.test(i);for(;;){if(o){const a=parseFloat(i);isNaN(a)?s.push(i):s.push(Math.ceil(a*t*n)/n)}else s.push(i);if(i=r.shift(),i===void 0)return s.join("");o=!o}}function cJ(e){return e.replace(/"/g,"'").replace(/%/g,"%25").replace(/#/g,"%23").replace(/</g,"%3C").replace(/>/g,"%3E").replace(/\s+/g," ")}function dJ(e){return"data:image/svg+xml,"+cJ(e)}function fJ(e){return'url("'+dJ(e)+'")'}function hJ(e){const[t,n,r,s]=e;if(r!==s){const i=Math.max(r,s);return[t-(i-r)/2,n-(i-s)/2,i,i]}return e}const pJ=Object.freeze({width:null,height:null}),mJ=Object.freeze({...pJ,...m4});function vJ(e,t="defs"){let n="";const r=e.indexOf("<"+t);for(;r>=0;){const s=e.indexOf(">",r),i=e.indexOf("</"+t);if(s===-1||i===-1)break;const o=e.indexOf(">",i);if(o===-1)break;n+=e.slice(s+1,i).trim(),e=e.slice(0,r).trim()+e.slice(o+1)}return{defs:n,content:e}}function gJ(e,t){return e?"<defs>"+e+"</defs>"+t:t}function yJ(e,t,n){const r=vJ(e);return gJ(r.defs,t+r.content+n)}const xJ=e=>e==="unset"||e==="undefined"||e==="none";function bJ(e,t){const n={...pS,...e},r={...mJ,...t},s={left:n.left,top:n.top,width:n.width,height:n.height};let i=n.body;[n,r].forEach(m=>{const v=[],x=m.hFlip,g=m.vFlip;let y=m.rotate;x?g?y+=2:(v.push("translate("+(s.width+s.left).toString()+" "+(0-s.top).toString()+")"),v.push("scale(-1 1)"),s.top=s.left=0):g&&(v.push("translate("+(0-s.left).toString()+" "+(s.height+s.top).toString()+")"),v.push("scale(1 -1)"),s.top=s.left=0);let _;switch(y<0&&(y-=Math.floor(y/4)*4),y=y%4,y){case 1:_=s.height/2+s.top,v.unshift("rotate(90 "+_.toString()+" "+_.toString()+")");break;case 2:v.unshift("rotate(180 "+(s.width/2+s.left).toString()+" "+(s.height/2+s.top).toString()+")");break;case 3:_=s.width/2+s.left,v.unshift("rotate(-90 "+_.toString()+" "+_.toString()+")");break}y%2===1&&(s.left!==s.top&&(_=s.left,s.left=s.top,s.top=_),s.width!==s.height&&(_=s.width,s.width=s.height,s.height=_)),v.length&&(i=yJ(i,'<g transform="'+v.join(" ")+'">',"</g>"))});const o=r.width,a=r.height,l=s.width,u=s.height;
16let c,d;o===null?(d=a===null?"1em":a==="auto"?u:a,c=Jb(d,l/u)):(c=o==="auto"?l:o,d=a===null?Jb(c,u/l):a==="auto"?u:a);const f={},h=(m,v)=>{xJ(v)||(f[m]=v.toString())};h("width",c),h("height",d);const p=[s.left,s.top,l,u];return f.viewBox=p.join(" "),{attributes:f,viewBox:p,body:i}}function _J(e){const t={display:"inline-block",width:"1em",height:"1em"},n=e.varName;switch(e.pseudoSelector&&(t.content="''"),e.mode){case"background":n&&(t["background-image"]="var(--"+n+")"),t["background-repeat"]="no-repeat",t["background-size"]="100% 100%";break;case"mask":t["background-color"]="currentColor",n&&(t["mask-image"]=t["-webkit-mask-image"]="var(--"+n+")"),t["mask-repeat"]=t["-webkit-mask-repeat"]="no-repeat",t["mask-size"]=t["-webkit-mask-size"]="100% 100%";break}return t}function SJ(e,t){const n={},r=t.varName,s=bJ(e);let i=s.viewBox;i[2]!==i[3]&&(t.forceSquare?i=hJ(i):n.width=Jb("1em",i[2]/i[3]));const o=aJ(s.body.replace(/currentColor/g,t.color||"black"),{viewBox:`${i[0]} ${i[1]} ${i[2]} ${i[3]}`,width:`${i[2]}`,height:`${i[3]}`}),a=fJ(o);if(r)n["--"+r]=a;else switch(t.mode){case"background":n["background-image"]=a;break;case"mask":n["mask-image"]=n["-webkit-mask-image"]=a;break}return n}const V1={selectorStart:{compressed:"{",compact:" {",expanded:" {"},selectorEnd:{compressed:"}",compact:`; }
17`,expanded:`;
18}
19`},rule:{compressed:"{key}:",compact:" {key}: ",expanded:`
20  {key}: `}};function EJ(e,t="expanded"){const n=[];for(let r=0;r<e.length;r++){const{selector:s,rules:i}=e[r];let a=(s instanceof Array?s.join(t==="compressed"?",":", "):s)+V1.selectorStart[t],l=!0;for(const u in i)l||(a+=";"),a+=V1.rule[t].replace("{key}",u)+i[u],l=!1;a+=V1.selectorEnd[t],n.push(a)}return n.join(t==="compressed"?"":`
21`)}function wJ(e,t={}){const n=t.customise?t.customise(e.body):e.body,r=t.mode||(t.color||!n.includes("currentColor")?"background":"mask");let s=t.varName;s===void 0&&r==="mask"&&(s="svg");const i={...t,mode:r,varName:s};r==="background"&&delete i.varName;const o={...t.rules,..._J(i),...SJ({...pS,...e,body:n},i)},a=t.iconSelector||".icon";return EJ([{selector:a,rules:o}],i.format)}async function TJ(e,t){if(!e)return null;const n=Vb(e);return n||(await LY(e).catch(()=>(console.warn(`[Icon] failed to load icon \`${e}\``),null)),Vb(e))}function v4(e){const t=$h().icon,n=(t.collections||[]).sort((r,s)=>s.length-r.length);return F(()=>{const r=e(),s=r.startsWith(t.cssSelectorPrefix)?r.slice(t.cssSelectorPrefix.length):r,i=t.aliases?.[s]||s;if(!i.includes(":")){const o=n.find(a=>i.startsWith(a+"-"));return o?o+":"+i.slice(o.length+1):i}return i})}function g4(e,t){if(e!==!1)return e===!0||e===null?t:e}let Fd;function CJ(e){return e.replace(/([^\w-])/g,"\\$1")}function AJ(){if(Fd)return Fd;Fd=new Set;const e=n=>{if(n=n.replace(/^:where\((.*)\)$/,"$1").trim(),n.startsWith("."))return n},t=n=>{if(n?.length)for(const r of n){r?.cssRules&&t(r.cssRules);const s=r?.selectorText;if(typeof s=="string"){const i=e(s);i&&Fd.add(i)}}};if(typeof document<"u")for(const n of document.styleSheets)try{const r=n.cssRules||n.rules;t(r)}catch{}return Fd}const kJ=ke({name:"NuxtIconCss",props:{name:{type:String,required:!0},customize:{type:[Function,Boolean,null],default:null,required:!1}},setup(e){const t=wt(),n=$h().icon,r=F(()=>e.name?n.cssSelectorPrefix+e.name:"");function s(a){if(!a)return;const l=Vb(a);if(l)return l;const u=t.payload?.data?.[a];if(u)return X_(a,u),u}const i=F(()=>"."+CJ(r.value));function o(a,l=!0){let u=i.value;n.cssWherePseudo&&(u=`:where(${u})`);const c=wJ(a,{iconSelector:u,format:"compressed",customise:g4(e.customize,n.customize)});return n.cssLayer&&l?`@layer ${n.cssLayer} { ${c} }`:c}{const a=AJ();async function l(u){if(a.has(i.value)||typeof document>"u")return;const c=document.createElement("style");c.textContent=o(u);const d=document.head.querySelector('style, link[rel="stylesheet"]');d?document.head.insertBefore(c,d):document.head.appendChild(c),a.add(i.value)}be(()=>e.name,()=>{if(a.has(i.value))return;const u=s(e.name);u?l(u):TJ(e.name).then(c=>{c&&l(c)}).catch(()=>null)},{immediate:!0})}return()=>Dt("span",{class:["iconify",r.value]})}}
21),IJ=ke({name:"NuxtIconSvg",props:{name:{type:String,required:!0},customize:{type:[Function,Boolean,null],default:null,required:!1}},setup(e,{slots:t}){const n=wt(),r=$h().icon,s=v4(()=>e.name),i="i-"+s.value;if(s.value){const o=n.payload.data[i];o&&X_(s.value,o)}return()=>Dt(zY,{icon:s.value,ssr:!0,customise:g4(e.customize,r.customize)},t)}}),ny=ke({name:"NuxtIcon",props:{name:{type:String,required:!0},mode:{type:String,required:!1,default:null},size:{type:[Number,String],required:!1,default:null},customize:{type:[Function,Boolean,null],default:null,required:!1}},setup(e,{slots:t}){const n=wt(),r=$h().icon,s=v4(()=>e.name),i=F(()=>n.vueApp?.component(s.value)||((e.mode||r.mode)==="svg"?IJ:kJ)),o=F(()=>{const a=e.size||r.size;return a?{fontSize:Number.isNaN(+a)?a:a+"px"}:null});return()=>Dt(i.value,{...r.attrs,name:s.value,class:r.class,style:o.value,customize:e.customize},t)}}),LJ=Object.freeze(Object.defineProperty({__proto__:null,default:ny},Symbol.toStringTag,{value:"Module"})),DJ={component:e=>Dt("i",{},[Dt(ny,{name:e.icon.replace("mdi-","mdi:"),disabled:e.disabled,mode:"css",class:"yj-gradient-icon"})])},PJ=mi(e=>{const t=p4({ssr:!0,theme:{defaultTheme:Kg("theme",{default:()=>"dark"}).value,variations:{colors:["primary","secondary","surface"],lighten:3,darken:3},themes:{light:{dark:!1,colors:{primary:"#9333ea","on-primary":"#FFFFFF",secondary:"#6366f1","on-secondary":"#FFFFFF",error:"#e11d48",info:"#818cf8",success:"#059669",warning:"#d97706",background:"#faf5ff",surface:"#f0e4ff","on-surface":"#1e0a3c","surface-bright":"#FFFFFF","surface-light":"#e9d5ff","surface-variant":"#ddd6fe","on-surface-variant":"#7e22ce"},variables:{"border-color":"#c026d3","border-opacity":.22,"high-emphasis-opacity":.87,"medium-emphasis-opacity":.6,"disabled-opacity":.38,"idle-opacity":.04,"hover-opacity":.06,"focus-opacity":.14,"selected-opacity":.1,"activated-opacity":.14,"pressed-opacity":.14,"dragged-opacity":.08,"theme-kbd":"#1e0a3c","theme-on-kbd":"#FFFFFF","theme-code":"#f0e4ff","theme-on-code":"#1e0a3c"}},dark:{dark:!0,colors:{primary:"#7e22ce","on-primary":"#FFFFFF",secondary:"#6366f1","on-secondary":"#FFFFFF",error:"#f87171",info:"#6366f1",success:"#34d399",warning:"#fbbf24",background:"#060310",surface:"#0e061c","on-surface":"#ede9fe","surface-bright":"#6b21e8","surface-light":"#150a2e","surface-variant":"#2e1065","on-surface-variant":"#a78bfa"},variables:{"border-color":"#7e22ce","border-opacity":.22,"high-emphasis-opacity":1,"medium-emphasis-opacity":.72,"disabled-opacity":.5,"idle-opacity":.12,"hover-opacity":.06,"focus-opacity":.16,"selected-opacity":.12,"activated-opacity":.16,"pressed-opacity":.2,"dragged-opacity":.1,"theme-kbd":"#1a0e3d","theme-on-kbd":"#faf0ff","theme-code":"#12082a","theme-on-code":"#faf0ff"}}}},icons:{defaultSet:"iconify",aliases:c4,sets:{iconify:DJ}},defaults:{global:{flat:!0,ripple:!1},VBtn:{style:"text-transform: capitalize; letter-spacing: 0px;"},VCard:{class:"rounded-2xl"},VDivider:{style:"border-color: rgba(var(--v-border-color), 1)"}}});e.vueApp.use(t)}),RJ=[g9,S9,$K,MK,BK,jq,Hq,KY,WY,qY,YY,XY,PJ];function OJ(e,t){const n=t/e*100;return 2/Math.PI*100*Math.atan(n/50)}function $J(e={}){const{duration:t=2e3,throttle:n=200,hideDelay:r=500,resetDelay:s=400}=e,i=e.estimatedProgress||OJ,o=wt(),a=Ze(0),l=Ze(!1),u=Ze(!1);let c=!1,d,f,h,p;const m=(T={})=>{y(),u.value=!1,v(0,T)};function v(T=0,C={}){if(o.isHydrating)return;if(T>=100)return g({force:C.force});_(),a.value=T<0?0:T;const I=C.force?0:n;I?f=setTimeout(()=>{l.value=!0,E()},I):(l.value=!0,E())}function x(){h=setTimeout(()=>{l.value=!1,p=setTimeout(()=>{a.value=0},s)},r)}function g(T={}){a.value=100,c=!0,_(),y(),T.error&&(u.value=!0),T.force?(a.value=0,l.value=!1):x()}function y(){clearTimeout(h),clearTimeout(p)}function _(){clearTimeout(f),cancelAnimationFrame(d)}function E(){c=!1;let T;function C(I){if(c)return;T??=I;const k=I-T;a.value=Math.max(0,Math.min(100,i(t,k))),d=requestAnimationFrame(C)}d=requestAnimationFrame(C)}let w=()=>{};{const T=o.hook("page:loading:start",()=>{m()}),C=o.hook("page:loading:end",()=>{g()}),I=o.hook("vue:error",()=>g());w=()=>{I(),T(),C(),_()}}return{_cleanup:w,progress:F(()=>a.value),isLoading:F(()=>l.value),error:F(()=>u.value),start:m,set:v,finish:g,clear:_}}function MJ(e={}){const t=wt(),n=t._loadingIndicator||=$J(e);return El()&&(t._loadingIndicatorDeps||=0,t._loadingIndicatorDeps++,qn(()=>{t._loadingIndicatorDeps--,t._loadingIndicatorDeps===0&&(n._cleanup(),delete t._loadingIndicator)})),n}
21const FJ=ke({name:"NuxtLoadingIndicator",props:{throttle:{type:Number,default:200},duration:{type:Number,default:2e3},hideDelay:{type:Number,default:500},resetDelay:{type:Number,default:400},height:{type:Number,default:3},color:{type:[String,Boolean],default:"repeating-linear-gradient(to right,#00dc82 0%,#34cdfe 50%,#0047e1 100%)"},errorColor:{type:String,default:"repeating-linear-gradient(to right,#f87171 0%,#ef4444 100%)"},estimatedProgress:{type:Function,required:!1}},setup(e,{slots:t,expose:n}){const{progress:r,isLoading:s,error:i,start:o,finish:a,clear:l}=MJ({duration:e.duration,throttle:e.throttle,hideDelay:e.hideDelay,resetDelay:e.resetDelay,estimatedProgress:e.estimatedProgress});return n({progress:r,isLoading:s,error:i,start:o,finish:a,clear:l}),()=>Dt("div",{class:"nuxt-loading-indicator",style:{position:"fixed",top:0,right:0,left:0,pointerEvents:"none",width:"auto",height:`${e.height}px`,opacity:s.value?1:0,background:i.value?e.errorColor:e.color||void 0,backgroundSize:`${r.value>0?100/r.value*100:0}% auto`,transform:`scaleX(${r.value}%)`,transformOrigin:"left",transition:"transform 0.1s, height 0.4s, opacity 0.4s",zIndex:999999}},t)}}),y4=(e="RouteProvider")=>ke({name:e,props:{route:{type:Object,required:!0},vnode:Object,vnodeRef:Object,renderKey:String,trackRootNodes:Boolean},setup(t){const n=t.renderKey,r=t.route,s={};for(const i in t.route)Object.defineProperty(s,i,{get:()=>n===t.renderKey?t.route[i]:r[i],enumerable:!0});return Cn(mu,so(s)),()=>t.vnode?Dt(t.vnode,{ref:t.vnodeRef}):t.vnode}}),BJ=y4(),HA=new WeakMap,NJ=ke({name:"NuxtPage",inheritAttrs:!1,props:{name:{type:String},transition:{type:[Boolean,Object],default:void 0},keepalive:{type:[Boolean,Object],default:void 0},route:{type:Object},pageKey:{type:[Function,String],default:null}},setup(e,{attrs:t,slots:n,expose:r}){const s=wt(),i=M(),o=mt(mu,null);let a;r({pageRef:i});const l=mt(UP,null);let u;const c=s.deferHydration();if(s.isHydrating){const f=s.hooks.hookOnce("app:error",c);Tt().beforeEach(f)}e.pageKey&&be(()=>e.pageKey,(f,h)=>{f!==h&&s.callHook("page:loading:start")});let d=!1;{const f=Tt().beforeResolve(()=>{d=!1});cn(()=>{f()})}return()=>Dt(sR,{name:e.name,route:e.route,...t},{default:f=>{const h=UJ(o,f.route,f.Component),p=o&&o.matched.length===f.route.matched.length;if(!f.Component){if(u&&!p)return u;c();return}if(u&&l&&!l.isCurrent(f.route))return u;if(h&&o&&(!l||l?.isCurrent(o)))return p?u:null;const m=xb(f,e.pageKey),v=jJ(o,f.route,f.Component);!s.isHydrating&&a===m&&!v&&tt(()=>{d=!0,s.callHook("page:loading:end")}),a=m;const x=!!(e.transition??f.route.meta.pageTransition??oT),g=x&&VJ([e.transition,f.route.meta.pageTransition,oT,{onAfterLeave(){delete s._runningTransition,s.callHook("page:transition:finish",f.Component)}}]),y=e.keepalive??f.route.meta.keepalive??lV;return u=iR(x&&g,PU(y,Dt(td,{suspensible:!0,onPending:()=>{x&&(s._runningTransition=!0),s.callHook("page:start",f.Component)}
21,onResolve:()=>{tt(()=>s.callHook("page:finish",f.Component).then(()=>{if(delete s._runningTransition,!d&&!v)return d=!0,s.callHook("page:loading:end")}).finally(c))}},{default:()=>{const _={key:m||void 0,vnode:n.default?zJ(n.default,f):f.Component,route:f.route,renderKey:m||void 0,trackRootNodes:x,vnodeRef:i};if(!y)return Dt(BJ,_);const E=f.Component.type,w=E;let T=HA.get(w);return T||(T=y4(E.name||E.__name),HA.set(w,T)),Dt(T,_)}}))).default(),u}})}});function VJ(e){const t=[];for(const n of e)n&&t.push({...n,onAfterLeave:n.onAfterLeave?T_(n.onAfterLeave):void 0});return yV(...t)}function UJ(e,t,n){if(!e)return!1;const r=t.matched.findIndex(s=>s.components?.default===n?.type);return!r||r===-1?!1:t.matched.slice(0,r).some((s,i)=>s.components?.default!==e.matched[i]?.components?.default)||n&&xb({route:t,Component:n})!==xb({route:e,Component:n})}function jJ(e,t,n){return e?t.matched.findIndex(s=>s.components?.default===n?.type)<t.matched.length-1:!1}function zJ(e,t){const n=e(t);return n.length===1?Dt(n[0]):Dt(se,void 0,n)}const HJ=ke({name:"LayoutLoader",inheritAttrs:!1,props:{name:String,layoutProps:Object},setup(e,t){return()=>Dt(il[e.name],e.layoutProps,t.slots)}}),GJ={name:{type:[String,Boolean,Object],default:null},fallback:{type:[String,Object],default:null}},KJ=ke({name:"NuxtLayout",inheritAttrs:!1,props:GJ,setup(e,t){const n=wt(),r=mt(mu),i=!r||r===Fn()?kh():r,o=F(()=>{let c=b(e.name)??i?.meta.layout??"default";return c&&!(c in il)&&e.fallback&&(c=b(e.fallback)),c}),a=Ze();t.expose({layoutRef:a});const l=n.deferHydration();if(n.isHydrating){const c=n.hooks.hookOnce("app:error",l);Tt().beforeEach(c)}let u;return()=>{const c=o.value&&o.value in il,d=i?.meta.layoutTransition??aV,f=u;return u=o.value,iR(c&&d,{default:()=>Dt(td,{suspensible:!0,onResolve:()=>{tt(l)}},{default:()=>Dt(WJ,{layoutProps:Ve(t.attrs,{ref:a}),key:o.value||void 0,name:o.value,shouldProvide:!e.name,isRenderingNewLayout:h=>h!==f&&h===o.value,hasTransition:!!d},t.slots)})}).default()}}}),WJ=ke({name:"NuxtLayoutProvider",inheritAttrs:!1,props:{name:{type:[String,Boolean]},layoutProps:{type:Object},hasTransition:{type:Boolean},shouldProvide:{type:Boolean},isRenderingNewLayout:{type:Function,required:!0}},setup(e,t){const n=e.name;e.shouldProvide&&Cn(UP,{isCurrent:i=>n===(i.meta.layout??"default")});const r=mt(mu);if(r&&r===Fn()){const i=kh(),o={};for(const a in i){const l=a;Object.defineProperty(o,l,{enumerable:!0,get:()=>e.isRenderingNewLayout(e.name)?i[l]:r[l]})}Cn(mu,so(o))}return()=>!n||typeof n=="string"&&!(n in il)?t.slots.default?.():Dt(HJ,{key:n,layoutProps:e.layoutProps,name:n},t.slots)}}),mS=Ws(()=>{const e=di("theme","dark"),t=Mu();return be(e,n=>{n==="system"&&(n=window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light"),Kg("theme").value=n,t.change(n)},{immediate:!0}),{theme:e}});function GA(e,t){if(t=="hl"){const n=localStorage.getItem("userSetTheme"),{theme:r}=mS(),s="dark";if(n&&r.value==s||!n){const i=e.themes.value.dark;i.colors.primary="#ff35b5",i.colors["on-primary"]="#FFFFFF",i.colors.secondary="#c9a227",i.colors["on-secondary"]="#1a1408",i.colors.warning="#c9a227",i.colors.info="#ff6bc8",i.colors.background="#000000",i.colors.surface="#161616",i.colors["on-surface"]="#FFFFFF",i.colors["surface-variant"]="#292B38",i.colors["on-surface-variant"]="#8e8e93",i.colors["surface-bright"]="#ff35b5",i.colors["surface-light"]="#1a1a1a",i.variables["border-color"]="#ff35b5",r.value=s}}}const qJ=ke({__name:"app",setup(e){const t=Tt();Fn(),be(t.currentRoute,i=>{const o=wr()?.app||"",a=i.meta.meta?.title||i.meta.title;b_({title:a?`${a}${o?" - "+o:""}`:o||"",meta:[{name:"wechat-enable-text-zoom-em",content:"0"}]})},{immediate:!0});const n=M(!1);t.beforeEach(async(i,o,a)=>{n.value=!0,await a(),setTimeout(()=>{n.value=!1},3e3)});const{theme:r}=mS(),s=Mu();return be(r,()=>{GA(s,Rr())}),GA(s,Rr()),(i,o)=>{const a=FJ,l=NJ,u=KJ;return P(),j(se,null,[S(a),S(u,null,{default:A(()=>[S(l,{keepalive:{max:5}})]),_:1})],64)}}}),YJ={__name:"nuxt-error-page",props:{error:Object},setup(e){const n=e.error;n.stack&&n.stack.split(`
22`).splice(1).map(d=>({text:d.replace("webpack:/","").replace(".vue",".js").trim(),internal:d.includes("node_modules")&&!d.includes(".cache")||d.includes("internal")||d.includes("new Promise")})).map(d=>`<span class="stack${d.internal?" internal":""}">${d.text}</span>`).join(`
23`);const r=Number(n.statusCode||500),s=r===404,i=n.statusMessage??(s?"Page Not Found":"Internal Server Error"),o=n.message||n.toString(),a=void 0,c=s?Ke(()=>Te(()=>Promise.resolve().then(()=>gLe),void 0,import.meta.url)):Ke(()=>Te(()=>Promise.resolve().then(()=>wLe),void 0,import.meta.url));return(d,f)=>(P(),q(b(c),Ks(pi({statusCode:b(r),statusMessage:b(i),description:b(o),stack:b(a)})),null,16))}},XJ={key:0},KA={__name:"nuxt-root",setup(e){const t=()=>null,n=wt(),r=n.deferHydration();if(n.isHydrating){const u=n.hooks.hookOnce("app:error",r);Tt().beforeEach(u)}const s=!1;Cn(mu,Fn()),n.hooks.callHookWith(u=>u.map(c=>c()),"vue:setup");const i=Ug(),o=!1,a=/bot\b|chrome-lighthouse|facebookexternalhit|google\b/i;n_((u,c,d)=>
23{if(n.hooks.callHook("vue:error",u,c,d).catch(f=>console.error("[nuxt] Error in `vue:error` hook",f)),a.test(navigator.userAgent))return n.hooks.callHook("app:error",u),console.error(`[nuxt] Not rendering error page for bot with user agent \`${navigator.userAgent}\`:`,u),!1;if(zP(u)&&(u.fatal||u.unhandled))return n.runWithContext(()=>jl(u)),!1});const l=!1;return(u,c)=>(P(),q(td,{onResolve:b(r)},{default:A(()=>[b(o)?(P(),j("div",XJ)):b(i)?(P(),q(b(YJ),{key:1,error:b(i)},null,8,["error"])):b(l)?(P(),q(b(t),{key:2,context:b(l)},null,8,["context"])):b(s)?(P(),q(hl(b(s)),{key:3})):(P(),q(b(qJ),{key:4}))]),_:1},8,["onResolve"]))}};let WA;{let e;WA=async function(){if(e)return e;const r=!!(window.__NUXT__?.serverRendered??document.getElementById("__NUXT_DATA__")?.dataset.ssr==="true")?p_(KA):Mf(KA),s=pV({vueApp:r});async function i(o){await s.callHook("app:error",o),s.payload.error||=cl(o)}r.config.errorHandler=i,s.hook("app:suspense:resolve",()=>{r.config.errorHandler===i&&(r.config.errorHandler=void 0)});try{await gV(s,RJ)}catch(o){i(o)}try{await s.hooks.callHook("app:created",r),await s.hooks.callHook("app:beforeMount",r),r.mount(dV),await s.hooks.callHook("app:mounted",r),await tt()}catch(o){i(o)}return r},e=WA().catch(t=>{throw console.error("Error while mounting app:",t),t})}const ZJ=["aria-label"],JJ=ke({__name:"LogoGradient",props:{size:{default:48}},emits:["click"],setup(e,{emit:t}){const n=e,r=t,s=Mu(),i=F(()=>Vo()?.app||"YJ"),o=F(()=>wl()),a=F(()=>s.current.value.dark?"linear-gradient(135deg, #c084fc 0%, #a855f7 45%, #818cf8 100%)":"linear-gradient(135deg, #581c87 0%, #7e22ce 45%, #4338ca 100%)"),l=F(()=>s.current.value.dark?"linear-gradient(135deg, #e879f9 0%, #d946ef 45%, #a5b4fc 100%)":"linear-gradient(135deg, #6b21e8 0%, #9333ea 45%, #6366f1 100%)"),u=F(()=>({width:`${n.size}px`,height:`${n.size}px`,"--logo-gradient":a.value,"--logo-gradient-hover":l.value,"--logo-mask":`url("${o.value}")`}));return(c,d)=>(P(),j("div",{class:"logo-gradient",role:"img","aria-label":b(i),style:Qe(b(u)),onClick:d[0]||(d[0]=f=>r("click"))},[...d[1]||(d[1]=[L("span",{class:"logo-gradient__fill","aria-hidden":"true"},null,-1)])],12,ZJ))}}),vt=(e,t)=>{const n=e.__vccOpts||e;for(const[r,s]of t)n[r]=s;return n},vS=vt(JJ,[["__scopeId","data-v-2e892d77"]]),QJ=Object.freeze(Object.defineProperty({__proto__:null,default:vS},Symbol.toStringTag,{value:"Module"})),eQ=ke({__name:"NavGradientIcon",props:{name:{},size:{default:18}},setup(e){const t=e,n=F(()=>({width:`${t.size}px`,height:`${t.size}px`,fontSize:`${t.size}px`}));return(r,s)=>{const i=ny;return P(),q(i,{name:e.name,mode:"css",class:"yj-gradient-icon nav-icon-graphic",style:Qe(b(n))},null,8,["name","style"])}}}),gS=vt(eQ,[["__scopeId","data-v-f7994863"]]),tQ=Object.freeze(Object.defineProperty({__proto__:null,default:gS},Symbol.toStringTag,{value:"Module"})),mo=He({border:[Boolean,Number,String]},"border");function Yo(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:qo();return{borderClasses:F(()=>{const r=e.border;return r===!0||r===""?`${t}--border`:typeof r=="string"||r===0?String(r).split(" ").map(s=>`border-${s}`):[]})}}const nQ=[null,"default","comfortable","compact"],Ps=He({density:{type:String,default:"default",validator:e=>nQ.includes(e)}},"density");function vi(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:qo();return{densityClasses:Ae(()=>`${t}--density-${e.density}`)}}const Rs=He({elevation:{type:[Number,String],validator(e){const t=parseInt(e);return!isNaN(t)&&t>=0&&t<=24}}},"elevation");function gi(e){return{elevationClasses:Ae(()=>{const n=Ce(e)?e.value:e.elevation;return n==null?[]:[`elevation-${n}`]})}}const Tr=He({rounded:{type:[Boolean,Number,String],default:void 0},tile:Boolean},"rounded");function Qr(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:qo();
23return{roundedClasses:F(()=>{const r=Ce(e)?e.value:e.rounded,s=Ce(e)?!1:e.tile,i=[];if(s||r===!1)i.push("rounded-0");else if(r===!0||r==="")i.push(`${t}--rounded`);else if(typeof r=="string"||r===0)for(const o of String(r).split(" "))i.push(`rounded-${o}`);return i})}}const rn=He({tag:{type:[String,Object,Function],default:"div"}},"tag");function yS(e){return eS(()=>{const{class:t,style:n}=rQ(e);return{colorClasses:t,colorStyles:n}})}function Gs(e){const{colorClasses:t,colorStyles:n}=yS(()=>({text:qr(e)}));return{textColorClasses:t,textColorStyles:n}}function _r(e){const{colorClasses:t,colorStyles:n}=yS(()=>({background:qr(e)}));return{backgroundColorClasses:t,backgroundColorStyles:n}}function rQ(e){const t=qr(e),n=[],r={};if(t.background)if(Yb(t.background)){if(r.backgroundColor=t.background,!t.text&&kX(t.background)){const s=Po(t.background);if(s.a==null||s.a===1){const i=e4(s);r.color=i,r.caretColor=i}}}else n.push(`bg-${t.background}`);return t.text&&(Yb(t.text)?(r.color=t.text,r.caretColor=t.text):n.push(`text-${t.text}`)),{class:n,style:r}}const sQ=["elevated","flat","tonal","outlined","text","plain"];function hd(e,t){return L(se,null,[e&&L("span",{key:"overlay",class:Ie(`${t}__overlay`)},null),L("span",{key:"underlay",class:Ie(`${t}__underlay`)},null)])}const Xo=He({color:String,variant:{type:String,default:"elevated",validator:e=>sQ.includes(e)}},"variant");function pd(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:qo();const n=Ae(()=>{const{variant:i}=qr(e);return`${t}--variant-${i}`}),{colorClasses:r,colorStyles:s}=yS(()=>{const{variant:i,color:o}=qr(e);return{[["elevated","flat"].includes(i)?"background":"text"]:o}});return{colorClasses:r,colorStyles:s,variantClasses:n}}const x4=He({baseColor:String,divided:Boolean,direction:{type:String,default:"horizontal"},...mo(),...At(),...Ps(),...Rs(),...Tr(),...rn(),...Dn(),...Xo()},"VBtnGroup"),qA=nt()({name:"VBtnGroup",props:x4(),setup(e,t){let{slots:n}=t;const{themeClasses:r}=ir(e),{densityClasses:s}=vi(e),{borderClasses:i}=Yo(e),{elevationClasses:o}
23=gi(e),{roundedClasses:a}=Qr(e);Ni({VBtn:{height:Ae(()=>e.direction==="horizontal"?"auto":null),baseColor:Ae(()=>e.baseColor),color:Ae(()=>e.color),density:Ae(()=>e.density),flat:!0,variant:Ae(()=>e.variant)}}),ut(()=>S(e.tag,{class:Ie(["v-btn-group",`v-btn-group--${e.direction}`,{"v-btn-group--divided":e.divided},r.value,i.value,s.value,o.value,a.value,e.class]),style:Qe(e.style)},n))}}),ry=He({modelValue:{type:null,default:void 0},multiple:Boolean,mandatory:[Boolean,String],max:Number,selectedClass:String,disabled:Boolean},"group"),xS=He({value:null,disabled:Boolean,selectedClass:String},"group-item");function jv(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0;const r=fr("useGroupItem");if(!r)throw new Error("[Vuetify] useGroupItem composable must be used inside a component setup function");const s=Ds();Cn(Symbol.for(`${t.description}:id`),s);const i=mt(t,null);if(!i){if(!n)return i;throw new Error(`[Vuetify] Could not find useGroup injection with symbol ${t.description}`)}const o=Ae(()=>e.value),a=F(()=>!!(i.disabled.value||e.disabled));function l(){i?.register({id:s,value:o,disabled:a},r)}function u(){i?.unregister(s)}l(),cn(()=>u());const c=F(()=>i.isSelected(s)),d=F(()=>i.items.value[0].id===s),f=F(()=>i.items.value[i.items.value.length-1].id===s),h=F(()=>c.value&&[i.selectedClass.value,e.selectedClass]);return be(c,p=>{r.emit("group:selected",{value:p})},{flush:"sync"}),{id:s,isSelected:c,isFirst:d,isLast:f,toggle:()=>i.select(s,!c.value),select:p=>i.select(s,p),selectedClass:h,value:o,disabled:a,group:i,register:l,unregister:u}}function Fh(e,t){let n=!1;const r=Wt([]),s=Qt(e,"modelValue",[],f=>f===void 0?[]:b4(r,f===null?[null]:As(f)),f=>{const h=oQ(r,f);return e.multiple?h:h[0]}),i=fr("useGroup");function o(f,h){const p=f,m=Symbol.for(`${t.description}:id`),x=dc(m,i?.vnode).indexOf(h);b(p.value)===void 0&&(p.value=x,p.useIndexAsValue=!0),x>-1?r.splice(x,0,p):r.push(p)}function a(f){if(n)return;l();const h=r.findIndex(p=>p.id===f);r.splice(h,1)}function l(){const f=r.find(h=>!h.disabled);f&&e.mandatory==="force"&&!s.value.length&&(s.value=[f.id])}ft(()=>{l()}),cn(()=>{n=!0}),Du(()=>{for(let f=0;f<r.length;f++)r[f].useIndexAsValue&&(r[f].value=f)});function u(f,h){const p=r.find(m=>m.id===f);if(!(h&&p?.disabled))if(e.multiple){const m=s.value.slice(),v=m.findIndex(g=>g===f),x=~v;if(h=h??!x,x&&e.mandatory&&m.length<=1||!x&&e.max!=null&&m.length+1>e.max)return;v<0&&h?m.push(f):v>=0&&!h&&m.splice(v,1),s.value=m}else{const m=s.value.includes(f);if(e.mandatory&&m||!m&&!h)return;s.value=h??!m?[f]:[]}}function c(f){if(e.multiple,s.value.length){const h=s.value[0],p=r.findIndex(x=>x.id===h);let m=(p+f)%r.length,v=r[m];for(;v.disabled&&m!==p;)m=(m+f)%r.length,v=r[m];if(v.disabled)return;s.value=[r[m].id]}else{const h=r.find(p=>!p.disabled);h&&(s.value=[h.id])}}const d={register:o,unregister:a,selected:s,select:u,disabled:Ae(()=>e.disabled),prev:()=>c(r.length-1),next:()=>c(1),isSelected:f=>s.value.includes(f),selectedClass:Ae(()=>e.selectedClass),items:Ae(()=>r),getItemIndex:f=>iQ(r,f)};return Cn(t,d),d}function iQ(e,t){const n=b4(e,[t]);return n.length?e.findIndex(r=>
23r.id===n[0]):-1}function b4(e,t){const n=[];return t.forEach(r=>{const s=e.find(o=>zs(r,o.value)),i=e[r];s?.value!==void 0?n.push(s.id):i?.useIndexAsValue&&n.push(i.id)}),n}function oQ(e,t){const n=[];return t.forEach(r=>{const s=e.findIndex(i=>i.id===r);if(~s){const i=e[s];n.push(i.value!==void 0?i.value:s)}}),n}const bS=Symbol.for("vuetify:v-btn-toggle"),aQ=He({...x4(),...ry()},"VBtnToggle"),lQ=nt()({name:"VBtnToggle",props:aQ(),emits:{"update:modelValue":e=>!0},setup(e,t){let{slots:n}=t;const{isSelected:r,next:s,prev:i,select:o,selected:a}=Fh(e,bS);return ut(()=>{const l=qA.filterProps(e);return S(qA,Ve({class:["v-btn-toggle",e.class]},l,{style:e.style}),{default:()=>[n.default?.({isSelected:r,next:s,prev:i,select:o,selected:a})]})}),{next:s,prev:i,select:o}}}),uQ=He({defaults:Object,disabled:Boolean,reset:[Number,String],root:[Boolean,String],scoped:Boolean},"VDefaultsProvider"),sn=nt(!1)({name:"VDefaultsProvider",props:uQ(),setup(e,t){let{slots:n}=t;const{defaults:r,disabled:s,reset:i,root:o,scoped:a}=Pg(e);return Ni(r,{reset:i,root:o,scoped:a,disabled:s}),()=>n.default?.()}}),cQ=["x-small","small","default","large","x-large"],Al=He({size:{type:[String,Number],default:"default"}},"size");function md(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:qo();return eS(()=>{const n=e.size;let r,s;return Pv(cQ,n)?r=`${t}--size-${n}`:n&&(s={width:ht(n),height:ht(n)}),{sizeClasses:r,sizeStyles:s}})}const dQ=He({color:String,disabled:Boolean,start:Boolean,end:Boolean,icon:jt,opacity:[String,Number],...At(),...Al(),...rn({tag:"i"}),...Dn()},"VIcon"),de=nt()({name:"VIcon",props:dQ(),setup(e,t){let{attrs:n,slots:r}=t;const s=Ze(),{themeClasses:i}=Mu(),{iconData:o}=KZ(()=>s.value||e.icon),{sizeClasses:a}=md(e),{textColorClasses:l,textColorStyles:u}=Gs(()=>e.color);return ut(()=>{const c=r.default?.();c&&(s.value=G3(c).filter(f=>f.type===xa&&f.children&&typeof f.children=="string")[0]?.children);const d=!!(n.onClick||n.onClickOnce);return S(o.value.component,{tag:e.tag,icon:o.value.icon,class:Ie(["v-icon","notranslate",i.value,a.value,l.value,{"v-icon--clickable":d,"v-icon--disabled":e.disabled,"v-icon--start":e.start,"v-icon--end":e.end},e.class]),style:Qe([{"--v-icon-opacity":e.opacity},a.value?void 0:{fontSize:ht(e.size),height:ht(e.size),width:ht(e.size)},u.value,e.style]),role:d?"button":void 0,"aria-hidden":!d,tabindex:d?e.disabled?-1:0:void 0},{default:()=>[c]})}),{}}});function _S(e,t){const n=M(),r=Ze(!1);if(J_){const s=new IntersectionObserver(i=>{r.value=!!i.find(o=>o.isIntersecting)},t);qn(()=>{s.disconnect()}),be(n,(i,o)=>{o&&(s.unobserve(o),r.value=!1),i&&s.observe(i)},{flush:"post"})}return{intersectionRef:n,isIntersecting:r}}const fQ=He({bgColor:String,color:String,indeterminate:[Boolean,String],modelValue:{type:[Number,String],default:0},rotate:{type:[Number,String],default:0},width:{type:[Number,String],default:4},...At(),...Al(),...rn({tag:"div"}),...Dn()},"VProgressCircular"),jn=nt()({name:"VProgressCircular",props:fQ(),setup(e,t){let{slots:n}=t;const r=20,s=2*Math.PI*r,i=M(),{themeClasses:o}=ir(e),{sizeClasses:a,sizeStyles:l}=md(e),{textColorClasses:u,textColorStyles:c}=Gs(()=>e.color),{textColorClasses:d,textColorStyles:f}=Gs(()=>e.bgColor),{intersectionRef:h,isIntersecting:p}=_S(),{resizeRef:m,contentRect:v}=Ia(),x=Ae(()=>Yr(parseFloat(e.modelValue),0,100)),g=Ae(()=>Number(e.width)),y=Ae(()=>l.value?Number(e.size):v.value?v.value.width:Math.max(g.value,32)),_=Ae(()=>r/(1-g.value/y.value)*2),E=Ae(()=>g.value/y.value*_.value),w=Ae(()=>ht((100-x.value)/100*s));return zn(()=>{h.value=i.value,m.value=i.value}),ut(()=>S(e.tag,{ref:i,class:Ie(["v-progress-circular",{"v-progress-circular--indeterminate":!!e.indeterminate,"v-progress-circular--visible":p.value,"v-progress-circular--disable-shrink":e.indeterminate&&(e.indeterminate==="disable-shrink"||yu())},o.value,a.value,u.value,e.class]),style:Qe([l.value,c.value,e.style]),role:"progressbar","aria-valuemin":"0","aria-valuemax":"100","aria-valuenow":e.indeterminate?void 0:x.value},{default:()=>[L("svg",{style:{transform:`rotate(calc(-90deg + ${Number(e.rotate)}deg))`},xmlns:"http://www.w3.org/2000/svg",viewBox:`0 0 ${_.value} ${_.value}`},[L("circle",{class:Ie(["v-progress-circular__underlay",d.value]),style:Qe(f.value),fill:"transparent",cx:"50%",cy:"50%",r,"stroke-width":E.value,"stroke-dasharray":s,"stroke-dashoffset":0},null),L("circle",{class:"v-progress-circular__overlay",fill:"transparent",cx:"50%",cy:"50%",r,"stroke-width":E.value,"stroke-dasharray":s,"stroke-dashoffset":w.value},null)]),n.default&&L("div",{class:"v-progress-circular__content"},[n.default({value:x.value})])]})),{}}}),ms=He({height:[Number,String],maxHeight:[Number,String],maxWidth:[Number,String],minHeight:[Number,String],minWidth:[Number,String],width:[Number,String]},"dimension");function vs(e){return{dimensionStyles:F(()=>{const n={},r=ht(e.height),s=ht(e.maxHeight),i=ht(e.maxWidth),o=ht(e.minHeight),a=ht(e.minWidth),l=ht(e.width);return r!=null&&(n.height=r),s!=null&&(n.maxHeight=s),i!=null&&(n.maxWidth=i),o!=null&&(n.minHeight=o),a!=null&&(n.minWidth=a),l!=null&&(n.width=l),n})}}
23const YA={center:"center",top:"bottom",bottom:"top",left:"right",right:"left"},Fu=He({location:String},"location");function vd(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,n=arguments.length>2?arguments[2]:void 0;const{isRtl:r}=Jr();return{locationStyles:F(()=>{if(!e.location)return{};const{side:i,align:o}=qb(e.location.split(" ").length>1?e.location:`${e.location} center`,r.value);function a(u){return n?n(u):0}const l={};return i!=="center"&&(t?l[YA[i]]=`calc(100% - ${a(i)}px)`:l[i]=0),o!=="center"?t?l[YA[o]]=`calc(100% - ${a(o)}px)`:l[o]=0:(i==="center"?l.top=l.left="50%":l[{top:"left",bottom:"left",left:"top",right:"top"}[i]]="50%",l.transform={top:"translateX(-50%)",bottom:"translateX(-50%)",left:"translateY(-50%)",right:"translateY(-50%)",center:"translate(-50%, -50%)"}[i]),l})}}const hQ=He({chunkCount:{type:[Number,String],default:null},chunkWidth:{type:[Number,String],default:null},chunkGap:{type:[Number,String],default:4}},"chunks");function pQ(e,t){const n=Ae(()=>!!e.chunkCount||!!e.chunkWidth),r=F(()=>{const a=qr(t);if(!a)return 0;if(!e.chunkCount)return Number(e.chunkWidth);const l=Number(e.chunkCount);return(a-Number(e.chunkGap)*(l-1))/l}),s=Ae(()=>Number(e.chunkGap)),i=F(()=>{if(!n.value)return{};const a=ht(s.value),l=ht(r.value);return{maskRepeat:"repeat-x",maskImage:`linear-gradient(90deg, #000, #000 ${l}, transparent ${l}, transparent)`,maskSize:`calc(${l} + ${a}) 100%`}});function o(a){const l=qr(t);if(!l)return a;const u=100*s.value/l,c=100*(r.value+s.value)/l,d=Math.floor((a+u)/c);return Yr(0,d*c-u/2,100)}return{hasChunks:n,chunksMaskStyles:i,snapValueToChunk:o}}const mQ=He({absolute:Boolean,active:{type:Boolean,default:!0},bgColor:String,bgOpacity:[Number,String],bufferValue:{type:[Number,String],default:0},bufferColor:String,bufferOpacity:[Number,String],clickable:Boolean,color:String,height:{type:[Number,String],default:4},indeterminate:Boolean,max:{type:[Number,String],default:100},modelValue:{type:[Number,String],default:0},opacity:[Number,String],reverse:Boolean,stream:Boolean,striped:Boolean,roundedBar:Boolean,...hQ(),...At(),...Fu({location:"top"}),...Tr(),...rn(),...Dn()},"VProgressLinear"),gd=nt()({name:"VProgressLinear",props:mQ(),emits:{"update:modelValue":e=>!0},setup(e,t){let{slots:n}=t;const r=M(),s=Qt(e,"modelValue"),{isRtl:i,rtlClasses:o}=Jr(),{themeClasses:a}=ir(e),{locationStyles:l}=vd(e),{textColorClasses:u,textColorStyles:c}=Gs(()=>e.color),{backgroundColorClasses:d,backgroundColorStyles:f}=_r(()=>e.bgColor||e.color),{backgroundColorClasses:h,backgroundColorStyles:p}=_r(()=>e.bufferColor||e.bgColor||e.color),{backgroundColorClasses:m,backgroundColorStyles:v}=_r(()=>
23e.color),{roundedClasses:x}=Qr(e),{intersectionRef:g,isIntersecting:y}=_S(),_=F(()=>parseFloat(e.max)),E=F(()=>parseFloat(e.height)),w=F(()=>Yr(parseFloat(e.bufferValue)/_.value*100,0,100)),T=F(()=>Yr(parseFloat(s.value)/_.value*100,0,100)),C=F(()=>i.value!==e.reverse),I=F(()=>e.indeterminate?"fade-transition":"slide-x-transition"),k=Ze(0),{hasChunks:$,chunksMaskStyles:R,snapValueToChunk:D}=pQ(e,k);jo($,()=>{const{resizeRef:N}=Ia(V=>k.value=V[0].contentRect.width);zn(()=>N.value=r.value)});const O=F(()=>$.value?D(w.value):w.value),B=F(()=>$.value?D(T.value):T.value);function U(N){if(!g.value)return;const{left:V,right:H,width:re}=g.value.getBoundingClientRect(),W=C.value?re-N.clientX+(H-re):N.clientX-V;s.value=Math.round(W/re*_.value)}return zn(()=>{g.value=r.value}),ut(()=>S(e.tag,{ref:r,class:Ie(["v-progress-linear",{"v-progress-linear--absolute":e.absolute,"v-progress-linear--active":e.active&&y.value,"v-progress-linear--reverse":C.value,"v-progress-linear--rounded":e.rounded,"v-progress-linear--rounded-bar":e.roundedBar,"v-progress-linear--striped":e.striped,"v-progress-linear--clickable":e.clickable},x.value,a.value,o.value,e.class]),style:Qe([{bottom:e.location==="bottom"?0:void 0,top:e.location==="top"?0:void 0,height:e.active?ht(E.value):0,"--v-progress-linear-height":ht(E.value),...e.absolute?l.value:{}},R.value,e.style]),role:"progressbar","aria-hidden":e.active?"false":"true","aria-valuemin":"0","aria-valuemax":e.max,"aria-valuenow":e.indeterminate?void 0:Math.min(parseFloat(s.value),_.value),onClick:e.clickable&&U},{default:()=>[e.stream&&L("div",{key:"stream",class:Ie(["v-progress-linear__stream",u.value]),style:{...c.value,[C.value?"left":"right"]:ht(-E.value),borderTop:`${ht(E.value/2)} dotted`,opacity:parseFloat(e.bufferOpacity),top:`calc(50% - ${ht(E.value/4)})`,width:ht(100-w.value,"%"),"--v-progress-linear-stream-to":ht(E.value*(C.value?1:-1))}},null),L("div",{class:Ie(["v-progress-linear__background",d.value]),style:Qe([f.value,{opacity:parseFloat(e.bgOpacity),width:e.stream?0:void 0}])},null),L("div",{class:Ie(["v-progress-linear__buffer",h.value]),style:Qe([p.value,{opacity:parseFloat(e.bufferOpacity),width:ht(O.value,"%")}])},null),S(No,{name:I.value},{default:()=>[e.indeterminate?L("div",{class:"v-progress-linear__indeterminate"},[["long","short"].map(N=>L("div",{key:N,class:Ie(["v-progress-linear__indeterminate",N,m.value]),style:Qe(v.value)},null))]):L("div",{class:Ie(["v-progress-linear__determinate",m.value]),style:Qe([v.value,{width:ht(B.value,"%")}])},null)]}),n.default&&L("div",{class:"v-progress-linear__content"},[n.default({value:T.value,buffer:w.value})])]})),{}}}),SS=He({loading:[Boolean,String]},"loader");function sy(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:qo();return{loaderClasses:Ae(()=>({[`${t}--loading`]:e.loading}))}}function ES(e,t){let{slots:n}=t;return L("div",{class:Ie(`${e.name}__loader`)},[n.default?.({color:e.color,isActive:e.active})||S(gd,{absolute:e.absolute,active:e.active,color:e.color,height:"2",indeterminate:!0},null)])}const vQ=["static","relative","fixed","absolute","sticky"],iy=He({position:{type:String,validator:e=>vQ.includes(e)}},"position");function oy(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:qo();return{positionClasses:Ae(()=>e.position?`${t}--${e.position}`:void 0)}}function gQ(){const e=fr("useRoute");return F(()=>e?.proxy?.$route)}function yQ(){return fr("useRouter")?.proxy?.$router}function ay(e,t){const n=hl("RouterLink"),r=Ae(()=>!!(e.href||e.to)),s=F(()=>r?.value||hA(t,"click")||hA(e,"click"));if(typeof n=="string"||!("useLink"in n)){const d=Ae(()=>e.href);return{isLink:r,isRouterLink:Ae(()=>!1),isClickable:s,href:d,linkProps:Wt({href:d})}}const i=n.useLink({to:Ae(()=>e.to||""),replace:Ae(()=>e.replace)}),o=F(()=>e.to?i:void 0),a=gQ(),l=F(()=>o.value?e.exact?a.value?o.value.isExactActive?.value&&zs(o.value.route.value.query,a.value.query):o.value.isExactActive?.value??!1:o.value.isActive?.value??!1:!1),u=F(()=>e.to?o.value?.route.value.href:e.href),c=Ae(()=>!!e.to);return{isLink:r,isRouterLink:c,isClickable:s,isActive:l,route:o.value?.route,navigate:o.value?.navigate,href:u,linkProps:Wt({href:u,"aria-current":Ae(()=>l.value?"page":void 0),"aria-disabled":Ae(()=>e.disabled&&r.value?"true":void 0),tabindex:Ae(()=>e.disabled&&r.value?"-1":void 0)})}}const ly=He({href:String,replace:Boolean,to:[String,Object],exact:Boolean},"router");let U1=!1;function xQ(e,t){let n=!1,r,s;on&&e?.beforeEach&&(tt(()=>{window.addEventListener("popstate",i),r=e.beforeEach((o,a,l)=>{U1?n?t(l):l():setTimeout(()=>n?t(l):l()),U1=!0}),s=e?.afterEach(()=>{U1=!1}
23)}),qn(()=>{window.removeEventListener("popstate",i),r?.(),s?.()}));function i(o){o.state?.replaced||(n=!0,setTimeout(()=>n=!1))}}function bQ(e,t){be(()=>e.isActive?.value,n=>{e.isLink.value&&n!=null&&t&&tt(()=>{t(n)})},{immediate:!0})}const Qb=Symbol("rippleStop"),_Q=80;function XA(e,t){e.style.transform=t,e.style.webkitTransform=t}function e2(e){return e.constructor.name==="TouchEvent"}function _4(e){return e.constructor.name==="KeyboardEvent"}const SQ=function(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},r=0,s=0;if(!_4(e)){const d=t.getBoundingClientRect(),f=e2(e)?e.touches[e.touches.length-1]:e;r=f.clientX-d.left,s=f.clientY-d.top}let i=0,o=.3;t._ripple?.circle?(o=.15,i=t.clientWidth/2,i=n.center?i:i+Math.sqrt((r-i)**2+(s-i)**2)/4):i=Math.sqrt(t.clientWidth**2+t.clientHeight**2)/2;const a=`${(t.clientWidth-i*2)/2}px`,l=`${(t.clientHeight-i*2)/2}px`,u=n.center?a:`${r-i}px`,c=n.center?l:`${s-i}px`;return{radius:i,scale:o,x:u,y:c,centerX:a,centerY:l}},zv={show(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};if(!t?._ripple?.enabled)return;const r=document.createElement("span"),s=document.createElement("span");r.appendChild(s),r.className="v-ripple__container",n.class&&(r.className+=` ${n.class}`);const{radius:i,scale:o,x:a,y:l,centerX:u,centerY:c}=SQ(e,t,n),d=`${i*2}px`;s.className="v-ripple__animation",s.style.width=d,s.style.height=d,t.appendChild(r);const f=window.getComputedStyle(t);f&&f.position==="static"&&(t.style.position="relative",t.dataset.previousPosition="static"),s.classList.add("v-ripple__animation--enter"),s.classList.add("v-ripple__animation--visible"),XA(s,`translate(${a}, ${l}) scale3d(${o},${o},${o})`),s.dataset.activated=String(performance.now()),requestAnimationFrame(()=>{requestAnimationFrame(()=>{s.classList.remove("v-ripple__animation--enter"),s.classList.add("v-ripple__animation--in"),XA(s,`translate(${u}, ${c}) scale3d(1,1,1)`)})})},hide(e){if(!e?._ripple?.enabled)return;const t=e.getElementsByClassName("v-ripple__animation");if(t.length===0)return;const n=Array.from(t).findLast(i=>!i.dataset.isHiding);if(n)n.dataset.isHiding="true";else return;const r=performance.now()-Number(n.dataset.activated),s=Math.max(250-r,0);setTimeout(()=>{n.classList.remove("v-ripple__animation--in"),n.classList.add("v-ripple__animation--out"),setTimeout(()=>{e.getElementsByClassName("v-ripple__animation").length===1&&e.dataset.previousPosition&&(e.style.position=e.dataset.previousPosition,delete e.dataset.previousPosition),n.parentNode?.parentNode===e&&e.removeChild(n.parentNode)},300)},s)}};function S4(e){return typeof e>"u"||!!e}function Jf(e){const t={},n=e.currentTarget;if(!(!n?._ripple||n._ripple.touched||e[Qb])){if(e[Qb]=!0,e2(e))n._ripple.touched=!0,n._ripple.isTouch=!0;else if(n._ripple.isTouch)return;if(t.center=n._ripple.centered||_4(e),n._ripple.class&&(t.class=n._ripple.class),e2(e)){if(n._ripple.showTimerCommit)return;n._ripple.showTimerCommit=()=>{zv.show(e,n,t)},n._ripple.showTimer=window.setTimeout(()=>{n?._ripple?.showTimerCommit&&(n._ripple.showTimerCommit(),n._ripple.showTimerCommit=null)},_Q)}else zv.show(e,n,t)}}function ZA(e){e[Qb]=!0}function ii(e){const t=e.currentTarget;if(t?._ripple){if(window.clearTimeout(t._ripple.showTimer),e.type==="touchend"&&t._ripple.showTimerCommit){t._ripple.showTimerCommit(),t._ripple.showTimerCommit=null,t._ripple.showTimer=window.setTimeout(()=>{ii(e)});return}window.setTimeout(()=>{t._ripple&&(t._ripple.touched=!1)}),zv.hide(t)}}function E4(e){const t=e.currentTarget;t?._ripple&&(t._ripple.showTimerCommit&&(t._ripple.showTimerCommit=null),window.clearTimeout(t._ripple.showTimer))}let Qf=!1;function JA(e,t){!Qf&&t.includes(e.key)&&(Qf=!0,Jf(e))}function w4(e){Qf=!1,ii(e)}function T4(e){Qf&&(Qf=!1,ii(e))}function C4(e,t,n){const{value:r,modifiers:s}=t,i=S4(r);i||zv.hide(e),e._ripple=e._ripple??{},e._ripple.enabled=i,e._ripple.centered=s.center,e._ripple.circle=s.circle;const o=Dv(r)?r:{};o.class&&(e._ripple.class=o.class);const a=o.keys??["Enter","Space"];if(e._ripple.keyDownHandler=l=>JA(l,a),i&&!n){if(s.stop){e.addEventListener("touchstart",ZA,{passive:!0}),e.addEventListener("mousedown",ZA);return}e.addEventListener("touchstart",Jf,{passive:!0}),e.addEventListener("touchend",ii,{passive:!0}),e.addEventListener("touchmove",E4,{passive:!0}),e.addEventListener("touchcancel",ii),e.addEventListener("mousedown",Jf),e.addEventListener("mouseup",ii),e.addEventListener("mouseleave",ii),e.addEventListener("keydown",l=>JA(l,a)),e.addEventListener("keyup",w4),e.addEventListener("blur",T4),e.addEventListener("dragstart",ii,{passive:!0})}else!i&&n&&A4(e)}function A4(e){e.removeEventListener("mousedown",Jf),e.removeEventListener("touchstart",Jf),e.removeEventListener("touchend",ii),e.removeEventListener("touchmove",E4),e.removeEventListener("touchcancel",ii),e.removeEventListener("mouseup",ii),e.removeEventListener("mouseleave",ii),e._ripple?.keyDownHandler&&e.removeEventListener("keydown",e._r
23ipple.keyDownHandler),e.removeEventListener("keyup",w4),e.removeEventListener("dragstart",ii),e.removeEventListener("blur",T4)}function EQ(e,t){C4(e,t,!1)}function wQ(e){A4(e),delete e._ripple}function TQ(e,t){if(t.value===t.oldValue)return;const n=S4(t.oldValue);C4(e,t,n)}const ho={mounted:EQ,unmounted:wQ,updated:TQ},uy=He({active:{type:Boolean,default:void 0},activeColor:String,baseColor:String,symbol:{type:null,default:bS},flat:Boolean,icon:[Boolean,String,Function,Object],prependIcon:jt,appendIcon:jt,block:Boolean,readonly:Boolean,slim:Boolean,stacked:Boolean,spaced:String,ripple:{type:[Boolean,Object],default:!0},text:{type:[String,Number,Boolean],default:void 0},...mo(),...At(),...Ps(),...ms(),...Rs(),...xS(),...SS(),...Fu(),...iy(),...Tr(),...ly(),...Al(),...rn({tag:"button"}),...Dn(),...Xo({variant:"elevated"})},"VBtn"),ce=nt()({name:"VBtn",props:uy(),emits:{"group:selected":e=>!0},setup(e,t){let{attrs:n,slots:r}=t;const{themeClasses:s}=ir(e),{borderClasses:i}=Yo(e),{densityClasses:o}=vi(e),{dimensionStyles:a}=vs(e),{elevationClasses:l}=gi(e),{loaderClasses:u}=sy(e),{locationStyles:c}=vd(e),{positionClasses:d}
23=oy(e),{roundedClasses:f}=Qr(e),{sizeClasses:h,sizeStyles:p}=md(e),m=jv(e,e.symbol,!1),v=ay(e,n),x=F(()=>e.active!==void 0?e.active:v.isRouterLink.value?v.isActive?.value:m?.isSelected.value),g=Ae(()=>x.value?e.activeColor??e.color:e.color),y=F(()=>({color:m?.isSelected.value&&(!v.isLink.value||v.isActive?.value)||!m||v.isActive?.value?g.value??e.baseColor:e.baseColor,variant:e.variant})),{colorClasses:_,colorStyles:E,variantClasses:w}=pd(y),T=F(()=>m?.disabled.value||e.disabled),C=Ae(()=>e.variant==="elevated"&&!(e.disabled||e.flat||e.border)),I=F(()=>{if(!(e.value===void 0||typeof e.value=="symbol"))return Object(e.value)===e.value?JSON.stringify(e.value,null,0):e.value});function k($){T.value||v.isLink.value&&($.metaKey||$.ctrlKey||$.shiftKey||$.button!==0||n.target==="_blank")||(v.isRouterLink.value?v.navigate?.($):m?.toggle())}return bQ(v,m?.select),ut(()=>{const $=v.isLink.value?"a":e.tag,R=!!(e.prependIcon||r.prepend),D=!!(e.appendIcon||r.append),O=!!(e.icon&&e.icon!==!0);return pn(S($,Ve(v.linkProps,{type:$==="a"?void 0:"button",class:["v-btn",m?.selectedClass.value,{"v-btn--active":x.value,"v-btn--block":e.block,"v-btn--disabled":T.value,"v-btn--elevated":C.value,"v-btn--flat":e.flat,"v-btn--icon":!!e.icon,"v-btn--loading":e.loading,"v-btn--readonly":e.readonly,"v-btn--slim":e.slim,"v-btn--stacked":e.stacked},e.spaced?["v-btn--spaced",`v-btn--spaced-${e.spaced}`]:[],s.value,i.value,_.value,o.value,l.value,u.value,d.value,f.value,h.value,w.value,e.class],style:[E.value,a.value,c.value,p.value,e.style],"aria-busy":e.loading?!0:void 0,disabled:T.value&&$!=="a"||void 0,tabindex:e.loading||e.readonly?-1:void 0,onClick:k,value:I.value}),{default:()=>[hd(!0,"v-btn"),!e.icon&&R&&L("span",{key:"prepend",class:"v-btn__prepend"},[r.prepend?S(sn,{key:"prepend-defaults",disabled:!e.prependIcon,defaults:{VIcon:{icon:e.prependIcon}}},r.prepend):S(de,{key:"prepend-icon",icon:e.prependIcon},null)]),L("span",{class:"v-btn__content","data-no-activator":""},[!r.default&&O?S(de,{key:"content-icon",icon:e.icon},null):S(sn,{key:"content-defaults",disabled:!O,defaults:{VIcon:{icon:e.icon}}},{default:()=>[r.default?.()??Z(e.text)]})]),!e.icon&&D&&L("span",{key:"append",class:"v-btn__append"},[r.append?S(sn,{key:"append-defaults",disabled:!e.appendIcon,defaults:{VIcon:{icon:e.appendIcon}}},r.append):S(de,{key:"append-icon",icon:e.appendIcon},null)]),!!e.loading&&L("span",{key:"loader",class:"v-btn__loader"},[r.loader?.()??S(jn,{color:typeof e.loading=="boolean"?void 0:e.loading,indeterminate:!0,width:"2"},null)])]}),[[ho,!T.value&&e.ripple,"",{center:!!e.icon}]])}),{group:m}}}),CQ=He({...At(),...rn()},"VCardActions"),mn=nt()({name:"VCardActions",props:CQ(),setup(e,t){let{slots:n}=t;return Ni({VBtn:{slim:!0,variant:"text"}}),ut(()=>S(e.tag,{class:Ie(["v-card-actions",e.class]),style:Qe(e.style)},n)),{}}}),AQ=He({opacity:[Number,String],...At(),...rn()},"VCardSubtitle"),Hv=nt()({name:"VCardSubtitle",props:AQ(),setup(e,t){let{slots:n}=t;return ut(()=>S(e.tag,{class:Ie(["v-card-subtitle",e.class]),style:Qe([{"--v-card-subtitle-opacity":e.opacity},e.style])},n)),{}}}),at=Qg("v-card-title");function kQ(e){return{aspectStyles:F(()=>{const t=Number(e.aspectRatio);return t?{paddingBottom:String(1/t*100)+"%"}:void 0})}}const k4=He({aspectRatio:[String,Number],contentClass:null,inline:Boolean,...At(),...ms()},"VResponsive"),Gv=nt()({name:"VResponsive",props:k4(),setup(e,t){let{slots:n}=t;const{aspectStyles:r}=kQ(e),{dimensionStyles:s}=vs(e);return ut(()=>L("div",{class:Ie(["v-responsive",{"v-responsive--inline":e.inline},e.class]),style:Qe([s.value,e.style])},[L("div",{class:"v-responsive__sizer",style:Qe(r.value)},null),n.additional?.(),n.default&&L("div",{class:Ie(["v-responsive__content",e.contentClass])},[n.default()])])),{}}}),Bu=He({transition:{type:null,default:"fade-transition",validator:e=>e!==!0}},"transition"),io=(e,t)=>{let{slots:n}=t;const{transition:r,disabled:s,group:i,...o}=e,{component:a=i?Ng:No,...l}=Dv(r)?r:{};let u;return Dv(r)?u=Ve(l,cX({disabled:s,group:i}),o):u=Ve({name:s||!r?"":r},o),Dt(a,u,n)};function IQ(e,t){if(!J_)return;const n=t.modifiers||{},r=t.value,{handler:s,options:i}=typeof r=="object"?r:{handler:r,options:{}},o=new IntersectionObserver(function(){let a=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],l=arguments.length>1?arguments[1]:void 0;const u=e._observe?.[t.instance.$.uid];if(!u)return;const c=a.some(d=>d.isIntersecting);
23s&&(!n.quiet||u.init)&&(!n.once||c||u.init)&&s(c,a,l),c&&n.once?I4(e,t):u.init=!0},i);e._observe=Object(e._observe),e._observe[t.instance.$.uid]={init:!1,observer:o},o.observe(e)}function I4(e,t){const n=e._observe?.[t.instance.$.uid];n&&(n.observer.unobserve(e),delete e._observe[t.instance.$.uid])}const Uc={mounted:IQ,unmounted:I4},LQ=He({absolute:Boolean,alt:String,cover:Boolean,color:String,draggable:{type:[Boolean,String],default:void 0},eager:Boolean,gradient:String,lazySrc:String,options:{type:Object,default:()=>({root:void 0,rootMargin:void 0,threshold:void 0})},sizes:String,src:{type:[String,Object],default:""},crossorigin:String,referrerpolicy:String,srcset:String,position:String,...k4(),...At(),...Tr(),...Bu()},"VImg"),Xr=nt()({name:"VImg",directives:{vIntersect:Uc},props:LQ(),emits:{loadstart:e=>!0,load:e=>!0,error:e=>!0},setup(e,t){let{emit:n,slots:r}=t;const{backgroundColorClasses:s,backgroundColorStyles:i}=_r(()=>e.color),{roundedClasses:o}=Qr(e),a=fr("VImg"),l=Ze(""),u=M(),c=Ze(e.eager?"loading":"idle"),d=Ze(),f=Ze(),h=F(()=>e.src&&typeof e.src=="object"?{src:e.src.src,srcset:e.srcset||e.src.srcset,lazySrc:e.lazySrc||e.src.lazySrc,aspect:Number(e.aspectRatio||e.src.aspect||0)}:{src:e.src,srcset:e.srcset,lazySrc:e.lazySrc,aspect:Number(e.aspectRatio||0)}),p=F(()=>h.value.aspect||d.value/f.value||0);be(()=>e.src,()=>{m(c.value!=="idle")}),be(p,(R,D)=>{!R&&D&&u.value&&_(u.value)}),Lu(()=>m());function m(R){if(!(e.eager&&R)&&!(J_&&!R&&!e.eager)){if(c.value="loading",h.value.lazySrc){const D=new Image;D.src=h.value.lazySrc,_(D,null)}h.value.src&&tt(()=>{n("loadstart",u.value?.currentSrc||h.value.src),setTimeout(()=>{if(!a.isUnmounted)if(u.value?.complete){if(u.value.naturalWidth||x(),c.value==="error")return;p.value||_(u.value,null),c.value==="loading"&&v()}else p.value||_(u.value),g()})})}}function v(){a.isUnmounted||(g(),_(u.value),c.value="loaded",n("load",u.value?.currentSrc||h.value.src))}function x(){a.isUnmounted||(c.value="error",n("error",u.value?.currentSrc||h.value.src))}function g(){const R=u.value;R&&(l.value=R.currentSrc||R.src)}let y=-1;cn(()=>{clearTimeout(y)});function _(R){let D=arguments.length>1&&arguments[1]!==void 0?arguments[1]:100;const O=()=>{if(clearTimeout(y),a.isUnmounted)return;const{naturalHeight:B,naturalWidth:U}=R;B||U?(d.value=U,f.value=B):!R.complete&&c.value==="loading"&&D!=null?y=window.setTimeout(O,D):(R.currentSrc.endsWith(".svg")||R.currentSrc.startsWith("data:image/svg+xml"))&&(d.value=1,f.value=1)};O()}const E=Ae(()=>({"v-img__img--cover":e.cover,"v-img__img--contain":!e.cover})),w=()=>
23{if(!h.value.src||c.value==="idle")return null;const R=L("img",{class:Ie(["v-img__img",E.value]),style:{objectPosition:e.position},crossorigin:e.crossorigin,src:h.value.src,srcset:h.value.srcset,alt:e.alt,referrerpolicy:e.referrerpolicy,draggable:e.draggable,sizes:e.sizes,ref:u,onLoad:v,onError:x},null),D=r.sources?.();return S(io,{transition:e.transition,appear:!0},{default:()=>[pn(D?L("picture",{class:"v-img__picture"},[D,R]):R,[[hs,c.value==="loaded"]])]})},T=()=>S(io,{transition:e.transition},{default:()=>[h.value.lazySrc&&c.value!=="loaded"&&L("img",{class:Ie(["v-img__img","v-img__img--preload",E.value]),style:{objectPosition:e.position},crossorigin:e.crossorigin,src:h.value.lazySrc,alt:e.alt,referrerpolicy:e.referrerpolicy,draggable:e.draggable},null)]}),C=()=>r.placeholder?S(io,{transition:e.transition,appear:!0},{default:()=>[(c.value==="loading"||c.value==="error"&&!r.error)&&L("div",{class:"v-img__placeholder"},[r.placeholder()])]}):null,I=()=>r.error?S(io,{transition:e.transition,appear:!0},{default:()=>[c.value==="error"&&L("div",{class:"v-img__error"},[r.error()])]}):null,k=()=>e.gradient?L("div",{class:"v-img__gradient",style:{backgroundImage:`linear-gradient(${e.gradient})`}},null):null,$=Ze(!1);{const R=be(p,D=>{D&&(requestAnimationFrame(()=>{requestAnimationFrame(()=>{$.value=!0})}),R())})}return ut(()=>{const R=Gv.filterProps(e);return pn(S(Gv,Ve({class:["v-img",{"v-img--absolute":e.absolute,"v-img--booting":!$.value},s.value,o.value,e.class],style:[{width:ht(e.width==="auto"?d.value:e.width)},i.value,e.style]},R,{aspectRatio:p.value,"aria-label":e.alt,role:e.alt?"img":void 0}),{additional:()=>L(se,null,[S(w,null,null),S(T,null,null),S(k,null,null),S(C,null,null),S(I,null,null)]),default:r.default}),[[Uc,{handler:m,options:e.options},null,{once:!0}]])}),{currentSrc:l,image:u,state:c,naturalWidth:d,naturalHeight:f}}}),DQ=He({start:Boolean,end:Boolean,icon:jt,image:String,text:String,...mo(),...At(),...Ps(),...Tr(),...Al(),...rn(),...Dn(),...Xo({variant:"flat"})},"VAvatar"),rr=nt()({name:"VAvatar",props:DQ(),setup(e,t){let{slots:n}=t;const{themeClasses:r}=ir(e),{borderClasses:s}=Yo(e),{colorClasses:i,colorStyles:o,variantClasses:a}=pd(e),{densityClasses:l}
23=vi(e),{roundedClasses:u}=Qr(e),{sizeClasses:c,sizeStyles:d}=md(e);return ut(()=>S(e.tag,{class:Ie(["v-avatar",{"v-avatar--start":e.start,"v-avatar--end":e.end},r.value,s.value,i.value,l.value,u.value,c.value,a.value,e.class]),style:Qe([o.value,d.value,e.style])},{default:()=>[n.default?S(sn,{key:"content-defaults",defaults:{VImg:{cover:!0,src:e.image},VIcon:{icon:e.icon}}},{default:()=>[n.default()]}):e.image?S(Xr,{key:"image",src:e.image,alt:"",cover:!0},null):e.icon?S(de,{key:"icon",icon:e.icon},null):e.text,hd(!1,"v-avatar")]})),{}}}),PQ=He({appendAvatar:String,appendIcon:jt,prependAvatar:String,prependIcon:jt,subtitle:{type:[String,Number,Boolean],default:void 0},title:{type:[String,Number,Boolean],default:void 0},...At(),...Ps(),...rn()},"VCardItem"),L4=nt()({name:"VCardItem",props:PQ(),setup(e,t){let{slots:n}=t;return ut(()=>{const r=!!(e.prependAvatar||e.prependIcon),s=!!(r||n.prepend),i=!!(e.appendAvatar||e.appendIcon),o=!!(i||n.append),a=!!(e.title!=null||n.title),l=!!(e.subtitle!=null||n.subtitle);return S(e.tag,{class:Ie(["v-card-item",e.class]),style:Qe(e.style)},{default:()=>[s&&L("div",{key:"prepend",class:"v-card-item__prepend"},[n.prepend?S(sn,{key:"prepend-defaults",disabled:!r,defaults:{VAvatar:{density:e.density,image:e.prependAvatar},VIcon:{density:e.density,icon:e.prependIcon}}},n.prepend):L(se,null,[e.prependAvatar&&S(rr,{key:"prepend-avatar",density:e.density,image:e.prependAvatar},null),e.prependIcon&&S(de,{key:"prepend-icon",density:e.density,icon:e.prependIcon},null)])]),L("div",{class:"v-card-item__content"},[a&&S(at,{key:"title"},{default:()=>[n.title?.()??Z(e.title)]}),l&&S(Hv,{key:"subtitle"},{default:()=>[n.subtitle?.()??Z(e.subtitle)]}),n.default?.()]),o&&L("div",{key:"append",class:"v-card-item__append"},[n.append?S(sn,{key:"append-defaults",disabled:!i,defaults:{VAvatar:{density:e.density,image:e.appendAvatar},VIcon:{density:e.density,icon:e.appendIcon}}},n.append):L(se,null,[e.appendIcon&&S(de,{key:"append-icon",density:e.density,icon:e.appendIcon},null),e.appendAvatar&&S(rr,{key:"append-avatar",density:e.density,image:e.appendAvatar},null)])])]})}),{}}}),RQ=He({opacity:[Number,String],...At(),...rn()},"VCardText"),We=nt()({name:"VCardText",props:RQ(),setup(e,t){let{slots:n}=t;return ut(()=>S(e.tag,{class:Ie(["v-card-text",e.class]),style:Qe([{"--v-card-text-opacity":e.opacity},e.style])},n)),{}}}),OQ=He({appendAvatar:String,appendIcon:jt,disabled:Boolean,flat:Boolean,hover:Boolean,image:String,link:{type:Boolean,default:void 0},prependAvatar:String,prependIcon:jt,ripple:{type:[Boolean,Object],default:!0},subtitle:{type:[String,Number,Boolean],default:void 0},text:{type:[String,Number,Boolean],default:void 0},title:{type:[String,Number,Boolean],default:void 0},...mo(),...At(),...Ps(),...ms(),...Rs(),...SS(),...Fu(),...iy(),...Tr(),...ly(),...rn(),...Dn(),...Xo({variant:"elevated"})},"VCard"),$e=nt()({name:"VCard",directives:{vRipple:ho},props:OQ(),setup(e,t){let{attrs:n,slots:r}=t;const{themeClasses:s}=ir(e),{borderClasses:i}=Yo(e),{colorClasses:o,colorStyles:a,variantClasses:l}=pd(e),{densityClasses:u}=vi(e),{dimensionStyles:c}=vs(e),{elevationClasses:d}=gi(e),{loaderClasses:f}=sy(e),{locationStyles:h}=vd(e),{positionClasses:p}
23=oy(e),{roundedClasses:m}=Qr(e),v=ay(e,n);return ut(()=>{const x=e.link!==!1&&v.isLink.value,g=!e.disabled&&e.link!==!1&&(e.link||v.isClickable.value),y=x?"a":e.tag,_=!!(r.title||e.title!=null),E=!!(r.subtitle||e.subtitle!=null),w=_||E,T=!!(r.append||e.appendAvatar||e.appendIcon),C=!!(r.prepend||e.prependAvatar||e.prependIcon),I=!!(r.image||e.image),k=w||C||T,$=!!(r.text||e.text!=null);return pn(S(y,Ve(v.linkProps,{class:["v-card",{"v-card--disabled":e.disabled,"v-card--flat":e.flat,"v-card--hover":e.hover&&!(e.disabled||e.flat),"v-card--link":g},s.value,i.value,o.value,u.value,d.value,f.value,p.value,m.value,l.value,e.class],style:[a.value,c.value,h.value,e.style],onClick:g&&v.navigate,tabindex:e.disabled?-1:void 0}),{default:()=>[I&&L("div",{key:"image",class:"v-card__image"},[r.image?S(sn,{key:"image-defaults",disabled:!e.image,defaults:{VImg:{cover:!0,src:e.image}}},r.image):S(Xr,{key:"image-img",cover:!0,src:e.image},null)]),S(ES,{name:"v-card",active:!!e.loading,color:typeof e.loading=="boolean"?void 0:e.loading},{default:r.loader}),k&&S(L4,{key:"item",prependAvatar:e.prependAvatar,prependIcon:e.prependIcon,title:e.title,subtitle:e.subtitle,appendAvatar:e.appendAvatar,appendIcon:e.appendIcon},{default:r.item,prepend:r.prepend,title:r.title,subtitle:r.subtitle,append:r.append}),$&&S(We,{key:"text"},{default:()=>[r.text?.()??e.text]}),r.default?.(),r.actions&&S(mn,null,{default:r.actions}),hd(g,"v-card")]}),[[ho,g&&e.ripple]])}),{}}}),D4=Symbol.for("vuetify:form"),$Q=He({disabled:Boolean,fastFail:Boolean,readonly:Boolean,modelValue:{type:Boolean,default:null},validateOn:{type:String,default:"input"}},"form");function MQ(e){const t=Qt(e,"modelValue"),n=Ae(()=>e.disabled),r=Ae(()=>e.readonly),s=Ze(!1),i=M([]),o=M([]);async function a(){const c=[];let d=!0;o.value=[],s.value=!0;for(const f of i.value){const h=await f.validate();if(h.length>0&&(d=!1,c.push({id:f.id,errorMessages:h})),!d&&e.fastFail)break}return o.value=c,s.value=!1,{valid:d,errors:o.value}}function l(){i.value.forEach(c=>c.reset())}function u(){i.value.forEach(c=>c.resetValidation())}return be(i,()=>{let c=0,d=0;const f=[];for(const h of i.value)h.isValid===!1?(d++,f.push({id:h.id,errorMessages:h.errorMessages})):h.isValid===!0&&c++;o.value=f,t.value=d>0?!1:c===i.value.length?!0:null},{deep:!0,flush:"post"}),Cn(D4,{register:c=>{let{id:d,vm:f,validate:h,reset:p,resetValidation:m}=c;i.value.some(v=>v.id===d),i.value.push({id:d,validate:h,reset:p,resetValidation:m,vm:q2(f),isValid:null,errorMessages:[]})},unregister:c=>{i.value=i.value.filter(d=>d.id!==c)},update:(c,d,f)=>{const h=i.value.find(p=>p.id===c);h&&(h.isValid=d,h.errorMessages=f)},isDisabled:n,isReadonly:r,isValidating:s,isValid:t,items:i,validateOn:Ae(()=>e.validateOn)}),{errors:o,isDisabled:n,isReadonly:r,isValidating:s,isValid:t,items:i,validate:a,reset:l,resetValidation:u}}function cy(e){const t=mt(D4,null);return{...t,isReadonly:F(()=>!!(e?.readonly??t?.isReadonly.value)),isDisabled:F(()=>!!(e?.disabled??t?.isDisabled.value))}}const j1=Symbol("Forwarded refs");function z1(e,t){let n=e;for(;n;){const r=Reflect.getOwnPropertyDescriptor(n,t);if(r)return r;n=Object.getPrototypeOf(n)}}function yi(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return e[j1]=n,new Proxy(e,{get(s,i){if(Reflect.has(s,i))return Reflect.get(s,i);if(!(typeof i=="symbol"||i.startsWith("$")||i.startsWith("__"))){for(const o of n)if(o.value&&Reflect.has(o.value,i)){const a=Reflect.get(o.value,i);return typeof a=="function"?a.bind(o.value):a}}},has(s,i){if(Reflect.has(s,i))return!0;if(typeof i=="symbol"||i.startsWith("$")||i.startsWith("__"))return!1;for(const o of n)if(o.value&&Reflect.has(o.value,i))return!0;return!1},set(s,i,o){if(Reflect.has(s,i))return Reflect.set(s,i,o);if(typeof i=="symbol"||i.startsWith("$")||i.startsWith("__"))return!1;for(const a of n)if(a.value&&Reflect.has(a.value,i))return Reflect.set(a.value,i,o);return!1},getOwnPropertyDescriptor(s,i){const o=Reflect.getOwnPropertyDescriptor(s,i);if(o)return o;if(!(typeof i=="symbol"||i.startsWith("$")||i.startsWith("__"))){for(const a of n){if(!a.value)continue;const l=z1(a.value,i)??("_"in a.value?z1(a.value._?.setupState,i):void 0);if(l)return l}for(const a of n){const l=a.value&&a.value[j1];if(!l)continue;const u=l.slice();for(;u.length;){const c=u.shift(),d=z1(c.value,i);if(d)return d;const f=c.value&&c.value[j1];f&&u.push(...f)}}}}})}const FQ=He({...At(),...$Q()},"VForm"),gl=nt()({name:"VForm",props:FQ(),emits:{"update:modelValue":e=>!0,submit:e=>!0},setup(e,t){let{slots:n,emit:r}=t;const s=MQ(e),i=M();function o(l){l.preventDefault(),s.reset()}function a(l){const u=l,c=s.validate();u.then=c.then.bind(c),u.catch=c.catch.bind(c),u.finally=c.finally.bind(c),r("submit",u),u.defaultPrevented||c.then(d=>{let{valid:f}=d;f&&i.value?.submit()}),u.preventDefault()}return ut(()=>L("form",{ref:i,class:Ie(["v-form",e.class]),style:Qe(e.style),novalidate:!0,onReset:o,onSubmit:a}
23,[n.default?.(s)])),yi(s,i)}}),BQ=He({disabled:Boolean,group:Boolean,hideOnLeave:Boolean,leaveAbsolute:Boolean,mode:String,origin:String},"transition");function xi(e,t,n){return nt()({name:e,props:BQ({mode:n,origin:t}),setup(r,s){let{slots:i}=s;const o={onBeforeEnter(a){r.origin&&(a.style.transformOrigin=r.origin)},onLeave(a){if(r.leaveAbsolute){const{offsetTop:l,offsetLeft:u,offsetWidth:c,offsetHeight:d}=a;a._transitionInitialStyles={position:a.style.position,top:a.style.top,left:a.style.left,width:a.style.width,height:a.style.height},a.style.position="absolute",a.style.top=`${l}px`,a.style.left=`${u}px`,a.style.width=`${c}px`,a.style.height=`${d}px`}r.hideOnLeave&&a.style.setProperty("display","none","important")},onAfterLeave(a){if(r.leaveAbsolute&&a?._transitionInitialStyles){const{position:l,top:u,left:c,width:d,height:f}=a._transitionInitialStyles;delete a._transitionInitialStyles,a.style.position=l||"",a.style.top=u||"",a.style.left=c||"",a.style.width=d||"",a.style.height=f||""}}};return()=>{const a=r.group?Ng:No;return Dt(a,{name:r.disabled?"":e,css:!r.disabled,...r.group?void 0:{mode:r.mode},...r.disabled?{}:o},i.default)}}})}function P4(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"in-out";return nt()({name:e,props:{mode:{type:String,default:n},disabled:{type:Boolean,default:yu()},group:Boolean},setup(r,s){let{slots:i}=s;const o=r.group?Ng:No;return()=>Dt(o,{name:r.disabled?"":e,css:!r.disabled,...r.disabled?{}:t},i.default)}})}function R4(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";const n=(arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1)?"width":"height",r=Tn(`offset-${n}`);return{onBeforeEnter(o){o._parent=o.parentNode,o._initialStyle={transition:o.style.transition,overflow:o.style.overflow,[n]:o.style[n]}},onEnter(o){const a=o._initialStyle;if(!a)return;o.style.setProperty("transition","none","important"),o.style.overflow="hidden";const l=`${o[r]}px`;o.style[n]="0",o.offsetHeight,o.style.transition=a.transition,e&&o._parent&&o._parent.classList.add(e),requestAnimationFrame(()=>{o.style[n]=l})},onAfterEnter:i,onEnterCancelled:i,onLeave(o){o._initialStyle={transition:"",overflow:o.style.overflow,[n]:o.style[n]},o.style.overflow="hidden",o.style[n]=`${o[r]}px`,o.offsetHeight,requestAnimationFrame(()=>o.style[n]="0")},onAfterLeave:s,onLeaveCancelled:s};function s(o){e&&o._parent&&o._parent.classList.remove(e),i(o)}function i(o){if(!o._initialStyle)return;const a=o._initialStyle[n];o.style.overflow=o._initialStyle.overflow,a!=null&&(o.style[n]=a),delete o._initialStyle}}const NQ=He({target:[Object,Array]},"v-dialog-transition"),H1=new WeakMap,wS=nt()({name:"VDialogTransition",props:NQ(),setup(e,t){let{slots:n}=t;const r={onBeforeEnter(s){s.style.pointerEvents="none",s.style.visibility="hidden"},async onEnter(s,i){await new Promise(f=>requestAnimationFrame(f)),await new Promise(f=>requestAnimationFrame(f)),s.style.visibility="";const o=ek(e.target,s),{x:a,y:l,sx:u,sy:c,speed:d}=o;if(H1.set(s,o),yu())pa(s,[{opacity:0},{}],{duration:125*d,easing:kA}).finished.then(()=>i());else{const f=pa(s,[{transform:`translate(${a}px, ${l}px) scale(${u}, ${c})`,opacity:0},{}],{duration:225*d,easing:kA});QA(s)?.forEach(h=>{pa(h,[{opacity:0},{opacity:0,offset:.33},{}],{duration:450*d,easing:qf})}),f.finished.then(()=>i())}},onAfterEnter(s){s.style.removeProperty("pointer-events")},onBeforeLeave(s){s.style.pointerEvents="none"},async onLeave(s,i){await new Promise(f=>requestAnimationFrame(f));let o;!H1.has(s)||Array.isArray(e.target)||e.target.offsetParent||e.target.getClientRects().length?o=ek(e.target,s):o=H1.get(s);const{x:a,y:l,sx:u,sy:c,speed:d}=o;yu()?pa(s,[{},{opacity:0}],{duration:85*d,easing:IA}).finished.then(()=>i()):(pa(s,[{},{transform:`translate(${a}px, ${l}px) scale(${u}, ${c})`,opacity:0}],{duration:125*d,easing:IA}).finished.then(()=>i()),QA(s)?.forEach(h=>{pa(h,[{},{opacity:0,offset:.2},{opacity:0}],{duration:250*d,easing:qf})}))},onAfterLeave(s){s.style.removeProperty("pointer-events")}};return()=>e.target?S(No,Ve({name:"dialog-transition"},r,{css:!1}),n):S(No,{name:"dialog-transition"},n)}});function QA(e){const t=e.querySelector(":scope > .v-card, :scope > .v-sheet, :scope > .v-list")?.children;return t&&[...t]}function ek(e,t){const n=Y3(e),r=rS(t),[s,i]=getComputedStyle(t).transformOrigin.split(" ").map(x=>parseFloat(x)),[o,a]=getComputedStyle(t).getPropertyValue("--v-overlay-anchor-origin").split(" ");let l=n.left+n.width/2;o==="left"||a==="left"?l-=n.width/2:(o==="right"||a==="right")&&(l+=n.width/2);let u=n.top+n.height/2;o==="top"||a==="top"?u-=n.height/2:(o==="bottom"||a==="bottom")&&(u+=n.height/2);const c=n.width/r.width,d=n.height/r.height,f=Math.max(1,c,d),h=c/f||0,p=d/f||0,m=r.width*r.height/(window.innerWidth*window.innerHeight),v=m>.12?Math.min(1.5,(m-.12)*10+1):1;return{x:l-(s+r.left),y:u-(i+r.top),sx:h,sy:p,speed:v}}xi("fab-transition","center center","out-in");xi("dialog-bottom-transition");xi("dialog-top-transition");const tk=xi("fade-transition"),O4=xi("scale-transition");xi("scroll-x-transition");xi("scroll-x-reverse-transition");xi("scroll-y-transition");xi("scroll-y-reverse-transition");xi("slide-x-transition");xi("slide-x-reverse-transition");const $4=xi("slide-y-transition");xi("slide-y-reverse-transition");const dy=P4("expand-transition",R4()),M4=P4("expand-x-transition",R4("",!0)),VQ=He({active:Boolean,disabled:Boolean,max:[Number,String],value:{type:[Number,String],default:0},...At(),...Bu({transition:{component:$4}})},"VCounter"),F4=nt()({name:"VCounter",functional:!0,props:VQ(),setup(e,t){let{slots:n}=t;const r=Ae(()=>e.max?`${e.value} / ${e.max}`:String(e.value));return ut(()=>S(io,{transition:e.transition},{default:()=>[pn(L("div",{class:Ie(["v-counter",{"text-error":e.max&&!e.disabled&&parseFloat(e.value)>parseFloat(e.max)},e.class]),style:Qe(e.style)}
23,[n.default?n.default({counter:r.value,max:e.max,value:e.value}):r.value]),[[hs,e.active]])]})),{}}}),UQ=He({text:String,onClick:js(),...At(),...Dn()},"VLabel"),fy=nt()({name:"VLabel",props:UQ(),setup(e,t){let{slots:n}=t;return ut(()=>L("label",{class:Ie(["v-label",{"v-label--clickable":!!e.onClick},e.class]),style:Qe(e.style),onClick:e.onClick},[e.text,n.default?.()])),{}}}),jQ=He({floating:Boolean,...At()},"VFieldLabel"),V0=nt()({name:"VFieldLabel",props:jQ(),setup(e,t){let{slots:n}=t;return ut(()=>S(fy,{class:Ie(["v-field-label",{"v-field-label--floating":e.floating},e.class]),style:Qe(e.style)},n)),{}}});function B4(e){const{t}=po();function n(r){let{name:s,color:i,...o}=r;const a={prepend:"prependAction",prependInner:"prependAction",append:"appendAction",appendInner:"appendAction",clear:"clear"}[s],l=e[`onClick:${s}`];function u(d){d.key!=="Enter"&&d.key!==" "||(d.preventDefault(),d.stopPropagation(),tS(l,new PointerEvent("click",d)))}const c=l&&a?t(`$vuetify.input.${a}`,e.label??""):void 0;return S(de,Ve({icon:e[`${s}Icon`],"aria-label":c,onClick:l,onKeydown:u,color:i},o),null)}return{InputIcon:n}}const TS=He({focused:Boolean,"onUpdate:focused":js()},"focus");function yd(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:qo();const n=Qt(e,"focused"),r=Ae(()=>({[`${t}--focused`]:n.value}));function s(){n.value=!0}function i(){n.value=!1}return{focusClasses:r,isFocused:n,focus:s,blur:i}}const zQ=["underlined","outlined","filled","solo","solo-inverted","solo-filled","plain"],CS=He({appendInnerIcon:jt,bgColor:String,clearable:Boolean,clearIcon:{type:jt,default:"$clear"},active:Boolean,centerAffix:{type:Boolean,default:void 0},color:String,baseColor:String,details:Boolean,dirty:Boolean,disabled:{type:Boolean,default:null},glow:Boolean,error:Boolean,flat:Boolean,iconColor:[Boolean,String],label:String,persistentClear:Boolean,prependInnerIcon:jt,reverse:Boolean,singleLine:Boolean,variant:{type:String,default:"filled",validator:e=>zQ.includes(e)},"onClick:clear":js(),"onClick:appendInner":js(),"onClick:prependInner":js(),...At(),...SS(),...Tr(),...Dn()},"VField"),Kv=nt()({name:"VField",inheritAttrs:!1,props:{id:String,...TS(),...CS()},emits:{"update:focused":e=>!0,"update:modelValue":e=>!0},setup(e,t){let{attrs:n,emit:r,slots:s}=t;const{themeClasses:i}=ir(e),{loaderClasses:o}=sy(e),{focusClasses:a,isFocused:l,focus:u,blur:c}=yd(e),{InputIcon:d}
23=B4(e),{roundedClasses:f}=Qr(e),{rtlClasses:h}=Jr(),p=Ae(()=>e.dirty||e.active),m=Ae(()=>!!(e.label||s.label)),v=Ae(()=>!e.singleLine&&m.value),x=Ds(),g=F(()=>e.id||`input-${x}`),y=Ae(()=>e.details?`${g.value}-messages`:void 0),_=M(),E=M(),w=M(),T=F(()=>["plain","underlined"].includes(e.variant)),C=F(()=>e.error||e.disabled?void 0:p.value&&l.value?e.color:e.baseColor),I=F(()=>{if(!(!e.iconColor||e.glow&&!l.value))return e.iconColor===!0?C.value:e.iconColor}),{backgroundColorClasses:k,backgroundColorStyles:$}=_r(()=>e.bgColor),{textColorClasses:R,textColorStyles:D}=Gs(C);be(p,U=>{if(v.value&&!yu()){const N=_.value.$el,V=E.value.$el;requestAnimationFrame(()=>{const H=rS(N),re=V.getBoundingClientRect(),W=re.x-H.x,X=re.y-H.y-(H.height/2-re.height/2),Q=re.width/.75,le=Math.abs(Q-H.width)>1?{maxWidth:ht(Q)}:void 0,ve=getComputedStyle(N),oe=getComputedStyle(V),K=parseFloat(ve.transitionDuration)*1e3||150,ee=parseFloat(oe.getPropertyValue("--v-field-label-scale")),ae=oe.getPropertyValue("color");N.style.visibility="visible",V.style.visibility="hidden",pa(N,{transform:`translate(${W}px, ${X}px) scale(${ee})`,color:ae,...le},{duration:K,easing:qf,direction:U?"normal":"reverse"}).finished.then(()=>{N.style.removeProperty("visibility"),V.style.removeProperty("visibility")})})}},{flush:"post"});const O=F(()=>({isActive:p,isFocused:l,controlRef:w,blur:c,focus:u}));function B(U){U.target!==document.activeElement&&U.preventDefault()}return ut(()=>{const U=e.variant==="outlined",N=!!(s["prepend-inner"]||e.prependInnerIcon),V=!!(e.clearable||s.clear)&&!e.disabled,H=!!(s["append-inner"]||e.appendInnerIcon||V),re=()=>s.label?s.label({...O.value,label:e.label,props:{for:g.value}}):e.label;return L("div",Ve({class:["v-field",{"v-field--active":p.value,"v-field--appended":H,"v-field--center-affix":e.centerAffix??!T.value,"v-field--disabled":e.disabled,"v-field--dirty":e.dirty,"v-field--error":e.error,"v-field--glow":e.glow,"v-field--flat":e.flat,"v-field--has-background":!!e.bgColor,"v-field--persistent-clear":e.persistentClear,"v-field--prepended":N,"v-field--reverse":e.reverse,"v-field--single-line":e.singleLine,"v-field--no-label":!re(),[`v-field--variant-${e.variant}`]:!0},i.value,k.value,a.value,o.value,f.value,h.value,e.class],style:[$.value,e.style],onClick:B},n),[L("div",{class:"v-field__overlay"},null),S(ES,{name:"v-field",active:!!e.loading,color:e.error?"error":typeof e.loading=="string"?e.loading:e.color},{default:s.loader}),N&&L("div",{key:"prepend",class:"v-field__prepend-inner"},[e.prependInnerIcon&&S(d,{key:"prepend-icon",name:"prependInner",color:I.value},null),s["prepend-inner"]?.(O.value)]),L("div",{class:"v-field__field","data-no-activator":""},[["filled","solo","solo-inverted","solo-filled"].includes(e.variant)&&v.value&&S(V0,{key:"floating-label",ref:E,class:Ie([R.value]),floating:!0,for:g.value,"aria-hidden":!p.value,style:Qe(D.value)},{default:()=>[re()]}),m.value&&S(V0,{key:"label",ref:_,for:g.value},{default:()=>[re()]}),s.default?.({...O.value,props:{id:g.value,class:"v-field__input","aria-describedby":y.value},focus:u,blur:c})??L("div",{id:g.value,class:"v-field__input","aria-describedby":y.value},null)]),V&&S(M4,{key:"clear"},{default:()=>[pn(L("div",{class:"v-field__clearable",onMousedown:W=>{W.preventDefault(),W.stopPropagation()}},[S(sn,{defaults:{VIcon:{icon:e.clearIcon}}},{default:()=>[s.clear?s.clear({...O.value,props:{onFocus:u,onBlur:c,onClick:e["onClick:clear"],tabindex:-1}}):S(d,{name:"clear",onFocus:u,onBlur:c,tabindex:-1},null)]})]),[[hs,e.dirty]])]}),H&&L("div",{key:"append",class:"v-field__append-inner"},[s["append-inner"]?.(O.value),e.appendInnerIcon&&S(d,{key:"append-icon",name:"appendInner",color:I.value},null)]),L("div",{class:Ie(["v-field__outline",R.value]),style:Qe(D.value)},[U&&L(se,null,[L("div",{class:"v-field__outline__start"},null),v.value&&L("div",{class:"v-field__outline__notch"},[S(V0,{ref:E,floating:!0,for:g.value,"aria-hidden":!p.value},{default:()=>[re()]})]),L("div",{class:"v-field__outline__end"},null)]),T.value&&v.value&&S(V0,{ref:E,floating:!0,for:g.value,"aria-hidden":!p.value},{default:()=>[re()]})])])}),{controlRef:w,fieldIconColor:I}}}),HQ=He({active:Boolean,color:String,messages:{type:[Array,String],default:()=>[]},...At(),...Bu({transition:{component:$4,leaveAbsolute:!0,group:!0}
23})},"VMessages"),GQ=nt()({name:"VMessages",props:HQ(),setup(e,t){let{slots:n}=t;const r=F(()=>As(e.messages)),{textColorClasses:s,textColorStyles:i}=Gs(()=>e.color);return ut(()=>S(io,{transition:e.transition,tag:"div",class:Ie(["v-messages",s.value,e.class]),style:Qe([i.value,e.style])},{default:()=>[e.active&&r.value.map((o,a)=>L("div",{class:"v-messages__message",key:`${a}-${r.value}`},[n.message?n.message({message:o}):o]))]})),{}}}),KQ=Symbol.for("vuetify:rules");function WQ(e){const t=mt(KQ,null);if(!e){if(!t)throw new Error("Could not find Vuetify rules injection");return t.aliases}return t?.resolve(e)??Ae(e)}const qQ=He({disabled:{type:Boolean,default:null},error:Boolean,errorMessages:{type:[Array,String],default:()=>[]},maxErrors:{type:[Number,String],default:1},name:String,label:String,readonly:{type:Boolean,default:null},rules:{type:Array,default:()=>[]},modelValue:null,validateOn:String,validationValue:null,...TS()},"validation");function YQ(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:qo(),n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:Ds();
23const r=Qt(e,"modelValue"),s=F(()=>e.validationValue===void 0?r.value:e.validationValue),i=cy(e),o=WQ(()=>e.rules),a=M([]),l=Ze(!0),u=F(()=>!!(As(r.value===""?null:r.value).length||As(s.value===""?null:s.value).length)),c=F(()=>e.errorMessages?.length?As(e.errorMessages).concat(a.value).slice(0,Math.max(0,Number(e.maxErrors))):a.value),d=F(()=>{let _=(e.validateOn??i.validateOn?.value)||"input";_==="lazy"&&(_="input lazy"),_==="eager"&&(_="input eager");const E=new Set(_?.split(" ")??[]);return{input:E.has("input"),blur:E.has("blur")||E.has("input")||E.has("invalid-input"),invalidInput:E.has("invalid-input"),lazy:E.has("lazy"),eager:E.has("eager")}}),f=F(()=>e.error||e.errorMessages?.length?!1:e.rules.length?l.value?a.value.length||d.value.lazy?null:!0:!a.value.length:!0),h=Ze(!1),p=F(()=>({[`${t}--error`]:f.value===!1,[`${t}--dirty`]:u.value,[`${t}--disabled`]:i.isDisabled.value,[`${t}--readonly`]:i.isReadonly.value})),m=fr("validation"),v=F(()=>e.name??b(n));Lu(()=>{i.register?.({id:v.value,vm:m,validate:y,reset:x,resetValidation:g})}),cn(()=>{i.unregister?.(v.value)}),ft(async()=>{d.value.lazy||await y(!d.value.eager),i.update?.(v.value,f.value,c.value)}),jo(()=>d.value.input||d.value.invalidInput&&f.value===!1,()=>{be(s,()=>{if(s.value!=null)y();else if(e.focused){const _=be(()=>e.focused,E=>{E||y(),_()})}})}),jo(()=>d.value.blur,()=>{be(()=>e.focused,_=>{_||y()})}),be([f,c],()=>{i.update?.(v.value,f.value,c.value)});async function x(){r.value=null,await tt(),await g()}async function g(){l.value=!0,d.value.lazy?a.value=[]:await y(!d.value.eager)}async function y(){let _=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;const E=[];h.value=!0;for(const w of o.value){if(E.length>=Number(e.maxErrors??1))break;const C=await(typeof w=="function"?w:()=>w)(s.value);if(C!==!0){if(C!==!1&&typeof C!="string"){console.warn(`${C} is not a valid value. Rule functions must return boolean true or a string.`);continue}E.push(C||"")}}return a.value=E,h.value=!1,l.value=_,a.value}return{errorMessages:c,isDirty:u,isDisabled:i.isDisabled,isReadonly:i.isReadonly,isPristine:l,isValid:f,isValidating:h,reset:x,resetValidation:g,validate:y,validationClasses:p}}const Nu=He({id:String,appendIcon:jt,baseColor:String,centerAffix:{type:Boolean,default:!0},color:String,glow:Boolean,iconColor:[Boolean,String],prependIcon:jt,hideDetails:[Boolean,String],hideSpinButtons:Boolean,hint:String,persistentHint:Boolean,messages:{type:[Array,String],default:()=>[]},direction:{type:String,default:"horizontal",validator:e=>["horizontal","vertical"].includes(e)},"onClick:prepend":js(),"onClick:append":js(),...At(),...Ps(),...cd(ms(),["maxWidth","minWidth","width"]),...Dn(),...qQ()},"VInput"),Vi=nt()({name:"VInput",props:{...Nu()},emits:{"update:modelValue":e=>!0},setup(e,t){let{attrs:n,slots:r,emit:s}=t;const{densityClasses:i}=vi(e),{dimensionStyles:o}=vs(e),{themeClasses:a}=ir(e),{rtlClasses:l}=Jr(),{InputIcon:u}=B4(e),c=Ds(),d=F(()=>e.id||`input-${c}`),{errorMessages:f,isDirty:h,isDisabled:p,isReadonly:m,isPristine:v,isValid:x,isValidating:g,reset:y,resetValidation:_,validate:E,validationClasses:w}=YQ(e,"v-input",d),T=F(()=>e.errorMessages?.length||!v.value&&f.value.length?f.value:e.hint&&(e.persistentHint||e.focused)?e.hint:e.messages),C=Ae(()=>T.value.length>0),I=Ae(()=>!e.hideDetails||e.hideDetails==="auto"&&(C.value||!!r.details)),k=F(()=>I.value?`${d.value}-messages`:void 0),$=F(()=>({id:d,messagesId:k,isDirty:h,isDisabled:p,isReadonly:m,isPristine:v,isValid:x,isValidating:g,hasDetails:I,reset:y,resetValidation:_,validate:E})),R=Ae(()=>e.error||e.disabled?void 0:e.focused?e.color:e.baseColor),D=Ae(()=>{if(e.iconColor)return e.iconColor===!0?R.value:e.iconColor});return ut(()=>{const O=!!(r.prepend||e.prependIcon),B=!!(r.append||e.appendIcon);return L("div",{class:Ie(["v-input",`v-input--${e.direction}`,{"v-input--center-affix":e.centerAffix,"v-input--focused":e.focu
23sed,"v-input--glow":e.glow,"v-input--hide-spin-buttons":e.hideSpinButtons},i.value,a.value,l.value,w.value,e.class]),style:Qe([o.value,e.style])},[O&&L("div",{key:"prepend",class:"v-input__prepend"},[r.prepend?.($.value),e.prependIcon&&S(u,{key:"prepend-icon",name:"prepend",color:D.value},null)]),r.default&&L("div",{class:"v-input__control"},[r.default?.($.value)]),B&&L("div",{key:"append",class:"v-input__append"},[e.appendIcon&&S(u,{key:"append-icon",name:"append",color:D.value},null),r.append?.($.value)]),I.value&&L("div",{id:k.value,class:"v-input__details",role:"alert","aria-live":"polite"},[S(GQ,{active:C.value,messages:T.value},{message:r.message}),r.details?.($.value)])])}),{reset:y,resetValidation:_,validate:E,isValid:x,errorMessages:f}}}),N4=He({autocomplete:String},"autocomplete");function V4(e){const t=Ds(),n=Ze(0),r=Ae(()=>e.autocomplete==="suppress"),s=Ae(()=>r.value?`${e.name}-${t}-${n.value}`:e.name),i=Ae(()=>r.value?"off":e.autocomplete);return{isSuppressing:r,fieldAutocomplete:i,fieldName:s,update:()=>n.value=new Date().getTime()}}function U4(e){function t(n,r){!e.autofocus||!n||r[0].target?.focus?.()}return{onIntersect:t}}const XQ=["color","file","time","date","datetime-local","week","month"],AS=He({autofocus:Boolean,counter:[Boolean,Number,String],counterValue:[Number,Function],prefix:String,placeholder:String,persistentPlaceholder:Boolean,persistentCounter:Boolean,suffix:String,role:String,type:{type:String,default:"text"},modelModifiers:Object,...N4(),...Nu(),...CS()},"VTextField"),St=nt()({name:"VTextField",directives:{vIntersect:Uc},inheritAttrs:!1,props:AS(),emits:{"click:control":e=>!0,"mousedown:control":e=>!0,"update:focused":e=>!0,"update:modelValue":e=>!0},setup(e,t){let{attrs:n,emit:r,slots:s}=t;const i=Qt(e,"modelValue"),{isFocused:o,focus:a,blur:l}=yd(e),{onIntersect:u}=U4(e),c=F(()=>typeof e.counterValue=="function"?e.counterValue(i.value):typeof e.counterValue=="number"?e.counterValue:(i.value??"").toString().length),d=F(()=>{if(n.maxlength)return n.maxlength;if(!(!e.counter||typeof e.counter!="number"&&typeof e.counter!="string"))return e.counter}),f=F(()=>["plain","underlined"].includes(e.variant)),h=M(),p=M(),m=M(),v=V4(e),x=F(()=>XQ.includes(e.type)||e.persistentPlaceholder||o.value||e.active);function g(){v.isSuppressing.value&&v.update(),o.value||a(),tt(()=>{m.value!==document.activeElement&&m.value?.focus()})}function y(T){r("mousedown:control",T),T.target!==m.value&&(g(),T.preventDefault())}function _(T){r("click:control",T)}function E(T,C){T.stopPropagation(),g(),tt(()=>{C(),tS(e["onClick:clear"],T)})}function w(T){const C=T.target;if(i.value=C.value,e.modelModifiers?.trim&&["text","search","password","tel","url"].includes(e.type)){const I=[C.selectionStart,C.selectionEnd];tt(()=>{C.selectionStart=I[0],C.selectionEnd=I[1]})}}return ut(()=>{const T=!!(s.counter||e.counter!==!1&&e.counter!=null),C=!!(T||s.details),[I,k]=dd(n),{modelValue:$,...R}=Vi.filterProps(e),D=Kv.filterProps(e);return S(Vi,Ve({ref:h,modelValue:i.value,"onUpdate:modelValue":O=>i.value=O,class:["v-text-field",{"v-text-field--prefixed":e.prefix,"v-text-field--suffixed":e.suffix,"v-input--plain-underlined":f.value},e.class],style:e.style},I,R,{centerAffix:!f.value,focused:o.value}),{...s,default:O=>{let{id:B,isDisabled:U,isDirty:N,isReadonly:V,isValid:H,hasDetails:re,reset:W}=O;return S(Kv,Ve({ref:p,onMousedown:y,onClick:_,"onClick:clear":X=>E(X,W),role:e.role},ps(D,["onClick:clear"]),{id:B.value,active:x.value||N.value,dirty:N.value||e.dirty,disabled:U.value,focused:o.value,details:re.value,error:H.value===!1}),{...s,default:X=>{let{props:{class:Q,...le},controlRef:ve}=X;const oe=pn(L("input",Ve({ref:K=>m.value=ve.value=K,value:i.value,onInput:w,autofocus:e.autofocus,readonly:V.value,disabled:U.value,name:v.fieldName.value,autocomplete:v.fieldAutocomplete.value,placeholder:e.placeholder,size:1,role:e.role,type:e.type,onFocus:a,onBlur:l},le,k),null),[[Uc,{handler:u},null,{once:!0}]]);return L(se,null,[e.prefix&&L("span",{class:"v-text-field__prefix"},[L("span",{class:"v-text-field__prefix__text"},[e.prefix])]),s.default?L("div",{class:Ie(Q),"data-no-activator":""},[s.default(),oe]):Bi(oe,{class:Q}),e.suffix&&L("span",{class:"v-text-field__suffix"},[L("span",{class:"v-text-field__suffix__text"},[e.suffix])])])}})},details:C?O=>L(se,null,[s.details?.(O),T&&L(se,null,[L("span",null,null),S(F4,{active:e.persistentCounter||o.value,value:c.value,max:d.value,disabled:e.disabled},s.counter)])]):void 0})}),yi({},h,p,m)}}),kS=ke({__name:"LoginForm",emits:["success","switch"],setup(e,{emit:t}){const{register:n}=Ct(),r=M(!1),s=Wt({username:"",oncepass:""}),i=M(!1),o=t;async function a(){if(!r.value){r.value=!0;try{await n({username:s.username,oncepass:s.oncepass}),o("success")}catch{}finally{r.value=!1}}}return(l,u)=>(P(),q($e,{class:"pa-6 rounded-lg elevation-3"},{default:A(()=>[S(gl,{onSubmit:Et(a,["prevent"])},{default:A(()=>[S(St,{modelValue:b(s).username,"onUpdate:modelValue":u[0]||(u[0]=c=>b(s).username=c),label:"用户名登录",rules:[c=>!!c||"请输入用户名",c=>c.length>=6||"用户名至少6位"],required:"","prepend-inner-icon":"mdi-account",class:"mb-4"},null,8,["modelValue","rules"]),S(St,{modelValue:b(s).oncepass,"onUpdate:modelValue":u[1]||(u[1]=c=>b(s).oncepass=c),type:b(i)?"text":"password",label:"登录密码",rules:[c=>!!c||"请输入密码",c=>c.length>=6||"密码至少6位"],required:"","prepend-inner-icon":"mdi-lock",class:"mb-6","append-inner-icon":b(i)?"mdi-eye-off":"mdi-eye","onClick:appendInner":u[2]||(u[2]=c=>i.value=!b(i))},null,8,["modelValue","type","rules","append-inner-icon"]),S(ce,{block:"",color:"primary",type:"submit",loading:b(r),size:"large",class:"text-h6 font-weight-bold"},{default:A(()=>[...u[3]||(u[3]=[z(" 登 录 ",-1)])]),_:1},8,["loading"])]),_:1})]),_:1}))}}),ZQ=Object.freeze(Object.defineProperty({__proto__:null,default:kS},Symbol.toStringTag,{value:"Module"})),IS=ke({__name:"RegisterForm",emits:["success","switch"],setup(e,{emit:t}){const{register:n}=Ct(),r=M(!1),s=Wt({username:"",oncepass:"",invite:""}),i=M(!0),o=t;async function a(){if(!r.value){r.value=!0;try{await n({username:s.username,oncepass:s.oncepass,invite:s.invite}),o("success")}catch{}finally{r.value=!1}}}return(l,u)=>(P(),q($e,{class:"pa-6 rounded-lg elevation-3"},{default:A(()=>[S(gl,{onSubmit:Et(a,["prevent"])},{default:A(()=>[S(St,{modelValue:b(s).username,"onUpdate:modelValue":u[0]||(u[0]=c=>b(s).username=c),label:"注册用户名",rules:[c=>!!c||"请输入用户名",c=>c.length>=6||"用户名至少6位"],required:"","prepend-inner-icon":"mdi-account",class:"mb-4"},null,8,["modelValue","rules"]),S(St,{modelValue:b(s).oncepass,"onUpdate:modelValue":u[1]||(u[1]=c=>b(s).oncepass=c),type:b(i)?"text":"password",label:"输入您的密码",rules:[c=>!!c||"请输入密码",c=>c.length>=6||"密码至少6位"],required:"","prepend-inner-icon":"mdi-lock",class:"mb-6","append-inner-icon":b(i)?"mdi-eye-off":"mdi-eye","onClick:appendInner":u[2]||(u[2]=c=>i.value=!b(i))},null,8,["modelValue","type","rules","append-inner-icon"]),S(ce,{block:"",color:"primary",type:"submit",loading:b(r),size:"large",class:"text-h6 font-weight-bold"},{default:A(()=>[...u[3]||(u[3]=[z(" 注 册 ",-1)])]),_:1},8,["loading"])]),_:1})]),_:1}))}}),JQ=Object.freeze(Object.defineProperty({__proto__:null,default:IS},Symbol.toStringTag,{value:"Module"}));function G1(e,t){return{x:e.x+t.x,y:e.y+t.y}}function QQ(e,t){return{x:e.x-t.x,y:e.y-t.y}}function nk(e,t){if(e.side==="top"||e.side==="bottom"){const{side:n,align:r}=e,s=r==="left"?0:r==="center"?t.width/2:r==="right"?t.width:r,i=n==="top"?0:n==="bottom"?t.height:n;return G1({x:s,y:i},t)}else if(e.side==="left"||e.side==="right"){const{side:n,align:r}=e,s=n==="left"?0:n==="right"?t.width:n,i=r==="top"?0:r==="center"?t.height/2:r==="bottom"?t.height:r;return G1({x:s,y:i},t)}return G1({x:t.width/2,y:t.height/2},t)}const j4={static:nee,connected:see},eee=He({locationStrategy:{type:[String,Function],default:"static",validator:e=>typeof e=="function"||e in j4},location:{type:String,default:"bottom"},origin:{type:String,default:"auto"},offset:[Number,String,Array],stickToTarget:Boolean},"VOverlay-location-strategies");function tee(e,t){const n=M({}),r=M();on&&jo(()=>!!(t.isActive.value&&e.locationStrategy),a=>
23{be(()=>e.locationStrategy,a),qn(()=>{window.removeEventListener("resize",s),visualViewport?.removeEventListener("resize",i),visualViewport?.removeEventListener("scroll",o),r.value=void 0}),window.addEventListener("resize",s,{passive:!0}),visualViewport?.addEventListener("resize",i,{passive:!0}),visualViewport?.addEventListener("scroll",o,{passive:!0}),typeof e.locationStrategy=="function"?r.value=e.locationStrategy(t,e,n)?.updateLocation:r.value=j4[e.locationStrategy](t,e,n)?.updateLocation});function s(a){r.value?.(a)}function i(a){r.value?.(a)}function o(a){r.value?.(a)}return{contentStyles:n,updateLocation:r}}function nee(){}function ree(e,t){const n=rS(e);return t?n.x+=parseFloat(e.style.right||0):n.x-=parseFloat(e.style.left||0),n.y-=parseFloat(e.style.top||0),n}function see(e,t,n){(Array.isArray(e.target.value)||HX(e.target.value))&&Object.assign(n.value,{position:"fixed",top:0,[e.isRtl.value?"right":"left"]:0});const{preferredAnchor:s,preferredOrigin:i}=eS(()=>{const x=qb(t.location,e.isRtl.value),g=t.origin==="overlap"?x:t.origin==="auto"?M1(x):qb(t.origin,e.isRtl.value);return x.side===g.side&&x.align===F1(g).align?{preferredAnchor:mA(x),preferredOrigin:mA(g)}:{preferredAnchor:x,preferredOrigin:g}}),[o,a,l,u]=["minWidth","minHeight","maxWidth","maxHeight"].map(x=>F(()=>{const g=parseFloat(t[x]);return isNaN(g)?1/0:g})),c=F(()=>{if(Array.isArray(t.offset))return t.offset;if(typeof t.offset=="string"){const x=t.offset.split(" ").map(parseFloat);return x.length<2&&x.push(0),x}return typeof t.offset=="number"?[t.offset,0]:[0,0]});let d=!1,f=-1;const h=new sX(4),p=new ResizeObserver(()=>{if(!d)return;if(requestAnimationFrame(g=>{g!==f&&h.clear(),requestAnimationFrame(y=>{f=y})}),h.isFull){const g=h.values();if(zs(g.at(-1),g.at(-3))&&!zs(g.at(-1),g.at(-2)))return}const x=v();x&&h.push(x.flipped)});let m=new Li({x:0,y:0,width:0,height:0});be(e.target,(x,g)=>{g&&!Array.isArray(g)&&p.unobserve(g),Array.isArray(x)?zs(x,g)||v():x&&p.observe(x)},{immediate:!0}),be(e.contentEl,(x,g)=>{g&&p.unobserve(g),x&&p.observe(x)},{immediate:!0}),qn(()=>{p.disconnect()});function v(){if(d=!1,requestAnimationFrame(()=>d=!0),!e.target.value||!e.contentEl.value)return;(Array.isArray(e.target.value)||e.target.value.offsetParent||e.target.value.getClientRects().length)&&(m=Y3(e.target.value));const x=ree(e.contentEl.value,e.isRtl.value),g=Mv(e.contentEl.value),y=t.stickToTarget?0:12;g.length||(g.push(document.documentElement),e.contentEl.value.style.top&&e.contentEl.value.style.left||(x.x-=parseFloat(document.documentElement.style.getPropertyValue("--v-body-scroll-x")||0),x.y-=parseFloat(document.documentElement.style.getPropertyValue("--v-body-scroll-y")||0)));const _=g.reduce((D,O)=>{const B=fX(O);return D?new Li({x:Math.max(D.left,B.left),y:Math.max(D.top,B.top),width:Math.min(D.right,B.right)-Math.max(D.left,B.left),height:Math.min(D.bottom,B.bottom)-Math.max(D.top,B.top)}):B},void 0);t.stickToTarget?(_.x+=Math.min(0,m.x),_.y+=Math.min(0,m.y),_.width=Math.max(_.width,m.x+m.width),_.height=Math.max(_.height,m.y+m.height)):(_.x+=y,_.y+=y,_.width-=y*2,_.height-=y*2);let E={anchor:s.value,origin:i.value};function w(D){const O=new Li(x),B=nk(D.anchor,m),U=nk(D.origin,O);let{x:N,y:V}=QQ(B,U);switch(D.anchor.side){case"top":V-=c.value[0];break;case"bottom":V+=c.value[0];break;case"left":N-=c.value[0];break;case"right":N+=c.value[0];break}switch(D.anchor.align){case"top":V-=c.value[1];break;case"bottom":V+=c.value[1];break;case"left":N-=c.value[1];break;case"right":N+=c.value[1];break}return O.x+=N,O.y+=V,O.width=Math.min(O.width,l.value),O.height=Math.min(O.height,u.value),{overflows:gA(O,_),x:N,y:V}}let T=0,C=0;const I={x:0,y:0},k={x:!1,y:!1};let $=-1;for(;!($++>10);){const{x:D,y:O,overflows:B}=w(E);T+=D,C+=O,x.x+=D,x.y+=O;{const U=vA(E.anchor),N=B.x.before||B.x.after,V=B.y.before||B.y.after;let H=!1;if(["x","y"].forEach(re=>{if(re==="x"&&N&&!k.x||re==="y"&&V&&!k.y){const W={anchor:{...E.anchor},origin:{...E.origin}},X=re==="x"?U==="y"?F1:M1:U==="y"?M1:F1;W.anchor=X(W.anchor),W.origin=X(W.origin);const{overflows:Q}=w(W);(Q[re].before<=B[re].before&&Q[re].after<=B[re].after||Q[re].before+Q[re].after<(B[re].before+B[re].after)/2)&&(E=W,H=k[re]=!0)}}),H)continue}B.x.before&&(T+=B.x.before,x.x+=B.x.before),B.x.after&&(T-=B.x.after,x.x-=B.x.after),B.y.before&&(C+=B.y.before,x.y+=B.y.before),B.y.after&&(C-=B.y.after,x.y-=B.y.after);{const U=gA(x,_);I.x=_.width-U.x.before-U.x.after,I.y=_.height-U.y.before-U.y.after,T+=U.x.before,x.x+=U.x.before,C+=U.y.before,x.y+=U.y.before}break}const R=vA(E.anchor);return Object.assign(n.value,{"--v-overlay-anchor-origin":`${E.anchor.side} ${E.anchor.align}`,transformOrigin:`${E.origin.side} ${E.origin.align}`,top:ht(K1(C)),left:e.isRtl.value?void 0:ht(K1(T)),right:e.isRtl.value?ht(K1(-T)):void 0,minWidth:ht(R==="y"?Math.min(o.value,m.width):o.value),maxWidth:ht(rk(Yr(I.x,o.value===1/0?0:o.value,l.value))),maxHeight:ht
23(rk(Yr(I.y,a.value===1/0?0:a.value,u.value)))}),{available:I,contentBox:x,flipped:k}}return be(()=>[s.value,i.value,t.offset,t.minWidth,t.minHeight,t.maxWidth,t.maxHeight],()=>v()),tt(()=>{const x=v();if(!x)return;const{available:g,contentBox:y}=x;y.height>g.y&&requestAnimationFrame(()=>{v(),requestAnimationFrame(()=>{v()})})}),{updateLocation:v}}function K1(e){return Math.round(e*devicePixelRatio)/devicePixelRatio}function rk(e){return Math.ceil(e*devicePixelRatio)/devicePixelRatio}let t2=!0;const Wv=[];function iee(e){!t2||Wv.length?(Wv.push(e),n2()):(t2=!1,e(),n2())}let sk=-1;function n2(){cancelAnimationFrame(sk),sk=requestAnimationFrame(()=>{const e=Wv.shift();e&&e(),Wv.length?n2():t2=!0})}const z4={none:null,close:lee,block:uee,reposition:cee},oee=He({scrollStrategy:{type:[String,Function],default:"block",validator:e=>typeof e=="function"||e in z4}},"VOverlay-scroll-strategies");function aee(e,t){if(!on)return;let n;zn(async()=>{n?.stop(),t.isActive.value&&e.scrollStrategy&&(n=fl(),await new Promise(r=>setTimeout(r)),n.active&&n.run(()=>{typeof e.scrollStrategy=="function"?e.scrollStrategy(t,e,n):z4[e.scrollStrategy]?.(t,e,n)}))}),qn(()=>{n?.stop()})}function lee(e){function t(n){e.isActive.value=!1}H4(LS(e.target.value,e.contentEl.value),t)}function uee(e,t){const n=e.root.value?.offsetParent,r=LS(e.target.value,e.contentEl.value),s=[...new Set([...Mv(r,t.contained?n:void 0),...Mv(e.contentEl.value,t.contained?n:void 0)])].filter(a=>!a.classList.contains("v-overlay-scroll-blocked")),i=window.innerWidth-document.documentElement.offsetWidth,o=(a=>aS(a)&&a)(n||document.documentElement);o&&e.root.value.classList.add("v-overlay--scroll-blocked"),s.forEach((a,l)=>{a.style.setProperty("--v-body-scroll-x",ht(-a.scrollLeft)),a.style.setProperty("--v-body-scroll-y",ht(-a.scrollTop)),a!==document.documentElement&&a.style.setProperty("--v-scrollbar-offset",ht(i)),a.classList.add("v-overlay-scroll-blocked")}),qn(()=>{s.forEach((a,l)=>{const u=parseFloat(a.style.getPropertyValue("--v-body-scroll-x")),c=parseFloat(a.style.getPropertyValue("--v-body-scroll-y")),d=a.style.scrollBehavior;a.style.scrollBehavior="auto",a.style.removeProperty("--v-body-scroll-x"),a.style.removeProperty("--v-body-scroll-y"),a.style.removeProperty("--v-scrollbar-offset"),a.classList.remove("v-overlay-scroll-blocked"),a.scrollLeft=-u,a.scrollTop=-c,a.style.scrollBehavior=d}),o&&e.root.value.classList.remove("v-overlay--scroll-blocked")})}function cee(e,t,n){let r=!1,s=-1,i=-1;function o(a){iee(()=>{const l=performance.now();e.updateLocation.value?.(a),r=(performance.now()-l)/(1e3/60)>2})}i=(typeof requestIdleCallback>"u"?a=>a():requestIdleCallback)(()=>{n.run(()=>{H4(LS(e.target.value,e.contentEl.value),a=>{r?(cancelAnimationFrame(s),s=requestAnimationFrame(()=>{s=requestAnimationFrame(()=>{o(a)})})):o(a)})})}),qn(()=>{typeof cancelIdleCallback<"u"&&cancelIdleCallback(i),cancelAnimationFrame(s)})}function LS(e,t){return Array.isArray(e)?document.elementsFromPoint(...e).find(n=>!t?.contains(n)):e??t}function H4(e,t){const n=[document,...Mv(e)];n.forEach(r=>{r.addEventListener("scroll",t,{passive:!0})}),qn(()=>{n.forEach(r=>{r.removeEventListener("scroll",t)})})}const r2=Symbol.for("vuetify:v-menu"),dee=He({closeDelay:[Number,String],openDelay:[Number,String]},"delay");function fee(e,t){let n=()=>{};function r(o,a){n?.();const l=Math.max(a?.minDelay??0,Number(o?e.openDelay:e.closeDelay));return new Promise(u=>{n=oX(l,()=>{t?.(o),u(o)})})}function s(){return r(!0)}function i(o){return r(!1,o)}return{clearDelay:n,runOpenDelay:s,runCloseDelay:i}}const hee=He({target:[String,Object],activator:[String,Object],activatorProps:{type:Object,default:()=>({})},openOnClick:{type:Boolean,default:void 0},openOnHover:Boolean,openOnFocus:{type:Boolean,default:void 0},closeOnContentClick:Boolean,...dee()},"VOverlay-activator");function pee(e,t){let{isActive:n,isTop:r,contentEl:s}=t;const i=fr("useActivator"),o=M();let a=!1,l=!1,u=!0;const c=F(()=>e.openOnFocus||e.openOnFocus==null&&e.openOnHover),d=F(()=>e.openOnClick||e.openOnClick==null&&!e.openOnHover&&!c.value),{runOpenDelay:f,runCloseDelay:h}=fee(e,C=>{C===(e.openOnHover&&a||c.value&&l)&&!(e.openOnHover&&n.value&&!r.value)&&(n.value!==C&&(u=!0),n.value=C)}),p=M(),m={onClick:C=>{C.stopPropagation(),o.value=C.currentTarget||C.target,n.value||(p.value=[C.clientX,C.clientY]),n.value=!n.value},onMouseenter:C=>{a=!0,o.value=C.currentTarget||C.target,f()},onMouseleave:C=>{a=!1,h()},onFocus:C=>{Rv(C.target,":focus-visible")!==!1&&(l=!0,C.stopPropagation(),o.value=C.currentTarget||C.target,f())},onBlur:C=>{l=!1,C.stopPropagation(),h({minDelay:1})}},v=F(()=>{const C={};return d.value&&(C.onClick=m.onClick),e.openOnHover&&(C.onMouseenter=m.onMouseenter,C.onMouseleave=m.onMouseleave),c.value&&(C.onFocus=m.onFocus,
23C.onBlur=m.onBlur),C}),x=F(()=>{const C={};if(e.openOnHover&&(C.onMouseenter=()=>{a=!0,f()},C.onMouseleave=()=>{a=!1,h()}),c.value&&(C.onFocusin=I=>{I.target.matches(":focus-visible")&&(l=!0,f())},C.onFocusout=()=>{l=!1,h({minDelay:1})}),e.closeOnContentClick){const I=mt(r2,null);C.onClick=()=>{n.value=!1,I?.closeParents()}}return C}),g=F(()=>{const C={};return e.openOnHover&&(C.onMouseenter=()=>{u&&(a=!0,u=!1,f())},C.onMouseleave=()=>{a=!1,h()}),C});be(r,C=>{C&&(e.openOnHover&&!a&&(!c.value||!l)||c.value&&!l&&(!e.openOnHover||!a))&&!s.value?.contains(document.activeElement)&&(n.value=!1)}),be(n,C=>{C||setTimeout(()=>{p.value=void 0})},{flush:"post"});const y=Wb();zn(()=>{y.value&&tt(()=>{o.value=y.el})});const _=Wb(),E=F(()=>e.target==="cursor"&&p.value?p.value:_.value?_.el:G4(e.target,i)||o.value),w=F(()=>Array.isArray(E.value)?void 0:E.value);let T;return be(()=>!!e.activator,C=>{C&&on?(T=fl(),T.run(()=>{mee(e,i,{activatorEl:o,activatorEvents:v})})):T&&T.stop()},{flush:"post",immediate:!0}),qn(()=>{T?.stop()}),{activatorEl:o,activatorRef:y,target:E,targetEl:w,targetRef:_,activatorEvents:v,contentEvents:x,scrimEvents:g}}function mee(e,t,n){let{activatorEl:r,activatorEvents:s}=n;be(()=>e.activator,(l,u)=>{if(u&&l!==u){const c=a(u);c&&o(c)}l&&tt(()=>i())},{immediate:!0}),be(()=>e.activatorProps,()=>{i()}),qn(()=>{o()});function i(){let l=arguments.length>0&&arguments[0]!==void 0?arguments[0]:a(),u=arguments.length>1&&arguments[1]!==void 0?arguments[1]:e.activatorProps;l&&hX(l,Ve(s.value,u))}function o(){let l=arguments.length>0&&arguments[0]!==void 0?arguments[0]:a(),u=arguments.length>1&&arguments[1]!==void 0?arguments[1]:e.activatorProps;l&&pX(l,Ve(s.value,u))}function a(){let l=arguments.length>0&&arguments[0]!==void 0?arguments[0]:e.activator;const u=G4(l,t);return r.value=u?.nodeType===Node.ELEMENT_NODE?u:void 0,r.value}}function G4(e,t){if(!e)return;let n;if(e==="parent"){let r=t?.proxy?.$el?.parentNode;for(;r?.hasAttribute("data-no-activator");)r=r.parentNode;n=r}else typeof e=="string"?n=document.querySelector(e):"$el"in e?n=e.$el:n=e;return n}function vee(){if(!on)return Ze(!1);const{ssr:e}=fd();if(e){const t=Ze(!1);return ft(()=>{t.value=!0}),t}else return Ze(!0)}const K4=He({eager:Boolean},"lazy");function W4(e,t){const n=Ze(!1),r=Ae(()=>n.value||e.eager||t.value);be(t,()=>n.value=!0);function s(){e.eager||(n.value=!1)}return{isBooted:n,hasContent:r,onAfterLeave:s}}function Bh(){const t=fr("useScopeId").vnode.scopeId;return{scopeId:t?{[t]:""}:void 0}}const ik=Symbol.for("vuetify:stack"),Bd=Wt([]);function gee(e,t,n){const r=fr("useStack"),s=!n,i=mt(ik,void 0),o=Wt({activeChildren:new Set});Cn(ik,o);const a=Ze(Number(qr(t)));jo(e,()=>{const c=Bd.at(-1)?.[1];a.value=c?c+10:Number(qr(t)),s&&Bd.push([r.uid,a.value]),i?.activeChildren.add(r.uid),qn(()=>{if(s){const d=yt(Bd).findIndex(f=>f[0]===r.uid);Bd.splice(d,1)}i?.activeChildren.delete(r.uid)})});const l=Ze(!0);s&&zn(()=>{const c=Bd.at(-1)?.[0]===r.uid;setTimeout(()=>l.value=c)});const u=Ae(()=>!o.activeChildren.size);return{globalTop:ds(l),localTop:u,stackStyles:Ae(()=>({zIndex:a.value}))}}function yee(e){return{teleportTarget:F(()=>{const n=e();if(n===!0||!on)return;const r=n===!1?document.body:typeof n=="string"?document.querySelector(n):n;if(r==null)return;let s=[...r.children].find(i=>i.matches(".v-overlay-container"));return s||(s=document.createElement("div"),s.className="v-overlay-container",r.appendChild(s)),s})}}function xee(){return!0}function q4(e,t,n){if(!e||Y4(e,n)===!1)return!1;const r=t4(t);if(typeof ShadowRoot<"u"&&r instanceof ShadowRoot&&r.host===e.target)return!1;const s=(typeof n.value=="object"&&n.value.include||(()=>[]))();return s.push(t),!s.some(i=>i?.contains(e.target))}function Y4(e,t){return(typeof t.value=="object"&&t.value.closeConditional||xee)(e)}function bee(e,t,n){const r=typeof n.value=="function"?n.value:n.value.handler;e.shadowTarget=e.target,t._clickOutside.lastMousedownWasOutside&&q4(e,t,n)&&setTimeout(()=>{Y4(e,n)&&r&&r(e)},0)}function ok(e,t){const n=t4(e);t(document),typeof ShadowRoot<"u"&&n instanceof ShadowRoot&&t(n)}const ak={mounted(e,t){const n=s=>bee(s,e,t),r=s=>{e._clickOutside.lastMousedownWasOutside=q4(s,e,t)};ok(e,s=>{s.addEventListener("click",n,!0),s.addEventListener("mousedown",r,!0)}),e._clickOutside||(e._clickOutside={lastMousedownWasOutside:!1}),e._clickOutside[t.instance.$.uid]={onClick:n,onMousedown:r}},beforeUnmount(e,t){e._clickOutside&&(ok(e,n=>{if(!n||!e._clickOutside?.[t.instance.$.uid])return;const{onClick:r,onMousedown:s}=e._clickOutside[t.instance.$.uid];n.removeEventListener("click",r,!0),n.removeEventListener("mousedown",s,!0)}),delete e._clickOutside[t.instance.$.uid])}};function _ee(e){const{modelValue:t,color:n,...r}=e;return S(No,{name:"fade-transition",appear:!0},{default:()=>[e.modelValue&&L("div",Ve({class:["v-overlay__scrim",e.color.backgroundColorClasses.value],style:e.color.backgroundColorStyles.value},r),null)]})}const hy=He({absolute:Boolean,attach:[Boolean,String,Object],closeOnBack:{type:Boolean,default:!0},contained:Boolean,contentClass:null,contentProps:null,disabled:Boolean,opacity:[Number,String],noClickAnimation:Boolean,modelValue:Boolean,persistent:Boolean,scrim:{type:[Boolean,String],default:!0},zIndex:{type:[Number,String],default:2e3},...hee(),...At(),...ms(),...K4(),...eee(),...oee(),...Dn(),...Bu()},"VOverlay"),bu=nt()({name:"VOverlay",directives:{vClickOutside:ak},inheritAttrs:!1,props:{_disableGlobalStack:Boolean,...hy()},emits:{"click:outside":e=>!0,"update:modelValue":e=>!0,keydown:e=>
23!0,afterEnter:()=>!0,afterLeave:()=>!0},setup(e,t){let{slots:n,attrs:r,emit:s}=t;const i=fr("VOverlay"),o=M(),a=M(),l=M(),u=Qt(e,"modelValue"),c=F({get:()=>u.value,set:K=>{K&&e.disabled||(u.value=K)}}),{themeClasses:d}=ir(e),{rtlClasses:f,isRtl:h}=Jr(),{hasContent:p,onAfterLeave:m}=W4(e,c),v=_r(()=>typeof e.scrim=="string"?e.scrim:null),{globalTop:x,localTop:g,stackStyles:y}=gee(c,()=>e.zIndex,e._disableGlobalStack),{activatorEl:_,activatorRef:E,target:w,targetEl:T,targetRef:C,activatorEvents:I,contentEvents:k,scrimEvents:$}=pee(e,{isActive:c,isTop:g,contentEl:l}),{teleportTarget:R}=yee(()=>{const K=e.attach||e.contained;if(K)return K;const ee=_?.value?.getRootNode()||i.proxy?.$el?.getRootNode();return ee instanceof ShadowRoot?ee:!1}),{dimensionStyles:D}=vs(e),O=vee(),{scopeId:B}=Bh();be(()=>e.disabled,K=>{K&&(c.value=!1)});const{contentStyles:U,updateLocation:N}=tee(e,{isRtl:h,contentEl:l,target:w,isActive:c});aee(e,{root:o,contentEl:l,targetEl:T,target:w,isActive:c,updateLocation:N});function V(K){s("click:outside",K),e.persistent?le():c.value=!1}function H(K){return c.value&&x.value&&(!e.scrim||K.target===a.value||K instanceof MouseEvent&&K.shadowTarget===a.value)}on&&be(c,K=>{K?window.addEventListener("keydown",re):window.removeEventListener("keydown",re)},{immediate:!0}),cn(()=>{on&&window.removeEventListener("keydown",re)});function re(K){K.key==="Escape"&&x.value&&(l.value?.contains(document.activeElement)||s("keydown",K),e.persistent?le():(c.value=!1,l.value?.contains(document.activeElement)&&_.value?.focus()))}function W(K){K.key==="Escape"&&!x.value||s("keydown",K)}const X=yQ();jo(()=>e.closeOnBack,()=>{xQ(X,K=>{x.value&&c.value?(K(!1),e.persistent?le():c.value=!1):K()})});const Q=M();be(()=>c.value&&(e.absolute||e.contained)&&R.value==null,K=>{if(K){const ee=oS(o.value);ee&&ee!==document.scrollingElement&&(Q.value=ee.scrollTop)}});function le(){e.noClickAnimation||l.value&&pa(l.value,[{transformOrigin:"center"},{transform:"scale(1.03)"},{transformOrigin:"center"}],{duration:150,easing:qf})}function ve(){s("afterEnter")}function oe(){m(),s("afterLeave")}return ut(()=>L(se,null,[n.activator?.({isActive:c.value,targetRef:C,props:Ve({ref:E},I.value,e.activatorProps)}),O.value&&p.value&&S(J2,{disabled:!R.value,to:R.value},{default:()=>[L("div",Ve({class:["v-overlay",{"v-overlay--absolute":e.absolute||e.contained,"v-overlay--active":c.value,"v-overlay--contained":e.contained},d.value,f.value,e.class],style:[y.value,{"--v-overlay-opacity":e.opacity,top:ht(Q.value)},e.style],ref:o,onKeydown:W},B,r),[S(_ee,Ve({color:v,modelValue:c.value&&!!e.scrim,ref:a},$.value),null),S(io,{appear:!0,persisted:!0,transition:e.transition,target:w.value,onAfterEnter:ve,onAfterLeave:oe},{default:()=>[pn(L("div",Ve({ref:l,class:["v-overlay__content",e.contentClass],style:[D.value,U.value]},k.value,e.contentProps),[n.default?.({isActive:c})]),[[hs,c.value],[ak,{handler:V,closeConditional:H,include:()=>[_.value]}]])]})])]})])),{activatorEl:_,scrimEl:a,target:w,animateClick:le,contentEl:l,rootEl:o,globalTop:x,localTop:g,updateLocation:N}}}),X4=He({fullscreen:Boolean,retainFocus:{type:Boolean,default:!0},scrollable:Boolean,...hy({origin:"center center",scrollStrategy:"block",transition:{component:wS},zIndex:2400})},"VDialog"),Gt=nt()({name:"VDialog",props:X4(),emits:{"update:modelValue":e=>!0,afterEnter:()=>!0,afterLeave:()=>!0},setup(e,t){let{emit:n,slots:r}=t;const s=Qt(e,"modelValue"),{scopeId:i}=Bh(),o=M();async function a(d){const f=d.relatedTarget,h=d.target;await tt(),s.value&&f!==h&&o.value?.contentEl&&o.value?.globalTop&&![document,o.value.contentEl].includes(h)&&!o.value.contentEl.contains(h)&&Nc(o.value.contentEl)[0]?.focus()}function l(d){if(d.key!=="Tab"||!o.value?.contentEl)return;const f=Nc(o.value.contentEl);if(!f.length)return;const h=f[0],p=f[f.length-1],m=document.activeElement;d.shiftKey&&m===h?(d.preventDefault(),p.focus()):!d.shiftKey&&m===p&&(d.preventDefault(),h.focus())}cn(()=>{document.removeEventListener("focusin",a),document.removeEventListener("keydown",l)}),on&&be(()=>s.value&&e.retainFocus,d=>{d?(document.addEventListener("focusin",a,{once:!0}),document.addEventListener("keydown",l)):(document.removeEventListener("focusin",a),document.removeEventListener("keydown",l))},{immediate:!0});function u(){n("afterEnter"),(e.scrim||e.retainFocus)&&o.value?.contentEl&&!o.value.contentEl.contains(document.activeElement)&&o.value.contentEl.focu
23s({preventScroll:!0})}function c(){n("afterLeave")}return be(s,async d=>{d||(await tt(),o.value.activatorEl?.focus({preventScroll:!0}))}),ut(()=>{const d=bu.filterProps(e),f=Ve({"aria-haspopup":"dialog"},e.activatorProps),h=Ve({tabindex:-1},e.contentProps);return S(bu,Ve({ref:o,class:["v-dialog",{"v-dialog--fullscreen":e.fullscreen,"v-dialog--scrollable":e.scrollable},e.class],style:e.style},d,{modelValue:s.value,"onUpdate:modelValue":p=>s.value=p,"aria-modal":"true",activatorProps:f,contentProps:h,height:e.fullscreen?void 0:e.height,width:e.fullscreen?void 0:e.width,maxHeight:e.fullscreen?void 0:e.maxHeight,maxWidth:e.fullscreen?void 0:e.maxWidth,role:"dialog",onAfterEnter:u,onAfterLeave:c},i),{activator:r.activator,default:function(){for(var p=arguments.length,m=new Array(p),v=0;v<p;v++)m[v]=arguments[v];return S(sn,{root:"VDialog"},{default:()=>[r.default?.(...m)]})}})}),yi({},o)}}),See={key:2,class:"mt-6 text-center"},Eee={key:3,class:"mt-6 text-center"},Cr=ke({__name:"AuthDialog",props:{modelValue:{type:Boolean},initialMode:{}},emits:["update:modelValue","close"],setup(e,{emit:t}){const n=e,r=t,s=F({get:()=>n.modelValue,set:l=>{r("update:modelValue",l),l||r("close")}}),i=M(n.initialMode||"login"),o=()=>{s.value=!1},a=l=>{i.value=l};return(l,u)=>{const c=vS,d=kS,f=IS;return P(),q(Gt,{modelValue:b(s),"onUpdate:modelValue":u[3]||(u[3]=h=>Ce(s)?s.value=h:null),"max-2width":"400px",persistent:"",attach:".v-application"},{default:A(()=>[S($e,{class:"p-4"},{default:A(()=>[S(at,{class:"flex align-center items-center justify-center gap-2",style:{"min-height":"80px",height:"80px"}},{default:A(()=>[S(c,{size:64,class:"flex-shrink-0"})]),_:1}),S(We,null,{default:A(()=>[b(i)==="login"?(P(),q(d,{key:0,onSuccess:o,onSwitch:a})):(P(),q(f,{key:1,onSuccess:o,onSwitch:a})),b(i)==="login"?(P(),j("div",See,[L("a",{href:"#",class:"text-primary",onClick:u[0]||(u[0]=h=>i.value="register")}," 没有账号?立即注册 ")])):(P(),j("div",Eee,[L("a",{href:"#",class:"text-primary",onClick:u[1]||(u[1]=h=>i.value="login")}," 已有账号?立即登录 ")]))]),_:1})]),_:1}),S(ce,{icon:"mdi:close",size:48,class:"absolute -top-5 right-1",onClick:u[2]||(u[2]=h=>s.value=!1)})]),_:1},8,["modelValue"])}}}),wee=Object.freeze(Object.defineProperty({__proto__:null,default:Cr},Symbol.toStringTag,{value:"Module"}));function It(){const r={html:s=>(s.startsWith("/")||(s="/"+s),`/${Rr()}html`+s),search:(s,i)=>{const{key:o}=i;return o?r.html(`/search.html?mod=${s}&key=${vl.encode(encodeURIComponent(o))}`):r.html("/search.html")},detail:(s,i,o)=>r.html(`/${s}/${i}.html`+(o?`?${new URLSearchParams(o).toString()}`:"")),list:(s,i={})=>{const{cid:o,order:a,page:l}=i;let u=r.html(`/${s}`);return i?(o&&(u+=`_${o}`),a&&(u+=`/${a}`),l&&~~l>1?u+=`/page_${l}.html`:!o&&!a&&(u+="/"),u.search(/\.html/)===-1&&u.substring(u.length-2)!=="/"&&(u+="/"),u.replace(/\/+$/ig,"/")):u}};return r}const it=Ws(()=>{const e=wt().$api,t=i=>(i?.error??i?.err??-1)===0,n=i=>{const o=l=>Date.now()/1e3-l>86400,a=async(l,u)=>await e(l,{baseUrl:void 0});return{list:(l,u)=>e("index/list",{query:{...l,type:i},...u}),detail:async l=>{const{html:u}=It();return await a(`/info/${i}/${l.id}`,u(`/json/${i}/info/${l.id}.js`))},related:async l=>{if(i==="pic"&&l.pid){const u=Lb("relate:pid"),{pid:c,time:d,data:f}=u?.value;if(f&&u&&c==l.pid&&!o(d))return f;const{html:h}=It(),p=await a(`pid/${l.pid}`,h(`json/${i}/relate/${l.pid}.js`));return u.value={data:p,pid:l.pid,time:Math.ceil(Date.now()/1e3)},p}else{l?.seed||(l.seed=Math.floor(Math.random()*1e6));const u=(l.seed||1)%20+1,d=`${i==="pic"&&!l.id?[35,37,39,41,43,45][Math.floor(Math.random()*6)]:l.id}_${u}`,f=Lb(`relate:${d}`),{time:h,data:p}=f?.value;if(f&&p&&!o(h))return p;const{html:m}=It(),v=await a(`relate/${l.id}`,m(`json/${i}/guess/${d}.js`));return v&&(f.value={data:v,time:Math.ceil(Date.now()/1e3)}),v}}}},r=()=>{const i=(o,a=!1)=>(o=o||{},o.headers={...o.headers,"X-Id":"o","Org-Host":""},o);return{command:(o,a=[])=>e("series/index",{query:{...o},...i(a),cache:{ttl:1800,compress:!0,cacheable:t}}),list:(o,a=[])=>e("series/search",{query:{...o},...i(a),cache:{ttl:1800,compress:!0,cacheable:l=>o.page==1?t(l):!1}}),detail:(o,a=[])=>e("series/info",{query:{...o},...i(a),cache:{ttl:1800,compress:!0,cacheable:t}}),related:(o,a=[])=>{const l={};return o?.tags&&(l.tag=o.tags?.[0]||""),o?.order&&(l.order=o.order),o?.page&&(l.page=o.page),e("series/search",{query:l,...i(a),cache:{ttl:1800,compress:!0,cacheable:t}})},episode:(o,a=[])=>e("series/play",{query:{...o},...i(a)}),action:(o,a=[])=>e("series/action",{query:{...o},...i(a)})}},s=i=>{const o=l=>(l=l||{},l.headers={...l.headers,"X-Id":"","Org-Host":""},l),a=l=>{if(!l)return{};if(l?.order){const u={week:"weekclicks",month:"monthclicks",year:"yearclicks",total:"totalclicks"};l.order=u[l.order]||l.order}return l};return{command:(l,u=[])=>e(`${i}/index`,{query:{...l},...o(u),cache:{ttl:1800,compress:!0,cacheable:t}}),list:(l,u=[])=>(l?.censored&&(l.censored=l.censored),l=a(l),e(`${i}/search`,{query:{...l},...o(u),cache:{ttl:1800,compress:!0,cacheable:c=>l.page==1?t(c):!1}})),detail:(l,u=[])=>e(`${i}/info`,{query:{...l},...o(u),cache:{ttl:1800,compress:!0,cacheable:t}}),related:(l,u=[])=>{const c=["keyword","order","page"],d={};for(const f of c)l[f]!==void 0&&(d[f]=l[f]);return e(`${i}/search`,{query:a(d)||{},...o(u),cache:{ttl:600,compress:!0,cacheable:t}})}}};return{vod:n("vod"),nvl:n("nvl"),pic:n("pic"),sj:r(),down:s("down"),actor:s("actor"),commend:i=>e("index/commend",{query:i,cache:{ttl:3600,key:"index:"+Tb(`commend:${JSON.stringify(i)}`),compress:!0,cacheable:t}}),land:i=>e("index/land",{query:{name:i},cache:{ttl:300,key:"land:"+Tb(`land:${i}`),compress:!0,cacheable:t},onResponseHeader:o=>{console.log(o)}}),user:{vipList:()=>e("user/vip",{cache:{ttl:300,key:"vipList",compress:!0,cacheable:t}}),recharge:()=>e("user/recharge",{cache:{ttl:300,key:"rechargeConf",compress:!0,cacheable:t}}),sign:()=>e("user/sign",{fullResponse:!0}),sendcode:i=>e("user/sendcode",{query:i}),forgetcode:i=>e("user/forgetcode",{query:i}),forget:i=>e("user/forget",{method:"POST",body:Vt(i)}),update:i=>e("user/update",{method:"POST",body:Vt(i)}),bind:i=>e("user/bind",{method:"POST",body:Vt(i)}),notify:i=>e("user/notify",{query:i}),notifyStatus:()=>e("user/notify_status"),notifyRead:i=>e("user/notify_read",{query:i}),credit:i=>e("user/credit",{query:i}),rechargeList:i=>e("user/recharge_list",{query:i}),withdraw:i=>e("user/withdraw",{method:"POST",body:Vt(i)}),withdrawList:i=>e("user/withdraw_list",{method:"POST",body:Vt(i)}),withdrawAudit:i=>e("user/withdraw_audit",{method:"POST",body:Vt(i)}),stat:i=>e("user/stat",{query:i}),followStatus:i=>e("user/follow_status",{query:i}),following:i=>e("user/following",{query:i}),followers:i=>e("user/followers",{query:i}),recommend:i=>e("user/recommend",{query:i||{},cache:{ttl:300,compress:!0,cacheable:t}}),statDetail:i=>e("user/stat_detail",{query:i}),detail:i=>e("user/detail",{method:"POST",body:Vt({...i})}),edit:i=>e("user/update",{method:"POST",body:Vt(i)}),fav:i=>e("user/fav",{query:i}),favDel:i=>e("user/fav_del",{method:"POST",body:Vt({ids:i})}),nicknameRandom:i=>e("user/nickname_random",{query:{...i||{}}}),conf:()=>e("user/conf",{cache:{ttl:300,compress:!0,cacheable:t}})},file:{getUploadId:()=>e("file/id",{method:"POST"}),uploadChunk:async(i,o)=>{const a=await e("",{method:"CSRF"});return fetch(i,{method:"POST",body:o,headers:{FORM_HASH:a.data}})}},ai:{workflows:()=>
23e("ai/workflows",{cache:{ttl:30,compress:!0,cacheable:t}}),templates:i=>e("ai/templates",{query:{...i||{}}}),create:i=>e("ai/create",{method:"POST",body:Vt({...i,inputs:JSON.stringify(i.inputs||[])})}),list:i=>e("ai/list",{query:{...i}}),status:i=>e("ai/status",{query:{...i}}),cancel:i=>e("ai/cancel",{method:"POST",body:Vt({id:i})})},post:{pub:i=>e("post/pub",{method:"POST",body:Vt(i)}),edit:i=>e("post/edit",{method:"POST",body:Vt(i)}),del:i=>e("post/del",{query:{id:i}}),list:i=>e("post/list",{query:i}),search:i=>e("post/search",{query:i}),batchStatus:i=>e("post/batch_status",{method:"POST",body:Vt({ids:i.join(",")})}),replyList:i=>e("post/reply_list",{query:i}),reply:i=>e("post/reply",{method:"POST",body:Vt(i)}),replyEdit:i=>e("post/reply_edit",{method:"POST",body:Vt(i)}),replyDel:i=>e("post/reply_del",{query:{id:i}}),detail:i=>e("post/detail",{query:{...i}}),buy:i=>e("post/buy",{method:"POST",body:Vt({id:i})}),report:(i,o)=>e("post/report",{method:"POST",body:Vt({id:i,reason:o})}),recommend:i=>e("post/recommend",{method:"POST",body:Vt({id:i})}),top:i=>e("post/top",{method:"POST",body:Vt(i)}),repost:i=>e("post/repost",{method:"POST",body:Vt({id:i})}),follow:i=>e("user/follow",{method:"POST",body:Vt({userId:i})}),tag:i=>e("post/tag",{silent:!0,method:"POST",body:Vt(i?{key:i}:{}),cache:{ttl:1800,compress:!0,cacheable:t}}),tagDetail:i=>e("post/tag_detail",{silent:!0,method:"POST",body:Vt({...i}),cache:{ttl:300,compress:!0,cacheable:t,key:`tagDetail:${i.tag}:${i.isloc}`}}),tagEdit:i=>e("post/tag_edit",{method:"POST",body:Vt({...i})}),status:i=>e("post/status",{method:"POST",body:Vt({...i})}),reward:i=>e("post/reward",{method:"POST",body:Vt({...i})}),shareData:i=>e("post/share_data",{method:"POST",body:Vt({...i})}),rule:i=>e("post/rule",{query:i}),conf:()=>e("post/conf",{})},like:{source:i=>e("like/source",{query:i}),status:i=>e("like/status",{query:i})},comment:{list:i=>e("comment/list",{query:{postId:i}}),pub:(i,o,a)=>e("comment/pub",{method:"POST",body:{postId:i,content:o,images:a}}),reply:(i,o)=>e("comment/reply",{method:"POST",body:{commentId:i,content:o}})},report:{types:i=>e("report/types",{query:{type:i}}),pub:i=>e("report/pub",{method:"POST",body:Vt(i)}),list:i=>e("report/list",{query:i}),update:i=>e("report/update",{method:"POST",body:Vt(i)})},city:{list:i=>e("city/list",{query:{...i}})}}}),Tee=He({inset:Boolean,...X4({transition:"bottom-sheet-transition"})},"VBottomSheet"),zo=nt()({name:"VBottomSheet",props:Tee(),emits:{"update:modelValue":e=>!0},setup(e,t){let{slots:n}=t;const r=Qt(e,"modelValue");return ut(()=>{const s=Gt.filterProps(e);return S(Gt,Ve(s,{contentClass:["v-bottom-sheet__content",e.contentClass],modelValue:r.value,"onUpdate:modelValue":i=>r.value=i,class:["v-bottom-sheet",{"v-bottom-sheet--inset":e.inset},e.class],style:e.style}),n)}),{}}}),Cee=He({color:String,inset:Boolean,length:[Number,String],opacity:[Number,String],thickness:[Number,String],vertical:Boolean,...At(),...Dn()},"VDivider"),zt=nt()({name:"VDivider",props:Cee(),setup(e,t){let{attrs:n,slots:r}=t;const{themeClasses:s}=ir(e),{textColorClasses:i,textColorStyles:o}=Gs(()=>e.color),a=F(()=>{const l={};return e.length&&(l[e.vertical?"height":"width"]=ht(e.length)),e.thickness&&(l[e.vertical?"borderRightWidth":"borderTopWidth"]=ht(e.thickness)),l});return ut(()=>{const l=L("hr",{class:Ie([{"v-divider":!0,"v-divider--inset":e.inset,"v-divider--vertical":e.vertical},s.value,i.value,e.class]),style:Qe([a.value,o.value,{"--v-border-opacity":e.opacity},e.style]),"aria-orientation":!n.role||n.role==="separator"?e.vertical?"vertical":"horizontal":void 0,role:`${n.role||"separator"}`},null);return r.default?L("div",{class:Ie(["v-divider__wrapper",{"v-divider__wrapper--vertical":e.vertical,"v-divider__wrapper--inset":e.inset}])},[l,L("div",{class:"v-divider__content"},[r.default()]),l]):l}),{}}}),Aee=He({fluid:{type:Boolean,default:!1},...At(),...ms(),...rn()},"VContainer"),dn=nt()({name:"VContainer",props:Aee(),setup(e,t){let{slots:n}=t;const{rtlClasses:r}=Jr(),{dimensionStyles:s}=vs(e);return ut(()=>S(e.tag,{class:Ie(["v-container",{"v-container--fluid":e.fluid},r.value,e.class]),style:Qe([s.value,e.style])},n)),{}}}),Z4=ey.reduce((e,t)=>
vendor: 7,211 bytes, line 23
23(e[t]={type:[Boolean,String,Number],default:!1},e),{}),J4=ey.reduce((e,t)=>{const n="offset"+hi(t);return e[n]={type:[String,Number],default:null},e},{}),Q4=ey.reduce((e,t)=>{const n="order"+hi(t);return e[n]={type:[String,Number],default:null},e},{}),lk={col:Object.keys(Z4),offset:Object.keys(J4),order:Object.keys(Q4)};function kee(e,t,n){let r=e;if(!(n==null||n===!1)){if(t){const s=t.replace(e,"");r+=`-${s}`}return e==="col"&&(r="v-"+r),e==="col"&&(n===""||n===!0)||(r+=`-${n}`),r.toLowerCase()}}const Iee=["auto","start","end","center","baseline","stretch"],Lee=He({cols:{type:[Boolean,String,Number],default:!1},...Z4,offset:{type:[String,Number],default:null},...J4,order:{type:[String,Number],default:null},...Q4,alignSelf:{type:String,default:null,validator:e=>Iee.includes(e)},...At(),...rn()},"VCol"),oi=nt()({name:"VCol",props:Lee(),setup(e,t){let{slots:n}=t;const r=F(()=>{const s=[];let i;for(i in lk)lk[i].forEach(a=>{const l=e[a],u=kee(i,a,l);u&&s.push(u)});const o=s.some(a=>a.startsWith("v-col-"));return s.push({"v-col":!o||!e.cols,[`v-col-${e.cols}`]:e.cols,[`offset-${e.offset}`]:e.offset,[`order-${e.order}`]:e.order,[`align-self-${e.alignSelf}`]:e.alignSelf}),s});return()=>Dt(e.tag,{class:[r.value,e.class],style:e.style},n.default?.())}}),DS=["start","end","center"],e8=["space-between","space-around","space-evenly"];function PS(e,t){return ey.reduce((n,r)=>{const s=e+hi(r);return n[s]=t(),n},{})}const Dee=[...DS,"baseline","stretch"],t8=e=>Dee.includes(e),n8=PS("align",()=>({type:String,default:null,validator:t8})),Pee=[...DS,...e8],r8=e=>Pee.includes(e),s8=PS("justify",()=>({type:String,default:null,validator:r8})),Ree=[...DS,...e8,"stretch"],i8=e=>Ree.includes(e),o8=PS("alignContent",()=>({type:String,default:null,validator:i8})),uk={align:Object.keys(n8),justify:Object.keys(s8),alignContent:Object.keys(o8)},Oee={align:"align",justify:"justify",alignContent:"align-content"};function $ee(e,t,n){let r=Oee[e];if(n!=null){if(t){const s=t.replace(e,"");r+=`-${s}`}return r+=`-${n}`,r.toLowerCase()}}const Mee=He({dense:Boolean,noGutters:Boolean,align:{type:String,default:null,validator:t8},...n8,justify:{type:String,default:null,validator:r8},...s8,alignContent:{type:String,default:null,validator:i8},...o8,...At(),...rn()},"VRow"),ba=nt()({name:"VRow",props:Mee(),setup(e,t){let{slots:n}=t;const r=F(()=>{const s=[];let i;for(i in uk)uk[i].forEach(o=>{const a=e[o],l=$ee(i,o,a);l&&s.push(l)});return s.push({"v-row--no-gutters":e.noGutters,"v-row--dense":e.dense,[`align-${e.align}`]:e.align,[`justify-${e.justify}`]:e.justify,[`align-content-${e.alignContent}`]:e.alignContent}),s});return()=>Dt(e.tag,{class:["v-row",r.value,e.class],style:e.style},n.default?.())}}),Mt=Qg("v-spacer","div","VSpacer"),s2=Symbol.for("vuetify:list");function a8(){let{filterable:e}=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{filterable:!1};const t=mt(s2,{filterable:!1,hasPrepend:Ze(!1),updateHasPrepend:()=>null}),n={filterable:t.filterable||e,hasPrepend:Ze(!1),updateHasPrepend:r=>{r&&(n.hasPrepend.value=r)}};return Cn(s2,n),t}function l8(){return mt(s2,null)}const RS=e=>{const t={activate:n=>{let{id:r,value:s,activated:i}=n;return r=yt(r),e&&!s&&i.size===1&&i.has(r)||(s?i.add(r):i.delete(r)),i},in:(n,r,s)=>{let i=new Set;if(n!=null)for(const o of As(n))i=t.activate({id:o,value:!0,activated:new Set(i),children:r,parents:s});return i},out:n=>Array.from(n)};return t},u8=e=>{const t=RS(e);return{activate:r=>{let{activated:s,id:i,...o}=r;i=yt(i);const a=s.has(i)?new Set([i]):new Set;return t.activate({...o,id:i,activated:a})},in:(r,s,i)=>{let o=new Set;if(r!=null){const a=As(r);a.length&&(o=t.in(a.slice(0,1),s,i))}return o},out:(r,s,i)=>t.out(r,s,i)}},Fee=e=>{const t=RS(e);return{activate:r=>{let{id:s,activated:i,children:o,...a}=r;return s=yt(s),o.has(s)?i:t.activate({id:s,activated:i,children:o,...a})},in:t.in,out:t.out}},Bee=e=>{const t=u8(e);return{activate:r=>{let{id:s,activated:i,children:o,...a}=r;return s=yt(s),o.has(s)?i:t.activate({id:s,activated:i,children:o,...a})},in:t.in,out:t.out}},Nee={open:e=>{let{id:t,value:n,opened:r,parents:s}=e;if(n){const i=new Set;i.add(t);let o=s.get(t);for(;o!=null;)i.add(o),o=s.get(o);return i}else return r.delete(t),r},select:()=>null},c8={open:e=>{let{id:t,value:n,opened:r,parents:s}=e;if(n){let i=s.get(t);for(r.add(t);i!=null&&i!==t;)r.add(i),i=s.get(i);return r}else r.delete(t);return r},select:()=>null},Vee={open:c8.open,select:e=>{let{id:t,value:n,opened:r,parents:s}=e;if(!n)return r;const i=[];let o=s.get(t);for(;o!=null;)i.push(o),o=s.get(o);return new Set(i)}},OS=e=>{const t={select:n=>{let{id:r,value:s,selected:i}=n;if(r=yt(r),e&&!s){const o=Array.from(i.entries()).reduce((a,l)=>{let[u,c]=l;return c==="on"&&a.push(u),a},[]);if(o.length===1&&o[0]===r)return i}return i.set(r,s?"on":"off"),i},in:(n,r,s,i)=>{const o=new Map;for(const a of n||[])t.select({id:a,value:!0,selected:o,children:r,parents:s,disabled:i});return o},out:n=>{const r=[];for(const[s,i]of n.entries())i==="on"&&r.push(s);return r}};return t},d8=e=>{const t=OS(e);return{select:r=>{let{selected:s,id:i,...o}=r;i=yt(i);const a=s.has(i)?new Map([[i,s.get(i)]]):new Map;return t.select({...o,id:i,selected:a})},in:(r,s,i,o)=>r?.length?t.in(r.slice(0,1),s,i,o):new Map,out:(r,s,i)=>t.out(r,s,i)}},Uee=e=>{const t=OS(e);return{select:r=>{let{id:s,selected:i,children:o,...a}=r;return s=yt(s),o.has(s)?i:t.select({id:s,selected:i,children:o,...a})},in:t.in,out:t.out}},jee=e=>{const t=d8(e);return{select:r=>{let{id:s,selected:i,children:o,...a}=r;return s=yt(s),o.has(s)?i:t.select({id:s,selected:i,children:o,...a})},in:t.in,out:t.out}},f8=e=>{const t={select:n=>{let{id:r,value:s,selected:i,children:o,parents:a,disabled:l}=n;r=yt(r);const u=new Map(i),c=[r];for(;c.length;){const f=c.shift();l.has(f)||i.set(yt(f),s?"on":"off"),o.has(f)&&c.push(...o.get(f))}let d=yt(a.get(r));for(;d;){let f=!0,h=!0;for(const p of o.get(d)){const m=yt(p);if(!l.has(m)&&(i.get(m)!=="on"&&(f=!1),i.has(m)&&i.get(m)!=="off"&&(h=!1),!f&&!h))break}i.set(d,f?"on":h?"off":"indeterminate"),d=yt(a.get(d))}return e&&!s&&Array.from(i.entries()).reduce((h,p)=>{let[m,v]=p;return v==="on"&&h.push(m),h},[]).length===0?u:i},in:(n,r,s,i)=>{let o=new Map;for(const a of n||[])o=t.select({id:a,value:!0,selected:o,children:r,parents:s,disabled:i});return o},out:(n,r)=>{const s=[];for(const[i,o]of n.entries())o==="on"&&!r.has(i)&&s.push(i);return s}};return t},zee=e=>{const t=f8(e);return{select:t.select,in:t.in,out:(r,s,i)=>{const o=[];for(const[a,l]of r.entries())if(l==="on"){if(i.has(a)){const u=i.get(a);if(r.get(u)==="on")continue}o.push(a)}return o}}},eh=Symbol.for("vuetify:nested"),h8={id:Ze(),root:{register:()=>null,unregister:()=>null,children:M(new Map),parents:M(new Map),disabled:M(new Set),open:()=>null,openOnSelect:()=>null,activate:()=>null,select:()=>null,activatable:M(!1),selectable:M(!1),opened:M(new Set),activated:M(new Set),selected:M(new Map),selectedValues:M([]),getPath:()=>[]}},Hee=He({activatable:Boolean,selectable:Boolean,activeStrategy:[String,Function,Object],selectStrategy:[String,Function,Object],openStrategy:[String,Object],opened:null,activated:null,selected:null,mandatory:Boolean},"nested"),Gee=e=>{let t=!1;
23const n=Ze(new Map),r=Ze(new Map),s=Ze(new Set),i=Qt(e,"opened",e.opened,v=>new Set(Array.isArray(v)?v.map(x=>yt(x)):v),v=>[...v.values()]),o=F(()=>{if(typeof e.activeStrategy=="object")return e.activeStrategy;if(typeof e.activeStrategy=="function")return e.activeStrategy(e.mandatory);switch(e.activeStrategy){case"leaf":return Fee(e.mandatory);case"single-leaf":return Bee(e.mandatory);case"independent":return RS(e.mandatory);case"single-independent":default:return u8(e.mandatory)}}),a=F(()=>{if(typeof e.selectStrategy=="object")return e.selectStrategy;if(typeof e.selectStrategy=="function")return e.selectStrategy(e.mandatory);switch(e.selectStrategy){case"single-leaf":return jee(e.mandatory);case"leaf":return Uee(e.mandatory);case"independent":return OS(e.mandatory);case"single-independent":return d8(e.mandatory);case"trunk":return zee(e.mandatory);case"classic":default:return f8(e.mandatory)}}),l=F(()=>{if(typeof e.openStrategy=="object")return e.openStrategy;switch(e.openStrategy){case"list":return Vee;case"single":return Nee;case"multiple":default:return c8}}),u=Qt(e,"activated",e.activated,v=>o.value.in(v,n.value,r.value),v=>o.value.out(v,n.value,r.value)),c=Qt(e,"selected",e.selected,v=>a.value.in(v,n.value,r.value,s.value),v=>a.value.out(v,n.value,r.value));cn(()=>{t=!0});function d(v){const x=[];let g=yt(v);for(;g!==void 0;)x.unshift(g),g=r.value.get(g);return x}const f=fr("nested"),h=new Set,p=GX(()=>{tt(()=>{n.value=new Map(n.value),r.value=new Map(r.value)})},100),m={id:Ze(),root:{opened:i,activatable:Ae(()=>e.activatable),selectable:Ae(()=>e.selectable),activated:u,selected:c,selectedValues:F(()=>{const v=[];for(const[x,g]of c.value.entries())g==="on"&&v.push(x);return v}),register:(v,x,g,y)=>{if(h.has(v)){d(v).map(String).join(" -> "),d(x).concat(v).map(String).join(" -> ");return}else h.add(v);x&&v!==x&&r.value.set(v,x),g&&s.value.add(v),y&&n.value.set(v,[]),x!=null&&n.value.set(x,[...n.value.get(x)||[],v]),p()},unregister:v=>{if(t)return;h.delete(v),n.value.delete(v),s.value.delete(v);const x=r.value.get(v);if(x){const g=n.value.get(x)??[];n.value.set(x,g.filter(y=>y!==v))}r.value.delete(v),p()},open:(v,x,g)=>{f.emit("click:open",{id:v,value:x,path:d(v),event:g});const y=l.value.open({id:v,value:x,opened:new Set(i.value),children:n.value,parents:r.value,event:g});y&&(i.value=y)},openOnSelect:(v,x,g)=>{const y=l.value.select({id:v,value:x,selected:new Map(c.value),opened:new Set(i.value),children:n.value,parents:r.value,event:g});y&&(i.value=y)},select:(v,x,g)=>{f.emit("click:select",{id:v,value:x,path:d(v),event:g});const y=a.value.select({id:v,value:x,selected:new Map(c.value),children:n.value,parents:r.value,disabled:s.value,event:g});y&&(c.value=y),m.root.openOnSelect(v,x,g)},activate:(v,x,g)=>{if(!e.activatable)return m.root.select(v,!0,g);f.emit("click:activate",{id:v,value:x,path:d(v),event:g});const y=o.value.activate({id:v,value:x,activated:new Set(u.value),children:n.value,parents:r.value,event:g});if(y.size!==u.value.size)u.value=y;else{for(const _ of y)if(!u.value.has(_)){u.value=y;return}for(const _ of u.value)if(!y.has(_)){u.value=y;return}}},children:n,parents:r,disabled:s,getPath:d}};return Cn(eh,m),m.root},p8=(e,t,n)=>{const r=mt(eh,h8),s=Symbol("nested item"),i=F(()=>{const a=yt(qr(e));return a!==void 0?a:s}),o={...r,id:i,open:(a,l)=>r.root.open(i.value,a,l),openOnSelect:(a,l)=>r.root.openOnSelect(i.value,a,l),isOpen:F(()=>r.root.opened.value.has(i.value)),parent:F(()=>r.root.parents.value.get(i.value)),activate:(a,l)=>r.root.activate(i.value,a,l),isActivated:F(()=>r.root.activated.value.has(i.value)),select:(a,l)=>r.root.select(i.value,a,l),isSelected:F(()=>r.root.selected.value.get(i.value)==="on"),isIndeterminate:F(()=>r.root.selected.value.get(i.value)==="indeterminate"),isLeaf:F(()=>!r.root.children.value.get(i.value)),isGroupActivator:r.isGroupActivator};return Lu(()=>{r.isGroupActivator||tt(()=>{r.root.register(i.value,r.id.value,qr(t),n)})}),cn(()=>{r.isGroupActivator||r.root.unregister(i.value)}),be(i,(a,l)=>{r.isGroupActivator||(r.root.unregister(l),tt(()=>{r.root.register(a,r.id.value,qr(t),n)}))}),n&&Cn(eh,o),o},Kee=()=>{const e=mt(eh,h8);Cn(eh,{...e,isGroupActivator:!0})};function Nh(){const e=Ze(!1);return ft(()=>{window.requestAnimationFrame(()=>{e.value=!0})}),{ssrBootStyles:Ae(()=>e.value?void 0:{transition:"none !important"}),isBooted:ds(e)}}const Wee=$u({name:"VListGroupActivator",setup(e,t){let{slots:n}=t;return Kee(),()=>n.default?.()}}),qee=He({activeColor:String,baseColor:String,color:String,collapseIcon:{type:jt,default:"$collapse"},disabled:Boolean,expandIcon:{type:jt,default:"$expand"},rawId:[String,Number],prependIcon:jt,appendIcon:jt,fluid:Boolean,subgroup:Boolean,title:String,value:null,...At(),...rn()}
23,"VListGroup"),ck=nt()({name:"VListGroup",props:qee(),setup(e,t){let{slots:n}=t;const{isOpen:r,open:s,id:i}=p8(()=>e.value,()=>e.disabled,!0),o=F(()=>`v-list-group--id-${String(e.rawId??i.value)}`),a=l8(),{isBooted:l}=Nh();function u(h){["INPUT","TEXTAREA"].includes(h.target?.tagName)||s(!r.value,h)}const c=F(()=>({onClick:u,class:"v-list-group__header",id:o.value})),d=F(()=>r.value?e.collapseIcon:e.expandIcon),f=F(()=>({VListItem:{activeColor:e.activeColor,baseColor:e.baseColor,color:e.color,prependIcon:e.prependIcon||e.subgroup&&d.value,appendIcon:e.appendIcon||!e.subgroup&&d.value,title:e.title,value:e.value}}));return ut(()=>S(e.tag,{class:Ie(["v-list-group",{"v-list-group--prepend":a?.hasPrepend.value,"v-list-group--fluid":e.fluid,"v-list-group--subgroup":e.subgroup,"v-list-group--open":r.value},e.class]),style:Qe(e.style)},{default:()=>[n.activator&&S(sn,{defaults:f.value},{default:()=>[S(Wee,null,{default:()=>[n.activator({props:c.value,isOpen:r.value})]})]}),S(io,{transition:{component:dy},disabled:!l.value},{default:()=>[pn(L("div",{class:"v-list-group__items",role:"group","aria-labelledby":o.value},[n.default?.()]),[[hs,r.value]])]})]})),{isOpen:r}}}),Yee=He({opacity:[Number,String],...At(),...rn()},"VListItemSubtitle"),vm=nt()({name:"VListItemSubtitle",props:Yee(),setup(e,t){let{slots:n}=t;return ut(()=>S(e.tag,{class:Ie(["v-list-item-subtitle",e.class]),style:Qe([{"--v-list-item-subtitle-opacity":e.opacity},e.style])},n)),{}}}),lo=Qg("v-list-item-title"),Xee=He({active:{type:Boolean,default:void 0},activeClass:String,activeColor:String,appendAvatar:String,appendIcon:jt,baseColor:String,disabled:Boolean,lines:[Boolean,String],link:{type:Boolean,default:void 0},nav:Boolean,prependAvatar:String,prependIcon:jt,ripple:{type:[Boolean,Object],default:!0},slim:Boolean,subtitle:{type:[String,Number,Boolean],default:void 0},title:{type:[String,Number,Boolean],default:void 0},value:null,onClick:js(),onClickOnce:js(),...mo(),...At(),...Ps(),...ms(),...Rs(),...Tr(),...ly(),...rn(),...Dn(),...Xo({variant:"text"})},"VListItem"),Rt=nt()({name:"VListItem",directives:{vRipple:ho},props:Xee(),emits:{click:e=>!0},setup(e,t){let{attrs:n,slots:r,emit:s}=t;const i=ay(e,n),o=F(()=>e.value===void 0?i.href.value:e.value),{activate:a,isActivated:l,select:u,isOpen:c,isSelected:d,isIndeterminate:f,isGroupActivator:h,root:p,parent:m,openOnSelect:v,id:x}=p8(o,()=>e.disabled,!1),g=l8(),y=F(()=>e.active!==!1&&(e.active||i.isActive?.value||(p.activatable.value?l.value:d.value))),_=Ae(()=>e.link!==!1&&i.isLink.value),E=F(()=>!!g&&(p.selectable.value||p.activatable.value||e.value!=null)),w=F(()=>!e.disabled&&e.link!==!1&&(e.link||i.isClickable.value||E.value)),T=F(()=>g?_.value?"link":E.value?"option":"listitem":void 0),C=F(()=>{if(E.value)return p.activatable.value?l.value:p.selectable.value?d.value:y.value}),I=Ae(()=>e.rounded||e.nav),k=Ae(()=>e.color??e.activeColor),$=Ae(()=>({color:y.value?k.value??e.baseColor:e.baseColor,variant:e.variant}));be(()=>i.isActive?.value,K=>{K&&R()}),Lu(()=>{i.isActive?.value&&tt(()=>R())});function R(){m.value!=null&&p.open(m.value,!0),v(!0)}const{themeClasses:D}=ir(e),{borderClasses:O}=Yo(e),{colorClasses:B,colorStyles:U,variantClasses:N}=pd($),{densityClasses:V}=vi(e),{dimensionStyles:H}=vs(e),{elevationClasses:re}
23=gi(e),{roundedClasses:W}=Qr(I),X=Ae(()=>e.lines?`v-list-item--${e.lines}-line`:void 0),Q=Ae(()=>e.ripple!==void 0&&e.ripple&&g?.filterable?{keys:["Enter"]}:e.ripple),le=F(()=>({isActive:y.value,select:u,isOpen:c.value,isSelected:d.value,isIndeterminate:f.value}));function ve(K){s("click",K),!["INPUT","TEXTAREA"].includes(K.target?.tagName)&&w.value&&(i.navigate?.(K),!h&&(p.activatable.value?a(!l.value,K):(p.selectable.value||e.value!=null&&!_.value)&&u(!d.value,K)))}function oe(K){const ee=K.target;["INPUT","TEXTAREA"].includes(ee.tagName)||(K.key==="Enter"||K.key===" "&&!g?.filterable)&&(K.preventDefault(),K.stopPropagation(),K.target.dispatchEvent(new MouseEvent("click",K)))}return ut(()=>{const K=_.value?"a":e.tag,ee=r.title||e.title!=null,ae=r.subtitle||e.subtitle!=null,ue=!!(e.appendAvatar||e.appendIcon),Ee=!!(ue||r.append),_e=!!(e.prependAvatar||e.prependIcon),J=!!(_e||r.prepend);return g?.updateHasPrepend(J),e.activeColor&&B3("active-color",["color","base-color"]),pn(S(K,Ve(i.linkProps,{class:["v-list-item",{"v-list-item--active":y.value,"v-list-item--disabled":e.disabled,"v-list-item--link":w.value,"v-list-item--nav":e.nav,"v-list-item--prepend":!J&&g?.hasPrepend.value,"v-list-item--slim":e.slim,[`${e.activeClass}`]:e.activeClass&&y.value},D.value,O.value,B.value,V.value,re.value,X.value,W.value,N.value,e.class],style:[U.value,H.value,e.style],tabindex:w.value?g?-2:0:void 0,"aria-selected":C.value,role:T.value,onClick:ve,onKeydown:w.value&&!_.value&&oe}),{default:()=>[hd(w.value||y.value,"v-list-item"),J&&L("div",{key:"prepend",class:"v-list-item__prepend"},[r.prepend?S(sn,{key:"prepend-defaults",disabled:!_e,defaults:{VAvatar:{density:e.density,image:e.prependAvatar},VIcon:{density:e.density,icon:e.prependIcon},VListItemAction:{start:!0}}},{default:()=>[r.prepend?.(le.value)]}):L(se,null,[e.prependAvatar&&S(rr,{key:"prepend-avatar",density:e.density,image:e.prependAvatar},null),e.prependIcon&&S(de,{key:"prepend-icon",density:e.density,icon:e.prependIcon},null)]),L("div",{class:"v-list-item__spacer"},null)]),L("div",{class:"v-list-item__content","data-no-activator":""},[ee&&S(lo,{key:"title"},{default:()=>[r.title?.({title:e.title})??Z(e.title)]}),ae&&S(vm,{key:"subtitle"},{default:()=>[r.subtitle?.({subtitle:e.subtitle})??Z(e.subtitle)]}),r.default?.(le.value)]),Ee&&L("div",{key:"append",class:"v-list-item__append"},[r.append?S(sn,{key:"append-defaults",disabled:!ue,defaults:{VAvatar:{density:e.density,image:e.appendAvatar},VIcon:{density:e.density,icon:e.appendIcon},VListItemAction:{end:!0}}},{default:()=>[r.append?.(le.value)]}):L(se,null,[e.appendIcon&&S(de,{key:"append-icon",density:e.density,icon:e.appendIcon},null),e.appendAvatar&&S(rr,{key:"append-avatar",density:e.density,image:e.appendAvatar},null)]),L("div",{class:"v-list-item__spacer"},null)])]}),[[ho,w.value&&Q.value]])}),{activate:a,isActivated:l,isGroupActivator:h,isSelected:d,list:g,select:u,root:p,id:x,link:i}}}),Zee=He({color:String,inset:Boolean,sticky:Boolean,title:String,...At(),...rn()},"VListSubheader"),py=nt()({name:"VListSubheader",props:Zee(),setup(e,t){let{slots:n}=t;const{textColorClasses:r,textColorStyles:s}=Gs(()=>e.color);return ut(()=>{const i=!!(n.default||e.title);return S(e.tag,{class:Ie(["v-list-subheader",{"v-list-subheader--inset":e.inset,"v-list-subheader--sticky":e.sticky},r.value,e.class]),style:Qe([{textColorStyles:s},e.style])},{default:()=>[i&&L("div",{class:"v-list-subheader__text"},[n.default?.()??e.title])]})}),{}}}),Jee=He({items:Array,returnObject:Boolean},"VListChildren"),m8=nt()({name:"VListChildren",props:Jee(),setup(e,t){let{slots:n}=t;return a8(),()=>n.default?.()??e.items?.map(r=>{let{children:s,props:i,type:o,raw:a}=r;if(o==="divider")return n.divider?.({props:i})??S(zt,i,null);if(o==="subheader")return n.subheader?.({props:i})??S(py,i,null);const l={subtitle:n.subtitle?c=>n.subtitle?.({...c,item:a}):void 0,prepend:n.prepend?c=>n.prepend?.({...c,item:a}):void 0,append:n.append?c=>n.append?.({...c,item:a}):void 0,title:n.title?c=>n.title?.({...c,item:a}):void 0},u=ck.filterProps(i);return s?S(ck,Ve(u,{value:e.returnObject?a:i?.value,rawId:i?.value}),{activator:c=>{let{props:d}=c;const f=Ve(i,d,{value:e.returnObject?a:i.value});return n.header?n.header({props:f}):S(Rt,f,l)},default:()=>S(m8,{items:s,returnObject:e.returnObject},n)}):n.item?n.item({props:i}):S(Rt,Ve(i,{value:e.returnObject?a:i.value}),l)})}}),v8=He({items:{type:Array,default:()=>[]},itemTitle:{type:[String,Array,Function],default:"title"},itemValue:{type:[String,Array,Function],default:"value"},itemChildren:{type:[Boolean,String,Array,Function],default:"children"},itemProps:{type:[Boolean,String,Array,Function],default:"props"},itemType:{type:[Boolean,String,Array,Function],default:"type"},returnObject:Boolean,valueComparator:Function},"list-items"),Qee=new Set(["item","divider","subheader"]);function ro(e,t){const n=Ii(t,e.itemTitle,t),r=Ii(t,e.itemValue,n),s=Ii(t,e.itemChildren),i=e.itemProps===!0?typeof t=="object"&&t!=null&&!Array.isArray(t)?"children"in t?ps(t,["children"]):t:void 0:Ii(t,e.itemProps);let o=Ii(t,e.itemType,"item");
23Qee.has(o)||(o="item");const a={title:n,value:r,...i};return{type:o,title:String(a.title??""),value:a.value,props:a,children:o==="item"&&Array.isArray(s)?g8(e,s):void 0,raw:t}}ro.neededProps=["itemTitle","itemValue","itemChildren","itemProps","itemType"];function g8(e,t){const n=cd(e,ro.neededProps),r=[];for(const s of t)r.push(ro(n,s));return r}function y8(e){const t=F(()=>g8(e,e.items)),n=F(()=>t.value.some(a=>a.value===null)),r=Ze(new Map),s=Ze([]);zn(()=>{const a=t.value,l=new Map,u=[];for(let c=0;c<a.length;c++){const d=a[c];if(xu(d.value)||d.value===null){let f=l.get(d.value);f||(f=[],l.set(d.value,f)),f.push(d)}else u.push(d)}r.value=l,s.value=u});function i(a){const l=r.value,u=t.value,c=s.value,d=n.value,f=e.returnObject,h=!!e.valueComparator,p=e.valueComparator||zs,m=cd(e,ro.neededProps),v=[];e:for(const x of a){if(!d&&x===null)continue;if(f&&typeof x=="string"){v.push(ro(m,x));continue}const g=l.get(x);if(h||!g){for(const y of h?u:c)if(p(x,y.value)){v.push(y);continue e}v.push(ro(m,x));continue}v.push(...g)}return v}function o(a){return e.returnObject?a.map(l=>{let{raw:u}=l;return u}):a.map(l=>{let{value:u}=l;return u})}return{items:t,transformIn:i,transformOut:o}}const ete=new Set(["item","divider","subheader"]);function tte(e,t){const n=xu(t)?t:Ii(t,e.itemTitle),r=xu(t)?t:Ii(t,e.itemValue,void 0),s=Ii(t,e.itemChildren),i=e.itemProps===!0?ps(t,["children"]):Ii(t,e.itemProps);let o=Ii(t,e.itemType,"item");ete.has(o)||(o="item");const a={title:n,value:r,...i};return{type:o,title:a.title,value:a.value,props:a,children:o==="item"&&s?x8(e,s):void 0,raw:t}}function x8(e,t){const n=[];for(const r of t)n.push(tte(e,r));return n}function nte(e){return{items:F(()=>x8(e,e.items))}}const rte=He({baseColor:String,activeColor:String,activeClass:String,bgColor:String,disabled:Boolean,filterable:Boolean,expandIcon:jt,collapseIcon:jt,lines:{type:[Boolean,String],default:"one"},slim:Boolean,nav:Boolean,"onClick:open":js(),"onClick:select":js(),"onUpdate:opened":js(),...Hee({selectStrategy:"single-leaf",openStrategy:"list"}),...mo(),...At(),...Ps(),...ms(),...Rs(),...v8(),...Tr(),...rn(),...Dn(),...Xo({variant:"text"})},"VList"),vr=nt()({name:"VList",props:rte(),emits:{"update:selected":e=>!0,"update:activated":e=>!0,"update:opened":e=>!0,"click:open":e=>!0,"click:activate":e=>!0,"click:select":e=>!0},setup(e,t){let{slots:n}=t;const{items:r}=nte(e),{themeClasses:s}=ir(e),{backgroundColorClasses:i,backgroundColorStyles:o}=_r(()=>e.bgColor),{borderClasses:a}=Yo(e),{densityClasses:l}=vi(e),{dimensionStyles:u}=vs(e),{elevationClasses:c}
23=gi(e),{roundedClasses:d}=Qr(e),{children:f,open:h,parents:p,select:m,getPath:v}=Gee(e),x=Ae(()=>e.lines?`v-list--${e.lines}-line`:void 0),g=Ae(()=>e.activeColor),y=Ae(()=>e.baseColor),_=Ae(()=>e.color),E=Ae(()=>e.selectable||e.activatable);a8({filterable:e.filterable}),Ni({VListGroup:{activeColor:g,baseColor:y,color:_,expandIcon:Ae(()=>e.expandIcon),collapseIcon:Ae(()=>e.collapseIcon)},VListItem:{activeClass:Ae(()=>e.activeClass),activeColor:g,baseColor:y,color:_,density:Ae(()=>e.density),disabled:Ae(()=>e.disabled),lines:Ae(()=>e.lines),nav:Ae(()=>e.nav),slim:Ae(()=>e.slim),variant:Ae(()=>e.variant)}});const w=Ze(!1),T=M();function C(O){w.value=!0}function I(O){w.value=!1}function k(O){!w.value&&!(O.relatedTarget&&T.value?.contains(O.relatedTarget))&&D()}function $(O){const B=O.target;if(!(!T.value||B.tagName==="INPUT"&&["Home","End"].includes(O.key)||B.tagName==="TEXTAREA")){if(O.key==="ArrowDown")D("next");else if(O.key==="ArrowUp")D("prev");else if(O.key==="Home")D("first");else if(O.key==="End")D("last");else return;O.preventDefault()}}function R(O){w.value=!0}function D(O){if(T.value)return gf(T.value,O)}return ut(()=>S(e.tag,{ref:T,class:Ie(["v-list",{"v-list--disabled":e.disabled,"v-list--nav":e.nav,"v-list--slim":e.slim},s.value,i.value,a.value,l.value,c.value,x.value,d.value,e.class]),style:Qe([o.value,u.value,e.style]),tabindex:e.disabled?-1:0,role:E.value?"listbox":"list","aria-activedescendant":void 0,onFocusin:C,onFocusout:I,onFocus:k,onKeydown:$,onMousedown:R},{default:()=>[S(m8,{items:r.value,returnObject:e.returnObject},n)]})),{open:h,select:m,focus:D,children:f,parents:p,getPath:v}}}),ste={class:"category-content"},ite={class:"flex items-center justify-between px-4 py-2 border-b sticky top-0 z-30 bg-category",style:{height:"48px"}},ote={class:"logo-section flex items-center gap-2 text-white"},ate={class:"logo-title flex flex-col leading-tight"},lte={class:"font-bold text-body"},ute={class:"text-sm opacity-80 font-bold -mt-[2px]"},cte={class:"flex items-center gap-3 text-white"},dte={class:"nav-icons flex items-center gap-3 opacity-90"};const fte={key:0,class:"px-4 pb-2"},hte=20,Vh=ke({__name:"CategoryDialog",props:{modelValue:{type:Boolean,default:void 0}},emits:["update:modelValue","select"],setup(e,{emit:t}){const n=e,r=t,s=M(!1),i=M(0),o=M([]),a=M(!1),l=M([]),u=Tt(),c=It(),{status:d,isLogin:f}=Ct();M(!1);const h=M(""),p=F(()=>{const T=w();return h.value?T.filter(C=>C.title.includes(h.value)):T}),m=F(()=>Vo()?.app||"YJ"),v=F(()=>location.hostname.replace(/^(www|m)\./ig,"")),x=F(()=>wl()),g=F(()=>[{icon:"ph:house-fill",to:c.html("index.html"),text:"首页"},{icon:"ph:magnifying-glass-fill",to:c.html("search.html"),text:"搜索"},{icon:"ph:book-bookmark-fill",to:"/user/history",text:"历史"}]);async function y(){try{const{post:T}=it(),C=await T.tag();C?.list&&Array.isArray(C.list)&&(o.value=[{name:"首页",url:"/html/post"},...C.list.map(I=>({name:I.name.trim()}))])}catch{}}function _(){const T=[{title:"社区"},...o.value.map(I=>({title:I.name,url:I.url||`/html/post/${I.name||"_"}`}))],C=Object.values(u3()||{});vu()?l.value=[T,...C]:l.value=[...C],console.log(l)}be(s,async T=>{r("update:modelValue",T),T&&!a.value&&(await y(),_(),a.value=!0)}),be(()=>n.modelValue,T=>{typeof T=="boolean"&&(s.value=T)});function E(T){s.value=!1,T.url&&(/^http/.test(T.url)?window.open(T.url,"_blank"):u.replace(T.url))}function w(){return i.value===0&&vu()?o.value.map(C=>({title:C.name,url:C.url||`/html/post/${C.name.trim()||"_"}`})):(l.value[i.value]||[]).slice(1)}return(T,C)=>{const I=Mi("RouterLink");return P(),q(zo,{modelValue:s.value,"onUpdate:modelValue":C[2]||(C[2]=k=>s.value=k),activator:"activator",scrollable:"",transition:"slide-from-left","content-class":"category-drawer"},{activator:A(({props:k})=>[Ht(T.$slots,"activator",Ks(pi(k)))]),default:A(()=>[L("div",ste,[L("div",ite,[L("div",ote,[S(Xr,{src:b(x),width:"32",height:"32",contain:"",class:"logo -ml-2"},null,8,["src"]),L("div",ate,[L("span",lte,Z(b(m)),1),L("span",ute,Z(b(v)),1)])]),S(Mt),L("div",cte,[L("div",dte,[te("",!0)]),S(ce,{class:"min-w-0 bg-transparent -mx-2",color:"white",icon:"",variant:"text",onClick:C[0]||(C[0]=k=>s.value=!1)},{default:A(()=>[S(de,null,{default:A(()=>[...C[3]||(C[3]=[z("mdi-close",-1)])]),_:1})]),_:1})])]),S($e,{class:"w-full h-full flex flex-row rounded-none relative",elevation:"8"},{default:A(()=>[S(vr,{class:"w-3/10 md:w-1/4 h-full rounded-none py-0",style:{background:"var(--v-theme-surface)"}},{default:A(()=>[(P(!0),j(se,null,Fe(l.value,(k,$)=>(P(),q(Rt,{key:$,active:i.value===$,color:i.value===$?"primary":void 0,class:"cursor-pointer font-bold text-base",style:{"min-height":"56px"},onClick:R=>i.value=$},Sh({default:A(()=>[S(lo,null,{default:A(()=>
23[z(Z(k[0]?.title),1)]),_:2},1024)]),_:2},[i.value===$?{name:"prepend",fn:A(()=>[C[4]||(C[4]=L("div",{class:"w-1 h-6 bg-primary rounded-r mr-2"},null,-1))]),key:"0"}:void 0]),1032,["active","color","onClick"]))),128))]),_:1}),S(zt,{vertical:""}),S(vr,{class:"flex-1 h-full rounded-none py-2",color:"background",style:{"overflow-x":"hidden"}},{default:A(()=>[w().length>hte?(P(),j("div",fte,[S(St,{modelValue:h.value,"onUpdate:modelValue":C[1]||(C[1]=k=>h.value=k),density:"compact",variant:"solo",placeholder:"输入分类名筛选","hide-details":"",clearable:"",class:"w-full rounded-lg shadow-sm bg-surface","prepend-inner-icon":"mdi-magnify",color:"primary",style:{"min-height":"36px"}},null,8,["modelValue"]),C[5]||(C[5]=L("div",{class:"h-px bg-gray-200 mt-2"},null,-1))])):te("",!0),S(ba,{dense:""},{default:A(()=>[(P(!0),j(se,null,Fe(b(p),k=>(P(),q(oi,{key:k.title,cols:"6",class:"p-0"},{default:A(()=>[S(Rt,{class:"cursor-pointer my-2 rounded-lg",style:{"min-height":"40px"},onClick:$=>E(k)},{default:A(()=>[S(lo,{class:"text-center w-full"},{default:A(()=>[z(Z(k.title),1)]),_:2},1024)]),_:2},1032,["onClick"])]),_:2},1024))),128))]),_:1})]),_:1})]),_:1})])]),_:3},8,["modelValue"])}}}),pte=Object.freeze(Object.defineProperty({__proto__:null,default:Vh},Symbol.toStringTag,{value:"Module"})),mte={class:"header-container"},vte={class:"logo-section"},gte={class:"logo-title"},yte={class:"nav-section"},xte={class:"tip-url hidden-mobile"},bte={class:"nav-icons"},_te={class:"nav-text"},Ste=["onClick"],Ete={class:"nav-text"},xd={__name:"HeaderTop",setup(e){const t=F(()=>Vo()?.app||"YJ"),n=F(()=>Rr()||""),r=F(()=>location.hostname.replace(/^(www|m)\./ig,"")),s=F(()=>(On()?.mail?.dz||"").toUpperCase()),{status:i}=Ct(),o=M(!1),a=M(!1),l=It(),u=dS();Tt();const c=F(()=>[{icon:"ph:house-fill",to:l.html("index.html"),text:"首页"},n.value!="hl"?{icon:"ph:camera-fill",to:"/html/post",text:"社区"}:!1,{icon:"ph:magnifying-glass-fill",to:l.html("search.html"),text:"搜索"},n.value!="hl"?!1:{icon:"ph:book-bookmark-fill",to:"/user/history",text:"历史"},n.value=="hl"?{icon:"ph:user-fill",to:"/user",text:"我的"}:{icon:"ph:list-bold",text:"导航",onClick:()=>{a.value=!0}}].filter(Boolean)),d=()=>u(0);return(f,h)=>{const p=vS,m=Mi("RouterLink"),v=gS,x=Cr,g=Vh;return P(),j(se,null,[h[2]||(h[2]=L("div",{style:{height:"58px"}},null,-1)),S($e,{key:"header-card",class:"rounded-none header-card fixed left-0 right-0 top-0",style:{"z-index":"19"}},{default:A(()=>[L("div",mte,[L("div",vte,[S(p,{size:48,onClick:d}),L("div",gte,[S(m,{to:b(l).html("index.html"),variant:"plain",class:"name"},{default:A(()=>[z(Z(b(t)),1)]),_:1},8,["to"]),S(m,{to:b(l).html("index.html"),variant:"plain",class:"domain"},{default:A(()=>[z(Z(b(r)),1)]),_:1},8,["to"])])]),S(Mt),L("div",yte,[L("span",xte,"发送任意邮件:"+Z(b(s))+",获取最新域名",1),L("div",bte,[(P(!0),j(se,null,Fe(b(c),y=>(P(),j(se,{key:y.icon},[y.to?(P(),q(m,{key:0,to:y.to,variant:"plain",class:"nav-icon",stack:"",onClick:y.onClick},{default:A(()=>[S(v,{name:y.icon},null,8,["name"]),L("span",_te,Z(y.text),1)]),_:2},1032,["to","onClick"])):(P(),j("div",{key:1,class:"nav-icon",stack:"",onClick:y.onClick},[S(v,{name:y.icon},null,8,["name"]),L("span",Ete,Z(y.text),1)],8,Ste))],64))),128))])])])]),_:1}),S(x,{modelValue:b(o),"onUpdate:modelValue":h[0]||(h[0]=y=>Ce(o)?o.value=y:null),"initial-mode":"register"},null,8,["modelValue"]),S(g,{modelValue:b(a),"onUpdate:modelValue":h[1]||(h[1]=y=>Ce(a)?a.value=y:null)},null,8,["modelValue"])],64)}}},wte=Object.freeze(Object.defineProperty({__proto__:null,default:xd},Symbol.toStringTag,{value:"Module"})),Tte={key:0,class:"relative banner-swipe-list"},Cte=["href"],my={__name:"BannerSwipeList",props:{page:String,place:String,hideClose:{type:Boolean,default:!1},hidePagination:{type:Boolean,default:!1},index:{type:Number,default:0}},setup(e){const t=e;typeof window._showBannerSwiper>"u"&&(window._showBannerSwiper=!0);const n=M(window._showBannerSwiper),r=F(()=>n.value),s=()=>{window._showBannerSwiper=!1,n.value=!1},i=F(()=>fo(t.page).filter(u=>u.place===t.place)[0]?.ads||[]),o=M(0);be([()=>t.index,i],()=>{const u=i.value.length;if(t.index===-1){o.value=u>0?Math.floor(Math.random()*u):0;return}const c=typeof t.index=="number"?t.index:0;u>0?o.value=Math.min(Math.max(c,0),u-1):o.value=0},{immediate:!0});const l=F(()=>`swipe-${t.page}-${t.place}-${o.value}`);return(u,c)=>{const d=F2,f=B2;return b(r)?(P(),j("div",Tte,[(P(),q(f,{key:b(l),"initial-slide":b
23(o),keepalive:"",class:"w-full h-98",loop:"",pagination:!e.hidePagination,autoplay:{delay:5e3,disableOnInteraction:!1},modules:[b(gM),b(IL)]},{default:A(()=>[(P(!0),j(se,null,Fe(b(i),(h,p)=>(P(),q(d,{key:p},{default:A(()=>[L("a",{href:h.url,target:"_blank",new:"1"},[S(Xr,{src:h.img,"aspect-ratio":12/5},null,8,["src"])],8,Cte)]),_:2},1024))),128))]),_:1},8,["initial-slide","pagination","modules"])),t?.hideClose?te("",!0):(P(),q(ce,{key:0,class:"top-2 right-2 absolute close p-2",border:"",variant:"flat",icon:"mdi-close",onClick:s}))])):te("",!0)}}},Ate=Object.freeze(Object.defineProperty({__proto__:null,default:my},Symbol.toStringTag,{value:"Module"})),kte={key:0,class:"banner-notice-wrap"},Ite={class:"marquee-viewport"},Lte={class:"marquee-track"},Dte=["aria-hidden"],Pte=ke({__name:"BannerNotice",setup(e){const t=On(),n=F(()=>t?.noticeAd||""),r=F(()=>n.value!=null&&n.value.text!=null&&n.value.text!=""),s=F(()=>n.value.text),i=F(()=>{const o=n.value?.url??"mailto:[email protected]";return/^(https?:\/\/|mailto:|tel:)/i.test(o)?o:`https://${o}`});return(o,a)=>r.value?(P(),j("div",kte,[S(ce,{href:i.value,target:"_blank",variant:"text",class:"banner-notice"},{default:A(()=>[S(de,{icon:"mdi:bell",size:25,color:"primary",class:"banner-notice__icon"}),L("div",Ite,[L("div",Lte,[(P(),j(se,null,Fe(2,l=>L("span",{key:l,class:"marquee-item","aria-hidden":l===2?"true":void 0},"  "+Z(s.value),9,Dte)),64))])])]),_:1},8,["href"])])):te("",!0)}}),b8=vt(Pte,[["__scopeId","data-v-c1ed9dbd"]]),Rte=Object.freeze(Object.defineProperty({__proto__:null,default:b8},Symbol.toStringTag,{value:"Module"})),Ote=["href"],$te=["href"],Mte=["src"],dk="背有错再粱紧脾池高,。 娱夺护殊井畜浇悟死置半碑勿折,。 乖嘱眨研常弓削罢配价兼垦汇,。 员负摧冤宏令存哪德粪裳苗腐哲帜,。 伯申顽葱由坝薪股乙亦干秘,。 油刺醋艳写眠记幕辜爸要睬灯帐没虽龟乘之忍尖谎忙,。 牙赤柿抚棵余守爆丹针裙市寻俘",$S={__name:"BannerList",props:{page:String,place:String},setup(e){const t=()=>{const h=new Date,p=`${h.getFullYear()}${h.getMonth()}${h.getDate()}`,m="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ",v=8;let x="";for(let g=0;g<v;g++){const y=(Number(p)+g*13)%m.length;x+=m[y]}return x},n=["section","div","article","p"][Math.floor(Math.random()*4)],r=t(),s=t(),i=e,o=F(()=>/(MQQBrowser|UCBrowser|baidu|quark)/i.test(navigator.userAgent)),a=h=>{let p="";for(let m=0;m<h;m++){const v=Math.floor(Math.random()*dk.length);p+=dk[v]}return p},l=M(0),u=()=>{l.value=document.querySelectorAll(".v-main")[0].clientWidth||document.documentElement.clientWidth||document.body.clientWidth||window.innerWidth};ft(()=>{u(),window.addEventListener("resize",u)}),Er(()=>{window.removeEventListener("resize",u)}),ft(()=>{const h=document.createElement("style"),p=l.value>720?100:60;o.value?h.textContent=`
24      .${r} {
25        width: 100%;
26        margin: 0 auto;
27        overflow: hidden;
28        display: block;
29        position: relative;
30        font-size: 0;
31      }
32      .${r} img {
33        opacity: 0;
34        visibility: hidden;
35        height: ${p}px;
36        width:100%;
37      }
38      .${r} .${s} {
39        display: block;
40        z-index: 9;
41        top: 0;
42        bottom: 0;
43        position: absolute;
44        text-indent: 9999;
45        line-height: 999;
46        overflow: hidden;
47      }
48      @media (max-width: 720px) {
49        .${r} img {
50          height: 70px!important;
51          max-height: unset!important;
52        }
53      }
54    `:h.textContent=`
55      .${r} {
56        width: 100%;
57        margin: 0 auto;
58        overflow: hidden;
59        display: block;
60        position: relative;
61        font-size: 0;
62      }
63      .${r} img {
64        width: 100%;
65        max-height:100px;
66      }
67      @media (max-width: 720px) {
68        .${r} img {
69          height: ${p}px;
70        }
71      }
72    `,document.head.appendChild(h)});const c=F(()=>fo(i.page).filter(h=>h?.place===i?.place)[0]?.ads||[]),d=h=>{const p=h.target.parentNode;p&&(p.style.display="none")},f=h=>{const p=[],x=l.value/10;for(let g=0;g<10;g++)p.push({style:{left:`${g*10}%`,width:"10%",backgroundImage:`url(${h.img})`,backgroundPosition:`-${g*x}px 0`,backgroundSize:`${l.value}px 100%!important`,textIndent:-999},text:a(50)});return p};
72return(h,p)=>(P(!0),j(se,null,Fe(b(c),(m,v)=>(P(),q(hl(b(n)),{key:v,class:Ie(b(r))},{default:A(()=>[b(o)?(P(),j(se,{key:0},[S(Xr,{src:m.img,cover:"",style:Qe(b(o)?{visible:"hidden"}:void 0),onError:d},null,8,["src","style"]),(P(!0),j(se,null,Fe(f(m),(x,g)=>(P(),j("a",{key:g,href:m.url,target:"_blank",new:"1"},[L("p",{class:Ie(b(s)),style:Qe(x.style)},Z(x.text),7)],8,Ote))),128))],64)):(P(),j("a",{key:1,href:m.url,target:"_blank",style:{display:"block"},new:"1"},[L("img",{src:m.img,cover:"",onError:d},null,40,Mte)],8,$te))]),_:2},1032,["class"]))),128))}},Fte=Object.freeze(Object.defineProperty({__proto__:null,default:$S},Symbol.toStringTag,{value:"Module"})),Bte={key:0},Nte={class:"land-icons"},Vte=["href"],Ute=["src"],jte=ke({__name:"BannerIconList",props:{page:{default:"index"},place:{default:""},title:{default:"官方推荐"},activeColor:{default:"primary"},bgColor:{default:"transparent"}},setup(e){const t=e,n=F(()=>(fo(t?.page||"index")||[]).filter(s=>s?.place===t?.place)[0]?.ads||[]);return(r,s)=>b(n).length?(P(),j("div",Bte,[e.title?(P(),j("div",{key:0,class:"static-tab-header",style:Qe({backgroundColor:e.bgColor})},[L("span",{class:"static-tab",style:Qe({color:`rgb(var(--v-theme-${e.activeColor}))`})},Z(e.title),5)],4)):te("",!0),L("div",Nte,[(P(!0),j(se,null,Fe(b(n),(i,o)=>(P(),j("a",{key:o,href:i.url,class:"land-icon",target:"_blank"},[L("img",{src:i.img},null,8,Ute),L("p",null,Z(i.ext),1)],8,Vte))),128))])])):te("",!0)}}),_8=vt(jte,[["__scopeId","data-v-0770b25f"]]),zte=Object.freeze(Object.defineProperty({__proto__:null,default:_8},Symbol.toStringTag,{value:"Module"})),Hte={key:0,class:"flex flex-wrap justify-between"},Gte=["href"],Kte={key:0},Wte=ke({__name:"BannerTextList",setup(e){F(()=>fo("text")||"");const t=F(()=>fo("texts")?.ads||[]),n=M(["#ae1d1d","#4A90E2","#50E3C2","#7a178f","#1b90ba","#583ce6","#9013FE","#915612","#1a7a8e","#1699aa","#BD10E0","#9c873d","#50E3C2","#80a652","#4A90E2","#983c8c","#0fa885","#7ED321","#303fa1","#BD10E0"]);return(r,s)=>b(t).length?(P(),j("div",Hte,[(P(!0),j(se,null,Fe(b(t),(i,o)=>(P(),q($e,{key:o,class:Ie("px-0 py-1 mx-0 mt-1 rounded-none text-ellipsis overflow-auto w-100"),style:Qe({width:i.keep?"100%":"calc(50% - 2px)",color:i?.color||b(n)[o%b(n).length],background:i?.bg||"rgb(var(--v-theme-surface))"})},{default:A(()=>[L("a",{href:i.link,target:"_blank",new:"1"},[L("span",null,Z(i.text?.[0]||""),1),i.text?.[1]?(P(),j("span",Kte,Z(i.text[1]),1)):te("",!0)],8,Gte)]),_:2},1032,["style"]))),128))])):te("",!0)}}),S8=vt(Wte,[["__scopeId","data-v-157e9c08"]]),qte=Object.freeze(Object.defineProperty({__proto__:null,default:S8},Symbol.toStringTag,{value:"Module"})),bd=ke({__name:"GlobalHeader",props:{page:{}},setup(e){const t=e,n=["post","user"],{user:r}=Ct(),s=mt("routeParams",null),i=F(()=>!r.value?.vip&&!n.includes(t.page));return(o,a)=>{const l=xd,u=my,c=b8,d=$S,f=_8,h=S8;return P(),j(se,null,[(P(),q(l,{key:"header-top"})),b(i)?(P(),q(u,{key:`${t.page}-swipelist`,page:t.page,place:"top","hide-close":!0},null,8,["page"])):te("",!0),S(c),b(i)&&!b(s)?.hideBanner?(P(),q(d,{key:`${t.page}-banner`,page:t.page,place:"banner"},null,8,["page"])):te("",!0),b(i)&&!b(s)?.hideIcon?(P(),q(f,{key:"banner-icon",page:t.page,place:"icons","keep-alive":!0},null,8,["page"])):te("",!0),(b(i),te("",!0))],64)}}}),Yte=Object.freeze(Object.defineProperty({__proto__:null,default:bd},Symbol.toStringTag,{value:"Module"})),Xte={class:"text-9xl font-bold text-primary mb-4"},Zte=ke({__name:"404",props:{hideHeader:{type:Boolean}},setup(e){const t=e,n=w_(),r=()=>{n.push("/")};return(s,i)=>{const o=bd;return P(),j(se,null,[t?.hideHeader?te("",!0):(P(),q(o,{key:0,page:"index"})),S(dn,{class:"flex items-center justify-center"},{default:A(()=>[S($e,{class:"p-4 text-center max-w-lg mx-auto"},{default:A(()=>[L("div",Xte,[S(de,{icon:"mdi:emoticon-dead",class:"inline-block mx-2",size:"128"})]),S(at,{class:"text-h4 mb-4"},{default:A(()=>[...i[0]||(i[0]=[z(" 页面未找到 ",-1)])]),_:1}),S(We,{class:"text-body-1 text-center text-medium-emphasis mb-6"},{default:A(()=>[...i[1]||(i[1]=[z(" 抱歉,您访问的页面不存在或已被移除。 ",-1)])]),_:1}),S(ce,{color:"primary",size:"large",onClick:r},{default:A(()=>[S(de,{icon:"mdi:home",class:"mr-2"}),i[2]||(i[2]=z(" 返回首页 ",-1))]),_:1})]),_:1})]),_:1})],64)}}}),E8=Object.freeze(Object.defineProperty({__proto__:null,default:Zte},Symbol.toStringTag,{value:"Module"})),Jte={actions:"button@2",article:"heading, paragraph",avatar:"avatar",button:"button",card:"image, heading","card-avatar":"image, list-item-avatar",chip:"chip","date-picker":"list-item, heading, divider, date-picker-options, date-picker-days, actions","date-picker-options":"text, avatar@2","date-picker-days":"avatar@28",divi
72der:"divider",heading:"heading",image:"image","list-item":"text","list-item-avatar":"avatar, text","list-item-two-line":"sentences","list-item-avatar-two-line":"avatar, sentences","list-item-three-line":"paragraph","list-item-avatar-three-line":"avatar, paragraph",ossein:"ossein",paragraph:"text@3",sentences:"text@2",subtitle:"text",table:"table-heading, table-thead, table-tbody, table-tfoot","table-heading":"chip, text","table-thead":"heading@6","table-tbody":"table-row-divider@6","table-row-divider":"table-row, divider","table-row":"text@6","table-tfoot":"text@2, avatar@2",text:"text"};function Qte(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[];return L("div",{class:Ie(["v-skeleton-loader__bone",`v-skeleton-loader__${e}`])},[t])}function fk(e){const[t,n]=e.split("@");return Array.from({length:n}).map(()=>vy(t))}function vy(e){let t=[];if(!e)return t;const n=Jte[e];if(e!==n){if(e.includes(","))return hk(e);if(e.includes("@"))return fk(e);n.includes(",")?t=hk(n):n.includes("@")?t=fk(n):n&&t.push(vy(n))}return[Qte(e,t)]}function hk(e){return e.replace(/\s/g,"").split(",").map(vy)}const ene=He({boilerplate:Boolean,color:String,loading:Boolean,loadingText:{type:String,default:"$vuetify.loading"},type:{type:[String,Array],default:"ossein"},...ms(),...Rs(),...Dn()},"VSkeletonLoader"),Hs=nt()({name:"VSkeletonLoader",inheritAttrs:!1,props:ene(),setup(e,t){let{attrs:n,slots:r}=t;const{backgroundColorClasses:s,backgroundColorStyles:i}=_r(()=>e.color),{dimensionStyles:o}=vs(e),{elevationClasses:a}=gi(e),{themeClasses:l}=ir(e),{t:u}=po(),c=F(()=>vy(As(e.type).join(",")));return ut(()=>{const d=!r.default||e.loading,f=e.boilerplate||!d?{}:{ariaLive:"polite",ariaLabel:u(e.loadingText),role:"alert"};return d?L("div",Ve({class:["v-skeleton-loader",{"v-skeleton-loader--boilerplate":e.boilerplate},l.value,s.value,a.value],style:[i.value,o.value]},f,n),[c.value]):L(se,null,[r.default?.()])}),{}}}),tne={class:"flex bg-gray-100 align-center justify-center fill-height"},nne={class:"flex bg-black/80 align-center justify-center fill-height"},rne={key:2,class:"h-full w-full text-center",type:"card"},sne={class:"absolute left-1/2 top-1/2 -translate-x-1/2 -translate-y-1/2 artistic-text"},ine="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAOEAAADhCAMAAAAJbSJIAAAAOVBMVEX19fW5ubm+vr74+Pjw8PD09PTKysrZ2dnk5OTFxcXGxsbPz8/e3t63t7ft7e3Ly8vn5+fT09OxsbHBSqnHAAAENklEQVR4nO3bi27jKhQFUMPh8DaG+f+PvQebJM6dqTOaVxxrL1VuldKKLTAQcKYJAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAM6Ij727er+L/KKPLZ7eXcnfQW5Wr8zukyN6SRDskSAl/Lur+evYKuVe3IdOKfu5N6PRKryqPQelzT+pzd8gCZeXhZYPT2hfFrIXSUhfDpgXSWhcq18UukbCovuk8NyMRFz6MHSJhNT61B6efsdOq1mZqyRMPaHe/6qEdT1TL5JwXduotuulRgJqm9x0lYRT1rrt5n6SlUwotA6wF0koWfbjDMvIY8YLF0n4jPKuz14z4aLUfXq8UEK5D0e7sdqtyC+T0NlgWzbU7TvpRRJS1eMdfWg5y0Cqyr3QJRKSl4A66MfWRXsUukTCvixNxZjq4pryaW68QsI+dG7vhGkqPmdf9nPjFRL6pzXp/98pXiAhxe/eOe1dIGGZD/ejPj8h5Vkdbfp+fkK5xqMIF0h4sAvVfXTCvttbjk8lqPzErvGJNVmmZX8kh6cFzsfh3ULtS/qDm1DuxPjqeG0+HIY+QXXHvtoo/iB07N3VAwAAAAAAAAC4nu8+ZcB+3UYzy9hNy/n5D8hnkosjfuzWOPevqvsLwm7jcA7Uj37XZ9TNt3Fon7bHE8YGFBtuVi7OGv14biGld1T9J4XMXFJvL+YcqR9bjIRrGzKnJpepLp2nFoLWITQpWnWikTylE+/ABU/TolrfBOUctoS9qpKw139ZAwXjtRTQ0jWZ3TLx5ANRkYI1dzGu3865iyoJk3LZ5aBuCXMRda5y5VptqlkZH6S1oisptahbSlYn+bFNTcUQotbrNZ2yFYOP1lkmpwuNhONgYn2SlGhxZHpCniShydlZJ83l9Npq1JZHL01nTVj74046MNG+l95ZR0XxSEjGZG26WXqpoZ5wGiPNeRMan+LS+uixjjRF16ed+5D3CW1QwcZoy8wc3JZwa8PzJnQ6usyTqS2OhG47JNzGDZYmlTi3hJwS2z5x6pK1vNRCL2ptv8aTJvRMRc865tFLy/gA3jjk5blIwumWsCovY1At0nl1n/mbkpF2G2+DOmtCkvqS8XJZE3rNayd1W8I601RmuiWU5rLK2jTleemToQw295FGfn53mh+RhFbaYHF+G0ul362vj4TUpOfWnpD6bLHen4pNIdfb9rZYO/eaRkZOLtUl6XQ9oRmP0YyEfWQlr+RrSUlm/JYWq2Jc+kPulOP4J+dOmB4nu0sksuMpki0hNc2+xkC3NU1z2atinKpyR6bbyvTcCWO6C4HKtzEbbgmL8jTPMn/kbU3TeynPsiSVGcXNt8X5uRN68zi7LrLmvj8GXNYF+A+WmpzXp7+lB9/L+g/+yCwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAPw5/wF4tSh8bvMXYQAAAABJRU5ErkJggg==",one=ke({__name:"CdnImg",props:{src:{},encoded:{},blurBackground:{type:Boolean},contain:{type:Boolean,default:!0},lazy:{type:Boolean,default:!0},eager:{type:Boolean,default:!1},cover:{type:Boolean,default:!1},backgroundSize:{},noCdn:{type:Boolean,default:!1}},emits:["load"],setup(e,{emit:t}){const n=e,r=F(()=>`${wr()?.host301}`),s=F(()=>0),i=M(new Set([s.value])),o=M(s.value),a=F(()=>
72{if(!n.src)return ine;if(n.noCdn)return n.src;const w=co(n.src,o.value);return w.includes("playpic/pic")?w.replace("playpic/pic","pic"):w}),l=F(()=>Gg()||[]),u=M(""),c=M(!1),d=M(!1),f=M(n.eager),h=M(null),p=M(null),m=t;function v(w){const T=atob(w),C=T.length,I=new ArrayBuffer(C),k=new Uint8Array(I);for(let $=0;$<C;$++)k[$]=T.charCodeAt($);return new Blob([k])}async function x(){if(!n.encoded)return;if(n.src.startsWith("data:")||n.src.startsWith("blob:")){u.value=n.src,g(u.value);return}c.value=!0,d.value=!1,u.value&&u.value.startsWith("blob:")&&URL.revokeObjectURL(u.value);const w=a.value.replace(/\/play\//ig,"/playpic/");try{const T=await fetch(w,{headers:{Accept:"text/plain,image/webp"}});if(!T.ok)throw new Error(`HTTP ${T.status}: ${T.statusText}`);let C;if((T.headers.get("content-type")||"").startsWith("image/")){if(C=await T.blob(),C.size===0)throw new Error("Empty blob received");u.value=URL.createObjectURL(C),g(u.value)}else if(C=await T.text(),typeof C=="string"&&C.startsWith("data"))u.value=C,g(u.value);else if(typeof C=="string"){C=C.replace(/#/g,"/").replace(/\$/g,"+").replace(/-/g,"+").replace(/_/g,"/");try{const k=v(C);u.value=URL.createObjectURL(k),g(u.value)}catch{u.value="data:;base64,"+C,g(u.value)}}}catch(T){d.value=!0,console.error("Failed to load encoded image:",T),_()}finally{c.value=!1}}ft(()=>{if(n.eager){n.encoded&&x();return}const w=new IntersectionObserver(T=>{T.forEach(C=>{C.isIntersecting&&(f.value=!0,w.disconnect(),n.encoded&&x())})},{rootMargin:"100px"});h.value&&w.observe(h.value),Er(()=>{w.disconnect(),u.value&&u.value.startsWith("blob:")&&URL.revokeObjectURL(u.value)})}),Er(()=>{if(u.value&&u.value.startsWith("blob:"))try{URL.revokeObjectURL(u.value)}catch{}}),be(()=>n.src,()=>{n.encoded&&f.value&&x()});function g(w){const T=w||(n.encoded?u.value:a.value);m("load",{src:T,status:d.value?"error":"success",type:n.encoded?"encoded":"normal",target:p.value})}function y(){if(n.noCdn||!n.src||l.value.length<=1)return!1;let w=(o.value+1)%l.value.length,T=0;for(;i.value.has(w)&&T<l.value.length;)w=(w+1)%l.value.length,T++;return i.value.has(w)?!1:(o.value=w,i.value.add(w),n.encoded&&f.value&&x(),!0)}function _(){y()||(d.value=!0,m("load",{src:n.encoded?u.value:a.value,status:"error",type:n.encoded?"encoded":"normal",target:p.value}))}const E=F(()=>({src:n.encoded?u.value:a.value,eager:n.eager,lazy:n.lazy,error:d.value,loading:c.value}));return(w,T)=>(P(),j("div",{ref_key:"containerRef",ref:h,flat:"",class:"image-container"},[n.blurBackground&&b(f)?(P(),j("div",{key:0,class:"background-blur",style:Qe({backgroundImage:`url(${e.encoded?b(u):b(a)})`,backgroundSize:n.backgroundSize!=null?n.backgroundSize:e.cover?"cover":e.contain?"contain":""})},null,4)):te("",!0),b(f)||e.eager?(P(),q(Xr,Ve({key:1,ref_key:"imgRef",ref:p},b(E),{src:e.encoded?b(u):b(a),error:b(d),loading:b(c),class:["foreground-image",n.blurBackground?"absolute inset-x-0 top-1/2 -translate-y-1/2":"relative",e.cover?"object-cover":(e.contain,"object-contain"),b(c)?"opacity-50":"opacity-100"],cover:e.cover,eager:e.eager,onLoad:g,onError:_}),{placeholder:A(()=>[Ht(w.$slots,"placeholder",{},()=>[L("div",tne,[S(Hs,{type:"image"})])],!0)]),error:A(()=>[Ht(w.$slots,"error",{},()=>[L("div",nne,[S(de,null,{default:A(()=>[...T[0]||(T[0]=[z("mdi-image-off",-1)])]),_:1})])],!0)]),default:A(()=>[Ht(w.$slots,"default",{},void 0,!0)]),_:3},16,["src","error","loading","class","cover","eager"])):(P(),j("div",rne,[S(Hs,{class:"h-full w-full text-center",type:"image"}),L("div",sne,Z(b(r)),1)]))],512))}}),An=vt(one,[["__scopeId","data-v-3cd1f27e"]]),ane=Object.freeze(Object.defineProperty({__proto__:null,default:An},Symbol.toStringTag,{value:"Module"}));var Ro=function(){return Ro=Object.assign||function(t){for(var n,r=1,s=arguments.length;r<s;r++){n=arguments[r];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(t[i]=n[i])}return t},Ro.apply(this,arguments)};var _u;(function(e){var t=(function(){function o(a,l,u,c){if(this.version=a,this.errorCorrectionLevel=l,this.modules=[],this.isFunction=[],a<o.MIN_VERSION||a>o.MAX_VERSION)throw new RangeError("Version value out of range");if(c<-1||c>7)throw new RangeError("Mask value out of range");this.size=a*4+17;for(var d=[],f=0;f<this.size;f++)d.push(!1);for(var f=0;f<this.size;f++)this.modules.push(d.slice()),this.isFunction.push(d.slice());this.drawFunctionPatterns();var h=this.addEccAndInterleave(u);if(this.drawCodewords(h),c==-1)for(var p=1e9,f=0;f<8;f++){this.applyMask(f),this.drawFormatBits(f);var m=this.getPenaltyScore();m<p&&(c=f,p=m),this.applyMask(f)}s(0<=c&&c<=7),this.mask=c,this.applyMask(c),this.drawFormatBits(c),this.isFunction=[]}return o.encodeText=function(a,l){var u=e.QrSegment.makeSegments(a);return o.encodeSegments(u,l)},o.encodeBinary=function(a,l){var u=e.QrSegment.makeBytes(a);return o.encodeSegments([u],l)},o.encodeSegments=function(a,l,u,c,d,f){if(u===void 0&&(u=1),c===void 0&&(c=40),d===void 0&&(d=-1),f===void 0&&(f=!0),!(o.MIN_VERSION<=u&&u<=c&&c<=o.MAX_VERSION)||d<-1||d>7)throw new RangeError("Invalid value");var h,p;for(h=u;;h++){var m=o.getNumDataCodewords(h,l)*8,v=i.getTotalBits(a,h);if(v<=m){p=v;break}if(h>=c)throw new RangeError("Data too long")}for(var x=0,g=[o.Ecc.MEDIUM,o.Ecc.QUARTILE,o.Ecc.HIGH];x<g.length;x++){var y=g[x];f&&p<=o.getNumDataCodewords(h,y)*8&&(l=y)}for(var _=[],E=0,w=a;E<w.length;E++){var T=w[E];n(T.mode.modeBits,4,_),n(T.numChars,T.mode.numCharCountBits(h),_);for(var C=0,I=T.getData();C<I.length;C++){var k=I[C];_.push(k)}}s(_.length==p);var $=o.getNumDataCodewords(h,l)*8;s(_.length<=$),n(0,Math.min(4,$-_.length),_),n(0,(8-_.length%8)%8,_),s(_.length%8==0);for(var R=236;_.length<$;R^=253)n(R,8,_);for(var D=[];D.length*8<_.length;)D.push(0);return _.forEach(function(O,B){return D[B>>>3]|=O<<7-(B&7)}),new o(h,l,D,d)},o.prototype.getModule=function(a,l){return 0<=a&&a<this.size&&0<=l&&l<this.size&&this.modules[l][a]},o.prototype.getModules=function(){return this.modules},o.prototype.drawFunctionPatterns=function(){for(var a=0;a<this.size;a++)this.setFunctionModule(6,a,a%2==0),this.setFunctionModule(a,6,a%2==0);this.drawFinderPattern(3,3),this.drawFinderPattern(this.size-4,3),this.drawFinderPattern(3,this.size-4);for(var l=this.getAlignmentPatternPositions(),u=l.length,a=0;a<u;a++)for(var c=0;c<u;c++)a==0&&c==0||a==0&&c==u-1||a==u-1&&c==0||this.drawAlignmentPattern(l[a],l[c]);this.drawFormatBits(0),this.drawVersion()},o.prototype.drawFormatBits=function(a){for(var l=this.errorCorrectionLevel.formatBits<<3|a,u=l,c=0;c<10;c++)u=u<<1^(u>>>9)*1335;var d=(l<<10|u)^21522;s(d>>>15==0);for(var c=0;c<=5;c++)this.setFunctionModule(8,c,r(d,c));this.setFunctionModule(8,7,r(d,6)),this.setFunctionModule(8,8,r(d,7)),this.setFunctionModule(7,8,r(d,8));for(var c=9;c<15;c++)this.setFunctionModule(14-c,8,r(d,c));for(var c=0;c<8;c++)this.setFunctionModule(this.size-1-c,8,r(d,c));for(var c=8;c<15;c++)this.setFunctionModule(8,this.size-15+c,r(d,c));this.setFunctionModule(8,this.size-8,!0)},o.prototype.drawVersion=function(){if(!(this.version<7)){for(var a=this.version,l=0;l<12;l++)a=a<<1^(a>>>11)*7973;var u=this.version<<12|a;s(u>>>18==0);for(var l=0;l<18;l++){var c=r(u,l),d=this.size-11+l%3,f=Math.floor(l/3);this.setFunctionModule(d,f,c),this.setFunctionModule(f,d,c)}}},o.prototype.drawFinderPattern=function(a,l){for(var u=-4;u<=4;u++)for(var c=-4;c<=4;c++){var d=Math.max(Math.abs(c),Math.abs(u)),f=a+c,h=l+u;0<=f&&f<this.size&&0<=h&&h<this.size&&this.setFunctionModule(f,h,d!=2&&d!=4)}},o.prototype.drawAlignmentPattern=function(a,l){for(var u=-2;u<=2;u++)for(var c=-2;c<=2;c++)this.setFunctionModule(a+c,l+u,Math.max(Math.abs(c),Math.abs(u))!=1)},o.prototype.setFunctionModule=function(a,l,u){this.modules[l][a]=u,this.isFunction[l][a]=!0},o.prototype.addEccAndInterleave=function(a){var l=this.version,u=this.errorCorrectionLevel;if(a.length!=o.getNumDataCodewords(l,u))throw new RangeError("Invalid argument");for(var c=o.NUM_ERROR_CORRECTION_BLOCKS[u.ordinal][l],d=o.ECC_CODEWORDS_PER_BLOCK[u.ordinal][l],f=Math.floor(o.getNumRawDataModules(l)/8),h=c-f%c,p=Math.floor(f/c),m=[],v=o.reedSolomonComputeDivisor(d),x=0,g=0;x<c;x++){var y=a.slice(g,g+p-d+(x<h?0:1));g+=y.length;var _=o.reedSolomonComputeRemainder(y,v);x<h&&y.push(0),m.push(y.concat(_))}for(var E=[],w=function(T){m.forEach(function(C,I){(T!=p-d||I>=h)&&E.push(C[T])})},x=0;x<m[0].length;x++)w(x);return s(E.length==f),E}
72,o.prototype.drawCodewords=function(a){if(a.length!=Math.floor(o.getNumRawDataModules(this.version)/8))throw new RangeError("Invalid argument");for(var l=0,u=this.size-1;u>=1;u-=2){u==6&&(u=5);for(var c=0;c<this.size;c++)for(var d=0;d<2;d++){var f=u-d,h=(u+1&2)==0,p=h?this.size-1-c:c;!this.isFunction[p][f]&&l<a.length*8&&(this.modules[p][f]=r(a[l>>>3],7-(l&7)),l++)}}s(l==a.length*8)},o.prototype.applyMask=function(a){if(a<0||a>7)throw new RangeError("Mask value out of range");for(var l=0;l<this.size;l++)for(var u=0;u<this.size;u++){var c=void 0;switch(a){case 0:c=(u+l)%2==0;break;case 1:c=l%2==0;break;case 2:c=u%3==0;break;case 3:c=(u+l)%3==0;break;case 4:c=(Math.floor(u/3)+Math.floor(l/2))%2==0;break;case 5:c=u*l%2+u*l%3==0;break;case 6:c=(u*l%2+u*l%3)%2==0;break;case 7:c=((u+l)%2+u*l%3)%2==0;break;default:throw new Error("Unreachable")}!this.isFunction[l][u]&&c&&(this.modules[l][u]=!this.modules[l][u])}},o.prototype.getPenaltyScore=function(){for(var a=0,l=0;l<this.size;l++){for(var u=!1,c=0,d=[0,0,0,0,0,0,0],f=0;f<this.size;f++)this.modules[l][f]==u?(c++,c==5?a+=o.PENALTY_N1:c>5&&a++):(this.finderPenaltyAddHistory(c,d),u||(a+=this.finderPenaltyCountPatterns(d)*o.PENALTY_N3),u=this.modules[l][f],c=1);a+=this.finderPenaltyTerminateAndCount(u,c,d)*o.PENALTY_N3}for(var f=0;f<this.size;f++){for(var u=!1,h=0,d=[0,0,0,0,0,0,0],l=0;l<this.size;l++)this.modules[l][f]==u?(h++,h==5?a+=o.PENALTY_N1:h>5&&a++):(this.finderPenaltyAddHistory(h,d),u||(a+=this.finderPenaltyCountPatterns(d)*o.PENALTY_N3),u=this.modules[l][f],h=1);a+=this.finderPenaltyTerminateAndCount(u,h,d)*o.PENALTY_N3}for(var l=0;l<this.size-1;l++)for(var f=0;f<this.size-1;f++){var p=this.modules[l][f];p==this.modules[l][f+1]&&p==this.modules[l+1][f]&&p==this.modules[l+1][f+1]&&(a+=o.PENALTY_N2)}for(var m=0,v=0,x=this.modules;v<x.length;v++){var g=x[v];m=g.reduce(function(E,w){return E+(w?1:0)},m)}var y=this.size*this.size,_=Math.ceil(Math.abs(m*20-y*10)/y)-1;return s(0<=_&&_<=9),a+=_*o.PENALTY_N4,s(0<=a&&a<=2568888),a},o.prototype.getAlignmentPatternPositions=function(){if(this.version==1)return[];for(var a=Math.floor(this.version/7)+2,l=Math.floor((this.version*8+a*3+5)/(a*4-4))*2,u=[6],c=this.size-7;u.length<a;c-=l)u.splice(1,0,c);return u},o.getNumRawDataModules=function(a){if(a<o.MIN_VERSION||a>o.MAX_VERSION)throw new RangeError("Version number out of range");var l=(16*a+128)*a+64;if(a>=2){var u=Math.floor(a/7)+2;l-=(25*u-10)*u-55,a>=7&&(l-=36)}return s(208<=l&&l<=29648),l},o.getNumDataCodewords=function(a,l){return Math.floor(o.getNumRawDataModules(a)/8)-o.ECC_CODEWORDS_PER_BLOCK[l.ordinal][a]*o.NUM_ERROR_CORRECTION_BLOCKS[l.ordinal][a]},o.reedSolomonComputeDivisor=function(a){if(a<1||a>255)throw new RangeError("Degree out of range");for(var l=[],u=0;u<a-1;u++)l.push(0);l.push(1);for(var c=1,u=0;u<a;u++){for(var d=0;d<l.length;d++)l[d]=o.reedSolomonMultiply(l[d],c),d+1<l.length&&(l[d]^=l[d+1]);c=o.reedSolomonMultiply(c,2)}return l},o.reedSolomonComputeRemainder=function(a,l){for(var u=l.map(function(p){return 0}),c=function(p){var m=p^u.shift();u.push(0),l.forEach(function(v,x){return u[x]^=o.reedSolomonMultiply(v,m)})},d=0,f=a;d<f.length;d++){var h=f[d];c(h)}return u},o.reedSolomonMultiply=function(a,l){if(a>>>8||l>>>8)throw new RangeError("Byte out of range");for(var u=0,c=7;c>=0;c--)u=u<<1^(u>>>7)*285,u^=(l>>>c&1)*a;return s(u>>>8==0),u}
72,o.prototype.finderPenaltyCountPatterns=function(a){var l=a[1];s(l<=this.size*3);var u=l>0&&a[2]==l&&a[3]==l*3&&a[4]==l&&a[5]==l;return(u&&a[0]>=l*4&&a[6]>=l?1:0)+(u&&a[6]>=l*4&&a[0]>=l?1:0)},o.prototype.finderPenaltyTerminateAndCount=function(a,l,u){return a&&(this.finderPenaltyAddHistory(l,u),l=0),l+=this.size,this.finderPenaltyAddHistory(l,u),this.finderPenaltyCountPatterns(u)},o.prototype.finderPenaltyAddHistory=function(a,l){l[0]==0&&(a+=this.size),l.pop(),l.unshift(a)},o.MIN_VERSION=1,o.MAX_VERSION=40,o.PENALTY_N1=3,o.PENALTY_N2=3,o.PENALTY_N3=40,o.PENALTY_N4=10,o.ECC_CODEWORDS_PER_BLOCK=[[-1,7,10,15,20,26,18,20,24,30,18,20,24,26,30,22,24,28,30,28,28,28,28,30,30,26,28,30,30,30,30,30,30,30,30,30,30,30,30,30,30],[-1,10,16,26,18,24,16,18,22,22,26,30,22,22,24,24,28,28,26,26,26,26,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28],[-1,13,22,18,26,18,24,18,22,20,24,28,26,24,20,30,24,28,28,26,30,28,30,30,30,30,28,30,30,30,30,30,30,30,30,30,30,30,30,30,30],[-1,17,28,22,16,22,28,26,26,24,28,24,28,22,24,24,30,28,28,26,28,30,24,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30]],o.NUM_ERROR_CORRECTION_BLOCKS=[[-1,1,1,1,1,1,2,2,2,2,4,4,4,4,4,6,6,6,6,7,8,8,9,9,10,12,12,12,13,14,15,16,17,18,19,19,20,21,22,24,25],[-1,1,1,1,2,2,4,4,4,5,5,5,8,9,9,10,10,11,13,14,16,17,17,18,20,21,23,25,26,28,29,31,33,35,37,38,40,43,45,47,49],[-1,1,1,2,2,4,4,6,6,8,8,8,10,12,16,12,17,16,18,21,20,23,23,25,27,29,34,34,35,38,40,43,45,48,51,53,56,59,62,65,68],[-1,1,1,2,4,4,4,5,6,8,8,11,11,16,16,18,16,19,21,25,25,25,34,30,32,35,37,40,42,45,48,51,54,57,60,63,66,70,74,77,81]],o})();e.QrCode=t;function n(o,a,l){if(a<0||a>31||o>>>a)throw new RangeError("Value out of range");for(var u=a-1;u>=0;u--)l.push(o>>>u&1)}function r(o,a){return(o>>>a&1)!=0}function s(o){if(!o)throw new Error("Assertion error")}var i=(function(){function o(a,l,u){if(this.mode=a,this.numChars=l,this.bitData=u,l<0)throw new RangeError("Invalid argument");this.bitData=u.slice()}return o.makeBytes=function(a){for(var l=[],u=0,c=a;u<c.length;u++){var d=c[u];n(d,8,l)}return new o(o.Mode.BYTE,a.length,l)},o.makeNumeric=function(a){if(!o.isNumeric(a))throw new RangeError("String contains non-numeric characters");for(var l=[],u=0;u<a.length;){var c=Math.min(a.length-u,3);n(parseInt(a.substring(u,u+c),10),c*3+1,l),u+=c}return new o(o.Mode.NUMERIC,a.length,l)},o.makeAlphanumeric=function(a){if(!o.isAlphanumeric(a))throw new RangeError("String contains unencodable characters in alphanumeric mode");var l=[],u;for(u=0;u+2<=a.length;u+=2){var c=o.ALPHANUMERIC_CHARSET.indexOf(a.charAt(u))*45;c+=o.ALPHANUMERIC_CHARSET.indexOf(a.charAt(u+1)),n(c,11,l)}return u<a.length&&n(o.ALPHANUMERIC_CHARSET.indexOf(a.charAt(u)),6,l),new o(o.Mode.ALPHANUMERIC,a.length,l)},o.makeSegments=function(a){return a==""?[]:o.isNumeric(a)?[o.makeNumeric(a)]:o.isAlphanumeric(a)?[o.makeAlphanumeric(a)]:[o.makeBytes(o.toUtf8ByteArray(a))]},o.makeEci=function(a){var l=[];if(a<0)throw new RangeError("ECI assignment value out of range");if(a<128)n(a,8,l);else if(a<16384)n(2,2,l),n(a,14,l);else if(a<1e6)n(6,3,l),n(a,21,l);else throw new RangeError("ECI assignment value out of range");return new o(o.Mode.ECI,0,l)},o.isNumeric=function(a){return o.NUMERIC_REGEX.test(a)},o.isAlphanumeric=function(a){return o.ALPHANUMERIC_REGEX.test(a)},o.prototype.getData=function(){return this.bitData.slice()},o.getTotalBits=function(a,l){for(var u=0,c=0,d=a;c<d.length;c++){var f=d[c],h=f.mode.numCharCountBits(l);if(f.numChars>=1<<h)return 1/0;u+=4+h+f.bitData.length}return u},o.toUtf8ByteArray=function(a){a=encodeURI(a);for(var l=[],u=0;u<a.length;u++)a.charAt(u)!="%"?l.push(a.charCodeAt(u)):(l.push(parseInt(a.substring(u+1,u+3),16)),u+=2);return l},o.NUMERIC_REGEX=/^[0-9]*$/,o.ALPHANUMERIC_REGEX=/^[A-Z0-9 $%*+.\/:-]*$/,o.ALPHANUMERIC_CHARSET="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ $%*+-./:",o})();e.QrSegment=i})(_u||(_u={}));(function(e){(function(t){var n=(function(){function r(s,i){this.ordinal=s,this.formatBits=i}return r.LOW=new r(0,1),r.MEDIUM=new r(1,0),r.QUARTILE=new r(2,3),r.HIGH=new r(3,2),r})();t.Ecc=n})(e.QrCode||(e.QrCode={}))})(_u||(_u={}));(function(e){(function(t){var n=(function(){function r(s,i){this.modeBits=s,this.numBitsCharCount=i}return r.prototype.numCharCountBits=function(s){return this.numBitsCharCount[Math.floor((s+7)/17)]},r.NUMERIC=new r(1,[10,12,14]),r.ALPHANUMERIC=new r(2,[9,11,13]),r.BYTE=new r(4,[8,16,16]),r.KANJI=new r(8,[8,10,12]),r.ECI=new r(7,[0,0,0]),r})();t.Mode=n})(e.QrSegment||(e.QrSegment={}))})(_u||(_u={}));var fc=_u,MS="L",FS={L:fc.QrCode.Ecc.LOW,M:fc.QrCode.Ecc.MEDIUM,Q:fc.QrCode.Ecc.QUARTILE,H:fc.QrCode.Ecc.HIGH},lne=(function(){try{new Path2D().addPath(new Path2D)}catch{return!1}return!0})();function BS(e){return e in FS}function w8(e,t){t===void 0&&(t=0);var n=[];return e.forEach(function(r,s){var i=null;r.forEach(function(o,a){if(!o&&i!==null){n.push("M".concat(i+t," ").concat(s+t,"h").concat(a-i,"v1H").concat(i+t,"z")),i=null;return}if(a===r.length-1){if(!o)return;i===null?n.push("M".concat(a+t,",").concat(s+t," h1v1H").concat(a+t,"z")):n.push("M".concat(i+t,",").concat(s+t," h").concat(a+1-i,"v1H").concat(i+t,"z"));return}o&&i===null&&(i=a)})}),n.join("")}function T8(e,t,n,r){var s=r.width,i=r.height,o=r.x,a=r.y,l=e.length+n*2,u=Math.floor(t*.1),c=l/t,d=(s||u)*c,f=(i||u)*c,h=o==null?e.length/2-d/2:o*c,p=a==null?e.length/2-f/2:a*c,m=null;if(r.excavate){var v=Math.floor(h),x=Math.floor(p),g=Math.ceil(d+h-v),y=Math.ceil(f+p-x);m={x:v,y:x,w:g,h:y}}return{x:h,y:p,h:f,w:d,excavation:m}}function C8(e,t){return e.slice().map(function(n,r){return r<t.y||r>=t.y+t.h?n:n.map(function(s,i){return i<t.x||i>=t.x+t.w?s:!1})})}var NS={value:{type:String,required:!0,default:""},size:{type:Number,default:100},level:{type:String,default:MS,validator:function(e){return BS(e)}},background:{type:String,default:"#fff"},foreground:{type:String,default:"#000"},margin:{type:Number,required:!1,default:0},imageSettings:{type:Object,required:!1,default:function(){return{}}},gradient:{type:Boolean,required:!1,default:!1},gradientType:{type:String,required:!1,default:"linear",validator:function(e){return["linear","radial"].indexOf(e)>-1}},gradientStartColor:{type:String,required:!1,default:"#000"},gradientEndColor:{type:String,required:!1,default:"#fff"}},une=Ro(Ro({},NS),{renderAs:{type:String,required:!1,default:"canvas",validator:function(e){return["canvas","svg"].indexOf(e)>-1}}}),cne=ke({name:"QRCodeSvg",props:NS,setup:function(e){var t=M(0),n=M(""),r,s=function(){var o=e.value,a=e.level,l=e.margin,u=l>>>0,c=BS(a)?a:MS,d=fc.QrCode.encodeText(o,FS[c]).getModules();if(t.value=d.length+u*2,e.imageSettings.src){var f=T8(d,e.size,u,e.imageSettings);r={x:f.x+u,y:f.y+u,width:f.w,height:f.h},f.excavation&&(d=C8(d,f.excavation))}n.value=w8(d,u)},i=function(){if(!e.gradient)return null;var o=e.gradientType==="linear"?{x1:"0%",y1:"0%",x2:"100%",y2:"100%"}:{cx:"50%",cy:"50%",r:"50%",fx:"50%",fy:"50%"};return Dt(e.gradientType==="linear"?"linearGradient":"radialGradient",Ro({id:"qr-gradient"},o),[Dt("stop",{offset:"0%",style:{stopColor:e.gradientStartColor}}),Dt("stop",{offset:"100%",style:{stopColor:e.gradientEndColor}})])};return s(),Du(s),function(){return Dt("svg",{width:e.size,height:e.size,"shape-rendering":"crispEdges",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 ".concat(t.value," ").concat(t.value)},[Dt("defs",{},[i()]),Dt("rect",{width:"100%",height:"100%",fill:e.background}),Dt("path",{fill:e.gradient?"url(#qr-gradient)":e.foreground,d:n.value}),e.imageSettings.src&&Dt("image",Ro({href:e.imageSettings.src},r))])}}}),dne=ke({name:"QRCodeCanvas",props:NS,setup:function(e,t){var n=M(null),r=M(null),s=function(){var o=e.value,a=e.level,l=e.size,u=e.margin,c=e.background,d=e.foreground,f=e.gradient,h=e.gradientType,p=e.gradientStartColor,m=e.gradientEndColor,v=u>>>0,x=BS(a)?a:MS,g=n.value;if(g){var y=g.getContext("2d");if(y){var _=fc.QrCode.encodeText(o,FS[x]).getModules(),E=_.length+v*2,w=r.value,T={x:0,y:0,width:0,height:0}
72,C=e.imageSettings.src&&w!=null&&w.naturalWidth!==0&&w.naturalHeight!==0;if(C){var I=T8(_,e.size,v,e.imageSettings);T={x:I.x+v,y:I.y+v,width:I.w,height:I.h},I.excavation&&(_=C8(_,I.excavation))}var k=window.devicePixelRatio||1,$=l/E*k;if(g.height=g.width=l*k,y.scale($,$),y.fillStyle=c,y.fillRect(0,0,E,E),f){var R=void 0;h==="linear"?R=y.createLinearGradient(0,0,E,E):R=y.createRadialGradient(E/2,E/2,0,E/2,E/2,E/2),R.addColorStop(0,p),R.addColorStop(1,m),y.fillStyle=R}else y.fillStyle=d;lne?y.fill(new Path2D(w8(_,v))):_.forEach(function(D,O){D.forEach(function(B,U){B&&y.fillRect(U+v,O+v,1,1)})}),C&&y.drawImage(w,T.x,T.y,T.width,T.height)}}};ft(s),Du(s);var i=t.attrs.style;return function(){return Dt(se,[Dt("canvas",Ro(Ro({},t.attrs),{ref:n,style:Ro(Ro({},i),{width:"".concat(e.size,"px"),height:"".concat(e.size,"px")})})),e.imageSettings.src&&Dt("img",{ref:r,src:e.imageSettings.src,style:{display:"none"},onLoad:s})])}}}),Uh=ke({name:"Qrcode",render:function(){var e=this.$props,t=e.renderAs,n=e.value,r=e.size,s=e.margin,i=e.level,o=e.background,a=e.foreground,l=e.imageSettings,u=e.gradient,c=e.gradientType,d=e.gradientStartColor,f=e.gradientEndColor;return Dt(t==="svg"?cne:dne,{value:n,size:r,margin:s,level:i,background:o,foreground:a,imageSettings:l,gradient:u,gradientType:c,gradientStartColor:d,gradientEndColor:f})},props:une});function Pa(){async function e(t){if(!t)return!1;try{return await navigator.clipboard.writeText(t),!0}catch{const r=document.createElement("textarea");if(r.value=t,r.style.position="fixed",r.style.opacity="0",r.style.left="-9999px",document.body.appendChild(r),navigator.userAgent.match(/ipad|iphone/i)){const s=document.createRange();s.selectNodeContents(r);const i=window.getSelection();i?.removeAllRanges(),i?.addRange(s),r.setSelectionRange(0,999999)}else r.select();try{return document.execCommand("copy")}catch{return!1}finally{document.body.removeChild(r)}}}return{copyText:e}}function fne(e){let{selectedElement:t,containerElement:n,isRtl:r,isHorizontal:s}=e;const i=th(s,n),o=A8(s,r,n),a=th(s,t),l=k8(s,t),u=a*.4;return o>l?l-u:o+i<l+a?l-i+a+u:o}function hne(e){let{selectedElement:t,containerElement:n,isHorizontal:r}=e;const s=th(r,n),i=k8(r,t),o=th(r,t);return i-s/2+o/2}function pk(e,t){return t?.[e?"scrollWidth":"scrollHeight"]||0}function pne(e,t){return t?.[e?"clientWidth":"clientHeight"]||0}function A8(e,t,n){if(!n)return 0;const{scrollLeft:r,offsetWidth:s,scrollWidth:i}=n;return e?t?i-s+r:r:n.scrollTop}function th(e,t){return t?.[e?"offsetWidth":"offsetHeight"]||0}function k8(e,t){return t?.[e?"offsetLeft":"offsetTop"]||0}const I8=Symbol.for("vuetify:v-slide-group"),VS=He({centerActive:Boolean,scrollToActive:{type:Boolean,default:!0},contentClass:null,direction:{type:String,default:"horizontal"},symbol:{type:null,default:I8},nextIcon:{type:jt,default:"$next"},prevIcon:{type:jt,default:"$prev"},showArrows:{type:[Boolean,String],validator:e=>typeof e=="boolean"||["always","desktop","mobile"].includes(e)},...At(),...NZ({mobile:null}),...rn(),...ry({selectedClass:"v-slide-group-item--active"})},"VSlideGroup"),qv=nt()({name:"VSlideGroup",props:VS(),emits:{"update:modelValue":e=>!0},setup(e,t){let{slots:n}=t;const{isRtl:r}=Jr(),{displayClasses:s,mobile:i}=fd(e),o=Fh(e,e.symbol),a=Ze(!1),l=Ze(0),u=Ze(0),c=Ze(0),d=F(()=>e.direction==="horizontal"),{resizeRef:f,contentRect:h}=Ia(),{resizeRef:p,contentRect:m}=Ia(),v=dS(),x=F(()=>({container:f.el,duration:200,easing:"easeOutQuart"})),g=F(()=>o.selected.value.length?o.items.value.findIndex(X=>X.id===o.selected.value[0]):-1),y=F(()=>o.selected.value.length?o.items.value.findIndex(X=>X.id===o.selected.value[o.selected.value.length-1]):-1);if(on){let X=-1;be(()=>[o.selected.value,h.value,m.value,d.value],()=>{cancelAnimationFrame(X),X=requestAnimationFrame(()=>{if(h.value&&m.value){const Q=d.value?"width":"height";u.value=h.value[Q],c.value=m.value[Q],a.value=u.value+1<c.value}if(e.scrollToActive&&g.value>=0&&p.el){const Q=p.el.children[y.value];E(Q,e.centerActive)}})})}const _=Ze(!1);function E(X,Q){let le=0;Q?le=hne({containerElement:f.el,isHorizontal:d.value,selectedElement:X}):le=fne({containerElement:f.el,isHorizontal:d.value,isRtl:r.value,selectedElement:X}),w(le)}function w(X){if(!on||!f.el)return;const Q=th(d.value,f.el),le=A8(d.value,r.value,f.el);
72if(!(pk(d.value,f.el)<=Q||Math.abs(X-le)<16)){if(d.value&&r.value&&f.el){const{scrollWidth:oe,offsetWidth:K}=f.el;X=oe-K-X}d.value?v.horizontal(X,x.value):v(X,x.value)}}function T(X){const{scrollTop:Q,scrollLeft:le}=X.target;l.value=d.value?le:Q}function C(X){if(_.value=!0,!(!a.value||!p.el)){for(const Q of X.composedPath())for(const le of p.el.children)if(le===Q){E(le);return}}}function I(X){_.value=!1}let k=!1;function $(X){!k&&!_.value&&!(X.relatedTarget&&p.el?.contains(X.relatedTarget))&&B(),k=!1}function R(){k=!0}function D(X){if(!p.el)return;function Q(le){X.preventDefault(),B(le)}d.value?X.key==="ArrowRight"?Q(r.value?"prev":"next"):X.key==="ArrowLeft"&&Q(r.value?"next":"prev"):X.key==="ArrowDown"?Q("next"):X.key==="ArrowUp"&&Q("prev"),X.key==="Home"?Q("first"):X.key==="End"&&Q("last")}function O(X,Q){if(!X)return;let le=X;do le=le?.[Q==="next"?"nextElementSibling":"previousElementSibling"];while(le?.hasAttribute("disabled"));return le}function B(X){if(!p.el)return;let Q;if(!X)Q=Nc(p.el)[0];else if(X==="next"){if(Q=O(p.el.querySelector(":focus"),X),!Q)return B("first")}else if(X==="prev"){if(Q=O(p.el.querySelector(":focus"),X),!Q)return B("last")}else X==="first"?(Q=p.el.firstElementChild,Q?.hasAttribute("disabled")&&(Q=O(Q,"next"))):X==="last"&&(Q=p.el.lastElementChild,Q?.hasAttribute("disabled")&&(Q=O(Q,"prev")));Q&&Q.focus({preventScroll:!0})}function U(X){const Q=d.value&&r.value?-1:1,le=(X==="prev"?-Q:Q)*u.value;let ve=l.value+le;if(d.value&&r.value&&f.el){const{scrollWidth:oe,offsetWidth:K}=f.el;ve+=oe-K}w(ve)}const N=F(()=>({next:o.next,prev:o.prev,select:o.select,isSelected:o.isSelected})),V=F(()=>a.value||Math.abs(l.value)>0),H=F(()=>{switch(e.showArrows){case"always":return!0;case"desktop":return!i.value;case!0:return V.value;case"mobile":return i.value||V.value;default:return!i.value&&V.value}}),re=F(()=>Math.abs(l.value)>1),W=F(()=>{if(!f.value||!V.value)return!1;const X=pk(d.value,f.el),Q=pne(d.value,f.el);return X-Q-Math.abs(l.value)>1});return ut(()=>S(e.tag,{class:Ie(["v-slide-group",{"v-slide-group--vertical":!d.value,"v-slide-group--has-affixes":H.value,"v-slide-group--is-overflowing":a.value},s.value,e.class]),style:Qe(e.style),tabindex:_.value||o.selected.value.length?-1:0,onFocus:$},{default:()=>[H.value&&L("div",{key:"prev",class:Ie(["v-slide-group__prev",{"v-slide-group__prev--disabled":!re.value}]),onMousedown:R,onClick:()=>re.value&&U("prev")},[n.prev?.(N.value)??S(tk,null,{default:()=>[S(de,{icon:r.value?e.nextIcon:e.prevIcon},null)]})]),L("div",{key:"container",ref:f,class:Ie(["v-slide-group__container",e.contentClass]),onScroll:T},[L("div",{ref:p,class:"v-slide-group__content",onFocusin:C,onFocusout:I,onKeydown:D},[n.default?.(N.value)])]),H.value&&L("div",{key:"next",class:Ie(["v-slide-group__next",{"v-slide-group__next--disabled":!W.value}]),onMousedown:R,onClick:()=>W.value&&U("next")},[n.next?.(N.value)??S(tk,null,{default:()=>[S(de,{icon:r.value?e.prevIcon:e.nextIcon},null)]})])]})),{selected:o.selected,scrollTo:U,scrollOffset:l,focus:B,hasPrev:re,hasNext:W}}}),L8=Symbol.for("vuetify:v-chip-group"),mne=He({baseColor:String,column:Boolean,filter:Boolean,valueComparator:{type:Function,default:zs},...VS({scrollToActive:!1}),...At(),...ry({selectedClass:"v-chip--selected"}),...rn(),...Dn(),...Xo({variant:"tonal"})},"VChipGroup"),Yv=nt()({name:"VChipGroup",props:mne(),emits:{"update:modelValue":e=>!0},setup(e,t){let{slots:n}=t;const{themeClasses:r}=ir(e),{isSelected:s,select:i,next:o,prev:a,selected:l}=Fh(e,L8);return Ni({VChip:{baseColor:Ae(()=>e.baseColor),color:Ae(()=>e.color),disabled:Ae(()=>e.disabled),filter:Ae(()=>e.filter),variant:Ae(()=>e.variant)}}),ut(()=>{const u=qv.filterProps(e);return S(qv,Ve(u,{class:["v-chip-group",{"v-chip-group--column":e.column},r.value,e.class],style:e.style}),{default:()=>[n.default?.({isSelected:s,select:i,next:o,prev:a,selected:l.value})]})}),{}}}),vne=He({activeClass:String,appendAvatar:String,appendIcon:jt,baseColor:String,closable:Boolean,closeIcon:{type:jt,default:"$delete"},closeLabel:{type:String,default:"$vuetify.close"},draggable:Boolean,filter:Boolean,filterIcon:{type:jt,default:"$complete"},label:Boolean,link:{type:Boolean,default:void 0}
vendor: 1,220 bytes, line 72
72,pill:Boolean,prependAvatar:String,prependIcon:jt,ripple:{type:[Boolean,Object],default:!0},text:{type:[String,Number,Boolean],default:void 0},modelValue:{type:Boolean,default:!0},onClick:js(),onClickOnce:js(),...mo(),...At(),...Ps(),...Rs(),...xS(),...Tr(),...ly(),...Al(),...rn({tag:"span"}),...Dn(),...Xo({variant:"tonal"})},"VChip"),kt=nt()({name:"VChip",directives:{vRipple:ho},props:vne(),emits:{"click:close":e=>!0,"update:modelValue":e=>!0,"group:selected":e=>!0,click:e=>!0},setup(e,t){let{attrs:n,emit:r,slots:s}=t;const{t:i}=po(),{borderClasses:o}=Yo(e),{densityClasses:a}=vi(e),{elevationClasses:l}=gi(e),{roundedClasses:u}=Qr(e),{sizeClasses:c}=md(e),{themeClasses:d}=ir(e),f=Qt(e,"modelValue"),h=jv(e,L8,!1),p=jv(e,I8,!1),m=ay(e,n),v=Ae(()=>e.link!==!1&&m.isLink.value),x=F(()=>!e.disabled&&e.link!==!1&&(!!h||e.link||m.isClickable.value)),g=Ae(()=>({"aria-label":i(e.closeLabel),disabled:e.disabled,onClick(C){C.preventDefault(),C.stopPropagation(),f.value=!1,r("click:close",C)}}));be(f,C=>{C?(h?.register(),p?.register()):(h?.unregister(),p?.unregister())});const{colorClasses:y,colorStyles:_,variantClasses:E}=pd(()=>({color:!h||h.isSelected.value?e.color??e.baseColor:e.baseColor,variant:e.variant}));
72function w(C){r("click",C),x.value&&(m.navigate?.(C),h?.toggle())}function T(C){(C.key==="Enter"||C.key===" ")&&(C.preventDefault(),w(C))}return()=>{const C=m.isLink.value?"a":e.tag,I=!!(e.appendIcon||e.appendAvatar),k=!!(I||s.append),$=!!(s.close||e.closable),R=!!(s.filter||e.filter)&&h,D=!!(e.prependIcon||e.prependAvatar),O=!!(D||s.prepend);return f.value&&pn(S(C,Ve(m.linkProps,{class:["v-chip",{"v-chip--disabled":e.disabled,"v-chip--label":e.label,"v-chip--link":x.value,"v-chip--filter":R,"v-chip--pill":e.pill,[`${e.activeClass}`]:e.activeClass&&m.isActive?.value},d.value,o.value,y.value,a.value,l.value,u.value,c.value,E.value,h?.selectedClass.value,e.class],style:[_.value,e.style],disabled:e.disabled||void 0,draggable:e.draggable,tabindex:x.value?0:void 0,onClick:w,onKeydown:x.value&&!v.value&&T}),{default:()=>[hd(x.value,"v-chip"),R&&S(M4,{key:"filter"},{default:()=>[pn(L("div",{class:"v-chip__filter"},[s.filter?S(sn,{key:"filter-defaults",disabled:!e.filterIcon,defaults:{VIcon:{icon:e.filterIcon}}},s.filter):S(de,{key:"filter-icon",icon:e.filterIcon},null)]),[[hs,h.isSelected.value]])]}),O&&L("div",{key:"prepend",class:"v-chip__prepend"},[s.prepend?S(sn,{key:"prepend-defaults",disabled:!D,defaults:{VAvatar:{image:e.prependAvatar,start:!0},VIcon:{icon:e.prependIcon,start:!0}}},s.prepend):L(se,null,[e.prependIcon&&S(de,{key:"prepend-icon",icon:e.prependIcon,start:!0},null),e.prependAvatar&&S(rr,{key:"prepend-avatar",image:e.prependAvatar,start:!0},null)])]),L("div",{class:"v-chip__content","data-no-activator":""},[s.default?.({isSelected:h?.isSelected.value,selectedClass:h?.selectedClass.value,select:h?.select,toggle:h?.toggle,value:h?.value.value,disabled:e.disabled})??Z(e.text)]),k&&L("div",{key:"append",class:"v-chip__append"},[s.append?S(sn,{key:"append-defaults",disabled:!I,defaults:{VAvatar:{end:!0,image:e.appendAvatar},VIcon:{end:!0,icon:e.appendIcon}}},s.append):L(se,null,[e.appendIcon&&S(de,{key:"append-icon",end:!0,icon:e.appendIcon},null),e.appendAvatar&&S(rr,{key:"append-avatar",end:!0,image:e.appendAvatar},null)])]),$&&L("button",Ve({key:"close",class:"v-chip__close",type:"button","data-testid":"close-chip"},g.value),[s.close?S(sn,{key:"close-defaults",defaults:{VIcon:{icon:e.closeIcon,size:"x-small"}}},s.close):S(de,{key:"close-icon",icon:e.closeIcon,size:"x-small"},null)])]}),[[ho,x.value&&e.ripple,null]])}}}),gne={class:"flex items-center justify-center"},yne={class:"text-2xl"},xne={class:"grid grid-cols-2 md:grid-cols-2 gap-4 mt-4"},bne={class:"flex flex-col items-center justify-between h-full"},_ne={class:"p-4"},Sne={class:"text-center"},Ene={class:"font-bold"},wne={class:"flex items-center px-3 py-2"},Tne={class:"text-desc text-center py-4"},Cne={class:"py-4"},Ane=ke({__name:"enter",setup(e){const t=It(),n=F(()=>(On()?.mail?.dz||"").toUpperCase()),r=window.location.href,s=F(()=>Vo()?.app),i=F(()=>Vo()?.host301),o=F(()=>location.hostname),a=F(()=>[{to:t.html("index.html"),host:o.value,status:"online"}]),{$isTauri:l}=wt(),{copyText:u}=Pa(),c=async v=>{await u(v)&&je.success("域名已复制")},d=async()=>{await u(n.value)&&je.success("邮箱已复制")},f=()=>{const v=document.querySelector(".qrcode-vue");if(v){const x=document.createElement("a");x.download=`${s.value}-${i.value}-二维码.jpg`,x.href=v.toDataURL("image/jpeg",.8),x.click()}},h=F(()=>wl()),{$device:p}=wt(),m=F(()=>p.isIOS());return(v,x)=>{const g=An;return P(),q(dn,{class:"publish-container"},{default:A(()=>[S($e,{class:"text-center py-2 rounded-lg"},{default:A(()=>[L("div",gne,[S(g,{src:b(h),style:{width:"80px",height:"80px","margin-right":"5px"},"blur-background":!1},null,8,["src"]),L("span",null,[L("span",yne,Z(b(s)),1),x[1]||(x[1]=L("br",null,null,-1)),x[2]||(x[2]=L("span",{class:"opacity-50"},"网址发布页",-1))])])]),_:1}),L("div",xne,[S($e,{class:"rounded-lg text-center items-center justify-center h-full flex flex-col"},{default:A(()=>[S(at,{class:"flex px-4 py-3"},{default:A(()=>[S(de,{icon:"mdi-email",class:"mr-2"}),x[3]||(x[3]=z(" 取最新地址 ",-1))]),_:1}),S(We,{class:"flex-1 flex flex-col justify-between"},{default:A(()=>[x[5]||(x[5]=L("p",{class:"my-2 text-sm opacity-75"},[z(" 发送任意内容到邮箱"),L("br"),z("获取最新访问地址 ")],-1)),S(kt,{class:"monospace text-lg mb-2 text-primary font-bold"},{default:A(()=>[z(Z(b(n)),1)]),_:1}),S(ce,{color:"primary",class:"mt-2",onClick:d},{default:A(()=>[x[4]||(x[4]=z(" 复制邮箱地址 ",-1)),S(de,{icon:"mdi-content-copy",class:"ml-2"})]),_:1})]),_:1})]),_:1}),S($e,{class:"rounded-lg text-center items-center justify-center h-full flex flex-col"},{default:A(()=>[S(at,{class:"flex text-center px-4 py-3"},{default:A(()=>[S(de,{icon:"mdi-qrcode",class:"mr-2"}),x[6]||(x[6]=z(" 扫码访问 ",-1))]),_:1}),S(We,{class:"flex-1 flex flex-col"},{default:A(()=>[L("div",bne,[S(Uh,{value:b(r),size:120,"render-as":"canvas",margin:2,quality:1,level:"H",foreground:"#000000",background:"#ffffff",class:"mx-auto qrcode-vue opacity-70"},null,8,["value"]),S(ce,{color:"primary",class:"mt-4",onClick:f},{default:A(()=>[x[7]||(x[7]=z(" 保存二维码 ",-1)),S(de,{icon:"mdi-download",class:"ml-2"})]),_:1})])]),_:1})]),_:1})]),S($e,{class:"mt-4 rounded-lg"},{default:A(()=>[S(at,{class:"flex align-center items-center px-4 pt-3 pb-2"},{default:A(()=>[S(de,{icon:"mdi-login-variant",color:"primary",class:"mr-2"}),x[9]||(x[9]=z(" 进入网站 ",-1)),S(Mt),L("div",{class:"text-sm opacity-75",onClick:x[0]||(x[0]=y=>c(b(i)))},[x[8]||(x[8]=z(" 复制域名 ",-1)),S(de,{icon:"mdi-content-copy",size:"small",class:"ml-1"})])]),_:1}),L("div",_ne,[(P(!0),j(se,null,Fe(b(a),(y,_)=>(P(),q(ce,{key:_,to:y.to,color:"primary",size:"large",class:"enter-btn p-2 h-auto",block:"",disabled:y.status!=="online"},{default:A(()=>[L("div",Sne,[S(de,{color:y.status==="online"?"success":"error",icon:y.status==="online"?"mdi-check-circle":"mdi-alert-circle",size:"small",class:"mr-1"},null,8,["color","icon"]),L("span",Ene,Z(b(o)),1),x[10]||(x[10]=L("br",null,null,-1)),x[11]||(x[11]=L("span",{class:"text-xs opacity-75"},"立即点击,进入网站",-1)),S(de,{icon:"ph:caret-right",size:"small",class:"ml-1 absolute right-2 top-1/2 -translate-y-1/2"})])]),_:2}
72,1032,["to","disabled"]))),128)),x[12]||(x[12]=L("div",{class:"block pt-4 text-sm opacity-75 text-center"}," 本站经常更换域名,请截图保存本页,防止失联 ",-1))])]),_:1}),b(m)?(P(),q($e,{key:0,to:b(t).html("webclip.html"),class:"mt-4 rounded-lg webclip-mini"},{default:A(()=>[L("div",wne,[S(de,{icon:"mdi-apple",class:"mr-2 opacity-75"}),x[13]||(x[13]=L("span",{class:"opacity-75 flex-1"},"添加到桌面,防止失联",-1)),S(de,{icon:"ph:caret-right",class:"opacity-50"})])]),_:1},8,["to"])):te("",!0),S($e,{class:"mt-4 rounded-lg"},{default:A(()=>[S(We,{class:"text-sm text-desc text-center pb-0 letter-spacing-0"},{default:A(()=>[x[15]||(x[15]=z(" 重要:请花30秒看完下面步骤,永久访问本站! ",-1)),x[16]||(x[16]=L("br",null,null,-1)),z(Z(b(s))+"海外网(翻墙)永久网址 ",1),S(kt,{color:"primary"},{default:A(()=>[z(Z(b(i)),1)]),_:1}),x[17]||(x[17]=L("br",null,null,-1)),x[18]||(x[18]=z("本站经常更换域名",-1)),x[19]||(x[19]=L("br",null,null,-1)),x[20]||(x[20]=z("请收藏 ",-1)),S(kt,{color:"primary"},{default:A(()=>[...x[14]||(x[14]=[z(" 5 ",-1)])]),_:1}),x[21]||(x[21]=z(" 个以上最新域名才可保证永久访问本站! ",-1)),x[22]||(x[22]=L("br",null,null,-1)),x[23]||(x[23]=z("移动网络频繁屏蔽本站,如果点击进入后打不开本站",-1)),x[24]||(x[24]=L("br",null,null,-1)),x[25]||(x[25]=z("请换(电信或联通)网络再访问本站 ",-1))]),_:1})]),_:1}),L("div",Tne,[x[26]||(x[26]=z(" 警告:如果您未满 18 岁或您当地法律许可之法律年龄,或是对情色反感或是卫道人士, 建议您离开本站!本站归类为限制级, 限定为成年者已具有完整行为能力且愿接受本站内影音内容、及各项条款之网友才可浏览, 未满 18 岁谢绝进入。 ",-1)),L("div",Cne," 当前时间:"+Z(new Date().toLocaleString())+" @"+Z(b(i)),1)])]),_:1})}}}),_d=vt(Ane,[["__scopeId","data-v-6073b77c"]]),kne=Object.freeze(Object.defineProperty({__proto__:null,default:_d},Symbol.toStringTag,{value:"Module"})),Ine=ke({__name:"main",setup(e){return(t,n)=>(P(),q(_d))}}),Lne=Object.freeze(Object.defineProperty({__proto__:null,default:Ine},Symbol.toStringTag,{value:"Module"})),Dne={},Pne={class:"overflow-hidden animate-pulse"};function Rne(e,t){return P(),j("div",Pne,[...t[0]||(t[0]=[L("div",{class:"h-[120px] bg-gray-200 dark:bg-gray-700 rounded-lg"},null,-1),L("div",{class:"mt-2 h-4 bg-gray-200 dark:bg-gray-700 rounded w-3/4"},null,-1),L("div",{class:"mt-1 h-3 bg-gray-200 dark:bg-gray-700 rounded w-1/2"},null,-1)])])}const Sd=vt(Dne,[["render",Rne]]),One=Object.freeze(Object.defineProperty({__proto__:null,default:Sd},Symbol.toStringTag,{value:"Module"})),US=Symbol.for("vuetify:v-tabs"),D8=He({fixed:Boolean,sliderColor:String,hideSlider:Boolean,direction:{type:String,default:"horizontal"},...ps(uy({selectedClass:"v-tab--selected",variant:"text"}),["active","block","flat","location","position","symbol"])},"VTab"),Sr=nt()({name:"VTab",props:D8(),setup(e,t){let{slots:n,attrs:r}=t;const{textColorClasses:s,textColorStyles:i}=Gs(()=>e.sliderColor),o=M(),a=M(),l=F(()=>e.direction==="horizontal"),u=F(()=>o.value?.group?.isSelected.value??!1);function c(d){let{value:f}=d;if(f){const h=o.value?.$el.parentElement?.querySelector(".v-tab--selected .v-tab__slider"),p=a.value;if(!h||!p)return;const m=getComputedStyle(h).color,v=h.getBoundingClientRect(),x=p.getBoundingClientRect(),g=l.value?"x":"y",y=l.value?"X":"Y",_=l.value?"right":"bottom",E=l.value?"width":"height",w=v[g],T=x[g],C=w>T?v[_]-x[_]:v[g]-x[g],I=Math.sign(C)>0?l.value?"right":"bottom":Math.sign(C)<0?l.value?"left":"top":"center",$=(Math.abs(C)+(Math.sign(C)<0?v[E]:x[E]))/Math.max(v[E],x[E])||0,R=v[E]/x[E]||0,D=1.5;pa(p,{backgroundColor:[m,"currentcolor"],transform:[`translate${y}(${C}px) scale${y}(${R})`,`translate${y}(${C/D}px) scale${y}(${($-1)/D+1})`,"none"],transformOrigin:Array(3).fill(I)},{duration:225,easing:qf})}}return ut(()=>{const d=ce.filterProps(e);return S(ce,Ve({symbol:US,ref:o,class:["v-tab",e.class],style:e.style,tabindex:u.value?0:-1,role:"tab","aria-selected":String(u.value),active:!1},d,r,{block:e.fixed,maxWidth:e.fixed?300:void 0,"onGroup:selected":c}),{...n,default:()=>L(se,null,[n.default?.()??e.text,!e.hideSlider&&L("div",{ref:a,class:Ie(["v-tab__slider",s.value]),style:Qe(i.value)},null)])})}),yi({},o)}}),$ne=e=>{const{touchstartX:t,touchendX:n,touchstartY:r,touchendY:s}=e,i=.5,o=16;e.offsetX=n-t,e.offsetY=s-r,Math.abs(e.offsetY)<i*Math.abs(e.offsetX)&&(e.left&&n<t-o&&e.left(e),e.right&&n>t+o&&e.right(e)),Math.abs(e.offsetX)<i*Math.abs(e.offsetY)&&(e.up&&s<r-o&&e.up(e),e.down&&s>r+o&&e.down(e))};function Mne(e,t){const n=e.changedTouches[0];t.touchstartX=n.clientX,t.touchstartY=n.clientY,t.start?.({originalEvent:e,...t})}function Fne(e,t){const n=e.changedTouches[0];t.touchendX=n.clientX,t.touchendY=n.clientY,t.end?.({originalEvent:e,...t}),$ne(t)}function Bne(e,t){const n=e.changedTouches[0];t.touchmoveX=n.clientX,t.touchmoveY=n.clientY,t.move?.({originalEvent:e,...t})}function Nne(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};const t={touchstartX:0,touchstartY:0,touchendX:0,touchendY:0,touchmoveX:0,touchmoveY:0,offsetX:0,offsetY:0,left:e.left,right:e.right,up:e.up,down:e.down,start:e.start,move:e.move,end:e.end};return{touchstart:n=>Mne(n,t),touchend:n=>Fne(n,t),touchmove:n=>Bne(n,t)}}function Vne(e,t){const n=t.value,r=n?.parent?e.parentElement:e,s=n?.options??{passive:!0},i=t.instance?.$.uid;if(!r||i===void 0)return;const o=Nne(t.value);r._touchHandlers=r._touchHandlers??Object.create(null),r._touchHandlers[i]=o,j3(o).forEac
72h(a=>{r.addEventListener(a,o[a],s)})}function Une(e,t){const n=t.value?.parent?e.parentElement:e,r=t.instance?.$.uid;if(!n?._touchHandlers||r===void 0)return;const s=n._touchHandlers[r];j3(s).forEach(i=>{n.removeEventListener(i,s[i])}),delete n._touchHandlers[r]}const i2={mounted:Vne,unmounted:Une},P8=Symbol.for("vuetify:v-window"),R8=Symbol.for("vuetify:v-window-group"),O8=He({continuous:Boolean,nextIcon:{type:[Boolean,String,Function,Object],default:"$next"},prevIcon:{type:[Boolean,String,Function,Object],default:"$prev"},reverse:Boolean,showArrows:{type:[Boolean,String],validator:e=>typeof e=="boolean"||e==="hover"},verticalArrows:[Boolean,String],touch:{type:[Object,Boolean],default:void 0},direction:{type:String,default:"horizontal"},modelValue:null,disabled:Boolean,selectedClass:{type:String,default:"v-window-item--active"},mandatory:{type:[Boolean,String],default:"force"},crossfade:Boolean,transitionDuration:Number,...At(),...rn(),...Dn()},"VWindow"),nh=nt()({name:"VWindow",directives:{vTouch:i2},props:O8(),emits:{"update:modelValue":e=>!0},setup(e,t){let{slots:n}=t;const{themeClasses:r}=ir(e),{isRtl:s}=Jr(),{t:i}=po(),o=Fh(e,R8),a=M(),l=F(()=>s.value?!e.reverse:e.reverse),u=Ze(!1),c=F(()=>{if(e.crossfade)return"v-window-crossfade-transition";const _=e.direction==="vertical"?"y":"x",w=(l.value?!u.value:u.value)?"-reverse":"";return`v-window-${_}${w}-transition`}),d=Ze(0),f=M(void 0),h=F(()=>o.items.value.findIndex(_=>o.selected.value.includes(_.id)));be(h,(_,E)=>{let w;const T={left:0,top:0};on&&E>=0&&(w=oS(a.value),T.left=w?.scrollLeft,T.top=w?.scrollTop);const C=o.items.value.length,I=C-1;C<=2?u.value=_<E:_===I&&E===0?u.value=!0:_===0&&E===I?u.value=!1:u.value=_<E,tt(()=>{if(!on||!w)return;w.scrollTop!==T.top&&w.scrollTo({...T,behavior:"instant"}),requestAnimationFrame(()=>{if(!w)return;w.scrollTop!==T.top&&w.scrollTo({...T,behavior:"instant"})})})},{flush:"sync"}),Cn(P8,{transition:c,isReversed:u,transitionCount:d,transitionHeight:f,rootRef:a});const p=Ae(()=>e.continuous||h.value!==0),m=Ae(()=>e.continuous||h.value!==o.items.value.length-1);function v(){p.value&&o.prev()}function x(){m.value&&o.next()}const g=F(()=>{const _=[],E={icon:s.value?e.nextIcon:e.prevIcon,class:`v-window__${l.value?"right":"left"}`,onClick:o.prev,"aria-label":i("$vuetify.carousel.prev")};_.push(p.value?n.prev?n.prev({props:E}):S(ce,E,null):L("div",null,null));const w={icon:s.value?e.prevIcon:e.nextIcon,class:`v-window__${l.value?"left":"right"}`,onClick:o.next,"aria-label":i("$vuetify.carousel.next")};return _.push(m.value?n.next?n.next({props:w}):S(ce,w,null):L("div",null,null)),_}),y=F(()=>e.touch===!1?e.touch:{...{left:()=>{l.value?v():x()},right:()=>{l.value?x():v()},start:E=>{let{originalEvent:w}=E;w.stopPropagation()}},...e.touch===!0?{}:e.touch});return ut(()=>pn(S(e.tag,{ref:a,class:Ie(["v-window",{"v-window--show-arrows-on-hover":e.showArrows==="hover","v-window--vertical-arrows":!!e.verticalArrows,"v-window--crossfade":!!e.crossfade},r.value,e.class]),style:Qe([e.style,e.transitionDuration&&!yu?{"--v-window-transition-duration":ht(e.transitionDuration,"ms")}:void 0])},{default:()=>[L("div",{class:"v-window__container",style:{height:f.value}},[n.default?.({group:o}),e.showArrows!==!1&&L("div",{class:Ie(["v-window__controls",{"v-window__controls--left":e.verticalArrows==="left"||e.verticalArrows===!0},{"v-window__controls--right":e.verticalArrows==="right"}])},[g.value])]),n.additional?.({group:o})]}),[[i2,y.value]])),{group:o}}}),jne=He({...ps(O8(),["continuous","nextIcon","prevIcon","showArrows","touch","mandatory"])},"VTabsWindow"),zne=nt()({name:"VTabsWindow",props:jne(),emits:{"update:modelValue":e=>!0},setup(e,t){let{slots:n}=t;const r=mt(US,null),s=Qt(e,"modelValue"),i=F({get(){return s.value!=null||!r?s.value:r.items.value.find(o=>r.selected.value.includes(o.id))?.value},set(o){s.value=o}});return ut(()=>{const o=nh.filterProps(e);return S(nh,Ve({_as:"VTabsWindow"},o,{modelValue:i.value,"onUpdate:modelValue":a=>i.value=a,class:["v-tabs-window",e.class],style:e.style,mandatory:!1,touch:!1}),n)}),{}}}),$8=He({reverseTransition:{type:[Boolean,String],default:void 0},transition:{type:[Boolean,String],default:void 0},...At(),...xS(),...K4()},"VWindowItem"),Mo=nt()({name:"VWindowItem",directives:{vTouch:i2},props:$8(),emits:{"group:selected":e=>!0},setup(e,t){let{slots:n}=t;const r=mt(P8),s=jv(e,R8),{isBooted:i}=Nh();if(!r||!s)throw new Error("[Vuetify] VWindowItem must be used inside VWindow");const o=Ze(!1),a=F(()=>i.value&&(r.isReversed.value?e.reverseTransition!==!1:e.transition!==!1));function l(){!o.value||!r||(o.value=!1,r.transitionCount.value>0&&(r.transitionCount.value-=1,r.transitionCount.value===0&&(r.transitionHeight.value=void 0)))}function u(){o.value||!r||(o.value=!0,r.transitionCount.value===0&&(r.transitionHeight.value=ht(r.rootRef.value?.clientHeight)),r.transitionCount.value+=1)}function c(){l()}function d(p){o.value&&tt(()=>{!a.value||!o.value||!r||(r.transitionHeight.value=ht(p.clientHeight))})}const f=F(()=>{const p=r.isReversed.value?e.reverseTransition:e.transition;return a.value?{name:typeof p!="string"?r.transition.value:p,onBeforeEnter:u,onAfterEnter:l,onEnterCancelled:c,onBeforeLeave:u,onAfterLeave:l,onLeaveCancelled:c,onEnter:d}:!1}),{hasContent:h}=W4(e,s.isSelected);return ut(()=>S(io,{transition:f.value,disabled:!i.value},{default:()=>[pn(L("div",{class:Ie(["v-window-item",s.selectedClass.value,e.class]),style:Qe(e.style)}
72,[h.value&&n.default?.()]),[[hs,s.isSelected.value]])]})),{groupItem:s}}}),Hne=He({...$8()},"VTabsWindowItem"),Gne=nt()({name:"VTabsWindowItem",props:Hne(),setup(e,t){let{slots:n}=t;return ut(()=>{const r=Mo.filterProps(e);return S(Mo,Ve({_as:"VTabsWindowItem"},r,{class:["v-tabs-window-item",e.class],style:e.style}),n)}),{}}});function Kne(e){return e?e.map(t=>Dv(t)?t:{text:t,value:t}):[]}const Wne=He({alignTabs:{type:String,default:"start"},color:String,fixedTabs:Boolean,items:{type:Array,default:()=>[]},stacked:Boolean,bgColor:String,grow:Boolean,height:{type:[Number,String],default:void 0},hideSlider:Boolean,sliderColor:String,...cd(D8(),["spaced"]),...VS({mandatory:"force",selectedClass:"v-tab-item--selected"}),...Ps(),...rn()},"VTabs"),Hi=nt()({name:"VTabs",props:Wne(),emits:{"update:modelValue":e=>!0},setup(e,t){let{attrs:n,slots:r}=t;const s=Qt(e,"modelValue"),i=F(()=>Kne(e.items)),{densityClasses:o}=vi(e),{backgroundColorClasses:a,backgroundColorStyles:l}=_r(()=>e.bgColor),{scopeId:u}=Bh();return Ni({VTab:{color:Ae(()=>e.color),direction:Ae(()=>e.direction),stacked:Ae(()=>e.stacked),fixed:Ae(()=>e.fixedTabs),sliderColor:Ae(()=>e.sliderColor),hideSlider:Ae(()=>e.hideSlider)}}),ut(()=>{const c=qv.filterProps(e),d=!!(r.window||e.items.length>0);return L(se,null,[S(qv,Ve(c,{modelValue:s.value,"onUpdate:modelValue":f=>s.value=f,class:["v-tabs",`v-tabs--${e.direction}`,`v-tabs--align-tabs-${e.alignTabs}`,{"v-tabs--fixed-tabs":e.fixedTabs,"v-tabs--grow":e.grow,"v-tabs--stacked":e.stacked},o.value,a.value,e.class],style:[{"--v-tabs-height":ht(e.height)},l.value,e.style],role:"tablist",symbol:US},u,n),{default:()=>[r.default?.()??i.value.map(f=>r.tab?.({item:f})??S(Sr,Ve(f,{key:f.text,value:f.value,spaced:e.spaced}),{default:r[`tab.${f.value}`]?()=>r[`tab.${f.value}`]?.({item:f}):void 0}))]}),d&&S(zne,Ve({modelValue:s.value,"onUpdate:modelValue":f=>s.value=f,key:"tabs-window"},u),{default:()=>[i.value.map(f=>r.item?.({item:f})??S(Gne,{value:f.value},{default:()=>r[`item.${f.value}`]?.({item:f})})),r.window?.()]})])}),{}}}),qne=ke({__name:"Tabs",props:{modelValue:{},tabs:{},loading:{default:()=>({})},activeColor:{default:"primary"},bgColor:{default:"transparent"},tabWidth:{},sticky:{type:Boolean,default:!1},stickyTop:{default:58}},emits:["update:modelValue","tab-click"],setup(e,{emit:t}){const n=e,r=t,s=F({get:()=>n.modelValue,set:a=>r("update:modelValue",a)}),i=a=>{r("tab-click",a)},o=F(()=>n.sticky?{position:"sticky",top:`${n.stickyTop}px`,zIndex:18,backgroundColor:"rgb(var(--v-theme-background))"}:{});return(a,l)=>(P(),j("div",{style:Qe(b(o)),class:Ie({"tabs-sticky":e.sticky})},[S(Hi,{modelValue:b(s),"onUpdate:modelValue":l[0]||(l[0]=u=>Ce(s)?s.value=u:null),class:"data-tabs","bg-color":e.bgColor,color:e.activeColor,"selected-class":"v-tab--selected","center-active":""},{default:A(()=>[(P(!0),j(se,null,Fe(e.tabs,(u,c)=>(P(),q(Sr,{key:c,value:c,ripple:!1,width:e.tabWidth||"auto",onClick:d=>i(c)},{default:A(()=>[z(Z(u)+" ",1),e.loading[c]?(P(),q(jn,{key:0,indeterminate:"",size:"16",width:"2",class:"ml-1"})):te("",!0)]),_:2},1032,["value","width","onClick"]))),128)),Ht(a.$slots,"append",{},void 0,!0)]),_:3},8,["modelValue","bg-color","color"])],6))}}),gs=vt(qne,[["__scopeId","data-v-86865917"]]),Yne=Object.freeze(Object.defineProperty({__proto__:null,default:gs},Symbol.toStringTag,{value:"Module"})),Xne=["href"],kl=ke({__name:"BannerText2List",props:{page:String,place:String,className:{type:String,default:"",required:!1}},setup(e){const t=e,n=F(()=>(fo(t?.page||"index")||[]).filter(s=>s?.place===t?.place)[0]?.ads||[]);return(r,s)=>b(n)?.length>0?(P(),j("div",{key:0,class:Ie(["grid-cols-5 gap-2 mb-2 grid text-link",e.className])},[(P(!0),j(se,null,Fe(b(n),(i,o)=>(P(),j("a",{key:o,href:i.url,target:"_blank"},Z(i.text),9,Xne))),128))],2)):te("",!0)}}),Zne=Object.freeze(Object.defineProperty({__proto__:null,default:kl},Symbol.toStringTag,{value:"Module"})),Jne={key:1,class:"opacity-50 text-base text-center p-3 capitalize"},Qne=ke({__name:"DataList",props:{type:{default:"vod"},items:{},loading:{type:Boolean},skeleton:{type:Boolean,default:!0},more:{},pcCols:{default:4},mobileCols:{default:2},target:{},virtualScroll:{type:Boolean,default:!1},itemHeight:{default:200}},setup(e){const t=e,n=F(()=>t.items||[]),r=F(()=>t.type.charAt(0).toUpperCase()+t.type.slice(1)+"Card"),s=F(()=>{try{return Mi(r.value)}catch{return console.error(`组件 ${r.value} 不存在`),null}}),i=F(()=>({"grid-cols-1":t.mobileCols===1,"grid-cols-2":t.mobileCols===2,"grid-cols-3":t.mobileCols===3,"grid-cols-4":t.mobileCols===4,"sm:grid-cols-1":t.pcCols===1,"sm:grid-cols-2":t.pcCols===2,"sm:grid-cols-3":t.pcCols===3,"sm:grid-cols-4":t.pcCols===4,"sm:grid-cols-5":t.pcCols===5,"sm:grid-cols-6":t.pcCols===6,"sm:grid-cols-7":t.pcCols===7,"sm:grid-cols-8":t.pcCols===8,"sm:grid-cols-9":t.pcCols===9,"sm:grid-cols-10":t.pcCols===10})),o=F(()=>{const h=t.pcCols*2;return new Array(h).fill(null)}),a=M(),l=M([]),u=M(0),c=M(0),d=()=>
72{if(!t.virtualScroll||!a.value){l.value=n.value;return}const h=a.value,p=h.scrollTop,m=h.clientHeight,v=t.mobileCols||t.pcCols,x=t.itemHeight;u.value=Math.floor(p/x)*v,c.value=Math.min(u.value+Math.ceil(m/x)*v,n.value.length),l.value=n.value.slice(u.value,c.value)},f=lR(()=>{d()},16);return ft(()=>{t.virtualScroll&&a.value&&(a.value.addEventListener("scroll",f),d())}),cn(()=>{t.virtualScroll&&a.value&&a.value.removeEventListener("scroll",f)}),be(()=>n.value,()=>{t.virtualScroll?d():l.value=n.value},{immediate:!0}),(h,p)=>(P(),j("div",{ref_key:"containerRef",ref:a,class:Ie(["overflow-hidden",{"virtual-scroll-container":e.virtualScroll}])},[Ht(h.$slots,"header",{},void 0,!0),e.skeleton&&e.loading?(P(),j("div",{key:0,class:Ie(["grid gap-2",b(i)])},[(P(!0),j(se,null,Fe(b(o),(m,v)=>(P(),j("div",{key:"skeleton-"+v,class:"skeleton-card animate-pulse"},[...p[0]||(p[0]=[L("div",{class:"h-[120px] bg-gray-200 dark:bg-gray-700 rounded-lg"},null,-1),L("div",{class:"mt-2 h-4 bg-gray-200 dark:bg-gray-700 rounded w-3/4"},null,-1),L("div",{class:"mt-1 h-3 bg-gray-200 dark:bg-gray-700 rounded w-1/2"},null,-1)])]))),128))],2)):b(n).length===0?(P(),j("div",Jne," 暂无数据 ")):(P(),j("div",{key:2,class:Ie(["grid gap-2",b(i)]),style:Qe(e.virtualScroll?{height:`${Math.ceil(b(n).length/(e.mobileCols||e.pcCols))*e.itemHeight}px`,position:"relative"}:{})},[(P(!0),j(se,null,Fe(e.virtualScroll?b(l):b(n),(m,v)=>(P(),j(se,{key:m.id||v},[h.$slots.item?Ht(h.$slots,"item",{key:1,item:m},()=>[(P(),q(hl(b(s)),{item:m},null,8,["item"]))],!0):(P(),q(hl(b(s)),Ve({key:0,item:m,target:e.target},{ref_for:!0},h.$attrs,{style:e.virtualScroll?{position:"absolute",top:`${Math.floor((b(u)+v)/(e.mobileCols||e.pcCols))*e.itemHeight}px`,left:`${(b(u)+v)%(e.mobileCols||e.pcCols)*(100/(e.mobileCols||e.pcCols))}%`,width:`${100/(e.mobileCols||e.pcCols)}%`,height:`${e.itemHeight}px`}:{}}),null,16,["item","target","style"]))],64))),128))],6))],2))}}),Ys=vt(Qne,[["__scopeId","data-v-00939dd8"]]),ere=Object.freeze(Object.defineProperty({__proto__:null,default:Ys},Symbol.toStringTag,{value:"Module"})),tre={};function nre(e,t){return P(),q($e,{class:"p-4 flex flex-col gap-2 mb-2 pb-0 relative rounded-md"},{default:A(()=>[...t[0]||(t[0]=[L("div",{class:"flex items-center gap-3 mb-2"},[L("div",{class:"w-10 h-10 bg-gray-200 dark:bg-gray-700 rounded-full animate-pulse"}),L("div",{class:"flex-1"},[L("div",{class:"h-4 bg-gray-200 dark:bg-gray-700 rounded w-24 mb-2 animate-pulse"}),L("div",{class:"h-3 bg-gray-200 dark:bg-gray-700 rounded w-32 animate-pulse"})]),L("div",{class:"w-6 h-6 bg-gray-200 dark:bg-gray-700 rounded animate-pulse"})],-1),L("div",{class:"text-base mb-1"},[L("div",{class:"h-4 bg-gray-200 dark:bg-gray-700 rounded w-full mb-2 animate-pulse"}),L("div",{class:"h-4 bg-gray-200 dark:bg-gray-700 rounded w-5/6 mb-2 animate-pulse"}),L("div",{class:"h-4 bg-gray-200 dark:bg-gray-700 rounded w-4/6 animate-pulse"})],-1),L("div",{class:"relative mb-2"},[L("div",{class:"h-48 bg-gray-200 dark:bg-gray-700 rounded-lg animate-pulse"})],-1),L("div",{class:"flex flex-wrap items-center gap-2 mb-2"},[L("div",{class:"h-6 bg-gray-200 dark:bg-gray-700 rounded w-16 animate-pulse"}),L("div",{class:"h-6 bg-gray-200 dark:bg-gray-700 rounded w-20 animate-pulse"})],-1),L("div",{class:"flex items-center justify-between border-none border-gray-200 py-2"},[L("div",{class:"h-6 bg-gray-200 dark:bg-gray-700 rounded w-12 animate-pulse"}),L("div",{class:"h-6 bg-gray-200 dark:bg-gray-700 rounded w-12 animate-pulse"}),L("div",{class:"h-6 bg-gray-200 dark:bg-gray-700 rounded w-12 animate-pulse"}),L("div",{class:"h-6 bg-gray-200 dark:bg-gray-700 rounded w-12 animate-pulse"})],-1)])]),_:1})}const gy=vt(tre,[["render",nre]]),rre=Object.freeze(Object.defineProperty({__proto__:null,default:gy},Symbol.toStringTag,{value:"Module"})),sre=(...e)=>e.find(t=>t!==void 0);function ire(e){const t=e.componentName||"NuxtLink";function n(i){return typeof i=="string"&&i.startsWith("#")}function r(i,o,a){const l=a??e.trailingSlash;if(!i||l!=="append"&&l!=="remove")return i;if(typeof i=="string")return U0(i,l);const u="path"in i&&i.path!==void 0?i.path:o(i).path;return{...i,name:void 0,path:U0(u,l)}}function s(i){const o=Tt(),a=Zr(),l=F(()=>!!i.target&&i.target!=="_self"),u=F(()=>{const v=i.to||i.href||"";return typeof v=="string"&&Pu(v,{acceptRelative:!0})}),c=Mi("RouterLink"),d=c&&typeof c!="string"?c.useLink:void 0,f=F(()=>
72{if(i.external)return!0;const v=i.to||i.href||"";return typeof v=="object"?!1:v===""||u.value}),h=F(()=>{const v=i.to||i.href||"";return f.value?v:r(v,o.resolve,i.trailingSlash)}),p=f.value?void 0:d?.({...i,to:h}),m=F(()=>{const v=i.trailingSlash??e.trailingSlash;if(!h.value||u.value||n(h.value))return h.value;if(f.value){const x=typeof h.value=="object"&&"path"in h.value?db(h.value):h.value,g=typeof x=="object"?o.resolve(x).href:x;return U0(g,v)}return typeof h.value=="object"?o.resolve(h.value)?.href??null:U0(g_(a.app.baseURL,h.value),v)});return{to:h,hasTarget:l,isAbsoluteUrl:u,isExternal:f,href:m,isActive:p?.isActive??F(()=>h.value===o.currentRoute.value.path),isExactActive:p?.isExactActive??F(()=>h.value===o.currentRoute.value.path),route:p?.route??F(()=>o.resolve(h.value)),async navigate(v){await Ah(m.value,{replace:i.replace,external:f.value||l.value})}}}return ke({name:t,props:{to:{type:[String,Object],default:void 0,required:!1},href:{type:[String,Object],default:void 0,required:!1},target:{type:String,default:void 0,required:!1},rel:{type:String,default:void 0,required:!1},noRel:{type:Boolean,default:void 0,required:!1},prefetch:{type:Boolean,default:void 0,required:!1},prefetchOn:{type:[String,Object],default:void 0,required:!1},noPrefetch:{type:Boolean,default:void 0,required:!1},activeClass:{type:String,default:void 0,required:!1},exactActiveClass:{type:String,default:void 0,required:!1},prefetchedClass:{type:String,default:void 0,required:!1},replace:{type:Boolean,default:void 0,required:!1},ariaCurrentValue:{type:String,default:void 0,required:!1},external:{type:Boolean,default:void 0,required:!1},custom:{type:Boolean,default:void 0,required:!1},trailingSlash:{type:String,default:void 0,required:!1}},useLink:s,setup(i,{slots:o}){const a=Tt(),{to:l,href:u,navigate:c,isExternal:d,hasTarget:f,isAbsoluteUrl:h}=s(i),p=Ze(!1),m=M(null),v=y=>{m.value=i.custom?y?.$el?.nextElementSibling:y?.$el};function x(y){return!p.value&&(typeof i.prefetchOn=="string"?i.prefetchOn===y:i.prefetchOn?.[y]??e.prefetchOn?.[y])&&(i.prefetch??e.prefetch)!==!1&&i.noPrefetch!==!0&&i.target!=="_blank"&&!lre()}async function g(y=wt()){if(p.value)return;p.value=!0;const _=typeof l.value=="string"?l.value:d.value?db(l.value):a.resolve(l.value).fullPath,E=d.value?new URL(_,window.location.href).href:_;await Promise.all([y.hooks.callHook("link:prefetch",E).catch(()=>{}),!d.value&&!f.value&&_3(l.value,a).catch(()=>{})])}if(x("visibility")){const y=wt();let _,E=null;ft(()=>{const w=ore();ad(()=>{_=Db(()=>{m?.value?.tagName&&(E=w.observe(m.value,async()=>{E?.(),E=null,await g(y)}))})})}),cn(()=>{_&&dH(_),E?.(),E=null})}return()=>{if(!d.value&&!f.value&&!n(l.value)){const E={ref:v,to:l.value,activeClass:i.activeClass||e.activeClass,exactActiveClass:i.exactActiveClass||e.exactActiveClass,replace:i.replace,ariaCurrentValue:i.ariaCurrentValue,custom:i.custom};
72return i.custom||(x("interaction")&&(E.onPointerenter=g.bind(null,void 0),E.onFocus=g.bind(null,void 0)),p.value&&(E.class=i.prefetchedClass||e.prefetchedClass),E.rel=i.rel||void 0),Dt(Mi("RouterLink"),E,o.default)}const y=i.target||null,_=sre(i.noRel?"":i.rel,e.externalRelAttribute,h.value||f.value?"noopener noreferrer":"")||null;return i.custom?o.default?o.default({href:u.value,navigate:c,prefetch:g,get route(){if(!u.value)return;const E=new URL(u.value,window.location.href);return{path:E.pathname,fullPath:E.pathname,get query(){return v_(E.search)},hash:E.hash,params:{},name:void 0,matched:[],redirectedFrom:void 0,meta:{},href:u.value}},rel:_,target:y,isExternal:d.value||f.value,isActive:!1,isExactActive:!1}):null:Dt("a",{ref:m,href:u.value||null,rel:_,target:y,onClick:E=>{if(!(d.value||f.value))return E.preventDefault(),i.replace?a.replace(u.value):a.push(u.value)}},o.default?.())}}})}const Gi=ire(uV);function U0(e,t){const n=t==="append"?CP:Bf;return Pu(e)&&!e.startsWith("http")?e:n(e,!0)}function ore(){const e=wt();if(e._observer)return e._observer;let t=null;const n=new Map,r=(i,o)=>(t||=new IntersectionObserver(a=>{for(const l of a){const u=n.get(l.target);(l.isIntersecting||l.intersectionRatio>0)&&u&&u()}}),n.set(i,o),t.observe(i),()=>{n.delete(i),t?.unobserve(i),n.size===0&&(t?.disconnect(),t=null)});return e._observer={observe:r}}const are=/2g/;function lre(){const e=navigator.connection;return!!(e&&(e.saveData||are.test(e.effectiveType)))}const ure=ke({__name:"UserAvatar",props:{user:{type:Object,required:!0},size:{type:[Number,String],default:40},encoded:{type:[Number,String,Boolean],default:"1"},clickable:{type:Boolean,default:!0},target:{type:String,default:"_self"}},setup(e){const t=e,n=F(()=>(t.user?.avatar||"").search(/avatar/ig)>-1),r=F(()=>typeof t.size=="number"?`${t.size}px`:t.size),s=F(()=>n.value?t.user.avatar:qs(t.user.avatar)),i=F(()=>t.user.vip===1),o=F(()=>t.user.sex===1?"mdi:gender-male":t.user.sex===2?"mdi:gender-female":""),a=F(()=>t.user.sex===1?"blue":t.user.sex===2?"pink":"gray");F(()=>"#FFFFFF");const l=F(()=>t.user.sex===1?"bg-gradient-to-br from-blue-400 to-blue-600":t.user.sex===2?"bg-gradient-to-br from-pink-400 to-pink-600":"bg-gradient-to-br from-yellow-400 to-orange-500"),u=F(()=>t.user.sex===1?"user-avatar-vip-blue":t.user.sex===2?"user-avatar-vip-pink":"user-avatar-vip-gold"),c=F(()=>!i.value&&!!o.value),d=F(()=>n.value||s.value.search(/logo/)>-1?0:1),f=F(()=>!t.user?.id&&!t.user?.uid?"#":`/u/${t.user.id||t.user.uid}`),h=p=>{if(t.clickable&&!t.user?.id&&!t.user?.uid){p.preventDefault();return}};return(p,m)=>{const v=An,x=Gi;return e.clickable&&(e.user?.id||e.user?.uid)?(P(),q(x,{key:0,to:b(f),target:e.target,class:"relative inline-block cursor-pointer hover:opacity-80 transition-opacity",style:Qe({width:b(r),height:b(r)}),onClick:h},{default:A(()=>[S(rr,{size:b(r),class:Ie(b(i)?b(u):"")},{default:A(()=>[S(v,{src:b(s),alt:t.user.nickname,encoded:b(d),cover:!0,class:"w-full h-full rounded-full",style:{background:"rgba(255, 255, 255, 0.1)"}},null,8,["src","alt","encoded"])]),_:1},8,["size","class"]),b(c)?(P(),q(de,{key:0,icon:b(o),color:b(a),size:"16",class:"absolute left-0 bottom-0 bg-white rounded-full border border-white shadow -ml-1 -mb-1 opacity-90 scale-90",style:{"z-index":"2"}}
72,null,8,["icon","color"])):te("",!0),b(i)?(P(),j("div",{key:1,class:Ie(["absolute left-0 bottom-0 rounded-full border-2 border-white shadow-lg -ml-1 -mb-1 flex items-center justify-center",b(l)]),style:{"z-index":"3",width:"16px",height:"16px"}},[S(de,{icon:"mdi:crown",color:"white",size:"11",style:{filter:"drop-shadow(0 1px 1px rgba(0,0,0,0.3))"}})],2)):te("",!0)]),_:1},8,["to","target","style"])):(P(),j("div",{key:1,class:"relative inline-block",style:Qe({width:b(r),height:b(r)})},[S(rr,{size:b(r),class:Ie(b(i)?b(u):"")},{default:A(()=>[S(v,{src:b(s),alt:t.user.nickname,encoded:b(d),cover:!0,class:"w-full h-full rounded-full",style:{background:"rgba(255, 255, 255, 0.1)"}},null,8,["src","alt","encoded"])]),_:1},8,["size","class"]),b(c)?(P(),q(de,{key:0,icon:b(o),color:b(a),size:"16",class:"absolute left-0 bottom-0 bg-white rounded-full border border-white shadow -ml-1 -mb-1 opacity-90 scale-90",style:{"z-index":"2"}},null,8,["icon","color"])):te("",!0),b(i)?(P(),j("div",{key:1,class:Ie(["absolute left-0 bottom-0 rounded-full border-2 border-white shadow-lg -ml-1 -mb-1 flex items-center justify-center",b(l)]),style:{"z-index":"3",width:"19px",height:"19px","min-width":"19px","min-height":"19px"}},[S(de,{icon:"mdi:crown",color:"white",size:"13",style:{filter:"drop-shadow(0 1px 1px rgba(0,0,0,0.3))"}})],2)):te("",!0)],4))}}}),Ra=vt(ure,[["__scopeId","data-v-c3a35d45"]]),cre=Object.freeze(Object.defineProperty({__proto__:null,default:Ra},Symbol.toStringTag,{value:"Module"})),dre={class:"input-container"},fre={class:"input-wrapper"},hre={class:"relative"},pre=["onUpdate:modelValue","maxlength","placeholder","disabled","readonly","onInput","onKeydown"],mre={key:0,class:"separator"},vre={key:0,class:"floating-label"},gre=ke({__name:"TextTimePicker",props:{defaultValue:{default:null},format:{default:"YYYY/MM/DD HH:mm:ss"},label:{},density:{default:"comfortable"},disabled:{type:Boolean,default:!1},readonly:{type:Boolean,default:!1},class:{}},emits:["update","change"],setup(e,{emit:t}){const n=e,r=t;function s(T){const C=["YYYY","MM","DD","HH","mm","ss"],I=[],k=[];let $=0;for(;$<T.length;){let R=!1;for(const D of C)if(T.slice($,$+D.length)===D){const O={type:D,length:D==="YYYY"?4:2,placeholder:D==="YYYY"?"YYYY":D==="MM"?"MM":D==="DD"?"DD":D==="HH"?"HH":D==="mm"?"mm":"ss",minValue:i(D),maxValue:o(D)};I.push(O),$+=D.length;let B="";for(;$<T.length&&!/^[A-Za-z0-9]$/.test(T[$]);)B+=T[$],$++;k.push(B),R=!0;break}R||$++}return{segments:I,separators:k}}function i(T){switch(T){case"YYYY":return 1;case"MM":return 1;case"DD":return 1;case"HH":return 0;case"mm":return 0;case"ss":return 0;default:return 0}}function o(T){switch(T){case"YYYY":return 9999;case"MM":return 12;case"DD":return 31;case"HH":return 23;case"mm":return 59;case"ss":return 59;default:return 59}}const a=F(()=>s(n.format)),l=M([]),u=M([]),c=M(!1);function d(T){return String(T).padStart(2,"0")}function f(T){return String(T).padStart(4,"0")}function h(T){if(T==null||!Number.isFinite(T))return null;const C=new Date(T*1e3);let I="";return a.value.segments.forEach((k,$)=>{let R="";switch(k.type){case"YYYY":R=f(C.getFullYear());break;case"MM":R=d(C.getMonth()+1);break;case"DD":R=d(C.getDate());break;case"HH":R=d(C.getHours());break;case"mm":R=d(C.getMinutes());break;case"ss":R=d(C.getSeconds());break}I+=R;const D=a.value.separators[$]||"";D&&$<a.value.segments.length-1&&(I+=D)}),I}function p(){l.value=a.value.segments.map(()=>"")}function m(T){if(!T)return a.value.segments.map(()=>"");let C=T;const I=[];for(let k=0;k<a.value.segments.length;k++){const $=a.value.segments[k],R=a.value.separators[k];if(C.length===0){I.push("");continue}let D="";if(R&&C.includes(R)){const O=C.indexOf(R);D=C.slice(0,O),C=C.slice(O+R.length)}else D=C.slice(0,$.length),C=C.slice($.length);D=D.replace(/\D/g,""),I.push(D)}return I}function v(T){const C=new Date;let I=C.getFullYear(),k=C.getMonth()+1,$=C.getDate(),R=0,D=0,O=0;for(let N=0;N<a.value.segments.length;N++){const V=a.value.segments[N],H=T[N]||"",re=H===""?NaN:parseInt(H.padStart(V.length,"0"),10);switch(V.type){case"YYYY":Number.isNaN(re)||(I=re);break;case"MM":Number.isNaN(re)||(k=Math.max(1,Math.min(12,re)));break;case"DD":Number.isNaN(re)||($=Math.max(1,Math.min(31,re)));break;case"HH":Number.isNaN(re)||(R=Math.max(0,Math.min(23,re)));break;case"mm":Number.isNaN(re)||(D=Math.max(0,Math.min(59,re)));break;case"ss":Number.isNaN(re)||(O=Math.max(0,Math.min(59,re)));break}}const B=x(I,k);$=Math.min($,B);const U=new Date(I,k-1,$,R,D,O,0);return Number.isNaN(U.getTime())?null:Math.floor(U.getTime()/1e3)}function x(T,C){return C===2?g(T)?29:28:[4,6,9,11].includes(C)?30:31}function g(T){return T%4===0&&T%100!==0||T%400===0}function y(){if(!c.value)if(c.value=!0,n.defaultValue!==null&&n.defaultValue!==void 0){const T=h(n.defaultValue);l.value=m(T)}else p()}be(l,()=>{if(!c.value)return;const C=l.value.every(I=>I==="")?null:v(l.value);r("update",C)},{deep:!0});function _(T,C){const k=C.target.value.replace(/\D/g,""),$=a.value.segments[T];let R=k.slice(0,$.length);if(R){const D=parseInt(R,10);D>$.maxValue&&(R=String($.maxValue)),D<$.minValue&&R.length===$.length&&(R=String($.minValue).padStart($.length,"0"))}
72l.value[T]=R,R.length===$.length&&T<a.value.segments.length-1&&tt(()=>{const D=u.value[T+1];D&&D.focus()})}function E(T,C){const I=C.target,k=a.value.segments[T];if(C.key==="ArrowUp"||C.key==="ArrowDown"){C.preventDefault();const R=parseInt(l.value[T]||"0",10),D=C.key==="ArrowUp"?1:-1,O=Math.max(k.minValue,Math.min(k.maxValue,R+D));l.value[T]=String(O).padStart(k.length,"0"),I.select()}if(C.key==="ArrowLeft"&&I.selectionStart===0&&T>0){C.preventDefault();const R=u.value[T-1];R&&(R.focus(),R.setSelectionRange(R.value.length,R.value.length))}if(C.key==="ArrowRight"&&I.selectionStart===I.value.length&&T<a.value.segments.length-1){C.preventDefault();const R=u.value[T+1];R&&(R.focus(),R.setSelectionRange(0,0))}if(C.key==="Backspace"&&I.value===""&&T>0){C.preventDefault();const R=u.value[T-1];R&&(R.focus(),R.setSelectionRange(R.value.length,R.value.length))}const $=["Backspace","Delete","Tab","ArrowLeft","ArrowRight","ArrowUp","ArrowDown","Home","End"];!/^\d$/.test(C.key)&&!$.includes(C.key)&&!C.ctrlKey&&!C.metaKey&&C.preventDefault()}function w(){if(!c.value)return;const C=l.value.every(I=>I==="")?null:v(l.value);r("change",C)}return ft(()=>{y()}),(T,C)=>(P(),j("div",{class:Ie(["texttimepicker",n.class]),style:{margin:"0"}},[L("div",dre,[L("div",fre,[(P(!0),j(se,null,Fe(a.value.segments,(I,k)=>(P(),j(se,{key:k},[L("div",hre,[pn(L("input",{ref_for:!0,ref:$=>u.value[k]=$,"onUpdate:modelValue":$=>l.value[k]=$,type:"text",inputmode:"numeric",maxlength:I.length,placeholder:I.placeholder,disabled:e.disabled,readonly:e.readonly,class:Ie(["segment-input",{"segment-year":I.type==="YYYY","segment-two":I.type!=="YYYY"}]),onInput:$=>_(k,$),onKeydown:$=>E(k,$),onBlur:w},null,42,pre),[[h_,l.value[k]]])]),a.value.separators[k]&&k<a.value.segments.length-1?(P(),j("div",mre,Z(a.value.separators[k]),1)):te("",!0)],64))),128))]),e.label?(P(),j("div",vre,Z(e.label),1)):te("",!0)])],2))}}),M8=vt(gre,[["__scopeId","data-v-adc9e15d"]]),yre=Object.freeze(Object.defineProperty({__proto__:null,default:M8},Symbol.toStringTag,{value:"Module"})),xre={class:"flex justify-between items-center"},bre={class:"flex items-center gap-1"},_re={class:"text-xs font-medium"},Sre={class:"flex items-center gap-1 text-xs text-medium-emphasis mt-1"},Ere={class:"flex items-center gap-1 text-xs text-medium-emphasis mt-1"},wre={key:0},Tre={class:"text-xs text-left text-disabled mt-1"},F8=ke({__name:"PostAwardsHistoryCard",props:{item:{}},setup(e){const t=e;return(n,r)=>(P(),q($e,{class:"mb-1",variant:"outlined",color:t.item.credit>0?"success":"error",density:"compact"},{default:A(()=>[S(We,{class:"pa-1"},{default:A(()=>[L("div",xre,[L("div",bre,[S(de,{icon:t.item.credit>0?"mdi-plus-circle":"mdi-minus-circle",color:t.item.credit>0?"success":"error",size:"x-small"},null,8,["icon","color"]),L("span",_re,Z(t.item.credit>0?"+":"")+Z(t.item.credit)+" 积分 ",1)]),S(kt,{color:t.item.status===1?"success":"error",size:"x-small",variant:"flat"},{default:A(()=>[z(Z(t.item.statusText),1)]),_:1},8,["color"])]),L("div",Sre,[L("span",null,"@"+Z(t.item.user?.nickname||"未知用户"),1),r[0]||(r[0]=L("span",{class:"text-disabled"},":",-1)),L("span",null,Z(t.item.creditTypeText),1)]),L("div",Ere,[L("span",null,"@"+Z(t.item.admin?.nickname||"未知管理员"),1),t.item.reason?(P(),j(se,{key:0},[r[1]||(r[1]=L("span",{class:"font-medium"},":",-1)),t.item.reason?(P(),j("span",wre,Z(t.item.reason),1)):te("",!0)],64)):te("",!0)]),L("div",Tre,Z(t.item.createdAt),1)]),_:1})]),_:1},8,["color"]))}}),Cre=Object.freeze(Object.defineProperty({__proto__:null,default:F8},Symbol.toStringTag,{value:"Module"})),B8=Symbol.for("vuetify:selection-control-group"),jS=He({color:String,disabled:{type:Boolean,default:null},defaultsTarget:String,error:Boolean,id:String,inline:Boolean,falseIcon:jt,trueIcon:jt,ripple:{type:[Boolean,Object],default:!0},multiple:{type:Boolean,default:null},name:String,readonly:{type:Boolean,default:null},modelValue:null,type:String,valueComparator:{type:Function,default:zs},...At(),...Ps(),...Dn()},"SelectionControlGroup"),Are=He({...jS({defaultsTarget:"VSelectionControl"})},"VSelectionControlGroup"),kre=nt()({name:"VSelectionControlGroup",props:Are(),emits:{"update:modelValue":e=>!0},setup(e,t){let{slots:n}=t;
72const r=Qt(e,"modelValue"),s=Ds(),i=Ae(()=>e.id||`v-selection-control-group-${s}`),o=Ae(()=>e.name||i.value),a=new Set;return Cn(B8,{modelValue:r,forceUpdate:()=>{a.forEach(l=>l())},onForceUpdate:l=>{a.add(l),qn(()=>{a.delete(l)})}}),Ni({[e.defaultsTarget]:{color:Ae(()=>e.color),disabled:Ae(()=>e.disabled),density:Ae(()=>e.density),error:Ae(()=>e.error),inline:Ae(()=>e.inline),modelValue:r,multiple:Ae(()=>!!e.multiple||e.multiple==null&&Array.isArray(r.value)),name:o,falseIcon:Ae(()=>e.falseIcon),trueIcon:Ae(()=>e.trueIcon),readonly:Ae(()=>e.readonly),ripple:Ae(()=>e.ripple),type:Ae(()=>e.type),valueComparator:Ae(()=>e.valueComparator)}}),ut(()=>L("div",{class:Ie(["v-selection-control-group",{"v-selection-control-group--inline":e.inline},e.class]),style:Qe(e.style),role:e.type==="radio"?"radiogroup":void 0},[n.default?.()])),{}}}),yy=He({label:String,baseColor:String,trueValue:null,falseValue:null,value:null,...At(),...jS()},"VSelectionControl");function Ire(e){const t=mt(B8,void 0),{densityClasses:n}=vi(e),r=Qt(e,"modelValue"),s=F(()=>e.trueValue!==void 0?e.trueValue:e.value!==void 0?e.value:!0),i=F(()=>e.falseValue!==void 0?e.falseValue:!1),o=F(()=>!!e.multiple||e.multiple==null&&Array.isArray(r.value)),a=F({get(){const h=t?t.modelValue.value:r.value;return o.value?As(h).some(p=>e.valueComparator(p,s.value)):e.valueComparator(h,s.value)},set(h){if(e.readonly)return;const p=h?s.value:i.value;let m=p;o.value&&(m=h?[...As(r.value),p]:As(r.value).filter(v=>!e.valueComparator(v,s.value))),t?t.modelValue.value=m:r.value=m}}),{textColorClasses:l,textColorStyles:u}=Gs(()=>{if(!(e.error||e.disabled))return a.value?e.color:e.baseColor}),{backgroundColorClasses:c,backgroundColorStyles:d}=_r(()=>a.value&&!e.error&&!e.disabled?e.color:e.baseColor),f=F(()=>a.value?e.trueIcon:e.falseIcon);return{group:t,densityClasses:n,trueValue:s,falseValue:i,model:a,textColorClasses:l,textColorStyles:u,backgroundColorClasses:c,backgroundColorStyles:d,icon:f}}const Su=nt()({name:"VSelectionControl",directives:{vRipple:ho},inheritAttrs:!1,props:yy(),emits:{"update:modelValue":e=>!0},setup(e,t){let{attrs:n,slots:r}=t;const{group:s,densityClasses:i,icon:o,model:a,textColorClasses:l,textColorStyles:u,backgroundColorClasses:c,backgroundColorStyles:d,trueValue:f}=Ire(e),h=Ds(),p=Ze(!1),m=Ze(!1),v=M(),x=Ae(()=>e.id||`input-${h}`),g=Ae(()=>!e.disabled&&!e.readonly);s?.onForceUpdate(()=>{v.value&&(v.value.checked=a.value)});function y(T){g.value&&(p.value=!0,Rv(T.target,":focus-visible")!==!1&&(m.value=!0))}function _(){p.value=!1,m.value=!1}function E(T){T.stopPropagation()}function w(T){if(!g.value){v.value&&(v.value.checked=a.value);return}e.readonly&&s&&tt(()=>s.forceUpdate()),a.value=T.target.checked}return ut(()=>{const T=r.label?r.label({label:e.label,props:{for:x.value}}):e.label,[C,I]=dd(n),k=L("input",Ve({ref:v,checked:a.value,disabled:!!e.disabled,id:x.value,onBlur:_,onFocus:y,onInput:w,"aria-disabled":!!e.disabled,"aria-label":e.label,type:e.type,value:f.value,name:e.name,"aria-checked":e.type==="checkbox"?a.value:void 0},I),null);return L("div",Ve({class:["v-selection-control",{"v-selection-control--dirty":a.value,"v-selection-control--disabled":e.disabled,"v-selection-control--error":e.error,"v-selection-control--focused":p.value,"v-selection-control--focus-visible":m.value,"v-selection-control--inline":e.inline},i.value,e.class]},C,{style:e.style}),[L("div",{class:Ie(["v-selection-control__wrapper",l.value]),style:Qe(u.value)},[r.default?.({backgroundColorClasses:c,backgroundColorStyles:d}),pn(L("div",{class:Ie(["v-selection-control__input"])},[r.input?.({model:a,textColorClasses:l,textColorStyles:u,backgroundColorClasses:c,backgroundColorStyles:d,inputNode:k,icon:o.value,props:{onFocus:y,onBlur:_,id:x.value}})??L(se,null,[o.value&&S(de,{key:"icon",icon:o.value},null),k])]),[[ho,!e.disabled&&!e.readonly&&e.ripple,null,{center:!0,circle:!0}]])]),T&&S(fy,{for:x.value,onClick:E},{default:()=>[T]})])}),{isFocused:p,input:v}}}),N8=He({indeterminate:Boolean,indeterminateIcon:{type:jt,default:"$checkboxIndeterminate"},...yy({falseIcon:"$checkboxOff",trueIcon:"$checkboxOn"})},"VCheckboxBtn"),Xv=nt()({name:"VCheckboxBtn",props:N8(),emits:{"update:modelValue":e=>!0,"update:indeterminate":e=>!0},setup(e,t){let{slots:n}=t;
72const r=Qt(e,"indeterminate"),s=Qt(e,"modelValue");function i(l){r.value&&(r.value=!1)}const o=Ae(()=>r.value?e.indeterminateIcon:e.falseIcon),a=Ae(()=>r.value?e.indeterminateIcon:e.trueIcon);return ut(()=>{const l=ps(Su.filterProps(e),["modelValue"]);return S(Su,Ve(l,{modelValue:s.value,"onUpdate:modelValue":[u=>s.value=u,i],class:["v-checkbox-btn",e.class],style:e.style,type:"checkbox",falseIcon:o.value,trueIcon:a.value,"aria-checked":r.value?"mixed":void 0}),n)}),{}}}),Lre=He({...Nu(),...ps(N8(),["inline"])},"VCheckbox"),Dre=nt()({name:"VCheckbox",inheritAttrs:!1,props:Lre(),emits:{"update:modelValue":e=>!0,"update:focused":e=>!0},setup(e,t){let{attrs:n,slots:r}=t;const s=Qt(e,"modelValue"),{isFocused:i,focus:o,blur:a}=yd(e),l=M(),u=Ds();return ut(()=>{const[c,d]=dd(n),f=Vi.filterProps(e),h=Xv.filterProps(e);return S(Vi,Ve({ref:l,class:["v-checkbox",e.class]},c,f,{modelValue:s.value,"onUpdate:modelValue":p=>s.value=p,id:e.id||`checkbox-${u}`,focused:i.value,style:e.style}),{...r,default:p=>{let{id:m,messagesId:v,isDisabled:x,isReadonly:g,isValid:y}=p;return S(Xv,Ve(h,{id:m.value,"aria-describedby":v.value,disabled:x.value,readonly:g.value},d,{error:y.value===!1,modelValue:s.value,"onUpdate:modelValue":_=>s.value=_,onFocus:o,onBlur:a}),r)}})}),yi({},l)}}),Pre=He({id:String,submenu:Boolean,disableInitialFocus:Boolean,...ps(hy({closeDelay:250,closeOnContentClick:!0,locationStrategy:"connected",location:void 0,openDelay:300,scrim:!1,scrollStrategy:"reposition",transition:{component:wS}}),["absolute"])},"VMenu"),Ri=nt()({name:"VMenu",props:Pre(),emits:{"update:modelValue":e=>!0},setup(e,t){let{slots:n}=t;const r=Qt(e,"modelValue"),{scopeId:s}=Bh(),{isRtl:i}=Jr(),o=Ds(),a=Ae(()=>e.id||`v-menu-${o}`),l=M(),u=mt(r2,null),c=Ze(new Set);Cn(r2,{register(){c.value.add(o)},unregister(){c.value.delete(o)},closeParents(y){setTimeout(()=>{!c.value.size&&!e.persistent&&(y==null||l.value?.contentEl&&!aX(y,l.value.contentEl))&&(r.value=!1,u?.closeParents())},40)}}),cn(()=>{u?.unregister(),document.removeEventListener("focusin",p)}),La(()=>r.value=!1);let d=!1,f=-1;async function h(){d=!0,f=window.setTimeout(()=>{d=!1},100)}async function p(y){const _=y.relatedTarget,E=y.target;await tt(),r.value&&_!==E&&l.value?.rootEl&&l.value?.contentEl&&l.value?.localTop&&![document,l.value.rootEl].includes(E)&&!l.value.rootEl.contains(E)&&(d?!e.openOnHover&&!l.value.activatorEl?.contains(E)&&(r.value=!1):(Nc(l.value.contentEl)[0]?.focus(),document.removeEventListener("pointerdown",h)))}be(r,y=>{y?(u?.register(),on&&!e.disableInitialFocus&&(document.addEventListener("pointerdown",h),document.addEventListener("focusin",p,{once:!0}))):(u?.unregister(),on&&(clearTimeout(f),document.removeEventListener("pointerdown",h),document.removeEventListener("focusin",p)))},{immediate:!0});function m(y){u?.closeParents(y)}function v(y){if(!e.disabled)if(y.key==="Tab"||y.key==="Enter"&&!e.closeOnContentClick){if(y.key==="Enter"&&(y.target instanceof HTMLTextAreaElement||y.target instanceof HTMLInputElement&&y.target.closest("form")))return;y.key==="Enter"&&y.preventDefault(),W3(Nc(l.value?.contentEl,!1),y.shiftKey?"prev":"next",E=>E.tabIndex>=0)||(r.value=!1,l.value?.activatorEl?.focus())}else e.submenu&&y.key===(i.value?"ArrowRight":"ArrowLeft")&&(r.value=!1,l.value?.activatorEl?.focus())}function x(y){if(e.disabled)return;const _=l.value?.contentEl;_&&r.value?y.key==="ArrowDown"?(y.preventDefault(),y.stopImmediatePropagation(),gf(_,"next")):y.key==="ArrowUp"?(y.preventDefault(),y.stopImmediatePropagation(),gf(_,"prev")):e.submenu&&(y.key===(i.value?"ArrowRight":"ArrowLeft")?r.value=!1:y.key===(i.value?"ArrowLeft":"ArrowRight")&&(y.preventDefault(),gf(_,"first"))):(e.submenu?y.key===(i.value?"ArrowLeft":"ArrowRight"):["ArrowDown","ArrowUp"].includes(y.key))&&(r.value=!0,y.preventDefault(),setTimeout(()=>setTimeout(()=>x(y))))}const g=F(()=>Ve({"aria-haspopup":"menu","aria-expanded":String(r.value),"aria-controls":a.value,"aria-owns":a.value,onKeydown:x},e.activatorProps));return ut(()=>{const y=bu.filterProps(e);return S(bu,Ve({ref:l,id:a.value,class:["v-menu",e.class],style:e.style},y,{modelValue:r.value,"onUpdate:modelValue":_=>r.value=_,absolute:!0,activatorProps:g.value,location:e.location??(e.submenu?"end":"bottom"),"onClick:outside":m,onKeydown:v},s),{activator:n.activator,default:function(){for(var _=arguments.length,E=new Array(_),w=0;w<_;w++)E[w]=arguments[w];return S(sn,{root:"VMenu"},{default:()=>[n.default?.(...E)]})}})}),yi({id:a,ΨopenChildren:c},l)}}),Rre=He({renderless:Boolean,...At()},"VVirtualScrollItem"),Ore=nt()({name:"VVirtualScrollItem",inheritAttrs:!1,props:Rre(),emits:{"update:height":e=>!0},setup(e,t){let{attrs:n,emit:r,slots:s}=t;const{resizeRef:i,contentRect:o}=Ia(void 0,"border");be(()=>o.value?.height,a=>{a!=null&&r("update:height",a)}),ut(()=>e.renderless?L(se,null,[s.default?.({itemRef:i})]):L("div",Ve({ref:i,class:["v-virtual-scroll__item",e.class],style:e.style},n),[s.default?.()]))}}),$re=-1,Mre=1,W1=100,Fre=He({itemHeight:{type:[Number,String],default:null},itemKey:{type:[String,Array,Function],default:null},height:[Number,String]},"virtual");function Bre(e,t){const n=fd(),r=Ze(0);zn(()=>{r.value=parseFloat(e.itemHeight||0)});const s=Ze(0),i=Ze(Math.ceil((parseInt(e.height)||n.height.value)/(r.value||16))||1),o=Ze(0),a=Ze(0),l=M(),u=M();let c=0;const{resizeRef:d,contentRect:f}=Ia();zn(()=>{d.value=l.value});const h=F(()=>l.value===document.documentElement?n.height.value:f.value?.height||parseInt(e.height)||0),p=F(()=>!!(l.value&&u.value&&h.value&&r.value));let m=Array.from({length:t.value.length}),v=Array.from({length:t.value.length});const x=Ze(0);let g=-1;function y(re){return m[re]||r.value}const _=nX(()=>{const re=performance.now();v[0]=0;const W=t.value.length;for(let X=1;X<=W;X++)v[X]=(v[X-1]||0)+y(X-1);x.value=Math.max(x.value,performance.now()-re)},x),E=be(p,re=>{re&&(E(),c=u.value.offsetTop,_.immediate(),U(),~g&&tt(()=>{on&&window.requestAnimationFrame(()=>{V(g),g=-1})}))});qn(()=>{_.clear()});function w(re,W){const X=m[re],Q=r.value;r.value=Q?Math.min(r.value,W):W,(X!==W||Q!==r.value)&&(m[re]=W,_())}function T(re){re=Yr(re,0,t.value.length);const W=Math.floor(re),X=re%1,Q=W+1,le=v[W]||0,ve=v[Q]||le;return le+(ve-le)*X}function C(re){return Nre(v,re)}let I=0,k=0,$=0;be(h,(re,W)=>{W&&(U(),re<W&&requestAnimationFrame(()=>{k=0,U()}))});let R=-1;function D(){if(!l.value||!u.value)return;const re=l.value.scrollTop,W=performance.now();W-$>500?(k=Math.sign(re-I),c=u.value.offsetTop):k=re-I,I=re,$=W,window.clearTimeout(R),R=window.setTimeout(O,500),U()}function O(){!l.value||!u.value||(k=0,$=0,window.clearTimeout(R),U())}let B=-1;function U(){cancelAnimationFrame(B),B=requestAnimationFrame(N)}function N(){if(!l.value||!h.value||!r.value)return;const re=I-c,W=Math.sign(k),X=Math.max(0,re-W1),Q=Yr(C(X),0,t.value.length),le=re+h.value+W1,ve=Yr(C(le)+1,Q+1,t.value.length);if((W!==$re||Q<s.value)&&(W!==Mre||ve>i.value)){const oe=T(s.value)-T(Q),K=T(ve)-T(i.value);Math.max(oe,K)>W1?(s.value=Q,i.value=ve):(Q<=0&&(s.value=Q),ve>=t.value.length&&(i.value=ve))}o.value=T(s.value),a.value=T(t.value.length)-T(i.value)}function V(re){const W=T(re);!l.value||re&&!W?g=re:l.value.scrollTop=W}const H=F(()=>t.value.slice(s.value,i.value).map((re,W)=>{const X=W+s.value;return{raw:re,index:X,key:Ii(re,e.itemKey,X)}}));return be(t,()=>{m=Array.from({length:t.value.length}),v=Array.from({length:t.value.length}),_.immediate(),U()},{deep:1}
72),{calculateVisibleItems:U,containerRef:l,markerRef:u,computedItems:H,paddingTop:o,paddingBottom:a,scrollToIndex:V,handleScroll:D,handleScrollend:O,handleItemResize:w}}function Nre(e,t){let n=e.length-1,r=0,s=0,i=null,o=-1;if(e[n]<t)return n;for(;r<=n;)if(s=r+n>>1,i=e[s],i>t)n=s-1;else if(i<t)o=s,r=s+1;else return i===t?s:r;return o}const Vre=He({items:{type:Array,default:()=>[]},renderless:Boolean,...Fre(),...At(),...ms()},"VVirtualScroll"),V8=nt()({name:"VVirtualScroll",props:Vre(),setup(e,t){let{slots:n}=t;const r=fr("VVirtualScroll"),{dimensionStyles:s}=vs(e),{calculateVisibleItems:i,containerRef:o,markerRef:a,handleScroll:l,handleScrollend:u,handleItemResize:c,scrollToIndex:d,paddingTop:f,paddingBottom:h,computedItems:p}=Bre(e,Ae(()=>e.items));return jo(()=>e.renderless,()=>{function m(){const x=(arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1)?"addEventListener":"removeEventListener";o.value===document.documentElement?(document[x]("scroll",l,{passive:!0}),document[x]("scrollend",u)):(o.value?.[x]("scroll",l,{passive:!0}),o.value?.[x]("scrollend",u))}ft(()=>{o.value=oS(r.vnode.el,!0),m(!0)}),qn(m)}),ut(()=>{const m=p.value.map(v=>S(Ore,{key:v.key,renderless:e.renderless,"onUpdate:height":x=>c(v.index,x)},{default:x=>n.default?.({item:v.raw,index:v.index,...x})}));return e.renderless?L(se,null,[L("div",{ref:a,class:"v-virtual-scroll__spacer",style:{paddingTop:ht(f.value)}},null),m,L("div",{class:"v-virtual-scroll__spacer",style:{paddingBottom:ht(h.value)}},null)]):L("div",{ref:o,class:Ie(["v-virtual-scroll",e.class]),onScrollPassive:l,onScrollend:u,style:Qe([s.value,e.style])},[L("div",{ref:a,class:"v-virtual-scroll__container",style:{paddingTop:ht(f.value),paddingBottom:ht(h.value)}},[m])])}),{calculateVisibleItems:i,scrollToIndex:d}}});function U8(e,t){const n=Ze(!1);let r;function s(a){cancelAnimationFrame(r),n.value=!0,r=requestAnimationFrame(()=>{r=requestAnimationFrame(()=>{n.value=!1})})}async function i(){await new Promise(a=>requestAnimationFrame(a)),await new Promise(a=>requestAnimationFrame(a)),await new Promise(a=>requestAnimationFrame(a)),await new Promise(a=>{if(n.value){const l=be(n,()=>{l(),a()})}else a()})}async function o(a){if(a.key==="Tab"&&t.value?.focus(),!["PageDown","PageUp","Home","End"].includes(a.key))return;const l=e.value?.$el;if(!l)return;(a.key==="Home"||a.key==="End")&&l.scrollTo({top:a.key==="Home"?0:l.scrollHeight,behavior:"smooth"}),await i();const u=l.querySelectorAll(":scope > :not(.v-virtual-scroll__spacer)");if(a.key==="PageDown"||a.key==="Home"){const c=l.getBoundingClientRect().top;for(const d of u)if(d.getBoundingClientRect().top>=c){d.focus();break}}else{const c=l.getBoundingClientRect().bottom;for(const d of[...u].reverse())if(d.getBoundingClientRect().bottom<=c){d.focus();break}}}return{onScrollPassive:s,onKeydown:o}}const Ure=He({closeText:{type:String,default:"$vuetify.close"},openText:{type:String,default:"$vuetify.open"}},"autocomplete");function j8(e,t){const{t:n}=po(),r=Ds(),s=F(()=>`menu-${r}`),i=Ae(()=>qr(t)),o=Ae(()=>s.value),a=Ae(()=>n(qr(t)?e.closeText:e.openText));return{menuId:s,ariaExpanded:i,ariaControls:o,ariaLabel:a}}const z8=He({chips:Boolean,closableChips:Boolean,eager:Boolean,hideNoData:Boolean,hideSelected:Boolean,listProps:{type:Object},menu:Boolean,menuIcon:{type:jt,default:"$dropdown"},menuProps:{type:Object},multiple:Boolean,noDataText:{type:String,default:"$vuetify.noDataText"},openOnClear:Boolean,itemColor:String,noAutoScroll:Boolean,...Ure(),...v8({itemChildren:!1})},"Select"),jre=He({...z8(),...ps(AS({modelValue:null,role:"combobox"}),["validationValue","dirty","appendInnerIcon"]),...Bu({transition:{component:wS}})}
72,"VSelect"),oo=nt()({name:"VSelect",props:jre(),emits:{"update:focused":e=>!0,"update:modelValue":e=>!0,"update:menu":e=>!0},setup(e,t){let{slots:n}=t;const{t:r}=po(),s=M(),i=M(),o=M(),{items:a,transformIn:l,transformOut:u}=y8(e),c=Qt(e,"modelValue",[],Q=>l(Q===null?[null]:As(Q)),Q=>{const le=u(Q);return e.multiple?le:le[0]??null}),d=F(()=>typeof e.counterValue=="function"?e.counterValue(c.value):typeof e.counterValue=="number"?e.counterValue:c.value.length),f=cy(e),h=F(()=>c.value.map(Q=>Q.value)),p=Ze(!1);let m="",v=-1,x;const g=F(()=>e.hideSelected?a.value.filter(Q=>!c.value.some(le=>(e.valueComparator||zs)(le,Q))):a.value),y=F(()=>e.hideNoData&&!g.value.length||f.isReadonly.value||f.isDisabled.value),_=Qt(e,"menu"),E=F({get:()=>_.value,set:Q=>{_.value&&!Q&&i.value?.ΨopenChildren.size||Q&&y.value||(_.value=Q)}}),{menuId:w,ariaExpanded:T,ariaControls:C,ariaLabel:I}=j8(e,E),k=F(()=>({...e.menuProps,activatorProps:{...e.menuProps?.activatorProps||{},"aria-haspopup":"listbox"}})),$=M(),R=U8($,s);function D(Q){e.openOnClear&&(E.value=!0)}function O(){y.value||(E.value=!E.value)}function B(Q){Ov(Q)&&U(Q)}function U(Q){if(!Q.key||f.isReadonly.value)return;["Enter"," ","ArrowDown","ArrowUp","Home","End"].includes(Q.key)&&Q.preventDefault(),["Enter","ArrowDown"," "].includes(Q.key)&&(E.value=!0),["Escape","Tab"].includes(Q.key)&&(E.value=!1),Q.key==="Home"?$.value?.focus("first"):Q.key==="End"&&$.value?.focus("last");const le=1e3;if(!Ov(Q))return;const ve=performance.now();ve-x>le&&(m="",v=-1),m+=Q.key.toLowerCase(),x=ve;const oe=g.value;function K(){let _e=ee();return _e||m.at(-1)===m.at(-2)&&(m=m.slice(0,-1),_e=ee(),_e)||(v=-1,_e=ee(),_e)?_e:(m=Q.key.toLowerCase(),ee())}function ee(){for(let _e=v+1;_e<oe.length;_e++){const J=oe[_e];if(J.title.toLowerCase().startsWith(m))return[J,_e]}}const ae=K();if(!ae)return;const[ue,Ee]=ae;v=Ee,$.value?.focus(Ee),e.multiple||(c.value=[ue])}function N(Q){let le=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0;if(!Q.props.disabled)if(e.multiple){const ve=c.value.findIndex(K=>(e.valueComparator||zs)(K.value,Q.value)),oe=le??!~ve;if(~ve){const K=oe?[...c.value,Q]:[...c.value];K.splice(ve,1),c.value=K}else oe&&(c.value=[...c.value,Q])}else{const ve=le!==!1;c.value=ve?[Q]:[],tt(()=>{E.value=!1})}}function V(Q){$.value?.$el.contains(Q.relatedTarget)||(E.value=!1)}function H(){e.eager&&o.value?.calculateVisibleItems()}function re(){p.value&&s.value?.focus()}function W(Q){p.value=!0}function X(Q){if(Q==null)c.value=[];else if(Rv(s.value,":autofill")||Rv(s.value,":-webkit-autofill")){const le=a.value.find(ve=>ve.title===Q);le&&N(le)}else s.value&&(s.value.value="")}return be(E,()=>{if(!e.hideSelected&&E.value&&c.value.length){const Q=g.value.findIndex(le=>c.value.some(ve=>(e.valueComparator||zs)(ve.value,le.value)));on&&!e.noAutoScroll&&window.requestAnimationFrame(()=>{Q>=0&&o.value?.scrollToIndex(Q)})}}),be(a,(Q,le)=>{E.value||p.value&&e.hideNoData&&!le.length&&Q.length&&(E.value=!0)}),ut(()=>{const Q=!!(e.chips||n.chip),le=!!(!e.hideNoData||g.value.length||n["prepend-item"]||n["append-item"]||n["no-data"]),ve=c.value.length>0,oe=St.filterProps(e),K=ve||!p.value&&e.label&&!e.persistentPlaceholder?void 0:e.placeholder;return S(St,Ve({ref:s},oe,{modelValue:c.value.map(ee=>ee.props.value).join(", "),"onUpdate:modelValue":X,focused:p.value,"onUpdate:focused":ee=>p.value=ee,validationValue:c.externalValue,counterValue:d.value,dirty:ve,class:["v-select",{"v-select--active-menu":E.value,"v-select--chips":!!e.chips,[`v-select--${e.multiple?"multiple":"single"}`]:!0,"v-select--selected":c.value.length,"v-select--selection-slot":!!n.selection},e.class],style:e.style,inputmode:"none",placeholder:K,"onClick:clear":D,"onMousedown:control":O,onBlur:V,onKeydown:U,"aria-expanded":T.value,"aria-controls":C.value,"aria-label":I.value,title:I.value}),{...n,default:()=>L(se,null,[S(Ri,Ve({id:w.value,ref:i,modelValue:E.value,"onUpdate:modelValue":ee=>E.value=ee,activator:"parent",contentClass:"v-select__content",disabled:y.value,eager:e.eager,maxHeight:310,openOnClick:!1,closeOnContentClick:!1,transition:e.transition,onAfterEnter:H,onAfterLeave:re},k.value),{default:()=>[le&&S(vr,Ve({ref:$,selected:h.value,selectStrategy:e.multiple?"independent":"single-independent",onMousedown:ee=>ee.preventDefault(),onKeydown:B,onFocusin:W,tabindex:"-1",selectable:!0,"aria-live":"polite","aria-label":`${e.label}-list`,color:e.itemColor??e.color},R,e.listProps),{default:()=>[n["prepend-item"]?.(),!g.value.length&&!e.hideNoData&&(n["no-data"]?.()??S(Rt,{
72key:"no-data",title:r(e.noDataText)},null)),S(V8,{ref:o,renderless:!0,items:g.value,itemKey:"value"},{default:ee=>{let{item:ae,index:ue,itemRef:Ee}=ee;const _e=uX(ae.props),J=Ve(ae.props,{ref:Ee,key:ae.value,onClick:()=>N(ae,null)});return ae.type==="divider"?n.divider?.({props:ae.raw,index:ue})??S(zt,Ve(ae.props,{key:`divider-${ue}`}),null):ae.type==="subheader"?n.subheader?.({props:ae.raw,index:ue})??S(py,Ve(ae.props,{key:`subheader-${ue}`}),null):n.item?.({item:ae,index:ue,props:J})??S(Rt,Ve(J,{role:"option"}),{prepend:Y=>{let{isSelected:fe}=Y;return L(se,null,[e.multiple&&!e.hideSelected?S(Xv,{key:ae.value,modelValue:fe,ripple:!1,tabindex:"-1",onClick:xe=>xe.preventDefault()},null):void 0,_e.prependAvatar&&S(rr,{image:_e.prependAvatar},null),_e.prependIcon&&S(de,{icon:_e.prependIcon},null)])}})}}),n["append-item"]?.()]})]}),c.value.map((ee,ae)=>{function ue(Y){Y.stopPropagation(),Y.preventDefault(),N(ee,!1)}const Ee={"onClick:close":ue,onKeydown(Y){Y.key!=="Enter"&&Y.key!==" "||(Y.preventDefault(),Y.stopPropagation(),ue(Y))},onMousedown(Y){Y.preventDefault(),Y.stopPropagation()},modelValue:!0,"onUpdate:modelValue":void 0},_e=Q?!!n.chip:!!n.selection,J=_e?nS(Q?n.chip({item:ee,index:ae,props:Ee}):n.selection({item:ee,index:ae})):void 0;if(!(_e&&!J))return L("div",{key:ee.value,class:"v-select__selection"},[Q?n.chip?S(sn,{key:"chip-defaults",defaults:{VChip:{closable:e.closableChips,size:"small",text:ee.title}}},{default:()=>[J]}):S(kt,Ve({key:"chip",closable:e.closableChips,size:"small",text:ee.title,disabled:ee.props.disabled},Ee),null):J??L("span",{class:"v-select__selection-text"},[ee.title,e.multiple&&ae<c.value.length-1&&L("span",{class:"v-select__selection-comma"},[z(",")])])])})]),"append-inner":function(){for(var ee=arguments.length,ae=new Array(ee),ue=0;ue<ee;ue++)ae[ue]=arguments[ue];return L(se,null,[n["append-inner"]?.(...ae),e.menuIcon?S(de,{class:"v-select__menu-icon",color:s.value?.fieldIconColor,icon:e.menuIcon},null):void 0])}})}),yi({isFocused:p,menu:E,select:N},s)}}),zre=(e,t,n)=>{if(e==null||t==null)return-1;if(!t.length)return 0;e=e.toString().toLocaleLowerCase(),t=t.toString().toLocaleLowerCase();const r=[];let s=e.indexOf(t);for(;~s;)r.push([s,s+t.length]),s=e.indexOf(t,s+t.length);return r.length?r:-1};function q1(e,t){if(!(e==null||typeof e=="boolean"||e===-1))return typeof e=="number"?[[e,e+t.length]]:Array.isArray(e[0])?e:[e]}const Hre=He({customFilter:Function,customKeyFilter:Object,filterKeys:[Array,String],filterMode:{type:String,default:"intersection"},noFilter:Boolean},"filter");function Gre(e,t,n){const r=[],s=n?.default??zre,i=n?.filterKeys?As(n.filterKeys):!1,o=Object.keys(n?.customKeyFilter??{}).length;if(!e?.length)return r;let a=null;e:for(let l=0;l<e.length;l++){const[u,c=u]=As(e[l]),d={},f={};let h=-1;if((t||o>0)&&!n?.noFilter){let p=!1;if(typeof u=="object"){if(u.type==="divider"||u.type==="subheader"){a?.type==="divider"&&u.type==="subheader"&&r.push(a),a={index:l,matches:{},type:u.type};continue}const x=i||Object.keys(c);p=x.length===o;for(const g of x){const y=Ii(c,g),_=n?.customKeyFilter?.[g];if(h=_?_(y,t,u):s(y,t,u),h!==-1&&h!==!1)_?d[g]=q1(h,t):f[g]=q1(h,t);else if(n?.filterMode==="every")continue e}}else h=s(u,t,u),h!==-1&&h!==!1&&(f.title=q1(h,t));const m=Object.keys(f).length,v=Object.keys(d).length;if(!m&&!v||n?.filterMode==="union"&&v!==o&&!m||n?.filterMode==="intersection"&&(v!==o||!m&&o>0&&!p))continue}a&&(r.push(a),a=null),r.push({index:l,matches:{...f,...d}})}return r}function Kre(e,t,n,r){const s=Ze([]),i=Ze(new Map),o=F(()=>b(t));zn(()=>{const l=typeof n=="function"?n():b(n),u=typeof l!="string"&&typeof l!="number"?"":String(l),c=Gre(o.value,u,{customKeyFilter:{...e.customKeyFilter,...b(r?.customKeyFilter)},default:e.customFilter,filterKeys:e.filterKeys,filterMode:e.filterMode,noFilter:e.noFilter}),d=b(t),f=[],h=new Map;c.forEach(p=>{let{index:m,matches:v}=p;const x=d[m];f.push(x),h.set(x.value,v)}),s.value=f,i.value=h});function a(l){return i.value.get(l.value)}return{filteredItems:s,filteredMatches:i,getMatches:a}}function Wre(e,t,n){return n==null||!n.length?t:n.map((r,s)=>{const i=s===0?0:n[s-1][1],o=[L("span",{class:Ie(`${e}__unmask`)},[t.slice(i,r[0])]),L("span",{class:Ie(`${e}__mask`)},[t.slice(r[0],r[1])])];return s===n.length-1&&o.push(L("span",{class:Ie(`${e}__unmask`)},[t.slice(r[1])])),L(se,null,[o])})}const qre=He({alwaysFilter:Boolean,autoSelectFirst:{type:[Boolean,String]},clearOnSelect:{type:Boolean,default:!0},delimiters:Array,...Hre({filterKeys:["title"]}),...z8({hideNoData:!0,returnObject:!0}),...ps(AS({modelValue:null,role:"combobox"}),["validationValue","dirty","appendInnerIcon"])},"VCombobox"),mk=nt()({name:"VCombobox",props:qre(),emits:{"update:focused":e=>!0,"update:modelValue":e=>!0,"update:search":e=>!0,"update:menu":e=>!0},setup(e,t){let{emit:n,slots:r}=t;const{t:s}
72=po(),i=M(),o=Ze(!1),a=Ze(!0),l=Ze(!1),u=M(),c=M(),d=Ze(-1);let f=!1;const{items:h,transformIn:p,transformOut:m}=y8(e),{textColorClasses:v,textColorStyles:x}=Gs(()=>i.value?.color),g=Qt(e,"modelValue",[],Y=>p(As(Y)),Y=>{const fe=m(Y);return e.multiple?fe:fe[0]??null}),y=cy(e),_=F(()=>!!(e.chips||r.chip)),E=F(()=>_.value||!!r.selection),w=Ze(!e.multiple&&!E.value?g.value[0]?.title??"":""),T=Ze(null),C=F({get:()=>w.value,set:async Y=>{if(w.value=Y??"",Y===null||Y===""&&!e.multiple&&!E.value?g.value=[]:!e.multiple&&!E.value&&(g.value=[ro(e,Y)],tt(()=>c.value?.scrollToIndex(0))),Y&&e.multiple&&e.delimiters?.length){const fe=e.delimiters.map(lX).join("|"),xe=Y.split(new RegExp(`(?:${fe})+`));if(xe.length>1){for(let ne of xe)ne=ne.trim(),ne&&(Ee(ro(e,ne)),await tt());w.value=""}}Y||(d.value=-1),a.value=!Y}}),I=F(()=>typeof e.counterValue=="function"?e.counterValue(g.value):typeof e.counterValue=="number"?e.counterValue:e.multiple?g.value.length:C.value.length),{filteredItems:k,getMatches:$}=Kre(e,h,()=>T.value??(e.alwaysFilter||!a.value?C.value:"")),R=F(()=>e.hideSelected&&T.value===null?k.value.filter(Y=>!g.value.some(fe=>fe.value===Y.value)):k.value),D=F(()=>e.hideNoData&&!R.value.length||y.isReadonly.value||y.isDisabled.value),O=Qt(e,"menu"),B=F({get:()=>O.value,set:Y=>{O.value&&!Y&&u.value?.ΨopenChildren.size||Y&&D.value||(O.value=Y)}}),{menuId:U,ariaExpanded:N,ariaControls:V,ariaLabel:H}=j8(e,B);be(w,Y=>{f?tt(()=>f=!1):o.value&&!B.value&&(B.value=!0),n("update:search",Y)}),be(g,Y=>{!e.multiple&&!E.value&&(w.value=Y[0]?.title??"")});const re=F(()=>g.value.map(Y=>Y.value)),W=F(()=>(e.autoSelectFirst===!0||e.autoSelectFirst==="exact"&&C.value===R.value[0]?.title)&&R.value.length>0&&!a.value&&!l.value),X=M(),Q=U8(X,i);function le(Y){f=!0,tt(()=>f=!1),e.openOnClear&&(B.value=!0)}function ve(){D.value||(B.value=!0)}function oe(Y){D.value||(o.value&&(Y.preventDefault(),Y.stopPropagation()),B.value=!B.value)}function K(Y){(Ov(Y)||Y.key==="Backspace")&&i.value?.focus()}function ee(Y){if(tX(Y)||y.isReadonly.value)return;const fe=i.value?.selectionStart,xe=g.value.length;if(["Enter","ArrowDown","ArrowUp"].includes(Y.key)&&Y.preventDefault(),["Enter","ArrowDown"].includes(Y.key)&&(B.value=!0),["Escape"].includes(Y.key)&&(B.value=!1),W.value&&["Enter","Tab"].includes(Y.key)&&!g.value.some(ne=>{let{value:ie}=ne;return ie===R.value[0].value})&&Ee(k.value[0]),Y.key==="ArrowDown"&&W.value&&X.value?.focus("next"),Y.key==="Enter"&&C.value&&(Ee(ro(e,C.value),!0,!0),E.value&&(w.value="")),["Backspace","Delete"].includes(Y.key)){if(!e.multiple&&E.value&&g.value.length>0&&!C.value)return Ee(g.value[0],!1);if(~d.value){Y.preventDefault();const ne=d.value;Ee(g.value[d.value],!1),d.value=ne>=xe-1?xe-2:ne}else Y.key==="Backspace"&&!C.value&&(d.value=xe-1);return}if(e.multiple)if(Y.key==="ArrowLeft"){if(d.value<0&&fe&&fe>0)return;const ne=d.value>-1?d.value-1:xe-1;g.value[ne]?d.value=ne:(d.value=-1,i.value?.setSelectionRange(C.value.length,C.value.length))}else if(Y.key==="ArrowRight"){if(d.value<0)return;const ne=d.value+1;g.value[ne]?d.value=ne:(d.value=-1,i.value?.setSelectionRange(0,0))}else~d.value&&Ov(Y)&&(d.value=-1)}function ae(){e.eager&&c.value?.calculateVisibleItems()}function ue(){o.value&&i.value?.focus(),a.value=!0,T.value=null}function Ee(Y){let fe=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0,xe=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;if(!(!Y||Y.props.disabled))if(e.multiple){const ne=g.value.findIndex(Le=>(e.valueComparator||zs)(Le.value,Y.value)),ie=fe??!~ne;if(~ne){const Le=ie?[...g.value,Y]:[...g.value];Le.splice(ne,1),g.value=Le}else ie&&(g.value=[...g.value,Y]);e.clearOnSelect&&(C.value="")}else{const ne=fe!==!1;g.value=ne?[Y]:[],(!a.value||e.alwaysFilter)&&w.value&&(T.value=w.value),w.value=ne&&!E.value?Y.title:"",tt(()=>{B.value=xe,a.value=!0})}}function _e(Y){o.value=!0,setTimeout(()=>{l.value=!0})}function J(Y){l.value=!1}return be(o,(Y,fe)=>{if(!(Y||Y===fe)&&(d.value=-1,B.value=!1,C.value)){if(e.multiple){Ee(ro(e,C.value));return}if(!E.value)return;g.value.some(xe=>{let{title:ne}=xe;return ne===C.value})?w.value="":Ee(ro(e,C.value))}}),be(B,Y=>
72{if(!e.hideSelected&&Y&&g.value.length&&a.value){const fe=R.value.findIndex(xe=>g.value.some(ne=>(e.valueComparator||zs)(ne.value,xe.value)));on&&window.requestAnimationFrame(()=>{fe>=0&&c.value?.scrollToIndex(fe)})}Y&&(T.value=null)}),be(h,(Y,fe)=>{B.value||o.value&&!fe.length&&Y.length&&(B.value=!0)}),ut(()=>{const Y=!!(!e.hideNoData||R.value.length||r["prepend-item"]||r["append-item"]||r["no-data"]),fe=g.value.length>0,xe=St.filterProps(e);return S(St,Ve({ref:i},xe,{modelValue:C.value,"onUpdate:modelValue":ne=>C.value=ne,focused:o.value,"onUpdate:focused":ne=>o.value=ne,validationValue:g.externalValue,counterValue:I.value,dirty:fe,class:["v-combobox",{"v-combobox--active-menu":B.value,"v-combobox--chips":!!e.chips,"v-combobox--selection-slot":!!E.value,"v-combobox--selecting-index":d.value>-1,[`v-combobox--${e.multiple?"multiple":"single"}`]:!0},e.class],style:e.style,readonly:y.isReadonly.value,placeholder:fe?void 0:e.placeholder,"onClick:clear":le,"onMousedown:control":ve,onKeydown:ee,"aria-expanded":N.value,"aria-controls":V.value}),{...r,default:()=>L(se,null,[S(Ri,Ve({id:U.value,ref:u,modelValue:B.value,"onUpdate:modelValue":ne=>B.value=ne,activator:"parent",contentClass:"v-combobox__content",disabled:D.value,eager:e.eager,maxHeight:310,openOnClick:!1,closeOnContentClick:!1,onAfterEnter:ae,onAfterLeave:ue},e.menuProps),{default:()=>[Y&&S(vr,Ve({ref:X,filterable:!0,selected:re.value,selectStrategy:e.multiple?"independent":"single-independent",onMousedown:ne=>ne.preventDefault(),selectable:!0,onKeydown:K,onFocusin:_e,onFocusout:J,tabindex:"-1","aria-live":"polite",color:e.itemColor??e.color},Q,e.listProps),{default:()=>[r["prepend-item"]?.(),!R.value.length&&!e.hideNoData&&(r["no-data"]?.()??S(Rt,{key:"no-data",title:s(e.noDataText)},null)),S(V8,{ref:c,renderless:!0,items:R.value,itemKey:"value"},{default:ne=>{let{item:ie,index:Le,itemRef:we}=ne;const Be=Ve(ie.props,{ref:we,key:ie.value,active:W.value&&Le===0?!0:void 0,onClick:()=>Ee(ie,null)});return ie.type==="divider"?r.divider?.({props:ie.raw,index:Le})??S(zt,Ve(ie.props,{key:`divider-${Le}`}),null):ie.type==="subheader"?r.subheader?.({props:ie.raw,index:Le})??S(py,Ve(ie.props,{key:`subheader-${Le}`}),null):r.item?.({item:ie,index:Le,props:Be})??S(Rt,Ve(Be,{role:"option"}),{prepend:Pe=>{let{isSelected:qe}=Pe;return L(se,null,[e.multiple&&!e.hideSelected?S(Xv,{key:ie.value,modelValue:qe,ripple:!1,tabindex:"-1",onClick:Me=>Me.preventDefault()},null):void 0,ie.props.prependAvatar&&S(rr,{image:ie.props.prependAvatar},null),ie.props.prependIcon&&S(de,{icon:ie.props.prependIcon},null)])},title:()=>a.value?ie.title:Wre("v-combobox",ie.title,$(ie)?.title)})}}),r["append-item"]?.()]})]}),g.value.map((ne,ie)=>{function Le(qe){qe.stopPropagation(),qe.preventDefault(),Ee(ne,!1)}const we={"onClick:close":Le,onKeydown(qe){qe.key!=="Enter"&&qe.key!==" "||(qe.preventDefault(),qe.stopPropagation(),Le(qe))},onMousedown(qe){qe.preventDefault(),qe.stopPropagation()},modelValue:!0,"onUpdate:modelValue":void 0},Be=_.value?!!r.chip:!!r.selection,Pe=Be?nS(_.value?r.chip({item:ne,index:ie,props:we}):r.selection({item:ne,index:ie})):void 0;if(!(Be&&!Pe))return L("div",{key:ne.value,class:Ie(["v-combobox__selection",ie===d.value&&["v-combobox__selection--selected",v.value]]),style:Qe(ie===d.value?x.value:{})},[_.value?r.chip?S(sn,{key:"chip-defaults",defaults:{VChip:{closable:e.closableChips,size:"small",text:ne.title}}},{default:()=>[Pe]}):S(kt,Ve({key:"chip",closable:e.closableChips,size:"small",text:ne.title,disabled:ne.props.disabled},we),null):Pe??L("span",{class:"v-combobox__selection-text"},[ne.title,e.multiple&&ie<g.value.length-1&&L("span",{class:"v-combobox__selection-comma"},[z(",")])])])})]),"append-inner":function(){for(var ne=arguments.length,ie=new Array(ne),Le=0;Le<ne;Le++)ie[Le]=arguments[Le];return L(se,null,[r["append-inner"]?.(...ie),(!e.hideNoData||e.items.length)&&e.menuIcon?S(de,{class:"v-combobox__menu-icon",color:i.value?.fieldIconColor,icon:e.menuIcon,onMousedown:oe,onClick:iX,"aria-label":H.value,title:H.value,tabindex:"-1"},null):void 0])}})}),yi({isFocused:o,isPristine:a,menu:B,search:C,selectionIndex:d,filteredItems:k,select:Ee},i)}}),Yre=He({...yy({falseIcon:"$radioOff",trueIcon:"$radioOn"})},"VRadio"),jc=nt()({name:"VRadio",props:Yre(),setup(e,t){let{slots:n}=t;return ut(()=>{const r=Su.filterProps(e);return S(Su,Ve(r,{class:["v-radio",e.class],style:e.style,type:"radio"}),n)}),{}}}),Xre=He({height:{type:[Number,String],default:"auto"},...Nu(),...ps(jS(),["multiple"]),trueIcon:{type:jt,default:"$radioOn"},falseIcon:{type:jt,default:"$radioOff"},type:{type:String,default:"radio"}},"VRadioGroup"),xy=nt()({name:"VRadioGroup",inheritAttrs:!1,props:Xre(),emits:{"update:modelValue":e=>!0},setup(e,t){let{attrs:n,slots:r}=t;const s=Ds(),i=F(()=>e.id||`radio-group-${s}`),o=Qt(e,"modelValue"),a=M();return ut(()=>{const[l,u]=dd(n),c=Vi.filterProps(e),d=Su.filterProps(e),f=r.label?r.label({label:e.label,props:{for:i.value}}):e.label;return S(Vi,Ve({ref:a,class:["v-radio-group",e.class],style:e.style},l,c,{modelValue:o.value,"onUpdate:modelValue":h=>o.value=h,id:i.value}),{...r,default:h=>{let{id:p,messagesId:m,isDisabled:v,isReadonly:x}=h;return L(se,null,[f&&S(fy,{id:p.value},{default:()=>[f]}),S(kre,Ve(d,{id:p.value,"aria-describedby":m.value,defaultsTarget:"VRadio",trueIcon:e.trueIcon,falseIcon:e.falseIcon,type:e.type,disabled:v.value,readonly:x.value,"aria-labelledby":f?p.value:void 0,multiple:!1},u,{modelValue:o.value,"onUpdate:modelValue":g=>o.value=g}),r)])}})}),yi({},a)}}),Zre={key:0},Jre={class:"text-gray-500 mb-4"},Qre={class:"mb-2 px-4 flex flex-row text-center justify-between items-center"},ese={key:0,class:"mb-2"},tse={class:"flex flex-wrap gap-2 mt-2"},nse={class:"mb-2"},rse={key:0,class:"flex flex-wrap gap-2 mt-2"},sse={class:"mb-2"},ise={class:"flex flex-wrap flex-nowrap gap-2 mt-2"},ose={class:"flex flex-wrap flex-nowrap gap-2 mt-2"},ase={key:1},lse={class:"max-h-80 overflow-y-auto"},use={key:0,class:"text-center text-gray-500 py-8"},cse={key:1},Nd=100,Si=95,j0=1,dse=-1,H8=ke({__name:"UserAuditPostDialog",props:{post:{},statusOptions:{}},emits:["cancel","confirm"],setup(e,{emit:t}
72){const n=e,r=t,s=M(!1),i=M(!1),o=M(Nd),a=M(""),l=M(null),u=M(0),c=M([]),d=M(!1),f=M(null),h=M(null),p=M(null);function m(V){h.value=V}const v=["优质内容","原创内容"],x=["涉嫌广告","重复发布","内容不完整"],g=[10,20,30,50,100],y=[-10,-20,-30,-50,-100],_=it();async function E(){i.value=!0;try{const{post:V,awards:H}=await _.post.status({id:n.post.id});if(console.log("post",V),o.value=V.status===j0?Nd:V.status??Nd,(V.status===Si||V.status===j0)&&V.extend?.schedule){const re=V.extend.schedule,W=typeof re=="string"?parseInt(re,10):Number(re);p.value=W,h.value=W,o.value=Si}else p.value=null,h.value=null;a.value=V.extend?.reason??"",l.value=V.extend?.awards||V.extend?.schedule_awards||0,c.value=H?.list||[]}catch{if(o.value=Nd,a.value=n.post.extend?.reason??"",l.value=n.post.extend?.awards||0,(n.post?.status===Si||n.post?.status===j0)&&n.post?.extend?.schedule){const H=n.post.extend.schedule,re=typeof H=="string"?parseInt(H,10):Number(H);p.value=re,h.value=re,o.value=Si}else p.value=null,h.value=null;c.value=[]}finally{i.value=!1,s.value=!0}}function w(){s.value=!1}async function T(){if(o.value!==null){i.value=!0;try{const V={id:n.post.id,status:o.value};o.value===Si&&h.value!==null&&Number.isFinite(h.value)&&(V.schedule=h.value,V.status=Si),a.value&&(V.reason=a.value),l.value&&(V.awards=l.value),console.log("onConfirm",V);const H=await _.post.status(V);r("confirm",H.post.status),w()}catch{}finally{i.value=!1}}}function C(){r("cancel"),w()}const I=F({get:()=>l.value===null?"":String(l.value),set:V=>{l.value=V===""?null:Number(V)}});be(()=>n.post,V=>{if(V&&V.extend&&(a.value=V.extend?.reason??"",l.value=V.extend?.awards||0,(V.status===Si||V.status===j0)&&V.extend?.schedule)){const H=V.extend.schedule,re=typeof H=="string"?parseInt(H,10):Number(H);p.value=re,h.value=re,o.value=Si}},{immediate:!0}),be(o,(V,H)=>{if(V===Si&&H!==Si&&(h.value===null||!Number.isFinite(h.value))){const re=new Date;re.setMinutes(re.getMinutes()+10);const W=Math.floor(re.getTime()/1e3);h.value=W,p.value=W}});const k=F(()=>[]),$=F(()=>[]),R=F(()=>c.value.map(V=>({...V,creditTypeText:V.credit_type==="REVIEWED_POST"?"帖子审核":"惩罚",statusText:V.status===1?"有效":"无效",createdAt:new Date(V.createdat*1e3).toLocaleString("zh-CN"),user:V.user,admin:V.admin})));function D(){f.value&&(clearTimeout(f.value),f.value=null),d.value=!0}function O(){f.value=setTimeout(()=>{d.value=!1},200)}function B(V){a.value=V,d.value=!1,f.value&&(clearTimeout(f.value),f.value=null)}function U(V){let H=h.value;(H===null||!Number.isFinite(H))&&(H=Math.floor(Date.now()/1e3));const re=H+V*24*60*60;h.value=re}function N(){let V=h.value;(V===null||!Number.isFinite(V))&&(V=Math.floor(Date.now()/1e3));const H=new Date(V*1e3),re=H.getFullYear(),W=H.getMonth(),X=H.getDate(),Q=Math.floor(Math.random()*24),le=Math.floor(Math.random()*60),ve=new Date(re,W,X,Q,le,0,0),oe=Math.floor(ve.getTime()/1e3);h.value=oe}return(V,H)=>{const re=M8,W=F8;return P(),q(Gt,{modelValue:s.value,"onUpdate:modelValue":H[8]||(H[8]=X=>s.value=X),"max-width":"600"},{activator:A(X=>[Ht(V.$slots,"activator",Ks(pi({...X,onClick:E})))]),default:A(()=>[s.value?(P(),q($e,{key:0,class:"px-2 py-2 rounded-t-2xl"},{default:A(()=>[S(at,{class:"flex items-center p-0"},{default:A(()=>[S(Hi,{modelValue:u.value,"onUpdate:modelValue":H[0]||(H[0]=X=>u.value=X),class:"mb-2",color:"primary"},{default:A(()=>[S(Sr,{value:"0"},{default:A(()=>[...H[9]||(H[9]=[z(" 审核操作 ",-1)])]),_:1}),S(Sr,{value:"1"},{default:A(()=>[z(" 奖惩历史("+Z(c.value.length)+") ",1)]),_:1})]),_:1},8,["modelValue"]),S(Mt),S(ce,{icon:"mdi-close",variant:"text",onClick:w})]),_:1}),S(We,{class:"text-center px-2"},{default:A(()=>[u.value==0?(P(),j("div",Zre,[L("div",Jre," 帖子ID:"+Z(n.post.id),1),S(xy,{modelValue:o.value,"onUpdate:modelValue":H[1]||(H[1]=X=>o.value=X),direction:"horizontal",glow:""},{default:A(()=>[L("div",Qre,[(P(!0),j(se,null,Fe(n.statusOptions||[{label:"通过",value:Nd},{label:"定时",value:Si},{label:"拒绝",value:dse}],X=>(P(),q(jc,{key:X.value,class:"text-center",label:X.label,value:X.value},null,8,["label","value"]))),128))])]),_:1},8,["modelValue"]),o.value===Si?(P(),j("div",ese,[(P(),q(re,{key:`schedule-${h.value}`,"default-value":h.value,class:"my-time-input",label:"时间",format:"YYYY/MM/DD HH:mm",onUpdate:m,onChange:m},null,8,["default-value"])),L("div",tse,[S(ce,{size:"small",variant:"outlined",color:"primary",onClick:H[2]||(H[2]=X=>U(-1))},{default:A(()=>[...H[10]||(H[10]=[z(" -1天 ",-1)])]),_:1}),S(ce,{size:"small",variant:"outlined",color:"primary",onClick:H[3]||(H[3]=X=>U(1))},{default:A(()=>[...H[11]||(H[11]=[z(" +1天 ",-1)])]),_:1}),S(ce,{size:"small",variant:"outlined",color:"primary",onClick:H[4]||(H[4]=X=>U(-1/24))},{default:A(()=>[...H[12]||(H[12]=[z(" -1时 ",-1)])]),_:1}),S(ce,{size:"small",variant:"outlined",color:"primary",onClick:H[5]||(H[5]=X=>U(1/24))},{default:A(()=>[...H[13]||(H[13]=[z(" +1时 ",-1)])]),_:1}),S(ce,{size:"small",variant:"outlined",color:"secondary",onClick:N},{default:A(()=>[...H[14]||(H[14]=[z(" 随机时间 ",-1)])]),_:1})])])):te("",!0),L("div",nse,[S(mk,{modelValue:a.value,"onUpdate:modelValue":H[6]||(H[6]=X=>a.value=X),items:k.value,label:"理由",combobox:"",clearable:"",class:"mb-2","hide-details":"",density:"compact",onFocus:D,onBlur:O},null,8,["modelValue","items"]),d.value?(P(),j("div",rse,[(P(),j(se,null,Fe(v,X=>S(ce,{key:X,size:"small",variant:"outlined",color:"success",onClick:Q=>B(X)},{default:A(()=>[z(Z(X),1)]),_:2},1032,["onClick"])),64)),(P(),j(se,null,Fe(x,X=>S(ce,{key:X,size:"small",variant:"outlined",color:"warning",onClick:Q=>B(X)},{default:A(()=>[z(Z(X),1)]),_:2},1032,["onClick"])),64))])):te("",!0)]),L("div",sse,[S(mk,{modelValue:I.value,"onUpdate:modelValue":H[7]||(H[7]=X=>I.value=X),items:$.value,label:"积分奖励",combobox:"",clearable:"",class:"mb-2","hide-details":"",density:"compact",type:"number"},null,8,["modelValue","items"]),L("div",ise,[(P(),j(se,null,Fe(g,X=>S(ce,{key:X,size:"small",variant:"outlined",color:"primary",onClick:Q=>I.value=String(X)},{default:A(()=>[z(" +"+Z(X),1)]),_:2},1032,["onClick"])),64))]),L("div",ose,[(P(),j(se,null,Fe(y,X=>S(ce,{key:X,size:"small",variant:"outlined",color:"error",onClick:Q=>I.value=String(X)},{default:A(()=>[z(Z(X),1)]),_:2},1032,["onClick"])),64))])])])):te("",!0),u.value==1?(P(),j("div",ase,[L("div",lse,[R.value.length===0?(P(),j("div",use," 暂无奖惩记录 ")):(P(),j("div",cse,[(P(!0),j(se,null,Fe(R.value,X=>(P(),q(W,{key:X.id,item:X},null,8,["item"]))),128))]))])])):te("",!0)]),_:1}),S(mn,{class:"flex"},{default:A(()=>[S(sn,{defaults:{VBtn:{ripple:!1,variant:"plain",size:"large",class:"p-0 o
72pacity-100 flex-1"}}},{default:A(()=>[S(ce,{disabled:i.value,onClick:C},{default:A(()=>[...H[15]||(H[15]=[z(" 取消 ",-1)])]),_:1},8,["disabled"]),u.value==0?(P(),q(ce,{key:0,color:"primary",variant:"flat",loading:i.value,disabled:i.value||o.value===null,onClick:T},{default:A(()=>[...H[16]||(H[16]=[z(" 提交 ",-1)])]),_:1},8,["loading","disabled"])):te("",!0)]),_:1})]),_:1})]),_:1})):te("",!0)]),_:3},8,["modelValue"])}}}),fse=Object.freeze(Object.defineProperty({__proto__:null,default:H8},Symbol.toStringTag,{value:"Module"})),hse=He({autoGrow:Boolean,autofocus:Boolean,counter:[Boolean,Number,String],counterValue:Function,prefix:String,placeholder:String,persistentPlaceholder:Boolean,persistentCounter:Boolean,noResize:Boolean,rows:{type:[Number,String],default:5,validator:e=>!isNaN(parseFloat(e))},maxRows:{type:[Number,String],validator:e=>!isNaN(parseFloat(e))},suffix:String,modelModifiers:Object,...N4(),...Nu(),...CS()},"VTextarea"),jh=nt()({name:"VTextarea",directives:{vIntersect:Uc},inheritAttrs:!1,props:hse(),emits:{"click:control":e=>!0,"mousedown:control":e=>!0,"update:focused":e=>!0,"update:modelValue":e=>!0,"update:rows":e=>!0},setup(e,t){let{attrs:n,emit:r,slots:s}=t;const i=Qt(e,"modelValue"),{isFocused:o,focus:a,blur:l}=yd(e),{onIntersect:u}=U4(e),c=F(()=>typeof e.counterValue=="function"?e.counterValue(i.value):(i.value||"").toString().length),d=F(()=>{if(n.maxlength)return n.maxlength;if(!(!e.counter||typeof e.counter!="number"&&typeof e.counter!="string"))return e.counter}),f=M(),h=M(),p=Ze(""),m=M(),v=M(0),{platform:x}=fd(),g=V4(e),y=F(()=>e.persistentPlaceholder||o.value||e.active);function _(){g.isSuppressing.value&&g.update(),m.value!==document.activeElement&&m.value?.focus(),o.value||a()}function E(O){_(),r("click:control",O)}function w(O){r("mousedown:control",O)}function T(O){O.stopPropagation(),_(),tt(()=>{i.value="",tS(e["onClick:clear"],O)})}function C(O){const B=O.target;if(i.value=B.value,e.modelModifiers?.trim){const U=[B.selectionStart,B.selectionEnd];tt(()=>{B.selectionStart=U[0],B.selectionEnd=U[1]})}}const I=M(),k=M(Number(e.rows)),$=F(()=>["plain","underlined"].includes(e.variant));zn(()=>{e.autoGrow||(k.value=Number(e.rows))});function R(){tt(()=>{if(!m.value)return;if(x.value.firefox){v.value=12;return}const{offsetWidth:O,clientWidth:B}=m.value;v.value=Math.max(0,O-B)}),e.autoGrow&&tt(()=>{if(!I.value||!h.value)return;const O=getComputedStyle(I.value),B=getComputedStyle(h.value.$el),U=parseFloat(O.getPropertyValue("--v-field-padding-top"))+parseFloat(O.getPropertyValue("--v-input-padding-top"))+parseFloat(O.getPropertyValue("--v-field-padding-bottom")),N=I.value.scrollHeight,V=parseFloat(O.lineHeight),H=Math.max(parseFloat(e.rows)*V+U,parseFloat(B.getPropertyValue("--v-input-control-height"))),re=parseFloat(e.maxRows)*V+U||1/0,W=Yr(N??0,H,re);k.value=Math.floor((W-U)/V),p.value=ht(W)})}ft(R),be(i,R),be(()=>e.rows,R),be(()=>e.maxRows,R),be(()=>e.density,R),be(k,O=>{r("update:rows",O)});let D;return be(I,O=>{O?(D=new ResizeObserver(R),D.observe(I.value)):D?.disconnect()}),cn(()=>{D?.disconnect()}),ut(()=>{const O=!!(s.counter||e.counter||e.counterValue),B=!!(O||s.details),[U,N]=dd(n),{modelValue:V,...H}=Vi.filterProps(e),re={...Kv.filterProps(e),"onClick:clear":T};return S(Vi,Ve({ref:f,modelValue:i.value,"onUpdate:modelValue":W=>i.value=W,class:["v-textarea v-text-field",{"v-textarea--prefixed":e.prefix,"v-textarea--suffixed":e.suffix,"v-text-field--prefixed":e.prefix,"v-text-field--suffixed":e.suffix,"v-textarea--auto-grow":e.autoGrow,"v-textarea--no-resize":e.noResize||e.autoGrow,"v-input--plain-underlined":$.value},e.class],style:[{"--v-textarea-scroll-bar-width":ht(v.value)},e.style]},U,H,{centerAffix:k.value===1&&!$.value,focused:o.value}),{...s,default:W=>{let{id:X,isDisabled:Q,isDirty:le,isReadonly:ve,isValid:oe,hasDetails:K}=W;return S(Kv,Ve({ref:h,style:{"--v-textarea-control-height":p.value},onClick:E,onMousedown:w,"onClick:prependInner":e["onClick:prependInner"],"onClick:appendInner":e["onClick:appendInner"]},re,{id:X.value,active:y.value||le.value,centerAffix:k.value===1&&!$.value,dirty:le.value||e.dirty,disabled:Q.value,focused:o.value,details:K.value,error:oe.value===!1}),{...s,default:ee=>{let{props:{class:ae,...ue},controlRef:Ee}=ee;return L(se,null,[e.prefix&&L("span",{class:"v-text-field__prefix"},[e.prefix]),pn(L("textarea",Ve({ref:_e=>m.value=Ee.value=_e,class:ae,value:i.value,onInput:C,autofocus:e.autofocus,readonly:ve.value,disabled:Q.value,placeholder:e.placeholder,rows:e.rows,name:g.fieldName.value,autocomplete:g.fieldAutocomplete.value,onFocus:_,onBlur:l},ue,N),null),[[Uc,{handler:u},null,{once:!0}]]),e.autoGrow&&pn(L("textarea",{class:Ie([ae,"v-textarea__sizer"]),id:`${ue.
72id}-sizer`,"onUpdate:modelValue":_e=>i.value=_e,ref:I,readonly:!0,"aria-hidden":"true"},null),[[Pc,i.value]]),e.suffix&&L("span",{class:"v-text-field__suffix"},[e.suffix])])}})},details:B?W=>L(se,null,[s.details?.(W),O&&L(se,null,[L("span",null,null),S(F4,{active:e.persistentCounter||o.value,value:c.value,max:d.value,disabled:e.disabled},s.counter)])]):void 0})}),yi({},f,h,m)}}),pse={class:"mb-3"},zS=ke({__name:"PostReportDialog",props:{title:{},id:{},userEmail:{},type:{}},emits:["cancel","success"],setup(e,{emit:t}){const n=t,r=e,{user:s}=Ct(),i=M(),o=M(""),a=M(r.userEmail||s.value?.email||""),l=M(!1),u=M([]),c=M();async function d(){try{const{types:v,sources:x}=await it().report.types(r.type);u.value=v,c.value=x}catch(v){console.error("获取举报类型失败:",v),u.value=[{value:1,label:"内容问题: 违规/不当内容"},{value:4,label:"用户行为: 骚扰/恶意行为"},{value:32,label:"内容质量: 内容错误/过时"},{value:64,label:"其他问题: 请详细描述"}]}}ft(()=>{d()});async function f(v){if(!(!i.value||!a.value||!o.value.trim())&&p(a.value)){l.value=!0;try{const x={error:i.value,message:o.value.trim(),email:a.value.trim(),source:{post:"post",reply:"reply",site:"site"}[r.type],id:r.id};await it().report.pub(x),n("success"),i.value=void 0,o.value="",v.value=!1}catch(x){console.error("举报提交出错:",x)}finally{l.value=!1}}}function h(v){i.value=void 0,o.value="",n("cancel"),v.value=!1}function p(v){return/^[^\s@]+@[^\s@]+\.[^\s@]+$/.test(v)}const m=F(()=>i.value&&a.value.trim()&&p(a.value)&&o.value.trim());return(v,x)=>(P(),q(Gt,{"max-width":500,persistent:""},{activator:A(g=>[Ht(v.$slots,"activator",Ks(pi(g)))]),default:A(({isActive:g})=>[S($e,null,{default:A(()=>[S(at,{class:"items-center justify-center"},{default:A(()=>[L("span",null,Z(e.title??"举报内容"),1),S(Mt),S(ce,{icon:"",variant:"text",class:"close-btn absolute right-2 top-2 z-10",onClick:y=>h(g)},{default:A(()=>[S(de,null,{default:A(()=>[...x[3]||(x[3]=[z("mdi-close",-1)])]),_:1})]),_:1},8,["onClick"])]),_:2},1024),S(We,null,{default:A(()=>[L("div",pse,[S(oo,{modelValue:b(i),"onUpdate:modelValue":x[0]||(x[0]=y=>Ce(i)?i.value=y:null),items:b(u),"item-title":"label","item-value":"value",label:"请选择举报原因 *",variant:"outlined",density:"compact",rules:[y=>!!y||"请选择举报原因"],placeholder:"请选择举报原因"},null,8,["modelValue","items","rules"])]),S(St,{modelValue:b(a),"onUpdate:modelValue":x[1]||(x[1]=y=>Ce(a)?a.value=y:null),label:"邮箱地址 *",type:"email",variant:"outlined",density:"compact",rules:[y=>!!y||"请输入邮箱地址",y=>p(y)||"请输入正确的邮箱地址"],class:"mb-3"},null,8,["modelValue","rules"]),S(jh,{modelValue:b(o),"onUpdate:modelValue":x[2]||(x[2]=y=>Ce(o)?o.value=y:null),label:"详细说明 *",placeholder:"请详细描述问题...",rows:"2",counter:"500",maxlength:500,variant:"outlined",density:"compact",rules:[y=>!!y.trim()||"请输入详细说明"]},null,8,["modelValue","rules"])]),_:1}),S(zt),S(mn,null,{default:A(()=>[S(ce,{variant:"flat",border:"",disabled:b(l),onClick:y=>h(g)},{default:A(()=>[...x[4]||(x[4]=[z(" 取消 ",-1)])]),_:1},8,["disabled","onClick"]),S(ce,{color:"error",variant:"flat",disabled:!b(m)||b(l),loading:b(l),onClick:y=>f(g)},{default:A(()=>[...x[5]||(x[5]=[z(" 提交举报 ",-1)])]),_:1},8,["disabled","loading","onClick"])]),_:2},1024)]),_:2},1024)]),_:3}))}}),mse=Object.freeze(Object.defineProperty({__proto__:null,default:zS},Symbol.toStringTag,{value:"Module"})),zh=ke({__name:"ConfirmDialog",props:{title:{},content:{}},emits:["confirm","cancel"],setup(e,{emit:t}){const n=t;return(r,s)=>(P(),q(Gt,{"max-width":500},{activator:A(i=>[Ht(r.$slots,"activator",Ks(pi(i)))]),default:A(({isActive:i})=>[S($e,null,{default:A(()=>[S(at,null,{default:A(()=>[z(Z(e.title??"确定吗?"),1)]),_:1}),e.content?(P(),q(We,{key:0},{default:A(()=>[z(Z(e.content??""),1)]),_:1})):te("",!0),S(zt),S(mn,null,{default:A(()=>[S(ce,{variant:"flat",border:"",onClick:()=>{n("cancel"),i.value=!1}},{default:A(()=>[...s[0]||(s[0]=[z(" 取消 ",-1)])]),_:1},8,["onClick"]),S(ce,{color:"primary",variant:"flat",flat:"",onClick:()=>{n("confirm"),i.value=!1}},{default:A(()=>[...s[1]||(s[1]=[z(" 确定 ",-1)])]),_:1},8,["onClick"])]),_:2},1024)]),_:2},1024)]),_:3}))}}),vse=Object.freeze(Object.defineProperty({__proto__:null,default:zh},Symbol.toStringTag,{value:"Module"}));var Y1={exports:{}},vk;function gse(){return vk||(vk=1,(function(e,t){(function(n){e.exports=n()})(function(n){var r=["0","1","2","3","4","5","6","7","8","9","a","b","c","d","e","f"];function s(x,g){var y=x[0],_=x[1],E=x[2],w=x[3];y+=(_&E|~_&w)+g[0]-680876936|0,y=(y<<7|y>>>25)+_|0,w+=(y&_|~y&E)+g[1]-389564586|0,w=(w<<12|w>>>20)+y|0,E+=(w&y|~w&_)+g[2]+606105819|0,E=(E<<17|E>>>
7215)+w|0,_+=(E&w|~E&y)+g[3]-1044525330|0,_=(_<<22|_>>>10)+E|0,y+=(_&E|~_&w)+g[4]-176418897|0,y=(y<<7|y>>>25)+_|0,w+=(y&_|~y&E)+g[5]+1200080426|0,w=(w<<12|w>>>20)+y|0,E+=(w&y|~w&_)+g[6]-1473231341|0,E=(E<<17|E>>>15)+w|0,_+=(E&w|~E&y)+g[7]-45705983|0,_=(_<<22|_>>>10)+E|0,y+=(_&E|~_&w)+g[8]+1770035416|0,y=(y<<7|y>>>25)+_|0,w+=(y&_|~y&E)+g[9]-1958414417|0,w=(w<<12|w>>>20)+y|0,E+=(w&y|~w&_)+g[10]-42063|0,E=(E<<17|E>>>15)+w|0,_+=(E&w|~E&y)+g[11]-1990404162|0,_=(_<<22|_>>>10)+E|0,y+=(_&E|~_&w)+g[12]+1804603682|0,y=(y<<7|y>>>25)+_|0,w+=(y&_|~y&E)+g[13]-40341101|0,w=(w<<12|w>>>20)+y|0,E+=(w&y|~w&_)+g[14]-1502002290|0,E=(E<<17|E>>>15)+w|0,_+=(E&w|~E&y)+g[15]+1236535329|0,_=(_<<22|_>>>10)+E|0,y+=(_&w|E&~w)+g[1]-165796510|0,y=(y<<5|y>>>27)+_|0,w+=(y&E|_&~E)+g[6]-1069501632|0,w=(w<<9|w>>>23)+y|0,E+=(w&_|y&~_)+g[11]+643717713|0,E=(E<<14|E>>>18)+w|0,_+=(E&y|w&~y)+g[0]-373897302|0,_=(_<<20|_>>>12)+E|0,y+=(_&w|E&~w)+g[5]-701558691|0,y=(y<<5|y>>>27)+_|0,w+=(y&E|_&~E)+g[10]+38016083|0,w=(w<<9|w>>>23)+y|0,E+=(w&_|y&~_)+g[15]-660478335|0,E=(E<<14|E>>>18)+w|0,_+=(E&y|w&~y)+g[4]-405537848|0,_=(_<<20|_>>>12)+E|0,y+=(_&w|E&~w)+g[9]+568446438|0,y=(y<<5|y>>>27)+_|0,w+=(y&E|_&~E)+g[14]-1019803690|0,w=(w<<9|w>>>23)+y|0,E+=(w&_|y&~_)+g[3]-187363961|0,E=(E<<14|E>>>18)+w|0,_+=(E&y|w&~y)+g[8]+1163531501|0,_=(_<<20|_>>>12)+E|0,y+=(_&w|E&~w)+g[13]-1444681467|0,y=(y<<5|y>>>27)+_|0,w+=(y&E|_&~E)+g[2]-51403784|0,w=(w<<9|w>>>23)+y|0,E+=(w&_|y&~_)+g[7]+1735328473|0,E=(E<<14|E>>>18)+w|0,_+=(E&y|w&~y)+g[12]-1926607734|0,_=(_<<20|_>>>12)+E|0,y+=(_^E^w)+g[5]-378558|0,y=(y<<4|y>>>28)+_|0,w+=(y^_^E)+g[8]-2022574463|0,w=(w<<11|w>>>21)+y|0,E+=(w^y^_)+g[11]+1839030562|0,E=(E<<16|E>>>16)+w|0,_+=(E^w^y)+g[14]-35309556|0,_=(_<<23|_>>>9)+E|0,y+=(_^E^w)+g[1]-1530992060|0,y=(y<<4|y>>>28)+_|0,w+=(y^_^E)+g[4]+1272893353|0,w=(w<<11|w>>>21)+y|0,E+=(w^y^_)+g[7]-155497632|0,E=(E<<16|E>>>16)+w|0,_+=(E^w^y)+g[10]-1094730640|0,_=(_<<23|_>>>9)+E|0,y+=(_^E^w)+g[13]+681279174|0,y=(y<<4|y>>>28)+_|0,w+=(y^_^E)+g[0]-358537222|0,w=(w<<11|w>>>21)+y|0,E+=(w^y^_)+g[3]-722521979|0,E=(E<<16|E>>>16)+w|0,_+=(E^w^y)+g[6]+76029189|0,_=(_<<23|_>>>9)+E|0,y+=(_^E^w)+g[9]-640364487|0,y=(y<<4|y>>>28)+_|0,w+=(y^_^E)+g[12]-421815835|0,w=(w<<11|w>>>21)+y|0,E+=(w^y^_)+g[15]+530742520|0,E=(E<<16|E>>>16)+w|0,_+=(E^w^y)+g[2]-995338651|0,_=(_<<23|_>>>9)+E|0,y+=(E^(_|~w))+g[0]-198630844|0,y=(y<<6|y>>>26)+_|0,w+=(_^(y|~E))+g[7]+1126891415|0,w=(w<<10|w>>>22)+y|0,E+=(y^(w|~_))+g[14]-1416354905|0,E=(E<<15|E>>>17)+w|0,_+=(w^(E|~y))+g[5]-57434055|0,_=(_<<21|_>>>11)+E|0,y+=(E^(_|~w))+g[12]+1700485571|0,y=(y<<6|y>>>26)+_|0,w+=(_^(y|~E))+g[3]-1894986606|0,w=(w<<10|w>>>22)+y|0,E+=(y^(w|~_))+g[10]-1051523|0,E=(E<<15|E>>>17)+w|0,_+=(w^(E|~y))+g[1]-2054922799|0,_=(_<<21|_>>>11)+E|0,y+=(E^(_|~w))+g[8]+1873313359|0,y=(y<<6|y>>>26)+_|0,w+=(_^(y|~E))+g[15]-30611744|0,w=(w<<10|w>>>22)+y|0,E+=(y^(w|~_))+g[6]-1560198380|0,E=(E<<15|E>>>17)+w|0,_+=(w^(E|~y))+g[13]+1309151649|0,_=(_<<21|_>>>11)+E|0,y+=(E^(_|~w))+g[4]-145523070|0,y=(y<<6|y>>>26)+_|0,w+=(_^(y|~E))+g[11]-1120210379|0,w=(w<<10|w>>>22)+y|0,E+=(y^(w|~_))+g[2]+718787259|0,E=(E<<15|E>>>17)+w|0,_+=(w^(E|~y))+g[9]-343485551|0,_=(_<<21|_>>>11)+E|0,x[0]=y+x[0]|0,x[1]=_+x[1]|0,x[2]=E+x[2]|0,x[3]=w+x[3]|0}function i(x){var g=[],y;for(y=0;y<64;y+=4)g[y>>2]=x.charCodeAt(y)+(x.charCodeAt(y+1)<<8)+(x.charCodeAt(y+2)<<16)+(x.charCodeAt(y+3)<<24);return g}function o(x){var g=[],y;for(y=0;y<64;y+=4)g[y>>2]=x[y]+(x[y+1]<<8)+(x[y+2]<<16)+(x[y+3]<<24);return g}function a(x){var g=x.length,y=[1732584193,-271733879,-1732584194,271733878],_,E,w,T,C,I;for(_=64;_<=g;_+=64)s(y,i(x.substring(_-64,_)));for(x=x.substring(_-64),E=x.length,w=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],_=0;_<E;_+=1)w[_>>2]|=x.charCodeAt(_)<<(_%4<<3);if(w[_>>2]|=128<<(_%4<<3),_>55)for(s(y,w),_=0;_<16;_+=1)w[_]=0;return T=g*8,T=T.toString(16).match(/(.*?)(.{0,8})$/),C=parseInt(T[2],16),I=parseInt(T[1],16)||0,w[14]=C,w[15]=I,s(y,w),y}function l(x){var g=x.length,y=[1732584193,-271733879,-1732584194,271733878],_,E,w,T,C,I;for(_=64;_<=g;_+=64)s(y,o(x.subarray(_-64,_)));for(x=_-64<g?x.subarray(_-64):new Uint8Array(0),E=x.length,w=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],_=0;_<E;_+=1)w[_>>2]|=x[_]<<(_%4<<3);if(w[_>>2]|=128<<(_%4<<3),_>55)for(s(y,w),_=0;_<16;_+=1)w[_]=0;return T=g*8,T=T.toString(16).match(/(.*?)(.{0,8})$/),C=parseInt(T[2],16),I=parseInt(T[1],16)||0,w[14]=C,w[15]=I,s(y,w),y}function u(x){var g="",y;for(y=0;y<4;y+=1)g+=r[x>>y*8+4&15]+r[x>>y*8&15];return g}function c(x){var g;for(g=0;g<x.length;g+=1)x[g]=u(x[g]);return x.join("")}c(a("hello")),typeof ArrayBuffer<"u"&&!ArrayBuffer.prototype.slice&&(function(){function x(g,y){return g=g|0||0,g<0?Math.max(g+y,0):Math.min(g,y)}ArrayBuffer.prototype.slice=function(g,y){var _=this.byteLength,E=x(g,_),w=_,T,C,I,k;return y!==n&&(w=x(y,_)),E>w?new ArrayBuffer(0):(T=w-E,C=new ArrayBuffer(T),I=new Uint8Array(C),k=new Uint8Array(this,E,T),I.set(k),C)}})();function d(x){return/[\u0080-\uFFFF]/.test(x)&&(x=unescape(encodeURIComponent(x))),x}function f(x,g){var y=x.length,_=new ArrayBuffer(y),E=new Uint8Array(_),w;for(w=0;w<y;
72w+=1)E[w]=x.charCodeAt(w);return g?E:_}function h(x){return String.fromCharCode.apply(null,new Uint8Array(x))}function p(x,g,y){var _=new Uint8Array(x.byteLength+g.byteLength);return _.set(new Uint8Array(x)),_.set(new Uint8Array(g),x.byteLength),_}function m(x){var g=[],y=x.length,_;for(_=0;_<y-1;_+=2)g.push(parseInt(x.substr(_,2),16));return String.fromCharCode.apply(String,g)}function v(){this.reset()}return v.prototype.append=function(x){return this.appendBinary(d(x)),this},v.prototype.appendBinary=function(x){this._buff+=x,this._length+=x.length;var g=this._buff.length,y;for(y=64;y<=g;y+=64)s(this._hash,i(this._buff.substring(y-64,y)));return this._buff=this._buff.substring(y-64),this},v.prototype.end=function(x){var g=this._buff,y=g.length,_,E=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],w;for(_=0;_<y;_+=1)E[_>>2]|=g.charCodeAt(_)<<(_%4<<3);return this._finish(E,y),w=c(this._hash),x&&(w=m(w)),this.reset(),w},v.prototype.reset=function(){return this._buff="",this._length=0,this._hash=[1732584193,-271733879,-1732584194,271733878],this},v.prototype.getState=function(){return{buff:this._buff,length:this._length,hash:this._hash.slice()}},v.prototype.setState=function(x){return this._buff=x.buff,this._length=x.length,this._hash=x.hash,this},v.prototype.destroy=function(){delete this._hash,delete this._buff,delete this._length},v.prototype._finish=function(x,g){var y=g,_,E,w;if(x[y>>2]|=128<<(y%4<<3),y>55)for(s(this._hash,x),y=0;y<16;y+=1)x[y]=0;_=this._length*8,_=_.toString(16).match(/(.*?)(.{0,8})$/),E=parseInt(_[2],16),w=parseInt(_[1],16)||0,x[14]=E,x[15]=w,s(this._hash,x)},v.hash=function(x,g){return v.hashBinary(d(x),g)},v.hashBinary=function(x,g){var y=a(x),_=c(y);return g?m(_):_},v.ArrayBuffer=function(){this.reset()},v.ArrayBuffer.prototype.append=function(x){var g=p(this._buff.buffer,x),y=g.length,_;for(this._length+=x.byteLength,_=64;_<=y;_+=64)s(this._hash,o(g.subarray(_-64,_)));return this._buff=_-64<y?new Uint8Array(g.buffer.slice(_-64)):new Uint8Array(0),this},v.ArrayBuffer.prototype.end=function(x){var g=this._buff,y=g.length,_=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],E,w;for(E=0;E<y;E+=1)_[E>>2]|=g[E]<<(E%4<<3);return this._finish(_,y),w=c(this._hash),x&&(w=m(w)),this.reset(),w},v.ArrayBuffer.prototype.reset=function(){return this._buff=new Uint8Array(0),this._length=0,this._hash=[1732584193,-271733879,-1732584194,271733878],this},v.ArrayBuffer.prototype.getState=function(){var x=v.prototype.getState.call(this);return x.buff=h(x.buff),x},v.ArrayBuffer.prototype.setState=function(x){return x.buff=f(x.buff,!0),v.prototype.setState.call(this,x)},v.ArrayBuffer.prototype.destroy=v.prototype.destroy,v.ArrayBuffer.prototype._finish=v.prototype._finish,v.ArrayBuffer.hash=function(x,g){var y=l(new Uint8Array(x)),_=c(y);return g?m(_):_},v})})(Y1)),Y1.exports}var yse=gse();const xse=H_(yse);async function bse(e,t=5*1024*1024){return new Promise((n,r)=>{const s=new xse.ArrayBuffer,i=new FileReader;let o=0;function a(){const l=Math.min(o+t,e.size);i.readAsArrayBuffer(e.slice(o,l))}i.onload=l=>{s.append(l.target.result),o+=t,o<e.size?a():n(s.end())},i.onerror=r,a()})}async function Hh(e,t,n){let i=1;t.size>10240&&(i+=Math.ceil((t.size-10240)/5242880));const o=await bse(t,5242880),{upload_url:a}=await e.getUploadId();let l=1,u=0,c={};for(;u<t.size;){let d;l===1?d=Math.min(u+10240,t.size):d=Math.min(u+5242880,t.size);const f=new FormData;f.append("parts",String(i)),f.append("chunk",String(l)),f.append("md5",o),f.append("file",t.slice(u,d));const h=await e.uploadChunk(a,f),{extend:p}=await h.json();if(p.status==="uploaded"){c=p.file,n(100);break}else if(p.status==="next")n(Math.round(l/i*100));else throw new Error("上传失败:"+JSON.stringify(h));u=d,l++}return c}const _se={class:"mb-4 space-y-2"},Sse={class:"flex gap-2 items-center -mt-2"},Ese={class:"user-edit-avatar"},wse={class:"user-edit-avatar-row"},Tse={class:"user-edit-avatar-wrap"},Cse={class:"user-edit-avatar-actions"},Ase={key:0,class:"user-edit-system-list"},kse={class:"user-edit-system-head"},Ise={class:"user-edit-system-avatars"},Lse=["onClick"],Dse={class:"user-edit-system-avatar-img"},Pse={key:1,class:"user-edit-avatar-progress"},Rse={class:"text-center text-sm text-gray-600"},Ose={class:"grid grid-cols-2 gap-2"},$se={class:"space-y-4"},Mse={class:"flex flex-wrap gap-2"},Fse={class:"space-y-4"},Bse=ke({__name:"UserEditDialog",props:{uid:{}},emits:["cancel","confirm"],setup(e,{emit:t}){const n=e,r=t,s=M(!1),i=M(!1),o=M(null),a=M(0),l=M(null),u=M(""),c=M([]),d=M(null),f=M(!1),h=M(null),p=M(!1),m=M(0);function v(){const ie=Array.from({length:1e3},(Le,we)=>we+1).sort(()=>Math.random()-.5);c.value=ie.slice(0,12)}function x(){u.value.startsWith("blob:")&&URL.revokeObjectURL(u.value),l.value=null,u.value="",d.value=null,f.value=!1,m.value=0}function g(){c.value.length===0&&v(),f.value=!f.value}function y(){v(),d.value=null}function _(ne){d.value=ne,u.value.startsWith("blob:")&&URL.revokeObjectURL(u.value),u.value=`/avatar/${ne}`,l.value=null}function E(ne){const ie=ne.target;if(!ie.files?.length){ie.value="";return}const Le=ie.files[0];if(Le.size>5*1024*1024){je("头像文件不能超过5MB",{type:"error"}),ie.value="";return}u.value.startsWith("blob:")&&URL.revokeObjectURL(u.value),l.value=Le,u.value=URL.createObjectURL(Le),d.value=null,ie.value=""}async function w(){if(!l.value)return"";p.value=!0,m.value=0;try{const{file:ne}=it();return(await Hh(ne,l.value,Le=>{m.value=Le}))?.id||""}catch(ne){throw je(`头像上传失败:${ne}`,{type:"error"}),ne}finally{p.value=!1,m.value=0}}function T(ne){ne?.preventDefault(),ne?.stopPropagation(),h.value?.click()}function C(ne){const ie="GHSnoVW48XYpqrBC2MNdeDKfghlmRb0QTu51LijOZaUcPAEF3stk67vwIJxyz9";if(ne===0)return ie[0];let Le="";for(;ne>0;){const we=ne%62;ne=Math.floor(ne/62),Le=(we===0?ie[0]:ie[we])+Le}return Le}function I(ne,ie){const Le=typeof ie=="string"?parseInt(ie,10):ie;if(typeof Le=="number"&&!Number.isNaN(Le)){if(Le>=1&&Le<=1e3){ne.raw_avatar=Le;return}if(Le>=1001){ne.avatar=C(Le);return}}typeof ie=="string"&&ie&&(ne.avatar=ie)}const k=F(()=>
72{if(u.value)return u.value;if(d.value)return`/avatar/${d.value}`;const ne=o.value?.avatar||"";return ne?ne.startsWith("/avatar/")||ne.search(/avatar/ig)>-1?ne:ne.startsWith("/")?"":qs(ne):""}),$=F(()=>{if(k.value)return k.value.startsWith("blob:")?k.value:co(k.value)}),R=M(""),D=M([]),O=M(!1),B=M(n.uid),U=[{label:"解封",value:-1},{label:"禁止发布内容",value:1},{label:"禁止发布评论",value:2},{label:"禁止编辑资料",value:4},{label:"禁止登录",value:8}],N=[{label:"删除用户所有内容",value:1},{label:"删除用户所有评论",value:2}],V=[{label:"1天",value:1},{label:"3天",value:3},{label:"7天",value:7},{label:"30天",value:30},{label:"60天",value:60},{label:"1年",value:365},{label:"永久",value:3650*2}],H=M({nickname:"",email:"",phone:"",sex:0,city:"",ban:[],banedat:"",credit:0,reason:"",rm:[],verify:0}),re=it();async function W(){if(!R.value.trim())return;const ne=R.value.trim(),ie={username:ne};/^\d+$/.test(ne)&&(ie.uid=ne),O.value=!0;try{await X(ie)}catch(Le){console.error("搜索用户失败:",Le),je("搜索失败",{type:"error"})}finally{O.value=!1}}async function X(ne){i.value=!0;try{const ie=await re.user.detail(ne);o.value=ie,B.value=ie?.eid||"",H.value.nickname=ie.nickname||"",H.value.email=ie.email||"",H.value.phone=ie.phone||"",H.value.sex=ie.sex||0,H.value.city=ie.city||"",H.value.ban=ie.ban?le(ie.ban):[],H.value.banedat=ie.banedat?new Date(ie.banedat*1e3).toISOString().slice(0,16):"",H.value.credit=ie.conf?.credit||0,H.value.reason=ie.conf?.banreason||"",H.value.rm=ie.conf?.rm?ve(ie.conf.rm):[],H.value.verify=ie.verify?.email?2:0,H.value.verify+=ie.verify?.phone?1:0,x()}catch(ie){console.error("获取用户信息失败:",ie),H.value.nickname="",H.value.email="",H.value.phone="",H.value.sex=0,H.value.city="",H.value.ban=[],H.value.banedat="",H.value.credit=0,H.value.reason="",H.value.rm=[],H.value.verify=0}finally{i.value=!1}}const Q=F(()=>Number(a.value));function le(ne){const ie=[];return ne&1&&ie.push(1),ne&2&&ie.push(2),ne&4&&ie.push(4),ne&8&&ie.push(8),ie}function ve(ne){const ie=[];return ne&1&&ie.push(1),ne&2&&ie.push(2),ie}function oe(ne){return ne.reduce((ie,Le)=>ie|Le,0)}function K(ne){if(ne===-1)H.value.banedat="";else{const ie=new Date;ie.setDate(ie.getDate()+ne),H.value.banedat=ie.toISOString().slice(0,16)}}async function ee(){await X({uid:B.value}),s.value=!0}function ae(){s.value=!1,a.value=0,B.value=n.uid,R.value="",D.value=[],x()}async function ue(){i.value=!0;try{const ne={uid:B.value};if(Q.value===0)if(H.value.nickname!==o.value?.nickname&&(ne.nickname=H.value.nickname),H.value.email!==o.value?.email&&(ne.email=H.value.email),H.value.phone!==o.value?.phone&&(ne.phone=H.value.phone),H.value.sex!==o.value?.sex&&(ne.sex=H.value.sex),H.value.city!==o.value?.city&&(ne.city=H.value.city),H.value.verify!==o.value?.verify&&(ne.verify=H.value.verify),l.value){const Le=await w();I(ne,Le)}else d.value&&(ne.raw_avatar=d.value);else if(Q.value===1){if(H.value.ban.length===0){je("请选择至少一个封禁类型",{type:"error"});return}ne.ban=H.value.ban.join(","),H.value.banedat&&(ne.banedat=H.value.banedat),H.value.credit!==0&&(ne.credit=H.value.credit),H.value.reason&&(ne.reason=H.value.reason)}else if(Q.value===2){if(H.value.rm.length===0){je("请选择要删除的内容类型",{type:"error"});return}ne.rm=oe(H.value.rm),H.value.reason&&(ne.reason=H.value.reason)}const ie=await re.user.edit(ne);ie?.user&&(o.value={...o.value,...ie.user}),x(),r("confirm",ie?.user||o.value),je("操作成功",{type:"success"})}catch(ne){console.error("操作失败:",ne),je("操作失败",{type:"error"})}finally{i.value=!1}}function Ee(){r("cancel"),ae()}const _e=F(()=>o.value?.ban&&o.value.ban>0),J=F(()=>o.value?.banedat?new Date(o.value.banedat*1e3).toLocaleString():"永久封禁"),Y=F(()=>{if(!o.value?.ban)return"正常";const ne=le(o.value.ban),ie=[];return ne.includes(1)&&ie.push("禁止发布内容"),ne.includes(2)&&ie.push("禁止发布评论"),ne.includes(4)&&ie.push("禁止编辑资料"),ne.includes(8)&&ie.push("禁止登录"),ie.length>0?ie.join("、"):"正常"}),fe=F(()=>o.value?.vip?(o.value.vip===1,"VIP用户"):"普通用户"),xe=F(()=>o.value?.expiretime?new Date(o.value.expiretime*1e3).toLocaleStr
72ing().slice(0,10):"永久");return be(()=>n.uid,ne=>{B.value=ne,s.value&&X({uid:ne})}),(ne,ie)=>{const Le=An;return P(),q(Gt,{modelValue:b(s),"onUpdate:modelValue":ie[14]||(ie[14]=we=>Ce(s)?s.value=we:null),"max-width":"98%"},{activator:A(we=>[Ht(ne.$slots,"activator",Ks(pi({...we,onClick:ee})),void 0,!0)]),default:A(()=>[b(s)?(P(),q($e,{key:0,class:"rounded-md"},{default:A(()=>[S(at,{class:"flex items-center px-0 mb-2"},{default:A(()=>[S(Hi,{modelValue:b(a),"onUpdate:modelValue":ie[0]||(ie[0]=we=>Ce(a)?a.value=we:null),class:"mr-2","slider-color":"primary"},{default:A(()=>[S(Sr,{value:0},{default:A(()=>[...ie[15]||(ie[15]=[z(" 用户 ",-1)])]),_:1}),S(Sr,{value:1},{default:A(()=>[...ie[16]||(ie[16]=[z(" 封禁 ",-1)])]),_:1}),S(Sr,{value:2},{default:A(()=>[...ie[17]||(ie[17]=[z(" 删除 ",-1)])]),_:1})]),_:1},8,["modelValue"]),S(Mt),S(ce,{icon:"",density:"comfortable",size:"small",class:"opacity-60 mr-2",onClick:ae},{default:A(()=>[S(de,{icon:"mdi:close"})]),_:1})]),_:1}),S(We,{class:"text-center py-2"},{default:A(()=>[S(nh,{modelValue:b(a),"onUpdate:modelValue":ie[12]||(ie[12]=we=>Ce(a)?a.value=we:null)},{default:A(()=>[S(Mo,{value:0},{default:A(()=>[L("div",_se,[L("div",Sse,[S(St,{modelValue:b(R),"onUpdate:modelValue":ie[1]||(ie[1]=we=>Ce(R)?R.value=we:null),label:"搜索用户名/UID",density:"compact","hide-details":"",placeholder:"输入用户名或数字UID",variant:"underlined",onKeyup:Vg(W,["enter"])},null,8,["modelValue"]),S(ce,{loading:b(O),onClick:W},{default:A(()=>[...ie[18]||(ie[18]=[z(" 搜索 ",-1)])]),_:1},8,["loading"])])]),L("div",Ese,[L("div",wse,[L("div",Tse,[S(rr,{size:72,image:b($),icon:b(k)?void 0:"ph:user",style:{background:"#DDD"}},null,8,["image","icon"]),S(ce,{icon:"mdi-camera",size:"small",color:"primary",class:"user-edit-avatar-camera",type:"button",onClick:T})]),L("div",Cse,[S(ce,{variant:"outlined",size:"small",type:"button",onClick:T},{default:A(()=>[S(de,{icon:"mdi-upload",size:"16",class:"mr-1"}),ie[19]||(ie[19]=z(" 上传头像 ",-1))]),_:1}),S(ce,{variant:"outlined",size:"small",type:"button",onClick:g},{default:A(()=>[S(de,{icon:"mdi-account-circle",size:"16",class:"mr-1"}),ie[20]||(ie[20]=z(" 系统头像 ",-1))]),_:1})]),L("input",{ref_key:"avatarInput",ref:h,type:"file",accept:"image/*",class:"hidden",onChange:E},null,544)]),b(f)?(P(),j("div",Ase,[L("div",kse,[ie[22]||(ie[22]=L("div",{class:"text-xs text-gray-500"}," 从系统默认头像中选择一个: ",-1)),S(ce,{variant:"text",size:"x-small",onClick:y},{default:A(()=>[S(de,{icon:"mdi-shuffle",size:"16",class:"mr-1"}),ie[21]||(ie[21]=z(" 换一批 ",-1))]),_:1})]),L("div",Ise,[(P(!0),j(se,null,Fe(b(c),we=>(P(),j("button",{key:we,type:"button",class:Ie(["user-edit-system-avatar-btn",{"is-selected":b(d)===we}]),onClick:Be=>_(we)},[L("div",Dse,[S(Le,{src:`/avatar/${we}`,encoded:0,width:64,height:64,class:"w-12 h-12 object-cover"},null,8,["src"])]),b(d)===we?(P(),q(de,{key:0,icon:"mdi-check-circle",color:"primary",size:"18",class:"user-edit-system-avatar-check"})):te("",!0)],10,Lse))),128))])])):te("",!0),b(p)?(P(),j("div",Pse,[S(gd,{"model-value":b(m),height:"8",color:"primary",class:"mb-2"},null,8,["model-value"]),L("div",Rse," 正在上传头像... "+Z(b(m))+"% ",1)])):te("",!0)]),L("div",Ose,[S(St,{"model-value":b(o)?.username,label:`用户名(${b(B)})`,readonly:"",density:"compact","hide-details":""},null,8,["model-value","label"]),S(St,{modelValue:b(H).nickname,"onUpdate:modelValue":ie[2]||(ie[2]=we=>b(H).nickname=we),label:"昵称",density:"compact","hide-details":""},null,8,["modelValue"]),S(St,{modelValue:b(H).email,"onUpdate:modelValue":ie[3]||(ie[3]=we=>b(H).email=we),label:"邮箱",type:"email",density:"compact","hide-details":""},null,8,["modelValue"]),S(St,{modelValue:b(H).phone,"onUpdate:modelValue":ie[4]||(ie[4]=we=>b(H).phone=we),label:"手机号",density:"compact","hide-details":""},null,8,["modelValue"]),S(oo,{modelValue:b(H).sex,"onUpdate:modelValue":ie[5]||(ie[5]=we=>b(H).sex=we),items:[{label:"未知",value:0},{label:"男",value:1},{label:"女",value:2}],"item-title":"label","item-value":"value",label:"性别",density:"compact","hide-details":""},null,8,["modelValue"]),S(St,{modelValue:b(H).city,"onUpdate:modelValue":ie[6]||(ie[6]=we=>b(H).city=we),label:"城市",density:"compact","hide-details":""},null,8,["modelValue"]),S(St,{"model-value":b(o)?.credit,label:"积分",readonly:"",density:"compact","hide-details":""},null,8,["model-value"]),S(St,{"model-value":b(fe),label:"VIP状态",readonly:"",density:"compact","hide-details":""},null,8,["model-value"]),b(o)?.vip?(P(),q(St,{key:0,"model-value":b(xe),label:"VIP到期时间",readonly:"",density:"compact","hide-details":""},null,8,["model-value"])):te("",!0),S(St,{"model-value":b(Y),label:"封禁状态",readonly:"",density:"compact","hide-details":""},null,8,["model-value"]),b(_e)?(P(),q(St,{key:1,"model-value":b(J),label:"封禁结束时间",readonly:"",density:"compact","hide-details":""},null,8,["model-value"])):te("",!0),S(oo,{modelValue:b(H).verify,"onUpdate:modelValue":ie[7]||(ie[7]=we=>b(H).verify=we),items:[{label:"未验证",value:0},{label:"手机验证",value:1},{label:"邮箱验证",value:2},{label:"全部验证",value:3}],"item-title":"label","item-value":"value",label:"验证状态",de
72nsity:"compact","hide-details":""},null,8,["modelValue"])])]),_:1}),S(Mo,{value:1},{default:A(()=>[L("div",$se,[L("div",null,[S(oo,{modelValue:b(H).ban,"onUpdate:modelValue":ie[8]||(ie[8]=we=>b(H).ban=we),label:"封禁项目",items:U,"item-title":"label","item-value":"value",multiple:"",chips:"","closable-chips":"",density:"compact","hide-details":""},null,8,["modelValue"])]),S(St,{modelValue:b(H).banedat,"onUpdate:modelValue":ie[9]||(ie[9]=we=>b(H).banedat=we),label:"封禁结束时间",type:"datetime-local",clearable:"",density:"compact","hide-details":"",hint:"留空表示永久封禁"},null,8,["modelValue"]),L("div",Mse,[(P(),j(se,null,Fe(V,we=>S(ce,{key:we.value,size:"small",variant:"outlined",color:we.value===-1?"error":void 0,onClick:Be=>K(we.value)},{default:A(()=>[z(Z(we.label),1)]),_:2},1032,["color","onClick"])),64))]),S(St,{modelValue:b(H).credit,"onUpdate:modelValue":ie[10]||(ie[10]=we=>b(H).credit=we),label:"积分扣除",type:"number",clearable:"",density:"compact","hide-details":"",hint:"0=不扣除,-1=清空所有积分,>0=扣除指定积分"},null,8,["modelValue"])])]),_:1}),S(Mo,{value:2},{default:A(()=>[L("div",Fse,[L("div",null,[S(oo,{modelValue:b(H).rm,"onUpdate:modelValue":ie[11]||(ie[11]=we=>b(H).rm=we),label:"删除内容",items:N,"item-title":"label","item-value":"value",multiple:"",chips:"","closable-chips":"",density:"compact","hide-details":""},null,8,["modelValue"])])])]),_:1})]),_:1},8,["modelValue"]),S(St,{modelValue:b(H).reason,"onUpdate:modelValue":ie[13]||(ie[13]=we=>b(H).reason=we),label:"操作原因",type:"text",clearable:"",density:"compact",maxlength:"200",counter:"","hide-details":"",hint:"最大200字符",class:"mt-2"},null,8,["modelValue"])]),_:1}),S(mn,{class:"flex"},{default:A(()=>[S(sn,{defaults:{VBtn:{ripple:!1,variant:"plain",size:"large",class:"p-0 o
72pacity-100 flex-1"}}},{default:A(()=>[S(ce,{disabled:b(i)||b(p),onClick:Ee},{default:A(()=>[...ie[23]||(ie[23]=[z(" 取消 ",-1)])]),_:1},8,["disabled"]),S(ce,{color:"primary",variant:"flat",loading:b(i)||b(p),disabled:b(i)||b(p)||b(Q)===1&&b(H).ban.length===0||b(Q)===2&&b(H).rm.length===0,onClick:ue},{default:A(()=>[...ie[24]||(ie[24]=[z(" 提交 ",-1)])]),_:1},8,["loading","disabled"])]),_:1})]),_:1})]),_:1})):te("",!0)]),_:3},8,["modelValue"])}}}),HS=vt(Bse,[["__scopeId","data-v-bd1f63a7"]]),Nse=Object.freeze(Object.defineProperty({__proto__:null,default:HS},Symbol.toStringTag,{value:"Module"})),Vse={class:"flex items-center font-bold text-lg mb-1"},Use={class:"mb-4 text-gray-500"},jse={class:"flex flex-col gap-2 items-center"},zse=["min"],G8=ke({__name:"PostTopDialog",props:{post:{}},emits:["cancel","confirm"],setup(e,{emit:t}){const n=e,r=t,s=M(!1),i=M(!1),o=M(null),a=M(""),l=it();async function u(){i.value=!0;try{const w=await l.post.top({id:n.post.id});o.value=w.top??null,a.value=w.expire??""}catch{o.value=null,a.value=""}finally{i.value=!1,s.value=!0}}async function c(){if(o.value!=null){i.value=!0;try{await l.post.top({id:n.post.id,top:o.value,expire:a.value}),r("confirm",o.value,a.value),s.value=!1}catch{}finally{i.value=!1}}}function d(){s.value=!1,r("cancel")}const f=M(!1),h=[0,1,3,7,15,30,60,90,180,360],p=M(null);F(()=>a.value?a.value:"未设置");const m=M("");function v(w){return w<10?"0"+w:""+w}function x(w){return w.getFullYear()+"-"+v(w.getMonth()+1)+"-"+v(w.getDate())+" "+v(w.getHours())+":"+v(w.getMinutes())+":"+v(w.getSeconds())}function g(w,T){const C=new Date(w);return C.setDate(C.getDate()+T),C.setHours(23,59,59,0),C}function y(w){const T=C=>C<10?"0"+C:C;return w.getFullYear()+"-"+T(w.getMonth()+1)+"-"+T(w.getDate())+"T"+T(w.getHours())+":"+T(w.getMinutes())}function _(w){const T=g(new Date,w);a.value=x(T),m.value=y(T),p.value=w}function E(w){const T=w.target.value;if(m.value=T,!T)return;const[C,I]=T.split("T");C&&I&&(a.value=`${C} ${I}:00`,f.value=!1,p.value=null)}return(w,T)=>(P(),q(Gt,{modelValue:b(s),"onUpdate:modelValue":T[4]||(T[4]=C=>Ce(s)?s.value=C:null),"max-width":"400"},{activator:A(C=>[Ht(w.$slots,"activator",Ks(pi({...C,onClick:u})))]),default:A(()=>[b(s)?(P(),q($e,{key:0},{default:A(()=>[S(We,null,{default:A(()=>[L("div",Vse,[T[5]||(T[5]=z(" 设置置顶 ",-1)),S(Mt),S(ce,{icon:"mdi-close",variant:"text",size:"small",onClick:d})]),L("div",Use," 帖子ID:"+Z(n.post.id),1),S(oo,{modelValue:b(o),"onUpdate:modelValue":T[0]||(T[0]=C=>Ce(o)?o.value=C:null),items:[{label:"不置顶",value:0},...Array.from({length:9},(C,I)=>({label:`权重${I+1}`,value:I+1}))],"item-title":"label","item-value":"value",label:"置顶权重",density:"compact",class:"mb-2",clearable:""},null,8,["modelValue","items"]),L("div",jse,[pn(L("input",{"onUpdate:modelValue":T[1]||(T[1]=C=>Ce(m)?m.value=C:null),type:"datetime-local",class:"border rounded px-2 py-1 w-full",min:x(new Date).slice(0,10)+"T00:00",onChange:E},null,40,zse),[[Pc,b(m)]]),S(oo,{modelValue:b(p),"onUpdate:modelValue":[T[2]||(T[2]=C=>Ce(p)?p.value=C:null),T[3]||(T[3]=C=>{C&&_(C)})],items:h.map(C=>({label:C===0?"选择天数":`${C}天后`,value:C})),"item-title":"label","item-value":"value",label:"快捷天数",density:"compact",class:"flex-1 w-full","hide-details":"",clearable:""},null,8,["modelValue","items"])])]),_:1}),S(mn,null,{default:A(()=>[S(ce,{color:"primary",loading:b(i),disabled:b(o)==null||!b(a),onClick:c},{default:A(()=>[...T[6]||(T[6]=[z(" 提交 ",-1)])]),_:1},8,["loading","disabled"])]),_:1})]),_:1})):te("",!0)]),_:3},8,["modelValue"]))}}),Hse=Object.freeze(Object.defineProperty({__proto__:null,default:G8},Symbol.toStringTag,{value:"Module"})),by=Ws(()=>{const{user:e}=it(),{isLogin:t}=Ct(),n=M({}),r=M(new Set);let s=null,i=null;async function o(){if(!(!t.value||r.value.size===0)){if(s){await s;return}s=(async()=>{try{const p=Array.from(r.value);if(p.length===0)return;const m=p.filter(x=>!n.value[x]);if(m.length===0){r.value.clear();return}const v=await e.followStatus({uids:m.join(",")});v&&typeof v=="object"&&Object.keys(v).forEach(x=>{const g=v[x];if(g&&typeof g=="object"){const y=g.follow_status??(g.following?1:0);n.value[x]={following:g.following??!1,follow_status:y,is_mutual:y===2}}}),m.forEach(x=>{n.value[x]||(n.value[x]={following:!1,follow_status:0,is_mutual:!1})}),r.value.clear()}catch(p){console.error("批量查询关注状态失败:",p),r.value.clear()}finally{s=null}})(),await s}}function a(p){const m=String(p);return n.value[m]||null}function l(p){const m=String(p);return F(()=>n.value[m]||null)}function u(p){if(!t.value)return;const m=String(p);n.value[m]||(r.value.add(m),i&&clearTimeout(i),i=setTimeout(()=>{o()},100))}function c(p,m){const v=String(p);n.value[v]={...m}}function d(p){const m=String(p);delete n.value[m]}function f(){n.value={},r.value.clear()}async function h(){i&&(clearTimeout(i),i=null),await o()}return{getStatus:a,getStatusRef:l,requestStatus:u,updateStatus:c,clearStatus:d,clearAll:f,flush:h}}),Gse={key:0},Vu=ke({__name:"UserFollowButton",props:{userId:{type:[String,Number],required:!0},initialFollowing:{type:Boolean,default:void 0},initialMutual:{type:Boolean,default:void 0},loading:{type:Boolean,default:!1},size:{type:String,default:"small"},color:{type:String,default:void 0},variant:{type:String,default:void 0},class:{type:String,default:""},context:{type:String,default:void 0},isViewingSelf:{type:Boolean,default:!1}},emits:["change","update:loading"],setup(e,{emit:t}){const n=e,r=t,s=M(n.initialFollowing??!1),i=M(n.initialMutual??!1),o=M(!1),a=F(()=>n.initialFollowing!==void 0),{user:l,isLogin:u}=Ct(),c=by(),d=F(()=>
72{if(!n.userId)return!1;if(u.value){const T=l.value?.id;if(T&&String(T)===String(n.userId))return!1}return!0}),f=F(()=>n.color!==void 0?n.color:s.value?"grey":"primary"),h=F(()=>n.variant!==void 0?n.variant:(s.value,"outlined")),p=F(()=>n.loading||o.value),m=F(()=>n.isViewingSelf?n.context==="followers"?i.value?"互关":s.value?"已关注":"回关":n.context==="following"?i.value?"互关":s.value?"取关":"关注":s.value?i.value?"互关":"已关注":"关注":n.context==="followers"?s.value?"已关注":"关注":n.context==="following"?s.value?"取关":"关注":s.value?"已关注":"关注");let v=null,x=!1;ft(()=>{if(!u.value||!n.userId)return;const T=String(n.userId);if(a.value){s.value=n.initialFollowing??!1,i.value=n.initialMutual??!1;const I=i.value?2:s.value?1:0;c.updateStatus(T,{following:s.value,follow_status:I,is_mutual:i.value})}else{const I=c.getStatus(T);I?(s.value=I.following,i.value=I.is_mutual??I.follow_status===2):c.requestStatus(T)}const C=c.getStatusRef(T);v=be(C,I=>{if(I&&!x){const k=I.is_mutual??I.follow_status===2;(I.following!==s.value||k!==i.value)&&(s.value=I.following,i.value=k)}},{immediate:!0,flush:"post"})}),cn(()=>{v&&(v(),v=null)}),be(()=>n.initialFollowing,T=>{T!==void 0&&!x&&(s.value=T)}),be(()=>n.initialMutual,T=>{T!==void 0&&!x&&(i.value=T)});const g=M(!1),y=M(!1);async function _(){if(!u.value){y.value=!0;return}if(!n.userId){je.error("无法获取用户信息");return}const T=l.value?.id;if(T&&String(T)===String(n.userId)){je.error("不能关注自己");return}try{x=!0,o.value=!0;const{post:C}=it(),I=await C.follow(n.userId),k=I?.data||I,$=k?.following??!1,R=k?.follow_status??($?1:0),D=k?.is_mutual??R===2;s.value=$,i.value=D;const O=String(n.userId);c.updateStatus(O,{following:$,follow_status:R,is_mutual:D}),r("change",s.value,i.value),s.value?je.success("关注成功"):je.success("已取消关注")}catch(C){console.error("关注操作失败:",C);const I=C?.response?.data?.msg||C?.message||"操作失败,请稍后再试";je.error(I)}finally{o.value=!1,g.value=!1,await tt(),x=!1}}function E(){p.value||(s.value?g.value=!0:_())}function w(){_()}return(T,C)=>{const I=Cr;return b(d)?(P(),j("div",Gse,[S(ce,{class:Ie(["min-w-0 text-xs font-medium transition-colors",b(s)?"px-2":"px-3",n.class]),color:b(f),variant:b(h),loading:b(p),size:e.size,onClick:Et(E,["stop"])},{default:A(()=>
72[b(s)?(P(),q(de,{key:0,start:"",icon:"mdi:check",size:"16"})):te("",!0),L("span",null,Z(b(m)),1)]),_:1},8,["class","color","variant","loading","size"]),S(Gt,{modelValue:b(g),"onUpdate:modelValue":C[1]||(C[1]=k=>Ce(g)?g.value=k:null),"max-width":"400"},{default:A(()=>[S($e,null,{default:A(()=>[S(at,{class:"text-h6"},{default:A(()=>[...C[3]||(C[3]=[z(" 取消关注 ",-1)])]),_:1}),S(We,null,{default:A(()=>[...C[4]||(C[4]=[z(" 确定要取消关注该用户吗? ",-1)])]),_:1}),S(zt),S(mn,null,{default:A(()=>[S(Mt),S(ce,{variant:"text",onClick:C[0]||(C[0]=k=>g.value=!1)},{default:A(()=>[...C[5]||(C[5]=[z(" 取消 ",-1)])]),_:1}),S(ce,{color:"primary",variant:"flat",loading:b(p),onClick:w},{default:A(()=>[...C[6]||(C[6]=[z(" 确定 ",-1)])]),_:1},8,["loading"])]),_:1})]),_:1})]),_:1},8,["modelValue"]),S(I,{modelValue:b(y),"onUpdate:modelValue":C[2]||(C[2]=k=>Ce(y)?y.value=k:null),"initial-mode":"login"},null,8,["modelValue"])])):te("",!0)}}}),Kse=Object.freeze(Object.defineProperty({__proto__:null,default:Vu},Symbol.toStringTag,{value:"Module"})),X1=M(!1),gk=M({url:"",orderId:"",queryApi:""});function lu(){return{visible:X1,payData:gk,open:n=>{gk.value={url:n.url,orderId:n.orderId,queryApi:n.queryApi||""},X1.value=!0},close:()=>{X1.value=!1}}}const Wse={key:0,class:"text-caption"},qse={key:1,class:"flex justify-center mb-4"},Z1=10,GS=ke({__name:"PayConfirmDialog",props:{modelValue:Boolean},emits:["update:modelValue","success"],setup(e,{emit:t}){const{visible:n,payData:r,close:s}=lu(),i=t,o=M("ontouchstart"in window),a=M(!1),l=M(null),u=M(Z1),c=M("等待支付"),d=M(!1),f=async E=>{if(!d.value){d.value=!0;try{const{$api:w}=wt(),T=r.value?.queryApi||"user/vip_query";await w(T,{method:"POST",body:Vt({orderid:r.value.orderId}),silent:!0}),l.value&&(clearTimeout(l.value),l.value=null),await v()}catch(w){if(w?.error===99){if(E){p();return}p()}je.error(w?.data||w?.message||"查询失败,请稍后重试"),console.error(w)}finally{d.value=!1}}},h=M(null),p=()=>{n.value&&a.value&&(m(),h.value=fi(()=>{u.value--,u.value<=0&&clearInterval(h.value)},1e3),l.value=setTimeout(()=>{f(!0)},Z1*1e3))},m=()=>{u.value=Z1,h.value&&(clearInterval(h.value),h.value=null),l.value&&(clearTimeout(l.value),l.value=null)};be([n,a,r],([E,w,T])=>{E&&w&&T.orderId&&f(!0)}),be(()=>n.value,E=>{!E&&l.value&&m()});const v=async()=>{try{const{$api:E}=wt();c.value="支付成功",await E("user/online"),i("success"),g()}catch(E){console.error("更新用户状态失败:",E)}},x=F(()=>r.value.url),g=()=>{s(),i("update:modelValue",!1),l.value&&(clearTimeout(l.value),l.value=null),a.value=!1},y=(E=!1)=>{m(),f(E)};Er(()=>{m()});const _=()=>{a.value=!0,o.value&&setTimeout(()=>{document.hasFocus()&&window.open(x.value,"_blank")},100)};return(E,w)=>(P(),q(Gt,{modelValue:b(n),"onUpdate:modelValue":w[2]||(w[2]=T=>Ce(n)?n.value=T:null),"max-width":"400",persistent:""},{default:A(()=>[S($e,null,{default:A(()=>[S(at,{class:"text-center"},{default:A(()=>[...w[3]||(w[3]=[z(" 点击 [开始支付] 进行支付 ",-1)])]),_:1}),S(We,{class:"text-center p-2"},{default:A(()=>[w[4]||(w[4]=L("div",{class:"mb-4"},[L("strong",null,"请放心交易"),L("br"),z(" 信用卡及交易记录上,并不会显示相关成人信息 ")],-1)),w[5]||(w[5]=L("div",{class:"mb-4"},[L("strong",null,"额外说明"),L("br"),z(" 偶尔微信支付会跳到支付宝,是正常现象"),L("br"),z(" 不用担心,支付(10分钟内)是一定会到账的"),L("br"),z(" 如果支付失败可以尝试更换支付方式,谢谢 ")],-1)),b(a)?(P(),j("div",{key:0,class:Ie(["mb-4 py-2",{"bg-warning-lighten-4":b(c)==="等待支付","bg-success-lighten-4":b(c)==="支付成功"}])},[S(ce,{loading:b(d),variant:"outlined",size:"large",class:"font-weight-bold text-2xl mb-2 opacity-70",onClick:w[0]||(w[0]=T=>y(!1))},{default:A(()=>[z(Z(b(c)),1)]),_:1},8,["loading"]),b(c)==="等待支付"?(P(),j("div",Wse,Z(b(u))+"秒后自动查询支付结果 ",1)):te("",!0)],2)):te("",!0),b(o)?te("",!0):(P(),j("div",qse,[S(Uh,{value:b(r).url,size:128,level:"H"},null,8,["value"])]))]),_:1}),S(mn,null,{default:A(()=>[S(Mt),S(ce,{variant:"text",onClick:g},{default:A(()=>[...w[6]||(w[6]=[z(" 取消 ",-1)])]),_:1}),b(a)?(P(),j(se,{key:1},[S(ce,{tag:"a",color:"primary",url:b(x),href:b(x),target:"_blank",new:"1",onClick:_},{default:A(()=>[...w[7]||(w[7]=[z(" 重新打开支付界面 ",-1)])]),_:1},8,["url","href"]),S(ce,{color:"success",onClick:w[1]||(w[1]=T=>y(!1))},{default:A(()=>[...w[8]||(w[8]=[z(" 我已支付 ",-1)])]),_:1})],64)):(P(),q(ce,{key:0,tag:"a",color:"primary",href:b(x),target:"_blank",new:"1",onClick:_},{default:A(()=>[z(Z(b(o)?"开始支付":"扫码支付"),1)]),_:1},8,["href"]))]),_:1})]),_:1})]),_:1},8,["modelValue"]))}}),Yse=Object.freeze(Object.defineProperty({__proto__:null,default:GS},Symbol.toStringTag,{value:"Module"})),Xse=["innerHTML"],Zse={key:0,class:"flex justify-center py-6"},Jse={key:1,class:"grid grid-cols-3 gap-3"},Qse={class:"text-base font-bold"},eie={key:0,class:"text-xs text-gray-500 mt-1"},tie={key:1,class:"text-xs text-gray-500 mt-1"},nie={key:2,class:"mt-4"},rie={class:"text-xs text-gray-500 mt-1"},sie={key:0,class:"text-primary font-bold ml-2"},iie={key:3,class:"text-xs text-gray-500 mt-4 text-center"},oie={key:0,class:"text-primary font-bold ml-2"},aie={key:4,class:"mt-4"},lie={class:"flex items-center gap-2"},uie={class:"inline-flex h-5 items-center rounded-full bg-amber-100 dar
72k:bg-amber-900 px-2 text-[11px] font-bold text-amber-800 dark:text-amber-200"},cie={class:"text-xs font-bold text-amber-900 dark:text-amber-100"},die={class:"flex items-center gap-1"};const fie={key:0},hie={class:"mt-2 p-3 rounded-lg border border-amber-200 dark:border-amber-900/50 bg-gradient-to-r from-amber-50 to-yellow-50 dark:from-amber-950/30 dark:to-yellow-950/20"},pie={class:"grid grid-cols-2 gap-2"},mie={class:"text-[11px] text-amber-700 dark:text-amber-400"},vie={class:"text-sm font-bold text-amber-900 dark:text-amber-100 leading-tight"},gie={class:"text-[11px] text-amber-700 dark:text-amber-400 mt-2 opacity-90"},yie={class:"flex justify-center gap-4 mt-5"},Ed=ke({__name:"CreditRechargeDialog",props:{modelValue:Boolean},emits:["update:modelValue","close","success"],setup(e,{emit:t}){const n=t,r=e,s=Tt(),{isLogin:i}=Ct(),{visible:o}=lu(),a=M(r.modelValue);be(()=>r.modelValue,k=>{a.value=!!k}),be(a,k=>{n("update:modelValue",k),k||n("close")});const l=M(!1),u=M(!1),c=M(""),d=M([]),f=M([]),h=M(null),p=M([]),m=M(!1),v=M(0),x=M("");async function g(){l.value=!0;try{const $=await it().user.recharge();d.value=$.list||$.extend?.list||[],f.value=$.payment||$.extend?.payment||[],c.value=$.desc||$.extend?.desc||"",h.value=$.gift||$.extend?.gift||null,p.value=h.value?.rules||$.gift_rules||$.extend?.gift_rules||[],d.value?.length||(d.value=[{name:"10元",money:1e3},{name:"30元",money:3e3},{name:"50元",money:5e3},{name:"100元",money:1e4},{name:"200元",money:2e4},{name:"自定义",money:0,custom:1}])}catch(k){console.error(k)}finally{l.value=!1}}const y=()=>{a.value=!1},_=F(()=>{const k=d.value?.[v.value];if(!k)return 0;if(k.custom){const $=Number(x.value);return!$||$<=0?0:Math.round($*100)}return Number(k.money)||0}),E=F(()=>Math.floor(_.value)),w=F(()=>{const k=_.value;if(!k||!p.value?.length)return 0;for(const $ of p.value){const R=Number($.max_amount)||0;if(k>=$.min_amount&&(R<=0||k<=R))return $.gift_days}return 0}),T=F(()=>f.value?.length?_.value>0:!1),C=async k=>{if(!i){y(),s.push("/auth/login");return}if(T.value){u.value=!0;try{const $=_.value,{$api:R}=wt(),{url:D,orderid:O,query_api:B}=await R("user/recharge_order",{method:"POST",body:Vt({url:"//"+location.host,money:$,payment:k.type})});lu().open({url:D,orderId:O,queryApi:B})}catch($){console.error($)}finally{u.value=!1}}},I=()=>{lu().close(),n("success"),y()};return ft(()=>{g()}),(k,$)=>{const R=GS;return P(),j(se,null,[S(Gt,{modelValue:b(a),"onUpdate:modelValue":$[2]||($[2]=D=>Ce(a)?a.value=D:null),persistent:"","max-width":"500",transition:"dialog-bottom-transition"},{default:A(()=>[S($e,null,{default:A(()=>[S(ce,{icon:"",variant:"text",class:"absolute right-2 top-2 z-10",onClick:y},{default:A(()=>[S(de,null,{default:A(()=>[...$[4]||($[4]=[z("mdi-close",-1)])]),_:1})]),_:1}),S(at,{class:"text-center py-3"},{default:A(()=>[...$[5]||($[5]=[L("span",{class:"text-xl font-bold"},"积分充值",-1)])]),_:1}),S(We,{class:"pt-3 pb-0 px-4 text-center"},{default:A(()=>[b(c)?(P(),j("div",{key:0,class:"text-sm text-gray-500 leading-relaxed",innerHTML:b(c)},null,8,Xse)):te("",!0)]),_:1}),S(We,{class:"py-6 px-4"},{default:A(()=>[b(l)?(P(),j("div",Zse,[S(jn,{indeterminate:""})])):(P(),j("div",Jse,[(P(!0),j(se,null,Fe(b(d),(D,O)=>(P(),q($e,{key:O,class:Ie(["cursor-pointer transition-all duration-200 p-3 text-center",b(v)===O?"border-2 border-primary":"border border-gray-200"]),elevation:"0",onClick:B=>v.value=O},{default:A(()=>[L("div",Qse,Z(D.name),1),D.custom?(P(),j("div",tie," 自定义金额 ")):(P(),j("div",eie,Z(Math.floor(Number(D.money)||0))+" 积分 ",1))]),_:2},1032,["class","onClick"]))),128))])),b(d)[b(v)]?.custom?(P(),j("div",nie,[S(St,{modelValue:b(x),"onUpdate:modelValue":$[0]||($[0]=D=>Ce(x)?x.value=D:null),label:"自定义充值金额(元)",type:"number",min:"1","hide-details":""},null,8,["modelValue"]),L("div",rie,[z(" 预计到账:"+Z(b(E))+" 积分 ",1),b(w)>0?(P(),j("span",sie," 赠送"+Z(b(w))+"天会员 ",1)):te("",!0)])])):(P(),j("div",iie,[z(" 预计到账:"+Z(b(E))+" 积分 ",1),b(w)>0?(P(),j("span",oie," 赠送"+Z(b(w))+"天会员 ",1)):te("",!0)])),b(p).length>0?(P(),j("div",aie,[L("div",{class:"flex items-center justify-between px-3 py-2 rounded-lg border border-amber-200 dark:border-amber-900/50 bg-gradient-to-r from-amber-50 to-yellow-50 dark:from-amber-950/30 dark:to-yellow-950/20 cursor-pointer select-none",onClick:$[1]||($[1]=D=>m.value=!b(m))},[L("div",lie,[L("span",uie,Z(b(h)?.tag||"活动"),1),L("div",cie,Z(b(h)?.title||"充值赠送会员"),1)]),L("div",die,[(b(w)>0,te("",!0)),S(de,{size:"18",class:"text-amber-900 dark:text-amber-100"},{default:A(()=>[z(Z(b(m)?"mdi-chevron-up":"mdi-chevron-down"),1)]),_:1})])]),S(dy,null,{default:A(()=>[b(m)?(P(),j("div",fie,[L("div",hie,[L("div",pie,[(P(!0),j(se,null,Fe(b(p),(D,O)=>(P(),j("div",{key:O,class:"rounded-md bg-white/80 dark:bg-gray-800/50 border border-amber-100 dar
72k:border-amber-900/30 px-2.5 py-2"},[L("div",mie,[Number(D.max_amount)>0?(P(),j(se,{key:0},[z(Z((D.min_amount/100).toFixed(0))+"-"+Z((D.max_amount/100).toFixed(0))+"元 ",1)],64)):(P(),j(se,{key:1},[z(Z((D.min_amount/100).toFixed(0))+"元以上 ",1)],64))]),L("div",vie,[$[6]||($[6]=z(" 送 ",-1)),L("b",null,Z(D.gift_days),1),$[7]||($[7]=z(" 天会员 ",-1))])]))),128))]),L("div",gie,Z(b(h)?.tip||"以支付成功为准,活动规则以实际到账为准"),1)])])):te("",!0)]),_:1})])):te("",!0),L("div",yie,[(P(!0),j(se,null,Fe(b(f),D=>(P(),q(ce,{key:D.id,color:"primary",variant:"elevated",disabled:!b(T),loading:b(u),onClick:O=>C(D)},{default:A(()=>[z(Z(D.name),1)]),_:2},1032,["disabled","loading","onClick"]))),128))])]),_:1})]),_:1})]),_:1},8,["modelValue"]),b(o)?(P(),q(R,{key:0,modelValue:b(o),"onUpdate:modelValue":$[3]||($[3]=D=>Ce(o)?o.value=D:null),onSuccess:I},null,8,["modelValue"])):te("",!0)],64)}}}),xie=Object.freeze(Object.defineProperty({__proto__:null,default:Ed},Symbol.toStringTag,{value:"Module"})),bie={class:"bg-gradient-to-r from-primary/10 to-primary/5 px-6 pt-6 pb-2"},_ie={class:"flex items-center gap-3 mb-4"},Sie={class:"flex-1 text-left min-w-0"},Eie={class:"font-bold text-base"},wie={class:"text-xs text-gray-500"},Tie={class:"flex-shrink-0"},Cie={class:"bg-white/60 dark:bg-gray-800/60 rounded-lg p-3 mb-0"},Aie={class:"flex items-center gap-2 text-sm"},kie={class:"mb-4"},Iie={class:"flex items-center justify-between gap-2 mb-3"},Lie={class:"grid grid-cols-3 gap-2"},Die={class:"text-sm text-gray-600 dark:text-gray-400 mb-4 text-center"},Pie={class:"font-bold"},Rie={class:"font-bold text-primary"},Oie={class:"flex gap-3 w-full"},$ie={class:"flex items-center justify-center gap-2 text-xs text-gray-500 w-full"},Mie={class:"mb-6"},Fie={class:"bg-primary/10 rounded-lg p-4 mb-4"},Bie={class:"text-2xl font-bold text-primary"},Nie={class:"text-primary text-sm"},_y=ke({__name:"UserPostRewardDialog",props:{user:{},post:{}},emits:["confirm","cancel","success","close"],setup(e,{expose:t,emit:n}){const r=e,s=n,i=M(!1),o=M(!1),a=[10,20,50,100,200,500,1e3,2e3,3e3],l=M(a[3]),{user:u,isLogin:c,refreshAuth:d}=Ct(),f=M(!1),h=M(5);let p=null;const m=M(!1),v=M(!1);be(c,R=>{R&&m.value&&(m.value=!1)});const x=by(),g=M(!1),y=M(!0);let _=null;ft(()=>{if(r.user?.id){const R=x.getStatus(String(r.user.id));if(R)g.value=R.following;else{x.requestStatus(String(r.user.id));const D=x.getStatusRef(String(r.user.id));_=be(D,O=>{O&&(g.value=O.following)},{immediate:!0})}}}),cn(()=>{_&&(_(),_=null)}),be(i,R=>{R||s("close")});function E(){if(i.value=!0,f.value=!1,typeof window<"u"&&window.dispatchEvent(new CustomEvent("yj-reward-open")),r.user?.id){const R=x.getStatus(String(r.user.id));R?g.value=R.following:x.requestStatus(String(r.user.id))}g.value||(y.value=!0)}function w(){i.value=!1,f.value=!1,p&&clearInterval(p),typeof window<"u"&&window.dispatchEvent(new CustomEvent("yj-reward-close"))}async function T(){if(o.value)return;if(!c.value){m.value=!0;return}if(u.value?.credit<l.value){je.error("积分余额不够打赏"),v.value=!0;return}const{post:R}=it();o.value=!0;try{if(await R.reward({id:r.post.id,credit:l.value}),y.value&&!g.value&&r.user?.id)try{const D=await R.follow(r.user.id);g.value=D?.following??!1;const O=D?.follow_status??(g.value?1:0);x.updateStatus(String(r.user.id),{following:g.value,follow_status:O,is_mutual:D?.is_mutual??O===2})}catch(D){console.error("自动关注失败:",D)}s("success",l.value),I()}catch{}finally{o.value=!1}}async function C(){await d()}function I(){f.value=!0,h.value=5,p&&clearInterval(p),p=fi(()=>{h.value--,h.value<=0&&(clearInterval(p),w())},1e3)}const k=F(()=>{const R=r.user.avatar||"";return R.substring(0,1)=="/"?R:qs(R)});function $(){s("cancel"),w()}return t({openDialog:E,closeDialog:w}),(R,D)=>{const O=An,B=Vu,U=Cr,N=Ed;return P(),j(se,null,[S(Gt,{modelValue:b(i),"onUpdate:modelValue":D[2]||(D[2]=V=>Ce(i)?i.value=V:null),"max-width":"450","max-height":"700"},{activator:A(V=>[Ht(R.$slots,"activator",Ks(pi({...V,onClick:E})))]),default:A(()=>[S($e,{class:"rounded-t-2xl overflow-hidden"},{default:A(()=>[b(f)?(P(),q(We,{key:1,class:"text-center py-12 px-6"},{default:A(()=>[L("div",Mie,[S(de,{size:"80",color:"primary",class:"mb-4 animate-bounce"},{default:A(()=>[...D[12]||(D[12]=[z(" mdi:check-circle ",-1)])]),_:1})]),D[14]||(D[14]=L("div",{class:"text-2xl font-bold mb-3 text-gray-800 dark:text-gray-200"}," 打赏成功! ",-1)),D[15]||(D[15]=L("div",{class:"text-gray-600 dark:text-gray-400 mb-6 text-base"}," 感谢你的支持,社区有你更精彩~ ",-1)),L("div",Fie,[D[13]||(D[13]=L("div",{class:"text-sm text-gray-600 dark:text-gray-400 mb-1"}," 已打赏 ",-1)),L("div",Bie,Z(b(l))+" 积分 ",1)]),L("div",Nie," 本窗口将在 "+Z(b(h))+" 秒后自动关闭 ",1)]),_:1})):(P(),j(se,{key:0},[L("div",bie,[L("div",_ie,[S(rr,{size:"48",class:"ring-2 ring-primary/20"},{default:A(()=>[S(O,{width:48,height:48,src:b(k),alt:e.user.nickname,encoded:1},null,8,["src","alt"])]),_:1}),L("div",Sie,[L("div",Eie,Z(e.user.nickname),1),L("div",wie,Z(e.post.city||"精彩内容"),1)]),L("div",Tie,[S(B,{"user-id":e.user.id,"initial-following":b(g),size:"small",onChange:D[
720]||(D[0]=V=>{g.value=V,y.value=!1})},null,8,["user-id","initial-following"])])]),L("div",Cie,[L("div",Aie,[S(de,{icon:"mdi:heart-outline",size:"20",class:"text-primary"}),D[5]||(D[5]=L("span",{class:"text-gray-700 dark:text-gray-300"}," 感谢你的支持,打赏积分鼓励创作者 ",-1))])])]),S(We,{class:"px-6 pt-0 pb-2"},{default:A(()=>[L("div",kie,[L("div",Iie,[b(g)?te("",!0):(P(),q(Dre,{key:0,modelValue:b(y),"onUpdate:modelValue":D[1]||(D[1]=V=>Ce(y)?y.value=V:null),color:"primary",density:"compact","hide-details":""},{label:A(()=>[...D[6]||(D[6]=[L("span",{class:"text-sm text-gray-700 dark:text-gray-300"},"自动关注",-1)])]),_:1},8,["modelValue"]))]),L("div",Lie,[(P(),j(se,null,Fe(a,V=>S(kt,{key:V,color:b(l)===V?"primary":"default",class:Ie(["cursor-pointer h-12 rounded-lg flex items-center justify-center font-semibold transition-all",b(l)===V?"ring-2 ring-primary/30":""]),variant:b(l)===V?"flat":"outlined",onClick:H=>l.value=V},{default:A(()=>[z(Z(V),1)]),_:2},1032,["color","variant","class","onClick"])),64))])]),L("div",Die,[D[7]||(D[7]=z(" 当前积分:",-1)),L("span",Pie,Z(b(u)?.credit||0),1),D[8]||(D[8]=z(",打赏后剩余:",-1)),L("span",Rie,Z((b(u)?.credit||0)-b(l)),1)])]),_:1}),S(mn,{class:"px-6 pb-4 pt-0 flex-col gap-3"},{default:A(()=>[S(sn,{defaults:{VBtn:{ripple:!1,size:"large",class:"flex-1"}}},{default:A(()=>[L("div",Oie,[S(ce,{variant:"outlined",disabled:b(o),onClick:$},{default:A(()=>[...D[9]||(D[9]=[z(" 取消 ",-1)])]),_:1},8,["disabled"]),S(ce,{color:"primary",variant:"flat",loading:b(o),disabled:b(o)||b(u)?.credit<b(l),class:"font-bold",onClick:T},{default:A(()=>[S(de,{icon:"mdi:heart",size:"18",class:"mr-1"}),D[10]||(D[10]=z(" 立即打赏 ",-1))]),_:1},8,["loading","disabled"])])]),_:1}),L("div",$ie,[S(de,{icon:"mdi:information-outline",size:"16",class:"flex-shrink-0"}),D[11]||(D[11]=L("span",null,"打赏的积分将直接转给创作者",-1))])]),_:1})],64))]),_:1})]),_:3},8,["modelValue"]),b(m)?(P(),q(U,{key:0,modelValue:b(m),"onUpdate:modelValue":D[3]||(D[3]=V=>Ce(m)?m.value=V:null),"initial-mode":"login"},null,8,["modelValue"])):te("",!0),b(v)?(P(),q(N,{key:1,modelValue:b(v),"onUpdate:modelValue":D[4]||(D[4]=V=>Ce(v)?v.value=V:null),onSuccess:C},null,8,["modelValue"])):te("",!0)],64)}}}),Vie=Object.freeze(Object.defineProperty({__proto__:null,default:_y},Symbol.toStringTag,{value:"Module"}));class Sy{maxSize;cache;head;tail;constructor(t=100){this.maxSize=t,this.cache=new Map}get(t){const n=this.cache.get(t);if(n)return this.moveToHead(t),n.value}set(t,n){if(this.cache.has(t)){this.cache.get(t).value=n,this.moveToHead(t);return}this.cache.set(t,{value:n,next:this.head}),this.head!==void 0&&(this.cache.get(this.head).prev=t),this.head=t,this.tail===void 0&&(this.tail=t),this.cache.size>this.maxSize&&this.tail!==void 0&&this.delete(this.tail)}delete(t){const n=this.cache.get(t);n&&(n.prev!==void 0&&(this.cache.get(n.prev).next=n.next),n.next!==void 0&&(this.cache.get(n.next).prev=n.prev),this.head===t&&(this.head=n.next),this.tail===t&&(this.tail=n.prev),this.cache.delete(t))}moveToHead(t){if(this.head===t)return;const n=this.cache.get(t);n&&(n.prev!==void 0&&(this.cache.get(n.prev).next=n.next),n.next!==void 0&&(this.cache.get(n.next).prev=n.prev),this.tail===t&&(this.tail=n.prev),n.prev=void 0,n.next=this.head,this.head!==void 0&&(this.cache.get(this.head).prev=t),this.head=t)}clear(){this.cache.clear(),this.head=void 0,this.tail=void 0}get size(){return this.cache.size}entries(){const t=[];let n=this.head;for(;n!==void 0;){const r=this.cache.get(n);if(r)t.push([n,r.value]),n=r.next;else break}return t}}function Ey(){const t=new Sy(1e3);function n(m,v){return`${v}:${m}`}function r(m,v,x){const g=n(m,v);t.set(g,{liked:x,timestamp:Date.now()}),c()}function s(m,v){const x=n(m,v),g=t.get(x);return g?g.liked:!1}function i(m,v){const x=n(m,v);return t.get(x)!==void 0}function o(m,v){const x={};return m.forEach(g=>{const y=s(g,v);y!==null&&(x[g]=y)}),x}function a(m,v){const x={};return m.forEach(g=>{x[g]=i(g,v)}),x}function l(m,v){const x=n(m,v);t.delete(x),c()}function u(){t.clear(),localStorage.removeItem("like-cache")}function c(){try{const m=[];for(const[x,g]of t.entries()){const[y,_]=x.split(":",2);m.push({id:_,source:y,liked:g.liked,timestamp:g.timestamp})}const v=d(m);localStorage.setItem("like-cache",v)}catch(m){console.error("保存点赞缓存失败:",m)}}function d(m){return m.length===0?"":m.map(x=>{const g=x.source,y=x.id,_=x.liked?"1":"0",E=x.timestamp.toString(36);return`${g}${y}|${_}${E}`}).join(",")}function f(m){if(!m)return[];try{return m.split(",").map(v=>
72{const[x,g]=v.split("|"),y=x[0],_=x.slice(1),E=g[0]==="1",w=parseInt(g.slice(1),36);return{id:_,source:y,liked:E,timestamp:w}})}catch(v){return console.error("解压点赞数据失败:",v),[]}}function h(){try{const m=localStorage.getItem("like-cache");if(!m)return;const v=f(m);t.clear(),v.sort((x,g)=>g.timestamp-x.timestamp),v.slice(0,1e3).forEach(x=>{const g=n(x.id,x.source);t.set(g,{liked:x.liked,timestamp:x.timestamp})})}catch(m){console.error("加载点赞缓存失败:",m),u()}}const p=F(()=>({size:t.size,maxSize:1e3,usage:Math.round(t.size/1e3*100)}));return h(),{setLikeStatus:r,getLikeStatus:s,getBatchLikeStatus:o,hasLikeStatus:i,hasBatchLikeStatus:a,deleteLikeStatus:l,clearCache:u,cacheStats:p,saveToStorage:c,loadFromStorage:h,compressLikeData:d,decompressLikeData:f}}function wy(){const t=new Sy(1e3);function n(m){return`post:${m}`}function r(m,v){const x=n(m);v?t.set(x,{favored:v,timestamp:Date.now()}):t.delete(x),c()}function s(m){const v=n(m),x=t.get(v);return x?x.favored:!1}function i(m){const v=n(m);return t.get(v)!==void 0}function o(m){const v={};return m.forEach(x=>{const g=s(x);g!==null&&(v[x]=g)}),v}function a(m){const v={};return m.forEach(x=>{v[x]=i(x)}),v}function l(m){const v=n(m);t.delete(v),c()}function u(){t.clear(),localStorage.removeItem("fav-cache")}function c(){try{const m=[];for(const[x,g]of t.entries()){const y=x.replace("post:","");m.push({id:y,favored:g.favored,timestamp:g.timestamp})}const v=d(m);localStorage.setItem("fav-cache",v)}catch(m){console.error("保存收藏缓存失败:",m)}}function d(m){return m.length===0?"":m.map(x=>{const g=x.favored?"1":"0",y=x.timestamp.toString(36);return`${x.id}|${g}${y}`}).join(",")}function f(m){if(!m)return[];try{return m.split(",").map(v=>{const[x,g]=v.split("|"),y=g[0]==="1",_=parseInt(g.slice(1),36);return{id:x,favored:y,timestamp:_}})}catch(v){return console.error("解压收藏数据失败:",v),[]}}function h(){try{const m=localStorage.getItem("fav-cache");if(!m)return;const v=f(m);t.clear(),v.sort((x,g)=>g.timestamp-x.timestamp),v.slice(0,1e3).forEach(x=>{const g=n(x.id);t.set(g,{favored:x.favored,timestamp:x.timestamp})})}catch(m){console.error("加载收藏缓存失败:",m),u()}}const p=F(()=>({size:t.size,maxSize:1e3,usage:Math.round(t.size/1e3*100)}));return h(),{setFavStatus:r,getFavStatus:s,getBatchFavStatus:o,hasFavStatus:i,hasBatchFavStatus:a,deleteFavStatus:l,clearCache:u,cacheStats:p,saveToStorage:c,loadFromStorage:h,compressFavData:d,decompressFavData:f}}const Uie={class:"mb-3"},K8=ke({__name:"TimelineMenu",props:{post:{type:Object,required:!0},user:{type:Object,required:!1},isDetail:{type:Boolean,default:!1,required:!1}},emits:["deleted","statusChanged"],setup(e,{emit:t}){const n=e,r=t,s=M(!1);function i(D){r("statusChanged",n.post.id,D),s.value=!1}function o(){}function a(D){D&&n.user&&(D.avatar&&(n.user.avatar=D.avatar),D.nickname&&(n.user.nickname=D.nickname),D.sex!==void 0&&(n.user.sex=D.sex))}const{isEditor:l}=Ct(),u=M(!1),c=M(!1),{post:d}=it(),{deleteLikeStatus:f}=Ey(),{deleteFavStatus:h}=wy();async function p(){c.value=!0;try{await d.del(n.post.id),f(n.post.id,"1"),h(n.post.id),r("deleted",n.post.id),s.value=!1}catch{}finally{c.value=!1,u.value=!1}}const m=M(!1);function v(){m.value=!1,s.value=!1}const x=Tt();function g(){x.push({path:"/user/post",query:{id:n.post.id}}),s.value=!1}const{detail:y}=It();function _(){x.push(y("thread",`${n.post.id}`)),s.value=!1}const{copyText:E}=Pa(),w=M(!1),T=M(""),C=M(null);be(w,D=>{D&&tt(()=>{const O=C.value?.querySelector("input");O&&(O.focus(),O.select())})});async function I(){try{const D=y("thread",`${n.post.id}`),O=window.location.origin+D;T.value=O,await E(O)?(je.success("链接已复制,快去分享吧~"),s.value=!1):(w.value=!0,s.value=!1)}catch(D){console.error("分享失败:",D),je.error("分享失败,请稍后重试"),s.value=!1}}async function k(){try{await E(T.value)?(je.success("链接已复制,快去分享吧~"),w.value=!1):je.error("复制失败,请手动选择并复制链接")}catch(D){console.error("复制失败:",D),je.error("复制失败,请手动选择并复制链接")}}const $=M(null);function R(){s.value=!1,tt(()=>{$.value?.openDialog()})}return(D,O)=>{const B=H8,U=zS,N=zh,V=HS,H=G8,re=_y;return P(),j(se,null,[S(Ri,{modelValue:b(s),"onUpdate:modelValue":O[7]||(O[7]=W=>Ce(s)?s.value=W:null),location:"bottom end"},{activator:A(({props:W})=>[S(ce,Ve({icon:"",density:"comfortable",size:"small"},W,{class:"opacity-60"}),{default:A(()=>[S(de,{icon:"mdi:dots-vertical"})]),_:1},16)]),default:A(()=>[S(vr,null,{default:A(()=>[e.isDetail?te("",!0):(P(),q(Rt,{key:0,title:"详情",density:"compact",slim:"","prepend-icon":"mdi-open-in-new",onClick:_})),S(Rt,{title:"打赏",density:"compact",slim:"","prepend-icon":"mdi-gift-outline",onClick:R}),S(Rt,{title:"分享",density:"compact",slim:"","prepend-icon":"mdi:share-variant-outline",onClick:I}),b(l)?(P(),q(Rt,{key:1,title:"编辑",density:"compact",slim:"","prepend-icon":"mdi-pencil",onClick:g})):te("",!0),b(l)?(P(),q(B,{key:2,post:e.post,onConfirm:i,onCancel:O[0]||(O[0]=W=>s.value=!1)},{activator:A(({props:W,onClick:X})=>[S(Rt,Ve(W,{title:"审核",density:"compact",slim:"","prepend-icon":"mdi:check-decagram",onClick:X}),null,16,["onClick"])]),_:1},8,["post"])):te("",!0),S(U,{id:e.post.id,type:"post",onSuccess:o,onCancel:O[1]||(O[1]=W=>s.value=!1)},{activator:A(({props:W})=>[S(Rt,Ve(W,{title:"举报",density:"compact",slim:"","prepend-icon":"mdi:alert-circle-outline"}),null,16)]),_:1},8,["id"]),b(l)?(P(),q(N,{key:3,modelValue:b(u),"onUpdate:modelValue":O[2]||(O[2]=W=>Ce(u)?u.value=W:null),title:"确定删除该评论吗?",content:"删除后不可恢复",onConfirm:p,onCancel:O[3]||(O[3]=W=>s.value=!1)},{activator:A(({props:W})=>
72[S(Rt,Ve({title:"删除","prepend-icon":"mdi:delete",density:"compact",slim:"","min-width":"auto"},W),null,16)]),_:1},8,["modelValue"])):te("",!0),b(l)&&e.user?.id?(P(),q(V,{key:4,uid:e.user.id,onConfirm:a,onCancel:O[4]||(O[4]=W=>s.value=!1)},{activator:A(({props:W,onClick:X})=>[S(Rt,Ve(W,{title:"用户",density:"compact",slim:"","prepend-icon":"mdi:account-edit",onClick:X}),null,16,["onClick"])]),_:1},8,["uid"])):te("",!0),b(l)?(P(),q(H,{key:5,modelValue:b(m),"onUpdate:modelValue":O[5]||(O[5]=W=>Ce(m)?m.value=W:null),post:e.post,onConfirm:v,onCancel:O[6]||(O[6]=W=>s.value=!1)},{activator:A(({props:W})=>[S(Rt,Ve(W,{title:"置顶",density:"compact",slim:"","prepend-icon":"mdi:pin"}),null,16)]),_:1},8,["modelValue","post"])):te("",!0)]),_:1})]),_:1},8,["modelValue"]),S(Gt,{modelValue:b(w),"onUpdate:modelValue":O[11]||(O[11]=W=>Ce(w)?w.value=W:null),"max-width":"500"},{default:A(()=>[S($e,null,{default:A(()=>[S(at,{class:"d-flex align-center"},{default:A(()=>[S(de,{icon:"mdi:alert-circle-outline",color:"warning",class:"mr-2"}),O[12]||(O[12]=z(" 复制失败 ",-1))]),_:1}),S(We,null,{default:A(()=>[L("div",Uie,[O[13]||(O[13]=L("p",{class:"text-body-2 mb-2"}," 自动复制失败,请手动复制以下链接: ",-1)),S(St,{ref_key:"shareUrlInputRef",ref:C,"model-value":b(T),readonly:"",variant:"outlined",density:"compact",class:"mb-2",onFocus:O[8]||(O[8]=W=>W.target.select()),onClick:O[9]||(O[9]=W=>W.target.select())},null,8,["model-value"])])]),_:1}),S(zt),S(mn,null,{default:A(()=>[S(Mt),S(ce,{variant:"flat",onClick:O[10]||(O[10]=W=>w.value=!1)},{default:A(()=>[...O[14]||(O[14]=[z(" 关闭 ",-1)])]),_:1}),S(ce,{color:"primary",variant:"flat","prepend-icon":"mdi:content-copy",onClick:k},{default:A(()=>[...O[15]||(O[15]=[z(" 再次复制 ",-1)])]),_:1})]),_:1})]),_:1})]),_:1},8,["modelValue"]),S(re,{ref_key:"rewardDialogRef",ref:$,user:e.user??{},post:e.post},null,8,["user","post"])],64)}}}),jie=Object.freeze(Object.defineProperty({__proto__:null,default:K8},Symbol.toStringTag,{value:"Module"}));var gm={exports:{}},J1={exports:{}},Q1={};const zc=Symbol(""),_c=Symbol(""),Ty=Symbol(""),rh=Symbol(""),KS=Symbol(""),yl=Symbol(""),WS=Symbol(""),qS=Symbol(""),Cy=Symbol(""),Ay=Symbol(""),wd=Symbol(""),ky=Symbol(""),YS=Symbol(""),Iy=Symbol(""),Ly=Symbol(""),Dy=Symbol(""),Py=Symbol(""),Ry=Symbol(""),Oy=Symbol(""),XS=Symbol(""),ZS=Symbol(""),Gh=Symbol(""),sh=Symbol(""),$y=Symbol(""),My=Symbol(""),Hc=Symbol(""),Td=Symbol(""),Fy=Symbol(""),Zv=Symbol(""),W8=Symbol(""),Jv=Symbol(""),ih=Symbol(""),q8=Symbol(""),Y8=Symbol(""),By=Symbol(""),X8=Symbol(""),Z8=Symbol(""),Ny=Symbol(""),JS=Symbol(""),Eu={[zc]:"Fragment",[_c]:"Teleport",[Ty]:"Suspense",[rh]:"KeepAlive",[KS]:"BaseTransition",[yl]:"openBlock",[WS]:"createBlock",[qS]:"createElementBlock",[Cy]:"createVNode",[Ay]:"createElementVNode",[wd]:"createCommentVNode",[ky]:"createTextVNode",[YS]:"createStaticVNode",[Iy]:"resolveComponent",[Ly]:"resolveDynamicComponent",[Dy]:"resolveDirective",[Py]:"resolveFilter",[Ry]:"withDirectives",[Oy]:"renderList",[XS]:"renderSlot",[ZS]:"createSlots",[Gh]:"toDisplayString",[sh]:"mergeProps",[$y]:"normalizeClass",[My]:"normalizeStyle",[Hc]:"normalizeProps",[Td]:"guardReactiveProps",[Fy]:"toHandlers",[Zv]:"camelize",[W8]:"capitalize",[Jv]:"toHandlerKey",[ih]:"setBlockTracking",[q8]:"pushScopeId",[Y8]:"popScopeId",[By]:"withCtx",[X8]:"unref",[Z8]:"isRef",[Ny]:"withMemo",[JS]:"isMemoSame"};function J8(e){Object.getOwnPropertySymbols(e).forEach(t=>{Eu[t]=e[t]})}const zie={HTML:0,0:"HTML",SVG:1,1:"SVG",MATH_ML:2,2:"MATH_ML"},Hie={ROOT:0,0:"ROOT",ELEMENT:1,1:"ELEMENT",TEXT:2,2:"TEXT",COMMENT:3,3:"COMMENT",SIMPLE_EXPRESSION:4,4:"SIMPLE_EXPRESSION",INTERPOLATION:5,5:"INTERPOLATION",ATTRIBUTE:6,6:"ATTRIBUTE",DIRECTIVE:7,7:"DIRECTIVE",COMPOUND_EXPRESSION:8,8:"COMPOUND_EXPRESSION",IF:9,9:"IF",IF_BRANCH:10,10:"IF_BRANCH",FOR:11,11:"FOR",TEXT_CALL:12,12:"TEXT_CALL",VNODE_CALL:13,13:"VNODE_CALL",JS_CALL_EXPRESSION:14,14:"JS_CALL_EXPRESSION",JS_OBJECT_EXPRESSION:15,15:"JS_OBJECT_EXPRESSION",JS_PROPERTY:16,16:"JS_PROPERTY",JS_ARRAY_EXPRESSION:17,17:"JS_ARRAY_EXPRESSION",JS_FUNCTION_EXPRESSION:18,18:"JS_FUNCTION_EXPRESSION",JS_CONDITIONAL_EXPRESSION:19,19:"JS_CONDITIONAL_EXPRESSION",JS_CACHE_EXPRESSION:20,20:"JS_CACHE_EXPRESSION",JS_BLOCK_STATEMENT:21,21:"JS_BLOCK_STATEMENT",JS_TEMPLATE_LITERAL:22,22:"JS_TEMPLATE_LITERAL",JS_IF_STATEMENT:23,23:"JS_IF_STATEMENT",JS_ASSIGNMENT_EXPRESSION:24,24:"JS_ASSIGNMENT_EXPRESSION",JS_SEQUENCE_EXPRESSION:25,25:"JS_SEQUENCE_EXPRESSION",JS_RETURN_STATEMENT:26,26:"JS_RETURN_STATEMENT"},Gie={ELEMENT:0,0:"ELEMENT",COMPONENT:1,1:"COMPONENT",SLOT:2,2:"SLOT",TEMPLATE:3,3:"TEMPLATE"},Kie={NOT_CONSTANT:0,0:"NOT_CONSTANT",CAN_SKIP_PATCH:1,1:"CAN_SKIP_PATCH",CAN_CACHE:2,2:"CAN_CACHE",CAN_STRINGIFY:3,3:"CAN_STRINGIFY"},Ar={start:{line:1,column:1,offset:0},end:{line:1,column:1,offset:0},source:""};function Q8(e,t=""){return{type:0,source:t,children:e,helpers:new Set,components:[],directives:[],hoists:[],imports:[],cached:[],temps:0,codegenNode:void 0,loc:Ar}}
vendor: 14,115 bytes, line 72
72function Gc(e,t,n,r,s,i,o,a=!1,l=!1,u=!1,c=Ar){return e&&(a?(e.helper(yl),e.helper(Cu(e.inSSR,u))):e.helper(Tu(e.inSSR,u)),o&&e.helper(Ry)),{type:13,tag:t,props:n,children:r,patchFlag:s,dynamicProps:i,directives:o,isBlock:a,disableTracking:l,isComponent:u,loc:c}}function dl(e,t=Ar){return{type:17,loc:t,elements:e}}function ai(e,t=Ar){return{type:15,loc:t,properties:e}}function ur(e,t){return{type:16,loc:Ar,key:Ot(e)?Nt(e,!0):e,value:t}}function Nt(e,t=!1,n=Ar,r=0){return{type:4,loc:n,content:e,isStatic:t,constType:t?3:r}}function Wie(e,t){return{type:5,loc:t,content:Ot(e)?Nt(e,!1,t):e}}function Oi(e,t=Ar){return{type:8,loc:t,children:e}}function pr(e,t=[],n=Ar){return{type:14,loc:n,callee:e,arguments:t}}function wu(e,t=void 0,n=!1,r=!1,s=Ar){return{type:18,params:e,returns:t,newline:n,isSlot:r,loc:s}}function Qv(e,t,n,r=!0){return{type:19,test:e,consequent:t,alternate:n,newline:r,loc:Ar}}function eO(e,t,n=!1,r=!1){return{type:20,index:e,value:t,needPauseTracking:n,inVOnce:r,needArraySpread:!1,loc:Ar}}function tO(e){return{type:21,body:e,loc:Ar}}function qie(e){return{type:22,elements:e,loc:Ar}}function Yie(e,t,n){return{type:23,test:e,consequent:t,alternate:n,loc:Ar}}function Xie(e,t){return{type:24,left:e,right:t,loc:Ar}}function Zie(e){return{type:25,expressions:e,loc:Ar}}function Jie(e){return{type:26,returns:e,loc:Ar}}function Tu(e,t){return e||t?Cy:Ay}function Cu(e,t){return e||t?WS:qS}function Vy(e,{helper:t,removeHelper:n,inSSR:r}){e.isBlock||(e.isBlock=!0,n(Tu(r,e.isComponent)),t(yl),t(Cu(r,e.isComponent)))}const yk=new Uint8Array([123,123]),xk=new Uint8Array([125,125]);function bk(e){return e>=97&&e<=122||e>=65&&e<=90}function ni(e){return e===32||e===10||e===9||e===12||e===13}function Va(e){return e===47||e===62||ni(e)}function eg(e){const t=new Uint8Array(e.length);for(let n=0;n<e.length;n++)t[n]=e.charCodeAt(n);return t}const ts={Cdata:new Uint8Array([67,68,65,84,65,91]),CdataEnd:new Uint8Array([93,93,62]),CommentEnd:new Uint8Array([45,45,62]),ScriptEnd:new Uint8Array([60,47,115,99,114,105,112,116]),StyleEnd:new Uint8Array([60,47,115,116,121,108,101]),TitleEnd:new Uint8Array([60,47,116,105,116,108,101]),TextareaEnd:new Uint8Array([60,47,116,101,120,116,97,114,101,97])};class Qie{constructor(t,n){this.stack=t,this.cbs=n,this.state=1,this.buffer="",this.sectionStart=0,this.index=0,this.entityStart=0,this.baseState=1,this.inRCDATA=!1,this.inXML=!1,this.inVPre=!1,this.newlines=[],this.mode=0,this.delimiterOpen=yk,this.delimiterClose=xk,this.delimiterIndex=-1,this.currentSequence=void 0,this.sequenceIndex=0}get inSFCRoot(){return this.mode===2&&this.stack.length===0}reset(){this.state=1,this.mode=0,this.buffer="",this.sectionStart=0,this.index=0,this.baseState=1,this.inRCDATA=!1,this.currentSequence=void 0,this.newlines.length=0,this.delimiterOpen=yk,this.delimiterClose=xk}getPos(t){let n=1,r=t+1;for(let s=this.newlines.length-1;s>=0;s--){const i=this.newlines[s];if(t>i){n=s+2,r=t-i;break}}return{column:r,line:n,offset:t}}peek(){return this.buffer.charCodeAt(this.index+1)}stateText(t){t===60?(this.index>this.sectionStart&&this.cbs.ontext(this.sectionStart,this.index),this.state=5,this.sectionStart=this.index):!this.inVPre&&t===this.delimiterOpen[0]&&(this.state=2,this.delimiterIndex=0,this.stateInterpolationOpen(t))}stateInterpolationOpen(t){if(t===this.delimiterOpen[this.delimiterIndex])if(this.delimiterIndex===this.delimiterOpen.length-1){const n=this.index+1-this.delimiterOpen.length;n>this.sectionStart&&this.cbs.ontext(this.sectionStart,n),this.state=3,this.sectionStart=n}else this.delimiterIndex++;else this.inRCDATA?(this.state=32,this.stateInRCDATA(t)):(this.state=1,this.stateText(t))}stateInterpolation(t){t===this.delimiterClose[0]&&(this.state=4,this.delimiterIndex=0,this.stateInterpolationClose(t))}stateInterpolationClose(t){t===this.delimiterClose[this.delimiterIndex]?this.delimiterIndex===this.delimiterClose.length-1?(this.cbs.oninterpolation(this.sectionStart,this.index+1),this.inRCDATA?this.state=32:this.state=1,this.sectionStart=this.index+1):this.delimiterIndex++:(this.state=3,this.stateInterpolation(t))}stateSpecialStartSequence(t){const n=this.sequenceIndex===this.currentSequence.length;if(!(n?Va(t):(t|32)===this.currentSequence[this.sequenceIndex]))this.inRCDATA=!1;else if(!n){this.sequenceIndex++;return}this.sequenceIndex=0,this.state=6,this.stateInTagName(t)}stateInRCDATA(t){if(this.sequenceIndex===this.currentSequence.length){if(t===62||ni(t)){const n=this.index-this.currentSequence.length;if(this.sectionStart<n){const r=this.index;this.index=n,this.cbs.ontext(this.sectionStart,n),this.index=r}this.sectionStart=n+2,this.stateInClosingTagName(t),this.inRCDATA=!1;return}this.sequenceIndex=0}(t|32)===this.currentSequence[this.sequenceIndex]?this.sequenceIndex+=1:this.sequenceIndex===0?this.currentSequence===ts.TitleEnd||this.currentSequence===ts.TextareaEnd&&!this.inSFCRoot?!this.inVPre&&t===this.delimiterOpen[0]&&(this.state=2,this.delimiterIndex=0,this.stateInterpolationOpen(t)):this.fastForwardTo(60)&&(this.sequenceIndex=1):this.sequenceIndex=+(t===60)}stateCDATASequence(t){t===ts.Cdata[this.sequenceIndex]?++this.sequenceIndex===ts.Cdata.length&&(this.state=28,this.currentSequence=ts.CdataEnd,this.sequenceIndex=0,this.sectionStart=this.index+1):(this.sequenceIndex=0,this.state=23,this.stateInDeclaration(t))}fastForwardTo(t){for(;++this.index<this.buffer.length;){const n=this.buffer.charCodeAt(this.index);if(n===10&&this.newlines.push(this.index),n===t)return!0}return this.index=this.buffer.length-1,!1}stateInCommentLike(t){t===this.currentSequence[this.sequenceIndex]?++this.sequenceIndex===this.currentSequence.length&&(this.currentSequence===ts.CdataEnd?this.cbs.oncdata(this.sectionStart,this.index-2):this.cbs.oncomment(this.sectionStart,this.index-2),this.sequenceIndex=0,this.sectionStart=this.index+1,this.state=1):this.sequenceIndex===0?this.fastForwardTo(this.currentSequence[0])&&(this.sequenceIndex=1):t!==this.currentSequence[this.sequenceIndex-1]&&(this.sequenceIndex=0)}startSpecial(t,n){this.enterRCDATA(t,n),this.state=31}enterRCDATA(t,n){this.inRCDATA=!0,this.currentSequence=t,this.sequenceIndex=n}stateBeforeTagName(t){t===33?(this.state=22,this.sectionStart=this.index+1):t===63?(this.state=24,this.sectionStart=this.index+1):bk(t)?(this.sectionStart=this.index,this.mode===0?this.state=6:this.inSFCRoot?this.state=34:this.inXML?this.state=6:t===116?this.state=30:this.state=t===115?29:6):t===47?this.state=8:(this.state=1,this.stateText(t))}stateInTagName(t){Va(t)&&this.handleTagName(t)}stateInSFCRootTagName(t){if(Va(t)){const n=this.buffer.slice(this.sectionStart,this.index);n!=="template"&&this.enterRCDATA(eg("</"+n),0),this.handleTagName(t)}}handleTagName(t){this.cbs.onopentagname(this.sectionStart,this.index),this.sectionStart=-1,this.state=11,this.stateBeforeAttrName(t)}stateBeforeClosingTagName(t){ni(t)||(t===62?(this.state=1,this.sectionStart=this.index+1):(this.state=bk(t)?9:27,this.sectionStart=this.index))}stateInClosingTagName(t){(t===62||ni(t))&&(this.cbs.onclosetag(this.sectionStart,this.index),this.sectionStart=-1,this.state=10,this.stateAfterClosingTagName(t))}stateAfterClosingTagName(t){t===62&&(this.state=1,this.sectionStart=this.index+1)}stateBeforeAttrName(t){t===62?(this.cbs.onopentagend(this.index),this.inRCDATA?this.state=32:this.state=1,this.sectionStart=this.index+1):t===47?this.state=7:t===60&&this.peek()===47?(this.cbs.onopentagend(this.index),this.state=5,this.sectionStart=this.index):ni(t)||this.handleAttrStart(t)}handleAttrStart(t){t===118&&this.peek()===45?(this.state=13,this.sectionStart=this.index):t===46||t===58||t===64||t===35?(this.cbs.ondirname(this.index,this.index+1),this.state=14,this.sectionStart=this.index+1):(this.state=12,this.sectionStart=this.index)}stateInSelfClosingTag(t){t===62?(this.cbs.onselfclosingtag(this.index),this.state=1,this.sectionStart=this.index+1,this.inRCDATA=!1):ni(t)||(this.state=11,this.stateBeforeAttrName(t))}stateInAttrName(t){(t===61||Va(t))&&(this.cbs.onattribname(this.sectionStart,this.index),this.handleAttrNameEnd(t))}stateInDirName(t){t===61||Va(t)?(this.cbs.ondirname(this.sectionStart,this.index),this.handleAttrNameEnd(t)):t===58?(this.cbs.ondirname(this.sectionStart,this.index),this.state=14,this.sectionStart=this.index+1):t===46&&(this.cbs.ondirname(this.sectionStart,this.index),this.state=16,this.sectionStart=this.index+1)}stateInDirArg(t){t===61||Va(t)?(this.cbs.ondirarg(this.sectionStart,this.index),this.handleAttrNameEnd(t)):t===91?this.state=15:t===46&&(this.cbs.ondirarg(this.sectionStart,this.index),this.state=16,this.sectionStart=this.index+1)}stateInDynamicDirArg(t){t===93?this.state=14:(t===61||Va(t))&&(this.cbs.ondirarg(this.sectionStart,this.index+1),this.handleAttrNameEnd(t))}stateInDirModifier(t){t===61||Va(t)?(this.cbs.ondirmodifier(this.sectionStart,this.index),this.handleAttrNameEnd(t)):t===46&&(this.cbs.ondirmodifier(this.sectionStart,this.index),this.sectionStart=this.index+1)}handleAttrNameEnd(t){this.sectionStart=this.index,this.state=17,this.cbs.onattribnameend(this.index),this.stateAfterAttrName(t)}stateAfterAttrName(t){t===61?this.state=18:t===47||t===62?(this.cbs.onattribend(0,this.sectionStart),this.sectionStart=-1,this.state=11,this.stateBeforeAttrName(t)):ni(t)||(this.cbs.onattribend(0,this.sectionStart),this.handleAttrStart(t))}stateBeforeAttrValue(t){t===34?(this.state=19,this.sectionStart=this.index+1):t===39?(this.state=20,this.sectionStart=this.index+1):ni(t)||(this.sectionStart=this.index,this.state=21,this.stateInAttrValueNoQuotes(t))}handleInAttrValue(t,n){(t===n||this.fastForwardTo(n))&&(this.cbs.onattribdata(this.sectionStart,this.index),this.sectionStart=-1,this.cbs.onattribend(n===34?3:2,this.index+1),this.state=11)}stateInAttrValueDoubleQuotes(t){this.handleInAttrValue(t,34)}stateInAttrValueSingleQuotes(t){this.handleInAttrValue(t,39)}stateInAttrValueNoQuotes(t){ni(t)||t===62?(this.cbs.onattribdata(this.sectionStart,this.index),this.sectionStart=-1,this.cbs.onattribend(1,this.index),this.state=11,this.stateBeforeAttrName(t)):(t===39||t===60||t===61||t===96)&&this.cbs.onerr(18,this.index)}stateBeforeDeclaration(t){t===91?(this.state=26,this.sequenceIndex=0):this.state=t===45?25:23}stateInDeclaration(t){(t===62||this.fastForwardTo(62))&&(this.state=1,this.sectionStart=this.index+1)}stateInProcessingInstruction(t){(t===62||this.fastForwardTo(62))&&(this.cbs.onprocessinginstruction(this.sectionStart,this.index),this.state=1,this.sectionStart=this.index+1)}stateBeforeComment(t){t===45?(this.state=28,this.currentSequence=ts.CommentEnd,this.sequenceIndex=2,this.sectionStart=this.index+1):this.state=23}stateInSpecialComment(t){(t===62||this.fastForwardTo(62))&&(this.cbs.oncomment(this.sectionStart,this.index),this.state=1,this.sectionStart=this.index+1)}stateBeforeSpecialS(t){t===ts.ScriptEnd[3]?this.startSpecial(ts.ScriptEnd,4):t===ts.StyleEnd[3]?this.startSpecial(ts.StyleEnd,4):(this.state=6,this.stateInTagName(t))}stateBeforeSpecialT(t){t===ts.TitleEnd[3]?this.startSpecial(ts.TitleEnd,4):t===ts.TextareaEnd[3]?this.startSpecial(ts.TextareaEnd,4):(this.state=6,this.stateInTagName(t))}startEntity(){}stateInEntity(){}parse(t){for(this.buffer=t;this.index<this.buffer.length;){const n=this.buffer.charCodeAt(this.index);switch(n===10&&this.state!==33&&this.newlines.push(this.index),this.state){case 1:{this.stateText(n);break}case 2:{this.stateInterpolationOpen(n);break}case 3:{this.stateInterpolation(n);break}case 4:{this.stateInterpolationClose(n);break}case 31:{this.stateSpecialStartSequence(n);break}case 32:{this.stateInRCDATA(n);break}case 26:{this.stateCDATASequence(n);break}case 19:{this.stateInAttrValueDoubleQuotes(n);break}case 12:{this.stateInAttrName(n);break}case 13:{this.stateInDirName(n);break}case 14:{this.stateInDirArg(n);break}case 15:{this.stateInDynamicDirArg(n);break}case 16:{this.stateInDirModifier(n);break}case 28:{this.stateInCommentLike(n);break}case 27:{this.stateInSpecialComment(n);break}case 11:{this.stateBeforeAttrName(n);break}case 6:{this.stateInTagName(n);break}case 34:{this.stateInSFCRootTagName(n);break}case 9:{this.stateInClosingTagName(n);break}case 5:{this.stateBeforeTagName(n);break}case 17:{this.stateAfterAttrName(n);break}case 20:{this.stateInAttrValueSingleQuotes(n);break}case 18:{this.stateBeforeAttrValue(n);break}case 8:{this.stateBeforeClosingTagName(n);break}case 10:{this.stateAfterClosingTagName(n);break}case 29:{this.stateBeforeSpecialS(n);break}case 30:{this.stateBeforeSpecialT(n);break}case 21:{this.stateInAttrValueNoQuotes(n);break}case 7:{this.stateInSelfClosingTag(n);break}case 23:{this.stateInDeclaration(n);break}case 22:{this.stateBeforeDeclaration(n);break}case 25:{this.stateBeforeComment(n);break}case 24:{this.stateInProcessingInstruction(n);break}case 33:{this.stateInEntity();break}}this.index++}this.cleanup(),this.finish()}cleanup(){this.sectionStart!==this.index&&(this.state===1||this.state===32&&this.sequenceIndex===0?(this.cbs.ontext(this.sectionStart,this.index),this.sectionStart=this.index):(this.state===19||this.state===20||this.state===21)&&(this.cbs.onattribdata(this.sectionStart,this.index),this.sectionStart=this.index))}finish(){this.handleTrailingData(),this.cbs.onend()}handleTrailingData(){const t=this.buffer.length;this.sectionStart>=t||(this.state===28?this.currentSequence===ts.CdataEnd?this.cbs.oncdata(this.sectionStart,t):this.cbs.oncomment(this.sectionStart,t):this.state===6||this.state===11||this.state===18||this.state===17||this.state===12||this.state===13||this.state===14||this.state===15||this.state===16||this.state===20||this.state===19||this.state===21||this.state===9||this.cbs.ontext(this.sectionStart,t))}emitCodePoint(t,n){}}const eoe={COMPILER_IS_ON_ELEMENT:"COMPILER_IS_ON_ELEMENT",COMPILER_V_BIND_SYNC:"COMPILER_V_BIND_SYNC",COMPILER_V_BIND_OBJECT_ORDER:"COMPILER_V_BIND_OBJECT_ORDER",COMPILER_V_ON_NATIVE:"COMPILER_V_ON_NATIVE",COMPILER_V_IF_V_FOR_PRECEDENCE:"COMPILER_V_IF_V_FOR_PRECEDENCE",COMPILER_NATIVE_TEMPLATE:"COMPILER_NATIVE_TEMPLATE",COMPILER_INLINE_TEMPLATE:"COMPILER_INLINE_TEMPLATE",COMPILER_FILTERS:"COMPILER_FILTERS"},toe
vendor: 2,117 bytes, line 72
72={COMPILER_IS_ON_ELEMENT:{message:'Platform-native elements with "is" prop will no longer be treated as components in Vue 3 unless the "is" value is explicitly prefixed with "vue:".',link:"https://v3-migration.vuejs.org/breaking-changes/custom-elements-interop.html"},COMPILER_V_BIND_SYNC:{message:e=>`.sync modifier for v-bind has been removed. Use v-model with argument instead. \`v-bind:${e}.sync\` should be changed to \`v-model:${e}\`.`,link:"https://v3-migration.vuejs.org/breaking-changes/v-model.html"},COMPILER_V_BIND_OBJECT_ORDER:{message:'v-bind="obj" usage is now order sensitive and behaves like JavaScript object spread: it will now overwrite an existing non-mergeable attribute that appears before v-bind in the case of conflict. To retain 2.x behavior, move v-bind to make it the first attribute. You can also suppress this warning if the usage is intended.',link:"https://v3-migration.vuejs.org/breaking-changes/v-bind.html"},COMPILER_V_ON_NATIVE:{message:".native modifier for v-on has been removed as is no longer necessary.",link:"https://v3-migration.vuejs.org/breaking-changes/v-on-native-modifier-removed.html"},COMPILER_V_IF_V_FOR_PRECEDENCE:{message:"v-if / v-for precedence when used on the same element has changed in Vue 3: v-if now takes higher precedence and will no longer have access to v-for scope variables. It is best to avoid the ambiguity with <template> tags or use a computed property that filters v-for data source.",link:"https://v3-migration.vuejs.org/breaking-changes/v-if-v-for.html"},COMPILER_NATIVE_TEMPLATE:{message:"<template> with no special directives will render as a native template element instead of its inner content in Vue 3."},COMPILER_INLINE_TEMPLATE:{message:'"inline-template" has been removed in Vue 3.',link:"https://v3-migration.vuejs.org/breaking-changes/inline-template-attribute.html"},COMPILER_FILTERS:{message:'filters have been removed in Vue 3. The "|" symbol will be treated as native JavaScript bitwise OR operator. Use method calls or computed properties instead.',link:"https://v3-migration.vuejs.org/breaking-changes/filters.html"}};function 
vendor: 54,400 bytes, lines 72-80
72o2(e,{compatConfig:t}){const n=t&&t[e];return e==="MODE"?n||3:n}function uu(e,t){const n=o2("MODE",t),r=o2(e,t);return n===3?r===!0:r!==!1}function Kc(e,t,n,...r){return uu(e,t)}function noe(e,t,n,...r){if(o2(e,t)==="suppress-warning")return;const{message:i,link:o}=toe[e],a=`(deprecation ${e}) ${typeof i=="function"?i(...r):i}${o?`
73  Details: ${o}`:""}`,l=new SyntaxError(a);l.code=e,n&&(l.loc=n),t.onWarn(l)}function QS(e){throw e}function nO(e){}function Mn(e,t,n,r){const s=`https://vuejs.org/error-reference/#compiler-${e}`,i=new SyntaxError(String(s));return i.code=e,i.loc=t,i}const roe={ABRUPT_CLOSING_OF_EMPTY_COMMENT:0,0:"ABRUPT_CLOSING_OF_EMPTY_COMMENT",CDATA_IN_HTML_CONTENT:1,1:"CDATA_IN_HTML_CONTENT",DUPLICATE_ATTRIBUTE:2,2:"DUPLICATE_ATTRIBUTE",END_TAG_WITH_ATTRIBUTES:3,3:"END_TAG_WITH_ATTRIBUTES",END_TAG_WITH_TRAILING_SOLIDUS:4,4:"END_TAG_WITH_TRAILING_SOLIDUS",EOF_BEFORE_TAG_NAME:5,5:"EOF_BEFORE_TAG_NAME",EOF_IN_CDATA:6,6:"EOF_IN_CDATA",EOF_IN_COMMENT:7,7:"EOF_IN_COMMENT",EOF_IN_SCRIPT_HTML_COMMENT_LIKE_TEXT:8,8:"EOF_IN_SCRIPT_HTML_COMMENT_LIKE_TEXT",EOF_IN_TAG:9,9:"EOF_IN_TAG",INCORRECTLY_CLOSED_COMMENT:10,10:"INCORRECTLY_CLOSED_COMMENT",INCORRECTLY_OPENED_COMMENT:11,11:"INCORRECTLY_OPENED_COMMENT",INVALID_FIRST_CHARACTER_OF_TAG_NAME:12,12:"INVALID_FIRST_CHARACTER_OF_TAG_NAME",MISSING_ATTRIBUTE_VALUE:13,13:"MISSING_ATTRIBUTE_VALUE",MISSING_END_TAG_NAME:14,14:"MISSING_END_TAG_NAME",MISSING_WHITESPACE_BETWEEN_ATTRIBUTES:15,15:"MISSING_WHITESPACE_BETWEEN_ATTRIBUTES",NESTED_COMMENT:16,16:"NESTED_COMMENT",UNEXPECTED_CHARACTER_IN_ATTRIBUTE_NAME:17,17:"UNEXPECTED_CHARACTER_IN_ATTRIBUTE_NAME",UNEXPECTED_CHARACTER_IN_UNQUOTED_ATTRIBUTE_VALUE:18,18:"UNEXPECTED_CHARACTER_IN_UNQUOTED_ATTRIBUTE_VALUE",UNEXPECTED_EQUALS_SIGN_BEFORE_ATTRIBUTE_NAME:19,19:"UNEXPECTED_EQUALS_SIGN_BEFORE_ATTRIBUTE_NAME",UNEXPECTED_NULL_CHARACTER:20,20:"UNEXPECTED_NULL_CHARACTER",UNEXPECTED_QUESTION_MARK_INSTEAD_OF_TAG_NAME:21,21:"UNEXPECTED_QUESTION_MARK_INSTEAD_OF_TAG_NAME",UNEXPECTED_SOLIDUS_IN_TAG:22,22:"UNEXPECTED_SOLIDUS_IN_TAG",X_INVALID_END_TAG:23,23:"X_INVALID_END_TAG",X_MISSING_END_TAG:24,24:"X_MISSING_END_TAG",X_MISSING_INTERPOLATION_END:25,25:"X_MISSING_INTERPOLATION_END",X_MISSING_DIRECTIVE_NAME:26,26:"X_MISSING_DIRECTIVE_NAME",X_MISSING_DYNAMIC_DIRECTIVE_ARGUMENT_END:27,27:"X_MISSING_DYNAMIC_DIRECTIVE_ARGUMENT_END",X_V_IF_NO_EXPRESSION:28,28:"X_V_IF_NO_EXPRESSION",X_V_IF_SAME_KEY:29,29:"X_V_IF_SAME_KEY",X_V_ELSE_NO_ADJACENT_IF:30,30:"X_V_ELSE_NO_ADJACENT_IF",X_V_FOR_NO_EXPRESSION:31,31:"X_V_FOR_NO_EXPRESSION",X_V_FOR_MALFORMED_EXPRESSION:32,32:"X_V_FOR_MALFORMED_EXPRESSION",X_V_FOR_TEMPLATE_KEY_PLACEMENT:33,33:"X_V_FOR_TEMPLATE_KEY_PLACEMENT",X_V_BIND_NO_EXPRESSION:34,34:"X_V_BIND_NO_EXPRESSION",X_V_ON_NO_EXPRESSION:35,35:"X_V_ON_NO_EXPRESSION",X_V_SLOT_UNEXPECTED_DIRECTIVE_ON_SLOT_OUTLET:36,36:"X_V_SLOT_UNEXPECTED_DIRECTIVE_ON_SLOT_OUTLET",X_V_SLOT_MIXED_SLOT_USAGE:37,37:"X_V_SLOT_MIXED_SLOT_USAGE",X_V_SLOT_DUPLICATE_SLOT_NAMES:38,38:"X_V_SLOT_DUPLICATE_SLOT_NAMES",X_V_SLOT_EXTRANEOUS_DEFAULT_SLOT_CHILDREN:39,39:"X_V_SLOT_EXTRANEOUS_DEFAULT_SLOT_CHILDREN",X_V_SLOT_MISPLACED:40,40:"X_V_SLOT_MISPLACED",X_V_MODEL_NO_EXPRESSION:41,41:"X_V_MODEL_NO_EXPRESSION",X_V_MODEL_MALFORMED_EXPRESSION:42,42:"X_V_MODEL_MALFORMED_EXPRESSION",X_V_MODEL_ON_SCOPE_VARIABLE:43,43:"X_V_MODEL_ON_SCOPE_VARIABLE",X_V_MODEL_ON_PROPS:44,44:"X_V_MODEL_ON_PROPS",X_INVALID_EXPRESSION:45,45:"X_INVALID_EXPRESSION",X_KEEP_ALIVE_INVALID_CHILDREN:46,46:"X_KEEP_ALIVE_INVALID_CHILDREN",X_PREFIX_ID_NOT_SUPPORTED:47,47:"X_PREFIX_ID_NOT_SUPPORTED",X_MODULE_MODE_NOT_SUPPORTED:48,48:"X_MODULE_MODE_NOT_SUPPORTED",X_CACHE_HANDLER_NOT_SUPPORTED:49,49:"X_CACHE_HANDLER_NOT_SUPPORTED",X_SCOPE_ID_NOT_SUPPORTED:50,50:"X_SCOPE_ID_NOT_SUPPORTED",X_VNODE_HOOKS:51,51:"X_VNODE_HOOKS",X_V_BIND_INVALID_SAME_NAME_ARGUMENT:52,52:"X_V_BIND_INVALID_SAME_NAME_ARGUMENT",__EXTEND_POINT__:53,53:"__EXTEND_POINT__"},soe={0:"Illegal comment.",1:"CDATA section is allowed only in XML context.",2:"Duplicate attribute.",3:"End tag cannot have attributes.",4:"Illegal '/' in tags.",5:"Unexpected EOF in tag.",6:"Unexpected EOF in CDATA section.",7:"Unexpected EOF in comment.",8:"Unexpected EOF in script.",9:"Unexpected EOF in tag.",10:"Incorrectly closed comment.",11:"Incorrectly opened comment.",12:"Illegal tag name. Use '&lt;' to print '<'.",13:"Attribute value was expected.",14:"End tag name was expected.",15:"Whitespace was expected.",16:"Unexpected '<!--' in comment.",17:`Attribute name cannot contain U+0022 ("), U+0027 ('), and U+003C (<).`,18:"Unquoted attribute value cannot contain U+0022 (\"), U+0027 ('), U+003C (<), U+003D (=), and U+0060 (`).",19:"Attribute name cannot start with '='.",21:"'<?' is allowed only in XML context.",20:"Unexpected null character.",22:"Illegal '/' in tags.",23:"Invalid end tag.",24:"Element is missing end tag.",25:"Interpolation end sign was not found.",27:"End bracket for dynamic directive argument was not found. Note that dynamic directive argument cannot contain spaces.",26:"Legal directive name was expected.",28:"v-if/v-else-if is missing expression.",29:"v-if/else branches must use unique keys.",30:"v-else/v-else-if has no adjacent v-if or v-else-if.",31:"v-for is missing expression.",32:"v-for has invalid expression.",33:"<template v-for> key should be placed on the <template> tag.",34:"v-bind is missing expression.",52:"v-bind with same-name shorthand only allows static argument.",35:"v-on is missing expression.",36:"Unexpected custom directive on <slot> outlet.",37:"Mixed v-slot usage on both the component and nested <template>. When there are multiple named slots, all slots should use <template> syntax to avoid scope ambiguity.",38:"Duplicate slot names found. ",39:"Extraneous children found when component already has explicitly named default slot. These children will be ignored.",40:"v-slot can only be used on components or <template> tags.",41:"v-model is missing expression.",42:"v-model value must be a valid JavaScript member expression.",43:"v-model cannot be used on v-for or v-slot scope variables because they are not writable.",44:`v-model cannot be used on a prop, because local prop bindings are not writable.
74Use a v-bind binding combined with a v-on listener that emits update:x event instead.`,45:"Error parsing JavaScript expression: ",46:"<KeepAlive> expects exactly one child component.",51:"@vnode-* hooks in templates are no longer supported. Use the vue: prefix instead. For example, @vnode-mounted should be changed to @vue:mounted. @vnode-* hooks support has been removed in 3.4.",47:'"prefixIdentifiers" option is not supported in this build of compiler.',48:"ES module mode is not supported in this build of compiler.",49:'"cacheHandlers" option is only supported when the "prefixIdentifiers" option is enabled.',50:'"scopeId" option is only supported in module mode.',53:""};function ioe(e,t,n=!1,r=[],s=Object.create(null)){}function ooe(e,t,n){return!1}function aoe(e,t){if(e&&(e.type==="ObjectProperty"||e.type==="ArrayPattern")){let n=t.length;for(;n--;){const r=t[n];if(r.type==="AssignmentExpression")return!0;if(r.type!=="ObjectProperty"&&!r.type.endsWith("Pattern"))break}}return!1}function loe(e){let t=e.length;for(;t--;){const n=e[t];if(n.type==="NewExpression")return!0;if(n.type!=="MemberExpression")break}return!1}function uoe(e,t){for(const n of e.params)for(const r of Ao(n))t(r)}function rO(e,t){const n=e.type==="SwitchCase"?e.consequent:e.body;for(const r of n)if(r.type==="VariableDeclaration"){if(r.declare)continue;for(const s of r.declarations)for(const i of Ao(s.id))t(i)}else if(r.type==="FunctionDeclaration"||r.type==="ClassDeclaration"){if(r.declare||!r.id)continue;t(r.id)}else coe(r)?doe(r,!0,t):r.type==="SwitchStatement"&&foe(r,!0,t)}function coe(e){return e.type==="ForOfStatement"||e.type==="ForInStatement"||e.type==="ForStatement"}function doe(e,t,n){const r=e.type==="ForStatement"?e.init:e.left;if(r&&r.type==="VariableDeclaration"&&(r.kind==="var"?t:!t))for(const s of r.declarations)for(const i of Ao(s.id))n(i)}function foe(e,t,n){for(const r of e.cases){for(const s of r.consequent)if(s.type==="VariableDeclaration"&&(s.kind==="var"?t:!t))for(const i of s.declarations)for(const o of Ao(i.id))n(o);rO(r,n)}}function Ao(e,t=[]){switch(e.type){case"Identifier":t.push(e);break;case"MemberExpression":let n=e;for(;n.type==="MemberExpression";)n=n.object;t.push(n);break;case"ObjectPattern":for(const r of e.properties)r.type==="RestElement"?Ao(r.argument,t):Ao(r.value,t);break;case"ArrayPattern":e.elements.forEach(r=>{r&&Ao(r,t)});break;case"RestElement":Ao(e.argument,t);break;case"AssignmentPattern":Ao(e.left,t);break}return t}const hoe=e=>/Function(?:Expression|Declaration)$|Method$/.test(e.type),sO=e=>e&&(e.type==="ObjectProperty"||e.type==="ObjectMethod")&&!e.computed,poe=(e,t)=>sO(t)&&t.key===e,iO=["TSAsExpression","TSTypeAssertion","TSNonNullExpression","TSInstantiationExpression","TSSatisfiesExpression"];function oO(e){return iO.includes(e.type)?oO(e.expression):e}const Ts=e=>e.type===4&&e.isStatic;function eE(e){switch(e){case"Teleport":case"teleport":return _c;case"Suspense":case"suspense":return Ty;case"KeepAlive":case"keep-alive":return rh;case"BaseTransition":case"base-transition":return KS}}const moe=/^$|^\d|[^\$\w\xA0-\uFFFF]/,Kh=e=>!moe.test(e),tE=/[A-Za-z_$\xA0-\uFFFF]/,voe=/[\.\?\w$\xA0-\uFFFF]/,goe=/\s+[.[]\s*|\s*[.[]\s+/g,aO=e=>e.type===4?e.content:e.loc.source,lO=e=>{const t=aO(e).trim().replace(goe,a=>a.trim());let n=0,r=[],s=0,i=0,o=null;for(let a=0;a<t.length;a++){const l=t.charAt(a);switch(n){case 0:if(l==="[")r.push(n),n=1,s++;else if(l==="(")r.push(n),n=2,i++;else if(!(a===0?tE:voe).test(l))return!1;break;case 1:l==="'"||l==='"'||l==="`"?(r.push(n),n=3,o=l):l==="["?s++:l==="]"&&(--s||(n=r.pop()));break;case 2:if(l==="'"||l==='"'||l==="`")r.push(n),n=3,o=l;else if(l==="(")i++;else if(l===")"){if(a===t.length-1)return!1;--i||(n=r.pop())}break;case 3:l===o&&(n=r.pop(),o=null);break}}return!s&&!i},yoe=Pr,nE=lO,xoe=/^\s*(?:async\s*)?(?:\([^)]*?\)|[\w$_]+)\s*(?::[^=]+)?=>|^\s*(?:async\s+)?function(?:\s+[\w$]+)?\s*\(/,uO=e=>xoe.test(aO(e)),boe=Pr,cO=uO;function _oe(e,t,n=t.length){return dO({offset:e.offset,line:e.line,column:e.column},t,n)}function dO(e,t,n=t.length){let r=0,s=-1;for(let i=0;i<n;i++)t.charCodeAt(i)===10&&(r++,s=i);return e.offset+=n,e.line+=r,e.column=s===-1?e.column+n:n-s,e}function Soe(e,t){if(!e)throw new Error(t||"unexpected compiler condition")}function Es(e,t,n=!1){for(let r=0;r<e.props.length;r++){const s=e.props[r];if(s.type===7&&(n||s.exp)&&(Ot(t)?s.name===t:t.test(s.name)))return s}}function Wh(e,t,n=!1,r=!1){for(let s=0;s<e.props.length;s++){const i=e.props[s];if(i.type===6){if(n)continue;if(i.name===t&&(i.value||r))return i}else if(i.name==="bind"&&(i.exp||r)&&ol(i.arg,t))return i}}function ol(e,t){return!!(e&&Ts(e)&&e.content===t)}function fO(e){return e.props.some(t=>t.type===7&&t.name==="bind"&&(!t.arg||t.arg.type!==4||!t.arg.isStatic))}function ym(e){return e.type===5||e.type===2}function a2(e){return e.type===7&&e.name==="pre"}function rE(e){return e.type===7&&e.name==="slot"}function Wc(e){return e.type===1&&e.tagType===3}function oh(e){return e.type===1&&e.tagType===2}const Eoe=new Set([Hc,Td]);function hO(e,t=[]){if(e&&!Ot(e)&&e.type===14){const n=e.callee;if(!Ot(n)&&Eoe.has(n))return hO(e.arguments[0],t.concat(e))}return[e,t]}function ah(e,t,n){let r,s=e.type===13?e.props:e.arguments[2],i=[],o;if(s&&!Ot(s)&&s.type===14){const a=hO(s);s=a[0],i=a[1],o=i[i.length-1]}if(s==null||Ot(s))r=ai([t]);else if(s.type===14){const a=s.arguments[0];!Ot(a)&&a.type===15?_k(t,a)||a.properties.unshift(t):s.callee===Fy?r=pr(n.helper(sh),[ai([t]),s]):s.arguments.unshift(ai([t])),!r&&(r=s)}else s.type===15?(_k(t,s)||s.properties.unshift(t),r=s):(r=pr(n.helper(sh),[ai([t]),s]),o&&o.callee===Td&&(o=i[i.length-2]));e.type===13?o?o.arguments[0]=r:e.props=r:o?o.arguments[0]=r:e.arguments[2]=r}function _k(e,t){let n=!1;if(e.key.type===4){const r=e.key.content;n=t.properties.some(s=>s.key.type===4&&s.key.content===r)}return n}function qc(e,t){return`_${t}_${e.replace(/[^\w]/g,(n,r)=>n==="-"?"_":e.charCodeAt(r).toString())}`}function Ji(e,t){if(!e||Object.keys(t).length===0)return!1;switch(e.type){case 1:for(let n=0;n<e.props.length;n++){const r=e.props[n];if(r.type===7&&(Ji(r.arg,t)||Ji(r.exp,t)))return!0}return e.children.some(n=>Ji(n,t));case 11:return Ji(e.source,t)?!0:e.children.some(n=>Ji(n,t));case 9:return e.branches.some(n=>Ji(n,t));case 10:return Ji(e.condition,t)?!0:e.children.some(n=>Ji(n,t));case 4:return!e.isStatic&&Kh(e.content)&&!!t[e.content];case 8:return e.children.some(n=>un(n)&&Ji(n,t));case 5:case 12:return Ji(e.content,t);case 2:case 3:case 20:return!1;default:return!1}}function pO(e){return e.type===14&&e.callee===Ny?e.arguments[1].returns:e}const mO=/([\s\S]*?)\s+(?:in|of)\s+(\S[\s\S]*)/,vO={parseMode:"base",ns:0,delimiters:["{{","}}"],getNamespace:()=>0,isVoidTag:Yl,isPreTag:Yl,isIgnoreNewlineTag:Yl,isCustomElement:Yl,onError:QS,onWarn:nO,comments:!1,prefixIdentifiers:!1};let hn=vO,lh=null,_a="",ss=null,en=null,Fs="",ra=-1,Kl=-1,sE=0,el=!1,l2=null;const Vn=[],er=new Qie(Vn,{onerr:ea,ontext(e,t){z0(Br(e,t),e,t)},ontextentity(e,t,n){z0(e,t,n)},oninterpolation(e,t){if(el)return z0(Br(e,t),e,t);let n=e+er.delimiterOpen.length,r=t-er.delimiterClose.length;for(;ni(_a.charCodeAt(n));)n++;for(;ni(_a.charCodeAt(r-1));)r--;let s=Br(n,r);s.includes("&")&&(s=hn.decodeEntities(s,!1)),u2({type:5,content:bm(s,!1,ar(n,r)),loc:ar(e,t)})},onopentagname(e,t){const n=Br(e,t);ss={type:1,tag:n,ns:hn.getNamespace(n,Vn[0],hn.ns),tagType:0,props:[],children:[],loc:ar(e-1,t),codegenNode:void 0}},onopentagend(e){Ek(e)},onclosetag(e,t){const n=Br(e,t);if(!hn.isVoidTag(n)){let r=!1;for(let s=0;s<Vn.length;s++)if(Vn[s].tag.toLowerCase()===n.toLowerCase()){r=!0,s>0&&ea(24,Vn[0].loc.start.offset);for(let o=0;o<=s;o++){const a=Vn.shift();xm(a,t,o<s)}break}r||ea(23,gO(e,60))}},onselfclosingtag(e){const t=ss.tag;ss.isSelfClosing=!0,Ek(e),Vn[0]&&Vn[0].tag===t&&xm(Vn.shift(),e)},onattribname(e,t){en={type:6,name:Br(e,t),nameLoc:ar(e,t),value:void 0,loc:ar(e)}},ondirname(e,t){const n=Br(e,t),r=n==="."||n===":"?"bind":n==="@"?"on":n==="#"?"slot":n.slice(2);if(!el&&r===""&&ea(26,e),el||r==="")en={type:6,name:n,nameLoc:ar(e,t),value:void 0,loc:ar(e)};else if(en={type:7,name:r,rawName:n,exp:void 0,arg:void 0,modifiers:n==="."?[Nt("prop")]:[],loc:ar(e)},r==="pre"){el=er.inVPre=!0,l2=ss;const s=ss.props;for(let i=0;i<s.length;i++)s[i].type===7&&(s[i]=Ooe(s[i]))}},ondirarg(e,t){if(e===t)return;const n=Br(e,t);if(el&&!a2(en))en.name+=n,Jl(en.nameLoc,t);else{const r=n[0]!=="[";en.arg=bm(r?n:n.slice(1,-1),r,ar(e,t),r?3:0)}},ondirmodifier(e,t){const n=Br(e,t);if(el&&!a2(en))en.name+="."+n,Jl(en.nameLoc,t);else if(en.name==="slot"){const r=en.arg;r&&(r.content+="."+n,Jl(r.loc,t))}else{const r=Nt(n,!0,ar(e,t));en.modifiers.push(r)}},onattribdata(e,t){Fs+=Br(e,t),ra<0&&(ra=e),Kl=t},onattribentity(e,t,n){Fs+=e,ra<0&&(ra=t),Kl=n},onattribnameend(e){const t=en.loc.start.offset,n=Br(t,e);en.type===7&&(en.rawName=n),ss.props.some(r=>(r.type===7?r.rawName:r.name)===n)&&ea(2,t)},onattribend(e,t){if(ss&&en){if(Jl(en.loc,t),e!==0)if(Fs.includes("&")&&(Fs=hn.decodeEntities(Fs,!0)),en.type===6)en.name==="class"&&(Fs=xO(Fs).trim()),e===1&&!Fs&&ea(13,t),en.value={type:2,content:Fs,loc:e===1?ar(ra,Kl):ar(ra-1,Kl+1)},er.inSFCRoot&&ss.tag==="template"&&en.name==="lang"&&Fs&&Fs!=="html"&&er.enterRCDATA(eg("</template"),0);else{let n=0;en.exp=bm(Fs,!1,ar(ra,Kl),0,n),en.name==="for"&&(en.forParseResult=Toe(en.exp));let r=-1;en.name==="bind"&&(r=en.modifiers.findIndex(s=>s.content==="sync"))>-1&&Kc("COMPILER_V_BIND_SYNC",hn,en.loc,en.arg.loc.source)&&(en.name="model",en.modifiers.splice(r,1))}(en.type!==7||en.name!=="pre")&&ss.props.push(en)}Fs="",ra=Kl=-1},oncomment(e,t){hn.comments&&u2({type:3,content:Br(e,t),loc:ar(e-4,t+3)})},onend(){const e=_a.length;for(let t=0;t<Vn.length;t++)xm(Vn[t],e-1),ea(24,Vn[t].loc.start.offset)},oncdata(e,t){Vn[0].ns!==0?z0(Br(e,t),e,t):ea(1,e-9)},onprocessinginstruction(e){(Vn[0]?Vn[0].ns:hn.ns)===0&&ea(21,e-1)}}),Sk=/,([^,\}\]]*)(?:,([^,\}\]]*))?$/,woe=/^\(|\)$/g;function Toe(e){const t=e.loc,n=e.content,r=n.match(mO);if(!r)return;const[,s,i]=r,o=(d,f,h=!1)=>{const p=t.start.offset+f,m=p+d.length;return bm(d,!1,ar(p,m),0,h?1:0)},a={source:o(i.trim(),n.indexOf(i,s.length)),value:void 0,key:void 0,index:void 0,finalized:!1};let l=s.trim().replace(woe,"").trim();const u=s.indexOf(l),c=l.match(Sk);if(c){l=l.replace(Sk,"").trim();const d=c[1].trim();let f;if(d&&(f=n.indexOf(d,u+l.length),a.key=o(d,f,!0)),c[2]){const h=c[2].trim();h&&(a.index=o(h,n.indexOf(h,a.key?f+d.length:u+l.length),!0))}}return l&&(a.value=o(l,u,!0)),a}function Br(e,t){return _a.slice(e,t)}function Ek(e){er.inSFCRoot&&(ss.innerLoc=ar(e+1,e+1)),u2(ss);const{tag:t,ns:n}=ss;n===0&&hn.isPreTag(t)&&sE++,hn.isVoidTag(t)?xm(ss,e):(Vn.unshift(ss),(n===1||n===2)&&(er.inXML=!0)),ss=null}function z0(e,t,n){{const i=Vn[0]&&Vn[0].tag;i!=="script"&&i!=="style"&&e.includes("&")&&(e=hn.decodeEntities(e,!1))}const r=Vn[0]||lh,s=r.children[r.children.length-1];s&&s.type===2?(s.content+=e,Jl(s.loc,n)):r.children.push({type:2,content:e,loc:ar(t,n)})}function xm(e,t,n=!1){n?Jl(e.loc,gO(t,60)):Jl(e.loc,Coe(t,62)+1),er.inSFCRoot&&(e.children.length?e.innerLoc.end=Xt({},e.children[e.children.length-1].loc.end):e.innerLoc.end=Xt({},e.innerLoc.start),e.innerLoc.source=Br(e.innerLoc.start.offset,e.innerLoc.end.offset));const{tag:r,ns:s,children:i}=e;if(el||(r==="slot"?e.tagType=2:wk(e)?e.tagType=3:koe(e)&&(e.tagType=1)),er.inRCDATA||(e.children=yO(i)),s===0&&hn.isIgnoreNewlineTag(r)){const o=i[0];o&&o.type===2&&(o.content=o.content.replace(/^\r?\n/,""))}s===0&&hn.isPreTag(r)&&sE--,l2===e&&(el=er.inVPre=!1,l2=null),er.inXML&&(Vn[0]?Vn[0].ns:hn.ns)===0&&(er.inXML=!1);{const o=e.props;if(!er.inSFCRoot&&uu("COMPILER_NATIVE_TEMPLATE",hn)&&e.tag==="template"&&!wk(e)){const l=Vn[0]||lh,u=l.children.indexOf(e);l.children.splice(u,1,...e.children)}const a=o.find(l=>l.type===6&&l.name==="inline-template");a&&Kc("COMPILER_INLINE_TEMPLATE",hn,a.loc)&&e.children.length&&(a.value={type:2,content:Br(e.children[0].loc.start.offset,e.children[e.children.length-1].loc.end.offset),loc:a.loc})}}function Coe(e,t){let n=e;for(;_a.charCodeAt(n)!==t&&n<_a.length-1;)n++;return n}function gO(e,t){let n=e;for(;_a.charCodeAt(n)!==t&&n>=0;)n--;return n}const Aoe=new Set(["if","else","else-if","for","slot"]);function wk({tag:e,props:t}){if(e==="template"){for(let n=0;n<t.length;n++)if(t[n].type===7&&Aoe.has(t[n].name))return!0}return!1}function koe({tag:e,props:t}){if(hn.isCustomElement(e))return!1;if(e==="component"||Ioe(e.charCodeAt(0))||eE(e)||hn.isBuiltInComponent&&hn.isBuiltInComponent(e)||hn.isNativeTag&&!hn.isNativeTag(e))return!0;for(let n=0;n<t.length;n++){const r=t[n];if(r.type===6){if(r.name==="is"&&r.value){if(r.value.content.startsWith("vue:"))return!0;if(Kc("COMPILER_IS_ON_ELEMENT",hn,r.loc))return!0}}else if(r.name==="bind"&&ol(r.arg,"is")&&Kc("COMPILER_IS_ON_ELEMENT",hn,r.loc))return!0}return!1}function Ioe(e){return e>64&&e<91}const Loe=/\r\n/g;function yO(e){const t=hn.whitespace!=="preserve";let n=!1;for(let r=0;r<e.length;r++){const s=e[r];if(s.type===2)if(sE)s.content=s.content.replace(Loe,`
75`);else if(Doe(s.content)){const i=e[r-1]&&e[r-1].type,o=e[r+1]&&e[r+1].type;!i||!o||t&&(i===3&&(o===3||o===1)||i===1&&(o===3||o===1&&Poe(s.content)))?(n=!0,e[r]=null):s.content=" "}else t&&(s.content=xO(s.content))}return n?e.filter(Boolean):e}function Doe(e){for(let t=0;t<e.length;t++)if(!ni(e.charCodeAt(t)))return!1;return!0}function Poe(e){for(let t=0;t<e.length;t++){const n=e.charCodeAt(t);if(n===10||n===13)return!0}return!1}function xO(e){let t="",n=!1;for(let r=0;r<e.length;r++)ni(e.charCodeAt(r))?n||(t+=" ",n=!0):(t+=e[r],n=!1);return t}function u2(e){(Vn[0]||lh).children.push(e)}function ar(e,t){return{start:er.getPos(e),end:t==null?t:er.getPos(t),source:t==null?t:Br(e,t)}}function Roe(e){return ar(e.start.offset,e.end.offset)}function Jl(e,t){e.end=er.getPos(t),e.source=Br(e.start.offset,t)}function Ooe(e){const t={type:6,name:e.rawName,nameLoc:ar(e.loc.start.offset,e.loc.start.offset+e.rawName.length),value:void 0,loc:e.loc};if(e.exp){const n=e.exp.loc;n.end.offset<e.loc.end.offset&&(n.start.offset--,n.start.column--,n.end.offset++,n.end.column++),t.value={type:2,content:e.exp.content,loc:n}}return t}function bm(e,t=!1,n,r=0,s=0){return Nt(e,t,n,r)}function ea(e,t,n){hn.onError(Mn(e,ar(t,t)))}function $oe(){er.reset(),ss=null,en=null,Fs="",ra=-1,Kl=-1,Vn.length=0}function iE(e,t){if($oe(),_a=e,hn=Xt({},vO),t){let s;for(s in t)t[s]!=null&&(hn[s]=t[s])}er.mode=hn.parseMode==="html"?1:hn.parseMode==="sfc"?2:0,er.inXML=hn.ns===1||hn.ns===2;const n=t&&t.delimiters;n&&(er.delimiterOpen=eg(n[0]),er.delimiterClose=eg(n[1]));const r=lh=Q8([],e);return er.parse(_a),r.loc=ar(0,e.length),r.children=yO(r.children),lh=null,r}function Moe(e,t){_m(e,void 0,t,!!bO(e))}function bO(e){const t=e.children.filter(n=>n.type!==3);return t.length===1&&t[0].type===1&&!oh(t[0])?t[0]:null}function _m(e,t,n,r=!1,s=!1){const{children:i}=e,o=[];for(let c=0;c<i.length;c++){const d=i[c];if(d.type===1&&d.tagType===0){const f=r?0:Vs(d,n);if(f>0){if(f>=2){d.codegenNode.patchFlag=-1,o.push(d);continue}}else{const h=d.codegenNode;if(h.type===13){const p=h.patchFlag;if((p===void 0||p===512||p===1)&&SO(d,n)>=2){const m=EO(d);m&&(h.props=n.hoist(m))}h.dynamicProps&&(h.dynamicProps=n.hoist(h.dynamicProps))}}}else if(d.type===12&&(r?0:Vs(d,n))>=2){d.codegenNode.type===14&&d.codegenNode.arguments.length>0&&d.codegenNode.arguments.push("-1"),o.push(d);continue}if(d.type===1){const f=d.tagType===1;f&&n.scopes.vSlot++,_m(d,e,n,!1,s),f&&n.scopes.vSlot--}else if(d.type===11)_m(d,e,n,d.children.length===1,!0);else if(d.type===9)for(let f=0;f<d.branches.length;f++)_m(d.branches[f],e,n,d.branches[f].children.length===1,s)}let a=!1;if(o.length===i.length&&e.type===1){if(e.tagType===0&&e.codegenNode&&e.codegenNode.type===13&&dt(e.codegenNode.children))e.codegenNode.children=l(dl(e.codegenNode.children)),a=!0;else if(e.tagType===1&&e.codegenNode&&e.codegenNode.type===13&&e.codegenNode.children&&!dt(e.codegenNode.children)&&e.codegenNode.children.type===15){const c=u(e.codegenNode,"default");c&&(c.returns=l(dl(c.returns)),a=!0)}else if(e.tagType===3&&t&&t.type===1&&t.tagType===1&&t.codegenNode&&t.codegenNode.type===13&&t.codegenNode.children&&!dt(t.codegenNode.children)&&t.codegenNode.children.type===15){const c=Es(e,"slot",!0),d=c&&c.arg&&u(t.codegenNode,c.arg);d&&(d.returns=l(dl(d.returns)),a=!0)}}if(!a)for(const c of o)c.codegenNode=n.cache(c.codegenNode);function l(c){const d=n.cache(c);return d.needArraySpread=!0,d}function u(c,d){if(c.children&&!dt(c.children)&&c.children.type===15){const f=c.children.properties.find(h=>h.key===d||h.key.content===d);return f&&f.value}}o.length&&n.transformHoist&&n.transformHoist(i,n,e)}function Vs(e,t){const{constantCache:n}=t;switch(e.type){case 1:if(e.tagType!==0)return 0;const r=n.get(e);if(r!==void 0)return r;const s=e.codegenNode;if(s.type!==13||s.isBlock&&e.tag!=="svg"&&e.tag!=="foreignObject"&&e.tag!=="math")return 0;if(s.patchFlag===void 0){let o=3;const a=SO(e,t);if(a===0)return n.set(e,0),0;a<o&&(o=a);for(let l=0;l<e.children.length;l++){const u=Vs(e.children[l],t);if(u===0)return n.set(e,0),0;u<o&&(o=u)}if(o>1)for(let l=0;l<e.props.length;l++){const u=e.props[l];if(u.type===7&&u.name==="bind"&&u.exp){const c=Vs(u.exp,t);if(c===0)return n.set(e,0),0;c<o&&(o=c)}}if(s.isBlock){for(let l=0;l<e.props.length;l++)if(e.props[l].type===7)return n.set(e,0),0;t.removeHelper(yl),t.removeHelper(Cu(t.inSSR,s.isComponent)),s.isBlock=!1,t.helper(Tu(t.inSSR,s.isComponent))}return n.set(e,o),o}else return n.set(e,0),0;case 2:case 3:return 3;case 9:case 11:case 10:return 0;case 5:case 12:return Vs(e.content,t);case 4:return e.constType;case 8:let i=3;for(let o=0;o<e.children.length;o++){const a=e.children[o];if(Ot(a)||ks(a))continue;const l=Vs(a,t);if(l===0)return 0;l<i&&(i=l)}return i;case 20:return 2;default:return 0}}const Foe=new Set([$y,My,Hc,Td]);function _O(e,t){if(e.type===14&&!Ot(e.callee)&&Foe.has(e.callee)){const n=e.arguments[0];if(n.type===4)return Vs(n,t);if(n.type===14)return _O(n,t)}return 0}function SO(e,t){let n=3;const r=EO(e);if(r&&r.type===15){const{properties:s}=r;for(let i=0;i<s.length;i++){const{key:o,value:a}=s[i],l=Vs(o,t);if(l===0)return l;l<n&&(n=l);let u;if(a.type===4?u=Vs(a,t):a.type===14?u=_O(a,t):u=0,u===0)return u;u<n&&(n=u)}}return n}function EO(e){const t=e.codegenNode;if(t.type===13)return t.props}function wO(e,{filename:t="",prefixIdentifiers:n=!1,hoistStatic:r=!1,hmr:s=!1,cacheHandlers:i=!1,nodeTransforms:o=[],directiveTransforms:a={},transformHoist:l=null,isBuiltInComponent:u=Pr,isCustomElement:c=Pr,expressionPlugins:d=[],scopeId:f=null,slotted:h=!0,ssr:p=!1,inSSR:m=!1,ssrCssVars:v="",bindingMetadata:x=Jt,inline:g=!1,isTS:y=!1,onError:_=QS,onWarn:E=nO,compatConfig:w}){const T=t.replace(/\?.*$/,"").match(/([^/\\]+)\.\w+$/),C={filename:t,selfName:T&&hi(Tn(T[1])),prefixIdentifiers:n,hoistStatic:r,hmr:s,cacheHandlers:i,nodeTransforms:o,directiveTransforms:a,transformHoist:l,isBuiltInComponent:u,isCustomElement:c,expressionPlugins:d,scopeId:f,slotted:h,ssr:p,inSSR:m,ssrCssVars:v,bindingMetadata:x,inline:g,isTS:y,onError:_,onWarn:E,compatConfig:w,root:e,helpers:new Map,components:new Set,directives:new Set,hoists:[],imports:[],cached:[],constantCache:new WeakMap,temps:0,identifiers:Object.create(null),scopes:{vFor:0,vSlot:0,vPre:0,vOnce:0},parent:null,grandParent:null,currentNode:e,childIndex:0,inVOnce:!1,helper(I){const k=C.helpers.get(I)||0;return C.helpers.set(I,k+1),I},removeHelper(I){const k=C.helpers.get(I);if(k){const $=k-1;$?C.helpers.set(I,$):C.helpers.delete(I)}},helperString(I){return`_${Eu[C.helper(I)]}`},replaceNode(I){C.parent.children[C.childIndex]=C.currentNode=I},removeNode(I){const k=C.parent.children,$=I?k.indexOf(I):C.currentNode?C.childIndex:-1;!I||I===C.currentNode?(C.currentNode=null,C.onNodeRemoved()):C.childIndex>$&&(C.childIndex--,C.onNodeRemoved()),C.parent.children.splice($,1)},onNodeRemoved:Pr,addIdentifiers(I){},removeIdentifiers(I){},hoist(I){Ot(I)&&(I=Nt(I)),C.hoists.push(I);const k=Nt(`_hoisted_${C.hoists.length}`,!1,I.loc,2);return k.hoisted=I,k},cache(I,k=!1,$=!1){const R=eO(C.cached.length,I,k,$);return C.cached.push(R),R}};return C.filters=new Set,C}function TO(e,t){const n=wO(e,t);qh(e,n),t.hoistStatic&&Moe(e,n),t.ssr||Boe(e,n),e.helpers=new Set([...n.helpers.keys()]),e.components=[...n.components],e.directives=[...n.directives],e.imports=n.imports,e.hoists=n.hoists,e.temps=n.temps,e.cached=n.cached,e.transformed=!0,e.filters=[...n.filters]}function Boe(e,t){const{helper:n}=t,{children:r}=e;if(r.length===1){const s=bO(e);if(s&&s.codegenNode){const i=s.codegenNode;i.type===13&&Vy(i,t),e.codegenNode=i}else e.codegenNode=r[0]}else if(r.length>1){let s=64;e.codegenNode=Gc(t,n(zc),void 0,e.children,s,void 0,void 0,!0,void 0,!1)}}function Noe(e,t){let n=0;const r=()=>{n--};for(;n<e.children.length;n++){const s=e.children[n];Ot(s)||(t.grandParent=t.parent,t.parent=e,t.childIndex=n,t.onNodeRemoved=r,qh(s,t))}}function qh(e,t){t.currentNode=e;const{nodeTransforms:n}=t,r=[];for(let i=0;i<n.length;i++){const o=n[i](e,t);if(o&&(dt(o)?r.push(...o):r.push(o)),t.currentNode)e=t.currentNode;else return}switch(e.type){case 3:t.ssr||t.helper(wd);break;case 5:t.ssr||t.helper(Gh);break;case 9:for(let i=0;i<e.branches.length;i++)qh(e.branches[i],t);break;case 10:case 11:case 1:case 0:Noe(e,t);break}t.currentNode=e;let s=r.length;for(;s--;)r[s]()}function oE(e,t){const n=Ot(e)?r=>r===e:r=>e.test(r);return(r,s)=>{if(r.type===1){const{props:i}=r;if(r.tagType===3&&i.some(rE))return;const o=[];for(let a=0;a<i.length;a++){const l=i[a];if(l.type===7&&n(l.name)){i.splice(a,1),a--;const u=t(r,l,s);u&&o.push(u)}}return o}}}const Uy="/*@__PURE__*/",CO=e=>`${Eu[e]}: _${Eu[e]}`;function Voe(e,{mode:t="function",prefixIdentifiers:n=t==="module",sourceMap:r=!1,filename:s="template.vue.html",scopeId:i=null,optimizeImports:o=!1,runtimeGlobalName:a="Vue",runtimeModuleName:l="vue",ssrRuntimeModuleName:u="vue/server-renderer",ssr:c=!1,isTS:d=!1,inSSR:f=!1}){const h={mode:t,prefixIdentifiers:n,sourceMap:r,filename:s,scopeId:i,optimizeImports:o,runtimeGlobalName:a,runtimeModuleName:l,ssrRuntimeModuleName:u,ssr:c,isTS:d,inSSR:f,source:e.source,code:"",column:1,line:1,offset:0,indentLevel:0,pure:!1,map:void 0,helper(m){return`_${Eu[m]}`},push(m,v=-2,x){h.code+=m},indent(){p(++h.indentLevel)},deindent(m=!1){m?--h.indentLevel:p(--h.indentLevel)},newline(){p(h.indentLevel)}};function p(m){h.push(`
76`+"  ".repeat(m),0)}return h}function AO(e,t={}){const n=Voe(e,t);t.onContextCreated&&t.onContextCreated(n);const{mode:r,push:s,prefixIdentifiers:i,indent:o,deindent:a,newline:l,scopeId:u,ssr:c}=n,d=Array.from(e.helpers),f=d.length>0,h=!i&&r!=="module";Uoe(e,n);const m=c?"ssrRender":"render",x=(c?["_ctx","_push","_parent","_attrs"]:["_ctx","_cache"]).join(", ");if(s(`function ${m}(${x}) {`),o(),h&&(s("with (_ctx) {"),o(),f&&(s(`const { ${d.map(CO).join(", ")} } = _Vue
77`,-1),l())),e.components.length&&(ex(e.components,"component",n),(e.directives.length||e.temps>0)&&l()),e.directives.length&&(ex(e.directives,"directive",n),e.temps>0&&l()),e.filters&&e.filters.length&&(l(),ex(e.filters,"filter",n),l()),e.temps>0){s("let ");for(let g=0;g<e.temps;g++)s(`${g>0?", ":""}_temp${g}`)}return(e.components.length||e.directives.length||e.temps)&&(s(`
78`,0),l()),c||s("return "),e.codegenNode?fs(e.codegenNode,n):s("null"),h&&(a(),s("}")),a(),s("}"),{ast:e,code:n.code,preamble:"",map:n.map?n.map.toJSON():void 0}}function Uoe(e,t){const{ssr:n,prefixIdentifiers:r,push:s,newline:i,runtimeModuleName:o,runtimeGlobalName:a,ssrRuntimeModuleName:l}=t,u=a,c=Array.from(e.helpers);if(c.length>0&&(s(`const _Vue = ${u}
79`,-1),e.hoists.length)){const d=[Cy,Ay,wd,ky,YS].filter(f=>c.includes(f)).map(CO).join(", ");s(`const { ${d} } = _Vue
80`,-1)}joe(e.hoists,t),i(),s("return ")}function ex(e,t,{helper:n,push:r,newline:s,isTS:i}){const o=n(t==="filter"?Py:t==="component"?Iy:Dy);for(let a=0;a<e.length;a++){let l=e[a];const u=l.endsWith("__self");u&&(l=l.slice(0,-6)),r(`const ${qc(l,t)} = ${o}(${JSON.stringify(l)}${u?", true":""})${i?"!":""}`),a<e.length-1&&s()}}function joe(e,t){if(!e.length)return;t.pure=!0;const{push:n,newline:r}=t;r();for(let s=0;s<e.length;s++){const i=e[s];i&&(n(`const _hoisted_${s+1} = `),fs(i,t),r())}t.pure=!1}function aE(e,t){const n=e.length>3||!1;t.push("["),n&&t.indent(),Yh(e,t,n),n&&t.deindent(),t.push("]")}function Yh(e,t,n=!1,r=!0){const{push:s,newline:i}=t;for(let o=0;o<e.length;o++){const a=e[o];Ot(a)?s(a,-3):dt(a)?aE(a,t):fs(a,t),o<e.length-1&&(n?(r&&s(","),i()):r&&s(", "))}}function fs(e,t){if(Ot(e)){t.push(e,-3);return}if(ks(e)){t.push(t.helper(e));return}switch(e.type){case 1:case 9:case 11:fs(e.codegenNode,t);break;case 2:zoe(e,t);break;case 4:kO(e,t);break;case 5:Hoe(e,t);break;case 12:fs(e.codegenNode,t);break;case 8:IO(e,t);break;case 3:Koe(e,t);break;case 13:Woe(e,t);break;case 14:Yoe(e,t);break;case 15:Xoe(e,t);break;case 17:Zoe(e,t);break;case 18:Joe(e,t);break;case 19:Qoe(e,t);break;case 20:eae(e,t);break;case 21:Yh(e.body,t,!0,!1);break}}function zoe(e,t){t.push(JSON.stringify(e.content),-3,e)}function kO(e,t){const{content:n,isStatic:r}=e;t.push(r?JSON.stringify(n):n,-3,e)}function Hoe(e,t){const{push:n,helper:r,pure:s}=t;s&&n(Uy),n(`${r(Gh)}(`),fs(e.content,t),n(")")}function IO(e,t){for(let n=0;n<e.children.length;n++){const r=e.children[n];Ot(r)?t.push(r,-3):fs(r,t)}}function Goe(e,t){const{push:n}=t;if(e.type===8)n("["),IO(e,t),n("]");else if(e.isStatic){const r=Kh(e.content)?e.content:JSON.stringify(e.content);n(r,-2,e)}else n(`[${e.content}]`,-3,e)}function Koe(e,t){const{push:n,helper:r,pure:s}=t;s&&n(Uy),n(`${r(wd)}(${JSON.stringify(e.content)})`,-3,e)}function Woe(e,t){const{push:n,helper:r,pure:s}=t,{tag:i,props:o,children:a,patchFlag:l,dynamicProps:u,directives:c,isBlock:d,disableTracking:f,isComponent:h}=e;let p;l&&(p=String(l)),c&&n(r(Ry)+"("),d&&n(`(${r(yl)}(${f?"true":""}), `),s&&n(Uy);const m=d?Cu(t.inSSR,h):Tu(t.inSSR,h);n(r(m)+"(",-2,e),Yh(qoe([i,o,a,p,u]),t),n(")"),d&&n(")"),c&&(n(", "),fs(c,t),n(")"))}function qoe(e){let t=e.length;for(;t--&&e[t]==null;);return e.slice(0,t+1).map(n=>n||"null")}function Yoe(e,t){const{push:n,helper:r,pure:s}=t,i=Ot(e.callee)?e.callee:r(e.callee);s&&n(Uy),n(i+"(",-2,e),Yh(e.arguments,t),n(")")}function Xoe(e,t){const{push:n,indent:r,deindent:s,newline:i}=t,{properties:o}=e;if(!o.length){n("{}",-2,e);return}const a=o.length>1||!1;n(a?"{":"{ "),a&&r();for(let l=0;l<o.length;l++){const{key:u,value:c}=o[l];Goe(u,t),n(": "),fs(c,t),l<o.length-1&&(n(","),i())}a&&s(),n(a?"}":" }")}function Zoe(e,t){aE(e.elements,t)}function Joe(e,t){const{push:n,indent:r,deindent:s}=t,{params:i,returns:o,body:a,newline:l,isSlot:u}=e;u&&n(`_${Eu[By]}(`),n("(",-2,e),dt(i)?Yh(i,t):i&&fs(i,t),n(") => "),(l||a)&&(n("{"),r()),o?(l&&n("return "),dt(o)?aE(o,t):fs(o,t)):a&&fs(a,t),(l||a)&&(s(),n("}")),u&&(e.isNonScopedSlot&&n(", undefined, true"),n(")"))}function Qoe(e,t){const{test:n,consequent:r,alternate:s,newline:i}=e,{push:o,indent:a,deindent:l,newline:u}=t;if(n.type===4){const d=!Kh(n.content);d&&o("("),kO(n,t),d&&o(")")}else o("("),fs(n,t),o(")");i&&a(),t.indentLevel++,i||o(" "),o("? "),fs(r,t),t.indentLevel--,i&&u(),i||o(" "),o(": ");const c=s.type===19;c||t.indentLevel++,fs(s,t),c||t.indentLevel--,i&&l(!0)}function eae(e,t){const{push:n,helper:r,indent:s,deindent:i,newline:o}=t,{needPauseTracking:a,needArraySpread:l}=e;l&&n("[...("),n(`_cache[${e.index}] || (`),a&&(s(),n(`${r(ih)}(-1`),e.inVOnce&&n(", true"),n("),"),o(),n("(")),n(`_cache[${e.index}] = `),fs(e.value,t),a&&(n(`).cacheIndex = ${e.index},`),o(),n(`${r(ih)}(1),`),o(),n(`_cache[${e.index}]`),i()),n(")"),l&&n(")]")}new RegExp("\\b"+"arguments,await,break,case,catch,class,const,continue,debugger,default,delete,do,else,export,extends,finally,for,function,if,import,let,new,return,super,switch,throw,try,var,void,while,with,yield".split(",").join("\\b|\\b")+"\\b");const tae=(e,t)=>{if(e.type===5)e.content=Sm(e.content,t);else if(e.type===1){const n=Es(e,"memo");for(let r=0;r<e.props.length;r++){const s=e.props[r];if(s.type===7&&s.name!=="for"){const i=s.exp,o=s.arg;i&&i.type===4&&!(s.name==="on"&&o)&&!(n&&o&&o.type===4&&o.content==="key")&&(s.exp=Sm(i,t,s.name==="slot")),o&&o.type===4&&!o.isStatic&&(s.arg=Sm(o,t))}}}};function Sm(e,t,n=!1,r=!1,s=Object.create(t.identifiers)){return e}function LO(e){return Ot(e)?e:e.type===4?e.content:e.children.map(LO).join("")}const nae=oE(/^(?:if|else|else-if)$/,(e,t,n)=>DO(e,t,n,(r,s,i)=>{const o=n.parent.children;let a=o.indexOf(r),l=0;for(;a-->=0;){const u=o[a];u&&u.type===9&&(l+=u.branches.length)}return()=>{if(i)r.codegenNode=Ck(s,l,n);else{const u=rae(r.codegenNode);u.alternate=Ck(s,l+r.branches.length-1,n)}}}));function DO(e,t,n,r){if(t.name!=="else"&&(!t.exp||!t.exp.content.trim())){const s=t.exp?t.exp.loc:e.loc;n.onError(Mn(28,t.loc)),t.exp=Nt("true",!1,s)}if(t.name==="if"){const s=Tk(e,t),i={type:9,loc:Roe(e.loc),branches:[s]};if(n.replaceNode(i),r)return r(i,s,!0)}else{const s=n.parent.children;let i=s.indexOf(e);for(;i-->=-1;){const o=s[i];if(o&&o.type===3){n.removeNode(o);continue}if(o&&o.type===2&&!o.content.trim().length){n.removeNode(o);continue}if(o&&o.type===9){(t.name==="else-if"||t.name==="else")&&o.branches[o.branches.length-1].condition===void 0&&n.onError(Mn(30,e.loc)),n.removeNode();const a=Tk(e,t);o.branches.push(a);const l=r&&r(o,a,!1);qh(a,n),l&&l(),n.currentNode=null}else n.onError(Mn(30,e.loc));break}}}function Tk(e,t){const n=e.tagType===3;return{type:10,loc:e.loc,condition:t.name==="else"?void 0:t.exp,children:n&&!Es(e,"for")?e.children:[e],userKey:Wh(e,"key"),isTemplateIf:n}}function Ck(e,t,n){return e.condition?Qv(e.condition,Ak(e,t,n),pr(n.helper(wd),['""',"true"])):Ak(e,t,n)}function Ak(e,t,n){const{helper:r}=n,s=ur("key",Nt(`${t}`,!1,Ar,2)),{children:i}=e,o=i[0];if(i.length!==1||o.type!==1)if(i.length===1&&o.type===11){const l=o.codegenNode;return ah(l,s,n),l}else return Gc(n,r(zc),ai([s]),i,64,void 0,void 0,!0,!1,!1,e.loc);else{const l=o.codegenNode,u=pO(l);return u.type===13&&Vy(u,n),ah(u,s,n),l}}function rae(e){for(;;)if(e.type===19)if(e.alternate.type===19)e=e.alternate;else return e;else e.type===20&&(e=e.value)}const sae=oE("for",(e,t,n)=>{const{helper:r,removeHelper:s}=n;return PO(e,t,n,i=>{const o=pr(r(Oy),[i.source]),a=Wc(e),l=Es(e,"memo"),u=Wh(e,"key",!1,!0);u&&u.type;let c=u&&(u.type===6?u.value?Nt(u.value.content,!0):void 0:u.exp);const d=u&&c?ur("key",c):null,f=i.source.type===4&&i.source.constType>0,h=f?64:u?128:256;return i.codegenNode=Gc(n,r(zc),void 0,o,h,void 0,void 0,!0,!f,!1,e.loc),()=>{let p;const{children:m}=i,v=m.length!==1||m[0].type!==1,x=oh(e)?e:a&&e.children.length===1&&oh(e.children[0])?e.children[0]:null;if(x?(p=x.codegenNode,a&&d&&ah(p,d,n)):v?p=Gc(n,r(zc),d?ai([d]):void 0,e.children,64,void 0,void 0,!0,void 0,!1):(p=m[0].codegenNode,a&&d&&ah(p,d,n),p.isBlock!==!f&&(p.isBlock?(s(yl),s(Cu(n.inSSR,p.isComponent))):s(Tu(n.inSSR,p.isComponent))),p.isBlock=!f,p.isBlock?(r(yl),r(Cu(n.inSSR,p.isComponent))):r(Tu(n.inSSR,p.isComponent))),l){const g=wu(tg(i.parseResult,[Nt("_cached")]));g.body=tO([Oi(["const _memo = (",l.exp,")"]),Oi(["if (_cached",...c?[" && _cached.key === ",c]:[],` && ${n.helperString(JS)}(_cached, _memo)) return _cached`]),Oi(["const _item = ",p]),Nt("_item.memo = _memo"),Nt("return _item")]),o.arguments.push(g,Nt("_cache"),Nt(String(n.cached.length))),n.cached.push(null)}else o.arguments.push(wu(tg(i.parseResult),p,!0))}})});function PO(e,t,n,r){if(!t.exp){n.onError(Mn(31,t.loc));return}const s=t.forParseResult;if(!s){n.onError(Mn(32,t.loc));return}lE(s);const{addIdentifiers:i,removeIdentifiers:o,scopes:a}=n,{source:l,value:u,key:c,index:d}=s,f={type:11,loc:t.loc,source:l,valueAlias:u,keyAlias:c,objectIndexAlias:d,parseResult:s,children:Wc(e)?e.children:[e]};n.replaceNode(f),a.vFor++;const h=r&&r(f);return()=>{a.vFor--,h&&h()}}function lE(e,t){e.finalized||(e.finalized=!0)}function tg({value:e,key:t,index:n},r=[]){return iae([e,t,n,...r])}function iae(e){let t=e.length;for(;t--&&!e[t];);return e.slice(0,t+1).map((n,r)=>n||Nt("_".repeat(r+1),!1))}const kk=Nt("undefined",!1),RO=(e,t)=>{if(e.type===1&&(e.tagType===1||e.tagType===3)){const n=Es(e,"slot");if(n)return n.exp,t.scopes.vSlot++,()=>{t.scopes.vSlot--}}},oae=(e,t)=>{let n;if(Wc(e)&&e.props.some(rE)&&(n=Es(e,"for"))){const r=n.forParseResult;if(r){lE(r);const{value:s,key:i,index:o}=r,{addIdentifiers:a,removeIdentifiers:l}=t;return s&&a(s),i&&a(i),o&&a(o),()=>{s&&l(s),i&&l(i),o&&l(o)}}}},aae=(e,t,n,r)=>wu(e,n,!1,!0,n.length?n[0].loc:r);function OO(e,t,n=aae){t.helper(By);const{children:r,loc:s}=e,i=[],o=[];let a=t.scopes.vSlot>0||t.scopes.vFor>0;const l=Es(e,"slot",!0);if(l){const{arg:v,exp:x}=l;v&&!Ts(v)&&(a=!0),i.push(ur(v||Nt("default",!0),n(x,void 0,r,s)))}let u=!1,c=!1;const d=[],f=new Set;let h=0;for(let v=0;v<r.length;v++){const x=r[v];let g;if(!Wc(x)||!(g=Es(x,"slot",!0))){x.type!==3&&d.push(x);continue}if(l){t.onError(Mn(37,g.loc));break}u=!0;const{children:y,loc:_}=x,{arg:E=Nt("default",!0),exp:w,loc:T}=g;let C;Ts(E)?C=E?E.content:"default":a=!0;const I=Es(x,"for"),k=n(w,I,y,_);let $,R;if($=Es(x,"if"))a=!0,o.push(Qv($.exp,H0(E,k,h++),kk));else if(R=Es(x,/^else(?:-if)?$/,!0)){let D=v,O;for(;D--&&(O=r[D],!(O.type!==3&&c2(O))););if(O&&Wc(O)&&Es(O,/^(?:else-)?if$/)){let B=o[o.length-1];for(;B.alternate.type===19;)B=B.alternate;B.alternate=R.exp?Qv(R.exp,H0(E,k,h++),kk):H0(E,k,h++)}else t.onError(Mn(30,R.loc))}else if(I){a=!0;const D=I.forParseResult;D?(lE(D),o.push(pr(t.helper(Oy),[D.source,wu(tg(D),H0(E,k),!0)]))):t.onError(Mn(32,I.loc))}else{if(C){if(f.has(C)){t.onError(Mn(38,T));continue}f.add(C),C==="default"&&(c=!0)}i.push(ur(E,k))}}if(!l){const v=(x,g)=>{const y=n(x,void 0,g,s);return t.compatConfig&&(y.isNonScopedSlot=!0),ur("default",y)};u?d.length&&d.some(x=>c2(x))&&(c?t.onError(Mn(39,d[0].loc)):i.push(v(void 0,d))):i.push(v(void 0,r))}const p=a?2:Em(e.children)?3:1;let m=ai(i.concat(ur("_",Nt(p+"",!1))),s);return o.length&&(m=pr(t.helper(ZS),[m,dl(o)])),{slots:m,hasDynamicSlots:a}}function H0(e,t,n){const r=[ur("name",e),ur("fn",t)];return n!=null&&r.push(ur("key",Nt(String(n),!0))),ai(r)}function Em(e){for(let t=0;t<e.length;t++){const n=e[t];switch(n.type){case 1:if(n.tagType===2||Em(n.children))return!0;break;case 9:if(Em(n.branches))return!0;break;case 10:case 11:if(Em(n.children))return!0;break}}return!1}function c2(e){return e.type!==2&&e.type!==12?!0:e.type===2?!!e.content.trim():c2(e.content)}const $O=new WeakMap,MO=(e,t)=>function(){if(e=t.currentNode,!(e.type===1&&(e.tagType===0||e.tagType===1)))return;const{tag:r,props:s}=e,i=e.tagType===1;let o=i?FO(e,t):`"${r}"`;const a=un(o)&&o.callee===Ly;let l,u,c=0,d,f,h,p=a||o===_c||o===Ty||!i&&(r==="svg"||r==="foreignObject"||r==="math");if(s.length>0){const m=uE(e,t,void 0,i,a);l=m.props,c=m.patchFlag,f=m.dynamicPropNames;const v=m.directives;h=v&&v.length?dl(v.map(x=>BO(x,t))):void 0,m.shouldUseBlock&&(p=!0)}if(e.children.length>0)if(o===rh&&(p=!0,c|=1024),i&&o!==_c&&o!==rh){const{slots:v,hasDynamicSlots:x}=OO(e,t);u=v,x&&(c|=1024)}else if(e.children.length===1&&o!==_c){const v=e.children[0],x=v.type,g=x===5||x===8;g&&Vs(v,t)===0&&(c|=1),g||x===2?u=v:u=e.children}else u=e.children;f&&f.length&&(d=uae(f)),e.codegenNode=Gc(t,o,l,u,c===0?void 0:c,d,h,!!p,!1,i,e.loc)};function FO(e,t,n=!1){let{tag:r}=e;const s=d2(r),i=Wh(e,"is",!1,!0);if(i)if(s||uu("COMPILER_IS_ON_ELEMENT",t)){let a;if(i.type===6?a=i.value&&Nt(i.value.content,!0):(a=i.exp,a||(a=Nt("is",!1,i.arg.loc))),a)return pr(t.helper(Ly),[a])}else i.type===6&&i.value.content.startsWith("vue:")&&(r=i.value.content.slice(4));const o=eE(r)||t.isBuiltInComponent(r);return o?(n||t.helper(o),o):(t.helper(Iy),t.components.add(r),qc(r,"component"))}function uE(e,t,n=e.props,r,s,i=!1){const{tag:o,loc:a,children:l}=e;let u=[];const c=[],d=[],f=l.length>0;let h=!1,p=0,m=!1,v=!1,x=!1,g=!1,y=!1,_=!1;const E=[],w=k=>{u.length&&(c.push(ai(Ik(u),a)),u=[]),k&&c.push(k)},T=()=>{t.scopes.vFor>0&&u.push(ur(Nt("ref_for",!0),Nt("true")))},C=({key:k,value:$})=>{if(Ts(k)){const R=k.content,D=_l(R);if(D&&(!r||s)&&R.toLowerCase()!=="onclick"&&R!=="onUpdate:modelValue"&&!ya(R)&&(g=!0),D&&ya(R)&&(_=!0),D&&$.type===14&&($=$.arguments[0]),$.type===20||($.type===4||$.type===8)&&Vs($,t)>0)return;R==="ref"?m=!0:R==="class"?v=!0:R==="style"?x=!0:R!=="key"&&!E.includes(R)&&E.push(R),r&&(R==="class"||R==="style")&&!E.includes(R)&&E.push(R)}else y=!0};for(let k=0;k<n.length;k++){const $=n[k];if($.type===6){const{loc:R,name:D,nameLoc:O,value:B}=$;let U=!0;if(D==="ref"&&(m=!0,T()),D==="is"&&(d2(o)||B&&B.content.startsWith("vue:")||uu("COMPILER_IS_ON_ELEMENT",t)))continue;u.push(ur(Nt(D,!0,O),Nt(B?B.content:"",U,B?B.loc:R)))}else{const{name:R,arg:D,exp:O,loc:B,modifiers:U}=$,N=R==="bind",V=R==="on";if(R==="slot"){r||t.onError(Mn(40,B));continue}if(R==="once"||R==="memo"||R==="is"||N&&ol(D,"is")&&(d2(o)||uu("COMPILER_IS_ON_ELEMENT",t))||V&&i)continue;if((N&&ol(D,"key")||V&&f&&ol(D,"vue:before-update"))&&(h=!0),N&&ol(D,"ref")&&T(),!D&&(N||V)){if(y=!0,O)if(N){if(w(),uu("COMPILER_V_BIND_OBJECT_ORDER",t)){c.unshift(O);continue}T(),w(),c.push(O)}else w({type:14,loc:B,callee:t.helper(Fy),arguments:r?[O]:[O,"true"]});else t.onError(Mn(N?34:35,B));continue}N&&U.some(re=>re.content==="prop")&&(p|=32);const H=t.directiveTransforms[R];if(H){const{props:re,needRuntime:W}=H($,e,t);!i&&re.forEach(C),V&&D&&!Ts(D)?w(ai(re,a)):u.push(...re),W&&(d.push($),ks(W)&&$O.set($,W))}else PL(R)||(d.push($),f&&(h=!0))}}let I;if(c.length?(w(),c.length>1?I=pr(t.helper(sh),c,a):I=c[0]):u.length&&(I=ai(Ik(u),a)),y?p|=16:(v&&!r&&(p|=2),x&&!r&&(p|=4),E.length&&(p|=8),g&&(p|=32)),!h&&(p===0||p===32)&&(m||_||d.length>0)&&(p|=512),!t.inSSR&&I)switch(I.type){case 15:let k=-1,$=-1,R=!1;for(let B=0;B<I.properties.length;B++){const U=I.properties[B].key;Ts(U)?U.content==="class"?k=B:U.content==="style"&&($=B):U.isHandlerKey||(R=!0)}const D=I.properties[k],O=I.properties[$];R?I=pr(t.helper(Hc),[I]):(D&&!Ts(D.value)&&(D.value=pr(t.helper($y),[D.value])),O&&(x||O.value.type===4&&O.value.content.trim()[0]==="["||O.value.type===17)&&(O.value=pr(t.helper(My),[O.value])));break;case 14:break;default:I=pr(t.helper(Hc),[pr(t.helper(Td),[I])]);break}return{props:I,directives:d,patchFlag:p,dynamicPropNames:E,shouldUseBlock:h}}function Ik(e){const t=new Map,n=[];for(let r=0;r<e.length;r++){const s=e[r];if(s.key.type===8||!s.key.isStatic){n.push(s);continue}const i=s.key.content,o=t.get(i);o?(i==="style"||i==="class"||_l(i))&&lae(o,s):(t.set(i,s),n.push(s))}return n}function lae(e,t){e.value.type===17?e.value.elements.push(t.value):e.value=dl([e.value,t.value],e.loc)}function BO(e,t){const n=[],r=$O.get(e);r?n.push(t.helperString(r)):(t.helper(Dy),t.directives.add(e.name),n.push(qc(e.name,"directive")));const{loc:s}=e;if(e.exp&&n.push(e.exp),e.arg&&(e.exp||n.push("void 0"),n.push(e.arg)),Object.keys(e.modifiers).length){e.arg||(e.exp||n.push("void 0"),n.push("void 0"));const i=Nt("true",!1,s);n.push(ai(e.modifiers.map(o=>ur(o,i)),s))}return dl(n,e.loc)}function uae(e){let t="[";for(let n=0,r=e.length;n<r;n++)t+=JSON.stringify(e[n]),n<r-1&&(t+=", ");return t+"]"}function d2(e){return e==="component"||e==="Component"}const cae=(e,t)=>{if(oh(e)){const{children:n,loc:r}=e,{slotName:s,slotProps:i}=NO(e,t),o=[t.prefixIdentifiers?"_ctx.$slots":"$slots",s,"{}","undefined","true"];let a=2;i&&(o[2]=i,a=3),n.length&&(o[3]=wu([],n,!1,!1,r),a=4),t.scopeId&&!t.slotted&&(a=5),o.splice(a),e.codegenNode=pr(t.helper(XS),o,r)}};function NO(e,t){let n='"default"',r;const s=[];for(let i=0;i<e.props.length;i++){const o=e.props[i];if(o.type===6)o.value&&(o.name==="name"?n=JSON.stringify(o.value.content):(o.name=Tn(o.name),s.push(o)));else if(o.name==="bind"&&ol(o.arg,"name")){if(o.exp)n=o.exp;else if(o.arg&&o.arg.type===4){const a=Tn(o.arg.content);n=o.exp=Nt(a,!1,o.arg.loc)}}else o.name==="bind"&&o.arg&&Ts(o.arg)&&(o.arg.content=Tn(o.arg.content)),s.push(o)}if(s.length>0){const{props:i,directives:o}=uE(e,t,s,!1,!1);r=i,o.length&&t.onError(Mn(36,o[0].loc))}return{slotName:n,slotProps:r}}const cE=(e,t,n,r)=>{const{loc:s,modifiers:i,arg:o}=e;!e.exp&&!i.length&&n.onError(Mn(35,s));let a;if(o.type===4)if(o.isStatic){let d=o.content;d.startsWith("vue:")&&(d=`vnode-${d.slice(4)}`);const f=t.tagType!==0||d.startsWith("vnode")||!/[A-Z]/.test(d)?tu(Tn(d)):`on:${d}`;a=Nt(f,!0,o.loc)}else a=Oi([`${n.helperString(Jv)}(`,o,")"]);else a=o,a.children.unshift(`${n.helperString(Jv)}(`),a.children.push(")");let l=e.exp;l&&!l.content.trim()&&(l=void 0);let u=n.cacheHandlers&&!l&&!n.inVOnce;if(l){const d=nE(l),f=!(d||cO(l)),h=l.content.includes(";");(f||u&&d)&&(l=Oi([`${f?"$event":"(...args)"} => ${h?"{":"("}`,l,h?"}":")"]))}let c={props:[ur(a,l||Nt("() => {}",!1,s))]};return r&&(c=r(c)),u&&(c.props[0].value=n.cache(c.props[0].value)),c.props.forEach(d=>d.key.isHandlerKey=!0),c},VO=(e,t,n)=>{const{modifiers:r,loc:s}=e,i=e.arg;let{exp:o}=e;return o&&o.type===4&&!o.content.trim()&&(o=void 0),i.type!==4?(i.children.unshift("("),i.children.push(') || ""')):i.isStatic||(i.content=i.content?`${i.content} || ""`:'""'),r.some(a=>a.content==="camel")&&(i.type===4?i.isStatic?i.content=Tn(i.content):i.content=`${n.helperString(Zv)}(${i.content})`:(i.children.unshift(`${n.helperString(Zv)}(`),i.children.push(")"))),n.inSSR||(r.some(a=>a.content==="prop")&&Lk(i,"."),r.some(a=>a.content==="attr")&&Lk(i,"^")),{props:[ur(i,o)]}},Lk=(e,t)=>{e.type===4?e.isStatic?e.content=t+e.content:e.content=`\`${t}\${${e.content}}\``:(e.children.unshift(`'${t}' + (`),e.children.push(")"))},dae=(e,t)=>{if(e.type===0||e.type===1||e.type===11||e.type===10)return()=>{const n=e.children;let r,s=!1;for(let i=0;i<n.length;i++){const o=n[i];if(ym(o)){s=!0;for(let a=i+1;a<n.length;a++){const l=n[a];if(ym(l))r||(r=n[i]=Oi([o],o.loc)),r.children.push(" + ",l),n.splice(a,1),a--;else{r=void 0;break}}}}if(!(!s||n.length===1&&(e.type===0||e.type===1&&e.tagType===0&&!e.props.find(i=>i.type===7&&!t.directiveTransforms[i.name])&&e.tag!=="template")))for(let i=0;i<n.length;i++){const o=n[i];if(ym(o)||o.type===8){const a=[];(o.type!==2||o.content!==" ")&&a.push(o),!t.ssr&&Vs(o,t)===0&&a.push("1"),n[i]={type:12,content:o,loc:o.loc,codegenNode:pr(t.helper(ky),a)}}}}},Dk=new WeakSet,fae=(e,t)=>{if(e.type===1&&Es(e,"once",!0))return Dk.has(e)||t.inVOnce||t.inSSR?void 0:(Dk.add(e),t.inVOnce=!0,t.helper(ih),()=>{t.inVOnce=!1;const n=t.currentNode;n.codegenNode&&(n.codegenNode=t.cache(n.codegenNode,!0,!0))})},dE=(e,t,n)=>{const{exp:r,arg:s}=e;if(!r)return n.onError(Mn(41,e.loc)),G0();const i=r.loc.source.trim(),o=r.type===4?r.content:i,a=n.bindingMetadata[i];if(a==="props"||a==="props-aliased")return n.onError(Mn(44,r.loc)),G0();if(!o.trim()||!nE(r))return n.onError(Mn(42,r.loc)),G0();const l=s||Nt("modelValue",!0),u=s?Ts(s)?`onUpdate:${Tn(s.content)}`:Oi(['"onUpdate:" + ',s]):"onUpdate:modelValue";let c;const d=n.isTS?"($event: any)":"$event";c=Oi([`${d} => ((`,r,") = $event)"]);const f=[ur(l,e.exp),ur(u,c)];if(e.modifiers.length&&t.tagType===1){const h=e.modifiers.map(m=>m.content).map(m=>(Kh(m)?m:JSON.stringify(m))+": true").join(", "),p=s?Ts(s)?`${s.content}Modifiers`:Oi([s,' + "Modifiers"']):"modelModifiers";f.push(ur(p,Nt(`{ ${h} }`,!1,e.loc,2)))}return G0(f)};function G0(e=[]){return{props:e}}const hae=/[\w).+\-_$\]]/,pae=(e,t)=>{uu("COMPILER_FILTERS",t)&&(e.type===5?ng(e.content,t):e.type===1&&e.props.forEach(n=>{n.type===7&&n.name!=="for"&&n.exp&&ng(n.exp,t)}))};function ng(e,t){if(e.type===4)Pk(e,t);else for(let n=0;n<e.children.length;n++){const r=e.children[n];typeof r=="object"&&(r.type===4?Pk(r,t):r.type===8?ng(e,t):r.type===5&&ng(r.content,t))}}function Pk(e,t){const n=e.content;let r=!1,s=!1,i=!1,o=!1,a=0,l=0,u=0,c=0,d,f,h,p,m=[];for(h=0;h<n.length;h++)if(f=d,d=n.charCodeAt(h),r)d===39&&f!==92&&(r=!1);else if(s)d===34&&f!==92&&(s=!1);else if(i)d===96&&f!==92&&(i=!1);else if(o)d===47&&f!==92&&(o=!1);else if(d===124&&n.charCodeAt(h+1)!==124&&n.charCodeAt(h-1)!==124&&!a&&!l&&!u)p===void 0?(c=h+1,p=n.slice(0,h).trim()):v();else{switch(d){case 34:s=!0;break;case 39:r=!0;break;case 96:i=!0;break;case 40:u++;break;case 41:u--;break;case 91:l++;break;case 93:l--;break;case 123:a++;break;case 125:a--;break}if(d===47){let x=h-1,g;for(;x>=0&&(g=n.charAt(x),g===" ");x--);(!g||!hae.test(g))&&(o=!0)}}p===void 0?p=n.slice(0,h).trim():c!==0&&v();function v(){m.push(n.slice(c,h).trim()),c=h+1}if(m.length){for(h=0;h<m.length;h++)p=mae(p,m[h],t);e.content=p,e.ast=void 0}}function mae(e,t,n){n.helper(Py);const r=t.indexOf("(");if(r<0)return n.filters.add(t),`${qc(t,"filter")}(${e})`;{const s=t.slice(0,r),i=t.slice(r+1);return n.filters.add(s),`${qc(s,"filter")}(${e}${i!==")"?","+i:i}`}}const Rk=new WeakSet,vae=(e,t)=>{if(e.type===1){const n=Es(e,"memo");return!n||Rk.has(e)||t.inSSR?void 0:(Rk.add(e),()=>{const r=e.codegenNode||t.currentNode.codegenNode;r&&r.type===13&&(e.tagType!==1&&Vy(r,t),e.codegenNode=pr(t.helper(Ny),[n.exp,wu(void 0,r),"_cache",String(t.cached.length)]),t.cached.push(null))})}},UO=(e,t)=>{if(e.type===1){for(const n of e.props)if(n.type===7&&n.name==="bind"&&(!n.exp||n.exp.type===4&&!n.exp.content.trim())&&n.arg){const r=n.arg;if(r.type!==4||!r.isStatic)t.onError(Mn(52,r.loc)),n.exp=Nt("",!0,r.loc);else{const s=Tn(r.content);(tE.test(s[0])||s[0]==="-")&&(n.exp=Nt(s,!1,r.loc))}}}};function jO(e){return[[UO,fae,nae,vae,sae,pae,cae,MO,RO,dae],{on:cE,bind:VO,model:dE}]}function zO(e,t={}){const n=t.onError||QS,r=t.mode==="module";t.prefixIdentifiers===!0?n(Mn(47)):r&&n(Mn(48));const s=!1;t.cacheHandlers&&n(Mn(49)),t.scopeId&&!r&&n(Mn(50));const i=Xt({},t,{prefixIdentifiers:s}),o=Ot(e)?iE(e,i):e,[a,l]=jO();return TO(o,Xt({},i,{nodeTransforms:[...a,...t.nodeTransforms||[]],directiveTransforms:Xt({},l,t.directiveTransforms||{})})),AO(o,i)}const gae={DATA:"data",PROPS:"props",PROPS_ALIASED:"props-aliased",SETUP_LET:"setup-let",SETUP_CONST:"setup-const",SETUP_REACTIVE_CONST:"setup-reactive-const",SETUP_MAYBE_REF:"setup-maybe-ref",SETUP_REF:"setup-ref",OPTIONS:"options",LITERAL_CONST:"literal-const"},HO=()=>({props:[]});const fE=Symbol(""),hE=Symbol(""),pE=Symbol(""),mE=Symbol(""),rg=Symbol(""),vE=Symbol(""),gE=Symbol(""),yE=Symbol(""),xE=Symbol(""),bE=Symbol("");J8({[fE]:"vModelRadio",[hE]:"vModelCheckbox",[pE]:"vModelText",[mE]:"vModelSelect",[rg]:"vModelDynamic",[vE]:"withModifiers",[gE]:"withKeys",[yE]:"vShow",[xE]:"Transition",[bE]:"TransitionGroup"});let Yu;function yae(e,t=!1){return Yu||(Yu=document.createElement("div")),t?(Yu.innerHTML=`<div foo="${e.replace(/"/g,"&quot;")}">`,Yu.children[0].getAttribute("foo")):(Yu.innerHTML=e,Yu.textContent)}const _E={parseMode:"html",isVoidTag:FL,isNativeTag:e=>OL(e)||$L(e)||ML(e),isPreTag:e=>e==="pre",isIgnoreNewlineTag:e=>e==="pre"||e==="textarea",decodeEntities:yae,isBuiltInComponent:e=>{if(e==="Transition"||e==="transition")return xE;if(e==="TransitionGroup"||e==="transition-group")return bE},getNamespace(e,t,n){let r=t?t.ns:n;if(t&&r===2)if(t.tag==="annotation-xml"){if(e==="svg")return 1;t.props.some(s=>s.type===6&&s.name==="encoding"&&s.value!=null&&(s.value.content==="text/html"||s.value.content==="application/xhtml+xml"))&&(r=0)}else/^m(?:[ions]|text)$/.test(t.tag)&&e!=="mglyph"&&e!=="malignmark"&&(r=0);else t&&r===1&&(t.tag==="foreignObject"||t.tag==="desc"||t.tag==="title")&&(r=0);if(r===0){if(e==="svg")return 1;if(e==="math")return 2}return r}},GO=e=>{e.type===1&&e.props.forEach((t,n)=>{t.type===6&&t.name==="style"&&t.value&&(e.props[n]={type:7,name:"bind",arg:Nt("style",!0,t.loc),exp:xae(t.value.content,t.loc),modifiers:[],loc:t.loc})})},xae=(e,t)=>{const n=j2(e);return Nt(JSON.stringify(n),!1,t,3)};function Sa(e,t){return Mn(e,t)}const bae={X_V_HTML_NO_EXPRESSION:53,53:"X_V_HTML_NO_EXPRESSION",X_V_HTML_WITH_CHILDREN:54,54:"X_V_HTML_WITH_CHILDREN",X_V_TEXT_NO_EXPRESSION:55,55:"X_V_TEXT_NO_EXPRESSION",X_V_TEXT_WITH_CHILDREN:56,56:"X_V_TEXT_WITH_CHILDREN",X_V_MODEL_ON_INVALID_ELEMENT:57,57:"X_V_MODEL_ON_INVALID_ELEMENT",X_V_MODEL_ARG_ON_ELEMENT:58,58:"X_V_MODEL_ARG_ON_ELEMENT",X_V_MODEL_ON_FILE_INPUT_ELEMENT:59,59:"X_V_MODEL_ON_FILE_INPUT_ELEMENT",X_V_MODEL_UNNECESSARY_VALUE:60,60:"X_V_MODEL_UNNECESSARY_VALUE",X_V_SHOW_NO_EXPRESSION:61,61:"X_V_SHOW_NO_EXPRESSION",X_TRANSITION_INVA
80LID_CHILDREN:62,62:"X_TRANSITION_INVALID_CHILDREN",X_IGNORED_SIDE_EFFECT_TAG:63,63:"X_IGNORED_SIDE_EFFECT_TAG",__EXTEND_POINT__:64,64:"__EXTEND_POINT__"},_ae={53:"v-html is missing expression.",54:"v-html will override element children.",55:"v-text is missing expression.",56:"v-text will override element children.",57:"v-model can only be used on <input>, <textarea> and <select> elements.",58:"v-model argument is not supported on plain elements.",59:"v-model cannot be used on file inputs since they are read-only. Use a v-on:change listener instead.",60:"Unnecessary value binding used alongside v-model. It will interfere with v-model's behavior.",61:"v-show is missing expression.",62:"<Transition> expects exactly one child element or component.",63:"Tags with side effect (<script> and <style>) are ignored in client component templates."},Sae=(e,t,n)=>{const{exp:r,loc:s}=e;return r||n.onError(Sa(53,s)),t.children.length&&(n.onError(Sa(54,s)),t.children.length=0),{props:[ur(Nt("innerHTML",!0,s),r||Nt("",!0))]}},Eae=(e,t,n)=>{const{exp:r,loc:s}=e;return r||n.onError(Sa(55,s)),t.children.length&&(n.onError(Sa(56,s)),t.children.length=0),{props:[ur(Nt("textContent",!0),r?Vs(r,n)>0?r:pr(n.helperString(Gh),[r],s):Nt("",!0))]}},wae=(e,t,n)=>{const r=dE(e,t,n);if(!r.props.length||t.tagType===1)return r;e.arg&&n.onError(Sa(58,e.arg.loc));const{tag:s}=t,i=n.isCustomElement(s);if(s==="input"||s==="textarea"||s==="select"||i){let o=pE,a=!1;if(s==="input"||i){const l=Wh(t,"type");if(l){if(l.type===7)o=rg;else if(l.value)switch(l.value.content){case"radio":o=fE;break;case"checkbox":o=hE;break;case"file":a=!0,n.onError(Sa(59,e.loc));break}}else fO(t)&&(o=rg)}else s==="select"&&(o=mE);a||(r.needRuntime=n.helper(o))}else n.onError(Sa(57,e.loc));return r.props=r.props.filter(o=>!(o.key.type===4&&o.key.content==="modelValue")),r},Tae=Or("passive,once,capture"),Cae=Or("stop,prevent,self,ctrl,shift,alt,meta,exact,middle"),Aae=Or("left,right"),KO=Or("onkeyup,onkeydown,onkeypress"),kae=(e,t,n,r)=>{const s=[],i=[],o=[];for(let a=0;a<t.length;a++){const l=t[a].content;l==="native"&&Kc("COMPILER_V_ON_NATIVE",n)||Tae(l)?o.push(l):Aae(l)?Ts(e)?KO(e.content.toLowerCase())?s.push(l):i.push(l):(s.push(l),i.push(l)):Cae(l)?i.push(l):s.push(l)}return{keyModifiers:s,nonKeyModifiers:i,eventOptionModifiers:o}},Ok=(e,t)=>Ts(e)&&e.content.toLowerCase()==="onclick"?Nt(t,!0):e.type!==4?Oi(["(",e,`) === "onClick" ? "${t}" : (`,e,")"]):e,Iae=(e,t,n)=>cE(e,t,n,r=>{const{modifiers:s}=e;if(!s.length)return r;let{key:i,value:o}=r.props[0];const{keyModifiers:a,nonKeyModifiers:l,eventOptionModifiers:u}=kae(i,s,n,e.loc);if(l.includes("right")&&(i=Ok(i,"onContextmenu")),l.includes("middle")&&(i=Ok(i,"onMouseup")),l.length&&(o=pr(n.helper(vE),[o,JSON.stringify(l)])),a.length&&(!Ts(i)||KO(i.content.toLowerCase()))&&(o=pr(n.helper(gE),[o,JSON.stringify(a)])),u.length){const c=u.map(hi).join("");i=Ts(i)?Nt(`${i.content}${c}`,!0):Oi(["(",i,`) + "${c}"`])}return{props:[ur(i,o)]}}),Lae=(e,t,n)=>{const{exp:r,loc:s}=e;return r||n.onError(Sa(61,s)),{props:[],needRuntime:n.helper(yE)}},Dae=(e,t)=>{e.type===1&&e.tagType===0&&(e.tag==="script"||e.tag==="style")&&t.removeNode()},WO=[GO],qO={cloak:HO,html:Sae,text:Eae,model:wae,on:Iae,show:Lae};function Pae(e,t={}){return zO(e,Xt({},_E,t,{nodeTransforms:[Dae,...WO,...t.nodeTransforms||[]],directiveTransforms:Xt({},qO,t.directiveTransforms||{}),transformHoist:null}))}function Rae(e,t={}){return iE(e,Xt({},_E,t))}const Oae=Object.freeze(Object.defineProperty({__proto__:null,BASE_TRANSITION:KS,BindingTypes:gae,CAMELIZE:Zv,CAPITALIZE:W8,CREATE_BLOCK:WS,CREATE_COMMENT:wd,CREATE_ELEMENT_BLOCK:qS,CREATE_ELEMENT_VNODE:Ay,CREATE_SLOTS:ZS,CREATE_STATIC:YS,CREATE_TEXT:ky,CREATE_VNODE:Cy,CompilerDeprecationTypes:eoe,ConstantTypes:Kie,DOMDirectiveTransforms:qO,DOMErrorCodes:bae,DOMErrorMessages:_ae,DOMNodeTransforms:WO,ElementTypes:Gie,ErrorCodes:roe,FRAGMENT:zc,GUARD_REACTIVE_PROPS:Td,IS_MEMO_SAME:JS,IS_REF:Z8,KEEP_ALIVE:rh,MERGE_PROPS:sh,NORMALIZE_CLASS:$y,NORMALIZE_PROPS:Hc,NORMALIZE_STYLE:My,Namespaces:zie,NodeTypes:Hie,OPEN_BLOCK:yl,POP_SCOPE_ID:Y8,PUSH_SCOPE_ID:q8,RENDER_LIST:Oy,RENDER_SLOT:XS,RESOLVE_COMPONENT:Iy,RESOLVE_DIRECTIVE:Dy,RESOLVE_DYNAMIC_COMPONENT:Ly,RESOLVE_FILTER:Py,SET_BLOCK_TRACKING:ih,SUSPENSE:Ty,TELEPORT:_c,TO_DISPLAY_STRING:Gh,TO_HANDLERS:Fy,TO_HANDLER_KEY:Jv,TRANSITION:xE,TRANSITION_GROUP:bE,TS_NODE_TYPES:iO,UNREF:X8,V_MODEL_CHECKBOX:hE,V_MODEL_DYNAMIC:rg,V_MODEL_RADIO:fE,V_MODEL_SELECT:mE,V_MODEL_TEXT:pE,V_ON_WITH_KEYS:gE,V_ON_WITH_MODIFIERS:vE,V_SHOW:yE,WITH_CTX:By,WITH_DIRECTIVES:Ry,WITH_MEMO:Ny,advancePositionWithClone:_oe,advancePositionWithMutation:dO,assert:Soe,baseCompile:zO,baseParse:iE,buildDirectiveArgs:BO,buildProps:uE,buildSlots:OO,checkCompatEnabled:Kc,compile:Pae,convertToBlock:Vy,createArrayExpression:dl,createAssignmentExpression:Xie,createBlockStatement:tO,createCacheExpression:eO,createCallExpression:pr,createCompilerError:Mn,createCompoundExpression:Oi,createConditionalExpression:Qv,createDOMCompilerError:Sa,createForLoopParams:tg,createFunctionExpression:wu,createIfStatement:Yie,createInterpolation:Wie,createObjectExpression:ai,createObjectProperty:ur,createReturnStatement:Jie,createRoot:Q8,createSequenceExpression:Zie,createSimpleExpression:Nt,createStructuralDirectiveTransform:oE,createTemplateLiteral
80:qie,createTransformContext:wO,createVNodeCall:Gc,errorMessages:soe,extractIdentifiers:Ao,findDir:Es,findProp:Wh,forAliasRE:mO,generate:AO,generateCodeFrame:RL,getBaseTransformPreset:jO,getConstantType:Vs,getMemoedVNodeCall:pO,getVNodeBlockHelper:Cu,getVNodeHelper:Tu,hasDynamicKeyVBind:fO,hasScopeRef:Ji,helperNameMap:Eu,injectProp:ah,isCoreComponent:eE,isFnExpression:cO,isFnExpressionBrowser:uO,isFnExpressionNode:boe,isFunctionType:hoe,isInDestructureAssignment:aoe,isInNewExpression:loe,isMemberExpression:nE,isMemberExpressionBrowser:lO,isMemberExpressionNode:yoe,isReferencedIdentifier:ooe,isSimpleIdentifier:Kh,isSlotOutlet:oh,isStaticArgOf:ol,isStaticExp:Ts,isStaticProperty:sO,isStaticPropertyKey:poe,isTemplateNode:Wc,isText:ym,isVPre:a2,isVSlot:rE,locStub:Ar,noopDirectiveTransform:HO,parse:Rae,parserOptions:_E,processExpression:Sm,processFor:PO,processIf:DO,processSlotOutlet:NO,registerRuntimeHelpers:J8,resolveComponentType:FO,stringifyExpression:LO,toValidAssetId:qc,trackSlotScopes:RO,trackVForSlotScopes:oae,transform:TO,transformBind:VO,transformElement:MO,transformExpression:tae,transformModel:dE,transformOn:cE,transformStyle:GO,transformVBindShorthand:UO,traverseNode:qh,unwrapTSNode:oO,validFirstIdentCharRE:tE,walkBlockDeclarations:rO,walkFunctionParams:uoe,walkIdentifiers:ioe,warnDeprecation:noe},Symbol.toStringTag,{value:"Module"})),$ae=Ph(Oae),Mae=Ph(n7),Fae=Ph(QM);var $k;function Bae(){return $k||($k=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0});var t=$ae,n=Mae,r=Fae;function s(l){var u=Object.create(null);if(l)for(var c in l)u[c]=l[c];return u.default=l,Object.freeze(u)}var i=s(n);const o=Object.create(null);function a(l,u){if(!r.isString(l))if(l.nodeType)l=l.innerHTML;else return r.NOOP;const c=r.genCacheKey(l,u),d=o[c];if(d)return d;if(l[0]==="#"){const m=document.querySelector(l);l=m?m.innerHTML:""}const f=r.extend({hoistStatic:!0,onError:void 0,onWarn:r.NOOP},u);!f.isCustomElement&&typeof customElements<"u"&&(f.isCustomElement=m=>!!customElements.get(m));const{code:h}=t.compile(l,f),p=new Function("Vue",h)(i);return p._rc=!0,o[c]=p}n.registerRuntimeCompiler(a),e.compile=a,Object.keys(n).forEach(function(l){l!=="default"&&!Object.prototype.hasOwnProperty.call(e,l)&&(e[l]=n[l])})})(Q1)),Q1}var Mk;function Nae(){return Mk||(Mk=1,J1.exports=Bae()),J1.exports}function Fk(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(s){return Object.getOwnPropertyDescriptor(e,s).enumerable})),n.push.apply(n,r)}return n}function Ho(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?Fk(Object(n),!0).forEach(function(r){Vae(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Fk(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function wm(e){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?wm=function(t){return typeof t}:wm=function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},wm(e)}function Vae(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Ui(){return Ui=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Ui.apply(this,arguments)}function Uae(e,t){if(e==null)return{};var n={},r=Object.keys(e),s,i;for(i=0;i<r.length;i++)s=r[i],!(t.indexOf(s)>=0)&&(n[s]=e[s]);return n}function jae(e,t){if(e==null)return{};var n=Uae(e,t),r,s;if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(s=0;s<i.length;s++)r=i[s],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function zae(e){return Hae(e)||Gae(e)||Kae(e)||Wae()}function Hae(e){if(Array.isArray(e))return f2(e)}function Gae(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function Kae(e,t){if(e){if(typeof e=="string")return f2(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return f2(e,t)}}function f2(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function Wae(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
81In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var qae="1.14.0";function Ea(e){if(typeof window<"u"&&window.navigator)return!!navigator.userAgent.match(e)}var Oa=Ea(/(?:Trident.*rv[ :]?11\.|msie|iemobile|Windows Phone)/i),Xh=Ea(/Edge/i),Bk=Ea(/firefox/i),yf=Ea(/safari/i)&&
vendor: 5,518 bytes, line 81
81!Ea(/chrome/i)&&!Ea(/android/i),YO=Ea(/iP(ad|od|hone)/i),Yae=Ea(/chrome/i)&&Ea(/android/i),XO={capture:!1,passive:!1};function tn(e,t,n){e.addEventListener(t,n,!Oa&&XO)}function qt(e,t,n){e.removeEventListener(t,n,!Oa&&XO)}function sg(e,t){if(t){if(t[0]===">"&&(t=t.substring(1)),e)try{if(e.matches)return e.matches(t);if(e.msMatchesSelector)return e.msMatchesSelector(t);if(e.webkitMatchesSelector)return e.webkitMatchesSelector(t)}catch{return!1}return!1}}function Xae(e){return e.host&&e!==document&&e.host.nodeType?e.host:e.parentNode}function to(e,t,n,r){if(e){n=n||document;do{if(t!=null&&(t[0]===">"?e.parentNode===n&&sg(e,t):sg(e,t))||r&&e===n)return e;if(e===n)break}while(e=Xae(e))}return null}var Nk=/\s+/g;function Gn(e,t,n){if(e&&t)if(e.classList)e.classList[n?"add":"remove"](t);else{var r=(" "+e.className+" ").replace(Nk," ").replace(" "+t+" "," ");e.className=(r+(n?" "+t:"")).replace(Nk," ")}}function xt(e,t,n){var r=e&&e.style;if(r){if(n===void 0)return document.defaultView&&document.defaultView.getComputedStyle?n=document.defaultView.getComputedStyle(e,""):e.currentStyle&&(n=e.currentStyle),t===void 0?n:n[t];!(t in r)&&t.indexOf("webkit")===-1&&(t="-webkit-"+t),r[t]=n+(typeof n=="string"?"":"px")}}function cu(e,t){var n="";if(typeof e=="string")n=e;else do{var r=xt(e,"transform");r&&r!=="none"&&(n=r+" "+n)}while(!t&&(e=e.parentNode));var s=window.DOMMatrix||window.WebKitCSSMatrix||window.CSSMatrix||window.MSCSSMatrix;return s&&new s(n)}function ZO(e,t,n){if(e){var r=e.getElementsByTagName(t),s=0,i=r.length;if(n)for(;s<i;s++)n(r[s],s);return r}return[]}function Fo(){var e=document.scrollingElement;return e||document.documentElement}function Un(e,t,n,r,s){if(!(!e.getBoundingClientRect&&e!==window)){var i,o,a,l,u,c,d;if(e!==window&&e.parentNode&&e!==Fo()?(i=e.getBoundingClientRect(),o=i.top,a=i.left,l=i.bottom,u=i.right,c=i.height,d=i.width):(o=0,a=0,l=window.innerHeight,u=window.innerWidth,c=window.innerHeight,d=window.innerWidth),(t||n)&&e!==window&&(s=s||e.parentNode,!Oa))do if(s&&s.getBoundingClientRect&&(xt(s,"transform")!=="none"||n&&xt(s,"position")!=="static")){var f=s.getBoundingClientRect();o-=f.top+parseInt(xt(s,"border-top-width")),a-=f.left+parseInt(xt(s,"border-left-width")),l=o+i.height,u=a+i.width;break}while(s=s.parentNode);if(r&&e!==window){var h=cu(s||e),p=h&&h.a,m=h&&h.d;h&&(o/=m,a/=p,d/=p,c/=m,l=o+c,u=a+d)}return{top:o,left:a,bottom:l,right:u,width:d,height:c}}}function Vk(e,t,n){for(var r=al(e,!0),s=Un(e)[t];r;){var i=Un(r)[n],o=void 0;if(o=s>=i,!o)return r;if(r===Fo())break;r=al(r,!1)}return!1}function Yc(e,t,n,r){for(var s=0,i=0,o=e.children;i<o.length;){if(o[i].style.display!=="none"&&o[i]!==Pt.ghost&&(r||o[i]!==Pt.dragged)&&to(o[i],n.draggable,e,!1)){if(s===t)return o[i];s++}i++}return null}function SE(e,t){for(var n=e.lastElementChild;n&&(n===Pt.ghost||xt(n,"display")==="none"||t&&!sg(n,t));)n=n.previousElementSibling;return n||null}function Qn(e,t){var n=0;if(!e||!e.parentNode)return-1;for(;e=e.previousElementSibling;)e.nodeName.toUpperCase()!=="TEMPLATE"&&e!==Pt.clone&&(!t||sg(e,t))&&n++;return n}function Uk(e){var t=0,n=0,r=Fo();if(e)do{var s=cu(e),i=s.a,o=s.d;t+=e.scrollLeft*i,n+=e.scrollTop*o}while(e!==r&&(e=e.parentNode));return[t,n]}function Zae(e,t){for(var n in e)if(e.hasOwnProperty(n)){for(var r in t)if(t.hasOwnProperty(r)&&t[r]===e[n][r])return Number(n)}return-1}function al(e,t){if(!e||!e.getBoundingClientRect)return Fo();var n=e,r=!1;do if(n.clientWidth<n.scrollWidth||n.clientHeight<n.scrollHeight){var s=xt(n);if(n.clientWidth<n.scrollWidth&&(s.overflowX=="auto"||s.overflowX=="scroll")||n.clientHeight<n.scrollHeight&&(s.overflowY=="auto"||s.overflowY=="scroll")){if(!n.getBoundingClientRect||n===document.body)return Fo();if(r||t)return n;r=!0}}while(n=n.parentNode);return Fo()}function Jae(e,t){if(e&&t)for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n]);return e}function tx(e,t){return Math.round(e.top)===Math.round(t.top)&&Math.round(e.left)===Math.round(t.left)&&Math.round(e.height)===Math.round(t.height)&&Math.round(e.width)===Math.round(t.width)}var xf;function JO(e,t){return function(){if(!xf){var n=arguments,r=this;n.length===1?e.call(r,n[0]):e.apply(r,n),xf=setTimeout(function(){xf=void 0},t)}}}function Qae(){clearTimeout(xf),xf=void 0}function QO(e,t,n){e.scrollLeft+=t,e.scrollTop+=n}function EE(e){var t=window.Polymer,n=window.jQuery||window.Zepto;return t&&t.dom?t.dom(e).cloneNode(!0):n?n(e).clone(!0)[0]:e.cloneNode(!0)}function jk(e,t){xt(e,"position","absolute"),xt(e,"top",t.top),xt(e,"left",t.left),xt(e,"width",t.width),xt(e,"height",t.height)}function nx(e){xt(e,"position",""),xt(e,"top",""),xt(e,"left",""),xt(e,"width",""),xt(e,"height","")}var ls="Sortable"+new Date().getTime();function ele(){var e=[],t;return{captureAnimationState:function(){if(e=[],!!this.options.animation){var r=[].slice.call(this.el.children);r.forEach(function(s){if(!(xt(s,"display")==="none"||s===Pt.ghost)){e.push({target:s,rect:Un(s)});var i=Ho({},e[e.length-1].rect);if(s.thisAnimationDuration){var o=cu(s,!0);o&&(i.top-=o.f,i.left-=o.e)}s.fromRect=i}})}},addAnimationState:function(r){e.push(r)},removeAnimationState:function(r){e.splice(Zae(e,{target:r}),1)},animateAll:function(r){var s=this;if(!this.options.animation){clearTimeout(t),typeof r=="function"&&r();return}var i=!1,o=0;e.forEach(function(a){var l=0,u=a.target,c=u.fromRect,d=Un(u),f=u.prevFromRect,h=u.prevToRect,p=a.rect,m=cu(u,!0);m&&(d.top-=m.f,d.left-=m.e),u.toRect=d,u.thisAnimationDuration&&tx(f,d)&&!tx(c,d)&&(p.top-d.top)/(
vendor: 4,393 bytes, line 81
81p.left-d.left)===(c.top-d.top)/(c.left-d.left)&&(l=nle(p,f,h,s.options)),tx(d,c)||(u.prevFromRect=c,u.prevToRect=d,l||(l=s.options.animation),s.animate(u,p,d,l)),l&&(i=!0,o=Math.max(o,l),clearTimeout(u.animationResetTimer),u.animationResetTimer=setTimeout(function(){u.animationTime=0,u.prevFromRect=null,u.fromRect=null,u.prevToRect=null,u.thisAnimationDuration=null},l),u.thisAnimationDuration=l)}),clearTimeout(t),i?t=setTimeout(function(){typeof r=="function"&&r()},o):typeof r=="function"&&r(),e=[]},animate:function(r,s,i,o){if(o){xt(r,"transition",""),xt(r,"transform","");var a=cu(this.el),l=a&&a.a,u=a&&a.d,c=(s.left-i.left)/(l||1),d=(s.top-i.top)/(u||1);r.animatingX=!!c,r.animatingY=!!d,xt(r,"transform","translate3d("+c+"px,"+d+"px,0)"),this.forRepaintDummy=tle(r),xt(r,"transition","transform "+o+"ms"+(this.options.easing?" "+this.options.easing:"")),xt(r,"transform","translate3d(0,0,0)"),typeof r.animated=="number"&&clearTimeout(r.animated),r.animated=setTimeout(function(){xt(r,"transition",""),xt(r,"transform",""),r.animated=!1,r.animatingX=!1,r.animatingY=!1},o)}}}}function tle(e){return e.offsetWidth}function nle(e,t,n,r){return Math.sqrt(Math.pow(t.top-e.top,2)+Math.pow(t.left-e.left,2))/Math.sqrt(Math.pow(t.top-n.top,2)+Math.pow(t.left-n.left,2))*r.animation}var Xu=[],rx={initializeByDefault:!0},Zh={mount:function(t){for(var n in rx)rx.hasOwnProperty(n)&&!(n in t)&&(t[n]=rx[n]);Xu.forEach(function(r){if(r.pluginName===t.pluginName)throw"Sortable: Cannot mount plugin ".concat(t.pluginName," more than once")}),Xu.push(t)},pluginEvent:function(t,n,r){var s=this;this.eventCanceled=!1,r.cancel=function(){s.eventCanceled=!0};var i=t+"Global";Xu.forEach(function(o){n[o.pluginName]&&(n[o.pluginName][i]&&n[o.pluginName][i](Ho({sortable:n},r)),n.options[o.pluginName]&&n[o.pluginName][t]&&n[o.pluginName][t](Ho({sortable:n},r)))})},initializePlugins:function(t,n,r,s){Xu.forEach(function(a){var l=a.pluginName;if(!(!t.options[l]&&!a.initializeByDefault)){var u=new a(t,n,t.options);u.sortable=t,u.options=t.options,t[l]=u,Ui(r,u.defaults)}});for(var i in t.options)if(t.options.hasOwnProperty(i)){var o=this.modifyOption(t,i,t.options[i]);typeof o<"u"&&(t.options[i]=o)}},getEventProperties:function(t,n){var r={};return Xu.forEach(function(s){typeof s.eventProperties=="function"&&Ui(r,s.eventProperties.call(n[s.pluginName],t))}),r},modifyOption:function(t,n,r){var s;return Xu.forEach(function(i){t[i.pluginName]&&i.optionListeners&&typeof i.optionListeners[n]=="function"&&(s=i.optionListeners[n].call(t[i.pluginName],r))}),s}};function Qd(e){var t=e.sortable,n=e.rootEl,r=e.name,s=e.targetEl,i=e.cloneEl,o=e.toEl,a=e.fromEl,l=e.oldIndex,u=e.newIndex,c=e.oldDraggableIndex,d=e.newDraggableIndex,f=e.originalEvent,h=e.putSortable,p=e.extraEventProperties;if(t=t||n&&n[ls],!!t){var m,v=t.options,x="on"+r.charAt(0).toUpperCase()+r.substr(1);window.CustomEvent&&!Oa&&!Xh?m=new CustomEvent(r,{bubbles:!0,cancelable:!0}):(m=document.createEvent("Event"),m.initEvent(r,!0,!0)),m.to=o||n,m.from=a||n,m.item=s||n,m.clone=i,m.oldIndex=l,m.newIndex=u,m.oldDraggableIndex=c,m.newDraggableIndex=d,m.originalEvent=f,m.pullMode=h?h.lastPutMode:void 0;var g=Ho(Ho({},p),Zh.getEventProperties(r,t));for(var y in g)m[y]=g[y];n&&n.dispatchEvent(m),v[x]&&v[x].call(t,m)}}var rle=["evt"],Os=function(t,n){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},s=r.evt,i=jae(r,rle);Zh.pluginEvent.bind(Pt)(t,n,Ho({dragEl:st,parentEl:Yn,ghostEl:Ut,rootEl:Bn,nextEl:Wl,lastDownEl:Tm,cloneEl:Zn,cloneHidden:sl,dragStarted:ef,putSortable:Fr,activeSortable:Pt.active,originalEvent:s,oldIndex:hc,oldDraggableIndex:bf,newIndex:Qs,newDraggableIndex:tl,hideGhostForTarget:r6,unhideGhostForTarget:s6,cloneNowHidden:function(){sl=!0},cloneNowShown:function(){sl=!1},dispatchSortableEvent:function(a){xs({sortable:n,name:a,originalEvent:s})}},i))};function xs(e){Qd(Ho({putSortable:Fr,cloneEl:Zn,targetEl:st,rootEl:Bn,oldIndex:hc,oldDraggableIndex:bf,newIndex:Qs,newDraggableIndex:tl},e))}var st,Yn,Ut,Bn,Wl,Tm,Zn,sl,hc,Qs,bf,tl,K0,Fr,lc=!1,ig=!1,og=[],Bl,Yi,sx,ix,zk,Hk,ef,Zu,_f,Sf=!1,W0=!1,Cm,ns,ox=[],h2=!1,ag=[],jy=typeof document<"u",q0=YO,Gk=Xh||Oa?"cssFloat":"float",sle=jy&&!Yae&&!YO&&"draggable"in document.createElement("div"),e6=(function(){if(jy){if(Oa)return!1;var e=document.createElement("x");return e.style.cssText="pointer-events:auto",e.style.pointerEvents==="auto"}}
vendor: 23,152 bytes, line 81
81)(),t6=function(t,n){var r=xt(t),s=parseInt(r.width)-parseInt(r.paddingLeft)-parseInt(r.paddingRight)-parseInt(r.borderLeftWidth)-parseInt(r.borderRightWidth),i=Yc(t,0,n),o=Yc(t,1,n),a=i&&xt(i),l=o&&xt(o),u=a&&parseInt(a.marginLeft)+parseInt(a.marginRight)+Un(i).width,c=l&&parseInt(l.marginLeft)+parseInt(l.marginRight)+Un(o).width;if(r.display==="flex")return r.flexDirection==="column"||r.flexDirection==="column-reverse"?"vertical":"horizontal";if(r.display==="grid")return r.gridTemplateColumns.split(" ").length<=1?"vertical":"horizontal";if(i&&a.float&&a.float!=="none"){var d=a.float==="left"?"left":"right";return o&&(l.clear==="both"||l.clear===d)?"vertical":"horizontal"}return i&&(a.display==="block"||a.display==="flex"||a.display==="table"||a.display==="grid"||u>=s&&r[Gk]==="none"||o&&r[Gk]==="none"&&u+c>s)?"vertical":"horizontal"},ile=function(t,n,r){var s=r?t.left:t.top,i=r?t.right:t.bottom,o=r?t.width:t.height,a=r?n.left:n.top,l=r?n.right:n.bottom,u=r?n.width:n.height;return s===a||i===l||s+o/2===a+u/2},ole=function(t,n){var r;return og.some(function(s){var i=s[ls].options.emptyInsertThreshold;if(!(!i||SE(s))){var o=Un(s),a=t>=o.left-i&&t<=o.right+i,l=n>=o.top-i&&n<=o.bottom+i;if(a&&l)return r=s}}),r},n6=function(t){function n(i,o){return function(a,l,u,c){var d=a.options.group.name&&l.options.group.name&&a.options.group.name===l.options.group.name;if(i==null&&(o||d))return!0;if(i==null||i===!1)return!1;if(o&&i==="clone")return i;if(typeof i=="function")return n(i(a,l,u,c),o)(a,l,u,c);var f=(o?a:l).options.group.name;return i===!0||typeof i=="string"&&i===f||i.join&&i.indexOf(f)>-1}}var r={},s=t.group;(!s||wm(s)!="object")&&(s={name:s}),r.name=s.name,r.checkPull=n(s.pull,!0),r.checkPut=n(s.put),r.revertClone=s.revertClone,t.group=r},r6=function(){!e6&&Ut&&xt(Ut,"display","none")},s6=function(){!e6&&Ut&&xt(Ut,"display","")};jy&&document.addEventListener("click",function(e){if(ig)return e.preventDefault(),e.stopPropagation&&e.stopPropagation(),e.stopImmediatePropagation&&e.stopImmediatePropagation(),ig=!1,!1},!0);var Nl=function(t){if(st){t=t.touches?t.touches[0]:t;var n=ole(t.clientX,t.clientY);if(n){var r={};for(var s in t)t.hasOwnProperty(s)&&(r[s]=t[s]);r.target=r.rootEl=n,r.preventDefault=void 0,r.stopPropagation=void 0,n[ls]._onDragOver(r)}}},ale=function(t){st&&st.parentNode[ls]._isOutsideThisEl(t.target)};function Pt(e,t){if(!(e&&e.nodeType&&e.nodeType===1))throw"Sortable: `el` must be an HTMLElement, not ".concat({}.toString.call(e));this.el=e,this.options=t=Ui({},t),e[ls]=this;var n={group:null,sort:!0,disabled:!1,store:null,handle:null,draggable:/^[uo]l$/i.test(e.nodeName)?">li":">*",swapThreshold:1,invertSwap:!1,invertedSwapThreshold:null,removeCloneOnHide:!0,direction:function(){return t6(e,this.options)},ghostClass:"sortable-ghost",chosenClass:"sortable-chosen",dragClass:"sortable-drag",ignore:"a, img",filter:null,preventOnFilter:!0,animation:0,easing:null,setData:function(o,a){o.setData("Text",a.textContent)},dropBubble:!1,dragoverBubble:!1,dataIdAttr:"data-id",delay:0,delayOnTouchOnly:!1,touchStartThreshold:(Number.parseInt?Number:window).parseInt(window.devicePixelRatio,10)||1,forceFallback:!1,fallbackClass:"sortable-fallback",fallbackOnBody:!1,fallbackTolerance:0,fallbackOffset:{x:0,y:0},supportPointer:Pt.supportPointer!==!1&&"PointerEvent"in window&&!yf,emptyInsertThreshold:5};Zh.initializePlugins(this,e,n);for(var r in n)!(r in t)&&(t[r]=n[r]);n6(t);for(var s in this)s.charAt(0)==="_"&&typeof this[s]=="function"&&(this[s]=this[s].bind(this));this.nativeDraggable=t.forceFallback?!1:sle,this.nativeDraggable&&(this.options.touchStartThreshold=1),t.supportPointer?tn(e,"pointerdown",this._onTapStart):(tn(e,"mousedown",this._onTapStart),tn(e,"touchstart",this._onTapStart)),this.nativeDraggable&&(tn(e,"dragover",this),tn(e,"dragenter",this)),og.push(this.el),t.store&&t.store.get&&this.sort(t.store.get(this)||[]),Ui(this,ele())}Pt.prototype={constructor:Pt,_isOutsideThisEl:function(t){!this.el.contains(t)&&t!==this.el&&(Zu=null)},_getDirection:function(t,n){return typeof this.options.direction=="function"?this.options.direction.call(this,t,n,st):this.options.direction},_onTapStart:function(t){if(t.cancelable){var n=this,r=this.el,s=this.options,i=s.preventOnFilter,o=t.type,a=t.touches&&t.touches[0]||t.pointerType&&t.pointerType==="touch"&&t,l=(a||t).target,u=t.target.shadowRoot&&(t.path&&t.path[0]||t.composedPath&&t.composedPath()[0])||l,c=s.filter;if(mle(r),!st&&!(/mousedown|pointerdown/.test(o)&&t.button!==0||s.disabled)&&!u.isContentEditable&&!(!this.nativeDraggable&&yf&&l&&l.tagName.toUpperCase()==="SELECT")&&(l=to(l,s.draggable,r,!1),!(l&&l.animated)&&Tm!==l)){if(hc=Qn(l),bf=Qn(l,s.draggable),typeof c=="function"){if(c.call(this,t,l,this)){xs({sortable:n,rootEl:u,name:"filter",targetEl:l,toEl:r,fromEl:r}),Os("filter",n,{evt:t}),i&&t.cancelable&&t.preventDefault();return}}else if(c&&(c=c.split(",").some(function(d){if(d=to(u,d.trim(),r,!1),d)return xs({sortable:n,rootEl:d,name:"filter",targetEl:l,fromEl:r,toEl:r}),Os("filter",n,{evt:t}),!0}),c)){i&&t.cancelable&&t.preventDefault();return}s.handle&&!to(u,s.handle,r,!1)||this._prepareDragStart(t,a,l)}}},_prepareDragStart:function(t,n,r){var s=this,i=s.el,o=s.options,a=i.ownerDocument,l;if(r&&!st&&r.parentNode===i){var u=Un(r);if(Bn=i,st=r,Yn=st.parentNode,Wl=st.nextSibling,Tm=r,K0=o.group,Pt.dragged=st,Bl={target:st,clientX:(n||t).clientX,clientY:(n||t).clientY},zk=Bl.clientX-u.left,Hk=Bl.clientY-u.top,this._lastX=(n||t).clientX,this._lastY=(n||t).clientY,st.style["will-change"]="all",l=function(){if(Os("delayEnded",s,{evt:t}),Pt.eventCanceled){s._onDrop();return}s._disableDelayedDragEvents(),!Bk&&s.nativeDraggable&&(st.draggable=!0),s._triggerDragStart(t,n),xs({sortable:s,name:"choose",originalEvent:t}),Gn(st,o.chosenClass,!0)},o.ignore.split(",").forEach(function(c){ZO(st,c.trim(),ax)}),tn(a,"dragover",Nl),tn(a,"mousemove",Nl),tn(a,"touchmove",Nl),tn(a,"mouseup",s._onDrop),tn(a,"touchend",s._onDrop),tn(a,"touchcancel",s._onDrop),Bk&&this.nativeDraggable&&(this.options.touchStartThreshold=4,st.draggable=!0),Os("delayStart",this,{evt:t}),o.delay&&(!o.delayOnTouchOnly||n)&&(!this.nativeDraggable||!(Xh||Oa))){if(Pt.eventCanceled){this._onDrop();return}tn(a,"mouseup",s._disableDelayedDrag),tn(a,"touchend",s._disableDelayedDrag),tn(a,"touchcancel",s._disableDelayedDrag),tn(a,"mousemove",s._delayedDragTouchMoveHandler),tn(a,"touchmove",s._delayedDragTouchMoveHandler),o.supportPointer&&tn(a,"pointermove",s._delayedDragTouchMoveHandler),s._dragStartTimer=setTimeout(l,o.delay)}else l()}},_delayedDragTouchMoveHandler:function(t){var n=t.touches?t.touches[0]:t;Math.max(Math.abs(n.clientX-this._lastX),Math.abs(n.clientY-this._lastY))>=Math.floor(this.options.touchStartThreshold/(this.nativeDraggable&&window.devicePixelRatio||1))&&this._disableDelayedDrag()},_disableDelayedDrag:function(){st&&ax(st),clearTimeout(this._dragStartTimer),this._disableDelayedDragEvents()},_disableDelayedDragEvents:function(){var t=this.el.ownerDocument;qt(t,"mouseup",this._disableDelayedDrag),qt(t,"touchend",this._disableDelayedDrag),qt(t,"touchcancel",this._disableDelayedDrag),qt(t,"mousemove",this._delayedDragTouchMoveHandler),qt(t,"touchmove",this._delayedDragTouchMoveHandler),qt(t,"pointermove",this._delayedDragTouchMoveHandler)},_triggerDragStart:function(t,n){n=n||t.pointerType=="touch"&&t,!this.nativeDraggable||n?this.options.supportPointer?tn(document,"pointermove",this._onTouchMove):n?tn(document,"touchmove",this._onTouchMove):tn(document,"mousemove",this._onTouchMove):(tn(st,"dragend",this),tn(Bn,"dragstart",this._onDragStart));try{document.selection?Am(function(){document.selection.empty()}):window.getSelection().removeAllRanges()}catch{}},_dragStarted:function(t,n){if(lc=!1,Bn&&st){Os("dragStarted",this,{evt:n}),this.nativeDraggable&&tn(document,"dragover",ale);var r=this.options;!t&&Gn(st,r.dragClass,!1),Gn(st,r.ghostClass,!0),Pt.active=this,t&&this._appendGhost(),xs({sortable:this,name:"start",originalEvent:n})}else this._nulling()},_emulateDragOver:function(){if(Yi){this._lastX=Yi.clientX,this._lastY=Yi.clientY,r6();for(var t=document.elementFromPoint(Yi.clientX,Yi.clientY),n=t;t&&t.shadowRoot&&(t=t.shadowRoot.elementFromPoint(Yi.clientX,Yi.clientY),t!==n);)n=t;if(st.parentNode[ls]._isOutsideThisEl(t),n)do{if(n[ls]){var r=void 0;if(r=n[ls]._onDragOver({clientX:Yi.clientX,clientY:Yi.clientY,target:t,rootEl:n}),r&&!this.options.dragoverBubble)break}t=n}while(n=n.parentNode);s6()}},_onTouchMove:function(t){if(Bl){var n=this.options,r=n.fallbackTolerance,s=n.fallbackOffset,i=t.touches?t.touches[0]:t,o=Ut&&cu(Ut,!0),a=Ut&&o&&o.a,l=Ut&&o&&o.d,u=q0&&ns&&Uk(ns),c=(i.clientX-Bl.clientX+s.x)/(a||1)+(u?u[0]-ox[0]:0)/(a||1),d=(i.clientY-Bl.clientY+s.y)/(l||1)+(u?u[1]-ox[1]:0)/(l||1);if(!Pt.active&&!lc){if(r&&Math.max(Math.abs(i.clientX-this._lastX),Math.abs(i.clientY-this._lastY))<r)return;this._onDragStart(t,!0)}if(Ut){o?(o.e+=c-(sx||0),o.f+=d-(ix||0)):o={a:1,b:0,c:0,d:1,e:c,f:d};var f="matrix(".concat(o.a,",").concat(o.b,",").concat(o.c,",").concat(o.d,",").concat(o.e,",").concat(o.f,")");xt(Ut,"webkitTransform",f),xt(Ut,"mozTransform",f),xt(Ut,"msTransform",f),xt(Ut,"transform",f),sx=c,ix=d,Yi=i}t.cancelable&&t.preventDefault()}},_appendGhost:function(){if(!Ut){var t=this.options.fallbackOnBody?document.body:Bn,n=Un(st,!0,q0,!0,t),r=this.options;if(q0){for(ns=t;xt(ns,"position")==="static"&&xt(ns,"transform")==="none"&&ns!==document;)ns=ns.parentNode;ns!==document.body&&ns!==document.documentElement?(ns===document&&(ns=Fo()),n.top+=ns.scrollTop,n.left+=ns.scrollLeft):ns=Fo(),ox=Uk(ns)}Ut=st.cloneNode(!0),Gn(Ut,r.ghostClass,!1),Gn(Ut,r.fallbackClass,!0),Gn(Ut,r.dragClass,!0),xt(Ut,"transition",""),xt(Ut,"transform",""),xt(Ut,"box-sizing","border-box"),xt(Ut,"margin",0),xt(Ut,"top",n.top),xt(Ut,"left",n.left),xt(Ut,"width",n.width),xt(Ut,"height",n.height),xt(Ut,"opacity","0.8"),xt(Ut,"position",q0?"absolute":"fixed"),xt(Ut,"zIndex","100000"),xt(Ut,"pointerEvents","none"),Pt.ghost=Ut,t.appendChild(Ut),xt(Ut,"transform-origin",zk/parseInt(Ut.style.width)*100+"% "+Hk/parseInt(Ut.style.height)*100+"%")}},_onDragStart:function(t,n){var r=this,s=t.dataTransfer,i=r.options;if(Os("dragStart",this,{evt:t}),Pt.eventCanceled){this._onDrop();return}Os("setupClone",this),Pt.eventCanceled||(Zn=EE(st),Zn.draggable=!1,Zn.style["will-change"]="",this._hideClone(),Gn(Zn,this.options.chosenClass,!1),Pt.clone=Zn),r.cloneId=Am(function(){Os("clone",r),!Pt.eventCanceled&&(r.options.removeCloneOnHide||Bn.insertBefore(Zn,st),r._hideClone(),xs({sortable:r,name:"clone"}))}),!n&&Gn(st,i.dragClass,!0),n?(ig=!0,r._loopId=setInterval(r._emulateDragOver,50)):(qt(document,"mouseup",r._onDrop),qt(document,"touchend",r._onDrop),qt(document,"touchcancel",r._onDrop),s&&(s.effectAllowed="move",i.setData&&i.setData.call(r,s,st)),tn(document,"drop",r),xt(st,"transform","translateZ(0)")),lc=!0,r._dragStartId=Am(r._dragStarted.bind(r,n,t)),tn(document,"selectstart",r),ef=!0,yf&&xt(document.body,"user-select","none")},_onDragOver:function(t){var n=this.el,r=t.target,s,i,o,a=this.options,l=a.group,u=Pt.active,c=K0===l,d=a.sort,f=Fr||u,h,p=this,m=!1;if(h2)return;function v(V,H){Os(V,p,Ho({evt:t,isOwner:c,axis:h?"vertical":"horizontal",revert:o,dragRect:s,targetRect:i,canSort:d,fromSortable:f,target:r,completed:g,onMove:function(W,X){return Y0(Bn,n,st,s,W,Un(W),t,X)},changed:y},H))}function x(){v("dragOverAnimationCapture"),p.captureAnimationState(),p!==f&&f.captureAnimationState()}function g(V){return v("dragOverCompleted",{insertion:V}),V&&(c?u._hideClone():u._showClone(p),p!==f&&(Gn(st,Fr?Fr.options.ghostClass:u.options.ghostClass,!1),Gn(st,a.ghostClass,!0)),Fr!==p&&p!==Pt.active?Fr=p:p===Pt.active&&Fr&&(Fr=null),f===p&&(p._ignoreWhileAnimating=r),p.animateAll(function(){v("dragOverAnimationComplete"),p._ignoreWhileAnimating=null}),p!==f&&(f.animateAll(),f._ignoreWhileAnimating=null)),(r===st&&!st.animated||r===n&&!r.animated)&&(Zu=null),!a.dragoverBubble&&!t.rootEl&&r!==document&&(st.parentNode[ls]._isOutsideThisEl(t.target),!V&&Nl(t)),!a.dragoverBubble&&t.stopPropagation&&t.stopPropagation(),m=!0}function y(){Qs=Qn(st),tl=Qn(st,a.draggable),xs({sortable:p,name:"change",toEl:n,newIndex:Qs,newDraggableIndex:tl,originalEvent:t})}if(t.preventDefault!==void 0&&t.cancelable&&t.preventDefault(),r=to(r,a.draggable,n,!0),v("dragOver"),Pt.eventCanceled)return m;if(st.contains(t.target)||r.animated&&r.animatingX&&r.animatingY||p._ignoreWhileAnimating===r)return g(!1);if(ig=!1,u&&!a.disabled&&(c?d||(o=Yn!==Bn):Fr===this||(this.lastPutMode=K0.checkPull(this,u,st,t))&&l.checkPut(this,u,st,t))){if(h=this._getDirection(t,r)==="vertical",s=Un(st),v("dragOverValid"),Pt.eventCanceled)return m;if(o)return Yn=Bn,x(),this._hideClone(),v("revert"),Pt.eventCanceled||(Wl?Bn.insertBefore(st,Wl):Bn.appendChild(st)),g(!0);var _=SE(n,a.draggable);if(!_||dle(t,h,this)&&!_.animated){if(_===st)return g(!1);if(_&&n===t.target&&(r=_),r&&(i=Un(r)),Y0(Bn,n,st,s,r,i,t,!!r)!==!1)return x(),n.appendChild(st),Yn=n,y(),g(!0)}else if(_&&cle(t,h,this)){var E=Yc(n,0,a,!0);if(E===st)return g(!1);if(r=E,i=Un(r),Y0(Bn,n,st,s,r,i,t,!1)!==!1)return x(),n.insertBefore(st,E),Yn=n,y(),g(!0)}else if(r.parentNode===n){i=Un(r);var w=0,T,C=st.parentNode!==n,I=!ile(st.animated&&st.toRect||s,r.animated&&r.toRect||i,h),k=h?"top":"left",$=Vk(r,"top","top")||Vk(st,"top","top"),R=$?$.scrollTop:void 0;Zu!==r&&(T=i[k],Sf=!1,W0=!I&&a.invertSwap||C),w=fle(t,r,i,h,I?1:a.swapThreshold,a.invertedSwapThreshold==null?a.swapThreshold:a.invertedSwapThreshold,W0,Zu===r);var D;if(w!==0){var O=Qn(st);do O-=w,D=Yn.children[O];while(D&&(xt(D,"display")==="none"||D===Ut))}if(w===0||D===r)return g(!1);Zu=r,_f=w;var B=r.nextElementSibling,U=!1;U=w===1;var N=Y0(Bn,n,st,s,r,i,t,U);if(N!==!1)return(N===1||N===-1)&&(U=N===1),h2=!0,setTimeout(ule,30),x(),U&&!B?n.appendChild(st):r.parentNode.insertBefore(st,U?B:r),$&&QO($,0,R-$.scrollTop),Yn=st.parentNode,T!==void 0&&!W0&&(Cm=Math.abs(T-Un(r)[k])),y(),g(!0)}if(n.contains(st))return g(!1)}return!1},_ignoreWhileAnimating:null,_offMoveEvents:function(){qt(document,"mousemove",this._onTouchMove),qt(document,"touchmove",this._onTouchMove),qt(document,"pointermove",this._onTouchMove),qt(document,"dragover",Nl),qt(document,"mousemove",Nl),qt(document,"touchmove",Nl)},_offUpEvents:function(){var t=this.el.ownerDocument;qt(t,"mouseup",this._onDrop),qt(t,"touchend",this._onDrop),qt(t,"pointerup",this._onDrop),qt(t,"touchcancel",this._onDrop),qt(document,"selectstart",this)},_onDrop:function(t){var n=this.el,r=this.options;if(Qs=Qn(st),tl=Qn(st,r.draggable),Os("drop",this,{evt:t}),Yn=st&&st.parentNode,Qs=Qn(st),tl=Qn(st,r.draggable),Pt.eventCanceled){this._nulling();return}lc=!1,W0=!1,Sf=!1,clearInterval(this._loopId),clearTimeout(this._dragStartTimer),p2(this.cloneId),p2(this._dragStartId),this.nativeDraggable&&(qt(document,"drop",this),qt(n,"dragstart",this._onDragStart)),this._offMoveEvents(),this._offUpEvents(),yf&&xt(document.body,"user-select",""),xt(st,"transform",""),t&&(ef&&(t.cancelable&&t.preventDefault(),!r.dropBubble&&t.stopPropagation()),Ut&&Ut.parentNode&&Ut.parentNode.removeChild(Ut),(Bn===Yn||Fr&&Fr.lastPutMode!=="clone")&&Zn&&Zn.parentNode&&Zn.parentNode.removeChild(Zn),st&&(this.nativeDraggable&&qt(st,"dragend",this),ax(st),st.style["will-change"]="",ef&&!lc&&Gn(st,Fr?Fr.options.ghostClass:this.options.ghostClass,!1),Gn(st,this.options.chosenClass,!1),xs({sortable:this,name:"unchoose",toEl:Yn,newIndex:null,newDraggableIndex:null,originalEvent:t}),Bn!==Yn?(Qs>=0&&(xs({rootEl:Yn,name:"add",toEl:Yn,fromEl:Bn,originalEvent:t}),xs({sortable:this,name:"remove",toEl:Yn,originalEvent:t}),xs({rootEl:Yn,name:"sort",toEl:Yn,fromEl:Bn,originalEvent:t}),xs({sortable:this,name:"sort",toEl:Yn,originalEvent:t})),Fr&&Fr.save()):Qs!==hc&&Qs>=0&&(xs({sortable:this,name:"update",toEl:Yn,originalEvent:t}),xs({sortable:this,name:"sort",toEl:Yn,originalEvent:t})),Pt.active&&((Qs==null||Qs===-1)&&(Qs=hc,tl=bf),xs({sortable:this,name:"end",toEl:Yn,originalEvent:t}),this.save()))),this._nulling()},_nulling:function(){Os("nulling",this),Bn=st=Yn=Ut=Wl=Zn=Tm=sl=Bl=Yi=ef=Qs=tl=hc=bf=Zu=_f=Fr=K0=Pt.dragged=Pt.ghost=Pt.clone=Pt.active=null,ag.forEach(function(t){t.checked=!0}),ag.length=sx=ix=0},handleEvent:function(t){switch(t.type){case"drop":case"dragend":this._onDrop(t);break;case"dragenter":case"dragover":st&&(this._onDragOver(t),lle(t));break;case"selectstart":t.preventDefault();break}},toArray:function(){for(var t=[],n,r=this.el.children,s=0,i=r.length,o=this.options;s<i;s++)n=r[s],to(n,o.draggable,this.el,!1)&&t.push(n.getAttribute(o.dataIdAttr)||ple(n));return t},sort:function(t,n){var r={},s=this.el;this.toArray().forEach(function(i,o){var a=s.children[o];to(a,this.options.draggable,s,!1)&&(r[i]=a)},this),n&&this.captureAnimationState(),t.forEach(function(i){r[i]&&(s.removeChild(r[i]),s.appendChild(r[i]))}),n&&this.animateAll()},save:function(){var t=this.options.store;t&&t.set&&t.set(this)},closest:function(t,n){return to(t,n||this.options.draggable,this.el,!1)},option:function(t,n){var r=this.options;if(n===void 0)return r[t];var s=Zh.modifyOption(this,t,n);typeof s<"u"?r[t]=s:r[t]=n,t==="group"&&n6(r)},destroy:function(){Os("destroy",this);var t=this.el;t[ls]=null,qt(t,"mousedown",this._onTapStart),qt(t,"touchstart",this._onTapStart),qt(t,"pointerdown",this._onTapStart),this.nativeDraggable&&(qt(t,"dragover",this),qt(t,"dragenter",this)),Array.prototype.forEach.call(t.querySelectorAll("[draggable]"),function(n){n.removeAttribute("draggable")}),this._onDrop(),this._disableDelayedDragEvents(),og.splice(og.indexOf(this.el),1),this.el=t=null},_hideClone:function(){if(!sl){if(Os("hideClone",this),Pt.eventCanceled)return;xt(Zn,"display","none"),this.options.removeCloneOnHide&&Zn.parentNode&&Zn.parentNode.removeChild(Zn),sl=!0}},_showClone:function(t){if(t.lastPutMode!=="clone"){this._hideClone();return}if(sl){if(Os("showClone",this),Pt.eventCanceled)return;st.parentNode==Bn&&!this.options.group.revertClone?Bn.insertBefore(Zn,st):Wl?Bn.insertBefore(Zn,Wl):Bn.appendChild(Zn),this.options.group.revertClone&&this.animate(st,Zn),xt(Zn,"display",""),sl=!1}}};function lle(e){e.dataTransfer&&(e.dataTransfer.dropEffect="move"),e.cancelable&&e.preventDefault()}function Y0(e,t,n,r,s,i,o,a){var l,u=e[ls],c=u.options.onMove,d;return window.CustomEvent&&!Oa&&!Xh?l=new CustomEvent("move",{bubbles:!0,cancelable:!0}):(l=document.createEvent("Event"),l.initEvent("move",!0,!0)),l.to=t,l.from=e,l.dragged=n,l.draggedRect=r,l.related=s||t,l.relatedRect=i||Un(t),l.willInsertAfter=a,l.originalEvent=o,e.dispatchEvent(l),c&&(d=c.call(u,l,o)),d}function ax(e){e.draggable=!1}function ule(){h2=!1}function cle(e,t,n){var r=Un(Yc(n.el,0,n.options,!0)),s=10;return t?e.clientX<r.left-s||e.clientY<r.top&&e.clientX<r.right:e.clientY<r.top-s||e.clientY<r.bottom&&e.clientX<r.left}function dle(e,t,n){var r=Un(SE(n.el,n.options.draggable)),s=10;return t?e.clientX>r.right+s||e.clientX<=r.right&&e.clientY>r.bottom&&e.clientX>=r.left:e.clientX>r.right&&e.clientY>r.top||e.clientX<=r.right&&e.clientY>r.bottom+s}function fle(e,t,n,r,s,i,o,a){var l=r?e.clientY:e.clientX,u=r?n.height:n.width,c=r?n.top:n.left,d=r?n.bottom:n.right,f=!1;if(!o){if(a&&Cm<u*s){if(!Sf&&(_f===1?l>c+u*i/2:l<d-u*i/2)&&(Sf=!0),Sf)f=!0;else if(_f===1?l<c+Cm:l>d-Cm)return-_f}else if(l>c+u*(1-s)/2&&l<d-u*(1-s)/2)return hle(t)}return f=f||o,f&&(l<c+u*i/2||l>d-u*i/2)?l>c+u/2?1:-1:0}function hle(e){return Qn(st)<Qn(e)?1:-1}function ple(e){for(var t=e.tagName+e.className+e.src+e.href+e.textContent,n=t.length,r=0;n--;)r+=t.charCodeAt(n);return r.toString(36)}function mle(e){ag.length=0;for(var t=e.getElementsByTagName("input"),n=t.length;n--;){var r=t[n];r.checked&&ag.push(r)}}function Am(e){return setTimeout(e,0)}function p2(e){return clearTimeout(e)}jy&&tn(document,"touchmove",function(e){(Pt.active||lc)&&e.cancelable&&e.preventDefault()});Pt.utils={on:tn,off:qt,css:xt,find:ZO,is:function(t,n){return!!to(t,n,t,!1)},extend:Jae,throttle:JO,closest:to,toggleClass:Gn,clone:EE,index:Qn,nextTick:Am,cancelNextTick:p2,detectDirection:t6,getChild:Yc};Pt.get=function(e){return e[ls]};Pt.mount=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];t[0].constructor===Array&&(t=t[0]),t.forEach(function(r){if(!r.prototype||!r.prototype.constructor)throw"Sortable: Mounted plugin must be a constructor function, not ".concat({}.toString.call(r));r.utils&&(Pt.utils=Ho(Ho({},Pt.utils),r.utils)),Zh.mount(r)})};Pt.create=function(e,t){return new Pt(e,t)};Pt.version=qae;var hr=[],tf,m2,v2=!1,lx,ux,lg,nf;function vle(){function e(){this.defaults={scroll:!0,forceAutoScrollFallback:!1,scrollSensitivity:30,scrollSpeed:10,bubbleScroll:!0};for(var t in this)t.charAt(0)==="_"&&typeof this[t]=="function"&&(this[t]=this[t].bind(this))}return e.prototype={dragStarted:function(n){var r=n.originalEvent;this.sortable.nativeDraggable?tn(document,"dragover",this._handleAutoScroll):this.options.supportPointer?tn(document,"pointermove",this._handleFallbackAutoScroll):r.touches?tn(document,"touchmove",this._handleFallbackAutoScroll):tn(document,"mousemove",this._handleFallbackAutoScroll)},dragOverCompleted:function(n){var r=n.originalEvent;!this.options.dragOverBubble&&!r.rootEl&&this._handleAutoScroll(r)},drop:function(){this.sortable.nativeDraggable?qt(document,"dragover",this._handleAutoScroll):(qt(document,"pointermove",this._handleFallbackAutoScroll),qt(document,"touchmove",this._handleFallbackAutoScroll),qt(document,"mousemove",this._handleFallbackAutoScroll)),Kk(),km(),Qae()},nulling:function(){lg=m2=tf=v2=nf=lx=ux=null,hr.length=0},_handleFallbackAutoScroll:function(n){this._handleAutoScroll(n,!0)},_handleAutoScroll:function(n,r){var s=this,i=(n.touches?n.touches[0]:n).clientX,o=(n.touches?n.touches[0]:n).clientY,a=document.elementFromPoint(i,o);if(lg=n,r||this.options.forceAutoScrollFallback||Xh||Oa||yf){cx(n,this.options,a,r);var l=al(a,!0);v2&&(!nf||i!==lx||o!==ux)&&(nf&&Kk(),nf=setInterval(function(){var u=al(document.elementFromPoint(i,o),!0);u!==l&&(l=u,km()),cx(n,s.options,u,r)},10),lx=i,ux=o)}else{if(!this.options.bubbleScroll||al(a,!0)===Fo()){km();return}cx(n,this.options,al(a,!1),!1)}}},Ui(e,{pluginName:"scroll",initializeByDefault:!0})}function km(){hr.forEach(function(e){clearInterval(e.pid)}),hr=[]}function Kk(){clearInterval(nf)}var cx=JO(function(e,t,n,r){if(t.scroll){var s=(e.touches?e.touches[0]:e).clientX,i=(e.touches?e.touches[0]:e).clientY,o=t.scrollSensitivity,a=t.scrollSpeed,l=Fo(),u=!1,c;m2!==n&&(m2=n,km(),tf=t.scroll,c=t.scrollFn,tf===!0&&(tf=al(n,!0)));var d=0,f=tf;do{var h=f,p=Un(h),m=p.top,v=p.bottom,x=p.left,g=p.right,y=p.width,_=p.height,E=void 0,w=void 0,T=h.scrollWidth,C=h.scrollHeight,I=xt(h),k=h.scrollLeft,$=h.scrollTop;h===l?(E=y<T&&(I.overflowX==="auto"||I.overflowX==="scroll"||I.overflowX==="visible"),w=_<C&&(I.overflowY==="auto"||I.overflowY==="scroll"||I.overflowY==="visible")):(E=y<T&&(I.overflowX==="auto"||I.overflowX==="scroll"),w=_<C&&(I.overflowY==="auto"||I.overflowY==="scroll"));var R=E&&(Math.abs(g-s)<=o&&k+y<T)-(Math.abs(x-s)<=o&&!!k),D=w&&(Math.abs(v-i)<=o&&$+_<C)-(Math.abs(m-i)<=o&&!!$);
81if(!hr[d])for(var O=0;O<=d;O++)hr[O]||(hr[O]={});(hr[d].vx!=R||hr[d].vy!=D||hr[d].el!==h)&&(hr[d].el=h,hr[d].vx=R,hr[d].vy=D,clearInterval(hr[d].pid),(R!=0||D!=0)&&(u=!0,hr[d].pid=setInterval((function(){r&&this.layer===0&&Pt.active._onTouchMove(lg);var B=hr[this.layer].vy?hr[this.layer].vy*a:0,U=hr[this.layer].vx?hr[this.layer].vx*a:0;typeof c=="function"&&c.call(Pt.dragged.parentNode[ls],U,B,e,lg,hr[this.layer].el)!=="continue"||QO(hr[this.layer].el,U,B)}).bind({layer:d}),24))),d++}while(t.bubbleScroll&&f!==l&&(f=al(f,!1)));v2=u}},30),i6=function(t){var n=t.originalEvent,r=t.putSortable,s=t.dragEl,i=t.activeSortable,o=t.dispatchSortableEvent,a=t.hideGhostForTarget,l=t.unhideGhostForTarget;if(n){var u=r||i;a();var c=n.changedTouches&&n.changedTouches.length?n.changedTouches[0]:n,d=document.elementFromPoint(c.clientX,c.clientY);l(),u&&!u.el.contains(d)&&(o("spill"),this.onSpill({dragEl:s,putSortable:r}))}};function wE(){}wE.prototype={startIndex:null,dragStart:function(t){var n=t.oldDraggableIndex;this.startIndex=n},onSpill:function(t){var n=t.dragEl,r=t.putSortable;this.sortable.captureAnimationState(),r&&r.captureAnimationState();var s=Yc(this.sortable.el,this.startIndex,this.options);s?this.sortable.el.insertBefore(n,s):this.sortable.el.appendChild(n),this.sortable.animateAll(),r&&r.animateAll()},drop:i6};Ui(wE,{pluginName:"revertOnSpill"});function TE(){}TE.prototype={onSpill:function(t){var n=t.dragEl,r=t.putSortable,s=r||this.sortable;s.captureAnimationState(),n.parentNode&&n.parentNode.removeChild(n),s.animateAll()},drop:i6};Ui(TE,{pluginName:"removeOnSpill"});var Ei;function gle(){function e(){this.defaults={swapClass:"sortable-swap-highlight"}}return e.prototype={dragStart:function(n){var r=n.dragEl;Ei=r},dragOverValid:function(n){var r=n.completed,s=n.target,i=n.onMove,o=n.activeSortable,a=n.changed,l=n.cancel;if(o.options.swap){var u=this.sortable.el,c=this.options;if(s&&s!==u){var d=Ei;i(s)!==!1?(Gn(s,c.swapClass,!0),Ei=s):Ei=null,d&&d!==Ei&&Gn(d,c.swapClass,!1)}a(),r(!0),l()}},drop:function(n){var r=n.activeSortable,s=n.putSortable,i=n.dragEl,o=s||this.sortable,a=this.options;Ei&&Gn(Ei,a.swapClass,!1),Ei&&(a.swap||s&&s.options.swap)&&i!==Ei&&(o.captureAnimationState(),o!==r&&r.captureAnimationState(),yle(i,Ei),o.animateAll(),o!==r&&r.animateAll())},nulling:function(){Ei=null}},Ui(e,{pluginName:"swap",eventProperties:function(){return{swapItem:Ei}}})}function yle(e,t){var n=e.parentNode,r=t.parentNode,s,i;!n||!r||n.isEqualNode(t)||r.isEqualNode(e)||(s=Qn(e),i=Qn(t),n.isEqualNode(r)&&s<i&&i++,n.insertBefore(t,n.children[s]),r.insertBefore(e,r.children[i]))}var Bt=[],Zs=[],Vd,Xi,Ud=!1,$s=!1,Ju=!1,Pn,jd,X0;function xle(){function e(t){for(var n in this)n.charAt(0)==="_"&&typeof this[n]=="function"&&(this[n]=this[n].bind(this));t.options.supportPointer?tn(document,"pointerup",this._deselectMultiDrag):(tn(document,"mouseup",this._deselectMultiDrag),tn(document,"touchend",this._deselectMultiDrag)),tn(document,"keydown",this._checkKeyDown),tn(document,"keyup",this._checkKeyUp),this.defaults={selectedClass:"sortable-selected",multiDragKey:null,setData:function(s,i){var o="";Bt.length&&Xi===t?Bt.forEach(function(a,l){o+=(l?", ":"")+a.textContent}):o=i.textContent,s.setData("Text",o)}}}return e.prototype={multiDragKeyDown:!1,isMultiDrag:!1,delayStartGlobal:function(n){var r=n.dragEl;Pn=r},delayEnded:function(){this.isMultiDrag=~Bt.indexOf(Pn)},setupClone:function(n){var r=n.sortable,s=n.cancel;if(this.isMultiDrag){for(var i=0;i<Bt.length;i++)Zs.push(EE(Bt[i])),Zs[i].sortableIndex=Bt[i].sortableIndex,Zs[i].draggable=!1,Zs[i].style["will-change"]="",Gn(Zs[i],this.options.selectedClass,!1),Bt[i]===Pn&&Gn(Zs[i],this.options.chosenClass,!1);r._hideClone(),s()}},clone:function(n){var r=n.sortable,s=n.rootEl,i=n.dispatchSortableEvent,o=n.cancel;this.isMultiDrag&&(this.options.removeCloneOnHide||Bt.length&&Xi===r&&(Wk(!0,s),i("clone"),o()))},showClone:function(n){var r=n.cloneNowShown,s=n.rootEl,i=n.cancel;this.isMultiDrag&&(Wk(!1,s),Zs.forEach(function(o){xt(o,"display","")}),r(),X0=!1,i())},hideClone:function(n){var r=this;n.sortable;var s=n.cloneNowHidden,i=n.cancel;this.isMultiDrag&&(Zs.forEach(function(o){xt(o,"display","none"),r.options.removeCloneOnHide&&o.parentNode&&o.parentNode.removeChild(o)}),s(),X0=!0,i())},dragStartGlobal:function(n){n.sortable,!this.isMultiDrag&&Xi&&Xi.multiDrag._deselectMultiDrag(
vendor: 4,155 bytes, line 81
81),Bt.forEach(function(r){r.sortableIndex=Qn(r)}),Bt=Bt.sort(function(r,s){return r.sortableIndex-s.sortableIndex}),Ju=!0},dragStarted:function(n){var r=this,s=n.sortable;if(this.isMultiDrag){if(this.options.sort&&(s.captureAnimationState(),this.options.animation)){Bt.forEach(function(o){o!==Pn&&xt(o,"position","absolute")});var i=Un(Pn,!1,!0,!0);Bt.forEach(function(o){o!==Pn&&jk(o,i)}),$s=!0,Ud=!0}s.animateAll(function(){$s=!1,Ud=!1,r.options.animation&&Bt.forEach(function(o){nx(o)}),r.options.sort&&Z0()})}},dragOver:function(n){var r=n.target,s=n.completed,i=n.cancel;$s&&~Bt.indexOf(r)&&(s(!1),i())},revert:function(n){var r=n.fromSortable,s=n.rootEl,i=n.sortable,o=n.dragRect;Bt.length>1&&(Bt.forEach(function(a){i.addAnimationState({target:a,rect:$s?Un(a):o}),nx(a),a.fromRect=o,r.removeAnimationState(a)}),$s=!1,ble(!this.options.removeCloneOnHide,s))},dragOverCompleted:function(n){var r=n.sortable,s=n.isOwner,i=n.insertion,o=n.activeSortable,a=n.parentEl,l=n.putSortable,u=this.options;if(i){if(s&&o._hideClone(),Ud=!1,u.animation&&Bt.length>1&&($s||!s&&!o.options.sort&&!l)){var c=Un(Pn,!1,!0,!0);Bt.forEach(function(f){f!==Pn&&(jk(f,c),a.appendChild(f))}),$s=!0}if(!s)if($s||Z0(),Bt.length>1){var d=X0;o._showClone(r),o.options.animation&&!X0&&d&&Zs.forEach(function(f){o.addAnimationState({target:f,rect:jd}),f.fromRect=jd,f.thisAnimationDuration=null})}else o._showClone(r)}},dragOverAnimationCapture:function(n){var r=n.dragRect,s=n.isOwner,i=n.activeSortable;if(Bt.forEach(function(a){a.thisAnimationDuration=null}),i.options.animation&&!s&&i.multiDrag.isMultiDrag){jd=Ui({},r);var o=cu(Pn,!0);jd.top-=o.f,jd.left-=o.e}},dragOverAnimationComplete:function(){$s&&($s=!1,Z0())},drop:function(n){var r=n.originalEvent,s=n.rootEl,i=n.parentEl,o=n.sortable,a=n.dispatchSortableEvent,l=n.oldIndex,u=n.putSortable,c=u||this.sortable;if(r){var d=this.options,f=i.children;if(!Ju)if(d.multiDragKey&&!this.multiDragKeyDown&&this._deselectMultiDrag(),Gn(Pn,d.selectedClass,!~Bt.indexOf(Pn)),~Bt.indexOf(Pn))Bt.splice(Bt.indexOf(Pn),1),Vd=null,Qd({sortable:o,rootEl:s,name:"deselect",targetEl:Pn});else{if(Bt.push(Pn),Qd({sortable:o,rootEl:s,name:"select",targetEl:Pn}),r.shiftKey&&Vd&&o.el.contains(Vd)){var h=Qn(Vd),p=Qn(Pn);if(~h&&~p&&h!==p){var m,v;for(p>h?(v=h,m=p):(v=p,m=h+1);v<m;v++)~Bt.indexOf(f[v])||(Gn(f[v],d.selectedClass,!0),Bt.push(f[v]),Qd({sortable:o,rootEl:s,name:"select",targetEl:f[v]}))}}else Vd=Pn;Xi=c}if(Ju&&this.isMultiDrag){if($s=!1,(i[ls].options.sort||i!==s)&&Bt.length>1){var x=Un(Pn),g=Qn(Pn,":not(."+this.options.selectedClass+")");if(!Ud&&d.animation&&(Pn.thisAnimationDuration=null),c.captureAnimationState(),!Ud&&(d.animation&&(Pn.fromRect=x,Bt.forEach(function(_){if(_.thisAnimationDuration=null,_!==Pn){var E=$s?Un(_):x;_.fromRect=E,c.addAnimationState({target:_,rect:E})}})),Z0(),Bt.forEach(function(_){f[g]?i.insertBefore(_,f[g]):i.appendChild(_),g++}),l===Qn(Pn))){var y=!1;Bt.forEach(function(_){if(_.sortableIndex!==Qn(_)){y=!0;return}}),y&&a("update")}Bt.forEach(function(_){nx(_)}),c.animateAll()}Xi=c}(s===i||u&&u.lastPutMode!=="clone")&&Zs.forEach(function(_){_.parentNode&&_.parentNode.removeChild(_)})}},nullingGlobal:function(){this.isMultiDrag=Ju=!1,Zs.length=0},destroyGlobal:function(){this._deselectMultiDrag(),qt(document,"pointerup",this._deselectMultiDrag),qt(document,"mouseup",this._deselectMultiDrag),qt(document,"touchend",this._deselectMultiDrag),qt(document,"keydown",this._checkKeyDown),qt(document,"keyup",this._checkKeyUp)},_deselectMultiDrag:function(n){if(!(typeof Ju<"u"&&Ju)&&Xi===this.sortable&&!(n&&to(n.target,this.options.draggable,this.sortable.el,!1))&&!(n&&n.button!==0))for(;Bt.length;){var r=Bt[0];Gn(r,this.options.selectedClass,!1),Bt.shift(),Qd({sortable:this.sortable,rootEl:this.sortable.el,name:"deselect",targetEl:r})}},_checkKeyDown:function(n){n.key===this.options.multiDragKey&&(this.multiDragKeyDown=!0)},_checkKeyUp:function(n){n.key===this.options.multiDragKey&&(this.multiDragKeyDown=!1)}},Ui(e,{pluginName:"multiDrag",utils:{select:function(n){var r=n.parentNode[ls];!r||!r.options.multiDrag||~Bt.indexOf(n)||(Xi&&Xi!==r&&(Xi.multiDrag._deselectMultiDrag(
81),Xi=r),Gn(n,r.options.selectedClass,!0),Bt.push(n))},deselect:function(n){var r=n.parentNode[ls],s=Bt.indexOf(n);!r||!r.options.multiDrag||!~s||(Gn(n,r.options.selectedClass,!1),Bt.splice(s,1))}},eventProperties:function(){var n=this,r=[],s=[];return Bt.forEach(function(i){r.push({multiDragElement:i,index:i.sortableIndex});var o;$s&&i!==Pn?o=-1:$s?o=Qn(i,":not(."+n.options.selectedClass+")"):o=Qn(i),s.push({multiDragElement:i,index:o})}),{items:zae(Bt),clones:[].concat(Zs),oldIndicies:r,newIndicies:s}},optionListeners:{multiDragKey:function(n){return n=n.toLowerCase(),n==="ctrl"?n="Control":n.length>1&&(n=n.charAt(0).toUpperCase()+n.substr(1)),n}}})}function ble(e,t){Bt.forEach(function(n,r){var s=t.children[n.sortableIndex+(e?Number(r):0)];s?t.insertBefore(n,s):t.appendChild(n)})}function Wk(e,t){Zs.forEach(function(n,r){var s=t.children[n.sortableIndex+(e?Number(r):0)];s?t.insertBefore(n,s):t.appendChild(n)})}function Z0(){Bt.forEach(function(e){e!==Pn&&e.parentNode&&e.parentNode.removeChild(e)})}Pt.mount(new vle);Pt.mount(TE,wE);const _le=Object.freeze(Object.defineProperty({__proto__:null,MultiDrag:xle,Sortable:Pt,Swap:gle,default:Pt},Symbol.toStringTag,{value:"Module"})),Sle=Ph(_le);var Ele=gm.exports,qk;function wle(){return qk||(qk=1,(function(e,t){(function(r,s){e.exports=s(Nae(),Sle)})(typeof self<"u"?self:Ele,function(n,r){return(function(s){var i={};function o(a){if(i[a])return i[a].exports;var l=i[a]={i:a,l:!1,exports:{}};return s[a].call(l.exports,l,l.exports,o),l.l=!0,l.exports}return o.m=s,o.c=i,o.d=function(a,l,u){o.o(a,l)||Object.defineProperty(a,l,{enumerable:!0,get:u})},o.r=function(a){typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(a,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(a,"__esModule",{value:!0})},o.t=function(a,l){if(l&1&&(a=o(a)),l&8||l&4&&typeof a=="object"&&a&&a.__esModule)return a;var u=Object.create(null);if(o.r(u),Object.defineProperty(u,"default",{enumerable:!0,value:a}),l&2&&typeof a!="string")for(var c in a)o.d(u,c,(function(d){return a[d]}).bind(null,c));return u},o.n=function(a){var l=a&&a.__esModule?function(){return a.default}:function(){return a};return o.d(l,"a",l),l},o.o=function(a,l){return Object.prototype.hasOwnProperty.call(a,l)},o.p="",o(o.s="fb15")})({"00ee":(function(s,i,o){var a=o("b622"),l=a("toStringTag"),u={};u[l]="z",s.exports=String(u)==="[object z]"}),"0366":(function(s,i,o){var a=o("1c0b");s.exports=function(l,u,c){if(a(l),u===void 0)return l;switch(c){case 0:return function(){return l.call(u)};case 1:return function(d){return l.call(u,d)};case 2:return function(d,f){return l.call(u,d,f)};case 3:return function(d,f,h){return l.call(u,d,f,h)}}return function(){return l.apply(u,arguments)}}}),"057f":(function(s,i,o){var a=o("fc6a"),l=o("241c").f,u={}.toString,c=typeof window=="object"&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],d=function(f){try{return l(f)}catch{return c.slice()}};s.exports.f=function(h){return c&&u.call(h)=="[object Window]"?d(h):l(a(h))}}),"06cf":(function(s,i,o){var a=o("83ab"),l=o("d1e7"),u=o("5c6c"),c=o("fc6a"),d=o("c04e"),f=o("5135"),h=o("0cfb"),p=Object.getOwnPropertyDescriptor;i.f=a?p:function(v,x){if(v=c(v),x=d(x,!0),h)try{return p(v,x)}catch{}if(f(v,x))return u(!l.f.call(v,x),v[x])}}),"0cfb":(function(s,i,o){var a=o("83ab"),l=o("d039"),u=o("cc12");s.exports=!a&&!l(function(){return Object.defineProperty(u("div"),"a",{get:function(){return 7}}).a!=7})}),"13d5":(function(s,i,o){var a=o("23e7"),l=o("d58f").left,u=o("a640"),c=o("ae40"),d=u("reduce"),f=c("reduce",{1:0});a({target:"Array",proto:!0,forced:!d||!f},{reduce:function(p){return l(this,p,arguments.length,arguments.length>1?arguments[1]:void 0)}})}),"14c3":(function(s,i,o){var a=o("c6b6"),l=o("9263");s.exports=function(u,c){var d=u.exec;if(typeof d=="function"){var f=d.call(u,c);if(typeof f!="object")throw TypeError("RegExp exec method returned something other than an Object or null");return f}if(a(u)!=="RegExp")throw TypeError("RegExp#exec called on incompatible receiver");return l.call(u,c)}}),"159b":(function(s,i,o){var a=o("da84"),l=o("fdbc"),u=o("17c2"),c=o("9112");for(var d in l){var f=a[d],h=f&&f.prototype;if(h&&h.forEach!==u)try{c(h,"forEach",u)}catch{h.forEach=u}}}),"17c2":(function(s,i,o){var a=o("b727").forEach,l=o("a640"),u=o("ae40"),c=l("forEach"),d=u("forEach");s.exports=!c||!d?function(h){return a(this,h,arguments.length>1?arguments[1]:void 0)}:[].forEach}),"1be4":(function(s,i,o){var a=o("d066");s.exports=a("document","documentElement")}
vendor: 10,817 bytes, line 81
81),"1c0b":(function(s,i){s.exports=function(o){if(typeof o!="function")throw TypeError(String(o)+" is not a function");return o}}),"1c7e":(function(s,i,o){var a=o("b622"),l=a("iterator"),u=!1;try{var c=0,d={next:function(){return{done:!!c++}},return:function(){u=!0}};d[l]=function(){return this},Array.from(d,function(){throw 2})}catch{}s.exports=function(f,h){if(!h&&!u)return!1;var p=!1;try{var m={};m[l]=function(){return{next:function(){return{done:p=!0}}}},f(m)}catch{}return p}}),"1d80":(function(s,i){s.exports=function(o){if(o==null)throw TypeError("Can't call method on "+o);return o}}),"1dde":(function(s,i,o){var a=o("d039"),l=o("b622"),u=o("2d00"),c=l("species");s.exports=function(d){return u>=51||!a(function(){var f=[],h=f.constructor={};return h[c]=function(){return{foo:1}},f[d](Boolean).foo!==1})}}),"23cb":(function(s,i,o){var a=o("a691"),l=Math.max,u=Math.min;s.exports=function(c,d){var f=a(c);return f<0?l(f+d,0):u(f,d)}}),"23e7":(function(s,i,o){var a=o("da84"),l=o("06cf").f,u=o("9112"),c=o("6eeb"),d=o("ce4e"),f=o("e893"),h=o("94ca");s.exports=function(p,m){var v=p.target,x=p.global,g=p.stat,y,_,E,w,T,C;if(x?_=a:g?_=a[v]||d(v,{}):_=(a[v]||{}).prototype,_)for(E in m){if(T=m[E],p.noTargetGet?(C=l(_,E),w=C&&C.value):w=_[E],y=h(x?E:v+(g?".":"#")+E,p.forced),!y&&w!==void 0){if(typeof T==typeof w)continue;f(T,w)}(p.sham||w&&w.sham)&&u(T,"sham",!0),c(_,E,T,p)}}}),"241c":(function(s,i,o){var a=o("ca84"),l=o("7839"),u=l.concat("length","prototype");i.f=Object.getOwnPropertyNames||function(d){return a(d,u)}}),"25f0":(function(s,i,o){var a=o("6eeb"),l=o("825a"),u=o("d039"),c=o("ad6d"),d="toString",f=RegExp.prototype,h=f[d],p=u(function(){return h.call({source:"a",flags:"b"})!="/a/b"}),m=h.name!=d;(p||m)&&a(RegExp.prototype,d,function(){var x=l(this),g=String(x.source),y=x.flags,_=String(y===void 0&&x instanceof RegExp&&!("flags"in f)?c.call(x):y);return"/"+g+"/"+_},{unsafe:!0})}),"2ca0":(function(s,i,o){var a=o("23e7"),l=o("06cf").f,u=o("50c4"),c=o("5a34"),d=o("1d80"),f=o("ab13"),h=o("c430"),p="".startsWith,m=Math.min,v=f("startsWith"),x=!h&&!v&&!!(function(){var g=l(String.prototype,"startsWith");return g&&!g.writable})();a({target:"String",proto:!0,forced:!x&&!v},{startsWith:function(y){var _=String(d(this));c(y);var E=u(m(arguments.length>1?arguments[1]:void 0,_.length)),w=String(y);return p?p.call(_,w,E):_.slice(E,E+w.length)===w}})}),"2d00":(function(s,i,o){var a=o("da84"),l=o("342f"),u=a.process,c=u&&u.versions,d=c&&c.v8,f,h;d?(f=d.split("."),h=f[0]+f[1]):l&&(f=l.match(/Edge\/(\d+)/),(!f||f[1]>=74)&&(f=l.match(/Chrome\/(\d+)/),f&&(h=f[1]))),s.exports=h&&+h}),"342f":(function(s,i,o){var a=o("d066");s.exports=a("navigator","userAgent")||""}),"35a1":(function(s,i,o){var a=o("f5df"),l=o("3f8c"),u=o("b622"),c=u("iterator");s.exports=function(d){if(d!=null)return d[c]||d["@@iterator"]||l[a(d)]}}),"37e8":(function(s,i,o){var a=o("83ab"),l=o("9bf2"),u=o("825a"),c=o("df75");s.exports=a?Object.defineProperties:function(f,h){u(f);for(var p=c(h),m=p.length,v=0,x;m>v;)l.f(f,x=p[v++],h[x]);return f}}),"3bbe":(function(s,i,o){var a=o("861d");s.exports=function(l){if(!a(l)&&l!==null)throw TypeError("Can't set "+String(l)+" as a prototype");return l}}),"3ca3":(function(s,i,o){var a=o("6547").charAt,l=o("69f3"),u=o("7dd0"),c="String Iterator",d=l.set,f=l.getterFor(c);u(String,"String",function(h){d(this,{type:c,string:String(h),index:0})},function(){var p=f(this),m=p.string,v=p.index,x;return v>=m.length?{value:void 0,done:!0}:(x=a(m,v),p.index+=x.length,{value:x,done:!1})})}),"3f8c":(function(s,i){s.exports={}}),4160:(function(s,i,o){var a=o("23e7"),l=o("17c2");a({target:"Array",proto:!0,forced:[].forEach!=l},{forEach:l})}),"428f":(function(s,i,o){var a=o("da84");s.exports=a}),"44ad":(function(s,i,o){var a=o("d039"),l=o("c6b6"),u="".split;s.exports=a(function(){return!Object("z").propertyIsEnumerable(0)})?function(c){return l(c)=="String"?u.call(c,""):Object(c)}:Object}),"44d2":(function(s,i,o){var a=o("b622"),l=o("7c73"),u=o("9bf2"),c=a("unscopables"),d=Array.prototype;d[c]==null&&u.f(d,c,{configurable:!0,value:l(null)}),s.exports=function(f){d[c][f]=!0}}),"44e7":(function(s,i,o){var a=o("861d"),l=o("c6b6"),u=o("b622"),c=u("match");s.exports=function(d){var f;return a(d)&&((f=d[c])!==void 0?!!f:l(d)=="RegExp")}}),4930:(function(s,i,o){var a=o("d039");s.exports=!!Object.getOwnPropertySymbols&&!a(function(){return!String(Symbol())})}),"4d64":(function(s,i,o){var a=o("fc6a"),l=o("50c4"),u=o("23cb"),c=function(d){return function(f,h,p){var m=a(f),v=l(m.length),x=u(p,v),g;if(d&&h!=h){for(;v>x;)if(g=m[x++],g!=g)return!0}else for(;v>x;x++)if((d||x in m)&&m[x]===h)return d||x||0;return!d&&-1}};s.exports={includes:c(!0),indexOf:c(!1)}}),"4de4":(function(s,i,o){var a=o("23e7"),l=o("b727").filter,u=o("1dde"),c=o("ae40"),d=u("filter"),f=c("filter");a({target:"Array",proto:!0,forced:!d||!f},{filter:function(p){return l(this,p,arguments.length>1?arguments[1]:void 0)}})}),"4df4":(function(s,i,o){var a=o("0366"),l=o("7b0b"),u=o("9bdd"),c=o("e95a"),d=o("50c4"),f=o("8418"),h=o("35a1");s.exports=function(m){var v=l(m),x=typeof this=="function"?this:Array,g=arguments.length,y=g>1?arguments[1]:void 0,_=y!==void 0,E=h(v),w=0,T,C,I,k,$,R;if(_&&(y=a(y,g>2?arguments[2]:void 0,2)),E!=null&&!(x==Array&&c(E)))for(k=E.call(v),$=k.next,C=new x;!(I=$.call(k)).done;w++)R=_?u(k,y,[I.value,w],!0):I.value,f(C,w,R);else for(T=d(v.length),C=new x(T);T>w;w++)R=_?y(v[w],w):v[w],f(C,w,R);return C.length=w,C}}),"4fad":(function(s,i,o){var a=o("23e7"),l=o("6f53").entries;a({target:"Object",stat:!0},{entries:function(c){return l(c)}})}),"50c4":(function(s,i,o){var a=o("a691"),l=Math.min;s.exports=function(u){return u>0?l(a(u),9007199254740991):0}}),5135:(function(s,i){var o={}.hasOwnProperty;s.exports=function(a,l){return o.call(a,l)}}),5319:(function(s,i,o){var a=o("d784"),l=o("825a"),u=o("7b0b"),c=o("50c4"),d=o("a691"),f=o("1d80"),h=o("8aa5"),p=o("14c3"),m=Math.max,v=Math.min,x=Math.floor,g=/\$([$&'`]|\d\d?|<[^>]*>)/g,y=/\$([$&'`]|\d\d?)/g,_=function(E){return E===void 0?E:String(E)};a("replace",2,function(E,w,T,C){var I=C.REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE,k=C.REPLACE_KEEPS_$0,$=I?"$":"$0";return[function(O,B){var U=f(this),N=O?.[E];return N!==void 0?N.call(O,U,B):w.call(String(U),O,B)},function(D,O){if(!I&&k||typeof O=="string"&&O.indexOf($)===-1){var B=T(w,D,this,O);if(B.done)return B.value}var U=l(D),N=String(this),V=typeof O=="function";V||(O=String(O));var H=U.global;if(H){var re=U.unicode;U.lastIndex=0}for(var W=[];;){var X=p(U,N);if(X===null||(W.push(X),!H))break;var Q=String(X[0]);Q===""&&(U.lastIndex=h(N,c(U.lastIndex),re))}for(var le="",ve=0,oe=0;oe<W.length;oe++){X=W[oe];for(var K=String(X[0]),ee=m(v(d(X.index),N.length),0),ae=[],ue=1;ue<X.length;ue++)ae.push(_(X[ue]));var Ee=X.groups;if(V){var _e=[K].concat(ae,ee,N);Ee!==void 0&&_e.push(Ee);var J=String(O.apply(void 0,_e))}else J=R(K,N,ee,ae,Ee,O);ee>=ve&&(le+=N.slice(ve,ee)+J,ve=ee+K.length)}return le+N.slice(ve)}];function R(D,O,B,U,N,V){var H=B+D.length,re=U.length,W=y;return N!==void 0&&(N=u(N),W=g),w.call(V,W,function(X,Q){var le;switch(Q.charAt(0)){case"$":return"$";case"&":return D;case"`":return O.slice(0,B);case"'":return O.slice(H);case"<":le=N[Q.slice(1,-1)];break;default:var ve=+Q;if(ve===0)return X;if(ve>re){var oe=x(ve/10);return oe===0?X:oe<=re?U[oe-1]===void 0?Q.charAt(1):U[oe-1]+Q.charAt(1):X}le=U[ve-1]}return le===void 0?"":le})}})}),5692:(function(s,i,o){var a=o("c430"),l=o("c6cd");(s.exports=function(u,c){return l[u]||(l[u]=c!==void 0?c:{})})("versions",[]).push({version:"3.6.5",mode:a?"pure":"global",copyright:"© 2020 Denis Pushkarev (zloirock.ru)"})}),"56ef":(function(s,i,o){var a=o("d066"),l=o("241c"),u=o("7418"),c=o("825a");s.exports=a("Reflect","ownKeys")||function(f){var h=l.f(c(f)),p=u.f;return p?h.concat(p(f)):h}}),"5a34":(function(s,i,o){var a=o("44e7");s.exports=function(l){if(a(l))throw TypeError("The method doesn't accept regular expressions");return l}}),"5c6c":(function(s,i){s.exports=function(o,a){return{enumerable:!(o&1),configurable:!(o&2),writable:!(o&4),value:a}}}),"5db7":(function(s,i,o){var a=o("23e7"),l=o("a2bf"),u=o("7b0b"),c=o("50c4"),d=o("1c0b"),f=o("65f0");a({target:"Array",proto:!0},{flatMap:function(p){var m=u(this),v=c(m.length),x;return d(p),x=f(m,0),x.length=l(x,m,m,v,0,1,p,arguments.length>1?arguments[1]:void 0),x}})}),6547:(function(s,i,o){var a=o("a691"),l=o("1d80"),u=function(c){return function(d,f){var h=String(l(d)),p=a(f),m=h.length,v,x;return p<0||p>=m?c?"":void 0:(v=h.charCodeAt(p),v<55296||v>56319||p+1===m||(x=h.charCodeAt(p+1))<56320||x>57343?c?h.charAt(p):v:c?h.slice(p,p+2):(v-55296<<10)+(x-56320)+65536)}};s.exports={codeAt:u(!1),charAt:u(!0)}}),"65f0":(function(s,i,o){var a=o("861d"),l=o("e8b5"),u=o("b622"),c=u("species");s.exports=function(d,f){var h;return l(d)&&(h=d.constructor,typeof h=="function"&&(h===Array||l(h.prototype))?h=void 0:a(h)&&(h=h[c],h===null&&(h=void 0))),new(h===void 0?Array:h)(f===0?0:f)}}),"69f3":(function(s,i,o){var a=o("7f9a"),l=o("da84"),u=o("861d"),c=o("9112"),d=o("5135"),f=o("f772"),h=o("d012"),p=l.WeakMap,m,v,x,g=function(I){return x(I)?v(I):m(I,{})},y=function(I){return function(k){var $;if(!u(k)||($=v(k)).type!==I)throw TypeError("Incompatible receiver, "+I+" required");return $}};if(a){var _=new p,E=_.get,w=_.has,T=_.set;m=function(I,k){return T.call(_,I,k),k},v=function(I){return E.call(_,I)||{}},x=function(I){return w.call(_,I)}}else{var C=f("state");h[C]=!0,m=function(I,k){return c(I,C,k),k},v=function(I){return d(I,C)?I[C]:{}},x=function(I){return d(I,C)}}s.exports={set:m,get:v,has:x,enforce:g,getterFor:y}}),"6eeb":(function(s,i,o){var a=o("da84"),l=o("9112"),u=o("5135"),c=o("ce4e"),d=o("8925"),f=o("69f3"),h=f.get,p=f.enforce,m=String(String).split("String");(s.exports=function(v,x,g,y){var _=y?!!y.unsafe:!1,E=y?!!y.enumerable:!1,w=y?!!y.noTargetGet:!1;if(typeof g=="function"&&(typeof x=="string"&&!u(g,"name")&&l(g,"name",x),p(g).source=m.join(typeof x=="string"?x:"")),v===a){E?v[x]=g:c(x,g);return}else _?!w&&v[x]&&(E=!0):delete v[x];E?v[x]=g:l(v,x,g)})(Function.prototype,"toString",function(){return typeof this=="function"&&h(this).source||d(this)})}),"6f53":(function(s,i,o){var a=o("83ab"),l=o("df75"),u=o("fc6a"),c=o("d1e7").f,d=function(f){return function(h){for(var p=u(h),m=l(p),v=m.length,x=0,g=[],y;v>x;)y=m[x++],(!a||c.call(p,y))&&g.push(f?[y,p[y]]:p[y]);return g}};s.exports={entries:d(!0),values:d(!1)}}),"73d9":(function(s,i,o){var a=o("44d2");a("flatMap")}),7418:(function(s,i){i.f=Object.getOwnPropertySymbols}),"746f":(function(s,i,o){var a=o("428f"),l=o("5135"),u=o("e538"),c=o("9bf2").f;s.exports=function(d){var f=a.Symbol||(a.Symbol={});l(f,d)||c(f,d,{value:u.f(d)})}}),7839:(function(s,i){s.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleStr
81ing","toString","valueOf"]}),"7b0b":(function(s,i,o){var a=o("1d80");s.exports=function(l){return Object(a(l))}}),"7c73":(function(s,i,o){var a=o("825a"),l=o("37e8"),u=o("7839"),c=o("d012"),d=o("1be4"),f=o("cc12"),h=o("f772"),p=">",m="<",v="prototype",x="script",g=h("IE_PROTO"),y=function(){},_=function(I){return m+x+p+I+m+"/"+x+p},E=function(I){I.write(_("")),I.close();var k=I.parentWindow.Object;return I=null,k},w=function(){var I=f("iframe"),k="java"+x+":",$;return I.style.display="none",d.appendChild(I),I.src=String(k),$=I.contentWindow.document,$.open(),$.write(_("document.F=Object")),$.close(),$.F},T,C=function(){try{T=document.domain&&new ActiveXObject("htmlfile")}catch{}C=T?E(T):w();for(var I=u.length;I--;)delete C[v][u[I]];return C()};c[g]=!0,s.exports=Object.create||function(k,$){var R;return k!==null?(y[v]=a(k),R=new y,y[v]=null,R[g]=k):R=C(),$===void 0?R:l(R,$)}}),"7dd0":(function(s,i,o){var a=o("23e7"),l=o("9ed3"),u=o("e163"),c=o("d2bb"),d=o("d44e"),f=o("9112"),h=o("6eeb"),p=o("b622"),m=o("c430"),v=o("3f8c"),x=o("ae93"),g=x.IteratorPrototype,y=x.BUGGY_SAFARI_ITERATORS,_=p("iterator"),E="keys",w="values",T="entries",C=function(){return this};s.exports=function(I,k,$,R,D,O,B){l($,k,R);var U=function(oe){if(oe===D&&W)return W;if(!y&&oe in H)return H[oe];switch(oe){case E:return function(){return new $(this,oe)};case w:return function(){return new $(this,oe)};case T:return function(){return new $(this,oe)}}return function(){return new $(this)}},N=k+" Iterator",V=!1,H=I.prototype,re=H[_]||H["@@iterator"]||D&&H[D],W=!y&&re||U(D),X=k=="Array"&&H.entries||re,Q,le,ve;if(X&&(Q=u(X.call(new I)),g!==Object.prototype&&Q.next&&(!m&&u(Q)!==g&&(c?c(Q,g):typeof Q[_]!="function"&&f(Q,_,C)),d(Q,N,!0,!0),m&&(v[N]=C))),D==w&&re&&re.name!==w&&(V=!0,W=function(){return re.call(this)}),(!m||B)&&H[_]!==W&&f(H,_,W),v[k]=W,D)if(le={values:U(w),keys:O?W:U(E),entries:U(T)},B)for(ve in le)(y||V||!(ve in H))&&h(H,ve,le[ve]);else a({target:k,proto:!0,forced:y||V},le);return le}}),"7f9a":(function(s,i,o){var a=o("da84"),l=o("8925"),u=a.WeakMap;s.exports=typeof u=="function"&&/native code/.test(l(u))}),"825a":(function(s,i,o){var a=o("861d");s.exports=function(l){if(!a(l))throw TypeError(String(l)+" is not an object");return l}}),"83ab":(function(s,i,o){var a=o("d039");s.exports=!a(function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!=7})}),8418:(function(s,i,o){var a=o("c04e"),l=o("9bf2"),u=o("5c6c");s.exports=function(c,d,f){var h=a(d);h in c?l.f(c,h,u(0,f)):c[h]=f}}),"861d":(function(s,i){s.exports=function(o){return typeof o=="object"?o!==null:typeof o=="function"}}),8875:(function(s,i,o){var a,l,u;(function(c,d){l=[],a=d,u=typeof a=="function"?a.apply(i,l):a,u!==void 0&&(s.exports=u)})(typeof self<"u"?self:this,function(){function c(){var d=Object.getOwnPropertyDescriptor(document,"currentScript");if(!d&&"currentScript"in document&&document.currentScript||d&&d.get!==c&&document.currentScript)return document.currentScript;try{throw new Error}catch(T){var f=/.*at [^(]*\((.*):(.+):(.+)\)$/ig,h=/@([^@]*):(\d+):(\d+)\s*$/ig,p=f.exec(T.stack)||h.exec(T.stack),m=p&&p[1]||!1,v=p&&p[2]||!1,x=document.location.href.replace(document.location.hash,""),g,y,_,E=document.getElementsByTagName("script");m===x&&(g=document.documentElement.outerHTML,y=new RegExp("(?:[^\\n]+?\\n){0,"+(v-2)+"}[^<]*<script>([\\d\\D]*?)<\\/script>[\\d\\D]*","i"),_=g.replace(y,"$1").trim());for(var w=0;w<E.length;w++)if(E[w].readyState==="interactive"||E[w].src===m||m===x&&E[w].innerHTML&&E[w].innerHTML.trim()===_)return E[w];return null}}return c})}),8925:(function(s,i,o){var a=o("c6cd"),l=Function.toString;typeof a.inspectSource!="function"&&(a.inspectSource=function(u){return l.call(u)}),s.exports=a.inspectSource}),"8aa5":(function(s,i,o){var a=o("6547").charAt;s.exports=function(l,u,c){return u+(c?a(l,u).length:1)}}),"8bbf":(function(s,i){s.exports=n}),"90e3":(function(s,i){var o=0,a=Math.random();s.exports=function(l){return"Symbol("+String(l===void 0?"":l)+")_"+(++o+a).toString(36)}}),9112:(function(s,i,o){var a=o("83ab"),l=o("9bf2"),u=o("5c6c");s.exports=a?function(c,d,f){return l.f(c,d,u(1,f))}:function(c,d,f){return c[d]=f,c}}),9263:(function(s,i,o){var a=o("ad6d"),l=o("9f7f"),u=RegExp.prototype.exec,c=String.prototype.replace,d=u,f=(function(){var v=/a/,x=/b*/g;return u.call(v,"a"),u.call(x,"a"),v.lastIndex!==0||x.lastIndex!==0})(),h=l.UNSUPPORTED_Y||l.BROKEN_CARET,p=/()??/.exec("")[1]!==void 0,m=f||p||h;m&&(d=function(x){var g=this,y,_,E,w,T=h&&g.sticky,C=a.call(g),I=g.source,k=0,$=x;return T&&(C=C.replace("y",""),C.indexOf("g")===-1&&(C+="g"),$=String(x).slice(g.lastIndex),g.lastIndex>0&&(!g.multiline||g.multiline&&x[g.lastIndex-1]!==`
82`)&&(I="(?: "+I+")",$=" "+$,k++),_=new RegExp("^(?:"+I+")",C)),p&&(_=new RegExp("^"+I+"$(?!\\s)",C)),f&&(y=g.lastIndex),E=u.call(T?_:g,$),T?E?(E.input=E.input.slice(k),E[0]=E[0].slice(k),E.index=g.lastIndex,g.lastIndex+=E[0].length):g.lastIndex=0:f&&E&&(g.lastIndex=g.global?E.index+E[0].length:y),p&&E&&E.length>1&&c.call(E[0],_,function(){for(w=1;w<arguments.length-2;w++)arguments[w]===void 0&&(E[w]=void 0)}),E}),s.exports=d}),"94ca":(function(s,i,o){var a=o("d039"),l=/#|\.prototype\./,u=function(p,m){var v=d[c(p)];
vendor: 9,397 bytes, line 82
82return v==h?!0:v==f?!1:typeof m=="function"?a(m):!!m},c=u.normalize=function(p){return String(p).replace(l,".").toLowerCase()},d=u.data={},f=u.NATIVE="N",h=u.POLYFILL="P";s.exports=u}),"99af":(function(s,i,o){var a=o("23e7"),l=o("d039"),u=o("e8b5"),c=o("861d"),d=o("7b0b"),f=o("50c4"),h=o("8418"),p=o("65f0"),m=o("1dde"),v=o("b622"),x=o("2d00"),g=v("isConcatSpreadable"),y=9007199254740991,_="Maximum allowed index exceeded",E=x>=51||!l(function(){var I=[];return I[g]=!1,I.concat()[0]!==I}),w=m("concat"),T=function(I){if(!c(I))return!1;var k=I[g];return k!==void 0?!!k:u(I)},C=!E||!w;a({target:"Array",proto:!0,forced:C},{concat:function(k){var $=d(this),R=p($,0),D=0,O,B,U,N,V;for(O=-1,U=arguments.length;O<U;O++)if(V=O===-1?$:arguments[O],T(V)){if(N=f(V.length),D+N>y)throw TypeError(_);for(B=0;B<N;B++,D++)B in V&&h(R,D,V[B])}else{if(D>=y)throw TypeError(_);h(R,D++,V)}return R.length=D,R}})}),"9bdd":(function(s,i,o){var a=o("825a");s.exports=function(l,u,c,d){try{return d?u(a(c)[0],c[1]):u(c)}catch(h){var f=l.return;throw f!==void 0&&a(f.call(l)),h}}}),"9bf2":(function(s,i,o){var a=o("83ab"),l=o("0cfb"),u=o("825a"),c=o("c04e"),d=Object.defineProperty;i.f=a?d:function(h,p,m){if(u(h),p=c(p,!0),u(m),l)try{return d(h,p,m)}catch{}if("get"in m||"set"in m)throw TypeError("Accessors not supported");return"value"in m&&(h[p]=m.value),h}}),"9ed3":(function(s,i,o){var a=o("ae93").IteratorPrototype,l=o("7c73"),u=o("5c6c"),c=o("d44e"),d=o("3f8c"),f=function(){return this};s.exports=function(h,p,m){var v=p+" Iterator";return h.prototype=l(a,{next:u(1,m)}),c(h,v,!1,!0),d[v]=f,h}}),"9f7f":(function(s,i,o){var a=o("d039");function l(u,c){return RegExp(u,c)}i.UNSUPPORTED_Y=a(function(){var u=l("a","y");return u.lastIndex=2,u.exec("abcd")!=null}),i.BROKEN_CARET=a(function(){var u=l("^r","gy");return u.lastIndex=2,u.exec("str")!=null})}),a2bf:(function(s,i,o){var a=o("e8b5"),l=o("50c4"),u=o("0366"),c=function(d,f,h,p,m,v,x,g){for(var y=m,_=0,E=x?u(x,g,3):!1,w;_<p;){if(_ in h){if(w=E?E(h[_],_,f):h[_],v>0&&a(w))y=c(d,f,w,l(w.length),y,v-1)-1;else{if(y>=9007199254740991)throw TypeError("Exceed the acceptable array length");d[y]=w}y++}_++}return y};s.exports=c}),a352:(function(s,i){s.exports=r}),a434:(function(s,i,o){var a=o("23e7"),l=o("23cb"),u=o("a691"),c=o("50c4"),d=o("7b0b"),f=o("65f0"),h=o("8418"),p=o("1dde"),m=o("ae40"),v=p("splice"),x=m("splice",{ACCESSORS:!0,0:0,1:2}),g=Math.max,y=Math.min,_=9007199254740991,E="Maximum allowed length exceeded";a({target:"Array",proto:!0,forced:!v||!x},{splice:function(T,C){var I=d(this),k=c(I.length),$=l(T,k),R=arguments.length,D,O,B,U,N,V;if(R===0?D=O=0:R===1?(D=0,O=k-$):(D=R-2,O=y(g(u(C),0),k-$)),k+D-O>_)throw TypeError(E);for(B=f(I,O),U=0;U<O;U++)N=$+U,N in I&&h(B,U,I[N]);if(B.length=O,D<O){for(U=$;U<k-O;U++)N=U+O,V=U+D,N in I?I[V]=I[N]:delete I[V];for(U=k;U>k-O+D;U--)delete I[U-1]}else if(D>O)for(U=k-O;U>$;U--)N=U+O-1,V=U+D-1,N in I?I[V]=I[N]:delete I[V];for(U=0;U<D;U++)I[U+$]=arguments[U+2];return I.length=k-O+D,B}})}),a4d3:(function(s,i,o){var a=o("23e7"),l=o("da84"),u=o("d066"),c=o("c430"),d=o("83ab"),f=o("4930"),h=o("fdbf"),p=o("d039"),m=o("5135"),v=o("e8b5"),x=o("861d"),g=o("825a"),y=o("7b0b"),_=o("fc6a"),E=o("c04e"),w=o("5c6c"),T=o("7c73"),C=o("df75"),I=o("241c"),k=o("057f"),$=o("7418"),R=o("06cf"),D=o("9bf2"),O=o("d1e7"),B=o("9112"),U=o("6eeb"),N=o("5692"),V=o("f772"),H=o("d012"),re=o("90e3"),W=o("b622"),X=o("e538"),Q=o("746f"),le=o("d44e"),ve=o("69f3"),oe=o("b727").forEach,K=V("hidden"),ee="Symbol",ae="prototype",ue=W("toPrimitive"),Ee=ve.set,_e=ve.getterFor(ee),J=Object[ae],Y=l.Symbol,fe=u("JSON","stringify"),xe=R.f,ne=D.f,ie=k.f,Le=O.f,we=N("symbols"),Be=N("op-symbols"),Pe=N("string-to-symbol-registry"),qe=N("symbol-to-string-registry"),Me=N("wks"),ze=l.QObject,et=!ze||!ze[ae]||!ze[ae].findChild,pe=d&&p(function(){return T(ne({},"a",{get:function(){return ne(this,"a",{value:7}).a}})).a!=7})?function(ct,Se,Ue){var gt=xe(J,Se);gt&&delete J[Se],ne(ct,Se,Ue),gt&&ct!==J&&ne(J,Se,gt)}:ne,ge=function(ct,Se){var Ue=we[ct]=T(Y[ae]);return Ee(Ue,{type:ee,tag:ct,description:Se}),d||(Ue.description=Se),Ue},he=h?function(ct){return typeof ct=="symbol"}:function(ct){return Object(ct)instanceof Y},ye=function(Se,Ue,gt){Se===J&&ye(Be,Ue,gt),g(Se);var _t=E(Ue,!0);return g(gt),m(we,_t)?(gt.enumerable?(m(Se,K)&&Se[K][_t]&&(Se[K][_t]=!1),gt=T(gt,{enumerable:w(0,!1)})):(m(Se,K)||ne(Se,K,w(1,{})),Se[K][_t]=!0),pe(Se,_t,gt)):ne(Se,_t,gt)},me=function(Se,Ue){g(Se);var gt=_(Ue),_t=C(gt).concat(ot(gt));return oe(_t,function(gn){(!d||Je.call(gt,gn))&&ye(Se,gn,gt[gn])}),Se},Ne=function(Se,Ue){return Ue===void 0?T(Se):me(T(Se),Ue)},Je=function(Se){var Ue=E(Se,!0),gt=Le.call(this,Ue);return this===J&&m(we,Ue)&&!m(Be,Ue)?!1:gt||!m(this,Ue)||!m(we,Ue)||m(this,K)&&this[K][Ue]?gt:!0},Oe=function(Se,Ue){var gt=_(Se),_t=E(Ue,!0);if(!(gt===J&&m(we,_t)&&!m(Be,_t))){var gn=xe(gt,_t);return gn&&m(we,_t)&&!(m(gt,K)&&gt[K][_t])&&(gn.enumerable=!0),gn}},Ye=function(Se){var Ue=ie(_(Se)),gt=[];return oe(Ue,function(_t){!m(we,_t)&&!m(H,_t)&&gt.push(_t)}),gt},ot=function(Se){var Ue=Se===J,gt=ie(Ue?Be:_(Se)),_t=[];return oe(gt,function(gn){m(we,gn)&&(!Ue||m(J,gn))&&_t.push(we[gn])}),_t};if(f||(Y=function(){if(this instanceof Y)throw TypeError("Symbol is not a constructor");var Se=!arguments.length||arguments[0]===void 0?void 0:String(arguments[0]),Ue=re(Se),gt=function(_t){this===J&&gt.call(Be,_t),m(this,K)&&m(this[K],Ue)&&(this[K][Ue]=!1),pe(this,Ue,w(1,_t))};return d&&et&&pe(J,Ue,{configurable:!0,set:gt}),ge(Ue,Se)},U(Y[ae],"toString",function(){return _e(this).tag}),U(Y,"withoutSetter",function(ct){return ge(re(ct),ct)}),O.f=Je,D.f=ye,R.f=Oe,I.f=k.f=Ye,$.f=ot,X.f=function(ct){return ge(W(ct),ct)},d&&(ne(Y[ae],"description",{configurable:!0,get:function(){return _e(this).description}}),c||U(J,"propertyIsEnumerable",Je,{unsafe:!0}))),a({global:!0,wrap:!0,forced:!f,sham:!f},{Symbol:Y}),oe(C(Me),function(ct){Q(ct)}),a({target:ee,stat:!0,forced:!f},{for:function(ct){var Se=String(ct);if(m(Pe,Se))return Pe[Se];var Ue=Y(Se);return Pe[Se]=Ue,qe[Ue]=Se,Ue},keyFor:function(Se){if(!he(Se))throw TypeError(Se+" is not a symbol");if(m(qe,Se))return qe[Se]},useSetter:function(){et=!0},useSimple:function(){et=!1}}),a({target:"Object",stat:!0,forced:!f,sham:!d},{create:Ne,defineProperty:ye,defineProperties:me,getOwnPropertyDescriptor:Oe}),a({target:"Object",stat:!0,forced:!f},{getOwnPropertyNames:Ye,getOwnPropertySymbols:ot}),a({target:"Object",stat:!0,forced:p(function(){$.f(1)})},{getOwnPropertySymbols:function(Se){return $.f(y(Se))}}),fe){var rt=!f||p(function(){var ct=Y();return fe([ct])!="[null]"||fe({a:ct})!="{}"||fe(Object(ct))!="{}"});a({target:"JSON",stat:!0,forced:rt},{stringify:function(Se,Ue,gt){for(var _t=[Se],gn=1,bi;arguments.length>gn;)_t.push(arguments[gn++]);if(bi=Ue,!(!x(Ue)&&Se===void 0||he(Se)))return v(Ue)||(Ue=function(Dl,Wi){if(typeof bi=="function"&&(Wi=bi.call(this,Dl,Wi)),!he(Wi))return Wi}),_t[1]=Ue,fe.apply(null,_t)}})}Y[ae][ue]||B(Y[ae],ue,Y[ae].valueOf),le(Y,ee),H[K]=!0}),a630:(function(s,i,o){var a=o("23e7"),l=o("4df4"),u=o("1c7e"),c=!u(function(d){Array.from(d)});a({target:"Array",stat:!0,forced:c},{from:l})}),a640:(function(s,i,o){var a=o("d039");s.exports=function(l,u){var c=[][l];return!!c&&a(function(){c.call(null,u||function(){throw 1},1)})}}),a691:(function(s,i){var o=Math.ceil,a=Math.floor;s.exports=function(l){return isNaN(l=+l)?0:(l>0?a:o)(l)}}),ab13:(function(s,i,o){var a=o("b622"),l=a("match");s.exports=function(u){var c=/./;try{"/./"[u](c)}catch{try{return c[l]=!1,"/./"[u](c)}catch{}}return!1}}),ac1f:(function(s,i,o){var a=o("23e7"),l=o("9263");a({target:"RegExp",proto:!0,forced:/./.exec!==l},{exec:l})}),ad6d:(function(s,i,o){var a=o("825a");s.exports=function(){var l=a(this),u="";return l.global&&(u+="g"),l.ignoreCase&&(u+="i"),l.multiline&&(u+="m"),l.dotAll&&(u+="s"),l.unicode&&(u+="u"),l.sticky&&(u+="y"),u}}),ae40:(function(s,i,o){var a=o("83ab"),l=o("d039"),u=o("5135"),c=Object.defineProperty,d={},f=function(h){throw h};s.exports=function(h,p){if(u(d,h))return d[h];p||(p={});var m=[][h],v=u(p,"ACCESSORS")?p.ACCESSORS:!1,x=u(p,0)?p[0]:f,g=u(p,1)?p[1]:void 0;return d[h]=!!m&&!l(function(){if(v&&!a)return!0;var y={length:-1};v?c(y,1,{enumerable:!0,get:f}):y[1]=1,m.call(y,x,g)})}}),ae93:(function(s,i,o){var a=o("e163"),l=o("9112"),u=o("5135"),c=o("b622"),d=o("c430"),f=c("iterator"),h=!1,p=function(){return this},m,v,x;[].keys&&(x=[].keys(),"next"in x?(v=a(a(x)),v!==Object.prototype&&(m=v)):h=!0),m==null&&(m={}),!d&&!u(m,f)&&l(m,f,p),s.exports={IteratorPrototype:m,BUGGY_SAFARI_ITERATORS:h}}),b041:(function(s,i,o){var a=o("00ee"),l=o("f5df");s.exports=a?{}.toString:function(){return"[object "+l(this)+"]"}}),b0c0:(function(s,i,o){var a=o("83ab"),l=o("9bf2").f,u=Function.prototype,c=u.toString,d=/^\s*function ([^ (]*)/,f="name";a&&!(f in u)&&l(u,f,{configurable:!0,get:function(){try{return c.call(this).match(d)[1]}catch{return""}}})}),b622:(function(s,i,o){var a=o("da84"),l=o("5692"),u=o("5135"),c=o("90e3"),d=o("4930"),f=o("fdbf"),h=l("wks"),p=a.Symbol,m=f?p:p&&p.withoutSetter||c;s.exports=function(v){return u(h,v)||(d&&u(p,v)?h[v]=p[v]:h[v]=m("Symbol."+v)),h[v]}}),b64b:(function(s,i,o){var a=o("23e7"),l=o("7b0b"),u=o("df75"),c=o("d039"),d=c(function(){u(1)});a({target:"Object",stat:!0,forced:d},{keys:function(h){return u(l(h))}})}),b727:(function(s,i,o){var a=o("0366"),l=o("44ad"),u=o("7b0b"),c=o("50c4"),d=o("65f
820"),f=[].push,h=function(p){var m=p==1,v=p==2,x=p==3,g=p==4,y=p==6,_=p==5||y;return function(E,w,T,C){for(var I=u(E),k=l(I),$=a(w,T,3),R=c(k.length),D=0,O=C||d,B=m?O(E,R):v?O(E,0):void 0,U,N;R>D;D++)if((_||D in k)&&(U=k[D],N=$(U,D,I),p)){if(m)B[D]=N;else if(N)switch(p){case 3:return!0;case 5:return U;case 6:return D;case 2:f.call(B,U)}else if(g)return!1}return y?-1:x||g?g:B}};s.exports={forEach:h(0),map:h(1),filter:h(2),some:h(3),every:h(4),find:h(5),findIndex:h(6)}}),c04e:(function(s,i,o){var a=o("861d");s.exports=function(l,u){if(!a(l))return l;var c,d;if(u&&typeof(c=l.toString)=="function"&&!a(d=c.call(l))||typeof(c=l.valueOf)=="function"&&!a(d=c.call(l))||!u&&typeof(c=l.toString)=="function"&&!a(d=c.call(l)))return d;throw TypeError("Can't convert object to primitive value")}}),c430:(function(s,i){s.exports=!1}),c6b6:(function(s,i){var o={}.toString;s.exports=function(a){return o.call(a).slice(8,-1)}}),c6cd:(function(s,i,o){var a=o("da84"),l=o("ce4e"),u="__core-js_shared__",c=a[u]||l(u,{});s.exports=c}),c740:(function(s,i,o){var a=o("23e7"),l=o("b727").findIndex,u=o("44d2"),c=o("ae40"),d="findIndex",f=!0,h=c(d);d in[]&&Array(1)[d](function(){f=!1}),a({target:"Array",proto:!0,forced:f||!h},{findIndex:function(m){return l(this,m,arguments.length>1?arguments[1]:void 0)}}),u(d)}),c8ba:(function(s,i){var o;o=(function(){return this})();try{o=o||new Function("return this")()}catch{typeof window=="object"&&(o=window)}s.exports=o}),c975:(function(s,i,o){var a=o("23e7"),l=o("4d64").indexOf,u=o("a640"),c=o("ae40"),d=[].indexOf,f=!!d&&1/[1].indexOf(1,-0)<0,h=u("indexOf"),p=c("indexOf",{ACCESSORS:!0,1:0});a({target:"Array",proto:!0,forced:f||!h||!p},{indexOf:function(v){return f?d.apply(this,arguments)||0:l(this,v,arguments.length>1?arguments[1]:void 0)}})}),ca84:(function(s,i,o){var a=o("5135"),l=o("fc6a"),u=o("4d64").indexOf,c=o("d012");s.exports=function(d,f){var h=l(d),p=0,m=[],v;for(v in h)!a(c,v)&&a(h,v)&&m.push(v);for(;f.length>p;)a(h,v=f[p++])&&(~u(m,v)||m.push(v));return m}}),caad:(function(s,i,o){var a=o("23e7"),l=o("4d64").includes,u=o("44d2"),c=o("ae40"),d=c("indexOf",{ACCESSORS:!0,1:0});a({target:"Array",proto:!0,forced:!d},{includes:function(h){return l(this,h,arguments.length>1?arguments[1]:void 0)}}),u("includes")}),cc12:(function(s,i,o){var a=o("da84"),l=o("861d"),u=a.document,c=l(u)&&l(u.createElement);s.exports=function(d){return c?u.createElement(d):{}}}),ce4e:(function(s,i,o){var a=o("da84"),l=o("9112");s.exports=function(u,c){try{l(a,u,c)}catch{a[u]=c}return c}}),d012:(function(s,i){s.exports={}}),d039:(function(s,i){s.exports=function(o){try{return!!o()}catch{return!0}}}),d066:(function(s,i,o){var a=o("428f"),l=o("da84"),u=function(c){return typeof c=="function"?c:void 0};s.exports=function(c,d){return arguments.length<2?u(a[c])||u(l[c]):a[c]&&a[c][d]||l[c]&&l[c][d]}}),d1e7:(function(s,i,o){var a={}.propertyIsEnumerable,l=Object.getOwnPropertyDescriptor,u=l&&!a.call({1:2},1);i.f=u?function(d){var f=l(this,d);return!!f&&f.enumerable}:a}),d28b:(function(s,i,o){var a=o("746f");a("iterator")}),d2bb:(function(s,i,o){var a=o("825a"),l=o("3bbe");
vendor: 5,784 bytes, line 82
82s.exports=Object.setPrototypeOf||("__proto__"in{}?(function(){var u=!1,c={},d;try{d=Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set,d.call(c,[]),u=c instanceof Array}catch{}return function(h,p){return a(h),l(p),u?d.call(h,p):h.__proto__=p,h}})():void 0)}),d3b7:(function(s,i,o){var a=o("00ee"),l=o("6eeb"),u=o("b041");a||l(Object.prototype,"toString",u,{unsafe:!0})}),d44e:(function(s,i,o){var a=o("9bf2").f,l=o("5135"),u=o("b622"),c=u("toStringTag");s.exports=function(d,f,h){d&&!l(d=h?d:d.prototype,c)&&a(d,c,{configurable:!0,value:f})}}),d58f:(function(s,i,o){var a=o("1c0b"),l=o("7b0b"),u=o("44ad"),c=o("50c4"),d=function(f){return function(h,p,m,v){a(p);var x=l(h),g=u(x),y=c(x.length),_=f?y-1:0,E=f?-1:1;if(m<2)for(;;){if(_ in g){v=g[_],_+=E;break}if(_+=E,f?_<0:y<=_)throw TypeError("Reduce of empty array with no initial value")}for(;f?_>=0:y>_;_+=E)_ in g&&(v=p(v,g[_],_,x));return v}};s.exports={left:d(!1),right:d(!0)}}),d784:(function(s,i,o){o("ac1f");var a=o("6eeb"),l=o("d039"),u=o("b622"),c=o("9263"),d=o("9112"),f=u("species"),h=!l(function(){var g=/./;return g.exec=function(){var y=[];return y.groups={a:"7"},y},"".replace(g,"$<a>")!=="7"}),p=(function(){return"a".replace(/./,"$0")==="$0"})(),m=u("replace"),v=(function(){return/./[m]?/./[m]("a","$0")==="":!1})(),x=!l(function(){var g=/(?:)/,y=g.exec;g.exec=function(){return y.apply(this,arguments)};var _="ab".split(g);return _.length!==2||_[0]!=="a"||_[1]!=="b"});s.exports=function(g,y,_,E){var w=u(g),T=!l(function(){var D={};return D[w]=function(){return 7},""[g](D)!=7}),C=T&&!l(function(){var D=!1,O=/a/;return g==="split"&&(O={},O.constructor={},O.constructor[f]=function(){return O},O.flags="",O[w]=/./[w]),O.exec=function(){return D=!0,null},O[w](""),!D});if(!T||!C||g==="replace"&&!(h&&p&&!v)||g==="split"&&!x){var I=/./[w],k=_(w,""[g],function(D,O,B,U,N){return O.exec===c?T&&!N?{done:!0,value:I.call(O,B,U)}:{done:!0,value:D.call(B,O,U)}:{done:!1}},{REPLACE_KEEPS_$0:p,REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE:v}),$=k[0],R=k[1];a(String.prototype,g,$),a(RegExp.prototype,w,y==2?function(D,O){return R.call(D,this,O)}:function(D){return R.call(D,this)})}E&&d(RegExp.prototype[w],"sham",!0)}}),d81d:(function(s,i,o){var a=o("23e7"),l=o("b727").map,u=o("1dde"),c=o("ae40"),d=u("map"),f=c("map");a({target:"Array",proto:!0,forced:!d||!f},{map:function(p){return l(this,p,arguments.length>1?arguments[1]:void 0)}})}),da84:(function(s,i,o){(function(a){var l=function(u){return u&&u.Math==Math&&u};s.exports=l(typeof globalThis=="object"&&globalThis)||l(typeof window=="object"&&window)||l(typeof self=="object"&&self)||l(typeof a=="object"&&a)||Function("return this")()}).call(this,o("c8ba"))}),dbb4:(function(s,i,o){var a=o("23e7"),l=o("83ab"),u=o("56ef"),c=o("fc6a"),d=o("06cf"),f=o("8418");a({target:"Object",stat:!0,sham:!l},{getOwnPropertyDescriptors:function(p){for(var m=c(p),v=d.f,x=u(m),g={},y=0,_,E;x.length>y;)E=v(m,_=x[y++]),E!==void 0&&f(g,_,E);return g}})}),dbf1:(function(s,i,o){(function(a){o.d(i,"a",function(){return u});function l(){return typeof window<"u"?window.console:a.console}var u=l()}).call(this,o("c8ba"))}),ddb0:(function(s,i,o){var a=o("da84"),l=o("fdbc"),u=o("e260"),c=o("9112"),d=o("b622"),f=d("iterator"),h=d("toStringTag"),p=u.values;for(var m in l){var v=a[m],x=v&&v.prototype;if(x){if(x[f]!==p)try{c(x,f,p)}catch{x[f]=p}if(x[h]||c(x,h,m),l[m]){for(var g in u)if(x[g]!==u[g])try{c(x,g,u[g])}catch{x[g]=u[g]}}}}}),df75:(function(s,i,o){var a=o("ca84"),l=o("7839");s.exports=Object.keys||function(c){return a(c,l)}}),e01a:(function(s,i,o){var a=o("23e7"),l=o("83ab"),u=o("da84"),c=o("5135"),d=o("861d"),f=o("9bf2").f,h=o("e893"),p=u.Symbol;if(l&&typeof p=="function"&&(!("description"in p.prototype)||p().description!==void 0)){var m={},v=function(){var w=arguments.length<1||arguments[0]===void 0?void 0:String(arguments[0]),T=this instanceof v?new p(w):w===void 0?p():p(w);return w===""&&(m[T]=!0),T};h(v,p);var x=v.prototype=p.prototype;x.constructor=v;var g=x.toString,y=String(p("test"))=="Symbol(test)",_=/^Symbol\((.*)\)[^)]+$/;f(x,"description",{configurable:!0,get:function(){var w=d(this)?this.valueOf():this,T=g.call(w);if(c(m,w))return"";var C=y?T.slice(7,-1):T.replace(_,"$1");return C===""?void 0:C}}),a({global:!0,forced:!0},{Symbol:v})}}),e163:(function(s,i,o){var a=o("5135"),l=o("7b0b"),u=o("f772"),c=o("e177"),d=u("IE_PROTO"),f=Object.prototype;s.exports=c?Object.getPrototypeOf:function(h){return h=l(h),a(h,d)?h[d]:typeof h.constructor=="function"&&h instanceof h.constructor?h.constructor.prototype:h instanceof Object?f:null}}),e177:(function(s,i,o){var a=o("d039");s.exports=!a(function(){function l(){}return l.prototype.constructor=null,Object.getPrototypeOf(new l)!==l.prototype})}),e260:(function(s,i,o){var a=o("fc6a"),l=o("44d2"),u=o("3f8c"),c=o("69f3"),d=o("7dd0"),f="Array Iterator",h=c.set,p=c.getterFor(f);s.exports=d(Array,"Array",function(m,v){h(this,{type:f,target:a(m),index:0,kind:v})},function(){var m=p(this),v=m.target,x=m.kind,g=m.index++;return!v||g>=v.length?(m.target=void 0,{value:void 0,done:!0}):x=="keys"?{value:g,done:!1}:x=="values"?{value:v[g],done:!1}:{value:[g,v[g]],done:!1}},"values"),u.Arguments=u.Array,l("keys"),l("values"),l("entries")}),e439:(function(s,i,o){var a=o("23e7"),l=o("d039"),u=o("fc6a"),c=o("06cf").f,d=o("83ab"),f=l(function(){c(1)}),h=!d||f;a({target:"Object",stat:!0,forced:h,sham:!d},{getOwnPropertyDescriptor:function(m,v){return c(u(m),v)}})}),e538:(function(s,i,o){var a=o("b622");i.f=a}),e893:(function(s,i,o){var a=o("5135"),l=o("56ef"),u=o("06cf"),c=o("9bf2");s.exports=function(d,f){for(var h=l(f),p=c.f,m=u.f,v=0;v<h.length;v++){var x=h[v];a(d,x)||p(d,x,m(f,x))}}}),e8b5:(function(s,i,o){var a=o("c6b6");s.exports=Array.isArray||function(u){return a(u)=="Array"}}
82),e95a:(function(s,i,o){var a=o("b622"),l=o("3f8c"),u=a("iterator"),c=Array.prototype;s.exports=function(d){return d!==void 0&&(l.Array===d||c[u]===d)}}),f5df:(function(s,i,o){var a=o("00ee"),l=o("c6b6"),u=o("b622"),c=u("toStringTag"),d=l((function(){return arguments})())=="Arguments",f=function(h,p){try{return h[p]}catch{}};s.exports=a?l:function(h){var p,m,v;return h===void 0?"Undefined":h===null?"Null":typeof(m=f(p=Object(h),c))=="string"?m:d?l(p):(v=l(p))=="Object"&&typeof p.callee=="function"?"Arguments":v}}),f772:(function(s,i,o){var a=o("5692"),l=o("90e3"),u=a("keys");s.exports=function(c){return u[c]||(u[c]=l(c))}}),fb15:(function(s,i,o){if(o.r(i),typeof window<"u"){var a=window.document.currentScript;{var l=o("8875");a=l(),"currentScript"in document||Object.defineProperty(document,"currentScript",{get:l})}var u=a&&a.src.match(/(.+\/)[^/]+\.js(\?.*)?$/);u&&(o.p=u[1])}o("99af"),o("4de4"),o("4160"),o("c975"),o("d81d"),o("a434"),o("159b"),o("a4d3"),o("e439"),o("dbb4"),o("b64b");function c(he,ye,me){return ye in he?Object.defineProperty(he,ye,{value:me,enumerable:!0,configurable:!0,writable:!0}):he[ye]=me,he}function d(he,ye){var me=Object.keys(he);if(Object.getOwnPropertySymbols){var Ne=Object.getOwnPropertySymbols(he);ye&&(Ne=Ne.filter(function(Je){return Object.getOwnPropertyDescriptor(he,Je).enumerable})),me.push.apply(me,Ne)}return me}function f(he){for(var ye=1;ye<arguments.length;ye++){var me=arguments[ye]!=null?arguments[ye]:{};ye%2?d(Object(me),!0).forEach(function(Ne){c(he,Ne,me[Ne])}):Object.getOwnPropertyDescriptors?Object.defineProperties(he,Object.getOwnPropertyDescriptors(me)):d(Object(me)).forEach(function(Ne){Object.defineProperty(he,Ne,Object.getOwnPropertyDescriptor(me,Ne))})}return he}function h(he){if(Array.isArray(he))return he}o("e01a"),o("d28b"),o("e260"),o("d3b7"),o("3ca3"),o("ddb0");function p(he,ye){if(!(typeof Symbol>"u"||!(Symbol.iterator in Object(he)))){var me=[],Ne=!0,Je=!1,Oe=void 0;try{for(var Ye=he[Symbol.iterator](),ot;!(Ne=(ot=Ye.next()).done)&&(me.push(ot.value),!(ye&&me.length===ye));Ne=!0);}catch(rt){Je=!0,Oe=rt}finally{try{!Ne&&Ye.return!=null&&Ye.return()}finally{if(Je)throw Oe}}return me}}o("a630"),o("fb6a"),o("b0c0"),o("25f0");function m(he,ye){(ye==null||ye>he.length)&&(ye=he.length);for(var me=0,Ne=new Array(ye);me<ye;me++)Ne[me]=he[me];return Ne}function v(he,ye){if(he){if(typeof he=="string")return m(he,ye);var me=Object.prototype.toString.call(he).slice(8,-1);if(me==="Object"&&he.constructor&&(me=he.constructor.name),me==="Map"||me==="Set")return Array.from(he);if(me==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(me))return m(he,ye)}}function x(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
83In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function g(he,ye){return h(he)||p(he,ye)||v(he,ye)||x()}function y(he){if(Array.isArray(he))return m(he)}function _(he){if(typeof Symbol<"u"&&Symbol.iterator in Object(he))return Array.from(he)}function E(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
84In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function w(he){return y(he)||_(he)||v(he)||E()}var T=o("a352"),C=o.n(T);function I(he){he.parentElement!==null&&he.parentElement.removeChild(he)}function k(he,ye,me){var Ne=me===0?he.children[0]:he.children[me-1].nextSibling;he.insertBefore(ye,Ne)}var $=o("dbf1");o("13d5"),o("4fad"),o("ac1f"),o("5319");function R(he){var ye=Object.create(null);return function(Ne){var Je=ye[Ne];return Je||(ye[Ne]=he(Ne))}}var D=/-(\w)/g,O=R(function(he){return he.replace(D,function(ye,me){return me.toUpperCase()})});o("5db7"),o("73d9");var B=["Start","Add","Remove","Update","End"],U=["Choose","Unchoose","Sort","Filter","Clone"],N=["Move"],V=[N,B,U].flatMap(function(he){return he}).map(function(he){return"on".concat(he)}),H={manage:N,manageAndEmit:B,emit:U};function re(he){return V.indexOf(he)!==-1}o("caad"),o("2ca0");var W=["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","label","legend","li","link","main","map","mark","math","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rb","rp","rt","rtc","ruby","s","samp","script","section","select","slot","small","source","span","strong","style","sub","summary","sup","svg","table","tbody","td","template","textarea","tfoot","th","thead","time","title","tr","track","u","ul","var","video","wbr"];function X(he){return W.includes(he)}function Q(he){return["transition-group","TransitionGroup"].includes(he)}function le(he){return["id","class","role","style"].includes(he)||he.startsWith("data-")||he.startsWith("aria-")||he.startsWith("on")}function ve(he){return he.reduce(function(ye,me){var Ne=g(me,2),Je=Ne[0],Oe=Ne[1];return ye[Je]=Oe,ye},{})}function oe(he){var ye=he.$attrs,me=he.componentData,Ne=me===void 0?{}:me,Je=ve(Object.entries(ye).filter(function(Oe){var Ye=g(Oe,2),ot=Ye[0];return Ye[1],le(ot)}));return f(f({},Je),Ne)}function K(he){var ye=he.$attrs,me=he.callBackBuilder,Ne=ve(ee(ye));Object.entries(me).forEach(function(Oe){var Ye=g(Oe,2),ot=Ye[0],rt=Ye[1];H[ot].forEach(function(ct){Ne["on".concat(ct)]=rt(ct)})});var Je="[data-draggable]".concat(Ne.draggable||"");return f(f({},Ne),{},{draggable:Je})}function ee(he){return Object.entries(he).filter(function(ye){var me=g(ye,2),Ne=me[0];return me[1],!le(Ne)}).map(function(ye){var me=g(ye,2),Ne=me[0],Je=me[1];return[O(Ne),Je]}).filter(function(ye){var me=g(ye,2),Ne=me[0];return me[1],!re(Ne)})}o("c740");function ae(he,ye){if(!(he instanceof ye))throw new TypeError("Cannot call a class as a function")}function ue(he,ye){for(var me=0;me<ye.length;me++){var Ne=ye[me];Ne.enumerable=Ne.enumerable||!1,Ne.configurable=!0,"value"in Ne&&(Ne.writable=!0),Object.defineProperty(he,Ne.key,Ne)}}function Ee(he,ye,me){return ye&&ue(he.prototype,ye),he}var _e=function(ye){var me=ye.el;return me},J=function(ye,me){return ye.__draggable_context=me},Y=function(ye){return ye.__draggable_context},fe=(function(){function he(ye){var me=ye.nodes,Ne=me.header,Je=me.default,Oe=me.footer,Ye=ye.root,ot=ye.realList;ae(this,he),this.defaultNodes=Je,this.children=[].concat(w(Ne),w(Je),w(Oe)),this.externalComponent=Ye.externalComponent,this.rootTransition=Ye.transition,this.tag=Ye.tag,this.realList=ot}return Ee(he,[{key:"render",value:function(me,Ne){var Je=this.tag,Oe=this.children,Ye=this._isRo
84otComponent,ot=Ye?{default:function(){return Oe}}:Oe;return me(Je,Ne,ot)}},{key:"updated",value:function(){var me=this.defaultNodes,Ne=this.realList;me.forEach(function(Je,Oe){J(_e(Je),{element:Ne[Oe],index:Oe})})}},{key:"getUnderlyingVm",value:function(me){return Y(me)}},{key:"getVmIndexFromDomIndex",value:function(me,Ne){var Je=this.defaultNodes,Oe=Je.length,Ye=Ne.children,ot=Ye.item(me);if(ot===null)return Oe;var rt=Y(ot);if(rt)return rt.index;if(Oe===0)return 0;var ct=_e(Je[0]),Se=w(Ye).findIndex(function(Ue){return Ue===ct});return me<Se?0:Oe}},{key:"_isRootComponent",get:function(){return this.externalComponent||this.rootTransition}}]),he})(),xe=o("8bbf");function ne(he,ye){var me=he[ye];return me?me():[]}function ie(he){var ye=he.$slots,me=he.realList,Ne=he.getKey,Je=me||[],Oe=["header","footer"].map(function(Ue){return ne(ye,Ue)}),Ye=g(Oe,2),ot=Ye[0],rt=Ye[1],ct=ye.item;if(!ct)throw new Error("draggable element must have an item slot");var Se=Je.flatMap(function(Ue,gt){return ct({element:Ue,index:gt}).map(function(_t){return _t.key=Ne(Ue),_t.props=f(f({},_t.props||{}),{},{"data-draggable":!0}),_t})});if(Se.length!==Je.length)throw new Error("Item slot must have only one child");return{header:ot,footer:rt,default:Se}}function Le(he){var ye=Q(he),me=!X(he)&&!ye;return{transition:ye,externalComponent:me,tag:me?Object(xe.resolveComponent)(he):ye?xe.TransitionGroup:he}}function we(he){var ye=he.$slots,me=he.tag,Ne=he.realList,Je=he.getKey,Oe=ie({$slots:ye,realList:Ne,getKey:Je}),Ye=Le(me);return new fe({nodes:Oe,root:Ye,realList:Ne})}function Be(he,ye){var me=this;Object(xe.nextTick)(function(){return me.$emit(he.toLowerCase(),ye)})}function Pe(he){var ye=this;return function(me,Ne){if(ye.realList!==null)return ye["onDrag".concat(he)](me,Ne)}}function qe(he){var ye=this,me=Pe.call(this,he);return function(Ne,Je){me.call(ye,Ne,Je),Be.call(ye,he,Ne)}}var Me=null,ze={list:{type:Array,required:!1,default:null},modelValue:{type:Array,required:!1,default:null},itemKey:{type:[String,Function],required:!0},clone:{type:Function,default:function(ye){return ye}},tag:{type:String,default:"div"},move:{type:Function,default:null},componentData:{type:Object,required:!1,default:null}},et=["update:modelValue","change"].concat(w([].concat(w(H.manageAndEmit),w(H.emit)).map(function(he){return he.toLowerCase()}))),pe=Object(xe.defineComponent)({name:"draggable",inheritAttrs:!1,props:ze,emits:et,data:function(){return{error:!1}},render:function(){try{this.error=!1;var ye=this.$slots,me=this.$attrs,Ne=this.tag,Je=this.componentData,Oe=this.realList,Ye=this.getKey,ot=we({$slots:ye,tag:Ne,realList:Oe,getKey:Ye});this.componentStructure=ot;var rt=oe({$attrs:me,componentData:Je});return ot.render(xe.h,rt)}catch(ct){return this.error=!0,Object(xe.h)("pre",{style:{color:"red"}},ct.stack)}},created:function(){this.list!==null&&this.modelValue!==null&&$.a.error("modelValue and list props are mutually exclusive! Please set one or another.")},mounted:function(){var ye=this;if(!this.error){var me=this.$attrs,Ne=this.$el,Je=this.componentStructure;Je.updated();var Oe=K({$attrs:me,callBackBuilder:{manageAndEmit:function(rt){return qe.call(ye,rt)},emit:function(rt){return Be.bind(ye,rt)},manage:function(rt){return Pe.call(ye,rt)}}}),Ye=Ne.nodeType===1?Ne:Ne.parentElement;this._sortable=new C.a(Ye,Oe),this.targetDomElement=Ye,Ye.__draggable_component__=this}},updated:function(){this.componentStructure.updated()},beforeUnmount:function(){this._sortable!==void 0&&this._sortable.destroy()},computed:{realList:function(){var ye=this.list;return ye||this.modelValue},getKey:function(){var ye=this.itemKey;return typeof ye=="function"?ye:function(me){return me[ye]}}},watch:{$attrs:{handler:function(ye){var me=this._sortable;me&&ee(ye).forEach(function(Ne){var Je=g(Ne,2),Oe=Je[0],Ye=Je[1];me.option(Oe,Ye)})},deep:!0}},methods:{getUnderlyingVm:function(ye){return this.componentStructure.getUnderlyingVm(ye)||null},getUnderlyingPotencialDraggableComponent:function(ye){return ye.__draggable_component__},emitChanges:function(ye){var me=this;Object(xe.nextTick)(function(){return me.$emit("change",ye)})},alterList:function(ye){if(this.list){ye(this.list);return}var me=w(this.modelValue);ye(me),this.$emit("update:modelValue",me)}
84,spliceList:function(){var ye=arguments,me=function(Je){return Je.splice.apply(Je,w(ye))};this.alterList(me)},updatePosition:function(ye,me){var Ne=function(Oe){return Oe.splice(me,0,Oe.splice(ye,1)[0])};this.alterList(Ne)},getRelatedContextFromMoveEvent:function(ye){var me=ye.to,Ne=ye.related,Je=this.getUnderlyingPotencialDraggableComponent(me);if(!Je)return{component:Je};var Oe=Je.realList,Ye={list:Oe,component:Je};if(me!==Ne&&Oe){var ot=Je.getUnderlyingVm(Ne)||{};return f(f({},ot),Ye)}return Ye},getVmIndexFromDomIndex:function(ye){return this.componentStructure.getVmIndexFromDomIndex(ye,this.targetDomElement)},onDragStart:function(ye){this.context=this.getUnderlyingVm(ye.item),ye.item._underlying_vm_=this.clone(this.context.element),Me=ye.item},onDragAdd:function(ye){var me=ye.item._underlying_vm_;if(me!==void 0){I(ye.item);var Ne=this.getVmIndexFromDomIndex(ye.newIndex);this.spliceList(Ne,0,me);var Je={element:me,newIndex:Ne};this.emitChanges({added:Je})}},onDragRemove:function(ye){if(k(this.$el,ye.item,ye.oldIndex),ye.pullMode==="clone"){I(ye.clone);return}var me=this.context,Ne=me.index,Je=me.element;this.spliceList(Ne,1);var Oe={element:Je,oldIndex:Ne};this.emitChanges({removed:Oe})},onDragUpdate:function(ye){I(ye.item),k(ye.from,ye.item,ye.oldIndex);var me=this.context.index,Ne=this.getVmIndexFromDomIndex(ye.newIndex);this.updatePosition(me,Ne);var Je={element:this.context.element,oldIndex:me,newIndex:Ne};this.emitChanges({moved:Je})},computeFutureIndex:function(ye,me){if(!ye.element)return 0;var Ne=w(me.to.children).filter(function(ot){return ot.style.display!=="none"}),Je=Ne.indexOf(me.related),Oe=ye.component.getVmIndexFromDomIndex(Je),Ye=Ne.indexOf(Me)!==-1;return Ye||!me.willInsertAfter?Oe:Oe+1},onDragMove:function(ye,me){var Ne=this.move,Je=this.realList;if(!Ne||!Je)return!0;var Oe=this.getRelatedContextFromMoveEvent(ye),Ye=this.computeFutureIndex(Oe,ye),ot=f(f({},this.context),{},{futureIndex:Ye}),rt=f(f({},ye),{},{relatedContext:Oe,draggedContext:ot});return Ne(rt,me)},onDragEnd:function(){Me=null}}}),ge=pe;i.default=ge}),fb6a:(function(s,i,o){var a=o("23e7"),l=o("861d"),u=o("e8b5"),c=o("23cb"),d=o("50c4"),f=o("fc6a"),h=o("8418"),p=o("b622"),m=o("1dde"),v=o("ae40"),x=m("slice"),g=v("slice",{ACCESSORS:!0,0:0,1:2}),y=p("species"),_=[].slice,E=Math.max;a({target:"Array",proto:!0,forced:!x||!g},{slice:function(T,C){var I=f(this),k=d(I.length),$=c(T,k),R=c(C===void 0?k:C,k),D,O,B;if(u(I)&&(D=I.constructor,typeof D=="function"&&(D===Array||u(D.prototype))?D=void 0:l(D)&&(D=D[y],D===null&&(D=void 0)),D===Array||D===void 0))return _.call(I,$,R);for(O=new(D===void 0?Array:D)(E(R-$,0)),B=0;$<R;$++,B++)$ in I&&h(O,B,I[$]);return O.length=B,O}})}),fc6a:(function(s,i,o){var a=o("44ad"),l=o("1d80");s.exports=function(u){return a(l(u))}}),fdbc:(function(s,i){s.exports={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0}}),fdbf:(function(s,i,o){var a=o("4930");s.exports=a&&!Symbol.sham&&typeof Symbol.iterator=="symbol"})}).default})})(gm)),gm.exports}var Tle=wle();const Cle=H_(Tle),Ale=["accept","disabled"],kle={class:"flex flex-wrap gap-2 mt-2"},Ile=["onClick"],Lle={key:1,class:"w-full h-full relative"},Dle=["onClick"],Ple={class:"absolute flex top-0 left-0 w-full h-full bg-black opacity-50 text-white flex items-center justify-center"},Rle={class:"text-xl"},Ole={key:2,class:"absolute top-0 left-0 w-full bg-black opacity-30 text-center text-xs truncate"},$le={key:3,class:"absolute flex flex-col items-center justify-center top-0 left-0 w-full h-full bg-black opacity-80 text-white z-10"},Mle=["onClick"],Fle={class:"text-xs text-gray-500 mt-1"},Ble={class:"flex items-center justify-center h-full w-full bg-black"},Nle={key:1,class:"relative"},CE=ke({__name:"UploadFiles",props:{max:{},modelValue:{},allowedFileExts:{}},emits:["update:modelValue","uploaded"],setup(e,{emit:t}){const{file:n}
84=it(),r=e,s=t,i=M([]),o=M([]),a=M(!1),l=M(-1),u=M(null),c=M(!1),d=M(0);be(()=>r.modelValue,O=>{i.value=(O||[]).map(B=>B&&typeof B=="object"&&"name"in B&&"size"in B&&"lastModified"in B?{id:`${Math.ceil(Math.random()*new Date().getTime())}`,file:B,img:null,ext:B.name?.split(".")?.pop()?.toLowerCase()||"",status:"uploaded",progress:100}:B&&typeof B=="object"&&!Array.isArray(B)&&Object.prototype.toString.call(B)==="[object Object]"&&"id"in B?{...B}:{id:"",ext:"",img:"",status:"uploaded",progress:100}),o.value=Array.from({length:i.value.length},(B,U)=>U)},{immediate:!0,deep:!0});function f(O){return i.value.some(B=>B.file&&B.file.name===O.name&&B.file.size===O.size&&B.file.lastModified===O.lastModified)}function h(O){const B=O.target;if(!B.files)return;let U=Array.from(B.files);U=U.filter(N=>!f(N)),U=U.filter(N=>{const V=N.name.split(".").pop()?.toLowerCase()||"";return _.value.includes(V)}),!(U.length<1)&&(i.value.length+U.length>r.max&&(U=U.slice(0,r.max-i.value.length)),U.forEach(async N=>{const V=N.name.split(".").pop()?.toLowerCase()||"";let H=null;const re={id:`${Math.ceil(Math.random()*new Date().getTime())}`,file:N,img:H,ext:V,status:"wait",progress:1,duration:V==="mp4"?0:void 0,vod:V==="mp4"?{}:void 0};if(T(re))try{H=await I(N)}catch{H=C(N)}else H=C(N);re.img=H,i.value.push(re),o.value.push(i.value.length-1),s("update:modelValue",i.value),p()}))}async function p(){if(!a.value){for(a.value=!0;o.value.length>0;){const O=o.value.shift();if(i.value[O].status!="uploaded"){l.value=O,i.value[O].status="uploading";try{if(i.value[O].file){const B=await Hh(n,i.value[O].file,U=>{i.value[O].progress=U});Object.assign(i.value[O],B),i.value[O].status="uploaded",s("uploaded",i.value)}}catch{i.value[O].status="error",i.value[O].progress=0}}}a.value=!1,l.value=-1}}function m(O){i.value.splice(O,1),o.value.splice(O,1),u.value&&(u.value.value=""),l.value,s("update:modelValue",i.value.map(B=>B)),s("uploaded",i.value)}function v(){s("update:modelValue",i.value.map(O=>O)),s("uploaded",i.value)}const x=["jpg","jpeg","png","gif"],g=["mp4"],y=[...x,...g],_=F(()=>r.allowedFileExts&&r.allowedFileExts.length>0?r.allowedFileExts.map(O=>O.toLowerCase()):y),E=F(()=>_.value.map(O=>`.${O}`).join(",")),w=F(()=>_.value.join("/"));function T(O){return O.file?O.file.type.startsWith("video/"):g.includes(O.ext||"")}function C(O){return URL.createObjectURL(O)}async function I(O){return new Promise((B,U)=>{const N=URL.createObjectURL(O),V=document.createElement("video");V.src=N,V.muted=!0,V.playsInline=!0,V.style.visibility="hidden",V.style.position="fixed",V.style.left="-9999px",V.preload="auto",document.body.appendChild(V);const H=setTimeout(()=>{re(),U(new Error("timeout"))},8e3);function re(){clearTimeout(H),V.remove(),URL.revokeObjectURL(N)}V.addEventListener("loadedmetadata",()=>{V.currentTime=.1}),V.addEventListener("seeked",()=>{const W=document.createElement("canvas");W.width=V.videoWidth,W.height=V.videoHeight;const X=W.getContext("2d");X?(X.drawImage(V,0,0,W.width,W.height),B(W.toDataURL("image/jpeg"))):U(new Error("canvas context error")),re()}),V.addEventListener("error",W=>{re(),U(W)})})}function k(O,B="sm"){return O?O.startsWith("blob:")||O.startsWith("data:")||/^https?:\/\//i.test(O)?O:qs(O)+(B?`?${B}`:""):""}function $(){u.value?.click()}function R(O){i.value[O].status="wait",i.value[O].progress=0,o.value.includes(O)||o.value.push(O),p()}function D(O){d.value=O,c.value=!0}return(O,B)=>{const U=An;return P(),j("div",null,[L("input",{ref_key:"fileInputRef",ref:u,type:"file",multiple:"",accept:b(E),disabled:i.value.length>=e.max,class:"hidden",onChange:h},null,40,Ale),L("div",kle,[S(b(Cle),{list:i.value,"item-key":"id",class:"contents",onEnd:v},{item:A(({element:N,index:V})=>[L("div",{class:"relative w-24 h-24 border rounded flex items-center justify-center cursor-pointer",onClick:H=>D(V)},[N.img?(P(),j(se,{key:0},[N.ext!=="mp4"?(P(),q(U,{key:0,src:k(N.img),encoded:1,class:"object-cover w-full h-full rounded"},null,8,["src"])):(P(),j("div",Lle,[S(U,{src:k(N.img),encoded:1,class:"object-cover w-full h-full rounded"},null,8,["src"]),S(de,{class:"absolute left-1/2 top-1/2 -translate-x-1/2 -translate-y-1/2 text-white text-4xl drop-shadow-lg pointer-events-none opacity-80"},{default:A(()=>[...B[2]||(B[2]=[z(" mdi-play-circle ",-1)])]),_:1})]))],64)):te("",!0),L("button",{class:"absolute bottom-0 right-0 bg-red-500 text-white w-6 h-6 flex items-center justify-center",onClick:Et(H=>m(V),["stop"])}," × ",8,Dle),N.progress>0&&N.progress<100?(P(),j(se,{key:1},[L("div",Ple,[L("div",Rle,Z(N.progress)+"% ",1)]),S(gd,{"model-value":N.progress,height:"4",color:"primary",class:"absolute bottom-0 left-0 w-full",style:{bottom:"0!important"}},null,8,["model-value"])],64)):te("",!0),N.file&&N.file.name?(P(),j("div",Ole,Z(N.file?.name?.replace(/\.\w+$/ig,"")),1)):te("",!0),N.status==="error"?(P(),j("div",$le,[B[3]||(B[3]=L("div",null,"上传失败",-1)),L("button",{class:"mt-2 px-2 py-1 bg-primary text-white rounded text-xs",onClick:H=>R(V)}," 重传 ",8,Mle)])):te("",!0)],8,Ile)]),_:1},8,["list"]),i.value.length<e.max?(P(),j("div",{key:0,class:"relative w-24 h-24 border rounded flex items-center justify-center cursor-pointer transition",onClick:$},[...B[4]||(B[4]=[L("span",{class:"text-7xl text-gray-400 select-none -mt-3"},"+",-1)])])):te("",!0)]),L("div",Fle,[z(" 最多可选 "+Z(e.max)+" 个附件(后缀:"+Z(b(w)),1),e.max>1?(P(),j(se,{key:0},[z(",可拖动排序")],64)):te("",!0),B[5]||(B[5]=z(") ",-1))]),S(Gt,{modelValue:c.value,"onUpdate:modelValue":B[1]||(B[
841]=N=>c.value=N),fullscreen:"",scrim:"#000",opacity:1},{default:A(()=>[L("button",{class:"absolute top-4 right-4 z-20 text-white w-[32px] h-[32px] text-2xl bg-black/40 rounded-full p-2 hover:bg-black/70 transition","aria-label":"关闭",style:{"line-height":"0!important"},onClick:B[0]||(B[0]=N=>c.value=!1)}," × "),L("div",Ble,[i.value[d.value]&&i.value[d.value].img&&i.value[d.value].ext!=="mp4"?(P(),q(U,{key:0,src:k(i.value[d.value].img,"lg"),encoded:1,class:"max-h-full max-w-full object-contain"},null,8,["src"])):i.value[d.value]&&i.value[d.value].img&&i.value[d.value].ext==="mp4"?(P(),j("div",Nle,[S(U,{src:k(i.value[d.value].img,"lg"),encoded:1,class:"max-h-full max-w-full object-contain"},null,8,["src"]),S(de,{class:"absolute left-1/2 top-1/2 -translate-x-1/2 -translate-y-1/2 text-white text-6xl drop-shadow-lg pointer-events-none opacity-80"},{default:A(()=>[...B[6]||(B[6]=[z(" mdi-play-circle ",-1)])]),_:1})])):te("",!0)])]),_:1},8,["modelValue"])])}}}),Vle=Object.freeze(Object.defineProperty({__proto__:null,default:CE},Symbol.toStringTag,{value:"Module"})),dx=new Sy(50);function Ule(e,t){const n=dx.get(e);if(n)return n;const r=(async()=>{try{return await t()}catch(s){throw dx.delete(e),s}})();return dx.set(e,r),r}const jle=["src","controls","autoplay","loop","muted","poster"],zle={key:1,class:"h-full w-full text-center",type:"card"},Hle={class:"absolute left-1/2 top-1/2 -translate-x-1/2 -translate-y-1/2 artistic-text"},Gle=ke({__name:"CdnVideo",props:{src:{},encoded:{type:Boolean},eager:{type:Boolean,default:!1},lazy:{type:Boolean,default:!0},controls:{type:Boolean,default:!1},autoplay:{type:Boolean,default:!1},loop:{type:Boolean,default:!1},muted:{type:Boolean,default:!1},poster:{},class:{}},setup(e){const t=e,n=M(""),r=M(!1),s=M(!1),i=M(t.eager),o=M(null),a=M(null),l=F(()=>`${wr()?.host301}`),u=F(()=>Gg()||[]),c=F(()=>t.src.replace(/^https?:\/\/[^/]*?\//ig,"/").replace(/\?.*?$/g,"")),d=F(()=>{if(!t.src||u.value.length===0)return 0;let E=0;for(let w=0;w<c.value.length;w++)E=c.value.charCodeAt(w)+((E<<5)-E);return Math.abs(E)%Math.max(1,u.value.length)}),f=M(0),h=M(new Set),p=F(()=>t.src?co(c.value,f.value):t.src);function m(){f.value=d.value,h.value.clear(),h.value.add(f.value)}function v(E){const w=atob(E),T=w.length,C=new ArrayBuffer(T),I=new Uint8Array(C);for(let k=0;k<T;k++)I[k]=w.charCodeAt(k);return new Blob([I],{type:"video/mp4"})}async function x(){r.value=!0,s.value=!1;const E=p.value;try{let w=await Ule(E,async()=>{const C=await fetch(E,{headers:{Accept:"text/plain"}});if(!C.ok)throw new Error(`HTTP ${C.status}: ${C.statusText}`);return C.text()});w=w.replace(/#/g,"/").replace(/\$/g,"+").replace(/-/g,"+").replace(/_/g,"/");const T=v(w);if(n.value.startsWith("blob:"))try{URL.revokeObjectURL(n.value)}catch{}n.value=URL.createObjectURL(T)}catch{y()}finally{r.value=!1}}function g(){if(!t.src||u.value.length<=1)return!1;let E=(f.value+1)%u.value.length,w=0;for(;h.value.has(E)&&w<u.value.length;)E=(E+1)%u.value.length,w++;return h.value.has(E)?!1:(f.value=E,h.value.add(E),!0)}function y(){g()?t.encoded&&i.value?x():n.value=p.value:s.value=!0}function _(){s.value=!1,m(),t.encoded?x():n.value=p.value}return ft(()=>{if(m(),t.eager){t.encoded?x():n.value=p.value;return}const E=new IntersectionObserver(w=>{w.forEach(T=>{T.isIntersecting&&(i.value=!0,E.disconnect(),t.encoded?x():n.value=p.value)})},{rootMargin:"100px"});tt(()=>{o.value&&E.observe(o.value)}),Er(()=>E.disconnect())}),Er(()=>{if(n.value&&n.value.startsWith("blob:"))try{URL.revokeObjectURL(n.value)}catch{}}),be(()=>t.src,()=>{m(),t.encoded&&i.value?x():i.value&&(n.value=p.value)}),(E,w)=>(P(),j("div",{ref_key:"containerRef",ref:o,flat:"",rounded:"",class:"w-full h-full relative p-0 overflow-hidden"},[L("div",{ref_key:"containerRef",ref:o,class:"w-full h-full h-100%"},[b(i)&&!b(r)&&!b(s)||t.eager?(P(),j("video",{key:0,ref_key:"videoRef",ref:a,src:b(n),controls:t.controls,autoplay:t.autoplay,loop:t.loop,muted:t.muted,poster:t.poster,class:Ie([t.class,"w-full h-full object-contain rounded"]),playsinline:"true","webkit-playsinline":"true","x5-video-player-type":"h5-page","x5-video-player-fullscreen":"false",fullscreen:"false","webkit-presentation-mode":"inline",onError:y},null,42,jle)):b(r)?(P(),j("div",zle,[S(Hs,{class:"h-full w-full text-center",type:"image"}),L("div",Hle,Z(b(l)),1)])):b(s)?(P(),j("div",{key:2,class:"flex flex-col text-xs items-center justify-center w-full h-full bg-black/80 text-red-500 cursor-pointer select-none opacity-80",onClick:Et(_,["stop"])},[S(de,{class:"mb-2",size:"32"},{default:A(()=>[...w[0]||(w[0]=[z(" mdi-reload ",-1)])]),_:1}),w[1]||(w[1]=L("span",null,"点击重试",-1))])):te("",!0)],512)],512))}}),Jh=vt(Gle,[["__scopeId","data-v-9eb77530"]]),Kle=Object.freeze(Object.defineProperty({__proto__:null,default:Jh},Symbol.toStringTag,{value:"Module"}));function Wle(){const e=M([]);_h(()=>e.value=[]);function t(n,r){e.value[r]=n}return{refs:e,updateRef:t}}const qle=He({activeColor:String,start:{type:[Number,String],default:1},modelValue:{type:Number,default:e=>e.start},disabled:Boolean,length:{type:[Number,String],default:1,validator:e=>e%1===0}
vendor: 5,724 bytes, line 84
84,totalVisible:[Number,String],firstIcon:{type:jt,default:"$first"},prevIcon:{type:jt,default:"$prev"},nextIcon:{type:jt,default:"$next"},lastIcon:{type:jt,default:"$last"},ariaLabel:{type:String,default:"$vuetify.pagination.ariaLabel.root"},pageAriaLabel:{type:String,default:"$vuetify.pagination.ariaLabel.page"},currentPageAriaLabel:{type:String,default:"$vuetify.pagination.ariaLabel.currentPage"},firstAriaLabel:{type:String,default:"$vuetify.pagination.ariaLabel.first"},previousAriaLabel:{type:String,default:"$vuetify.pagination.ariaLabel.previous"},nextAriaLabel:{type:String,default:"$vuetify.pagination.ariaLabel.next"},lastAriaLabel:{type:String,default:"$vuetify.pagination.ariaLabel.last"},ellipsis:{type:String,default:"..."},showFirstLastPage:Boolean,...mo(),...At(),...Ps(),...Rs(),...Tr(),...Al(),...rn({tag:"nav"}),...Dn(),...Xo({variant:"text"})},"VPagination"),Qh=nt()({name:"VPagination",props:qle(),emits:{"update:modelValue":e=>!0,first:e=>!0,prev:e=>!0,next:e=>!0,last:e=>!0},setup(e,t){let{slots:n,emit:r}=t;const s=Qt(e,"modelValue"),{t:i,n:o}=po(),{isRtl:a}=Jr(),{themeClasses:l}=ir(e),{width:u}=fd(),c=Ze(-1);Ni(void 0,{scoped:!0});const{resizeRef:d}=Ia(C=>{if(!C.length)return;const{target:I,contentRect:k}=C[0],$=I.querySelector(".v-pagination__list > *");if(!$)return;const R=k.width,D=$.offsetWidth+parseFloat(getComputedStyle($).marginRight)*2;c.value=m(R,D)}),f=F(()=>parseInt(e.length,10)),h=F(()=>parseInt(e.start,10)),p=F(()=>e.totalVisible!=null?parseInt(e.totalVisible,10):c.value>=0?c.value:m(u.value,58));function m(C,I){const k=e.showFirstLastPage?5:3;return Math.max(0,Math.floor(Number(((C-I*k)/I).toFixed(2))))}const v=F(()=>{if(f.value<=0||isNaN(f.value)||f.value>Number.MAX_SAFE_INTEGER)return[];if(p.value<=0)return[];if(p.value===1)return[s.value];if(f.value<=p.value)return Zl(f.value,h.value);const C=p.value%2===0,I=C?p.value/2:Math.floor(p.value/2),k=C?I:I+1,$=f.value-I;if(k-s.value>=0)return[...Zl(Math.max(1,p.value-1),h.value),e.ellipsis,f.value];if(s.value-$>=(C?1:0)){const R=p.value-1,D=f.value-R+h.value;return[h.value,e.ellipsis,...Zl(R,D)]}else{const R=Math.max(1,p.value-2),D=R===1?s.value:s.value-Math.ceil(R/2)+h.value;return[h.value,e.ellipsis,...Zl(R,D),e.ellipsis,f.value]}});function x(C,I,k){C.preventDefault(),s.value=I,k&&r(k,I)}const{refs:g,updateRef:y}=Wle();Ni({VPaginationBtn:{color:Ae(()=>e.color),border:Ae(()=>e.border),density:Ae(()=>e.density),size:Ae(()=>e.size),variant:Ae(()=>e.variant),rounded:Ae(()=>e.rounded),elevation:Ae(()=>e.elevation)}});const _=F(()=>v.value.map((C,I)=>{const k=$=>y($,I);if(typeof C=="string")return{isActive:!1,key:`ellipsis-${I}`,page:C,props:{ref:k,ellipsis:!0,icon:!0,disabled:!0}};{const $=C===s.value;return{isActive:$,key:C,page:o(C),props:{ref:k,ellipsis:!1,icon:!0,disabled:!!e.disabled||Number(e.length)<2,color:$?e.activeColor:e.color,"aria-current":$,"aria-label":i($?e.currentPageAriaLabel:e.pageAriaLabel,C),onClick:R=>x(R,C)}}}})),E=F(()=>{const C=!!e.disabled||s.value<=h.value,I=!!e.disabled||s.value>=h.value+f.value-1;return{first:e.showFirstLastPage?{icon:a.value?e.lastIcon:e.firstIcon,onClick:k=>x(k,h.value,"first"),disabled:C,"aria-label":i(e.firstAriaLabel),"aria-disabled":C}:void 0,prev:{icon:a.value?e.nextIcon:e.prevIcon,onClick:k=>x(k,s.value-1,"prev"),disabled:C,"aria-label":i(e.previousAriaLabel),"aria-disabled":C},next:{icon:a.value?e.prevIcon:e.nextIcon,onClick:k=>x(k,s.value+1,"next"),disabled:I,"aria-label":i(e.nextAriaLabel),"aria-disabled":I},last:e.showFirstLastPage?{icon:a.value?e.firstIcon:e.lastIcon,onClick:k=>x(k,h.value+f.value-1,"last"),disabled:I,"aria-label":i(e.lastAriaLabel),"aria-disabled":I}:void 0}});function w(){const C=s.value-h.value;g.value[C]?.$el.focus()}function T(C){C.key===Gb.left&&!e.disabled&&s.value>Number(e.start)?(s.value=s.value-1,tt(w)):C.key===Gb.right&&!e.disabled&&s.value<h.value+f.value-1&&(s.value=s.value+1,tt(w))}return ut(()=>S(e.tag,{ref:d,class:Ie(["v-pagination",l.value,e.class]),style:Qe(e.style),role:"navigation","aria-label":i(e.ariaLabel),onKeydown:T,"data-test":"v-pagination-root"},{default:()=>[L("ul",{class:"v-pagination__list"},[e.showFirstLastPage&&L("li",{key:"first",class:"v-pagination__first","data-test":"v-pagination-first"},[n.first?n.first(E.value.first):S(ce,Ve({_as:"VPaginationBtn"},E.value.first),null)]),L("li",{key:"prev",class:"v-pagination__prev","data-test":"v-pagination-prev"},[n.prev?n.prev(E.value.prev):S(ce,Ve({_as:"VPaginationBtn"},E.value.prev),null)]),_.value.map((C,I)=>L("li",{key:C.key,class:Ie(["v-pagination__item",{"v-pagination__item--is-active":C.isActive}]),"data-test":"v-pagination-item"},[n.item?n.item(C):S(ce,Ve({_as:"VPaginationBtn"},C.props),{default:()=>[C.page]})])),L("li",{key:"next",class:"v-pagination__next","data-test":"v-pagination-next"},[n.next?n.next(E.value.next):S(ce,Ve({_as:"VPaginationBtn"},E.value.next),null)]),e.showFirstLastPage&&L("li",{key:"last",class:"v-pagination__last","data-test":"v-pagination-last"},[n.last?n.last(E.value.last):S(ce,Ve({_as:"VPaginationBtn"},E.value.last),null)])])]})),{}}}),Yle={class:"px-3 pb-2 flex justify-end flex-shrink-0"},Xle={key:0,class:"flex justify-center py-10"},Zle={key:1,class:"text-center text-grey py-10"},Jle={key:2,class:"grid grid-cols-2 gap-3"},Qle=["onClick"],eue={key:0,class:"absolute inset-0 flex items-center justify-center bg-black/20"},tue={key:1,class:"absolute bottom-0 left-0 right-0 bg-black/50 text-white text-xs px-1 py-0.5 truncate"},nue={key:1,class:"flex-shrink-0 px-2 py-2 flex items-center justify-center"},rue={class:"truncate"},zd=30,o6=ke({__name:"AiTemplatePicker",props:{modelValue:{type:Boolean}},emits:["update:modelValue","select"],setup(e,{emit:t}){const n=e,r=t,{ai:s}
84=it(),i=M([]),o=M([]),a=M(""),l=M("hot"),u=M(!1),c=M(!1),d=M(1),f=M(1),h=M(!1),p=M(!1),m=M(null),v=F(()=>h.value?f.value:Math.max(1,Math.ceil(o.value.length/zd))),x=F(()=>{if(h.value)return o.value;const O=(d.value-1)*zd;return o.value.slice(O,O+zd)});function g(O){return O.file?.ext==="mp4"||String(O.media_type||"").includes("video")}function y(O){return O.cover?.img?O.cover:O.file}function _(O){return`${qs(O)}?lg`}function E(O){const B=O?.vod?.[720]||O?.vod?.[480]||O?.vod?.[168]||O?.vod?.raw||"";return B?Hf(B,"y",0):""}async function w(){u.value=!0;try{const{categories:O}=await s.templates();i.value=O||[],i.value.length&&T(i.value[0].id)}catch{}finally{u.value=!1}}async function T(O){a.value=O,d.value=1,await C()}async function C(){if(a.value!==""){c.value=!0;try{const O=await s.templates({category:a.value,sort:l.value,page:d.value,size:zd});o.value=O.list||[];const B=["pageCount","page_count","pages","total_pages","total","hasmore"].some(V=>Object.prototype.hasOwnProperty.call(O,V));h.value=B;const U=Number(O.pageCount??O.page_count??O.pages??O.total_pages??0),N=Number(O.total||0);f.value=Math.max(1,U||(N?Math.ceil(N/zd):0)||(O.hasmore?d.value+1:d.value))}catch{o.value=[],f.value=1}finally{c.value=!1}}}async function I(O){d.value=O,h.value&&await C(),tt(()=>{document.querySelector(".ai-template-list")?.scrollTo?.({top:0})})}function k(O){if(!O.file?.id){je.error("模板文件不可用,请选择其他模板");return}r("select",{id:O.id,title:O.title,file_id:O.file.id,file:O.file,cover:O.cover,img:y(O).img}),p.value=!1,r("update:modelValue",!1)}function $(O){m.value=O,p.value=!0}function R(){m.value&&k(m.value)}async function D(O){!O||O===l.value||(l.value=O,d.value=1,await C())}return be(()=>n.modelValue,O=>{O&&!i.value.length&&w()}),(O,B)=>{const U=An,N=Jh;return P(),q(Gt,{"model-value":e.modelValue,"max-width":"640",scrollable:"","onUpdate:modelValue":B[6]||(B[6]=V=>r("update:modelValue",V))},{default:A(()=>[S($e,{class:"flex flex-col max-h-[80vh]"},{default:A(()=>[S(at,{class:"flex items-center flex-shrink-0"},{default:A(()=>[B[7]||(B[7]=L("div",null,"选择参考图模板",-1)),S(Mt),S(ce,{variant:"plain",icon:"mdi-close",onClick:B[0]||(B[0]=V=>r("update:modelValue",!1))})]),_:1}),S(Yv,{modelValue:b(a),"onUpdate:modelValue":B[1]||(B[1]=V=>Ce(a)?a.value=V:null),class:"px-3 flex-shrink-0",mandatory:"","selected-class":"text-primary"},{default:A(()=>[(P(!0),j(se,null,Fe(b(i),V=>(P(),q(kt,{key:V.id,value:V.id,size:"small",onClick:H=>T(V.id)},{default:A(()=>[z(Z(V.name),1)]),_:2},1032,["value","onClick"]))),128))]),_:1},8,["modelValue"]),L("div",Yle,[S(lQ,{"model-value":b(l),mandatory:"",density:"compact",color:"primary",variant:"outlined","onUpdate:modelValue":D},{default:A(()=>[S(ce,{value:"hot",size:"small"},{default:A(()=>[...B[8]||(B[8]=[z(" 按热度 ",-1)])]),_:1}),S(ce,{value:"time",size:"small"},{default:A(()=>[...B[9]||(B[9]=[z(" 按时间 ",-1)])]),_:1})]),_:1},8,["model-value"])]),S(zt,{class:"flex-shrink-0"}),S(We,{class:"ai-template-list flex-1 min-h-0 overflow-y-auto"},{default:A(()=>[b(c)||b(u)?(P(),j("div",Xle,[S(jn,{indeterminate:"",color:"primary"}
84)])):b(o).length?(P(),j("div",Jle,[(P(!0),j(se,null,Fe(b(x),V=>(P(),j("div",{key:V.id,class:"relative aspect-[3/4] rounded-lg overflow-hidden cursor-pointer border border-transparent hover:border-primary transition",onClick:H=>$(V)},[S(U,{src:_(y(V).img),encoded:1,cover:!0,class:"w-full h-full"},null,8,["src"]),g(V)?(P(),j("div",eue,[S(de,{icon:"mdi:play-circle",size:"40",color:"white"})])):te("",!0),V.title?(P(),j("div",tue,Z(V.title),1)):te("",!0)],8,Qle))),128))])):(P(),j("div",Zle," 该分类暂无模板 "))]),_:1}),!b(c)&&!b(u)&&b(v)>1?(P(),q(zt,{key:0,class:"flex-shrink-0"})):te("",!0),!b(c)&&!b(u)&&b(v)>1?(P(),j("div",nue,[S(Qh,{modelValue:b(d),"onUpdate:modelValue":[B[2]||(B[2]=V=>Ce(d)?d.value=V:null),I],length:b(v),"total-visible":5,density:"comfortable",size:"small","active-color":"primary"},null,8,["modelValue","length"])])):te("",!0)]),_:1}),S(Gt,{modelValue:b(p),"onUpdate:modelValue":B[5]||(B[5]=V=>Ce(p)?p.value=V:null),"max-width":"420"},{default:A(()=>[b(m)?(P(),q($e,{key:0},{default:A(()=>[S(at,{class:"flex items-center"},{default:A(()=>[L("div",rue,Z(b(m).title||"预览"),1),S(Mt),S(ce,{variant:"plain",icon:"mdi-close",onClick:B[3]||(B[3]=V=>p.value=!1)})]),_:1}),S(We,{class:"p-0 bg-black flex items-center justify-center"},{default:A(()=>[g(b(m))?(P(),q(N,{key:0,src:E(b(m).file),controls:!0,autoplay:!0,eager:!0,class:"w-full max-h-[70vh]"},null,8,["src"])):(P(),q(U,{key:1,src:_(b(m).file.img),encoded:1,contain:!0,eager:!0,class:"w-full max-h-[70vh]"},null,8,["src"]))]),_:1}),S(mn,null,{default:A(()=>[S(ce,{variant:"text",onClick:B[4]||(B[4]=V=>p.value=!1)},{default:A(()=>[...B[10]||(B[10]=[z(" 取消 ",-1)])]),_:1}),S(Mt),S(ce,{color:"primary",variant:"flat",onClick:R},{default:A(()=>[...B[11]||(B[11]=[z(" 使用该模板 ",-1)])]),_:1})]),_:1})]),_:1})):te("",!0)]),_:1},8,["modelValue"])]),_:1},8,["model-value"])}}}),sue=Object.freeze(Object.defineProperty({__proto__:null,default:o6},Symbol.toStringTag,{value:"Module"})),iue={SUCCESS:2},e0=Ws(()=>{const{ai:e}=it(),t=M([]),n=M(!1),r=M(0);async function s(f=!1){if(t.value.length&&!f)return t.value;n.value=!0;try{const{list:h}=await e.workflows();t.value=h||[]}finally{n.value=!1}return t.value}function i(f){return t.value.find(h=>h.workflow===f)}async function o(f){const{task:h}=await e.create(f);return r.value+=1,h}async function a(f){const{task:h}=await e.status({id:f});return h}function l(f){return f.status===iue.SUCCESS||f.status<0}function u(f,h={}){const{interval:p=3e3,timeout:m=300*1e3,onUpdate:v}=h,x=Date.now();return new Promise((g,y)=>{const _=async()=>{try{const E=await a(f);if(v?.(E),l(E)||Date.now()-x>m){g(E);return}setTimeout(_,p)}catch(E){y(E)}};_()})}async function c(f){const{list:h,hasmore:p,page:m}=await e.list(f);return{list:h||[],hasmore:p,page:m}}async function d(f){const{task:h}=await e.cancel(f);return h}return{workflows:t,loadingWorkflows:n,historyVersion:r,loadWorkflows:s,getWorkflow:i,create:o,fetchStatus:a,poll:u,listTasks:c,cancel:d,isTerminal:l}}),oue={key:0,class:"text-sm text-grey mb-3"},aue={class:"flex items-center mb-1"},lue={class:"text-sm font-medium"},uue={key:0,class:"relative w-24 h-24 rounded overflow-hidden border"},cue=["onClick"],due={key:2,class:"mb-2"},fue={key:1,class:"flex flex-col items-center py-8 gap-4"},hue={class:"text-sm text-grey"},pue={key:0,class:"flex flex-col gap-3"},mue={key:1,class:"flex flex-col items-center py-8 gap-2"},vue={class:"text-sm"},gue={key:0,class:"text-xs text-grey text-center"},yue={class:"text-xs text-primary"},xue={class:"flex items-center justify-between text-sm px-1"},bue={class:"text-grey"},_ue={class:"flex gap-2"},AE=ke({__name:"AiWorkflowDialog",props:{modelValue:{type:Boolean},workflow:{}},emits:["update:modelValue","created"],setup(e,{emit:t}){const n=e,r=t,s=wr(),i=Tt(),{user:o,refreshAuth:a}=Ct(),{create:l,poll:u,isTerminal:c}=e0(),d=M("form"),f=M(!1),h=M(null),p=M("生成中,请稍候…"),m=M(!1),v=M(-1),x=M(!1),g=M([]),y=M(""),_=M(""),E=["","1:1","3:4","9:16","16:9"],w=F(()=>s?.credit_name||"积分"),T=F(()=>Number(o.value?.credit||0)),C=F(()=>Number(n.workflow?.credits||0)),I=F(()=>T.value>=C.value),k=F(()=>!!n.workflow&&!n.workflow.need_image),$=["jpg","jpeg","png","gif"],R=["mp4"];function D(K){return(K.accept==="video"||K.key==="video"?"video":"image")==="video"?R:$}function O(){d.value="form",f.value=!1,h.value=null,y.value="",_.value="",g.value=(n.workflow?.slots||[]).map(()=>({files:[],uploadedId:"",uploadedItem:null,template:null}))}be(()=>n.modelValue,K=>{K&&O()}),be(()=>n.workflow,()=>{n.modelValue&&O()});function B(K,ee){const ae=(ee||[]).find(ue=>ue.status==="uploaded"&&ue.id)||(ee||[])[0];g.value[K].uploadedId=ae?.id||"",g.value[K].uploadedItem=ae||null,ae?.id&&(g.value[K].template=null)}function U(K){v.value=K,m.value=!0}function N(K){const ee=v.value;ee<0||(g.value[ee].template=K,g.value[ee].files=[],g.value[ee].uploadedId="",g.value[ee].uploadedItem=null)}function V(K){g.value[K].template=null}const H=F(()=>
84{if(!n.workflow||f.value||k.value&&!y.value.trim())return!1;const K=n.workflow.slots||[];return n.workflow.need_image?K.length?K.every((ee,ae)=>{const ue=g.value[ae];return ue&&(ue.uploadedId||ue.template)}):!!g.value[0]?.uploadedId:!0});function re(){return(n.workflow?.slots||[]).map((ee,ae)=>{const ue=g.value[ae];return ue.template?{type:"file",value:ue.template.file_id}:ue.uploadedId}).filter(Boolean)}function W(K){return`${qs(K)}?lg`}function X(K){const ee=K.vod?.[720]||K.vod?.[480]||K.vod?.[168]||K.vod?.raw||"";return ee?Hf(ee,"y",0):""}async function Q(){if(n.workflow){if(!I.value){x.value=!0;return}f.value=!0;try{const K=await l({workflow:n.workflow.workflow,inputs:re(),prompt:y.value.trim(),ratio:_.value||void 0});if(h.value=K,r("created",K),a?.(),c(K)){d.value="result",f.value=!1,K.status<0&&a?.();return}d.value="progress",f.value=!1;const ee=await u(K.id,{onUpdate:ae=>{h.value=ae}});h.value=ee,d.value="result",ee.status<0&&a?.()}catch{f.value=!1}}}function le(){h.value&&(r("update:modelValue",!1),i.push(`/user/post?share=ai:${h.value.id}`))}function ve(K){if(!K.dl){je.error("下载链接已失效,请刷新生成历史后重试");return}const ee=new URL(K.dl,window.location.origin);if(ee.origin!==window.location.origin||!ee.pathname.startsWith("/api/aidl/")){je.error("下载链接无效,请刷新后重试");return}window.open(`${ee.pathname}${ee.search}${ee.hash}`,"_blank","noopener")}function oe(){r("update:modelValue",!1)}return(K,ee)=>{const ae=An,ue=CE,Ee=Jh,_e=o6,J=Ed;return P(),q(Gt,{"model-value":e.modelValue,"max-width":"560",scrollable:"",persistent:"","onUpdate:modelValue":ee[4]||(ee[4]=Y=>r("update:modelValue",Y))},{default:A(()=>[e.workflow?(P(),q($e,{key:0,class:"flex flex-col max-h-[88vh]"},{default:A(()=>[S(at,{class:"flex items-center"},{default:A(()=>[S(de,{icon:e.workflow.icon||"mdi:auto-fix",class:"mr-2",color:"primary"},null,8,["icon"]),L("div",null,Z(e.workflow.name),1),S(Mt),S(ce,{variant:"plain",icon:"mdi-close",disabled:b(f),onClick:oe},null,8,["disabled"])]),_:1}),S(zt),S(We,{class:"flex-1 overflow-y-auto"},{default:A(()=>[b(d)==="form"?(P(),j(se,{key:0},[e.workflow.desc?(P(),j("div",oue,Z(e.workflow.desc),1)):te("",!0),(P(!0),j(se,null,Fe(e.workflow.slots,(Y,fe)=>(P(),j("div",{key:Y.key,class:"mb-4"},[L("div",aue,[L("span",lue,Z(Y.label),1),S(Mt),Y.template?(P(),q(ce,{key:0,size:"@small",variant:"tonal",color:"primary","prepend-icon":"mdi:image-multiple-outline",onClick:xe=>U(fe)},{default:A(()=>[...ee[5]||(ee[5]=[z(" 从模板库选择 ",-1)])]),_:1},8,["onClick"])):te("",!0)]),b(g)[fe]?.template?(P(),j("div",uue,[S(ae,{src:W(b(g)[fe].template.img),encoded:1,cover:!0,class:"w-full h-full"},null,8,["src"]),L("button",{class:"absolute bottom-0 right-0 bg-red-500 text-white w-6 h-6 flex items-center justify-center",onClick:xe=>V(fe)}," × ",8,cue)])):(P(),q(ue,{key:1,modelValue:b(g)[fe].files,"onUpdate:modelValue":xe=>b(g)[fe].files=xe,max:1,"allowed-file-exts":D(Y),onUploaded:xe=>B(fe,xe)},null,8,["modelValue","onUpdate:modelValue","allowed-file-exts","onUploaded"]))]))),128)),b(k)?(P(),q(jh,{key:1,modelValue:b(y),"onUpdate:modelValue":ee[0]||(ee[0]=Y=>Ce(y)?y.value=Y:null),label:"提示词",variant:"outlined",rows:"3","hide-details":"",class:"mb-3",placeholder:"描述你想生成的画面…"},null,8,["modelValue"])):te("",!0),b(k)?(P(),j("div",due,[S(Yv,{modelValue:b(_),"onUpdate:modelValue":ee[1]||(ee[1]=Y=>Ce(_)?_.value=Y:null),"selected-class":"text-primary"},{default:A(()=>[(P(),j(se,null,Fe(E,Y=>S(kt,{key:Y||"auto",value:Y,size:"small"},{default:A(()=>[z(Z(Y||"默认"),1)]),_:2},1032,["value"])),64))]),_:1},8,["modelValue"])])):te("",!0)],64)):b(d)==="progress"?(P(),j("div",fue,[S(jn,{indeterminate:"",color:"primary",size:"56"}),L("div",hue,Z(b(p)),1),ee[6]||(ee[6]=L("div",{class:"text-xs text-grey"}," 可关闭本窗口,稍后在「个人中心 - 生成历史」查看结果 ",-1))])):(P(),j(se,{key:2},[b(h)&&b(h).status===2?(P(),j("div",pue,[ee[7]||(ee[7]=L("div",{class:"text-sm text-primary font-medium"}," 生成成功! ",-1)),L("div",{class:Ie(["grid gap-2",b(h).outputs.length>1?"grid-cols-2":"grid-cols-1"])},[(P(!0),j(se,null,Fe(b(h).outputs,(Y,fe)=>(P(),j("div",{key:fe,class:"relative rounded-lg overflow-hidden border bg-black/5 flex items-center justify-center"},[Y.ext!=="mp4"?(P(),q(ae,{key:0,src:W(Y.img),encoded:1,contain:!0,class:"w-full max-h-[50vh] cursor-pointer",onClick:xe=>ve(Y)},null,8,["src","onClick"])):(P(),q(Ee,{key:1,src:X(Y),controls:!0,eager:!0,class:"w-full max-h-[50vh]"},null,8,["src"])),S(ce,{icon:"mdi:download",size:"small",color:"primary",class:"absolute top-2 right-2","aria-label":"下载",onClick:Et(xe=>ve(Y),["stop"])},null,8,["onClick"])]))),128))],2)])):(P(),j("div",mue,[S(de,{icon:"mdi:alert-circle-outline",color:"error",size:"48"}),L("div",vue,Z(b(h)?.status_text||"生成失败"),1),b(h)?.error?(P(),j("div",gue,Z(b(h).error),1)):te("",!0),L("div",yue," 本次消耗的"+Z(b(w))+"已自动退还 ",1)]))],64))]),_:1}),S(zt),S(mn,{class:"flex-col items-stretch gap-2 p-3"},{default:A(()=>[b(d)==="form"?(P(),j(se,{key:0},[L("div",xue,[L("span",bue,"消耗 "+Z(b(C))+" "+Z(b(w)),1),L("span",{class:Ie(b(I)?"text-grey":"text-error")},"余额 "+Z(b(T)),3)]),S(ce,{color:"primary",variant:"flat",block:"",loading:b(f),disabled:!b(H),onClick:Q},{default:A(()=>[z(Z(b(I)?`立即生成(${b(C)} ${b(w)})`:`${b(w)}
84不足,去充值`),1)]),_:1},8,["loading","disabled"])],64)):b(d)==="result"?(P(),j(se,{key:1},[b(h)&&b(h).status===2?(P(),j(se,{key:0},[S(ce,{color:"primary",variant:"flat",block:"","prepend-icon":"mdi:share-variant-outline",onClick:le},{default:A(()=>[...ee[8]||(ee[8]=[z(" 分享到社区 ",-1)])]),_:1}),L("div",_ue,[S(ce,{variant:"tonal",class:"flex-1",onClick:O},{default:A(()=>[...ee[9]||(ee[9]=[z(" 再来一张 ",-1)])]),_:1}),S(ce,{variant:"text",class:"flex-1",onClick:oe},{default:A(()=>[...ee[10]||(ee[10]=[z(" 完成 ",-1)])]),_:1})])],64)):(P(),q(ce,{key:1,color:"primary",variant:"flat",block:"",onClick:O},{default:A(()=>[...ee[11]||(ee[11]=[z(" 重新生成 ",-1)])]),_:1}))],64)):(P(),q(ce,{key:2,variant:"text",block:"",onClick:oe},{default:A(()=>[...ee[12]||(ee[12]=[z(" 后台运行 ",-1)])]),_:1}))]),_:1})]),_:1})):te("",!0),S(_e,{modelValue:b(m),"onUpdate:modelValue":ee[2]||(ee[2]=Y=>Ce(m)?m.value=Y:null),onSelect:N},null,8,["modelValue"]),b(x)?(P(),q(J,{key:1,modelValue:b(x),"onUpdate:modelValue":ee[3]||(ee[3]=Y=>Ce(x)?x.value=Y:null)},null,8,["modelValue"])):te("",!0)]),_:1},8,["model-value"])}}}),Sue=Object.freeze(Object.defineProperty({__proto__:null,default:AE},Symbol.toStringTag,{value:"Module"})),zy=Ws(()=>{const e=di("browse-history",{vod:[],nvl:[],pic:[],sj:[],down:[],actor:[],post:[]});return{history:e,addHistory:(o,a)=>{const l={...a,time:Math.floor(Date.now()/1e3)},u=e.value[o]||[],c=u.findIndex(d=>d.eid===l.eid);c>-1&&u.splice(c,1),u.unshift(l),u.length>50&&u.pop(),e.value={...e.value,[o]:u}},clearHistory:o=>{e.value[o]=[]},clearAllHistory:()=>{e.value={vod:[],nvl:[],pic:[],sj:[],down:[],actor:[],post:[]}},getHistoryCount:o=>e.value[o].length,formatTime:o=>new Date(o*1e3).toLocaleDateString("zh-CN",{month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit"})}}),a6=Ws(()=>{const e=M(!1),t=Tt(),{workflows:n,loadWorkflows:r}=e0();async function s(){if(!(await r()).length){t.push("/user/post");return}e.value=!0}function i(){e.value=!1}return{visible:e,open:s,close:i,workflows:n}}),Eue={class:""},wue={key:0},Tue={key:0},Cue={key:0},Yk=50,Xk=150,l6=ke({__name:"TimelineContentCard",props:{post:{type:Object,required:!0},isDetail:{type:Boolean,default:!1},needSubscribe:{type:Boolean,default:!1},needPay:{type:Boolean,default:!1}},setup(e){const t=e,{detail:n}=It(),{addHistory:r}=zy(),s=It(),{loadWorkflows:i,getWorkflow:o}=e0(),{isLogin:a}=Ct(),{open:l}=a6(),u=M(!1);function c(){if(!t.isDetail&&t.post?.id){const T=s.detail("thread",t.post.id),C=t.post?.content?t.post.content.length>50?`${t.post.content.substring(0,50)}...`:t.post.content:"无标题";r("post",{eid:t.post.id,title:C,url:T})}}const d=M(!1);be(()=>t.isDetail,T=>{T&&(d.value=!0)},{immediate:!0});const f=F(()=>t.post.content.length>Yk),h=F(()=>{if(t.needSubscribe)return"关注发布者后可查看全部内容";if(t.needPay){const C=t.post.content;return C.length<=Xk?C:C.slice(0,Xk)+"..."}return d.value||!f.value?t.post.content:t.post.content.slice(0,Yk).replace(/[\r\n]+/g," ")+"..."});function p(T){return T.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}const m=F(()=>{const T=Array.isArray(t.post?.tags)?t.post.tags:[],C=String(h.value??"");return T.filter(I=>{const k=String(I??"").trim();return k?!new RegExp(`#${p(k)}`,"i").test(C):!1})}),v=F(()=>{const T=String(h.value??""),C=Array.isArray(t.post?.tags)?t.post.tags:[];if(!T||C.length===0)return[{kind:"text",text:T}];const I=new Map;for(const B of C)I.set(String(B).toLowerCase(),String(B));const k=C.map(B=>p(String(B))).join("|");if(!k)return[{kind:"text",text:T}];const $=new RegExp(`#(${k})`,"gi"),R=[];let D=0,O;for(;O=$.exec(T);){const B=O.index,U=$.lastIndex;B>D&&R.push({kind:"text",text:T.slice(D,B)});const N=String(O[1]??""),V=I.get(N.toLowerCase())||N;R.push({kind:"tag",text:`#${N}`,tag:V}),D=U}return D<T.length&&R.push({kind:"text",text:T.slice(D)}),R});function x(){d.value=!d.value}const g=F(()=>{const T=t.post;return Number(T?.isai)===1||!!T?.extend?.ai?T?.extend?.ai?.name||"AI 生成":""}),y=M(!1),_=M(null),E=M(!1);async function w(T){if(T?.stopPropagation?.(),T?.preventDefault?.(),E.value)return;const C=()=>
84{if(!a.value){u.value=!0;return}l()},I=String(t.post?.extend?.ai?.workflow||"").trim();if(!I){C();return}E.value=!0;try{await i();const k=o(I);if(!k){C();return}_.value=k,y.value=!0}catch{C()}finally{E.value=!1}}return(T,C)=>{const I=Gi,k=AE,$=Cr;return P(),j(se,null,[e.isDetail?(P(),j(se,{key:1},[e.needSubscribe||e.needPay?(P(),j("span",Tue,Z(b(h)),1)):(P(),j(se,{key:1},[b(g)?(P(),q(kt,{key:0,size:"small",color:"primary",variant:"tonal",class:"mr-2 mb-1 align-middle cursor-pointer","prepend-icon":"mdi:robot-happy-outline",onClick:Et(w,["stop"])},{default:A(()=>[z(Z(b(g)),1)]),_:1})):te("",!0),(P(!0),j(se,null,Fe(b(v),(R,D)=>(P(),j(se,{key:`seg-d-${D}-${R.kind}`},[R.kind==="text"?(P(),j(se,{key:0},[z(Z(R.text),1)],64)):R.kind==="tag"?(P(),q(I,{key:1,to:`/html/post/${R.tag}`,class:"inline-flex items-center text-blue-600 hover:underline dark:text-blue-300"},{default:A(()=>[z(" #"+Z(R.tag),1)]),_:2},1032,["to"])):(P(),j(se,{key:2},[z(Z(R.text),1)],64))],64))),128)),!e.needSubscribe&&!e.needPay&&(b(d)||!b(f))?(P(),j(se,{key:1},[b(m).length?(P(),j("span",Cue)):te("",!0),(P(!0),j(se,null,Fe(b(m),R=>(P(),q(I,{key:`ad-${R}`,to:`/html/post/${R}`,class:"ml-1 inline-flex items-center text-blue-600 hover:underline dark:text-blue-300"},{default:A(()=>[z(" #"+Z(R),1)]),_:2},1032,["to"]))),128))],64)):te("",!0)],64))],64)):(P(),j(se,{key:0},[L("span",Eue,[b(g)?(P(),q(kt,{key:0,size:"small",color:"primary",variant:"tonal",class:"mr-1 align-middle cursor-pointer","prepend-icon":"mdi:robot-happy-outline",onClick:Et(w,["stop"])},{default:A(()=>[z(Z(b(g)),1)]),_:1})):te("",!0),(P(!0),j(se,null,Fe(b(v),(R,D)=>(P(),j(se,{key:`seg-n-${D}-${R.kind}`},[R.kind==="text"&&R.text?(P(),q(I,{key:0,to:b(n)("thread",`${e.post.id}`),class:"text-inherit cursor-pointer",onClick:c},{default:A(()=>[z(Z(R.text),1)]),_:2},1032,["to"])):R.kind==="tag"?(P(),q(I,{key:1,to:`/html/post/${R.tag}`,class:"inline-flex items-center text-blue-600 hover:underline dark:text-blue-300",onClick:C[0]||(C[0]=Et(()=>{},["stop"]))},{default:A(()=>[z(" #"+Z(R.tag),1)]),_:2},1032,["to"])):(P(),j(se,{key:2},[z(Z(R.text),1)],64))],64))),128)),!e.needSubscribe&&!e.needPay&&(b(d)||!b(f))?(P(),j(se,{key:1},[b(m).length?(P(),j("span",wue)):te("",!0),(P(!0),j(se,null,Fe(b(m),R=>(P(),q(I,{key:`ap-${R}`,to:`/html/post/${R}`,class:"ml-1 inline-flex items-center text-blue-600 hover:underline dark:text-blue-300"},{default:A(()=>[z(" #"+Z(R),1)]),_:2},1032,["to"]))),128))],64)):te("",!0),b(f)&&!e.needSubscribe&&!e.needPay?(P(),j("span",{key:2,class:"text-primary mx-2 cursor-pointer",onClick:Et(x,["stop"])},Z(b(d)?"收起":"展开"),1)):te("",!0)]),S(I,{to:b(n)("thread",`${e.post.id}`),class:"opacity-60 hover:opacity-100 transition-opacity",onClick:c},{default:A(()=>[S(de,{icon:"mdi:chevron-right",size:"20"})]),_:1},8,["to"])],64)),S(k,{modelValue:b(y),"onUpdate:modelValue":C[1]||(C[1]=R=>Ce(y)?y.value=R:null),workflow:b(_)},null,8,["modelValue","workflow"]),b(u)?(P(),q($,{key:2,modelValue:b(u),"onUpdate:modelValue":C[2]||(C[2]=R=>Ce(u)?u.value=R:null),"initial-mode":"login"},null,8,["modelValue"])):te("",!0)],64)}}}),Aue=Object.freeze(Object.defineProperty({__proto__:null,default:l6},Symbol.toStringTag,{value:"Module"})),kue=He({id:String,interactive:Boolean,text:String,...ps(hy({closeOnBack:!1,location:"end",locationStrategy:"connected",eager:!0,minWidth:0,offset:10,openOnClick:!1,openOnHover:!0,origin:"auto",scrim:!1,scrollStrategy:"reposition",transition:null}),["absolute","persistent"])},"VTooltip"),Iue=nt()({name:"VTooltip",props:kue(),emits:{"update:modelValue":e=>!0},setup(e,t){let{slots:n}=t;const r=Qt(e,"modelValue"),{scopeId:s}=Bh(),i=Ds(),o=Ae(()=>e.id||`v-tooltip-${i}`),a=M(),l=F(()=>e.location.split(" ").length>1?e.location:e.location+" center"),u=F(()=>e.origin==="auto"||e.origin==="overlap"||e.origin.split(" ").length>1||e.location.split(" ").length>1?e.origin:e.origin+" center"),c=Ae(()=>e.transition!=null?e.transition:r.value?"scale-transition":"fade-transition"),d=F(()=>Ve({"aria-describedby":o.value},e.activatorProps));return ut(()=>{const f=bu.filterProps(e);return S(bu,Ve({ref:a,class:["v-tooltip",{"v-tooltip--interactive":e.interactive},e.class],style:e.style,id:o.value},f,{modelValue:r.value,"onUpdate:modelValue":h=>r.value=h,transition:c.value,absolute:!0,location:l.value,origin:u.value,persistent:!0,role:"tooltip",activatorProps:d.value,_disableGlobalStack:!0},s),{activator:n.activator,default:function(){for(var h=arguments.length,p=new Array(h),m=0;m<h;m++)p[m]=arguments[m];return n.default?.(...p)??e.text}})}),yi({},a)}}),Lue={class:"px-6 pt-6 pb-5"},Due={class:"flex items-center gap-3"},Pue={class:"flex-1 text-left"},Rue={class:"font-bold text-base text-gray-800 dark:text-gray-100"},Oue={class:"text-sm text-gray-600 dark:text-gray-300 flex items-center gap-1"},$ue={class:"text-center mb-6"},Mue={class:"inline-flex items-center justify-center w-16 h-16 rounded-full bg-gradient-to-br from-primary/10 to-primary/20 mb-3"},Fue={class:"text-2xl font-bold text-primary"},Bue={class:"text-lg font-medium text-gray-800 dark:text-gray-200 mb-1"},Nue={class:"bg-gray-50 dark:bg-gray-800/50 rounded-lg p-4 mb-4"},Vue={class:"flex items-center justify-between"},Uue={class:"flex items-center gap-2"},jue={class:"flex items-center gap-3"},zue={class:"font-medium text-gray-800 dark:text-gray-200"},Hue={class:"flex items-center justify-center gap-6 text-xs text-gray-500 dark:text-gray-400"},Gue={class:"flex items-center gap-1"},Kue={class:"flex items-center gap-1"},Wue={class:"flex items-center gap-1"},que={class:"mb-6"};const Yue={class:"text-primary text-sm mb-4"},u6=ke({__name:"UserBuyPostConfirmDialog",props:{user:{},post:{}},emits:["confirm","cancel","success","close"],setup(e,{expose:t,emit:n}){const r=n,s=M(!1),i=M(!1),o=M(!1),a=M(!1),l=M(5);let u=null;const c=M(!1),d=e,{user:f,refreshAuth:h,isLogin:p}=Ct(),{post:m}=it();be(p,D=>{D&&c.value&&(c.value=!1)});const v=["守护社区温度,支持即力量","支持原创,让分享更有光","你的鼓励,是作者前行的灯","守护创作,让好内容生生不息","支持社区,就是灌溉内容土壤","点滴支持,让好内容被看见","为热爱加油,社区有你更温暖","共建社区,感恩相伴","好内容值得回报,一起成长","不负优质内容,我们并肩前行"],x=M(Math.floor(Math.random()*v.length)),g=F(()=>v[x.value]),y=()=>{x.value=(x.value+1)%v.length};be(s,D=>{D||r("close")});const _=F(()=>{const D=[],O=d.post.file?.filter(U=>U.ext!=="mp4").length||0,B=d.post.file?.filter(U=>U.ext==="mp4").length||0;return O>0&&D.push(`${O} 张图片`),B>0&&D.push(`${B} 个视频`),D.length>0?D.join("、"):"精彩内容"});F(()=>{const D=f.value?.credit||0;return Math.max(0,D-d.post.credits)});const E=F(()=>(f.value?.credit||0)>=d.post.credits);function w(){s.value=!0,a.value=!1}function T(){s.value=!1,a.value=!1,u&&clearInterval(u)}
84async function C(){if(!i.value){if(!p.value){c.value=!0;return}if(!E.value){o.value=!0;return}i.value=!0;try{const D=await m.buy(d.post.id);if(D?.status==="purchased"||D?.status==="free")$(D),await h();else{const O=D?.message||"购买失败,请稍后再试";je.error(O),i.value=!1}}catch(D){console.error("购买确认失败:",D);const O=D?.response?.data?.msg||D?.response?.data?.data||D?.message||"购买失败,请稍后再试";je.error(O),i.value=!1}}}function I(){r("cancel"),T()}async function k(){await h()}function $(D){i.value=!1,a.value=!0,l.value=5,D&&($.pendingResult=D),u&&clearInterval(u),u=fi(()=>{l.value--,l.value<=0&&(clearInterval(u),R())},1e3)}function R(){const D=$.pendingResult;D&&(r("success",D),delete $.pendingResult),T()}return t({openDialog:w,closeDialog:T}),(D,O)=>{const B=Ra,U=Cr,N=Ed;return P(),j(se,null,[S(Gt,{modelValue:b(s),"onUpdate:modelValue":O[2]||(O[2]=V=>Ce(s)?s.value=V:null),"max-height":"600",persistent:""},{activator:A(V=>[Ht(D.$slots,"activator",Ks(pi({...V,onClick:w})))]),default:A(()=>[S($e,{class:"rounded-t-2xl overflow-hidden"},{default:A(()=>[b(a)?(P(),q(We,{key:1,class:"text-center py-12 px-6"},{default:A(()=>[L("div",que,[S(de,{size:"80",color:"primary",class:"mb-4 animate-bounce"},{default:A(()=>[...O[13]||(O[13]=[z(" mdi:check-circle ",-1)])]),_:1})]),O[16]||(O[16]=L("div",{class:"text-2xl font-bold mb-3 text-gray-800 dark:text-gray-200"}," 解锁成功! ",-1)),O[17]||(O[17]=L("div",{class:"text-gray-600 dark:text-gray-400 mb-6 text-base"}," 内容已解锁,现在可以永久查看~ ",-1)),te("",!0),L("div",Yue," 本窗口将在 "+Z(b(l))+" 秒后自动关闭 ",1),S(ce,{color:"primary",variant:"flat",size:"large",class:"font-bold",onClick:R},{default:A(()=>[S(de,{icon:"mdi:check",size:"18",class:"mr-2"}),O[15]||(O[15]=z(" 立即关闭 ",-1))]),_:1})]),_:1})):(P(),j(se,{key:0},[L("div",Lue,[L("div",Due,[S(B,{clickable:!1,user:e.user,size:48},null,8,["user"]),L("div",Pue,[L("div",Rue,Z(e.user.nickname),1),L("div",Oue," 付费内容 · "+Z(b(_)),1)])])]),S(We,{class:"px-6 pt-2 pb-4"},{default:A(()=>[L("div",$ue,[L("div",Mue,[L("div",Fue,[S(de,{icon:"mdi:eye-outline",size:"36"})])]),L("div",Bue," 仅需 "+Z(e.post.credits)+" 积分解锁 ",1),L("div",{class:"text-sm text-gray-500 dark:text-gray-400 my-2",onClick:y},Z(b(g)),1),O[5]||(O[5]=L("div",{class:"text-sm text-gray-500 dark:text-gray-400"}," 解锁后永久查看,不重复扣费 ",-1))]),L("div",Nue,[L("div",Vue,[L("div",Uue,[S(de,{icon:"mdi:wallet-outline",size:"18",class:"text-gray-500"}),O[6]||(O[6]=L("span",{class:"text-sm text-gray-600 dark:text-gray-400"},"当前积分",-1))]),L("div",jue,[L("span",zue,Z(b(f)?.credit||0),1),S(ce,{size:"x-small",color:"primary",variant:"outlined",class:"text-xs",onClick:O[0]||(O[0]=V=>o.value=!0)},{default:A(()=>[...O[7]||(O[7]=[z(" 充值 ",-1)])]),_:1})])])]),L("div",Hue,[L("div",Gue,[S(de,{icon:"mdi:crown-outline",size:"14",class:"text-amber-500"}),O[9]||(O[9]=L("span",null,"会员优享",-1)),S(Iue,{location:"top"},{activator:A(({props:V})=>[S(de,Ve(V,{icon:"mdi:information-outline",size:"12",class:"text-gray-400 hover:text-gray-600 cursor-pointer ml-1"}),null,16)]),default:A(()=>[O[8]||(O[8]=L("div",{class:"text-xs max-w-xs"},[L("div",{class:"font-medium mb-1"}," 会员免费浏览说明 "),L("div",{class:"space-y-1"},[L("div",null,"• 积分解锁:现在解锁可立即查看"),L("div",null,"• VIP会员:发布 60 天后免费浏览"),L("div",null,"• 普通会员:发布 90 天后免费浏览")]),L("div",{class:"mt-1 text-gray-300"})],-1))]),_:1})]),L("div",Kue,[S(de,{icon:"mdi:shield-check-outline",size:"14",class:"text-green-500"}),O[10]||(O[10]=L("span",null,"安全支付",-1))]),L("div",Wue,[S(de,{icon:"mdi:infinity",size:"14",class:"text-blue-500"}),O[11]||(O[11]=L("span",null,"永久查看",-1))])])]),_:1}),S(mn,{class:"px-6 pb-6 pt-2"},{default:A(()=>[S(sn,{defaults:{VBtn:{ripple:!1,size:"large",class:"flex-1 font-medium"}}},{default:A(()=>[S(ce,{variant:"plain",color:"grey",disabled:b(i),onClick:I},{default:A(()=>[...O[12]||(O[12]=[z(" 取消 ",-1)])]),_:1},8,["disabled"]),S(ce,{color:"primary",variant:"flat",loading:b(i),disabled:b(i),class:"font-bold shadow-sm",onClick:O[1]||(O[1]=V=>
84b(E)?C():o.value=!0)},{default:A(()=>[S(de,{icon:b(i)?"mdi:loading":b(E)?"mdi:lock-open-variant":"mdi:credit-card-outline",size:"18",class:"mr-2"},null,8,["icon"]),z(" "+Z(b(i)?"解锁中...":b(E)?"立即解锁":"充值解锁"),1)]),_:1},8,["loading","disabled"])]),_:1})]),_:1})],64))]),_:1})]),_:3},8,["modelValue"]),b(c)?(P(),q(U,{key:0,modelValue:b(c),"onUpdate:modelValue":O[3]||(O[3]=V=>Ce(c)?c.value=V:null),"initial-mode":"login"},null,8,["modelValue"])):te("",!0),b(o)?(P(),q(N,{key:1,modelValue:b(o),"onUpdate:modelValue":O[4]||(O[4]=V=>Ce(o)?o.value=V:null),onSuccess:k},null,8,["modelValue"])):te("",!0)],64)}}}),Xue=Object.freeze(Object.defineProperty({__proto__:null,default:u6},Symbol.toStringTag,{value:"Module"})),Zue={key:0,class:"bg-black bg-opacity-50 opacity-80 flex items-center justify-center w-full h-full relative",style:{cursor:"pointer"}},Jue={class:"relative w-full h-92"},Que=["disabled"],ece=ke({__name:"PlayerAdOverlay",props:{page:{},place:{},duration:{},ratio:{default:16/9},showCountdown:{type:Boolean,default:!1},autoClose:{type:Boolean,default:!1},disableClose:{type:Boolean,default:!1},minCloseSeconds:{default:0},paused:{type:Boolean,default:!1},btnStyle:{default:()=>({})}},emits:["close","upgrade"],setup(e,{emit:t}){const n=e,r=t,s=M(!0),i=M(n.duration||6),o=M(n.minCloseSeconds||0),a=F(()=>!n.disableClose&&o.value<=0),l=F(()=>({top:"1rem",right:"1rem",...n.btnStyle}));let u;const c=()=>{u&&(clearInterval(u),u=void 0)},d=()=>{n.paused||!(n.showCountdown||n.autoClose||n.minCloseSeconds&&n.minCloseSeconds>0)||(c(),u=fi(()=>{if(n.duration&&i.value>0&&(i.value--,n.autoClose&&i.value<=0)){c(),s.value=!1,r("close");return}o.value>0&&o.value--},1e3))},f=()=>{r("upgrade")},h=p=>{p&&(p.preventDefault(),p.stopPropagation()),a.value&&(s.value=!1,r("close"))};return ft(()=>{d()}),be(()=>n.paused,p=>{p?c():d()}),Er(()=>{u&&clearInterval(u)}),(p,m)=>{const v=my;return b(s)?(P(),j("div",Zue,[L("div",Jue,[S(v,{"aspect-ratio":e.ratio,"hide-pagination":!0,"hide-close":!0,page:n.page||"index",place:n.place||"top",index:-1},null,8,["aspect-ratio","page","place"])]),L("div",{class:"absolute right-4 flex items-center space-x-2 z-10",style:Qe(b(l))},[e.showCountdown&&b(i)>0?(P(),j("button",{key:0,class:"bg-black/70 text-white text-xs px-3 py-2 rounded-md cursor-default",onClick:m[0]||(m[0]=Et(()=>{},["prevent","stop"]))},Z(b(i))+"s ",1)):te("",!0),L("button",{class:"bg-black/70 text-white text-xs px-3 py-2 rounded-md",onClick:Et(f,["prevent","stop"])}," 开通会员关闭广告 "),n.disableClose?te("",!0):(P(),j("button",{key:1,class:Ie(["bg-black/70 text-white text-xs px-3 py-2 rounded-md",{"opacity-50 cursor-not-allowed":!b(a)}]),disabled:!b(a),onClick:Et(h,["prevent","stop"])}," 关闭 ",10,Que))],4)])):te("",!0)}}}),Hy=vt(ece,[["__scopeId","data-v-0836dcc0"]]),tce=Object.freeze(Object.defineProperty({__proto__:null,default:Hy},Symbol.toStringTag,{value:"Module"})),nce={class:"pay-card__scroll"},rce=["innerHTML"],sce=["innerHTML"],ice={class:"grid grid-cols-3 gap-4"},oce={class:"text-lg font-bold mb-3"},ace={class:"mb-3"},lce={class:"text-xl font-bold"},uce={class:"text-gray-400 ml-2 text-xs"},cce={key:0,class:"text-sm"},dce=["innerHTML"],fce={class:"pay-card__footer flex-shrink-0"},hce={class:"countdown-section text-white py-2 px-0 text-center"},pce={key:0,class:"text-sm"},mce={class:"text-yellow-300 countdown-text"},vce={key:1,class:"text-sm"},gce={class:"flex justify-center gap-4 px-4"},yce=ke({__name:"VodPayDialog",props:{modelValue:Boolean,tip:String},emits:["update:modelValue","close","success"],setup(e,{emit:t}){const n=e,r=t,s=Tt(),{isLogin:i}=Ct(),{visible:o}=lu(),{prod:a}=Zr().public,l=M(!1),u=M(n.modelValue),c=M(1),d=M(""),f=M("");let h=null;const p={type:"gold_vip1",name:"包月",money:50,org:100,id:1,day:30,tips:["<b>专线线路</b>","无广告","超清+高清","会员专区","会员头衔"]},m=M([p,p,p]),x=M([{id:"6alipay",name:"支付宝",icon:"/static/img/pay-alipay.png"}]),g=M({url:"",orderId:""}),y=()=>{u.value=!1,r("update:modelValue",!1),r("close")},_=async C=>{if(!i){y(),s.push("/auth/login");return}l.value=!0;
84try{const I=m.value[c.value].type;try{const{$api:k}=wt(),{url:$,orderid:R,query_api:D}=await k("user/vip_order",{method:"POST",body:Vt({url:"//"+location.host,type:I,payment:C.type,r:window.location.href})});lu().open({url:$,orderId:R,queryApi:D})}catch(k){console.error(k)}}finally{l.value=!1}},E=()=>{lu().close(),r("success"),y()},w=()=>{const I=(()=>{const $=Date.now(),R=localStorage.getItem("pay-countdown");if(R&&$<R)return Number(R);const D=$+(1800-Math.random()*400)*1e3;return localStorage.setItem("pay-countdown",D.toString()),D})(),k=()=>{const $=Date.now(),R=I-$;if(R<=0){f.value="";return}const D=Math.floor(R/1e3/60%60),O=Math.floor(R/1e3%60),B=Math.floor(R/10%100);f.value=`${D}:${O.toString().padStart(2,"0")}:${B.toString().padStart(2,"0")}`,h=requestAnimationFrame(k)};k()},T=C=>(C.money/C.day).toFixed(1);return ft(async()=>{try{const C=it(),{list:I,desc:k,payment:$}=await C.user.vipList();m.value=I[0].list,m.value=m.value.map(R=>{if(R?.gift_credit&&R.gift_credit>0){const D=R.tips||[];return{...R,tips:[...D,`<b class="text-yellow-300">送${R.gift_credit}积分</b>`]}}return R}),x.value=$,d.value=k}catch(C){console.log(C)}w()}),Er(()=>{h&&cancelAnimationFrame(h)}),(C,I)=>{const k=GS;return P(),j(se,null,[S(Gt,{modelValue:b(u),"onUpdate:modelValue":I[0]||(I[0]=$=>Ce(u)?u.value=$:null),persistent:"","max-width":"500","min-width":"350",class:"pay-dialog rounded-xl",transition:"dialog-bottom-transition","content-class":"dialog-content"},{default:A(()=>[S($e,{class:"pay-card"},{default:A(()=>[S(ce,{icon:"",variant:"text",class:"close-btn absolute right-2 top-2 z-10",onClick:y},{default:A(()=>[S(de,null,{default:A(()=>[...I[2]||(I[2]=[z("mdi-close",-1)])]),_:1})]),_:1}),S(at,{class:"text-center py-3 title-gradient flex-shrink-0"},{default:A(()=>[...I[3]||(I[3]=[L("span",{class:"text-xl font-bold text-white"},"超值 VIP 会员",-1)])]),_:1}),L("div",nce,[S(We,{class:"pt-3 pb-0 px-0 text-center"},{default:A(()=>[e.tip?(P(),j("div",{key:0,class:"text-red-500 dark:text-red-400 mb-3 animate-pulse",innerHTML:e.tip},null,8,rce)):te("",!0),L("div",{class:"text-sm text-gray-500 dark:text-gray-400 leading-relaxed",innerHTML:b(d)},null,8,sce)]),_:1}),S(We,{class:"py-6 px-2"},{default:A(()=>[L("div",ice,[(P(!0),j(se,null,Fe(b(m),($,R)=>(P(),q($e,{key:$.type,class:Ie(["plan-card cursor-pointer transition-all duration-300 p-0",b(c)===R?"selected-plan scale-105":""]),elevation:"4",onClick:D=>c.value=R},{default:A(()=>[$.badge?(P(),q(kt,{key:0,color:"error",class:"absolute -bottom-1 right-0 font-bold px-1 py-0",size:"small"},{default:A(()=>[z(Z($.badge),1)]),_:2},1024)):te("",!0),S(We,{class:"p-0 text-center"},{default:A(()=>[L("div",oce,Z($.name),1),L("div",ace,[L("span",lce,"¥"+Z($.money),1),L("del",uce,"¥"+Z($.org),1)]),$.day&&T($)>.01?(P(),j("div",cce," 约"+Z(T($))+"元/天 ",1)):te("",!0),(P(!0),j(se,null,Fe($.tips,(D,O)=>(P(),j("div",{key:O,class:"text-sm py-1.5",innerHTML:D},null,8,dce))),128))]),_:2},1024)]),_:2},1032,["class","onClick"]))),128))])]),_:1})]),L("div",fce,[L("div",hce,[b(f)?(P(),j("span",pce,[I[4]||(I[4]=z(" 请立即支付,优惠将于 ",-1)),L("b",mce,Z(b(f)),1),I[5]||(I[5]=z(" 后恢复原价 ",-1))])):(P(),j("span",vce," 时间已到,最后机会!可按优惠价支付,刷新变回原价 "))]),S(We,{class:"pt-3"},{default:A(()=>[I[6]||(I[6]=L("div",{class:"text-center text-white-300 mb-3"},[L("div",{class:"text-sm opacity-75"}," 若无法支付请选择其它通道进行支付! ")],-1)),L("div",gce,[(P(!0),j(se,null,Fe(b(x
84),($,R)=>(P(),q(ce,{key:$.id,variant:"elevated",class:"pay-btn px-6",color:"primary",size:"large",loading:b(l),onClick:D=>_($)},{default:A(()=>[z(Z($.name),1)]),_:2},1032,["loading","onClick"]))),128))])]),_:1})])]),_:1})]),_:1},8,["modelValue"]),b(o)?(P(),q(k,{key:0,modelValue:b(o),"onUpdate:modelValue":I[1]||(I[1]=$=>Ce(o)?o.value=$:null),"pay-data":b(g),onSuccess:E},null,8,["modelValue","pay-data"])):te("",!0)],64)}}}),Uu=vt(yce,[["__scopeId","data-v-27eb3777"]]),xce=Object.freeze(Object.defineProperty({__proto__:null,default:Uu},Symbol.toStringTag,{value:"Module"})),Zk=e=>e>=1e9?`${(e/1e9).toFixed(2)}b`:e>=1e6?`${(e/1e6).toFixed(2)}m`:e>=1e4?`${(e/1e4).toFixed(2)}w`:e>=1e3?`${(e/1e3).toFixed(2)}k`:`${e}`.toString(),Dr=(e,t,n)=>!e||e<1?t:n?`${n}(${Zk(e)})`:Zk(e),bce={key:0},_ce={key:1},Sce=ke({__name:"PostFavBtn",props:{id:{},initialFavored:{type:Boolean,default:!1},initialCount:{},disabled:{type:Boolean,default:!1},iconRight:{type:Boolean},hideText:{type:Boolean,default:!1},iconColor:{default:void 0},iconClass:{default:""},iconSize:{default:18}},emits:["change","success","error"],setup(e,{expose:t,emit:n}){const r=e,s=n,{setFavStatus:i,getFavStatus:o}=wy(),a=M(r.initialFavored),l=M(!1),u=F(()=>{const x=r.initialCount??0;return r.initialFavored?a.value?x:Math.max(0,x-1):a.value?x+1:x}),c=F(()=>a.value?"已收藏":"收藏");ft(()=>{if(typeof r.initialFavored=="boolean")a.value=r.initialFavored,i(String(r.id),r.initialFavored);else{const x=o(String(r.id));a.value=x}}),be(()=>r.initialFavored,x=>{if(typeof x=="boolean")a.value=x,i(String(r.id),x);else{const g=o(String(r.id));a.value=g}});const{$api:d}=wt(),{isLogin:f}=Ct(),h=M(!1),p=M(!1),m=M("");async function v(){if(!(r.disabled||l.value)){if(!f.value){h.value=!0;return}try{l.value=!0;const{code:x}=await d("/user/fav_do",{method:"POST",body:Vt({id:String(r.id),type:"post"})});a.value=x===1,i(String(r.id),a.value),s("change",a.value),s("success",a.value),a.value?je.success("收藏成功"):je.success("取消收藏成功")}catch(x){console.error("收藏操作失败:",x);const g=x?.data||x?.msg;x?.extend?.need_vip===1?(m.value='<div class="text-center">升级会员可收藏200个内容</div>',p.value=!0,je.error(g)):je.error(g||"收藏操作失败"),s("error",x)}finally{l.value=!1}}}return t({isFavored:ds(a),isLoading:ds(l),handleFav:v}),(x,g)=>{const y=Cr,_=Uu;return P(),j(se,null,[L("div",{class:Ie(["post-fav-btn",[{"post-fav-btn--disabled":e.disabled||b(l),"post-fav-btn--loading":b(l)},b(a)?"text-primary font-bold":"text-gray-500 dark:text-gray-400","text-sm","transition-colors"]]),onClick:Et(v,["stop"])},[Ht(x.$slots,"default",{isFavored:b(a),isLoading:b(l),handleFav:v},()=>[e.iconRight&&!e.hideText?(P(),j("span",bce,Z(("humanNumberWithDefault"in x?x.humanNumberWithDefault:b(Dr))(b(u),b(c),b(c))),1)):te("",!0),S(ce,{icon:"",variant:"plain",density:"comfortable",class:Ie([b(a)?"text-primary font-bold":""]),style:Qe(!b(a)&&e.iconColor?{color:e.iconColor}:void 0),disabled:e.disabled||b(l),loading:b(l)},{default:A(()=>[S(de,{icon:b(a)?"mdi:bookmark":"mdi:bookmark-outline",size:e.iconSize,class:Ie([e.iconClass])},null,8,["icon","size","class"])]),_:1},8,["class","style","disabled","loading"]),!e.iconRight&&!e.hideText?(P(),j("span",_ce,Z(("humanNumberWithDefault"in x?x.humanNumberWithDefault:b(Dr))(b(u),b(c),b(c))),1)):te("",!0)],!0)],2),b(h)?(P(),q(y,{key:0,modelValue:b(h),"onUpdate:modelValue":g[0]||(g[0]=E=>Ce(h)?h.value=E:null),"initial-mode":"login"},null,8,["modelValue"])):te("",!0),b(p)?(P(),q(_,{key:1,modelValue:b(p),"onUpdate:modelValue":g[1]||(g[1]=E=>Ce(p)?p.value=E:null),tip:b(m)},null,8,["modelValue","tip"])):te("",!0)],64)}}}),kE=vt(Sce,[["__scopeId","data-v-d3ec190f"]]),Ece=Object.freeze(Object.defineProperty({__proto__:null,default:kE},Symbol.toStringTag,{value:"Module"})),wce={key:0},Tce={key:1},Cce=ke({__name:"PostLikeBtn",props:{id:{},source:{},initialLiked:{type:Boolean,default:!1},initialCount:{default:0},disabled:{type:Boolean,default:!1},iconRight:{type:Boolean},hideText:{type:Boolean,default:!1},iconColor:{default:void 0},iconClass:{default:""},iconSize:{default:18}},emits:["change","success","error"],setup(e,{expose:t,emit:n}){const r=e,s=n,{setLikeStatus:i,getLikeStatus:o,hasLikeStatus:a}=Ey(),l=M(r.initialLiked),u=M(r.initialCount),c=M(!1);ft(()=>
84{if(typeof r.initialLiked=="boolean")l.value=r.initialLiked,i(String(r.id),r.source,r.initialLiked);else{const h=o(String(r.id),r.source);l.value=h}}),be(()=>r.initialLiked,h=>{if(typeof h=="boolean")l.value=h,i(String(r.id),r.source,h);else{const p=o(String(r.id),r.source);l.value=p}}),be(()=>r.initialCount,h=>{u.value=h});const{like:d}=it();async function f(){if(!(r.disabled||c.value))try{c.value=!0;const h=String(r.id),p={id:h,source:r.source};a(h,r.source)||(p.assume_unliked=1);const{likes:m,liked:v}=await d.source(p);l.value=v,u.value=m,i(h,r.source,l.value),s("change",l.value,u.value),s("success",l.value,u.value)}catch(h){console.error("点赞操作失败:",h),s("error",h)}finally{c.value=!1}}return t({isLiked:ds(l),likeCount:ds(u),isLoading:ds(c),handleLike:f}),(h,p)=>(P(),j("div",{class:Ie(["post-like-btn",[{"post-like-btn--disabled":e.disabled||b(c),"post-like-btn--loading":b(c)},b(l)?"text-primary font-bold":"text-gray-500 dark:text-gray-400","text-sm","transition-colors"]]),onClick:Et(f,["stop"])},[Ht(h.$slots,"default",{isLiked:b(l),likeCount:b(u),isLoading:b(c),handleLike:f},()=>[e.iconRight&&!e.hideText?(P(),j("span",wce,Z(b(Dr)(b(u),"点赞","点赞")),1)):te("",!0),S(ce,{icon:"",variant:"plain",density:"comfortable",class:Ie([b(l)?"text-primary font-bold":""]),style:Qe(!b(l)&&e.iconColor?{color:e.iconColor}:void 0),disabled:e.disabled||b(c),loading:b(c)},{default:A(()=>[S(de,{icon:b(l)?"mdi:heart":"mdi:heart-outline",size:e.iconSize,class:Ie([e.iconClass])},null,8,["icon","size","class"])]),_:1},8,["class","style","disabled","loading"]),!e.iconRight&&!e.hideText?(P(),j("span",Tce,Z(b(Dr)(b(u),"点赞","点赞")),1)):te("",!0)],!0)],2))}}),t0=vt(Cce,[["__scopeId","data-v-a63fbd6d"]]),Ace=Object.freeze(Object.defineProperty({__proto__:null,default:t0},Symbol.toStringTag,{value:"Module"}));(function(e,t,n,r,s,i,o,a){var l=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{},u=typeof l[r]=="function"&&l[r],c=u.i||{},d=u.cache||{},f=typeof module<"u"&&typeof module.require=="function"&&module.require.bind(module);function h(v,x){if(!d[v]){if(!e[v]){if(s[v])return s[v];var g=typeof l[r]=="function"&&l[r];if(!x&&g)return g(v,!0);if(u)return u(v,!0);if(f&&typeof v=="string")return f(v);var y=Error("Cannot find module '"+v+"'");throw y.code="MODULE_NOT_FOUND",y}E.resolve=function(w){var T=e[v][1][w];return T??w},E.cache={};var _=d[v]=new h.Module(v);e[v][0].call(_.exports,E,_,_.exports,l)}return d[v].exports;function E(w){var T=E.resolve(w);return T===!1?{}:h(T)}}h.isParcelRequire=!0,h.Module=function(v){this.id=v,this.bundle=h,this.require=f,this.exports={}},h.modules=e,h.cache=d,h.parent=u,h.distDir=void 0,h.publicUrl=void 0,h.devServer=void 0,h.i=c,h.register=function(v,x){e[v]=[function(g,y){y.exports=x},{}]},Object.defineProperty(h,"root",{get:function(){return l[r]}}),l[r]=h;for(var p=0;p<t.length;p++)h(t[p]);{var m=h(n);typeof exports=="object"&&typeof module<"u"?module.exports=m:typeof define=="function"&&define.amd&&define(function(){return m})}})({esqvp:[function(e,t,n,r){var s=e("@parcel/transformer-js/src/esmodule-helpers.js");s.defineInteropFlag(n);var i=e("bundle-text:./style/index.less"),o=s.interopDefault(i),a=e("option-validator"),l=s.interopDefault(a),u=e("../package.json"),c=e("./config"),d=s.interopDefault(c),f=e("./contextmenu"),h=s.interopDefault(f),p=e("./control"),m=s.interopDefault(p),v=e("./events"),x=s.interopDefault(v),g=e("./hotkey"),y=s.interopDefault(g),_=e("./i18n"),E=s.interopDefault(_),w=e("./icons"),T=s.interopDefault(w),C=e("./info"),I=s.interopDefault(C),k=e("./layer"),$=s.interopDefault(k),R=e("./loading"),D=s.interopDefault(R),O=e("./mask"),B=s.interopDefault(O),U=e("./notice"),N=s.interopDefault(U),V=e("./player"),H=s.interopDefault(V),re=e("./plugins"),W=s.interopDefault(re),X=e("./scheme"),Q=s.interopDefault(X),le=e("./setting"),ve=s.interopDefault(le),oe=e("./storage"),K=s.interopDefault(oe),ee=e("./subtitle"),ae=s.interopDefault(ee),ue=e("./template"),Ee=s.interopDefault(ue),_e=e("./utils"),J=e("./utils/emitter"),Y=s.interopDefault(J);let fe=0,xe=[];class ne extends Y.default{constructor(Le,we){if(super(),!_e.isBrowser)throw Error("Artplayer can only be used in the browser environment");this.id=++fe;let Be=_e.mergeDeep(ne.option,Le);if(Be.container=Le.container,this.option=(0,l.default)(Be,Q.default),this.isLock=!1,this.isReady=!1,this.isFocus=!1,this.isInput=!1,this.isRotate=!1,this.isDestroy=!1,this.template=new Ee.default(this),this.events=new x.default(this),this.storage=new K.default(this),this.icons=new T.default(this),this.i18n=new E.default(this),this.notice=new N.default(this),this.player=new H.default(this),this.layers=new $.default(this),this.controls=new m.default(this),this.contextmenu=new h.default(this),this.subtitle=new ae.default(this),this.info=new I.default(this),this.loading=new D.default(this),this.hotkey=new y.default(this),this.mask=new B.default(this),this.setting=new ve.default(this),this.plugins=new W.default(this),typeof we=="function"&&this.on("ready",()=>we.call(this,this)),ne.DEBUG){let Pe=qe=>console.log(`[ART.${this.id}] -> ${qe}`);Pe(`Version@${ne.version}`);for(let qe=0;qe<d.default.events.length;qe++)this.on(`video:${d.default.events[qe]}`,Me=>Pe(`Event@${Me.type}`))}xe.push(this)}static get instances(){return xe}static get version(){return u.version}static get config(){return d.default}static get utils(){return _e}static get scheme(){return Q.default}static get Emitter(){return Y.default}static get validator(){return l.default}static get kindOf(){return l.default.kindOf}static get html(){return Ee.default.html}static get option(){return{id:"",container:"#artplayer",url:"",poster:"",type:"",theme:"#f00",volume:.7,isLive:!1,muted:!1,autoplay:!1,autoSize:!1,autoMini:!1,loop:!1,flip:!1,playbackRate:!1,aspectRatio:!1,screenshot:!1,setting:!1,hotkey:!0,pip:!1,mutex:!0,backdrop:!0,fullscreen:!1,fullscreenWeb:!1,subtitleOffset:!1,miniProgressBar:!1,useSSR:!1,playsInl
84ine:!0,lock:!1,gesture:!0,fastForward:!1,autoPlayback:!1,autoOrientation:!1,airplay:!1,proxy:void 0,layers:[],contextmenu:[],controls:[],settings:[],quality:[],highlight:[],plugins:[],thumbnails:{url:"",number:60,column:10,width:0,height:0,scale:1},subtitle:{url:"",type:"",style:{},name:"",escape:!0,encoding:"utf-8",onVttLoad:Le=>Le},moreVideoAttr:{controls:!1,preload:_e.isSafari?"auto":"metadata"},i18n:{},icons:{},cssVar:{},customType:{},lang:navigator?.language.toLowerCase()}}get proxy(){return this.events.proxy}get query(){return this.template.query}get video(){return this.template.$video}destroy(Le=!0){ne.REMOVE_SRC_WHEN_DESTROY&&this.video.removeAttribute("src"),this.events.destroy(),this.template.destroy(Le),xe.splice(xe.indexOf(this),1),this.isDestroy=!0,this.emit("destroy")}}n.default=ne,ne.STYLE=o.default,ne.DEBUG=!1,ne.CONTEXTMENU=!0,ne.NOTICE_TIME=2e3,ne.SETTING_WIDTH=250,ne.SETTING_ITEM_WIDTH=200,ne.SETTING_ITEM_HEIGHT=35,ne.RESIZE_TIME=200,ne.SCROLL_TIME=200,ne.SCROLL_GAP=50,ne.AUTO_PLAYBACK_MAX=10,ne.AUTO_PLAYBACK_MIN=5,ne.AUTO_PLAYBACK_TIMEOUT=3e3,ne.RECONNECT_TIME_MAX=5,ne.RECONNECT_SLEEP_TIME=1e3,ne.CONTROL_HIDE_TIME=3e3,ne.DBCLICK_TIME=300,ne.DBCLICK_FULLSCREEN=!0,ne.MOBILE_DBCLICK_PLAY=!0,ne.MOBILE_CLICK_PLAY=!1,ne.AUTO_ORIENTATION_TIME=200,ne.INFO_LOOP_TIME=1e3,ne.FAST_FORWARD_VALUE=3,ne.FAST_FORWARD_TIME=1e3,ne.TOUCH_MOVE_RATIO=.5,ne.VOLUME_STEP=.1,ne.SEEK_STEP=5,ne.PLAYBACK_RATE=[.5,.75,1,1.25,1.5,2],ne.ASPECT_RATIO=["default","4:3","16:9"],ne.FLIP=["normal","horizontal","vertical"],ne.FULLSCREEN_WEB_IN_BODY=!1,ne.LOG_VERSION=!0,ne.USE_RAF=!1,ne.REMOVE_SRC_WHEN_DESTROY=!0,_e.isBrowser&&(window.Artplayer=ne,_e.setStyleText("artplayer-style",o.default),setTimeout(()=>{ne.LOG_VERSION&&console.log(`%c ArtPlayer %c ${ne.version} %c https://artplayer.org`,"color: #fff; background: #5f5f5f","color: #fff; background: #4bc729","")},100))},{"bundle-text:./style/index.less":"2wh8D","option-validator":"g7VGh","../package.json":"lh3R5","./config":"eJfh8","./contextmenu":"9zso8","./control":"dp1yk","./events":"jmVSD","./hotkey":"dswts","./i18n":"d9ktO","./icons":"fFHY0","./info":"kZ0F8","./layer":"j9lbi","./loading":"bMjWd","./mask":"k1nkQ","./notice":"fPVaU","./player":"uR0Sw","./plugins":"cjxJL","./scheme":"biLjm","./setting":"bwLGT","./storage":"kwqbK","./subtitle":"k5613","./template":"fwOA1","./utils":"aBlEo","./utils/emitter":"4NM7P","@parcel/transformer-js/src/esmodule-helpers.js":"loqXi"}],"2wh8D":[function(e,t,n,r){t.exports='.art-video-player{--art-theme:red;--art-font-color:#fff;--art-background-color:#000;--art-text-shadow-color:#00000080;--art-transition-duration:.2s;--art-padding:10px;--art-border-radius:3px;--art-progress-height:6px;--art-progress-color:#ffffff40;--art-hover-color:#ffffff40;--art-loaded-color:#ffffff40;--art-state-size:80px;--art-state-opacity:.8;--art-bottom-height:100px;--art-bottom-offset:20px;--art-bottom-gap:5px;--art-highlight-width:8px;--art-highlight-color:#ffffff80;--art-control-height:46px;--art-control-opacity:.75;--art-control-icon-size:36px;--art-control-icon-scale:1.1;--art-volume-height:120px;--art-volume-handle-size:14px;--art-lock-size:36px;--art-indicator-scale:0;--art-indicator-size:16px;--art-fullscreen-web-index:9999;--art-settings-icon-size:24px;--art-settings-max-height:300px;--art-selector-max-height:300px;--art-contextmenus-min-width:250px;--art-subtitle-font-size:20px;--art-subtitle-gap:5px;--art-subtitle-bottom:15px;--art-subtitle-border:#000;--art-widget-background:#000000d9;--art-tip-background:#000000b3;--art-scrollbar-size:4px;--art-scrollbar-background:#ffffff40;--art-scrollbar-background-hover:#ffffff80;--art-mini-progress-height:2px}.art-bg-cover{background-position:50%;background-repeat:no-repeat;background-size:cover}.art-bottom-gradient{background-image:linear-gradient(#0000,#0006,#000);background-position:bottom;background-repeat:repeat-x}.art-backdrop-filter{backdrop-filter:saturate(180%)blur(20px);background-color:#000000bf!important}.art-truncate{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.art-video-player{zoom:1;text-align:left;user-select:none;box-sizing:border-box;width:100%;height:100%;color:var(--art-font-color);background-color:var(--art-background-color);text-shadow:0 0 2px var(--art-text-shadow-color);-webkit-tap-highlight-color:#0000;-ms-touch-action:manipulation;touch-action:manipulation;-ms-high-contrast-adjust:none;direction:ltr;outline:0;margin:0 auto;padding:0;font-family:PingFang SC,Helvetica Neue,Microsoft YaHei,Roboto,Arial,sans-serif;font-size:14px;line-height:1.3;position:relative}.art-video-player *,.art-video-player :before,.art-video-player :after{box-sizing:border-box}.art-video-player ::-webkit-scrollbar{width:var(--art-scrollbar-size);height:var(--art-scrollbar-size)}.art-video-player ::-webkit-scrollbar-thumb{background-color:var(--art-scrollbar-background)}.art-video-player ::-webkit-scrollbar-thumb:hover{background-color:var(--art-scrollbar-background-hover)}.art-video-player img{vertical-align:top;max-width:100%}
84.art-video-player svg{fill:var(--art-font-color)}.art-video-player a{color:var(--art-font-color);text-decoration:none}.art-icon{justify-content:center;align-items:center;line-height:1;display:flex}.art-video-player.art-backdrop .art-contextmenus,.art-video-player.art-backdrop .art-info,.art-video-player.art-backdrop .art-settings,.art-video-player.art-backdrop .art-layer-auto-playback,.art-video-player.art-backdrop .art-selector-list,.art-video-player.art-backdrop .art-volume-inner{backdrop-filter:saturate(180%)blur(20px);background-color:#000000bf!important}.art-video{z-index:10;cursor:pointer;width:100%;height:100%;position:absolute;inset:0}.art-poster{z-index:11;pointer-events:none;background-position:50%;background-repeat:no-repeat;background-size:cover;width:100%;height:100%;position:absolute;inset:0}.art-video-player .art-subtitle{z-index:20;text-align:center;pointer-events:none;justify-content:center;align-items:center;gap:var(--art-subtitle-gap);width:100%;bottom:var(--art-subtitle-bottom);font-size:var(--art-subtitle-font-size);transition:bottom var(--art-transition-duration)ease;text-shadow:var(--art-subtitle-border)1px 0 1px,var(--art-subtitle-border)0 1px 1px,var(--art-subtitle-border)-1px 0 1px,var(--art-subtitle-border)0 -1px 1px,var(--art-subtitle-border)1px 1px 1px,var(--art-subtitle-border)-1px -1px 1px,var(--art-subtitle-border)1px -1px 1px,var(--art-subtitle-border)-1px 1px 1px;flex-direction:column;padding:0 5%;display:none;position:absolute}.art-video-player.art-subtitle-show .art-subtitle{display:flex}.art-video-player.art-control-show .art-subtitle{bottom:calc(var(--art-control-height) + var(--art-subtitle-bottom))}.art-danmuku{z-index:30;pointer-events:none;width:100%;height:100%;position:absolute;inset:0;overflow:hidden}.art-video-player .art-layers{z-index:40;pointer-events:none;width:100%;height:100%;display:none;position:absolute;inset:0}.art-video-player .art-layers .art-layer{pointer-events:auto}.art-video-player.art-layer-show .art-layers{display:flex}.art-video-player .art-mask{z-index:50;pointer-events:none;justify-content:center;align-items:center;width:100%;height:100%;display:flex;position:absolute;inset:0}.art-video-player .art-mask .art-state{opacity:0;width:var(--art-state-size);height:var(--art-state-size);transition:all var(--art-transition-duration)ease;justify-content:center;align-items:center;display:flex;transform:scale(2)}.art-video-player.art-mask-show .art-state{cursor:pointer;pointer-events:auto;opacity:var(--art-state-opacity);transform:scale(1)}.art-video-player.art-loading-show .art-state{display:none}.art-video-player .art-loading{z-index:70;pointer-events:none;justify-content:center;align-items:center;width:100%;height:100%;display:none;position:absolute;inset:0}.art-video-player.art-loading-show .art-loading{display:flex}.art-video-player .art-bottom{z-index:60;opacity:0;pointer-events:none;width:100%;height:100%;padding:0 var(--art-padding);transition:all var(--art-transition-duration)ease;background-size:100% var(--art-bottom-height);background-image:linear-gradient(#0000,#0006,#000);background-position:bottom;background-repeat:repeat-x;flex-direction:column;justify-content:flex-end;display:flex;position:absolute;inset:0;overflow:hidden}.art-video-player .art-bottom .art-controls,.art-video-player .art-bottom .art-progress{transform:translateY(var(--art-bottom-offset));transition:transform var(--art-transition-duration)ease}.art-video-player.art-control-show .art-bottom,.art-video-player.art-hover .art-bottom{opacity:1}.art-video-player.art-control-show .art-bottom .art-controls,.art-video-player.art-hover .art-bottom .art-controls,.art-video-player.art-control-show .art-bottom .art-progress,.art-video-player.art-hover .art-bottom .art-progress{transform:translateY(0)}.art-bottom .art-progress{z-index:0;pointer-events:auto;padding-bottom:var(--art-bottom-gap);position:relative}.art-bottom .art-progress .art-control-progress{cursor:pointer;height:var(--art-progress-height);justify-content:center;align-items:center;display:flex;position:relative}.art-bottom .art-progress .art-control-progress .art-control-progress-inner{width:100%;height:50%;transition:height var(--art-transition-duration)ease;background-color:var(--art-progress-color);align-items:center;display:flex;position:relative}.art-bottom .art-progress .art-control-progress .art-control-progress-inner .art-progress-hover{z-index:0;background-color:var(--art-hover-color);width:0%;height:100%;position:absolute;inset:0}.art-bottom .art-progress .art-control-progress .art-control-progress-inner .art-progress-loaded{z-index:10;background-color:var(--art-loaded-color);width:0%;height:100%;position:absolute;inset:0}.art-bottom .art-progress .art-control-progress .art-control-progress-inner .art-progress-played{z-index:20;background-color:var(--art-theme);width:0%;height:100%;position:absolute;inset:0}.art-bottom .art-progress .art-control-progress .art-control-progress-inner .art-progress-highlight{z-index:30;pointer-events:none;width:100%;height:100%;position:absolute;inset:0}.art-bottom .art-progress .art-control-progress .art-control-progress-inner .art-progress-highlight span{z-index:0;pointer-events:auto;width:100%;height:100%;transform:translateX(calc(var(--art-highlight-width)/-2));background-color:var(--art-highlight-color);position:absolute;inset:0 auto 0 0;width:var(--art-highlight-width)!important}.art-bottom .art-progress .art-control-progress .art-control-progress-inner .art-progress-indicator{z-index:40;width:var(--art-indicator-size);height:var(--art-indicator-size);transform:scale(var(--art-indicator-scale));margin-left:calc(var(--art-indicator-size)/-2);transition:transform var(--art-transition-duration)ease;border-radius:50%;justify-content:center;align-items:center;display:flex;position:absolute;
84left:0}.art-bottom .art-progress .art-control-progress .art-control-progress-inner .art-progress-indicator .art-icon{pointer-events:none;width:100%;height:100%}.art-bottom .art-progress .art-control-progress .art-control-progress-inner .art-progress-indicator:hover{transform:scale(1.2)!important}.art-bottom .art-progress .art-control-progress .art-control-progress-inner .art-progress-indicator:active{transform:scale(1)!important}.art-bottom .art-progress .art-control-progress .art-control-progress-inner .art-progress-tip{z-index:50;border-radius:var(--art-border-radius);white-space:nowrap;background-color:var(--art-tip-background);padding:3px 5px;font-size:12px;line-height:1;display:none;position:absolute;top:-25px;left:0}.art-bottom .art-progress .art-control-progress:hover .art-control-progress-inner{height:100%}.art-bottom .art-progress .art-control-thumbnails{bottom:calc(var(--art-bottom-gap) + 10px);border-radius:var(--art-border-radius);pointer-events:none;background-color:var(--art-widget-background);display:none;position:absolute;left:0;box-shadow:0 1px 3px #0003,0 1px 2px -1px #0003}.art-bottom:hover .art-progress .art-control-progress .art-control-progress-inner .art-progress-indicator{transform:scale(1)}.art-controls{z-index:10;pointer-events:auto;height:var(--art-control-height);justify-content:space-between;align-items:center;display:flex;position:relative}.art-controls .art-controls-left,.art-controls .art-controls-right{height:100%;display:flex}.art-controls .art-controls-center{flex:1;justify-content:center;align-items:center;height:100%;padding:0 10px;display:none}.art-controls .art-controls-right{justify-content:flex-end}.art-controls .art-control{cursor:pointer;white-space:nowrap;opacity:var(--art-control-opacity);min-height:var(--art-control-height);min-width:var(--art-control-height);transition:opacity var(--art-transition-duration)ease;flex-shrink:0;justify-content:center;align-items:center;display:flex}.art-controls .art-control .art-icon{height:var(--art-control-icon-size);width:var(--art-control-icon-size);transform:scale(var(--art-control-icon-scale));transition:transform var(--art-transition-duration)ease}.art-controls .art-control .art-icon:active{transform:scale(calc(var(--art-control-icon-scale)*.8))}.art-controls .art-control:hover{opacity:1}.art-control-volume{position:relative}.art-control-volume .art-volume-panel{text-align:center;cursor:default;opacity:0;pointer-events:none;left:0;right:0;bottom:var(--art-control-height);width:var(--art-control-height);height:var(--art-volume-height);transition:all var(--art-transition-duration)ease;justify-content:center;align-items:center;padding:0 5px;font-size:12px;display:flex;position:absolute;transform:translateY(10px)}.art-control-volume .art-volume-panel .art-volume-inner{border-radius:var(--art-border-radius);background-color:var(--art-widget-background);flex-direction:column;align-items:center;gap:10px;width:100%;height:100%;padding:10px 0 12px;display:flex}.art-control-volume .art-volume-panel .art-volume-inner .art-volume-slider{cursor:pointer;flex:1;justify-content:center;width:100%;display:flex;position:relative}.art-control-volume .art-volume-panel .art-volume-inner .art-volume-slider .art-volume-handle{border-radius:var(--art-border-radius);background-color:#ffffff40;justify-content:center;width:2px;display:flex;position:relative;overflow:hidden}.art-control-volume .art-volume-panel .art-volume-inner .art-volume-slider .art-volume-handle .art-volume-loaded{z-index:0;background-color:var(--art-theme);width:100%;height:100%;position:absolute;inset:0}.art-control-volume .art-volume-panel .art-volume-inner .art-volume-slider .art-volume-indicator{width:var(--art-volume-handle-size);height:var(--art-volume-handle-size);margin-top:calc(var(--art-volume-handle-size)/-2);background-color:var(--art-theme);transition:transform var(--art-transition-duration)ease;border-radius:100%;flex-shrink:0;position:absolute;transform:scale(1)}.art-control-volume .art-volume-panel .art-volume-inner .art-volume-slider:active .art-volume-indicator{transform:scale(.9)}.art-control-volume:hover .art-volume-panel{opacity:1;pointer-events:auto;transform:translateY(0)}.art-video-player .art-notice{z-index:80;width:100%;height:auto;
84padding:var(--art-padding);pointer-events:none;display:none;position:absolute;inset:0 0 auto}.art-video-player .art-notice .art-notice-inner{border-radius:var(--art-border-radius);background-color:var(--art-tip-background);padding:5px;line-height:1;display:inline-flex}.art-video-player.art-notice-show .art-notice{display:flex}.art-video-player .art-contextmenus{z-index:120;border-radius:var(--art-border-radius);background-color:var(--art-widget-background);min-width:var(--art-contextmenus-min-width);flex-direction:column;padding:5px 0;font-size:12px;display:none;position:absolute}.art-video-player .art-contextmenus .art-contextmenu{cursor:pointer;border-bottom:1px solid #ffffff1a;padding:10px 15px;display:flex}.art-video-player .art-contextmenus .art-contextmenu span{padding:0 8px}.art-video-player .art-contextmenus .art-contextmenu span:hover,.art-video-player .art-contextmenus .art-contextmenu span.art-current{color:var(--art-theme)}.art-video-player .art-contextmenus .art-contextmenu:hover{background-color:#ffffff1a}.art-video-player .art-contextmenus .art-contextmenu:last-child{border-bottom:none}.art-video-player.art-contextmenu-show .art-contextmenus{display:flex}.art-video-player .art-settings{z-index:90;border-radius:var(--art-border-radius);max-height:var(--art-settings-max-height);left:auto;right:var(--art-padding);bottom:var(--art-control-height);transition:all var(--art-transition-duration)ease;background-color:var(--art-widget-background);flex-direction:column;display:none;position:absolute;overflow:hidden auto}.art-video-player .art-settings .art-setting-panel{flex-direction:column;display:none}.art-video-player .art-settings .art-setting-panel.art-current{display:flex}.art-video-player .art-settings .art-setting-panel .art-setting-item{cursor:pointer;transition:background-color var(--art-transition-duration)ease;justify-content:space-between;align-items:center;padding:0 5px;display:flex;overflow:hidden}.art-video-player .art-settings .art-setting-panel .art-setting-item:hover{background-color:#ffffff1a}.art-video-player .art-settings .art-setting-panel .art-setting-item.art-current{color:var(--art-theme)}.art-video-player .art-settings .art-setting-panel .art-setting-item .art-icon-check{visibility:hidden;height:15px}.art-video-player .art-settings .art-setting-panel .art-setting-item.art-current .art-icon-check{visibility:visible}.art-video-player .art-settings .art-setting-panel .art-setting-item .art-setting-item-left{flex-shrink:0;justify-content:center;align-items:center;gap:5px;display:flex}.art-video-player .art-settings .art-setting-panel .art-setting-item .art-setting-item-left .art-setting-item-left-icon{height:var(--art-settings-icon-size);width:var(--art-settings-icon-size);justify-content:center;align-items:center;display:flex}.art-video-player .art-settings .art-setting-panel .art-setting-item .art-setting-item-right{justify-content:center;align-items:center;gap:5px;font-size:12px;display:flex}.art-video-player .art-settings .art-setting-panel .art-setting-item .art-setting-item-right .art-setting-item-right-tooltip{white-space:nowrap;color:#ffffff80}.art-video-player .art-settings .art-setting-panel .art-setting-item .art-setting-item-right .art-setting-item-right-icon{justify-content:center;align-items:center;min-width:32px;height:24px;display:flex}.art-video-player .art-settings .art-setting-panel .art-setting-item .art-setting-item-right .art-setting-range{appearance:none;background-color:#fff3;outline:none;width:80px;height:3px}.art-video-player .art-settings .art-setting-panel .art-setting-item-back{border-bottom:1px solid #ffffff1a}.art-video-player.art-setting-show .art-settings{display:flex}.art-video-player .art-info{left:var(--art-padding);top:var(--art-padding);z-index:100;border-radius:var(--art-border-radius);background-color:var(--art-widget-background);padding:10px;font-size:12px;display:none;position:absolute}.art-video-player .art-info .art-info-panel{flex-direction:column;gap:5px;display:flex}.art-video-player .art-info .art-info-panel .art-info-item{align-items:center;gap:5px;
84display:flex}.art-video-player .art-info .art-info-panel .art-info-item .art-info-title{text-align:right;width:100px}.art-video-player .art-info .art-info-panel .art-info-item .art-info-content{text-overflow:ellipsis;white-space:nowrap;user-select:all;width:250px;overflow:hidden}.art-video-player .art-info .art-info-close{cursor:pointer;position:absolute;top:5px;right:5px}.art-video-player.art-info-show .art-info{display:flex}.art-hide-cursor *{cursor:none!important}.art-video-player[data-aspect-ratio]{overflow:hidden}.art-video-player[data-aspect-ratio] .art-video{object-fit:fill;box-sizing:content-box}.art-fullscreen{--art-progress-height:8px;--art-indicator-size:20px;--art-control-height:60px;--art-control-icon-scale:1.3}.art-fullscreen-web{--art-progress-height:8px;--art-indicator-size:20px;--art-control-height:60px;--art-control-icon-scale:1.3;z-index:var(--art-fullscreen-web-index);width:100%;height:100%;position:fixed;inset:0}.art-mini-popup{z-index:9999;border-radius:var(--art-border-radius);cursor:move;user-select:none;background:#000;width:320px;height:180px;transition:opacity .2s;position:fixed;overflow:hidden;box-shadow:0 0 5px #00000080}.art-mini-popup svg{fill:#fff}.art-mini-popup .art-video{pointer-events:none}.art-mini-popup .art-mini-close{z-index:20;cursor:pointer;opacity:0;transition:opacity .2s;position:absolute;top:10px;right:10px}.art-mini-popup .art-mini-state{z-index:30;pointer-events:none;opacity:0;background-color:#00000040;justify-content:center;align-items:center;width:100%;height:100%;transition:opacity .2s;display:flex;position:absolute;inset:0}.art-mini-popup .art-mini-state .art-icon{opacity:.75;cursor:pointer;pointer-events:auto;transition:transform .2s;transform:scale(3)}.art-mini-popup .art-mini-state .art-icon:active{transform:scale(2.5)}.art-mini-popup.art-mini-dragging{opacity:.9}.art-mini-popup:hover .art-mini-close,.art-mini-popup:hover .art-mini-state{opacity:1}.art-video-player[data-flip=horizontal] .art-video{transform:scaleX(-1)}.art-video-player[data-flip=vertical] .art-video{transform:scaleY(-1)}.art-video-player .art-layer-lock{height:var(--art-lock-size);width:var(--art-lock-size);top:50%;left:var(--art-padding);background-color:var(--art-tip-background);border-radius:50%;justify-content:center;align-items:center;display:none;position:absolute;transform:translateY(-50%)}.art-video-player .art-layer-auto-playback{border-radius:var(--art-border-radius);left:var(--art-padding);bottom:calc(var(--art-control-height) + var(--art-bottom-gap) + 10px);background-color:var(--art-widget-background);align-items:center;gap:10px;padding:10px;line-height:1;display:none;position:absolute}.art-video-player .art-layer-auto-playback .art-auto-playback-close{cursor:pointer;justify-content:center;align-items:center;display:flex}.art-video-player .art-layer-auto-playback .art-auto-playback-close svg{width:15px;height:15px;
84fill:var(--art-theme)}.art-video-player .art-layer-auto-playback .art-auto-playback-jump{color:var(--art-theme);cursor:pointer}.art-video-player.art-lock .art-subtitle{bottom:var(--art-subtitle-bottom)!important}.art-video-player.art-mini-progress-bar .art-bottom,.art-video-player.art-lock .art-bottom{opacity:1;background-image:none;padding:0}.art-video-player.art-mini-progress-bar .art-bottom .art-controls,.art-video-player.art-lock .art-bottom .art-controls,.art-video-player.art-mini-progress-bar .art-bottom .art-progress,.art-video-player.art-lock .art-bottom .art-progress{transform:translateY(calc(var(--art-control-height) + var(--art-bottom-gap) + var(--art-progress-height)/4))}.art-video-player.art-mini-progress-bar .art-bottom .art-progress-indicator,.art-video-player.art-lock .art-bottom .art-progress-indicator{display:none!important}.art-video-player.art-control-show .art-layer-lock{display:flex}.art-control-selector{justify-content:center;display:flex;position:relative}.art-control-selector .art-selector-list{text-align:center;border-radius:var(--art-border-radius);opacity:0;pointer-events:none;bottom:var(--art-control-height);max-height:var(--art-selector-max-height);background-color:var(--art-widget-background);transition:all var(--art-transition-duration)ease;flex-direction:column;align-items:center;display:flex;position:absolute;overflow:hidden auto;transform:translateY(10px)}.art-control-selector .art-selector-list .art-selector-item{flex-shrink:0;justify-content:center;align-items:center;width:100%;padding:10px 15px;line-height:1;display:flex}.art-control-selector .art-selector-list .art-selector-item:hover{background-color:#ffffff1a}.art-control-selector .art-selector-list .art-selector-item:hover,.art-control-selector .art-selector-list .art-selector-item.art-current{color:var(--art-theme)}.art-control-selector:hover .art-selector-list{opacity:1;pointer-events:auto;transform:translateY(0)}[class*=hint--]{font-style:normal;display:inline-block;position:relative}[class*=hint--]:before,[class*=hint--]:after{visibility:hidden;opacity:0;z-index:1000000;pointer-events:none;transition:all .3s;position:absolute;transform:translate(0,0)}[class*=hint--]:hover:before,[class*=hint--]:hover:after{visibility:visible;opacity:1;transition-delay:.1s}[class*=hint--]:before{content:"";z-index:1000001;background:0 0;border:6px solid #0000;position:absolute}[class*=hint--]:after{color:#fff;white-space:nowrap;background:#000;padding:8px 10px;font-family:Helvetica Neue,Helvetica,Arial,sans-serif;font-size:12px;line-height:12px}[class*=hint--][aria-label]:after{content:attr(aria-label)}[class*=hint--][data-hint]:after{content:attr(data-hint)}[aria-label=""]:before,[aria-label=""]:after,[data-hint=""]:before,[data-hint=""]:after{display:none!important}.hint--top-left:before,.hint--top-right:before,.hint--top:before{border-top-color:#000}.hint--bottom-left:before,.hint--bottom-right:before,.hint--bottom:before{border-bottom-color:#000}.hint--left:before{border-left-color:#000}.hint--right:before{border-right-color:#000}.hint--top:before{margin-bottom:-11px}.hint--top:before,.hint--top:after{bottom:100%;left:50%}.hint--top:before{left:calc(50% - 6px)}.hint--top:after{transform:translate(-50%)}.hint--top:hover:before{transform:translateY(-8px)}.hint--top:hover:after{transform:translate(-50%)translateY(-8px)}.hint--bottom:before{margin-top:-11px}.hint--bottom:before,.hint--bottom:after{top:100%;left:50%}.hint--bottom:before{left:calc(50% - 6px)}.hint--bottom:after{transform:translate(-50%)}.hint--bottom:hover:before{transform:translateY(8px)}.hint--bottom:hover:after{transform:translate(-50%)translateY(8px)}.hint--right:before{margin-bottom:-6px;margin-left:-11px}.hint--right:after{margin-bottom:-14px}.hint--right:before,.hint--right:after{bottom:50%;left:100%}.hint--right:hover:before,.hint--right:hover:after{transform:translate(8px)}.hint--left:before{margin-bottom:-6px;margin-right:-11px}.hint--left:after{margin-bottom:-14px}.hint--left:before,.hint--left:after{bottom:50%;right:100%}.hint--left:hover:before,.hint--left:hover:after{transform:translate(-8px)}.hint--top-left:before{margin-bottom:-11px}.hint--top-left:before,.hint--top-left:after{bottom:100%;left:50%}.hint--top-left:before{left:calc(50% - 6px)}.hint--top-left:after{margin-left:12px;transform:translate(-100%)}.hint--top-left:hover:before{transform:translateY(-8px)}.hint--top-left:hover:after{transform:translate(-100%)translateY(-8px)}.hint--top-right:before{margin-bottom:-11px}.hint--top-right:before,.hint--top-right:after{bottom:100%;left:50%}.hint--top-right:before{left:calc(50% - 6px)}.hint--top-right:after{margin-left:-12px;transform:translate(0)}.hint--top-right:hover:before,.hint--top-right:hover:after{transform:translateY(-8px)}.hint--bottom-left:before{margin-top:-11px}.hint--bottom-left:before,.hint--bottom-left:after{top:100%;left:50%}.hint--bottom-left:before{left:calc(50% - 6px)}.hint--bottom-left:after{margin-left:12px;transform:translate(-100%)}.hint--bottom-left:hover:before{transform:translateY(8px)}.hint--bottom-left:hover:after{transform:translate(-100%)translateY(8px)}.hint--bottom-right:before{margin-top:-11px}.hint--bottom-right:before,.hint--bottom-right:after{top:100%;left:50%}.hint--bottom-right:before{left:calc(50% - 6px)}.hint--bottom-right:after{margin-left:-12px;transform:translate(0)}.hint--bottom-right:hover:before,.hint--bottom-right:hover:after{transform:translateY(8px)}.hint--small:after,.hint--medium:after,.hint--large:after{white-space:normal;word-wrap:break-word;line-height:1.4em}.hint--small:after{width:80px}.hint--medium:after{width:150px}.hint--large:after{width:300px}[class*=hint--]:after{text-shadow:0 -1px #000;box-shadow:4px 4px 8px #0000004d}.hint--error:after{text-shadow:0 -1px #592726;background-color:#b34e4d}.hint--error.hint--top-left:before,.hint--error.hint--top-right:before,.hint--error.hint--top:before{border-top-color:#b34e4d}.hint--error.hint--bottom-left:before,.hint--error.hint--bottom-right:before,.hint--error.hint--bottom:before{border-bottom-color:#b34e4d}.hint--error.hint--left:before{border-left-color:#b34e4d}.hint--error.hint--right:before{border-right-color:#b34e4d}.hint--warning:after{text-shadow:0 -1px #6c5328;background-color:#c09854}.hint--warning.hint--top-left:before,.hint--warning.hint--top-right:before,.hint--warning.hint--top:before{border-top-color:#c09854}.hint--warning.hint--bottom-left:before,.hint--warning.hint--bottom-right:before,.hint--warning.hint--bottom:before{border-bottom-color:#c09854}.hint--warning.hint--left:before{border-left-color:#c09854}.hint--warning.hint--right:before{border-right-color:#c09854}.hint--info:after{text-shadow:0 -1px #1a3c4d;background-color:#3986ac}.hint--info.hint--top-left:before,.hint--info.hint--top-right:before,.hint--info.hint--top:before{border-top-color:#3986ac}.hint--info.hint--bottom-left:before,.hint--info.hint--bottom-right:before,.hint--info.hint--bottom:before{border-bottom-color:#3986ac}.hint--info.hint--left:before{border-left-color:#3986ac}.hint--info.hint--right:before{border-right-color:#3986ac}.hint--success:after{text-shadow:0 -1px #1a321a;background-color:#458746}.hint--success.hint--top-left:before,.hint--success.hint--top-right:before,.hint--success.hint--top:before{border-top-color:#458746}.hint--success.hint--bottom-left:before,.hint--success.hint--bottom-right:before,.hint--success.hint--bottom:before{border-bottom-color:#458746}.hint--success.hint--left:before{border-left-color:#458746}.hint--success.hint--right:before{border-right-color:#458746}.hint--always:after,.hint--always:before{opacity:1;visibility:visible}.hint--always.hint--top:before{transform:translateY(-8px)}.hint--always.hint--top:after{transform:translate(-50%)translateY(-8px)}.hint--always.hint--top-left:before{transform:translateY(-8px)}.hint--always.hint--top-left:after{transform:translate(-100%)translateY(-8px)}.hint--always.hint--top-right:before,.hint--always.hint--top-right:after{transform:translateY(-8px)}.hint--always.hint--bottom:before{transform:translateY(8px)}.hint--always.hint--bottom:after{transform:translate(-50%)translateY(8px)}.hint--always.hint--bottom-left:before{transform:translateY(8px)}.hint--always.hint--bottom-left:after{transform:translate(-100%)translateY(8px)}.hint--always.hint--bottom-right:before,.hint--always.hint--bottom-right:after{transform:translateY(8px)}.hint--always.hint--left:before,.hint--always.hint--left:after{transform:translate(-8px)}.hint--always.hint--right:before,.hint--always.hint--right:after{transform:translate(8px)}.hint--rounded:after{border-radius:4px}.hint--no-animate:before,.hint--no-animate:after{transition-duration:0s}
84.hint--bounce:before,.hint--bounce:after{-webkit-transition:opacity .3s,visibility .3s,-webkit-transform .3s cubic-bezier(.71,1.7,.77,1.24);-moz-transition:opacity .3s,visibility .3s,-moz-transform .3s cubic-bezier(.71,1.7,.77,1.24);transition:opacity .3s,visibility .3s,transform .3s cubic-bezier(.71,1.7,.77,1.24)}.hint--no-shadow:before,.hint--no-shadow:after{text-shadow:initial;box-shadow:initial}.hint--no-arrow:before{display:none}.art-video-player.art-mobile{--art-bottom-gap:10px;--art-control-height:38px;--art-control-icon-scale:1;--art-state-size:60px;--art-settings-max-height:180px;--art-selector-max-height:180px;--art-indicator-scale:1;--art-control-opacity:1}.art-video-player.art-mobile .art-controls-left{margin-left:calc(var(--art-padding)/-1)}.art-video-player.art-mobile .art-controls-right{margin-right:calc(var(--art-padding)/-1)}'},{}],g7VGh:[function(e,t,n,r){t.exports=(function(){function s(d){return(s=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(f){return typeof f}:function(f){return f&&typeof Symbol=="function"&&f.constructor===Symbol&&f!==Symbol.prototype?"symbol":typeof f})(d)}var i=Object.prototype.toString,o=function(d){if(d===void 0)return"undefined";if(d===null)return"null";var f=s(d);if(f==="boolean")return"boolean";if(f==="string")return"string";if(f==="number")return"number";if(f==="symbol")return"symbol";if(f==="function")return a(d)==="GeneratorFunction"?"generatorfunction":"function";if(Array.isArray?Array.isArray(d):d instanceof Array)return"array";if(d.constructor&&typeof d.constructor.isBuffer=="function"&&d.constructor.isBuffer(d))return"buffer";if((function(h){try{if(typeof h.length=="number"&&typeof h.callee=="function")return!0}catch(p){if(p.message.indexOf("callee")!==-1)return!0}return!1})(d))return"arguments";if(d instanceof Date||typeof d.toDateString=="function"&&typeof d.getDate=="function"&&typeof d.setDate=="function")return"date";if(d instanceof Error||typeof d.message=="string"&&d.constructor&&typeof d.constructor.stackTraceLimit=="number")return"error";if(d instanceof RegExp||typeof d.flags=="string"&&typeof d.ignoreCase=="boolean"&&typeof d.multiline=="boolean"&&typeof d.global=="boolean")return"regexp";switch(a(d)){case"Symbol":return"symbol";case"Promise":return"promise";case"WeakMap":return"weakmap";case"WeakSet":return"weakset";case"Map":return"map";case"Set":return"set";case"Int8Array":return"int8array";case"Uint8Array":return"uint8array";case"Uint8ClampedArray":return"uint8clampedarray";case"Int16Array":return"int16array";case"Uint16Array":return"uint16array";case"Int32Array":return"int32array";case"Uint32Array":return"uint32array";case"Float32Array":return"float32array";case"Float64Array":return"float64array"}if(typeof d.throw=="function"&&typeof d.return=="function"&&typeof d.next=="function")return"generator";switch(f=i.call(d)){case"[object Object]":return"object";case"[object Map Iterator]":return"mapiterator";case"[object Set Iterator]":return"setiterator";case"[object String Iterator]":return"stringiterator";case"[object Array Iterator]":return"arrayiterator"}return f.slice(8,-1).toLowerCase().replace(/\s/g,"")};function a(d){return d.constructor?d.constructor.name:null}function l(d,f){var h=2<arguments.length&&arguments[2]!==void 0?arguments[2]:["option"];return u(d,f,h),c(d,f,h),(function(p,m,v){var x=o(m),g=o(p);if(x==="object"){if(g!=="object")throw Error("[Type Error]: '".concat(v.join("."),"' require 'object' type, but got '").concat(g,"'"));Object.keys(m).forEach(function(y){var _=p[y],E=m[y],w=v.slice();w.push(y),u(_,E,w),c(_,E,w),l(_,E,w)})}if(x==="array"){if(g!=="array")throw Error("[Type Error]: '".concat(v.join("."),"' require 'array' type, but got '").concat(g,"'"));p.forEach(function(y,_){var E=p[_],w=m[_]||m[0],T=v.slice();T.push(_),u(E,w,T),c(E,w,T),l(E,w,T)})}})(d,f,h),d}function u(d,f,h){if(o(f)==="string"){var p=o(d);if(f[0]==="?"&&(f=f.slice(1)+"|undefined"),!(-1<f.indexOf("|")?f.split("|").map(function(m){return m.toLowerCase().trim()}).filter(Boolean).some(function(m){return p===m}):f.toLowerCase().trim()===p))throw Error("[Type Error]: '".concat(h.join("."),"' require '").concat(f,"' type, but got '").concat(p,"'"))}}function c(d,f,h){if(o(f)==="function"){var p=f(d,o(d),h);if(p!==!0){var m=o(p);throw m==="string"?Error(p):m==="error"?p:Error("[Validator Error]: The scheme for '".concat(h.join("."),"' validator require return true, but got '").concat(p,"'"))}}}
vendor: 34,143 bytes, lines 84-92
84return l.kindOf=o,l})()},{}],lh3R5:[function(e,t,n,r){t.exports=JSON.parse('{"name":"artplayer","version":"5.3.0","description":"ArtPlayer.js is a modern and full featured HTML5 video player","author":"Harvey Zack <[email protected]>","license":"MIT","homepage":"https://artplayer.org","repository":{"type":"git","url":"git+https://github.com/zhw2590582/ArtPlayer.git"},"bugs":{"url":"https://github.com/zhw2590582/ArtPlayer/issues"},"keywords":["html5","video","player"],"exports":{".":{"types":"./types/artplayer.d.ts","import":"./dist/artplayer.mjs","require":"./dist/artplayer.js"},"./legacy":{"types":"./types/artplayer.d.ts","import":"./dist/artplayer.legacy.js","require":"./dist/artplayer.legacy.js"},"./i18n/*":{"types":"./types/i18n.d.ts","import":"./dist/i18n/*.mjs","require":"./dist/i18n/*.js"}},"main":"./dist/artplayer.js","module":"./dist/artplayer.mjs","types":"./types/artplayer.d.ts","typesVersions":{"*":{"i18n/*":["types/i18n.d.ts"],"legacy":["types/artplayer.d.ts"]}},"legacy":"./dist/artplayer.legacy.js","browserslist":"last 1 Chrome version","dependencies":{"option-validator":"^2.0.6"}}')},{}],eJfh8:[function(e,t,n,r){e("@parcel/transformer-js/src/esmodule-helpers.js").defineInteropFlag(n),n.default={properties:["audioTracks","autoplay","buffered","controller","controls","crossOrigin","currentSrc","currentTime","defaultMuted","defaultPlaybackRate","duration","ended","error","loop","mediaGroup","muted","networkState","paused","playbackRate","played","preload","readyState","seekable","seeking","src","startDate","textTracks","videoTracks","volume"],methods:["addTextTrack","canPlayType","load","play","pause"],events:["abort","canplay","canplaythrough","durationchange","emptied","ended","error","loadeddata","loadedmetadata","loadstart","pause","play","playing","progress","ratechange","seeked","seeking","stalled","suspend","timeupdate","volumechange","waiting"],prototypes:["width","height","videoWidth","videoHeight","poster","webkitDecodedFrameCount","webkitDroppedFrameCount","playsInline","webkitSupportsFullscreen","webkitDisplayingFullscreen","onenterpictureinpicture","onleavepictureinpicture","disablePictureInPicture","cancelVideoFrameCallback","requestVideoFrameCallback","getVideoPlaybackQuality","requestPictureInPicture","webkitEnterFullScreen","webkitEnterFullscreen","webkitExitFullScreen","webkitExitFullscreen"]}},{"@parcel/transformer-js/src/esmodule-helpers.js":"loqXi"}],loqXi:[function(e,t,n,r){n.interopDefault=function(s){return s&&s.__esModule?s:{default:s}},n.defineInteropFlag=function(s){Object.defineProperty(s,"__esModule",{value:!0})},n.exportAll=function(s,i){return Object.keys(s).forEach(function(o){o==="default"||o==="__esModule"||Object.prototype.hasOwnProperty.call(i,o)||Object.defineProperty(i,o,{enumerable:!0,get:function(){return s[o]}})}),i},n.export=function(s,i,o){Object.defineProperty(s,i,{enumerable:!0,get:o})}},{}],"9zso8":[function(e,t,n,r){var s=e("@parcel/transformer-js/src/esmodule-helpers.js");s.defineInteropFlag(n);var i=e("../utils"),o=e("../utils/component"),a=s.interopDefault(o),l=e("./aspectRatio"),u=s.interopDefault(l),c=e("./close"),d=s.interopDefault(c),f=e("./flip"),h=s.interopDefault(f),p=e("./info"),m=s.interopDefault(p),v=e("./playbackRate"),x=s.interopDefault(v),g=e("./version"),y=s.interopDefault(g);class _ extends a.default{constructor(w){super(w),this.name="contextmenu",this.$parent=w.template.$contextmenu,i.isMobile||this.init()}init(){let{option:w,proxy:T,template:{$player:C,$contextmenu:I}}=this.art;w.playbackRate&&this.add((0,x.default)({name:"playbackRate",index:10})),w.aspectRatio&&this.add((0,u.default)({name:"aspectRatio",index:20})),w.flip&&this.add((0,h.default)({name:"flip",index:30})),this.add((0,m.default)({name:"info",index:40})),this.add((0,y.default)({name:"version",index:50})),this.add((0,d.default)({name:"close",index:60}));for(let k=0;k<w.contextmenu.length;k++)this.add(w.contextmenu[k]);T(C,"contextmenu",k=>{if(!this.art.constructor.CONTEXTMENU)return;k.preventDefault(),this.show=!0;let $=k.clientX,R=k.clientY,{height:D,width:O,left:B,top:U}=(0,i.getRect)(C),{height:N,width:V}=(0,i.getRect)(I),H=$-B,re=R-U;$+V>B+O&&(H=O-V),R+N>U+D&&(re=D-N),(0,i.setStyles)(I,{top:`${re}px`,left:`${H}px`})}),T(C,"click",k=>{(0,i.includeFromEvent)(k,I)||(this.show=!1)}),this.art.on("blur",()=>{this.show=!1})}}n.default=_},{"../utils":"aBlEo","../utils/component":"idCEj","./aspectRatio":"6XHP2","./close":"eF6AX","./flip":"7Wg1P","./info":"fjRnU","./playbackRate":"hm1DY","./version":"aJBeL","@parcel/transformer-js/src/esmodule-helpers.js":"loqXi"}],aBlEo:[function(e,t,n,r){var s=e("@parcel/transformer-js/src/esmodule-helpers.js");s.defineInteropFlag(n);var i=e("./compatibility");s.exportAll(i,n);var o=e("./dom");s.exportAll(o,n);var a=e("./error");s.exportAll(a,n);var l=e("./file");s.exportAll(l,n);var u=e("./format");s.exportAll(u,n);var c=e("./property");s.exportAll(c,n);var d=e("./subtitle");s.exportAll(d,n);var f=e("./time");s.exportAll(f,n)},{"./compatibility":"jg0yq","./dom":"eANXw","./error":"4FwTI","./file":"i2JbS","./format":"dy9GH","./property":"jY49c","./subtitle":"ke7ox","./time":"f7gsx","@parcel/transformer-js/src/esmodule-helpers.js":"loqXi"}],jg0yq:[function(e,t,n,r){var s=e("@parcel/transformer-js/src/esmodule-helpers.js");s.defineInteropFlag(n),s.export(n,"userAgent",()=>i),s.export(n,"isSafari",()=>o),s.export(n,"isIOS",()=>a),s.export(n,"isIOS13",()=>l),s.export(n,"isMobile",()=>u),s.export(n,"isBrowser",()=>c);let i=globalThis?.CUSTOM_USER_AGENT??(typeof navigator<"u"?navigator.userAgent:""),o=/^(?:(?!chrome|android).)*safari/i.test(i),a=/iPad|iPhone|iPod/i.test(i)&&!window.MSStream,l=a||i.includes("Macintosh")&&navigator.maxTouchPoints>=1,u=/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(i)||l,c=typeof window<"u"&&typeof document<"u"},{"@parcel/transformer-js/src/esmodule-helpers.js":"loqXi"}],eANXw:[function(e,t,n,r){var s=e("@parcel/transformer-js/src/esmodule-helpers.js");s.defineInteropFlag(n),s.export(n,"query",()=>o),s.export(n,"queryAll",()=>a),s.export(n,"addClass",()=>l),s.export(n,"removeClass",()=>u),s.export(n,"hasClass",()=>c),s.export(n,"append",()=>d),s.export(n,"remove",()=>f),s.export(n,"setStyle",()=>h),s.export(n,"setStyles",()=>p),s.export(n,"getStyle",()=>m),s.export(n,"siblings",()=>v),s.export(n,"inverseClass",()=>x),s.export(n,"tooltip",()=>g),s.export(n,"isInViewport",()=>y),s.export(n,"includeFromEvent",()=>_),s.export(n,"replaceElement",()=>E),s.export(n,"createElement",()=>w),s.export(n,"getIcon",()=>T),s.export(n,"setStyleText",()=>C),s.export(n,"supportsFlex",()=>I),s.export(n,"getRect",()=>k),s.export(n,"loadImg",()=>$),s.export(n,"getComposedPath",()=>R);var i=e("./compatibility");function o(D,O=document){return O.querySelector(D)}function a(D,O=document){return Array.from(O.querySelectorAll(D))}function l(D,O){return D.classList.add(O)}function u(D,O){return D.classList.remove(O)}function c(D,O){return D.classList.contains(O)}function d(D,O){return O instanceof Element?D.appendChild(O):D.insertAdjacentHTML("beforeend",String(O)),D.lastElementChild||D.lastChild}function f(D){return D.parentNode.removeChild(D)}function h(D,O,B){return D.style[O]=B,D}function p(D,O){for(let B in O)h(D,B,O[B]);return D}function m(D,O,B=!0){let U=window.getComputedStyle(D,null).getPropertyValue(O);return B?Number.parseFloat(U):U}function v(D){return Array.from(D.parentElement.children).filter(O=>O!==D)}function x(D,O){v(D).forEach(B=>u(B,O)),l(D,O)}function g(D,O,B="top"){i.isMobile||(D.setAttribute("aria-label",O),l(D,"hint--rounded"),l(D,`hint--${B}`))}function y(D,O=0){let B=D.getBoundingClientRect(),U=window.innerHeight||document.documentElement.clientHeight,N=window.innerWidth||document.documentElement.clientWidth,V=B.top-O<=U&&B.top+B.height+O>=0,H=B.left-O<=N+O&&B.left+B.width+O>=0;return V&&H}function _(D,O){return R(D).includes(O)}function E(D,O){return O.parentNode.replaceChild(D,O),D}function w(D){return document.createElement(D)}function T(D="",O=""){let B=w("i");return l(B,"art-icon"),l(B,`art-icon-${D}`),d(B,O),B}function C(D,O){let B=document.getElementById(D);B||((B=document.createElement("style")).id=D,document.readyState==="loading"?document.addEventListener("DOMContentLoaded",()=>{document.head.appendChild(B)}):(document.head||document.documentElement).appendChild(B)),B.textContent=O}function I(){let D=document.createElement("div");return D.style.display="flex",D.style.display==="flex"}function k(D){return D.getBoundingClientRect()}function $(D,O){return new Promise((B,U)=>{let N=new Image;N.onload=function(){if(O&&O!==1){let V=document.createElement("canvas"),H=V.getContext("2d");V.width=N.width*O,V.height=N.height*O,H.drawImage(N,0,0,V.width,V.height),V.toBlob(re=>{let W=URL.createObjectURL(re),X=new Image;X.onload=function(){B(X)},X.onerror=function(){URL.revokeObjectURL(W),U(Error(`Image load failed: ${D}`))},X.src=W})}else B(N)},N.onerror=function(){U(Error(`Image load failed: ${D}`))},N.src=D})}function R(D){if(D.composedPath)return D.composedPath();let O=[],B=D.target;for(;B;)O.push(B),B=B.parentNode;return O.includes(window)||window===void 0||O.push(window),O}},{"./compatibility":"jg0yq","@parcel/transformer-js/src/esmodule-helpers.js":"loqXi"}],"4FwTI":[function(e,t,n,r){var s=e("@parcel/transformer-js/src/esmodule-helpers.js");s.defineInteropFlag(n),s.export(n,"ArtPlayerError",()=>i),s.export(n,"errorHandle",()=>o);class i extends Error{constructor(l,u){super(l),typeof Error.captureStackTrace=="function"&&Error.captureStackTrace(this,u||this.constructor),this.name="ArtPlayerError"}}function o(a,l){if(!a)throw new i(l);return a}},{"@parcel/transformer-js/src/esmodule-helpers.js":"loqXi"}],i2JbS:[function(e,t,n,r){var s=e("@parcel/transformer-js/src/esmodule-helpers.js");function i(o,a){let l=document.createElement("a");l.style.display="none",l.href=o,l.download=a,document.body.appendChild(l),l.click(),document.body.removeChild(l)}s.defineInteropFlag(n),s.export(n,"getExt",()=>function o(a){return a.includes("?")?o(a.split("?")[0]):a.includes("#")?o(a.split("#")[0]):a.trim().toLowerCase().split(".").pop()}),s.export(n,"download",()=>i)},{"@parcel/transformer-js/src/esmodule-helpers.js":"loqXi"}],dy9GH:[function(e,t,n,r){var s=e("@parcel/transformer-js/src/esmodule-helpers.js");function i(c,d,f){return Math.max(Math.min(c,Math.max(d,f)),Math.min(d,f))}function o(c){return c.charAt(0).toUpperCase()+c.slice(1)}function a(c){if(!c)return"00:00";let d=Math.floor(c/3600),f=Math.floor((c-3600*d)/60),h=Math.floor(c-3600*d-60*f);return(d>0?[d,f,h]:[f,h]).map(p=>p<10?`0${p}`:String(p)).join(":")}function l(c){return c.replace(/[&<>'"]/g,d=>({"&":"&amp;","<":"&lt;",">":"&gt;","'":"&#39;",'"':"&quot;"})[d]||d)}function u(c){let d={"&amp;":"&","&lt;":"<","&gt;":">","&#39;":"'","&quot;":'"'},f=RegExp(`(${Object.keys(d).join("|")})`,"g");return c.replace(f,h=>d[h]||h)}s.defineInteropFlag(n),s.export(n,"clamp",()=>i),s.export(n,"capitalize",()=>o),s.export(n,"secondToTime",()=>a),s.export(n,"escape",()=>l),s.export(n,"unescape",()=>u)},{"@parcel/transformer-js/src/esmodule-helpers.js":"loqXi"}],jY49c:[function(e,t,n,r){var s=e("@parcel/transformer-js/src/esmodule-helpers.js");s.defineInteropFlag(n),s.export(n,"def",()=>i),s.export(n,"has",()=>a),s.export(n,"get",()=>l),s.export(n,"mergeDeep",()=>function u(...c){let d=f=>f&&typeof f=="object"&&!Array.isArray(f);return c.reduce((f,h)=>(Object.keys(h).forEach(p=>{let m=f[p],v=h[p];Array.isArray(m)&&Array.isArray(v)?f[p]=m.concat(...v):d(m)&&d(v)?f[p]=u(m,v):f[p]=v}),f),{})});let i=Object.defineProperty,{hasOwnProperty:o}=Object.prototype;function a(u,c){return o.call(u,c)}function l(u,c){return Object.getOwnPropertyDescriptor(u,c)}},{"@parcel/transformer-js/src/esmodule-helpers.js":"loqXi"}],ke7ox:[function(e,t,n,r){var s=e("@parcel/transformer-js/src/esmodule-helpers.js");function i(l){return`WEBVTT \r
85\r
86`.concat(l.replace(/(\d\d:\d\d:\d\d)[,.](\d+)/g,(u,c,d)=>{let f=d.slice(0,3);return d.length===1&&(f=`${d}00`),d.length===2&&(f=`${d}0`),`${c},${f}`}).replace(/\{\\([ibu])\}/g,"</$1>").replace(/\{\\([ibu])1\}/g,"<$1>").replace(/\{([ibu])\}/g,"<$1>").replace(/\{\/([ibu])\}/g,"</$1>").replace(/(\d\d:\d\d:\d\d),(\d\d\d)/g,"$1.$2").replace(/\{[\s\S]*?\}/g,"").concat(`\r
87\r
88`))}function o(l){return URL.createObjectURL(new Blob([l],{type:"text/vtt"}))}function a(l){let u=RegExp("Dialogue:\\s\\d,(\\d+:\\d\\d:\\d\\d.\\d\\d),(\\d+:\\d\\d:\\d\\d.\\d\\d),([^,]*),([^,]*),(?:[^,]*,){4}([\\s\\S]*)$","i");function c(d=""){return d.split(/[:.]/).map((f,h,p)=>{if(h===p.length-1){if(f.length===1)return`.${f}00`;if(f.length===2)return`.${f}0`}else if(f.length===1)return(h===0?"0":":0")+f;return h===0?f:h===p.length-1?`.${f}`:`:${f}`}).join("")}return`WEBVTT ${l.split(/\r?\n/).map(d=>{let f=d.match(u);return f?{start:c(f[1].trim()),end:c(f[2].trim()),text:f[5].replace(/\{[\s\S]*?\}/g,"").replace(/(\\N)/g,`
89`).trim().split(/\r?\n/).map(h=>h.trim()).join(`
90`)}:null}).filter(d=>d).map((d,f)=>d?`${f+1} ${d.start} --> ${d.end} ${d.text}`:"").filter(d=>d.trim()).join(`
91
92`)}`}s.defineInteropFlag(n),s.export(n,"srtToVtt",()=>i),s.export(n,"vttToBlob",()=>o),s.export(n,"assToVtt",()=>a)},{"@parcel/transformer-js/src/esmodule-helpers.js":"loqXi"}],f7gsx:[function(e,t,n,r){var s=e("@parcel/transformer-js/src/esmodule-helpers.js");function i(l=0){return new Promise(u=>setTimeout(u,l))}function o(l,u){let c;return function(...d){let f=()=>(c=null,l.apply(this,d));clearTimeout(c),c=setTimeout(f,u)}}function a(l,u){let c=!1;return function(...d){c||(l.apply(this,d),c=!0,setTimeout(()=>{c=!1},u))}}s.defineInteropFlag(n),s.export(n,"sleep",()=>i),s.export(n,"debounce",()=>o),s.export(n,"throttle",()=>a)},{"@parcel/transformer-js/src/esmodule-helpers.js":"loqXi"}],idCEj:[function(e,t,n,r){var s=e("@parcel/transformer-js/src/esmodule-helpers.js");s.defineInteropFlag(n);var i=e("option-validator"),o=s.interopDefault(i),a=e("../scheme"),l=e("./dom"),u=e("./error");n.default=class{constructor(c){this.id=0,this.art=c,this.cache=new Map,this.add=this.add.bind(this),this.remove=this.remove.bind(this),this.update=this.update.bind(this)}get show(){return(0,l.hasClass)(this.art.template.$player,`art-${this.name}-show`)}set show(c){let{$player:d}=this.art.template,f=`art-${this.name}-show`;c?(0,l.addClass)(d,f):(0,l.removeClass)(d,f),this.art.emit(this.name,c)}toggle(){this.show=!this.show}add(c){let d=typeof c=="function"?c(this.art):c;if(d.html=d.html||"",(0,o.default)(d,a.ComponentOption),!this.$parent||!this.name||d.disable)return;let f=d.name||`${this.name}${this.id}`,h=this.cache.get(f);(0,u.errorHandle)(!h,`Can't add an existing [${f}] to the [${this.name}]`),this.id+=1;let p=(0,l.createElement)("div");(0,l.addClass)(p,`art-${this.name}`),(0,l.addClass)(p,`art-${this.name}-${f}`);let m=Array.from(this.$parent.children);p.dataset.index=d.index||this.id;let v=m.find(g=>Number(g.dataset.index)>=Number(p.dataset.index));v?v.insertAdjacentElement("beforebegin",p):(0,l.append)(this.$parent,p),d.html&&(0,l.append)(p,d.html),d.style&&(0,l.setStyles)(p,d.style),d.tooltip&&(0,l.tooltip)(p,d.tooltip);let x=[];if(d.click){let g=this.art.events.proxy(p,"click",y=>{y.preventDefault(),d.click.call(this.art,this,y)});x.push(g)}return d.selector&&["left","right"].includes(d.position)&&this.selector(d,p,x),this[f]=p,this.cache.set(f,{$ref:p,events:x,option:d}),d.mounted&&d.mounted.call(this.art,p),p}remove(c){let d=this.cache.get(c);(0,u.errorHandle)(d,`Can't find [${c}] from the [${this.name}]`),d.option.beforeUnmount&&d.option.beforeUnmount.call(this.art,d.$ref);for(let f=0;f<d.events.length;f++)this.art.events.remove(d.events[f]);this.cache.delete(c),delete this[c],(0,l.remove)(d.$ref)}update(c){let d=this.cache.get(c.name);return d&&(c=Object.assign(d.option,c),this.remove(c.name)),this.add(c)}}},{"option-validator":"g7VGh","../scheme":"biLjm","./dom":"eANXw","./error":"4FwTI","@parcel/transformer-js/src/esmodule-helpers.js":"loqXi"}],biLjm:[function(e,t,n,r){var s=e("@parcel/transformer-js/src/esmodule-helpers.js");s.defineInteropFlag(n),s.export(n,"ComponentOption",()=>h);var i=e("../utils");let o="array",a="boolean",l="string",u="number",c="object",d="function";function f(p,m,v){return(0,i.errorHandle)(m===l||m===u||p instanceof Element,`${v.join(".")} require '${l}' or 'Element' type`)}let h={html:f,disable:`?${a}`,name:`?${l}`,index:`?${u}`,style:`?${c}`,click:`?${d}`,mounted:`?${d}`,tooltip:`?${l}|${u}`,width:`?${u}`,selector:`?${o}`,onSelect:`?${d}`,switch:`?${a}`,onSwitch:`?${d}`,range:`?${o}`,onRange:`?${d}`,onChange:`?${d}`};n.default={id:l,container:f,url:l,poster:l,type:l,theme:l,lang:l,volume:u,isLive:a,muted:a,autoplay:a,autoSize:a,autoMini:a,loop:a,flip:a,playbackRate:a,aspectRatio:a,screenshot:a,setting:a,hotkey:a,pip:a,mutex:a,backdrop:a,fullscreen:a,fullscreenWeb:a,subtitleOffset:a,miniProgressBar:a,useSSR:a,playsInline:a,lock:a,gesture:a,fastForward:a,autoPlayback:a,autoOrientation:a,airplay:a,proxy:`?${d}`,plugins:[d],layers:[h],contextmenu:[h],settings:[h],controls:[{...h,position:(p,m,v)=>{let x=["top","left","right"];return(0,i.errorHandle)(x.includes(p),`${v.join(".")} only accept ${x.toString()} as parameters`)}}],quality:[{default:`?${a}`,html:l,url:l}],highlight:[{time:u,text:l}],thumbnails:{url:l,number:u,column:u,width:u,height:u,scale:u},subtitle:{url:l,name:l,type:l,style:c,escape:a,encoding:l,onVttLoad:d},moreVideoAttr:c,i18n:c,icons:c,cssVar:c,customType:c}},{"../utils":"aBlEo","@parcel/transformer-js/src/esmodule-helpers.js":"loqXi"}],"6XHP2":[function(e,t,n,r){var s=e("@parcel/transformer-js/src/esmodule-helpers.js");s.defineInteropFlag(n),s.export(n,"default",()=>o);var i=e("../utils");function o(a){return l=>{let{i18n:u,constructor:{ASPECT_RATIO:c}}=l,d=c.map(f=>`<span data-value="${f}">${f==="default"?u.get("Default"):f}</span>`).join("");return{...a,html:`${u.get("Aspect Ratio")}: ${d}`,click:(f,h)=>{let{value:p}=h.target.dataset;p&&(l.aspectRatio=p,f.show=!1)},mounted:f=>{let h=(0,i.query)('[data-value="default"]',f);h&&(0,i.inverseClass)(h,"art-current"),l.on("aspectRatio",p=>{let m=(0,i.queryAll)("span",f).find(v=>v.dataset.value===p);m&&(0,i.inverseClass)(m,"art-current")})}}}}},{"../utils":"aBlEo","@parcel/transformer-js/src/esmodule-helpers.js":"loqXi"}],eF6AX:[function(e,t,n,r){var s=e("@parcel/transformer-js/src/esmodule-helpers.js");function i(o){return a=>({...o,html:a.i18n.get("Close"),click:l=>{l.show=!1}})}s.defineInteropFlag(n),s.export(n,"default",()=>i)},{"@parcel/transformer-js/src/esmodule-helpers.js":"loqXi"}],"7Wg1P":[function(e,t,n,r){var s=e("@parcel/transformer-js/src/esmodule-helpers.js");s.defineInteropFlag(n),s.export(n,"default",()=>o);var i=e("../utils");function o(a){return l=>{let{i18n:u,constructor:{FLIP:c}}=l,d=c.map(f=>`<span data-value="${f}">${u.get((0,i.capitalize)(f))}</span>`).join("");return{...a,html:`${u.get("Video Flip")}: ${d}`,click:(f,h)=>{let{value:p}=h.target.dataset;p&&(l.flip=p.toLowerCase(),f.show=!1)},mounted:f=>{let h=(0,i.query)('[data-value="normal"]',f);h&&(0,i.inverseClass)(h,"art-current"),l.on("flip",p=>{let m=(0,i.queryAll)("span",f).find(v=>v.dataset.value===p);m&&(0,i.inverseClass)(m,"art-current")})}}}}},{"../utils":"aBlEo","@parcel/transformer-js/src/esmodule-helpers.js":"loqXi"}],fjRnU:[function(e,t,n,r){var s=e("@parcel/transformer-js/src/esmodule-helpers.js");function i(o){return a=>({...o,html:a.i18n.get("Video Info"),click:l=>{a.info.show=!0,l.show=!1}})}s.defineInteropFlag(n),s.export(n,"default",()=>i)},{"@parcel/transformer-js/src/esmodule-helpers.js":"loqXi"}],hm1DY:[function(e,t,n,r){var s=e("@parcel/transformer-js/src/esmodule-helpers.js");s.defineInteropFlag(n),s.export(n,"default",()=>o);var i=e("../utils");function o(a){return l=>{let{i18n:u,constructor:{PLAYBACK_RATE:c}}=l,d=c.map(f=>`<span data-value="${f}">${f===1?u.get("Normal"):f.toFixed(1)}</span>`).join("");return{...a,html:`${u.get("Play Speed")}: ${d}`,click:(f,h)=>{let{value:p}=h.target.dataset;p&&(l.playbackRate=Number(p),f.show=!1)},mounted:f=>{let h=(0,i.query)('[data-value="1"]',f);h&&(0,i.inverseClass)(h,"art-current"),l.on("video:ratechange",()=>{let p=(0,i.queryAll)("span",f).find(m=>Number(m.dataset.value)===l.playbackRate);p&&(0,i.inverseClass)(p,"art-current")})}}}}},{"../utils":"aBlEo","@parcel/transformer-js/src/esmodule-helpers.js":"loqXi"}],aJBeL:[function(e,t,n,r){var s=e("@parcel/transformer-js/src/esmodule-helpers.js");s.defineInteropFlag(n),s.export(n,"default",()=>function(o){return{...o,html:`<a href="https://artplayer.org" target="_blank">ArtPlayer ${i.version}</a>`}});var i=e("../../package.json")},{"../../package.json":"lh3R5","@parcel/transformer-js/src/esmodule-helpers.js":"loqXi"}],dp1yk:[function(e,t,n,r){var s=e("@parcel/transformer-js/src/esmodule-helpers.js");s.defineInteropFlag(n);var i=e("../utils"),o=e("../utils/component"),a=s.interopDefault(o),l=e("./airplay"),u=s.interopDefault(l),c=e("./fullscreen"),d=s.interopDefault(c),f=e("./fullscreenWeb"),h=s.interopDefault(f),p=e("./pip"),m=s.interopDefault(p),v=e("./playAndPause"),x=s.interopDefault(v),g=e("./progress"),y=s.interopDefault(g),_=e("./screenshot"),E=s.interopDefault(_),w=e("./setting"),T=s.interopDefault(w),C=e("./time"),I=s.interopDefault(C),k=e("./volume"),$=s.interopDefault(k);class R extends a.default{constructor(O){super(O),this.isHover=!1,this.name="control",this.timer=Date.now();let{constructor:B}=O,{$player:U,$bottom:N}=this.art.template;O.on("mousemove",()=>{i.isMobile||(this.show=!0)}),O.on("click",()=>{i.isMobile?this.toggle():this.show=!0}),O.on("document:mousemove",V=>{this.isHover=(0,i.includeFromEvent)(V,N)}),O.on("video:timeupdate",()=>{!O.setting.show&&!this.isHover&&!O.isInput&&O.playing&&this.show&&Date.now()-this.timer>=B.CONTROL_HIDE_TIME&&(this.show=!1)}),O.on("control",V=>{V?((0,i.removeClass)(U,"art-hide-cursor"),(0,i.addClass)(U,"art-hover"),this.timer=Date.now()):((0,i.addClass)(U,"art-hide-cursor"),(0,i.removeClass)(U,"art-hover"))}),this.init()}init(){let{option:O}=this.art;O.isLive||this.add((0,y.default)({name:"progress",position:"top",index:10})),this.add({name:"thumbnails",position:"top",index:20}),this.add((0,x.default)({name:"playAndPause",position:"left",index:10})),this.add((0,$.default)({name:"volume",position:"left",index:20})),O.isLive||this.add((0,I.default)({name:"time",position:"left",index:30})),O.quality.length&&(0,i.sleep)().then(()=>{this.art.quality=O.quality}),O.screenshot&&!i.isMobile&&this.add((0,E.default)({name:"screenshot",position:"right",index:20})),O.setting&&this.add((0,T.default)({name:"setting",position:"right",index:30})),O.pip&&this.add((0,m.default)({name:"pip",position:"right",index:40})),O.airplay&&window.WebKitPlaybackTargetAvailabilityEvent&&this.add((0,u.default)({name:"airplay",position:"right",index:50})),O.fullscreenWeb&&this.add((0,h.default)({name:"fullscreenWeb",position:"right",index:60})),O.fullscreen&&this.add((0,d.default)({name:"fullscreen",position:"right",index:70}));for(let B=0;B<O.controls.length;B++)this.add(O.controls[B])}add(O){let B=typeof O=="function"?O(this.art):O,{$progress:U,$controlsLeft:N,$controlsRight:V}=this.art.template;switch(B.position){case"top":this.$parent=U;break;case"left":this.$parent=N;break;case"right":this.$parent=V;break;default:(0,i.errorHandle)(!1,"Control option.position must one of 'top', 'left', 'right'")}super.add(B)}check(O){O.$control_value.innerHTML=O.html;for(let B=0;B<O.$control_option.length;B++){let U=O.$control_option[B];U.default=U===O,U.default&&(0,i.inverseClass)(U.$control_item,"art-current")}}selector(O,B,U){let{proxy:N}=this.art.events;(0,i.addClass)(B,"art-control-selector");let V=(0,i.createElement)("div");(0,i.addClass)(V,"art-selector-value"),(0,i.append)(V,O.html),B.textContent="",(0,i.append)(B,V);let H=(0,i.createElement)("div");(0,i.addClass)(H,"art-selector-list"),(0,i.append)(B,H);for(let W=0;W<O.selector.length;W++){let X=O.selector[W],Q=(0,i.createElement)("div");(0,i.addClass)(Q,"art-selector-item"),X.default&&(0,i.addClass)(Q,"art-current"),Q.dataset.index=W,Q.dataset.value=X.value,Q.innerHTML=X.html,(0,i.append)(H,Q),(0,i.def)(X,"$control_option",{get:()=>O.selector}),(0,i.def)(X,"$control_item",{get:()=>Q}),(0,i.def)(X,"$control_value",{get:()=>V})}let re=N(H,"click",async W=>{let X=(0,i.getComposedPath)(W),Q=O.selector.find(le=>le.$control_item===X.find(ve=>le.$control_item===ve));this.check(Q),O.onSelect&&(V.innerHTML=await O.onSelect.call(this.art,Q,Q.$control_item,W))});U.push(re)}}n.default=R},{"../utils":"aBlEo","../utils/component":"idCEj","./airplay":"amOzz","./fullscreen":"3GuBU","./fullscreenWeb":"jj1KV","./pip":"jMeHN","./playAndPause":"u3h8M","./progress":"1XZSS","./screenshot":"dIscA","./setting":"aqA0g","./time":"ihweO","./volume":"fJVWn","@parcel/transformer-js/src/esmodule-helpers.js":"loqXi"}],amOzz:[function(e,t,n,r){var s=e("@parcel/transformer-js/src/esmodule-helpers.js");s.defineInteropFlag(n),s.export(n,"default",()=>o);var i=e("../utils");function o(a){return l=>({...a,tooltip:l.i18n.get("AirPlay"),mounted:u=>{let{proxy:c,icons:d}=l;(0,i.append)(u,d.airplay),c(u,"click",()=>l.airplay())}})}},{"../utils":"aBlEo","@parcel/transformer-js/src/esmodule-helpers.js":"loqXi"}],"3GuBU":[function(e,t,n,r){var s=e("@parcel/transformer-js/src/esmodule-helpers.js");s.defineInteropFlag(n),s.export(n,"default",()=>o);var i=e("../utils");function o(a){return l=>({...a,tooltip:l.i18n.get("Fullscreen"),mounted:u=>{let{proxy:c,icons:d,i18n:f}=l,h=(0,i.append)(u,d.fullscreenOn),p=(0,i.append)(u,d.fullscreenOff);(0,i.setStyle)(p,"display","none"),c(u,"click",()=>{l.fullscreen=!l.fullscreen}),l.on("fullscreen",m=>{m?((0,i.tooltip)(u,f.get("Exit Fullscreen")),(0,i.setStyle)(h,"display","none"),(0,i.setStyle)(p,"display","inline-flex")):((0,i.tooltip)(u,f.get("Fullscreen")),(0,i.setStyle)(h,"display","inline-flex"),(0,i.setStyle)(p,"display","none"))})}})}},{"../utils":"aBlEo","@parcel/transformer-js/src/esmodule-helpers.js":"loqXi"}],jj1KV:[function(e,t,n,r){var s=e("@parcel/transformer-js/src/esmodule-helpers.js");s.defineInteropFlag(n),s.export(n,"default",()=>o);var i=e("../utils");function o(a){return l=>({...a,tooltip:l.i18n.get("Web Fullscreen"),mounted:u=>{let{proxy:c,icons:d,i18n:f}=l,h=(0,i.append)(u,d.fullscreenWebOn),p=(0,i.append)(u,d.fullscreenWebOff);(0,i.setStyle)(p,"display","none"),c(u,"click",()=>{l.fullscreenWeb=!l.fullscreenWeb}),l.on("fullscreenWeb",m=>{m?((0,i.tooltip)(u,f.get("Exit Web Fullscreen")),(0,i.setStyle)(h,"display","none"),(0,i.setStyle)(p,"display","inline-flex")):((0,i.tooltip)(u,f.get("Web Fullscreen")),(0,i.setStyle)(h,"display","inline-flex"),(0,i.setStyle)(p,"display","none"))})}})}},{"../utils":"aBlEo","@parcel/transformer-js/src/esmodule-helpers.js":"loqXi"}],jMeHN:[function(e,t,n,r){var s=e("@parcel/transformer-js/src/esmodule-helpers.js");s.defineInteropFlag(n),s.export(n,"default",()=>o);var i=e("../utils");function o(a){return l=>({...a,tooltip:l.i18n.get("PIP Mode"),mounted:u=>{let{proxy:c,icons:d,i18n:f}=l;(0,i.append)(u,d.pip),c(u,"click",()=>{l.pip=!l.pip}),l.on("pip",h=>{(0,i.tooltip)(u,f.get(h?"Exit PIP Mode":"PIP Mode"))})}})}},{"../utils":"aBlEo","@parcel/transformer-js/src/esmodule-helpers.js":"loqXi"}],u3h8M:[function(e,t,n,r){var s=e("@parcel/transformer-js/src/esmodule-helpers.js");s.defineInteropFlag(n),s.export(n,"default",()=>o);var i=e("../utils");function o(a){return l=>({...a,mounted:u=>{let{proxy:c,icons:d,i18n:f}=l,h=(0,i.append)(u,d.play),p=(0,i.append)(u,d.pause);function m(){(0,i.setStyle)(h,"display","flex"),(0,i.setStyle)(p,"display","none")}function v(){(0,i.setStyle)(h,"display","none"),(0,i.setStyle)(p,"display","flex")}(0,i.tooltip)(h,f.get("Play")),(0,i.tooltip)(p,f.get("Pause")),c(h,"click",()=>{l.play()}),c(p,"click",()=>{l.pause()}),l.playing?v():m(),l.on("video:playing",()=>{v()}),l.on("video:pause",()=>{m()})}})}},{"../utils":"aBlEo","@parcel/transformer-js/src/esmodule-helpers.js":"loqXi"}],"1XZSS":[function(e,t,n,r){var s=e("@parcel/transformer-js/src/esmodule-helpers.js");s.defineInteropFlag(n),s.export(n,"getPosFromEvent",()=>o),s.export(n,"setCurrentTime",()=>a),s.export(n,"default",()=>l);var i=e("../utils");function o(u,c){let{$progress:d}=u.template,{left:f}=(0,i.getRect)(d),h=i.isMobile?c.touches[0].clientX:c.clientX,p=(0,i.clamp)(h-f,0,d.clientWidth),m=p/d.clientWidth*u.duration,v=(0,i.secondToTime)(m),x=(0,i.clamp)(p/d.clientWidth,0,1);return{second:m,time:v,width:p,percentage:x}}function a(u,c){if(u.isRotate){let d=c.touches[0].clientY/u.height,f=d*u.duration;u.emit("setBar","played",d,c),u.seek=f}else{let{second:d,percentage:f}=o(u,c);u.emit("setBar","played",f,c),u.seek=d}}function l(u){return c=>{let{icons:d,option:f,proxy:h}=c;return{...u,html:'<div class="art-control-progress-inner"><div class="art-progress-hover"></div><div class="art-progress-loaded"></div><div class="art-progress-played"></div><div class="art-progress-highlight"></div><div class="art-progress-indicator"></div><div class="art-progress-tip"></div></div>',mounted:p=>{let m=null,v=!1,x=(0,i.query)(".art-progress-hover",p),g=(0,i.query)(".art-progress-loaded",p),y=(0,i.query)(".art-progress-played",p),_=(0,i.query)(".art-progress-highlight",p),E=(0,i.query)(".art-progress-indicator",p),w=(0,i.query)(".art-progress-tip",p);function T(C,I){let{width:k,time:$}=I||o(c,C);w.textContent=$;let R=w.clientWidth;k<=R/2?(0,i.setStyle)(w,"left",0):k>p.clientWidth-R/2?(0,i.setStyle)(w,"left",`${p.clientWidth-R}px`):(0,i.setStyle)(w,"left",`${k-R/2}px`)}d.indicator?(0,i.append)(E,d.indicator):(0,i.setStyle)(E,"backgroundColor","var(--art-theme)"),c.on("setBar",function(C,I,k){let $=C==="played"&&k&&i.isMobile;C==="loaded"&&(0,i.setStyle)(g,"width",`${100*I}%`),C==="hover"&&(0,i.setStyle)(x,"width",`${100*I}%`),C==="played"&&((0,i.setStyle)(y,"width",`${100*I}%`),(0,i.setStyle)(E,"left",`${100*I}%`)),$&&((0,i.setStyle)(w,"display","flex"),T(k,{width:p.clientWidth*I,time:(0,i.secondToTime)(I*c.duration)}),clearTimeout(m),m=setTimeout(()=>{(0,i.setStyle)(w,"display","none")},500))}),c.on("video:loadedmetadata",function(){_.textContent="";for(let C=0;C<f.highlight.length;C++){let I=f.highlight[C],k=(0,i.clamp)(I.time,0,c.duration)/c.duration*100,$=`<span data-text="${I.text}" data-time="${I.time}" style="left: ${k}%"></span>`;(0,i.append)(_,$)}}),c.constructor.USE_RAF?c.on("raf",()=>{c.emit("setBar","played",c.played),c.emit("setBar","loaded",c.loaded)}):(c.on("video:timeupdate",()=>{c.emit("setBar","played",c.played)}),c.on("video:progress",()=>{c.emit("setBar","loaded",c.loaded)}),c.on("video:ended",()=>{c.emit("setBar","played",1)})),c.emit("setBar","loaded",c.loaded||0),i.isMobile||(h(p,"click",C=>{C.target!==E&&a(c,C)}),h(p,"mousemove",C=>{let{percentage:I}=o(c,C);if(c.emit("setBar","hover",I,C),(0,i.setStyle)(w,"display","flex"),(0,i.includeFromEvent)(C,_)){let{width:k}=o(c,C),{text:$}=C.target.dataset;w.textContent=$;let R=w.clientWidth;k<=R/2?(0,i.setStyle)(w,"left",0):k>p.clientWidth-R/2?(0,i.setStyle)(w,"left",`${p.clientWidth-R}px`):(0,i.setStyle)(w,"left",`${k-R/2}px`)}else T(C)}),h(p,"mouseleave",C=>{(0,i.setStyle)(w,"display","none"),c.emit("setBar","hover",0,C)}),h(p,"mousedown",C=>{v=C.button===0}),c.on("document:mousemove",C=>{if(v){let{second:I,percentage:k}=o(c,C);c.emit("setBar","played",k,C),c.seek=I}}),c.on("document:mouseup",()=>{v&&(v=!1)}))}}}}},{"../utils":"aBlEo","@parcel/transformer-js/src/esmodule-helpers.js":"loqXi"}],dIscA:[function(e,t,n,r){var s=e("@parcel/transformer-js/src/esmodule-helpers.js");s.defineInteropFlag(n),s.export(n,"default",()=>o);var i=e("../utils");function o(a){return l=>({...a,tooltip:l.i18n.get("Screenshot"),mounted:u=>{let{proxy:c,icons:d}=l;(0,i.append)(u,d.screenshot),c(u,"click",()=>{l.screenshot()})}})}},{"../utils":"aBlEo","@parcel/transformer-js/src/esmodule-helpers.js":"loqXi"}],aqA0g:[function(e,t,n,r){var s=e("@parcel/transformer-js/src/esmodule-helpers.js");s.defineInteropFlag(n),s.export(n,"default",()=>o);var i=e("../utils");function o(a){return l=>({...a,tooltip:l.i18n.get("Show Setting"),mounted:u=>{let{proxy:c,icons:d,i18n:f}=l;(0,i.append)(u,d.setting),c(u,"click",()=>{l.setting.toggle(),l.setting.resize()}),l.on("setting",h=>{(0,i.tooltip)(u,f.get(h?"Hide Setting":"Show Setting"))})}})}},{"../utils":"aBlEo","@parcel/transformer-js/src/esmodule-helpers.js":"loqXi"}],ihweO:[function(e,t,n,r){var s=e("@parcel/transformer-js/src/esmodule-helpers.js");s.defineInteropFlag(n),s.export(n,"default",()=>o);var i=e("../utils");function o(a){return l=>({...a,style:i.isMobile?{fontSize:"12px",padding:"0 5px"}:{cursor:"auto",padding:"0 10px"},mounted:u=>{function c(){let f=`${(0,i.secondToTime)(l.currentTime)} / ${(0,i.secondToTime)(l.duration)}`;f!==u.textContent&&(u.textContent=f)}c();let d=["video:loadedmetadata","video:timeupdate","video:progress"];for(let f=0;f<d.length;f++)l.on(d[f],c)}})}},{"../utils":"aBlEo","@parcel/transformer-js/src/esmodule-helpers.js":"loqXi"}],fJVWn:[function(e,t,n,r){var s=e("@parcel/transformer-js/src/esmodule-helpers.js");s.defineInteropFlag(n),s.export(n,"default",()=>o);var i=e("../utils");function o(a){return l=>({...a,mounted:u=>{let{proxy:c,icons:d}=l,f=(0,i.append)(u,d.volume),h=(0,i.append)(u,d.volumeClose),p=(0,i.append)(u,'<div class="art-volume-panel"></div>'),m=(0,i.append)(p,'<div class="art-volume-inner"></div>'),v=(0,i.append)(m,'<div class="art-volume-val"></div>'),x=(0,i.append)(m,'<div class="art-volume-slider"></div>'),g=(0,i.append)(x,'<div class="art-volume-handle"></div>'),y=(0,i.append)(g,'<div class="art-volume-loaded"></div>'),_=(0,i.append)(x,'<div class="art-volume-indicator"></div>');function E(T){let{top:C,height:I}=(0,i.getRect)(x);return 1-(T.clientY-C)/I}function w(){if(l.muted||l.volume===0)(0,i.setStyle)(f,"display","none"),(0,i.setStyle)(h,"display","flex"),(0,i.setStyle)(_,"top","100%"),(0,i.setStyle)(y,"top","100%"),v.textContent=0;else{let T=100*l.volume;(0,i.setStyle)(f,"display","flex"),(0,i.setStyle)(h,"display","none"),(0,i.setStyle)(_,"top",`${100-T}%`),(0,i.setStyle)(y,"top",`${100-T}%`),v.textContent=Math.floor(T)}}if(w(),l.on("video:volumechange",w),c(f,"click",()=>{l.muted=!0}
92),c(h,"click",()=>{l.muted=!1}),i.isMobile)(0,i.setStyle)(p,"display","none");else{let T=!1;c(x,"mousedown",C=>{T=C.button===0,l.volume=E(C)}),l.on("document:mousemove",C=>{T&&(l.muted=!1,l.volume=E(C))}),l.on("document:mouseup",()=>{T&&(T=!1)})}}})}},{"../utils":"aBlEo","@parcel/transformer-js/src/esmodule-helpers.js":"loqXi"}],jmVSD:[function(e,t,n,r){var s=e("@parcel/transformer-js/src/esmodule-helpers.js");s.defineInteropFlag(n);var i=e("./clickInit"),o=s.interopDefault(i),a=e("./gestureInit"),l=s.interopDefault(a),u=e("./globalInit"),c=s.interopDefault(u),d=e("./hoverInit"),f=s.interopDefault(d),h=e("./moveInit"),p=s.interopDefault(h),m=e("./resizeInit"),v=s.interopDefault(m),x=e("./updateInit"),g=s.interopDefault(x),y=e("./viewInit"),_=s.interopDefault(y);n.default=class{constructor(E){this.destroyEvents=[],this.proxy=this.proxy.bind(this),this.hover=this.hover.bind(this),(0,o.default)(E,this),(0,f.default)(E,this),(0,p.default)(E,this),(0,v.default)(E,this),(0,l.default)(E,this),(0,_.default)(E,this),(0,c.default)(E,this),(0,g.default)(E,this)}proxy(E,w,T,C={}){if(Array.isArray(w))return w.map(k=>this.proxy(E,k,T,C));E.addEventListener(w,T,C);let I=()=>E.removeEventListener(w,T,C);return this.destroyEvents.push(I),I}hover(E,w,T){w&&this.proxy(E,"mouseenter",w),T&&this.proxy(E,"mouseleave",T)}remove(E){let w=this.destroyEvents.indexOf(E);w>-1&&(E(),this.destroyEvents.splice(w,1))}destroy(){for(let E=0;E<this.destroyEvents.length;E++)this.destroyEvents[E]()}}},{"./clickInit":"i8G6V","./gestureInit":"9wEzB","./globalInit":"ikBrS","./hoverInit":"jwNq0","./moveInit":"eqSsP","./resizeInit":"42JNz","./updateInit":"7kM1M","./viewInit":"2IW9m","@parcel/transformer-js/src/esmodule-helpers.js":"loqXi"}],i8G6V:[function(e,t,n,r){var s=e("@parcel/transformer-js/src/esmodule-helpers.js");s.defineInteropFlag(n),s.export(n,"default",()=>o);var i=e("../utils");function o(a,l){let{constructor:u,template:{$player:c,$video:d}}=a;function f(p){(0,i.includeFromEvent)(p,c)?(a.isInput=p.target.tagName==="INPUT",a.isFocus=!0,a.emit("focus",p)):(a.isInput=!1,a.isFocus=!1,a.emit("blur",p))}a.on("document:click",f),a.on("document:contextmenu",f);let h=[];l.proxy(d,"click",p=>{let m=Date.now();h.push(m);let{MOBILE_CLICK_PLAY:v,DBCLICK_TIME:x,MOBILE_DBCLICK_PLAY:g,DBCLICK_FULLSCREEN:y}=u,_=h.filter(E=>m-E<=x);switch(_.length){case 1:a.emit("click",p),i.isMobile?!a.isLock&&v&&a.toggle():a.toggle(),h=_;break;case 2:a.emit("dblclick",p),i.isMobile?!a.isLock&&g&&a.toggle():y&&(a.fullscreen=!a.fullscreen),h=[];break;default:h=[]}})}},{"../utils":"aBlEo","@parcel/transformer-js/src/esmodule-helpers.js":"loqXi"}],"9wEzB":[function(e,t,n,r){var s=e("@parcel/transformer-js/src/esmodule-helpers.js");s.defineInteropFlag(n),s.export(n,"default",()=>a);var i=e("../control/progress"),o=e("../utils");function a(l,u){if(o.isMobile&&!l.option.isLive){let{$video:c,$progress:d}=l.template,f=null,h=!1,p=0,m=0,v=0,x=y=>{if(y.touches.length===1&&!l.isLock){f===d&&(0,i.setCurrentTime)(l,y),h=!0;let{pageX:_,pageY:E}=y.touches[0];p=_,m=E,v=l.currentTime}},g=y=>{if(y.touches.length===1&&h&&l.duration){let{pageX:_,pageY:E}=y.touches[0],w=(function(I,k,$,R){let D=k-R,O=$-I,B=0;if(2>Math.abs(O)&&2>Math.abs(D))return B;let U=180*Math.atan2(D,O)/Math.PI;return U>=-45&&U<45?B=4:U>=45&&U<135?B=1:U>=-135&&U<-45?B=2:(U>=135&&U<=180||U>=-180&&U<-135)&&(B=3),B})(p,m,_,E),T=[3,4].includes(w),C=[1,2].includes(w);if(T&&!l.isRotate||C&&l.isRotate){let I=(0,o.clamp)((_-p)/l.width,-1,1),k=(0,o.clamp)((E-m)/l.height,-1,1),$=l.isRotate?k:I,R=f===c?l.constructor.TOUCH_MOVE_RATIO:1,D=(0,o.clamp)(v+l.duration*$*R,0,l.duration);l.seek=D,l.emit("setBar","played",(0,o.clamp)(D/l.duration,0,1),y),l.notice.show=`${(0,o.secondToTime)(D)} / ${(0,o.secondToTime)(l.duration)}`}}};l.option.gesture&&(u.proxy(c,"touchstart",y=>{f=c,x(y)}),u.proxy(c,"touchmove",g)),u.proxy(d,"touchstart",y=>{f=d,x(y)}),u.proxy(d,"touchmove",g),l.on("document:touchend",()=>{h&&(p=0,m=0,v=0,h=!1,f=null)})}}},{"../control/progress":"1XZSS","../utils":"aBlEo","@parcel/transformer-js/src/esmodule-helpers.js":"loqXi"}],ikBrS:[function(e,t,n,r){var s=e("@parcel/transformer-js/src/esmodule-helpers.js");function i(o,a){let l=["click","mouseup","keydown","touchend","touchmove","mousemove","pointerup","contextmenu","pointermove","visibilitychange","webkitfullscreenchange"],u=["resize","scroll","orientationchange"],c=[];function d(f={}){for(let p=0;p<c.length;p++)a.remove(c[p]);c.length=0;let{$player:h}=o.template;l.forEach(p=>{let m=f.document||h.ownerDocument||document,v=a.proxy(m,p,x=>
92{o.emit(`document:${p}`,x)});c.push(v)}),u.forEach(p=>{let m=f.window||h.ownerDocument?.defaultView||window,v=a.proxy(m,p,x=>{o.emit(`window:${p}`,x)});c.push(v)})}d(),a.bindGlobalEvents=d}s.defineInteropFlag(n),s.export(n,"default",()=>i)},{"@parcel/transformer-js/src/esmodule-helpers.js":"loqXi"}],jwNq0:[function(e,t,n,r){var s=e("@parcel/transformer-js/src/esmodule-helpers.js");s.defineInteropFlag(n),s.export(n,"default",()=>o);var i=e("../utils");function o(a,l){let{$player:u}=a.template;l.hover(u,c=>{(0,i.addClass)(u,"art-hover"),a.emit("hover",!0,c)},c=>{(0,i.removeClass)(u,"art-hover"),a.emit("hover",!1,c)})}},{"../utils":"aBlEo","@parcel/transformer-js/src/esmodule-helpers.js":"loqXi"}],eqSsP:[function(e,t,n,r){var s=e("@parcel/transformer-js/src/esmodule-helpers.js");function i(o,a){let{$player:l}=o.template;a.proxy(l,"mousemove",u=>{o.emit("mousemove",u)})}s.defineInteropFlag(n),s.export(n,"default",()=>i)},{"@parcel/transformer-js/src/esmodule-helpers.js":"loqXi"}],"42JNz":[function(e,t,n,r){var s=e("@parcel/transformer-js/src/esmodule-helpers.js");s.defineInteropFlag(n),s.export(n,"default",()=>o);var i=e("../utils");function o(a,l){let{option:u,constructor:c}=a;a.on("resize",()=>{let{aspectRatio:f,notice:h}=a;a.state==="standard"&&u.autoSize&&a.autoSize(),a.aspectRatio=f,h.show=""});let d=(0,i.debounce)(()=>a.emit("resize"),c.RESIZE_TIME);a.on("window:orientationchange",()=>d()),a.on("window:resize",()=>d()),screen&&screen.orientation&&screen.orientation.onchange&&l.proxy(screen.orientation,"change",()=>d())}},{"../utils":"aBlEo","@parcel/transformer-js/src/esmodule-helpers.js":"loqXi"}],"7kM1M":[function(e,t,n,r){var s=e("@parcel/transformer-js/src/esmodule-helpers.js");function i(o){if(o.constructor.USE_RAF){let a=null;(function l(){o.playing&&o.emit("raf"),o.isDestroy||(a=requestAnimationFrame(l))})(),o.on("destroy",()=>{cancelAnimationFrame(a)})}}s.defineInteropFlag(n),s.export(n,"default",()=>i)},{"@parcel/transformer-js/src/esmodule-helpers.js":"loqXi"}],"2IW9m":[function(e,t,n,r){var s=e("@parcel/transformer-js/src/esmodule-helpers.js");s.defineInteropFlag(n),s.export(n,"default",()=>o);var i=e("../utils");function o(a){let{option:l,constructor:u,template:{$container:c}}=a,d=(0,i.throttle)(()=>{a.emit("view",(0,i.isInViewport)(c,u.SCROLL_GAP))},u.SCROLL_TIME);a.on("window:scroll",()=>d()),a.on("view",f=>{l.autoMini&&(a.mini=!f)})}},{"../utils":"aBlEo","@parcel/transformer-js/src/esmodule-helpers.js":"loqXi"}],dswts:[function(e,t,n,r){e("@parcel/transformer-js/src/esmodule-helpers.js").defineInteropFlag(n);var s=e("./utils");n.default=class{constructor(i){this.art=i,this.keys={},i.option.hotkey&&!s.isMobile&&this.init()}init(){let{constructor:i}=this.art;this.add("Escape",()=>{this.art.fullscreenWeb&&(this.art.fullscreenWeb=!1)}),this.add("Space",()=>{this.art.toggle()}),this.add("ArrowLeft",()=>{this.art.backward=i.SEEK_STEP}),this.add("ArrowUp",()=>{this.art.volume+=i.VOLUME_STEP}),this.add("ArrowRight",()=>{this.art.forward=i.SEEK_STEP}),this.add("ArrowDown",()=>{this.art.volume-=i.VOLUME_STEP}),this.art.on("document:keydown",o=>{if(this.art.isFocus){let a=document.activeElement.tagName.toUpperCase(),l=document.activeElement.getAttribute("contenteditable");if(a!=="INPUT"&&a!=="TEXTAREA"&&l!==""&&l!=="true"&&!o.altKey&&!o.ctrlKey&&!o.metaKey&&!o.shiftKey){let u=this.keys[o.code];if(u){o.preventDefault();for(let c=0;c<u.length;c++)u[c].call(this.art,o);this.art.emit("hotkey",o)}}}this.art.emit("keydown",o)})}add(i,o){return this.keys[i]?this.keys[i].push(o):this.keys[i]=[o],this}remove(i,o){if(this.keys[i]){let a=this.keys[i].indexOf(o);a!==-1&&this.keys[i].splice(a,1)}return this}}},{"./utils":"aBlEo","@parcel/transformer-js/src/esmodule-helpers.js":"loqXi"}],d9ktO:[function(e,t,n,r){var s=e("@parcel/transformer-js/src/esmodule-helpers.js");s.defineInteropFlag(n);var i=e("../utils"),o=e("./zh-cn"),a=s.interopDefault(o);n.default=class{constructor(l){this.art=l,this.languages={"zh-cn":a.default},this.language={},this.update(l.option.i18n)}init(){let l=this.art.option.lang.toLowerCase();this.language=this.languages[l]||{}}get(l){return this.language[l]||l}update(l){this.languages=(0,i.mergeDeep)(this.languages,l),this.init()}}},{"../utils":"aBlEo","./zh-cn":"3hyaR","@parcel/transformer-js/src/esmodule-helpers.js":"loqXi"}],"3hyaR":[function(e,t,n,r){e("@parcel/transformer-js/src/esmodule-helpers.js").defineInteropFlag(n);let s={"Video Info":"统计信息",Close:"关闭","Video Load Failed":"加载失败",Volume:"音量",Play:"播放",Pause:"暂停",Rate:"速度",Mute:"静音","Video Flip":"画面翻转",Horizontal:"æ°´å¹³",Vertical:"垂直",Reconnect:"重新连接","Show Setting":"显示设置","Hide Setting":"隐藏设置",Screenshot:"æˆ
92ªå›¾","Play Speed":"播放速度","Aspect Ratio":"画面比例",Default:"默认",Normal:"正常",Open:"打开","Switch Video":"切换","Switch Subtitle":"切换字幕",Fullscreen:"全屏","Exit Fullscreen":"退出全屏","Web Fullscreen":"网页全屏","Exit Web Fullscreen":"退出网页全屏","Mini Player":"迷你播放器","PIP Mode":"开启画中画","Exit PIP Mode":"退出画中画","PIP Not Supported":"不支持画中画","Fullscreen Not Supported":"不支持全屏","Subtitle Offset":"字幕偏移","Last Seen":"上次看到","Jump Play":"跳转播放",AirPlay:"隔空播放","AirPlay Not Available":"隔空播放不可用"};n.default=s,typeof window<"u"&&(window["artplayer-i18n-zh-cn"]=s)},{"@parcel/transformer-js/src/esmodule-helpers.js":"loqXi"}],fFHY0:[function(e,t,n,r){var s=e("@parcel/transformer-js/src/esmodule-helpers.js");s.defineInteropFlag(n);var i=e("bundle-text:./airplay.svg"),o=s.interopDefault(i),a=e("bundle-text:./arrow-left.svg"),l=s.interopDefault(a),u=e("bundle-text:./arrow-right.svg"),c=s.interopDefault(u),d=e("bundle-text:./aspect-ratio.svg"),f=s.interopDefault(d),h=e("bundle-text:./check.svg"),p=s.interopDefault(h),m=e("bundle-text:./close.svg"),v=s.interopDefault(m),x=e("bundle-text:./config.svg"),g=s.interopDefault(x),y=e("bundle-text:./error.svg"),_=s.interopDefault(y),E=e("bundle-text:./flip.svg"),w=s.interopDefault(E),T=e("bundle-text:./fullscreen-off.svg"),C=s.interopDefault(T),I=e("bundle-text:./fullscreen-on.svg"),k=s.interopDefault(I),$=e("bundle-text:./fullscreen-web-off.svg"),R=s.interopDefault($),D=e("bundle-text:./fullscreen-web-on.svg"),O=s.interopDefault(D),B=e("bundle-text:./loading.svg"),U=s.interopDefault(B),N=e("bundle-text:./lock.svg"),V=s.interopDefault(N),H=e("bundle-text:./pause.svg"),re=s.interopDefault(H),W=e("bundle-text:./pip.svg"),X=s.interopDefault(W),Q=e("bundle-text:./play.svg"),le=s.interopDefault(Q),ve=e("bundle-text:./playback-rate.svg"),oe=s.interopDefault(ve),K=e("bundle-text:./screenshot.svg"),ee=s.interopDefault(K),ae=e("bundle-text:./setting.svg"),ue=s.interopDefault(ae),Ee=e("bundle-text:./state.svg"),_e=s.interopDefault(Ee),J=e("bundle-text:./switch-off.svg"),Y=s.interopDefault(J),fe=e("bundle-text:./switch-on.svg"),xe=s.interopDefault(fe),ne=e("bundle-text:./unlock.svg"),ie=s.interopDefault(ne),Le=e("bundle-text:./volume-close.svg"),we=s.interopDefault(Le),Be=e("bundle-text:./volume.svg"),Pe=s.interopDefault(Be),qe=e("../utils");n.default=class{constructor(Me){let ze={loading:U.default,state:_e.default,play:le.default,pause:re.default,check:p.default,volume:Pe.default,volumeClose:we.default,screenshot:ee.default,setting:ue.default,pip:X.default,arrowLeft:l.default,arrowRight:c.default,playbackRate:oe.default,aspectRatio:f.default,config:g.default,lock:V.default,flip:w.default,unlock:ie.default,fullscreenOff:C.default,fullscreenOn:k.default,fullscreenWebOff:R.default,fullscreenWebOn:O.default,switchOn:xe.default,switchOff:Y.default,error:_.default,close:v.default,airplay:o.default,...Me.option.icons};for(let et in ze)(0,qe.def)(this,et,{get:()=>(0,qe.getIcon)(et,ze[et])})}}},{"bundle-text:./airplay.svg":"gkZgZ","bundle-text:./arrow-left.svg":"kQyD4","bundle-text:./arrow-right.svg":"64ztm","bundle-text:./aspect-ratio.svg":"72LvA","bundle-text:./check.svg":"4QmBo","bundle-text:./close.svg":"j1hoe","bundle-text:./config.svg":"hNZaT","bundle-text:./error.svg":"dK
92h4l","bundle-text:./flip.svg":"lIEIE","bundle-text:./fullscreen-off.svg":"1533e","bundle-text:./fullscreen-on.svg":"76ut3","bundle-text:./fullscreen-web-off.svg":"3NzMk","bundle-text:./fullscreen-web-on.svg":"12xHc","bundle-text:./loading.svg":"iVcUF","bundle-text:./lock.svg":"1J4so","bundle-text:./pause.svg":"1KgkK","bundle-text:./pip.svg":"4h4tM","bundle-text:./play.svg":"jecAY","bundle-text:./playback-rate.svg":"anPe9","bundle-text:./screenshot.svg":"9BPYQ","bundle-text:./setting.svg":"hsI9k","bundle-text:./state.svg":"gr1ZU","bundle-text:./switch-off.svg":"6kdAr","bundle-text:./switch-on.svg":"ksdMo","bundle-text:./unlock.svg":"iz5Qc","bundle-text:./volume-close.svg":"3OZoa","bundle-text:./volume.svg":"hRYA4","../utils":"aBlEo","@parcel/transformer-js/src/esmodule-helpers.js":"loqXi"}],gkZgZ:[function(e,t,n,r){t.exports='<svg xmlns="http://www.w3.org/2000/svg" width="18" height="18" viewBox="0 0 18 18"><path d="M16 1H2a1 1 0 0 0-1 1v10a1 1 0 0 0 1 1h3v-2H3V3h12v8h-2v2h3a1 1 0 0 0 1-1V2a1 1 0 0 0-1-1"/><path d="M4 17h10l-5-6Z"/></svg>'},{}],kQyD4:[function(e,t,n,r){t.exports='<svg xmlns="http://www.w3.org/2000/svg" width="32" height="32" viewBox="0 0 32 32"><path d="m19.41 20.09-4.58-4.59 4.58-4.59L18 9.5l-6 6 6 6Z"/></svg>'},{}],"64ztm":[function(e,t,n,r){t.exports='<svg xmlns="http://www.w3.org/2000/svg" width="32" height="32" viewBox="0 0 32 32"><path d="m12.59 20.34 4.58-4.59-4.58-4.59L14 9.75l6 6-6 6Z"/></svg>'},{}],"72LvA":[function(e,t,n,r){t.exports='<svg xmlns="http://www.w3.org/2000/svg" style="width:100%;height:100%;transform:translate(0)" viewBox="0 0 88 88"><defs><clipPath id="__lottie_element_216"><path d="M0 0h88v88H0Z"/></clipPath></defs><g clip-path="url(#__lottie_element_216)"><g style="display:block"><path d="m12.438-12.702-2.82 2.82c-.79.79-.79 2.05 0 2.83l7.07 7.07-7.07 7.07c-.79.79-.79 2.05 0 2.83l2.82 2.83c.79.78 2.05.78 2.83 1.4495849676166017e-7l11.32-11.31c.78-.78.78-2.05 0-2.83l-11.32-11.31C14.488-13.492 13.228-13.492 12.438-12.702m-24.88 0c-.74-.74-1.92-.78-2.7-.12l-.13.12-11.31 11.31a2 2 0 0 0-.12 2.7l.12.13 11.31 11.31a2 2 0 0 0 2.7.12l.13-.12 2.83-2.83c.74-.74.78-1.91.11-2.7l-.11-.13-7.07-7.07 7.07-7.07c.74-.74.78-1.91.11-2.7l-.11-.13ZM28-28c4.42 0 8 3.58 8 8v40c0 4.42-3.58 8-8 8h-56c-4.42 0-8-3.58-8-8v-40c0-4.42 3.58-8 8-8Z" style="--darkreader-inline-fill:#a8a6a4" transform="translate(44 44)"/></g></g></svg>'},{}],"4QmBo":[function(e,t,n,r){t.exports='<svg xmlns="http://www.w3.org/2000/svg" style="width:100%;height:100%" viewBox="0 0 24 24"><path d="M9 16.2 4.8 12l-1.4 1.4L9 19 21 7l-1.4-1.4Z"/></svg>'},{}],j1hoe:[function(e,t,n,r){t.exports='<svg xmlns="http://www.w3.org/2000/svg" width="22" height="22" class="icon" viewBox="0 0 1024 1024"><path d="m571.733 512 268.8-268.8c17.067-17.067 17.067-42.667 0-59.733C823.467 166.4 797.867 166.4 780.8 183.466L512 452.267l-268.8-268.8C226.133 166.4 200.533 166.4 183.467 183.466c-17.067 17.066-17.067 42.666 0 59.733l268.8 268.8-268.8 268.8c-17.067 17.067-17.067 42.667 0 59.733 8.533 8.534 19.2 12.8 29.866 12.8s21.334-4.266 29.867-12.8l268.8-268.8 268.8 268.8c8.533 8.534 19.2 12.8 29.867 12.8s21.333-4.266 29.866-12.8c17.067-17.066 17.067-42.666 0-59.733Z"/></svg>'},{}],hNZaT:[function(e,t,n,r){t.exports='<svg width="24" height="24" viewBox="0 0 24 24"><path d="M15 17h6v1h-6Zm-4 0H3v1h8v2h1v-5h-1Zm3-9h1V3h-1v2H3v1h11Zm4-3v1h3V5ZM6 14h1V9H6v2H3v1h3Zm4-2h11v-1H10Z" style="--darkreader-inline-fill:#a8a6a4"/></svg>'},{}],dKh4l:[function(e,t,n,r){t.exports='<svg xmlns="http://www.w3.org/2000/svg" width="50" height="50" viewBox="0 0 1024 1024"><path d="M593.818 168.55 949.82 763.76c26.153 43.746 10.732 99.738-34.447 125.052-14.397 8.069-30.72 12.308-47.37 12.308H155.976c-52.224 0-94.536-40.96-94.536-91.505 0-16.097 4.383-31.928 12.718-45.875l356.004-595.19c26.173-43.724 84.009-58.654 129.208-33.341a93.1 93.1 0 0 1 34.447 33.341M512 819.2a61.44 61.44 0 1 0 0-122.88 61.44 61.44 0 0 0 0 122.88m0-512a72.315 72.315 0 0 0-71.762 81.306l25.723 205.721a46.408 46.408 0 0 0 92.078 0l25.723-205.742A72.315 72.315 0 0 0 512 307.2"/></svg>'},{}],lIEIE:[function(e,t,n,r){t.exports='<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" class="icon" viewB
92ox="0 0 1024 1024"><path d="M554.667 810.667V896h-85.333v-85.333Zm-384-632.662a42.67 42.67 0 0 1 34.987 18.219l203.903 291.328a42.67 42.67 0 0 1 0 48.896L205.611 827.776A42.667 42.667 0 0 1 128 803.328V220.672a42.667 42.667 0 0 1 42.667-42.667m682.666 0a42.667 42.667 0 0 1 42.368 37.717l.299 4.95v582.656a42.667 42.667 0 0 1-74.24 28.63l-3.413-4.182-203.904-291.328a42.67 42.67 0 0 1-3.03-43.861l3.03-5.035 203.946-291.328a42.67 42.67 0 0 1 34.944-18.219M554.667 640v85.333h-85.333V640Zm-358.4-320.896V716.8L335.957 512 196.31 319.104Zm358.4 150.23v85.333h-85.333v-85.333Zm0-170.667V384h-85.333v-85.333Zm0-170.667v85.333h-85.333V128Z"/></svg>'},{}],"1533e":[function(e,t,n,r){t.exports='<svg xmlns="http://www.w3.org/2000/svg" width="22" height="22" class="icon" viewBox="0 0 1024 1024"><path d="M768 298.667h170.667V384h-256V128H768ZM341.333 384h-256v-85.333H256V128h85.333ZM768 725.333V896h-85.333V640h256v85.333ZM341.333 640v256H256V725.333H85.333V640Z"/></svg>'},{}],"76ut3":[function(e,t,n,r){t.exports='<svg xmlns="http://www.w3.org/2000/svg" width="22" height="22" class="icon" viewBox="0 0 1024 1024"><path d="M625.778 256H768v142.222h113.778v-256h-256ZM256 398.222V256h142.222V142.222h-256v256Zm512 227.556V768H625.778v113.778h256v-256ZM398.222 768H256V625.778H142.222v256h256Z"/></svg>'},{}],"3NzMk":[function(e,t,n,r){t.exports='<svg xmlns="http://www.w3.org/2000/svg" width="18" height="18" class="icon" viewBox="0 0 1152 1024"><path d="M1075.2 0H76.8A76.8 76.8 0 0 0 0 76.8v870.4a76.8 76.8 0 0 0 76.8 76.8h998.4a76.8 76.8 0 0 0 76.8-76.8V76.8A76.8 76.8 0 0 0 1075.2 0M1024 128v768H128V128ZM896 512a64 64 0 0 1 7.488 127.552L896 640H768v128a64 64 0 0 1-56.512 63.552L704 832a64 64 0 0 1-63.552-56.512L640 768V582.592c0-34.496 25.024-66.112 61.632-70.208l8-.384Zm-640 0a64 64 0 0 1-7.488-127.552L256 384h128V256a64 64 0 0 1 56.512-63.552L448 192a64 64 0 0 1 63.552 56.512L512 256v185.408c0 34.432-25.024 66.112-61.632 70.144l-8 .448Z"/></svg>'},{}],"12xHc":[function(e,t,n,r){t.exports='<svg xmlns="http://www.w3.org/2000/svg" width="18" height="18" class="icon" viewBox="0 0 1152 1024"><path d="M1075.2 0H76.8A76.8 76.8 0 0 0 0 76.8v870.4a76.8 76.8 0 0 0 76.8 76.8h998.4a76.8 76.8 0 0 0 76.8-76.8V76.8A76.8 76.8 0 0 0 1075.2 0M1024 128v768H128V128Zm-576 64a64 64 0 0 1 7.488 127.552L448 320H320v128a64 64 0 0 1-56.512 63.552L256 512a64 64 0 0 1-63.552-56.512L192 448V262.592c0-34.432 25.024-66.112 61.632-70.144l8-.448Zm256 640a64 64 0 0 1-7.488-127.552L704 704h128V576a64 64 0 0 1 56.512-63.552L896 512a64 64 0 0 1 63.552 56.512L960 576v185.408c0 34.496-25.024 66.112-61.632 70.208l-8 .384Z"/></svg>'},{}],iVcUF:[function(e,t,n,r){t.exports='<svg xmlns="http://www.w3.org/2000/svg" width="50" height="50" class="uil-default" preserveAspectRatio="xMidYMid" viewBox="0 0 100 100"><path fill="none" d="M0 0h100v100H0Z" class="bk"/><rect width="6" height="20" x="47" y="40" rx="5" ry="5" transform="translate(0 -30)"><animate attributeName="opacity" begin="-1s" dur="1s" from="1" repeatCount="indefinite" to="0"/></rect><rect width="6" height="20" x="47" y="40" rx="5" ry="5" transform="rotate(30 105.98 65)"><animate attributeName="opacity" begin="-0.9166666666666666s" dur="1s" from="1" repeatCount="indefinite" to="0"/></rect><rect width="6" height="20" x="47" y="40" rx="5" ry="5" transform="rotate(60 75.98 65)"><animate attributeName="opacity" begin="-0.8333333333333334s" dur="1s" from="1" repeatCount="indefinite" to="0"/></rect><rect width="6" height="20" x="47" y="40" rx="5" ry="5" transform="rotate(90 65 65)"><animate attributeName="opacity" begin="-0.75s" dur="1s" from="1" repeatCount="indefinite" to="0"/></rect><rect width="6" height="20" x="47" y="40" rx="5" ry="5" transform="rotate(120 58.66 65)"><animate attributeName="opacity" begin="-0.6666666666666666s" dur="1s" from="1" repeatCount="indefinite" to="0"/></rect><rect width="6" height="20" x="47" y="40" rx="5" ry="5" transform="rotate(150 54.02 65)"><animate attributeName="opacity" begin="-0.5833333333333334s" dur="1s" from="1" repeatCount="indefinite" to="0"/></rect><rect width="6" height="20" x="47" y="40" rx="5" ry="5" transform="matrix(-1 0 0 -1 100 130)"><animate attributeName="opacity" begin="-0.5s" dur="1s" from="1" repeatCount="indef
92inite" to="0"/></rect><rect width="6" height="20" x="47" y="40" rx="5" ry="5" transform="rotate(210 45.98 65)"><animate attributeName="opacity" begin="-0.4166666666666667s" dur="1s" from="1" repeatCount="indefinite" to="0"/></rect><rect width="6" height="20" x="47" y="40" rx="5" ry="5" transform="rotate(240 41.34 65)"><animate attributeName="opacity" begin="-0.3333333333333333s" dur="1s" from="1" repeatCount="indefinite" to="0"/></rect><rect width="6" height="20" x="47" y="40" rx="5" ry="5" transform="rotate(-90 35 65)"><animate attributeName="opacity" begin="-0.25s" dur="1s" from="1" repeatCount="indefinite" to="0"/></rect><rect width="6" height="20" x="47" y="40" rx="5" ry="5" transform="rotate(-60 24.02 65)"><animate attributeName="opacity" begin="-0.16666666666666666s" dur="1s" from="1" repeatCount="indefinite" to="0"/></rect><rect width="6" height="20" x="47" y="40" rx="5" ry="5" transform="rotate(-30 -5.98 65)"><animate attributeName="opacity" begin="-0.08333333333333333s" dur="1s" from="1" repeatCount="indefinite" to="0"/></rect></svg>'},{}],"1J4so":[function(e,t,n,r){t.exports='<svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" class="icon" viewBox="0 0 1024 1024"><path d="M298.667 426.667v-85.333a213.333 213.333 0 1 1 426.667 0v85.333H768A85.333 85.333 0 0 1 853.333 512v256A85.333 85.333 0 0 1 768 853.333H256A85.333 85.333 0 0 1 170.667 768V512A85.333 85.333 0 0 1 256 426.667ZM512 213.333a128 128 0 0 0-128 128v85.333h256v-85.333a128 128 0 0 0-128-128"/></svg>'},{}],"1KgkK":[function(e,t,n,r){t.exports='<svg xmlns="http://www.w3.org/2000/svg" width="22" height="22" viewBox="0 0 22 22"><path d="M7 3a2 2 0 0 0-2 2v12a2 2 0 1 0 4 0V5a2 2 0 0 0-2-2m8 0a2 2 0 0 0-2 2v12a2 2 0 1 0 4 0V5a2 2 0 0 0-2-2"/></svg>'},{}],"4h4tM":[function(e,t,n,r){t.exports='<svg xmlns="http://www.w3.org/2000/svg" width="22" height="22" viewBox="0 0 1024 1024"><path d="M844.8 219.648H179.2c-6.144 0-10.24 4.608-10.24 10.752v563.2c0 5.632 4.096 10.24 10.24 10.24h256V896h-256A102.4 102.4 0 0 1 76.8 793.6V230.4c0-56.832 45.568-102.4 102.4-102.4h665.6a102.4 102.4 0 0 1 102.4 102.4v204.8h-92.16V230.4c0-6.144-4.608-10.752-10.24-10.752M614.4 588.8c-28.672 0-51.2 22.528-51.2 51.2v204.8c0 28.16 22.528 51.2 51.2 51.2H896c28.16 0 51.2-23.04 51.2-51.2V640c0-28.672-23.04-51.2-51.2-51.2Z"/></svg>'},{}],jecAY:[function(e,t,n,r){t.exports='<svg xmlns="http://www.w3.org/2000/svg" width="22" height="22" viewBox="0 0 22 22"><path d="M17.982 9.275 8.06 3.27A2.013 2.013 0 0 0 5 4.994v12.011a2.017 2.017 0 0 0 3.06 1.725l9.922-6.005a2.017 2.017 0 0 0 0-3.45"/></svg>'},{}],anPe9:[function(e,t,n,r){t.exports='<svg width="24" height="24" viewBox="0 0 24 24"><path d="M10 8v8l6-4ZM6.3 5l-.6-.8C7.2 3 9 2.2 11 2l.1 1c-1.8.2-3.4.9-4.8 2M5 6.3l-.8-.6C3 7.2 2.2 9 2 11l1 .1c.2-1.8.9-3.4 2-4.8m0 11.4c-1.1-1.4-1.8-3.1-2-4.8L2 13c.2 2 1 3.8 2.2 5.4Zm6.1 3.3c-1.8-.2-3.4-.9-4.8-2l-.6.8C7.2 21 9 21.8 11 22ZM22 12c0-5.2-3.9-9.4-9-10l-.1 1c4.6.5 8.1 4.3 8.1 9s-3.5 8.5-8.1 9l.1 1c5.2-.5 9-4.8 9-10" style="--darkreader-inline-fill:#a8a6a4"/></svg>'},{}],"9BPYQ":[function(e,t,n,r){t.exports='<svg xmlns="http://www.w3.org/2000/svg" width="22" height="22" viewBox="0 0 50 50"><path d="M19.402 6a5 5 0 0 0-4.902 4.012L14.098 12H9a5 5 0 0 0-5 5v21a5 5 0 0 0 5 5h32a5 5 0 0 0 5-5V17a5 5 0 0 0-5-5h-5.098l-.402-1.988A5 5 0 0 0 30.598 6ZM25 17c5.52 0 10 4.48 10 10s-4.48 10-10 10-10-4.48-10-10 4.48-10 10-10m0 2c-4.41 0-8 3.59-8 8s3.59 8 8 8 8-3.59 8-8-3.59-8-8-8"/></svg>'},{}],hsI9k:[function(e,t,n,r){t.exports='<svg xmlns="http://www.w3.org/2000/svg" width="22" height="22" viewBox="0 0 22 22"><circle cx="11" cy="11" r="2"/><path d="M19.164 8.861 17.6 8.6a7 7 0 0 0-1.186-2.099l.574-1.533a1 1 0 0 0-.436-1.217l-1.997-1.153a1 1 0 0 0-1.272.23l-1.008 1.225a7 7 0 0 0-2.55.001L8.716 2.829a1 1 0 0 0-1.272-.23L5.447 3.751a1 1 0 0 0-.436 1.217l.574 1.533A7 7 0 0 0 4.4 8.6l-1.564.261A1 1 0 0 0 2 9.847v2.306c0 .489.353.906.836.986l1.613.269a7 7 0 0 0 1.228 2.075l-.558 1.487a1 1 0 0 0 .436 1.217l1.997 1.153c.423.244.961.147 1.272-.23l1.04-1.263a7.1 7.1 0 0 0 2.272 0l1.04 1.263a1 1 0 0 0 1.272.23l1.997-1.153a1 1 0 0 0 .436-1.217l-.557-1.487c.521-.61.94-1.31 1.228-2.075l1.613-.269a1 1 0 0 0 .835-.986V9.847a1 1 0 0 0-.836-.986M11 15a4 4 0 1 1 0-8 4 4 0 0 1 0 8"/></svg>'},{}],gr1ZU:[function(e,t,n,r){t.exports='<svg xmlns="http://www.w3.org/2000/svg" width="80" height="80" viewBox="0 0 24 24">
92<path d="M9.5 9.325v5.35q0 .575.525.875t1.025-.05l4.15-2.65q.475-.3.475-.85t-.475-.85L11.05 8.5q-.5-.35-1.025-.05t-.525.875M12 22q-2.075 0-3.9-.788t-3.175-2.137q-1.35-1.35-2.137-3.175T2 12t.788-3.9 2.137-3.175q1.35-1.35 3.175-2.137T12 2t3.9.788 3.175 2.137q1.35 1.35 2.138 3.175T22 12q0 2.075-.788 3.9t-2.137 3.175q-1.35 1.35-3.175 2.138T12 22"/></svg>'},{}],"6kdAr":[function(e,t,n,r){t.exports='<svg xmlns="http://www.w3.org/2000/svg" width="26" height="26" class="icon" viewBox="0 0 1740 1024"><path d="M511.898 1024h670.515c282.419-.41 511.18-229.478 511.18-511.898 0-282.419-228.761-511.488-511.18-511.897H511.898C229.478.615.717 229.683.717 512.102c0 282.42 228.761 511.488 511.18 511.898m-.564-975.36A464.589 464.589 0 1 1 48.025 513.024 463.87 463.87 0 0 1 511.335 48.435Z"/></svg>'},{}],ksdMo:[function(e,t,n,r){t.exports='<svg xmlns="http://www.w3.org/2000/svg" width="26" height="26" class="icon" viewBox="0 0 1664 1024"><path fill="#648ffc" d="M1152 0H512a512 512 0 0 0 0 1024h640a512 512 0 0 0 0-1024m0 960a448 448 0 1 1 448-448 448 448 0 0 1-448 448"/></svg>'},{}],iz5Qc:[function(e,t,n,r){t.exports='<svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" class="icon" viewBox="0 0 1024 1024"><path d="m666.752 194.517-49.365 74.112A128 128 0 0 0 384 341.333l.043 85.334h384A85.333 85.333 0 0 1 853.376 512v256a85.333 85.333 0 0 1-85.333 85.333H256A85.333 85.333 0 0 1 170.667 768V512A85.333 85.333 0 0 1 256 426.667h42.667v-85.333a213.333 213.333 0 0 1 368.085-146.816"/></svg>'},{}],"3OZoa":[function(e,t,n,r){t.exports='<svg xmlns="http://www.w3.org/2000/svg" width="22" height="22" viewBox="0 0 22 22"><path d="M15 11a4 4 0 0 0-2-3.465v2.636l1.865 1.865A4 4 0 0 0 15 11"/><path d="M13.583 5.583A6 6 0 0 1 17 11a6 6 0 0 1-.585 2.587l1.477 1.477a8 8 0 0 0-3.446-11.286 1 1 0 0 0-.863 1.805m5.195 13.195-2.121-2.121-1.414-1.414-1.415-1.415L13 13l-2-2-3.889-3.889-3.889-3.889a.999.999 0 1 0-1.414 1.414L5.172 8H5a2 2 0 0 0-2 2v2a2 2 0 0 0 2 2h1l4.188 3.35a.5.5 0 0 0 .812-.39v-3.131l2.587 2.587-.01.005a1 1 0 0 0 .86 1.806q.322-.154.627-.333l2.3 2.3a1.001 1.001 0 0 0 1.414-1.416M11 5.04a.5.5 0 0 0-.813-.39L8.682 5.854 11 8.172Z"/></svg>'},{}],hRYA4:[function(e,t,n,r){t.exports='<svg xmlns="http://www.w3.org/2000/svg" width="22" height="22" viewBox="0 0 22 22"><path d="M10.188 4.65 6 8H5a2 2 0 0 0-2 2v2a2 2 0 0 0 2 2h1l4.188 3.35a.5.5 0 0 0 .812-.39V5.04a.498.498 0 0 0-.812-.39m4.258-.872a1 1 0 0 0-.862 1.804 6.002 6.002 0 0 1-.007 10.838 1 1 0 0 0 .86 1.806A8 8 0 0 0 19 11a8 8 0 0 0-4.554-7.222"/><path d="M15 11a4 4 0 0 0-2-3.465v6.93A4 4 0 0 0 15 11"/></svg>'},{}],kZ0F8:[function(e,t,n,r){var s=e("@parcel/transformer-js/src/esmodule-helpers.js");s.defineInteropFlag(n);var i=e("./utils"),o=e("./utils/component"),a=s.interopDefault(o);class l extends a.default{constructor(c){super(c),this.name="info",i.isMobile||this.init()}init(){let{proxy:c,constructor:d,template:{$infoPanel:f,$infoClose:h,$video:p}}=this.art;c(h,"click",()=>{this.show=!1});let m=null,v=(0,i.queryAll)("[data-video]",f)||[];this.art.on("destroy",()=>clearTimeout(m)),(function x(){for(let g=0;g<v.length;g++){let y=v[g],_=p[y.dataset.video],E=typeof _=="number"?_.toFixed(2):_;y.textContent!==E&&(y.textContent=E)}m=setTimeout(x,d.INFO_LOOP_TIME)})()}}n.default=l},{"./utils":"aBlEo","./utils/component":"idCEj","@parcel/transformer-js/src/esmodule-helpers.js":"loqXi"}],j9lbi:[function(e,t,n,r){var s=e("@parcel/transformer-js/src/esmodule-helpers.js");s.defineInteropFlag(n);var i=e("./utils/component"),o=s.interopDefault(i);class a extends o.default{constructor(u){super(u);let{option:c,template:{$layer:d}}=u;this.name="layer",this.$parent=d;for(let f=0;f<c.layers.length;f++)this.add(c.layers[f])}}n.default=a},{"./utils/component":"idCEj","@parcel/transformer-js/src/esmodule-helpers.js":"loqXi"}],bMjWd:[function(e,t,n,r){var s=e("@parcel/transformer-js/src/esmodule-helpers.js");s.defineInteropFlag(n);var i=e("./utils"),o=e("./utils/component"),a=s.interopDefault(o);class l extends a.default{constructor(c){super(c),this.name="loading",(0,i.append)(c.template.$loading,c.icons.loading)}}n.default=l},{"./utils":"aBlEo","./utils/component":"idCEj","@parcel/transformer-js/src/esmodule-helpers.js":"loqXi"}],k1nkQ:[function(e,t,n,r){var s=e("@parcel/transformer-js/src/esmodule-helpers.js");s.defineInteropFlag(n);var i=e("./utils"),o=e("./utils/component"),a=s.interopDefault(o);class l extends a.default{constructor(c){super(c),this.name="mask";let{template:d,icons:f,events:h}=c,p=(0,i.append)(d.$state,f.state),m=(0,i.append)(d.$state,f.error);(0,i.setStyle)(m,"display","none"),c.on("destroy",()=>{(0,i.setStyle)(p,"display","none"),(0,i.setStyle)(m,"display",null)}),h.proxy(d.$state,"click",()=>c.play())}}n.default=l},{"./utils":"aBlEo","./utils/component":"idCEj","@parcel/transformer-js/src/esmodule-helpers.js":"loqXi"}],fPVaU:[function(e,t,n,r){e("@parcel/transformer-js/src/esmodule-helpers.js").defineInteropFlag(n);var s=e("./utils");n.default=class{constructor(i){this.art=i,this.timer=null}set show(i){let{constructor:o,template:{$player:a,$noticeInner:l}}
vendor: 11,527 bytes, line 92
92=this.art;i?(l.textContent=i instanceof Error?i.message.trim():i,(0,s.addClass)(a,"art-notice-show"),clearTimeout(this.timer),this.timer=setTimeout(()=>{l.textContent="",(0,s.removeClass)(a,"art-notice-show")},o.NOTICE_TIME)):(0,s.removeClass)(a,"art-notice-show")}get show(){let{template:{$player:i}}=this.art;return i.classList.contains("art-notice-show")}}},{"./utils":"aBlEo","@parcel/transformer-js/src/esmodule-helpers.js":"loqXi"}],uR0Sw:[function(e,t,n,r){var s=e("@parcel/transformer-js/src/esmodule-helpers.js");s.defineInteropFlag(n);var i=e("./airplayMix"),o=s.interopDefault(i),a=e("./aspectRatioMix"),l=s.interopDefault(a),u=e("./attrMix"),c=s.interopDefault(u),d=e("./autoHeightMix"),f=s.interopDefault(d),h=e("./autoSizeMix"),p=s.interopDefault(h),m=e("./cssVarMix"),v=s.interopDefault(m),x=e("./currentTimeMix"),g=s.interopDefault(x),y=e("./durationMix"),_=s.interopDefault(y),E=e("./eventInit"),w=s.interopDefault(E),T=e("./flipMix"),C=s.interopDefault(T),I=e("./fullscreenMix"),k=s.interopDefault(I),$=e("./fullscreenWebMix"),R=s.interopDefault($),D=e("./loadedMix"),O=s.interopDefault(D),B=e("./miniMix"),U=s.interopDefault(B),N=e("./optionInit"),V=s.interopDefault(N),H=e("./pauseMix"),re=s.interopDefault(H),W=e("./pipMix"),X=s.interopDefault(W),Q=e("./playbackRateMix"),le=s.interopDefault(Q),ve=e("./playedMix"),oe=s.interopDefault(ve),K=e("./playingMix"),ee=s.interopDefault(K),ae=e("./playMix"),ue=s.interopDefault(ae),Ee=e("./posterMix"),_e=s.interopDefault(Ee),J=e("./qualityMix"),Y=s.interopDefault(J),fe=e("./rectMix"),xe=s.interopDefault(fe),ne=e("./screenshotMix"),ie=s.interopDefault(ne),Le=e("./seekMix"),we=s.interopDefault(Le),Be=e("./stateMix"),Pe=s.interopDefault(Be),qe=e("./subtitleOffsetMix"),Me=s.interopDefault(qe),ze=e("./switchMix"),et=s.interopDefault(ze),pe=e("./themeMix"),ge=s.interopDefault(pe),he=e("./thumbnailsMix"),ye=s.interopDefault(he),me=e("./toggleMix"),Ne=s.interopDefault(me),Je=e("./typeMix"),Oe=s.interopDefault(Je),Ye=e("./urlMix"),ot=s.interopDefault(Ye),rt=e("./volumeMix"),ct=s.interopDefault(rt);n.default=class{constructor(Se){(0,ot.default)(Se),(0,c.default)(Se),(0,ue.default)(Se),(0,re.default)(Se),(0,Ne.default)(Se),(0,we.default)(Se),(0,ct.default)(Se),(0,g.default)(Se),(0,_.default)(Se),(0,et.default)(Se),(0,le.default)(Se),(0,l.default)(Se),(0,ie.default)(Se),(0,k.default)(Se),(0,R.default)(Se),(0,X.default)(Se),(0,O.default)(Se),(0,oe.default)(Se),(0,ee.default)(Se),(0,p.default)(Se),(0,xe.default)(Se),(0,C.default)(Se),(0,U.default)(Se),(0,_e.default)(Se),(0,f.default)(Se),(0,v.default)(Se),(0,ge.default)(Se),(0,Oe.default)(Se),(0,Pe.default)(Se),(0,Me.default)(Se),(0,o.default)(Se),(0,Y.default)(Se),(0,ye.default)(Se),(0,w.default)(Se),(0,V.default)(Se)}}},{"./airplayMix":"d8BTB","./aspectRatioMix":"aQNJl","./attrMix":"5DA9e","./autoHeightMix":"1swKn","./autoSizeMix":"lSbiD","./cssVarMix":"32Hp1","./currentTimeMix":"kfZbu","./durationMix":"eV1ag","./eventInit":"f8NQq","./flipMix":"ea3Qm","./fullscreenMix":"ffXE3","./fullscreenWebMix":"8tarF","./loadedMix":"f9syH","./miniMix":"dLuS7","./optionInit":"d1F69","./pauseMix":"kewk9","./pipMix":"4XzDs","./playbackRateMix":"jphfi","./playedMix":"iNpeS","./playingMix":"aBIWL","./playMix":"hRBri","./posterMix":"fgfXC","./qualityMix":"17rUP","./rectMix":"55qzI","./screenshotMix":"bC6TG","./seekMix":"j8GRO","./stateMix":"cn7iR","./subtitleOffsetMix":"2k4nP","./switchMix":"6SU6j","./themeMix":"7iMuh","./thumbnailsMix":"6P0RS","./toggleMix":"eNi78","./typeMix":"7AUBD","./urlMix":"cnlLL","./volumeMix":"iX66j","@parcel/transformer-js/src/esmodule-helpers.js":"loqXi"}],d8BTB:[function(e,t,n,r){var s=e("@parcel/transformer-js/src/esmodule-helpers.js");s.defineInteropFlag(n),s.export(n,"default",()=>o);var i=e("../utils");function o(a){let{i18n:l,notice:u,proxy:c,template:{$video:d}}=a,f=!0;window.WebKitPlaybackTargetAvailabilityEvent&&d.webkitShowPlaybackTargetPicker?c(d,"webkitplaybacktargetavailabilitychanged",h=>{switch(h.availability){case"available":f=!0;break;case"not-available":f=!1}}):f=!1,(0,i.def)(a,"airplay",{value(){f?(d.webkitShowPlaybackTargetPicker(),a.emit("airplay")):u.show=l.get("AirPlay Not Available")}})}},{"../utils":"aBlEo","@parcel/transformer-js/src/esmodule-helpers.js":"loqXi"}],aQNJl:[function(e,t,n,r){var s=e("@parcel/transformer-js/src/esmodule-helpers.js");s.defineInteropFlag(n),s.export(n,"default",()=>o);var i=e("../utils");function o(a){let{i18n:l,notice:u,template:{$video:c,$player:d}}=a;(0,i.def)(a,"aspectRatio",{get:()=>d.dataset.aspectRatio||"default",set(f){if(f||(f="default"),f==="default")(0,i.setStyle)(c,"width",null),(0,i.setStyle)(c,"height",null),(0,i.setStyle)(c,"margin",null),delete d.dataset.aspectRatio;else{let h=f.split(":").map(Number),{clientWidth:p,clientHeight:m}=d,v=h[0]/h[1];p/m>v?((0,i.setStyle)(c,"width",`${v*m}px`),(0,i.setStyle)(c,"height","100%"),(0,i.setStyle)(c,"margin","0 auto")):((0,i.setStyle)(c,"width","100%"),(0,i.setStyle)(c,"height",`${p/v}px`),(0,i.setStyle)(c,"margin","auto 0")),d.dataset.aspectRatio=f}u.show=`${l.get("Aspect Ratio")}: ${f==="default"?l.get("Default"):f}`,a.emit("aspectRatio",f)}})}},{"../utils":"aBlEo","@parcel/transformer-js/src/esmodule-helpers.js":"loqXi"}],"5DA9e":[function(e,t,n,r){var s=e("@parcel/transformer-js/src/esmodule-helpers.js");s.defineInteropFlag(n),s.export(n,"default",()=>o);var i=e("../utils");function o(a){let{template:{$video:l}}=a;(0,i.def)(a,"attr",{value(u,c){if(c===void 0)return l[u];l[u]=c}})}},{"../utils":"aBlEo","@parcel/transformer-js/src/esmodule-helpers.js":"loqXi"}],"1swKn":[function(e,t,n,r){var s=e("@parcel/transformer-js/src/esmodule-helpers.js");s.defineInteropFlag(n),s.export(n,"default",()=>o);var i=e("../utils");function o(a){let{template:{$container:l,$video:u}}=a;(0,i.def)(a,"autoHeight",{value(){let{clientWidth:c}=l,{videoHeight:d,videoWidth:f}=u,h=c/f*d;(0,i.setStyle)(l,"height",`${h}px`),a.emit("autoHeight",h)}})}},{"../utils":"aBlEo","@parcel/transformer-js/src/esmodule-helpers.js":"loqXi"}],lSbiD:[function(e,t,n,r){var s=e("@parcel/transformer-js/src/esmodule-helpers.js");s.defineInteropFlag(n),s.export(n,"default",()=>o);var i=e("../utils");function o(a){let{$container:l,$player:u,$video:c}=a.template;(0,i.def)(a,"autoSize",{value(){let{videoWidth:d,videoHeight:f}=c,{width:h,height:p}=(0,i.getRect)(l),m=d/f;h/p>m?((0,i.setStyle)(u,"width",`${p*m/h*100}%`),(0,i.setStyle)(u,"height","100%")):((0,i.setStyle)(u,"width","100%"),(0,i.setStyle)(u,"height",`${h/m/p*100}%`)),a.emit("autoSize",{width:a.width,height:a.height})}})}},{"../utils":"aBlEo","@parcel/transformer-js/src/esmodule-helpers.js":"loqXi"}],"32Hp1":[function(e,t,n,r){var s=e("@parcel/transformer-js/src/esmodule-helpers.js");s.defineInteropFlag(n),s.export(n,"default",()=>o);var i=e("../utils");function o(a){let{$player:l}=a.template;(0,i.def)(a,"cssVar",{value:(u,c)=>c?l.style.setProperty(u,c):getComputedStyle(l).getPropertyValue(u)})}},{"../utils":"aBlEo","@parcel/transformer-js/src/esmodule-helpers.js":"loqXi"}],kfZbu:[function(e,t,n,r){var s=e("@parcel/transformer-js/src/esmodule-helpers.js");s.defineInteropFlag(n),s.export(n,"default",()=>o);var i=e("../utils");function o(a){let{$video:l}=a.template;(0,i.def)(a,"currentTime",{get:()=>l.currentTime||0,set:u=>{Number.isNaN(u=Number.parseFloat(u))||(l.currentTime=(0,i.clamp)(u,0,a.duration))}})}},{"../utils":"aBlEo","@parcel/transformer-js/src/esmodule-helpers.js":"loqXi"}],eV1ag:[function(e,t,n,r){var s=e("@parcel/transformer-js/src/esmodule-helpers.js");s.defineInteropFlag(n),s.export(n,"default",()=>o);var i=e("../utils");function o(a){(0,i.def)(a,"duration",{get:()=>{let{duration:l}=a.template.$video;return l===1/0?0:l||0}})}},{"../utils":"aBlEo","@parcel/transformer-js/src/esmodule-helpers.js":"loqXi"}],f8NQq:[function(e,t,n,r){var s=e("@parcel/transformer-js/src/esmodule-helpers.js");s.defineInteropFlag(n),s.export(n,"default",()=>l);var i=e("../config"),o=s.interopDefault(i),a=e("../utils");function l(u){let{i18n:c,notice:d,option:f,constructor:h,proxy:p,template:{$player:m,$video:v,$poster:x}}=u,g=0;for(let y=0;y<o.default.events.length;y++)p(v,o.default.events[y],_=>{u.emit(`video:${_.type}`,_)});u.on("video:canplay",()=>{g=0,u.loading.show=!1}),u.once("video:canplay",()=>{u.loading.show=!1,u.controls.show=!0,u.mask.show=!0,u.isReady=!0,u.emit("ready")}),u.on("video:ended",()=>{f.loop?(u.seek=0,u.play(),u.controls.show=!1,u.mask.show=!1):(u.controls.show=!0,u.mask.show=!0)}),u.on("video:error",async y=>{g<h.RECONNECT_TIME_MAX?(await(0,a.sleep)(h.RECONNECT_SLEEP_TIME),g+=1,u.url=f.url,d.show=`${c.get("Reconnect")}: ${g}`,u.emit("error",y,g)):(u.mask.show=!0,u.loading.show=!1,u.controls.show=!0,(0,a.addClass)(m,"art-error"),await(0,a.sleep)(h.RECONNECT_SLEEP_TIME),d.show=c.get("Video Load Failed"))}),u.on("video:loadedmetadata",()=>{u.emit("resize"),a.isMobile&&(u.loading.show=!1,u.controls.show=!0,u.mask.show=!0)}),u.on("video:loadstart",()=>{u.loading.show=!0,u.mask.show=!1,u.controls.show=!0}),u.on("video:pause",()=>{u.controls.show=!0,u.mask.show=!0}),u.on("video:play",()=>{u.mask.show=!1,(0,a.setStyle)(x,"display","none")}),u.on("video:playing",()=>{u.mask.show=!1}),u.on("video:progress",()=>{u.playing&&(u.loading.show=!1)}),u.on("video:seeked",()=>{u.loading.show=!1,u.mask.show=!0}),u.on("video:seeking",()=>{u.loading.show=!0,u.mask.show=!1}),u.on("video:timeupdate",()=>{u.mask.show=!1}),u.on("video:waiting",()=>{u.loading.show=!0,u.mask.show=!1})}},{"../config":"eJfh8","../utils":"aBlEo","@parcel/transformer-js/src/esmodule-helpers.js":"loqXi"}],ea3Qm:[function(e,t,n,r){var s=e("@parcel/transformer-js/src/esmodule-helpers.js");s.defineInteropFlag(n),s.export(n,"default",()=>o);var i=e("../utils");function o(a){let{template:{$player:l},i18n:u,notice:c}=a;(0,i.def)(a,"flip",{get:()=>l.dataset.flip||"normal",set(d){d||(d="normal"),d==="normal"?delete l.dataset.flip:l.dataset.flip=d,c.show=`${u.get("Video Flip")}: ${u.get((0,i.capitalize)(d))}`,a.emit("flip",d)}})}},{"../utils":"aBlEo","@parcel/transformer-js/src/esmodule-helpers.js":"loqXi"}],ffXE3:[function(e,t,n,r){var s=e("@parcel/transformer-js/src/esmodule-helpers.js");s.defineInteropFlag(n),s.export(n,"default",()=>l);var i=e("../libs/screenfull"),o=s.interopDefault(i),a=e("../utils");function l(u){let{i18n:c,notice:d,template:{$video:f,$player:h}}=u;u.once("video:loadedmetadata",()=>{o.default.isEnabled?(o.default.on("change",()=>{u.emit("fullscreen",o.default.isFullscreen),o.default.isFullscreen?(u.state="fullscreen",(0,a.addClass)(h,"art-fullscreen")):(0,a.removeClass)(h,"art-fullscreen"),u.emit("resize")}),o.default.on("error",p=>{u.emit("fullscreenError",p)}),(0,a.def)(u,"fullscreen",{get:()=>o.default.isFullscreen,async set(p){p?await o.default.request(h):await o.default.exit()}})):f.webkitSupportsFullscreen?(u.on("document:webkitfullscreenchange",()=>{u.emit("fullscreen",u.fullscreen),u.emit("resize")}),(0,a.def)(u,"fullscreen",{get:()=>document.fullscreenElement===f,set(p){p?(u.state="fullscreen",f.webkitEnterFullscreen()):f.webkitExitFullscreen()}})):(0,a.def)(u,"fullscreen",{get:()=>!1,set(){d.show=c.get("Fullscreen Not Supported")}}),(0,a.def)(u,"fullscreen",(0,a.get)(u,"fullscreen"))})}},{"../libs/screenfull":"iSPAQ","../utils":"aBlEo","@parcel/transformer-js/src/esmodule-helpers.js":"loqXi"}],iSPAQ:[function(e,t,n,r){e("@parcel/transformer-js/src/esmodule-helpers.js").defineInteropFlag(n);let s=[["requestFullscreen","exitFullscreen","fullscreenElement","fullscreenEnabled","fullscreenchange","fullscreenerror"],["
92webkitRequestFullscreen","webkitExitFullscreen","webkitFullscreenElement","webkitFullscreenEnabled","webkitfullscreenchange","webkitfullscreenerror"],["webkitRequestFullScreen","webkitCancelFullScreen","webkitCurrentFullScreenElement","webkitCancelFullScreen","webkitfullscreenchange","webkitfullscreenerror"],["mozRequestFullScreen","mozCancelFullScreen","mozFullScreenElement","mozFullScreenEnabled","mozfullscreenchange","mozfullscreenerror"],["msRequestFullscreen","msExitFullscreen","msFullscreenElement","msFullscreenEnabled","MSFullscreenChange","MSFullscreenError"]],i=(()=>{if(typeof document>"u")return!1;let l=s[0],u={};for(let c of s)if(c[1]in document){for(let[d,f]of c.entries())u[l[d]]=f;return u}return!1})(),o={change:i.fullscreenchange,error:i.fullscreenerror},a={request:(l=document.documentElement,u)=>new Promise((c,d)=>{let f=()=>{a.off("change",f),c()};a.on("change",f);let h=l[i.requestFullscreen](u);h instanceof Promise&&h.then(f).catch(d)}),exit:()=>new Promise((l,u)=>{if(!a.isFullscreen)return void l();let c=()=>{a.off("change",c),l()};a.on("change",c);let d=document[i.exitFullscreen]();d instanceof Promise&&d.then(c).catch(u)}),toggle:(l,u)=>a.isFullscreen?a.exit():a.request(l,u),onchange(l){a.on("change",l)},onerror(l){a.on("error",l)},on(l,u){let c=o[l];c&&document.addEventListener(c,u,!1)},off(l,u){let c=o[l];c&&document.removeEventListener(c,u,!1)},raw:i};Object.defineProperties(a,{isFullscreen:{get:()=>!!document[i.fullscreenElement]},element:{enumerable:!0,get:()=>document[i.fullscreenElement]},isEnabled:{enumerable:!0,get:()=>!!document[i.fullscreenEnabled]}}),n.default=a},{"@parcel/transformer-js/src/esmodule-helpers.js":"loqXi"}],"8tarF":[function(e,t,n,r){var s=e("@parcel/transformer-js/src/esmodule-helpers.js");s.defineInteropFlag(n),s.export(n,"default",()=>o);var i=e("../utils");function o(a){let{constructor:l,template:{$container:u,$player:c}}=a,d="";(0,i.def)(a,"fullscreenWeb",{get:()=>(0,i.hasClass)(c,"art-fullscreen-web"),set(f){f?(d=c.style.cssText,l.FULLSCREEN_WEB_IN_BODY&&(0,i.append)(document.body,c),a.state="fullscreenWeb",(0,i.setStyle)(c,"width","100%"),(0,i.setStyle)(c,"height","100%"),(0,i.addClass)(c,"art-fullscreen-web"),a.emit("fullscreenWeb",!0)):(l.FULLSCREEN_WEB_IN_BODY&&(0,i.append)(u,c),d&&(c.style.cssText=d,d=""),(0,i.removeClass)(c,"art-fullscreen-web"),a.emit("fullscreenWeb",!1)),a.emit("resize")}})}},{"../utils":"aBlEo","@parcel/transformer-js/src/esmodule-helpers.js":"loqXi"}],f9syH:[function(e,t,n,r){var s=e("@parcel/transformer-js/src/esmodule-helpers.js");s.defineInteropFlag(n),s.export(n,"default",()=>o);var i=e("../utils");function o(a){let{$video:l}=a.template;(0,i.def)(a,"loaded",{get:()=>a.loadedTime/l.duration}),(0,i.def)(a,"loadedTime",{get:()=>l.buffered.length?l.buffered.end(l.buffered.length-1):0})}},{"../utils":"aBlEo","@parcel/transformer-js/src/esmodule-helpers.js":"loqXi"}],dLuS7:[function(e,t,n,r){var s=e("@parcel/transformer-js/src/esmodule-helpers.js");s.defineInteropFlag(n),s.export(n,"default",()=>o);var i=e("../utils");function o(a){let{icons:l,proxy:u,storage:c,template:{$player:d,$video:f}}=a,h=!1,p=0,m=0;function v(){let{$mini:y}=a.template;y&&((0,i.removeClass)(d,"art-mini"),(0,i.setStyle)(y,"display","none"),d.prepend(f),a.emit("mini",!1))}function x(y,_){a.playing?((0,i.setStyle)(y,"display","none"),(0,i.setStyle)(_,"display","flex")):((0,i.setStyle)(y,"display","flex"),(0,i.setStyle)(_,"display","none"))}function g(){let{$mini:y}=a.template,_=(0,i.getRect)(y),E=window.innerHeight-_.height-50,w=window.innerWidth-_.width-50;c.set("top",E),c.set("left",w),(0,i.setStyle)(y,"top",`${E}px`),(0,i.setStyle)(y,"left",`${w}px`)}(0,i.def)(a,"mini",{get:()=>(0,i.hasClass)(d,"art-mini"),set(y){if(y){a.state="mini",(0,i.addClass)(d,"art-mini");let _=(function(){let{$mini:T}=a.template;if(T)return(0,i.append)(T,f),(0,i.setStyle)(T,"display","flex");{let C=(0,i.createElement)("div");(0,i.addClass)(C,"art-mini-popup"),(0,i.append)(document.body,C),a.template.$mini=C,(0,i.append)(C,f);let I=(0,i.append)(C,'<div class="art-mini-close"></div>');(0,i.append)(I,l.close),u(I,"click",v);let k=(0,i.append)(C,'<div class="art-mini-state"></div>'),$=(0,i.append)(k,l.play),R=(0,i.append)(k,l.pause);return u($,"click",()=>a.play()),u(R,"click",()=>a.pause()),x($,R),a.on("video:playing",()=>x($,R)),a.on("video:pause",()=>x($,R)),a.on("video:timeupdate",()=>x($,R)),u(C,"mousedown",D=>{h=D.button===0,p=D.pageX,m=D.pageY}),a.on("document:mousemove",D=>{if(h){(0,i.addClass)(C,"art-mini-dragging");let O=D.pageX-p,B=D.pageY-m;(0,i.setStyle)(C,"transform",`translate(${O}px, ${B}px)`)}}),a.on("document:mouseup",()=>{if(h){h=!1,(0,i.removeClass)(C,"art-mini-dragging");let D=(0,i.getRect)(C);c.set("left",D.left),c.set("top",D.top),(0,i.setStyle)(C,"left",`${D.left}px`),(0,i.setStyle)(C,"top",`${D.top}px`),(0,i.setStyle)(C,"transform",null)}}),C}})(),E=c.get("top"),w=c.get("left");typeof E=="number"&&typeof w=="number"?((0,i.setStyle)(_,"top",`${E}px`),(0,i.setStyle)(_,"left",`${w}px`),(0,i.isInViewport)(_)||g()):g(),a.emit("mini",!0)}else v()}})}},{"../utils":"aBlEo","@parcel/transformer-js/src/esmodule-helpers.js":"loqXi"}],d1F69:[function(e,t,n,r){var s=e("@parcel/transformer-js/src/esmodule-helpers.js");s.defineInteropFlag(n),s.export(n,"default",()=>o);var i=e("../utils");function o(a){let{option:l,storage:u,template:{$video:c,$poster:d}}=a;for(let h in l.moreVideoAttr)a.attr(h,l.moreVideoAttr[h]);l.muted&&(a.muted=l.muted),l.volume&&(c.volume=(0,i.clamp)(l.volume,0,1));let f=u.get("volume");for(let h in typeof f=="number"&&(c.volume=(0,i.clamp)(f,0,1)),l.poster&&(0,i.setStyle)(d,"backgroundImage",`url(${l.poster}
92)`),l.autoplay&&(c.autoplay=l.autoplay),l.playsInline&&(c.playsInline=!0,c["webkit-playsinline"]=!0),l.theme&&(l.cssVar["--art-theme"]=l.theme),l.cssVar)a.cssVar(h,l.cssVar[h]);a.url=l.url}},{"../utils":"aBlEo","@parcel/transformer-js/src/esmodule-helpers.js":"loqXi"}],kewk9:[function(e,t,n,r){var s=e("@parcel/transformer-js/src/esmodule-helpers.js");s.defineInteropFlag(n),s.export(n,"default",()=>o);var i=e("../utils");function o(a){let{template:{$video:l},i18n:u,notice:c}=a;(0,i.def)(a,"pause",{value(){let d=l.pause();return c.show=u.get("Pause"),a.emit("pause"),d}})}},{"../utils":"aBlEo","@parcel/transformer-js/src/esmodule-helpers.js":"loqXi"}],"4XzDs":[function(e,t,n,r){var s=e("@parcel/transformer-js/src/esmodule-helpers.js");s.defineInteropFlag(n),s.export(n,"default",()=>o);var i=e("../utils");function o(a){let{i18n:l,notice:u,template:{$video:c}}=a;if(document.pictureInPictureEnabled){let{template:{$video:d},proxy:f,notice:h}=a;d.disablePictureInPicture=!1,(0,i.def)(a,"pip",{get:()=>document.pictureInPictureElement,set(p){p?(a.state="pip",d.requestPictureInPicture().catch(m=>{throw h.show=m,m})):document.exitPictureInPicture().catch(m=>{throw h.show=m,m})}}),f(d,"enterpictureinpicture",()=>{a.emit("pip",!0)}),f(d,"leavepictureinpicture",()=>{a.emit("pip",!1)})}else if(c.webkitSupportsPresentationMode){let{$video:d}=a.template;d.webkitSetPresentationMode("inline"),(0,i.def)(a,"pip",{get:()=>d.webkitPresentationMode==="picture-in-picture",set(f){f?(a.state="pip",d.webkitSetPresentationMode("picture-in-picture"),a.emit("pip",!0)):(d.webkitSetPresentationMode("inline"),a.emit("pip",!1))}})}else(0,i.def)(a,"pip",{get:()=>!1,set(){u.show=l.get("PIP Not Supported")}})}},{"../utils":"aBlEo","@parcel/transformer-js/src/esmodule-helpers.js":"loqXi"}],jphfi:[function(e,t,n,r){var s=e("@parcel/transformer-js/src/esmodule-helpers.js");s.defineInteropFlag(n),s.export(n,"default",()=>o);var i=e("../utils");function o(a){let{template:{$video:l},i18n:u,notice:c}=a;(0,i.def)(a,"playbackRate",{get:()=>l.playbackRate,set(d){d?d!==l.playbackRate&&(l.playbackRate=d,c.show=`${u.get("Rate")}: ${d===1?u.get("Normal"):`${d}x`}`):a.playbackRate=1}})}},{"../utils":"aBlEo","@parcel/transformer-js/src/esmodule-helpers.js":"loqXi"}],iNpeS:[function(e,t,n,r){var s=e("@parcel/transformer-js/src/esmodule-helpers.js");s.defineInteropFlag(n),s.export(n,"default",()=>o);var i=e("../utils");function o(a){(0,i.def)(a,"played",{get:()=>a.currentTime/a.duration})}},{"../utils":"aBlEo","@parcel/transformer-js/src/esmodule-helpers.js":"loqXi"}],aBIWL:[function(e,t,n,r){var s=e("@parcel/transformer-js/src/esmodule-helpers.js");s.defineInteropFlag(n),s.export(n,"default",()=>o);var i=e("../utils");function o(a){let{$video:l}=a.template;(0,i.def)(a,"playing",{get:()=>typeof l.playing=="boolean"?l.playing:l.currentTime>0&&!l.paused&&!l.ended&&l.readyState>2})}},{"../utils":"aBlEo","@parcel/transformer-js/src/esmodule-helpers.js":"loqXi"}],hRBri:[function(e,t,n,r){var s=e("@parcel/transformer-js/src/esmodule-helpers.js");s.defineInteropFlag(n),s.export(n,"default",()=>o);var i=e("../utils");function o(a){let{i18n:l,notice:u,option:c,constructor:{instances:d},template:{$video:f}}=a;(0,i.def)(a,"play",{async value(){let h=await f.play();if(u.show=l.get("Play"),a.emit("play"),c.mutex)for(let p=0;p<d.length;p++){let m=d[p];m!==a&&m.pause()}return h}})}},{"../utils":"aBlEo","@parcel/transformer-js/src/esmodule-helpers.js":"loqXi"}],fgfXC:[function(e,t,n,r){var s=e("@parcel/transformer-js/src/esmodule-helpers.js");s.defineInteropFlag(n),s.export(n,"default",()=>o);var i=e("../utils");function o(a){let{template:{$poster:l}}=a;(0,i.def)(a,"poster",{get:()=>{try{return l.style.backgroundImage.match(/"(.*)"/)[1]}catch{return""}},set(u){(0,i.setStyle)(l,"backgroundImage",`url(${u})`)}})}},{"../utils":"aBlEo","@parcel/transformer-js/src/esmodule-helpers.js":"loqXi"}],"17rUP":[function(e,t,n,r){var s=e("@parcel/transformer-js/src/esmodule-helpers.js");s.defineInteropFlag(n),s.export(n,"default",()=>o);var i=e("../utils");function o(a){(0,i.def)(a,"quality",{set(l){let{controls:u,notice:c,i18n:d}=a,f=l.find(h=>h.default)||l[0];u.update({name:"quality",position:"right",index:10,style:{marginRight:"10px"},html:f?.html||"",selector:l,onSelect:async h=>(await a.switchQuality(h.url),c.show=`${d.get("Switch Video")}: ${h.html}`,h.html)})}})}},{"../utils":"aBlEo","@parcel/transformer-js/src/esmodule-helpers.js":"loqXi"}],"55qzI":[function(e,t,n,r){var s=e("@parcel/transformer-js/src/esmodule-helpers.js");s.defineInteropFlag(n),s.export(n,"default",()=>o);var i=e("../utils");function o(a){(0,i.def)(a,"rect",{get:()=>(0,i.getRect)(a.template.$player)});let l=["bottom","height","left","right","top","width"];for(let u=0;u<l.length;u++){let c=l[u];(0,i.def)(a,c,{get:()=>a.rect[c]})}(0,i.def)(a,"x",{get:()=>a.left+window.pageXOffset}),(0,i.def)(a,"y",{get:()=>a.top+window.pageYOffset})}},{"../utils":"aBlEo","@parcel/transformer-js/src/esmodule-helpers.js":"loqXi"}],bC6TG:[function(e,t,n,r){var s=e("@parcel/transformer-js/src/esmodule-helpers.js");s.defineInteropFlag(n),s.export(n,"default",()=>o);var i=e("../utils");function o(a){let{notice:l,template:{$video:u}}=a,c=(0,i.createElement)("canvas");(0,i.def)(a,"getDataURL",{value:()=>new Promise((d,f)=>{try{c.width=u.videoWidth,c.height=u.videoHeight,c.getContext("2d").drawImage(u,0,0),d(c.toDataURL("image/png"))}catch(h){l.show=h,f(h)}})}),(0,i.def)(a,"getBlobUrl",{value:()=>new Promise((d,f)=>{try{c.width=u.videoWidth,c.height=u.videoHeight,c.getContext("2d").drawImage(u,0,0),c.toBlob(h=>{d(URL.createObjectURL(h))})}catch(h){l.show=h,f(h)}})}),(0,i.def)(a,"screenshot",{value:async d=>{let f=await a.getDataURL(),h=d||`artplayer_${(0,i.secondToTime)(u.currentTime)}`;return(0,i.download)(f,`${h}.png`),a.emit("screenshot",f),f}})}},{"../utils":"aBlEo","@parcel/transformer-js/src/esmodule-helpers.js":"loqXi"}],j8GRO:[function(e,t,n,r){var s=e("@parcel/transformer-js/src/esmodule-helpers.js");s.defineInteropFlag(n),s.export(n,"default",()=>o);var i=e("../utils");function o(a){let{notice:l}=a;(0,i.def)(a,"seek",{set(u){a.currentTime=u,a.duration&&(l.show=`${(0,i.secondToTime)(a.currentTime)} / ${(0,i.secondToTime)(a.duration)}`),a.emit("seek",a.currentTime)}}),(0,i.def)(a,"forward",{set(u){a.seek=a.currentTime+u}}),(0,i.def)(a,"backward",{set(u){a.seek=a.currentTime-u}})}},{"../utils":"aBlEo","@parcel/transformer-js/src/esmodule-helpers.js":"loqXi"}],cn7iR:[function(e,t,n,r){var s=e("@parcel/transformer-js/src/esmodule-helpers.js");s.defineInteropFlag(n),s.export(n,"default",()=>o);var i=e("../utils");function o(a){let l=["mini","pip","fullscreen","fullscreenWeb"];(0,i.def)(a,"state",{get:()=>l.find(u=>a[u])||"standard",set(u){for(let c=0;c<l.length;c++){let d=l[c];d!==u&&a[d]&&(a[d]=!1)}}})}},{"../utils":"aBlEo","@parcel/transformer-js/src/esmodule-helpers.js":"loqXi"}],"2k4nP":[function(e,t,n,r){var s=e("@parcel/transformer-js/src/esmodule-helpers.js");s.defineInteropFlag(n),s.export(n,"default",()=>o);var i=e("../utils");function o(a){let{notice:l,i18n:u,template:c}=a;(0,i.def)(a,"subtitleOffset",{get:()=>c.$track?.offset||0,set(d){let{cues:f}=a.subtitle;if(!c.$track||f.length===0)return;let h=(0,i.clamp)(d,-10,10);c.$track.offset=h;for(let p=0;p<f.length;p++){let m=f[p];m.originalStartTime=m.originalStartTime??m.startTime,m.originalEndTime=m.originalEndTime??m.endTime,m.startTime=(0,i.clamp)(m.originalStartTime+h,0,a.duration),m.endTime=(0,i.clamp)(m.originalEndTime+h,0,a.duration)}
vendor: 4,457 bytes, line 92
92a.subtitle.update(),l.show=`${u.get("Subtitle Offset")}: ${d}s`,a.emit("subtitleOffset",d)}})}},{"../utils":"aBlEo","@parcel/transformer-js/src/esmodule-helpers.js":"loqXi"}],"6SU6j":[function(e,t,n,r){var s=e("@parcel/transformer-js/src/esmodule-helpers.js");s.defineInteropFlag(n),s.export(n,"default",()=>o);var i=e("../utils");function o(a){function l(u,c){return new Promise((d,f)=>{if(u===a.url)return;let{playing:h,aspectRatio:p,playbackRate:m}=a;a.pause(),a.url=u,a.notice.show="",a.once("video:error",f),a.once("video:loadedmetadata",()=>{a.currentTime=c}),a.once("video:canplay",async()=>{a.playbackRate=m,a.aspectRatio=p,h&&await a.play(),a.notice.show="",d()})})}(0,i.def)(a,"switchQuality",{value:u=>l(u,a.currentTime)}),(0,i.def)(a,"switchUrl",{value:u=>l(u,0)}),(0,i.def)(a,"switch",{set:a.switchUrl})}},{"../utils":"aBlEo","@parcel/transformer-js/src/esmodule-helpers.js":"loqXi"}],"7iMuh":[function(e,t,n,r){var s=e("@parcel/transformer-js/src/esmodule-helpers.js");s.defineInteropFlag(n),s.export(n,"default",()=>o);var i=e("../utils");function o(a){(0,i.def)(a,"theme",{get:()=>a.cssVar("--art-theme"),set(l){a.cssVar("--art-theme",l)}})}},{"../utils":"aBlEo","@parcel/transformer-js/src/esmodule-helpers.js":"loqXi"}],"6P0RS":[function(e,t,n,r){var s=e("@parcel/transformer-js/src/esmodule-helpers.js");s.defineInteropFlag(n),s.export(n,"default",()=>o);var i=e("../utils");function o(a){let{events:l,option:u,template:{$progress:c,$video:d}}=a,f=null,h=null,p=!1,m=!1,v=!1;l.hover(c,()=>{v=!0},()=>{v=!1}),a.on("setBar",async(x,g,y)=>{let _=a.controls?.thumbnails,{url:E,scale:w}=u.thumbnails;if(!_||!E)return;let T=x==="played"&&y&&i.isMobile;if(x==="hover"||T){if(p||(p=!0,h=await(0,i.loadImg)(E,w),m=!0),!m||!v)return;let C=c.clientWidth*g;(0,i.setStyle)(_,"display","flex"),C>0&&C<c.clientWidth?(function(I){let k=a.controls?.thumbnails;if(!k)return;let{number:$,column:R,width:D,height:O,scale:B}=u.thumbnails,U=D*B||h.naturalWidth/R,N=O*B||U/(d.videoWidth/d.videoHeight),V=Math.floor(I/(c.clientWidth/$)),H=Math.ceil(V/R)-1;(0,i.setStyle)(k,"backgroundImage",`url(${h.src})`),(0,i.setStyle)(k,"height",`${N}px`),(0,i.setStyle)(k,"width",`${U}px`),(0,i.setStyle)(k,"backgroundPosition",`-${(V%R||R-1)*U}px -${H*N}px`),I<=U/2?(0,i.setStyle)(k,"left",0):I>c.clientWidth-U/2?(0,i.setStyle)(k,"left",`${c.clientWidth-U}px`):(0,i.setStyle)(k,"left",`${I-U/2}px`)})(C):i.isMobile||(0,i.setStyle)(_,"display","none"),T&&(clearTimeout(f),f=setTimeout(()=>{(0,i.setStyle)(_,"display","none")},500))}}),(0,i.def)(a,"thumbnails",{get:()=>a.option.thumbnails,set(x){x.url&&!a.option.isLive&&(a.option.thumbnails=x,clearTimeout(f),f=null,h=null,p=!1,m=!1)}})}},{"../utils":"aBlEo","@parcel/transformer-js/src/esmodule-helpers.js":"loqXi"}],eNi78:[function(e,t,n,r){var s=e("@parcel/transformer-js/src/esmodule-helpers.js");s.defineInteropFlag(n),s.export(n,"default",()=>o);var i=e("../utils");function o(a){(0,i.def)(a,"toggle",{value:()=>a.playing?a.pause():a.play()})}},{"../utils":"aBlEo","@parcel/transformer-js/src/esmodule-helpers.js":"loqXi"}],"7AUBD":[function(e,t,n,r){var s=e("@parcel/transformer-js/src/esmodule-helpers.js");s.defineInteropFlag(n),s.export(n,"default",()=>o);var i=e("../utils");function o(a){(0,i.def)(a,"type",{get:()=>a.option.type,set(l){a.option.type=l}})}},{"../utils":"aBlEo","@parcel/transformer-js/src/esmodule-helpers.js":"loqXi"}],cnlLL:[function(e,t,n,r){var s=e("@parcel/transformer-js/src/esmodule-helpers.js");s.defineInteropFlag(n),s.export(n,"default",()=>o);var i=e("../utils");function o(a){let{option:l,template:{$video:u}}=a;(0,i.def)(a,"url",{get:()=>u.src,async set(c){if(c){let d=a.url,f=l.type||(0,i.getExt)(c),h=l.customType[f];f&&h?(await(0,i.sleep)(),a.loading.show=!0,h.call(a,u,c,a)):(URL.revokeObjectURL(d),u.src=c),d!==a.url&&(a.option.url=c,a.isReady&&d&&a.once("video:canplay",()=>{a.emit("restart",c)}))}else await(0,i.sleep)(),a.loading.show=!0}})}},{"../utils":"aBlEo","@parcel/transformer-js/src/esmodule-helpers.js":"loqXi"}],iX66j:[function(e,t,n,r){var s=e("@parcel/transformer-js/src/esmodule-helpers.js");s.defineInteropFlag(n),s.export(n,"default",()=>o);var i=e("../utils");function o(a){let{template:{$video:l},i18n:u,notice:c,storage:d}=a;(0,i.def)(a,"volume",{get:()=>l.volume||0,set:f=>{l.volume=(0,i.clamp)(f,0,1),c.show=`${u.get("Volume")}: ${Number.parseInt(100*l.volume,10)}`,l.volume!==0&&d.set("volume",l.volume)}}),(0,i.def)(a,"muted",{get:()=>l.muted,set:f=>
92{l.muted=f,a.emit("muted",f)}})}},{"../utils":"aBlEo","@parcel/transformer-js/src/esmodule-helpers.js":"loqXi"}],cjxJL:[function(e,t,n,r){var s=e("@parcel/transformer-js/src/esmodule-helpers.js");s.defineInteropFlag(n);var i=e("../utils"),o=e("./autoOrientation"),a=s.interopDefault(o),l=e("./autoPlayback"),u=s.interopDefault(l),c=e("./fastForward"),d=s.interopDefault(c),f=e("./lock"),h=s.interopDefault(f),p=e("./miniProgressBar"),m=s.interopDefault(p);n.default=class{constructor(v){this.art=v,this.id=0;let{option:x}=v;x.miniProgressBar&&!x.isLive&&this.add(m.default),x.lock&&i.isMobile&&this.add(h.default),x.autoPlayback&&!x.isLive&&this.add(u.default),x.autoOrientation&&i.isMobile&&this.add(a.default),x.fastForward&&i.isMobile&&!x.isLive&&this.add(d.default);for(let g=0;g<x.plugins.length;g++)this.add(x.plugins[g])}add(v){this.id+=1;let x=v.call(this.art,this.art);return x instanceof Promise?x.then(g=>this.next(v,g)):this.next(v,x)}next(v,x){let g=x&&x.name||v.name||`plugin${this.id}`;return(0,i.errorHandle)(!(0,i.has)(this,g),`Cannot add a plugin that already has the same name: ${g}`),(0,i.def)(this,g,{value:x}),this}}},{"../utils":"aBlEo","./autoOrientation":"jb9jb","./autoPlayback":"21HWM","./fastForward":"4sxBO","./lock":"fjy9V","./miniProgressBar":"d0xRp","@parcel/transformer-js/src/esmodule-helpers.js":"loqXi"}],jb9jb:[function(e,t,n,r){var s=e("@parcel/transformer-js/src/esmodule-helpers.js");s.defineInteropFlag(n),s.export(n,"default",()=>o);var i=e("../utils");function o(a){let{notice:l,constructor:u,template:{$player:c,$video:d}}=a,f="art-auto-orientation",h="art-auto-orientation-fullscreen",p=!1;function m(){let{videoWidth:v,videoHeight:x}=d,g=document.documentElement.clientWidth,y=document.documentElement.clientHeight;return v>x&&g<y||v<x&&g>y}return a.on("fullscreenWeb",v=>{v?m()&&setTimeout(()=>{a.fullscreenWeb&&!(0,i.hasClass)(c,f)&&(function(){let x=document.documentElement.clientWidth,g=document.documentElement.clientHeight;(0,i.setStyle)(c,"width",`${g}px`),(0,i.setStyle)(c,"height",`${x}px`),(0,i.setStyle)(c,"transform-origin","0 0"),(0,i.setStyle)(c,"transform",`rotate(90deg) translate(0, -${x}px)`),(0,i.addClass)(c,f),a.isRotate=!0,a.emit("resize")})()},Number(u.AUTO_ORIENTATION_TIME??0)):(0,i.hasClass)(c,f)&&((0,i.setStyle)(c,"width",""),(0,i.setStyle)(c,"height",""),(0,i.setStyle)(c,"transform-origin",""),(0,i.setStyle)(c,"transform",""),(0,i.removeClass)(c,f),a.isRotate=!1,a.emit("resize"))}),a.on("fullscreen",async v=>{let x=!!screen?.orientation?.lock;if(v){if(x&&m())try{let g=screen.orientation.type.startsWith("portrait")?"landscape":"portrait";await screen.orientation.lock(g),p=!0,(0,i.addClass)(c,h)}catch(g){p=!1,l.show=g}}else if((0,i.hasClass)(c,h)&&(0,i.removeClass)(c,h),x&&p){try{screen.orientation.unlock()}catch{}p=!1}}),{name:"autoOrientation",get state(){return(0,i.hasClass)(c,f)}}}},{"../utils":"aBlEo","@parcel/transformer-js/src/esmodule-helpers.js":"loqXi"}],"21HWM":[function(e,t,n,r){var s=e("@parcel/transformer-js/src/esmodule-helpers.js");s.defineInteropFlag(n),s.export(n,"default",()=>o);var i=e("../utils");function o(a){let{i18n:l,icons:u,storage:c,constructor:d,proxy:f,template:{$poster:h}}=a,p=a.layers.add({name:"auto-playback",html:'<div class="art-auto-playback-close"></div><div class="art-auto-playback-last"></div><div class="art-auto-playback-jump"></div>'}),m=(0,i.query)(".art-auto-playback-last",p),v=(0,i.query)(".art-auto-playback-jump",p),x=(0,i.query)(".art-auto-playback-close",p);(0,i.append)(x,u.close);let g=null;function y(){let _=(c.get("times")||{})[a.option.id||a.option.url];clearTimeout(g),(0,i.setStyle)(p,"display","none"),_&&_>=d.AUTO_PLAYBACK_MIN&&((0,i.setStyle)(p,"display","flex"),m.textContent=`${l.get("Last Seen")} ${(0,i.secondToTime)(_)}`,v.textContent=l.get("Jump Play"),f(x,"click",()=>{(0,i.setStyle)(p,"display","none")}),f(v,"click",()=>{a.seek=_,a.play(),(0,i.setStyle)(h,"display","none"),(0,i.setStyle)(p,"display","none")}),a.once("video:timeupdate",()=>{g=setTimeout(()=>{(0,i.setStyle)(p,"display","none")},d.AUTO_PLAYBACK_TIMEOUT)}))}return a.on("video:timeupdate",()=>{if(a.playing){let _=c.get("times")||{},E=Object.keys(_);E.length>d.AUTO_PLAYBACK_MAX&&delete _[E[0]],_[a.option.id||a.option.url]=a.currentTime,c.set("times",_)}}),a.on("ready",y),a.on("restart",y),{name:"auto-playback",get times(){return c.get("times")||{}},clear:()=>c.del("times"),delete(_){let E=c.get("times")||{};return delete E[_],c.set("times",E),E}}}},{"../utils":"aBlEo","@parcel/transformer-js/src/esmodule-helpers.js":"loqXi"}],"4sxBO":[function(e,t,n,r){var s=e("@parcel/transformer-js/src/esmodule-helpers.js");s.defineInteropFlag(n),s.export(n,"default",()=>o);var i=e("../utils");function o(a){let{constructor:l,proxy:u,template:{$player:c,$video:d}}=a,f=null,h=!1,p=1,m=()=>{clearTimeout(f),h&&(h=!1,a.playbackRate=p,(0,i.removeClass)(c,"art-fast-forward"))};return u(d,"touchstart",v=>{v.touches.length===1&&a.playing&&!a.isLock&&(f=setTimeout(()=>{h=!0,p=a.playbackRate,a.playbackRate=l.FAST_FORWARD_VALUE,(0,i.addClass)(c,"art-fast-forward")},l.FAST_FORWARD_TIME))}),a.on("document:touchmove",m),a.on("document:touchend",m),{name:"fastForward",get state(){return(0,i.hasClass)(c,"art-fast-forward")}}}},{"../utils":"aBlEo","@parcel/transformer-js/src/esmodule-helpers.js":"loqXi"}],fjy9V:[function(e,t,n,r){var s=e("@parcel/transformer-js/src/esmodule-helpers.js");s.defineInteropFlag(n),s.export(n,"default",()=>o);var i=e("../utils");function o(a){let{layers:l,icons:u,template:{$player:c}}=a;function d(){return(0,i.hasClass)(c,"art-lock")}function f(){(0,i.addClass)(c,"art-lock"),a.isLock=!0,a.emit("lock",!0)}function h(){(0,i.removeClass)(c,"art-lock"),a.isLock=!1,a.emit("lock",!1)}return l.add({name:"lock",mounted(p){let m=(0,i.append)(p,u.lock),v=(0,i.append)(p,u.unlock);(0,i.setStyle)(m,"display","none"),a.on("lock",x=>{x?((0,i.setStyle)(m,"display","inline-flex"),(0,i.setStyle)(v,"display","none")):((0,i.setStyle)(m,"display","none"),(0,i.setStyle)(v,"display","inline-flex"))})}
vendor: 17,135 bytes, line 92
92,click(){d()?h():f()}}),{name:"lock",get state(){return d()},set state(p){p?f():h()}}}},{"../utils":"aBlEo","@parcel/transformer-js/src/esmodule-helpers.js":"loqXi"}],d0xRp:[function(e,t,n,r){var s=e("@parcel/transformer-js/src/esmodule-helpers.js");s.defineInteropFlag(n),s.export(n,"default",()=>o);var i=e("../utils");function o(a){return a.on("control",l=>{l?(0,i.removeClass)(a.template.$player,"art-mini-progress-bar"):(0,i.addClass)(a.template.$player,"art-mini-progress-bar")}),{name:"mini-progress-bar"}}},{"../utils":"aBlEo","@parcel/transformer-js/src/esmodule-helpers.js":"loqXi"}],bwLGT:[function(e,t,n,r){var s=e("@parcel/transformer-js/src/esmodule-helpers.js");s.defineInteropFlag(n);var i=e("../utils"),o=e("../utils/component"),a=s.interopDefault(o),l=e("./aspectRatio"),u=s.interopDefault(l),c=e("./flip"),d=s.interopDefault(c),f=e("./playbackRate"),h=s.interopDefault(f),p=e("./subtitleOffset"),m=s.interopDefault(p);class v extends a.default{constructor(g){super(g);let{option:y,controls:_,template:{$setting:E}}=g;this.name="setting",this.$parent=E,this.id=0,this.active=null,this.cache=new Map,this.option=[...this.builtin,...y.settings],y.setting&&(this.format(),this.render(),g.on("blur",()=>{this.show&&(this.show=!1,this.render())}),g.on("focus",w=>{let T=(0,i.includeFromEvent)(w,_.setting),C=(0,i.includeFromEvent)(w,this.$parent);!this.show||T||C||(this.show=!1,this.render())}),g.on("resize",()=>this.resize()))}get builtin(){let g=[],{option:y}=this.art;return y.playbackRate&&g.push((0,h.default)(this.art)),y.aspectRatio&&g.push((0,u.default)(this.art)),y.flip&&g.push((0,d.default)(this.art)),y.subtitleOffset&&g.push((0,m.default)(this.art)),g}traverse(g,y=this.option){for(let _=0;_<y.length;_++){let E=y[_];g(E),E.selector?.length&&this.traverse(g,E.selector)}}check(g){g.$parent.tooltip=g.html,this.traverse(y=>{y.default=y===g,y.default&&y.$item&&(0,i.inverseClass)(y.$item,"art-current")},g.$option),this.render(g.$parents)}format(g=this.option,y,_,E=[]){for(let w=0;w<g.length;w++){let T=g[w];if(T?.name?((0,i.errorHandle)(!E.includes(T.name),`The [${T.name}] already exists in [setting]`),E.push(T.name)):T.name=`setting-${this.id++}`,!T.$formatted){(0,i.def)(T,"$parent",{get:()=>y}),(0,i.def)(T,"$parents",{get:()=>_}),(0,i.def)(T,"$option",{get:()=>g});let C=[];(0,i.def)(T,"$events",{get:()=>C}),(0,i.def)(T,"$formatted",{get:()=>!0})}this.format(T.selector||[],T,g,E)}this.option=g}find(g=""){let y=null;return this.traverse(_=>{_.name===g&&(y=_)}),y}resize(){let{controls:g,constructor:{SETTING_WIDTH:y,SETTING_ITEM_HEIGHT:_},template:{$player:E,$setting:w}}=this.art;if(g.setting&&this.show){let T=this.active[0]?.$parent?.width||y,{left:C,width:I}=(0,i.getRect)(g.setting),{left:k,width:$}=(0,i.getRect)(E),R=C-k+I/2-T/2,D=this.active===this.option?this.active.length*_:(this.active.length+1)*_;if((0,i.setStyle)(w,"height",`${D}px`),(0,i.setStyle)(w,"width",`${T}px`),this.art.isRotate||i.isMobile)return;R+T>$?((0,i.setStyle)(w,"left",null),(0,i.setStyle)(w,"right",null)):((0,i.setStyle)(w,"left",`${R}px`),(0,i.setStyle)(w,"right","auto"))}}inactivate(g){for(let y=0;y<g.$events.length;y++)this.art.events.remove(g.$events[y]);g.$events.length=0}remove(g){let y=this.find(g);(0,i.errorHandle)(y,`Can't find [${g}] in the [setting]`);let _=y.$option.indexOf(y);y.$option.splice(_,1),this.inactivate(y),y.$item&&(0,i.remove)(y.$item),this.render()}update(g){let y=this.find(g.name);return y?(this.inactivate(y),Object.assign(y,g),this.format(),this.createItem(y,!0),this.render(),y):this.add(g)}add(g,y=this.option){return y.push(g),this.format(),this.createItem(g),this.render(),g}createHeader(g){if(!this.cache.has(g.$option))return;let y=this.cache.get(g.$option),{proxy:_,icons:{arrowLeft:E},constructor:{SETTING_ITEM_HEIGHT:w}}=this.art,T=(0,i.createElement)("div");(0,i.setStyle)(T,"height",`${w}px`),(0,i.addClass)(T,"art-setting-item"),(0,i.addClass)(T,"art-setting-item-back");let C=(0,i.append)(T,'<div class="art-setting-item-left"></div>'),I=(0,i.createElement)("div");(0,i.addClass)(I,"art-setting-item-left-icon"),(0,i.append)(I,E),(0,i.append)(C,I),(0,i.append)(C,g.$parent.html);let k=_(T,"click",()=>this.render(g.$parents));g.$parent.$events.push(k),(0,i.append)(y,T)}createItem(g,y=!1){if(!this.cache.has(g.$option))return;let _=this.cache.get(g.$option),E=g.$item,w="selector";(0,i.has)(g,"switch")&&(w="switch"),(0,i.has)(g,"range")&&(w="range"),(0,i.has)(g,"onClick")&&(w="button");let{icons:T,proxy:C,constructor:I}=this.art,k=(0,i.createElement)("div");(0,i.addClass)(k,"art-setting-item"),(0,i.setStyle)(k,"height",`${I.SETTING_ITEM_HEIGHT}px`),k.dataset.name=g.name||"",k.dataset.value=g.value||"";let $=(0,i.append)(k,'<div class="art-setting-item-left"></div>'),R=(0,i.append)(k,'<div class="art-setting-item-right"></div>'),D=(0,i.createElement)("div");switch((0,i.addClass)(D,"art-setting-item-left-icon"),w){case"button":case"switch":case"range":(0,i.append)(D,g.icon||T.config);break;case"selector":g.selector?.length?(0,i.append)(D,g.icon||T.config):(0,i.append)(D,T.check)}(0,i.append)($,D),(0,i.def)(g,"$icon",{configurable:!0,get:()=>D}),(0,i.def)(g,"icon",{configurable:!0,get:()=>D.innerHTML,set(U){D.innerHTML="",(0,i.append)(D,U)}});let O=(0,i.createElement)("div");(0,i.addClass)(O,"art-setting-item-left-text"),(0,i.append)(O,g.html||""),(0,i.append)($,O),(0,i.def)(g,"$html",{configurable:!0,get:()=>O}),(0,i.def)(g,"html",{configurable:!0,get:()=>O.innerHTML,set(U){O.innerHTML="",(0,i.append)(O,U)}});let B=(0,i.createElement)("div");switch((0,i.addClass)(B,"art-setting-item-right-tooltip"),(0,i.append)(B,g.tooltip||""),(0,i.append)(R,B),(0,i.def)(g,"$tooltip",{configurable:!0,get:()=>B}),(0,i.def)(g,"tooltip",{configurable:!0,get:()=>B.innerHTML,set(U){B.innerHTML="",(0,i.append)(B,U)}}),w){case"switch":{let U=(0,i.createElement)("div");(0,i.addClass)(U,"art-setting-item-right-icon");let N=(0,i.append)(U,T.switchOn),V=(0,i.append)(U,T.switchOff);(0,i.setStyle)(g.switch?V:N,"display","none"),(0,i.append)(R,U),(0,i.def)(g,"$switch",{configurable:!0,get:()=>U});let H=g.switch;(0,i.def)(g,"switch",{configurable:!0,get:()=>H,set(re){H=re,re?((0,i.setStyle)(V,"display","none"),(0,i.setStyle)(N,"display",null)):((0,i.setStyle)(V,"display",null),(0,i.setStyle)(N,"display","none"))}});break}case"range":{let U=(0,i.createElement)("div");(0,i.addClass)(U,"art-setting-item-right-icon");let N=(0,i.append)(U,'<input type="range">');N.value=g.range[0],N.min=g.range[1],N.max=g.range[2],N.step=g.range[3],(0,i.addClass)(N,"art-setting-range"),(0,i.append)(R,U),(0,i.def)(g,"$range",{configurable:!0,get:()=>N});let V=[...g.range];(0,i.def)(g,"range",{configurable:!0,get:()=>V,set(H){V=[...H],N.value=H[0],N.min=H[1],N.max=H[2],N.step=H[3]}})}break;case"selector":if(g.selector?.length){let U=(0,i.createElement)("div");(0,i.addClass)(U,"art-setting-item-right-icon"),(0,i.append)(U,T.arrowRight),(0,i.append)(R,U)}}switch(w){case"switch":if(g.onSwitch){let U=C(k,"click",async N=>{g.switch=await g.onSwitch.call(this.art,g,k,N)});g.$events.push(U)}break;case"range":if(g.$range){if(g.onRange){let U=C(g.$range,"change",async N=>{g.range[0]=g.$range.valueAsNumber,g.tooltip=await g.onRange.call(this.art,g,k,N)});g.$events.push(U)}if(g.onChange){let U=C(g.$range,"input",async N=>{g.range[0]=g.$range.valueAsNumber,g.tooltip=await g.onChange.call(this.art,g,k,N)});g.$events.push(U)}}break;case"selector":{let U=C(k,"click",async N=>{g.selector?.length?this.render(g.selector):(this.check(g),g.$parent.onSelect&&(g.$parent.tooltip=await g.$parent.onSelect.call(this.art,g,k,N)))});g.$events.push(U),g.default&&(0,i.addClass)(k,"art-current")}break;case"button":if(g.onClick){let U=C(k,"click",async N=>{g.tooltip=await g.onClick.call(this.art,g,k,N)});g.$events.push(U)}}(0,i.def)(g,"$item",{configurable:!0,get:()=>k}),y?(0,i.replaceElement)(k,E):(0,i.append)(_,k),g.mounted&&setTimeout(()=>g.mounted.call(this.art,g.$item,g),0)}render(g=this.option){if(this.active=g,this.cache.has(g)){let y=this.cache.get(g);(0,i.inverseClass)(y,"art-current")}else{let y=(0,i.createElement)("div");this.cache.set(g,y),(0,i.addClass)(y,"art-setting-panel"),(0,i.append)(this.$parent,y),(0,i.inverseClass)(y,"art-current"),g[0]?.$parent&&this.createHeader(g[0]);for(let _=0;_<g.length;_++)this.createItem(g[_])}this.resize()}}n.default=v},{"../utils":"aBlEo","../utils/component":"idCEj","./aspectRatio":"cb8VK","./flip":"ljJTO","./playbackRate":"3QcSQ","./subtitleOffset":"eB5hg","@parcel/transformer-js/src/esmodule-helpers.js":"loqXi"}],cb8VK:[function(e,t,n,r){var s=e("@parcel/transformer-js/src/esmodule-helpers.js");function i(o){let{i18n:a,icons:l,constructor:{SETTING_ITEM_WIDTH:u,ASPECT_RATIO:c}}=o;function d(h){return h==="default"?a.get("Default"):h}function f(){let h=o.setting.find(`aspect-ratio-${o.aspectRatio}`);o.setting.check(h)}return{width:u,name:"aspect-ratio",html:a.get("Aspect Ratio"),icon:l.aspectRatio,tooltip:d(o.aspectRatio),selector:c.map(h=>({value:h,name:`aspect-ratio-${h}`,default:h===o.aspectRatio,html:d(h)})),onSelect:h=>(o.aspectRatio=h.value,h.html),mounted:()=>{f(),o.on("aspectRatio",()=>f())}}}s.defineInteropFlag(n),s.export(n,"default",()=>i)},{"@parcel/transformer-js/src/esmodule-helpers.js":"loqXi"}],ljJTO:[function(e,t,n,r){var s=e("@parcel/transformer-js/src/esmodule-helpers.js");s.defineInteropFlag(n),s.export(n,"default",()=>o);var i=e("../utils");function o(a){let{i18n:l,icons:u,constructor:{SETTING_ITEM_WIDTH:c,FLIP:d}}=a;function f(p){return l.get((0,i.capitalize)(p))}function h(){let p=a.setting.find(`flip-${a.flip}`);a.setting.check(p)}return{width:c,name:"flip",html:l.get("Video Flip"),tooltip:f(a.flip),icon:u.flip,selector:d.map(p=>({value:p,name:`flip-${p}`,default:p===a.flip,html:f(p)})),onSelect:p=>(a.flip=p.value,p.html),mounted:()=>{h(),a.on("flip",()=>h())}}}},{"../utils":"aBlEo","@parcel/transformer-js/src/esmodule-helpers.js":"loqXi"}],"3QcSQ":[function(e,t,n,r){var s=e("@parcel/transformer-js/src/esmodule-helpers.js");function i(o){let{i18n:a,icons:l,constructor:{SETTING_ITEM_WIDTH:u,PLAYBACK_RATE:c}}=o;function d(h){return h===1?a.get("Normal"):h.toFixed(1)}function f(){let h=o.setting.find(`playback-rate-${o.playbackRate}`);o.setting.check(h)}return{width:u,name:"playback-rate",html:a.get("Play Speed"),tooltip:d(o.playbackRate),icon:l.playbackRate,selector:c.map(h=>({value:h,name:`playback-rate-${h}`,default:h===o.playbackRate,html:d(h)})),onSelect:h=>(o.playbackRate=h.value,h.html),mounted:()=>{f(),o.on("video:ratechange",()=>f())}}}s.defineInteropFlag(n),s.export(n,"default",()=>i)},{"@parcel/transformer-js/src/esmodule-helpers.js":"loqXi"}],eB5hg:[function(e,t,n,r){var s=e("@parcel/transformer-js/src/esmodule-helpers.js");function i(o){let{i18n:a,icons:l,constructor:u}=o;return{width:u.SETTING_ITEM_WIDTH,name:"subtitle-offset",html:a.get("Subtitle Offset"),icon:l.subtitle,tooltip:"0s",range:[0,-10,10,.1],onChange:c=>(o.subtitleOffset=c.range[0],`${c.range[0]}s`),mounted:(c,d)=>{o.on("subtitleOffset",f=>{d.$range.value=f,d.tooltip=`${f}s`})}}}s.defineInteropFlag(n),s.export(n,"default",()=>i)},{"@parcel/transformer-js/src/esmodule-helpers.js":"loqXi"}],kwqbK:[function(e,t,n,r){e("@parcel/transformer-js/src/esmodule-helpers.js").defineInteropFlag(n),n.default=class{constructor(){this.name="artplayer_settings",this.settings={}}get(s){try{let i=JSON.parse(window.localStorage.getItem(this.name))||{};return s?i[s]:i}catch{return s?this.settings[s]:this.settings}}set(s,i){try{let o=Object.assign({},this.get(),{[s]:i});window.localStorage.setItem(this.name,JSON.stringify(o))}catch{this.settings[s]=i}}del(s){try{let i=this.get();delete i[s],window.localStorage.setItem(this.name,JSON.stringify(i))}catch{delete this.settings[s]}}clear(){try{window.localStorage.removeItem(this.name)}catch{this.settings={}}}}},{"@parcel/transformer-js/src/esmodule-helpers.js":"loqXi"}],k5613:[function(e,t,n,r){var s=e("@parcel/transformer-js/src/esmodule-helpers.js");s.defineInteropFlag(n);var i=e("option-validator"),o=s.interopDefault(i),a=e("./scheme"),l=s.interopDefault(a),u=e("./utils"),c=e("./utils/component"),d=s.interopDefault(c);class f extends d.default{constructor(p){super(p),this.name="subtitle",this.option=null,this.destroyEvent=()=>null,this.init(p.option.subtitle);let m=!1;p.on("video:timeupdate",()=>{if(!this.url)return;let v=this.art.template.$video.webkitDisplayingFullscreen;typeof v=="boolean"&&v!==m&&(m=v,this.createTrack(v?"subtitles":"metadata",this.url))})}get url(){return this.art.template.$track.src}set url(p){this.switch(p)}get textTrack(){return this.art.template.$video?.textTracks?.[0]}get activeCues(){return this.textTrack?Array.from(this.textTrack.activeCues):[]}get cues(){return this.textTrack?Array.from(this.textTrack.cues):[]}style(p,m){let{$subtitle:v}=this.art.template;return typeof p=="object"?(0,u.setStyles)(v,p):(0,u.setStyle)(v,p,m)}update(){let{option:{subtitle:p},template:{$subtitle:m}}=this.art;m.innerHTML="",this.activeCues.length&&(this.art.emit("subtitleBeforeUpdate",this.activeCues),m.innerHTML=this.activeCues.map((v,x)=>v.text.split(/\r?\n/).filter(g=>g.trim()).map(g=>`<div class="art-subtitle-line" data-group="${x}">${p.escape?(0,u.escape)(g):g}</div>`).join("")).join(""),this.art.emit("subtitleAfterUpdate",this.activeCues))}async switch(p,m={}){let{i18n:v,notice:x,option:g}=this.art,y={...g.subtitle,...m,url:p},_=await this.init(y);return m.name&&(x.show=`${v.get("Switch Subtitle")}: ${m.name}`),_}createTrack(p,m){let{template:v,proxy:x,option:g}=this.art,{$video:y,$track:_}=v,E=(0,u.createElement)("track");E.default=!0,E.kind=p,E.src=m,E.label=g.subtitle.name||"Artplayer",E.track.mode="hidden",E.onload=()=>{this.art.emit("subtitleLoad",this.cues,this.option)},this.art.events.remove(this.destroyEvent),_.onload=null,(0,u.remove)(_),(0,u.append)(y,E),v.$track=E,this.destroyEvent=x(this.textTrack,"cuechange",()=>this.update())}async init(p){let{notice:m,template:{$subtitle:v}}=this.art;return this.textTrack?((0,o.default)(p,l.default.subtitle),p.url?(this.option=p,this.style(p.style),fetch(p.url).then(x=>x.arrayBuffer()).then(x=>{let g=new TextDecoder(p.encoding).decode(x);switch(p.type||(0,u.getExt)(p.url)){case"srt":{let y=(0,u.srtToVtt)(g),_=p.onVttLoad(y);return(0,u.vttToBlob)(_)}case"ass":{let y=(0,u.assToVtt)(g),_=p.onVttLoad(y);return(0,u.vttToBlob)(_)}case"vtt":{let y=p.onVttLoad(g);return(0,u.vttToBlob)(y)}default:return p.url}}).then(x=>(v.innerHTML="",this.url===x||(URL.revokeObjectURL(this.url),this.createTrack("metadata",x)),x)).catch(x=>{throw v.innerHTML="",m.show=x,x})):void 0):null}}n.default=f},{"option-validator":"g7VGh","./scheme":"biLjm","./utils":"aBlEo","./utils/component":"idCEj","@parcel/transformer-js/src/esmodule-helpers.js":"loqXi"}],fwOA1:[function(e,t,n,r){e("@parcel/transformer-js/src/esmodule-helpers.js").defineInteropFlag(n);var s=e("../package.json"),i=e("./utils");class o{constructor(l){this.art=l;let{option:u,constructor:c}=l;u.container instanceof Element?this.$container=u.container:(this.$container=(0,i.query)(u.container),(0,i.errorHandle)(this.$container,`No container element found by ${u.container}`)),(0,i.errorHandle)((0,i.supportsFlex)(),"The current browser does not support flex layout");let d=this.$container.tagName.toLowerCase();(0,i.errorHandle)(d==="div",`Unsupported container element type, only support 'div' but got '${d}'`),(0,i.errorHandle)(c.instances.every(f=>f.template.$container!==this.$container),"Cannot mount multiple instances on the same dom element"),this.query=this.query.bind(this),this.$container.dataset.artId=l.id,this.init()}static get html(){return`<div class="art-video-player art-subtitle-show art-layer-show art-control-show art-mask-show"><video class="art-video"><track default kind="metadata" src=""></track></video><div class="art-poster"></div><div class="art-subtitle"></div><div class="art-danmuku"></div><div class="art-layers"></div><div class="art-mask"><div class="art-state"></div></div><div class="art-bottom"><div class="art-progress"></div><div class="art-controls"><div class="art-controls-left"></div><div class="art-controls-center"></div><div class="art-controls-right"></div></div></div><div class="art-loading"></div><div class="art-notice"><div class="art-notice-inner"></div></div><div class="art-settings"></div><div class="art-info"><div class="art-info-panel"><div class="art-info-item"><div class="art-info-title">Player version:</div><div class="art-info-content">${s.version}</div></div><div class="art-info-item"><div class="art-info-title">Video url:</div><div class="art-info-content" data-video="src"></div></div><div class="art-info-item"><div class="art-info-title">Video volume:</div><div class="art-info-content" data-video="volume"></div></div><div class="art-info-item"><div class="art-info-title">Video time:</div><div class="art-info-content" data-video="currentTime"></div></div><div class="art-info-item"><div class="art-info-title">Video duration:</div><div class="art-info-content" data-video="duration"></div></div><div class="art-info-item"><div class="art-info-title">Video resolution:</div><div class="art-info-content">
92<span data-video="videoWidth"></span>x<span data-video="videoHeight"></span></div></div></div><div class="art-info-close">[x]</div></div><div class="art-contextmenus"></div></div>`}query(l){return(0,i.query)(l,this.$container)}init(){let{option:l}=this.art;if(l.useSSR||(this.$container.innerHTML=o.html),this.$player=this.query(".art-video-player"),this.$video=this.query(".art-video"),this.$track=this.query("track"),this.$poster=this.query(".art-poster"),this.$subtitle=this.query(".art-subtitle"),this.$danmuku=this.query(".art-danmuku"),this.$bottom=this.query(".art-bottom"),this.$progress=this.query(".art-progress"),this.$controls=this.query(".art-controls"),this.$controlsLeft=this.query(".art-controls-left"),this.$controlsCenter=this.query(".art-controls-center"),this.$controlsRight=this.query(".art-controls-right"),this.$layer=this.query(".art-layers"),this.$loading=this.query(".art-loading"),this.$notice=this.query(".art-notice"),this.$noticeInner=this.query(".art-notice-inner"),this.$mask=this.query(".art-mask"),this.$state=this.query(".art-state"),this.$setting=this.query(".art-settings"),this.$info=this.query(".art-info"),this.$infoPanel=this.query(".art-info-panel"),this.$infoClose=this.query(".art-info-close"),this.$contextmenu=this.query(".art-contextmenus"),l.proxy){let u=l.proxy.call(this.art,this.art);(0,i.errorHandle)(u instanceof HTMLVideoElement||u instanceof HTMLCanvasElement,"Function 'option.proxy' needs to return 'HTMLVideoElement' or 'HTMLCanvasElement'"),(0,i.replaceElement)(u,this.$video),u.className="art-video",this.$video=u}l.backdrop&&(0,i.addClass)(this.$player,"art-backdrop"),i.isMobile&&(0,i.addClass)(this.$player,"art-mobile")}destroy(l){l?this.$container.innerHTML="":(0,i.addClass)(this.$player,"art-destroy")}}n.default=o},{"../package.json":"lh3R5","./utils":"aBlEo","@parcel/transformer-js/src/esmodule-helpers.js":"loqXi"}],"4NM7P":[function(e,t,n,r){e("@parcel/transformer-js/src/esmodule-helpers.js").defineInteropFlag(n),n.default=class{on(s,i,o){let a=this.e||(this.e={});return(a[s]||(a[s]=[])).push({fn:i,ctx:o}),this}once(s,i,o){let a=this;function l(...u){a.off(s,l),i.apply(o,u)}return l._=i,this.on(s,l,o)}emit(s,...i){let o=((this.e||(this.e={}))[s]||[]).slice();for(let a=0;a<o.length;a+=1)o[a].fn.apply(o[a].ctx,i);return this}off(s,i){let o=this.e||(this.e={}),a=o[s],l=[];if(a&&i)for(let u=0,c=a.length;u<c;u+=1)a[u].fn!==i&&a[u].fn._!==i&&l.push(a[u]);return l.length?o[s]=l:delete o[s],this}}},{"@parcel/transformer-js/src/esmodule-helpers.js":"loqXi"}]},["esqvp"],"esqvp","parcelRequire4dc0",{});let{default:Jk}=parcelRequire4dc0("esqvp");const lt=Number.isFinite||function(e){return typeof e=="number"&&isFinite(e)},kce=Number.isSafeInteger||function(e){return typeof e=="number"&&Math.abs(e)<=Ice},Ice=Number.MAX_SAFE_INTEGER||9007199254740991;let bt=(function(e){return e.NETWORK_ERROR="networkError",e.MEDIA_ERROR="mediaError",e.KEY_SYSTEM_ERROR="keySystemError",e.MUX_ERROR="muxError",e.OTHER_ERROR="otherError",e})({}),Re=(function(e){return e.KEY_SYSTEM_NO_KEYS="keySystemNoKeys",e.KEY_SYSTEM_NO_ACCESS="keySystemNoAccess",e.KEY_SYSTEM_NO_SESSION="keySystemNoSession",e.KEY_SYSTEM_NO_CONFIGURED_LICENSE="keySystemNoConfiguredLicense",e.KEY_SYSTEM_LICENSE_REQUEST_FAILED="keySystemLicenseRequestFailed",e.KEY_SYSTEM_SERVER_CERTIFICATE_REQUEST_FAILED="keySystemServerCertificateRequestFailed",e.KEY_SYSTEM_SERVER_CERTIFICATE_UPDATE_FAILED="keySystemServerCertificateUpdateFailed",e.KEY_SYSTEM_SESSION_UPDATE_FAILED="keySystemSessionUpdateFailed",e.KEY_SYSTEM_STATUS_OUTPUT_RESTRICTED="keySystemStatusOutputRestricted",e.KEY_SYSTEM_STATUS_INTERNAL_ERROR="keySystemStatusInternalError",e.KEY_SYSTEM_DESTROY_MEDIA_KEYS_ERROR="keySystemDestroyMediaKeysError",e.KEY_SYSTEM_DESTROY_CLOSE_SESSION_ERROR="keySystemDestroyCloseSessionError",e.KEY_SYSTEM_DESTROY_REMOVE_SESSION_ERROR="keySystemDestroyRemoveSessionError",e.MANIFEST_LOAD_ERROR="manifestLoadError",e.MANIFEST_LOAD_TIMEOUT="manifestLoadTimeOut",e.MANIFEST_PARSING_ERROR="manifestParsingError",e.MANIFEST_INCOMPATIBLE_CODECS_ERROR="manifestIncompatibleCodecsError",e.LEVEL_EMPTY_ERROR="levelEmptyError",e.LEVEL_LOAD_ERROR="levelLoadError",e.LEVEL_LOAD_TIMEOUT="levelLoadTimeOut",e.LEVEL_PARSING_ERROR="levelParsingError",e.LEVEL_SWITCH_ERROR="levelSwitchError",e.AUDIO_TRACK_LOAD_ERROR="audioTrackLoadError",e.AUDIO_TRACK_LOAD_TIMEOUT="audioTrackLoadTimeOut",e.SUBTITLE_LOAD_ERROR="subtitleTrackLoadError",e.SUBTITLE_TRACK_LOAD_TIMEOUT="subtitleTrackLoadTimeOut",e.FRAG_LOAD_ERROR="fragLoadError",e.FRAG_LOAD_TIMEOUT="fragLoadTimeOut",e.FRAG_DECRYPT_ERROR="fragDecryptError",e.FRAG_PARSING_ERROR="fragParsingError",e.FRAG_GAP="fragGap",e.REMUX_ALLOC_ER
92ROR="remuxAllocError",e.KEY_LOAD_ERROR="keyLoadError",e.KEY_LOAD_TIMEOUT="keyLoadTimeOut",e.BUFFER_ADD_CODEC_ERROR="bufferAddCodecError",e.BUFFER_INCOMPATIBLE_CODECS_ERROR="bufferIncompatibleCodecsError",e.BUFFER_APPEND_ERROR="bufferAppendError",e.BUFFER_APPENDING_ERROR="bufferAppendingError",e.BUFFER_STALLED_ERROR="bufferStalledError",e.BUFFER_FULL_ERROR="bufferFullError",e.BUFFER_SEEK_OVER_HOLE="bufferSeekOverHole",e.BUFFER_NUDGE_ON_STALL="bufferNudgeOnStall",e.ASSET_LIST_LOAD_ERROR="assetListLoadError",e.ASSET_LIST_LOAD_TIMEOUT="assetListLoadTimeout",e.ASSET_LIST_PARSING_ERROR="assetListParsingError",e.INTERSTITIAL_ASSET_ITEM_ERROR="interstitialAssetItemError",e.INTERNAL_EXCEPTION="internalException",e.INTERNAL_ABORTED="aborted",e.ATTACH_MEDIA_ERROR="attachMediaError",e.UNKNOWN="unknown",e})({}),G=(function(e){return e.MEDIA_ATTACHING="hlsMediaAttaching",e.MEDIA_ATTACHED="hlsMediaAttached",e.MEDIA_DETACHING="hlsMediaDetaching",e.MEDIA_DETACHED="hlsMediaDetached",e.MEDIA_ENDED="hlsMediaEnded",e.STALL_RESOLVED="hlsStallResolved",e.BUFFER_RESET="hlsBufferReset",e.BUFFER_CODECS="hlsBufferCodecs",e.BUFFER_CREATED="hlsBufferCreated",e.BUFFER_APPENDING="hlsBufferAppending",e.BUFFER_APPENDED="hlsBufferAppended",e.BUFFER_EOS="hlsBufferEos",e.BUFFERED_TO_END="hlsBufferedToEnd",e.BUFFER_FLUSHING="hlsBufferFlushing",e.BUFFER_FLUSHED="hlsBufferFlushed",e.MANIFEST_LOADING="hlsManifestLoading",e.MANIFEST_LOADED="hlsManifestLoaded",e.MANIFEST_PARSED="hlsManifestParsed",e.LEVEL_SWITCHING="hlsLevelSwitching",e.LEVEL_SWITCHED="hlsLevelSwitched",e.LEVEL_LOADING="hlsLevelLoading",e.LEVEL_LOADED="hlsLevelLoaded",e.LEVEL_UPDATED="hlsLevelUpdated",e.LEVEL_PTS_UPDATED="hlsLevelPtsUpdated",e.LEVELS_UPDATED="hlsLevelsUpdated",e.AUDIO_TRACKS_UPDATED="hlsAudioTracksUpdated",e.AUDIO_TRACK_SWITCHING="hlsAudioTrackSwitching",e.AUDIO_TRACK_SWITCHED="hlsAudioTrackSwitched",e.AUDIO_TRACK_LOADING="hlsAudioTrackLoading",e.AUDIO_TRACK_LOADED="hlsAudioTrackLoaded",e.AUDIO_TRACK_UPDATED="hlsAudioTrackUpdated",e.SUBTITLE_TRACKS_UPDATED="hlsSubtitleTracksUpdated",e.SUBTITLE_TRACKS_CLEARED="hlsSubtitleTracksCleared",e.SUBTITLE_TRACK_SWITCH="hlsSubtitleTrackSwitch",e.SUBTITLE_TRACK_LOADING="hlsSubtitleTrackLoading",e.SUBTITLE_TRACK_LOADED="hlsSubtitleTrackLoaded",e.SUBTITLE_TRACK_UPDATED="hlsSubtitleTrackUpdated",e.SUBTITLE_FRAG_PROCESSED="hlsSubtitleFragProcessed",e.CUES_PARSED="hlsCuesParsed",e.NON_NATIVE_TEXT_TRACKS_FOUND="hlsNonNativeTextTracksFound",e.INIT_PTS_FOUND="hlsInitPtsFound",e.FRAG_LOADING="hlsFragLoading",e.FRAG_LOAD_EMERGENCY_ABORTED="hlsFragLoadEmergencyAborted",e.FRAG_LOADED="hlsFragLoaded",e.FRAG_DECRYPTED="hlsFragDecrypted",e.FRAG_PARSING_INIT_SEGMENT="hlsFragParsingInitSegment",e.FRAG_PARSING_USERDATA="hlsFragParsingUserdata",e.FRAG_PARSING_METADATA="hlsFragParsingMetadata",e.FRAG_PARSED="hlsFragParsed",e.FRAG_BUFFERED="hlsFragBuffered",e.FRAG_CHANGED="hlsFragChanged",e.FPS_DROP="hlsFpsDrop",e.FPS_DROP_LEVEL_CAPPING="hlsFpsDropLevelCapping",e.MAX_AUTO_LEVEL_UPDATED="hlsMaxAutoLevelUpdated",e.ERROR="hlsError",e.DESTROYING="hlsDestroying",e.KEY_LOADING="hlsKeyLoading",e.KEY_LOADED="hlsKeyLoaded",e.LIVE_BACK_BUFFER_REACHED="hlsLiveBackBufferReached",e.BACK_BUFFER_REACHED="hlsBackBufferReached",e.STEERING_MANIFEST_LOADED="hlsSteeringManifestLoaded",e.ASSET_LIST_LOADING="hlsAssetListLoading",e.ASSET_LIST_LOADED="hlsAssetListLoaded",e.INTERSTITIALS_UPDATED="hlsInterstitialsUpdated",e.INTERSTITIALS_BUFFERED_TO_BOUNDARY="hlsInterstitialsBufferedToBoundary",e.INTERSTITIAL_ASSET_PLAYER_CREATED="hlsInterstitialAssetPlayerCreated",e.INTERSTITIAL_STARTED="hlsInterstitialStarted",e.INTERSTITIAL_ASSET_STARTED="hlsInterstitialAssetStarted",e.INTERSTITIAL_ASSET_ENDED="hlsInterstitialAssetEnded",e.INTERSTITIAL_ASSET_ERROR="hlsInterstitialAssetError",e.INTERSTITIAL_ENDED="hlsInterstitialEnded",e.INTERSTITIALS_PRIMARY_RESUMED="hlsInterstitialsPrimaryResumed",e.PLAYOUT_LIMIT_REACHED="hlsPlayoutLimitReached",e.EVENT_CUE_ENTER="hlsEventCueEnter",e})({});var Yt={MANIFEST:"manifest",LEVEL:"level",AUDIO_TRACK:"audioTrack",SUBTITLE_TRACK:"subtitleTrack"},pt={MAIN:"main",AUDIO:"audio",SUBTITLE:"subtitle"};class Qu{constructor(t,n=0,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_=n,this.totalWeight_=r}sample(t,n){const r=Math.pow(this.alpha_,t);this.estimate_=n*(1-r)+r*this.estimate_,this.totalWeight_+=t}
vendor: 4,153 bytes, line 92
92getTotalWeight(){return this.totalWeight_}getEstimate(){if(this.alpha_){const t=1-Math.pow(this.alpha_,this.totalWeight_);if(t)return this.estimate_/t}return this.estimate_}}class Lce{constructor(t,n,r,s=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 Qu(t),this.fast_=new Qu(n),this.defaultTTFB_=s,this.ttfb_=new Qu(t)}update(t,n){const{slow_:r,fast_:s,ttfb_:i}=this;r.halfLife!==t&&(this.slow_=new Qu(t,r.getEstimate(),r.getTotalWeight())),s.halfLife!==n&&(this.fast_=new Qu(n,s.getEstimate(),s.getTotalWeight())),i.halfLife!==t&&(this.ttfb_=new Qu(t,i.getEstimate(),i.getTotalWeight()))}sample(t,n){t=Math.max(t,this.minDelayMs_);const r=8*n,s=t/1e3,i=r/s;this.fast_.sample(s,i),this.slow_.sample(s,i)}sampleTTFB(t){const n=t/1e3,r=Math.sqrt(2)*Math.exp(-Math.pow(n,2)/2);this.ttfb_.sample(r,Math.max(t,5))}canEstimate(){return this.fast_.getTotalWeight()>=this.minWeight_}getEstimate(){return this.canEstimate()?Math.min(this.fast_.getEstimate(),this.slow_.getEstimate()):this.defaultEstimate_}getEstimateTTFB(){return this.ttfb_.getTotalWeight()>=this.minWeight_?this.ttfb_.getEstimate():this.defaultTTFB_}get defaultEstimate(){return this.defaultEstimate_}destroy(){}}function Dce(e,t,n){return(t=Rce(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function kn(){return kn=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},kn.apply(null,arguments)}function Qk(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(s){return Object.getOwnPropertyDescriptor(e,s).enumerable})),n.push.apply(n,r)}return n}function Sn(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?Qk(Object(n),!0).forEach(function(r){Dce(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Qk(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Pce(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Rce(e){var t=Pce(e,"string");return typeof t=="symbol"?t:t+""}class Ki{constructor(t,n){this.trace=void 0,this.debug=void 0,this.log=void 0,this.warn=void 0,this.info=void 0,this.error=void 0;const r=`[${t}]:`;this.trace=nl,this.debug=n.debug.bind(null,r),this.log=n.log.bind(null,r),this.warn=n.warn.bind(null,r),this.info=n.info.bind(null,r),this.error=n.error.bind(null,r)}}const nl=function(){},Oce={trace:nl,debug:nl,log:nl,warn:nl,info:nl,error:nl};function g2(){return kn({},Oce)}function $ce(e,t){const n=self.console[e];return n?n.bind(self.console,`${t?"["+t+"] ":""}[${e}] >`):nl}function eI(e,t,n){return t[e]?t[e].bind(t):$ce(e,n)}const y2=g2();function Mce(e,t,n){const r=g2();if(typeof console=="object"&&e===!0||typeof e=="object"){const s=["debug","log","info","warn","error"];s.forEach(i=>{r[i]=eI(i,e,n)});try{r.log(`Debug logs enabled for "${t}" in hls.js version 1.6.14`)}catch{return g2()}s.forEach(i=>{y2[i]=eI(i,e)})}else kn(y2,r);return r}const En=y2;function xl(e=!0){return typeof self>"u"?void 0:(e||!self.MediaSource)&&self.ManagedMediaSource||self.MediaSource||self.WebKitMediaSource}function Fce(e){return typeof self<"u"&&e===self.ManagedMediaSource}function c6(e,t){const n=Object.keys(e),r=Object.keys(t),s=n.length,i=r.length;return!s||!i||s===i&&!n.some(o=>r.indexOf(o)===-1)}function ui(e,t=!1){if(typeof TextDecoder<"u"){const u=new TextDecoder("utf-8").decode(e);if(t){const c=u.indexOf("\0");return c!==-1?u.substring(0,c):u}return u.replace(/\0/g,"")}const n=e.length;let r,s,i,o="",a=0;for(;a<n;){if(r=e[a++],r===0&&t)return o;if(r===0||r===3)continue;switch(r>>
vendor: 14,410 bytes, line 92
924){case 0:case 1:case 2:case 3:case 4:case 5:case 6:case 7:o+=String.fromCharCode(r);break;case 12:case 13:s=e[a++],o+=String.fromCharCode((r&31)<<6|s&63);break;case 14:s=e[a++],i=e[a++],o+=String.fromCharCode((r&15)<<12|(s&63)<<6|(i&63)<<0);break}}return o}function _s(e){let t="";for(let n=0;n<e.length;n++){let r=e[n].toString(16);r.length<2&&(r="0"+r),t+=r}return t}function d6(e){return Uint8Array.from(e.replace(/^0x/,"").replace(/([\da-fA-F]{2}) ?/g,"0x$1 ").replace(/ +$/,"").split(" ")).buffer}function Bce(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var fx={exports:{}},tI;function Nce(){return tI||(tI=1,(function(e,t){(function(n){var r=/^(?=((?:[a-zA-Z0-9+\-.]+:)?))\1(?=((?:\/\/[^\/?#]*)?))\2(?=((?:(?:[^?#\/]*\/)*[^;?#\/]*)?))\3((?:;[^?#]*)?)(\?[^#]*)?(#[^]*)?$/,s=/^(?=([^\/?#]*))\1([^]*)$/,i=/(?:\/|^)\.(?=\/)/g,o=/(?:\/|^)\.\.\/(?!\.\.\/)[^\/]*(?=\/)/g,a={buildAbsoluteURL:function(l,u,c){if(c=c||{},l=l.trim(),u=u.trim(),!u){if(!c.alwaysNormalize)return l;var d=a.parseURL(l);if(!d)throw new Error("Error trying to parse base URL.");return d.path=a.normalizePath(d.path),a.buildURLFromParts(d)}var f=a.parseURL(u);if(!f)throw new Error("Error trying to parse relative URL.");if(f.scheme)return c.alwaysNormalize?(f.path=a.normalizePath(f.path),a.buildURLFromParts(f)):u;var h=a.parseURL(l);if(!h)throw new Error("Error trying to parse base URL.");if(!h.netLoc&&h.path&&h.path[0]!=="/"){var p=s.exec(h.path);h.netLoc=p[1],h.path=p[2]}h.netLoc&&!h.path&&(h.path="/");var m={scheme:h.scheme,netLoc:f.netLoc,path:null,params:f.params,query:f.query,fragment:f.fragment};if(!f.netLoc&&(m.netLoc=h.netLoc,f.path[0]!=="/"))if(!f.path)m.path=h.path,f.params||(m.params=h.params,f.query||(m.query=h.query));else{var v=h.path,x=v.substring(0,v.lastIndexOf("/")+1)+f.path;m.path=a.normalizePath(x)}return m.path===null&&(m.path=c.alwaysNormalize?a.normalizePath(f.path):f.path),a.buildURLFromParts(m)},parseURL:function(l){var u=r.exec(l);return u?{scheme:u[1]||"",netLoc:u[2]||"",path:u[3]||"",params:u[4]||"",query:u[5]||"",fragment:u[6]||""}:null},normalizePath:function(l){for(l=l.split("").reverse().join("").replace(i,"");l.length!==(l=l.replace(o,"")).length;);return l.split("").reverse().join("")},buildURLFromParts:function(l){return l.scheme+l.netLoc+l.path+l.params+l.query+l.fragment}};e.exports=a})()})(fx)),fx.exports}var IE=Nce();class LE{constructor(){this.aborted=!1,this.loaded=0,this.retry=0,this.total=0,this.chunkCount=0,this.bwEstimate=0,this.loading={start:0,first:0,end:0},this.parsing={start:0,end:0},this.buffering={start:0,first:0,end:0}}}var In={AUDIO:"audio",VIDEO:"video",AUDIOVIDEO:"audiovideo"};class f6{constructor(t){this._byteRange=null,this._url=null,this._stats=null,this._streams=null,this.base=void 0,this.relurl=void 0,typeof t=="string"&&(t={url:t}),this.base=t,Uce(this,"stats")}setByteRange(t,n){const r=t.split("@",2);let s;r.length===1?s=n?.byteRangeEndOffset||0:s=parseInt(r[1]),this._byteRange=[s,parseInt(r[0])+s]}get baseurl(){return this.base.url}get byteRange(){return this._byteRange===null?[]:this._byteRange}get byteRangeStartOffset(){return this.byteRange[0]}get byteRangeEndOffset(){return this.byteRange[1]}get elementaryStreams(){return this._streams===null&&(this._streams={[In.AUDIO]:null,[In.VIDEO]:null,[In.AUDIOVIDEO]:null}),this._streams}set elementaryStreams(t){this._streams=t}get hasStats(){return this._stats!==null}get hasStreams(){return this._streams!==null}get stats(){return this._stats===null&&(this._stats=new LE),this._stats}set stats(t){this._stats=t}get url(){return!this._url&&this.baseurl&&this.relurl&&(this._url=IE.buildAbsoluteURL(this.baseurl,this.relurl,{alwaysNormalize:!0})),this._url||""}set url(t){this._url=t}clearElementaryStreamInfo(){const{elementaryStreams:t}=this;t[In.AUDIO]=null,t[In.VIDEO]=null,t[In.AUDIOVIDEO]=null}}function mr(e){return e.sn!=="initSegment"}class hx extends f6{constructor(t,n){super(n),this._decryptdata=null,this._programDateTime=null,this._ref=null,this._bitrate=void 0,this.rawProgramDateTime=null,this.tagList=[],this.duration=0,this.sn=0,this.levelkeys=void 0,this.type=void 0,this.loader=null,this.keyLoader=null,this.level=-1,this.cc=0,this.startPTS=void 0,this.endPTS=void 0,this.startDTS=void 0,this.endDTS=void 0,this.start=0,this.playlistOffset=0,this.deltaPTS=void 0,this.maxStartPTS=void 0,this.minEndPTS=void 0,this.data=void 0,this.bitrateTest=!1,this.title=null,this.initSegment=null,this.endList=void 0,this.gap=void 0,this.urlId=0,this.type=t}get byteLength(){if(this.hasStats){const t=this.stats.total;if(t)return t}if(this.byteRange.length){const t=this.byteRange[0],n=this.byteRange[1];if(lt(t)&&lt(n))return n-t}return null}get bitrate(){return this.byteLength?this.byteLength*8/this.duration:this._bitrate?this._bitrate:null}set bitrate(t){this._bitrate=t}get decryptdata(){var t;const{levelkeys:n}=this;if(!n||n.NONE)return null;if(n.identity)this._decryptdata||(this._decryptdata=n.identity.getDecryptData(this.sn));else if(!((t=this._decryptdata)!=null&&t.keyId)){const r=Object.keys(n);if(r.length===1){const s=this._decryptdata=n[r[0]]||null;s&&(this._decryptdata=s.getDecryptData(this.sn,n))}}return this._decryptdata}get end(){return this.start+this.duration}get endProgramDateTime(){if(this.programDateTime===null)return null;const t=lt(this.duration)?this.duration:0;return this.programDateTime+t*1e3}get encrypted(){var t;if((t=this._decryptdata)!=null&&t.encrypted)return!0;if(this.levelkeys){var n;const r=Object.keys(this.levelkeys),s=r.length;if(s>1||s===1&&(n=this.levelkeys[r[0]])!=null&&n.encrypted)return!0}return!1}get programDateTime(){return this._programDateTime===null&&this.rawProgramDateTime&&(this.programDateTime=Date.parse(this.rawProgramDateTime)),this._programDateTime}set programDateTime(t){if(!lt(t)){this._programDateTime=this.rawProgramDateTime=null;return}this._programDateTime=t}get ref(){return mr(this)?(this._ref||(this._ref={base:this.base,start:this.start,duration:this.duration,sn:this.sn,programDateTime:this.programDateTime}),this._ref):null}addStart(t){this.setStart(this.start+t)}setStart(t){this.start=t,this._ref&&(this._ref.start=t)}setDuration(t){this.duration=t,this._ref&&(this._ref.duration=t)}setKeyFormat(t){const n=this.levelkeys;if(n){var r;const s=n[t];s&&!((r=this._decryptdata)!=null&&r.keyId)&&(this._decryptdata=s.getDecryptData(this.sn,n))}}abortRequests(){var t,n;(t=this.loader)==null||t.abort(),(n=this.keyLoader)==null||n.abort()}setElementaryStreamInfo(t,n,r,s,i,o=!1){const{elementaryStreams:a}=this,l=a[t];if(!l){a[t]={startPTS:n,endPTS:r,startDTS:s,endDTS:i,partial:o};return}l.startPTS=Math.min(l.startPTS,n),l.endPTS=Math.max(l.endPTS,r),l.startDTS=Math.min(l.startDTS,s),l.endDTS=Math.max(l.endDTS,i)}}class Vce extends f6{constructor(t,n,r,s,i){super(r),this.fragOffset=0,this.duration=0,this.gap=!1,this.independent=!1,this.relurl=void 0,this.fragment=void 0,this.index=void 0,this.duration=t.decimalFloatingPoint("DURATION"),this.gap=t.bool("GAP"),this.independent=t.bool("INDEPENDENT"),this.relurl=t.enumeratedString("URI"),this.fragment=n,this.index=s;const o=t.enumeratedString("BYTERANGE");o&&this.setByteRange(o,i),i&&(this.fragOffset=i.fragOffset+i.duration)}get start(){return this.fragment.start+this.fragOffset}get end(){return this.start+this.duration}get loaded(){const{elementaryStreams:t}=this;return!!(t.audio||t.video||t.audiovideo)}}function h6(e,t){const n=Object.getPrototypeOf(e);if(n){const r=Object.getOwnPropertyDescriptor(n,t);return r||h6(n,t)}}function Uce(e,t){const n=h6(e,t);n&&(n.enumerable=!0,Object.defineProperty(e,t,n))}const nI=Math.pow(2,32)-1,jce=[].push,p6={video:1,audio:2,id3:3,text:4};function yr(e){return String.fromCharCode.apply(null,e)}function m6(e,t){const n=e[t]<<8|e[t+1];return n<0?65536+n:n}function $t(e,t){const n=v6(e,t);return n<0?4294967296+n:n}function rI(e,t){let n=$t(e,t);return n*=Math.pow(2,32),n+=$t(e,t+4),n}function v6(e,t){return e[t]<<24|e[t+1]<<16|e[t+2]<<8|e[t+3]}function zce(e){const t=e.byteLength;for(let n=0;n<t;){const r=$t(e,n);if(r>8&&e[n+4]===109&&e[n+5]===111&&e[n+6]===111&&e[n+7]===102)return!0;n=r>1?n+r:t}return!1}function Kt(e,t){const n=[];if(!t.length)return n;const r=e.byteLength;for(let s=0;s<r;){const i=$t(e,s),o=yr(e.subarray(s+4,s+8)),a=i>1?s+i:r;if(o===t[0])if(t.length===1)n.push(e.subarray(s+8,a));else{const l=Kt(e.subarray(s+8,a),t.slice(1));l.length&&jce.apply(n,l)}s=a}return n}function Hce(e){const t=[],n=e[0];let r=8;const s=$t(e,r);r+=4;let i=0,o=0;n===0?(i=$t(e,r),o=$t(e,r+4),r+=8):(i=rI(e,r),o=rI(e,r+8),r+=16),r+=2;let a=e.length+o;const l=m6(e,r);r+=2;for(let u=0;u<l;u++){let c=r;const d=$t(e,c);c+=4;const f=d&2147483647;if((d&2147483648)>>>31===1)return En.warn("SIDX has hierarchical references (not supported)"),null;const p=$t(e,c);c+=4,t.push({referenceSize:f,subsegmentDuration:p,info:{duration:p/s,start:a,end:a+f-1}}),a+=f,c+=4,r=c}return{earliestPresentationTime:i,timescale:s,version:n,referencesCount:l,references:t}}function g6(e){const t=[],n=Kt(e,["moov","trak"]);for(let s=0;s<n.length;s++){const i=n[s],o=Kt(i,["tkhd"])[0];if(o){let a=o[0];const l=$t(o,a===0?12:20),u=Kt(i,["mdia","mdhd"])[0];if(u){a=u[0];const c=$t(u,a===0?12:20),d=Kt(i,["mdia","hdlr"])[0];if(d){const f=yr(d.subarray(8,12)),h={soun:In.AUDIO,vide:In.VIDEO}[f],p=Kt(i,["mdia","minf","stbl","stsd"])[0],m=Gce(p);h?(t[l]={timescale:c,type:h,stsd:m},t[h]=Sn({timescale:c,id:l},m)):t[l]={timescale:c,type:f,stsd:m}}}}}return Kt(e,["moov","mvex","trex"]).forEach(s=>{const i=$t(s,4),o=t[i];o&&(o.default={duration:$t(s,12),flags:$t(s,20)})}),t}function Gce(e){const t=e.subarray(8),n=t.subarray(86),r=yr(t.subarray(4,8));let s=r,i;const o=r==="enca"||r==="encv";if(o){const u=Kt(t,[r])[0].subarray(r==="enca"?28:78);Kt(u,["sinf"]).forEach(d=>{const f=Kt(d,["schm"])[0];if(f){const h=yr(f.subarray(4,8));if(h==="cbcs"||h==="cenc"){const p=Kt(d,["frma"])[0];p&&(s=yr(p))}}})}const a=s;switch(s){case"avc1":case"avc2":case"avc3":case"avc4":{const l=Kt(n,["avcC"])[0];l&&l.length>3&&(s+="."+Q0(l[1])+Q0(l[2])+Q0(l[3]),i=J0(a==="avc1"?"dva1":"dvav",n));break}case"mp4a":{const l=Kt(t,[r])[0],u=Kt(l.subarray(28),["esds"])[0];if(u&&u.length>7){let c=4;if(u[c++]!==3)break;c=px(u,c),c+=2;const d=u[c++];if(d&128&&(c+=2),d&64&&(c+=u[c++]),u[c++]!==4)break;c=px(u,c);const f=u[c++];if(f===64)s+="."+Q0(f);else break;if(c+=12,u[c++]!==5)break;c=px(u,c);const h=u[c++];let p=(h&248)>>3;p===31&&(p+=1+((h&7)<<3)+((u[c]&224)>>5)),s+="."+p}break}case"hvc1":case"hev1":{const l=Kt(n,["hvcC"])[0];if(l&&l.length>12){const u=l[1],c=["","A","B","C"][u>>6],d=u&31,f=$t(l,2),h=(u&32)>>5?"H":"L",p=l[12],m=l.subarray(6,12);s+="."+c+d,s+="."+Kce(f).toString(16).toUpperCase(),s+="."+h+p;let v="";for(let x=m.length;x--;){const g=m[x];(g||v)&&(v="."+g.toString(16).toUpperCase()+v)}s+=v}i=J0(a=="hev1"?"dvhe":"dvh1",n);break}case"dvh1":case"dvhe":case"dvav":case"dva1":case"dav1":{s=J0(s,n)||s;break}case"vp09":{const l=Kt(n,["vpcC"])[0];if(l&&l.length>6){const u=l[4],c=l[5],d=l[6]>>4&15;s+="."+_o(u)+"."+_o(c)+"."+_o(d)}break}case"av01":{const l=Kt(n,["av1C"])[0];if(l&&l.length>2){const u=l[1]>>>5,c=l[1]&31,d=l[2]>>>7?"H":"M",f=(l[2]&64)>>6,h=(l[2]&32)>>5,p=u===2&&f?h?12:10:f?10:8,m=(l[2]&16)>>4,v=(l[2]&8)>>3,x=(l[2]&4)>>2,g=l[2]&3;s+="."+u+"."+_o(c)+d+"."+_o(p)+"."+m+"."+v+x+g+"."+_o(1)+"."+_o(1)+"."+_o(1)+"."+0,i=J0("dav1",n)}break}}return{codec:s,encrypted:o,supplemental:i}}function J0(e,t){const n=Kt(t,["dvvC"]),r=n.length?n[0]:Kt(t,["dvcC"])[0];if(r){const s=r[2]>>1&127,i=r[2]<<5&32|r[3]>>3&31;return e+"."+_o(s)+"."+_o(i)}}function Kce(e){let t=0;for(let n=0;n<32;n++)t|=(e>>n&1)<<31-n;return t>>>0}function px(e,t){const n=t+5;for(;e[t++]&128&&t<n;);return t}function Q0(e){return("0"+e.toString(16).toUpperCase()).slice(-2)}function _o(e){return(e<10?"0":"")+e}function Wce(e,t){if(!e||!t)return;const n=t.keyId;n&&t.isCommonEncryption&&y6(e,(r,s)=>{const i=r.subarray(8,24);i.some(o=>o!==0)||(En.log(`[eme] Patching keyId in 'enc${s?"a":"v"}>sinf>>tenc' box: ${_s(i)} -> ${_s(n)}`),r.set(n,8))})}function qce(e){const t=[];return y6(e,n=>t.push(n.subarray(8,24))),t}function y6(e,t){Kt(e,["moov","trak"]).forEach(r=>{const s=Kt(r,["mdia","minf","stbl","stsd"])[0];if(!s)return;const i=s.subarray(8);let o=Kt(i,["enca"]);const a=o.length>0;a||(o=Kt(i,["encv"])),o.forEach(l=>{const u=a?l.subarray(28):l.subarray(78);Kt(u,["sinf"]).forEach(d=>{const f=x6(d);f&&t(f,a)})})})}function x6(e){const t=Kt(e,["schm"])[0];if(t){const n=yr(t.subarray(4,8));if(n==="cbcs"||n==="cenc"){const r=Kt(e,["schi","tenc"])[0];if(r)return r}}}function Yce(e,t,n){const r={},s=Kt(e,["moof","traf"]);for(let i=0;i<s.length;i++){const o=s[i],a=Kt(o,["tfhd"])[0],l=$t(a,4),u=t[l];if(!u)continue;r[l]||(r[l]={start:NaN,duration:0,sampleCount:0,timescale:u.timescale,type:u.type});const c=r[l],d=Kt(o,["tfdt"])[0];if(d){const y=d[0];let _=$t(d,4);y===1&&(_===nI?n.warn("[mp4-demuxer]: Ignoring assumed invalid signed 64-bit track fragment decode time"):(_*=nI+1,_+=$t(d,8))),lt(_)&&(!lt(c.start)||_<c.start)&&(c.start=_)}const f=u.default,h=$t(a,0)|f?.flags;let p=f?.duration||0;h&8&&(h&2?p=$t(a,12):p=$t(a,8));const m=Kt(o,["trun"]);let v=c.start||0,x=0,g=p;for(let y=0;y<m.length;y++){const _=m[y],E=$t(_,4),w=c.sampleCount;c.sampleCount+=E;const T=_[3]&1,C=_[3]&4,I=_[2]&1,k=_[2]&2,$=_[2]&4,R=_[2]&8;let D=8,O=E;for(T&&(D+=4),C&&E&&(!(_[D+1]&1)&&c.keyFrameIndex===void 0&&(c.keyFrameIndex=w),D+=4,I?(g=$t(_,D),D+=4):g=p,k&&(D+=4),R&&(D+=4),v+=g,x+=g,O--);O--;)I?(g=$t(_,D),D+=4):g=p,k&&(D+=4),$&&(_[D+1]&1||c.keyFrameIndex===void 0&&(c.keyFrameIndex=c.sampleCount-(O+1),c.keyFrameStart=v),D+=4),R&&(D+=4),v+=g,x+=g;!x&&p&&(x+=p*E)}c.duration+=x}if(!Object.keys(r).some(i=>r[i].duration)){let i=1/0,o=0;const a=Kt(e,["sidx"]);for(let l=0;l<a.length;l++){const u=Hce(a[l]);if(u!=null&&u.references){i=Math.min(i,u.earliestPresentationTime/u.timescale);const c=u.references.reduce((d,f)=>d+f.info.duration||0,0);o=Math.max(o,c+u.earliestPresentationTime/u.timescale)}}o&&lt(o)&&Object.keys(r).forEach(l=>{r[l].duration||(r[l].duration=o*r[l].timescale-r[l].start)})}return r}function Xce(e){const t={valid:null,remainder:null},n=Kt(e,["moof"]);if(n.length<2)return t.remainder=e,t;const r=n[n.length-1];return t.valid=e.slice(0,r.byteOffset-8),t.remainder=e.slice(r.byteOffset-8),t}function ji(e,t){const n=new Uint8Array(e.length+t.length);return n.set(e),n.set(t,e.length),n}
vendor: 2,817 bytes, line 92
92function sI(e,t){const n=[],r=t.samples,s=t.timescale,i=t.id;let o=!1;return Kt(r,["moof"]).map(l=>{const u=l.byteOffset-8;Kt(l,["traf"]).map(d=>{const f=Kt(d,["tfdt"]).map(h=>{const p=h[0];let m=$t(h,4);return p===1&&(m*=Math.pow(2,32),m+=$t(h,8)),m/s})[0];return f!==void 0&&(e=f),Kt(d,["tfhd"]).map(h=>{const p=$t(h,4),m=$t(h,0)&16777215,v=(m&1)!==0,x=(m&2)!==0,g=(m&8)!==0;let y=0;const _=(m&16)!==0;let E=0;const w=(m&32)!==0;let T=8;p===i&&(v&&(T+=8),x&&(T+=4),g&&(y=$t(h,T),T+=4),_&&(E=$t(h,T),T+=4),w&&(T+=4),t.type==="video"&&(o=Gy(t.codec)),Kt(d,["trun"]).map(C=>{const I=C[0],k=$t(C,0)&16777215,$=(k&1)!==0;let R=0;const D=(k&4)!==0,O=(k&256)!==0;let B=0;const U=(k&512)!==0;let N=0;const V=(k&1024)!==0,H=(k&2048)!==0;let re=0;const W=$t(C,4);let X=8;$&&(R=$t(C,X),X+=4),D&&(X+=4);let Q=R+u;for(let le=0;le<W;le++){if(O?(B=$t(C,X),X+=4):B=y,U?(N=$t(C,X),X+=4):N=E,V&&(X+=4),H&&(I===0?re=$t(C,X):re=v6(C,X),X+=4),t.type===In.VIDEO){let ve=0;for(;ve<N;){const oe=$t(r,Q);if(Q+=4,Zce(o,r[Q])){const K=r.subarray(Q,Q+oe);DE(K,o?2:1,e+re/s,n)}Q+=oe,ve+=oe+4}}e+=B/s}}))})})}),n}function Gy(e){if(!e)return!1;const t=e.substring(0,4);return t==="hvc1"||t==="hev1"||t==="dvh1"||t==="dvhe"}function Zce(e,t){if(e){const n=t>>1&63;return n===39||n===40}else return(t&31)===6}function DE(e,t,n,r){const s=b6(e);let i=0;i+=t;let o=0,a=0,l=0;for(;i<s.length;){o=0;do{if(i>=s.length)break;l=s[i++],o+=l}while(l===255);a=0;do{if(i>=s.length)break;l=s[i++],a+=l}while(l===255);const u=s.length-i;let c=i;if(a<u)i+=a;else if(a>u){En.error(`Malformed SEI payload. ${a} is too small, only ${u} bytes left to parse.`);break}if(o===4){if(s[c++]===181){const f=m6(s,c);if(c+=2,f===49){const h=$t(s,c);if(c+=4,h===1195456820){const p=s[c++];if(p===3){const m=s[c++],v=31&m,x=64&m,g=x?2+v*3:0,y=new Uint8Array(g);if(x){y[0]=m;for(let _=1;_<g;_++)y[_]=s[c++]}r.push({type:p,payloadType:o,pts:n,bytes:y})}}}}}else if(o===5&&a>16){const d=[];for(let p=0;p<16;p++){const m=s[c++].toString(16);d.push(m.length==1?"0"+m:m),(p===3||p===5||p===7||p===9)&&d.push("-")}const f=a-16,h=new Uint8Array(f);for(let p=0;p<f;p++)h[p]=s[c++];r.push({payloadType:o,pts:n,uuid:d.join(""),userData:ui(h),userDataBytes:h})}}}function b6(e){const t=e.byteLength,n=[];let r=1;for(;r<t-2;)e[r]===0&&e[r+1]===0&&e[r+2]===3?(n.push(r+2),r+=2):r++;if(n.length===0)return e;const s=t-n.length,i=new Uint8Array(s);let o=0;for(r=0;r<s;o++,r++)o===n[0]&&(o++,n.shift()),i[r]=e[o];return i}function Jce(e){const t=e[0];let n="",r="",s=0,i=0,o=0,a=0,l=0,u=0;if(t===0){for(;yr(e.subarray(u,u+1))!=="\0";)n+=yr(e.subarray(u,u+1)),u+=1;for(n+=yr(e.subarray(u,u+1)),u+=1;yr(e.subarray(u,u+1))!=="\0";)r+=yr(e.subarray(u,u+1)),u+=1;r+=yr(e.subarray(u,u+1)),u+=1,s=$t(e,12),i=$t(e,16),a=$t(e,20),l=$t(e,24),u=28}else if(t===1){u+=4,s=$t(e,u),u+=4;const d=$t(e,u);u+=4;
vendor: 11,080 bytes, line 92
92const f=$t(e,u);for(u+=4,o=2**32*d+f,kce(o)||(o=Number.MAX_SAFE_INTEGER,En.warn("Presentation time exceeds safe integer limit and wrapped to max safe integer in parsing emsg box")),a=$t(e,u),u+=4,l=$t(e,u),u+=4;yr(e.subarray(u,u+1))!=="\0";)n+=yr(e.subarray(u,u+1)),u+=1;for(n+=yr(e.subarray(u,u+1)),u+=1;yr(e.subarray(u,u+1))!=="\0";)r+=yr(e.subarray(u,u+1)),u+=1;r+=yr(e.subarray(u,u+1)),u+=1}const c=e.subarray(u,e.byteLength);return{schemeIdUri:n,value:r,timeScale:s,presentationTime:o,presentationTimeDelta:i,eventDuration:a,id:l,payload:c}}function Qce(e,...t){const n=t.length;let r=8,s=n;for(;s--;)r+=t[s].byteLength;const i=new Uint8Array(r);for(i[0]=r>>24&255,i[1]=r>>16&255,i[2]=r>>8&255,i[3]=r&255,i.set(e,4),s=0,r=8;s<n;s++)i.set(t[s],r),r+=t[s].byteLength;return i}function ede(e,t,n){if(e.byteLength!==16)throw new RangeError("Invalid system id");let r,s;r=0,s=new Uint8Array;let i;r>0?(i=new Uint8Array(4),t.length>0&&new DataView(i.buffer).setUint32(0,t.length,!1)):i=new Uint8Array;const o=new Uint8Array(4);return n.byteLength>0&&new DataView(o.buffer).setUint32(0,n.byteLength,!1),Qce([112,115,115,104],new Uint8Array([r,0,0,0]),e,i,s,o,n)}function tde(e){const t=[];if(e instanceof ArrayBuffer){const n=e.byteLength;let r=0;for(;r+32<n;){const s=new DataView(e,r),i=nde(s);t.push(i),r+=i.size}}return t}function nde(e){const t=e.getUint32(0),n=e.byteOffset,r=e.byteLength;if(r<t)return{offset:n,size:r};if(e.getUint32(4)!==1886614376)return{offset:n,size:t};const i=e.getUint32(8)>>>24;if(i!==0&&i!==1)return{offset:n,size:t};const o=e.buffer,a=_s(new Uint8Array(o,n+12,16));let l=null,u=null,c=0;if(i===0)c=28;else{const f=e.getUint32(28);if(!f||r<32+f*16)return{offset:n,size:t};l=[];for(let h=0;h<f;h++)l.push(new Uint8Array(o,n+32+h*16,16));c=32+f*16}if(!c)return{offset:n,size:t};const d=e.getUint32(c);return t-32<d?{offset:n,size:t}:(u=new Uint8Array(o,n+c+4,d),{version:i,systemId:a,kids:l,data:u,offset:n,size:t})}const _6=()=>/\(Windows.+Firefox\//i.test(navigator.userAgent),Xc={audio:{a3ds:1,"ac-3":.95,"ac-4":1,alac:.9,alaw:1,dra1:1,"dts+":1,"dts-":1,dtsc:1,dtse:1,dtsh:1,"ec-3":.9,enca:1,fLaC:.9,flac:.9,FLAC:.9,g719:1,g726:1,m4ae:1,mha1:1,mha2:1,mhm1:1,mhm2:1,mlpa:1,mp4a:1,"raw ":1,Opus:1,opus:1,samr:1,sawb:1,sawp:1,sevc:1,sqcp:1,ssmv:1,twos:1,ulaw:1},video:{avc1:1,avc2:1,avc3:1,avc4:1,avcp:1,av01:.8,dav1:.8,drac:1,dva1:1,dvav:1,dvh1:.7,dvhe:.7,encv:1,hev1:.75,hvc1:.75,mjp2:1,mp4v:1,mvc1:1,mvc2:1,mvc3:1,mvc4:1,resv:1,rv60:1,s263:1,svc1:1,svc2:1,"vc-1":1,vp08:1,vp09:.9},text:{stpp:1,wvtt:1}};function PE(e,t){const n=Xc[t];return!!n&&!!n[e.slice(0,4)]}function uh(e,t,n=!0){return!e.split(",").some(r=>!RE(r,t,n))}function RE(e,t,n=!0){var r;const s=xl(n);return(r=s?.isTypeSupported(ch(e,t)))!=null?r:!1}function ch(e,t){return`${t}/mp4;codecs=${e}`}function iI(e){if(e){const t=e.substring(0,4);return Xc.video[t]}return 2}function ug(e){const t=_6();return e.split(",").reduce((n,r)=>{const i=t&&Gy(r)?9:Xc.video[r];return i?(i*2+n)/(n?3:2):(Xc.audio[r]+n)/(n?2:1)},0)}const mx={};function rde(e,t=!0){if(mx[e])return mx[e];const n={flac:["flac","fLaC","FLAC"],opus:["opus","Opus"],"mp4a.40.34":["mp3"]}[e];for(let s=0;s<n.length;s++){var r;if(RE(n[s],"audio",t))return mx[e]=n[s],n[s];if(n[s]==="mp3"&&(r=xl(t))!=null&&r.isTypeSupported("audio/mpeg"))return""}return e}const sde=/flac|opus|mp4a\.40\.34/i;function cg(e,t=!0){return e.replace(sde,n=>rde(n.toLowerCase(),t))}function ide(e,t){const n=[];if(e){const r=e.split(",");for(let s=0;s<r.length;s++)PE(r[s],"video")||n.push(r[s])}return t&&n.push(t),n.join(",")}function Im(e,t){if(e&&(e.length>4||["ac-3","ec-3","alac","fLaC","Opus"].indexOf(e)!==-1)&&(oI(e,"audio")||oI(e,"video")))return e;if(t){const n=t.split(",");if(n.length>1){if(e){for(let r=n.length;r--;)if(n[r].substring(0,4)===e.substring(0,4))return n[r]}return n[0]}}return t||e}function oI(e,t){return PE(e,t)&&RE(e,t)}function ode(e){const t=e.split(",");for(let n=0;n<t.length;n++){const r=t[n].split(".");r.length>2&&r[0]==="avc1"&&(t[n]=`avc1.${parseInt(r[1]).toString(16)}${("000"+parseInt(r[2]).toString(16)).slice(-4)}`)}return t.join(",")}function ade(e){if(e.startsWith("av01.")){const t=e.split("."),n=["0","111","01","01","01","0"];for(let r=t.length;r>4&&r<10;r++)t[r]=n[r-4];return t.join(".")}return e}function aI(e){const t=xl(e)||{isTypeSupported:()=>!1};return{mpeg:t.isTypeSupported("audio/mpeg"),mp3:t.isTypeSupported('audio/mp4; codecs="mp3"'),ac3:t.isTypeSupported('audio/mp4; codecs="ac-3"')}}function x2(e){return e.replace(/^.+codecs=["']?([^"']+).*$/,"$1")}const lde={supported:!0,powerEfficient:!0,smooth:!0},ude={supported:!1,smooth:!1,powerEfficient:!1},S6={supported:!0,configurations:[],decodingInfoResults:[lde]};function E6(e,t){return{supported:!1,configurations:t,decodingInfoResults:[ude],error:e}}function cde(e,t,n,r,s,i){const o=e.videoCodec,a=e.audioCodec?e.audioGroups:null,l=i?.audioCodec,u=i?.channels,c=u?parseInt(u):l?1/0:2;let d=null;if(a!=null&&a.length)try{a.length===1&&a[0]?d=t.groups[a[0]].channels:d=a.reduce((f,h)=>{if(h){const p=t.groups[h];if(!p)throw new Error(`Audio track group ${h} not found`);Object.keys(p.channels).forEach(m=>{f[m]=(f[m]||0)+p.channels[m]})}return f},{2:0})}catch{return!0}return o!==void 0&&(o.split(",").some(f=>Gy(f))||e.width>1920&&e.height>1088||e.height>1920&&e.width>1088||e.frameRate>Math.max(r,30)||e.videoRange!=="SDR"&&e.videoRange!==n||e.bitrate>Math.max(s,8e6))||!!d&&lt(c)&&Object.keys(d).some(f=>parseInt(f)>c)}function w6(e,t,n,r={}){const s=e.videoCodec;if(!s&&!e.audioCodec||!n)return Promise.resolve(S6);const i=[],o=dde(e),a=o.length,l=fde(e,t,a>0),u=l.length;for(let c=a||1*u||1;c--;){const d={type:"media-source"};if(a&&(d.video=o[c%a]),u){d.audio=l[c%u];const f=d.audio.bitrate;d.video&&f&&(d.video.bitrate-=f)}i.push(d)}if(s){const c=navigator.userAgent;if(s.split(",").some(d=>Gy(d))&&_6())return Promise.resolve(E6(new Error(`Overriding Windows Firefox HEVC MediaCapabilities result based on user-agent string: (${c})`),i))}return Promise.all(i.map(c=>{const d=pde(c);return r[d]||(r[d]=n.decodingInfo(c))})).then(c=>({supported:!c.some(d=>!d.supported),configurations:i,decodingInfoResults:c})).catch(c=>({supported:!1,configurations:i,decodingInfoResults:[],error:c}))}function dde(e){var t;const n=(t=e.videoCodec)==null?void 0:t.split(","),r=T6(e),s=e.width||640,i=e.height||480,o=e.frameRate||30,a=e.videoRange.toLowerCase();return n?n.map(l=>{const u={contentType:ch(ade(l),"video"),width:s,height:i,bitrate:r,framerate:o};return a!=="sdr"&&(u.transferFunction=a),u}):[]}function fde(e,t,n){var r;const s=(r=e.audioCodec)==null?void 0:r.split(","),i=T6(e);return s&&e.audioGroups?e.audioGroups.reduce((o,a)=>{var l;const u=a?(l=t.groups[a])==null?void 0:l.tracks:null;return u?u.reduce((c,d)=>{if(d.groupId===a){const f=parseFloat(d.channels||"");s.forEach(h=>{const p={contentType:ch(h,"audio"),bitrate:n?hde(h,i):i};f&&(p.channels=""+f),c.push(p)})}return c},o):o},[]):[]}function hde(e,t){if(t<=1)return 1;let n=128e3;return e==="ec-3"?n=768e3:e==="ac-3"&&(n=64e4),Math.min(t/2,n)}function T6(e){return Math.ceil(Math.max(e.bitrate*.9,e.averageBitrate)/1e3)*1e3||1}function pde(e){let t="";const{audio:n,video:r}=e;if(r){const s=x2(r.contentType);t+=`${s}_r${r.height}x${r.width}f${Math.ceil(r.framerate)}${r.transferFunction||"sd"}_${Math.ceil(r.bitrate/1e5)}`}if(n){const s=x2(n.contentType);t+=`${r?"_":""}${s}_c${n.channels}`}return t}const b2=["NONE","TYPE-0","TYPE-1",null];function mde(e){return b2.indexOf(e)>-1}const dg=["SDR","PQ","HLG"];function vde(e){return!!e&&dg.indexOf(e)>-1}var Lm={No:"",Yes:"YES",v2:"v2"};function lI(e){const{canSkipUntil:t,canSkipDateRanges:n,age:r}=e,s=r<t/2;return t&&s?n?Lm.v2:Lm.Yes:Lm.No}class uI{constructor(t,n,r){this.msn=void 0,this.part=void 0,this.skip=void 0,this.msn=t,this.part=n,this.skip=r}addDirectives(t){const n=new self.URL(t);return this.msn!==void 0&&n.searchParams.set("_HLS_msn",this.msn.toString()),this.part!==void 0&&n.searchParams.set("_HLS_part",this.part.toString()),this.skip&&n.searchParams.set("_HLS_skip",this.skip),n.href}}class dh{constructor(t){if(this._attrs=void 0,this.audioCodec=void 0,this.bitrate=void 0,this.codecSet=void 0,this.url=void 0,this.frameRate=void 0,this.height=void 0,this.id=void 0,this.name=void 0,this.supplemental=void 0,this.videoCodec=void 0,this.width=void 0,this.details=void 0,this.fragmentError=0,this.loadError=0,this.loaded=void 0,this.realBitrate=0,this.supportedPromise=void 0,this.supportedResult=void 0,this._avgBitrate=0,this._audioGroups=void 0,this._subtitleGroups=void 0,this._urlId=0,this.url=[t.url],this._attrs=[t.attrs],this.bitrate=t.bitrate,t.details&&(this.details=t.details),this.id=t.id||0,this.name=t.name,this.width=t.width||0,this.height=t.height||0,this.frameRate=t.attrs.optionalFloat("FRAME-RATE",0),this._avgBitrate=t.attrs.decimalInteger("AVERAGE-BANDWIDTH"),this.audioCodec=t.audioCodec,this.videoCodec=t.videoCodec,this.codecSet=[t.videoCodec,t.audioCodec].filter(r=>!!r).map(r=>r.substring(0,4)).join(","),"supplemental"in t){var n;this.supplemental=t.supplemental;const r=(n=t.supplemental)==null?void 0:n.videoCodec;r&&r!==t.videoCodec&&(this.codecSet+=`,${r.substring(0,4)}`)}this.addGroupId("audio",t.attrs.AUDIO),this.addGroupId("text",t.attrs.SUBTITLES)}get maxBitrate(){return Math.max(this.realBitrate,this.bitrate)}get averageBitrate(){return this._avgBitrate||this.realBitrate||this.bitrate}get attrs(){return this._attrs[0]}get codecs(){return this.attrs.CODECS||""}get pathwayId(){return this.attrs["PATHWAY-ID"]||"."}get videoRange(){return this.attrs["VIDEO-RANGE"]||"SDR"}get score(){return this.attrs.optionalFloat("SCORE",0)}get uri(){return this.url[0]||""}hasAudioGroup(t){return cI(this._audioGroups,t)}hasSubtitleGroup(t){return cI(this._subtitleGroups,t)}get audioGroups(){return this._audioGroups}get subtitleGroups(){return this._subtitleGroups}addGroupId(t,n){if(n){if(t==="audio"){let r=this._audioGroups;r||(r=this._audioGroups=[]),r.indexOf(n)===-1&&r.push(n)}else if(t==="text"){let r=this._subtitleGroups;r||(r=this._subtitleGroups=[]),r.indexOf(n)===-1&&r.push(n)}}}get urlId(){return 0}set urlId(t){}get audioGroupIds(){return this.audioGroups?[this.audioGroupId]:void 0}get textGroupIds(){return this.subtitleGroups?[this.textGroupId]:void 0}get audioGroupId(){var t;return(t=this.audioGroups)==null?void 0:t[0]}get textGroupId(){var t;return(t=this.subtitleGroups)==null?void 0:t[0]}addFallback(){}}function cI(e,t){return!t||!e?!1:e.indexOf(t)!==-1}function gde(){if(typeof matchMedia=="function"){const e=matchMedia("(dynamic-range: high)"),t=matchMedia("bad query");if(e.media!==t.media)return e.matches===!0}return!1}function yde(e,t){let n=!1,r=[];if(e&&(n=e!=="SDR",r=[e]),t){r=t.allowedVideoRanges||dg.slice(0);const s=r.join("")!=="SDR"&&!t.videoCodec;n=t.preferHDR!==void 0?t.preferHDR:s&&gde(),n||(r=["SDR"])}return{preferHDR:n,allowedVideoRanges:r}}const xde=e=>{const t=new WeakSet;return(n,r)=>{if(e&&(r=e(n,r)),typeof r=="object"&&r!==null){if(t.has(r))return;t.add(r)}return r}},Ln=(e,t)=>JSON.stringify(e,xde(t));
vendor: 4,258 bytes, line 92
92function bde(e,t,n,r,s){const i=Object.keys(e),o=r?.channels,a=r?.audioCodec,l=s?.videoCodec,u=o&&parseInt(o)===2;let c=!1,d=!1,f=1/0,h=1/0,p=1/0,m=1/0,v=0,x=[];const{preferHDR:g,allowedVideoRanges:y}=yde(t,s);for(let C=i.length;C--;){const I=e[i[C]];c||(c=I.channels[2]>0),f=Math.min(f,I.minHeight),h=Math.min(h,I.minFramerate),p=Math.min(p,I.minBitrate),y.filter($=>I.videoRanges[$]>0).length>0&&(d=!0)}f=lt(f)?f:0,h=lt(h)?h:0;const _=Math.max(1080,f),E=Math.max(30,h);p=lt(p)?p:n,n=Math.max(p,n),d||(t=void 0);const w=i.length>1;return{codecSet:i.reduce((C,I)=>{const k=e[I];if(I===C)return C;if(x=d?y.filter($=>k.videoRanges[$]>0):[],w){if(k.minBitrate>n)return vo(I,`min bitrate of ${k.minBitrate} > current estimate of ${n}`),C;if(!k.hasDefaultAudio)return vo(I,"no renditions with default or auto-select sound found"),C;if(a&&I.indexOf(a.substring(0,4))%5!==0)return vo(I,`audio codec preference "${a}" not found`),C;if(o&&!u){if(!k.channels[o])return vo(I,`no renditions with ${o} channel sound found (channels options: ${Object.keys(k.channels)})`),C}else if((!a||u)&&c&&k.channels[2]===0)return vo(I,"no renditions with stereo sound found"),C;if(k.minHeight>_)return vo(I,`min resolution of ${k.minHeight} > maximum of ${_}`),C;if(k.minFramerate>E)return vo(I,`min framerate of ${k.minFramerate} > maximum of ${E}`),C;if(!x.some($=>k.videoRanges[$]>0))return vo(I,`no variants with VIDEO-RANGE of ${Ln(x)} found`),C;if(l&&I.indexOf(l.substring(0,4))%5!==0)return vo(I,`video codec preference "${l}" not found`),C;if(k.maxScore<v)return vo(I,`max score of ${k.maxScore} < selected max of ${v}`),C}return C&&(ug(I)>=ug(C)||k.fragmentError>e[C].fragmentError)?C:(m=k.minIndex,v=k.maxScore,I)},void 0),videoRanges:x,preferHDR:g,minFramerate:h,minBitrate:p,minIndex:m}}function vo(e,t){En.log(`[abr] start candidates with "${e}" ignored because ${t}`)}function C6(e){return e.reduce((t,n)=>{let r=t.groups[n.groupId];r||(r=t.groups[n.groupId]={tracks:[],channels:{2:0},hasDefault:!1,hasAutoSelect:!1}),r.tracks.push(n);const s=n.channels||"2";return r.channels[s]=(r.channels[s]||0)+1,r.hasDefault=r.hasDefault||n.default,r.hasAutoSelect=r.hasAutoSelect||n.autoselect,r.hasDefault&&(t.hasDefaultAudio=!0),r.hasAutoSelect&&(t.hasAutoSelectAudio=!0),t},{hasDefaultAudio:!1,hasAutoSelectAudio:!1,groups:{}})}function _de(e,t,n,r){return e.slice(n,r+1).reduce((s,i,o)=>{if(!i.codecSet)return s;const a=i.audioGroups;let l=s[i.codecSet];l||(s[i.codecSet]=l={minBitrate:1/0,minHeight:1/0,minFramerate:1/0,minIndex:o,maxScore:0,videoRanges:{SDR:0},channels:{2:0},hasDefaultAudio:!a,fragmentError:0}),l.minBitrate=Math.min(l.minBitrate,i.bitrate);const u=Math.min(i.height,i.width);return l.minHeight=Math.min(l.minHeight,u),l.minFramerate=Math.min(l.minFramerate,i.frameRate),l.minIndex=Math.min(l.minIndex,o),l.maxScore=Math.max(l.maxScore,i.score),l.fragmentError+=i.fragmentError,l.videoRanges[i.videoRange]=(l.videoRanges[i.videoRange]||0)+1,a&&a.forEach(c=>{if(!c)return;const d=t.groups[c];d&&(l.hasDefaultAudio=l.hasDefaultAudio||t.hasDefaultAudio?d.hasDefault:d.hasAutoSelect||!t.hasDefaultAudio&&!t.hasAutoSelectAudio,Object.keys(d.channels).forEach(f=>{l.channels[f]=(l.channels[f]||0)+d.channels[f]}))}),s},{})}function dI(e){if(!e)return e;const{lang:t,assocLang:n,characteristics:r,channels:s,audioCodec:i}=e;return{lang:t,assocLang:n,characteristics:r,channels:s,audioCodec:i}}function Oo(e,t,n){if("attrs"in e){const r=t.indexOf(e);if(r!==-1)return r}for(let r=0;r<t.length;r++){const s=t[r];if(du(e,s,n))return r}return-1}function du(e,t,n){const{groupId:r,name:s,lang:i,assocLang:o,default:a}=e,l=e.forced;return(r===void 0||t.groupId===r)&&(s===void 0||t.name===s)&&(i===void 0||Sde(i,t.lang))&&(i===void 0||t.assocLang===o)&&(a===void 0||t.default===a)&&(l===void 0||t.forced===l)&&(!("characteristics"in e)||Ede(e.characteristics||"",t.characteristics))&&(n===void 0||n(e,t))}function Sde(e,t="--"){return e.length===t.length?e===t:e.startsWith(t)||t.startsWith(e)}function Ede(e,t=""){const n=e.split(","),r=t.split(",");return n.length===r.length&&!n.some(s=>r.indexOf(s)===-1)}function ql(e,t){const{audioCodec:n,channels:r}=e;return(n===void 0||(t.audioCodec||"").substring(0,4)===n.substring(0,4))&&(r===void 0||r===(t.channels||"2"))}
vendor: 7,122 bytes, lines 92-102
92function wde(e,t,n,r,s){const i=t[r],a=t.reduce((f,h,p)=>{const m=h.uri;return(f[m]||(f[m]=[])).push(p),f},{})[i.uri];a.length>1&&(r=Math.max.apply(Math,a));const l=i.videoRange,u=i.frameRate,c=i.codecSet.substring(0,4),d=fI(t,r,f=>{if(f.videoRange!==l||f.frameRate!==u||f.codecSet.substring(0,4)!==c)return!1;const h=f.audioGroups,p=n.filter(m=>!h||h.indexOf(m.groupId)!==-1);return Oo(e,p,s)>-1});return d>-1?d:fI(t,r,f=>{const h=f.audioGroups,p=n.filter(m=>!h||h.indexOf(m.groupId)!==-1);return Oo(e,p,s)>-1})}function fI(e,t,n){for(let r=t;r>-1;r--)if(n(e[r]))return r;for(let r=t+1;r<e.length;r++)if(n(e[r]))return r;return-1}function fg(e,t){var n;return!!e&&e!==((n=t.loadLevelObj)==null?void 0:n.uri)}class Tde extends Ki{constructor(t){super("abr",t.logger),this.hls=void 0,this.lastLevelLoadSec=0,this.lastLoadedFragLevel=-1,this.firstSelection=-1,this._nextAutoLevel=-1,this.nextAutoLevelKey="",this.audioTracksByGroup=null,this.codecTiers=null,this.timer=-1,this.fragCurrent=null,this.partCurrent=null,this.bitrateTestDelay=0,this.rebufferNotice=-1,this.supportedCache={},this.bwEstimator=void 0,this._abandonRulesCheck=n=>{var r;const{fragCurrent:s,partCurrent:i,hls:o}=this,{autoLevelEnabled:a,media:l}=o;if(!s||!l)return;const u=performance.now(),c=i?i.stats:s.stats,d=i?i.duration:s.duration,f=u-c.loading.start,h=o.minAutoLevel,p=s.level,m=this._nextAutoLevel;if(c.aborted||c.loaded&&c.loaded===c.total||p<=h){this.clearTimer(),this._nextAutoLevel=-1;return}if(!a)return;const v=m>-1&&m!==p,x=!!n||v;if(!x&&(l.paused||!l.playbackRate||!l.readyState))return;const g=o.mainForwardBufferInfo;if(!x&&g===null)return;const y=this.bwEstimator.getEstimateTTFB(),_=Math.abs(l.playbackRate);if(f<=Math.max(y,1e3*(d/(_*2))))return;const E=g?g.len/_:0,w=c.loading.first?c.loading.first-c.loading.start:-1,T=c.loaded&&w>-1,C=this.getBwEstimate(),I=o.levels,k=I[p],$=Math.max(c.loaded,Math.round(d*(s.bitrate||k.averageBitrate)/8));let R=T?f-w:f;R<1&&T&&(R=Math.min(f,c.loaded*8/C));const D=T?c.loaded*1e3/R:0,O=y/1e3,B=D?($-c.loaded)/D:$*8/C+O;if(B<=E)return;const U=D?D*8:C,N=((r=n?.details||this.hls.latestLevelDetails)==null?void 0:r.live)===!0,V=this.hls.config.abrBandWidthUpFactor;let H=Number.POSITIVE_INFINITY,re;for(re=p-1;re>h;re--){const le=I[re].maxBitrate,ve=!I[re].details||N;if(H=this.getTimeToLoadFrag(O,U,d*le,ve),H<Math.min(E,d+O))break}if(H>=B||H>d*10)return;T?this.bwEstimator.sample(f-Math.min(y,w),c.loaded):this.bwEstimator.sampleTTFB(f);const W=I[re].maxBitrate;this.getBwEstimate()*V>W&&this.resetEstimator(W);const X=this.findBestLevel(W,h,re,0,E,1,1);X>-1&&(re=X),this.warn(`Fragment ${s.sn}${i?" part "+i.index:""} of level ${p} is loading too slowly;
93      Fragment duration: ${s.duration.toFixed(3)}
94      Time to underbuffer: ${E.toFixed(3)} s
95      Estimated load time for current fragment: ${B.toFixed(3)} s
96      Estimated load time for down switch fragment: ${H.toFixed(3)} s
97      TTFB estimate: ${w|0} ms
98      Current BW estimate: ${lt(C)?C|0:"Unknown"} bps
99      New BW estimate: ${this.getBwEstimate()|0} bps
100      Switching to level ${re} @ ${W|0} bps`),o.nextLoadLevel=o.nextAutoLevel=re,this.clearTimer();const Q=()=>{if(this.clearTimer(),this.fragCurrent===s&&this.hls.loadLevel===re&&re>0){const le=this.getStarvationDelay();if(this.warn(`Aborting inflight request ${re>0?"and switching down":""}
101      Fragment duration: ${s.duration.toFixed(3)} s
102      Time to underbuffer: ${le.toFixed(3)} s`),s.abortRequests(),this.fragCurrent=this.partCurrent=null,re>h){let ve=this.findBestLevel(this.hls.levels[h].bitrate,h,re,0,le,1,1);ve===-1&&(ve=h),this.hls.nextLoadLevel=this.hls.nextAutoLevel=ve,this.resetEstimator(this.hls.levels[ve].bitrate)}}};v||B>H*2?Q():this.timer=self.setInterval(Q,H*1e3),o.trigger(G.FRAG_LOAD_EMERGENCY_ABORTED,{frag:s,part:i,stats:c})},this.hls=t,this.bwEstimator=this.initEstimator(),this.registerListeners()}resetEstimator(t){t&&(this.log(`setting initial bwe to ${t}`),this.hls.config.abrEwmaDefaultEstimate=t),this.firstSelection=-1,this.bwEstimator=this.initEstimator()}initEstimator(){const t=this.hls.config;return new Lce(t.abrEwmaSlowVoD,t.abrEwmaFastVoD,t.abrEwmaDefaultEstimate)}registerListeners(){const{hls:t}=this;t.on(G.MANIFEST_LOADING,this.onManifestLoading,this),t.on(G.FRAG_LOADING,this.onFragLoading,this),t.on(G.FRAG_LOADED,this.onFragLoaded,this),t.on(G.FRAG_BUFFERED,this.onFragBuffered,this),t.on(G.LEVEL_SWITCHING,this.onLevelSwitching,this),t.on(G.LEVEL_LOADED,this.onLevelLoaded,this),t.on(G.LEVELS_UPDATED,this.onLevelsUpdated,this),t.on(G.MAX_AUTO_LEVEL_UPDATED,this.onMaxAutoLevelUpdated,this),t.on(G.ERROR,this.onError,this)}unregisterListeners(){const{hls:t}=this;t&&(t.off(G.MANIFEST_LOADING,this.onManifestLoading,this),t.off(G.FRAG_LOADING,this.onFragLoading,this),t.off(G.FRAG_LOADED,this.onFragLoaded,this),t.off(G.FRAG_BUFFERED,this.onFragBuffered,this),t.off(G.LEVEL_SWITCHING,this.onLevelSwitching,this),t.off(G.LEVEL_LOADED,this.onLevelLoaded,this),t.off(G.LEVELS_UPDATED,this.onLevelsUpdated,this),t.off(G.MAX_AUTO_LEVEL_UPDATED,this.onMaxAutoLevelUpdated,this),t.off(G.ERROR,this.onError,this))}destroy(){this.unregisterListeners(),this.clearTimer(),this.hls=this._abandonRulesCheck=this.supportedCache=null,this.fragCurrent=this.partCurrent=null}onManifestLoading(t,n){this.lastLoadedFragLevel=-1,this.firstSelection=-1,this.lastLevelLoadSec=0,this.supportedCache={},this.fragCurrent=this.partCurrent=null,this.onLevelsUpdated(),this.clearTimer()}onLevelsUpdated(){this.lastLoadedFragLevel>-1&&this.fragCurrent&&(this.lastLoadedFragLevel=this.fragCurrent.level),this._nextAutoLevel=-1,this.onMaxAutoLevelUpdated(),this.codecTiers=null,this.audioTracksByGroup=null}onMaxAutoLevelUpdated(){this.firstSelection=-1,this.nextAutoLevelKey=""}onFragLoading(t,n){const r=n.frag;if(!this.ignoreFragment(r)){if(!r.bitrateTest){var s;this.fragCurrent=r,this.partCurrent=(s=n.part)!=null?s:null}this.clearTimer(),this.timer=self.setInterval(this._abandonRulesCheck,100)}}onLevelSwitching(t,n){this.clearTimer()}onError(t,n){if(!n.fatal)switch(n.details){case Re.BUFFER_ADD_CODEC_ERROR:case Re.BUFFER_APPEND_ERROR:this.lastLoadedFragLevel=-1,this.firstSelection=-1;break;case Re.FRAG_LOAD_TIMEOUT:{const r=n.frag,{fragCurrent:s,partCurrent:i}=this;if(r&&s&&r.sn===s.sn&&r.level===s.level){const o=performance.now(),a=i?i.stats:r.stats,l=o-a.loading.start,u=a.loading.first?a.loading.first-a.loading.start:-1;if(a.loaded&&u>-1){const d=this.bwEstimator.getEstimateTTFB();this.bwEstimator.sample(l-Math.min(d,u),a.loaded)}else this.bwEstimator.sampleTTFB(l)}break}}}getTimeToLoadFrag(t,n,r,s){const i=t+r/n,o=s?t+this.lastLevelLoadSec:0;return i+o}onLevelLoaded(t,n){const r=this.hls.config,{loading:s}=n.stats,i=s.end-s.first;lt(i)&&(this.lastLevelLoadSec=i/1e3),n.details.live?this.bwEstimator.update(r.abrEwmaSlowLive,r.abrEwmaFastLive):this.bwEstimator.update(r.abrEwmaSlowVoD,r.abrEwmaFastVoD),this.timer>-1&&this._abandonRulesCheck(n.levelInfo)}onFragLoaded(t,{frag:n,part:r}){const s=r?r.stats:n.stats;if(n.type===pt.MAIN&&this.bwEstimator.sampleTTFB(s.loading.first-s.loading.start),!this.ignoreFragment(n)){if
vendor: 1,907 bytes, line 102
102(this.clearTimer(),n.level===this._nextAutoLevel&&(this._nextAutoLevel=-1),this.firstSelection=-1,this.hls.config.abrMaxWithRealBitrate){const i=r?r.duration:n.duration,o=this.hls.levels[n.level],a=(o.loaded?o.loaded.bytes:0)+s.loaded,l=(o.loaded?o.loaded.duration:0)+i;o.loaded={bytes:a,duration:l},o.realBitrate=Math.round(8*a/l)}if(n.bitrateTest){const i={stats:s,frag:n,part:r,id:n.type};this.onFragBuffered(G.FRAG_BUFFERED,i),n.bitrateTest=!1}else this.lastLoadedFragLevel=n.level}}onFragBuffered(t,n){const{frag:r,part:s}=n,i=s!=null&&s.stats.loaded?s.stats:r.stats;if(i.aborted||this.ignoreFragment(r))return;const o=i.parsing.end-i.loading.start-Math.min(i.loading.first-i.loading.start,this.bwEstimator.getEstimateTTFB());this.bwEstimator.sample(o,i.loaded),i.bwEstimate=this.getBwEstimate(),r.bitrateTest?this.bitrateTestDelay=o/1e3:this.bitrateTestDelay=0}ignoreFragment(t){return t.type!==pt.MAIN||t.sn==="initSegment"}clearTimer(){this.timer>-1&&(self.clearInterval(this.timer),this.timer=-1)}get firstAutoLevel(){const{maxAutoLevel:t,minAutoLevel:n}=this.hls,r=this.getBwEstimate(),s=this.hls.config.maxStarvationDelay,i=this.findBestLevel(r,n,t,0,s,1,1);if(i>-1)return i;const o=this.hls.firstLevel,a=Math.min(Math.max(o,n),t);return this.warn(`Could not find best starting auto level. Defaulting to first in playlist ${o} clamped to ${a}`),a}get forcedAutoLevel(){return this.nextAutoLevelKey?-1:this._nextAutoLevel}get nextAutoLevel(){const t=this.forcedAutoLevel,r=this.bwEstimator.canEstimate(),s=this.lastLoadedFragLevel>-1;if(t!==-1&&(!r||!s||this.nextAutoLevelKey===this.getAutoLevelKey()))return t;const i=r&&s?this.getNextABRAutoLevel():this.firstAutoLevel;if(t!==-1){const o=this.hls.levels;if(o.length>Math.max(t,i)&&o[t].loadError<=o[i].loadError)return t}return this._nextAutoLevel=i,this.nextAutoLevelKey=this.getAutoLevelKey(),i}getAutoLevelKey(){return`${this.getBwEstimate()}
102_${this.getStarvationDelay().toFixed(2)}`}getNextABRAutoLevel(){const{fragCurrent:t,partCurrent:n,hls:r}=this;if(r.levels.length<=1)return r.loadLevel;const{maxAutoLevel:s,config:i,minAutoLevel:o}=r,a=n?n.duration:t?t.duration:0,l=this.getBwEstimate(),u=this.getStarvationDelay();let c=i.abrBandWidthFactor,d=i.abrBandWidthUpFactor;if(u){const v=this.findBestLevel(l,o,s,u,0,c,d);if(v>=0)return this.rebufferNotice=-1,v}let f=a?Math.min(a,i.maxStarvationDelay):i.maxStarvationDelay;if(!u){const v=this.bitrateTestDelay;v&&(f=(a?Math.min(a,i.maxLoadingDelay):i.maxLoadingDelay)-v,this.info(`bitrate test took ${Math.round(1e3*v)}ms, set first fragment max fetchDuration to ${Math.round(1e3*f)} ms`),c=d=1)}const h=this.findBestLevel(l,o,s,u,f,c,d);if(this.rebufferNotice!==h&&(this.rebufferNotice=h,this.info(`${u?"rebuffering expected":"buffer is empty"}, optimal quality level ${h}`)),h>-1)return h;const p=r.levels[o],m=r.loadLevelObj;return m&&p?.bitrate<m.bitrate?o:r.loadLevel}getStarvationDelay(){const t=this.hls,n=t.media;if(!n)return 1/0;const r=n&&n.playbackRate!==0?Math.abs(n.playbackRate):1,s=t.mainForwardBufferInfo;return(s?s.len:0)/r}getBwEstimate(){return this.bwEstimator.canEstimate()?this.bwEstimator.getEstimate():this.hls.config.abrEwmaDefaultEstimate}findBestLevel(t,n,r,s,i,o,a){var l;const u=s+i,c=this.lastLoadedFragLevel,d=c===-1?this.hls.firstLevel:c,{fragCurrent:f,partCurrent:h}=this,{levels:p,allAudioTracks:m,loadLevel:v,config:x}=this.hls;if(p.length===1)return 0;const g=p[d],y=!!((l=this.hls.latestLevelDetails)!=null&&l.live),_=v===-1||c===-1;let E,w="SDR",T=g?.frameRate||0;const{audioPreference:C,videoPreference:I}=x,k=this.audioTracksByGroup||(this.audioTracksByGroup=C6(m));let $=-1;if(_){if(this.firstSelection!==-1)return this.firstSelection;const U=this.codecTiers||(this.codecTiers=_de(p,k,n,r)),N=bde(U,w,t,C,I),{codecSet:V,videoRanges:H,minFramerate:re,minBitrate:W,minIndex:X,preferHDR:Q}=N;$=X,E=V,w=Q?H[H.length-1]:H[0],T=re,t=Math.max(t,W),this.log(`picked start tier ${Ln(N)}`)}else E=g?.codecSet,w=g?.videoRange;const R=h?h.duration:f?f.duration:0,D=this.bwEstimator.getEstimateTTFB()/1e3,O=[];for(let U=r;U>=n;U--){var B;const N=p[U],V=U>d;if(!N)continue;if(x.useMediaCapabilities&&!N.supportedResult&&!N.supportedPromise){const ve=navigator.mediaCapabilities;typeof ve?.decodingInfo=="function"&&cde(N,k,w,T,t,C)?(N.supportedPromise=w6(N,k,ve,this.supportedCache),N.supportedPromise.then(oe=>{if(!this.hls)return;N.supportedResult=oe;const K=this.hls.levels,ee=K.indexOf(N);oe.error?this.warn(`MediaCapabilities decodingInfo error: "${oe.error}" for level ${ee} ${Ln(oe)}`):oe.supported?oe.decodingInfoResults.some(ae=>ae.smooth===!1||ae.powerEfficient===!1)&&this.log(`MediaCapabilities decodingInfo for level ${ee} not smooth or powerEfficient: ${Ln(oe)}`):(this.warn(`Unsupported MediaCapabilities decodingInfo result for level ${ee} ${Ln(oe)}`),ee>-1&&K.length>1&&(this.log(`Removing unsupported level ${ee}`),this.hls.removeLevel(ee),this.hls.loadLevel===-1&&(this.hls.nextLoadLevel=0)))}).catch(oe=>{this.warn(`Error handling MediaCapabilities decodingInfo: ${oe}`)})):N.supportedResult=S6}if((E&&N.codecSet!==E||w&&N.videoRange!==w||V&&T>N.frameRate||!V&&T>0&&T<N.frameRate||(B=N.supportedResult)!=null&&(B=B.decodingInfoResults)!=null&&B.some(ve=>ve.smooth===!1))&&(!_||U!==$)){O.push(U);continue}const H=N.details,re=(h?H?.partTarget:H?.averagetargetduration)||R;let W;V?W=a*t:W=o*t;const X=R&&s>=R*2&&i===0?N.averageBitrate:N.maxBitrate,Q=this.getTimeToLoadFrag(D,W,X*re,H===void 0);if(W>=X&&(U===c||N.loadError===0&&N.fragmentError===0)&&(Q<=D||!lt(Q)||y&&!this.bitrateTestDelay||Q<u)){const ve=this.forcedAutoLevel;return U!==v&&(ve===-1||ve!==v)&&(O.length&&this.trace(`Skipped level(s) ${O.join(",")} of ${r} max with CODECS and VIDEO-RANGE:"${p[O[0]].codecs}" ${p[O[0]].videoRange}; not compatible with "${E}" ${w}`),this.info(`switch candidate:${d}->${U} adjustedbw(${Math.round(W)})-bitrate=${Math.round(W-X)} ttfb:${D.toFixed(1)} avgDuration:${re.toFixed(1)} maxFetchDuration:${u.toFixed(1)} fetchDuration:${Q.toFixed(1)}
102 firstSelection:${_} codecSet:${N.codecSet} videoRange:${N.videoRange} hls.loadLevel:${v}`)),_&&(this.firstSelection=U),U}}return-1}set nextAutoLevel(t){const n=this.deriveNextAutoLevel(t);this._nextAutoLevel!==n&&(this.nextAutoLevelKey="",this._nextAutoLevel=n)}deriveNextAutoLevel(t){const{maxAutoLevel:n,minAutoLevel:r}=this.hls;return Math.min(Math.max(t,r),n)}}const A6={search:function(e,t){let n=0,r=e.length-1,s=null,i=null;for(;n<=r;){s=(n+r)/2|0,i=e[s];const o=t(i);if(o>0)n=s+1;else if(o<0)r=s-1;else return i}return null}};function Cde(e,t,n){if(t===null||!Array.isArray(e)||!e.length||!lt(t))return null;const r=e[0].programDateTime;if(t<(r||0))return null;const s=e[e.length-1].endProgramDateTime;if(t>=(s||0))return null;for(let i=0;i<e.length;++i){const o=e[i];if(kde(t,n,o))return o}return null}function Au(e,t,n=0,r=0,s=.005){let i=null;if(e){i=t[1+e.sn-t[0].sn]||null;const a=e.endDTS-n;a>0&&a<15e-7&&(n+=15e-7),i&&e.level!==i.level&&i.end<=e.end&&(i=t[2+e.sn-t[0].sn]||null)}else n===0&&t[0].start===0&&(i=t[0]);if(i&&((!e||e.level===i.level)&&hI(n,r,i)===0||Ade(i,e,Math.min(s,r))))return i;const o=A6.search(t,hI.bind(null,n,r));return o&&(o!==e||!i)?o:i}function Ade(e,t,n){if(t&&t.start===0&&t.level<e.level&&(t.endPTS||0)>0){const r=t.tagList.reduce((s,i)=>(i[0]==="INF"&&(s+=parseFloat(i[1])),s),n);return e.start<=r}return!1}function hI(e=0,t=0,n){if(n.start<=e&&n.start+n.duration>e)return 0;const r=Math.min(t,n.duration+(n.deltaPTS?n.deltaPTS:0));return n.start+n.duration-r<=e?1:n.start-r>e&&n.start?-1:0}function kde(e,t,n){const r=Math.min(t,n.duration+(n.deltaPTS?n.deltaPTS:0))*1e3;return(n.endProgramDateTime||0)-r>e}function k6(e,t,n){if(e&&e.startCC<=t&&e.endCC>=t){let r=e.fragments;const{fragmentHint:s}=e;s&&(r=r.concat(s));let i;return A6.search(r,o=>o.cc<t?1:o.cc>t?-1:(i=o,o.end<=n?1:o.start>n?-1:0)),i||null}return null}function hg(e){switch(e.details){case Re.FRAG_LOAD_TIMEOUT:case Re.KEY_LOAD_TIMEOUT:case Re.LEVEL_LOAD_TIMEOUT:case Re.MANIFEST_LOAD_TIMEOUT:return!0}return!1}function I6(e){return e.details.startsWith("key")}function L6(e){return I6(e)&&!!e.frag&&!e.frag.decryptdata}function pI(e,t){const n=hg(t);return e.default[`${n?"timeout":"error"}Retry`]}function OE(e,t){const n=e.backoff==="linear"?1:Math.pow(2,t);return Math.min(n*e.retryDelayMs,e.maxRetryDelayMs)}function mI(e){return Sn(Sn({},e),{errorRetry:null,timeoutRetry:null})}function pg(e,t,n,r){if(!e)return!1;const s=r?.code,i=t<e.maxNumRetry&&(Ide(s)||!!n);return e.shouldRetry?e.shouldRetry(e,t,n,r,i):i}function Ide(e){return _2(e)||!!e&&(e<400||e>499)}function _2(e){return e===0&&navigator.onLine===!1}var Vr={DoNothing:0,SendAlternateToPenaltyBox:2,RemoveAlternatePermanently:3,RetryRequest:5},ei={None:0,MoveAllAlternatesMatchingHost:1,MoveAllAlternatesMatchingHDCP:2,MoveAllAlternatesMatchingKey:4};class Lde extends Ki{constructor(t){super("error-controller",t.logger),this.hls=void 0,this.playlistError=0,this.hls=t,this.registerListeners()}registerListeners(){const t=this.hls;t.on(G.ERROR,this.onError,this),t.on(G.MANIFEST_LOADING,this.onManifestLoading,this),t.on(G.LEVEL_UPDATED,this.onLevelUpdated,this)}unregisterListeners(){const t=this.hls;t&&(t.off(G.ERROR,this.onError,this),t.off(G.ERROR,this.onErrorOut,this),t.off(G.MANIFEST_LOADING,this.onManifestLoading,this),t.off(G.LEVEL_UPDATED,this.onLevelUpdated,this))}destroy(){this.unregisterListeners(),this.hls=null}startLoad(t){}stopLoad(){this.playlistError=0}getVariantLevelIndex(t){return t?.type===pt.MAIN?t.level:this.getVariantIndex()}getVariantIndex(){var t;const n=this.hls,r=n.currentLevel;return(t=n.loadLevelObj)!=null&&t.details||r===-1?n.loadLevel:r}variantHasKey(t,n){if(t){var r;if((r=t.details)!=null&&r.hasKey(n))return!0;const s=t.audioGroups;if(s)return this.hls.allAudioTracks.filter(o=>s.indexOf(o.groupId)>=0).some(o=>{var a;return(a=o.details)==null?void 0:a.hasKey(n)})}return!1}onManifestLoading(){this.playlistError=0}onLevelUpdated(){this.playlistError=0}onError(t,n){var r;if(n.fatal)return;const s=this.hls,i=n.context;switch(n.details){case Re.FRAG_LOAD_ERROR:case Re.FRAG_LOAD_TIMEOUT:case Re.KEY_LOAD_ERROR:case Re.KEY_LOAD_TIMEOUT:n.errorAction=this.getFragRetryOrSwitchAction(n);return;case Re.FRAG_PARSING_ERROR:if((r=n.frag)!=null&&r.gap){n.errorAction=Sc();return}case Re.FRAG_GAP:case Re.FRAG_DECRYPT_ERROR:{n.errorAction=this.getFragRetryOrSwitchAction(n),n.errorAction.action=Vr.SendAlternateToPenaltyBox;return}case Re.LEVEL_EMPTY_ERROR:case Re.LEVEL_PARSING_ERROR:{var o;const l=n.parent===pt.MAIN?n.level:s.loadLevel;n.details===Re.LEVEL_EMPTY_ERROR&&((o=n.context)!=null&&(o=o.levelDetails)!=null&&o.live)?n.errorAction=this.getPlaylistRetryOrSwitchAction(n,l):(n.levelRetry=!1,n.errorAction=this.getLevelSwitchAction(n,l))}return;case Re.LEVEL_LOAD_ERROR:case Re.LEVEL_LOAD_TIMEOUT:typeof i?.level=="number"&&(n.errorAction=this.getPlaylistRetryOrSwitchAction(n,i.level));return;case Re.AUDIO_TRACK_LOAD_ERROR:case Re.AUDIO_TRACK_LOAD_TIMEOUT:case Re.SUBTITLE_LOAD_ERROR:case Re.SUBTITLE_TRACK_LOAD_TIMEOUT:if(i){const l=s.loadLevelObj;if(l&&(i.type===Yt.AUDIO_TRACK&&l.hasAudioGroup(i.groupId)||i.type===Yt.SUBTITLE_TRACK&&l.hasSubtitleGroup(i.groupId))){n.errorAction=this.getPlaylistRetryOrSwitchAction(n,s.loadLevel),n.errorAction.action=Vr.SendAlternateToPenaltyBox,n.errorAction.flags=ei.MoveAllAlternatesMatchingHost;return}}return;case Re.KEY_SYSTEM_STATUS_OUTPUT_RESTRICTED:n.errorAction={action:Vr.SendAlternateToPenaltyBox,flags:ei.MoveAllAlternatesMatchingHDCP};return;case Re.KEY_SYSTEM_SESSION_UPDATE_FAILED:case Re.KEY_SYSTEM_STATUS_INTERNAL_ERROR:case Re.KEY_SYSTEM_NO_SESSION:n.errorAction={action:Vr.SendAlternateToPenaltyBox,flags:ei.MoveAllAlternatesMatchingKey};return;
vendor: 11,011 bytes, line 102
102case Re.BUFFER_ADD_CODEC_ERROR:case Re.REMUX_ALLOC_ERROR:case Re.BUFFER_APPEND_ERROR:if(!n.errorAction){var a;n.errorAction=this.getLevelSwitchAction(n,(a=n.level)!=null?a:s.loadLevel)}return;case Re.INTERNAL_EXCEPTION:case Re.BUFFER_APPENDING_ERROR:case Re.BUFFER_FULL_ERROR:case Re.LEVEL_SWITCH_ERROR:case Re.BUFFER_STALLED_ERROR:case Re.BUFFER_SEEK_OVER_HOLE:case Re.BUFFER_NUDGE_ON_STALL:n.errorAction=Sc();return}n.type===bt.KEY_SYSTEM_ERROR&&(n.levelRetry=!1,n.errorAction=Sc())}getPlaylistRetryOrSwitchAction(t,n){const r=this.hls,s=pI(r.config.playlistLoadPolicy,t),i=this.playlistError++;if(pg(s,i,hg(t),t.response))return{action:Vr.RetryRequest,flags:ei.None,retryConfig:s,retryCount:i};const a=this.getLevelSwitchAction(t,n);return s&&(a.retryConfig=s,a.retryCount=i),a}getFragRetryOrSwitchAction(t){const n=this.hls,r=this.getVariantLevelIndex(t.frag),s=n.levels[r],{fragLoadPolicy:i,keyLoadPolicy:o}=n.config,a=pI(I6(t)?o:i,t),l=n.levels.reduce((c,d)=>c+d.fragmentError,0);if(s&&(t.details!==Re.FRAG_GAP&&s.fragmentError++,!L6(t)&&pg(a,l,hg(t),t.response)))return{action:Vr.RetryRequest,flags:ei.None,retryConfig:a,retryCount:l};const u=this.getLevelSwitchAction(t,r);return a&&(u.retryConfig=a,u.retryCount=l),u}getLevelSwitchAction(t,n){const r=this.hls;n==null&&(n=r.loadLevel);const s=this.hls.levels[n];if(s){var i,o;const u=t.details;s.loadError++,u===Re.BUFFER_APPEND_ERROR&&s.fragmentError++;let c=-1;const{levels:d,loadLevel:f,minAutoLevel:h,maxAutoLevel:p}=r;!r.autoLevelEnabled&&!r.config.preserveManualLevelOnError&&(r.loadLevel=-1);const m=(i=t.frag)==null?void 0:i.type,x=(m===pt.AUDIO&&u===Re.FRAG_PARSING_ERROR||t.sourceBufferName==="audio"&&(u===Re.BUFFER_ADD_CODEC_ERROR||u===Re.BUFFER_APPEND_ERROR))&&d.some(({audioCodec:w})=>s.audioCodec!==w),y=t.sourceBufferName==="video"&&(u===Re.BUFFER_ADD_CODEC_ERROR||u===Re.BUFFER_APPEND_ERROR)&&d.some(({codecSet:w,audioCodec:T})=>s.codecSet!==w&&s.audioCodec===T),{type:_,groupId:E}=(o=t.context)!=null?o:{};for(let w=d.length;w--;){const T=(w+f)%d.length;if(T!==f&&T>=h&&T<=p&&d[T].loadError===0){var a,l;const C=d[T];if(u===Re.FRAG_GAP&&m===pt.MAIN&&t.frag){const I=d[T].details;if(I){const k=Au(t.frag,I.fragments,t.frag.start);if(k!=null&&k.gap)continue}}else{if(_===Yt.AUDIO_TRACK&&C.hasAudioGroup(E)||_===Yt.SUBTITLE_TRACK&&C.hasSubtitleGroup(E))continue;if(m===pt.AUDIO&&(a=s.audioGroups)!=null&&a.some(I=>C.hasAudioGroup(I))||m===pt.SUBTITLE&&(l=s.subtitleGroups)!=null&&l.some(I=>C.hasSubtitleGroup(I))||x&&s.audioCodec===C.audioCodec||y&&s.codecSet===C.codecSet||!x&&s.codecSet!==C.codecSet)continue}c=T;break}}if(c>-1&&r.loadLevel!==c)return t.levelRetry=!0,this.playlistError=0,{action:Vr.SendAlternateToPenaltyBox,flags:ei.None,nextAutoLevel:c}}return{action:Vr.SendAlternateToPenaltyBox,flags:ei.MoveAllAlternatesMatchingHost}}onErrorOut(t,n){var r;switch((r=n.errorAction)==null?void 0:r.action){case Vr.DoNothing:break;case Vr.SendAlternateToPenaltyBox:this.sendAlternateToPenaltyBox(n),!n.errorAction.resolved&&n.details!==Re.FRAG_GAP?n.fatal=!0:/MediaSource readyState: ended/.test(n.error.message)&&(this.warn(`MediaSource ended after "${n.sourceBufferName}" sourceBuffer append error. Attempting to recover from media error.`),this.hls.recoverMediaError());break}if(n.fatal){this.hls.stopLoad();return}}sendAlternateToPenaltyBox(t){const n=this.hls,r=t.errorAction;if(!r)return;const{flags:s}=r,i=r.nextAutoLevel;switch(s){case ei.None:this.switchLevel(t,i);break;case ei.MoveAllAlternatesMatchingHDCP:{const l=this.getVariantLevelIndex(t.frag),u=n.levels[l],c=u?.attrs["HDCP-LEVEL"];if(r.hdcpLevel=c,c==="NONE")this.warn("HDCP policy resticted output with HDCP-LEVEL=NONE");else if(c){n.maxHdcpLevel=b2[b2.indexOf(c)-1],r.resolved=!0,this.warn(`Restricting playback to HDCP-LEVEL of "${n.maxHdcpLevel}" or lower`);break}}case ei.MoveAllAlternatesMatchingKey:{const l=t.decryptdata;if(l){const u=this.hls.levels,c=u.length;for(let f=c;f--;)if(this.variantHasKey(u[f],l)){var o,a;this.log(`Banned key found in level ${f} (${u[f].bitrate}bps) or audio group "${(o=u[f].audioGroups)==null?void 0:o.join(",")}" (${(a=t.frag)==null?void 0:a.type} fragment) ${_s(l.keyId||[])}`),u[f].fragmentError++,u[f].loadError++,this.log(`Removing level ${f} with key error (${t.error})`),this.hls.removeLevel(f)}const d=t.frag;if(this.hls.levels.length<c)r.resolved=!0;else if(d&&d.type!==pt.MAIN){const f=d.decryptdata;f&&!l.matches(f)&&(r.resolved=!0)}}break}}r.resolved||this.switchLevel(t,i)}switchLevel(t,n){if(n!==void 0&&t.errorAction&&(this.warn(`switching to level ${n} after ${t.details}`),this.hls.nextAutoLevel=n,t.errorAction.resolved=!0,this.hls.nextLoadLevel=this.hls.nextAutoLevel,t.details===Re.BUFFER_ADD_CODEC_ERROR&&t.mimeType&&t.sourceBufferName!=="audiovideo")){const r=x2(t.mimeType),s=this.hls.levels;for(let i=s.length;i--;)s[i][`${t.sourceBufferName}Codec`]===r&&(this.log(`Removing level ${i} for ${t.details} ("${r}" not supported)`),this.hls.removeLevel(i))}}}function Sc(e){const t={action:Vr.DoNothing,flags:ei.None};return e&&(t.resolved=!0),t}var br={NOT_LOADED:"NOT_LOADED",APPENDING:"APPENDING",PARTIAL:"PARTIAL",OK:"OK"};class Dde{constructor(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()}_registerListeners(){const{hls:t}=this;t&&(t.on(G.MANIFEST_LOADING,this.onManifestLoading,this),t.on(G.BUFFER_APPENDED,this.onBufferAppended,this),t.on(G.FRAG_BUFFERED,this.onFragBuffered,this),t.on(G.FRAG_LOADED,this.onFragLoaded,this))}_unregisterListeners(){const{hls:t}=this;t&&(t.off(G.MANIFEST_LOADING,this.onManifestLoading,this),t.off(G.BUFFER_APPENDED,this.onBufferAppended,this),t.off(G.FRAG_BUFFERED,this.onFragBuffered,this),t.off(G.FRAG_LOADED,this.onFragLoaded,this))}destroy(){this._unregisterListeners(),this.hls=this.fragments=this.activePartLists=this.endListFragments=this.timeRanges=null}getAppendedFrag(t,n){const r=this.activePartLists[n];if(r)for(let s=r.length;s--;){const i=r[s];if(!i)break;if(i.start<=t&&t<=i.end&&i.loaded)return i}return this.getBufferedFrag(t,n)}getBufferedFrag(t,n){return this.getFragAtPos(t,n,!0)}getFragAtPos(t,n,r){const{fragments:s}=this,i=Object.keys(s);for(let o=i.length;o--;){const a=s[i[o]];if(a?.body.type===n&&(!r||a.buffered)){const l=a.body;if(l.start<=t&&t<=l.end)return l}}return null}detectEvictedFragments(t,n,r,s,i){this.timeRanges&&(this.timeRanges[t]=n);const o=s?.fragment.sn||-1;Object.keys(this.fragments).forEach(a=>{const l=this.fragments[a];if(!l||o>=l.body.sn)return;if(!l.buffered&&(!l.loaded||i)){l.body.type===r&&this.removeFragment(l.body);return}const u=l.range[t];if(u){if(u.time.length===0){this.removeFragment(l.body);return}u.time.some(c=>{const d=!this.isTimeBuffered(c.startPTS,c.endPTS,n);return d&&this.removeFragment(l.body),d})}})}detectPartialFragments(t){const n=this.timeRanges;if(!n||t.frag.sn==="initSegment")return;const r=t.frag,s=ec(r),i=this.fragments[s];if(!i||i.buffered&&r.gap)return;const o=!r.relurl;Object.keys(n).forEach(a=>{const l=r.elementaryStreams[a];if(!l)return;const u=n[a],c=o||l.partial===!0;i.range[a]=this.getBufferedTimes(r,t.part,c,u)}),i.loaded=null,Object.keys(i.range).length?(i.buffered=!0,(i.body.endList=r.endList||i.body.endList)&&(this.endListFragments[i.body.type]=i),ep(i)||this.removeParts(r.sn-1,r.type)):this.removeFragment(i.body)}removeParts(t,n){const r=this.activePartLists[n];r&&(this.activePartLists[n]=vI(r,s=>s.fragment.sn>=t))}fragBuffered(t,n){const r=ec(t);let s=this.fragments[r];!s&&n&&(s=this.fragments[r]={body:t,appendedPTS:null,loaded:null,buffered:!1,range:Object.create(null)},t.gap&&(this.hasGaps=!0)),s&&(s.loaded=null,s.buffered=!0)}getBufferedTimes(t,n,r,s){const i={time:[],partial:r},o=t.start,a=t.end,l=t.minEndPTS||a,u=t.maxStartPTS||o;for(let c=0;c<s.length;c++){const d=s.start(c)-this.bufferPadding,f=s.end(c)+this.bufferPadding;if(u>=d&&l<=f){i.time.push({startPTS:Math.max(o,s.start(c)),endPTS:Math.min(a,s.end(c))});break}else if(o<f&&a>d){const h=Math.max(o,s.start(c)),p=Math.min(a,s.end(c));p>h&&(i.partial=!0,i.time.push({startPTS:h,endPTS:p}))}else if(a<=d)break}return i}getPartialFragment(t){let n=null,r,s,i,o=0;const{bufferPadding:a,fragments:l}=this;return Object.keys(l).forEach(u=>{const c=l[u];c&&ep(c)&&(s=c.body.start-a,i=c.body.end+a,t>=s&&t<=i&&(r=Math.min(t-s,i-t),o<=r&&(n=c.body,o=r)))}),n}isEndListAppended(t){const n=this.endListFragments[t];return n!==void 0&&(n.buffered||ep(n))}getState(t){const n=ec(t),r=this.fragments[n];return r?r.buffered?ep(r)?br.PARTIAL:br.OK:br.APPENDING:br.NOT_LOADED}isTimeBuffered(t,n,r){let s,i;for(let o=0;o<r.length;o++){if(s=r.start(o)-this.bufferPadding,i=r.end(o)+this.bufferPadding,t>=s&&n<=i)return!0;if(n<=s)return!1}return!1}onManifestLoading(){this.removeAllFragments()}onFragLoaded(t,n){if(n.frag.sn==="initSegment"||n.frag.bitrateTest)return;const r=n.frag,s=n.part?null:n,i=ec(r);this.fragments[i]={body:r,appendedPTS:null,loaded:s,buffered:!1,range:Object.create(null)}}onBufferAppended(t,n){const{frag:r,part:s,timeRanges:i,type:o}=n;if(r.sn==="initSegment")return;const a=r.type;if(s){let u=this.activePartLists[a];u||(this.activePartLists[a]=u=[]),u.push(s)}this.timeRanges=i;const l=i[o];this.detectEvictedFragments(o,l,a,s)}onFragBuffered(t,n){this.detectPartialFragments(n)}hasFragment(t){const n=ec(t);return!!this.fragments[n]}hasFragments(t){const{fragments:n}=this,r=Object.keys(n);if(!t)return r.length>0;for(let s=r.length;s--;){const i=n[r[s]];if(i?.body.type===t)return!0}return!1}hasParts(t){var n;return!!((n=this.activePartLists[t])!=null&&n.length)}removeFragmentsInRange(t,n,r,s,i){s&&!this.hasGaps||Object.keys(this.fragments).forEach(o=>{const a=this.fragments[o];if(!a)return;const l=a.body;l.type!==r||s&&!l.gap||l.start<n&&l.end>t&&(a.buffered||i)&&this.removeFragment(l)})}removeFragment(t){const n=ec(t);t.clearElementaryStreamInfo();const r=this.activePartLists[t.type];if(r){const s=t.sn;this.activePartLists[t.type]=vI(r,i=>i.fragment.sn!==s)}delete this.fragments[n],t.endList&&delete this.endListFragments[t.type]}removeAllFragments(){var t;this.fragments=Object.create(null),this.endListFragments=Object.create(null),this.activePartLists=Object.create(null),this.hasGaps=!1;const n=(t=this.hls)==null||(t=t.latestLevelDetails)==null?void 0:t.partList;n&&n.forEach(r=>r.clearElementaryStreamInfo())}}function ep(e){var t,n,r;return e.buffered&&!!(e.body.gap||(t=e.range.video)!=null&&t.partial||(n=e.range.audio)!=null&&n.partial||(r=e.range.audiovideo)!=null&&r.partial)}function ec(e){return`${e.type}_${e.level}_${e.sn}`}function vI(e,t){return e.filter(n=>{const r=t(n);return r||n.clearElementaryStreamInfo(),r})}var bl={cbc:0,ctr:1};class Pde{constructor(t,n,r){this.subtle=void 0,this.aesIV=void 0,this.aesMode=void 0,this.subtle=t,this.aesIV=n,this.aesMode=r}decrypt(t,n){switch(this.aesMode){case bl.cbc:return this.subtle.decrypt({
vendor: 19,598 bytes, line 102
102name:"AES-CBC",iv:this.aesIV},n,t);case bl.ctr:return this.subtle.decrypt({name:"AES-CTR",counter:this.aesIV,length:64},n,t);default:throw new Error(`[AESCrypto] invalid aes mode ${this.aesMode}`)}}}function Rde(e){const t=e.byteLength,n=t&&new DataView(e.buffer).getUint8(t-1);return n?e.slice(0,t-n):e}class Ode{constructor(){this.rcon=[0,1,2,4,8,16,32,64,128,27,54],this.subMix=[new Uint32Array(256),new Uint32Array(256),new Uint32Array(256),new Uint32Array(256)],this.invSubMix=[new Uint32Array(256),new Uint32Array(256),new Uint32Array(256),new Uint32Array(256)],this.sBox=new Uint32Array(256),this.invSBox=new Uint32Array(256),this.key=new Uint32Array(0),this.ksRows=0,this.keySize=0,this.keySchedule=void 0,this.invKeySchedule=void 0,this.initTable()}uint8ArrayToUint32Array_(t){const n=new DataView(t),r=new Uint32Array(4);for(let s=0;s<4;s++)r[s]=n.getUint32(s*4);return r}initTable(){const t=this.sBox,n=this.invSBox,r=this.subMix,s=r[0],i=r[1],o=r[2],a=r[3],l=this.invSubMix,u=l[0],c=l[1],d=l[2],f=l[3],h=new Uint32Array(256);let p=0,m=0,v=0;for(v=0;v<256;v++)v<128?h[v]=v<<1:h[v]=v<<1^283;for(v=0;v<256;v++){let x=m^m<<1^m<<2^m<<3^m<<4;x=x>>>8^x&255^99,t[p]=x,n[x]=p;const g=h[p],y=h[g],_=h[y];let E=h[x]*257^x*16843008;s[p]=E<<24|E>>>8,i[p]=E<<16|E>>>16,o[p]=E<<8|E>>>24,a[p]=E,E=_*16843009^y*65537^g*257^p*16843008,u[x]=E<<24|E>>>8,c[x]=E<<16|E>>>16,d[x]=E<<8|E>>>24,f[x]=E,p?(p=g^h[h[h[_^g]]],m^=h[h[m]]):p=m=1}}expandKey(t){const n=this.uint8ArrayToUint32Array_(t);let r=!0,s=0;for(;s<n.length&&r;)r=n[s]===this.key[s],s++;if(r)return;this.key=n;const i=this.keySize=n.length;if(i!==4&&i!==6&&i!==8)throw new Error("Invalid aes key size="+i);const o=this.ksRows=(i+6+1)*4;let a,l;const u=this.keySchedule=new Uint32Array(o),c=this.invKeySchedule=new Uint32Array(o),d=this.sBox,f=this.rcon,h=this.invSubMix,p=h[0],m=h[1],v=h[2],x=h[3];let g,y;for(a=0;a<o;a++){if(a<i){g=u[a]=n[a];continue}y=g,a%i===0?(y=y<<8|y>>>24,y=d[y>>>24]<<24|d[y>>>16&255]<<16|d[y>>>8&255]<<8|d[y&255],y^=f[a/i|0]<<24):i>6&&a%i===4&&(y=d[y>>>24]<<24|d[y>>>16&255]<<16|d[y>>>8&255]<<8|d[y&255]),u[a]=g=(u[a-i]^y)>>>0}for(l=0;l<o;l++)a=o-l,l&3?y=u[a]:y=u[a-4],l<4||a<=4?c[l]=y:c[l]=p[d[y>>>24]]^m[d[y>>>16&255]]^v[d[y>>>8&255]]^x[d[y&255]],c[l]=c[l]>>>0}networkToHostOrderSwap(t){return t<<24|(t&65280)<<8|(t&16711680)>>8|t>>>24}decrypt(t,n,r){const s=this.keySize+6,i=this.invKeySchedule,o=this.invSBox,a=this.invSubMix,l=a[0],u=a[1],c=a[2],d=a[3],f=this.uint8ArrayToUint32Array_(r);let h=f[0],p=f[1],m=f[2],v=f[3];const x=new Int32Array(t),g=new Int32Array(x.length);let y,_,E,w,T,C,I,k,$,R,D,O,B,U;const N=this.networkToHostOrderSwap;for(;n<x.length;){for($=N(x[n]),R=N(x[n+1]),D=N(x[n+2]),O=N(x[n+3]),T=$^i[0],C=O^i[1],I=D^i[2],k=R^i[3],B=4,U=1;U<s;U++)y=l[T>>>24]^u[C>>16&255]^c[I>>8&255]^d[k&255]^i[B],_=l[C>>>24]^u[I>>16&255]^c[k>>8&255]^d[T&255]^i[B+1],E=l[I>>>24]^u[k>>16&255]^c[T>>8&255]^d[C&255]^i[B+2],w=l[k>>>24]^u[T>>16&255]^c[C>>8&255]^d[I&255]^i[B+3],T=y,C=_,I=E,k=w,B=B+4;y=o[T>>>24]<<24^o[C>>16&255]<<16^o[I>>8&255]<<8^o[k&255]^i[B],_=o[C>>>24]<<24^o[I>>16&255]<<16^o[k>>8&255]<<8^o[T&255]^i[B+1],E=o[I>>>24]<<24^o[k>>16&255]<<16^o[T>>8&255]<<8^o[C&255]^i[B+2],w=o[k>>>24]<<24^o[T>>16&255]<<16^o[C>>8&255]<<8^o[I&255]^i[B+3],g[n]=N(y^h),g[n+1]=N(w^p),g[n+2]=N(E^m),g[n+3]=N(_^v),h=$,p=R,m=D,v=O,n=n+4}return g.buffer}}class $de{constructor(t,n,r){this.subtle=void 0,this.key=void 0,this.aesMode=void 0,this.subtle=t,this.key=n,this.aesMode=r}expandKey(){const t=Mde(this.aesMode);return this.subtle.importKey("raw",this.key,{name:t},!1,["encrypt","decrypt"])}}function Mde(e){switch(e){case bl.cbc:return"AES-CBC";case bl.ctr:return"AES-CTR";default:throw new Error(`[FastAESKey] invalid aes mode ${e}`)}}const Fde=16;class $E{constructor(t,{removePKCS7Padding:n=!0}={}){if(this.logEnabled=!0,this.removePKCS7Padding=void 0,this.subtle=null,this.softwareDecrypter=null,this.key=null,this.fastAesKey=null,this.remainderData=null,this.currentIV=null,this.currentResult=null,this.useSoftware=void 0,this.enableSoftwareAES=void 0,this.enableSoftwareAES=t.enableSoftwareAES,this.removePKCS7Padding=n,n)try{const r=self.crypto;r&&(this.subtle=r.subtle||r.webkitSubtle)}catch{}this.useSoftware=!this.subtle}destroy(){this.subtle=null,this.softwareDecrypter=null,this.key=null,this.fastAesKey=null,this.remainderData=null,this.currentIV=null,this.currentResult=null}isSync(){return this.useSoftware}flush(){const{currentResult:t,remainderData:n}=this;if(!t||n)return this.reset(),null;const r=new Uint8Array(t);return this.reset(),this.removePKCS7Padding?Rde(r):r}reset(){this.currentResult=null,this.currentIV=null,this.remainderData=null,this.softwareDecrypter&&(this.softwareDecrypter=null)}decrypt(t,n,r,s){return this.useSoftware?new Promise((i,o)=>{const a=ArrayBuffer.isView(t)?t:new Uint8Array(t);this.softwareDecrypt(a,n,r,s);const l=this.flush();l?i(l.buffer):o(new Error("[softwareDecrypt] Failed to decrypt data"))}):this.webCryptoDecrypt(new Uint8Array(t),n,r,s)}softwareDecrypt(t,n,r,s){const{currentIV:i,currentResult:o,remainderData:a}=this;if(s!==bl.cbc||n.byteLength!==16)return En.warn("SoftwareDecrypt: can only handle AES-128-CBC"),null;this.logOnce("JS AES decrypt"),a&&(t=ji(a,t),this.remainderData=null);const l=this.getValidChunk(t);if(!l.length)return null;i&&(r=i);let u=this.softwareDecrypter;u||(u=this.softwareDecrypter=new Ode),u.expandKey(n);const c=o;return this.currentResult=u.decrypt(l.buffer,0,r),this.currentIV=l.slice(-16).buffer,c||null}webCryptoDecrypt(t,n,r,s){if(this.key!==n||!this.fastAesKey){if(!this.subtle)return Promise.resolve(this.onWebCryptoError(t,n,r,s));this.key=n,this.fastAesKey=new $de(this.subtle,n,s)}return this.fastAesKey.expandKey().then(i=>this.subtle?(this.logOnce("WebCrypto AES decrypt"),new Pde(this.subtle,new Uint8Array(r),s).decrypt(t.buffer,i)):Promise.reject(new Error("web crypto not initialized"))).catch(i=>(En.warn(`[decrypter]: WebCrypto Error, disable WebCrypto API, ${i.name}: ${i.message}`),this.onWebCryptoError(t,n,r,s)))}onWebCryptoError(t,n,r,s){const i=this.enableSoftwareAES;if(i){this.useSoftware=!0,this.logEnabled=!0,this.softwareDecrypt(t,n,r,s);const o=this.flush();if(o)return o.buffer}throw new Error("WebCrypto"+(i?" and softwareDecrypt":"")+": failed to decrypt data")}getValidChunk(t){let n=t;const r=t.length-t.length%Fde;return r!==t.length&&(n=t.slice(0,r),this.remainderData=t.slice(r)),n}logOnce(t){this.logEnabled&&(En.log(`[decrypter]: ${t}`),this.logEnabled=!1)}}const gI=Math.pow(2,17);class Bde{constructor(t){this.config=void 0,this.loader=null,this.partLoadTimeout=-1,this.config=t}destroy(){this.loader&&(this.loader.destroy(),this.loader=null)}abort(){this.loader&&this.loader.abort()}load(t,n){const r=t.url;if(!r)return Promise.reject(new ia({type:bt.NETWORK_ERROR,details:Re.FRAG_LOAD_ERROR,fatal:!1,frag:t,error:new Error(`Fragment does not have a ${r?"part list":"url"}`),networkDetails:null}));this.abort();const s=this.config,i=s.fLoader,o=s.loader;return new Promise((a,l)=>{if(this.loader&&this.loader.destroy(),t.gap)if(t.tagList.some(p=>p[0]==="GAP")){l(xI(t));return}else t.gap=!1;const u=this.loader=i?new i(s):new o(s),c=yI(t);t.loader=u;const d=mI(s.fragLoadPolicy.default),f={loadPolicy:d,timeout:d.maxLoadTimeMs,maxRetry:0,retryDelay:0,maxRetryDelay:0,highWaterMark:t.sn==="initSegment"?1/0:gI};t.stats=u.stats;const h={onSuccess:(p,m,v,x)=>{this.resetLoader(t,u);let g=p.data;v.resetIV&&t.decryptdata&&(t.decryptdata.iv=new Uint8Array(g.slice(0,16)),g=g.slice(16)),a({frag:t,part:null,payload:g,networkDetails:x})},onError:(p,m,v,x)=>{this.resetLoader(t,u),l(new ia({type:bt.NETWORK_ERROR,details:Re.FRAG_LOAD_ERROR,fatal:!1,frag:t,response:Sn({url:r,data:void 0},p),error:new Error(`HTTP Error ${p.code} ${p.text}`),networkDetails:v,stats:x}))},onAbort:(p,m,v)=>{this.resetLoader(t,u),l(new ia({type:bt.NETWORK_ERROR,details:Re.INTERNAL_ABORTED,fatal:!1,frag:t,error:new Error("Aborted"),networkDetails:v,stats:p}))},onTimeout:(p,m,v)=>{this.resetLoader(t,u),l(new ia({type:bt.NETWORK_ERROR,details:Re.FRAG_LOAD_TIMEOUT,fatal:!1,frag:t,error:new Error(`Timeout after ${f.timeout}ms`),networkDetails:v,stats:p}))}};n&&(h.onProgress=(p,m,v,x)=>n({frag:t,part:null,payload:v,networkDetails:x})),u.load(c,f,h)})}loadPart(t,n,r){this.abort();const s=this.config,i=s.fLoader,o=s.loader;return new Promise((a,l)=>{if(this.loader&&this.loader.destroy(),t.gap||n.gap){l(xI(t,n));return}const u=this.loader=i?new i(s):new o(s),c=yI(t,n);t.loader=u;const d=mI(s.fragLoadPolicy.default),f={loadPolicy:d,timeout:d.maxLoadTimeMs,maxRetry:0,retryDelay:0,maxRetryDelay:0,highWaterMark:gI};n.stats=u.stats,u.load(c,f,{onSuccess:(h,p,m,v)=>{this.resetLoader(t,u),this.updateStatsFromPart(t,n);const x={frag:t,part:n,payload:h.data,networkDetails:v};r(x),a(x)},onError:(h,p,m,v)=>{this.resetLoader(t,u),l(new ia({type:bt.NETWORK_ERROR,details:Re.FRAG_LOAD_ERROR,fatal:!1,frag:t,part:n,response:Sn({url:c.url,data:void 0},h),error:new Error(`HTTP Error ${h.code} ${h.text}`),networkDetails:m,stats:v}))},onAbort:(h,p,m)=>{t.stats.aborted=n.stats.aborted,this.resetLoader(t,u),l(new ia({type:bt.NETWORK_ERROR,details:Re.INTERNAL_ABORTED,fatal:!1,frag:t,part:n,error:new Error("Aborted"),networkDetails:m,stats:h}))},onTimeout:(h,p,m)=>{this.resetLoader(t,u),l(new ia({type:bt.NETWORK_ERROR,details:Re.FRAG_LOAD_TIMEOUT,fatal:!1,frag:t,part:n,error:new Error(`Timeout after ${f.timeout}ms`),networkDetails:m,stats:h}))}})})}updateStatsFromPart(t,n){const r=t.stats,s=n.stats,i=s.total;if(r.loaded+=s.loaded,i){const l=Math.round(t.duration/n.duration),u=Math.min(Math.round(r.loaded/i),l),d=(l-u)*Math.round(r.loaded/u);r.total=r.loaded+d}else r.total=Math.max(r.loaded,r.total);const o=r.loading,a=s.loading;o.start?o.first+=a.first-a.start:(o.start=a.start,o.first=a.first),o.end=a.end}resetLoader(t,n){t.loader=null,this.loader===n&&(self.clearTimeout(this.partLoadTimeout),this.loader=null),n.destroy()}}function yI(e,t=null){const n=t||e,r={frag:e,part:t,responseType:"arraybuffer",url:n.url,headers:{},rangeStart:0,rangeEnd:0},s=n.byteRangeStartOffset,i=n.byteRangeEndOffset;if(lt(s)&&lt(i)){var o;let a=s,l=i;if(e.sn==="initSegment"&&Nde((o=e.decryptdata)==null?void 0:o.method)){const u=i-s;u%16&&(l=i+(16-u%16)),s!==0&&(r.resetIV=!0,a=s-16)}r.rangeStart=a,r.rangeEnd=l}return r}function xI(e,t){const n=new Error(`GAP ${e.gap?"tag":"attribute"} found`),r={type:bt.MEDIA_ERROR,details:Re.FRAG_GAP,fatal:!1,frag:e,error:n,networkDetails:null};return t&&(r.part=t),(t||e).stats.aborted=!0,new ia(r)}function Nde(e){return e==="AES-128"||e==="AES-256"}class ia extends Error{constructor(t){super(t.error.message),this.data=void 0,this.data=t}}class D6 extends Ki{constructor(t,n){super(t,n),this._boundTick=void 0,this._tickTimer=null,this._tickInterval=null,this._tickCallCount=0,this._boundTick=this.tick.bind(this)}destroy(){this.onHandlerDestroying(),this.onHandlerDestroyed()}onHandlerDestroying(){this.clearNextTick(),this.clearInterval()}onHandlerDestroyed(){}hasInterval(){return!!this._tickInterval}hasNextTick(){return!!this._tickTimer}setInterval(t){return this._tickInterval?!1:(this._tickCallCount=0,this._tickInterval=self.setInterval(this._boundTick,t),!0)}clearInterval(){return this._tickInterval?(self.clearInterval(this._tickInterval),this._tickInterval=null,!0):!1}clearNextTick(){return this._tickTimer?(self.clearTimeout(this._tickTimer),this._tickTimer=null,!0):!1}tick(){this._tickCallCount++,this._tickCallCount===1&&(this.doTick(),this._tickCallCount>1&&this.tickImmediate(),this._tickCallCount=0)}tickImmediate(){this.clearNextTick(),this._tickTimer=self.setTimeout(this._boundTick,0)}doTick(){}}class ME{constructor(t,n,r,s=0,i=-1,o=!1){this.level=void 0,this.sn=void 0,this.part=void 0,this.id=void 0,this.size=void 0,this.partial=void 0,this.transmuxing=tp(),this.buffering={audio:tp(),video:tp(),audiovideo:tp()},this.level=t,this.sn=n,this.id=r,this.size=s,this.part=i,this.partial=o}}function tp(){return{start:0,executeStart:0,executeEnd:0,end:0}}const bI={length:0,start:()=>0,end:()=>0};class Ft{static isBuffered(t,n){if(t){const r=Ft.getBuffered(t);for(let s=r.length;s--;)if(n>=r.start(s)&&n<=r.end(s))return!0}return!1}static bufferedRanges(t){if(t){const n=Ft.getBuffered(t);return Ft.timeRangesToArray(n)}return[]}static timeRangesToArray(t){const n=[];for(let r=0;r<t.length;r++)n.push({start:t.start(r),end:t.end(r)});return n}static bufferInfo(t,n,r){if(t){const s=Ft.bufferedRanges(t);if(s.length)return Ft.bufferedInfo(s,n,r)}return{len:0,start:n,end:n,bufferedIndex:-1}}static bufferedInfo(t,n,r){n=Math.max(0,n),t.length>1&&t.sort((c,d)=>c.start-d.start||d.end-c.end);let s=-1,i=[];if(r)for(let c=0;c<t.length;c++){n>=t[c].start&&n<=t[c].end&&(s=c);const d=i.length;if(d){const f=i[d-1].end;t[c].start-f<r?t[c].end>f&&(i[d-1].end=t[c].end):i.push(t[c])}else i.push(t[c])}else i=t;let o=0,a,l=n,u=n;for(let c=0;c<i.length;c++){const d=i[c].start,f=i[c].end;if(s===-1&&n>=d&&n<=f&&(s=c),n+r>=d&&n<f)l=d,u=f,o=u-n;else if(n+r<d){a=d;break}}return{len:o,start:l||0,end:u||0,nextStart:a,buffered:t,bufferedIndex:s}}static getBuffered(t){try{return t.buffered||bI}catch(n){return En.log("failed to get media.buffered",n),bI}}}const P6=/\{\$([a-zA-Z0-9-_]+)\}/g;function _I(e){return P6.test(e)}function S2(e,t){if(e.variableList!==null||e.hasVariableRefs){const n=e.variableList;return t.replace(P6,r=>{const s=r.substring(2,r.length-1),i=n?.[s];return i===void 0?(e.playlistParsingError||(e.playlistParsingError=new Error(`Missing preceding EXT-X-DEFINE tag for Variable Reference: "${s}"`)),r):i})}return t}function SI(e,t,n){let r=e.variableList;r||(e.variableList=r={});let s,i;if("QUERYPARAM"in t){s=t.QUERYPARAM;try{const o=new self.URL(n).searchParams;if(o.has(s))i=o.get(s);else throw new Error(`"${s}" does not match any query parameter in URI: "${n}"`)}catch(o){e.playlistParsingError||(e.playlistParsingError=new Error(`EXT-X-DEFINE QUERYPARAM: ${o.message}`))}}else s=t.NAME,i=t.VALUE;s in r?e.playlistParsingError||(e.playlistParsingError=new Error(`EXT-X-DEFINE duplicate Variable Name declarations: "${s}"`)):r[s]=i||""}function Vde(e,t,n){const r=t.IMPORT;if(n&&r in n){let s=e.variableList;s||(e.variableList=s={}),s[r]=n[r]}else e.playlistParsingError||(e.playlistParsingError=new Error(`EXT-X-DEFINE IMPORT attribute not found in Multivariant Playlist: "${r}"`))}const Ude=/^(\d+)x(\d+)$/,EI=/(.+?)=(".*?"|.*?)(?:,|$)/g;class Hn{constructor(t,n){typeof t=="string"&&(t=Hn.parseAttrList(t,n)),kn(this,t)}get clientAttrs(){return Object.keys(this).filter(t=>t.substring(0,2)==="X-")}decimalInteger(t){const n=parseInt(this[t],10);return n>Number.MAX_SAFE_INTEGER?1/0:n}hexadecimalInteger(t){if(this[t]){let n=(this[t]||"0x").slice(2);n=(n.length&1?"0":"")+n;const r=new Uint8Array(n.length/2);for(let s=0;s<n.length/2;s++)r[s]=parseInt(n.slice(s*2,s*2+2),16);return r}return null}hexadecimalIntegerAsNumber(t){const n=parseInt(this[t],16);return n>Number.MAX_SAFE_INTEGER?1/0:n}decimalFloatingPoint(t){return parseFloat(this[t])}optionalFloat(t,n){const r=this[t];return r?parseFloat(r):n}enumeratedString(t){return this[t]}enumeratedStringList(t,n){const r=this[t];return(r?r.split(/[ ,]+/):[]).reduce((s,i)=>(s[i.toLowerCase()]=!0,s),n)}bool(t){return this[t]==="YES"}decimalResolution(t){const n=Ude.exec(this[t]);if(n!==null)return{width:parseInt(n[1],10),height:parseInt(n[2],10)}}static parseAttrList(t,n){let r;const s={};for(EI.lastIndex=0;(r=EI.exec(t))!==null;){const o=r[1].trim();let a=r[2];const l=a.indexOf('"')===0&&a.lastIndexOf('"')===a.length-1;let u=!1;if(l)a=a.slice(1,-1);else switch(o){case"IV":case"SCTE35-CMD":case"SCTE35-IN":case"SCTE35-OUT":u=!0}if(n&&(l||u))a=S2(n,a);else if(!u&&!l)switch(o){case"CLOSED-CAPTIONS":if(a==="NONE")break;case"ALLOWED-CPC":case"CLASS":case"ASSOC-LANGUAGE":case"AUDIO":case"BYTERANGE":case"CHANNELS":case"CHARACTERISTICS":case"CODECS":case"DATA-ID":case"END-DATE":case"GROUP-ID":case"ID":case"IMPORT":case"INSTREAM-ID":case"KEYFORMAT":case"KEYFORMATVERSIONS":case"LANGUAGE":case"NAME":case"PATHWAY-ID":case"QUERYPARAM":case"RECENTLY-REMOVED-DATERANGES":case"SERVER-URI":case"STABLE-RENDITION-ID":case"STABLE-VARIANT-ID":case"START-DATE":case"SUBTITLES":case"SUPPLEMENTAL-CODECS":case"URI":case"VALUE":case"VIDEO":case"X-ASSET-LIST":case"X-ASSET-URI":En.warn(`${t}: attribute ${o} is missing quotes`)}s[o]=a}return s}}const jde="com.apple.hls.interstitial";function zde(e){return e!=="ID"&&e!=="CLASS"&&e!=="CUE"&&e!=="START-DATE"&&e!=="DURATION"&&e!=="END-DATE"&&e!=="END-ON-NEXT"}function Hde(e){return e==="SCTE35-OUT"||e==="SCTE35-IN"||e==="SCTE35-CMD"}class R6{constructor(t,n,r=0){var s;if(this.attr=void 0,this.tagAnchor=void 0,this.tagOrder=void 0,this._startDate=void 0,this._endDate=void 0,this._dateAtEnd=void 0,this._cue=void 0,this._badValueForSameId=void 0,this.tagAnchor=n?.tagAnchor||null,this.tagOrder=(s=n?.tagOrder)!=null?s:r,n){const i=n.attr;for(const o in i)if(Object.prototype.hasOwnProperty.call(t,o)&&t[o]!==i[o]){En.warn(`DATERANGE tag attribute: "${o}" does not match for tags with ID: "${t.ID}"`),this._badValueForSameId=o;break}t=kn(new Hn({}),i,t)}if(this.attr=t,n?(this._startDate=n._startDate,this._cue=n._cue,this._endDate=n._endDate,this._dateAtEnd=n._dateAtEnd):this._startDate=new Date(t["START-DATE"]),"END-DATE"in this.attr){const i=n?.endDate||new Date(this.attr["END-DATE"]);lt(i.getTime())&&(this._endDate=i)}}get id(){return this.attr.ID}get class(){return this.attr.CLASS}get cue(){const t=this._cue;return t===void 0?this._cue=this.attr.enumeratedStringList(this.attr.CUE?"CUE":"X-CUE",{pre:!1,post:!1,once:!1}):t}get startTime(){const{tagAnchor:t}=this;return t===null||t.programDateTime===null?(En.warn(`Expected tagAnchor Fragment with PDT set for DateRange "${this.id}": ${t}`),NaN):t.start+(this.startDate.getTime()-t.programDateTime)/1e3}get startDate(){return this._startDate}get endDate(){const t=this._endDate||this._dateAtEnd;if(t)return t;const n=this.duration;return n!==null?this._dateAtEnd=new Date(this._startDate.getTime()+n*1e3):null}get duration(){if("DURATION"in this.attr){const t=this.attr.decimalFloatingPoint("DURATION");if(lt(t))return t}else if(this._endDate)return(this._endDate.getTime()-this._startDate.getTime())/1e3;return null}get plannedDuration(){return"PLANNED-DURATION"in this.attr?this.attr.decimalFloatingPoint("PLANNED-DURATION"):null}get endOnNext(){return this.attr.bool("END-ON-NEXT")}get isInterstitial(){return this.class===jde}get isValid(){return!!this.id&&!this._badValueForSameId&&lt(this.startDate.getTime())&&(this.duration===null||this.duration>=0)&&(!this.endOnNext||!!this.class)&&(!this.attr.CUE||!this.cue.pre&&!this.cue.post||this.cue.pre!==this.cue.post)&&(!this.isInterstitial||"X-ASSET-URI"in this.attr||"X-ASSET-LIST"in this.attr)}}const Gde=10;class Kde{constructor(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.dateRangeTagCount=0,this.live=!0,this.requestScheduled=-1,this.ageHeader=0,this.advancedDateTime=void 0,this.updated=!0,this.advanced=!0,this.misses=0,this.startCC=0,this.startSN=0,this.startTimeOffset=null,this.targetduration=0,this.totalduration=0,this.type=null,this.url=void 0,this.m3u8="",this.version=null,this.canBlockReload=!1,this.canSkipUntil=0,this.canSkipDateRanges=!1,this.skippedSegments=0,this.recentlyRemovedDateranges=void 0,this.partHoldBack=0,this.holdBack=0,this.partTarget=0,this.preloadHint=void 0,this.renditionReports=void 0,this.tuneInGoal=0,this.deltaUpdateFailed=void 0,this.drift
vendor: 20,440 bytes, line 102
102StartTime=0,this.driftEndTime=0,this.driftStart=0,this.driftEnd=0,this.encryptedFragments=void 0,this.playlistParsingError=null,this.variableList=null,this.hasVariableRefs=!1,this.appliedTimelineOffset=void 0,this.fragments=[],this.encryptedFragments=[],this.dateRanges={},this.url=t}reloaded(t){if(!t){this.advanced=!0,this.updated=!0;return}const n=this.lastPartSn-t.lastPartSn,r=this.lastPartIndex-t.lastPartIndex;this.updated=this.endSN!==t.endSN||!!r||!!n||!this.live,this.advanced=this.endSN>t.endSN||n>0||n===0&&r>0,this.updated||this.advanced?this.misses=Math.floor(t.misses*.6):this.misses=t.misses+1}hasKey(t){return this.encryptedFragments.some(n=>{let r=n.decryptdata;return r||(n.setKeyFormat(t.keyFormat),r=n.decryptdata),!!r&&t.matches(r)})}get hasProgramDateTime(){return this.fragments.length?lt(this.fragments[this.fragments.length-1].programDateTime):!1}get levelTargetDuration(){return this.averagetargetduration||this.targetduration||Gde}get drift(){const t=this.driftEndTime-this.driftStartTime;return t>0?(this.driftEnd-this.driftStart)*1e3/t:1}get edge(){return this.partEnd||this.fragmentEnd}get partEnd(){var t;return(t=this.partList)!=null&&t.length?this.partList[this.partList.length-1].end:this.fragmentEnd}get fragmentEnd(){return this.fragments.length?this.fragments[this.fragments.length-1].end:0}get fragmentStart(){return this.fragments.length?this.fragments[0].start:0}get age(){return this.advancedDateTime?Math.max(Date.now()-this.advancedDateTime,0)/1e3:0}get lastPartIndex(){var t;return(t=this.partList)!=null&&t.length?this.partList[this.partList.length-1].index:-1}get maxPartIndex(){const t=this.partList;if(t){const n=this.lastPartIndex;if(n!==-1){for(let r=t.length;r--;)if(t[r].index>n)return t[r].index;return n}}return 0}get lastPartSn(){var t;return(t=this.partList)!=null&&t.length?this.partList[this.partList.length-1].fragment.sn:this.endSN}get expired(){if(this.live&&this.age&&this.misses<3){const t=this.partEnd-this.fragmentStart;return this.age>Math.max(t,this.totalduration)+this.levelTargetDuration}return!1}}function mg(e,t){return e.length===t.length?!e.some((n,r)=>n!==t[r]):!1}function wI(e,t){return!e&&!t?!0:!e||!t?!1:mg(e,t)}function Ec(e){return e==="AES-128"||e==="AES-256"||e==="AES-256-CTR"}function FE(e){switch(e){case"AES-128":case"AES-256":return bl.cbc;case"AES-256-CTR":return bl.ctr;default:throw new Error(`invalid full segment method ${e}`)}}function BE(e){return Uint8Array.from(atob(e),t=>t.charCodeAt(0))}function E2(e){return Uint8Array.from(unescape(encodeURIComponent(e)),t=>t.charCodeAt(0))}function Wde(e){const t=E2(e).subarray(0,16),n=new Uint8Array(16);return n.set(t,16-t.length),n}function O6(e){const t=function(r,s,i){const o=r[s];r[s]=r[i],r[i]=o};t(e,0,3),t(e,1,2),t(e,4,5),t(e,6,7)}function $6(e){const t=e.split(":");let n=null;if(t[0]==="data"&&t.length===2){const r=t[1].split(";"),s=r[r.length-1].split(",");if(s.length===2){const i=s[0]==="base64",o=s[1];i?(r.splice(-1,1),n=BE(o)):n=Wde(o)}}return n}const vg=typeof self<"u"?self:void 0;var Kn={CLEARKEY:"org.w3.clearkey",FAIRPLAY:"com.apple.fps",PLAYREADY:"com.microsoft.playready",WIDEVINE:"com.widevine.alpha"},Gr={CLEARKEY:"org.w3.clearkey",FAIRPLAY:"com.apple.streamingkeydelivery",PLAYREADY:"com.microsoft.playready",WIDEVINE:"urn:uuid:edef8ba9-79d6-4ace-a3c8-27dcd51d21ed"};function Dm(e){switch(e){case Gr.FAIRPLAY:return Kn.FAIRPLAY;case Gr.PLAYREADY:return Kn.PLAYREADY;case Gr.WIDEVINE:return Kn.WIDEVINE;case Gr.CLEARKEY:return Kn.CLEARKEY}}function vx(e){switch(e){case Kn.FAIRPLAY:return Gr.FAIRPLAY;case Kn.PLAYREADY:return Gr.PLAYREADY;case Kn.WIDEVINE:return Gr.WIDEVINE;case Kn.CLEARKEY:return Gr.CLEARKEY}}function rf(e){const{drmSystems:t,widevineLicenseUrl:n}=e,r=t?[Kn.FAIRPLAY,Kn.WIDEVINE,Kn.PLAYREADY,Kn.CLEARKEY].filter(s=>!!t[s]):[];return!r[Kn.WIDEVINE]&&n&&r.push(Kn.WIDEVINE),r}const M6=(function(e){return vg!=null&&(e=vg.navigator)!=null&&e.requestMediaKeySystemAccess?self.navigator.requestMediaKeySystemAccess.bind(self.navigator):null})();function qde(e,t,n,r){let s;switch(e){case Kn.FAIRPLAY:s=["cenc","sinf"];break;case Kn.WIDEVINE:case Kn.PLAYREADY:s=["cenc"];break;case Kn.CLEARKEY:s=["cenc","keyids"];break;default:throw new Error(`Unknown key-system: ${e}`)}return Yde(s,t,n,r)}function Yde(e,t,n,r){return[{initDataTypes:e,persistentState:r.persistentState||"optional",distinctiveIdentifier:r.distinctiveIdentifier||"optional",sessionTypes:r.sessionTypes||[r.sessionType||"temporary"],audioCapabilities:t.map(i=>({contentType:`audio/mp4; codecs=${i}`,robustness:r.audioRobustness||"",encryptionScheme:r.audioEncryptionScheme||null})),videoCapabilities:n.map(i=>({contentType:`video/mp4; codecs=${i}`,robustness:r.videoRobustness||"",encryptionScheme:r.videoEncryptionScheme||null}))}]}function Xde(e){var t;return!!e&&(e.sessionType==="persistent-license"||!!((t=e.sessionTypes)!=null&&t.some(n=>n==="persistent-license")))}function F6(e){const t=new Uint16Array(e.buffer,e.byteOffset,e.byteLength/2),n=String.fromCharCode.apply(null,Array.from(t)),r=n.substring(n.indexOf("<"),n.length),o=new DOMParser().parseFromString(r,"text/xml").getElementsByTagName("KID")[0];if(o){const a=o.childNodes[0]?o.childNodes[0].nodeValue:o.getAttribute("VALUE");if(a){const l=BE(a).subarray(0,16);return O6(l),l}}return null}let np={};class fu{static clearKeyUriToKeyIdMap(){np={}}static setKeyIdForUri(t,n){np[t]=n}constructor(t,n,r,s=[1],i=null,o){this.uri=void 0,this.method=void 0,this.keyFormat=void 0,this.keyFormatVersions=void 0,this.encrypted=void 0,this.isCommonEncryption=void 0,this.iv=null,this.key=null,this.keyId=null,this.pssh=null,this.method=t,this.uri=n,this.keyFormat=r,this.keyFormatVersions=s,this.iv=i,this.encrypted=t?t!=="NONE":!1,this.isCommonEncryption=this.encrypted&&!Ec(t),o!=null&&o.startsWith("0x")&&(this.keyId=new Uint8Array(d6(o)))}matches(t){return t.uri===this.uri&&t.method===this.method&&t.encrypted===this.encrypted&&t.keyFormat===this.keyFormat&&mg(t.keyFormatVersions,this.keyFormatVersions)&&wI(t.iv,this.iv)&&wI(t.keyId,this.keyId)}isSupported(){if(this.method){if(Ec(this.method)||this.method==="NONE")return!0;if(this.keyFormat==="identity")return this.method==="SAMPLE-AES";switch(this.keyFormat){case Gr.FAIRPLAY:case Gr.WIDEVINE:case Gr.PLAYREADY:case Gr.CLEARKEY:return["SAMPLE-AES","SAMPLE-AES-CENC","SAMPLE-AES-CTR"].indexOf(this.method)!==-1}}return!1}getDecryptData(t,n){if(!this.encrypted||!this.uri)return null;if(Ec(this.method)){let i=this.iv;return i||(typeof t!="number"&&(En.warn(`missing IV for initialization segment with method="${this.method}" - compliance issue`),t=0),i=Jde(t)),new fu(this.method,this.uri,"identity",this.keyFormatVersions,i)}if(this.keyId){const i=np[this.uri];if(i&&!mg(this.keyId,i)&&fu.setKeyIdForUri(this.uri,this.keyId),this.pssh)return this}const r=$6(this.uri);if(r)switch(this.keyFormat){case Gr.WIDEVINE:if(this.pssh=r,!this.keyId){const i=tde(r.buffer);if(i.length){var s;const o=i[0];this.keyId=(s=o.kids)!=null&&s.length?o.kids[0]:null}}this.keyId||(this.keyId=TI(n));break;case Gr.PLAYREADY:{const i=new Uint8Array([154,4,240,121,152,64,66,134,171,146,230,91,224,136,95,149]);this.pssh=ede(i,null,r),this.keyId=F6(r);break}default:{let i=r.subarray(0,16);if(i.length!==16){const o=new Uint8Array(16);o.set(i,16-i.length),i=o}this.keyId=i;break}}if(!this.keyId||this.keyId.byteLength!==16){let i;i=Zde(n),i||(i=TI(n),i||(i=np[this.uri])),i&&(this.keyId=i,fu.setKeyIdForUri(this.uri,i))}return this}}function Zde(e){const t=e?.[Gr.WIDEVINE];return t?t.keyId:null}function TI(e){const t=e?.[Gr.PLAYREADY];if(t){const n=$6(t.uri);if(n)return F6(n)}return null}function Jde(e){const t=new Uint8Array(16);for(let n=12;n<16;n++)t[n]=e>>8*(15-n)&255;return t}const CI=/#EXT-X-STREAM-INF:([^\r\n]*)(?:[\r\n](?:#[^\r\n]*)?)*([^\r\n]+)|#EXT-X-(SESSION-DATA|SESSION-KEY|DEFINE|CONTENT-STEERING|START):([^\r\n]*)[\r\n]+/g,AI=/#EXT-X-MEDIA:(.*)/g,Qde=/^#EXT(?:INF|-X-TARGETDURATION):/m,gx=new RegExp([/#EXTINF:\s*(\d*(?:\.\d+)?)(?:,(.*)\s+)?/.source,/(?!#) *(\S[^\r\n]*)/.source,/#.*/.source].join("|"),"g"),efe=new RegExp([/#EXT-X-(PROGRAM-DATE-TIME|BYTERANGE|DATERANGE|DEFINE|KEY|MAP|PART|PART-INF|PLAYLIST-TYPE|PRELOAD-HINT|RENDITION-REPORT|SERVER-CONTROL|SKIP|START):(.+)/.source,/#EXT-X-(BITRATE|DISCONTINUITY-SEQUENCE|MEDIA-SEQUENCE|TARGETDURATION|VERSION): *(\d+)/.source,/#EXT-X-(DISCONTINUITY|ENDLIST|GAP|INDEPENDENT-SEGMENTS)/.source,/(#)([^:]*):(.*)/.source,/(#)(.*)(?:.*)\r?\n?/.source].join("|"));class $o{static findGroup(t,n){for(let r=0;r<t.length;r++){const s=t[r];if(s.id===n)return s}}static resolve(t,n){return IE.buildAbsoluteURL(n,t,{alwaysNormalize:!0})}static isMediaPlaylist(t){return Qde.test(t)}static parseMasterPlaylist(t,n){const r=_I(t),s={contentSteering:null,levels:[],playlistParsingError:null,sessionData:null,sessionKeys:null,startTimeOffset:null,variableList:null,hasVariableRefs:r},i=[];if(CI.lastIndex=0,!t.startsWith("#EXTM3U"))return s.playlistParsingError=new Error("no EXTM3U delimiter"),s;let o;for(;(o=CI.exec(t))!=null;)if(o[1]){var a;const u=new Hn(o[1],s),c=S2(s,o[2]),d={attrs:u,bitrate:u.decimalInteger("BANDWIDTH")||u.decimalInteger("AVERAGE-BANDWIDTH"),name:u.NAME,url:$o.resolve(c,n)},f=u.decimalResolution("RESOLUTION");f&&(d.width=f.width,d.height=f.height),LI(u.CODECS,d);const h=u["SUPPLEMENTAL-CODECS"];h&&(d.supplemental={},LI(h,d.supplemental)),(a=d.unknownCodecs)!=null&&a.length||i.push(d),s.levels.push(d)}else if(o[3]){const u=o[3],c=o[4];switch(u){case"SESSION-DATA":{const d=new Hn(c,s),f=d["DATA-ID"];f&&(s.sessionData===null&&(s.sessionData={}),s.sessionData[f]=d);break}case"SESSION-KEY":{const d=kI(c,n,s);d.encrypted&&d.isSupported()?(s.sessionKeys===null&&(s.sessionKeys=[]),s.sessionKeys.push(d)):En.warn(`[Keys] Ignoring invalid EXT-X-SESSION-KEY tag: "${c}"`);break}case"DEFINE":{{const d=new Hn(c,s);SI(s,d,n)}break}case"CONTENT-STEERING":{const d=new Hn(c,s);s.contentSteering={uri:$o.resolve(d["SERVER-URI"],n),pathwayId:d["PATHWAY-ID"]||"."};break}case"START":{s.startTimeOffset=II(c);break}}}const l=i.length>0&&i.length<s.levels.length;return s.levels=l?i:s.levels,s.levels.length===0&&(s.playlistParsingError=new Error("no levels found in manifest")),s}static parseMasterPlaylistMedia(t,n,r){let s;const i={},o=r.levels,a={AUDIO:o.map(u=>({id:u.attrs.AUDIO,audioCodec:u.audioCodec})),SUBTITLES:o.map(u=>({id:u.attrs.SUBTITLES,textCodec:u.textCodec})),"CLOSED-CAPTIONS":[]};let l=0;for(AI.lastIndex=0;(s=AI.exec(t))!==null;){const u=new Hn(s[1],r),c=u.TYPE;if(c){const d=a[c],f=i[c]||[];i[c]=f;const h=u.LANGUAGE,p=u["ASSOC-LANGUAGE"],m=u.CHANNELS,v=u.CHARACTERISTICS,x=u["INSTREAM-ID"],g={attrs:u,bitrate:0,id:l++,groupId:u["GROUP-ID"]||"",name:u.NAME||h||"",type:c,default:u.bool("DEFAULT"),autoselect:u.bool("AUTOSELECT"),forced:u.bool("FORCED"),lang:h,url:u.URI?$o.resolve(u.URI,n):""};if(p&&(g.assocLang=p),m&&(g.channels=m),v&&(g.characteristics=v),x&&(g.instreamId=x),d!=null&&d.length){const y=$o.findGroup(d,g.groupId)||d[0];DI(g,y,"audioCodec"),DI(g,y,"textCodec")}f.push(g)}}return i}static parseLevelPlaylist(t,n,r,s,i,o){var a;const l={url:n},u=new Kde(n),c=u.fragments,d=[];let f=null,h=0,p=0,m=0,v=0,x=0,g=null,y=new hx(s,l),_,E,w,T=-1,C=!1,I=null,k;if(gx.lastIndex=0,u.m3u8=t,u.hasVariableRefs=_I(t),((a=gx.exec(t))==null?void 0:a[0])!=="#EXTM3U")return u.playlistParsingError=new Error("Missing format identifier #EXTM3U"),u;for(;(_=gx.exec(t))!==null;){C&&(C=!1,y=new hx(s,l),y.playlistOffset=m,y.setStart(m),y.sn=h,y.cc=v,x&&(y.bitrate=x),y.level=r,f&&(y.initSegment=f,f.rawProgramDateTime&&(y.rawProgramDateTime=f.rawProgramDateTime,f.rawProgramDateTime=null),I&&(y.setByteRange(I),I=null)));const O=_[1];if(O){y.duration=parseFloat(O);const B=(" "+_[2]).slice(1);y.title=B||null,y.tagList.push(B?["INF",O,B]:["INF",O])}else if(_[3]){if(lt(y.duration)){y.playlistOffset=m,y.setStart(m),w&&RI(y,w,u),y.sn=h,y.level=r,y.cc=v,c.push(y);const B=(" "+_[3]).slice(1);y.relurl=S2(u,B),w2(y,g,d),g=y,m+=y.duration,h++,p=0,C=!0}}else{if(_=_[0].match(efe),!_){En.warn("No matches on slow regex match for level playlist!");continue}for(E=1;E<_.length&&_[E]===void 0;E++);const B=(" "+_[E]).slice(1),U=(" "+_[E+1]).slice(1),N=_[E+2]?(" "+_[E+2]).slice(1):null;switch(B){case"BYTERANGE":g?y.setByteRange(U,g):y.setByteRange(U);break;case"PROGRAM-DATE-TIME":y.rawProgramDateTime=U,y.tagList.push(["PROGRAM-DATE-TIME",U]),T===-1&&(T=c.length);break;case"PLAYLIST-TYPE":u.type&&ta(u,B,_),u.type=U.toUpperCase();break;case"MEDIA-SEQUENCE":u.startSN!==0?ta(u,B,_):c.length>0&&OI(u,B,_),h=u.startSN=parseInt(U);break;case"SKIP":{u.skippedSegments&&ta(u,B,_);const V=new Hn(U,u),H=V.decimalInteger("SKIPPED-SEGMENTS");if(lt(H)){u.skippedSegments+=H;for(let W=H;W--;)c.push(null);h+=H}const re=V.enumeratedString("RECENTLY-REMOVED-DATERANGES");re&&(u.recentlyRemovedDateranges=(u.recentlyRemovedDateranges||[]).concat(re.split("	")));break}case"TARGETDURATION":u.targetduration!==0&&ta(u,B,_),u.targetduration=Math.max(parseInt(U),1);break;case"VERSION":u.version!==null&&ta(u,B,_),u.version=parseInt(U);break;case"INDEPENDENT-SEGMENTS":break;case"ENDLIST":u.live||ta(u,B,_),u.live=!1;break;case"#":(U||N)&&y.tagList.push(N?[U,N]:[U]);break;case"DISCONTINUITY":v++,y.tagList.push(["DIS"]);break;case"GAP":y.gap=!0,y.tagList.push([B]);break;case"BITRATE":y.tagList.push([B,U]),x=parseInt(U)*1e3,lt(x)?y.bitrate=x:x=0;break;case"DATERANGE":{const V=new Hn(U,u),H=new R6(V,u.dateRanges[V.ID],u.dateRangeTagCount);u.dateRangeTagCount++,H.isValid||u.skippedSegments?u.dateRanges[H.id]=H:En.warn(`Ignoring invalid DATERANGE tag: "${U}"`),y.tagList.push(["EXT-X-DATERANGE",U]);break}case"DEFINE":{{const V=new Hn(U,u);"IMPORT"in V?Vde(u,V,o):SI(u,V,n)}break}case"DISCONTINUITY-SEQUENCE":u.startCC!==0?ta(u,B,_):c.length>0&&OI(u,B,_),u.startCC=v=parseInt(U);break;case"KEY":{const V=kI(U,n,u);if(V.isSupported()){if(V.method==="NONE"){w=void 0;break}w||(w={});const H=w[V.keyFormat];H!=null&&H.matches(V)||(H&&(w=kn({},w)),w[V.keyFormat]=V)}else En.warn(`[Keys] Ignoring unsupported EXT-X-KEY tag: "${U}"`);break}case"START":u.startTimeOffset=II(U);break;case"MAP":{const V=new Hn(U,u);if(y.duration){const H=new hx(s,l);PI(H,V,r,w),f=H,y.initSegment=f,f.rawProgramDateTime&&!y.rawProgramDateTime&&(y.rawProgramDateTime=f.rawProgramDateTime)}else{const H=y.byteRangeEndOffset;if(H){const re=y.byteRangeStartOffset;I=`${H-re}@${re}`}else I=null;PI(y,V,r,w),f=y,C=!0}f.cc=v;break}case"SERVER-CONTROL":{k&&ta(u,B,_),k=new Hn(U),u.canBlockReload=k.bool("CAN-BLOCK-RELOAD"),u.canSkipUntil=k.optionalFloat("CAN-SKIP-UNTIL",0),u.canSkipDateRanges=u.canSkipUntil>0&&k.bool("CAN-SKIP-DATERANGES"),u.partHoldBack=k.optionalFloat("PART-HOLD-BACK",0),u.holdBack=k.optionalFloat("HOLD-BACK",0);break}case"PART-INF":{u.partTarget&&ta(u,B,_);const V=new Hn(U);u.partTarget=V.decimalFloatingPoint("PART-TARGET");break}case"PART":{let V=u.partList;V||(V=u.partList=[]);const H=p>0?V[V.length-1]:void 0,re=p++,W=new Hn(U,u),X=new Vce(W,y,l,re,H);V.push(X),y.duration+=X.duration;break}case"PRELOAD-HINT":{const V=new Hn(U,u);u.preloadHint=V;break}case"RENDITION-REPORT":{const V=new Hn(U,u);u.renditionReports=u.renditionReports||[],u.renditionReports.push(V);break}default:En.warn(`line parsed but not handled: ${_}`);break}}}g&&!g.relurl?(c.pop(),m-=g.duration,u.partList&&(u.fragmentHint=g)):u.partList&&(w2(y,g,d),y.cc=v,u.fragmentHint=y,w&&RI(y,w,u)),u.targetduration||(u.playlistParsingError=new Error("Missing Target Duration"));const $=c.length,R=c[0],D=c[$-1];if(m+=u.skippedSegments*u.targetduration,m>0&&$&&D){u.averagetargetduration=m/$;const O=D.sn;u.endSN=O!=="initSegment"?O:0,u.live||(D.endList=!0),T>0&&(nfe(c,T),R&&d.unshift(R))}return u.fragmentHint&&(m+=u.fragmentHint.duration),u.totalduration=m,d.length&&u.dateRangeTagCount&&R&&B6(d,u),u.endCC=v,u}}function B6(e,t){let n=e.length;if(!n)if(t.hasProgramDateTime){const a=t.fragments[t.fragments.length-1];e.push(a),n++}else return;const r=e[n-1],s=t.live?1/0:t.totalduration,i=Object.keys(t.dateRanges);for(let a=i.length;a--;){const l=t.dateRanges[i[a]],u=l.startDate.getTime();l.tagAnchor=r.ref;for(let c=n;c--;){var o;if(((o=e[c])==null?void 0:o.sn)<t.startSN)break;const d=tfe(t,u,e,c,s);if(d!==-1){l.tagAnchor=t.fragments[d].ref;break}}}}function tfe(e,t,n,r,s){const i=n[r];if(i){const a=i.programDateTime;if(t>=a||r===0){var o;const l=(((o=n[r+1])==null?void 0:o.start)||s)-i.start;if(t<=a+l*1e3){const u=n[r].sn-e.startSN;if(u<0)return-1;const c=e.fragments;if(c.length>n.length){const f=(n[r+1]||c[c.length-1]).sn-e.startSN;for(let h=f;h>u;h--){const p=c[h].programDateTime;if(t>=p&&t<p+c[h].duration*1e3)return h}}return u}}}return-1}function kI(e,t,n){var r,s;const i=new Hn(e,n),o=(r=i.METHOD)!=null?r:"",a=i.URI,l=i.hexadecimalInteger("IV"),u=i.KEYFORMATVERSIONS,c=(s=i.KEYFORMAT)!=null?s:"identity";a&&i.IV&&!l&&En.error(`Invalid IV: ${i.IV}`);const d=a?$o.resolve(a,t):"",f=(u||"1").split("/").map(Number).filter(Number.isFinite);return new fu(o,d,c,f,l,i.KEYID)}function II(e){const n=new Hn(e).decimalFloatingPoint("TIME-OFFSET");return lt(n)?n:null}function LI(e,t){let n=(e||"").split(/[ ,]+/).filter(r=>r);["video","audio","text"].forEach(r=>{const s=n.filter(i=>PE(i,r));s.length&&(t[`${r}Codec`]=s.map(i=>i.split("/")[0]).join(","),n=n.filter(i=>s.indexOf(i)===-1))}),t.unknownCodecs=n}function DI(e,t,n){const r=t[n];r&&(e[n]=r)}function nfe(e,t){let n=e[t];for(let r=t;r--;){const s=e[r];if(!s)return;s.programDateTime=n.programDateTime-s.duration*1e3,n=s}}function w2(e,t,n){e.rawProgramDateTime?n.push(e):t!=null&&t.programDateTime&&(e.programDateTime=t.endProgramDateTime)}function PI(e,t,n,r){e.relurl=t.URI,t.BYTERANGE&&e.setByteRange(t.BYTERANGE),e.level=n,e.sn="initSegment",r&&(e.levelkeys=r),e.initSegment=null}function RI(e,t,n){e.levelkeys=t;const{encryptedFragments:r}=n;(!r.length||r[r.length-1].levelkeys!==t)&&Object.keys(t).some(s=>t[s].isCommonEncryption)&&r.push(e)}function ta(e,t,n){e.playlistParsingError=new Error(`#EXT-X-${t} must not appear more than once (${n[0]})`)}function OI(e,t,n){e.playlistParsingError=new Error(`#EXT-X-${t} must appear before the first Media Segment (${n[0]})`)}function yx(e,t){const n=t.startPTS;if(lt(n)){let r=0,s;t.sn>e.sn?(r=n-e.start,s=e):(r=e.start-n,s=t),s.duration!==r&&s.setDuration(r)}else t.sn>e.sn?e.cc===t.cc&&e.minEndPTS?t.setStart(e.start+(e.minEndPTS-e.start)):t.setStart(e.start+e.duration):t.setStart(Math.max(e.start-t.duration,0))}function N6(e,t,n,r,s,i,o){r-n<=0&&(o.warn("Fragment should have a positive duration",t),r=n+t.duration,i=s+t.duration);let l=n,u=r;const c=t.startPTS,d=t.endPTS;if(lt(c)){const x=Math.abs(c-n);e&&x>e.totalduration?o.warn(`media timestamps and playlist times differ by ${x}s for level ${t.level} ${e.url}`):lt(t.deltaPTS)?t.deltaPTS=Math.max(x,t.deltaPTS):t.deltaPTS=x,l=Math.max(n,c),n=Math.min(n,c),s=t.startDTS!==void 0?Math.min(s,t.startDTS):s,u=Math.min(r,d),r=Math.max(r,d),i=t.endDTS!==void 0?Math.max(i,t.endDTS):i}const f=n-t.start;t.start!==0&&t.setStart(n),t.setDuration(r-t.start),t.startPTS=n,t.maxStartPTS=l,t.startDTS=s,t.endPTS=r,t.minEndPTS=u,t.endDTS=i;const h=t.sn;if(!e||h<e.startSN||h>e.endSN)return 0;let p;const m=h-e.startSN,v=e.fragments;for(v[m]=t,p=m;p>0;p--)yx(v[p],v[p-1]);for(p=m;p<v.length-1;p++)yx(v[p],v[p+1]);return e.fragmentHint&&yx(v[v.length-1],e.fragmentHint),e.PTSKnown=e.alignedSliding=!0,f}function rfe(e,t,n){if(e===t)return;let r=null;const s=e.fragments;for(let c=s.length-1;c>=0;c--){const d=s[c].initSegment;if(d){r=d;break}}e.fragmentHint&&delete e.fragmentHint.endPTS;let i;ofe(e,t,(c,d,f,h)=>{if((!t.startCC||t.skippedSegments)&&d.cc!==c.cc){const p=c.cc-d.cc;for(let m=f;m<h.length;m++)h[m].cc+=p;t.endCC=h[h.length-1].cc}lt(c.startPTS)&&lt(c.endPTS)&&(d.setStart(d.startPTS=c.startPTS),d.startDTS=c.startDTS,d.maxStartPTS=c.maxStartPTS,d.endPTS=c.endPTS,d.endDTS=c.endDTS,d.minEndPTS=c.minEndPTS,d.setDuration(c.endPTS-c.startPTS),d.duration&&(i=d),t.PTSKnown=t.alignedSliding=!0),c.hasStreams&&(d.elementaryStreams=c.elementaryStreams),d.loader=c.loader,c.hasStats&&(d.stats=c.stats),c.initSegment&&(d.initSegment=c.initSegment,r=c.initSegment)});const o=t.fragments,a=t.fragmentHint?o.concat(t.fragmentHint):o;if(r&&a.forEach(c=>{var d;c&&(!c.initSegment||c.initSegment.relurl===((d=r)==null?void 0:d.relurl))&&(c.initSegment=r)}),t.skippedSegments){if(t.deltaUpdateFailed=o.some(c=>!c),t.deltaUpdateFailed){n.warn("[level-helper] Previous playlist missing segments ski
102pped in delta playlist");for(let c=t.skippedSegments;c--;)o.shift();t.startSN=o[0].sn}else{t.canSkipDateRanges&&(t.dateRanges=sfe(e.dateRanges,t,n));const c=e.fragments.filter(d=>d.rawProgramDateTime);if(e.hasProgramDateTime&&!t.hasProgramDateTime)for(let d=1;d<a.length;d++)a[d].programDateTime===null&&w2(a[d],a[d-1],c);B6(c,t)}t.endCC=o[o.length-1].cc}if(!t.startCC){var l;const c=j6(e,t.startSN-1);t.startCC=(l=c?.cc)!=null?l:o[0].cc}ife(e.partList,t.partList,(c,d)=>{d.elementaryStreams=c.elementaryStreams,d.stats=c.stats}),i?N6(t,i,i.startPTS,i.endPTS,i.startDTS,i.endDTS,n):V6(e,t),o.length&&(t.totalduration=t.edge-o[0].start),t.driftStartTime=e.driftStartTime,t.driftStart=e.driftStart;const u=t.advancedDateTime;if(t.advanced&&u){const c=t.edge;t.driftStart||(t.driftStartTime=u,t.driftStart=c),t.driftEndTime=u,t.driftEnd=c}else t.driftEndTime=e.driftEndTime,t.driftEnd=e.driftEnd,t.advancedDateTime=e.advancedDateTime;t.requestScheduled===-1&&(t.requestScheduled=e.requestScheduled)}function sfe(e,t,n){const{dateRanges:r,recentlyRemovedDateranges:s}=t,i=kn({},e);s&&s.forEach(l=>{delete i[l]});const a=Object.keys(i).length;return a?(Object.keys(r).forEach(l=>{const u=i[l],c=new R6(r[l].attr,u);c.isValid?(i[l]=c,u||(c.tagOrder+=a)):n.warn(`Ignoring invalid Playlist Delta Update DATERANGE tag: "${Ln(r[l].attr)}"`)}),i):r}function ife(e,t,n){if(e&&t){let r=0;for(let s=0,i=e.length;s<=i;s++){const o=e[s],a=t[s+r];o&&a&&o.index===a.index&&o.fragment.sn===a.fragment.sn?n(o,a):r--}}}function ofe(e,t,n){const r=t.skippedSegments,s=Math.max(e.startSN,t.startSN)-t.startSN,i=(e.fragmentHint?1:0)+(r?t.endSN:Math.min(e.endSN,t.endSN))-t.startSN,o=t.startSN-e.startSN,a=t.fragmentHint?t.fragments.concat(t.fragmentHint):t.fragments,l=e.fragmentHint?e.fragments.concat(e.fragmentHint):e.fragments;for(let u=s;u<=i;u++){const c=l[o+u];let d=a[u];if(r&&!d&&c&&(d=t.fragments[u]=c),c&&d){n(c,d,u,a);const f=c.relurl,h=d.relurl;if(f&&afe(f,h)){t.playlistParsingError=$I(`media sequence mismatch ${d.sn}:`,e,t,c,d);return}else if(c.cc!==d.cc){t.playlistParsingError=$I(`discontinuity sequence mismatch (${c.cc}!=${d.cc})`,e,t,c,d);return}}}}function $I(e,t,n,r,s){return new Error(`${e} ${s.url}
103Playlist starting @${t.startSN}
104${t.m3u8}
105
106Playlist starting @${n.startSN}
107${n.m3u8}`)}function V6(e,t,n=!0){const r=t.startSN+t.skippedSegments-e.startSN,s=e.fragments,i=r>=0;let o=0;if(i&&r<s.length)o=s[r].start;else if(i&&t.startSN===e.endSN+1)o=e.fragmentEnd;else if(i&&n)o=e.fragmentStart+r*t.levelTargetDuration;else if(!t.skippedSegments&&t.fragmentStart===0)o=e.fragmentStart;else return;T2(t,o)}function T2(e,t){if(t){const n=e.fragments;for(let r=e.skippedSegments;r<n.length;r++)n[r].addStart(t);e.fragmentHint&&e.fragmentHint.addStart(t)}}function U6(e,t=1/0){let n=1e3*e.targetduration;if(e.updated){const r=e.fragments;if(r.length&&n*4>t){const i=r[r.length-1].duration*1e3;i<n&&(n=i)}}else n/=2;return Math.round(n)}function j6(e,t,n){if(!e)return null;let r=e.fragments[t-e.startSN];return r||(r=e.fragmentHint,r&&r.sn===t)?r:t<e.startSN&&n&&n.sn===t?n:null}function MI(e,t,n){return e?z6(e.partList,t,n):null}function z6(e,t,n){if(e)for(let r=e.length;r--;){const s=e[r];if(s.index===n&&s.fragment.sn===t)return s}return null}function H6(e){e.forEach((t,n)=>{var r;(r=t.details)==null||r.fragments.forEach(s=>{s.level=n,s.initSegment&&(s.initSegment.level=n)})})}function afe(e,t){return e!==t&&t?FI(e)!==FI(t):!1}function FI(e){return e.replace(/\?[^?]*$/,"")}function Ef(e,t){for(let r=0,s=e.length;r<s;r++){var n;if(((n=e[r])==null?void 0:n.cc)===t)return e[r]}return null}function lfe(e,t){return!!(e&&t.startCC<e.endCC&&t.endCC>e.startCC)}function BI(e,t){const n=e.start+t;e.startPTS=n,e.setStart(n),e.endPTS=n+e.duration}function G6(e,t){const n=t.fragments;for(let r=0,s=n.length;r<s;r++)BI(n[r],e);t.fragmentHint&&BI(t.fragmentHint,e),t.alignedSliding=!0}function ufe(e,t){e&&(K6(t,e),t.alignedSliding||gg(t,e),!t.alignedSliding&&!t.skippedSegments&&V6(e,t,!1))}function K6(e,t){if(!lfe(t,e))return;const n=Math.min(t.endCC,e.endCC),r=Ef(t.fragments,n),s=Ef(e.fragments,n);if(!r||!s)return;En.log(`Aligning playlist at start of dicontinuity sequence ${n}`);const i=r.start-s.start;G6(i,e)}function gg(e,t){if(!e.hasProgramDateTime||!t.hasProgramDateTime)return;const n=e.fragments,r=t.fragments;if(!n.length||!r.length)return;let s,i;const o=Math.min(t.endCC,e.endCC);t.startCC<o&&e.startCC<o&&(s=Ef(r,o),i=Ef(n,o)),(!s||!i)&&(s=r[Math.floor(r.length/2)],i=Ef(n,s.cc)||n[Math.floor(n.length/2)]);const a=s.programDateTime,l=i.programDateTime;if(!a||!l)return;const u=(l-a)/1e3-(i.start-s.start);G6(u,e)}function Cs(e,t,n){Us(e,t,n),e.addEventListener(t,n)}function Us(e,t,n){e.removeEventListener(t,n)}const cfe={toString:function(e){let t="";const n=e.length;for(let r=0;r<n;r++)t+=`[${e.start(r).toFixed(3)}-${e.end(r).toFixed(3)}]`;return t}},Ge={STOPPED:"STOPPED",IDLE:"IDLE",KEY_LOADING:"KEY_LOADING",FRAG_LOADING:"FRAG_LOADING",FRAG_LOADING_WAITING_RETRY:"FRAG_LOADING_WAITING_RETRY",WAITING_TRACK:"WAITING_TRACK",PARSING:"PARSING",PARSED:"PARSED",ENDED:"ENDED",ERROR:"ERROR",WAITING_INIT_PTS:"WAITING_INIT_PTS",WAITING_LEVEL:"WAITING_LEVEL"};class NE extends D6{constructor(t,n,r,s,i){super(s,t.logger),this.hls=void 0,this.fragPrevious=null,this.fragCurrent=null,this.fragmentTracker=void 0,this.transmuxer=null,this._state=Ge.STOPPED,this.playlistType=void 0,this.media=null,this.mediaBuffer=null,this.config=void 0,this.bitrateTest=!1,this.lastCurrentTime=0,this.nextLoadPosition=0,this.startPosition=0,this.startTimeOffset=null,this.retryDate=0,this.levels=null,this.fragmentLoader=void 0,this.keyLoader=void 0,this.levelLastLoaded=null,this.startFragRequested=!1,this.decrypter=void 0,this.initPTS=[],this.buffering=!0,this.loadingParts=!1,this.loopSn=void 0,this.onMediaSeeking=()=>{const{config:o,fragCurrent:a,media:l,mediaBuffer:u,state:c}=this,d=l?l.currentTime:0,f=Ft.bufferInfo(u||l,d,o.maxBufferHole),h=!f.len;if(this.log(`Media seeking to ${lt(d)?d.toFixed(3):d}, state: ${c}, ${h?"out of":"in"} buffer`),this.state===Ge.ENDED)this.resetLoadingState();else if(a){const p=o.maxFragLookUpTolerance,m=a.start-p,v=a.start+a.duration+p;if(h||v<f.start||m>f.end){const x=d>v;(d<m||x)&&(x&&a.loader&&(this.log(`Cancelling fragment load for seek (sn: ${a.sn})`),a.abortRequests(),this.resetLoadingState()),this.fragPrevious=null)}}if(l){this.fragmentTracker.removeFragmentsInRange(d,1/0,this.playlistType,!0);const p=this.lastCurrentTime;if(d>p&&(this.lastCurrentTime=d),!this.loadingParts){const m=Math.max(f.end,d),v=this.shouldLoadParts(this.getLevelDetails(),m);v&&(this.log(`LL-Part loading ON after seeking to ${d.toFixed(2)} with buffer @${m.toFixed(2)}`),this.loadingParts=v)}}this.hls.hasEnoughToStart||(this.log(`Setting ${h?"startPosition":"nextLoadPosition"} to ${d} for seek without enough to start`),this.nextLoadPosition=d,h&&(this.startPosition=d)),h&&this.state===Ge.IDLE&&this.tickImmediate()},this.onMediaEnded=()=>{this.log("setting startPosition to 0 because media ended"),this.startPosition=this.lastCurrentTime=0},this.playlistType=i,this.hls=t,this.fragmentLoader=new Bde(t.config),this.keyLoader=r,this.fragmentTracker=n,this.config=t.config,this.decrypter=new $E(t.config)}registerListeners(){const{hls:t}=this;
vendor: 27,781 bytes, line 107
107t.on(G.MEDIA_ATTACHED,this.onMediaAttached,this),t.on(G.MEDIA_DETACHING,this.onMediaDetaching,this),t.on(G.MANIFEST_LOADING,this.onManifestLoading,this),t.on(G.MANIFEST_LOADED,this.onManifestLoaded,this),t.on(G.ERROR,this.onError,this)}unregisterListeners(){const{hls:t}=this;t.off(G.MEDIA_ATTACHED,this.onMediaAttached,this),t.off(G.MEDIA_DETACHING,this.onMediaDetaching,this),t.off(G.MANIFEST_LOADING,this.onManifestLoading,this),t.off(G.MANIFEST_LOADED,this.onManifestLoaded,this),t.off(G.ERROR,this.onError,this)}doTick(){this.onTickEnd()}onTickEnd(){}startLoad(t){}stopLoad(){if(this.state===Ge.STOPPED)return;this.fragmentLoader.abort(),this.keyLoader.abort(this.playlistType);const t=this.fragCurrent;t!=null&&t.loader&&(t.abortRequests(),this.fragmentTracker.removeFragment(t)),this.resetTransmuxer(),this.fragCurrent=null,this.fragPrevious=null,this.clearInterval(),this.clearNextTick(),this.state=Ge.STOPPED}get startPositionValue(){const{nextLoadPosition:t,startPosition:n}=this;return n===-1&&t?t:n}get bufferingEnabled(){return this.buffering}pauseBuffering(){this.buffering=!1}resumeBuffering(){this.buffering=!0}get inFlightFrag(){return{frag:this.fragCurrent,state:this.state}}_streamEnded(t,n){if(n.live||!this.media)return!1;const r=t.end||0,s=this.config.timelineOffset||0;if(r<=s)return!1;const i=t.buffered;this.config.maxBufferHole&&i&&i.length>1&&(t=Ft.bufferedInfo(i,t.start,0));const o=t.nextStart;if(o&&o>s&&o<n.edge||this.media.currentTime<t.start)return!1;const l=n.partList;if(l!=null&&l.length){const c=l[l.length-1];return Ft.isBuffered(this.media,c.start+c.duration/2)}const u=n.fragments[n.fragments.length-1].type;return this.fragmentTracker.isEndListAppended(u)}getLevelDetails(){if(this.levels&&this.levelLastLoaded!==null)return this.levelLastLoaded.details}get timelineOffset(){const t=this.config.timelineOffset;if(t){var n;return((n=this.getLevelDetails())==null?void 0:n.appliedTimelineOffset)||t}return 0}onMediaAttached(t,n){const r=this.media=this.mediaBuffer=n.media;Cs(r,"seeking",this.onMediaSeeking),Cs(r,"ended",this.onMediaEnded);const s=this.config;this.levels&&s.autoStartLoad&&this.state===Ge.STOPPED&&this.startLoad(s.startPosition)}onMediaDetaching(t,n){const r=!!n.transferMedia,s=this.media;if(s!==null){if(s.ended&&(this.log("MSE detaching and video ended, reset startPosition"),this.startPosition=this.lastCurrentTime=0),Us(s,"seeking",this.onMediaSeeking),Us(s,"ended",this.onMediaEnded),this.keyLoader&&!r&&this.keyLoader.detach(),this.media=this.mediaBuffer=null,this.loopSn=void 0,r){this.resetLoadingState(),this.resetTransmuxer();return}this.loadingParts=!1,this.fragmentTracker.removeAllFragments(),this.stopLoad()}}onManifestLoading(){this.initPTS=[],this.levels=this.levelLastLoaded=this.fragCurrent=null,this.lastCurrentTime=this.startPosition=0,this.startFragRequested=!1}onError(t,n){}onManifestLoaded(t,n){this.startTimeOffset=n.startTimeOffset}onHandlerDestroying(){this.stopLoad(),this.transmuxer&&(this.transmuxer.destroy(),this.transmuxer=null),super.onHandlerDestroying(),this.hls=this.onMediaSeeking=this.onMediaEnded=null}onHandlerDestroyed(){this.state=Ge.STOPPED,this.fragmentLoader&&this.fragmentLoader.destroy(),this.keyLoader&&this.keyLoader.destroy(),this.decrypter&&this.decrypter.destroy(),this.hls=this.log=this.warn=this.decrypter=this.keyLoader=this.fragmentLoader=this.fragmentTracker=null,super.onHandlerDestroyed()}loadFragment(t,n,r){this.startFragRequested=!0,this._loadFragForPlayback(t,n,r)}_loadFragForPlayback(t,n,r){const s=i=>{const o=i.frag;if(this.fragContextChanged(o)){this.warn(`${o.type} sn: ${o.sn}${i.part?" part: "+i.part.index:""} of ${this.fragInfo(o,!1,i.part)}) was dropped during download.`),this.fragmentTracker.removeFragment(o);return}o.stats.chunkCount++,this._handleFragmentLoadProgress(i)};this._doFragLoad(t,n,r,s).then(i=>{if(!i)return;const o=this.state,a=i.frag;if(this.fragContextChanged(a)){(o===Ge.FRAG_LOADING||!this.fragCurrent&&o===Ge.PARSING)&&(this.fragmentTracker.removeFragment(a),this.state=Ge.IDLE);return}"payload"in i&&(this.log(`Loaded ${a.type} sn: ${a.sn} of ${this.playlistLabel()} ${a.level}`),this.hls.trigger(G.FRAG_LOADED,i)),this._handleFragmentLoadComplete(i)}).catch(i=>{this.state===Ge.STOPPED||this.state===Ge.ERROR||(this.warn(`Frag error: ${i?.message||i}`),this.resetFragmentLoading(t))})}clearTrackerIfNeeded(t){var n;const{fragmentTracker:r}=this;if(r.getState(t)===br.APPENDING){const i=t.type,o=this.getFwdBufferInfo(this.mediaBuffer,i),a=Math.max(t.duration,o?o.len:this.config.maxBufferLength),l=this.backtrackFragment;((l?t.sn-l.sn:0)===1||this.reduceMaxBufferLength(a,t.duration))&&r.removeFragment(t)}else((n=this.mediaBuffer)==null?void 0:n.buffered.length)===0?r.removeAllFragments():r.hasParts(t.type)&&(r.detectPartialFragments({frag:t,part:null,stats:t.stats,id:t.type}),r.getState(t)===br.PARTIAL&&r.removeFragment(t))}checkLiveUpdate(t){if(t.updated&&!t.live){const n=t.fragments[t.fragments.length-1];this.fragmentTracker.detectPartialFragments({frag:n,part:null,stats:n.stats,id:n.type})}t.fragments[0]||(t.deltaUpdateFailed=!0)}waitForLive(t){const n=t.details;return n?.live&&n.type!=="EVENT"&&(this.levelLastLoaded!==t||n.expired)}flushMainBuffer(t,n,r=null){if(!(t-n))return;const s={startOffset:t,endOffset:n,type:r};this.hls.trigger(G.BUFFER_FLUSHING,s)}_loadInitSegment(t,n){this._doFragLoad(t,n).then(r=>{const s=r?.frag;if(!s||this.fragContextChanged(s)||!this.levels)throw new Error("init load aborted");return r}).then(r=>{const{hls:s}=this,{frag:i,payload:o}=r,a=i.decryptdata;if(o&&o.byteLength>0&&a!=null&&a.key&&a.iv&&Ec(a.method)){const l=self.performance.now();return this.decrypter.decrypt(new Uint8Array(o),a.key.buffer,a.iv.buffer,FE(a.method)).catch(u=>{throw s.trigger(G.ERROR,{type:bt.MEDIA_ERROR,details:Re.FRAG_DECRYPT_ERROR,fatal:!1,error:u,reason:u.message,frag:i}),u}).then(u=>{const c=self.performance.now();return s.trigger(G.FRAG_DECRYPTED,{frag:i,payload:u,stats:{tstart:l,tdecrypt:c}}),r.payload=u,this.completeInitSegmentLoad(r)})}return this.completeInitSegmentLoad(r)}).catch(r=>{this.state===Ge.STOPPED||this.state===Ge.ERROR||(this.warn(r),this.resetFragmentLoading(t))})}completeInitSegmentLoad(t){const{levels:n}=this;if(!n)throw new Error("init load aborted, missing levels");const r=t.frag.stats;this.state!==Ge.STOPPED&&(this.state=Ge.IDLE),t.frag.data=new Uint8Array(t.payload),r.parsing.start=r.buffering.start=self.performance.now(),r.parsing.end=r.buffering.end=self.performance.now(),this.tick()}unhandledEncryptionError(t,n){var r,s;const i=t.tracks;if(i&&!n.encrypted&&((r=i.audio)!=null&&r.encrypted||(s=i.video)!=null&&s.encrypted)&&(!this.config.emeEnabled||!this.keyLoader.emeController)){const o=this.media,a=new Error(`Encrypted track with no key in ${this.fragInfo(n)} (media ${o?"attached mediaKeys: "+o.mediaKeys:"detached"})`);return this.warn(a.message),!o||o.mediaKeys?!1:(this.hls.trigger(G.ERROR,{type:bt.KEY_SYSTEM_ERROR,details:Re.KEY_SYSTEM_NO_KEYS,fatal:!1,error:a,frag:n}),this.resetTransmuxer(),!0)}return!1}fragContextChanged(t){const{fragCurrent:n}=this;return!t||!n||t.sn!==n.sn||t.level!==n.level}fragBufferedComplete(t,n){const r=this.mediaBuffer?this.mediaBuffer:this.media;if(this.log(`Buffered ${t.type} sn: ${t.sn}${n?" part: "+n.index:""} of ${this.fragInfo(t,!1,n)} > buffer:${r?cfe.toString(Ft.getBuffered(r)):"(detached)"})`),mr(t)){var s;if(t.type!==pt.SUBTITLE){const o=t.elementaryStreams;if(!Object.keys(o).some(a=>!!o[a])){this.state=Ge.IDLE;return}}const i=(s=this.levels)==null?void 0:s[t.level];i!=null&&i.fragmentError&&(this.log(`Resetting level fragment error count of ${i.fragmentError} on frag buffered`),i.fragmentError=0)}this.state=Ge.IDLE}_handleFragmentLoadComplete(t){const{transmuxer:n}=this;if(!n)return;const{frag:r,part:s,partsLoaded:i}=t,o=!i||i.length===0||i.some(l=>!l),a=new ME(r.level,r.sn,r.stats.chunkCount+1,0,s?s.index:-1,!o);n.flush(a)}_handleFragmentLoadProgress(t){}_doFragLoad(t,n,r=null,s){var i;this.fragCurrent=t;const o=n.details;if(!this.levels||!o)throw new Error(`frag load aborted, missing level${o?"":" detail"}s`);let a=null;if(t.encrypted&&!((i=t.decryptdata)!=null&&i.key)){if(this.log(`Loading key for ${t.sn} of [${o.startSN}-${o.endSN}], ${this.playlistLabel()} ${t.level}`),this.state=Ge.KEY_LOADING,this.fragCurrent=t,a=this.keyLoader.load(t).then(f=>{if(!this.fragContextChanged(f.frag))return this.hls.trigger(G.KEY_LOADED,f),this.state===Ge.KEY_LOADING&&(this.state=Ge.IDLE),f}),this.hls.trigger(G.KEY_LOADING,{frag:t}),this.fragCurrent===null)return this.log("context changed in KEY_LOADING"),Promise.resolve(null)}else t.encrypted||(a=this.keyLoader.loadClear(t,o.encryptedFragments,this.startFragRequested),a&&this.log("[eme] blocking frag load until media-keys acquired"));const l=this.fragPrevious;if(mr(t)&&(!l||t.sn!==l.sn)){const f=this.shouldLoadParts(n.details,t.end);f!==this.loadingParts&&(this.log(`LL-Part loading ${f?"ON":"OFF"} loading sn ${l?.sn}->${t.sn}`),this.loadingParts=f)}if(r=Math.max(t.start,r||0),this.loadingParts&&mr(t)){const f=o.partList;if(f&&s){r>o.fragmentEnd&&o.fragmentHint&&(t=o.fragmentHint);const h=this.getNextPart(f,t,r);if(h>-1){const p=f[h];t=this.fragCurrent=p.fragment,this.log(`Loading ${t.type} sn: ${t.sn} part: ${p.index} (${h}/${f.length-1}) of ${this.fragInfo(t,!1,p)}) cc: ${t.cc} [${o.startSN}-${o.endSN}], target: ${parseFloat(r.toFixed(3))}`),this.nextLoadPosition=p.start+p.duration,this.state=Ge.FRAG_LOADING;let m;return a?m=a.then(v=>!v||this.fragContextChanged(v.frag)?null:this.doFragPartsLoad(t,p,n,s)).catch(v=>this.handleFragLoadError(v)):m=this.doFragPartsLoad(t,p,n,s).catch(v=>this.handleFragLoadError(v)),this.hls.trigger(G.FRAG_LOADING,{frag:t,part:p,targetBufferTime:r}),this.fragCurrent===null?Promise.reject(new Error("frag load aborted, context changed in FRAG_LOADING parts")):m}else if(!t.url||this.loadedEndOfParts(f,r))return Promise.resolve(null)}}if(mr(t)&&this.loadingParts){var u;this.log(`LL-Part loading OFF after next part miss @${r.toFixed(2)} Check buffer at sn: ${t.sn} loaded parts: ${(u=o.partList)==null?void 0:u.filter(f=>f.loaded).map(f=>`[${f.start}-${f.end}]`)}`),this.loadingParts=!1}else if(!t.url)return Promise.resolve(null);this.log(`Loading ${t.type} sn: ${t.sn} of ${this.fragInfo(t,!1)}) cc: ${t.cc} ${"["+o.startSN+"-"+o.endSN+"]"}, target: ${parseFloat(r.toFixed(3))}`),lt(t.sn)&&!this.bitrateTest&&(this.nextLoadPosition=t.start+t.duration),this.state=Ge.FRAG_LOADING;const c=this.config.progressive;let d;return c&&a?d=a.then(f=>!f||this.fragContextChanged(f.frag)?null:this.fragmentLoader.load(t,s)).catch(f=>this.handleFragLoadError(f)):d=Promise.all([this.fragmentLoader.load(t,c?s:void 0),a]).then(([f])=>(!c&&s&&s(f),f)).catch(f=>this.handleFragLoadError(f)),this.hls.trigger(G.FRAG_LOADING,{frag:t,targetBufferTime:r}),this.fragCurrent===null?Promise.reject(new Error("frag load aborted, context changed in FRAG_LOADING")):d}doFragPartsLoad(t,n,r,s){return new Promise((i,o)=>{var a;const l=[],u=(a=r.details)==null?void 0:a.partList,c=d=>{this.fragmentLoader.loadPart(t,d,s).then(f=>{l[d.index]=f;const h=f.part;this.hls.trigger(G.FRAG_LOADED,f);const p=MI(r.details,t.sn,d.index+1)||z6(u,t.sn,d.index+1);if(p)c(p);else return i({frag:t,part:h,partsLoaded:l})}).catch(o)};c(n)})}handleFragLoadError(t){if("data"in t){const n=t.data;n.frag&&n.details===Re.INTERNAL_ABORTED?this.handleFragLoadAborted(n.frag,n.part):n.frag&&n.type===bt.KEY_SYSTEM_ERROR?(n.frag.abortRequests(),this.resetStartWhenNotLoaded(),this.resetFragmentLoading(n.frag)):this.hls.trigger(G.ERROR,n)}else this.hls.trigger(G.ERROR,{type:bt.OTHER_ERROR,details:Re.INTERNAL_EXCEPTION,err:t,error:t,fatal:!0});return null}_handleTransmuxerFlush(t){const n=this.getCurrentContext(t);if(!n||this.state!==Ge.PARSING){!this.fragCurrent&&this.state!==Ge.STOPPED&&this.state!==Ge.ERROR&&(this.state=Ge.IDLE);return}const{frag:r,part:s,level:i}=n,o=self.performance.now();r.stats.parsing.end=o,s&&(s.stats.parsing.end=o);const a=this.getLevelDetails(),u=a&&r.sn>a.endSN||this.shouldLoadParts(a,r.end);u!==this.loadingParts&&(this.log(`LL-Part loading ${u?"ON":"OFF"} after parsing segment ending @${r.end.toFixed(2)}`),this.loadingParts=u),this.updateLevelTiming(r,s,i,t.partial)}shouldLoadParts(t,n){if(this.config.lowLatencyMode){if(!t)return this.loadingParts;if(t.partList){var r;const i=t.partList[0];if(i.fragment.type===pt.SUBTITLE)return!1;const o=i.end+(((r=t.fragmentHint)==null?void 0:r.duration)||0);if(n>=o){var s;if((this.hls.hasEnoughToStart?((s=this.media)==null?void 0:s.currentTime)||this.lastCurrentTime:this.getLoadPosition())>i.start-i.fragment.duration)return!0}}}return!1}getCurrentContext(t){const{levels:n,fragCurrent:r}=this,{level:s,sn:i,part:o}=t;if(!(n!=null&&n[s]))return this.warn(`Levels object was unset while buffering fragment ${i} of ${this.playlistLabel()} ${s}. The current chunk will not be buffered.`),null;const a=n[s],l=a.details,u=o>-1?MI(l,i,o):null,c=u?u.fragment:j6(l,i,r);return c?(r&&r!==c&&(c.stats=r.stats),{frag:c,part:u,level:a}):null}bufferFragmentData(t,n,r,s,i){if(this.state!==Ge.PARSING)return;const{data1:o,data2:a}=t;let l=o;if(a&&(l=ji(o,a)),!l.length)return;const u=this.initPTS[n.cc],c=u?-u.baseTime/u.timescale:void 0,d={type:t.type,frag:n,part:r,chunkMeta:s,offset:c,parent:n.type,data:l};if(this.hls.trigger(G.BUFFER_APPENDING,d),t.dropped&&t.independent&&!r){if(i)return;this.flushBufferGap(n)}}flushBufferGap(t){const n=this.media;if(!n)return;if(!Ft.isBuffered(n,n.currentTime)){this.flushMainBuffer(0,t.start);return}const r=n.currentTime,s=Ft.bufferInfo(n,r,0),i=t.duration,o=Math.min(this.config.maxFragLookUpTolerance*2,i*.25),a=Math.max(Math.min(t.start-o,s.end-o),r+o);t.start-a>o&&this.flushMainBuffer(a,t.start)}getFwdBufferInfo(t,n){var r;const s=this.getLoadPosition();if(!lt(s))return null;const o=this.lastCurrentTime>s||(r=this.media)!=null&&r.paused?0:this.config.maxBufferHole;return this.getFwdBufferInfoAtPos(t,s,n,o)}getFwdBufferInfoAtPos(t,n,r,s){const i=Ft.bufferInfo(t,n,s);if(i.len===0&&i.nextStart!==void 0){const o=this.fragmentTracker.getBufferedFrag(n,r);if(o&&(i.nextStart<=o.end||o.gap)){const a=Math.max(Math.min(i.nextStart,o.end)-n,s);return Ft.bufferInfo(t,n,a)}}return i}getMaxBufferLength(t){const{config:n}=this;let r;return t?r=Math.max(8*n.maxBufferSize/t,n.maxBufferLength):r=n.maxBufferLength,Math.min(r,n.maxMaxBufferLength)}reduceMaxBufferLength(t,n){const r=this.config,s=Math.max(Math.min(t-n,r.maxBufferLength),n),i=Math.max(t-n*3,r.maxMaxBufferLength/2,s);return i>=s?(r.maxMaxBufferLength=i,this.warn(`Reduce max buffer length to ${i}s`),!0):!1}getAppendedFrag(t,n=pt.MAIN){const r=this.fragmentTracker?this.fragmentTracker.getAppendedFrag(t,n):null;return r&&"fragment"in r?r.fragment:r}getNextFragment(t,n){const r=n.fragments,s=r.length;if(!s)return null;const{config:i}=this,o=r[0].start,a=i.lowLatencyMode&&!!n.partList;let l=null;if(n.live){const d=i.initialLiveManifestSize;if(s<d)return this.warn(`Not enough fragments to start playback (have: ${s}, need: ${d})`),null;if(!n.PTSKnown&&!this.startFragRequested&&this.startPosition===-1||t<o){var u;a&&!this.loadingParts&&(this.log("LL-Part loading ON for initial live fragment"),this.loadingParts=!0),l=this.getInitialLiveFragment(n);const f=this.hls.startPosition,h=this.hls.liveSyncPosition,p=l?(f!==-1&&f>=o?f:h)||l.start:t;this.log(`Setting startPosition to ${p} to match start frag at live edge. mainStart: ${f} liveSyncPosition: ${h} frag.start: ${(u=l)==null?void 0:u.start}`),this.startPosition=this.nextLoadPosition=p}}else t<=o&&(l=r[0]);if(!l){const d=this.loadingParts?n.partEnd:n.fragmentEnd;l=this.getFragmentAtPosition(t,d,n)}let c=this.filterReplacedPrimary(l,n);if(!c&&l){const d=l.sn-n.startSN;c=this.filterReplacedPrimary(r[d+1]||null,n)}return this.mapToInitFragWhenRequired(c)}isLoopLoading(t,n){const r=this.fragmentTracker.getState(t);return(r===br.OK||r===br.PARTIAL&&!!t.gap)&&this.nextLoadPosition>n}getNextFragmentLoopLoading(t,n,r,s,i){let o=null;if(t.gap&&(o=this.getNextFragment(this.nextLoadPosition,n),o&&!o.gap&&r.nextStart)){const a=this.getFwdBufferInfoAtPos(this.mediaBuffer?this.mediaBuffer:this.media,r.nextStart,s,0);if(a!==null&&r.len+a.len>=i){const l=o.sn;return this.loopSn!==l&&(this.log(`buffer full after gaps in "${s}" playlist starting at sn: ${l}`),this.loopSn=l),null}}return this.loopSn=void 0,o}get primaryPrefetch(){if(NI(this.config)){var t;if((t=this.hls.interstitialsManager)==null||(t=t.playingItem)==null?void 0:t.event)return!0}return!1}filterReplacedPrimary(t,n){if(!t)return t;if(NI(this.config)&&t.type!==pt.SUBTITLE){const r=this.hls.interstitialsManager,s=r?.bufferingItem;if(s){const o=s.event;if(o){if(o.appendInPlace||Math.abs(t.start-s.start)>1||s.start===0)return null}else if(t.end<=s.start&&n?.live===!1||t.start>s.end&&s.nextEvent&&(s.nextEvent.appendInPlace||t.start-s.end>1))return null}const i=r?.playerQueue;if(i)for(let o=i.length;o--;){const a=i[o].interstitial;if(a.appendInPlace&&t.start>=a.startTime&&t.end<=a.resumeTime)return null}}return t}mapToInitFragWhenRequired(t){return t!=null&&t.initSegment&&!t.initSegment.data&&!this.bitrateTest?t.initSegment:t}getNextPart(t,n,r){let s=-1,i=!1,o=!0;for(let a=0,l=t.length;a<l;a++){const u=t[a];if(o=o&&!u.independent,s>-1&&r<u.start)break;const c=u.loaded;c?s=-1:(i||(u.independent||o)&&u.fragment===n)&&(u.fragment!==n&&this.warn(`Need buffer at ${r} but next unloaded part starts at ${u.start}`),s=a),i=c}return s}loadedEndOfParts(t,n){let r;for(let s=t.length;s--;){if(r=t[s],!r.loaded)return!1;if(n>r.start)return!0}return!1}getInitialLiveFragment(t){const n=t.fragments,r=this.fragPrevious;let s=null;if(r){if(t.hasProgramDateTime&&(this.log(`Live playlist, switching playlist, load frag with same PDT: ${r.programDateTime}`),s=Cde(n,r.endProgramDateTime,this.config.maxFragLookUpTolerance)),!s){const i=r.sn+1;if(i>=t.startSN&&i<=t.endSN){const o=n[i-t.startSN];r.cc===o.cc&&(s=o,this.log(`Live playlist, switching playlist, load frag with next SN: ${s.sn}`))}s||(s=k6(t,r.cc,r.end),s&&this.log(`Live playlist, switching playlist, load frag with same CC: ${s.sn}`))}}else{const i=this.hls.liveSyncPosition;i!==null&&(s=this.getFragmentAtPosition(i,this.bitrateTest?t.fragmentEnd:t.edge,t))}return s}getFragmentAtPosition(t,n,r){const{config:s}=this;let{fragPrevious:i}=this,{fragments:o,endSN:a}=r;const{fragmentHint:l}=r,{maxFragLookUpTolerance:u}=s,c=r.partList,d=!!(this.loadingParts&&c!=null&&c.length&&l);d&&!this.bitrateTest&&c[c.length-1].fragment.sn===l.sn&&(o=o.concat(l),a=l.sn);let f;if(t<n){var h;const m=t<this.lastCurrentTime||t>n-u||(h=this.media)!=null&&h.paused||!this.startFragRequested?0:u;f=Au(i,o,t,m)}else f=o[o.length-1];if(f){const p=f.sn-r.startSN,m=this.fragmentTracker.getState(f);if((m===br.OK||m===br.PARTIAL&&f.gap)&&(i=f),i&&f.sn===i.sn&&(!d||c[0].fragment.sn>f.sn||!r.live)&&f.level===i.level){const x=o[p+1];f.sn<a&&this.fragmentTracker.getState(x)!==br.OK?f=x:f=null}}return f}alignPlaylists(t,n,r){const s=t.fragments.length;if(!s)return this.warn("No fragments in live playlist"),0;const i=t.fragmentStart,o=!n,a=t.alignedSliding&&lt(i);if(o||!a&&!i){ufe(r,t);const l=t.fragmentStart;return this.log(`Live playlist sliding: ${l.toFixed(2)} start-sn: ${n?n.startSN:"na"}->${t.startSN} fragments: ${s}`),l}return i}waitForCdnTuneIn(t){return t.live&&t.canBlockReload&&t.partTarget&&t.tuneInGoal>Math.max(t.partHoldBack,t.partTarget*3)}setStartPosition(t,n){let r=this.startPosition;r<n&&(r=-1);const s=this.timelineOffset;if(r===-1){const i=this.startTimeOffset!==null,o=i?this.startTimeOffset:t.startTimeOffset;o!==null&&lt(o)?(r=n+o,o<0&&(r+=t.edge),r=Math.min(Math.max(n,r),n+t.totalduration),this.log(`Setting startPosition to ${r} for start time offset ${o} found in ${i?"multivariant":"media"} playlist`),this.startPosition=r):t.live?(r=this.hls.liveSyncPosition||n,this.log(`Setting startPosition to -1 to start at live edge ${r}`),this.startPosition=-1):(this.log("setting startPosition to 0 by default"),this.startPosition=r=0),this.lastCurrentTime=r+s}this.nextLoadPosition=r+s}getLoadPosition(){var t;const{media:n}=this;let r=0;return(t=this.hls)!=null&&t.hasEnoughToStart&&n?r=n.currentTime:this.nextLoadPosition>=0&&(r=this.nextLoadPosition),r}handleFragLoadAborted(t,n){this.transmuxer&&t.type===this.playlistType&&mr(t)&&t.stats.aborted&&(this.log(`Fragment ${t.sn}${n?" part "+n.index:""} of ${this.playlistLabel()} ${t.level} was aborted`),this.resetFragmentLoading(t))}resetFragmentLoading(t){(!this.fragCurrent||!this.fragContextChanged(t)&&this.state!==Ge.FRAG_LOADING_WAITING_RETRY)&&(this.state=Ge.IDLE)}onFragmentOrKeyLoadError(t,n){var r;if(n.chunkMeta&&!n.frag){const x=this.getCurrentContext(n.chunkMeta);x&&(n.frag=x.frag)}const s=n.frag;if(!s||s.type!==t||!this.levels)return;if(this.fragContextChanged(s)){var i;this.warn(`Frag load error must match current frag to retry ${s.url} > ${(i=this.fragCurrent)==null?void 0:i.url}`);return}const o=n.details===Re.FRAG_GAP;o&&this.fragmentTracker.fragBuffered(s,!0);const a=n.errorAction;if(!a){this.state=Ge.ERROR;return}const{action:l,flags:u,retryCount:c=0,retryConfig:d}=a,f=!!d,h=f&&l===Vr.RetryRequest,p=f&&!a.resolved&&u===ei.MoveAllAlternatesMatchingHost,m=(r=this.hls.latestLevelDetails)==null?void 0:r.live;if(!h&&p&&mr(s)&&!s.endList&&m&&!L6(n))this.resetFragmentErrors(t),this.treatAsGap(s),a.resolved=!0;else if((h||p)&&c<d.maxNumRetry){var v;const x=_2((v=n.response)==null?void 0:v.code),g=OE(d,c);if(this.resetStartWhenNotLoaded(),this.retryDate=self.performance.now()+g,this.state=Ge.FRAG_LOADING_WAITING_RETRY,a.resolved=!0,x){this.log("Waiting for connection (offline)"),this.retryDate=1/0,n.reason="offline";return}this.warn(`Fragment ${s.sn} of ${t} ${s.level} errored with ${n.details}, retrying loading ${c+1}/${d.maxNumRetry} in ${g}ms`)}else if(d)if(this.resetFragmentErrors(t),c<d.maxNumRetry)!o&&l!==Vr.RemoveAlternatePermanently&&(a.resolved=!0);else{this.warn(`${n.details} reached or exceeded max retry (${c})`);return}else l===Vr.SendAlternateToPenaltyBox?this.state=Ge.WAITING_LEVEL:this.state=Ge.ERROR;this.tickImmediate()}checkRetryDate(){const t=self.performance.now(),n=this.retryDate,r=n===1/0;(!n||t>=n||r&&!_2(0))&&(r&&this.log("Connection restored (online)"),this.resetStartWhenNotLoaded(),this.state=Ge.IDLE)}reduceLengthAndFlushBuffer(t){if(this.state===Ge.PARSING||this.state===Ge.PARSED){const n=t.frag,r=t.parent,s=this.getFwdBufferInfo(this.mediaBuffer,r),i=s&&s.len>.5;i&&this.reduceMaxBufferLength(s.len,n?.duration||10);const o=!i;return o&&this.warn(`Buffer full error while media.currentTime (${this.getLoadPosition()}) is not buffered, flush ${r} buffer`),n&&(this.fragmentTracker.removeFragment(n),this.nextLoadPosition=n.start),this.resetLoadingState(),o}return!1}resetFragmentErrors(t){t===pt.AUDIO&&(this.fragCurrent=null),this.hls.hasEnoughToStart||(this.startFragRequested=!1),this.state!==Ge.STOPPED&&(this.state=Ge.IDLE)}afterBufferFlushed(t,n,r){if(!t)return;const s=Ft.getBuffered(t);this.fragmentTracker.detectEvictedFragments(n,s,r),this.state===Ge.ENDED&&this.resetLoadingState()}resetLoadingState(){this.log("Reset loading state"),this.fragCurrent=null,this.fragPrevious=null,this.state!==Ge.STOPPED&&(this.state=Ge.IDLE)}resetStartWhenNotLoaded(){if(!this.hls.hasEnoughToStart){this.startFragRequested=!1;const t=this.levelLastLoaded,n=t?t.details:null;n!=null&&n.live?(this.log("resetting startPosition for live start"),this.startPosition=-1,this.setStartPosition(n,n.fragmentStart),this.resetLoadingState()):this.nextLoadPosition=this.startPosition}}resetWhenMissingContext(t){this.log(`Loading context changed while buffering sn ${t.sn} of ${this.playlistLabel()} ${t.level===-1?"<removed>":t.level}. This chunk will not be buffered.`),this.removeUnbufferedFrags(),this.resetStartWhenNotLoaded(),this.resetLoadingState()}removeUnbufferedFrags(t=0){this.fragmentTracker.removeFragmentsInRange(t,1/0,this.playlistType,!1,!0)}updateLevelTiming(t,n,r,s){const i=r.details;if(!i){this.warn("level.details undefined");return}if(!Object.keys(t.elementaryStreams).reduce((l,u)=>{const c=t.elementaryStreams[u];if(c){const d=c.endPTS-c.startPTS;if(d<=0)return this.warn(`Could not parse fragment ${t.sn} ${u} duration reliably (${d})`),l||!1;const f=s?0:N6(i,t,c.startPTS,c.endPTS,c.startDTS,c.endDTS,this);return this.hls.trigger(G.LEVEL_PTS_UPDATED,{details:i,level:r,drift:f,type:u,frag:t,start:c.startPTS,end:c.endPTS}),!0}return l},!1)){var a;if(r.fragmentError===0&&this.treatAsGap(t,r),((a=this.transmuxer)==null?void 0:a.error)===null){const l=new Error(`Found no media in fragment ${t.sn} of ${this.playlistLabel()} ${t.level} resetting transmuxer to fallback to playlist timing`);if(this.warn(l.message),this.hls.trigger(G.ERROR,{type:bt.MEDIA_ERROR,details:Re.FRAG_PARSING_ERROR,fatal:!1,error:l,frag:t,reason:`Found no media in msn ${t.sn} of ${this.playlistLabel()} "${r.url}"`}),!this.hls)return;this.resetTransmuxer()}}this.state=Ge.PARSED,this.log(`Parsed ${t.type} sn: ${t.sn}${n?" part: "+n.index:""} of ${this.fragInfo(t,!1,n)})`),this.hls.trigger(G.FRAG_PARSED,{frag:t,part:n})}playlistLabel(){return this.playlistType===pt.MAIN?"level":"track"}fragInfo(t,n=!0,r){var s,i;return`${this.playlistLabel()} ${t.level} (${r?"part":"frag"}:[${((s=n&&!r?t.startPTS:(r||t).start)!=null?s:NaN).toFixed(3)}-${((i=n&&!r?t.endPTS:(r||t).end)!=null?i:NaN).toFixed(3)}]${r&&t.type==="main"?"INDEPENDENT="+(r.independent?"YES":"NO"):""}`}treatAsGap(t,n){n&&n.fragmentError++,t.gap=!0,this.fragmentTracker.removeFragment(t),this.fragmentTracker.fragBuffered(t,!0)}resetTransmuxer(){var t;(t=this.transmuxer)==null||t.reset()}recoverWorkerError(t){t.event==="demuxerWorker"&&(this.fragmentTracker.removeAllFragments(),this.transmuxer&&(this.transmuxer.destroy(),this.transmuxer=null),this.resetStartWhenNotLoaded(),this.resetLoadingState())}set state(t){const n=this._state;n!==t&&(this._state=t,this.log(`${n}->${t}`))}get state(){return this._state}}function NI(e){return!!e.interstitialsController&&e.enableInterstitialPlayback!==!1}class W6{constructor(){this.chunks=[],this.dataLength=0}push(t){this.chunks.push(t),this.dataLength+=t.length}flush(){const{chunks:t,dataLength:n}=this;let r;if(t.length)t.length===1?r=t[0]:r=dfe(t,n);else return new Uint8Array(0);return this.reset(),r}reset(){this.chunks.length=0,this.dataLength=0}}function dfe(e,t){const n=new Uint8Array(t);let r=0;for(let s=0;s<e.length;s++){const i=e[s];n.set(i,r),r+=i.length}return n}var xx={exports:{}},VI;function ffe(){return VI||(VI=1,(function(e){var t=Object.prototype.hasOwnProperty,n="~";function r(){}Object.create&&(r.prototype=Object.create(null),new r().__proto__||(n=!1));function s(l,u,c){this.fn=l,this.context=u,this.once=c||!1}function i(l,u,c,d,f){if(typeof c!="function")throw new TypeError("The listener must be a function");var h=new s(c,d||l,f),p=n?n+u:u;return l._events[p]?l._events[p].fn?l._events[p]=[l._events[p],h]:l._events[p].push(h):(l._events[p]=h,l._eventsCount++),l}function o(l,u){--l._eventsCount===0?l._events=new r:delete l._events[u]}function a(){this._events=new r,this._eventsCount=0}a.prototype.eventNames=function(){var u=[],c,d;if(this._eventsCount===0)return u;for(d in c=this._events)t.call(c,d)&&u.push(n?d.slice(1):d);return Object.getOwnPropertySymbols?u.concat(Object.getOwnPropertySymbols(c)):u},a.prototype.listeners=function(u){var c=n?n+u:u,d=this._events[c];if(!d)return[];if(d.fn)return[d.fn];for(var f=0,h=d.length,p=new Array(h);f<h;f++)p[f]=d[f].fn;return p},a.prototype.listenerCount=function(u){var c=n?n+u:u,d=this._events[c];return d?d.fn?1:d.length:0},a.prototype.emit=function(u,c,d,f,h,p){var m=n?n+u:u;if(!this._events[m])return!1;var v=this._events[m],x=arguments.length,g,y;
vendor: 4,215 bytes, line 107
107if(v.fn){switch(v.once&&this.removeListener(u,v.fn,void 0,!0),x){case 1:return v.fn.call(v.context),!0;case 2:return v.fn.call(v.context,c),!0;case 3:return v.fn.call(v.context,c,d),!0;case 4:return v.fn.call(v.context,c,d,f),!0;case 5:return v.fn.call(v.context,c,d,f,h),!0;case 6:return v.fn.call(v.context,c,d,f,h,p),!0}for(y=1,g=new Array(x-1);y<x;y++)g[y-1]=arguments[y];v.fn.apply(v.context,g)}else{var _=v.length,E;for(y=0;y<_;y++)switch(v[y].once&&this.removeListener(u,v[y].fn,void 0,!0),x){case 1:v[y].fn.call(v[y].context);break;case 2:v[y].fn.call(v[y].context,c);break;case 3:v[y].fn.call(v[y].context,c,d);break;case 4:v[y].fn.call(v[y].context,c,d,f);break;default:if(!g)for(E=1,g=new Array(x-1);E<x;E++)g[E-1]=arguments[E];v[y].fn.apply(v[y].context,g)}}return!0},a.prototype.on=function(u,c,d){return i(this,u,c,d,!1)},a.prototype.once=function(u,c,d){return i(this,u,c,d,!0)},a.prototype.removeListener=function(u,c,d,f){var h=n?n+u:u;if(!this._events[h])return this;if(!c)return o(this,h),this;var p=this._events[h];if(p.fn)p.fn===c&&(!f||p.once)&&(!d||p.context===d)&&o(this,h);else{for(var m=0,v=[],x=p.length;m<x;m++)(p[m].fn!==c||f&&!p[m].once||d&&p[m].context!==d)&&v.push(p[m]);v.length?this._events[h]=v.length===1?v[0]:v:o(this,h)}return this},a.prototype.removeAllListeners=function(u){var c;return u?(c=n?n+u:u,this._events[c]&&o(this,c)):(this._events=new r,this._eventsCount=0),this},a.prototype.off=a.prototype.removeListener,a.prototype.addListener=a.prototype.on,a.prefixed=n,a.EventEmitter=a,e.exports=a})(xx)),xx.exports}var hfe=ffe(),VE=Bce(hfe);const fh="1.6.14",Zc={};function pfe(){return typeof __HLS_WORKER_BUNDLE__=="function"}function mfe(){const e=Zc[fh];if(e)return e.clientCount++,e;const t=new self.Blob([`var exports={};var module={exports:exports};function define(f){f()};define.amd=true;(${__HLS_WORKER_BUNDLE__.toString()})(true);`],{type:"text/javascript"}),n=self.URL.createObjectURL(t),s={worker:new self.Worker(n),objectURL:n,clientCount:1};return Zc[fh]=s,s}function vfe(e){const t=Zc[e];if(t)return t.clientCount++,t;const n=new self.URL(e,self.location.href).href,s={worker:new self.Worker(n),scriptURL:n,clientCount:1};return Zc[e]=s,s}function gfe(e){const t=Zc[e||fh];if(t&&t.clientCount--===1){const{worker:r,objectURL:s}=t;delete Zc[e||fh],s&&self.URL.revokeObjectURL(s),r.terminate()}}function q6(e,t){return t+10<=e.length&&e[t]===51&&e[t+1]===68&&e[t+2]===73&&e[t+3]<255&&e[t+4]<255&&e[t+6]<128&&e[t+7]<128&&e[t+8]<128&&e[t+9]<128}function UE(e,t){return t+10<=e.length&&e[t]===73&&e[t+1]===68&&e[t+2]===51&&e[t+3]<255&&e[t+4]<255&&e[t+6]<128&&e[t+7]<128&&e[t+8]<128&&e[t+9]<128}function Ky(e,t){let n=0;return n=(e[t]&127)<<21,n|=(e[t+1]&127)<<14,n|=(e[t+2]&127)<<7,n|=e[t+3]&127,n}function hh(e,t){const n=t;let r=0;for(;UE(e,t);){r+=10;const s=Ky(e,t+6);r+=s,q6(e,t+10)&&(r+=10),t+=r}if(r>0)return e.subarray(n,n+r)}function yfe(e,t,n,r){const s=[96e3,88200,64e3,48e3,44100,32e3,24e3,22050,16e3,12e3,11025,8e3,7350],i=t[n+2],o=i>>2&15;if(o>12){const h=new Error(`invalid ADTS sampling index:${o}`);e.emit(G.ERROR,G.ERROR,{type:bt.MEDIA_ERROR,details:Re.FRAG_PARSING_ERROR,fatal:!0,error:h,reason:h.message});return}const a=(i>>6&3)+1,l=t[n+3]>>6&3|(i&1)<<2,u="mp4a.40."+a,c=s[o];let d=o;(a===5||a===29)&&(d-=3);const f=[a<<3|(d&14)>>1,(d&1)<<7|l<<3];return En.log(`manifest codec:${r}, parsed codec:${u}, channels:${l}, rate:${c} (ADTS object type:${a} sampling index:${o})`),{config:f,samplerate:c,channelCount:l,codec:u,parsedCodec:u,manifestCodec:r}}function Y6(e,t){return e[t]===255&&(e[t+1]&246)===240}function X6(e,t){return e[t+1]&1?7:9}function jE(e,t){return(e[t+3]&3)<<11|e[t+4]<<3|(e[t+5]&224)>>>5}function xfe(e,t){return t+5<e.length}function yg(e,t){return t+1<e.length&&Y6(e,t)}function bfe(e,t){return xfe(e,t)&&Y6(e,t)&&jE(e,t)<=e.length-t}function _fe(e,t){if(yg(e,t)){const n=X6(e,t);if(t+n>=e.length)return!1;const r=jE(e,t);if(r<=n)return!1;const s=t+r;return s===e.length||yg(e,s)}return!1}function Z6(e,t,n,r,s){if(!e.samplerate){const i=yfe(t,n,r,s);if(!i)return;kn(e,i)}}function J6(e){return 1024*9e4/e}function Sfe(e,t){const n=X6(e,t);if(t+n<=e.length){const r=jE(e,t)-n;if(r>0)return{headerLength:n,frameLength:r}}}
vendor: 5,061 bytes, line 107
107function Q6(e,t,n,r,s){const i=J6(e.samplerate),o=r+s*i,a=Sfe(t,n);let l;if(a){const{frameLength:d,headerLength:f}=a,h=f+d,p=Math.max(0,n+h-t.length);p?(l=new Uint8Array(h-f),l.set(t.subarray(n+f,t.length),0)):l=t.subarray(n+f,n+h);const m={unit:l,pts:o};return p||e.samples.push(m),{sample:m,length:h,missing:p}}const u=t.length-n;return l=new Uint8Array(u),l.set(t.subarray(n,t.length),0),{sample:{unit:l,pts:o},length:u,missing:-1}}function Efe(e,t){return UE(e,t)&&Ky(e,t+6)+10<=e.length-t}function wfe(e){return e instanceof ArrayBuffer?e:e.byteOffset==0&&e.byteLength==e.buffer.byteLength?e.buffer:new Uint8Array(e).buffer}function bx(e,t=0,n=1/0){return Tfe(e,t,n,Uint8Array)}function Tfe(e,t,n,r){const s=Cfe(e);let i=1;"BYTES_PER_ELEMENT"in r&&(i=r.BYTES_PER_ELEMENT);const o=Afe(e)?e.byteOffset:0,a=(o+e.byteLength)/i,l=(o+t)/i,u=Math.floor(Math.max(0,Math.min(l,a))),c=Math.floor(Math.min(u+Math.max(n,0),a));return new r(s,u,c-u)}function Cfe(e){return e instanceof ArrayBuffer?e:e.buffer}function Afe(e){return e&&e.buffer instanceof ArrayBuffer&&e.byteLength!==void 0&&e.byteOffset!==void 0}function kfe(e){const t={key:e.type,description:"",data:"",mimeType:null,pictureType:null},n=3;if(e.size<2)return;if(e.data[0]!==n){console.log("Ignore frame with unrecognized character encoding");return}const r=e.data.subarray(1).indexOf(0);if(r===-1)return;const s=ui(bx(e.data,1,r)),i=e.data[2+r],o=e.data.subarray(3+r).indexOf(0);if(o===-1)return;const a=ui(bx(e.data,3+r,o));let l;return s==="-->"?l=ui(bx(e.data,4+r+o)):l=wfe(e.data.subarray(4+r+o)),t.mimeType=s,t.pictureType=i,t.description=a,t.data=l,t}function Ife(e){if(e.size<2)return;const t=ui(e.data,!0),n=new Uint8Array(e.data.subarray(t.length+1));return{key:e.type,info:t,data:n.buffer}}function Lfe(e){if(e.size<2)return;if(e.type==="TXXX"){let n=1;const r=ui(e.data.subarray(n),!0);n+=r.length+1;const s=ui(e.data.subarray(n));return{key:e.type,info:r,data:s}}const t=ui(e.data.subarray(1));return{key:e.type,info:"",data:t}}function Dfe(e){if(e.type==="WXXX"){if(e.size<2)return;let n=1;const r=ui(e.data.subarray(n),!0);n+=r.length+1;const s=ui(e.data.subarray(n));return{key:e.type,info:r,data:s}}const t=ui(e.data);return{key:e.type,info:"",data:t}}function Pfe(e){return e.type==="PRIV"?Ife(e):e.type[0]==="W"?Dfe(e):e.type==="APIC"?kfe(e):Lfe(e)}function Rfe(e){const t=String.fromCharCode(e[0],e[1],e[2],e[3]),n=Ky(e,4),r=10;return{type:t,size:n,data:e.subarray(r,r+n)}}const rp=10,Ofe=10;function e5(e){let t=0;const n=[];for(;UE(e,t);){const r=Ky(e,t+6);e[t+5]>>6&1&&(t+=rp),t+=rp;const s=t+r;for(;t+Ofe<s;){const i=Rfe(e.subarray(t)),o=Pfe(i);o&&n.push(o),t+=i.size+rp}q6(e,t)&&(t+=rp)}return n}function t5(e){return e&&e.key==="PRIV"&&e.info==="com.apple.streaming.transportStreamTimestamp"}function $fe(e){if(e.data.byteLength===8){const t=new Uint8Array(e.data),n=t[3]&1;let r=(t[4]<<23)+(t[5]<<15)+(t[6]<<7)+t[7];return r/=45,n&&(r+=4772185884e-2),Math.round(r)}}function zE(e){const t=e5(e);for(let n=0;n<t.length;n++){const r=t[n];if(t5(r))return $fe(r)}}let si=(function(e){return e.audioId3="org.id3",e.dateRange="com.apple.quicktime.HLS",e.emsg="https://aomedia.org/emsg/ID3",e.misbklv="urn:misb:KLV:bin:1910.1",e})({});function To(e="",t=9e4){return{type:e,id:-1,pid:-1,inputTimeScale:t,sequenceNumber:-1,samples:[],dropped:0}}class HE{constructor(){this._audioTrack=void 0,this._id3Track=void 0,this.frameIndex=0,this.cachedData=null,this.basePTS=null,this.initPTS=null,this.lastPTS=null}resetInitSegment(t,n,r,s){this._id3Track={type:"id3",id:3,pid:-1,inputTimeScale:9e4,sequenceNumber:0,samples:[],dropped:0}}resetTimeStamp(t){this.initPTS=t,this.resetContiguity()}resetContiguity(){this.basePTS=null,this.lastPTS=null,this.frameIndex=0}canParse(t,n){return!1}appendFrame(t,n,r){}demux(t,n){this.cachedData&&(t=ji(this.cachedData,t),this.cachedData=null);let r=hh(t,0),s=r?r.length:0,i;const o=this._audioTrack,a=this._id3Track,l=r?zE(r):void 0,u=t.length;for((this.basePTS===null||this.frameIndex===0&&lt(l))&&(this.basePTS=Mfe(l,n,this.initPTS),this.lastPTS=this.basePTS),this.lastPTS===null&&(this.lastPTS=this.basePTS),r&&r.length>0&&a.samples.push({pts:this.lastPTS,dts:this.lastPTS,data:r,type:si.audioId3,duration:Number.POSITIVE_INFINITY});s<u;){if(this.canParse(t,s)){const c=this.appendFrame(o,t,s);c?(this.frameIndex++,this.lastPTS=c.sample.pts,s+=c.length,i=s):s=u}else Efe(t,s)?(r=hh(t,s),a.samples.push({pts:this.lastPTS,dts:this.lastPTS,data:r,type:si.audioId3,duration:Number.POSITIVE_INFINITY}),s+=r.length,i=s):s++;if(s===u&&i!==u){const c=t.slice(i);this.cachedData?this.cachedData=ji(this.cachedData,c):this.cachedData=c}}return{audioTrack:o,videoTrack:To(),id3Track:a,textTrack:To()}}demuxSampleAes(t,n,r){return Promise.reject(new Error(`[${this}] This demuxer does not support Sample-AES decryption`))}flush(t){const n=this.cachedData;return n&&(this.cachedData=null,this.demux(n,0)),{audioTrack:this._audioTrack,videoTrack:To(),id3Track:this._id3Track,textTrack:To()}}destroy(){this.cachedData=null,this._audioTrack=this._id3Track=void 0}}
vendor: 5,317 bytes, line 107
107const Mfe=(e,t,n)=>{if(lt(e))return e*90;const r=n?n.baseTime*9e4/n.timescale:0;return t*9e4+r};let sp=null;const Ffe=[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],Bfe=[44100,48e3,32e3,22050,24e3,16e3,11025,12e3,8e3],Nfe=[[0,72,144,12],[0,0,0,0],[0,72,144,12],[0,144,144,12]],Vfe=[0,1,1,4];function n5(e,t,n,r,s){if(n+24>t.length)return;const i=r5(t,n);if(i&&n+i.frameLength<=t.length){const o=i.samplesPerFrame*9e4/i.sampleRate,a=r+s*o,l={unit:t.subarray(n,n+i.frameLength),pts:a,dts:a};return e.config=[],e.channelCount=i.channelCount,e.samplerate=i.sampleRate,e.samples.push(l),{sample:l,length:i.frameLength,missing:0}}}function r5(e,t){const n=e[t+1]>>3&3,r=e[t+1]>>1&3,s=e[t+2]>>4&15,i=e[t+2]>>2&3;if(n!==1&&s!==0&&s!==15&&i!==3){const o=e[t+2]>>1&1,a=e[t+3]>>6,l=n===3?3-r:r===3?3:4,u=Ffe[l*14+s-1]*1e3,d=Bfe[(n===3?0:n===2?1:2)*3+i],f=a===3?1:2,h=Nfe[n][r],p=Vfe[r],m=h*8*p,v=Math.floor(h*u/d+o)*p;if(sp===null){const y=(navigator.userAgent||"").match(/Chrome\/(\d+)/i);sp=y?parseInt(y[1]):0}return!!sp&&sp<=87&&r===2&&u>=224e3&&a===0&&(e[t+3]=e[t+3]|128),{sampleRate:d,channelCount:f,frameLength:v,samplesPerFrame:m}}}function GE(e,t){return e[t]===255&&(e[t+1]&224)===224&&(e[t+1]&6)!==0}function s5(e,t){return t+1<e.length&&GE(e,t)}function Ufe(e,t){return GE(e,t)&&4<=e.length-t}function i5(e,t){if(t+1<e.length&&GE(e,t)){const r=r5(e,t);let s=4;r!=null&&r.frameLength&&(s=r.frameLength);const i=t+s;return i===e.length||s5(e,i)}return!1}class jfe extends HE{constructor(t,n){super(),this.observer=void 0,this.config=void 0,this.observer=t,this.config=n}resetInitSegment(t,n,r,s){super.resetInitSegment(t,n,r,s),this._audioTrack={container:"audio/adts",type:"audio",id:2,pid:-1,sequenceNumber:0,segmentCodec:"aac",samples:[],manifestCodec:n,duration:s,inputTimeScale:9e4,dropped:0}}static probe(t,n){if(!t)return!1;const r=hh(t,0);let s=r?.length||0;if(i5(t,s))return!1;for(let i=t.length;s<i;s++)if(_fe(t,s))return n.log("ADTS sync word found !"),!0;return!1}canParse(t,n){return bfe(t,n)}appendFrame(t,n,r){Z6(t,this.observer,n,r,t.manifestCodec);const s=Q6(t,n,r,this.basePTS,this.frameIndex);if(s&&s.missing===0)return s}}const o5=(e,t)=>{let n=0,r=5;t+=r;const s=new Uint32Array(1),i=new Uint32Array(1),o=new Uint8Array(1);for(;r>0;){o[0]=e[t];const a=Math.min(r,8),l=8-a;i[0]=4278190080>>>24+l<<l,s[0]=(o[0]&i[0])>>l,n=n?n<<a|s[0]:s[0],t+=1,r-=a}return n};class zfe extends HE{constructor(t){super(),this.observer=void 0,this.observer=t}resetInitSegment(t,n,r,s){super.resetInitSegment(t,n,r,s),this._audioTrack={container:"audio/ac-3",type:"audio",id:2,pid:-1,sequenceNumber:0,segmentCodec:"ac3",samples:[],manifestCodec:n,duration:s,inputTimeScale:9e4,dropped:0}}canParse(t,n){return n+64<t.length}appendFrame(t,n,r){const s=a5(t,n,r,this.basePTS,this.frameIndex);if(s!==-1)return{sample:t.samples[t.samples.length-1],length:s,missing:0}}static probe(t){if(!t)return!1;const n=hh(t,0);if(!n)return!1;const r=n.length;return t[r]===11&&t[r+1]===119&&zE(n)!==void 0&&o5(t,r)<16}}function a5(e,t,n,r,s){if(n+8>t.length||t[n]!==11||t[n+1]!==119)return-1;const i=t[n+4]>>6;if(i>=3)return-1;const a=[48e3,44100,32e3][i],l=t[n+4]&63,c=[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][l*3+i]*2;if(n+c>t.length)return-1;const d=t[n+6]>>5;let f=0;d===2?f+=2:(d&1&&d!==1&&(f+=2),d&4&&(f+=2));const h=(t[n+6]<<8|t[n+7])>>12-f&1,m=[2,1,2,3,3,4,4,5][d]+h,v=t[n+5]>>3,x=t[n+5]&7,g=new Uint8Array([i<<6|v<<1|x>>2,(x&3)<<6|d<<3|h<<2|l>>4,l<<4&224]),y=1536/a*9e4,_=r+s*y,E=t.subarray(n,n+c);return e.config=g,e.channelCount=m,e.samplerate=a,e.samples.push({unit:E,pts:_}),c}class Hfe extends HE{resetInitSegment(t,n,r,s){super.resetInitSegment(t,n,r,s),this._audioTrack={container:"audio/mpeg",type:"audio",id:2,pid:-1,sequenceNumber:0,segmentCodec:"mp3",samples:[],manifestCodec:n,duration:s,inputTimeScale:9e4,dropped:0}}static probe(t){if(!t)return!1;const n=hh(t,0);let r=n?.length||0;if(n&&t[r]===11&&t[r+1]===119&&zE(n)!==void 0&&o5(t,r)<=16)return!1;for(let s=t.length;r<s;r++)if(i5(t,r))return En.log("MPEG Audio sync word found !"),!0;return!1}canParse(t,n){return Ufe(t,n)}appendFrame(t,n,r){if(this.basePTS!==null)return n5(t,n,r,this.basePTS,this.frameIndex)}}const Gfe=/\/emsg[-/]ID3/i;class Kfe{constructor(t,n){this.remainderData=null,this.timeOffset=0,this.config=void 0,this.videoTrack=void 0,this.audioTrack=void 0,this.id3Track=void 0,this.txtTrack=void 0,this.config=n}resetTimeStamp(){}resetInitSegment(t,n,r,s){const i=this.videoTrack=To("video",1),o=this.audioTrack=To("audio",1),a=this.txtTrack=To("text",1);if(this.id3Track=To("id3",1),this.timeOffset=0,!(t!=null&&t.byteLength))return;const l=g6(t);if(l.video){const{id:u,timescale:c,codec:d,supplemental:f}=l.video;
vendor: 6,433 bytes, line 107
107i.id=u,i.timescale=a.timescale=c,i.codec=d,i.supplemental=f}if(l.audio){const{id:u,timescale:c,codec:d}=l.audio;o.id=u,o.timescale=c,o.codec=d}a.id=p6.text,i.sampleDuration=0,i.duration=o.duration=s}resetContiguity(){this.remainderData=null}static probe(t){return zce(t)}demux(t,n){this.timeOffset=n;let r=t;const s=this.videoTrack,i=this.txtTrack;if(this.config.progressive){this.remainderData&&(r=ji(this.remainderData,t));const a=Xce(r);this.remainderData=a.remainder,s.samples=a.valid||new Uint8Array}else s.samples=r;const o=this.extractID3Track(s,n);return i.samples=sI(n,s),{videoTrack:s,audioTrack:this.audioTrack,id3Track:o,textTrack:this.txtTrack}}flush(){const t=this.timeOffset,n=this.videoTrack,r=this.txtTrack;n.samples=this.remainderData||new Uint8Array,this.remainderData=null;const s=this.extractID3Track(n,this.timeOffset);return r.samples=sI(t,n),{videoTrack:n,audioTrack:To(),id3Track:s,textTrack:To()}}extractID3Track(t,n){const r=this.id3Track;if(t.samples.length){const s=Kt(t.samples,["emsg"]);s&&s.forEach(i=>{const o=Jce(i);if(Gfe.test(o.schemeIdUri)){const a=UI(o,n);let l=o.eventDuration===4294967295?Number.POSITIVE_INFINITY:o.eventDuration/o.timeScale;l<=.001&&(l=Number.POSITIVE_INFINITY);const u=o.payload;r.samples.push({data:u,len:u.byteLength,dts:a,pts:a,type:si.emsg,duration:l})}else if(this.config.enableEmsgKLVMetadata&&o.schemeIdUri.startsWith("urn:misb:KLV:bin:1910.1")){const a=UI(o,n);r.samples.push({data:o.payload,len:o.payload.byteLength,dts:a,pts:a,type:si.misbklv,duration:Number.POSITIVE_INFINITY})}})}return r}demuxSampleAes(t,n,r){return Promise.reject(new Error("The MP4 demuxer does not support SAMPLE-AES decryption"))}destroy(){this.config=null,this.remainderData=null,this.videoTrack=this.audioTrack=this.id3Track=this.txtTrack=void 0}}function UI(e,t){return lt(e.presentationTime)?e.presentationTime/e.timeScale:t+e.presentationTimeDelta/e.timeScale}class Wfe{constructor(t,n,r){this.keyData=void 0,this.decrypter=void 0,this.keyData=r,this.decrypter=new $E(n,{removePKCS7Padding:!1})}decryptBuffer(t){return this.decrypter.decrypt(t,this.keyData.key.buffer,this.keyData.iv.buffer,bl.cbc)}decryptAacSample(t,n,r){const s=t[n].unit;if(s.length<=16)return;const i=s.subarray(16,s.length-s.length%16),o=i.buffer.slice(i.byteOffset,i.byteOffset+i.length);this.decryptBuffer(o).then(a=>{const l=new Uint8Array(a);s.set(l,16),this.decrypter.isSync()||this.decryptAacSamples(t,n+1,r)}).catch(r)}decryptAacSamples(t,n,r){for(;;n++){if(n>=t.length){r();return}if(!(t[n].unit.length<32)&&(this.decryptAacSample(t,n,r),!this.decrypter.isSync()))return}}getAvcEncryptedData(t){const n=Math.floor((t.length-48)/160)*16+16,r=new Int8Array(n);let s=0;for(let i=32;i<t.length-16;i+=160,s+=16)r.set(t.subarray(i,i+16),s);return r}getAvcDecryptedUnit(t,n){const r=new Uint8Array(n);let s=0;for(let i=32;i<t.length-16;i+=160,s+=16)t.set(r.subarray(s,s+16),i);return t}decryptAvcSample(t,n,r,s,i){const o=b6(i.data),a=this.getAvcEncryptedData(o);this.decryptBuffer(a.buffer).then(l=>{i.data=this.getAvcDecryptedUnit(o,l),this.decrypter.isSync()||this.decryptAvcSamples(t,n,r+1,s)}).catch(s)}decryptAvcSamples(t,n,r,s){if(t instanceof Uint8Array)throw new Error("Cannot decrypt samples of type Uint8Array");for(;;n++,r=0){if(n>=t.length){s();return}const i=t[n].units;for(;!(r>=i.length);r++){const o=i[r];if(!(o.data.length<=48||o.type!==1&&o.type!==5)&&(this.decryptAvcSample(t,n,r,s,o),!this.decrypter.isSync()))return}}}}class l5{constructor(){this.VideoSample=null}createVideoSample(t,n,r){return{key:t,frame:!1,pts:n,dts:r,units:[],length:0}}getLastNalUnit(t){var n;let r=this.VideoSample,s;if((!r||r.units.length===0)&&(r=t[t.length-1]),(n=r)!=null&&n.units){const i=r.units;s=i[i.length-1]}return s}pushAccessUnit(t,n){if(t.units.length&&t.frame){if(t.pts===void 0){const r=n.samples,s=r.length;if(s){const i=r[s-1];t.pts=i.pts,t.dts=i.dts}else{n.dropped++;return}}n.samples.push(t)}}parseNALu(t,n,r){const s=n.byteLength;let i=t.naluState||0;const o=i,a=[];let l=0,u,c,d,f=-1,h=0;for(i===-1&&(f=0,h=this.getNALuType(n,0),i=0,l=1);l<s;){if(u=n[l++],!i){i=u?0:1;continue}if(i===1){i=u?0:2;continue}if(!u)i=3;else if(u===1){if(c=l-i-1,f>=0){const p={data:n.subarray(f,c),type:h};a.push(p)}else{const p=this.getLastNalUnit(t.samples);p&&(o&&l<=4-o&&p.state&&(p.data=p.data.subarray(0,p.data.byteLength-o)),c>0&&(p.data=ji(p.data,n.subarray(0,c)),p.state=0))}l<s?(d=this.getNALuType(n,l),f=l,h=d,i=0):i=-1}else i=0}if(f>=0&&i>=0){const p={data:n.subarray(f,s),type:h,state:i};a.push(p)}if(a.length===0){const p=this.getLastNalUnit(t.samples);p&&(p.data=ji(p.data,n))}return t.naluState=i,a}}class wf{constructor(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}loadWord(){const t=this.data,n=this.bytesAvailable,r=t.byteLength-n,s=new Uint8Array(4),i=Math.min(4,n);if(i===0)throw new Error("no bytes available");s.set(t.subarray(r,r+i)),this.word=new DataView(s.buffer).getUint32(0),this.bitsAvailable=i*8,this.bytesAvailable-=i}skipBits(t){let n;t=Math.min(t,this.bytesAvailable*8+this.bitsAvailable),this.bitsAvailable>t?(this.word<<=t,this.bitsAvailable-=t):(t-=this.bitsAvailable,n=t>>3,t-=n<<3,this.bytesAvailable-=n,this.loadWord(),this.word<<=t,this.bitsAvailable-=t)}readBits(t){let n=Math.min(this.bitsAvailable,t);const r=this.word>>>32-n;if(t>32&&En.error("Cannot read more than 32 bits at a time"),this.bitsAvailable-=n,this.bitsAvailable>0)this.word<<=n;else if(this.bytesAvailable>0)this.loadWord();else throw new Error("no bits available");return n=t-n,n>0&&this.bitsAvailable?r<<n|this.readBits(n):r}skipLZ(){let t;for(t=0;t<this.bitsAvailable;++t)if((this.word&2147483648>>>t)!==0)return this.word<<=t,this.bitsAvailable-=t,t;return this.loadWord(),t+this.skipLZ()}skipUEG(){this.skipBits(1+this.skipLZ())}skipEG(){this.skipBits(1+this.skipLZ())}readUEG(){const t=this.skipLZ();return this.readBits(t+1)-1}readEG(){const t=this.readUEG();return 1&t?1+t>>>1:-1*(t>>>1)}readBoolean(){return this.readBits(1)===1}readUByte(){return this.readBits(8)}readUShort(){return this.readBits(16)}readUInt(){return this.readBits(32)}}class qfe extends l5{parsePES(t,n,r,s){const i=this.parseNALu(t,r.data,s);let o=this.VideoSample,a,l=!1;r.data=null,o&&i.length&&!t.audFound&&(this.pushAccessUnit(o,t),o=this.VideoSample=this.createVideoSample(!1,r.pts,r.dts)),i.forEac
vendor: 8,542 bytes, line 107
107h(u=>{var c,d;switch(u.type){case 1:{let m=!1;a=!0;const v=u.data;if(l&&v.length>4){const x=this.readSliceType(v);(x===2||x===4||x===7||x===9)&&(m=!0)}if(m){var f;(f=o)!=null&&f.frame&&!o.key&&(this.pushAccessUnit(o,t),o=this.VideoSample=null)}o||(o=this.VideoSample=this.createVideoSample(!0,r.pts,r.dts)),o.frame=!0,o.key=m;break}case 5:a=!0,(c=o)!=null&&c.frame&&!o.key&&(this.pushAccessUnit(o,t),o=this.VideoSample=null),o||(o=this.VideoSample=this.createVideoSample(!0,r.pts,r.dts)),o.key=!0,o.frame=!0;break;case 6:{a=!0,DE(u.data,1,r.pts,n.samples);break}case 7:{var h,p;a=!0,l=!0;const m=u.data,v=this.readSPS(m);if(!t.sps||t.width!==v.width||t.height!==v.height||((h=t.pixelRatio)==null?void 0:h[0])!==v.pixelRatio[0]||((p=t.pixelRatio)==null?void 0:p[1])!==v.pixelRatio[1]){t.width=v.width,t.height=v.height,t.pixelRatio=v.pixelRatio,t.sps=[m];const x=m.subarray(1,4);let g="avc1.";for(let y=0;y<3;y++){let _=x[y].toString(16);_.length<2&&(_="0"+_),g+=_}t.codec=g}break}case 8:a=!0,t.pps=[u.data];break;case 9:a=!0,t.audFound=!0,(d=o)!=null&&d.frame&&(this.pushAccessUnit(o,t),o=null),o||(o=this.VideoSample=this.createVideoSample(!1,r.pts,r.dts));break;case 12:a=!0;break;default:a=!1;break}o&&a&&o.units.push(u)}),s&&o&&(this.pushAccessUnit(o,t),this.VideoSample=null)}getNALuType(t,n){return t[n]&31}readSliceType(t){const n=new wf(t);return n.readUByte(),n.readUEG(),n.readUEG()}skipScalingList(t,n){let r=8,s=8,i;for(let o=0;o<t;o++)s!==0&&(i=n.readEG(),s=(r+i+256)%256),r=s===0?r:s}readSPS(t){const n=new wf(t);let r=0,s=0,i=0,o=0,a,l,u;const c=n.readUByte.bind(n),d=n.readBits.bind(n),f=n.readUEG.bind(n),h=n.readBoolean.bind(n),p=n.skipBits.bind(n),m=n.skipEG.bind(n),v=n.skipUEG.bind(n),x=this.skipScalingList.bind(this);c();const g=c();if(d(5),p(3),c(),v(),g===100||g===110||g===122||g===244||g===44||g===83||g===86||g===118||g===128){const C=f();if(C===3&&p(1),v(),v(),p(1),h())for(l=C!==3?8:12,u=0;u<l;u++)h()&&(u<6?x(16,n):x(64,n))}v();const y=f();if(y===0)f();else if(y===1)for(p(1),m(),m(),a=f(),u=0;u<a;u++)m();v(),p(1);const _=f(),E=f(),w=d(1);w===0&&p(1),p(1),h()&&(r=f(),s=f(),i=f(),o=f());let T=[1,1];if(h()&&h())switch(c()){case 1:T=[1,1];break;case 2:T=[12,11];break;case 3:T=[10,11];break;case 4:T=[16,11];break;case 5:T=[40,33];break;case 6:T=[24,11];break;case 7:T=[20,11];break;case 8:T=[32,11];break;case 9:T=[80,33];break;case 10:T=[18,11];break;case 11:T=[15,11];break;case 12:T=[64,33];break;case 13:T=[160,99];break;case 14:T=[4,3];break;case 15:T=[3,2];break;case 16:T=[2,1];break;case 255:{T=[c()<<8|c(),c()<<8|c()];break}}return{width:Math.ceil((_+1)*16-r*2-s*2),height:(2-w)*(E+1)*16-(w?2:4)*(i+o),pixelRatio:T}}}class Yfe extends l5{constructor(...t){super(...t),this.initVPS=null}parsePES(t,n,r,s){const i=this.parseNALu(t,r.data,s);let o=this.VideoSample,a,l=!1;r.data=null,o&&i.length&&!t.audFound&&(this.pushAccessUnit(o,t),o=this.VideoSample=this.createVideoSample(!1,r.pts,r.dts)),i.forEach(u=>{var c,d;switch(u.type){case 0:case 1:case 2:case 3:case 4:case 5:case 6:case 7:case 8:case 9:o||(o=this.VideoSample=this.createVideoSample(!1,r.pts,r.dts)),o.frame=!0,a=!0;break;case 16:case 17:case 18:case 21:if(a=!0,l){var f;(f=o)!=null&&f.frame&&!o.key&&(this.pushAccessUnit(o,t),o=this.VideoSample=null)}o||(o=this.VideoSample=this.createVideoSample(!0,r.pts,r.dts)),o.key=!0,o.frame=!0;break;case 19:case 20:a=!0,(c=o)!=null&&c.frame&&!o.key&&(this.pushAccessUnit(o,t),o=this.VideoSample=null),o||(o=this.VideoSample=this.createVideoSample(!0,r.pts,r.dts)),o.key=!0,o.frame=!0;break;case 39:a=!0,DE(u.data,2,r.pts,n.samples);break;case 32:a=!0,t.vps||(typeof t.params!="object"&&(t.params={}),t.params=kn(t.params,this.readVPS(u.data)),this.initVPS=u.data),t.vps=[u.data];break;case 33:if(a=!0,l=!0,t.vps!==void 0&&t.vps[0]!==this.initVPS&&t.sps!==void 0&&!this.matchSPS(t.sps[0],u.data)&&(this.initVPS=t.vps[0],t.sps=t.pps=void 0),!t.sps){const h=this.readSPS(u.data);t.width=h.width,t.height=h.height,t.pixelRatio=h.pixelRatio,t.codec=h.codecString,t.sps=[],typeof t.params!="object"&&(t.params={});for(const p in h.params)t.params[p]=h.params[p]}this.pushParameterSet(t.sps,u.data,t.vps),o||(o=this.VideoSample=this.createVideoSample(!0,r.pts,r.dts)),o.key=!0;break;case 34:if(a=!0,typeof t.params=="object"){if(!t.pps){t.pps=[];const h=this.readPPS(u.data);for(const p in h)t.params[p]=h[p]}this.pushParameterSet(t.pps,u.data,t.vps)}break;case 35:a=!0,t.audFound=!0,(d=o)!=null&&d.frame&&(this.pushAccessUnit(o,t),o=null),o||(o=this.VideoSample=this.createVideoSample(!1,r.pts,r.dts));break;default:a=!1;break}o&&a&&o.units.push(u)}),s&&o&&(this.pushAccessUnit(o,t),this.VideoSample=null)}pushParameterSet(t,n,r){(r&&r[0]===this.initVPS||!r&&!t.length)&&t.push(n)}getNALuType(t,n){return(t[n]&126)>>>1}ebsp2rbsp(t){const n=new Uint8Array(t.byteLength);let r=0;for(let s=0;s<t.byteLength;s++)s>=2&&t[s]===3&&t[s-1]===0&&t[s-2]===0||(n[r]=t[s],r++);return new Uint8Array(n.buffer,0,r)}pushAccessUnit(t,n){super.pushAccessUnit(t,n),this.initVPS&&(this.initVPS=null)}readVPS(t){const n=new wf(t);n.readUByte(),n.readUByte(),n.readBits(4),n.skipBits(2),n.readBits(6);const r=n.readBits(3),s=n.readBoolean();return{numTemporalLayers:r+1,temporalIdNested:s}}readSPS(t){const n=new wf(this.ebsp2rbsp(t));n.readUByte(),n.readUByte(),n.readBits(4);const r=n.readBits(3);n.readBoolean();const s=n.readBits(2),i=n.readBoolean(),o=n.readBits(5),a=n.readUByte(),l=n.readUByte(),u=n.readUByte(),c=n.readUByte(),d=n.readUByte(),f=n.readUByte(),h=n.readUByte(),p=n.readUByte(),m=n.readUByte(),v=n.readUByte(),x=n.readUByte(),g=[],y=[];for(let xe=0;xe<r;xe++)g.push(n.readBoolean()),y.push(n.readBoolean());if(r>0)for(let xe=r;xe<8;xe++)n.readBits(2);for(let xe=0;xe<r;xe++)g[xe]&&(n.readUByte(),n.readUByte(),n.readUByte(),n.readUByte(),n.readUByte(),n.readUByte(),n.readUByte(),n.readUByte(),n.readUByte(),n.readUByte(),n.readUByte()),y[xe]&&n.readUByte();n.readUEG();const _=n.readUEG();_==3&&n.skipBits(1);const E=n.readUEG(),w=n.readUEG(),T=n.readBoolean();let C=0,I=0,k=0,$=0;T&&(C+=n.readUEG(),I+=n.readUEG(),k+=n.readUEG(),$+=n.readUEG());const R=n.readUEG(),D=n.readUEG(),O=n.readUEG(),B=n.readBoolean();for(let xe=B?0:r;xe<=r;xe++)n.skipUEG(),n.skipUEG(),n.skipUEG();if(n.skipUEG(),n.skipUEG(),n.skipUEG(),n.skipUEG(),n.skipUEG(),n.skipUEG(),n.readBoolean()&&n.readBoolean())for(let ne=0;ne<4;ne++)for(let ie=0;ie<(ne===3?2:6);ie++)if(!n.readBoolean())n.readUEG();else{const we=Math.min(64,1<<4+(ne<<1));ne>1&&n.readEG();for(let Be=0;Be<we;Be++)n.readEG()}n.readBoolean(),n.readBoolean(),n.readBoolean()&&(n.readUByte(),n.skipUEG(),n.skipUEG(),n.readBoolean());const V=n.readUEG();let H=0;for(let xe=0;xe<V;xe++){let ne=!1;if(xe!==0&&(ne=n.readBoolean()),ne){xe===V&&n.readUEG(),n.readBoolean(),n.readUEG();let ie=0;for(let Le=0;Le<=H;Le++){const we=n.readBoolean();let Be=!1;we||(Be=n.readBoolean()),(we||Be)&&ie++}H=ie}else{const ie=n.readUEG(),Le=n.readUEG();H=ie+Le;for(let we=0;we<ie;we++)n.readUEG(),n.readBoolean();for(let we=0;we<Le;we++)n.readUEG(),n.readBoolean()}}if(n.readBoolean()){const xe=n.readUEG();for(let ne=0;ne<xe;ne++){for(let ie=0;ie<O+4;ie++)n.readBits(1);n.readBits(1)}}let W=0,X=1,Q=1,le=!0,ve=1,oe=0;n.readBoolean(),n.readBoolean();let K=!1;if(n.readBoolean()){if(n.readBoolean()){const Pe=n.readUByte(),qe=[1,12,10,16,40,24,20,32,80,18,15,64,160,4,3,2],Me=[1,11,11,11,33,11,11,11,33,11,11,33,99,3,2,1];Pe>0&&Pe<16?(X=qe[Pe-1],Q=Me[Pe-1]):Pe===255&&(X=n.readBits(16),Q=n.readBits(16))}if(n.readBoolean()&&n.readBoolean(),n.readBoolean()&&(n.readBits(3),n.readBoolean(),n.readBoolean()&&(n.readUByte(),n.readUByte(),n.readUByte())),n.readBoolean()&&(n.readUEG(),n.readUEG()),n.readBoolean(),n.readBoolean(),n.readBoolean(),K=n.readBoolean(),K&&(n.skipUEG(),n.skipUEG(),n.skipUEG(),n.skipUEG()),n.readBoolean()&&(ve=n.readBits(32),oe=n.readBits(32),n.readBoolean()&&n.readUEG(),n.readBoolean())){const Me=n.readBoolean(),ze=n.readBoolean();let et=!1;(Me||ze)&&(et=n.readBoolean(),et&&(n.readUByte(),n.readBits(5),n.readBoolean(),n.readBits(5)),n.readBits(4),n.readBits(4),et&&n.readBits(4),n.readBits(5),n.readBits(5),n.readBits(5));for(let pe=0;pe<=r;pe++){le=n.readBoolean();const ge=le||n.readBoolean();let he=!1;ge?n.readEG():he=n.readBoolean();const ye=he?1:n.readUEG()+1;if(Me)for(let me=0;me<ye;me++)n.readUEG(),n.readUEG(),et&&(n.readUEG(),n.readUEG()),n.skipBits(1);if(ze)for(let me=0;me<ye;me++)n.readUEG(),n.readUEG(),et&&(n.readUEG(),n.readUEG()),n.skipBits(1)}}n.readBoolean()&&(n.readBoolean(),n.readBoolean(),n.readBoolean(),W=n.readUEG())}let ae=E,ue=w;
vendor: 9,468 bytes, line 107
107if(T){let xe=1,ne=1;_===1?xe=ne=2:_==2&&(xe=2),ae=E-xe*I-xe*C,ue=w-ne*$-ne*k}const Ee=s?["A","B","C"][s]:"",_e=a<<24|l<<16|u<<8|c;let J=0;for(let xe=0;xe<32;xe++)J=(J|(_e>>xe&1)<<31-xe)>>>0;let Y=J.toString(16);return o===1&&Y==="2"&&(Y="6"),{codecString:`hvc1.${Ee}${o}.${Y}.${i?"H":"L"}${x}.B0`,params:{general_tier_flag:i,general_profile_idc:o,general_profile_space:s,general_profile_compatibility_flags:[a,l,u,c],general_constraint_indicator_flags:[d,f,h,p,m,v],general_level_idc:x,bit_depth:R+8,bit_depth_luma_minus8:R,bit_depth_chroma_minus8:D,min_spatial_segmentation_idc:W,chroma_format_idc:_,frame_rate:{fixed:le,fps:oe/ve}},width:ae,height:ue,pixelRatio:[X,Q]}}readPPS(t){const n=new wf(this.ebsp2rbsp(t));n.readUByte(),n.readUByte(),n.skipUEG(),n.skipUEG(),n.skipBits(2),n.skipBits(3),n.skipBits(2),n.skipUEG(),n.skipUEG(),n.skipEG(),n.skipBits(2),n.readBoolean()&&n.skipUEG(),n.skipEG(),n.skipEG(),n.skipBits(4);const s=n.readBoolean(),i=n.readBoolean();let o=1;return i&&s?o=0:i?o=3:s&&(o=2),{parallelismType:o}}matchSPS(t,n){return String.fromCharCode.apply(null,t).substr(3)===String.fromCharCode.apply(null,n).substr(3)}}const Ir=188;class rl{constructor(t,n,r,s){this.logger=void 0,this.observer=void 0,this.config=void 0,this.typeSupported=void 0,this.sampleAes=null,this.pmtParsed=!1,this.audioCodec=void 0,this.videoCodec=void 0,this._pmtId=-1,this._videoTrack=void 0,this._audioTrack=void 0,this._id3Track=void 0,this._txtTrack=void 0,this.aacOverFlow=null,this.remainderData=null,this.videoParser=void 0,this.observer=t,this.config=n,this.typeSupported=r,this.logger=s,this.videoParser=null}static probe(t,n){const r=rl.syncOffset(t);return r>0&&n.warn(`MPEG2-TS detected but first sync word found @ offset ${r}`),r!==-1}static syncOffset(t){const n=t.length;let r=Math.min(Ir*5,n-Ir)+1,s=0;for(;s<r;){let i=!1,o=-1,a=0;for(let l=s;l<n;l+=Ir)if(t[l]===71&&(n-l===Ir||t[l+Ir]===71)){if(a++,o===-1&&(o=l,o!==0&&(r=Math.min(o+Ir*99,t.length-Ir)+1)),i||(i=C2(t,l)===0),i&&a>1&&(o===0&&a>2||l+Ir>r))return o}else{if(a)return-1;break}s++}return-1}static createTrack(t,n){return{container:t==="video"||t==="audio"?"video/mp2t":void 0,type:t,id:p6[t],pid:-1,inputTimeScale:9e4,sequenceNumber:0,samples:[],dropped:0,duration:t==="audio"?n:void 0}}resetInitSegment(t,n,r,s){this.pmtParsed=!1,this._pmtId=-1,this._videoTrack=rl.createTrack("video"),this._videoTrack.duration=s,this._audioTrack=rl.createTrack("audio",s),this._id3Track=rl.createTrack("id3"),this._txtTrack=rl.createTrack("text"),this._audioTrack.segmentCodec="aac",this.videoParser=null,this.aacOverFlow=null,this.remainderData=null,this.audioCodec=n,this.videoCodec=r}resetTimeStamp(){}resetContiguity(){const{_audioTrack:t,_videoTrack:n,_id3Track:r}=this;t&&(t.pesData=null),n&&(n.pesData=null),r&&(r.pesData=null),this.aacOverFlow=null,this.remainderData=null}demux(t,n,r=!1,s=!1){r||(this.sampleAes=null);let i;const o=this._videoTrack,a=this._audioTrack,l=this._id3Track,u=this._txtTrack;let c=o.pid,d=o.pesData,f=a.pid,h=l.pid,p=a.pesData,m=l.pesData,v=null,x=this.pmtParsed,g=this._pmtId,y=t.length;if(this.remainderData&&(t=ji(this.remainderData,t),y=t.length,this.remainderData=null),y<Ir&&!s)return this.remainderData=t,{audioTrack:a,videoTrack:o,id3Track:l,textTrack:u};const _=Math.max(0,rl.syncOffset(t));y-=(y-_)%Ir,y<t.byteLength&&!s&&(this.remainderData=new Uint8Array(t.buffer,y,t.buffer.byteLength-y));let E=0;for(let T=_;T<y;T+=Ir)if(t[T]===71){const C=!!(t[T+1]&64),I=C2(t,T),k=(t[T+3]&48)>>4;let $;if(k>1){if($=T+5+t[T+4],$===T+Ir)continue}else $=T+4;switch(I){case c:C&&(d&&(i=tc(d,this.logger))&&(this.readyVideoParser(o.segmentCodec),this.videoParser!==null&&this.videoParser.parsePES(o,u,i,!1)),d={data:[],size:0}),d&&(d.data.push(t.subarray($,T+Ir)),d.size+=T+Ir-$);break;case f:if(C){if(p&&(i=tc(p,this.logger)))switch(a.segmentCodec){case"aac":this.parseAACPES(a,i);break;case"mp3":this.parseMPEGPES(a,i);break;case"ac3":this.parseAC3PES(a,i);break}p={data:[],size:0}}p&&(p.data.push(t.subarray($,T+Ir)),p.size+=T+Ir-$);break;case h:C&&(m&&(i=tc(m,this.logger))&&this.parseID3PES(l,i),m={data:[],size:0}),m&&(m.data.push(t.subarray($,T+Ir)),m.size+=T+Ir-$);break;case 0:C&&($+=t[$]+1),g=this._pmtId=Xfe(t,$);break;case g:{C&&($+=t[$]+1);const R=Zfe(t,$,this.typeSupported,r,this.observer,this.logger);c=R.videoPid,c>0&&(o.pid=c,o.segmentCodec=R.segmentVideoCodec),f=R.audioPid,f>0&&(a.pid=f,a.segmentCodec=R.segmentAudioCodec),h=R.id3Pid,h>0&&(l.pid=h),v!==null&&!x&&(this.logger.warn(`MPEG-TS PMT found at ${T} after unknown PID '${v}'. Backtracking to sync byte @${_} to parse all TS packets.`),v=null,T=_-188),x=this.pmtParsed=!0;break}case 17:case 8191:break;default:v=I;break}}else E++;E>0&&A2(this.observer,new Error(`Found ${E} TS packet/s that do not start with 0x47`),void 0,this.logger),o.pesData=d,a.pesData=p,l.pesData=m;const w={audioTrack:a,videoTrack:o,id3Track:l,textTrack:u};return s&&this.extractRemainingSamples(w),w}flush(){const{remainderData:t}=this;this.remainderData=null;let n;return t?n=this.demux(t,-1,!1,!0):n={videoTrack:this._videoTrack,audioTrack:this._audioTrack,id3Track:this._id3Track,textTrack:this._txtTrack},this.extractRemainingSamples(n),this.sampleAes?this.decrypt(n,this.sampleAes):n}extractRemainingSamples(t){const{audioTrack:n,videoTrack:r,id3Track:s,textTrack:i}=t,o=r.pesData,a=n.pesData,l=s.pesData;let u;if(o&&(u=tc(o,this.logger))?(this.readyVideoParser(r.segmentCodec),this.videoParser!==null&&(this.videoParser.parsePES(r,i,u,!0),r.pesData=null)):r.pesData=o,a&&(u=tc(a,this.logger))){switch(n.segmentCodec){case"aac":this.parseAACPES(n,u);break;case"mp3":this.parseMPEGPES(n,u);break;case"ac3":this.parseAC3PES(n,u);break}n.pesData=null}else a!=null&&a.size&&this.logger.log("last AAC PES packet truncated,might overlap between fragments"),n.pesData=a;l&&(u=tc(l,this.logger))?(this.parseID3PES(s,u),s.pesData=null):s.pesData=l}demuxSampleAes(t,n,r){const s=this.demux(t,r,!0,!this.config.progressive),i=this.sampleAes=new Wfe(this.observer,this.config,n);return this.decrypt(s,i)}readyVideoParser(t){this.videoParser===null&&(t==="avc"?this.videoParser=new qfe:t==="hevc"&&(this.videoParser=new Yfe))}decrypt(t,n){return new Promise(r=>{const{audioTrack:s,videoTrack:i}=t;s.samples&&s.segmentCodec==="aac"?n.decryptAacSamples(s.samples,0,()=>{i.samples?n.decryptAvcSamples(i.samples,0,0,()=>{r(t)}):r(t)}):i.samples&&n.decryptAvcSamples(i.samples,0,0,()=>{r(t)})})}destroy(){this.observer&&this.observer.removeAllListeners(),this.config=this.logger=this.observer=null,this.aacOverFlow=this.videoParser=this.remainderData=this.sampleAes=null,this._videoTrack=this._audioTrack=this._id3Track=this._txtTrack=void 0}parseAACPES(t,n){let r=0;const s=this.aacOverFlow;let i=n.data;if(s){this.aacOverFlow=null;const d=s.missing,f=s.sample.unit.byteLength;if(d===-1)i=ji(s.sample.unit,i);else{const h=f-d;s.sample.unit.set(i.subarray(0,d),h),t.samples.push(s.sample),r=s.missing}}let o,a;for(o=r,a=i.length;o<a-1&&!yg(i,o);o++);if(o!==r){let d;const f=o<a-1;if(f?d=`AAC PES did not start with ADTS header,offset:${o}`:d="No ADTS header found in AAC PES",A2(this.observer,new Error(d),f,this.logger),!f)return}Z6(t,this.observer,i,o,this.audioCodec);let l;if(n.pts!==void 0)l=n.pts;else if(s){const d=J6(t.samplerate);l=s.sample.pts+d}else{this.logger.warn("[tsdemuxer]: AAC PES unknown PTS");return}let u=0,c;for(;o<a;)if(c=Q6(t,i,o,l,u),o+=c.length,c.missing){this.aacOverFlow=c;break}else for(u++;o<a-1&&!yg(i,o);o++);}parseMPEGPES(t,n){const r=n.data,s=r.length;let i=0,o=0;const a=n.pts;if(a===void 0){this.logger.warn("[tsdemuxer]: MPEG PES unknown PTS");return}for(;o<s;)if(s5(r,o)){const l=n5(t,r,o,a,i);if(l)o+=l.length,i++;else break}else o++}parseAC3PES(t,n){{const r=n.data,s=n.pts;if(s===void 0){this.logger.warn("[tsdemuxer]: AC3 PES unknown PTS");return}const i=r.length;let o=0,a=0,l;for(;a<i&&(l=a5(t,r,a,s,o++))>0;)a+=l}}parseID3PES(t,n){if(n.pts===void 0){this.logger.warn("[tsdemuxer]: ID3 PES unknown PTS");return}const r=kn({},n,{type:this._videoTrack?si.emsg:si.audioId3,duration:Number.POSITIVE_INFINITY});t.samples.push(r)}}function C2(e,t){return((e[t+1]&31)<<8)+e[t+2]}function Xfe(e,t){return(e[t+10]&31)<<8|e[t+11]}function Zfe(e,t,n,r,s,i){const o={audioPid:-1,videoPid:-1,id3Pid:-1,segmentVideoCodec:"avc",segmentAudioCodec:"aac"},a=(e[t+1]&15)<<8|e[t+2],l=t+3+a-4,u=(e[t+10]&15)<<8|e[t+11];for(t+=12+u;t<l;){const c=C2(e,t),d=(e[t+3]&15)<<8|e[t+4];switch(e[t]){case 207:if(!r){_x("ADTS AAC",i);break}case 15:o.audioPid===-1&&(o.audioPid=c);break;case 21:o.id3Pid===-1&&(o.id3Pid=c);break;case 219:if(!r){_x("H.264",i);break}case 27:o.videoPid===-1&&(o.videoPid=c);break;case 3:case 4:!n.mpeg&&!n.mp3?i.log("MPEG audio found, not supported in this browser"):o.audioPid===-1&&(o.audioPid=c,o.segmentAudioCodec="mp3");break;case 193:if(!r){_x("AC-3",i);break}case 129:n.ac3?o.audioPid===-1&&(o.audioPid=c,o.segmentAudioCodec="ac3"):i.log("AC-3 audio found, not supported in this browser");break;case 6:if(o.audioPid===-1&&d>0){let f=t+5,h=d;for(;h>2;){switch(e[f]){case 106:n.ac3!==!0?i.log("AC-3 audio found, not supported in this browser for now"):(o.audioPid=c,o.segmentAudioCodec="ac3");break}const m=e[f+1]+2;f+=m,h-=m}}break;case 194:case 135:return A2(s,new Error("Unsupported EC-3 in M2TS found"),void 0,i),o;case 36:o.videoPid===-1&&(o.videoPid=c,o.segmentVideoCodec="hevc",i.log("HEVC in M2TS found"));break}t+=d+5}return o}function A2(e,t,n,r){r.warn(`parsing error: ${t.message}
107`),e.emit(G.ERROR,G.ERROR,{type:bt.MEDIA_ERROR,details:Re.FRAG_PARSING_ERROR,fatal:!1,levelRetry:n,error:t,reason:t.message})}function _x(e,t){t.log(`${e} with AES-128-CBC encryption found in unencrypted stream`)}function tc(e,t){let n=0,r,s,i,o,a;const l=e.data;if(!e||e.size===0)return null;for(;l[0].length<19&&l.length>1;)l[0]=ji(l[0],l[1]),l.splice(1,1);if(r=l[0],(r[0]<<16)+(r[1]<<8)+r[2]===1){if(s=(r[4]<<8)+r[5],s&&s>e.size-6)return null;const c=r[7];c&192&&(o=(r[9]&14)*536870912+(r[10]&255)*4194304+(r[11]&254)*16384+(r[12]&255)*128+(r[13]&254)/2,c&64?(a=(r[14]&14)*536870912+(r[15]&255)*4194304+(r[16]&254)*16384+(r[17]&255)*128+(r[18]&254)/2,o-a>60*9e4&&(t.warn(`${Math.round((o-a)/9e4)}s delta between PTS and DTS, align them`),o=a)):a=o),i=r[8];let d=i+9;if(e.size<=d)return null;e.size-=d;const f=new Uint8Array(e.size);for(let h=0,p=l.length;h<p;h++){r=l[h];let m=r.byteLength;if(d)if(d>m){d-=m;continue}else r=r.subarray(d),m-=d,d=0;f.set(r,n),n+=m}return s&&(s-=i+3),{data:f,pts:o,dts:a,len:s}}return null}class Jfe{static getSilentFrame(t,n){switch(t){case"mp4a.40.2":if(n===1)return new Uint8Array([0,200,0,128,35,128]);if(n===2)return new Uint8Array([33,0,73,144,2,25,0,35,128]);if(n===3)return new Uint8Array([0,200,0,128,32,132,1,38,64,8,100,0,142]);if(n===4)return new Uint8Array([0,200,0,128,32,132,1,38,64,8,100,0,128,44,128,8,2,56]);if(n===5)return new Uint8Array([0,200,0,128,32,132,1,38,64,8,100,0,130,48,4,153,0,33,144,2,56]);if(n===6)return new Uint8Array([0,200,0,128,32,132,1,38,64,8,100,0,130,48,4,153,0,33,144,2,0,178,0,32,8,224]);break;default:if(n===1)return new Uint8Array([1,64,34,128,163,78,230,128,186,8,0,0,0,28,6,241,193,10,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,94]);if(n===2)return new Uint8Array([1,64,34,128,163,94,230,128,186,8,0,0,0,0,149,0,6,241,161,10,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,94]);if(n===3)return new Uint8Array([1,64,34,128,163,94,230,128,186,8,0,0,0,0,149,0,6,241,161,10,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,94]);break}}}const Ua=Math.pow(2,32)-1;class De{static init(){De.types={avc1:[],avcC:[],hvc1:[],hvcC:[],btrt:[],dinf:[],dref:[],esds:[],ftyp:[],hdlr:[],mdat:[],mdhd:[],mdia:[],mfhd:[],minf:[],moof:[],moov:[],mp4a:[],".mp3":[],dac3:[],"ac-3":[],mvex:[],mvhd:[],pasp:[],sdtp:[],stbl:[],stco:[],stsc:[],stsd:[],stsz:[],stts:[],tfdt:[],tfhd:[],traf:[],trak:[],trun:[],trex:[],tkhd:[],vmhd:[],smhd:[]};let t;for(t in De.types)De.types.hasOwnProperty(t)&&(De.types[t]=[t.charCodeAt(0),t.charCodeAt(1),t.charCodeAt(2),t.charCodeAt(3)]);const n=new Uint8Array([0,0,0,0,0,0,0,0,118,105,100,101,0,0,0,0,0,0,0,0,0,0,0,0,86,105,100,101,111,72,97,110,100,108,101,114,0]),r=new Uint8Array([0,0,0,0,0,0,0,0,115,111,117,110,0,0,0,0,0,0,0,0,0,0,0,0,83,111,117,110,100,72,97,110,100,108,101,114,0]);De.HDLR_TYPES={video:n,audio:r};const s=new Uint8Array([0,0,0,0,0,0,0,1,0,0,0,12,117,114,108,32,0,0,0,1]),i=new Uint8Array([0,0,0,0,0,0,0,0]);De.STTS=De.STSC=De.STCO=i,De.STSZ=new Uint8Array([0,0,0,0,0,0,0,0,0,0,0,0]),De.VMHD=new Uint8Array([0,0,0,1,0,0,0,0,0,0,0,0]),De.SMHD=new Uint8Array([0,0,0,0,0,0,0,0]),De.STSD=new Uint8Array([0,0,0,0,0,0,0,1]);const o=new Uint8Array([105,115,111,109]),a=new Uint8Array([97,118,99,49]),l=new Uint8Array([0,0,0,1]);De.FTYP=De.box(De.types.ftyp,o,l,o,a),De.DINF=De.box(De.types.dinf,De.box(De.types.dref,s))}static box(t,...n){let r=8,s=n.length;const i=s;for(;s--;)r+=n[s].byteLength;const o=new Uint8Array(r);for(o[0]=r>>24&255,o[1]=r>>16&255,o[2]=r>>8&255,o[3]=r&255,o.set(t,4),s=0,r=8;s<i;s++)o.set(n[s],r),r+=n[s].byteLength;return o}static hdlr(t){return De.box(De.types.hdlr,De.HDLR_TYPES[t])}static mdat(t){return De.box(De.types.mdat,t)}static mdhd(t,n){n*=t;const r=Math.floor(n/(Ua+1)),s=Math.floor(n%(Ua+1));return De.box(De.types.mdhd,new Uint8Array([1,0,0,0,0,0,0,0,0,0,0,2,0,0,0,0,0,0,0,3,t>>24&255,t>>16&255,t>>8&255,t&255,r>>24,r>>16&255,r>>8&255,r&255,s>>24,s>>16&255,s>>8&255,s&255,85,196,0,0]))}static mdia(t){return De.box(De.types.mdia,De.mdhd(t.timescale||0,t.duration||0),De.hdlr(t.type),De.minf(t))}static mfhd(t){return De.box(De.types.mfhd,new Uint8Array([0,0,0,0,t>>24,t>>16&255,t>>8&255,t&255]))}static minf(t){return t.type==="audio"?De.box(De.types.minf,De.box(De.types.smhd,De.SMHD),De.DINF,De.stbl(t)):De.box(De.types.minf,De.box(De.types.vmhd,De.VMHD),De.DINF,De.stbl(t))}static moof(t,n,r){return De.box(De.types.moof,De.mfhd(t),De.traf(r,n))}static moov(t){let n=t.length;const r=[];for(;n--;)r[n]=De.trak(t[n]);return De.box.apply(null,[De.types.moov,De.mvhd(t[0].timescale||0,t[0].duration||0)].concat(r).concat(De.mvex(t)))}static mvex(t){let n=t.length;const r=[];for(;n--;)r[n]=De.trex(t[n]);return De.box.apply(null,[De.types.mvex,...r])}static mvhd(t,n){n*=t;const r=Math.floor(n/(Ua+1)),s=Math.floor(n%(Ua+1)),i=new Uint8Array([1,0,0,0,0,0,0,0,0,0,0,2,0,0,0,0,0,0,0,3,t>>24&255,t>>16&255,t>>8&255,t&255,r>>24,r>>16&255,r>>8&255,r&255,s>>24,s>>16&255,s>>8&255,s&255,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 De.box(De.types.mvhd,i)}static sdtp(t){const n=t.samples||[],r=new Uint8Array(4+n.length);let s,i;for(s=0;s<n.length;s++)i=n[s].flags,r[s+4]=i.dependsOn<<4|i.isDependedOn<<2|i.hasRedundancy;return De.box(De.types.sdtp,r)}static stbl(t){return De.box(De.types.stbl,De.stsd(t),De.box(De.types.stts,De.STTS),De.box(De.types.stsc,De.STSC),De.box(De.types.stsz,De.STSZ),De.box(De.types.stco,De.STCO))}static avc1(t){let n=[],r=[],s,i,o;for(s=0;s<t.sps.length;s++)i=t.sps[s],o=i.byteLength,n.push(o>>>8&255),n.push(o&255),n=n.concat(Array.prototype.slice.call(i));for(s=0;s<t.pps.length;s++)i=t.pps[s],o=i.byteLength,r.push(o>>>8&255),r.push(o&255),r=r.concat(Array.prototype.slice.call(i));const a=De.box(De.types.avcC,new Uint8Array([1,n[3],n[4],n[5],255,224|t.sps.length].concat(n).concat([t.pps.length]).concat(r))),l=t.width,u=t.height,c=t.pixelRatio[0],d=t.pixelRatio[1];return De.box(De.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,l&255,u>>8&255,u&255,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]),a,De.box(De.types.btrt,new Uint8Array([0,28,156,128,0,45,198,192,0,45,198,192])),De.box(De.types.pasp,new Uint8Array([c>>24,c>>16&255,c>>8&255,c&255,d>>24,d>>16&255,d>>8&255,d&255])))}static esds(t){const n=t.config;return new Uint8Array([0,0,0,0,3,25,0,1,0,4,17,64,21,0,0,0,0,0,0,0,0,0,0,0,5,2,...n,6,1,2])}static audioStsd(t){const n=t.samplerate||0;return new Uint8Array([0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,t.channelCount||0,0,16,0,0,0,0,n>>8&255,n&255,0,0])}static mp4a(t){return De.box(De.types.mp4a,De.audioStsd(t),De.box(De.types.esds,De.esds(t)))}static mp3(t){return De.box(De.types[".mp3"],De.audioStsd(t))}static ac3(t){return De.box(De.types["ac-3"],De.audioStsd(t),De.box(De.types.dac3,t.config))}static stsd(t){const{segmentCodec:n}=t;if(t.type==="audio"){if(n==="aac")return De.box(De.types.stsd,De.STSD,De.mp4a(t));if(n==="ac3"&&t.config)return De.box(De.types.stsd,De.STSD,De.ac3(t));if(n==="mp3"&&t.codec==="mp3")return De.box(De.types.stsd,De.STSD,De.mp3(t))}else if(t.pps&&t.sps){if(n==="avc")return De.box(De.types.stsd,De.STSD,De.avc1(t));if(n==="hevc"&&t.vps)return De.box(De.types.stsd,De.STSD,De.hvc1(t))}
vendor: 24,069 bytes, line 107
107else throw new Error("video track missing pps or sps");throw new Error(`unsupported ${t.type} segment codec (${n}/${t.codec})`)}static tkhd(t){const n=t.id,r=(t.duration||0)*(t.timescale||0),s=t.width||0,i=t.height||0,o=Math.floor(r/(Ua+1)),a=Math.floor(r%(Ua+1));return De.box(De.types.tkhd,new Uint8Array([1,0,0,7,0,0,0,0,0,0,0,2,0,0,0,0,0,0,0,3,n>>24&255,n>>16&255,n>>8&255,n&255,0,0,0,0,o>>24,o>>16&255,o>>8&255,o&255,a>>24,a>>16&255,a>>8&255,a&255,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,s>>8&255,s&255,0,0,i>>8&255,i&255,0,0]))}static traf(t,n){const r=De.sdtp(t),s=t.id,i=Math.floor(n/(Ua+1)),o=Math.floor(n%(Ua+1));return De.box(De.types.traf,De.box(De.types.tfhd,new Uint8Array([0,0,0,0,s>>24,s>>16&255,s>>8&255,s&255])),De.box(De.types.tfdt,new Uint8Array([1,0,0,0,i>>24,i>>16&255,i>>8&255,i&255,o>>24,o>>16&255,o>>8&255,o&255])),De.trun(t,r.length+16+20+8+16+8+8),r)}static trak(t){return t.duration=t.duration||4294967295,De.box(De.types.trak,De.tkhd(t),De.mdia(t))}static trex(t){const n=t.id;return De.box(De.types.trex,new Uint8Array([0,0,0,0,n>>24,n>>16&255,n>>8&255,n&255,0,0,0,1,0,0,0,0,0,0,0,0,0,1,0,1]))}static trun(t,n){const r=t.samples||[],s=r.length,i=12+16*s,o=new Uint8Array(i);let a,l,u,c,d,f;for(n+=8+i,o.set([t.type==="video"?1:0,0,15,1,s>>>24&255,s>>>16&255,s>>>8&255,s&255,n>>>24&255,n>>>16&255,n>>>8&255,n&255],0),a=0;a<s;a++)l=r[a],u=l.duration,c=l.size,d=l.flags,f=l.cts,o.set([u>>>24&255,u>>>16&255,u>>>8&255,u&255,c>>>24&255,c>>>16&255,c>>>8&255,c&255,d.isLeading<<2|d.dependsOn,d.isDependedOn<<6|d.hasRedundancy<<4|d.paddingValue<<1|d.isNonSync,d.degradPrio&61440,d.degradPrio&15,f>>>24&255,f>>>16&255,f>>>8&255,f&255],12+16*a);return De.box(De.types.trun,o)}static initSegment(t){De.types||De.init();const n=De.moov(t);return ji(De.FTYP,n)}static hvc1(t){const n=t.params,r=[t.vps,t.sps,t.pps],s=4,i=new Uint8Array([1,n.general_profile_space<<6|(n.general_tier_flag?32:0)|n.general_profile_idc,n.general_profile_compatibility_flags[0],n.general_profile_compatibility_flags[1],n.general_profile_compatibility_flags[2],n.general_profile_compatibility_flags[3],n.general_constraint_indicator_flags[0],n.general_constraint_indicator_flags[1],n.general_constraint_indicator_flags[2],n.general_constraint_indicator_flags[3],n.general_constraint_indicator_flags[4],n.general_constraint_indicator_flags[5],n.general_level_idc,240|n.min_spatial_segmentation_idc>>8,255&n.min_spatial_segmentation_idc,252|n.parallelismType,252|n.chroma_format_idc,248|n.bit_depth_luma_minus8,248|n.bit_depth_chroma_minus8,0,parseInt(n.frame_rate.fps),s-1|n.temporal_id_nested<<2|n.num_temporal_layers<<3|(n.frame_rate.fixed?64:0),r.length]);let o=i.length;for(let p=0;p<r.length;p+=1){o+=3;for(let m=0;m<r[p].length;m+=1)o+=2+r[p][m].length}const a=new Uint8Array(o);a.set(i,0),o=i.length;const l=r.length-1;for(let p=0;p<r.length;p+=1){a.set(new Uint8Array([32+p|(p===l?128:0),0,r[p].length]),o),o+=3;for(let m=0;m<r[p].length;m+=1)a.set(new Uint8Array([r[p][m].length>>8,r[p][m].length&255]),o),o+=2,a.set(r[p][m],o),o+=r[p][m].length}const u=De.box(De.types.hvcC,a),c=t.width,d=t.height,f=t.pixelRatio[0],h=t.pixelRatio[1];return De.box(De.types.hvc1,new Uint8Array([0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,c>>8&255,c&255,d>>8&255,d&255,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]),u,De.box(De.types.btrt,new Uint8Array([0,28,156,128,0,45,198,192,0,45,198,192])),De.box(De.types.pasp,new Uint8Array([f>>24,f>>16&255,f>>8&255,f&255,h>>24,h>>16&255,h>>8&255,h&255])))}}De.types=void 0;De.HDLR_TYPES=void 0;De.STTS=void 0;De.STSC=void 0;De.STCO=void 0;De.STSZ=void 0;De.VMHD=void 0;De.SMHD=void 0;De.STSD=void 0;De.FTYP=void 0;De.DINF=void 0;const u5=9e4;function KE(e,t,n=1,r=!1){const s=e*t*n;return r?Math.round(s):s}function Qfe(e,t,n=1,r=!1){return KE(e,t,1/n,r)}function Hd(e,t=!1){return KE(e,1e3,1/u5,t)}function ehe(e,t=1){return KE(e,u5,1/t)}function jI(e){const{baseTime:t,timescale:n,trackId:r}=e;return`${t/n} (${t}/${n}) trackId: ${r}`}const the=10*1e3,nhe=1024,rhe=1152,she=1536;let nc=null,Sx=null;function zI(e,t,n,r){return{duration:t,size:n,cts:r,flags:{isLeading:0,isDependedOn:0,hasRedundancy:0,degradPrio:0,dependsOn:e?2:1,isNonSync:e?0:1}}}class Pm extends Ki{constructor(t,n,r,s){if(super("mp4-remuxer",s),this.observer=void 0,this.config=void 0,this.typeSupported=void 0,this.ISGenerated=!1,this._initPTS=null,this._initDTS=null,this.nextVideoTs=null,this.nextAudioTs=null,this.videoSampleDuration=null,this.isAudioContiguous=!1,this.isVideoContiguous=!1,this.videoTrackConfig=void 0,this.observer=t,this.config=n,this.typeSupported=r,this.ISGenerated=!1,nc===null){const o=(navigator.userAgent||"").match(/Chrome\/(\d+)/i);nc=o?parseInt(o[1]):0}if(Sx===null){const i=navigator.userAgent.match(/Safari\/(\d+)/i);Sx=i?parseInt(i[1]):0}}destroy(){this.config=this.videoTrackConfig=this._initPTS=this._initDTS=null}resetTimeStamp(t){const n=this._initPTS;(!n||!t||t.trackId!==n.trackId||t.baseTime!==n.baseTime||t.timescale!==n.timescale)&&this.log(`Reset initPTS: ${n&&jI(n)} > ${t&&jI(t)}`),this._initPTS=this._initDTS=t}resetNextTimestamp(){this.log("reset next timestamp"),this.isVideoContiguous=!1,this.isAudioContiguous=!1}resetInitSegment(){this.log("ISGenerated flag reset"),this.ISGenerated=!1,this.videoTrackConfig=void 0}getVideoStartPts(t){let n=!1;const r=t[0].pts,s=t.reduce((i,o)=>{let a=o.pts,l=a-i;return l<-4294967296&&(n=!0,a=ti(a,r),l=a-i),l>0?i:a},r);return n&&this.debug("PTS rollover detected"),s}remux(t,n,r,s,i,o,a,l){let u,c,d,f,h,p,m=i,v=i;const x=t.pid>-1,g=n.pid>-1,y=n.samples.length,_=t.samples.length>0,E=a&&y>0||y>1;if((!x||_)&&(!g||E)||this.ISGenerated||a){if(this.ISGenerated){var T,C,I,k;const O=this.videoTrackConfig;(O&&(n.width!==O.width||n.height!==O.height||((T=n.pixelRatio)==null?void 0:T[0])!==((C=O.pixelRatio)==null?void 0:C[0])||((I=n.pixelRatio)==null?void 0:I[1])!==((k=O.pixelRatio)==null?void 0:k[1]))||!O&&E||this.nextAudioTs===null&&_)&&this.resetInitSegment()}this.ISGenerated||(d=this.generateIS(t,n,i,o));const $=this.isVideoContiguous;let R=-1,D;if(E&&(R=ihe(n.samples),!$&&this.config.forceKeyFrameOnDiscontinuity))if(p=!0,R>0){this.warn(`Dropped ${R} out of ${y} video samples due to a missing keyframe`);const O=this.getVideoStartPts(n.samples);n.samples=n.samples.slice(R),n.dropped+=R,v+=(n.samples[0].pts-O)/n.inputTimeScale,D=v}else R===-1&&(this.warn(`No keyframe found out of ${y} video samples`),p=!1);if(this.ISGenerated){if(_&&E){const O=this.getVideoStartPts(n.samples),U=(ti(t.samples[0].pts,O)-O)/n.inputTimeScale;m+=Math.max(0,U),v+=Math.max(0,-U)}if(_){if(t.samplerate||(this.warn("regenerate InitSegment as audio detected"),d=this.generateIS(t,n,i,o)),c=this.remuxAudio(t,m,this.isAudioContiguous,o,g||E||l===pt.AUDIO?v:void 0),E){const O=c?c.endPTS-c.startPTS:0;n.inputTimeScale||(this.warn("regenerate InitSegment as video detected"),d=this.generateIS(t,n,i,o)),u=this.remuxVideo(n,v,$,O)}}else E&&(u=this.remuxVideo(n,v,$,0));u&&(u.firstKeyFrame=R,u.independent=R!==-1,u.firstKeyFramePTS=D)}}return this.ISGenerated&&this._initPTS&&this._initDTS&&(r.samples.length&&(h=c5(r,i,this._initPTS,this._initDTS)),s.samples.length&&(f=d5(s,i,this._initPTS))),{audio:c,video:u,initSegment:d,independent:p,text:f,id3:h}}computeInitPts(t,n,r,s){const i=Math.round(r*n);let o=ti(t,i);if(o<i+n)for(this.log(`Adjusting PTS for rollover in timeline near ${(i-o)/n} ${s}`);o<i+n;)o+=8589934592;return o-i}generateIS(t,n,r,s){const i=t.samples,o=n.samples,a=this.typeSupported,l={},u=this._initPTS;let c=!u||s,d="audio/mp4",f,h,p,m=-1;if(c&&(f=h=1/0),t.config&&i.length){switch(t.timescale=t.samplerate,t.segmentCodec){case"mp3":a.mpeg?(d="audio/mpeg",t.codec=""):a.mp3&&(t.codec="mp3");break;case"ac3":t.codec="ac-3";break}l.audio={id:"audio",container:d,codec:t.codec,initSegment:t.segmentCodec==="mp3"&&a.mpeg?new Uint8Array(0):De.initSegment([t]),metadata:{channelCount:t.channelCount}},c&&(m=t.id,p=t.inputTimeScale,!u||p!==u.timescale?f=h=this.computeInitPts(i[0].pts,p,r,"audio"):c=!1)}if(n.sps&&n.pps&&o.length){if(n.timescale=n.inputTimeScale,l.video={id:"main",container:"video/mp4",codec:n.codec,initSegment:De.initSegment([n]),metadata:{width:n.width,height:n.height}},c)if(m=n.id,p=n.inputTimeScale,!u||p!==u.timescale){const v=this.getVideoStartPts(o),x=ti(o[0].dts,v),g=this.computeInitPts(x,p,r,"video"),y=this.computeInitPts(v,p,r,"video");h=Math.min(h,g),f=Math.min(f,y)}else c=!1;this.videoTrackConfig={width:n.width,height:n.height,pixelRatio:n.pixelRatio}}if(Object.keys(l).length)return this.ISGenerated=!0,c?(u&&this.warn(`Timestamps at playlist time: ${s?"":"~"}${r} ${f/p} != initPTS: ${u.baseTime/u.timescale} (${u.baseTime}/${u.timescale}) trackId: ${u.trackId}`),this.log(`Found initPTS at playlist time: ${r} offset: ${f/p} (${f}/${p}) trackId: ${m}`),this._initPTS={baseTime:f,timescale:p,trackId:m},this._initDTS={baseTime:h,timescale:p,trackId:m}):f=p=void 0,{tracks:l,initPTS:f,timescale:p,trackId:m}}remuxVideo(t,n,r,s){const i=t.inputTimeScale,o=t.samples,a=[],l=o.length,u=this._initPTS,c=u.baseTime*i/u.timescale;let d=this.nextVideoTs,f=8,h=this.videoSampleDuration,p,m,v=Number.POSITIVE_INFINITY,x=Number.NEGATIVE_INFINITY,g=!1;if(!r||d===null){const W=c+n*i,X=o[0].pts-ti(o[0].dts,o[0].pts);nc&&d!==null&&Math.abs(W-X-(d+c))<15e3?r=!0:d=W-X-c}const y=d+c;for(let W=0;W<l;W++){const X=o[W];X.pts=ti(X.pts,y),X.dts=ti(X.dts,y),X.dts<o[W>0?W-1:W].dts&&(g=!0)}g&&o.sort(function(W,X){const Q=W.dts-X.dts,le=W.pts-X.pts;return Q||le}),p=o[0].dts,m=o[o.length-1].dts;const _=m-p,E=_?Math.round(_/(l-1)):h||t.inputTimeScale/30;if(r){const W=p-y,X=W>E,Q=W<-1;if((X||Q)&&(X?this.warn(`${(t.segmentCodec||"").toUpperCase()}: ${Hd(W,!0)} ms (${W}dts) hole between fragments detected at ${n.toFixed(3)}`):this.warn(`${(t.segmentCodec||"").toUpperCase()}: ${Hd(-W,!0)} ms (${W}dts) overlapping between fragments detected at ${n.toFixed(3)}`),!Q||y>=o[0].pts||nc)){p=y;const le=o[0].pts-W;if(X)o[0].dts=p,o[0].pts=le;else{let ve=!0;for(let oe=0;oe<o.length&&!(o[oe].dts>le&&ve);oe++){const K=o[oe].pts;if(o[oe].dts-=W,o[oe].pts-=W,oe<o.length-1){const ee=o[oe+1].pts,ae=o[oe].pts,ue=ee<=ae,Ee=ee<=K;ve=ue==Ee}}}this.log(`Video: Initial PTS/DTS adjusted: ${Hd(le,!0)}/${Hd(p,!0)}, delta: ${Hd(W,!0)} ms`)}}p=Math.max(0,p);let w=0,T=0,C=p;for(let W=0;W<l;W++){const X=o[W],Q=X.units,le=Q.length;let ve=0;for(let oe=0;oe<le;oe++)ve+=Q[oe].data.length;T+=ve,w+=le,X.length=ve,X.dts<C?(X.dts=C,C+=E/4|0||1):C=X.dts,v=Math.min(X.pts,v),x=Math.max(X.pts,x)}m=o[l-1].dts;const I=T+4*w+8;let k;try{k=new Uint8Array(I)}catch(W){this.observer.emit(G.ERROR,G.ERROR,{type:bt.MUX_ERROR,details:Re.REMUX_ALLOC_ERROR,fatal:!1,error:W,bytes:I,reason:`fail allocating video mdat ${I}`});return}const $=new DataView(k.buffer);$.setUint32(0,I),k.set(De.types.mdat,4);let R=!1,D=Number.POSITIVE_INFINITY,O=Number.POSITIVE_INFINITY,B=Number.NEGATIVE_INFINITY,U=Number.NEGATIVE_INFINITY;for(let W=0;W<l;W++){const X=o[W],Q=X.units;let le=0;for(let K=0,ee=Q.length;K<ee;K++){const ae=Q[K],ue=ae.data,Ee=ae.data.byteLength;$.setUint32(f,Ee),f+=4,k.set(ue,f),f+=Ee,le+=4+Ee}let ve;if(W<l-1)h=o[W+1].dts-X.dts,ve=o[W+1].pts-X.pts;else{const K=this.config,ee=W>0?X.dts-o[W-1].dts:E;if(ve=W>0?X.pts-o[W-1].pts:E,K.stretchShortVideoTrack&&this.nextAudioTs!==null){const ae=Math.floor(K.maxBufferHole*i),ue=(s?v+s*i:this.nextAudioTs+c)-X.pts;ue>ae?(h=ue-ee,h<0?h=ee:R=!0,this.log(`It is approximately ${ue/90} ms to the next segment; using duration ${h/90} ms for the last video frame.`)):h=ee}else h=ee}const oe=Math.round(X.pts-X.dts);D=Math.min(D,h),B=Math.max(B,h),O=Math.min(O,ve),U=Math.max(U,ve),a.push(zI(X.key,h,le,oe))}if(a.length){if(nc){if(nc<70){const W=a[0].flags;W.dependsOn=2,W.isNonSync=0}}else if(Sx&&U-O<B-D&&E/B<.025&&a[0].cts===0){this.warn("Found irregular gaps in sample duration. Using PTS instead of DTS to determine MP4 sample duration.");let W=p;for(let X=0,Q=a.length;X<Q;X++){const le=W+a[X].duration,ve=W+a[X].cts;if(X<Q-1){const oe=le+a[X+1].cts;a[X].duration=oe-ve}else a[X].duration=X?a[X-1].duration:E;a[X].cts=0,W=le}}}h=R||!h?E:h;const N=m+h;this.nextVideoTs=d=N-c,this.videoSampleDuration=h,this.isVideoContiguous=!0;const re={data1:De.moof(t.sequenceNumber++,p,kn(t,{samples:a})),data2:k,startPTS:(v-c)/i,endPTS:(x+h-c)/i,startDTS:(p-c)/i,endDTS:d/i,type:"video",hasAudio:!1,hasVideo:!0,nb:a.length,dropped:t.dropped};return t.samples=[],t.dropped=0,re}getSamplesPerFrame(t){switch(t.segmentCodec){case"mp3":return rhe;case"ac3":return she;default:return nhe}}remuxAudio(t,n,r,s,i){const o=t.inputTimeScale,a=t.samplerate?t.samplerate:o,l=o/a,u=this.getSamplesPerFrame(t),c=u*l,d=this._initPTS,f=t.segmentCodec==="mp3"&&this.typeSupported.mpeg,h=[],p=i!==void 0;let m=t.samples,v=f?0:8,x=this.nextAudioTs||-1;const g=d.baseTime*o/d.timescale,y=g+n*o;if(this.isAudioContiguous=r=r||m.length&&x>0&&(s&&Math.abs(y-(x+g))<9e3||Math.abs(ti(m[0].pts,y)-(x+g))<20*c),m.forEach(function(U){U.pts=ti(U.pts,y)}),!r||x<0){const U=m.length;if(m=m.filter(N=>N.pts>=0),U!==m.length&&this.warn(`Removed ${m.length-U} of ${U} samples (initPTS ${g} / ${o})`),!m.length)return;i===0?x=0:s&&!p?x=Math.max(0,y-g):x=m[0].pts-g}if(t.segmentCodec==="aac"){const U=this.config.maxAudioFramesDrift;for(let N=0,V=x+g;N<m.length;N++){const H=m[N],re=H.pts,W=re-V,X=Math.abs(1e3*W/o);if(W<=-U*c&&p)N===0&&(this.warn(`Audio frame @ ${(re/o).toFixed(3)}s overlaps marker by ${Math.round(1e3*W/o)} ms.`),this.nextAudioTs=x=re-g,V=re);else if(W>=U*c&&X<the&&p){let Q=Math.round(W/c);for(V=re-Q*c;V<0&&Q&&c;)Q--,V+=c;N===0&&(this.nextAudioTs=x=V-g),this.warn(`Injecting ${Q} audio frames @ ${((V-g)/o).toFixed(3)}s due to ${Math.round(1e3*W/o)} ms gap.`);for(let le=0;le<Q;le++){let ve=Jfe.getSilentFrame(t.parsedCodec||t.manifestCodec||t.codec,t.channelCount);ve||(this.log("Unable to get silent frame for given audio codec; duplicating last frame instead."),ve=H.unit.subarray()),m.splice(N,0,{unit:ve,pts:V}),V+=c,N++}}H.pts=V,V+=c}}let _=null,E=null,w,T=0,C=m.length;for(;C--;)T+=m[C].unit.byteLength;for(let U=0,N=m.length;U<N;U++){const V=m[U],H=V.unit;let re=V.pts;if(E!==null){const X=h[U-1];X.duration=Math.round((re-E)/l)}else if(r&&t.segmentCodec==="aac"&&(re=x+g),_=re,T>0){T+=v;try{w=new Uint8Array(T)}catch(X){this.observer.emit(G.ERROR,G.ERROR,{type:bt.MUX_ERROR,details:Re.REMUX_ALLOC_ERROR,fatal:!1,error:X,bytes:T,reason:`fail allocating audio mdat ${T}`});return}f||(new DataView(w.buffer).setUint32(0,T),w.set(De.types.mdat,4))}else return;w.set(H,v);const W=H.byteLength;v+=W,h.push(zI(!0,u,W,0)),E=re}const I=h.length;if(!I)return;const k=h[h.length-1];x=E-g,this.nextAudioTs=x+l*k.duration;const $=f?new Uint8Array(0):De.moof(t.sequenceNumber++,_/l,kn({},t,{samples:h}));t.samples=[];const R=(_-g)/o,D=x/o,B={data1:$,data2:w,startPTS:R,endPTS:D,startDTS:R,endDTS:D,type:"audio",hasAudio:!0,hasVideo:!1,nb:I};return this.isAudioContiguous=!0,B}}function ti(e,t){let n;if(t===null)return e;for(t<e?n=-8589934592:n=8589934592;Math.abs(e-t)>4294967296;)e+=n;return e}function ihe(e){for(let t=0;t<e.length;t++)if(e[t].key)return t;return-1}function c5(e,t,n,r){const s=e.samples.length;if(!s)return;const i=e.inputTimeScale;for(let a=0;a<s;a++){const l=e.samples[a];l.pts=ti(l.pts-n.baseTime*i/n.timescale,t*i)/i,l.dts=ti(l.dts-r.baseTime*i/r.timescale,t*i)/i}const o=e.samples;return e.samples=[],{samples:o}}function d5(e,t,n){const r=e.samples.length;if(!r)return;const s=e.inputTimeScale;for(let o=0;o<r;o++){const a=e.samples[o];a.pts=ti(a.pts-n.baseTime*s/n.timescale,t*s)/s}e.samples.sort((o,a)=>o.pts-a.pts);const i=e.samples;return e.samples=[],{samples:i}}class ohe extends Ki{constructor(t,n,r,s){super("passthrough-remuxer",s),this.emitInitSegment=!1,this.audioCodec=void 0,this.videoCodec=void 0,this.initData=void 0,this.initPTS=null,this.initTracks=void 0,this.lastEndTime=null,this.isVideoContiguous=!1}destroy(){}resetTimeStamp(t){this.lastEndTime=null;const n=this.initPTS;n&&t&&n.baseTime===t.baseTime&&n.timescale===t.timescale||(this.initPTS=t)}resetNextTimestamp(){this.isVideoContiguous=!1,this.lastEndTime=null}resetInitSegment(t,n,r,s){this.audioCodec=n,this.videoCodec=r,this.generateInitSegment(t,s),this.emitInitSegment=!0}generateInitSegment(t,n){let{audioCodec:r,videoCodec:s}=this;if(!(t!=null&&t.byteLength)){this.initTracks=void 0,this.initData=void 0;return}const{audio:i,video:o}=this.initData=g6(t);if(n)Wce(t,n);else{const l=i||o;l!=null&&l.encrypted&&this.warn(`Init segment with encrypted track with has no key ("${l.codec}")!`)}i&&(r=HI(i,In.AUDIO,this)),o&&(s=HI(o,In.VIDEO,this));const a={};i&&o?a.audiovideo={container:"video/mp4",codec:r+","+s,supplemental:o.supplemental,encrypted:o.encrypted,initSegment:t,id:"main"}:i?a.audio={container:"audio/mp4",codec:r,encrypted:i.encrypted,initSegment:t,id:"audio"}:o?a.video={container:"video/mp4",codec:s,supplemental:o.supplemental,encrypted:o.encrypted,initSegment:t,id:"main"}:this.warn("initSegment does not contain moov or trak boxes."),this.initTracks=a}remux(t,n,r,s,i,o){var a,l;let{initPTS:u,lastEndTime:c}=this;const d={audio:void 0,video:void 0,text:s,id3:r,initSegment:void 0};lt(c)||(c=this.lastEndTime=i||0);const f=n.samples;if(!f.length)return d;const h={initPTS:void 0,timescale:void 0,trackId:void 0};let p=this.initData;if((a=p)!=null&&a.length||(this.generateInitSegment(f),p=this.initData),!((l=p)!=null&&l.length))return this.warn("Failed to generate initSegment."),d;this.emitInitSegment&&(h.tracks=this.initTracks,this.emitInitSegment=!1);const m=Yce(f,p,this),v=p.audio?m[p.audio.id]:null,x=p.video?m[p.video.id]:null,g=ip(x,1/0),y=ip(v,1/0),_=ip(x,0,!0),E=ip(v,0,!0);let w=i,T=0;const C=v&&(!x||!u&&y<g||u&&u.trackId===p.audio.id),I=C?v:x;if(I){const V=I.timescale,H=I.start-i*V,re=C?p.audio.id:p.video.id;w=I.start/V,T=C?E-y:_-g,(o||!u)&&(ahe(u,w,i,T)||V!==u.timescale)&&(u&&this.warn(`Timestamps at playlist time: ${o?"":"~"}${i} ${H/V} != initPTS: ${u.baseTime/u.timescale} (${u.baseTime}/${u.timescale}) trackId: ${u.trackId}`),this.log(`Found initPTS at playlist time: ${i} offset: ${w-i} (${H}/${V}) trackId: ${re}`),u=null,h.initPTS=H,h.timescale=V,h.trackId=re)}else this.warn(`No audio or video samples found for initPTS at playlist time: ${i}`);u?(h.initPTS=u.baseTime,h.timescale=u.timescale,h.trackId=u.trackId):((!h.timescale||h.trackId===void 0||h.initPTS===void 0)&&(this.warn("Could not set initPTS"),h.initPTS=w,h.timescale=1,h.trackId=-1),this.initPTS=u={baseTime:h.initPTS,timescale:h.timescale,trackId:h.trackId});const k=w-u.baseTime/u.timescale,$=k+T;T>0?this.lastEndTime=$:(this.warn("Duration parsed from mp4 should be greater than zero"),this.resetNextTimestamp());const R=!!p.audio,D=!!p.video;let O="";R&&(O+="audio"),D&&(O+="video");const B=(p.audio?p.audio.encrypted:!1)||(p.video?p.video.encrypted:!1),U={data1:f,startPTS:k,startDTS:k,endPTS:$,endDTS:$,type:O,hasAudio:R,hasVideo:D,nb:1,dropped:0,encrypted:B};d.audio=R&&!D?U:void 0,d.video=D?U:void 0;const N=x?.sampleCount;if(N){const V=x.keyFrameIndex,H=V!==-1;U.nb=N,U.dropped=V===0||this.isVideoContiguous?0:H?V:N,U.independent=H,U.firstKeyFrame=V,H&&x.keyFrameStart&&(U.firstKeyFramePTS=(x.keyFrameStart-u.baseTime)/u.timescale),this.isVideoContiguous||(d.independent=H),this.isVideoContiguous||(this.isVideoContiguous=H),U.dropped&&this.warn(`fmp4 does not start with IDR: firstIDR ${V}/${N} dropped: ${U.dropped} start: ${U.firstKeyFramePTS||"NA"}`)}return d.initSegment=h,d.id3=c5(r,i,u,u),s.samples.length&&(d.text=d5(s,i,u)),d}}function ip(e,t,n=!1){return e?.start!==void 0?(e.start+(n?e.duration:0))/e.timescale:t}function ahe(e,t,n,r){if(e===null)return!0;const s=Math.max(r,1),i=t-e.baseTime/e.timescale;return Math.abs(i-n)>s}function HI(e,t,n){const r=e.codec;return r&&r.length>4?r:t===In.AUDIO?r==="ec-3"||r==="ac-3"||r==="alac"?r:r==="fLaC"||r==="Opus"?cg(r,!1):(n.warn(`Unhandled audio codec "${r}" in mp4 MAP`),r||"mp4a"):(n.warn(`Unhandled video codec "${r}" in mp4 MAP`),r||"avc1")}let oa;try{oa=self.performance.now.bind(self.performance)}catch{oa=Date.now}const Rm=[{demux:Kfe,remux:ohe},{demux:rl,remux:Pm},{demux:jfe,remux:Pm},{demux:Hfe,remux:Pm}];Rm.splice(2,0,{demux:zfe,remux:Pm});class GI{constructor(t,n,r,s,i,o){this.asyncResult=!1,this.logger=void 0,this.observer=void 0,this.typeSupported=void 0,this.config=void 0,this.id=void 0,this.demuxer=void 0,this.remuxer=void 0,this.decrypter=void 0,this.probe=void 0,this.decryptionPromise=null,this.transmuxConfig=void 0,this.currentTransmuxState=void 0,this.observer=t,this.typeSupported=n,this.config=r,this.id=i,this.logger=o}configure(t){this.transmuxConfig=t,this.decrypter&&this.decrypter.reset()}push(t,n,r,s){const i=r.transmuxing;i.executeStart=oa();let o=new Uint8Array(t);const{currentTransmuxState:a,transmuxConfig:l}=this;s&&(this.currentTransmuxState=s);const{contiguous:u,discontinuity:c,trackSwitch:d,accurateTimeOffset:f,timeOffset:h,initSegmentChange:p}=s||a,{audioCodec:m,videoCodec:v,defaultInitPts:x,duration:g,initSegmentData:y}=l,_=lhe(o,n);if(_&&Ec(_.method)){const C=this.getDecrypter(),I=FE(_.method);if(C.isSync()){let k=C.softwareDecrypt(o,_.key.buffer,_.iv.buffer,I);if(r.part>-1){const R=C.flush();k=R&&R.buffer}if(!k)return i.executeEnd=oa(),Ex(r);o=new Uint8Array(k)}else return this.asyncResult=!0,this.decryptionPromise=C.webCryptoDecrypt(o,_.key.buffer,_.iv.buffer,I).then(k=>{const $=this.push(k,null,r);return this.decryptionPromise=null,$}),this.decryptionPromise}const E=this.needsProbing(c,d);if(E){const C=this.configureTransmuxer(o);if(C)return this.logger.warn(`[transmuxer] ${C.message}`),this.observer.emit(G.ERROR,G.ERROR,{type:bt.MEDIA_ERROR,details:Re.FRAG_PARSING_ERROR,fatal:!1,error:C,reason:C.message}),i.executeEnd=oa(),Ex(r)}(c||d||p||E)&&this.resetInitSegment(y,m,v,g,n),(c||p||E)&&this.resetInitialTimestamp(x),u||this.resetContiguity();const w=this.transmux(o,_,h,f,r);this.asyncResult=ph(w);const T=this.currentTransmuxState;return T.contiguous=!0,T.discontinuity=!1,T.trackSwitch=!1,i.executeEnd=oa(),w}flush(t){const n=t.transmuxing;n.executeStart=oa();const{decrypter:r,currentTransmuxState:s,decryptionPromise:i}=this;if(i)return this.asyncResult=!0,i.then(()=>this.flush(t));const o=[],{timeOffset:a}=s;if(r){const d=r.flush();d&&o.push(this.push(d.buffer,null,t))}const{demuxer:l,remuxer:u}=this;if(!l||!u){n.executeEnd=oa();const d=[Ex(t)];return this.asyncResult?Promise.resolve(d):d}const c=l.flush(a);return ph(c)?(this.asyncResult=!0,c.then(d=>(this.flushRemux(o,d,t),o))):(this.flushRemux(o,c,t),this.asyncResult?Promise.resolve(o):o)}flushRemux(t,n,r){const{audioTrack:s,videoTrack:i,id3Track:o,textTrack:a}=n,{accurateTimeOffset:l,timeOffset:u}=this.currentTransmuxState;this.logger.log(`[transmuxer.ts]: Flushed ${this.id} sn: ${r.sn}${r.part>-1?" part: "+r.part:""} of ${this.id===pt.MAIN?"level":"track"} ${r.level}`);const c=this.remuxer.remux(s,i,o,a,u,l,!0,this.id);t.push({remuxResult:c,chunkMeta:r}),r.transmuxing.executeEnd=oa()}resetInitialTimestamp(t){const{demuxer:n,remuxer:r}=this;!n||!r||(n.resetTimeStamp(t),r.resetTimeStamp(t))}resetContiguity(){const{demuxer:t,remuxer:n}=this;!t||!n||(t.resetContiguity(),n.resetNextTimestamp())}resetInitSegment(t,n,r,s,i){const{demuxer:o,remuxer:a}=this;!o||!a||(o.resetInitSegment(t,n,r,s),a.resetInitSegment(t,n,r,i))}destroy(){this.demuxer&&(this.demuxer.destroy(),this.demuxer=void 0),this.remuxer&&(this.remuxer.destroy(),this.remuxer=void 0)}transmux(t,n,r,s,i){let o;return n&&n.method==="SAMPLE-AES"?o=this.transmuxSampleAes(t,n,r,s,i):o=this.transmuxUnencrypted(t,r,s,i),o}transmuxUnencrypted(t,n,r,s){const{audioTrack:i,videoTrack:o,id3Track:a,textTrack:l}=this.demuxer.demux(t,n,!1,!this.config.progressive);return{remuxResult:this.remuxer.remux(i,o,a,l,n,r,!1,this.id),chunkMeta:s}}transmuxSampleAes(t,n,r,s,i){return this.demuxer.demuxSampleAes(t,n,r).then(o=>({remuxResult:this.remuxer.remux(o.audioTrack,o.videoTrack,o.id3Track,o.textTrack,r,s,!1,this.id),chunkMeta:i}))}
vendor: 3,942 bytes, line 107
107configureTransmuxer(t){const{config:n,observer:r,typeSupported:s}=this;let i;for(let d=0,f=Rm.length;d<f;d++){var o;if((o=Rm[d].demux)!=null&&o.probe(t,this.logger)){i=Rm[d];break}}if(!i)return new Error("Failed to find demuxer by probing fragment data");const a=this.demuxer,l=this.remuxer,u=i.remux,c=i.demux;(!l||!(l instanceof u))&&(this.remuxer=new u(r,n,s,this.logger)),(!a||!(a instanceof c))&&(this.demuxer=new c(r,n,s,this.logger),this.probe=c.probe)}needsProbing(t,n){return!this.demuxer||!this.remuxer||t||n}getDecrypter(){let t=this.decrypter;return t||(t=this.decrypter=new $E(this.config)),t}}function lhe(e,t){let n=null;return e.byteLength>0&&t?.key!=null&&t.iv!==null&&t.method!=null&&(n=t),n}const Ex=e=>({remuxResult:{},chunkMeta:e});function ph(e){return"then"in e&&e.then instanceof Function}class uhe{constructor(t,n,r,s,i){this.audioCodec=void 0,this.videoCodec=void 0,this.initSegmentData=void 0,this.duration=void 0,this.defaultInitPts=void 0,this.audioCodec=t,this.videoCodec=n,this.initSegmentData=r,this.duration=s,this.defaultInitPts=i||null}}class che{constructor(t,n,r,s,i,o){this.discontinuity=void 0,this.contiguous=void 0,this.accurateTimeOffset=void 0,this.trackSwitch=void 0,this.timeOffset=void 0,this.initSegmentChange=void 0,this.discontinuity=t,this.contiguous=n,this.accurateTimeOffset=r,this.trackSwitch=s,this.timeOffset=i,this.initSegmentChange=o}}let KI=0;class f5{constructor(t,n,r,s){this.error=null,this.hls=void 0,this.id=void 0,this.instanceNo=KI++,this.observer=void 0,this.frag=null,this.part=null,this.useWorker=void 0,this.workerContext=null,this.transmuxer=null,this.onTransmuxComplete=void 0,this.onFlush=void 0,this.onWorkerMessage=l=>{const u=l.data,c=this.hls;if(!(!c||!(u!=null&&u.event)||u.instanceNo!==this.instanceNo))switch(u.event){case"init":{var d;const f=(d=this.workerContext)==null?void 0:d.objectURL;f&&self.URL.revokeObjectURL(f);break}case"transmuxComplete":{this.handleTransmuxComplete(u.data);break}case"flush":{this.onFlush(u.data);break}case"workerLog":{c.logger[u.data.logType]&&c.logger[u.data.logType](u.data.message);break}default:{u.data=u.data||{},u.data.frag=this.frag,u.data.part=this.part,u.data.id=this.id,c.trigger(u.event,u.data);break}}},this.onWorkerError=l=>{if(!this.hls)return;const u=new Error(`${l.message}  (${l.filename}:${l.lineno})`);this.hls.config.enableWorker=!1,this.hls.logger.warn(`Error in "${this.id}" Web Worker, fallback to inline`),this.hls.trigger(G.ERROR,{type:bt.OTHER_ERROR,details:Re.INTERNAL_EXCEPTION,fatal:!1,event:"demuxerWorker",error:u})};const i=t.config;this.hls=t,this.id=n,this.useWorker=!!i.enableWorker,this.onTransmuxComplete=r,this.onFlush=s;const o=(l,u)=>{u=u||{},u.frag=this.frag||void 0,l===G.ERROR&&(u=u,u.parent=this.id,u.part=this.part,this.error=u.error),this.hls.trigger(l,u)};this.observer=new VE,this.observer.on(G.FRAG_DECRYPTED,o),this.observer.on(G.ERROR,o);const a=aI(i.preferManagedMediaSource);if(this.useWorker&&typeof Worker<"u"){const l=this.hls.logger;if(i.workerPath||pfe()){try{i.workerPath?(l.log(`loading Web Worker ${i.workerPath} for "${n}"`),this.workerContext=vfe(i.workerPath)):(l.log(`injecting Web Worker for "${n}"`),this.workerContext=mfe());const{worker:c}=this.workerContext;c.addEventListener("message",this.onWorkerMessage),c.addEventListener("error",this.onWorkerError),c.postMessage({instanceNo:this.instanceNo,cmd:"init",typeSupported:a,id:n,config:Ln(i)})}catch(c){l.warn(`Error setting up "${n}" Web Worker, fallback to inline`,c),this.terminateWorker(),this.error=null,this.transmuxer=new GI(this.observer,a,i,"",n,t.logger)}return}}this.transmuxer=new GI(this.observer,a,i,"",n,t.logger)}reset(){if(this.frag=null,this.part=null,this.workerContext){const t=this.instanceNo;this.instanceNo=KI++;const n=this.hls.config,r=aI(n.preferManagedMediaSource);this.workerContext.worker.postMessage({instanceNo:this.instanceNo,cmd:"reset",resetNo:t,typeSupported:r,id:this.id,c
vendor: 19,378 bytes, lines 107-113
107onfig:Ln(n)})}}terminateWorker(){if(this.workerContext){const{worker:t}=this.workerContext;this.workerContext=null,t.removeEventListener("message",this.onWorkerMessage),t.removeEventListener("error",this.onWorkerError),gfe(this.hls.config.workerPath)}}destroy(){if(this.workerContext)this.terminateWorker(),this.onWorkerMessage=this.onWorkerError=null;else{const n=this.transmuxer;n&&(n.destroy(),this.transmuxer=null)}const t=this.observer;t&&t.removeAllListeners(),this.frag=null,this.part=null,this.observer=null,this.hls=null}push(t,n,r,s,i,o,a,l,u,c){var d,f;u.transmuxing.start=self.performance.now();const{instanceNo:h,transmuxer:p}=this,m=o?o.start:i.start,v=i.decryptdata,x=this.frag,g=!(x&&i.cc===x.cc),y=!(x&&u.level===x.level),_=x?u.sn-x.sn:-1,E=this.part?u.part-this.part.index:-1,w=_===0&&u.id>1&&u.id===x?.stats.chunkCount,T=!y&&(_===1||_===0&&(E===1||w&&E<=0)),C=self.performance.now();(y||_||i.stats.parsing.start===0)&&(i.stats.parsing.start=C),o&&(E||!T)&&(o.stats.parsing.start=C);const I=!(x&&((d=i.initSegment)==null?void 0:d.url)===((f=x.initSegment)==null?void 0:f.url)),k=new che(g,T,l,y,m,I);if(!T||g||I){this.hls.logger.log(`[transmuxer-interface]: Starting new transmux session for ${i.type} sn: ${u.sn}${u.part>-1?" part: "+u.part:""} ${this.id===pt.MAIN?"level":"track"}: ${u.level} id: ${u.id}
108        discontinuity: ${g}
109        trackSwitch: ${y}
110        contiguous: ${T}
111        accurateTimeOffset: ${l}
112        timeOffset: ${m}
113        initSegmentChange: ${I}`);const $=new uhe(r,s,n,a,c);this.configureTransmuxer($)}if(this.frag=i,this.part=o,this.workerContext)this.workerContext.worker.postMessage({instanceNo:h,cmd:"demux",data:t,decryptdata:v,chunkMeta:u,state:k},t instanceof ArrayBuffer?[t]:[]);else if(p){const $=p.push(t,v,u,k);ph($)?$.then(R=>{this.handleTransmuxComplete(R)}).catch(R=>{this.transmuxerError(R,u,"transmuxer-interface push error")}):this.handleTransmuxComplete($)}}flush(t){t.transmuxing.start=self.performance.now();const{instanceNo:n,transmuxer:r}=this;if(this.workerContext)this.workerContext.worker.postMessage({instanceNo:n,cmd:"flush",chunkMeta:t});else if(r){const s=r.flush(t);ph(s)?s.then(i=>{this.handleFlushResult(i,t)}).catch(i=>{this.transmuxerError(i,t,"transmuxer-interface flush error")}):this.handleFlushResult(s,t)}}transmuxerError(t,n,r){this.hls&&(this.error=t,this.hls.trigger(G.ERROR,{type:bt.MEDIA_ERROR,details:Re.FRAG_PARSING_ERROR,chunkMeta:n,frag:this.frag||void 0,part:this.part||void 0,fatal:!1,error:t,err:t,reason:r}))}handleFlushResult(t,n){t.forEach(r=>{this.handleTransmuxComplete(r)}),this.onFlush(n)}configureTransmuxer(t){const{instanceNo:n,transmuxer:r}=this;this.workerContext?this.workerContext.worker.postMessage({instanceNo:n,cmd:"configure",config:t}):r&&r.configure(t)}handleTransmuxComplete(t){t.chunkMeta.transmuxing.end=self.performance.now(),this.onTransmuxComplete(t)}}const WI=100;class dhe extends NE{constructor(t,n,r){super(t,n,r,"audio-stream-controller",pt.AUDIO),this.mainAnchor=null,this.mainFragLoading=null,this.audioOnly=!1,this.bufferedTrack=null,this.switchingTrack=null,this.trackId=-1,this.waitingData=null,this.mainDetails=null,this.flushing=!1,this.bufferFlushed=!1,this.cachedTrackLoadedData=null,this.registerListeners()}onHandlerDestroying(){this.unregisterListeners(),super.onHandlerDestroying(),this.resetItem()}resetItem(){this.mainDetails=this.mainAnchor=this.mainFragLoading=this.bufferedTrack=this.switchingTrack=this.waitingData=this.cachedTrackLoadedData=null}registerListeners(){super.registerListeners();const{hls:t}=this;t.on(G.LEVEL_LOADED,this.onLevelLoaded,this),t.on(G.AUDIO_TRACKS_UPDATED,this.onAudioTracksUpdated,this),t.on(G.AUDIO_TRACK_SWITCHING,this.onAudioTrackSwitching,this),t.on(G.AUDIO_TRACK_LOADED,this.onAudioTrackLoaded,this),t.on(G.BUFFER_RESET,this.onBufferReset,this),t.on(G.BUFFER_CREATED,this.onBufferCreated,this),t.on(G.BUFFER_FLUSHING,this.onBufferFlushing,this),t.on(G.BUFFER_FLUSHED,this.onBufferFlushed,this),t.on(G.INIT_PTS_FOUND,this.onInitPtsFound,this),t.on(G.FRAG_LOADING,this.onFragLoading,this),t.on(G.FRAG_BUFFERED,this.onFragBuffered,this)}unregisterListeners(){const{hls:t}=this;t&&(super.unregisterListeners(),t.off(G.LEVEL_LOADED,this.onLevelLoaded,this),t.off(G.AUDIO_TRACKS_UPDATED,this.onAudioTracksUpdated,this),t.off(G.AUDIO_TRACK_SWITCHING,this.onAudioTrackSwitching,this),t.off(G.AUDIO_TRACK_LOADED,this.onAudioTrackLoaded,this),t.off(G.BUFFER_RESET,this.onBufferReset,this),t.off(G.BUFFER_CREATED,this.onBufferCreated,this),t.off(G.BUFFER_FLUSHING,this.onBufferFlushing,this),t.off(G.BUFFER_FLUSHED,this.onBufferFlushed,this),t.off(G.INIT_PTS_FOUND,this.onInitPtsFound,this),t.off(G.FRAG_LOADING,this.onFragLoading,this),t.off(G.FRAG_BUFFERED,this.onFragBuffered,this))}onInitPtsFound(t,{frag:n,id:r,initPTS:s,timescale:i,trackId:o}){if(r===pt.MAIN){const a=n.cc,l=this.fragCurrent;if(this.initPTS[a]={baseTime:s,timescale:i,trackId:o},this.log(`InitPTS for cc: ${a} found from main: ${s/i} (${s}/${i}) trackId: ${o}`),this.mainAnchor=n,this.state===Ge.WAITING_INIT_PTS){const u=this.waitingData;(!u&&!this.loadingParts||u&&u.frag.cc!==a)&&this.syncWithAnchor(n,u?.frag)}else!this.hls.hasEnoughToStart&&l&&l.cc!==a?(l.abortRequests(),this.syncWithAnchor(n,l)):this.state===Ge.IDLE&&this.tick()}}getLoadPosition(){return!this.startFragRequested&&this.nextLoadPosition>=0?this.nextLoadPosition:super.getLoadPosition()}syncWithAnchor(t,n){var r;const s=((r=this.mainFragLoading)==null?void 0:r.frag)||null;if(n&&s?.cc===n.cc)return;const i=(s||t).cc,o=this.getLevelDetails(),a=this.getLoadPosition(),l=k6(o,i,a);l&&(this.log(`Syncing with main frag at ${l.start} cc ${l.cc}`),this.startFragRequested=!1,this.nextLoadPosition=l.start,this.resetLoadingState(),this.state===Ge.IDLE&&this.doTickIdle())}startLoad(t,n){if(!this.levels){this.startPosition=t,this.state=Ge.STOPPED;return}const r=this.lastCurrentTime;this.stopLoad(),this.setInterval(WI),r>0&&t===-1?(this.log(`Override startPosition with lastCurrentTime @${r.toFixed(3)}`),t=r,this.state=Ge.IDLE):this.state=Ge.WAITING_TRACK,this.nextLoadPosition=this.lastCurrentTime=t+this.timelineOffset,this.startPosition=n?-1:t,this.tick()}doTick(){switch(this.state){case Ge.IDLE:this.doTickIdle();break;case Ge.WAITING_TRACK:{const{levels:t,trackId:n}=this,r=t?.[n],s=r?.details;if(s&&!this.waitForLive(r)){if(this.waitForCdnTuneIn(s))break;this.state=Ge.WAITING_INIT_PTS}break}case Ge.FRAG_LOADING_WAITING_RETRY:{this.checkRetryDate();break}case Ge.WAITING_INIT_PTS:{const t=this.waitingData;if(t){const{frag:n,part:r,cache:s,complete:i}=t,o=this.mainAnchor;if(this.initPTS[n.cc]!==void 0){this.waitingData=null,this.state=Ge.FRAG_LOADING;const a=s.flush().buffer,l={frag:n,part:r,payload:a,networkDetails:null};this._handleFragmentLoadProgress(l),i&&super._handleFragmentLoadComplete(l)}else o&&o.cc!==t.frag.cc&&this.syncWithAnchor(o,t.frag)}else this.state=Ge.IDLE}}this.onTickEnd()}resetLoadingState(){const t=this.waitingData;t&&(this.fragmentTracker.removeFragment(t.frag),this.waitingData=null),super.resetLoadingState()}onTickEnd(){const{media:t}=this;t!=null&&t.readyState&&(this.lastCurrentTime=t.currentTime)}doTickIdle(){var t;const{hls:n,levels:r,media:s,trackId:i}=this,o=n.config;if(!this.buffering||!s&&!this.primaryPrefetch&&(this.startFragRequested||!o.startFragPrefetch)||!(r!=null&&r[i]))return;const a=r[i],l=a.details;if(!l||this.waitForLive(a)||this.waitForCdnTuneIn(l)){this.state=Ge.WAITING_TRACK,this.startFragRequested=!1;return}const u=this.mediaBuffer?this.mediaBuffer:this.media;this.bufferFlushed&&u&&(this.bufferFlushed=!1,this.afterBufferFlushed(u,In.AUDIO,pt.AUDIO));const c=this.getFwdBufferInfo(u,pt.AUDIO);if(c===null)return;if(!this.switchingTrack&&this._streamEnded(c,l)){n.trigger(G.BUFFER_EOS,{type:"audio"}),this.state=Ge.ENDED;return}const d=c.len,f=n.maxBufferLength,h=l.fragments,p=h[0].start,m=this.getLoadPosition(),v=this.flushing?m:c.end;if(this.switchingTrack&&s){const y=m;l.PTSKnown&&y<p&&(c.end>p||c.nextStart)&&(this.log("Alt audio track ahead of main track, seek to start of alt audio track"),s.currentTime=p+.05)}if(d>=f&&!this.switchingTrack&&v<h[h.length-1].start)return;let x=this.getNextFragment(v,l);if(x&&this.isLoopLoading(x,v)&&(x=this.getNextFragmentLoopLoading(x,l,c,pt.MAIN,f)),!x){this.bufferFlushed=!0;return}let g=((t=this.mainFragLoading)==null?void 0:t.frag)||null;if(!this.audioOnly&&this.startFragRequested&&g&&mr(x)&&!x.endList&&(!l.live||!this.loadingParts&&v<this.hls.liveSyncPosition)&&(this.fragmentTracker.getState(g)===br.OK&&(this.mainFragLoading=g=null),g&&mr(g))){if(x.start>g.end){const _=this.fragmentTracker.getFragAtPos(v,pt.MAIN);_&&_.end>g.end&&(g=_,this.mainFragLoading={frag:_,targetBufferTime:null})}if(x.start>g.end)return}this.loadFragment(x,a,v)}onMediaDetaching(t,n){this.bufferFlushed=this.flushing=!1,super.onMediaDetaching(t,n)}onAudioTracksUpdated(t,{audioTracks:n}){this.resetTransmuxer(),this.levels=n.map(r=>new dh(r))}onAudioTrackSwitching(t,n){const r=!!n.url;this.trackId=n.id;const{fragCurrent:s}=this;s&&(s.abortRequests(),this.removeUnbufferedFrags(s.start)),this.resetLoadingState(),r?(this.switchingTrack=n,this.flushAudioIfNeeded(n),this.state!==Ge.STOPPED&&(this.setInterval(WI),this.state=Ge.IDLE,this.tick())):(this.resetTransmuxer(),this.switchingTrack=null,this.bufferedTrack=n,this.clearInterval())}onManifestLoading(){super.onManifestLoading(),this.bufferFlushed=this.flushing=this.audioOnly=!1,this.resetItem(),this.trackId=-1}onLevelLoaded(t,n){this.mainDetails=n.details;const r=this.cachedTrackLoadedData;r&&(this.cachedTrackLoadedData=null,this.onAudioTrackLoaded(G.AUDIO_TRACK_LOADED,r))}onAudioTrackLoaded(t,n){var r;const{levels:s}=this,{details:i,id:o,groupId:a,track:l}=n;if(!s){this.warn(`Audio tracks reset while loading track ${o} "${l.name}" of "${a}"`);return}const u=this.mainDetails;if(!u||i.endCC>u.endCC||u.expired){this.cachedTrackLoadedData=n,this.state!==Ge.STOPPED&&(this.state=Ge.WAITING_TRACK);return}this.cachedTrackLoadedData=null,this.log(`Audio track ${o} "${l.name}" of "${a}" loaded [${i.startSN},${i.endSN}]${i.lastPartSn?`[part-${i.lastPartSn}-${i.lastPartIndex}]`:""},duration:${i.totalduration}`);const c=s[o];let d=0;if(i.live||(r=c.details)!=null&&r.live){if(this.checkLiveUpdate(i),i.deltaUpdateFailed)return;if(c.details){var f;d=this.alignPlaylists(i,c.details,(f=this.levelLastLoaded)==null?void 0:f.details)}i.alignedSliding||(K6(i,u),i.alignedSliding||gg(i,u),d=i.fragmentStart)}c.details=i,this.levelLastLoaded=c,this.startFragRequested||this.setStartPosition(u,d),this.hls.trigger(G.AUDIO_TRACK_UPDATED,{details:i,id:o,groupId:n.groupId}),this.state===Ge.WAITING_TRACK&&!this.waitForCdnTuneIn(i)&&(this.state=Ge.IDLE),this.tick()}_handleFragmentLoadProgress(t){var n;const r=t.frag,{part:s,payload:i}=t,{config:o,trackId:a,levels:l}=this;if(!l){this.warn(`Audio tracks were reset while fragment load was in progress. Fragment ${r.sn} of level ${r.level} will not be buffered`);return}const u=l[a];if(!u){this.warn("Audio track is undefined on fragment load progress");return}const c=u.details;if(!c){this.warn("Audio track details undefined on fragment load progress"),this.removeUnbufferedFrags(r.start);return}const d=o.defaultAudioCodec||u.audioCodec||"mp4a.40.2";let f=this.transmuxer;f||(f=this.transmuxer=new f5(this.hls,pt.AUDIO,this._handleTransmuxComplete.bind(this),this._handleTransmuxerFlush.bind(this)));const h=this.initPTS[r.cc],p=(n=r.initSegment)==null?void 0:n.data;if(h!==void 0){const v=s?s.index:-1,x=v!==-1,g=new ME(r.level,r.sn,r.stats.chunkCount,i.byteLength,v,x);f.push(i,p,d,"",r,s,c.totalduration,!1,g,h)}else{this.log(`Unknown video PTS for cc ${r.cc}, waiting for video PTS before demuxing audio frag ${r.sn} of [${c.startSN} ,${c.endSN}],track ${a}`);const{cache:m}=this.waitingData=this.waitingData||{frag:r,part:s,cache:new W6,complete:!1};m.push(new Uint8Array(i)),this.state!==Ge.STOPPED&&(this.state=Ge.WAITING_INIT_PTS)}}_handleFragmentLoadComplete(t){if(this.waitingData){this.waitingData.complete=!0;return}super._handleFragmentLoadComplete(t)}onBufferReset(){this.mediaBuffer=null}onBufferCreated(t,n){this.bufferFlushed=this.flushing=!1;const r=n.tracks.audio;r&&(this.mediaBuffer=r.buffer||null)}onFragLoading(t,n){!this.audioOnly&&n.frag.type===pt.MAIN&&mr(n.frag)&&(this.mainFragLoading=n,this.state===Ge.IDLE&&this.tick())}onFragBuffered(t,n){const{frag:r,part:s}=n;if(r.type!==pt.AUDIO){!this.audioOnly&&r.type===pt.MAIN&&!r.elementaryStreams.video&&!r.elementaryStreams.audiovideo&&(this.audioOnly=!0,this.mainFragLoading=null);return}if(this.fragContextChanged(r)){this.warn(`Fragment ${r.sn}${s?" p: "+s.index:""} of level ${r.level} finished buffering, but was aborted. state: ${this.state}, audioSwitch: ${this.switchingTrack?this.switchingTrack.name:"false"}`);return}if(mr(r)){this.fragPrevious=r;const i=this.switchingTrack;i&&(this.bufferedTrack=i,this.switchingTrack=null,this.hls.trigger(G.AUDIO_TRACK_SWITCHED,Sn({},i)))}this.fragBufferedComplete(r,s),this.media&&this.tick()}onError(t,n){var r;if(n.fatal){this.state=Ge.ERROR;return}switch(n.details){case Re.FRAG_GAP:case Re.FRAG_PARSING_ERROR:case Re.FRAG_DECRYPT_ERROR:case Re.FRAG_LOAD_ERROR:case Re.FRAG_LOAD_TIMEOUT:case Re.KEY_LOAD_ERROR:case Re.KEY_LOAD_TIMEOUT:this.onFragmentOrKeyLoadError(pt.AUDIO,n);break;case Re.AUDIO_TRACK_LOAD_ERROR:case Re.AUDIO_TRACK_LOAD_TIMEOUT:case Re.LEVEL_PARSING_ERROR:!n.levelRetry&&this.state===Ge.WAITING_TRACK&&((r=n.context)==null?void 0:r.type)===Yt.AUDIO_TRACK&&(this.state=Ge.IDLE);break;case Re.BUFFER_ADD_CODEC_ERROR:case Re.BUFFER_APPEND_ERROR:if(n.parent!=="audio")return;this.reduceLengthAndFlushBuffer(n)||this.resetLoadingState();break;case Re.BUFFER_FULL_ERROR:if(n.parent!=="audio")return;this.reduceLengthAndFlushBuffer(n)&&(this.bufferedTrack=null,super.flushMainBuffer(0,Number.POSITIVE_INFINITY,"audio"));break;case Re.INTERNAL_EXCEPTION:this.recoverWorkerError(n);break}}onBufferFlushing(t,{type:n}){n!==In.VIDEO&&(this.flushing=!0)}onBufferFlushed(t,{type:n}){if(n!==In.VIDEO){this.flushing=!1,this.bufferFlushed=!0,this.state===Ge.ENDED&&(this.state=Ge.IDLE);const r=this.mediaBuffer||this.media;r&&(this.afterBufferFlushed(r,n,pt.AUDIO),this.tick())}}_handleTransmuxComplete(t){var n;const r="audio",{hls:s}=this,{remuxResult:i,chunkMeta:o}=t,a=this.getCurrentContext(o);if(!a){this.resetWhenMissingContext(o);return}const{frag:l,part:u,level:c}=a,{details:d}=c,{audio:f,text:h,id3:p,initSegment:m}=i;if(this.fragContextChanged(l)||!d){this.fragmentTracker.removeFragment(l);return}if(this.state=Ge.PARSING,this.switchingTrack&&f&&this.completeAudioSwitch(this.switchingTrack),m!=null&&m.tracks){const v=l.initSegment||l;if(this.unhandledEncryptionError(m,l))return;this._bufferInitSegment(c,m.tracks,v,o),s.trigger(G.FRAG_PARSING_INIT_SEGMENT,{frag:v,id:r,tracks:m.tracks})}if(f){const{startPTS:v,endPTS:x,startDTS:g,endDTS:y}=f;u&&(u.elementaryStreams[In.AUDIO]={startPTS:v,endPTS:x,startDTS:g,endDTS:y}),l.setElementaryStreamInfo(In.AUDIO,v,x,g,y),this.bufferFragmentData(f,l,u,o)}if(p!=null&&(n=p.samples)!=null&&n.length){const v=kn({id:r,frag:l,details:d},p);s.trigger(G.FRAG_PARSING_METADATA,v)}if(h){const v=kn({id:r,frag:l,details:d},h);s.trigger(G.FRAG_PARSING_USERDATA,v)}}_bufferInitSegment(t,n,r,s){if(this.state!==Ge.PARSING||(n.video&&delete n.video,n.audiovideo&&delete n.audiovideo,!n.audio))return;const i=n.audio;i.id=pt.AUDIO;const o=t.audioCodec;this.log(`Init audio buffer, container:${i.container}, codecs[level/parsed]=[${o}/${i.codec}]`),o&&o.split(",").length===1&&(i.levelCodec=o),this.hls.trigger(G.BUFFER_CODECS,n);const a=i.initSegment;if(a!=null&&a.byteLength){const l={type:"audio",frag:r,part:null,chunkMeta:s,parent:r.type,data:a};this.hls.trigger(G.BUFFER_APPENDING,l)}this.tickImmediate()}loadFragment(t,n,r){const s=this.fragmentTracker.getState(t);if(this.switchingTrack||s===br.NOT_LOADED||s===br.PARTIAL){var i;if(!mr(t))this._loadInitSegment(t,n);else if((i=n.details)!=null&&i.live&&!this.initPTS[t.cc]){this.log(`Waiting for video PTS in continuity counter ${t.cc} of live stream before loading audio fragment ${t.sn} of level ${this.trackId}`),this.state=Ge.WAITING_INIT_PTS;const o=this.mainDetails;o&&o.fragmentStart!==n.details.fragmentStart&&gg(n.details,o)}else super.loadFragment(t,n,r)}else this.clearTrackerIfNeeded(t)}flushAudioIfNeeded(t){if(this.media&&this.bufferedTrack){const{name:n,lang:r,assocLang:s,characteristics:i,audioCodec:o,channels:a}=this.bufferedTrack;du({name:n,lang:r,assocLang:s,characteristics:i,audioCodec:o,channels:a},t,ql)||(fg(t.url,this.hls)?(this.log("Switching audio track : flushing all audio"),super.flushMainBuffer(0,Number.POSITIVE_INFINITY,"audio"),this.bufferedTrack=null):this.bufferedTrack=t)}}completeAudioSwitch(t){const{hls:n}=this;this.flushAudioIfNeeded(t),this.bufferedTrack=t,this.switchingTrack=null,n.trigger(G.AUDIO_TRACK_SWITCHED,Sn({},t))}}class WE extends Ki{constructor(t,n){super(n,t.logger),this.hls=void 0,this.canLoad=!1,this.timer=-1,this.hls=t}destroy(){this.clearTimer(),this.hls=this.log=this.warn=null}clearTimer(){this.timer!==-1&&(self.clearTimeout(this.timer),this.timer=-1)}startLoad(){this.canLoad=!0,this.loadPlaylist()}stopLoad(){this.canLoad=!1,this.clearTimer()}switchParams(t,n,r){const s=n?.renditionReports;if(s){let i=-1;for(let o=0;o<s.length;o++){const a=s[o];let l;try{l=new self.URL(a.URI,n.url).href}catch(u){this.warn(`Could not construct new URL for Rendition Report: ${u}`),l=a.URI||""}if(l===t){i=o;break}else l===t.substring(0,l.length)&&(i=o)}if(i!==-1){const o=s[i],a=parseInt(o["LAST-MSN"])||n.lastPartSn;let l=parseInt(o["LAST-PART"])||n.lastPartIndex;if(this.hls.config.lowLatencyMode){const c=Math.min(n.age-n.partTarget,n.targetduration);l>=0&&c>n.partTarget&&(l+=1)}const u=r&&lI(r);return new uI(a,l>=0?l:void 0,u)}}}loadPlaylist(t){this.clearTimer()}loadingPlaylist(t,n){this.clearTimer()}shouldLoadPlaylist(t){return this.canLoad&&!!t&&!!t.url&&(!t.details||t.details.live)}getUrlWithDirectives(t,n){if(n)try{return n.addDirectives(t)}catch(r){this.warn(`Could not construct new URL with HLS Delivery Directives: ${r}`)}return t}playlistLoaded(t,n,r){const{details:s,stats:i}=n,o=self.performance.now(),a=i.loading.first?Math.max(0,o-i.loading.first):0;s.advancedDateTime=Date.now()-a;const l=this.hls.config.timelineOffset;if(l!==s.appliedTimelineOffset){const c=Math.max(l||0,0);s.appliedTimelineOffset=c,s.fragments.forEach(d=>{d.setStart(d.playlistOffset+c)})}if(s.live||r!=null&&r.live){const c="levelInfo"in n?n.levelInfo:n.track;if(s.reloaded(r),r&&s.fragments.length>0){rfe(r,s,this);const g=s.playlistParsingError;if(g){this.warn(g);const y=this.hls;if(!y.config.ignorePlaylistParsingErrors){var u;const{networkDetails:_}=n;y.trigger(G.ERROR,{type:bt.NETWORK_ERROR,details:Re.LEVEL_PARSING_ERROR,fatal:!1,url:s.url,error:g,reason:g.message,level:n.level||void 0,parent:(u=s.fragments[0])==null?void 0:u.type,networkDetails:_,stats:i});return}s.playlistParsingError=null}}s.requestScheduled===-1&&(s.requestScheduled=i.loading.start);const d=this.hls.mainForwardBufferInfo,f=d?d.end-d.len:0,h=(s.edge-f)*1e3,p=U6(s,h);if(s.requestScheduled+p<o?s.requestScheduled=o:s.requestScheduled+=p,this.log(`live playlist ${t} ${s.advanced?"REFRESHED "+s.lastPartSn+"-"+s.lastPartIndex:s.updated?"UPDATED":"MISSED"}`),!this.canLoad||!s.live)return;let m,v,x;
vendor: 14,547 bytes, lines 113-116
113if(s.canBlockReload&&s.endSN&&s.advanced){const g=this.hls.config.lowLatencyMode,y=s.lastPartSn,_=s.endSN,E=s.lastPartIndex,w=E!==-1,T=y===_;w?T?(v=_+1,x=g?0:E):(v=y,x=g?E+1:s.maxPartIndex):v=_+1;const C=s.age,I=C+s.ageHeader;let k=Math.min(I-s.partTarget,s.targetduration*1.5);if(k>0){if(I>s.targetduration*3)this.log(`Playlist last advanced ${C.toFixed(2)}s ago. Omitting segment and part directives.`),v=void 0,x=void 0;else if(r!=null&&r.tuneInGoal&&I-s.partTarget>r.tuneInGoal)this.warn(`CDN Tune-in goal increased from: ${r.tuneInGoal} to: ${k} with playlist age: ${s.age}`),k=0;else{const $=Math.floor(k/s.targetduration);if(v+=$,x!==void 0){const R=Math.round(k%s.targetduration/s.partTarget);x+=R}this.log(`CDN Tune-in age: ${s.ageHeader}s last advanced ${C.toFixed(2)}s goal: ${k} skip sn ${$} to part ${x}`)}s.tuneInGoal=k}if(m=this.getDeliveryDirectives(s,n.deliveryDirectives,v,x),g||!T){s.requestScheduled=o,this.loadingPlaylist(c,m);return}}else(s.canBlockReload||s.canSkipUntil)&&(m=this.getDeliveryDirectives(s,n.deliveryDirectives,v,x));m&&v!==void 0&&s.canBlockReload&&(s.requestScheduled=i.loading.first+Math.max(p-a*2,p/2)),this.scheduleLoading(c,m,s)}else this.clearTimer()}scheduleLoading(t,n,r){const s=r||t.details;if(!s){this.loadingPlaylist(t,n);return}const i=self.performance.now(),o=s.requestScheduled;if(i>=o){this.loadingPlaylist(t,n);return}const a=o-i;this.log(`reload live playlist ${t.name||t.bitrate+"bps"} in ${Math.round(a)} ms`),this.clearTimer(),this.timer=self.setTimeout(()=>this.loadingPlaylist(t,n),a)}getDeliveryDirectives(t,n,r,s){let i=lI(t);return n!=null&&n.skip&&t.deltaUpdateFailed&&(r=n.msn,s=n.part,i=Lm.No),new uI(r,s,i)}checkRetry(t){const n=t.details,r=hg(t),s=t.errorAction,{action:i,retryCount:o=0,retryConfig:a}=s||{},l=!!s&&!!a&&(i===Vr.RetryRequest||!s.resolved&&i===Vr.SendAlternateToPenaltyBox);if(l){var u;if(o>=a.maxNumRetry)return!1;if(r&&(u=t.context)!=null&&u.deliveryDirectives)this.warn(`Retrying playlist loading ${o+1}/${a.maxNumRetry} after "${n}" without delivery-directives`),this.loadPlaylist();else{const c=OE(a,o);this.clearTimer(),this.timer=self.setTimeout(()=>this.loadPlaylist(),c),this.warn(`Retrying playlist loading ${o+1}/${a.maxNumRetry} after "${n}" in ${c}ms`)}t.levelRetry=!0,s.resolved=!0}return l}}function h5(e,t){if(e.length!==t.length)return!1;for(let n=0;n<e.length;n++)if(!mh(e[n].attrs,t[n].attrs))return!1;return!0}function mh(e,t,n){const r=e["STABLE-RENDITION-ID"];return r&&!n?r===t["STABLE-RENDITION-ID"]:!(n||["LANGUAGE","NAME","CHARACTERISTICS","AUTOSELECT","DEFAULT","FORCED","ASSOC-LANGUAGE"]).some(s=>e[s]!==t[s])}function k2(e,t){return t.label.toLowerCase()===e.name.toLowerCase()&&(!t.language||t.language.toLowerCase()===(e.lang||"").toLowerCase())}class fhe extends WE{constructor(t){super(t,"audio-track-controller"),this.tracks=[],this.groupIds=null,this.tracksInGroup=[],this.trackId=-1,this.currentTrack=null,this.selectDefaultTrack=!0,this.registerListeners()}registerListeners(){const{hls:t}=this;t.on(G.MANIFEST_LOADING,this.onManifestLoading,this),t.on(G.MANIFEST_PARSED,this.onManifestParsed,this),t.on(G.LEVEL_LOADING,this.onLevelLoading,this),t.on(G.LEVEL_SWITCHING,this.onLevelSwitching,this),t.on(G.AUDIO_TRACK_LOADED,this.onAudioTrackLoaded,this),t.on(G.ERROR,this.onError,this)}unregisterListeners(){const{hls:t}=this;t.off(G.MANIFEST_LOADING,this.onManifestLoading,this),t.off(G.MANIFEST_PARSED,this.onManifestParsed,this),t.off(G.LEVEL_LOADING,this.onLevelLoading,this),t.off(G.LEVEL_SWITCHING,this.onLevelSwitching,this),t.off(G.AUDIO_TRACK_LOADED,this.onAudioTrackLoaded,this),t.off(G.ERROR,this.onError,this)}destroy(){this.unregisterListeners(),this.tracks.length=0,this.tracksInGroup.length=0,this.currentTrack=null,super.destroy()}onManifestLoading(){this.tracks=[],this.tracksInGroup=[],this.groupIds=null,this.currentTrack=null,this.trackId=-1,this.selectDefaultTrack=!0}onManifestParsed(t,n){this.tracks=n.audioTracks||[]}onAudioTrackLoaded(t,n){const{id:r,groupId:s,details:i}=n,o=this.tracksInGroup[r];if(!o||o.groupId!==s){this.warn(`Audio track with id:${r} and group:${s} not found in active group ${o?.groupId}`);return}const a=o.details;o.details=n.details,this.log(`Audio track ${r} "${o.name}" lang:${o.lang} group:${s} loaded [${i.startSN}-${i.endSN}]`),r===this.trackId&&this.playlistLoaded(r,n,a)}onLevelLoading(t,n){this.switchLevel(n.level)}onLevelSwitching(t,n){this.switchLevel(n.level)}switchLevel(t){const n=this.hls.levels[t];if(!n)return;const r=n.audioGroups||null,s=this.groupIds;let i=this.currentTrack;if(!r||s?.length!==r?.length||r!=null&&r.some(a=>s?.indexOf(a)===-1)){this.groupIds=r,this.trackId=-1,this.currentTrack=null;const a=this.tracks.filter(f=>!r||r.indexOf(f.groupId)!==-1);if(a.length)this.selectDefaultTrack&&!a.some(f=>f.default)&&(this.selectDefaultTrack=!1),a.forEach((f,h)=>{f.id=h});else if(!i&&!this.tracksInGroup.length)return;this.tracksInGroup=a;const l=this.hls.config.audioPreference;if(!i&&l){const f=Oo(l,a,ql);if(f>-1)i=a[f];else{const h=Oo(l,this.tracks);i=this.tracks[h]}}let u=this.findTrackId(i);u===-1&&i&&(u=this.findTrackId(null));const c={audioTracks:a};this.log(`Updating audio tracks, ${a.length} track(s) found in group(s): ${r?.join(",")}`),this.hls.trigger(G.AUDIO_TRACKS_UPDATED,c);const d=this.trackId;if(u!==-1&&d===-1)this.setAudioTrack(u);else if(a.length&&d===-1){var o;const f=new Error(`No audio track selected for current audio group-ID(s): ${(o=this.groupIds)==null?void 0:o.join(",")} track count: ${a.length}`);this.warn(f.message),this.hls.trigger(G.ERROR,{type:bt.MEDIA_ERROR,details:Re.AUDIO_TRACK_LOAD_ERROR,fatal:!0,error:f})}}}onError(t,n){n.fatal||!n.context||n.context.type===Yt.AUDIO_TRACK&&n.context.id===this.trackId&&(!this.groupIds||this.groupIds.indexOf(n.context.groupId)!==-1)&&this.checkRetry(n)}get allAudioTracks(){return this.tracks}get audioTracks(){return this.tracksInGroup}get audioTrack(){return this.trackId}set audioTrack(t){this.selectDefaultTrack=!1,this.setAudioTrack(t)}setAudioOption(t){const n=this.hls;if(n.config.audioPreference=t,t){const r=this.allAudioTracks;if(this.selectDefaultTrack=!1,r.length){const s=this.currentTrack;if(s&&du(t,s,ql))return s;const i=Oo(t,this.tracksInGroup,ql);if(i>-1){const o=this.tracksInGroup[i];return this.setAudioTrack(i),o}else if(s){let o=n.loadLevel;o===-1&&(o=n.firstAutoLevel);const a=wde(t,n.levels,r,o,ql);if(a===-1)return null;n.nextLoadLevel=a}if(t.channels||t.audioCodec){const o=Oo(t,r);if(o>-1)return r[o]}}}return null}setAudioTrack(t){const n=this.tracksInGroup;if(t<0||t>=n.length){this.warn(`Invalid audio track id: ${t}`);return}this.selectDefaultTrack=!1;const r=this.currentTrack,s=n[t],i=s.details&&!s.details.live;if(t===this.trackId&&s===r&&i||(this.log(`Switching to audio-track ${t} "${s.name}" lang:${s.lang} group:${s.groupId} channels:${s.channels}`),this.trackId=t,this.currentTrack=s,this.hls.trigger(G.AUDIO_TRACK_SWITCHING,Sn({},s)),i))return;const o=this.switchParams(s.url,r?.details,s.details);this.loadPlaylist(o)}findTrackId(t){const n=this.tracksInGroup;for(let r=0;r<n.length;r++){const s=n[r];if(!(this.selectDefaultTrack&&!s.default)&&(!t||du(t,s,ql)))return r}if(t){const{name:r,lang:s,assocLang:i,characteristics:o,audioCodec:a,channels:l}=t;for(let u=0;u<n.length;u++){const c=n[u];if(du({name:r,lang:s,assocLang:i,characteristics:o,audioCodec:a,channels:l},c,ql))return u}for(let u=0;u<n.length;u++){const c=n[u];if(mh(t.attrs,c.attrs,["LANGUAGE","ASSOC-LANGUAGE","CHARACTERISTICS"]))return u}for(let u=0;u<n.length;u++){const c=n[u];if(mh(t.attrs,c.attrs,["LANGUAGE"]))return u}}return-1}loadPlaylist(t){super.loadPlaylist();const n=this.currentTrack;this.shouldLoadPlaylist(n)&&fg(n.url,this.hls)&&this.scheduleLoading(n,t)}loadingPlaylist(t,n){super.loadingPlaylist(t,n);const r=t.id,s=t.groupId,i=this.getUrlWithDirectives(t.url,n),o=t.details,a=o?.age;this.log(`Loading audio-track ${r} "${t.name}" lang:${t.lang} group:${s}${n?.msn!==void 0?" at sn "+n.msn+" part "+n.part:""}${a&&o.live?" age "+a.toFixed(1)+(o.type&&" "+o.type||""):""} ${i}`),this.hls.trigger(G.AUDIO_TRACK_LOADING,{url:i,id:r,groupId:s,deliveryDirectives:n||null,track:t})}}class hhe{constructor(t){this.tracks=void 0,this.queues={video:[],audio:[],audiovideo:[]},this.tracks=t}destroy(){this.tracks=this.queues=null}append(t,n,r){if(this.queues===null||this.tracks===null)return;const s=this.queues[n];s.push(t),s.length===1&&!r&&this.executeNext(n)}appendBlocker(t){return new Promise(n=>{const r={label:"async-blocker",execute:n,onStart:()=>{},onComplete:()=>{},onError:()=>{}};this.append(r,t)})}prependBlocker(t){return new Promise(n=>{if(this.queues){const r={label:"async-blocker-prepend",execute:n,onStart:()=>{},onComplete:()=>{},onError:()=>{}};this.queues[t].unshift(r)}})}removeBlockers(){this.queues!==null&&[this.queues.video,this.queues.audio,this.queues.audiovideo].forEach(t=>{var n;const r=(n=t[0])==null?void 0:n.label;(r==="async-blocker"||r==="async-blocker-prepend")&&(t[0].execute(),t.splice(0,1))})}unblockAudio(t){if(this.queues===null)return;this.queues.audio[0]===t&&this.shiftAndExecuteNext("audio")}executeNext(t){if(this.queues===null||this.tracks===null)return;const n=this.queues[t];if(n.length){const s=n[0];try{s.execute()}catch(i){var r;if(s.onError(i),this.queues===null||this.tracks===null)return;const o=(r=this.tracks[t])==null?void 0:r.buffer;o!=null&&o.updating||this.shiftAndExecuteNext(t)}}}shiftAndExecuteNext(t){this.queues!==null&&(this.queues[t].shift(),this.executeNext(t))}current(t){var n;return((n=this.queues)==null?void 0:n[t][0])||null}toString(){const{queues:t,tracks:n}=this;return t===null||n===null?"<destroyed>":`
114${this.list("video")}
115${this.list("audio")}
116${this.list("audiovideo")}}`}list(t){var n,r;return(n=this.queues)!=null&&n[t]||(r=this.tracks)!=null&&r[t]?`${t}: (${this.listSbInfo(t)}) ${this.listOps(t)}`:""}listSbInfo(t){var n;const r=(n=this.tracks)==null?void 0:n[t],s=r?.buffer;return s?`SourceBuffer${s.updating?" updating":""}${r.ended?" ended":""}${r.ending?" ending":""}`:"none"}listOps(t){var n;return((n=this.queues)==null?void 0:n[t].map(r=>r.label).join(", "))||""}}const qI=/(avc[1234]|hvc1|hev1|dvh[1e]|vp09|av01)(?:\.[^.,]+)+/,p5="HlsJsTrackRemovedError";class phe extends Error{constructor(t){super(t),this.name=p5}}class mhe extends Ki{constructor(t,n){super("buffer-controller",t.logger),this.hls=void 0,this.fragmentTracker=void 0,this.details=null,this._objectUrl=null,this.operationQueue=null,this.bufferCodecEventsTotal=0,this.media=null,this.mediaSource=null,this.lastMpegAudioChunk=null,this.blockedAudioAppend=null,this.lastVideoAppendEnd=0,this.appendSource=void 0,this.transferData=void 0,this.overrides=void 0,this.appendErrors={audio:0,video:0,audiovideo:0},this.tracks={},this.sourceBuffers=[[null,null],[null,null]],this._onEndStreaming=r=>{var s;this.hls&&((s=this.mediaSource)==null?void 0:s.readyState)==="open"&&this.hls.pauseBuffering()},this._onStartStreaming=r=>{this.hls&&this.hls.resumeBuffering()},this._onMediaSourceOpen=r=>{const{media:s,mediaSource:i}=this;r&&this.log("Media source opened"),!(!s||!i)&&(i.removeEventListener("sourceopen",this._onMediaSourceOpen),s.removeEventListener("emptied",this._onMediaEmptied),this.updateDuration(),this.hls.trigger(G.MEDIA_ATTACHED,{media:s,mediaSource:i}),this.mediaSource!==null&&this.checkPendingTracks())},this._onMediaSourceClose=()=>{this.log("Media source closed")},this._onMediaSourceEnded=()=>{this.log("Media source ended")},this._onMediaEmptied=()=>{const{mediaSrc:r,_objectUrl:s}=this;r!==s&&this.error(`Media element src was set while attaching MediaSource (${s} > ${r})`)},this.hls=t,this.fragmentTracker=n,this.appendSource=Fce(xl(t.config.preferManagedMediaSource)),this.initTracks(),this.registerListeners()}hasSourceTypes(){return Object.keys(this.tracks).length>0}destroy(){this.unregisterListeners(),this.details=null,this.lastMpegAudioChunk=this.blockedAudioAppend=null,this.transferData=this.overrides=void 0,this.operationQueue&&(this.operationQueue.destroy(),this.operationQueue=null),this.hls=this.fragmentTracker=null,this._onMediaSourceOpen=this._onMediaSourceClose=null,this._onMediaSourceEnded=null,this._onStartStreaming=this._onEndStreaming=null}registerListeners(){const{hls:t}=this;t.on(G.MEDIA_ATTACHING,this.onMediaAttaching,this),t.on(G.MEDIA_DETACHING,this.onMediaDetaching,this),t.on(G.MANIFEST_LOADING,this.onManifestLoading,this),t.on(G.MANIFEST_PARSED,this.onManifestParsed,this),t.on(G.BUFFER_RESET,this.onBufferReset,this),t.on(G.BUFFER_APPENDING,this.onBufferAppending,this),t.on(G.BUFFER_CODECS,this.onBufferCodecs,this),t.on(G.BUFFER_EOS,this.onBufferEos,this),t.on(G.BUFFER_FLUSHING,this.onBufferFlushing,this),t.on(G.LEVEL_UPDATED,this.onLevelUpdated,this),t.on(G.FRAG_PARSED,this.onFragParsed,this),t.on(G.FRAG_CHANGED,this.onFragChanged,this),t.on(G.ERROR,this.onError,this)}unregisterListeners(){const{hls:t}=this;t.off(G.MEDIA_ATTACHING,this.onMediaAttaching,this),t.off(G.MEDIA_DETACHING,this.onMediaDetaching,this),t.off(G.MANIFEST_LOADING,this.onManifestLoading,this),t.off(G.MANIFEST_PARSED,this.onManifestParsed,this),t.off(G.BUFFER_RESET,this.onBufferReset,this),t.off(G.BUFFER_APPENDING,this.onBufferAppending,this),t.off(G.BUFFER_CODECS,this.onBufferCodecs,this),t.off(G.BUFFER_EOS,this.onBufferEos,this),t.off(G.BUFFER_FLUSHING,this.onBufferFlushing,this),t.off(G.LEVEL_UPDATED,this.onLevelUpdated,this),t.off(G.FRAG_PARSED,this.onFragParsed,this),t.off(G.FRAG_CHANGED,this.onFragChanged,this),t.off(G.ERROR,this.onError,this)}transferMedia(){const{media:t,mediaSource:n}=this;if(!t)return null;const r={};if(this.operationQueue){const i=this.isUpdating();i||this.operationQueue.removeBlockers();const o=this.isQueued();(i||o)&&this.warn(`Transfering MediaSource with${o?" operations in queue":""}${i?" updating SourceBuffer(s)":""} ${this.operationQueue}`),this.operationQueue.destroy()}const s=this.transferData;return!this.sourceBufferCount&&s&&s.mediaSource===n?kn(r,s.tracks):this.sourceBuffers.forEach(i=>{const[o]=i;o&&(r[o]=kn({},this.tracks[o]),this.removeBuffer(o)),i[0]=i[1]=null}),{media:t,mediaSource:n,tracks:r}}initTracks(){const t={};this.sourceBuffers=[[null,null],[null,null]],this.tracks=t,this.resetQueue(),this.resetAppendErrors(),this.lastMpegAudioChunk=this.blockedAudioAppend=null,this.lastVideoAppendEnd=0}onManifestLoading(){this.bufferCodecEventsTotal=0,this.details=null}onManifestParsed(t,n){var r;let s=2;(n.audio&&!n.video||!n.altAudio)&&(s=1),this.bufferCodecEventsTotal=s,this.log(`${s}
116 bufferCodec event(s) expected.`),(r=this.transferData)!=null&&r.mediaSource&&this.sourceBufferCount&&s&&this.bufferCreated()}onMediaAttaching(t,n){const r=this.media=n.media;this.transferData=this.overrides=void 0;const s=xl(this.appendSource);if(s){const i=!!n.mediaSource;(i||n.overrides)&&(this.transferData=n,this.overrides=n.overrides);const o=this.mediaSource=n.mediaSource||new s;if(this.assignMediaSource(o),i)this._objectUrl=r.src,this.attachTransferred();else{const a=this._objectUrl=self.URL.createObjectURL(o);if(this.appendSource)try{r.removeAttribute("src");const l=self.ManagedMediaSource;r.disableRemotePlayback=r.disableRemotePlayback||l&&o instanceof l,YI(r),vhe(r,a),r.load()}catch{r.src=a}else r.src=a}r.addEventListener("emptied",this._onMediaEmptied)}}assignMediaSource(t){var n,r;this.log(`${((n=this.transferData)==null?void 0:n.mediaSource)===t?"transferred":"created"} media source: ${(r=t.constructor)==null?void 0:r.name}`),t.addEventListener("sourceopen",this._onMediaSourceOpen),t.addEventListener("sourceended",this._onMediaSourceEnded),t.addEventListener("sourceclose",this._onMediaSourceClose),this.appendSource&&(t.addEventListener("startstreaming",this._onStartStreaming),t.addEventListener("endstreaming",this._onEndStreaming))}attachTransferred(){const t=this.media,n=this.transferData;if(!n||!t)return;const r=this.tracks,s=n.tracks,i=s?Object.keys(s):null,o=i?i.length:0,a=()=>{Promise.resolve().then(()=>{this.media&&this.mediaSourceOpenOrEnded&&this._onMediaSourceOpen()})};if(s&&i&&o){if(!this.tracksReady){this.hls.config.startFragPrefetch=!0,this.log("attachTransferred: waiting for SourceBuffer track info");return}if(this.log(`attachTransferred: (bufferCodecEventsTotal ${this.bufferCodecEventsTotal})
117required tracks: ${Ln(r,(l,u)=>l==="initSegment"?void 0:u)};
118transfer tracks: ${Ln(s,(l,u)=>l==="initSegment"?void 0:u)}}`),!c6(s,r)){n.mediaSource=null,n.tracks=void 0;const l=t.currentTime,u=this.details,c=Math.max(l,u?.fragments[0].start||0);if(c-l>1){this.log(`attachTransferred: waiting for playback to reach new tracks start time ${l} -> ${c}`);return}this.warn(`attachTransferred: resetting MediaSource for incompatible tracks ("${Object.keys(s)}"->"${Object.keys(r)}") start time: ${c} currentTime: ${l}`),this.onMediaDetaching(G.MEDIA_DETACHING,{}),this.onMediaAttaching(G.MEDIA_ATTACHING,n),t.currentTime=c;return}this.transferData=void 0,i.forEach(l=>{const u=l,c=s[u];if(c){const d=c.buffer;if(d){const f=this.fragmentTracker,h=c.id;if(f.hasFragments(h)||f.hasParts(h)){const v=Ft.getBuffered(d);f.detectEvictedFragments(u,v,h,null,!0)}const p=wx(u),m=[u,d];this.sourceBuffers[p]=m,d.updating&&this.operationQueue&&this.operationQueue.prependBlocker(u),this.trackSourceBuffer(u,c)}}}),a(),this.bufferCreated()}else this.log("attachTransferred: MediaSource w/o SourceBuffers"),a()}get mediaSourceOpenOrEnded(){var t;const n=(t=this.mediaSource)==null?void 0:t.readyState;return n==="open"||n==="ended"}onMediaDetaching(t,n){const r=!!n.transferMedia;this.transferData=this.overrides=void 0;const{media:s,mediaSource:i,_objectUrl:o}=this;if(i){if(this.log(`media source ${r?"transferring":"detaching"}`),r)this.sourceBuffers.forEach(([a])=>{a&&this.removeBuffer(a)}),this.resetQueue();else{if(this.mediaSourceOpenOrEnded){const a=i.readyState==="open";try{const l=i.sourceBuffers;for(let u=l.length;u--;)a&&l[u].abort(),i.removeSourceBuffer(l[u]);a&&i.endOfStream()}catch(l){this.warn(`onMediaDetaching: ${l.message} while calling endOfStream`)}}this.sourceBufferCount&&this.onBufferReset()}i.removeEventListener("sourceopen",this._onMediaSourceOpen),i.removeEventListener("sourceended",this._onMediaSourceEnded),i.removeEventListener("sourceclose",this._onMediaSourceClose),this.appendSource&&(i.removeEventListener("startstreaming",this._onStartStreaming),i.removeEventListener("endstreaming",this._onEndStreaming)),this.mediaSource=null,this._objectUrl=null}s&&(s.removeEventListener("emptied",this._onMediaEmptied),r||(o&&self.URL.revokeObjectURL(o),this.mediaSrc===o?(s.removeAttribute("src"),this.appendSource&&YI(s),s.load()):this.warn("media|source.src was changed by a third party - skip cleanup")),this.media=null),this.hls.trigger(G.MEDIA_DETACHED,n)}
vendor: 18,206 bytes, line 118
118onBufferReset(){this.sourceBuffers.forEach(([t])=>{t&&this.resetBuffer(t)}),this.initTracks()}resetBuffer(t){var n;const r=(n=this.tracks[t])==null?void 0:n.buffer;if(this.removeBuffer(t),r)try{var s;(s=this.mediaSource)!=null&&s.sourceBuffers.length&&this.mediaSource.removeSourceBuffer(r)}catch(i){this.warn(`onBufferReset ${t}`,i)}delete this.tracks[t]}removeBuffer(t){this.removeBufferListeners(t),this.sourceBuffers[wx(t)]=[null,null];const n=this.tracks[t];n&&(n.buffer=void 0)}resetQueue(){this.operationQueue&&this.operationQueue.destroy(),this.operationQueue=new hhe(this.tracks)}onBufferCodecs(t,n){var r;const s=this.tracks,i=Object.keys(n);this.log(`BUFFER_CODECS: "${i}" (current SB count ${this.sourceBufferCount})`);const o="audiovideo"in n&&(s.audio||s.video)||s.audiovideo&&("audio"in n||"video"in n),a=!o&&this.sourceBufferCount&&this.media&&i.some(l=>!s[l]);if(o||a){this.warn(`Unsupported transition between "${Object.keys(s)}" and "${i}" SourceBuffers`);return}i.forEach(l=>{var u,c;const d=n[l],{id:f,codec:h,levelCodec:p,container:m,metadata:v,supplemental:x}=d;let g=s[l];const y=(u=this.transferData)==null||(u=u.tracks)==null?void 0:u[l],_=y!=null&&y.buffer?y:g,E=_?.pendingCodec||_?.codec,w=_?.levelCodec;g||(g=s[l]={buffer:void 0,listeners:[],codec:h,supplemental:x,container:m,levelCodec:p,metadata:v,id:f});const T=Im(E,w),C=T?.replace(qI,"$1");let I=Im(h,p);const k=(c=I)==null?void 0:c.replace(qI,"$1");I&&T&&C!==k&&(l.slice(0,5)==="audio"&&(I=cg(I,this.appendSource)),this.log(`switching codec ${E} to ${I}`),I!==(g.pendingCodec||g.codec)&&(g.pendingCodec=I),g.container=m,this.appendChangeType(l,m,I))}),(this.tracksReady||this.sourceBufferCount)&&(n.tracks=this.sourceBufferTracks),!this.sourceBufferCount&&(this.bufferCodecEventsTotal>1&&!this.tracks.video&&!n.video&&((r=n.audio)==null?void 0:r.id)==="main"&&(this.log("Main audio-only"),this.bufferCodecEventsTotal=1),this.mediaSourceOpenOrEnded&&this.checkPendingTracks())}get sourceBufferTracks(){return Object.keys(this.tracks).reduce((t,n)=>{const r=this.tracks[n];return t[n]={id:r.id,container:r.container,codec:r.codec,levelCodec:r.levelCodec},t},{})}appendChangeType(t,n,r){const s=`${n};codecs=${r}`,i={label:`change-type=${s}`,execute:()=>{const o=this.tracks[t];if(o){const a=o.buffer;a!=null&&a.changeType&&(this.log(`changing ${t} sourceBuffer type to ${s}`),a.changeType(s),o.codec=r,o.container=n)}this.shiftAndExecuteNext(t)},onStart:()=>{},onComplete:()=>{},onError:o=>{this.warn(`Failed to change ${t} SourceBuffer type`,o)}};this.append(i,t,this.isPending(this.tracks[t]))}blockAudio(t){var n;const r=t.start,s=r+t.duration*.05;if(((n=this.fragmentTracker.getAppendedFrag(r,pt.MAIN))==null?void 0:n.gap)===!0)return;const o={label:"block-audio",execute:()=>{var a;const l=this.tracks.video;(this.lastVideoAppendEnd>s||l!=null&&l.buffer&&Ft.isBuffered(l.buffer,s)||((a=this.fragmentTracker.getAppendedFrag(s,pt.MAIN))==null?void 0:a.gap)===!0)&&(this.blockedAudioAppend=null,this.shiftAndExecuteNext("audio"))},onStart:()=>{},onComplete:()=>{},onError:a=>{this.warn("Error executing block-audio operation",a)}};this.blockedAudioAppend={op:o,frag:t},this.append(o,"audio",!0)}unblockAudio(){const{blockedAudioAppend:t,operationQueue:n}=this;t&&n&&(this.blockedAudioAppend=null,n.unblockAudio(t.op))}onBufferAppending(t,n){const{tracks:r}=this,{data:s,type:i,parent:o,frag:a,part:l,chunkMeta:u,offset:c}=n,d=u.buffering[i],{sn:f,cc:h}=a,p=self.performance.now();d.start=p;const m=a.stats.buffering,v=l?l.stats.buffering:null;m.start===0&&(m.start=p),v&&v.start===0&&(v.start=p);const x=r.audio;let g=!1;i==="audio"&&x?.container==="audio/mpeg"&&(g=!this.lastMpegAudioChunk||u.id===1||this.lastMpegAudioChunk.sn!==u.sn,this.lastMpegAudioChunk=u);const y=r.video,_=y?.buffer;if(_&&f!=="initSegment"){const T=l||a,C=this.blockedAudioAppend;if(i==="audio"&&o!=="main"&&!this.blockedAudioAppend&&!(y.ending||y.ended)){const k=T.start+T.duration*.05,$=_.buffered,R=this.currentOp("video");!$.length&&!R?this.blockAudio(T):!R&&!Ft.isBuffered(_,k)&&this.lastVideoAppendEnd<k&&this.blockAudio(T)}else if(i==="video"){const I=T.end;if(C){const k=C.frag.start;(I>k||I<this.lastVideoAppendEnd||Ft.isBuffered(_,k))&&this.unblockAudio()}this.lastVideoAppendEnd=I}}const E=(l||a).start,w={label:`append-${i}`,execute:()=>{var T;d.executeStart=self.performance.now();const C=(T=this.tracks[i])==null?void 0:T.buffer;C&&(g?this.updateTimestampOffset(C,E,.1,i,f,h):c!==void 0&&lt(c)&&this.updateTimestampOffset(C,c,1e-6,i,f,h)),this.appendExecutor(s,i)},onStart:()=>{},onComplete:()=>{const T=self.performance.now();d.executeEnd=d.end=T,m.first===0&&(m.first=T),v&&v.first===0&&(v.first=T);const C={};this.sourceBuffers.forEach(([I,k])=>{I&&(C[I]=Ft.getBuffered(k))}),this.appendErrors[i]=0,i==="audio"||i==="video"?this.appendErrors.audiovideo=0:(this.appendErrors.audio=0,this.appendErrors.video=0),this.hls.trigger(G.BUFFER_APPENDED,{type:i,frag:a,part:l,chunkMeta:u,parent:a.type,timeRanges:C})},onError:T=>{var C;const I={type:bt.MEDIA_ERROR,parent:a.type,details:Re.BUFFER_APPEND_ERROR,sourceBufferName:i,frag:a,part:l,chunkMeta:u,error:T,err:T,fatal:!1},k=(C=this.media)==null?void 0:C.error;if(T.code===DOMException.QUOTA_EXCEEDED_ERR||T.name=="QuotaExceededError"||"quota"in T)I.details=Re.BUFFER_FULL_ERROR;else if(T.code===DOMException.INVALID_STATE_ERR&&this.mediaSourceOpenOrEnded&&!k)I.errorAction=Sc(!0);else if(T.name===p5&&this.sourceBufferCount===0)I.errorAction=Sc(!0);else{const $=++this.appendErrors[i];this.warn(`Failed ${$}/${this.hls.config.appendErrorMaxRetry} times to append segment in "${i}" sourceBuffer (${k||"no media error"})`),($>=this.hls.config.appendErrorMaxRetry||k)&&(I.fatal=!0)}this.hls.trigger(G.ERROR,I)}};this.log(`queuing "${i}" append sn: ${f}${l?" p: "+l.index:""} of ${a.type===pt.MAIN?"level":"track"} ${a.level} cc: ${h}`),this.append(w,i,this.isPending(this.tracks[i]))}getFlushOp(t,n,r){return this.log(`queuing "${t}" remove ${n}-${r}`),{label:"remove",execute:()=>{this.removeExecutor(t,n,r)},onStart:()=>{},onComplete:()=>{this.hls.trigger(G.BUFFER_FLUSHED,{type:t})},onError:s=>{this.warn(`Failed to remove ${n}-${r} from "${t}" SourceBuffer`,s)}}}onBufferFlushing(t,n){const{type:r,startOffset:s,endOffset:i}=n;r?this.append(this.getFlushOp(r,s,i),r):this.sourceBuffers.forEach(([o])=>{o&&this.append(this.getFlushOp(o,s,i),o)})}onFragParsed(t,n){const{frag:r,part:s}=n,i=[],o=s?s.elementaryStreams:r.elementaryStreams;o[In.AUDIOVIDEO]?i.push("audiovideo"):(o[In.AUDIO]&&i.push("audio"),o[In.VIDEO]&&i.push("video"));const a=()=>{const l=self.performance.now();r.stats.buffering.end=l,s&&(s.stats.buffering.end=l);const u=s?s.stats:r.stats;this.hls.trigger(G.FRAG_BUFFERED,{frag:r,part:s,stats:u,id:r.type})};i.length===0&&this.warn(`Fragments must have at least one ElementaryStreamType set. type: ${r.type} level: ${r.level} sn: ${r.sn}`),this.blockBuffers(a,i).catch(l=>{this.warn(`Fragment buffered callback ${l}`),this.stepOperationQueue(this.sourceBufferTypes)})}onFragChanged(t,n){this.trimBuffers()}get bufferedToEnd(){return this.sourceBufferCount>0&&!this.sourceBuffers.some(([t])=>{if(t){const n=this.tracks[t];if(n)return!n.ended||n.ending}return!1})}onBufferEos(t,n){var r;this.sourceBuffers.forEach(([o])=>{if(o){const a=this.tracks[o];(!n.type||n.type===o)&&(a.ending=!0,a.ended||(a.ended=!0,this.log(`${o} buffer reached EOS`)))}});const s=((r=this.overrides)==null?void 0:r.endOfStream)!==!1;this.sourceBufferCount>0&&!this.sourceBuffers.some(([o])=>{var a;return o&&!((a=this.tracks[o])!=null&&a.ended)})?s?(this.log("Queueing EOS"),this.blockUntilOpen(()=>{this.tracksEnded();const{mediaSource:o}=this;if(!o||o.readyState!=="open"){o&&this.log(`Could not call mediaSource.endOfStream(). mediaSource.readyState: ${o.readyState}`);return}this.log("Calling mediaSource.endOfStream()"),o.endOfStream(),this.hls.trigger(G.BUFFERED_TO_END,void 0)})):(this.tracksEnded(),this.hls.trigger(G.BUFFERED_TO_END,void 0)):n.type==="video"&&this.unblockAudio()}tracksEnded(){this.sourceBuffers.forEach(([t])=>{if(t!==null){const n=this.tracks[t];n&&(n.ending=!1)}})}onLevelUpdated(t,{details:n}){n.fragments.length&&(this.details=n,this.updateDuration())}updateDuration(){this.blockUntilOpen(()=>{const t=this.getDurationAndRange();t&&this.updateMediaSource(t)})}onError(t,n){if(n.details===Re.BUFFER_APPEND_ERROR&&n.frag){var r;const s=(r=n.errorAction)==null?void 0:r.nextAutoLevel;lt(s)&&s!==n.frag.level&&this.resetAppendErrors()}}resetAppendErrors(){this.appendErrors={audio:0,video:0,audiovideo:0}}trimBuffers(){const{hls:t,details:n,media:r}=this;if(!r||n===null||!this.sourceBufferCount)return;const s=t.config,i=r.currentTime,o=n.levelTargetDuration,a=n.live&&s.liveBackBufferLength!==null?s.liveBackBufferLength:s.backBufferLength;if(lt(a)&&a>=0){const u=Math.max(a,o),c=Math.floor(i/o)*o-u;this.flushBackBuffer(i,o,c)}const l=s.frontBufferFlushThreshold;if(lt(l)&&l>0){const u=Math.max(s.maxBufferLength,l),c=Math.max(u,o),d=Math.floor(i/o)*o+c;this.flushFrontBuffer(i,o,d)}}flushBackBuffer(t,n,r){this.sourceBuffers.forEach(([s,i])=>{if(i){const a=Ft.getBuffered(i);if(a.length>0&&r>a.start(0)){var o;this.hls.trigger(G.BACK_BUFFER_REACHED,{bufferEnd:r});const l=this.tracks[s];if((o=this.details)!=null&&o.live)this.hls.trigger(G.LIVE_BACK_BUFFER_REACHED,{bufferEnd:r});else if(l!=null&&l.ended){this.log(`Cannot flush ${s} back buffer while SourceBuffer is in ended state`);return}this.hls.trigger(G.BUFFER_FLUSHING,{startOffset:0,endOffset:r,type:s})}}})}flushFrontBuffer(t,n,r){this.sourceBuffers.forEach(([s,i])=>{if(i){const o=Ft.getBuffered(i),a=o.length;if(a<2)return;const l=o.start(a-1),u=o.end(a-1);if(r>l||t>=l&&t<=u)return;this.hls.trigger(G.BUFFER_FLUSHING,{startOffset:l,endOffset:1/0,type:s})}})}getDurationAndRange(){var t;const{details:n,mediaSource:r}=this;if(!n||!this.media||r?.readyState!=="open")return null;const s=n.edge;if(n.live&&this.hls.config.liveDurationInfinity){if(n.fragments.length&&r.setLiveSeekableRange){const u=Math.max(0,n.fragmentStart),c=Math.max(u,s);return{duration:1/0,start:u,end:c}}return{duration:1/0}}const i=(t=this.overrides)==null?void 0:t.duration;if(i)return lt(i)?{duration:i}:null;const o=this.media.duration,a=lt(r.duration)?r.duration:0;return s>a&&s>o||!lt(o)?{duration:s}:null}updateMediaSource({duration:t,start:n,end:r}){const s=this.mediaSource;!this.media||!s||s.readyState!=="open"||(s.duration!==t&&(lt(t)&&this.log(`Updating MediaSource duration to ${t.toFixed(3)}`),s.duration=t),n!==void 0&&r!==void 0&&(this.log(`MediaSource duration is set to ${s.duration}. Setting seekable range to ${n}-${r}.`),s.setLiveSeekableRange(n,r)))}get tracksReady(){const t=this.pendingTrackCount;return t>0&&(t>=this.bufferCodecEventsTotal||this.isPending(this.tracks.audiovideo))}checkPendingTracks(){const{bufferCodecEventsTotal:t,pendingTrackCount:n,tracks:r}=this;if(this.log(`checkPendingTracks (pending: ${n} codec events expected: ${t}) ${Ln(r)}`),this.tracksReady){var s;const i=(s=this.transferData)==null?void 0:s.tracks;i&&Object.keys(i).length?this.attachTransferred():this.createSourceBuffers()}}bufferCreated(){if(this.sourceBufferCount){const t={};this.sourceBuffers.forEach(([n,r])=>{if(n){const s=this.tracks[n];t[n]={buffer:r,container:s.container,codec:s.codec,supplemental:s.supplemental,levelCodec:s.levelCodec,id:s.id,metadata:s.metadata}}}),this.hls.trigger(G.BUFFER_CREATED,{tracks:t}),this.log(`SourceBuffers created. Running queue: ${this.operationQueue}`),this.sourceBuffers.forEach(([n])=>{this.executeNext(n)})}else{const t=new Error("could not create source buffer for media codec(s)");this.hls.trigger(G.ERROR,{type:bt.MEDIA_ERROR,details:Re.BUFFER_INCOMPATIBLE_CODECS_ERROR,fatal:!0,error:t,reason:t.message})}}createSourceBuffers(){const{tracks:t,sourceBuffers:n,mediaSource:r}=this;if(!r)throw new Error("createSourceBuffers called when mediaSource was null");for(const i in t){const o=i,a=t[o];if(this.isPending(a)){const l=this.getTrackCodec(a,o),u=`${a.container};codecs=${l}`;a.codec=l,this.log(`creating sourceBuffer(${u})${this.currentOp(o)?" Queued":""} ${Ln(a)}`);try{const c=r.addSourceBuffer(u),d=wx(o),f=[o,c];n[d]=f,a.buffer=c}catch(c){var s;this.error(`error while trying to add sourceBuffer: ${c.message}`),this.shiftAndExecuteNext(o),(s=this.operationQueue)==null||s.removeBlockers(),delete this.tracks[o],this.hls.trigger(G.ERROR,{type:bt.MEDIA_ERROR,details:Re.BUFFER_ADD_CODEC_ERROR,fatal:!1,error:c,sourceBufferName:o,mimeType:u,parent:a.id});return}this.trackSourceBuffer(o,a)}}this.bufferCreated()}getTrackCodec(t,n){const r=t.supplemental;let s=t.codec;r&&(n==="video"||n==="audiovideo")&&uh(r,"video")&&(s=ide(s,r));const i=Im(s,t.levelCodec);return i?n.slice(0,5)==="audio"?cg(i,this.appendSource):i:""}trackSourceBuffer(t,n){const r=n.buffer;if(!r)return;const s=this.getTrackCodec(n,t);this.tracks[t]={buffer:r,codec:s,container:n.container,levelCodec:n.levelCodec,supplemental:n.supplemental,metadata:n.metadata,id:n.id,listeners:[]},this.removeBufferListeners(t),this.addBufferListener(t,"updatestart",this.onSBUpdateStart),this.addBufferListener(t,"updateend",this.onSBUpdateEnd),this.addBufferListener(t,"error",this.onSBUpdateError),this.appendSource&&this.addBufferListener(t,"bufferedchange",(i,o)=>{const a=o.removedRanges;a!=null&&a.length&&this.hls.trigger(G.BUFFER_FLUSHED,{type:i})})}get mediaSrc(){var t,n;const r=((t=this.media)==null||(n=t.querySelector)==null?void 0:n.call(t,"source"))||this.media;return r?.src}onSBUpdateStart(t){const n=this.currentOp(t);n&&n.onStart()}onSBUpdateEnd(t){var n;if(((n=this.mediaSource)==null?void 0:n.readyState)==="closed"){this.resetBuffer(t);return}const r=this.currentOp(t);r&&(r.onComplete(),this.shiftAndExecuteNext(t))}onSBUpdateError(t,n){var r;const s=new Error(`${t} SourceBuffer error. MediaSource readyState: ${(r=this.mediaSource)==null?void 0:r.readyState}`);this.error(`${s}`,n),this.hls.trigger(G.ERROR,{type:bt.MEDIA_ERROR,details:Re.BUFFER_APPENDING_ERROR,sourceBufferName:t,error:s,fatal:!1});const i=this.currentOp(t);i&&i.onError(s)}updateTimestampOffset(t,n,r,s,i,o){const a=n-t.timestampOffset;Math.abs(a)>=r&&(this.log(`Updating ${s} SourceBuffer timestampOffset to ${n} (sn: ${i} cc: ${o})`),t.timestampOffset=n)}removeExecutor(t,n,r){const{media:s,mediaSource:i}=this,o=this.tracks[t],a=o?.buffer;if(!s||!i||!a){this.warn(`Attempting to remove from the ${t} SourceBuffer, but it does not exist`),this.shiftAndExecuteNext(t);return}const l=lt(s.duration)?s.duration:1/0,u=lt(i.duration)?i.duration:1/0,c=Math.max(0,n),d=Math.min(r,l,u);d>c&&(!o.ending||o.ended)?(o.ended=!1,this.log(`Removing [${c},${d}] from the ${t} SourceBuffer`),a.remove(c,d)):this.shiftAndExecuteNext(t)}appendExecutor(t,n){const r=this.tracks[n],s=r?.buffer;if(!s)throw new phe(`Attempting to append to the ${n} SourceBuffer, but it does not exist`);r.ending=!1,r.ended=!1,s.appendBuffer(t)}blockUntilOpen(t){if(this.isUpdating()||this.isQueued())this.blockBuffers(t).catch(n=>{this.warn(`SourceBuffer blocked callback ${n}`),this.stepOperationQueue(this.sourceBufferTypes)});else try{t()}catch(n){this.warn(`Callback run without blocking ${this.operationQueue} ${n}`)}}isUpdating(){return this.sourceBuffers.some(([t,n])=>t&&n.updating)}isQueued(){return this.sourceBuffers.some(([t])=>t&&!!this.currentOp(t))}isPending(t){return!!t&&!t.buffer}blockBuffers(t,n=this.sourceBufferTypes){if(!n.length)return this.log("Blocking operation requested, but no SourceBuffers exist"),Promise.resolve().then(t);const{operationQueue:r}=this,s=n.map(o=>this.appendBlocker(o));return n.length>1&&!!this.blockedAudioAppend&&this.unblockAudio(),Promise.all(s).then(o=>{r===this.operationQueue&&(t(),this.stepOperationQueue(this.sourceBufferTypes))})}stepOperationQueue(t){t.forEach(n=>{var r;const s=(r=this.tracks[n])==null?void 0:r.buffer;!s||s.updating||this.shiftAndExecuteNext(n)})}append(t,n,r){this.operationQueue&&this.operationQueue.append(t,n,r)}appendBlocker(t){if(this.operationQueue)return this.operationQueue.appendBlocker(t)}currentOp(t){return this.operationQueue?this.operationQueue.current(t):null}executeNext(t){t&&this.operationQueue&&this.operationQueue.executeNext(t)}shiftAndExecuteNext(t){this.operationQueue&&this.operationQueue.shiftAndExecuteNext(t)}get pendingTrackCount(){return Object.keys(this.tracks).reduce((t,n)=>t+(this.isPending(this.tracks[n])?1:0),0)}get sourceBufferCount(){return this.sourceBuffers.reduce((t,[n])=>t+(n?1:0),0)}get sourceBufferTypes(){return this.sourceBuffers.map(([t])=>t).filter(t=>!!t)}addBufferListener(t,n,r){const s=this.tracks[t];if(!s)return;const i=s.buffer;if(!i)return;const o=r.bind(this,t);s.listeners.push({event:n,listener:o}),i.addEventListener(n,o)}removeBufferListeners(t){const n=this.tracks[t];if(!n)return;const r=n.buffer;r&&(n.listeners.forEach(s=>{r.removeEventListener(s.event,s.listener)}),n.listeners.length=0)}}function YI(e){const t=e.querySelectorAll("source");[].slice.call(t).forEach(n=>{e.removeChild(n)})}function vhe(e,t){const n=self.document.createElement("source");n.type="video/mp4",n.src=t,e.appendChild(n)}function wx(e){return e==="audio"?1:0}class qE{constructor(t){this.hls=void 0,this.autoLevelCapping=void 0,this.firstLevel=void 0,this.media=void 0,this.restrictedLevels=void 0,this.timer=void 0,this.clientRect=void 0,this.streamController=void 0,this.hls=t,this.autoLevelCapping=Number.POSITIVE_INFINITY,this.firstLevel=-1,this.media=null,this.restrictedLevels=[],this.timer=void 0,this.clientRect=null,this.registerListeners()}setStreamController(t){this.streamController=t}destroy(){this.hls&&this.unregisterListener(),this.timer&&this.stopCapping(),this.media=null,this.clientRect=null,this.hls=this.streamController=null}registerListeners(){const{hls:t}=this;t.on(G.FPS_DROP_LEVEL_CAPPING,this.onFpsDropLevelCapping,this),t.on(G.MEDIA_ATTACHING,this.onMediaAttaching,this),t.on(G.MANIFEST_PARSED,this.onManifestParsed,this),t.on(G.LEVELS_UPDATED,this.onLevelsUpdated,this),t.on(G.BUFFER_CODECS,this.onBufferCodecs,this),t.on(G.MEDIA_DETACHING,this.onMediaDetaching,this)}unregisterListener(){const{hls:t}=this;t.off(G.FPS_DROP_LEVEL_CAPPING,this.onFpsDropLevelCapping,this),t.off(G.MEDIA_ATTA
vendor: 3,150 bytes, line 118
118CHING,this.onMediaAttaching,this),t.off(G.MANIFEST_PARSED,this.onManifestParsed,this),t.off(G.LEVELS_UPDATED,this.onLevelsUpdated,this),t.off(G.BUFFER_CODECS,this.onBufferCodecs,this),t.off(G.MEDIA_DETACHING,this.onMediaDetaching,this)}onFpsDropLevelCapping(t,n){const r=this.hls.levels[n.droppedLevel];this.isLevelAllowed(r)&&this.restrictedLevels.push({bitrate:r.bitrate,height:r.height,width:r.width})}onMediaAttaching(t,n){this.media=n.media instanceof HTMLVideoElement?n.media:null,this.clientRect=null,this.timer&&this.hls.levels.length&&this.detectPlayerSize()}onManifestParsed(t,n){const r=this.hls;this.restrictedLevels=[],this.firstLevel=n.firstLevel,r.config.capLevelToPlayerSize&&n.video&&this.startCapping()}onLevelsUpdated(t,n){this.timer&&lt(this.autoLevelCapping)&&this.detectPlayerSize()}onBufferCodecs(t,n){this.hls.config.capLevelToPlayerSize&&n.video&&this.startCapping()}onMediaDetaching(){this.stopCapping(),this.media=null}detectPlayerSize(){if(this.media){if(this.mediaHeight<=0||this.mediaWidth<=0){this.clientRect=null;return}const t=this.hls.levels;if(t.length){const n=this.hls,r=this.getMaxLevel(t.length-1);r!==this.autoLevelCapping&&n.logger.log(`Setting autoLevelCapping to ${r}: ${t[r].height}p@${t[r].bitrate} for media ${this.mediaWidth}x${this.mediaHeight}`),n.autoLevelCapping=r,n.autoLevelEnabled&&n.autoLevelCapping>this.autoLevelCapping&&this.streamController&&this.streamController.nextLevelSwitch(),this.autoLevelCapping=n.autoLevelCapping}}}getMaxLevel(t){const n=this.hls.levels;if(!n.length)return-1;const r=n.filter((s,i)=>this.isLevelAllowed(s)&&i<=t);return this.clientRect=null,qE.getMaxLevelByMediaSize(r,this.mediaWidth,this.mediaHeight)}startCapping(){this.timer||(this.autoLevelCapping=Number.POSITIVE_INFINITY,self.clearInterval(this.timer),this.timer=self.setInterval(this.detectPlayerSize.bind(this),1e3),this.detectPlayerSize())}stopCapping(){this.restrictedLevels=[],this.firstLevel=-1,this.autoLevelCapping=Number.POSITIVE_INFINITY,this.timer&&(self.clearInterval(this.timer),this.timer=void 0)}getDimensions(){if(this.clientRect)return this.clientRect;const t=this.media,n={width:0,height:0};if(t){const r=t.getBoundingClientRect();n.width=r.width,n.height=r.height,!n.width&&!n.height&&(n.width=r.right-r.left||t.width||0,n.height=r.bottom-r.top||t.height||0)}return this.clientRect=n,n}get mediaWidth(){return this.getDimensions().width*this.contentScaleFactor}get mediaHeight(){return this.getDimensions().height*this.contentScaleFactor}get contentScaleFactor(){let t=1;if(!this.hls.config.ignoreDevicePixelRatio)try{t=self.devicePixelRatio}catch{}return Math.min(t,this.hls.config.maxDevicePixelRatio)}isLevelAllowed(t){return!this.restrictedLevels.some(r=>t.bitrate===r.bitrate&&t.width===r.width&&t.height===r.height)}static getMaxLevelByMediaSize(t,n,r){if(!(t!=null&&t.length))return-1;const s=(a,l)=>l?a.width!==l.width||a.height!==l.height:!0;let i=t.length-1;const o=Math.max(n,r);for(let a=0;a<t.length;a+=1){const l=t[a];if((l.width>=o||l.height>=o)&&s(l,t[a+1])){i=a;break}}return i}}const ghe={MANIFEST:"m",AUDIO:"a",VIDEO:"v",MUXED:"av",INIT:"i",CAPTION:"c",TIMED_TEXT:"tt",
vendor: 3,923 bytes, line 118
118KEY:"k",OTHER:"o"},Ms=ghe,yhe={HLS:"h"},xhe=yhe;class Go{constructor(t,n){Array.isArray(t)&&(t=t.map(r=>r instanceof Go?r:new Go(r))),this.value=t,this.params=n}}const bhe="Dict";function _he(e){return Array.isArray(e)?JSON.stringify(e):e instanceof Map?"Map{}":e instanceof Set?"Set{}":typeof e=="object"?JSON.stringify(e):String(e)}function She(e,t,n,r){return new Error(`failed to ${e} "${_he(t)}" as ${n}`,{cause:r})}function Ko(e,t,n){return She("serialize",e,t,n)}class m5{constructor(t){this.description=t}}const XI="Bare Item",Ehe="Boolean";function whe(e){if(typeof e!="boolean")throw Ko(e,Ehe);return e?"?1":"?0"}function The(e){return btoa(String.fromCharCode(...e))}const Che="Byte Sequence";function Ahe(e){if(ArrayBuffer.isView(e)===!1)throw Ko(e,Che);return`:${The(e)}:`}const khe="Integer";function Ihe(e){return e<-999999999999999||999999999999999<e}function v5(e){if(Ihe(e))throw Ko(e,khe);return e.toString()}function Lhe(e){return`@${v5(e.getTime()/1e3)}`}function g5(e,t){if(e<0)return-g5(-e,t);const n=Math.pow(10,t);if(Math.abs(e*n%1-.5)<Number.EPSILON){const s=Math.floor(e*n);return(s%2===0?s:s+1)/n}else return Math.round(e*n)/n}const Dhe="Decimal";function Phe(e){const t=g5(e,3);if(Math.floor(Math.abs(t)).toString().length>12)throw Ko(e,Dhe);const n=t.toString();return n.includes(".")?n:`${n}.0`}const Rhe="String",Ohe=/[\x00-\x1f\x7f]+/;function $he(e){if(Ohe.test(e))throw Ko(e,Rhe);return`"${e.replace(/\\/g,"\\\\").replace(/"/g,'\\"')}"`}function Mhe(e){return e.description||e.toString().slice(7,-1)}const Fhe="Token";function ZI(e){const t=Mhe(e);if(/^([a-zA-Z*])([!#$%&'*+\-.^_`|~\w:/]*)$/.test(t)===!1)throw Ko(t,Fhe);return t}function I2(e){switch(typeof e){case"number":if(!lt(e))throw Ko(e,XI);return Number.isInteger(e)?v5(e):Phe(e);case"string":return $he(e);case"symbol":return ZI(e);case"boolean":return whe(e);case"object":if(e instanceof Date)return Lhe(e);if(e instanceof Uint8Array)return Ahe(e);if(e instanceof m5)return ZI(e);default:throw Ko(e,XI)}}const Bhe="Key";function L2(e){if(/^[a-z*][a-z0-9\-_.*]*$/.test(e)===!1)throw Ko(e,Bhe);return e}function YE(e){return e==null?"":Object.entries(e).map(([t,n])=>n===!0?`;${L2(t)}`:`;${L2(t)}=${I2(n)}`).join("")}function y5(e){return e instanceof Go?`${I2(e.value)}${YE(e.params)}`:I2(e)}function Nhe(e){return`(${e.value.map(y5).join(" ")})${YE(e.params)}`}function Vhe(e,t={whitespace:!0}){if(typeof e!="object"||e==null)throw Ko(e,bhe);const n=e instanceof Map?e.entries():Object.entries(e),r=t?.whitespace?" ":"";return Array.from(n).map(([s,i])=>{i instanceof Go||(i=new Go(i));let o=L2(s);return i.value===!0?o+=YE(i.params):(o+="=",Array.isArray(i.value)?o+=Nhe(i):o+=y5(i)),o}).join(`,${r}`)}function x5(e,t){return Vhe(e,t)}const go="CMCD-Object",Xn="CMCD-Request",Vl="CMCD-Session",ja="CMCD-Status",Uhe={br:go,ab:go,d:go,ot:go,tb:go,tpb:go,lb:go,tab:go,lab:go,url:go,pb:Xn,bl:Xn,tbl:Xn,dl:Xn,ltc:Xn,mtp:Xn,nor:Xn,nrr:Xn,rc:Xn,sn:Xn,sta:Xn,su:Xn,ttfb:Xn,ttfbb:Xn,ttlb:Xn,cmsdd:Xn,cmsds:Xn,smrt:Xn,df:Xn,cs:Xn,ts:Xn,cid:Vl,pr:Vl,sf:Vl,sid:Vl,st:Vl,v:Vl,msd:Vl,bs:ja,bsd:ja,cdn:ja,rtp:ja,bg:ja,pt:ja,ec:ja,e:ja},jhe={REQUEST:Xn};function zhe(e){return Object.keys(e).reduce((t,n)=>{var r;return(r=e[n])===null||r===void 0||r.forEach(s=>t[s]=n),t},{})}function Hhe(e,t){const n={};if(!e)return n;const r=Object.keys(e),s=t?zhe(t):{};return r.reduce((i,o)=>{var a;const l=Uhe[o]||s[o]||jhe.REQUEST,u=(a=i[l])!==null&&a!==void 0?a:i[l]={};return u[o]=e[o],i},n)}function Ghe(e){return["ot","sf","st","e","sta"].includes(e)}function Khe(e){return typeof e=="number"?lt(e):e!=null&&e!==""&&e!==!1}const b5="event";function Whe(e,t){const n=new URL(e),r=new URL(t);if(n.origin!==r.origin)return e;const s=n.pathname.split("/").slice(1),i=r.pathname.split("/").slice(1,-1);for(;s[0]===i[0];)s.shift(),i.shift();for(;i.length;)i.shift(),s.unshift("..");return s.join("/")+n.search+n.hash}const Om=e=>Math.round(e),D2=(e,t)=>
118Array.isArray(e)?e.map(n=>D2(n,t)):e instanceof Go&&typeof e.value=="string"?new Go(D2(e.value,t),e.params):(t.baseUrl&&(e=Whe(e,t.baseUrl)),t.version===1?encodeURIComponent(e):e),op=e=>Om(e/100)*100,qhe=(e,t)=>{let n=e;return t.version>=2&&(e instanceof Go&&typeof e.value=="string"?n=new Go([e]):typeof e=="string"&&(n=[e])),D2(n,t)},Yhe={br:Om,d:Om,bl:op,dl:op,mtp:op,nor:qhe,rtp:op,tb:Om},_5="request",S5="response",XE=["ab","bg","bl","br","bs","bsd","cdn","cid","cs","df","ec","lab","lb","ltc","msd","mtp","pb","pr","pt","sf","sid","sn","st","sta","tab","tb","tbl","tpb","ts","v"],Xhe=["e"],Zhe=/^[a-zA-Z0-9-.]+-[a-zA-Z0-9-.]+$/;function Wy(e){return Zhe.test(e)}function Jhe(e){return XE.includes(e)||Xhe.includes(e)||Wy(e)}const E5=["d","dl","nor","ot","rtp","su"];function Qhe(e){return XE.includes(e)||E5.includes(e)||Wy(e)}const e0e=["cmsdd","cmsds","rc","smrt","ttfb","ttfbb","ttlb","url"];function t0e(e){return XE.includes(e)||E5.includes(e)||e0e.includes(e)||Wy(e)}const n0e=["bl","br","bs","cid","d","dl","mtp","nor","nrr","ot","pr","rtp","sf","sid","st","su","tb","v"];function r0e(e){return n0e.includes(e)||Wy(e)}const s0e={[S5]:t0e,[b5]:Jhe,[_5]:Qhe};function w5(e,t={}){const n={};if(e==null||typeof e!="object")return n;const r=t.version||e.v||1,s=t.reportingMode||_5,i=r===1?r0e:s0e[s];let o=Object.keys(e).filter(i);const a=t.filter;typeof a=="function"&&(o=o.filter(a));const l=s===S5||s===b5;l&&!o.includes("ts")&&o.push("ts"),r>1&&!o.includes("v")&&o.push("v");const u=kn({},Yhe,t.formatters),c={version:r,reportingMode:s,baseUrl:t.baseUrl};return o.sort().forEach(d=>{let f=e[d];const h=u[d];if(typeof h=="function"&&(f=h(f,c)),d==="v"){if(r===1)return;f=r}d=="pr"&&f===1||(l&&d==="ts"&&!lt(f)&&(f=Date.now()),Khe(f)&&(Ghe(d)&&typeof f=="string"&&(f=new m5(f)),n[d]=f))}),n}function i0e(e,t={}){const n={};if(!e)return n;const r=w5(e,t),s=Hhe(r,t?.customHeaderMap);return Object.entries(s).reduce((i,[o,a])=>{const l=x5(a,{whitespace:!1});return l&&(i[o]=l),i},n)}function o0e(e,t,n){return kn(e,i0e(t,n))}const a0e="CMCD";function l0e(e,t={}){return e?x5(w5(e,t),{whitespace:!1}):""}function u0e(e,t={}){if(!e)return"";const n=l0e(e,t);return encodeURIComponent(n)}function c0e(e,t={}){if(!e)return"";const n=u0e(e,t);return`${a0e}=${n}`}const JI=/CMCD=[^&#]+/;function d0e(e,t,n){const r=c0e(t,n);if(!r)return e;if(JI.test(e))return e.replace(JI,r);const s=e.includes("?")?"&":"?";return`${e}${s}${r}`}class f0e{constructor(t){this.hls=void 0,this.config=void 0,this.media=void 0,this.sid=void 0,this.cid=void 0,this.useHeaders=!1,this.includeKeys=void 0,this.initialized=!1,this.starved=!1,this.buffering=!0,this.audioBuffer=void 0,this.videoBuffer=void 0,this.onWaiting=()=>{this.initialized&&(this.starved=!0),this.buffering=!0},this.onPlaying=()=>{this.initialized||(this.initialized=!0),this.buffering=!1},this.applyPlaylistData=s=>{try{this.apply(s,{ot:Ms.MANIFEST,su:!this.initialized})}catch(i){this.hls.logger.warn("Could not generate manifest CMCD data.",i)}},this.applyFragmentData=s=>{try{const{frag:i,part:o}=s,a=this.hls.levels[i.level],l=this.getObjectType(i),u={d:(o||i).duration*1e3,ot:l};(l===Ms.VIDEO||l===Ms.AUDIO||l==Ms.MUXED)&&(u.br=a.bitrate/1e3,u.tb=this.getTopBandwidth(l)/1e3,u.bl=this.getBufferLength(l));const c=o?this.getNextPart(o):this.getNextFrag(i);c!=null&&c.url&&c.url!==i.url&&(u.nor=c.url),this.apply(s,u)}catch(i){this.hls.logger.warn("Could not generate segment CMCD data.",i)}},this.hls=t;const n=this.config=t.config,{cmcd:r}=n;r!=null&&(n.pLoader=this.createPlaylistLoader(),n.fLoader=this.createFragmentLoader(),this.sid=r.sessionId||t.sessionId,this.cid=r.contentId,this.useHeaders=r.useHeaders===!0,this.includeKeys=r.includeKeys,this.registerListeners())}registerListeners(){const t=this.hls;t.on(G.MEDIA_ATTACHED,this.onMediaAttached,this),t.on(G.MEDIA_DETACHED,this.onMediaDetached,this),t.on(G.BUFFER_CREATED,this.onBufferCreated,this)}unregisterListeners(){const t=this.hls;t.off(G.MEDIA_ATTACHED,this.onMediaAttached,this),t.off(G.MEDIA_DETACHED,this.onMediaDetached,this),t.off(G.BUFFER_CREATED,this.onBufferCreated,this)}destroy(){this.unregisterListeners(),this.onMediaDetached(),this.hls=this.config=this.audioBuffer=this.videoBuffer=null,this.onWaiting=this.onPlaying=this.media=null}onMediaAttached(t,n){this.media=n.media,this.media.addEventListener("waiting",this.onWaiting),this.media.addEventListener("playing",this.onPlaying)}onMediaDetached(){this.media&&(this.media.removeEventListener("waiting",this.onWaiting),this.media.removeEventListener("playing",this.onPlaying),this.media=null)}onBufferCreated(t,n){var r,s;this.audioBuffer=(r=n.tracks.audio)==null?void 0:r.buffer,this.videoBuffer=(s=n.tracks.video)==null?void 0:s.buffer}createData(){var t;return{v:1,sf:xhe.HLS,sid:this.sid,cid:this.cid,pr:(t=this.media)==null?void 0:t.playbackRate,mtp:this.hls.bandwidthEstimate/1e3}}apply(t,n={}){kn(n,this.createData());const r=n.ot===Ms.INIT||n.ot===Ms.VIDEO||n.ot===Ms.MUXED;this.starved&&r&&(n.bs=!0,n.su=!0,this.starved=!1),n.su==null&&(n.su=this.buffering);const{includeKeys:s}=this;s&&(n=Object.keys(n).reduce((o,a)=>(s.includes(a)&&(o[a]=n[a]),o),{}));const i={baseUrl:t.url};this.useHeaders?(t.headers||(t.headers={}),o0e(t.headers,n,i)):t.url=d0e(t.url,n,i)}getNextFrag(t){var n;const r=(n=this.hls.levels[t.level])==null?void 0:n.details;if(r){const s=t.sn-r.startSN;return r.fragments[s+1]}}getNextPart(t){var n;const{index:r,fragment:s}=t,i=(n=this.hls.levels[s.level])==null||(n=n.details)==null?void 0:n.partList;if(i){const{sn:o}=s;for(let a=i.length-1;a>=0;a--){const l=i[a];if(l.index===r&&l.fragment.sn===o)return i[a+1]}}}getObjectType(t){const{type:n}=t;if(n==="subtitle")return Ms.TIMED_TEXT;if(t.sn==="initSegment")return Ms.INIT;if(n==="audio")return Ms.AUDIO;if(n==="main")return this.hls.audioTracks.length?Ms.VIDEO:Ms.MUXED}getTopBandwidth(t){let n=0,r;const s=this.hls;if(t===Ms.AUDIO)r=s.audioTracks;else{const i=s.maxAutoLevel,o=i>-1?i+1:s.levels.length;r=s.levels.slice(0,o)}return r.forEach(i=>
118{i.bitrate>n&&(n=i.bitrate)}),n>0?n:NaN}getBufferLength(t){const n=this.media,r=t===Ms.AUDIO?this.audioBuffer:this.videoBuffer;return!r||!n?NaN:Ft.bufferInfo(r,n.currentTime,this.config.maxBufferHole).len*1e3}createPlaylistLoader(){const{pLoader:t}=this.config,n=this.applyPlaylistData,r=t||this.config.loader;return class{constructor(i){this.loader=void 0,this.loader=new r(i)}get stats(){return this.loader.stats}get context(){return this.loader.context}destroy(){this.loader.destroy()}abort(){this.loader.abort()}load(i,o,a){n(i),this.loader.load(i,o,a)}}}createFragmentLoader(){const{fLoader:t}=this.config,n=this.applyFragmentData,r=t||this.config.loader;return class{constructor(i){this.loader=void 0,this.loader=new r(i)}get stats(){return this.loader.stats}get context(){return this.loader.context}destroy(){this.loader.destroy()}abort(){this.loader.abort()}load(i,o,a){n(i),this.loader.load(i,o,a)}}}}const h0e=3e5;class p0e extends Ki{constructor(t){super("content-steering",t.logger),this.hls=void 0,this.loader=null,this.uri=null,this.pathwayId=".",this._pathwayPriority=null,this.timeToLoad=300,this.reloadTimer=-1,this.updated=0,this.started=!1,this.enabled=!0,this.levels=null,this.audioTracks=null,this.subtitleTracks=null,this.penalizedPathways={},this.hls=t,this.registerListeners()}registerListeners(){const t=this.hls;t.on(G.MANIFEST_LOADING,this.onManifestLoading,this),t.on(G.MANIFEST_LOADED,this.onManifestLoaded,this),t.on(G.MANIFEST_PARSED,this.onManifestParsed,this),t.on(G.ERROR,this.onError,this)}unregisterListeners(){const t=this.hls;t&&(t.off(G.MANIFEST_LOADING,this.onManifestLoading,this),t.off(G.MANIFEST_LOADED,this.onManifestLoaded,this),t.off(G.MANIFEST_PARSED,this.onManifestParsed,this),t.off(G.ERROR,this.onError,this))}pathways(){return(this.levels||[]).reduce((t,n)=>(t.indexOf(n.pathwayId)===-1&&t.push(n.pathwayId),t),[])}get pathwayPriority(){return this._pathwayPriority}set pathwayPriority(t){this.updatePathwayPriority(t)}startLoad(){if(this.started=!0,this.clearTimeout(),this.enabled&&this.uri){if(this.updated){const t=this.timeToLoad*1e3-(performance.now()-this.updated);if(t>0){this.scheduleRefresh(this.uri,t);return}}this.loadSteeringManifest(this.uri)}}stopLoad(){this.started=!1,this.loader&&(this.loader.destroy(),this.loader=null),this.clearTimeout()}clearTimeout(){this.reloadTimer!==-1&&(self.clearTimeout(this.reloadTimer),this.reloadTimer=-1)}destroy(){this.unregisterListeners(),this.stopLoad(),this.hls=null,this.levels=this.audioTracks=this.subtitleTracks=null}removeLevel(t){const n=this.levels;n&&(this.levels=n.filter(r=>r!==t))}onManifestLoading(){this.stopLoad(),this.enabled=!0,this.timeToLoad=300,this.updated=0,this.uri=null,this.pathwayId=".",this.levels=this.audioTracks=this.subtitleTracks=null}onManifestLoaded(t,n){const{contentSteering:r}=n;r!==null&&(this.pathwayId=r.pathwayId,this.uri=r.uri,this.started&&this.startLoad())}onManifestParsed(t,n){this.audioTracks=n.audioTracks,this.subtitleTracks=n.subtitleTracks}onError(t,n){const{errorAction:r}=n;if(r?.action===Vr.SendAlternateToPenaltyBox&&r.flags===ei.MoveAllAlternatesMatchingHost){const s=this.levels;let i=this._pathwayPriority,o=this.pathwayId;if(n.context){const{groupId:a,pathwayId:l,type:u}=n.context;a&&s?o=this.getPathwayForGroupId(a,u,o):l&&(o=l)}o in this.penalizedPathways||(this.penalizedPathways[o]=performance.now()),!i&&s&&(i=this.pathways()),i&&i.length>1&&(this.updatePathwayPriority(i),r.resolved=this.pathwayId!==o),n.details===Re.BUFFER_APPEND_ERROR&&!n.fatal?r.resolved=!0:r.resolved||this.warn(`Could not resolve ${n.details} ("${n.error.message}") with content-steering for Pathway: ${o} levels: ${s&&s.length} priorities: ${Ln(i)} penalized: ${Ln(this.penalizedPathways)}`)}}filterParsedLevels(t){this.levels=t;let n=this.getLevelsForPathway(this.pathwayId);if(n.length===0){const r=t[0].pathwayId;this.log(`No levels found in Pathway ${this.pathwayId}. Setting initial Pathway to "${r}"`),n=this.getLevelsForPathway(r),this.pathwayId=r}return n.length!==t.length&&this.log(`Found ${n.length}/${t.length} levels in Pathway "${this.pathwayId}"`),n}getLevelsForPathway(t){return this.levels===null?[]:this.levels.filter(n=>t===n.pathwayId)}updatePathwayPriority(t){this._pathwayPriority=t;let n;const r=this.penalizedPathways,s=performance.now();Object.keys(r).forEach(i=>
vendor: 4,321 bytes, line 118
118{s-r[i]>h0e&&delete r[i]});for(let i=0;i<t.length;i++){const o=t[i];if(o in r)continue;if(o===this.pathwayId)return;const a=this.hls.nextLoadLevel,l=this.hls.levels[a];if(n=this.getLevelsForPathway(o),n.length>0){this.log(`Setting Pathway to "${o}"`),this.pathwayId=o,H6(n),this.hls.trigger(G.LEVELS_UPDATED,{levels:n});const u=this.hls.levels[a];l&&u&&this.levels&&(u.attrs["STABLE-VARIANT-ID"]!==l.attrs["STABLE-VARIANT-ID"]&&u.bitrate!==l.bitrate&&this.log(`Unstable Pathways change from bitrate ${l.bitrate} to ${u.bitrate}`),this.hls.nextLoadLevel=a);break}}}getPathwayForGroupId(t,n,r){const s=this.getLevelsForPathway(r).concat(this.levels||[]);for(let i=0;i<s.length;i++)if(n===Yt.AUDIO_TRACK&&s[i].hasAudioGroup(t)||n===Yt.SUBTITLE_TRACK&&s[i].hasSubtitleGroup(t))return s[i].pathwayId;return r}clonePathways(t){const n=this.levels;if(!n)return;const r={},s={};t.forEach(i=>{const{ID:o,"BASE-ID":a,"URI-REPLACEMENT":l}=i;if(n.some(c=>c.pathwayId===o))return;const u=this.getLevelsForPathway(a).map(c=>{const d=new Hn(c.attrs);d["PATHWAY-ID"]=o;const f=d.AUDIO&&`${d.AUDIO}_clone_${o}`,h=d.SUBTITLES&&`${d.SUBTITLES}_clone_${o}`;f&&(r[d.AUDIO]=f,d.AUDIO=f),h&&(s[d.SUBTITLES]=h,d.SUBTITLES=h);const p=T5(c.uri,d["STABLE-VARIANT-ID"],"PER-VARIANT-URIS",l),m=new dh({attrs:d,audioCodec:c.audioCodec,bitrate:c.bitrate,height:c.height,name:c.name,url:p,videoCodec:c.videoCodec,width:c.width});if(c.audioGroups)for(let v=1;v<c.audioGroups.length;v++)m.addGroupId("audio",`${c.audioGroups[v]}_clone_${o}`);if(c.subtitleGroups)for(let v=1;v<c.subtitleGroups.length;v++)m.addGroupId("text",`${c.subtitleGroups[v]}_clone_${o}`);return m});n.push(...u),QI(this.audioTracks,r,l,o),QI(this.subtitleTracks,s,l,o)})}loadSteeringManifest(t){const n=this.hls.config,r=n.loader;this.loader&&this.loader.destroy(),this.loader=new r(n);let s;try{s=new self.URL(t)}catch{this.enabled=!1,this.log(`Failed to parse Steering Manifest URI: ${t}`);return}if(s.protocol!=="data:"){const c=(this.hls.bandwidthEstimate||n.abrEwmaDefaultEstimate)|0;s.searchParams.set("_HLS_pathway",this.pathwayId),s.searchParams.set("_HLS_throughput",""+c)}const i={responseType:"json",url:s.href},o=n.steeringManifestLoadPolicy.default,a=o.errorRetry||o.timeoutRetry||{},l={loadPolicy:o,timeout:o.maxLoadTimeMs,maxRetry:a.maxNumRetry||0,retryDelay:a.retryDelayMs||0,maxRetryDelay:a.maxRetryDelayMs||0},u={onSuccess:(c,d,f,h)=>{this.log(`Loaded steering manifest: "${s}"`);const p=c.data;if(p?.VERSION!==1){this.log(`Steering VERSION ${p.VERSION} not supported!`);return}this.updated=performance.now(),this.timeToLoad=p.TTL;const{"RELOAD-URI":m,"PATHWAY-CLONES":v,"PATHWAY-PRIORITY":x}=p;if(m)try{this.uri=new self.URL(m,s).href}catch{this.enabled=!1,this.log(`Failed to parse Steering Manifest RELOAD-URI: ${m}`);return}this.scheduleRefresh(this.uri||f.url),v&&this.clonePathways(v);const g={steeringManifest:p,url:s.toString()};this.hls.trigger(G.STEERING_MANIFEST_LOADED,g),x&&this.updatePathwayPriority(x)},onError:(c,d,f,h)=>{if(this.log(`Error loading steering manifest: ${c.code} ${c.text} (${d.url})`),this.stopLoad(),c.code===410){this.enabled=!1,this.log(`Steering manifest ${d.url} no longer available`);return}let p=this.timeToLoad*1e3;if(c.code===429){const m=this.loader;if(typeof m?.getResponseHeader=="function"){const v=m.getResponseHeader("Retry-After");v&&(p=parseFloat(v)*1e3)}this.log(`Steering manifest ${d.url} rate limited`);return}this.scheduleRefresh(this.uri||d.url,p)},onTimeout:(c,d,f)=>{this.log(`Timeout loading steering manifest (${d.url})`),this.scheduleRefresh(this.uri||d.url)}};this.log(`Requesting steering manifest: ${s}`),this.loader.load(i,l,u)}scheduleRefresh(t,n=this.timeToLoad*1e3){this.clearTimeout(),this.reloadTimer=self.setTimeout(()=>{var r;const s=(r=this.hls)==null?void 0:r.media;if(s&&!s.ended){this.loadSteeringManifest(t);return}this.scheduleRefresh(t,this.timeToLoad*1e3)},n)}}function QI(e,t,n,r){e&&Object.keys(t).forEach(s=>{const i=e.filter(o=>o.groupId===s).map(o=>{const a=kn({},o);return a.details=void 0,a.attrs=new Hn(a.attrs),a.url=a.attrs.URI=T5(o.url,o.attrs["STABLE-RENDITION-ID"],"PER-RENDITION-URIS",n),a.groupId=a.attrs["GROUP-ID"]=t[s],a.attrs["PATHWAY-ID"]=r,a});e.push(...i)})}function T5(e,t,n,r){const{HOST:s,PARAMS:i,[n]:o}=r;let a;t&&(a=o?.[t],a&&(e=a));const l=new self.URL(e);
118return s&&!a&&(l.host=s),i&&Object.keys(i).sort().forEach(u=>{u&&l.searchParams.set(u,i[u])}),l.href}class wc extends Ki{constructor(t){super("eme",t.logger),this.hls=void 0,this.config=void 0,this.media=null,this.mediaResolved=void 0,this.keyFormatPromise=null,this.keySystemAccessPromises={},this._requestLicenseFailureCount=0,this.mediaKeySessions=[],this.keyIdToKeySessionPromise={},this.mediaKeys=null,this.setMediaKeysQueue=wc.CDMCleanupPromise?[wc.CDMCleanupPromise]:[],this.bannedKeyIds={},this.onMediaEncrypted=n=>{const{initDataType:r,initData:s}=n,i=`"${n.type}" event: init data type: "${r}"`;if(this.debug(i),s!==null){if(!this.keyFormatPromise){let o=Object.keys(this.keySystemAccessPromises);o.length||(o=rf(this.config));const a=o.map(vx).filter(l=>!!l);this.keyFormatPromise=this.getKeyFormatPromise(a)}this.keyFormatPromise.then(o=>{const a=Dm(o);if(r!=="sinf"||a!==Kn.FAIRPLAY){this.log(`Ignoring "${n.type}" event with init data type: "${r}" for selected key-system ${a}`);return}let l;try{const h=yr(new Uint8Array(s)),p=BE(JSON.parse(h).sinf),m=x6(p);if(!m)throw new Error("'schm' box missing or not cbcs/cenc with schi > tenc");l=new Uint8Array(m.subarray(8,24))}catch(h){this.warn(`${i} Failed to parse sinf: ${h}`);return}const u=_s(l),{keyIdToKeySessionPromise:c,mediaKeySessions:d}=this;let f=c[u];for(let h=0;h<d.length;h++){const p=d[h],m=p.decryptdata;if(!m.keyId)continue;const v=_s(m.keyId);if(mg(l,m.keyId)||m.uri.replace(/-/g,"").indexOf(u)!==-1){if(f=c[v],!f)continue;if(m.pssh)break;delete c[v],m.pssh=new Uint8Array(s),m.keyId=l,f=c[u]=f.then(()=>this.generateRequestWithPreferredKeySession(p,r,s,"encrypted-event-key-match")),f.catch(x=>this.handleError(x));break}}f||this.handleError(new Error(`Key ID ${u} not encountered in playlist. Key-system sessions ${d.length}.`))}).catch(o=>this.handleError(o))}},this.onWaitingForKey=n=>{this.log(`"${n.type}" event`)},this.hls=t,this.config=t.config,this.registerListeners()}destroy(){this.onDestroying(),this.onMediaDetached();const t=this.config;t.requestMediaKeySystemAccessFunc=null,t.licenseXhrSetup=t.licenseResponseCallback=void 0,t.drmSystems=t.drmSystemOptions={},this.hls=this.config=this.keyIdToKeySessionPromise=null,this.onMediaEncrypted=this.onWaitingForKey=null}registerListeners(){this.hls.on(G.MEDIA_ATTACHED,this.onMediaAttached,this),this.hls.on(G.MEDIA_DETACHED,this.onMediaDetached,this),this.hls.on(G.MANIFEST_LOADING,this.onManifestLoading,this),this.hls.on(G.MANIFEST_LOADED,this.onManifestLoaded,this),this.hls.on(G.DESTROYING,this.onDestroying,this)}unregisterListeners(){this.hls.off(G.MEDIA_ATTACHED,this.onMediaAttached,this),this.hls.off(G.MEDIA_DETACHED,this.onMediaDetached,this),this.hls.off(G.MANIFEST_LOADING,this.onManifestLoading,this),this.hls.off(G.MANIFEST_LOADED,this.onManifestLoaded,this),this.hls.off(G.DESTROYING,this.onDestroying,this)}getLicenseServerUrl(t){const{drmSystems:n,widevineLicenseUrl:r}=this.config,s=n?.[t];if(s)return s.licenseUrl;if(t===Kn.WIDEVINE&&r)return r}getLicenseServerUrlOrThrow(t){const n=this.getLicenseServerUrl(t);if(n===void 0)throw new Error(`no license server URL configured for key-system "${t}"`);return n}getServerCertificateUrl(t){const{drmSystems:n}=this.config,r=n?.[t];if(r)return r.serverCertificateUrl;this.log(`No Server Certificate in config.drmSystems["${t}"]`)}attemptKeySystemAccess(t){const n=this.hls.levels,r=(o,a,l)=>!!o&&l.indexOf(o)===a,s=n.map(o=>o.audioCodec).filter(r),i=n.map(o=>o.videoCodec).filter(r);return s.length+i.length===0&&i.push("avc1.42e01e"),new Promise((o,a)=>{const l=u=>{const c=u.shift();this.getMediaKeysPromise(c,s,i).then(d=>o({keySystem:c,mediaKeys:d})).catch(d=>
118{u.length?l(u):d instanceof Js?a(d):a(new Js({type:bt.KEY_SYSTEM_ERROR,details:Re.KEY_SYSTEM_NO_ACCESS,error:d,fatal:!0},d.message))})};l(t)})}requestMediaKeySystemAccess(t,n){const{requestMediaKeySystemAccessFunc:r}=this.config;if(typeof r!="function"){let s=`Configured requestMediaKeySystemAccess is not a function ${r}`;return M6===null&&self.location.protocol==="http:"&&(s=`navigator.requestMediaKeySystemAccess is not available over insecure protocol ${location.protocol}`),Promise.reject(new Error(s))}return r(t,n)}getMediaKeysPromise(t,n,r){var s;const i=qde(t,n,r,this.config.drmSystemOptions||{});let o=this.keySystemAccessPromises[t],a=(s=o)==null?void 0:s.keySystemAccess;if(!a){this.log(`Requesting encrypted media "${t}" key-system access with config: ${Ln(i)}`),a=this.requestMediaKeySystemAccess(t,i);const l=o=this.keySystemAccessPromises[t]={keySystemAccess:a};return a.catch(u=>{this.log(`Failed to obtain access to key-system "${t}": ${u}`)}),a.then(u=>{this.log(`Access for key-system "${u.keySystem}" obtained`);const c=this.fetchServerCertificate(t);this.log(`Create media-keys for "${t}"`);const d=l.mediaKeys=u.createMediaKeys().then(f=>(this.log(`Media-keys created for "${t}"`),l.hasMediaKeys=!0,c.then(h=>h?this.setMediaKeysServerCertificate(f,t,h):f)));return d.catch(f=>{this.error(`Failed to create media-keys for "${t}"}: ${f}`)}),d})}return a.then(()=>o.mediaKeys)}createMediaKeySessionContext({decryptdata:t,keySystem:n,mediaKeys:r}){this.log(`Creating key-system session "${n}" keyId: ${_s(t.keyId||[])} keyUri: ${t.uri}`);const s=r.createSession(),i={decryptdata:t,keySystem:n,mediaKeys:r,mediaKeysSession:s,keyStatus:"status-pending"};return this.mediaKeySessions.push(i),i}renewKeySession(t){const n=t.decryptdata;if(n.pssh){const r=this.createMediaKeySessionContext(t),s=ap(n),i="cenc";this.keyIdToKeySessionPromise[s]=this.generateRequestWithPreferredKeySession(r,i,n.pssh.buffer,"expired")}else this.warn("Could not renew expired session. Missing pssh initData.");this.removeSession(t)}updateKeySession(t,n){const r=t.mediaKeysSession;return this.log(`Updating key-session "${r.sessionId}" for keyId ${_s(t.decryptdata.keyId||[])}
119      } (data length: ${n.byteLength})`),r.update(n)}getSelectedKeySystemFormats(){return Object.keys(this.keySystemAccessPromises).map(t=>({keySystem:t,hasMediaKeys:this.keySystemAccessPromises[t].hasMediaKeys})).filter(({hasMediaKeys:t})=>!!t).map(({keySystem:t})=>vx(t)).filter(t=>!!t)}getKeySystemAccess(t){return this.getKeySystemSelectionPromise(t).then(({keySystem:n,mediaKeys:r})=>this.attemptSetMediaKeys(n,r))}selectKeySystem(t){return new Promise((n,r)=>{this.getKeySystemSelectionPromise(t).then(({keySystem:s})=>{const i=vx(s);i?n(i):r(new Error(`Unable to find format for key-system "${s}"`))}).catch(r)})}selectKeySystemFormat(t){const n=Object.keys(t.levelkeys||{});return this.keyFormatPromise||(this.log(`Selecting key-system from fragment (sn: ${t.sn} ${t.type}: ${t.level}) key formats ${n.join(", ")}`),this.keyFormatPromise=this.getKeyFormatPromise(n)),this.keyFormatPromise}getKeyFormatPromise(t){const n=rf(this.config),r=t.map(Dm).filter(s=>!!s&&n.indexOf(s)!==-1);return this.selectKeySystem(r)}getKeyStatus(t){const{mediaKeySessions:n}=this;for(let r=0;r<n.length;r++){const s=m0e(t,n[r]);if(s)return s}}loadKey(t){const n=t.keyInfo.decryptdata,r=ap(n),s=this.bannedKeyIds[r];if(s||this.getKeyStatus(n)==="internal-error"){const a=eL(s||"internal-error",n);return this.handleError(a,t.frag),Promise.reject(a)}const i=`(keyId: ${r} format: "${n.keyFormat}" method: ${n.method} uri: ${n.uri})`;this.log(`Starting session for key ${i}`);const o=this.keyIdToKeySessionPromise[r];if(!o){const a=this.getKeySystemForKeyPromise(n).then(({keySystem:l,mediaKeys:u})=>(this.throwIfDestroyed(),this.log(`Handle encrypted media sn: ${t.frag.sn} ${t.frag.type}: ${t.frag.level} using key ${i}`),this.attemptSetMediaKeys(l,u).then(()=>(this.throwIfDestroyed(),this.createMediaKeySessionContext({keySystem:l,mediaKeys:u,decryptdata:n}))))).then(l=>{const u="cenc",c=n.pssh?n.pssh.buffer:null;return this.generateRequestWithPreferredKeySession(l,u,c,"playlist-key")});return a.catch(l=>this.handleError(l,t.frag)),this.keyIdToKeySessionPromise[r]=a,a}return o.catch(a=>{if(a instanceof Js){const l=Sn({},a.data);this.getKeyStatus(n)==="internal-error"&&(l.decryptdata=n);const u=new Js(l,a.message);this.handleError(u,t.frag)}}),o}throwIfDestroyed(t="Invalid state"){if(!this.hls)throw new Error("invalid state")}handleError(t,n){if(this.hls)if(t instanceof Js){n&&(t.data.frag=n);const r=t.data.decryptdata;this.error(`${t.message}${r?` (${_s(r.keyId||[])})`:""}`),this.hls.trigger(G.ERROR,t.data)}
vendor: 5,368 bytes, line 119
119else this.error(t.message),this.hls.trigger(G.ERROR,{type:bt.KEY_SYSTEM_ERROR,details:Re.KEY_SYSTEM_NO_KEYS,error:t,fatal:!0})}getKeySystemForKeyPromise(t){const n=ap(t),r=this.keyIdToKeySessionPromise[n];if(!r){const s=Dm(t.keyFormat),i=s?[s]:rf(this.config);return this.attemptKeySystemAccess(i)}return r}getKeySystemSelectionPromise(t){if(t.length||(t=rf(this.config)),t.length===0)throw new Js({type:bt.KEY_SYSTEM_ERROR,details:Re.KEY_SYSTEM_NO_CONFIGURED_LICENSE,fatal:!0},`Missing key-system license configuration options ${Ln({drmSystems:this.config.drmSystems})}`);return this.attemptKeySystemAccess(t)}attemptSetMediaKeys(t,n){if(this.mediaResolved=void 0,this.mediaKeys===n)return Promise.resolve();const r=this.setMediaKeysQueue.slice();this.log(`Setting media-keys for "${t}"`);const s=Promise.all(r).then(()=>this.media?this.media.setMediaKeys(n):new Promise((i,o)=>{this.mediaResolved=()=>{if(this.mediaResolved=void 0,!this.media)return o(new Error("Attempted to set mediaKeys without media element attached"));this.mediaKeys=n,this.media.setMediaKeys(n).then(i).catch(o)}}));return this.mediaKeys=n,this.setMediaKeysQueue.push(s),s.then(()=>{this.log(`Media-keys set for "${t}"`),r.push(s),this.setMediaKeysQueue=this.setMediaKeysQueue.filter(i=>r.indexOf(i)===-1)})}generateRequestWithPreferredKeySession(t,n,r,s){var i;const o=(i=this.config.drmSystems)==null||(i=i[t.keySystem])==null?void 0:i.generateRequest;if(o)try{const p=o.call(this.hls,n,r,t);if(!p)throw new Error("Invalid response from configured generateRequest filter");n=p.initDataType,r=p.initData?p.initData:null,t.decryptdata.pssh=r?new Uint8Array(r):null}catch(p){if(this.warn(p.message),this.hls&&this.hls.config.debug)throw p}if(r===null)return this.log(`Skipping key-session request for "${s}" (no initData)`),Promise.resolve(t);const a=ap(t.decryptdata),l=t.decryptdata.uri;this.log(`Generating key-session request for "${s}" keyId: ${a} URI: ${l} (init data type: ${n} length: ${r.byteLength})`);const u=new VE,c=t._onmessage=p=>{const m=t.mediaKeysSession;if(!m){u.emit("error",new Error("invalid state"));return}const{messageType:v,message:x}=p;this.log(`"${v}" message event for session "${m.sessionId}" message size: ${x.byteLength}`),v==="license-request"||v==="license-renewal"?this.renewLicense(t,x).catch(g=>{u.eventNames().length?u.emit("error",g):this.handleError(g)}):v==="license-release"?t.keySystem===Kn.FAIRPLAY&&this.updateKeySession(t,E2("acknowledged")).then(()=>this.removeSession(t)).catch(g=>this.handleError(g)):this.warn(`unhandled media key message type "${v}"`)},d=(p,m)=>{m.keyStatus=p;let v;p.startsWith("usable")?u.emit("resolved"):p==="internal-error"||p==="output-restricted"||p==="output-downscaled"?v=eL(p,m.decryptdata):p==="expired"?v=new Error(`key expired (keyId: ${a})`):p==="released"?v=new Error("key released"):p==="status-pending"||this.warn(`unhandled key status change "${p}" (keyId: ${a})`),v&&(u.eventNames().length?u.emit("error",v):this.handleError(v))},f=t._onkeystatuseschange=p=>{if(!t.mediaKeysSession){u.emit("error",new Error("invalid state"));return}const v=this.getKeyStatuses(t);if(!Object.keys(v).some(_=>v[_]!=="status-pending"))return;if(v[a]==="expired"){this.log(`Expired key ${Ln(v)} in key-session "${t.mediaKeysSession.sessionId}"`),this.renewKeySession(t);return}let g=v[a];if(g)d(g,t);else{var y;t.keyStatusTimeouts||(t.keyStatusTimeouts={}),(y=t.keyStatusTimeouts)[a]||(y[a]=self.setTimeout(()=>{if(!t.mediaKeysSession||!this.mediaKeys)return;const E=this.getKeyStatus(t.decryptdata);if(E&&E!=="status-pending")return this.log(`No status for keyId ${a} in key-session "${t.mediaKeysSession.sessionId}". Using session key-status ${E} from other session.`),d(E,t);this.log(`key status for ${a} in key-session "${t.mediaKeysSession.sessionId}" timed out after 1000ms`),g="internal-error",d(g,t)},1e3)),this.log(`No status for keyId ${a} (${Ln(v)}).`)}};Cs(t.mediaKeysSession,"message",c),Cs(t.mediaKeysSession,"keystatuseschange",f);const h=new Promise((p,m)=>{u.on("error",m),u.on("resolved",p)});return t.mediaKeysSession.generateRequest(n,r).then(()=>{this.log(`Request generated for key-session "${t.mediaKeysSession.sessionId}" keyId: ${a} URI: ${l}`)}).catch(p=>{throw new Js({type:bt.KEY_SYSTEM_ERROR,details:Re.KEY_SYSTEM_NO_SESSION,error:p,decryptdata:t.decryptdata,fatal:!1},`Error generating key-session request: ${p}`)}).then(()=>h).catch(p=>(u.removeAllListeners(),this.removeSession(t).then(()=>{throw p}))).then(()=>(u.removeAllListeners(),t))}getKeyStatuses(t){const n={};return t.mediaKeysSession.keyStatuses.forEach((r,s)=>{if(typeof s=="string"&&typeof r=="object"){const a=s;s=r,r=a}const i="buffer"in s?new Uint8Array(s.buffer,s.byteOffset,s.byteLength):new Uint8Array(s);t.keySystem===Kn.PLAYREADY&&i.length===16&&O6(i);const o=_s(i);r==="internal-error"&&(this.bannedKeyIds[o]=r),this.log(`key status change "${r}" for keyStatuses keyId: ${o} key-session "${t.mediaKeysSession.sessionId}"`),n[o]=r}),n}fetchServerCertificate(t){const n=this.config,r=n.loader,s=new r(n),i=this.getServerCertificateUrl(t);return i?(this.log(`Fetching server certificate for "${t}"`),new Promise((o,a)=>{const l={responseType:"arraybuffer",url:i},u=n.certLoadPolicy.default,c={loadPolicy:u,timeout:u.maxLoadTimeMs,maxRetry:0,retryDelay:0,maxRetryDelay:0},d={onSuccess:(f,h,p,m)=>{o(f.data)},onError:(f,h,p,m)=>
vendor: 2,953 bytes, line 119
119{a(new Js({type:bt.KEY_SYSTEM_ERROR,details:Re.KEY_SYSTEM_SERVER_CERTIFICATE_REQUEST_FAILED,fatal:!0,networkDetails:p,response:Sn({url:l.url,data:void 0},f)},`"${t}" certificate request failed (${i}). Status: ${f.code} (${f.text})`))},onTimeout:(f,h,p)=>{a(new Js({type:bt.KEY_SYSTEM_ERROR,details:Re.KEY_SYSTEM_SERVER_CERTIFICATE_REQUEST_FAILED,fatal:!0,networkDetails:p,response:{url:l.url,data:void 0}},`"${t}" certificate request timed out (${i})`))},onAbort:(f,h,p)=>{a(new Error("aborted"))}};s.load(l,c,d)})):Promise.resolve()}setMediaKeysServerCertificate(t,n,r){return new Promise((s,i)=>{t.setServerCertificate(r).then(o=>{this.log(`setServerCertificate ${o?"success":"not supported by CDM"} (${r.byteLength}) on "${n}"`),s(t)}).catch(o=>{i(new Js({type:bt.KEY_SYSTEM_ERROR,details:Re.KEY_SYSTEM_SERVER_CERTIFICATE_UPDATE_FAILED,error:o,fatal:!0},o.message))})})}renewLicense(t,n){return this.requestLicense(t,new Uint8Array(n)).then(r=>this.updateKeySession(t,new Uint8Array(r)).catch(s=>{throw new Js({type:bt.KEY_SYSTEM_ERROR,details:Re.KEY_SYSTEM_SESSION_UPDATE_FAILED,decryptdata:t.decryptdata,error:s,fatal:!1},s.message)}))}unpackPlayReadyKeyMessage(t,n){const r=String.fromCharCode.apply(null,new Uint16Array(n.buffer));if(!r.includes("PlayReadyKeyMessage"))return t.setRequestHeader("Content-Type","text/xml; charset=utf-8"),n;const s=new DOMParser().parseFromString(r,"application/xml"),i=s.querySelectorAll("HttpHeader");if(i.length>0){let c;for(let d=0,f=i.length;d<f;d++){var o,a;c=i[d];const h=(o=c.querySelector("name"))==null?void 0:o.textContent,p=(a=c.querySelector("value"))==null?void 0:a.textContent;h&&p&&t.setRequestHeader(h,p)}}const l=s.querySelector("Challenge"),u=l?.textContent;if(!u)throw new Error("Cannot find <Challenge> in key message");return E2(atob(u))}setupLicenseXHR(t,n,r,s){const i=this.config.licenseXhrSetup;return i?Promise.resolve().then(()=>{if(!r.decryptdata)throw new Error("Key removed");return i.call(this.hls,t,n,r,s)}).catch(o=>{if(!r.decryptdata)throw o;return t.open("POST",n,!0),i.call(this.hls,t,n,r,s)}).then(o=>(t.readyState||t.open("POST",n,!0),{xhr:t,licenseChallenge:o||s})):(t.open("POST",n,!0),Promise.resolve({xhr:t,licenseChallenge:s}))}requestLicense(t,n){const r=this.config.keyLoadPolicy.default;return new Promise((s,i)=>{const o=this.getLicenseServerUrlOrThrow(t.keySystem);this.log(`Sending license request to URL: ${o}`);const a=new XMLHttpRequest;a.responseType="arraybuffer",a.onreadystatechange=()=>{if(!this.hls||!t.mediaKeysSession)return i(new Error("invalid state"));if(a.readyState===4)if(a.status===200){this._requestLicenseFailureCount=0;let l=a.response;this.log(`License received ${l instanceof ArrayBuffer?l.byteLength:l}`);const u=this.config.licenseResponseCallback;if(u)try{l=u.call(this.hls,a,o,t)}catch(c){this.error(c)}s(l)}else{const l=r.errorRetry,u=l?l.maxNumRetry:0;if(this._requestLicenseFailureCount++,this._requestLicenseFailureCount>u||a.status>
vendor: 8,582 bytes, line 119
119=400&&a.status<500)i(new Js({type:bt.KEY_SYSTEM_ERROR,details:Re.KEY_SYSTEM_LICENSE_REQUEST_FAILED,decryptdata:t.decryptdata,fatal:!0,networkDetails:a,response:{url:o,data:void 0,code:a.status,text:a.statusText}},`License Request XHR failed (${o}). Status: ${a.status} (${a.statusText})`));else{const c=u-this._requestLicenseFailureCount+1;this.warn(`Retrying license request, ${c} attempts left`),this.requestLicense(t,n).then(s,i)}}},t.licenseXhr&&t.licenseXhr.readyState!==XMLHttpRequest.DONE&&t.licenseXhr.abort(),t.licenseXhr=a,this.setupLicenseXHR(a,o,t,n).then(({xhr:l,licenseChallenge:u})=>{t.keySystem==Kn.PLAYREADY&&(u=this.unpackPlayReadyKeyMessage(l,u)),l.send(u)}).catch(i)})}onDestroying(){this.unregisterListeners(),this._clear()}onMediaAttached(t,n){if(!this.config.emeEnabled)return;const r=n.media;this.media=r,Cs(r,"encrypted",this.onMediaEncrypted),Cs(r,"waitingforkey",this.onWaitingForKey);const s=this.mediaResolved;s?s():this.mediaKeys=r.mediaKeys}onMediaDetached(){const t=this.media;t&&(Us(t,"encrypted",this.onMediaEncrypted),Us(t,"waitingforkey",this.onWaitingForKey),this.media=null,this.mediaKeys=null)}_clear(){var t;this._requestLicenseFailureCount=0,this.keyIdToKeySessionPromise={},this.bannedKeyIds={};const n=this.mediaResolved;if(n&&n(),!this.mediaKeys&&!this.mediaKeySessions.length)return;const r=this.media,s=this.mediaKeySessions.slice();this.mediaKeySessions=[],this.mediaKeys=null,fu.clearKeyUriToKeyIdMap();const i=s.length;wc.CDMCleanupPromise=Promise.all(s.map(o=>this.removeSession(o)).concat((r==null||(t=r.setMediaKeys(null))==null?void 0:t.catch(o=>{this.log(`Could not clear media keys: ${o}`),this.hls&&this.hls.trigger(G.ERROR,{type:bt.OTHER_ERROR,details:Re.KEY_SYSTEM_DESTROY_MEDIA_KEYS_ERROR,fatal:!1,error:new Error(`Could not clear media keys: ${o}`)})}))||Promise.resolve())).catch(o=>{this.log(`Could not close sessions and clear media keys: ${o}`),this.hls&&this.hls.trigger(G.ERROR,{type:bt.OTHER_ERROR,details:Re.KEY_SYSTEM_DESTROY_CLOSE_SESSION_ERROR,fatal:!1,error:new Error(`Could not close sessions and clear media keys: ${o}`)})}).then(()=>{i&&this.log("finished closing key sessions and clearing media keys")})}onManifestLoading(){this._clear()}onManifestLoaded(t,{sessionKeys:n}){if(!(!n||!this.config.emeEnabled)&&!this.keyFormatPromise){const r=n.reduce((s,i)=>(s.indexOf(i.keyFormat)===-1&&s.push(i.keyFormat),s),[]);this.log(`Selecting key-system from session-keys ${r.join(", ")}`),this.keyFormatPromise=this.getKeyFormatPromise(r)}}removeSession(t){const{mediaKeysSession:n,licenseXhr:r,decryptdata:s}=t;if(n){this.log(`Remove licenses and keys and close session "${n.sessionId}" keyId: ${_s(s?.keyId||[])}`),t._onmessage&&(n.removeEventListener("message",t._onmessage),t._onmessage=void 0),t._onkeystatuseschange&&(n.removeEventListener("keystatuseschange",t._onkeystatuseschange),t._onkeystatuseschange=void 0),r&&r.readyState!==XMLHttpRequest.DONE&&r.abort(),t.mediaKeysSession=t.decryptdata=t.licenseXhr=void 0;const i=this.mediaKeySessions.indexOf(t);i>-1&&this.mediaKeySessions.splice(i,1);const{keyStatusTimeouts:o}=t;o&&Object.keys(o).forEach(u=>self.clearTimeout(o[u]));const{drmSystemOptions:a}=this.config;return(Xde(a)?new Promise((u,c)=>{self.setTimeout(()=>c(new Error("MediaKeySession.remove() timeout")),8e3),n.remove().then(u).catch(c)}):Promise.resolve()).catch(u=>{this.log(`Could not remove session: ${u}`),this.hls&&this.hls.trigger(G.ERROR,{type:bt.OTHER_ERROR,details:Re.KEY_SYSTEM_DESTROY_REMOVE_SESSION_ERROR,fatal:!1,error:new Error(`Could not remove session: ${u}`)})}).then(()=>n.close()).catch(u=>{this.log(`Could not close session: ${u}`),this.hls&&this.hls.trigger(G.ERROR,{type:bt.OTHER_ERROR,details:Re.KEY_SYSTEM_DESTROY_CLOSE_SESSION_ERROR,fatal:!1,error:new Error(`Could not close session: ${u}`)})})}return Promise.resolve()}}wc.CDMCleanupPromise=void 0;function ap(e){if(!e)throw new Error("Could not read keyId of undefined decryptdata");if(e.keyId===null)throw new Error("keyId is null");return _s(e.keyId)}function m0e(e,t){if(e.keyId&&t.mediaKeysSession.keyStatuses.has(e.keyId))return t.mediaKeysSession.keyStatuses.get(e.keyId);if(e.matches(t.decryptdata))return t.keyStatus}class Js extends Error{constructor(t,n){super(n),this.data=void 0,t.error||(t.error=new Error(n)),this.data=t,t.err=t.error}}function eL(e,t){const n=e==="output-restricted",r=n?Re.KEY_SYSTEM_STATUS_OUTPUT_RESTRICTED:Re.KEY_SYSTEM_STATUS_INTERNAL_ERROR;return new Js({type:bt.KEY_SYSTEM_ERROR,details:r,fatal:!1,decryptdata:t},n?"HDCP level output restricted":`key status changed to "${e}"`)}class v0e{constructor(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()}setStreamController(t){this.streamController=t}registerListeners(){this.hls.on(G.MEDIA_ATTACHING,this.onMediaAttaching,this),this.hls.on(G.MEDIA_DETACHING,this.onMediaDetaching,this)}unregisterListeners(){this.hls.off(G.MEDIA_ATTACHING,this.onMediaAttaching,this),this.hls.off(G.MEDIA_DETACHING,this.onMediaDetaching,this)}destroy(){this.timer&&clearInterval(this.timer),this.unregisterListeners(),this.isVideoPlaybackQualityAvailable=!1,this.media=null}onMediaAttaching(t,n){const r=this.hls.config;if(r.capLevelOnFPSDrop){const s=n.media instanceof self.HTMLVideoElement?n.media:null;this.media=s,s&&typeof s.getVideoPlaybackQuality=="function"&&(this.isVideoPlaybackQualityAvailable=!0),self.clearInterval(this.timer),this.timer=self.setInterval(this.checkFPSInterval.bind(this),r.fpsDroppedMonitoringPeriod)}}onMediaDetaching(){this.media=null}checkFPS(t,n,r){const s=performance.now();if(n){if(this.lastTime){const i=s-this.lastTime,o=r-this.lastDroppedFrames,a=n-this.lastDecodedFrames,l=1e3*o/i,u=this.hls;if(u.trigger(G.FPS_DROP,{currentDropped:o,currentDecoded:a,totalDroppedFrames:r}),l>0&&o>u.config.fpsDroppedMonitoringThreshold*a){let c=u.currentLevel;u.logger.warn("drop FPS ratio greater than max allowed value for currentLevel: "+c),c>0&&(u.autoLevelCapping===-1||u.autoLevelCapping>=c)&&(c=c-1,u.trigger(G.FPS_DROP_LEVEL_CAPPING,{level:c,droppedLevel:u.currentLevel}),u.autoLevelCapping=c,this.streamController.nextLevelSwitch())}}this.lastTime=s,this.lastDroppedFrames=r,this.lastDecodedFrames=n}}checkFPSInterval(){const t=this.media;if(t)if(this.isVideoPlaybackQualityAvailable){const n=t.getVideoPlaybackQuality();this.checkFPS(t,n.totalVideoFrames,n.droppedVideoFrames)}else this.checkFPS(t,t.webkitDecodedFrameCount,t.webkitDroppedFrameCount)}}function C5(e,t){let n;try{n=new Event("addtrack")}catch{n=document.createEvent("Event"),n.initEvent("addtrack",!1,!1)}n.track=e,t.dispatchEvent(n)}function A5(e,t){const n=e.mode;if(n==="disabled"&&(e.mode="hidden"),e.cues&&!e.cues.getCueById(t.id))try{if(e.addCue(t),!e.cues.getCueById(t.id))throw new Error(`addCue is failed for: ${t}`)}catch(r){En.debug(`[texttrack-utils]: ${r}`);try{const s=new self.TextTrackCue(t.startTime,t.endTime,t.text);s.id=t.id,e.addCue(s)}catch(s){En.debug(`[texttrack-utils]: Legacy TextTrackCue fallback failed: ${s}`)}}n==="disabled"&&(e.mode=n)}function pc(e,t){const n=e.mode;if(n==="disabled"&&(e.mode="hidden"),e.cues)for(let r=e.cues.length;r--;)t&&e.cues[r].removeEventListener("enter",t),e.removeCue(e.cues[r]);n==="disabled"&&(e.mode=n)}function P2(e,t,n,r){const s=e.mode;if(s==="disabled"&&(e.mode="hidden"),e.cues&&e.cues.length>0){const i=y0e(e.cues,t,n);for(let o=0;o<i.length;o++)(!r||r(i[o]))&&e.removeCue(i[o])}s==="disabled"&&(e.mode=s)}function g0e(e,t){if(t<=e[0].startTime)return 0;const n=e.length-1;if(t>e[n].endTime)return-1;let r=0,s=n,i;for(;r<=s;)if(i=Math.floor((s+r)/2),t<e[i].startTime)s=i-1;else if(t>e[i].startTime&&r<n)r=i+1;else return i;return e[r].startTime-t<t-e[s].startTime?r:s}function y0e(e,t,n){const r=[],s=g0e(e,t);if(s>-1)for(let i=s,o=e.length;i<o;i++){const a=e[i];if(a.startTime>=t&&a.endTime<=n)r.push(a);else if(a.startTime>n)return r}return r}function $m(e){const t=[];for(let n=0;n<e.length;n++){const r=e[n];(r.kind==="subtitles"||r.kind==="captions")&&r.label&&t.push(e[n])}return t}class x0e extends WE{constructor(t){super(t,"subtitle-track-controller"),this.media=null,this.tracks=[],this.groupIds=null,this.tracksInGroup=[],this.trackId=-1,this.currentTrack=null,this.selectDefaultTrack=!0,this.queuedDefaultTrack=-1,this.useTextTrackPolling=!1,this.subtitlePollingInterval=-1,this._subtitleDisplay=!0,this.asyncPollTrackChange=()=>this.pollTrackChange(0),this.onTextTracksChanged=()=>
vendor: 2,437 bytes, line 119
119{if(this.useTextTrackPolling||self.clearInterval(this.subtitlePollingInterval),!this.media||!this.hls.config.renderTextTracksNatively)return;let n=null;const r=$m(this.media.textTracks);for(let i=0;i<r.length;i++)if(r[i].mode==="hidden")n=r[i];else if(r[i].mode==="showing"){n=r[i];break}const s=this.findTrackForTextTrack(n);this.subtitleTrack!==s&&this.setSubtitleTrack(s)},this.registerListeners()}destroy(){this.unregisterListeners(),this.tracks.length=0,this.tracksInGroup.length=0,this.currentTrack=null,this.onTextTracksChanged=this.asyncPollTrackChange=null,super.destroy()}get subtitleDisplay(){return this._subtitleDisplay}set subtitleDisplay(t){this._subtitleDisplay=t,this.trackId>-1&&this.toggleTrackModes()}registerListeners(){const{hls:t}=this;t.on(G.MEDIA_ATTACHED,this.onMediaAttached,this),t.on(G.MEDIA_DETACHING,this.onMediaDetaching,this),t.on(G.MANIFEST_LOADING,this.onManifestLoading,this),t.on(G.MANIFEST_PARSED,this.onManifestParsed,this),t.on(G.LEVEL_LOADING,this.onLevelLoading,this),t.on(G.LEVEL_SWITCHING,this.onLevelSwitching,this),t.on(G.SUBTITLE_TRACK_LOADED,this.onSubtitleTrackLoaded,this),t.on(G.ERROR,this.onError,this)}unregisterListeners(){const{hls:t}=this;t.off(G.MEDIA_ATTACHED,this.onMediaAttached,this),t.off(G.MEDIA_DETACHING,this.onMediaDetaching,this),t.off(G.MANIFEST_LOADING,this.onManifestLoading,this),t.off(G.MANIFEST_PARSED,this.onManifestParsed,this),t.off(G.LEVEL_LOADING,this.onLevelLoading,this),t.off(G.LEVEL_SWITCHING,this.onLevelSwitching,this),t.off(G.SUBTITLE_TRACK_LOADED,this.onSubtitleTrackLoaded,this),t.off(G.ERROR,this.onError,this)}onMediaAttached(t,n){this.media=n.media,this.media&&(this.queuedDefaultTrack>-1&&(this.subtitleTrack=this.queuedDefaultTrack,this.queuedDefaultTrack=-1),this.useTextTrackPolling=!(this.media.textTracks&&"onchange"in this.media.textTracks),this.useTextTrackPolling?this.pollTrackChange(500):this.media.textTracks.addEventListener("change",this.asyncPollTrackChange))}pollTrackChange(t){self.clearInterval(this.subtitlePollingInterval),this.subtitlePollingInterval=self.setInterval(this.onTextTracksChanged,t)}onMediaDetaching(t,n){const r=this.media;if(!r)return;const s=!!n.transferMedia;if(self.clearInterval(this.subtitlePollingInterval),this.useTextTrackPolling||r.textTracks.removeEventListener("change",this.asyncPollTrackChange),this.trackId>-1&&(this.queuedDefaultTrack=this.trackId),this.subtitleTrack=-1,this.media=null,s)return;
vendor: 2,246 bytes, line 119
119$m(r.textTracks).forEach(o=>{pc(o)})}onManifestLoading(){this.tracks=[],this.groupIds=null,this.tracksInGroup=[],this.trackId=-1,this.currentTrack=null,this.selectDefaultTrack=!0}onManifestParsed(t,n){this.tracks=n.subtitleTracks}onSubtitleTrackLoaded(t,n){const{id:r,groupId:s,details:i}=n,o=this.tracksInGroup[r];if(!o||o.groupId!==s){this.warn(`Subtitle track with id:${r} and group:${s} not found in active group ${o?.groupId}`);return}const a=o.details;o.details=n.details,this.log(`Subtitle track ${r} "${o.name}" lang:${o.lang} group:${s} loaded [${i.startSN}-${i.endSN}]`),r===this.trackId&&this.playlistLoaded(r,n,a)}onLevelLoading(t,n){this.switchLevel(n.level)}onLevelSwitching(t,n){this.switchLevel(n.level)}switchLevel(t){const n=this.hls.levels[t];if(!n)return;const r=n.subtitleGroups||null,s=this.groupIds;let i=this.currentTrack;if(!r||s?.length!==r?.length||r!=null&&r.some(o=>s?.indexOf(o)===-1)){this.groupIds=r,this.trackId=-1,this.currentTrack=null;const o=this.tracks.filter(c=>!r||r.indexOf(c.groupId)!==-1);if(o.length)this.selectDefaultTrack&&!o.some(c=>c.default)&&(this.selectDefaultTrack=!1),o.forEach((c,d)=>{c.id=d});else if(!i&&!this.tracksInGroup.length)return;this.tracksInGroup=o;const a=this.hls.config.subtitlePreference;if(!i&&a){this.selectDefaultTrack=!1;const c=Oo(a,o);if(c>-1)i=o[c];else{const d=Oo(a,this.tracks);i=this.tracks[d]}}let l=this.findTrackId(i);l===-1&&i&&(l=this.findTrackId(null));const u={subtitleTracks:o};this.log(`Updating subtitle tracks, ${o.length} track(s) found in "${r?.join(",")}" group-id`),this.hls.trigger(G.SUBTITLE_TRACKS_UPDATED,u),l!==-1&&this.trackId===-1&&this.setSubtitleTrack(l)}}findTrackId(t){const n=this.tracksInGroup,r=this.selectDefaultTrack;for(let s=0;s<n.length;s++){const i=n[s];if(!(r&&!i.default||!r&&!t)&&(!t||du(i,t)))return s}if(t){for(let s=0;s<n.length;s++){const i=n[s];if(mh(t.attrs,i.attrs,["LANGUAGE","ASSOC-LANGUAGE","CHARACTERISTICS"]))return s}for(let s=0;s<n.length;s++){const i=n[s];if(mh(t.attrs,i.attrs,["LANGUAGE"]))return s}}return-1}findTrackForTextTrack(t){if(t){const n=this.tracksInGroup;for(let r=0;r<n.length;r++){const s=n[r];if(k2(s,t))return r}}return-1}onError(t,n){n.fatal||!n.context||n.context.type===Yt.SUBTITLE_TRACK&&n.c
vendor: 22,958 bytes, lines 119-120
119ontext.id===this.trackId&&(!this.groupIds||this.groupIds.indexOf(n.context.groupId)!==-1)&&this.checkRetry(n)}get allSubtitleTracks(){return this.tracks}get subtitleTracks(){return this.tracksInGroup}get subtitleTrack(){return this.trackId}set subtitleTrack(t){this.selectDefaultTrack=!1,this.setSubtitleTrack(t)}setSubtitleOption(t){if(this.hls.config.subtitlePreference=t,t){if(t.id===-1)return this.setSubtitleTrack(-1),null;const n=this.allSubtitleTracks;if(this.selectDefaultTrack=!1,n.length){const r=this.currentTrack;if(r&&du(t,r))return r;const s=Oo(t,this.tracksInGroup);if(s>-1){const i=this.tracksInGroup[s];return this.setSubtitleTrack(s),i}else{if(r)return null;{const i=Oo(t,n);if(i>-1)return n[i]}}}}return null}loadPlaylist(t){super.loadPlaylist(),this.shouldLoadPlaylist(this.currentTrack)&&this.scheduleLoading(this.currentTrack,t)}loadingPlaylist(t,n){super.loadingPlaylist(t,n);const r=t.id,s=t.groupId,i=this.getUrlWithDirectives(t.url,n),o=t.details,a=o?.age;this.log(`Loading subtitle ${r} "${t.name}" lang:${t.lang} group:${s}${n?.msn!==void 0?" at sn "+n.msn+" part "+n.part:""}${a&&o.live?" age "+a.toFixed(1)+(o.type&&" "+o.type||""):""} ${i}`),this.hls.trigger(G.SUBTITLE_TRACK_LOADING,{url:i,id:r,groupId:s,deliveryDirectives:n||null,track:t})}toggleTrackModes(){const{media:t}=this;if(!t)return;const n=$m(t.textTracks),r=this.currentTrack;let s;if(r&&(s=n.filter(i=>k2(r,i))[0],s||this.warn(`Unable to find subtitle TextTrack with name "${r.name}" and language "${r.lang}"`)),[].slice.call(n).forEach(i=>{i.mode!=="disabled"&&i!==s&&(i.mode="disabled")}),s){const i=this.subtitleDisplay?"showing":"hidden";s.mode!==i&&(s.mode=i)}}setSubtitleTrack(t){const n=this.tracksInGroup;if(!this.media){this.queuedDefaultTrack=t;return}if(t<-1||t>=n.length||!lt(t)){this.warn(`Invalid subtitle track id: ${t}`);return}this.selectDefaultTrack=!1;const r=this.currentTrack,s=n[t]||null;if(this.trackId=t,this.currentTrack=s,this.toggleTrackModes(),!s){this.hls.trigger(G.SUBTITLE_TRACK_SWITCH,{id:t});return}const i=!!s.details&&!s.details.live;if(t===this.trackId&&s===r&&i)return;this.log(`Switching to subtitle-track ${t}`+(s?` "${s.name}" lang:${s.lang} group:${s.groupId}`:""));const{id:o,groupId:a="",name:l,type:u,url:c}=s;this.hls.trigger(G.SUBTITLE_TRACK_SWITCH,{id:o,groupId:a,name:l,type:u,url:c});const d=this.switchParams(s.url,r?.details,s.details);this.loadPlaylist(d)}}function b0e(){try{return crypto.randomUUID()}catch{try{const t=URL.createObjectURL(new Blob),n=t.toString();return URL.revokeObjectURL(t),n.slice(n.lastIndexOf("/")+1)}catch{let n=new Date().getTime();return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,s=>{const i=(n+Math.random()*16)%16|0;return n=Math.floor(n/16),(s=="x"?i:i&3|8).toString(16)})}}}function Tf(e){let t=5381,n=e.length;for(;n;)t=t*33^e.charCodeAt(--n);return(t>>>0).toString()}const Tc=.025;let xg=(function(e){return e[e.Point=0]="Point",e[e.Range=1]="Range",e})({});function _0e(e,t,n){return`${e.identifier}-${n+1}-${Tf(t)}`}class S0e{constructor(t,n){this.base=void 0,this._duration=null,this._timelineStart=null,this.appendInPlaceDisabled=void 0,this.appendInPlaceStarted=void 0,this.dateRange=void 0,this.hasPlayed=!1,this.cumulativeDuration=0,this.resumeOffset=NaN,this.playoutLimit=NaN,this.restrictions={skip:!1,jump:!1},this.snapOptions={out:!1,in:!1},this.assetList=[],this.assetListLoader=void 0,this.assetListResponse=null,this.resumeAnchor=void 0,this.error=void 0,this.resetOnResume=void 0,this.base=n,this.dateRange=t,this.setDateRange(t)}setDateRange(t){this.dateRange=t,this.resumeOffset=t.attr.optionalFloat("X-RESUME-OFFSET",this.resumeOffset),this.playoutLimit=t.attr.optionalFloat("X-PLAYOUT-LIMIT",this.playoutLimit),this.restrictions=t.attr.enumeratedStringList("X-RESTRICT",this.restrictions),this.snapOptions=t.attr.enumeratedStringList("X-SNAP",this.snapOptions)}reset(){var t;this.appendInPlaceStarted=!1,(t=this.assetListLoader)==null||t.destroy(),this.assetListLoader=void 0,this.supplementsPrimary||(this.assetListResponse=null,this.assetList=[],this._duration=null)}isAssetPastPlayoutLimit(t){var n;if(t>0&&t>=this.assetList.length)return!0;const r=this.playoutLimit;return t<=0||isNaN(r)?!1:r===0?!0:(((n=this.assetList[t])==null?void 0:n.startOffset)||0)>r}findAssetIndex(t){return this.assetList.indexOf(t)}get identifier(){return this.dateRange.id}get startDate(){return this.dateRange.startDate}get startTime(){const t=this.dateRange.startTime;if(this.snapOptions.out){const n=this.dateRange.tagAnchor;if(n)return Tx(t,n)}return t}get startOffset(){return this.cue.pre?0:this.startTime}get startIsAligned(){if(this.startTime===0||this.snapOptions.out)return!0;const t=this.dateRange.tagAnchor;if(t){const n=this.dateRange.startTime,r=Tx(n,t);return n-r<.1}return!1}get resumptionOffset(){const t=this.resumeOffset,n=lt(t)?t:this.duration;return this.cumulativeDuration+n}get resumeTime(){const t=this.startOffset+this.resumptionOffset;if(this.snapOptions.in){const n=this.resumeAnchor;if(n)return Tx(t,n)}return t}get appendInPlace(){return this.appendInPlaceStarted?!0:this.appendInPlaceDisabled?!1:!!(!this.cue.once&&!this.cue.pre&&this.startIsAligned&&(isNaN(this.playoutLimit)&&isNaN(this.resumeOffset)||this.resumeOffset&&this.duration&&Math.abs(this.resumeOffset-this.duration)<Tc))}set appendInPlace(t){if(this.appendInPlaceStarted){this.resetOnResume=!t;return}this.appendInPlaceDisabled=!t}get timelineStart(){return this._timelineStart!==null?this._timelineStart:this.startTime}set timelineStart(t){this._timelineStart=t}get duration(){const t=this.playoutLimit;let n;return this._duration!==null?n=this._duration:this.dateRange.duration?n=this.dateRange.duration:n=this.dateRange.plannedDuration||0,!isNaN(t)&&t<n&&(n=t),n}set duration(t){this._duration=t}get cue(){return this.dateRange.cue}get timelineOccupancy(){return this.dateRange.attr["X-TIMELINE-OCCUPIES"]==="RANGE"?xg.Range:xg.Point}get supplementsPrimary(){return this.dateRange.attr["X-TIMELINE-STYLE"]==="PRIMARY"}get contentMayVary(){return this.dateRange.attr["X-CONTENT-MAY-VARY"]!=="NO"}get assetUrl(){return this.dateRange.attr["X-ASSET-URI"]}get assetListUrl(){return this.dateRange.attr["X-ASSET-LIST"]}get baseUrl(){return this.base.url}get assetListLoaded(){return this.assetList.length>0||this.assetListResponse!==null}toString(){return E0e(this)}}function Tx(e,t){return e-t.start<t.duration/2&&!(Math.abs(e-(t.start+t.duration))<Tc)?t.start:t.start+t.duration}function k5(e,t,n){const r=new self.URL(e,n);return r.protocol!=="data:"&&r.searchParams.set("_HLS_primary_id",t),r}function Cx(e,t){for(;(n=e.assetList[++t])!=null&&n.error;)var n;return t}function E0e(e){return`["${e.identifier}" ${e.cue.pre?"<pre>":e.cue.post?"<post>":""}${e.timelineStart.toFixed(2)}-${e.resumeTime.toFixed(2)}]`}function uc(e){const t=e.timelineStart,n=e.duration||0;return`["${e.identifier}" ${t.toFixed(2)}-${(t+n).toFixed(2)}]`}class w0e{constructor(t,n,r,s){this.hls=void 0,this.interstitial=void 0,this.assetItem=void 0,this.tracks=null,this.hasDetails=!1,this.mediaAttached=null,this._currentTime=void 0,this._bufferedEosTime=void 0,this.checkPlayout=()=>{this.reachedPlayout(this.currentTime)&&this.hls&&this.hls.trigger(G.PLAYOUT_LIMIT_REACHED,{})};const i=this.hls=new t(n);this.interstitial=r,this.assetItem=s;const o=()=>{this.hasDetails=!0};i.once(G.LEVEL_LOADED,o),i.once(G.AUDIO_TRACK_LOADED,o),i.once(G.SUBTITLE_TRACK_LOADED,o),i.on(G.MEDIA_ATTACHING,(a,{media:l})=>{this.removeMediaListeners(),this.mediaAttached=l,this.interstitial.playoutLimit&&(l.addEventListener("timeupdate",this.checkPlayout),this.appendInPlace&&i.on(G.BUFFER_APPENDED,()=>{const c=this.bufferedEnd;this.reachedPlayout(c)&&(this._bufferedEosTime=c,i.trigger(G.BUFFERED_TO_END,void 0))}))})}get appendInPlace(){return this.interstitial.appendInPlace}loadSource(){const t=this.hls;if(t)if(t.url)t.levels.length&&!t.started&&t.startLoad(-1,!0);else{let n=this.assetItem.uri;try{n=k5(n,t.config.primarySessionId||"").href}catch{}t.loadSource(n)}}bufferedInPlaceToEnd(t){var n;if(!this.appendInPlace)return!1;if((n=this.hls)!=null&&n.bufferedToEnd)return!0;if(!t)return!1;const r=Math.min(this._bufferedEosTime||1/0,this.duration),s=this.timelineOffset,i=Ft.bufferInfo(t,s,0);return this.getAssetTime(i.end)>=r-.02}reachedPlayout(t){const r=this.interstitial.playoutLimit;return this.startOffset+t>=r}get destroyed(){var t;return!((t=this.hls)!=null&&t.userConfig)}get assetId(){return this.assetItem.identifier}get interstitialId(){return this.assetItem.parentIdentifier}get media(){var t;return((t=this.hls)==null?void 0:t.media)||null}get bufferedEnd(){const t=this.media||this.mediaAttached;if(!t)return this._bufferedEosTime?this._bufferedEosTime:this.currentTime;const n=Ft.bufferInfo(t,t.currentTime,.001);return this.getAssetTime(n.end)}get currentTime(){const t=this.media||this.mediaAttached;return t?this.getAssetTime(t.currentTime):this._currentTime||0}get duration(){const t=this.assetItem.duration;if(!t)return 0;const n=this.interstitial.playoutLimit;if(n){const r=n-this.startOffset;if(r>0&&r<t)return r}return t}get remaining(){const t=this.duration;return t?Math.max(0,t-this.currentTime):0}get startOffset(){return this.assetItem.startOffset}get timelineOffset(){var t;return((t=this.hls)==null?void 0:t.config.timelineOffset)||0}set timelineOffset(t){const n=this.timelineOffset;if(t!==n){const r=t-n;if(Math.abs(r)>1/9e4&&this.hls){if(this.hasDetails)throw new Error("Cannot set timelineOffset after playlists are loaded");this.hls.config.timelineOffset=t}}}getAssetTime(t){const n=this.timelineOffset,r=this.duration;return Math.min(Math.max(0,t-n),r)}removeMediaListeners(){const t=this.mediaAttached;t&&(this._currentTime=t.currentTime,this.bufferSnapShot(),t.removeEventListener("timeupdate",this.checkPlayout))}bufferSnapShot(){if(this.mediaAttached){var t;(t=this.hls)!=null&&t.bufferedToEnd&&(this._bufferedEosTime=this.bufferedEnd)}}destroy(){this.removeMediaListeners(),this.hls&&this.hls.destroy(),this.hls=null,this.tracks=this.mediaAttached=this.checkPlayout=null}attachMedia(t){var n;this.loadSource(),(n=this.hls)==null||n.attachMedia(t)}detachMedia(){var t;this.removeMediaListeners(),this.mediaAttached=null,(t=this.hls)==null||t.detachMedia()}resumeBuffering(){var t;(t=this.hls)==null||t.resumeBuffering()}pauseBuffering(){var t;(t=this.hls)==null||t.pauseBuffering()}transferMedia(){var t;return this.bufferSnapShot(),((t=this.hls)==null?void 0:t.transferMedia())||null}resetDetails(){const t=this.hls;if(t&&this.hasDetails){t.stopLoad();const n=r=>delete r.details;t.levels.forEach(n),t.allAudioTracks.forEach(n),t.allSubtitleTracks.forEach(n),this.hasDetails=!1}}on(t,n,r){var s;(s=this.hls)==null||s.on(t,n)}once(t,n,r){var s;(s=this.hls)==null||s.once(t,n)}off(t,n,r){var s;(s=this.hls)==null||s.off(t,n)}toString(){var t;return`HlsAssetPlayer: ${uc(this.assetItem)} ${(t=this.hls)==null?void 0:t.sessionId} ${this.appendInPlace?"append-in-place":""}`}}const tL=.033;class T0e extends Ki{constructor(t,n){super("interstitials-sched",n),this.onScheduleUpdate=void 0,this.eventMap={},this.events=null,this.items=null,this.durations={primary:0,playout:0,integrated:0},this.onScheduleUpdate=t}destroy(){this.reset(),this.onScheduleUpdate=null}reset(){this.eventMap={},this.setDurations(0,0,0),this.events&&this.events.forEach(t=>t.reset()),this.events=this.items=null}resetErrorsInRange(t,n){return this.events?this.events.reduce((r,s)=>t<=s.startOffset&&n>s.startOffset?(delete s.error,r+1):r,0):0}get duration(){const t=this.items;return t?t[t.length-1].end:0}get length(){return this.items?this.items.length:0}getEvent(t){return t&&this.eventMap[t]||null}hasEvent(t){return t in this.eventMap}findItemIndex(t,n){if(t.event)return this.findEventIndex(t.event.identifier);let r=-1;t.nextEvent?r=this.findEventIndex(t.nextEvent.identifier)-1:t.previousEvent&&(r=this.findEventIndex(t.previousEvent.identifier)+1);const s=this.items;if(s)for(s[r]||(n===void 0&&(n=t.start),r=this.findItemIndexAtTime(n));r>=0&&(i=s[r])!=null&&i.event;){var i;r--}return r}findItemIndexAtTime(t,n){const r=this.items;if(r)for(let s=0;s<r.length;s++){let i=r[s];if(n&&n!=="primary"&&(i=i[n]),t===i.start||t>i.start&&t<i.end)return s}return-1}findJumpRestrictedIndex(t,n){const r=this.items;if(r)for(let s=t;s<=n&&r[s];s++){const i=r[s].event;if(i!=null&&i.restrictions.jump&&!i.appendInPlace)return s}return-1}findEventIndex(t){const n=this.items;if(n)for(let s=n.length;s--;){var r;if(((r=n[s].event)==null?void 0:r.identifier)===t)return s}return-1}findAssetIndex(t,n){const r=t.assetList,s=r.length;if(s>1)for(let i=0;i<s;i++){const o=r[i];if(!o.error){const a=o.timelineStart;if(n===a||n>a&&(n<a+(o.duration||0)||i===s-1))return i}}return 0}get assetIdAtEnd(){var t;const n=(t=this.items)==null||(t=t[this.length-1])==null?void 0:t.event;if(n){const r=n.assetList,s=r[r.length-1];if(s)return s.identifier}return null}parseInterstitialDateRanges(t,n){const r=t.main.details,{dateRanges:s}=r,i=this.events,o=this.parseDateRanges(s,{url:r.url},n),a=Object.keys(s),l=i?i.filter(u=>!a.includes(u.identifier)):[];o.length&&o.sort((u,c)=>{const d=u.cue.pre,f=u.cue.post,h=c.cue.pre,p=c.cue.post;if(d&&!h)return-1;if(h&&!d||f&&!p)return 1;if(p&&!f)return-1;if(!d&&!h&&!f&&!p){const m=u.startTime,v=c.startTime;if(m!==v)return m-v}return u.dateRange.tagOrder-c.dateRange.tagOrder}),this.events=o,l.forEach(u=>{this.removeEvent(u)}),this.updateSchedule(t,l)}updateSchedule(t,n=[],r=!1){const s=this.events||[];if(s.length||n.length||this.length<2){const i=this.items,o=this.parseSchedule(s,t);(r||n.length||i?.length!==o.length||o.some((l,u)=>Math.abs(l.playout.start-i[u].playout.start)>.005||Math.abs(l.playout.end-i[u].playout.end)>.005))&&(this.items=o,this.onScheduleUpdate(n,i))}}parseDateRanges(t,n,r){const s=[],i=Object.keys(t);for(let o=0;o<i.length;o++){const a=i[o],l=t[a];if(l.isInterstitial){let u=this.eventMap[a];u?u.setDateRange(l):(u=new S0e(l,n),this.eventMap[a]=u,r===!1&&(u.appendInPlace=r)),s.push(u)}}return s}parseSchedule(t,n){const r=[],s=n.main.details,i=s.live?1/0:s.edge;let o=0;if(t=t.filter(l=>!l.error&&!(l.cue.once&&l.hasPlayed)),t.length){this.resolveOffsets(t,n);let l=0,u=0;if(t.forEach((c,d)=>{const f=c.cue.pre,h=c.cue.post,p=t[d-1]||null,m=c.appendInPlace,v=h?i:c.startOffset,x=c.duration,g=c.timelineOccupancy===xg.Range?x:0,y=c.resumptionOffset,_=p?.startTime===v,E=v+c.cumulativeDuration;let w=m?E+x:v+y;if(f||!h&&v<=0){const C=u;u+=g,c.timelineStart=E;const I=o;o+=x,r.push({event:c,start:E,end:w,playout:{start:I,end:o},integrated:{start:C,end:u}})}else if(v<=i){if(!_){const k=v-l;if(k>tL){const $=l,R=u;u+=k;const D=o;o+=k;const O={previousEvent:t[d-1]||null,nextEvent:c,start:$,end:$+k,playout:{start:D,end:o},integrated:{start:R,end:u}};r.push(O)}else k>0&&p&&(p.cumulativeDuration+=k,r[r.length-1].end=v)}h&&(w=E),c.timelineStart=E;const C=u;u+=g;const I=o;o+=x,r.push({event:c,start:E,end:w,playout:{start:I,end:o},integrated:{start:C,end:u}})}else return;const T=c.resumeTime;h||T>i?l=i:l=T}),l<i){var a;const c=l,d=u,f=i-l;u+=f;const h=o;o+=f,r.push({previousEvent:((a=r[r.length-1])==null?void 0:a.event)||null,nextEvent:null,start:l,end:c+f,playout:{start:h,end:o},integrated:{start:d,end:u}})}this.setDurations(i,o,u)}else r.push({previousEvent:null,nextEvent:null,start:0,end:i,playout:{start:0,end:i},integrated:{start:0,end:i}}),this.setDurations(i,i,i);return r}setDurations(t,n,r){this.durations={primary:t,playout:n,integrated:r}}resolveOffsets(t,n){const r=n.main.details,s=r.live?1/0:r.edge;let i=0,o=-1;t.forEach((a,l)=>{const u=a.cue.pre,c=a.cue.post,d=u?0:c?s:a.startTime;this.updateAssetDurations(a),o===d?a.cumulativeDuration=i:(i=0,o=d),!c&&a.snapOptions.in&&(a.resumeAnchor=Au(null,r.fragments,a.startOffset+a.resumptionOffset,0,0)||void 0),a.appendInPlace&&!a.appendInPlaceStarted&&(this.primaryCanResumeInPlaceAt(a,n)||(a.appendInPlace=!1)),!a.appendInPlace&&l+1<t.length&&t[l+1].startTime-t[l].resumeTime<tL&&(t[l+1].appendInPlace=!1,t[l+1].appendInPlace&&this.warn(`Could not change append strategy for abutting event ${a}`));const h=lt(a.resumeOffset)?a.resumeOffset:a.duration;i+=h})}primaryCanResumeInPlaceAt(t,n){const r=t.resumeTime,s=t.startTime+t.resumptionOffset;return Math.abs(r-s)>Tc?(this.log(`"${t.identifier}" resumption ${r} not aligned with estimated timeline end ${s}`),!1):!Object.keys(n).some(o=>{const a=n[o].details,l=a.edge;if(r>=l)return this.log(`"${t.identifier}" resumption ${r} past ${o} playlist end ${l}`),!1;const u=Au(null,a.fragments,r);if(!u)return this.log(`"${t.identifier}" resumption ${r} does not align with any fragments in ${o} playlist (${a.fragStart}-${a.fragmentEnd})`),!0;const c=o==="audio"?.175:0;return Math.abs(u.start-r)<Tc+c||Math.abs(u.end-r)<Tc+c?!1:(this.log(`"${t.identifier}" resumption ${r} not aligned with ${o} fragment bounds (${u.start}-${u.end} sn: ${u.sn} cc: ${u.cc})`),!0)})}updateAssetDurations(t){if(!t.assetListLoaded)return;const n=t.timelineStart;let r=0,s=!1,i=!1;for(let o=0;o<t.assetList.length;o++){const a=t.assetList[o],l=n+r;a.startOffset=r,a.timelineStart=l,s||(s=a.duration===null),i||(i=!!a.error);const u=a.error?0:a.duration||0;r+=u}s&&!i?t.duration=Math.max(r,t.duration):t.duration=r}removeEvent(t){t.reset(),delete this.eventMap[t.identifier]}}function Zi(e){return`[${e.event?'"'+e.event.identifier+'"':"primary"}: ${e.start.toFixed(2)}-${e.end.toFixed(2)}]`}class C0e{constructor(t){this.hls=void 0,this.hls=t}destroy(){this.hls=null}loadAssetList(t,n){const r=t.assetListUrl;let s;try{s=k5(r,this.hls.sessionId,t.baseUrl)}catch(f){const h=this.assignAssetListError(t,Re.ASSET_LIST_LOAD_ERROR,f,r);this.hls.trigger(G.ERROR,h);return}n&&s.protocol!=="data:"&&s.searchParams.set("_HLS_start_offset",""+n);const i=this.hls.config,o=i.loader,a=new o(i),l={responseType:"json",url:s.href},u=i.interstitialAssetListLoadPolicy.default,c={loadPolicy:u,timeout:u.maxLoadTimeMs,maxRetry:0,retryDelay:0,maxRetryDelay:0},d={onSuccess:(f,h,p,m)=>{const v=f.data,x=v?.ASSETS;if(!Array.isArray(x)){const g=this.assignAssetListError(t,Re.ASSET_LIST_PARSING_ERROR,new Error("Invalid interstitial asset list"),p.url,h,m);this.hls.trigger(G.ERROR,g);return}t.assetListResponse=v,this.hls.trigger(G.ASSET_LIST_LOADED,{event:t,assetListResponse:v,networkDetails:m})},onError:(f,h,p,m)=>{const v=this.assignAssetListError(t,Re.ASSET_LIST_LOAD_ERROR,new Error(`Error loading X-ASSET-LIST: HTTP status ${f.code} ${f.text} (${h.url})`),h.url,m,p);this.hls.trigger(G.ERROR,v)},onTimeout:(f,h,p)=>{const m=this.assignAssetListError(t,Re.ASSET_LIST_LOAD_TIMEOUT,new Error(`Timeout loading X-ASSET-LIST (${h.url})`),h.url,f,p);this.hls.trigger(G.ERROR,m)}};return a.load(l,c,d),this.hls.trigger(G.ASSET_LIST_LOADING,{event:t}),a}assignAssetListError(t,n,r,s,i,o){return t.error=r,{type:bt.NETWORK_ERROR,details:n,fatal:!1,interstitial:t,url:s,error:r,networkDetails:o,stats:i}}}function nL(e){var t;e==null||(t=e.play())==null||t.catch(()=>{})}function lp(e,t){return`[${e}] Advancing timeline position to ${t}`}class A0e extends Ki{constructor(t,n){super("interstitials",t.logger),this.HlsPlayerClass=void 0,this.hls=void 0,this.assetListLoader=void 0,this.mediaSelection=null,this.altSelection=null,this.media=null,this.detachedData=null,this.requiredTracks=null,this.manager=null,this.playerQueue=[],this.bufferedPos=-1,this.timelinePos=-1,this.schedule=void 0,this.playingItem=null,this.bufferingItem=null,this.waitingItem=null,this.endedItem=null,this.playingAsset=null,this.endedAsset=null,this.bufferingAsset=null,this.shouldPlay=!1,this.onPlay=()=>{this.shouldPlay=!0},this.onPause=()=>{this.shouldPlay=!1},this.onSeeking=()=>{const r=this.currentTime;if(r===void 0||this.playbackDisabled||!this.schedule)return;const s=r-this.timelinePos;if(Math.abs(s)<1/7056e5)return;const o=s<=-.01;this.timelinePos=r,this.bufferedPos=r;const a=this.playingItem;if(!a){this.checkBuffer();return}if(o&&this.schedule.resetErrorsInRange(r,r-s)&&this.updateSchedule(!0),this.checkBuffer(),o&&r<a.start||r>=a.end){var l;const h=this.findItemIndex(a);let p=this.schedule.findItemIndexAtTime(r);if(p===-1&&(p=h+(o?-1:1),this.log(`seeked ${o?"back ":""}to position not covered by schedule ${r} (resolving from ${h} to ${p})`)),!this.isInterstitial(a)&&(l=this.media)!=null&&l.paused&&(this.shouldPlay=!1),!o&&p>h){const m=this.schedule.findJumpRestrictedIndex(h+1,p);if(m>h){this.setSchedulePosition(m);return}}this.setSchedulePosition(p);return}const u=this.playingAsset;if(!u){if(this.playingLastItem&&this.isInterstitial(a)){const h=a.event.assetList[0];h&&(this.endedItem=this.playingItem,this.playingItem=null,this.setScheduleToAssetAtTime(r,h))}return}const c=u.timelineStart,d=u.duration||0;if(o&&r<c||r>=c+d){var f;(f=a.event)!=null&&f.appendInPlace&&(this.clearInterstitial(a.event,a),this.flushFrontBuffer(r)),this.setScheduleToAssetAtTime(r,u)}},this.onTimeupdate=()=>{const r=this.currentTime;if(r===void 0||this.playbackDisabled)return;if(r>this.timelinePos)this.timelinePos=r,r>this.bufferedPos&&this.checkBuffer();else return;const s=this.playingItem;if(!s||this.playingLastItem)return;if(r>=s.end){this.timelinePos=s.end;const a=this.findItemIndex(s);this.setSchedulePosition(a+1)}const i=this.playingAsset;if(!i)return;const o=i.timelineStart+(i.duration||0);r>=o&&this.setScheduleToAssetAtTime(r,i)},this.onScheduleUpdate=(r,s)=>{const i=this.schedule;if(!i)return;const o=this.playingItem,a=i.events||[],l=i.items||[],u=i.durations,c=r.map(m=>m.identifier),d=!!(a.length||c.length);(d||s)&&this.log(`INTERSTITIALS_UPDATED (${a.length}): ${a}
120Schedule: ${l.map(m=>Zi(m))} pos: ${this.timelinePos}`),c.length&&this.log(`Removed events ${c}`);let f=null,h=null;o&&(f=this.updateItem(o,this.timelinePos),this.itemsMatch(o,f)?this.playingItem=f:this.waitingItem=this.endedItem=null),this.waitingItem=this.updateItem(this.waitingItem),this.endedItem=this.updateItem(this.endedItem);const p=this.bufferingItem;if(p&&(h=this.updateItem(p,this.bufferedPos),this.itemsMatch(p,h)?this.bufferingItem=h:p.event&&(this.bufferingItem=this.playingItem,this.clearInterstitial(p.event,null))),r.forEach(m=>{m.assetList.forEach(v=>{this.clearAssetPlayer(v.identifier,null)})}),this.playerQueue.forEach(m=>{if(m.interstitial.appendInPlace){const v=m.assetItem.timelineStart,x=m.timelineOffset-v;if(x)try{m.timelineOffset=v}catch(g){Math.abs(x)>Tc&&this.warn(`${g} ("${m.assetId}" ${m.timelineOffset}->${v})`)}}}),d||s){if(this.hls.trigger(G.INTERSTITIALS_UPDATED,{events:a.slice(0),schedule:l.slice(0),durations:u,removedIds:c}),this.isInterstitial(o)&&c.includes(o.event.identifier)){this.warn(`Interstitial "${o.event.identifier}" removed while playing`),this.primaryFallback(o.event);return}o&&this.trimInPlace(f,o),p&&h!==f&&this.trimInPlace(h,p),this.checkBuffer()}},this.hls=t,this.HlsPlayerClass=n,this.assetListLoader=new C0e(t),this.schedule=new T0e(this.onScheduleUpdate,t.logger),this.registerListeners()}registerListeners(){const t=this.hls;
vendor: 4,885 bytes, line 120
120t&&(t.on(G.MEDIA_ATTACHING,this.onMediaAttaching,this),t.on(G.MEDIA_ATTACHED,this.onMediaAttached,this),t.on(G.MEDIA_DETACHING,this.onMediaDetaching,this),t.on(G.MANIFEST_LOADING,this.onManifestLoading,this),t.on(G.LEVEL_UPDATED,this.onLevelUpdated,this),t.on(G.AUDIO_TRACK_SWITCHING,this.onAudioTrackSwitching,this),t.on(G.AUDIO_TRACK_UPDATED,this.onAudioTrackUpdated,this),t.on(G.SUBTITLE_TRACK_SWITCH,this.onSubtitleTrackSwitch,this),t.on(G.SUBTITLE_TRACK_UPDATED,this.onSubtitleTrackUpdated,this),t.on(G.EVENT_CUE_ENTER,this.onInterstitialCueEnter,this),t.on(G.ASSET_LIST_LOADED,this.onAssetListLoaded,this),t.on(G.BUFFER_APPENDED,this.onBufferAppended,this),t.on(G.BUFFER_FLUSHED,this.onBufferFlushed,this),t.on(G.BUFFERED_TO_END,this.onBufferedToEnd,this),t.on(G.MEDIA_ENDED,this.onMediaEnded,this),t.on(G.ERROR,this.onError,this),t.on(G.DESTROYING,this.onDestroying,this))}unregisterListeners(){const t=this.hls;t&&(t.off(G.MEDIA_ATTACHING,this.onMediaAttaching,this),t.off(G.MEDIA_ATTACHED,this.onMediaAttached,this),t.off(G.MEDIA_DETACHING,this.onMediaDetaching,this),t.off(G.MANIFEST_LOADING,this.onManifestLoading,this),t.off(G.LEVEL_UPDATED,this.onLevelUpdated,this),t.off(G.AUDIO_TRACK_SWITCHING,this.onAudioTrackSwitching,this),t.off(G.AUDIO_TRACK_UPDATED,this.onAudioTrackUpdated,this),t.off(G.SUBTITLE_TRACK_SWITCH,this.onSubtitleTrackSwitch,this),t.off(G.SUBTITLE_TRACK_UPDATED,this.onSubtitleTrackUpdated,this),t.off(G.EVENT_CUE_ENTER,this.onInterstitialCueEnter,this),t.off(G.ASSET_LIST_LOADED,this.onAssetListLoaded,this),t.off(G.BUFFER_CODECS,this.onBufferCodecs,this),t.off(G.BUFFER_APPENDED,this.onBufferAppended,this),t.off(G.BUFFER_FLUSHED,this.onBufferFlushed,this),t.off(G.BUFFERED_TO_END,this.onBufferedToEnd,this),t.off(G.MEDIA_ENDED,this.onMediaEnded,this),t.off(G.ERROR,this.onError,this),t.off(G.DESTROYING,this.onDestroying,this))}startLoad(){this.resumeBuffering()}stopLoad(){this.pauseBuffering()}resumeBuffering(){var t;(t=this.getBufferingPlayer())==null||t.resumeBuffering()}pauseBuffering(){var t;(t=this.getBufferingPlayer())==null||t.pauseBuffering()}destroy(){this.unregisterListeners(),this.stopLoad(),this.assetListLoader&&this.assetListLoader.destroy(),this.emptyPlayerQueue(),this.clearScheduleState(),this.schedule&&this.schedule.destroy(),this.media=this.detachedData=this.mediaSelection=this.requiredTracks=this.altSelection=this.schedule=this.manager=null,this.hls=this.HlsPlayerClass=this.log=null,this.assetListLoader=null,this.onPlay=this.onPause=this.onSeeking=this.onTimeupdate=null,this.onScheduleUpdate=null}onDestroying(){const t=this.primaryMedia||this.media;t&&this.removeMediaListeners(t)}removeMediaListeners(t){Us(t,"play",this.onPlay),Us(t,"pause",this.onPause),Us(t,"seeking",this.onSeeking),Us(t,"timeupdate",this.onTimeupdate)}onMediaAttaching(t,n){const r=this.media=n.media;Cs(r,"seeking",this.onSeeking),Cs(r,"timeupdate",this.onTimeupdate),Cs(r,"play",this.onPlay),Cs(r,"pause",this.onPause)}onMediaAttached(t,n){const r=this.effectivePlayingItem,s=this.detachedData;if(this.detachedData=null,r===null)this.checkStart();else if(!s){this.clearScheduleState();const i=this.findItemIndex(r);this.setSchedulePosition(i)}}clearScheduleState(){this.log("clear schedule state"),this.playingItem=this.bufferingItem=this.waitingItem=this.endedItem=this.playingAsset=this.endedAsset=this.bufferingAsset=null}onMediaDetaching(t,n){const r=!!n.transferMedia,s=this.media;if(this.media=null,!r&&(s&&this.removeMediaListeners(s),this.detachedData)){const i=this.getBufferingPlayer();i&&(this.log(`Removing schedule state for detachedData and ${i}`),this.playingAsset=this.endedAsset=this.bufferingAsset=this.bufferingItem=this.waitingItem=this.detachedData=null,i.detachMedia()),this.shouldPlay=!1}}get interstitialsManager(){if(!this.hls)return null;if(this.manager)return this.manager;const t=this,n=()=>t.bufferingItem||t.waitingItem,r=d=>d&&t.getAssetPlayer(d.identifier),s=(d,f,h,p,m)=>{if(d){let v=d[f].start;const x=d.event;if(x){if(f==="playout"||x.timelineOccupancy!==xg.Point){const g=r(h);g?.interstitial===x&&(v+=g.assetItem.startOffset+g[m])}}else{const g=p==="bufferedPos"?o():t[p];v+=g-d.start}return v}return 0},i=(d,f)=>{var h;if(d!==0&&f!=="primary"&&(h=t.schedule)!=null&&h.length){var p;const m=t.schedule.findItemIndexAtTime(d),v=(p=t.schedule.items)==null?void 0:p[m];if(v){const x=v[f].start-v.start;return d+x}}return d},o=()=>{const d=t.bufferedPos;return d===Number.MAX_VALUE?a("primary"):Math.max(d,0)},a=d=>{var f,h;return(f=t.primaryDetails)!=null&&f.live?t.primaryDetails.edge:((h=t.schedule)==null?void 0:h.durations[d])||0},l=(d,f)=>{var h,p;const m=t.effectivePlayingItem;if(m!=null&&(h=m.event)!=null&&h.restrictions.skip||!t.schedule)return;t.log(`seek to ${d} "${f}"`);const v=t.effectivePlayingItem,x=t.schedule.findItemIndexAtTime(d,f),g=(p=t.schedule.items)==null?void 0:p[x],y=t.getBuffer
vendor: 34,239 bytes, line 120
120ingPlayer(),_=y?.interstitial,E=_?.appendInPlace,w=v&&t.itemsMatch(v,g);if(v&&(E||w)){const T=r(t.playingAsset),C=T?.media||t.primaryMedia;if(C){const I=f==="primary"?C.currentTime:s(v,f,t.playingAsset,"timelinePos","currentTime"),k=d-I,$=(E?I:C.currentTime)+k;if($>=0&&(!T||E||$<=T.duration)){C.currentTime=$;return}}}if(g){let T=d;if(f!=="primary"){const I=g[f].start,k=d-I;T=g.start+k}const C=!t.isInterstitial(g);if((!t.isInterstitial(v)||v.event.appendInPlace)&&(C||g.event.appendInPlace)){const I=t.media||(E?y?.media:null);I&&(I.currentTime=T)}else if(v){const I=t.findItemIndex(v);if(x>I){const $=t.schedule.findJumpRestrictedIndex(I+1,x);if($>I){t.setSchedulePosition($);return}}let k=0;if(C)t.timelinePos=T,t.checkBuffer();else{const $=g.event.assetList,R=d-(g[f]||g).start;for(let D=$.length;D--;){const O=$[D];if(O.duration&&R>=O.startOffset&&R<O.startOffset+O.duration){k=D;break}}}t.setSchedulePosition(x,k)}}},u=()=>{const d=t.effectivePlayingItem;if(t.isInterstitial(d))return d;const f=n();return t.isInterstitial(f)?f:null},c={get bufferedEnd(){const d=n(),f=t.bufferingItem;if(f&&f===d){var h;return s(f,"playout",t.bufferingAsset,"bufferedPos","bufferedEnd")-f.playout.start||((h=t.bufferingAsset)==null?void 0:h.startOffset)||0}return 0},get currentTime(){const d=u(),f=t.effectivePlayingItem;return f&&f===d?s(f,"playout",t.effectivePlayingAsset,"timelinePos","currentTime")-f.playout.start:0},set currentTime(d){const f=u(),h=t.effectivePlayingItem;h&&h===f&&l(d+h.playout.start,"playout")},get duration(){const d=u();return d?d.playout.end-d.playout.start:0},get assetPlayers(){var d;const f=(d=u())==null?void 0:d.event.assetList;return f?f.map(h=>t.getAssetPlayer(h.identifier)):[]},get playingIndex(){var d;const f=(d=u())==null?void 0:d.event;return f&&t.effectivePlayingAsset?f.findAssetIndex(t.effectivePlayingAsset):-1},get scheduleItem(){return u()}};return this.manager={get events(){var d;return((d=t.schedule)==null||(d=d.events)==null?void 0:d.slice(0))||[]},get schedule(){var d;return((d=t.schedule)==null||(d=d.items)==null?void 0:d.slice(0))||[]},get interstitialPlayer(){return u()?c:null},get playerQueue(){return t.playerQueue.slice(0)},get bufferingAsset(){return t.bufferingAsset},get bufferingItem(){return n()},get bufferingIndex(){const d=n();return t.findItemIndex(d)},get playingAsset(){return t.effectivePlayingAsset},get playingItem(){return t.effectivePlayingItem},get playingIndex(){const d=t.effectivePlayingItem;return t.findItemIndex(d)},primary:{get bufferedEnd(){return o()},get currentTime(){const d=t.timelinePos;return d>0?d:0},set currentTime(d){l(d,"primary")},get duration(){return a("primary")},get seekableStart(){var d;return((d=t.primaryDetails)==null?void 0:d.fragmentStart)||0}},integrated:{get bufferedEnd(){return s(n(),"integrated",t.bufferingAsset,"bufferedPos","bufferedEnd")},get currentTime(){return s(t.effectivePlayingItem,"integrated",t.effectivePlayingAsset,"timelinePos","currentTime")},set currentTime(d){l(d,"integrated")},get duration(){return a("integrated")},get seekableStart(){var d;return i(((d=t.primaryDetails)==null?void 0:d.fragmentStart)||0,"integrated")}},skip:()=>{const d=t.effectivePlayingItem,f=d?.event;if(f&&!f.restrictions.skip){const h=t.findItemIndex(d);if(f.appendInPlace){const p=d.playout.start+d.event.duration;l(p+.001,"playout")}else t.advanceAfterAssetEnded(f,h,1/0)}}}}get effectivePlayingItem(){return this.waitingItem||this.playingItem||this.endedItem}get effectivePlayingAsset(){return this.playingAsset||this.endedAsset}get playingLastItem(){var t;const n=this.playingItem,r=(t=this.schedule)==null?void 0:t.items;return!this.playbackStarted||!n||!r?!1:this.findItemIndex(n)===r.length-1}get playbackStarted(){return this.effectivePlayingItem!==null}get currentTime(){var t,n;if(this.mediaSelection===null)return;const r=this.waitingItem||this.playingItem;if(this.isInterstitial(r)&&!r.event.appendInPlace)return;let s=this.media;!s&&(t=this.bufferingItem)!=null&&(t=t.event)!=null&&t.appendInPlace&&(s=this.primaryMedia);const i=(n=s)==null?void 0:n.currentTime;if(!(i===void 0||!lt(i)))return i}get primaryMedia(){var t;return this.media||((t=this.detachedData)==null?void 0:t.media)||null}isInterstitial(t){return!!(t!=null&&t.event)}retreiveMediaSource(t,n){const r=this.getAssetPlayer(t);r&&this.transferMediaFromPlayer(r,n)}transferMediaFromPlayer(t,n){const r=t.interstitial.appendInPlace,s=t.media;if(r&&s===this.primaryMedia){if(this.bufferingAsset=null,(!n||this.isInterstitial(n)&&!n.event.appendInPlace)&&n&&s){this.detachedData={media:s};return}const i=t.transferMedia();this.log(`transfer MediaSource from ${t} ${Ln(i)}`),this.detachedData=i}else n&&s&&(this.shouldPlay||(this.shouldPlay=!s.paused))}transferMediaTo(t,n){var r,s;if(t.media===n)return;let i=null;const o=this.hls,a=t!==o,l=a&&t.interstitial.appendInPlace,u=(r=this.detachedData)==null?void 0:r.mediaSource;let c;if(o.media)l&&(i=o.transferMedia(),this.detachedData=i),c="Primary";else if(u){const p=this.getBufferingPlayer();p?(i=p.transferMedia(),c=`${p}`):c="detached MediaSource"}else c="detached media";if(!i){if(u)i=this.detachedData,this.log(`using detachedData: MediaSource ${Ln(i)}`);else if(!this.detachedData||o.media===n){const p=this.playerQueue;p.length>1&&p.forEach(m=>{if(a&&m.interstitial.appendInPlace!==l){const v=m.interstitial;this.clearInterstitial(m.interstitial,null),v.appendInPlace=!1,v.appendInPlace&&this.warn(`Could not change append strategy for queued assets ${v}`)}}),this.hls.detachMedia(),this.detachedData={media:n}}}const d=i&&"mediaSource"in i&&((s=i.mediaSource)==null?void 0:s.readyState)!=="closed",f=d&&i?i:n;this.log(`${d?"transfering MediaSource":"attaching media"} to ${a?t:"Primary"} from ${c} (media.currentTime: ${n.currentTime})`);const h=this.schedule;if(f===i&&h){const p=a&&t.assetId===h.assetIdAtEnd;f.overrides={duration:h.duration,endOfStream:!a||p,cueRemoval:!a}}t.attachMedia(f)}onInterstitialCueEnter(){this.onTimeupdate()}checkStart(){const t=this.schedule,n=t?.events;if(!n||this.playbackDisabled||!this.media)return;this.bufferedPos===-1&&(this.bufferedPos=0);const r=this.timelinePos,s=this.effectivePlayingItem;if(r===-1){const i=this.hls.startPosition;if(this.log(lp("checkStart",i)),this.timelinePos=i,n.length&&n[0].cue.pre){const o=t.findEventIndex(n[0].identifier);this.setSchedulePosition(o)}else if(i>=0||!this.primaryLive){const o=this.timelinePos=i>0?i:0,a=t.findItemIndexAtTime(o);this.setSchedulePosition(a)}}else if(s&&!this.playingItem){const i=t.findItemIndex(s);this.setSchedulePosition(i)}}advanceAssetBuffering(t,n){const r=t.event,s=r.findAssetIndex(n),i=Cx(r,s);if(!r.isAssetPastPlayoutLimit(i))this.bufferedToEvent(t,i);else if(this.schedule){var o;const a=(o=this.schedule.items)==null?void 0:o[this.findItemIndex(t)+1];a&&this.bufferedToItem(a)}}advanceAfterAssetEnded(t,n,r){const s=Cx(t,r);if(t.isAssetPastPlayoutLimit(s)){if(this.schedule){const i=this.schedule.items;if(i){const o=n+1,a=i.length;if(o>=a){this.setSchedulePosition(-1);return}const l=t.resumeTime;this.timelinePos<l&&(this.log(lp("advanceAfterAssetEnded",l)),this.timelinePos=l,t.appendInPlace&&this.advanceInPlace(l),this.checkBuffer(this.bufferedPos<l)),this.setSchedulePosition(o)}}}else{if(t.appendInPlace){const i=t.assetList[s];i&&this.advanceInPlace(i.timelineStart)}this.setSchedulePosition(n,s)}}setScheduleToAssetAtTime(t,n){const r=this.schedule;if(!r)return;const s=n.parentIdentifier,i=r.getEvent(s);if(i){const o=r.findEventIndex(s),a=r.findAssetIndex(i,t);this.advanceAfterAssetEnded(i,o,a-1)}}setSchedulePosition(t,n){var r;const s=(r=this.schedule)==null?void 0:r.items;if(!s||this.playbackDisabled)return;const i=t>=0?s[t]:null;this.log(`setSchedulePosition ${t}, ${n} (${i&&Zi(i)}) pos: ${this.timelinePos}`);const o=this.waitingItem||this.playingItem,a=this.playingLastItem;if(this.isInterstitial(o)){const c=o.event,d=this.playingAsset,f=d?.identifier,h=f?this.getAssetPlayer(f):null;if(h&&f&&(!this.eventItemsMatch(o,i)||n!==void 0&&f!==c.assetList[n].identifier)){var l;const p=c.findAssetIndex(d);if(this.log(`INTERSTITIAL_ASSET_ENDED ${p+1}/${c.assetList.length} ${uc(d)}`),this.endedAsset=d,this.playingAsset=null,this.hls.trigger(G.INTERSTITIAL_ASSET_ENDED,{asset:d,assetListIndex:p,event:c,schedule:s.slice(0),scheduleIndex:t,player:h}),o!==this.playingItem){this.itemsMatch(o,this.playingItem)&&!this.playingAsset&&this.advanceAfterAssetEnded(c,this.findItemIndex(this.playingItem),p);return}this.retreiveMediaSource(f,i),h.media&&!((l=this.detachedData)!=null&&l.mediaSource)&&h.detachMedia()}if(!this.eventItemsMatch(o,i)&&(this.endedItem=o,this.playingItem=null,this.log(`INTERSTITIAL_ENDED ${c} ${Zi(o)}`),c.hasPlayed=!0,this.hls.trigger(G.INTERSTITIAL_ENDED,{event:c,schedule:s.slice(0),scheduleIndex:t}),c.cue.once)){var u;this.updateSchedule();const p=(u=this.schedule)==null?void 0:u.items;if(i&&p){const m=this.findItemIndex(i);this.advanceSchedule(m,p,n,o,a)}return}}this.advanceSchedule(t,s,n,o,a)}advanceSchedule(t,n,r,s,i){const o=this.schedule;if(!o)return;const a=n[t]||null,l=this.primaryMedia,u=this.playerQueue;if(u.length&&u.forEach(c=>{const d=c.interstitial,f=o.findEventIndex(d.identifier);(f<t||f>t+1)&&this.clearInterstitial(d,a)}),this.isInterstitial(a)){this.timelinePos=Math.min(Math.max(this.timelinePos,a.start),a.end);const c=a.event;if(r===void 0){r=o.findAssetIndex(c,this.timelinePos);const p=Cx(c,r-1);if(c.isAssetPastPlayoutLimit(p)||c.appendInPlace&&this.timelinePos===a.end){this.advanceAfterAssetEnded(c,t,r);return}r=p}const d=this.waitingItem;this.assetsBuffered(a,l)||this.setBufferingItem(a);let f=this.preloadAssets(c,r);if(this.eventItemsMatch(a,d||s)||(this.waitingItem=a,this.log(`INTERSTITIAL_STARTED ${Zi(a)} ${c.appendInPlace?"append in place":""}`),this.hls.trigger(G.INTERSTITIAL_STARTED,{event:c,schedule:n.slice(0),scheduleIndex:t})),!c.assetListLoaded){this.log(`Waiting for ASSET-LIST to complete loading ${c}`);return}if(c.assetListLoader&&(c.assetListLoader.destroy(),c.assetListLoader=void 0),!l){this.log(`Waiting for attachMedia to start Interstitial ${c}`);return}this.waitingItem=this.endedItem=null,this.playingItem=a;const h=c.assetList[r];if(!h){this.advanceAfterAssetEnded(c,t,r||0);return}if(f||(f=this.getAssetPlayer(h.identifier)),f===null||f.destroyed){const p=c.assetList.length;this.warn(`asset ${r+1}/${p} player destroyed ${c}`),f=this.createAssetPlayer(c,h,r),f.loadSource()}if(!this.eventItemsMatch(a,this.bufferingItem)&&c.appendInPlace&&this.isAssetBuffered(h))return;this.startAssetPlayer(f,r,n,t,l),this.shouldPlay&&nL(f.media)}else a?(this.resumePrimary(a,t,s),this.shouldPlay&&nL(this.hls.media)):i&&this.isInterstitial(s)&&(this.endedItem=null,this.playingItem=s,s.event.appendInPlace||this.attachPrimary(o.durations.primary,null))}get playbackDisabled(){return this.hls.config.enableInterstitialPlayback===!1}get primaryDetails(){var t;return(t=this.mediaSelection)==null?void 0:t.main.details}get primaryLive(){var t;return!!((t=this.primaryDetails)!=null&&t.live)}resumePrimary(t,n,r){var s,i;if(this.playingItem=t,this.playingAsset=this.endedAsset=null,this.waitingItem=this.endedItem=null,this.bufferedToItem(t),this.log(`resuming ${Zi(t)}`),!((s=this.detachedData)!=null&&s.mediaSource)){let a=this.timelinePos;(a<t.start||a>=t.end)&&(a=this.getPrimaryResumption(t,n),this.log(lp("resumePrimary",a)),this.timelinePos=a),this.attachPrimary(a,t)}if(!r)return;const o=(i=this.schedule)==null?void 0:i.items;o&&(this.log(`INTERSTITIALS_PRIMARY_RESUMED ${Zi(t)}`),this.hls.trigger(G.INTERSTITIALS_PRIMARY_RESUMED,{schedule:o.slice(0),scheduleIndex:n}),this.checkBuffer())}getPrimaryResumption(t,n){const r=t.start;if(this.primaryLive){const s=this.primaryDetails;if(n===0)return this.hls.startPosition;if(s&&(r<s.fragmentStart||r>s.edge))return this.hls.liveSyncPosition||-1}return r}isAssetBuffered(t){const n=this.getAssetPlayer(t.identifier);return n!=null&&n.hls?n.hls.bufferedToEnd:Ft.bufferInfo(this.primaryMedia,this.timelinePos,0).end+1>=t.timelineStart+(t.duration||0)}attachPrimary(t,n,r){n?this.setBufferingItem(n):this.bufferingItem=this.playingItem,this.bufferingAsset=null;const s=this.primaryMedia;if(!s)return;const i=this.hls;i.media?this.checkBuffer():(this.transferMediaTo(i,s),r&&this.startLoadingPrimaryAt(t,r)),r||(this.log(lp("attachPrimary",t)),this.timelinePos=t,this.startLoadingPrimaryAt(t,r))}startLoadingPrimaryAt(t,n){var r;const s=this.hls;!s.loadingEnabled||!s.media||Math.abs((((r=s.mainForwardBufferInfo)==null?void 0:r.start)||s.media.currentTime)-t)>.5?s.startLoad(t,n):s.bufferingEnabled||s.resumeBuffering()}onManifestLoading(){var t;this.stopLoad(),(t=this.schedule)==null||t.reset(),this.emptyPlayerQueue(),this.clearScheduleState(),this.shouldPlay=!1,this.bufferedPos=this.timelinePos=-1,this.mediaSelection=this.altSelection=this.manager=this.requiredTracks=null,this.hls.off(G.BUFFER_CODECS,this.onBufferCodecs,this),this.hls.on(G.BUFFER_CODECS,this.onBufferCodecs,this)}onLevelUpdated(t,n){if(n.level===-1||!this.schedule)return;const r=this.hls.levels[n.level];if(!r.details)return;const s=Sn(Sn({},this.mediaSelection||this.altSelection),{},{main:r});this.mediaSelection=s,this.schedule.parseInterstitialDateRanges(s,this.hls.config.interstitialAppendInPlace),!this.effectivePlayingItem&&this.schedule.items&&this.checkStart()}onAudioTrackUpdated(t,n){const r=this.hls.audioTracks[n.id],s=this.mediaSelection;if(!s){this.altSelection=Sn(Sn({},this.altSelection),{},{audio:r});return}const i=Sn(Sn({},s),{},{audio:r});this.mediaSelection=i}onSubtitleTrackUpdated(t,n){const r=this.hls.subtitleTracks[n.id],s=this.mediaSelection;if(!s){this.altSelection=Sn(Sn({},this.altSelection),{},{subtitles:r});return}const i=Sn(Sn({},s),{},{subtitles:r});this.mediaSelection=i}onAudioTrackSwitching(t,n){const r=dI(n);this.playerQueue.forEach(({hls:s})=>s&&(s.setAudioOption(n)||s.setAudioOption(r)))}onSubtitleTrackSwitch(t,n){const r=dI(n);this.playerQueue.forEach(({hls:s})=>s&&(s.setSubtitleOption(n)||n.id!==-1&&s.setSubtitleOption(r)))}onBufferCodecs(t,n){const r=n.tracks;r&&(this.requiredTracks=r)}onBufferAppended(t,n){this.checkBuffer()}onBufferFlushed(t,n){const r=this.playingItem;if(r&&!this.itemsMatch(r,this.bufferingItem)&&!this.isInterstitial(r)){const s=this.timelinePos;this.bufferedPos=s,this.checkBuffer()}}onBufferedToEnd(t){if(!this.schedule)return;const n=this.schedule.events;if(this.bufferedPos<Number.MAX_VALUE&&n){for(let s=0;s<n.length;s++){const i=n[s];if(i.cue.post){var r;const o=this.schedule.findEventIndex(i.identifier),a=(r=this.schedule.items)==null?void 0:r[o];this.isInterstitial(a)&&this.eventItemsMatch(a,this.bufferingItem)&&this.bufferedToItem(a,0);break}}this.bufferedPos=Number.MAX_VALUE}}onMediaEnded(t){const n=this.playingItem;if(!this.playingLastItem&&n){const r=this.findItemIndex(n);this.setSchedulePosition(r+1)}else this.shouldPlay=!1}updateItem(t,n){var r;const s=(r=this.schedule)==null?void 0:r.items;if(t&&s){const i=this.findItemIndex(t,n);return s[i]||null}return null}trimInPlace(t,n){if(this.isInterstitial(t)&&t.event.appendInPlace&&n.end-t.end>.25){t.event.assetList.forEach((i,o)=>{t.event.isAssetPastPlayoutLimit(o)&&this.clearAssetPlayer(i.identifier,null)});const r=t.end+.25,s=Ft.bufferInfo(this.primaryMedia,r,0);(s.end>r||(s.nextStart||0)>r)&&(this.log(`trim buffered interstitial ${Zi(t)} (was ${Zi(n)})`),this.attachPrimary(r,null,!0),this.flushFrontBuffer(r))}}itemsMatch(t,n){return!!n&&(t===n||t.event&&n.event&&this.eventItemsMatch(t,n)||!t.event&&!n.event&&this.findItemIndex(t)===this.findItemIndex(n))}eventItemsMatch(t,n){var r;return!!n&&(t===n||t.event.identifier===((r=n.event)==null?void 0:r.identifier))}findItemIndex(t,n){return t&&this.schedule?this.schedule.findItemIndex(t,n):-1}updateSchedule(t=!1){var n;const r=this.mediaSelection;r&&((n=this.schedule)==null||n.updateSchedule(r,[],t))}checkBuffer(t){var n;const r=(n=this.schedule)==null?void 0:n.items;if(!r)return;const s=Ft.bufferInfo(this.primaryMedia,this.timelinePos,0);t&&(this.bufferedPos=this.timelinePos),t||(t=s.len<1),this.updateBufferedPos(s.end,r,t)}updateBufferedPos(t,n,r){const s=this.schedule,i=this.bufferingItem;if(this.bufferedPos>t||!s)return;if(n.length===1&&this.itemsMatch(n[0],i)){this.bufferedPos=t;return}const o=this.playingItem,a=this.findItemIndex(o);let l=s.findItemIndexAtTime(t);if(this.bufferedPos<t){var u;const c=this.findItemIndex(i),d=Math.min(c+1,n.length-1),f=n[d];if((l===-1&&i&&t>=i.end||(u=f.event)!=null&&u.appendInPlace&&t+.01>=f.start)&&(l=d),this.isInterstitial(i)){const h=i.event;if(d-a>1&&h.appendInPlace===!1||h.assetList.length===0&&h.assetListLoader)return}if(this.bufferedPos=t,l>c&&l>a)this.bufferedToItem(f);else{const h=this.primaryDetails;this.primaryLive&&h&&t>h.edge-h.targetduration&&f.start<h.edge+this.hls.config.interstitialLiveLookAhead&&this.isInterstitial(f)&&this.preloadAssets(f.event,0)}}else r&&o&&!this.itemsMatch(o,i)&&(l===a?this.bufferedToItem(o):l===a+1&&this.bufferedToItem(n[l]))}assetsBuffered(t,n){return t.event.assetList.length===0?!1:!t.event.assetList.some(s=>{const i=this.getAssetPlayer(s.identifier);return!(i!=null&&i.bufferedInPlaceToEnd(n))})}setBufferingItem(t){const n=this.bufferingItem,r=this.schedule;if(!this.itemsMatch(t,n)&&r){const{items:s,events:i}=r;if(!s||!i)return n;const o=this.isInterstitial(t),a=this.getBufferingPlayer();this.bufferingItem=t,this.bufferedPos=Math.max(t.start,Math.min(t.end,this.timelinePos));const l=a?a.remaining:n?n.end-this.timelinePos:0;if(this.log(`INTERSTITIALS_BUFFERED_TO_BOUNDARY ${Zi(t)}`+(n?` (${l.toFixed(2)} remaining)`:"")),!this.playbackDisabled)if(o){const u=r.findAssetIndex(t.event,this.bufferedPos);t.event.assetList.forEach((c,d)=>{const f=this.getAssetPlayer(c.identifier);f&&(d===u&&f.loadSource(),f.resumeBuffering())})}else this.hls.resumeBuffering(),this.playerQueue.forEach(u=>u.pauseBuffering());this.hls.trigger(G.INTERSTITIALS_BUFFERED_TO_BOUNDARY,{events:i.slice(0),schedule:s.slice(0),bufferingIndex:this.findItemIndex(t),playingIndex:this.findItemIndex(this.playingItem)})}else this.bufferingItem!==t&&(this.bufferingItem=t);return n}bufferedToItem(t,n=0){const r=this.setBufferingItem(t);if(!this.playbackDisabled){if(this.isInterstitial(t))this.bufferedToEvent(t,n);else if(r!==null){this.bufferingAsset=null;const s=this.detachedData;s?s.mediaSource?this.attachPrimary(t.start,t,!0):this.preloadPrimary(t):this.preloadPrimary(t)}}}preloadPrimary(t){const n=this.findItemIndex(t),r=this.getPrimaryResumption(t,n);this.startLoadingPrimaryAt(r)}bufferedToEvent(t,n){const r=t.event,s=r.assetList.length===0&&!r.assetListLoader,i=r.cue.once;if(s||!i){const o=this.preloadAssets(r,n);if(o!=null&&o.interstitial.appendInPlace){const a=this.primaryMedia;a&&this.bufferAssetPlayer(o,a)}}}preloadAssets(t,n){const r=t.assetUrl,s=t.assetList.length,i=s===0&&!t.assetListLoader,o=t.cue.once;if(i){const l=t.timelineStart;if(t.appendInPlace){var a;const f=this.playingItem;!this.isInterstitial(f)&&(f==null||(a=f.nextEvent)==null?void 0:a.identifier)===t.identifier&&this.flushFrontBuffer(l+.25)}let u,c=0;if(!this.playingItem&&this.primaryLive&&(c=this.hls.startPosition,c===-1&&(c=this.hls.liveSyncPosition||0)),c&&!(t.cue.pre||t.cue.post)){const f=c-l;f>0&&(u=Math.round(f*1e3)/1e3)}if(this.log(`Load interstitial asset ${n+1}/${r?1:s} ${t}${u?` live-start: ${c} start-offset: ${u}`:""}`),r)return this.createAsset(t,0,0,l,t.duration,r);const d=this.assetListLoader.loadAssetList(t,u);d&&(t.assetListLoader=d)}else if(!o&&s){for(let u=n;u<s;u++){const c=t.assetList[u],d=this.getAssetPlayerQueueIndex(c.identifier);(d===-1||this.playerQueue[d].destroyed)&&!c.error&&this.createAssetPlayer(t,c,u)}const l=t.assetList[n];if(l){const u=this.getAssetPlayer(l.identifier);return u&&u.loadSource(),u}}return null}flushFrontBuffer(t){const n=this.requiredTracks;if(!n)return;this.log(`Removing front buffer starting at ${t}`),Object.keys(n).forEach(s=>{this.hls.trigger(G.BUFFER_FLUSHING,{startOffset:t,endOffset:1/0,type:s})})}getAssetPlayerQueueIndex(t){const n=this.playerQueue;for(let r=0;r<n.length;r++)if(t===n[r].assetId)return r;return-1}getAssetPlayer(t){const n=this.getAssetPlayerQueueIndex(t);return this.playerQueue[n]||null}getBufferingPlayer(){const{playerQueue:t,primaryMedia:n}=this;if(n){for(let r=0;r<t.length;r++)if(t[r].media===n)return t[r]}return null}createAsset(t,n,r,s,i,o){const a={parentIdentifier:t.identifier,identifier:_0e(t,o,n),duration:i,startOffset:r,timelineStart:s,uri:o};return this.createAssetPlayer(t,a,n)}createAssetPlayer(t,n,r){const s=this.hls,i=s.userConfig;let o=i.videoPreference;const a=s.loadLevelObj||s.levels[s.currentLevel];(o||a)&&(o=kn({},o),a.videoCodec&&(o.videoCodec=a.videoCodec),a.videoRange&&(o.allowedVideoRanges=[a.videoRange]));const l=s.audioTracks[s.audioTrack],u=s.subtitleTracks[s.subtitleTrack];let c=0;if(this.primaryLive||t.appendInPlace){const _=this.timelinePos-n.timelineStart;if(_>1){const E=n.duration;E&&_<E&&(c=_)}}const d=n.identifier,f=Sn(Sn({},i),{},{maxMaxBufferLength:Math.min(180,s.config.maxMaxBufferLength),autoStartLoad:!0,startFragPrefetch:!0,primarySessionId:s.sessionId,assetPlayerId:d,abrEwmaDefaultEstimate:s.bandwidthEstimate,interstitialsController:void 0,startPosition:c,liveDurationInfinity:!1,testBandwidth:!1,videoPreference:o,audioPreference:l||i.audioPreference,subtitlePreference:u||i.subtitlePreference});t.appendInPlace&&(t.appendInPlaceStarted=!0,n.timelineStart&&(f.timelineOffset=n.timelineStart));const h=f.cmcd;h!=null&&h.sessionId&&h.contentId&&(f.cmcd=kn({},h,{contentId:Tf(n.uri)})),this.getAssetPlayer(d)&&this.warn(`Duplicate date range identifier ${t} and asset ${d}`);const p=new w0e(this.HlsPlayerClass,f,t,n);this.playerQueue.push(p),t.assetList[r]=n;let m=!0;const v=_=>{if(_.live){var E;const C=new Error(`Interstitials MUST be VOD assets ${t}`),I={fatal:!0,type:bt.OTHER_ERROR,details:Re.INTERSTITIAL_ASSET_ITEM_ERROR,error:C},k=((E=this.schedule)==null?void 0:E.findEventIndex(t.identifier))||-1;this.handleAssetItemError(I,t,k,r,C.message);return}const w=_.edge-_.fragmentStart,T=n.duration;(m||T===null||w>T)&&(m=!1,this.log(`Interstitial asset "${d}" duration change ${T} > ${w}`),n.duration=w,this.updateSchedule())};p.on(G.LEVEL_UPDATED,(_,{details:E})=>v(E)),p.on(G.LEVEL_PTS_UPDATED,(_,{details:E})=>v(E)),p.on(G.EVENT_CUE_ENTER,()=>this.onInterstitialCueEnter());const x=(_,E)=>{const w=this.getAssetPlayer(d);if(w&&E.tracks){w.off(G.BUFFER_CODECS,x),w.tracks=E.tracks;const T=this.primaryMedia;this.bufferingAsset===w.assetItem&&T&&!w.media&&this.bufferAssetPlayer(w,T)}};p.on(G.BUFFER_CODECS,x);const g=()=>{var _;const E=this.getAssetPlayer(d);if(this.log(`buffered to end of asset ${E}`),!E||!this.schedule)return;const w=this.schedule.findEventIndex(t.identifier),T=(_=this.schedule.items)==null?void 0:_[w];this.isInterstitial(T)&&this.advanceAssetBuffering(T,n)};p.on(G.BUFFERED_TO_END,g);const y=_=>()=>{if(!this.getAssetPlayer(d)||!this.schedule)return;this.shouldPlay=!0;const w=this.schedule.findEventIndex(t.identifier);this.advanceAfterAssetEnded(t,w,_)};return p.once(G.MEDIA_ENDED,y(r)),p.once(G.PLAYOUT_LIMIT_REACHED,y(1/0)),p.on(G.ERROR,(_,E)=>{if(!this.schedule)return;const w=this.getAssetPlayer(d);if(E.details===Re.BUFFER_STALLED_ERROR){if(w!=null&&w.appendInPlace){this.handleInPlaceStall(t);return}this.onTimeupdate(),this.checkBuffer(!0);return}this.handleAssetItemError(E,t,this.schedule.findEventIndex(t.identifier),r,`Asset player error ${E.error} ${t}`)}),p.on(G.DESTROYING,()=>{if(!this.getAssetPlayer(d)||!this.schedule)return;const E=new Error(`Asset player destroyed unexpectedly ${d}`),w={fatal:!0,type:bt.OTHER_ERROR,details:Re.INTERSTITIAL_ASSET_ITEM_ERROR,error:E};this.handleAssetItemError(w,t,this.schedule.findEventIndex(t.identifier),r,E.message)}),this.log(`INTERSTITIAL_ASSET_PLAYER_CREATED ${uc(n)}`),this.hls.trigger(G.INTERSTITIAL_ASSET_PLAYER_CREATED,{asset:n,assetListIndex:r,event:t,player:p}),p}clearInterstitial(t,n){t.assetList.forEach(r=>{this.clearAssetPlayer(r.identifier,n)}),t.reset()}resetAssetPlayer(t){const n=this.getAssetPlayerQueueIndex(t);if(n!==-1){this.log(`reset asset player "${t}" after error`);const r=this.playerQueue[n];this.transferMediaFromPlayer(r,null),r.resetDetails()}}clearAssetPlayer(t,n){const r=this.getAssetPlayerQueueIndex(t);if(r!==-1){const s=this.playerQueue[r];this.log(`clear ${s} toSegment: ${n&&Zi(n)}`),this.transferMediaFromPlayer(s,n),this.playerQueue.splice(r,1),s.destroy()}}emptyPlayerQueue(){let t;for(;t=this.playerQueue.pop();)t.destroy();this.playerQueue=[]}startAssetPlayer(t,n,r,s,i){const{interstitial:o,assetItem:a,assetId:l}=t,u=o.assetList.length,c=this.playingAsset;this.endedAsset=null,this.playingAsset=a,(!c||c.identifier!==l)&&(c&&(this.clearAssetPlayer(c.identifier,r[s]),delete c.error),this.log(`INTERSTITIAL_ASSET_STARTED ${n+1}/${u} ${uc(a)}`),this.hls.trigger(G.INTERSTITIAL_ASSET_STARTED,{asset:a,assetListIndex:n,event:o,schedule:r.slice(0),scheduleIndex:s,player:t})),this.bufferAssetPlayer(t,i)}bufferAssetPlayer(t,n){var r,s;if(!this.schedule)return;const{interstitial:i,assetItem:o}=t,a=this.schedule.findEventIndex(i.identifier),l=(r=this.schedule.items)==null?void 0:r[a];if(!l)return;t.loadSource(),this.setBufferingItem(l),this.bufferingAsset=o;const u=this.getBufferingPlayer();if(u===t)return;const c=i.appendInPlace;if(c&&u?.interstitial.appendInPlace===!1)return;const d=u?.tracks||((s=this.detachedData)==null?void 0:s.tracks)||this.requiredTracks;if(c&&o!==this.playingAsset){if(!t.tracks){this.log(`Waiting for track info before buffering ${t}`);return}if(d&&!c6(d,t.tracks)){const f=new Error(`Asset ${uc(o)} SourceBuffer tracks ('${Object.keys(t.tracks)}') are not compatible with primary content tracks ('${Object.keys(d)}')`),h={fatal:!0,type:bt.OTHER_ERROR,details:Re.INTERSTITIAL_ASSET_ITEM_ERROR,error:f},p=i.findAssetIndex(o);this.handleAssetItemError(h,i,a,p,f.message);return}}this.transferMediaTo(t,n)}handleInPlaceStall(t){const n=this.schedule,r=this.primaryMedia;if(!n||!r)return;const s=r.currentTime,i=n.findAssetIndex(t,s),o=t.assetList[i];if(o){const a=this.getAssetPlayer(o.identifier);if(a){const l=a.currentTime||s-o.timelineStart,u=a.duration-l;if(this.warn(`Stalled at ${l} of ${l+u} in ${a} ${t} (media.currentTime: ${s})`),l&&(u/r.playbackRate<.5||a.bufferedInPlaceToEnd(r))&&a.hls){const c=n.findEventIndex(t.identifier);this.advanceAfterAssetEnded(t,c,i)}}}}advanceInPlace(t){const n=this.primaryMedia;n&&n.currentTime<t&&(n.currentTime=t)}handleAssetItemError(t,n,r,s,i){if(t.details===Re.BUFFER_STALLED_ERROR)return;const o=n.assetList[s]||null;if(this.warn(`INTERSTITIAL_ASSET_ERROR ${o&&uc(o)} ${t.error}`),!this.schedule)return;const a=o?.identifier||"",l=this.getAssetPlayerQueueIndex(a),u=this.playerQueue[l]||null,c=this.schedule.items,d=kn({},t,{fatal:!1,errorAction:Sc(!0),asset:o,assetListIndex:s,event:n,schedule:c,scheduleIndex:r,player:u});if(this.hls.trigger(G.INTERSTITIAL_ASSET_ERROR,d),!t.fatal)return;const f=this.playingAsset,h=this.bufferingAsset,p=new Error(i);if(o&&(this.clearAssetPlayer(a,null),o.error=p),!n.assetList.some(m=>!m.error))n.error=p;else for(let m=s;m<n.assetList.length;m++)this.resetAssetPlayer(n.assetList[m].identifier);this.updateSchedule(!0),n.error?this.primaryFallback(n):f&&f.identifier===a?this.advanceAfterAssetEnded(n,r,s):h&&h.identifier===a&&this.isInterstitial(this.bufferingItem)&&this.advanceAssetBuffering(this.bufferingItem,h)}primaryFallback(t){const n=t.timelineStart,r=this.effectivePlayingItem;if(r){this.log(`Fallback to primary from event "${t.identifier}" start: ${n} pos: ${this.timelinePos} playing: ${Zi(r)} error: ${t.error}`);let s=this.timelinePos;s===-1&&(s=this.hls.startPosition);const i=this.updateItem(r,s);if(this.itemsMatch(r,i)&&this.clearInterstitial(t,null),t.appendInPlace&&(this.attachPrimary(n,null),this.flushFrontBuffer(n)),!this.schedule)return;const o=this.schedule.findItemIndexAtTime(s);this.setSchedulePosition(o)}else this.checkStart()}onAssetListLoaded(t,n){var r,s;const i=n.event,o=i.identifier,a=n.assetListResponse.ASSETS;if(!((r=this.schedule)!=null&&r.hasEvent(o)))return;const l=i.timelineStart,u=i.duration;let c=0;a.forEach((m,v)=>{const x=parseFloat(m.DURATION);this.createAsset(i,v,c,l+c,x,m.URI),c+=x}),i.duration=c,this.log(`Loaded asset-list with duration: ${c} (was: ${u}) ${i}`);const d=this.waitingItem,f=d?.event.identifier===o;this.updateSchedule();const h=(s=this.bufferingItem)==null?void 0:s.event;if(f){var p;const m=this.schedule.findEventIndex(o),v=(p=this.schedule.items)==null?void 0:p[m];if(v){if(!this.playingItem&&this.timelinePos>v.end&&this.schedule.findItemIndexAtTime(this.timelinePos)!==m){i.error=new Error(`Interstitial no longer within playback range ${this.timelinePos} ${i}`),this.updateSchedule(!0),this.primaryFallback(i);return}this.setBufferingItem(v)}this.setSchedulePosition(m)}else if(h?.identifier===o){const m=i.assetList[0];if(m){const v=this.getAssetPlayer(m.identifier);if(h.appendInPlace){const x=this.primaryMedia;v&&x&&this.bufferAssetPlayer(v,x)}else v&&v.loadSource()}}}onError(t,n){if(this.schedule)switch(n.details){case Re.ASSET_LIST_PARSING_ERROR:case Re.ASSET_LIST_LOAD_ERROR:case Re.ASSET_LIST_LOAD_TIMEOUT:{const r=n.interstitial;r&&(this.updateSchedule(!0),this.primaryFallback(r));break}case Re.BUFFER_STALLED_ERROR:{const r=this.endedItem||this.waitingItem||this.playingItem;if(this.isInterstitial(r)&&r.event.appendInPlace){this.handleInPlaceStall(r.event);return}this.log(`Primary player stall @${this.timelinePos} bufferedPos: ${this.bufferedPos}`),this.onTimeupdate(),this.checkBuffer(!0);break}}}}const rL=500;class k0e extends NE{constructor(t,n,r){super(t,n,r,"subtitle-stream-controller",pt.SUBTITLE),this.currentTrackId=-1,this.tracksBuffered=[],this.mainDetails=null,this.registerListeners()}onHandlerDestroying(){this.unregisterListeners(),super.onHandlerDestroying(),this.mainDetails=null}registerListeners(){super.registerListeners();const{hls:t}=this;t.on(G.LEVEL_LOADED,this.onLevelLoaded,this),t.on(G.SUBTITLE_TRACKS_UPDATED,this.onSubtitleTracksUpdated,this),t.on(G.SUBTITLE_TRACK_SWITCH,this.onSubtitleTrackSwitch,this),t.on(G.SUBTITLE_TRACK_LOADED,this.onSubtitleTrackLoaded,this),t.on(G.SUBTITLE_FRAG_PROCESSED,this.onSubtitleFragProcessed,this),t.on(G.BUFFER_FLUSHING,this.onBufferFlushing,this)}unregisterListeners(){super.unregisterListeners();const{hls:t}=this;t.off(G.LEVEL_LOADED,this.onLevelLoaded,this),t.off(G.SUBTITLE_TRACKS_UPDATED,this.onSubtitleTracksUpdated,this),t.off(G.SUBTITLE_TRACK_SWITCH,this.onSubtitleTrackSwitch,this),t.off(G.SUBTITLE_TRACK_LOADED,this.onSubtitleTrackLoaded,this),t.off(G.SUBTITLE_FRAG_PROCESSED,this.onSubtitleFragProcessed,this),t.off(G.BUFFER_FLUSHING,this.onBufferFlushing,this)}startLoad(t,n){this.stopLoad(),this.state=Ge.IDLE,this.setInterval(rL),this.nextLoadPosition=this.lastCurrentTime=t+this.timelineOffset,this.startPosition=n?-1:t,this.tick()}onManifestLoading(){super.onManifestLoading(),this.mainDetails=null}onMediaDetaching(t,n){this.tracksBuffered=[],super.onMediaDetaching(t,n)}onLevelLoaded(t,n){this.mainDetails=n.details}onSubtitleFragProcessed(t,n){const{frag:r,success:s}=n;if(this.fragContextChanged(r)||(mr(r)&&(this.fragPrevious=r),this.state=Ge.IDLE),!s)return;const i=this.tracksBuffered[this.currentTrackId];if(!i)return;let o;const a=r.start;for(let u=0;u<i.length;u++)if(a>=i[u].start&&a<=i[u].end){o=i[u];break}const l=r.start+r.duration;o?o.end=l:(o={start:a,end:l},i.push(o)),this.fragmentTracker.fragBuffered(r),this.fragBufferedComplete(r,null),this.media&&this.tick()}onBufferFlushing(t,n){const{startOffset:r,endOffset:s}=n;if(r===0&&s!==Number.POSITIVE_INFINITY){const i=s-1;if(i<=0)return;n.endOffsetSubtitles=Math.max(0,i),this.tracksBuffered.forEach(o=>{for(let a=0;a<o.length;){if(o[a].end<=i){o.shift();continue}else if(o[a].start<i)o[a].start=i;else break;a++}}),this.fragmentTracker.removeFragmentsInRange(r,i,pt.SUBTITLE)}}onError(t,n){const r=n.frag;r?.type===pt.SUBTITLE&&(n.details===Re.FRAG_GAP&&this.fragmentTracker.fragBuffered(r,!0),this.fragCurrent&&this.fragCurrent.abortRequests(),this.state!==Ge.STOPPED&&(this.state=Ge.IDLE))}onSubtitleTracksUpdated(t,{subtitleTracks:n}){if(this.levels&&h5(this.levels,n)){this.levels=n.map(r=>new dh(r));return}this.tracksBuffered=[],this.levels=n.map(r=>{const s=new dh(r);return this.tracksBuffered[s.id]=[],s}),this.fragmentTracker.removeFragmentsInRange(0,Number.POSITIVE_INFINITY,pt.SUBTITLE),this.fragPrevious=null,this.mediaBuffer=null}onSubtitleTrackSwitch(t,n){var r;if(this.currentTrackId=n.id,!((r=this.levels)!=null&&r.length)||this.currentTrackId===-1){this.clearInterval();return}const s=this.levels[this.currentTrackId];s!=null&&s.details?this.mediaBuffer=this.mediaBufferTimeRanges:this.mediaBuffer=null,s&&this.state!==Ge.STOPPED&&this.setInterval(rL)}onSubtitleTrackLoaded(t,n){var r;const{currentTrackId:s,levels:i}=this,{details:o,id:a}=n;if(!i){this.warn(`Subtitle tracks were reset while loading level ${a}`);return}const l=i[a];if(a>=i.length||!l)return;this.log(`Subtitle track ${a} loaded [${o.startSN},${o.endSN}]${o.lastPartSn?`[part-${o.lastPartSn}-${o.lastPartIndex}]`:""},duration:${o.totalduration}`),this.mediaBuffer=this.mediaBufferTimeRanges;let u=0;if(o.live||(r=l.details)!=null&&r.live){if(o.deltaUpdateFailed)return;const d=this.mainDetails;if(!d){this.startFragRequested=!1;return}const f=d.fragments[0];if(!l.details)o.hasProgramDateTime&&d.hasProgramDateTime?(gg(o,d),u=o.fragmentStart):f&&(u=f.start,T2(o,u));else{var c;u=this.alignPlaylists(o,l.details,(c=this.levelLastLoaded)==null?void 0:c.details),u===0&&f&&(u=f.start,T2(o,u))}d&&!this.startFragRequested&&this.setStartPosition(d,u)}l.details=o,this.levelLastLoaded=l,a===s&&(this.hls.trigger(G.SUBTITLE_TRACK_UPDATED,{details:o,id:a,groupId:n.groupId}),this.tick(),o.live&&!this.fragCurrent&&this.media&&this.state===Ge.IDLE&&(Au(null,o.fragments,this.media.currentTime,0)||(this.warn("Subtitle playlist not aligned with playback"),l.details=void 0)))}_handleFragmentLoadComplete(t){const{frag:n,payload:r}=t,s=n.decryptdata,i=this.hls;if(!this.fragContextChanged(n)&&r&&r.byteLength>0&&s!=null&&s.key&&s.iv&&Ec(s.method)){const o=performance.now();
vendor: 29,045 bytes, lines 120-131
120this.decrypter.decrypt(new Uint8Array(r),s.key.buffer,s.iv.buffer,FE(s.method)).catch(a=>{throw i.trigger(G.ERROR,{type:bt.MEDIA_ERROR,details:Re.FRAG_DECRYPT_ERROR,fatal:!1,error:a,reason:a.message,frag:n}),a}).then(a=>{const l=performance.now();i.trigger(G.FRAG_DECRYPTED,{frag:n,payload:a,stats:{tstart:o,tdecrypt:l}})}).catch(a=>{this.warn(`${a.name}: ${a.message}`),this.state=Ge.IDLE})}}doTick(){if(!this.media){this.state=Ge.IDLE;return}if(this.state===Ge.IDLE){const{currentTrackId:t,levels:n}=this,r=n?.[t];if(!r||!n.length||!r.details||this.waitForLive(r))return;const{config:s}=this,i=this.getLoadPosition(),o=Ft.bufferedInfo(this.tracksBuffered[this.currentTrackId]||[],i,s.maxBufferHole),{end:a,len:l}=o,u=r.details,c=this.hls.maxBufferLength+u.levelTargetDuration;if(l>c)return;const d=u.fragments,f=d.length,h=u.edge;let p=null;const m=this.fragPrevious;if(a<h){const g=s.maxFragLookUpTolerance,y=a>h-g?0:g;p=Au(m,d,Math.max(d[0].start,a),y),!p&&m&&m.start<d[0].start&&(p=d[0])}else p=d[f-1];if(p=this.filterReplacedPrimary(p,r.details),!p)return;const v=p.sn-u.startSN,x=d[v-1];if(x&&x.cc===p.cc&&this.fragmentTracker.getState(x)===br.NOT_LOADED&&(p=x),this.fragmentTracker.getState(p)===br.NOT_LOADED){const g=this.mapToInitFragWhenRequired(p);g&&this.loadFragment(g,r,a)}}}loadFragment(t,n,r){mr(t)?super.loadFragment(t,n,r):this._loadInitSegment(t,n)}get mediaBufferTimeRanges(){return new I0e(this.tracksBuffered[this.currentTrackId]||[])}}class I0e{constructor(t){this.buffered=void 0;const n=(r,s,i)=>{if(s=s>>>0,s>i-1)throw new DOMException(`Failed to execute '${r}' on 'TimeRanges': The index provided (${s}) is greater than the maximum bound (${i})`);return t[s][r]};this.buffered={get length(){return t.length},end(r){return n("end",r,t.length)},start(r){return n("start",r,t.length)}}}}const L0e={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},I5=e=>String.fromCharCode(L0e[e]||e),Qi=15,na=100,D0e={17:1,18:3,21:5,22:7,23:9,16:11,19:12,20:14},P0e={17:2,18:4,21:6,22:8,23:10,19:13,20:15},R0e={25:1,26:3,29:5,30:7,31:9,24:11,27:12,28:14},O0e={25:2,26:4,29:6,30:8,31:10,27:13,28:15},$0e=["white","green","blue","cyan","red","yellow","magenta","black","transparent"];class M0e{constructor(){this.time=null,this.verboseLevel=0}log(t,n){if(this.verboseLevel>=t){const r=typeof n=="function"?n():n;En.log(`${this.time} [${t}] ${r}`)}}}const Ul=function(t){const n=[];for(let r=0;r<t.length;r++)n.push(t[r].toString(16));return n};class L5{constructor(){this.foreground="white",this.underline=!1,this.italics=!1,this.background="black",this.flash=!1}reset(){this.foreground="white",this.underline=!1,this.italics=!1,this.background="black",this.flash=!1}setStyles(t){const n=["foreground","underline","italics","background","flash"];for(let r=0;r<n.length;r++){const s=n[r];t.hasOwnProperty(s)&&(this[s]=t[s])}}isDefault(){return this.foreground==="white"&&!this.underline&&!this.italics&&this.background==="black"&&!this.flash}equals(t){return this.foreground===t.foreground&&this.underline===t.underline&&this.italics===t.italics&&this.background===t.background&&this.flash===t.flash}copy(t){this.foreground=t.foreground,this.underline=t.underline,this.italics=t.italics,this.background=t.background,this.flash=t.flash}toString(){return"color="+this.foreground+", underline="+this.underline+", italics="+this.italics+", background="+this.background+", flash="+this.flash}}class F0e{constructor(){this.uchar=" ",this.penState=new L5}reset(){this.uchar=" ",this.penState.reset()}setChar(t,n){this.uchar=t,this.penState.copy(n)}setPenState(t){this.penState.copy(t)}equals(t){return this.uchar===t.uchar&&this.penState.equals(t.penState)}copy(t){this.uchar=t.uchar,this.penState.copy(t.penState)}isEmpty(){return this.uchar===" "&&this.penState.isDefault()}}class B0e{constructor(t){this.chars=[],this.pos=0,this.currPenState=new L5,this.cueStartTime=null,this.logger=void 0;for(let n=0;n<na;n++)this.chars.push(new F0e);this.logger=t}equals(t){for(let n=0;n<na;n++)if(!this.chars[n].equals(t.chars[n]))return!1;return!0}copy(t){for(let n=0;n<na;n++)this.chars[n].copy(t.chars[n])}isEmpty(){let t=!0;for(let n=0;n<na;n++)if(!this.chars[n].isEmpty()){t=!1;break}return t}setCursor(t){this.pos!==t&&(this.pos=t),this.pos<0?(this.logger.log(3,"Negative cursor position "+this.pos),this.pos=0):this.pos>na&&(this.logger.log(3,"Too large cursor position "+this.pos),this.pos=na)}moveCursor(t){const n=this.pos+t;if(t>1)for(let r=this.pos+1;r<n+1;r++)this.chars[r].setPenState(this.currPenState);this.setCursor(n)}backSpace(){this.moveCursor(-1),this.chars[this.pos].setChar(" ",this.currPenState)}insertChar(t){t>=144&&this.backSpace();const n=I5(t);if(this.pos>=na){this.logger.log(0,()=>"Cannot insert "+t.toString(16)+" ("+n+") at position "+this.pos+". Skipping it!");return}this.chars[this.pos].setChar(n,this.currPenState),this.moveCursor(1)}clearFromPos(t){let n;for(n=t;n<na;n++)this.chars[n].reset()}clear(){this.clearFromPos(0),this.pos=0,this.currPenState.reset()}clearToEndOfRow(){this.clearFromPos(this.pos)}getTextString(){const t=[];let n=!0;for(let r=0;r<na;r++){const s=this.chars[r].uchar;s!==" "&&(n=!1),t.push(s)}return n?"":t.join("")}setPenStyles(t){this.currPenState.setStyles(t),this.chars[this.pos].setPenState(this.currPenState)}}class Ax{constructor(t){this.rows=[],this.currRow=Qi-1,this.nrRollUpRows=null,this.lastOutputScreen=null,this.logger=void 0;for(let n=0;n<Qi;n++)this.rows.push(new B0e(t));this.logger=t}reset(){for(let t=0;t<Qi;t++)this.rows[t].clear();this.currRow=Qi-1}equals(t){let n=!0;for(let r=0;r<Qi;r++)if(!this.rows[r].equals(t.rows[r])){n=!1;break}return n}copy(t){for(let n=0;n<Qi;n++)this.rows[n].copy(t.rows[n])}isEmpty(){let t=!0;for(let n=0;n<Qi;n++)if(!this.rows[n].isEmpty()){t=!1;break}return t}backSpace(){this.rows[this.currRow].backSpace()}clearToEndOfRow(){this.rows[this.currRow].clearToEndOfRow()}insertChar(t){this.rows[this.currRow].insertChar(t)}setPen(t){this.rows[this.currRow].setPenStyles(t)}moveCursor(t){this.rows[this.currRow].moveCursor(t)}setCursor(t){this.logger.log(2,"setCursor: "+t),this.rows[this.currRow].setCursor(t)}setPAC(t){this.logger.log(2,()=>"pacData = "+Ln(t));let n=t.row-1;if(this.nrRollUpRows&&n<this.nrRollUpRows-1&&(n=this.nrRollUpRows-1),this.nrRollUpRows&&this.currRow!==n){for(let a=0;a<Qi;a++)this.rows[a].clear();const i=this.currRow+1-this.nrRollUpRows,o=this.lastOutputScreen;if(o){const a=o.rows[i].cueStartTime,l=this.logger.time;if(a!==null&&l!==null&&a<l)for(let u=0;u<this.nrRollUpRows;u++)this.rows[n-this.nrRollUpRows+u+1].copy(o.rows[i+u])}}this.currRow=n;const r=this.rows[this.currRow];if(t.indent!==null){const i=t.indent,o=Math.max(i-1,0);r.setCursor(t.indent),t.color=r.chars[o].penState.foreground}const s={foreground:t.color,underline:t.underline,italics:t.italics,background:"black",flash:!1};this.setPen(s)}setBkgData(t){this.logger.log(2,()=>"bkgData = "+Ln(t)),this.backSpace(),this.setPen(t),this.insertChar(32)}setRollUpRows(t){this.nrRollUpRows=t}rollUp(){if(this.nrRollUpRows===null){this.logger.log(3,"roll_up but nrRollUpRows not set yet");return}this.logger.log(1,()=>this.getDisplayText());const t=this.currRow+1-this.nrRollUpRows,n=this.rows.splice(t,1)[0];n.clear(),this.rows.splice(this.currRow,0,n),this.logger.log(2,"Rolling up")}getDisplayText(t){t=t||!1;const n=[];let r="",s=-1;for(let i=0;i<Qi;i++){const o=this.rows[i].getTextString();o&&(s=i+1,t?n.push("Row "+s+": '"+o+"'"):n.push(o.trim()))}return n.length>0&&(t?r="["+n.join(" | ")+"]":r=n.join(`
121`)),r}getTextAndFormat(){return this.rows}}class sL{constructor(t,n,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=n,this.mode=null,this.verbose=0,this.displayedMemory=new Ax(r),this.nonDisplayedMemory=new Ax(r),this.lastOutputScreen=new Ax(r),this.currRollUpRow=this.displayedMemory.rows[Qi-1],this.writeScreen=this.displayedMemory,this.mode=null,this.cueStartTime=null,this.logger=r}reset(){this.mode=null,this.displayedMemory.reset(),this.nonDisplayedMemory.reset(),this.lastOutputScreen.reset(),this.outputFilter.reset(),this.currRollUpRow=this.displayedMemory.rows[Qi-1],this.writeScreen=this.displayedMemory,this.mode=null,this.cueStartTime=null}getHandler(){return this.outputFilter}setHandler(t){this.outputFilter=t}setPAC(t){this.writeScreen.setPAC(t)}setBkgData(t){this.writeScreen.setBkgData(t)}setMode(t){t!==this.mode&&(this.mode=t,this.logger.log(2,()=>"MODE="+t),this.mode==="MODE_POP-ON"?this.writeScreen=this.nonDisplayedMemory:(this.writeScreen=this.displayedMemory,this.writeScreen.reset()),this.mode!=="MODE_ROLL-UP"&&(this.displayedMemory.nrRollUpRows=null,this.nonDisplayedMemory.nrRollUpRows=null),this.mode=t)}insertChars(t){for(let r=0;r<t.length;r++)this.writeScreen.insertChar(t[r]);const n=this.writeScreen===this.displayedMemory?"DISP":"NON_DISP";this.logger.log(2,()=>n+": "+this.writeScreen.getDisplayText(!0)),(this.mode==="MODE_PAINT-ON"||this.mode==="MODE_ROLL-UP")&&(this.logger.log(1,()=>"DISPLAYED: "+this.displayedMemory.getDisplayText(!0)),this.outputDataUpdate())}ccRCL(){this.logger.log(2,"RCL - Resume Caption Loading"),this.setMode("MODE_POP-ON")}ccBS(){this.logger.log(2,"BS - BackSpace"),this.mode!=="MODE_TEXT"&&(this.writeScreen.backSpace(),this.writeScreen===this.displayedMemory&&this.outputDataUpdate())}ccAOF(){}ccAON(){}ccDER(){this.logger.log(2,"DER- Delete to End of Row"),this.writeScreen.clearToEndOfRow(),this.outputDataUpdate()}ccRU(t){this.logger.log(2,"RU("+t+") - Roll Up"),this.writeScreen=this.displayedMemory,this.setMode("MODE_ROLL-UP"),this.writeScreen.setRollUpRows(t)}ccFON(){this.logger.log(2,"FON - Flash On"),this.writeScreen.setPen({flash:!0})}ccRDC(){this.logger.log(2,"RDC - Resume Direct Captioning"),this.setMode("MODE_PAINT-ON")}ccTR(){this.logger.log(2,"TR"),this.setMode("MODE_TEXT")}ccRTD(){this.logger.log(2,"RTD"),this.setMode("MODE_TEXT")}ccEDM(){this.logger.log(2,"EDM - Erase Displayed Memory"),this.displayedMemory.reset(),this.outputDataUpdate(!0)}ccCR(){this.logger.log(2,"CR - Carriage Return"),this.writeScreen.rollUp(),this.outputDataUpdate(!0)}ccENM(){this.logger.log(2,"ENM - Erase Non-displayed Memory"),this.nonDisplayedMemory.reset()}ccEOC(){if(this.logger.log(2,"EOC - End Of Caption"),this.mode==="MODE_POP-ON"){const t=this.displayedMemory;this.displayedMemory=this.nonDisplayedMemory,this.nonDisplayedMemory=t,this.writeScreen=this.nonDisplayedMemory,this.logger.log(1,()=>"DISP: "+this.displayedMemory.getDisplayText())}this.outputDataUpdate(!0)}ccTO(t){this.logger.log(2,"TO("+t+") - Tab Offset"),this.writeScreen.moveCursor(t)}ccMIDROW(t){const n={flash:!1};if(n.underline=t%2===1,n.italics=t>=46,n.italics)n.foreground="white";else{const r=Math.floor(t/2)-16,s=["white","green","blue","cyan","red","yellow","magenta"];n.foreground=s[r]}this.logger.log(2,"MIDROW: "+Ln(n)),this.writeScreen.setPen(n)}outputDataUpdate(t=!1){const n=this.logger.time;n!==null&&this.outputFilter&&(this.cueStartTime===null&&!this.displayedMemory.isEmpty()?this.cueStartTime=n:this.displayedMemory.equals(this.lastOutputScreen)||(this.outputFilter.newCue(this.cueStartTime,n,this.lastOutputScreen),t&&this.outputFilter.dispatchCue&&this.outputFilter.dispatchCue(),this.cueStartTime=this.displayedMemory.isEmpty()?null:n),this.lastOutputScreen.copy(this.displayedMemory))}cueSplitAtTime(t){this.outputFilter&&(this.displayedMemory.isEmpty()||(this.outputFilter.newCue&&this.outputFilter.newCue(this.cueStartTime,t,this.displayedMemory),this.cueStartTime=t))}}class iL{constructor(t,n,r){this.channels=void 0,this.currentChannel=0,this.cmdHistory=V0e(),this.logger=void 0;const s=this.logger=new M0e;this.channels=[null,new sL(t,n,s),new sL(t+1,r,s)]}getHandler(t){return this.channels[t].getHandler()}setHandler(t,n){this.channels[t].setHandler(n)}addData(t,n){this.logger.time=t;for(let r=0;r<n.length;r+=2){const s=n[r]&127,i=n[r+1]&127;let o=!1,a=null;if(s===0&&i===0)continue;this.logger.log(3,()=>"["+Ul([n[r],n[r+1]])+"] -> ("+Ul([s,i])+")");const l=this.cmdHistory;if(s>=16&&s<=31){if(N0e(s,i,l)){up(null,null,l),this.logger.log(3,()=>"Repeated command ("+Ul([s,i])+") is dropped");continue}up(s,i,this.cmdHistory),o=this.parseCmd(s,i),o||(o=this.parseMidrow(s,i)),o||(o=this.parsePAC(s,i)),o||(o=this.parseBackgroundAttributes(s,i))}else up(null,null,l);if(!o&&(a=this.parseChars(s,i),a)){const c=this.currentChannel;c&&c>0?this.channels[c].insertChars(a):this.logger.log(2,"No channel found yet. TEXT-MODE?")}!o&&!a&&this.logger.log(2,()=>"Couldn't parse cleaned data "+Ul([s,i])+" orig: "+Ul([n[r],n[r+1]]))}}parseCmd(t,n){const r=(t===20||t===28||t===21||t===29)&&n>=32&&n<=47,s=(t===23||t===31)&&n>=33&&n<=35;if(!(r||s))return!1;const i=t===20||t===21||t===23?1:2,o=this.channels[i];return t===20||t===21||t===28||t===29?n===32?o.ccRCL():n===33?o.ccBS():n===34?o.ccAOF():n===35?o.ccAON():n===36?o.ccDER():n===37?o.ccRU(2):n===38?o.ccRU(3):n===39?o.ccRU(4):n===40?o.ccFON():n===41?o.ccRDC():n===42?o.ccTR():n===43?o.ccRTD():n===44?o.ccEDM():n===45?o.ccCR():n===46?o.ccENM():n===47&&o.ccEOC():o.ccTO(n-32),this.currentChannel=i,!0}parseMidrow(t,n){let r=0;if((t===17||t===25)&&n>=32&&n<=47){if(t===17?r=1:r=2,r!==this.currentChannel)return this.logger.log(0,"Mismatch channel in midrow parsing"),!1;const s=this.channels[r];return s?(s.ccMIDROW(n),this.logger.log(3,()=>"MIDROW ("+Ul([t,n])+")"),!0):!1}return!1}parsePAC(t,n){let r;const s=(t>=17&&t<=23||t>=25&&t<=31)&&n>=64&&n<=127,i=(t===16||t===24)&&n>=64&&n<=95;if(!(s||i))return!1;const o=t<=23?1:2;n>=64&&n<=95?r=o===1?D0e[t]:R0e[t]:r=o===1?P0e[t]:O0e[t];const a=this.channels[o];return a?(a.setPAC(this.interpretPAC(r,n)),this.currentChannel=o,!0):!1}interpretPAC(t,n){let r;const s={color:null,italics:!1,indent:null,underline:!1,row:t};return n>95?r=n-96:r=n-64,s.underline=(r&1)===1,r<=13?s.color=["white","green","blue","cyan","red","yellow","magenta","white"][Math.floor(r/2)]:r<=15?(s.italics=!0,s.color="white"):s.indent=Math.floor((r-16)/2)*4,s}parseChars(t,n){let r,s=null,i=null;if(t>=25?(r=2,i=t-8):(r=1,i=t),i>=17&&i<=19){let o;i===17?o=n+80:i===18?o=n+112:o=n+144,this.logger.log(2,()=>"Special char '"+I5(o)+"' in channel "+r),s=[o]}else t>=32&&t<=127&&(s=n===0?[t]:[t,n]);return s&&this.logger.log(3,()=>"Char codes =  "+Ul(s).join(",")),s}parseBackgroundAttributes(t,n){const r=(t===16||t===24)&&n>=32&&n<=47,s=(t===23||t===31)&&n>=45&&n<=47;if(!(r||s))return!1;let i;const o={};t===16||t===24?(i=Math.floor((n-32)/2),o.background=$0e[i],n%2===1&&(o.background=o.background+"_semi")):n===45?o.background="transparent":(o.foreground="black",n===47&&(o.underline=!0));const a=t<=23?1:2;return this.channels[a].setBkgData(o),!0}reset(){for(let t=0;t<Object.keys(this.channels).length;t++){const n=this.channels[t];n&&n.reset()}up(null,null,this.cmdHistory)}cueSplitAtTime(t){for(let n=0;n<this.channels.length;n++){const r=this.channels[n];r&&r.cueSplitAtTime(t)}}}function up(e,t,n){n.a=e,n.b=t}function N0e(e,t,n){return n.a===e&&n.b===t}function V0e(){return{a:null,b:null}}var ZE=(function(){if(vg!=null&&vg.VTTCue)return self.VTTCue;const e=["","lr","rl"],t=["start","middle","end","left","right"];function n(a,l){if(typeof l!="string"||!Array.isArray(a))return!1;const u=l.toLowerCase();return~a.indexOf(u)?u:!1}function r(a){return n(e,a)}function s(a){return n(t,a)}function i(a,...l){let u=1;for(;u<arguments.length;u++){const c=arguments[u];for(const d in c)a[d]=c[d]}return a}function o(a,l,u){const c=this,d={enumerable:!0};c.hasBeenReset=!1;let f="",h=!1,p=a,m=l,v=u,x=null,g="",y=!0,_="auto",E="start",w=50,T="middle",C=50,I="middle";Object.defineProperty(c,"id",i({},d,{get:function(){return f},set:function(k){f=""+k}})),Object.defineProperty(c,"pauseOnExit",i({},d,{get:function(){return h},set:function(k){h=!!k}})),Object.defineProperty(c,"startTime",i({},d,{get:function(){return p},set:function(k){if(typeof k!="number")throw new TypeError("Start time must be set to a number.");p=k,this.hasBeenReset=!0}})),Object.defineProperty(c,"endTime",i({},d,{get:function(){return m},set:function(k){if(typeof k!="number")throw new TypeError("End time must be set to a number.");m=k,this.hasBeenReset=!0}})),Object.defineProperty(c,"text",i({},d,{get:function(){return v},set:function(k){v=""+k,this.hasBeenReset=!0}})),Object.defineProperty(c,"region",i({},d,{get:function(){return x},set:function(k){x=k,this.hasBeenReset=!0}})),Object.defineProperty(c,"vertical",i({},d,{get:function(){return g},set:function(k){const $=r(k);if($===!1)throw new SyntaxError("An invalid or illegal string was specified.");g=$,this.hasBeenReset=!0}})),Object.defineProperty(c,"snapToLines",i({},d,{get:function(){return y},set:function(k){y=!!k,this.hasBeenReset=!0}})),Object.defineProperty(c,"line",i({},d,{get:function(){return _},set:function(k){if(typeof k!="number"&&k!=="auto")throw new SyntaxError("An invalid number or illegal string was specified.");_=k,this.hasBeenReset=!0}})),Object.defineProperty(c,"lineAlign",i({},d,{get:function(){return E},set:function(k){const $=s(k);if(!$)throw new SyntaxError("An invalid or illegal string was specified.");E=$,this.hasBeenReset=!0}})),Object.defineProperty(c,"position",i({},d,{get:function(){return w},set:function(k){if(k<0||k>100)throw new Error("Position must be between 0 and 100.");w=k,this.hasBeenReset=!0}})),Object.defineProperty(c,"positionAlign",i({},d,{get:function(){return T},set:function(k){const $=s(k);if(!$)throw new SyntaxError("An invalid or illegal string was specified.");T=$,this.hasBeenReset=!0}})),Object.defineProperty(c,"size",i({},d,{get:function(){return C},set:function(k){if(k<0||k>100)throw new Error("Size must be between 0 and 100.");C=k,this.hasBeenReset=!0}})),Object.defineProperty(c,"align",i({},d,{get:function(){return I},set:function(k){const $=s(k);if(!$)throw new SyntaxError("An invalid or illegal string was specified.");I=$,this.hasBeenReset=!0}})),c.displayState=void 0}return o.prototype.getCueAsHTML=function(){return self.WebVTT.convertCueToDOMTree(self,this.text)},o})();class U0e{decode(t,n){if(!t)return"";if(typeof t!="string")throw new Error("Error - expected string data.");return decodeURIComponent(encodeURIComponent(t))}}function D5(e){function t(r,s,i,o){return(r|0)*3600+(s|0)*60+(i|0)+parseFloat(o||0)}const n=e.match(/^(?:(\d+):)?(\d{2}):(\d{2})(\.\d+)?/);return n?parseFloat(n[2])>59?t(n[2],n[3],0,n[4]):t(n[1],n[2],n[3],n[4]):null}class j0e{constructor(){this.values=Object.create(null)}set(t,n){!this.get(t)&&n!==""&&(this.values[t]=n)}get(t,n,r){return r?this.has(t)?this.values[t]:n[r]:this.has(t)?this.values[t]:n}has(t){return t in this.values}alt(t,n,r){for(let s=0;s<r.length;++s)if(n===r[s]){this.set(t,n);break}}integer(t,n){/^-?\d+$/.test(n)&&this.set(t,parseInt(n,10))}percent(t,n){if(/^([\d]{1,3})(\.[\d]*)?%$/.test(n)){const r=parseFloat(n);if(r>=0&&r<=100)return this.set(t,r),!0}return!1}}function P5(e,t,n,r){const s=r?e.split(r):[e];for(const i in s){if(typeof s[i]!="string")continue;const o=s[i].split(n);if(o.length!==2)continue;const a=o[0],l=o[1];t(a,l)}}const R2=new ZE(0,0,""),cp=R2.align==="middle"?"middle":"center";function z0e(e,t,n){const r=e;function s(){const a=D5(e);if(a===null)throw new Error("Malformed timestamp: "+r);return e=e.replace(/^[^\sa-zA-Z-]+/,""),a}function i(a,l){const u=new j0e;P5(a,function(f,h){let p;switch(f){case"region":for(let m=n.length-1;m>=0;m--)if(n[m].id===h){u.set(f,n[m].region);break}break;case"vertical":u.alt(f,h,["rl","lr"]);break;case"line":p=h.split(","),u.integer(f,p[0]),u.percent(f,p[0])&&u.set("snapToLines",!1),u.alt(f,p[0],["auto"]),p.length===2&&u.alt("lineAlign",p[1],["start",cp,"end"]);break;case"position":p=h.split(","),u.percent(f,p[0]),p.length===2&&u.alt("positionAlign",p[1],["start",cp,"end","line-left","line-right","auto"]);break;case"size":u.percent(f,h);break;case"align":u.alt(f,h,["start",cp,"end","left","right"]);break}},/:/,/\s/),l.region=u.get("region",null),l.vertical=u.get("vertical","");let c=u.get("line","auto");c==="auto"&&R2.line===-1&&(c=-1),l.line=c,l.lineAlign=u.get("lineAlign","start"),l.snapToLines=u.get("snapToLines",!0),l.size=u.get("size",100),l.align=u.get("align",cp);let d=u.get("position","auto");d==="auto"&&R2.position===50&&(d=l.align==="start"||l.align==="left"?0:l.align==="end"||l.align==="right"?100:50),l.position=d}function o(){e=e.replace(/^\s+/,"")}if(o(),t.startTime=s(),o(),e.slice(0,3)!=="-->")throw new Error("Malformed time stamp (time stamps must be separated by '-->'): "+r);e=e.slice(3),o(),t.endTime=s(),o(),i(e,t)}function R5(e){return e.replace(/<br(?: \/)?>/gi,`
122`)}class H0e{constructor(){this.state="INITIAL",this.buffer="",this.decoder=new U0e,this.regionList=[],this.cue=null,this.oncue=void 0,this.onparsingerror=void 0,this.onflush=void 0}parse(t){const n=this;t&&(n.buffer+=n.decoder.decode(t,{stream:!0}));function r(){let i=n.buffer,o=0;for(i=R5(i);o<i.length&&i[o]!=="\r"&&i[o]!==`
123`;)++o;const a=i.slice(0,o);return i[o]==="\r"&&++o,i[o]===`
124`&&++o,n.buffer=i.slice(o),a}function s(i){P5(i,function(o,a){},/:/)}try{let i="";if(n.state==="INITIAL"){if(!/\r\n|\n/.test(n.buffer))return this;i=r();const a=i.match(/^()?WEBVTT([ \t].*)?$/);if(!(a!=null&&a[0]))throw new Error("Malformed WebVTT signature.");n.state="HEADER"}let o=!1;for(;n.buffer;){if(!/\r\n|\n/.test(n.buffer))return this;switch(o?o=!1:i=r(),n.state){case"HEADER":/:/.test(i)?s(i):i||(n.state="ID");continue;case"NOTE":i||(n.state="ID");continue;case"ID":if(/^NOTE($|[ \t])/.test(i)){n.state="NOTE";break}if(!i)continue;if(n.cue=new ZE(0,0,""),n.state="CUE",i.indexOf("-->")===-1){n.cue.id=i;continue}case"CUE":if(!n.cue){n.state="BADCUE";continue}try{z0e(i,n.cue,n.regionList)}catch{n.cue=null,n.state="BADCUE";continue}n.state="CUETEXT";continue;case"CUETEXT":{const a=i.indexOf("-->")!==-1;if(!i||a&&(o=!0)){n.oncue&&n.cue&&n.oncue(n.cue),n.cue=null,n.state="ID";continue}if(n.cue===null)continue;n.cue.text&&(n.cue.text+=`
125`),n.cue.text+=i}continue;case"BADCUE":i||(n.state="ID")}}}catch{n.state==="CUETEXT"&&n.cue&&n.oncue&&n.oncue(n.cue),n.cue=null,n.state=n.state==="INITIAL"?"BADWEBVTT":"BADCUE"}return this}flush(){const t=this;try{if((t.cue||t.state==="HEADER")&&(t.buffer+=`
126
127`,t.parse()),t.state==="INITIAL"||t.state==="BADWEBVTT")throw new Error("Malformed WebVTT signature.")}catch(n){t.onparsingerror&&t.onparsingerror(n)}return t.onflush&&t.onflush(),this}}const G0e=/\r\n|\n\r|\n|\r/g,kx=function(t,n,r=0){return t.slice(r,r+n.length)===n},K0e=function(t){let n=parseInt(t.slice(-3));const r=parseInt(t.slice(-6,-4)),s=parseInt(t.slice(-9,-7)),i=t.length>9?parseInt(t.substring(0,t.indexOf(":"))):0;if(!lt(n)||!lt(r)||!lt(s)||!lt(i))throw Error(`Malformed X-TIMESTAMP-MAP: Local:${t}`);return n+=1e3*r,n+=60*1e3*s,n+=3600*1e3*i,n};function JE(e,t,n){return Tf(e.toString())+Tf(t.toString())+Tf(n)}const W0e=function(t,n,r){let s=t[n],i=t[s.prevCC];if(!i||!i.new&&s.new){t.ccOffset=t.presentationOffset=s.start,s.new=!1;return}for(;(o=i)!=null&&o.new;){var o;t.ccOffset+=s.start-i.start,s.new=!1,s=i,i=t[s.prevCC]}t.presentationOffset=r};function q0e(e,t,n,r,s,i,o){const a=new H0e,l=ui(new Uint8Array(e)).trim().replace(G0e,`
128`).split(`
129`),u=[],c=t?ehe(t.baseTime,t.timescale):0;let d="00:00.000",f=0,h=0,p,m=!0;a.oncue=function(v){const x=n[r];let g=n.ccOffset;const y=(f-c)/9e4;if(x!=null&&x.new&&(h!==void 0?g=n.ccOffset=x.start:W0e(n,r,y)),y){if(!t){p=new Error("Missing initPTS for VTT MPEGTS");return}g=y-n.presentationOffset}const _=v.endTime-v.startTime,E=ti((v.startTime+g-h)*9e4,s*9e4)/9e4;v.startTime=Math.max(E,0),v.endTime=Math.max(E+_,0);const w=v.text.trim();v.text=decodeURIComponent(encodeURIComponent(w)),v.id||(v.id=JE(v.startTime,v.endTime,w)),v.endTime>0&&u.push(v)},a.onparsingerror=function(v){p=v},a.onflush=function(){if(p){o(p);return}i(u)},l.forEach(v=>{if(m)if(kx(v,"X-TIMESTAMP-MAP=")){m=!1,v.slice(16).split(",").forEach(x=>{kx(x,"LOCAL:")?d=x.slice(6):kx(x,"MPEGTS:")&&(f=parseInt(x.slice(7)))});try{h=K0e(d)/1e3}catch(x){p=x}return}else v===""&&(m=!1);a.parse(v+`
130`)}),a.flush()}const Ix="stpp.ttml.im1t",O5=/^(\d{2,}):(\d{2}):(\d{2}):(\d{2})\.?(\d+)?$/,$5=/^(\d*(?:\.\d*)?)(h|m|s|ms|f|t)$/,Y0e={left:"start",center:"center",right:"end",start:"start",end:"end"};function oL(e,t,n,r){const s=Kt(new Uint8Array(e),["mdat"]);if(s.length===0){r(new Error("Could not parse IMSC1 mdat"));return}const i=s.map(a=>ui(a)),o=Qfe(t.baseTime,1,t.timescale);try{i.forEach(a=>n(X0e(a,o)))}catch(a){r(a)}}function X0e(e,t){const s=new DOMParser().parseFromString(e,"text/xml").getElementsByTagName("tt")[0];if(!s)throw new Error("Invalid ttml");const i={frameRate:30,subFrameRate:1,frameRateMultiplier:0,tickRate:0},o=Object.keys(i).reduce((d,f)=>(d[f]=s.getAttribute(`ttp:${f}`)||i[f],d),{}),a=s.getAttribute("xml:space")!=="preserve",l=aL(Lx(s,"styling","style")),u=aL(Lx(s,"layout","region")),c=Lx(s,"body","[begin]");return[].map.call(c,d=>{const f=M5(d,a);if(!f||!d.hasAttribute("begin"))return null;const h=Px(d.getAttribute("begin"),o),p=Px(d.getAttribute("dur"),o);let m=Px(d.getAttribute("end"),o);if(h===null)throw lL(d);if(m===null){if(p===null)throw lL(d);m=h+p}const v=new ZE(h-t,m-t,f);v.id=JE(v.startTime,v.endTime,v.text);const x=u[d.getAttribute("region")],g=l[d.getAttribute("style")],y=Z0e(x,g,l),{textAlign:_}=y;if(_){const E=Y0e[_];E&&(v.lineAlign=E),v.align=_}return kn(v,y),v}).filter(d=>d!==null)}function Lx(e,t,n){const r=e.getElementsByTagName(t)[0];return r?[].slice.call(r.querySelectorAll(n)):[]}function aL(e){return e.reduce((t,n)=>{const r=n.getAttribute("xml:id");return r&&(t[r]=n),t},{})}function M5(e,t){return[].slice.call(e.childNodes).reduce((n,r,s)=>{var i;return r.nodeName==="br"&&s?n+`
131`:(i=r.childNodes)!=null&&i.length?M5(r,t):t?n+r.textContent.trim().replace(/\s+/g," "):n+r.textContent},"")}function Z0e(e,t,n){const r="http://www.w3.org/ns/ttml#styling";let s=null;const i=["displayAlign","textAlign","color","backgroundColor","fontSize","fontFamily"],o=e!=null&&e.hasAttribute("style")?e.getAttribute("style"):null;return o&&n.hasOwnProperty(o)&&(s=n[o]),i.reduce((a,l)=>{const u=Dx(t,r,l)||Dx(e,r,l)||Dx(s,r,l);return u&&(a[l]=u),a},{})}function Dx(e,t,n){return e&&e.hasAttributeNS(t,n)?e.getAttributeNS(t,n):null}function lL(e){return new Error(`Could not parse ttml timestamp ${e}`)}function Px(e,t){if(!e)return null;let n=D5(e);return n===null&&(O5.test(e)?n=J0e(e,t):$5.test(e)&&(n=Q0e(e,t))),n}function J0e(e,t){const n=O5.exec(e),r=(n[4]|0)+(n[5]|0)/t.subFrameRate;return(n[1]|0)*3600+(n[2]|0)*60+(n[3]|0)+r/t.frameRate}function Q0e(e,t){const n=$5.exec(e),r=Number(n[1]);switch(n[2]){case"h":return r*3600;case"m":return r*60;case"ms":return r*1e3;case"f":return r/t.frameRate;case"t":return r/t.tickRate}return r}class dp{constructor(t,n){this.timelineController=void 0,this.cueRanges=[],this.trackName=void 0,this.startTime=null,this.endTime=null,this.screen=null,this.timelineController=t,this.trackName=n}dispatchCue(){this.startTime!==null&&(this.timelineController.addCues(this.trackName,this.startTime,this.endTime,this.screen,this.cueRanges),this.startTime=null)}newCue(t,n,r){(this.startTime===null||this.startTime>t)&&(this.startTime=t),this.endTime=n,this.screen=r,this.timelineController.createCaptionsTrack(this.trackName)}reset(){this.cueRanges=[],this.startTime=null}}class epe{constructor(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=cL(),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}}
vendor: 4,094 bytes, line 131
131,t.on(G.MEDIA_ATTACHING,this.onMediaAttaching,this),t.on(G.MEDIA_DETACHING,this.onMediaDetaching,this),t.on(G.MANIFEST_LOADING,this.onManifestLoading,this),t.on(G.MANIFEST_LOADED,this.onManifestLoaded,this),t.on(G.SUBTITLE_TRACKS_UPDATED,this.onSubtitleTracksUpdated,this),t.on(G.FRAG_LOADING,this.onFragLoading,this),t.on(G.FRAG_LOADED,this.onFragLoaded,this),t.on(G.FRAG_PARSING_USERDATA,this.onFragParsingUserdata,this),t.on(G.FRAG_DECRYPTED,this.onFragDecrypted,this),t.on(G.INIT_PTS_FOUND,this.onInitPtsFound,this),t.on(G.SUBTITLE_TRACKS_CLEARED,this.onSubtitleTracksCleared,this),t.on(G.BUFFER_FLUSHING,this.onBufferFlushing,this)}destroy(){const{hls:t}=this;t.off(G.MEDIA_ATTACHING,this.onMediaAttaching,this),t.off(G.MEDIA_DETACHING,this.onMediaDetaching,this),t.off(G.MANIFEST_LOADING,this.onManifestLoading,this),t.off(G.MANIFEST_LOADED,this.onManifestLoaded,this),t.off(G.SUBTITLE_TRACKS_UPDATED,this.onSubtitleTracksUpdated,this),t.off(G.FRAG_LOADING,this.onFragLoading,this),t.off(G.FRAG_LOADED,this.onFragLoaded,this),t.off(G.FRAG_PARSING_USERDATA,this.onFragParsingUserdata,this),t.off(G.FRAG_DECRYPTED,this.onFragDecrypted,this),t.off(G.INIT_PTS_FOUND,this.onInitPtsFound,this),t.off(G.SUBTITLE_TRACKS_CLEARED,this.onSubtitleTracksCleared,this),t.off(G.BUFFER_FLUSHING,this.onBufferFlushing,this),this.hls=this.config=this.media=null,this.cea608Parser1=this.cea608Parser2=void 0}initCea608Parsers(){const t=new dp(this,"textTrack1"),n=new dp(this,"textTrack2"),r=new dp(this,"textTrack3"),s=new dp(this,"textTrack4");this.cea608Parser1=new iL(1,t,n),this.cea608Parser2=new iL(3,r,s)}addCues(t,n,r,s,i){let o=!1;for(let a=i.length;a--;){const l=i[a],u=tpe(l[0],l[1],n,r);if(u>=0&&(l[0]=Math.min(l[0],n),l[1]=Math.max(l[1],r),o=!0,u/(r-n)>.5))return}if(o||i.push([n,r]),this.config.renderTextTracksNatively){const a=this.captionsTracks[t];this.Cues.newCue(a,n,r,s)}else{const a=this.Cues.newCue(null,n,r,s);this.hls.trigger(G.CUES_PARSED,{type:"captions",cues:a,track:t})}}onInitPtsFound(t,{frag:n,id:r,initPTS:s,timescale:i,trackId:o}){const{unparsedVttFrags:a}=this;r===pt.MAIN&&(this.initPTS[n.cc]={baseTime:s,timescale:i,trackId:o}),a.length&&(this.unparsedVttFrags=[],a.forEach(l=>{this.initPTS[l.frag.cc]?this.onFragLoaded(G.FRAG_LOADED,l):this.hls.trigger(G.SUBTITLE_FRAG_PROCESSED,{success:!1,frag:l.frag,error:new Error("Subtitle discontinuity domain does not match main")})}))}getExistingTrack(t,n){const{media:r}=this;if(r)for(let s=0;s<r.textTracks.length;s++){const i=r.textTracks[s];if(uL(i,{name:t,lang:n,characteristics:"transcribes-spoken-dialog,describes-music-and-sound"}))return i}return null}createCaptionsTrack(t){this.config.renderTextTracksNatively?this.createNativeTrack(t):this.createNonNativeTrack(t)}createNativeTrack(t){if(this.captionsTracks[t])return;const{captionsProperties:n,captionsTracks:r,media:s}=this,{label:i,languageCode:o}=n[t],a=this.getExistingTrack(i,o);if(a)r[t]=a,pc(r[t]),C5(r[t],s);else{const l=this.createTextTrack("captions",i,o);l&&(l[t]=!0,r[t]=l)}}createNonNativeTrack(t){if(this.nonNativeCaptionsTracks[t])return;const n=this.captionsProperties[t];if(!n)return;const r=n.label,s={_id:t,label:r,kind:"captions",default:n.media?!!n.media.default:!1,closedCaptions:n.media};this.nonNativeCaptionsTracks[t]=s,this.hls.trigger(G.NON_NATIVE_TEXT_TRACKS_FOUND,{tracks:[s]})}createTextTrack(t,n,r){const s=this.media;if(s)return s.addTextTrack(t,n,r)}onMediaAttaching(t,n){this.media=n.media,n.mediaSource||this._cleanTracks()}onMediaDetaching(t,n){const r=!!n.transferMedia;if(this.media=null,r)return;const{captionsTracks:s}=this;Object.keys(s).forEach(i=>{pc(s[i]),delete s[i]}),this.nonNativeCaptionsTracks={}}onManifestLoading(){this.lastCc=-1,this.lastSn=-1,this.lastPartIndex=-1,this.prevCC=-1,this.vttCCs=cL(),this._cleanTracks(),this.tracks=[],this.captionsTracks={},this.nonNativeCaptionsTracks={},this.textTracks=[],this.unparsedVttFrags=[],this.initPTS=[],this.cea608Parser1&&this.cea608Parser2&&(this.cea608Parser1.reset(),this.cea608Parser2.reset())}_cleanTracks(){const{media:t}=this;if(!t)return;const n=t.textTracks;
vendor: 12,631 bytes, line 131
131if(n)for(let r=0;r<n.length;r++)pc(n[r])}onSubtitleTracksUpdated(t,n){const r=n.subtitleTracks||[],s=r.some(i=>i.textCodec===Ix);if(this.config.enableWebVTT||s&&this.config.enableIMSC1){if(h5(this.tracks,r)){this.tracks=r;return}if(this.textTracks=[],this.tracks=r,this.config.renderTextTracksNatively){const o=this.media,a=o?$m(o.textTracks):null;if(this.tracks.forEach((l,u)=>{let c;if(a){let d=null;for(let f=0;f<a.length;f++)if(a[f]&&uL(a[f],l)){d=a[f],a[f]=null;break}d&&(c=d)}if(c)pc(c);else{const d=F5(l);c=this.createTextTrack(d,l.name,l.lang),c&&(c.mode="disabled")}c&&this.textTracks.push(c)}),a!=null&&a.length){const l=a.filter(u=>u!==null).map(u=>u.label);l.length&&this.hls.logger.warn(`Media element contains unused subtitle tracks: ${l.join(", ")}. Replace media element for each source to clear TextTracks and captions menu.`)}}else if(this.tracks.length){const o=this.tracks.map(a=>({label:a.name,kind:a.type.toLowerCase(),default:a.default,subtitleTrack:a}));this.hls.trigger(G.NON_NATIVE_TEXT_TRACKS_FOUND,{tracks:o})}}}onManifestLoaded(t,n){this.config.enableCEA708Captions&&n.captions&&n.captions.forEach(r=>{const s=/(?:CC|SERVICE)([1-4])/.exec(r.instreamId);if(!s)return;const i=`textTrack${s[1]}`,o=this.captionsProperties[i];o&&(o.label=r.name,r.lang&&(o.languageCode=r.lang),o.media=r)})}closedCaptionsForLevel(t){const n=this.hls.levels[t.level];return n?.attrs["CLOSED-CAPTIONS"]}onFragLoading(t,n){if(this.enabled&&n.frag.type===pt.MAIN){var r,s;const{cea608Parser1:i,cea608Parser2:o,lastSn:a}=this,{cc:l,sn:u}=n.frag,c=(r=(s=n.part)==null?void 0:s.index)!=null?r:-1;i&&o&&(u!==a+1||u===a&&c!==this.lastPartIndex+1||l!==this.lastCc)&&(i.reset(),o.reset()),this.lastCc=l,this.lastSn=u,this.lastPartIndex=c}}onFragLoaded(t,n){const{frag:r,payload:s}=n;if(r.type===pt.SUBTITLE)if(s.byteLength){const i=r.decryptdata,o="stats"in n;if(i==null||!i.encrypted||o){const a=this.tracks[r.level],l=this.vttCCs;l[r.cc]||(l[r.cc]={start:r.start,prevCC:this.prevCC,new:!0},this.prevCC=r.cc),a&&a.textCodec===Ix?this._parseIMSC1(r,s):this._parseVTTs(n)}}else this.hls.trigger(G.SUBTITLE_FRAG_PROCESSED,{success:!1,frag:r,error:new Error("Empty subtitle payload")})}_parseIMSC1(t,n){const r=this.hls;oL(n,this.initPTS[t.cc],s=>{this._appendCues(s,t.level),r.trigger(G.SUBTITLE_FRAG_PROCESSED,{success:!0,frag:t})},s=>{r.logger.log(`Failed to parse IMSC1: ${s}`),r.trigger(G.SUBTITLE_FRAG_PROCESSED,{success:!1,frag:t,error:s})})}_parseVTTs(t){var n;const{frag:r,payload:s}=t,{initPTS:i,unparsedVttFrags:o}=this,a=i.length-1;if(!i[r.cc]&&a===-1){o.push(t);return}const l=this.hls,u=(n=r.initSegment)!=null&&n.data?ji(r.initSegment.data,new Uint8Array(s)).buffer:s;q0e(u,this.initPTS[r.cc],this.vttCCs,r.cc,r.start,c=>{this._appendCues(c,r.level),l.trigger(G.SUBTITLE_FRAG_PROCESSED,{success:!0,frag:r})},c=>{const d=c.message==="Missing initPTS for VTT MPEGTS";d?o.push(t):this._fallbackToIMSC1(r,s),l.logger.log(`Failed to parse VTT cue: ${c}`),!(d&&a>r.cc)&&l.trigger(G.SUBTITLE_FRAG_PROCESSED,{success:!1,frag:r,error:c})})}_fallbackToIMSC1(t,n){const r=this.tracks[t.level];r.textCodec||oL(n,this.initPTS[t.cc],()=>{r.textCodec=Ix,this._parseIMSC1(t,n)},()=>{r.textCodec="wvtt"})}_appendCues(t,n){const r=this.hls;if(this.config.renderTextTracksNatively){const s=this.textTracks[n];if(!s||s.mode==="disabled")return;t.forEach(i=>A5(s,i))}else{const s=this.tracks[n];if(!s)return;const i=s.default?"default":"subtitles"+n;r.trigger(G.CUES_PARSED,{type:"subtitles",cues:t,track:i})}}onFragDecrypted(t,n){const{frag:r}=n;r.type===pt.SUBTITLE&&this.onFragLoaded(G.FRAG_LOADED,n)}onSubtitleTracksCleared(){this.tracks=[],this.captionsTracks={}}onFragParsingUserdata(t,n){if(!this.enabled||!this.config.enableCEA708Captions)return;const{frag:r,samples:s}=n;if(!(r.type===pt.MAIN&&this.closedCaptionsForLevel(r)==="NONE"))for(let i=0;i<s.length;i++){const o=s[i].bytes;if(o){this.cea608Parser1||this.initCea608Parsers();const a=this.extractCea608Data(o);this.cea608Parser1.addData(s[i].pts,a[0]),this.cea608Parser2.addData(s[i].pts,a[1])}}}onBufferFlushing(t,{startOffset:n,endOffset:r,endOffsetSubtitles:s,type:i}){const{media:o}=this;if(!(!o||o.currentTime<r)){if(!i||i==="video"){const{captionsTracks:a}=this;Object.keys(a).forEach(l=>P2(a[l],n,r))}if(this.config.renderTextTracksNatively&&n===0&&s!==void 0){const{textTracks:a}=this;Object.keys(a).forEach(l=>P2(a[l],n,s))}}}extractCea608Data(t){const n=[[],[]],r=t[0]&31;let s=2;for(let i=0;i<r;i++){const o=t[s++],a=127&t[s++],l=127&t[s++];if(a===0&&l===0)continue;if((4&o)!==0){const c=3&o;(c===0||c===1)&&(n[c].push(a),n[c].push(l))}}return n}}function F5(e){return e.characteristics&&/transcribes-spoken-dialog/gi.test(e.characteristics)&&/describes-music-and-sound/gi.test(e.characteristics)?"captions":"subtitles"}function uL(e,t){return!!e&&e.kind===F5(t)&&k2(t,e)}function tpe(e,t,n,r){return Math.min(t,r)-Math.max(e,n)}function cL(){return{ccOffset:0,presentationOffset:0,0:{start:0,prevCC:-1,new:!0}}}const npe=/\s/,rpe={newCue(e,t,n,r){const s=[];let i,o,a,l,u;const c=self.VTTCue||self.TextTrackCue;for(let f=0;f<r.rows.length;f++)if(i=r.rows[f],a=!0,l=0,u="",!i.isEmpty()){var d;for(let m=0;m<i.chars.length;m++)npe.test(i.chars[m].uchar)&&a?l++:(u+=i.chars[m].uchar,a=!1);i.cueStartTime=t,t===n&&(n+=1e-4),l>=16?l--:l++;const h=R5(u.trim()),p=JE(t,n,h);e!=null&&(d=e.cues)!=null&&d.getCueById(p)||(o=new c(t,n,h),o.id=p,o.line=f+1,o.align="left",o.position=10+Math.min(80,Math.floor(l*8/32)*10),s.push(o))}return e&&s.length&&(s.sort((f,h)=>f.line==="auto"||h.line==="auto"?0:f.line>8&&h.line>8?h.line-f.line:f.line-h.line),s.forEach(f=>A5(e,f))),s}};function spe(){if(self.fetch&&self.AbortController&&self.ReadableStream&&self.Request)try{return new self.ReadableStream({}),!0}catch{}return!1}const ipe=/(\d+)-(\d+)\/(\d+)/;class dL{constructor(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||upe,this.controller=new self.AbortController,this.stats=new LE}destroy(){this.loader=this.callbacks=this.context=this.config=this.request=null,this.abortInternal(),this.response=null,this.fetchSetup=this.controller=this.stats=null}abortInternal(){this.controller&&!this.stats.loading.end&&(this.stats.aborted=!0,this.controller.abort())}abort(){var t;this.abortInternal(),(t=this.callbacks)!=null&&t.onAbort&&this.callbacks.onAbort(this.stats,this.context,this.response)}load(t,n,r){const s=this.stats;if(s.loading.start)throw new Error("Loader can only be used once.");s.loading.start=self.performance.now();const i=ope(t,this.controller.signal),o=t.responseType==="arraybuffer",a=o?"byteLength":"length",{maxTimeToFirstByteMs:l,maxLoadTimeMs:u}=n.loadPolicy;this.context=t,this.config=n,this.callbacks=r,this.request=this.fetchSetup(t,i),self.clearTimeout(this.requestTimeout),n.timeout=l&&lt(l)?l:u,this.requestTimeout=self.setTimeout(()=>{this.callbacks&&(this.abortInternal(),this.callbacks.onTimeout(s,t,this.response))},n.timeout),(ph(this.request)?this.request.then(self.fetch):self.fetch(this.request)).then(d=>{var f;this.response=this.loader=d;const h=Math.max(self.performance.now(),s.loading.start);if(self.clearTimeout(this.requestTimeout),n.timeout=u,this.requestTimeout=self.setTimeout(()=>{this.callbacks&&(this.abortInternal(),this.callbacks.onTimeout(s,t,this.response))},u-(h-s.loading.start)),!d.ok){const{status:m,statusText:v}=d;throw new cpe(v||"fetch, bad network response",m,d)}s.loading.first=h,s.total=lpe(d.headers)||s.total;const p=(f=this.callbacks)==null?void 0:f.onProgress;return p&&lt(n.highWaterMark)?this.loadProgressively(d,s,t,n.highWaterMark,p):o?d.arrayBuffer():t.responseType==="json"?d.json():d.text()}).then(d=>{var f,h;const p=this.response;if(!p)throw new Error("loader destroyed");self.clearTimeout(this.requestTimeout),s.loading.end=Math.max(self.performance.now(),s.loading.first);const m=d[a];m&&(s.loaded=s.total=m);const v={url:p.url,data:d,code:p.status},x=(f=this.callbacks)==null?void 0:f.onProgress;x&&!lt(n.highWaterMark)&&x(s,t,d,p),(h=this.callbacks)==null||h.onSuccess(v,s,t,p)}).catch(d=>{var f;if(self.clearTimeout(this.requestTimeout),s.aborted)return;const h=d&&d.code||0,p=d?d.message:null;(f=this.callbacks)==null||f.onError({code:h,text:p},t,d?d.details:null,s)})}getCacheAge(){let t=null;if(this.response){const n=this.response.headers.get("age");t=n?parseFloat(n):null}return t}getResponseHeader(t){return this.response?this.response.headers.get(t):null}loadProgressively(t,n,r,s=0,i){const o=new W6,a=t.body.getReader(),l=()=>a.read().then(u=>{if(u.done)return o.dataLength&&i(n,r,o.flush().buffer,t),Promise.resolve(new ArrayBuffer(0));const c=u.value,d=c.length;return n.loaded+=d,d<s||o.dataLength?(o.push(c),o.dataLength>=s&&i(n,r,o.flush().buffer,t)):i(n,r,c.buffer,t),l()}).catch(()=>Promise.reject());return l()}}function ope(e,t){const n={method:"GET",mode:"cors",credentials:"same-origin",signal:t,headers:new self.Headers(kn({},e.headers))};return e.rangeEnd&&n.headers.set("Range","bytes="+e.rangeStart+"-"+String(e.rangeEnd-1)),n}function ape(e){const t=ipe.exec(e);if(t)return parseInt(t[2])-parseInt(t[1])+1}function lpe(e){const t=e.get("Content-Range");if(t){const r=ape(t);if(lt(r))return r}const n=e.get("Content-Length");if(n)return parseInt(n)}function upe(e,t){return new self.Request(e.url,t)}class cpe extends Error{constructor(t,n,r){super(t),this.code=void 0,this.details=void 0,this.code=n,this.details=r}}const dpe=/^age:\s*[\d.]+\s*$/im;class B5{constructor(t){this.xhrSetup=void 0,this.requestTimeout=void 0,this.retryTimeout=void 0,this.retryDelay=void 0,this.config=null,this.callbacks=null,this.context=null,this.loader=null,this.stats=void 0,this.xhrSetup=t&&t.xhrSetup||null,this.stats=new LE,this.retryDelay=0}destroy(){this.callbacks=null,this.abortInternal(),this.loader=null,this.config=null,this.context=null,this.xhrSetup=null}abortInternal(){const t=this.loader;self.clearTimeout(this.requestTimeout),self.clearTimeout(this.retryTimeout),t&&(t.onreadystatechange=null,t.onprogress=null,t.readyState!==4&&(this.stats.aborted=!0,t.abort()))}abort(){var t;this.abortInternal(),(t=this.callbacks)!=null&&t.onAbort&&this.callbacks.onAbort(this.stats,this.context,this.loader)}load(t,n,r){if(this.stats.loading.start)throw new Error("Loader can only be used once.");this.stats.loading.start=self.performance.now(),this.context=t,this.config=n,this.callbacks=r,this.loadInternal()}loadInternal(){const{config:t,context:n}=this;if(!t||!n)return;const r=this.loader=new self.XMLHttpRequest,s=this.stats;s.loading.first=0,s.loaded=0,s.aborted=!1;const i=this.xhrSetup;i?Promise.resolve().then(()=>{if(!(this.loader!==r||this.stats.aborted))return i(r,n.url)}).catch(o=>{if(!(this.loader!==r||this.stats.aborted))return r.open("GET",n.url,!0),i(r,n.url)}).then(()=>{this.loader!==r||this.stats.aborted||this.openAndSendXhr(r,n,t)}).catch(o=>{var a;(a=this.callbacks)==null||a.onError({code:r.status,text:o.message},n,r,s)}):this.openAndSendXhr(r,n,t)}openAndSendXhr(t,n,r){t.readyState||t.open("GET",n.url,!0);const s=n.headers,{maxTimeToFirstByteMs:i,maxLoadTimeMs:o}=r.loadPolicy;if(s)for(const a in s)t.setRequestHeader(a,s[a]);n.rangeEnd&&t.setRequestHeader("Range","bytes="+n.rangeStart+"-"+(n.rangeEnd-1)),t.onreadystatechange=this.readystatechange.bind(this),t.onprogress=this.loadprogress.bind(this),t.responseType=n.responseType,self.clearTimeout(this.requestTimeout),r.timeout=i&&lt(i)?i:o,this.requestTimeout=self.setTimeout(this.loadtimeout.bind(this),r.timeout),t.send()}readystatechange(){const{context:t,loader:n,stats:r}=this;if(!t||!n)return;const s=n.readyState,i=this.config;if(!r.aborted&&s>=2&&(r.loading.first===0&&(r.loading.first=Math.max(self.performance.now(),r.loading.start),i.timeout!==i.loadPolicy.maxLoadTimeMs&&(self.clearTimeout(this.requestTimeout),i.timeout=i.loadPolicy.maxLoadTimeMs,this.requestTimeout=self.setTimeout(this.loadtimeout.bind(this),i.loadPolicy.maxLoadTimeMs-(r.loading.first-r.loading.start)))),s===4)){self.clearTimeout(this.requestTimeout),n.onreadystatechange=null,n.onprogress=null;const u=n.status,c=n.responseType==="text"?n.responseText:null;if(u>=200&&u<300){const p=c??n.response;if(p!=null){var o,a;r.loading.end=Math.max(self.performance.now(),r.loading.first);const m=n.responseType==="arraybuffer"?p.byteLength:p.length;r.loaded=r.total=m,r.bwEstimate=r.total*8e3/(r.loading.end-r.loading.first);const v=(o=this.callbacks)==null?void 0:o.onProgress;v&&v(r,t,p,n);const x={url:n.responseURL,data:p,code:u};
vendor: 33,116 bytes, line 131
131(a=this.callbacks)==null||a.onSuccess(x,r,t,n);return}}const d=i.loadPolicy.errorRetry,f=r.retry,h={url:t.url,data:void 0,code:u};if(pg(d,f,!1,h))this.retry(d);else{var l;En.error(`${u} while loading ${t.url}`),(l=this.callbacks)==null||l.onError({code:u,text:n.statusText},t,n,r)}}}loadtimeout(){if(!this.config)return;const t=this.config.loadPolicy.timeoutRetry,n=this.stats.retry;if(pg(t,n,!0))this.retry(t);else{var r;En.warn(`timeout while loading ${(r=this.context)==null?void 0:r.url}`);const s=this.callbacks;s&&(this.abortInternal(),s.onTimeout(this.stats,this.context,this.loader))}}retry(t){const{context:n,stats:r}=this;this.retryDelay=OE(t,r.retry),r.retry++,En.warn(`${status?"HTTP Status "+status:"Timeout"} while loading ${n?.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)}loadprogress(t){const n=this.stats;n.loaded=t.loaded,t.lengthComputable&&(n.total=t.total)}getCacheAge(){let t=null;if(this.loader&&dpe.test(this.loader.getAllResponseHeaders())){const n=this.loader.getResponseHeader("age");t=n?parseFloat(n):null}return t}getResponseHeader(t){return this.loader&&new RegExp(`^${t}:\\s*[\\d.]+\\s*$`,"im").test(this.loader.getAllResponseHeaders())?this.loader.getResponseHeader(t):null}}const fpe={maxTimeToFirstByteMs:8e3,maxLoadTimeMs:2e4,timeoutRetry:null,errorRetry:null},hpe=Sn(Sn({autoStartLoad:!0,startPosition:-1,defaultAudioCodec:void 0,debug:!1,capLevelOnFPSDrop:!1,capLevelToPlayerSize:!1,ignoreDevicePixelRatio:!1,maxDevicePixelRatio:Number.POSITIVE_INFINITY,preferManagedMediaSource:!0,initialLiveManifestSize:1,maxBufferLength:30,backBufferLength:1/0,frontBufferFlushThreshold:1/0,startOnSegmentBoundary:!1,maxBufferSize:60*1e3*1e3,maxFragLookUpTolerance:.25,maxBufferHole:.1,detectStallWithCurrentTimeMs:1250,highBufferWatchdogPeriod:2,nudgeOffset:.1,nudgeMaxRetry:3,nudgeOnVideoHole:!0,liveSyncMode:"edge",liveSyncDurationCount:3,liveSyncOnStallIncrease:1,liveMaxLatencyDurationCount:1/0,liveSyncDuration:void 0,liveMaxLatencyDuration:void 0,maxLiveSyncPlaybackRate:1,liveDurationInfinity:!1,liveBackBufferLength:null,maxMaxBufferLength:600,enableWorker:!0,workerPath:null,enableSoftwareAES:!0,startLevel:void 0,startFragPrefetch:!1,fpsDroppedMonitoringPeriod:5e3,fpsDroppedMonitoringThreshold:.2,appendErrorMaxRetry:3,ignorePlaylistParsingErrors:!1,loader:B5,fLoader:void 0,pLoader:void 0,xhrSetup:void 0,licenseXhrSetup:void 0,licenseResponseCallback:void 0,abrController:Tde,bufferController:mhe,capLevelController:qE,errorController:Lde,fpsController:v0e,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:M6,requireKeySystemAccessOnStart:!1,testBandwidth:!0,progressive:!1,lowLatencyMode:!0,cmcd:void 0,enableDateRangeMetadataCues:!0,enableEmsgMetadataCues:!0,enableEmsgKLVMetadata:!1,enableID3MetadataCues:!0,enableInterstitialPlayback:!0,interstitialAppendInPlace:!0,interstitialLiveLookAhead:10,useMediaCapabilities:!0,preserveManualLevelOnError:!1,certLoadPolicy:{default:fpe},keyLoadPolicy:{default:{maxTimeToFirstByteMs:8e3,maxLoadTimeMs:2e4,timeoutRetry:{maxNumRetry:1,retryDelayMs:1e3,maxRetryDelayMs:2e4,backoff:"linear"},errorRetry:{maxNumRetry:8,retryDelayMs:1e3,maxRetryDelayMs:2e4,backoff:"linear"}}},manifestLoadPolicy:{default:{maxTimeToFirstByteMs:1/0,maxLoadTimeMs:2e4,timeoutRetry:{maxNumRetry:2,retryDelayMs:0,maxRetryDelayMs:0},errorRetry:{maxNumRetry:1,retryDelayMs:1e3,maxRetryDelayMs:8e3}}},playlistLoadPolicy:{default:{maxTimeToFirstByteMs:1e4,maxLoadTimeMs:2e4,timeoutRetry:{maxNumRetry:2,retryDelayMs:0,maxRetryDelayMs:0},errorRetry:{maxNumRetry:2,retryDelayMs:1e3,maxRetryDelayMs:8e3}}},fragLoadPolicy:{default:{maxTimeToFirstByteMs:1e4,maxLoadTimeMs:12e4,timeoutRetry:{maxNumRetry:4,retryDelayMs:0,maxRetryDelayMs:0},errorRetry:{maxNumRetry:6,retryDelayMs:1e3,maxRetryDelayMs:8e3}}},steeringManifestLoadPolicy:{default:{maxTimeToFirstByteMs:1e4,maxLoadTimeMs:2e4,timeoutRetry:{maxNumRetry:2,retryDelayMs:0,maxRetryDelayMs:0},errorRetry:{maxNumRetry:1,retryDelayMs:1e3,maxRetryDelayMs:8e3}}},interstitialAssetListLoadPolicy:{default:{maxTimeToFirstByteMs:1e4,maxLoadTimeMs:3e4,timeoutRetry:{maxNumRetry:0,retryDelayMs:0,maxRetryDelayMs:0},errorRetry:{maxNumRetry:0,retryDelayMs:1e3,maxRetryDelayMs:8e3}}},manifestLoadingTimeOut:1e4,manifestLoadingMaxRetry:1,manifestLoadingRetryDelay:1e3,manifestLoadingMaxRetryTimeout:64e3,levelLoadingTimeOut:1e4,levelLoadingMaxRetry:4,levelLoadingRetryDelay:1e3,levelLoadingMaxRetryTimeout:64e3,fragLoadingTimeOut:2e4,fragLoadingMaxRetry:6,fragLoadingRetryDelay:1e3,fragLoadingMaxRetryTimeout:64e3},ppe()),{},{subtitleStreamController:k0e,subtitleTrackController:x0e,timelineController:epe,audioStreamController:dhe,audioTrackController:fhe,emeController:wc,cmcdController:f0e,contentSteeringController:p0e,interstitialsController:A0e});function ppe(){return{cueHandler:rpe,enableWebVTT:!0,enableIMSC1:!0,enableCEA708Captions:!0,captionsTextTrack1Label:"English",captionsTextTrack1LanguageCode:"en",captionsTextTrack2Label:"Spanish",captionsTextTrack2LanguageCode:"es",captionsTextTrack3Label:"Unknown CC",captionsTextTrack3LanguageCode:"",captionsTextTrack4Label:"Unknown CC",captionsTextTrack4LanguageCode:"",renderTextTracksNatively:!0}}function mpe(e,t,n){if((t.liveSyncDurationCount||t.liveMaxLatencyDurationCount)&&(t.liveSyncDuration||t.liveMaxLatencyDuration))throw new Error("Illegal hls.js config: don't mix up liveSyncDurationCount/liveMaxLatencyDurationCount and liveSyncDuration/liveMaxLatencyDuration");if(t.liveMaxLatencyDurationCount!==void 0&&(t.liveSyncDurationCount===void 0||t.liveMaxLatencyDurationCount<=t.liveSyncDurationCount))throw new Error('Illegal hls.js config: "liveMaxLatencyDurationCount" must be greater than "liveSyncDurationCount"');if(t.liveMaxLatencyDuration!==void 0&&(t.liveSyncDuration===void 0||t.liveMaxLatencyDuration<=t.liveSyncDuration))throw new Error('Illegal hls.js config: "liveMaxLatencyDuration" must be greater than "liveSyncDuration"');const r=O2(e),s=["manifest","level","frag"],i=["TimeOut","MaxRetry","RetryDelay","MaxRetryTimeout"];return s.forEach(o=>{const a=`${o==="level"?"playlist":o}LoadPolicy`,l=t[a]===void 0,u=[];i.forEach(c=>{const d=`${o}Loading${c}`,f=t[d];if(f!==void 0&&l){u.push(d);const h=r[a].default;switch(t[a]={default:h},c){case"TimeOut":h.maxLoadTimeMs=f,h.maxTimeToFirstByteMs=f;break;case"MaxRetry":h.errorRetry.maxNumRetry=f,h.timeoutRetry.maxNumRetry=f;break;case"RetryDelay":h.errorRetry.retryDelayMs=f,h.timeoutRetry.retryDelayMs=f;break;case"MaxRetryTimeout":h.errorRetry.maxRetryDelayMs=f,h.timeoutRetry.maxRetryDelayMs=f;break}}}),u.length&&n.warn(`hls.js config: "${u.join('", "')}" setting(s) are deprecated, use "${a}": ${Ln(t[a])}`)}),Sn(Sn({},r),t)}function O2(e){return e&&typeof e=="object"?Array.isArray(e)?e.map(O2):Object.keys(e).reduce((t,n)=>(t[n]=O2(e[n]),t),{}):e}function vpe(e,t){const n=e.loader;n!==dL&&n!==B5?(t.log("[config]: Custom loader detected, cannot enable progressive streaming"),e.progressive=!1):spe()&&(e.loader=dL,e.progressive=!0,e.enableSoftwareAES=!0,t.log("[config]: Progressive streaming enabled, using FetchLoader"))}const Mm=2,gpe=.1,ype=.05,xpe=100;class bpe extends D6{constructor(t,n){super("gap-controller",t.logger),this.hls=void 0,this.fragmentTracker=void 0,this.media=null,this.mediaSource=void 0,this.nudgeRetry=0,this.stallReported=!1,this.stalled=null,this.moved=!1,this.seeking=!1,this.buffered={},this.lastCurrentTime=0,this.ended=0,this.waiting=0,this.onMediaPlaying=()=>{this.ended=0,this.waiting=0},this.onMediaWaiting=()=>{var r;(r=this.media)!=null&&r.seeking||(this.waiting=self.performance.now(),this.tick())},this.onMediaEnded=()=>{if(this.hls){var r;this.ended=((r=this.media)==null?void 0:r.currentTime)||1,this.hls.trigger(G.MEDIA_ENDED,{stalled:!1})}},this.hls=t,this.fragmentTracker=n,this.registerListeners()}registerListeners(){const{hls:t}=this;t&&(t.on(G.MEDIA_ATTACHED,this.onMediaAttached,this),t.on(G.MEDIA_DETACHING,this.onMediaDetaching,this),t.on(G.BUFFER_APPENDED,this.onBufferAppended,this))}unregisterListeners(){const{hls:t}=this;t&&(t.off(G.MEDIA_ATTACHED,this.onMediaAttached,this),t.off(G.MEDIA_DETACHING,this.onMediaDetaching,this),t.off(G.BUFFER_APPENDED,this.onBufferAppended,this))}destroy(){super.destroy(),this.unregisterListeners(),this.media=this.hls=this.fragmentTracker=null,this.mediaSource=void 0}onMediaAttached(t,n){this.setInterval(xpe),this.mediaSource=n.mediaSource;const r=this.media=n.media;Cs(r,"playing",this.onMediaPlaying),Cs(r,"waiting",this.onMediaWaiting),Cs(r,"ended",this.onMediaEnded)}onMediaDetaching(t,n){this.clearInterval();const{media:r}=this;r&&(Us(r,"playing",this.onMediaPlaying),Us(r,"waiting",this.onMediaWaiting),Us(r,"ended",this.onMediaEnded),this.media=null),this.mediaSource=void 0}onBufferAppended(t,n){this.buffered=n.timeRanges}get hasBuffered(){return Object.keys(this.buffered).length>0}tick(){var t;if(!((t=this.media)!=null&&t.readyState)||!this.hasBuffered)return;const n=this.media.currentTime;this.poll(n,this.lastCurrentTime),this.lastCurrentTime=n}poll(t,n){var r,s;const i=(r=this.hls)==null?void 0:r.config;if(!i)return;const o=this.media;if(!o)return;const{seeking:a}=o,l=this.seeking&&!a,u=!this.seeking&&a,c=o.paused&&!a||o.ended||o.playbackRate===0;if(this.seeking=a,t!==n){n&&(this.ended=0),this.moved=!0,a||(this.nudgeRetry=0,i.nudgeOnVideoHole&&!c&&t>n&&this.nudgeOnVideoHole(t,n)),this.waiting===0&&this.stallResolved(t);return}if(u||l){l&&this.stallResolved(t);return}if(c){this.nudgeRetry=0,this.stallResolved(t),!this.ended&&o.ended&&this.hls&&(this.ended=t||1,this.hls.trigger(G.MEDIA_ENDED,{stalled:!1}));return}if(!Ft.getBuffered(o).length){this.nudgeRetry=0;return}const d=Ft.bufferInfo(o,t,0),f=d.nextStart||0,h=this.fragmentTracker;if(a&&h&&this.hls){const w=fL(this.hls.inFlightFragments,t),T=d.len>Mm,C=!f||w||f-t>Mm&&!h.getPartialFragment(t);if(T||C)return;this.moved=!1}const p=(s=this.hls)==null?void 0:s.latestLevelDetails;if(!this.moved&&this.stalled!==null&&h){if(!(d.len>0)&&!f)return;const T=Math.max(f,d.start||0)-t,I=!!(p!=null&&p.live)?p.targetduration*2:Mm,k=fp(t,h);if(T>0&&(T<=I||k)){o.paused||this._trySkipBufferHole(k);return}}const m=i.detectStallWithCurrentTimeMs,v=self.performance.now(),x=this.waiting;let g=this.stalled;if(g===null)if(x>0&&v-x<m)g=this.stalled=x;else{this.stalled=v;return}const y=v-g;if(!a&&(y>=m||x)&&this.hls){var _;if(((_=this.mediaSource)==null?void 0:_.readyState)==="ended"&&!(p!=null&&p.live)&&Math.abs(t-(p?.edge||0))<1){if(this.ended)return;this.ended=t||1,this.hls.trigger(G.MEDIA_ENDED,{stalled:!0});return}if(this._reportStall(d),!this.media||!this.hls)return}const E=Ft.bufferInfo(o,t,i.maxBufferHole);this._tryFixBufferStall(E,y,t)}stallResolved(t){const n=this.stalled;if(n&&this.hls&&(this.stalled=null,this.stallReported)){const r=self.performance.now()-n;this.log(`playback not stuck anymore @${t}, after ${Math.round(r)}ms`),this.stallReported=!1,this.waiting=0,this.hls.trigger(G.STALL_RESOLVED,{})}}nudgeOnVideoHole(t,n){var r;const s=this.buffered.video;if(this.hls&&this.media&&this.fragmentTracker&&(r=this.buffered.audio)!=null&&r.length&&s&&s.length>1&&t>s.end(0)){const i=Ft.bufferedInfo(Ft.timeRangesToArray(this.buffered.audio),t,0);if(i.len>1&&n>=i.start){const o=Ft.timeRangesToArray(s),a=Ft.bufferedInfo(o,n,0).bufferedIndex;if(a>-1&&a<o.length-1){const l=Ft.bufferedInfo(o,t,0).bufferedIndex,u=o[a].end,c=o[a+1].start;if((l===-1||l>a)&&c-u<1&&t-u<2){const d=new Error(`nudging playhead to flush pipeline after video hole. currentTime: ${t} hole: ${u} -> ${c} buffered index: ${l}`);this.warn(d.message),this.media.currentTime+=1e-6;let f=fp(t,this.fragmentTracker);f&&"fragment"in f?f=f.fragment:f||(f=void 0);const h=Ft.bufferInfo(this.media,t,0);this.hls.trigger(G.ERROR,{type:bt.MEDIA_ERROR,details:Re.BUFFER_SEEK_OVER_HOLE,fatal:!1,error:d,reason:d.message,frag:f,buffer:h.len,bufferInfo:h})}}}}}_tryFixBufferStall(t,n,r){var s,i;const{fragmentTracker:o,media:a}=this,l=(s=this.hls)==null?void 0:s.config;if(!a||!o||!l)return;const u=(i=this.hls)==null?void 0:i.latestLevelDetails,c=fp(r,o);if((c||u!=null&&u.live&&r<u.fragmentStart)&&(this._trySkipBufferHole(c)||!this.media))return;const d=t.buffered,f=this.adjacentTraversal(t,r);(d&&d.length>1&&t.len>l.maxBufferHole||t.nextStart&&(t.nextStart-r<l.maxBufferHole||f))&&(n>l.highBufferWatchdogPeriod*1e3||this.waiting)&&(this.warn("Trying to nudge playhead over buffer-hole"),this._tryNudgeBuffer(t))}adjacentTraversal(t,n){const r=this.fragmentTracker,s=t.nextStart;if(r&&s){const i=r.getFragAtPos(n,pt.MAIN),o=r.getFragAtPos(s,pt.MAIN);if(i&&o)return o.sn-i.sn<2}return!1}_reportStall(t){const{hls:n,media:r,stallReported:s,stalled:i}=this;if(!s&&i!==null&&r&&n){this.stallReported=!0;const o=new Error(`Playback stalling at @${r.currentTime} due to low buffer (${Ln(t)})`);this.warn(o.message),n.trigger(G.ERROR,{type:bt.MEDIA_ERROR,details:Re.BUFFER_STALLED_ERROR,fatal:!1,error:o,buffer:t.len,bufferInfo:t,stalled:{start:i}})}}_trySkipBufferHole(t){var n;const{fragmentTracker:r,media:s}=this,i=(n=this.hls)==null?void 0:n.config;if(!s||!r||!i)return 0;const o=s.currentTime,a=Ft.bufferInfo(s,o,0),l=o<a.start?a.start:a.nextStart;if(l&&this.hls){const c=a.len<=i.maxBufferHole,d=a.len>0&&a.len<1&&s.readyState<3,f=l-o;if(f>0&&(c||d)){if(f>i.maxBufferHole){let p=!1;if(o===0){const m=r.getAppendedFrag(0,pt.MAIN);m&&l<m.end&&(p=!0)}if(!p&&t){var u;if(!((u=this.hls.loadLevelObj)!=null&&u.details)||fL(this.hls.inFlightFragments,l))return 0;let v=!1,x=t.end;for(;x<l;){const g=fp(x,r);if(g)x+=g.duration;else{v=!0;break}}if(v)return 0}}const h=Math.max(l+ype,o+gpe);if(this.warn(`skipping hole, adjusting currentTime from ${o} to ${h}`),this.moved=!0,s.currentTime=h,!(t!=null&&t.gap)){const p=new Error(`fragment loaded with buffer holes, seeking from ${o} to ${h}`),m={type:bt.MEDIA_ERROR,details:Re.BUFFER_SEEK_OVER_HOLE,fatal:!1,error:p,reason:p.message,buffer:a.len,bufferInfo:a};t&&("fragment"in t?m.part=t:m.frag=t),this.hls.trigger(G.ERROR,m)}return h}}return 0}_tryNudgeBuffer(t){const{hls:n,media:r,nudgeRetry:s}=this,i=n?.config;if(!r||!i)return 0;const o=r.currentTime;if(this.nudgeRetry++,s<i.nudgeMaxRetry){const a=o+(s+1)*i.nudgeOffset,l=new Error(`Nudging 'currentTime' from ${o} to ${a}`);this.warn(l.message),r.currentTime=a,n.trigger(G.ERROR,{type:bt.MEDIA_ERROR,details:Re.BUFFER_NUDGE_ON_STALL,error:l,fatal:!1,buffer:t.len,bufferInfo:t})}else{const a=new Error(`Playhead still not moving while enough data buffered @${o} after ${i.nudgeMaxRetry} nudges`);this.error(a.message),n.trigger(G.ERROR,{type:bt.MEDIA_ERROR,details:Re.BUFFER_STALLED_ERROR,error:a,fatal:!0,buffer:t.len,bufferInfo:t})}}}function fL(e,t){const n=hL(e.main);if(n&&n.start<=t)return n;const r=hL(e.audio);return r&&r.start<=t?r:null}function hL(e){if(!e)return null;switch(e.state){case Ge.IDLE:case Ge.STOPPED:case Ge.ENDED:case Ge.ERROR:return null}return e.frag}function fp(e,t){return t.getAppendedFrag(e,pt.MAIN)||t.getPartialFragment(e)}const _pe=.25;function $2(){if(!(typeof self>"u"))return self.VTTCue||self.TextTrackCue}function Rx(e,t,n,r,s){let i=new e(t,n,"");try{i.value=r,s&&(i.type=s)}catch{i=new e(t,n,Ln(s?Sn({type:s},r):r))}return i}const hp=(()=>{const e=$2();try{e&&new e(0,Number.POSITIVE_INFINITY,"")}catch{return Number.MAX_VALUE}return Number.POSITIVE_INFINITY})();class Spe{constructor(t){this.hls=void 0,this.id3Track=null,this.media=null,this.dateRangeCuesAppended={},this.removeCues=!0,this.assetCue=void 0,this.onEventCueEnter=()=>{this.hls&&this.hls.trigger(G.EVENT_CUE_ENTER,{})},this.hls=t,this._registerListeners()}destroy(){this._unregisterListeners(),this.id3Track=null,this.media=null,this.dateRangeCuesAppended={},this.hls=this.onEventCueEnter=null}_registerListeners(){const{hls:t}=this;t&&(t.on(G.MEDIA_ATTACHING,this.onMediaAttaching,this),t.on(G.MEDIA_ATTACHED,this.onMediaAttached,this),t.on(G.MEDIA_DETACHING,this.onMediaDetaching,this),t.on(G.MANIFEST_LOADING,this.onManifestLoading,this),t.on(G.FRAG_PARSING_METADATA,this.onFragParsingMetadata,this),t.on(G.BUFFER_FLUSHING,this.onBufferFlushing,this),t.on(G.LEVEL_UPDATED,this.onLevelUpdated,this),t.on(G.LEVEL_PTS_UPDATED,this.onLevelPtsUpdated,this))}_unregisterListeners(){const{hls:t}=this;t&&(t.off(G.MEDIA_ATTACHING,this.onMediaAttaching,this),t.off(G.MEDIA_ATTACHED,this.onMediaAttached,this),t.off(G.MEDIA_DETACHING,this.onMediaDetaching,this),t.off(G.MANIFEST_LOADING,this.onManifestLoading,this),t.off(G.FRAG_PARSING_METADATA,this.onFragParsingMetadata,this),t.off(G.BUFFER_FLUSHING,this.onBufferFlushing,this),t.off(G.LEVEL_UPDATED,this.onLevelUpdated,this),t.off(G.LEVEL_PTS_UPDATED,this.onLevelPtsUpdated,this))}onMediaAttaching(t,n){var r;this.media=n.media,((r=n.overrides)==null?void 0:r.cueRemoval)===!1&&(this.removeCues=!1)}onMediaAttached(){var t;const n=(t=this.hls)==null?void 0:t.latestLevelDetails;n&&this.updateDateRangeCues(n)}onMediaDetaching(t,n){this.media=null,!n.transferMedia&&(this.id3Track&&(this.removeCues&&pc(this.id3Track,this.onEventCueEnter),this.id3Track=null),this.dateRangeCuesAppended={})}onManifestLoading(){this.dateRangeCuesAppended={}}createTrack(t){const n=this.getID3Track(t.textTracks);return n.mode="hidden",n}getID3Track(t){if(this.media){for(let n=0;n<t.length;n++){const r=t[n];if(r.kind==="metadata"&&r.label==="id3")return C5(r,this.media),r}return this.media.addTextTrack("metadata","id3")}}onFragParsingMetadata(t,n){if(!this.media||!this.hls)return;const{enableEmsgMetadataCues:r,enableID3MetadataCues:s}=this.hls.config;if(!r&&!s)return;const{samples:i}=n;this.id3Track||(this.id3Track=this.createTrack(this.media));const o=$2();if(o)for(let a=0;a<i.length;a++){const l=i[a].type;if(l===si.emsg&&!r||!s)continue;const u=e5(i[a].data),c=i[a].pts;let d=c+i[a].duration;d>hp&&(d=hp),d-c<=0&&(d=c+_pe);for(let h=0;h<u.length;h++){const p=u[h];if(!t5(p)){this.updateId3CueEnds(c,l);const m=Rx(o,c,d,p,l);m&&this.id3Track.addCue(m)}}}}updateId3CueEnds(t,n){var r;const s=(r=this.id3Track)==null?void 0:r.cues;if(s)for(let i=s.length;i--;){const o=s[i];o.type===n&&o.startTime<t&&o.endTime===hp&&(o.endTime=t)}}onBufferFlushing(t,{startOffset:n,endOffset:r,type:s}){const{id3Track:i,hls:o}=this;if(!o)return;const{config:{enableEmsgMetadataCues:a,enableID3MetadataCues:l}}=o;if(i&&(a||l)){let u;s==="audio"?u=c=>c.type===si.audioId3&&l:s==="video"?u=c=>c.type===si.emsg&&a:u=c=>c.type===si.audioId3&&l||c.type===si.emsg&&a,P2(i,n,r,u)}}onLevelUpdated(t,{details:n}){this.updateDateRangeCues(n,!0)}onLevelPtsUpdated(t,n){Math.abs(n.drift)>.01&&this.updateDateRangeCues(n.details)}updateDateRangeCues(t,n){if(!this.hls||!this.media)return;const{assetPlayerId:r,timelineOffset:s,enableDateRangeMetadataCues:i,interstitialsController:o}=this.hls.config;if(!i)return;const a=$2();if(r&&s&&!o){const{fragmentStart:m,fragmentEnd:v}=t;let x=this.assetCue;x?(x.startTime=m,x.endTime=v):a&&(x=this.assetCue=Rx(a,m,v,{assetPlayerId:this.hls.config.assetPlayerId},"hlsjs.interstitial.asset"),x&&(x.id=r,this.id3Track||(this.id3Track=this.createTrack(this.media)),this.id3Track.addCue(x),x.addEventListener("enter",this.onEventCueEnter)))}if(!t.hasProgramDateTime)return;const{id3Track:l}=this,{dateRanges:u}=t,c=Object.keys(u);let d=this.dateRangeCuesAppended;if(l&&n){var f;if((f=l.cues)!=null&&f.length){const m=Object.keys(d).filter(v=>!c.includes(v));for(let v=m.length;v--;){var h;const x=m[v],g=(h=d[x])==null?void 0:h.cues;delete d[x],g&&Object.keys(g).forEach(y=>{const _=g[y];if(_){_.removeEventListener("enter",this.onEventCueEnter);try{l.removeCue(_)}catch{}}})}}else d=this.dateRangeCuesAppended={}}const p=t.fragments[t.fragments.length-1];if(!(c.length===0||!lt(p?.programDateTime))){this.id3Track||(this.id3Track=this.createTrack(this.media));for(let m=0;m<c.length;m++){const v=c[m],x=u[v],g=x.startTime,y=d[v],_=y?.cues||{};let E=y?.durationKnown||!1,w=hp;const{duration:T,endDate:C}=x;if(C&&T!==null)w=g+T,E=!0;else if(x.endOnNext&&!E){const k=c.reduce(($,R)=>{if(R!==x.id){const D=u[R];if(D.class===x.class&&D.startDate>x.startDate&&(!$||x.startDate<$.startDate))return D}return $},null);k&&(w=k.startTime,E=!0)}const I=Object.keys(x.attr);for(let k=0;k<I.length;k++){const $=I[k];if(!zde($))continue;const R=_[$];if(R)E&&!(y!=null&&y.durationKnown)?R.endTime=w:Math.abs(R.startTime-g)>.01&&(R.startTime=g,R.endTime=w);else if(a){let D=x.attr[$];Hde($)&&(D=d6(D));const B=Rx(a,g,w,{key:$,data:D},si.dateRange);B&&(B.id=v,this.id3Track.addCue(B),_[$]=B,o&&($==="X-ASSET-LIST"||$==="X-ASSET-URL")&&B.addEventListener("enter",this.onEventCueEnter))}}d[v]={cues:_,dateRange:x,durationKnown:E}}}}}class Epe{constructor(t){this.hls=void 0,this.config=void 0,this.media=null,this.currentTime=0,this.stallCount=0,this._latency=null,this._targetLatencyUpdated=!1,this.onTimeupdate=()=>{const{media:n}=this,r=this.levelDetails;if(!n||!r)return;this.currentTime=n.currentTime;const s=this.computeLatency();if(s===null)return;this._latency=s;const{lowLatencyMode:i,maxLiveSyncPlaybackRate:o}=this.config;if(!i||o===1||!r.live)return;const a=this.targetLatency;if(a===null)return;const l=s-a,u=Math.min(this.maxLatency,a+r.targetduration);if(l<u&&l>.05&&this.forwardBufferLength>1){const d=Math.min(2,Math.max(1,o)),f=Math.round(2/(1+Math.exp(-.75*l-this.edgeStalled))*20)/20,h=Math.min(d,Math.max(1,f));this.changeMediaPlaybackRate(n,h)}else n.playbackRate!==1&&n.playbackRate!==0&&this.changeMediaPlaybackRate(n,1)},this.hls=t,this.config=t.config,this.registerListeners()}get levelDetails(){var t;return((t=this.hls)==null?void 0:t.latestLevelDetails)||null}get latency(){return this._latency||0}get maxLatency(){const{config:t}=this;if(t.liveMaxLatencyDuration!==void 0)return t.liveMaxLatencyDuration;const n=this.levelDetails;return n?t.liveMaxLatencyDurationCount*n.targetduration:0}get targetLatency(){const t=this.levelDetails;if(t===null||this.hls===null)return null;const{holdBack:n,partHoldBack:r,targetduration:s}=t,{liveSyncDuration:i,liveSyncDurationCount:o,lowLatencyMode:a}=this.config,l=this.hls.userConfig;let u=a&&r||n;(this._targetLatencyUpdated||l.liveSyncDuration||l.liveSyncDurationCount||u===0)&&(u=i!==void 0?i:o*s);const c=s;return u+Math.min(this.stallCount*this.config.liveSyncOnStallIncrease,c)}set targetLatency(t){this.stallCount=0,this.config.liveSyncDuration=t,this._targetLatencyUpdated=!0}get liveSyncPosition(){const t=this.estimateLiveEdge(),n=this.targetLatency;if(t===null||n===null)return null;const r=this.levelDetails;if(r===null)return null;const s=r.edge,i=t-n-this.edgeStalled,o=s-r.totalduration,a=s-(this.config.lowLatencyMode&&r.partTarget||r.targetduration);return Math.min(Math.max(o,i),a)}get drift(){const t=this.levelDetails;return t===null?1:t.drift}get edgeStalled(){const t=this.levelDetails;if(t===null)return 0;const n=(this.config.lowLatencyMode&&t.partTarget||t.targetduration)*3;return Math.max(t.age-n,0)}get forwardBufferLength(){const{media:t}=this,n=this.levelDetails;if(!t||!n)return 0;const r=t.buffered.length;return(r?t.buffered.end(r-1):n.edge)-this.currentTime}destroy(){this.unregisterListeners(),this.onMediaDetaching(),this.hls=null}registerListeners(){const{hls:t}=this;t&&(t.on(G.MEDIA_ATTACHED,this.onMediaAttached,this),t.on(G.MEDIA_DETACHING,this.onMediaDetaching,this),t.on(G.MANIFEST_LOADING,this.onManifestLoading,this),t.on(G.LEVEL_UPDATED,this.onLevelUpdated,this),t.on(G.ERROR,this.onError,this))}unregisterListeners(){const{hls:t}=this;t&&(t.off(G.MEDIA_ATTACHED,this.onMediaAttached,this),t.off(G.MEDIA_DETACHING,this.onMediaDetaching,this),t.off(G.MANIFEST_LOADING,this.onManifestLoading,this),t.off(G.LEVEL_UPDATED,this.onLevelUpdated,this),t.off(G.ERROR,this.onError,this))}onMediaAttached(t,n){this.media=n.media,this.media.addEventListener("timeupdate",this.onTimeupdate)}onMediaDetaching(){this.media&&(this.media.removeEventListener("timeupdate",this.onTimeupdate),this.media=null)}onManifestLoading(){this._latency=null,this.stallCount=0}onLevelUpdated(t,{details:n}){n.advanced&&this.onTimeupdate(),!n.live&&this.media&&this.media.removeEventListener("timeupdate",this.onTimeupdate)}onError(t,n){var r;n.details===Re.BUFFER_STALLED_ERROR&&(this.stallCount++,this.hls&&(r=this.levelDetails)!=null&&r.live&&this.hls.logger.warn("[latency-controller]: Stall detected, adjusting target latency"))}changeMediaPlaybackRate(t,n){var r,s;t.playbackRate!==n&&((r=this.hls)==null||r.logger.debug(`[latency-controller]: latency=${this.latency.toFixed(3)}, targetLatency=${(s=this.targetLatency)==null?void 0:s.toFixed(3)}, forwardBufferLength=${this.forwardBufferLength.toFixed(3)}: adjusting playback rate from ${t.playbackRate} to ${n}`),t.playbackRate=n)}estimateLiveEdge(){const t=this.levelDetails;return t===null?null:t.edge+t.age}computeLatency(){const t=this.estimateLiveEdge();return t===null?null:t-this.currentTime}}class wpe extends WE{constructor(t,n){super(t,"level-controller"),this._levels=[],this._firstLevel=-1,this._maxAutoLevel=-1,this._startLevel=void 0,this.currentLevel=null,this.currentLevelIndex=-1,this.manualLevelIndex=-1,this.steering=void 0,this.onParsedComplete=void 0,this.steering=n,this._registerListeners()}_registerListeners(){const{hls:t}=this;t.on(G.MANIFEST_LOADING,this.onManifestLoading,this),t.on(G.MANIFEST_LOADED,this.onManifestLoaded,this),t.on(G.LEVEL_LOADED,this.onLevelLoaded,this),t.on(G.LEVELS_UPDATED,this.onLevelsUpdated,this),t.on(G.FRAG_BUFFERED,this.onFragBuffered,this),t.on(G.ERROR,this.onError,this)}_unregisterListeners(){const{hls:t}=this;t.off(G.MANIFEST_LOADING,this.onManifestLoading,this),t.off(G.MANIFEST_LOADED,this.onManifestLoaded,this),t.off(G.LEVEL_LOADED,this.onLevelLoaded,this),t.off(G.LEVELS_UPDATED,this.onLevelsUpdated,this),t.off(G.FRAG_BUFFERED,this.onFragBuffered,this),t.off(G.ERROR,this.onError,this)}destroy(){this._unregisterListeners(),this.steering=null,this.resetLevels(),super.destroy()}stopLoad(){this._levels.forEach(n=>{n.loadError=0,n.fragmentError=0}),super.stopLoad()}resetLevels(){this._startLevel=void 0,this.manualLevelIndex=-1,this.currentLevelIndex=-1,this.currentLevel=null,this._levels=[],this._maxAutoLevel=-1}onManifestLoading(t,n){this.resetLevels()}onManifestLoaded(t,n){const r=this.hls.config.preferManagedMediaSource,s=[],i={},o={};let a=!1,l=!1,u=!1;n.levels.forEach(c=>{const d=c.attrs;let{audioCodec:f,videoCodec:h}=c;f&&(c.audioCodec=f=cg(f,r)||void 0),h&&(h=c.videoCodec=ode(h));const{width:p,height:m,unknownCodecs:v}=c,x=v?.length||0;if(a||(a=!!(p&&m)),l||(l=!!h),u||(u=!!f),x||f&&!this.isAudioSupported(f)||h&&!this.isVideoSupported(h)){this.log(`Some or all CODECS not supported "${d.CODECS}"`);return}const{CODECS:g,"FRAME-RATE":y,"HDCP-LEVEL":_,"PATHWAY-ID":E,RESOLUTION:w,"VIDEO-RANGE":T}=d,I=`${`${E||"."}-`}${c.bitrate}-${w}-${y}-${g}-${T}-${_}`;if(i[I])if(i[I].uri!==c.url&&!c.attrs["PATHWAY-ID"]){const k=o[I]+=1;c.attrs["PATHWAY-ID"]=new Array(k+1).join(".");const $=this.createLevel(c);i[I]=$,s.push($)}else i[I].addGroupId("audio",d.AUDIO),i[I].addGroupId("text",d.SUBTITLES);else{const k=this.createLevel(c);i[I]=k,o[I]=1,s.push(k)}}),this.filterAndSortMediaOptions(s,n,a,l,u)}createLevel(t){const n=new dh(t),r=t.supplemental;if(r!=null&&r.videoCodec&&!this.isVideoSupported(r.videoCodec)){const s=new Error(`SUPPLEMENTAL-CODECS not supported "${r.videoCodec}"`);this.log(s.message),n.supportedResult=E6(s,[])}return n}isAudioSupported(t){return uh(t,"audio",this.hls.config.preferManagedMediaSource)}isVideoSupported(t){return uh(t,"video",this.hls.config.preferManagedMediaSource)}filterAndSortMediaOptions(t,n,r,s,i){var o;let a=[],l=[],u=t;const c=((o=n.stats)==null?void 0:o.parsing)||{};if((r||s)&&i&&(u=u.filter(({videoCodec:g,videoRange:y,width:_,height:E})=>(!!g||!!(_&&E))&&vde(y))),u.length===0){Promise.resolve().then(()=>{if(this.hls){let g="no level with compatible codecs found in manifest",y=g;n.levels.length&&(y=`one or more CODECS in variant not supported: ${Ln(n.levels.map(E=>E.attrs.CODECS).filter((E,w,T)=>T.indexOf(E)===w))}`,this.warn(y),g+=` (${y})`);const _=new Error(g);this.hls.trigger(G.ERROR,{type:bt.MEDIA_ERROR,details:Re.MANIFEST_INCOMPATIBLE_CODECS_ERROR,fatal:!0,url:n.url,error:_,reason:y})}}),c.end=performance.now();return}n.audioTracks&&(a=n.audioTracks.filter(g=>!g.audioCodec||this.isAudioSupported(g.audioCodec)),pL(a)),n.subtitles&&(l=n.subtitles,pL(l));const d=u.slice(0);u.sort((g,y)=>{if(g.attrs["HDCP-LEVEL"]!==y.attrs["HDCP-LEVEL"])return(g.attrs["HDCP-LEVEL"]||"")>(y.attrs["HDCP-LEVEL"]||"")?1:-1;if(r&&g.height!==y.height)return g.height-y.height;if(g.frameRate!==y.frameRate)return g.frameRate-y.frameRate;if(g.videoRange!==y.videoRange)return dg.indexOf(g.videoRange)-dg.indexOf(y.videoRange);if(g.videoCodec!==y.videoCodec){const _=iI(g.videoCodec),E=iI(y.videoCodec);if(_!==E)return E-_}if(g.uri===y.uri&&g.codecSet!==y.codecSet){const _=ug(g.codecSet),E=ug(y.codecSet);if(_!==E)return E-_}return g.averageBitrate!==y.averageBitrate?g.averageBitrate-y.averageBitrate:0});let f=d[0];if(this.steering&&(u=this.steering.filterParsedLevels(u),u.length!==d.length)){for(let g=0;g<d.length;g++)if(d[g].pathwayId===u[0].pathwayId){f=d[g];break}}this._levels=u;for(let g=0;g<u.length;g++)if(u[g]===f){var h;this._firstLevel=g;const y=f.bitrate,_=this.hls.bandwidthEstimate;if(this.log(`manifest loaded, ${u.length} level(s) found, first bitrate: ${y}`),((h=this.hls.userConfig)==null?void 0:h.abrEwmaDefaultEstimate)===void 0){const E=Math.min(y,this.hls.config.abrEwmaDefaultEstimateMax);E>_&&_===this.hls.abrEwmaDefaultEstimate&&(this.hls.bandwidthEstimate=E)}break}const p=i&&!s,m=this.hls.config,v=!!(m.audioStreamController&&m.audioTrackController),x={levels:u,audioTracks:a,subtitleTracks:l,sessionData:n.sessionData,sessionKeys:n.sessionKeys,firstLevel:this._firstLevel,stats:n.stats,audio:i,video:s,altAudio:v&&!p&&a.some(g=>!!g.url)};c.end=performance.now(),this.hls.trigger(G.MANIFEST_PARSED,x)}get levels(){return this._levels.length===0?null:this._levels}get loadLevelObj(){return this.currentLevel}get level(){return this.currentLevelIndex}set level(t){const n=this._levels;if(n.length===0)return;if(t<0||t>=n.length){const c=new Error("invalid level idx"),d=t<0;if(this.hls.trigger(G.ERROR,{type:bt.OTHER_ERROR,details:Re.LEVEL_SWITCH_ERROR,level:t,fatal:d,error:c,reason:c.message}),d)return;t=Math.min(t,n.length-1)}const r=this.currentLevelIndex,s=this.currentLevel,i=s?s.attrs["PATHWAY-ID"]:void 0,o=n[t],a=o.attrs["PATHWAY-ID"];if(this.currentLevelIndex=t,this.currentLevel=o,r===t&&s&&i===a)return;this.log(`Switching to level ${t} (${o.height?o.height+"p ":""}${o.videoRange?o.videoRange+" ":""}${o.codecSet?o.codecSet+" ":""}@${o.bitrate})${a?" with Pathway "+a:""} from level ${r}${i?" with Pathway "+i:""}`);const l={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(G.LEVEL_SWITCHING,l);const u=o.details;if(!u||u.live){const c=this.switchParams(o.uri,s?.details,u);this.loadPlaylist(c)}}get manualLevel(){return this.manualLevelIndex}set manualLevel(t){this.manualLevelIndex=t,this._startLevel===void 0&&(this._startLevel=t),t!==-1&&(this.level=t)}get firstLevel(){return this._firstLevel}set firstLevel(t){this._firstLevel=t}get startLevel(){if(this._startLevel===void 0){const t=this.hls.config.startLevel;return t!==void 0?t:this.hls.firstAutoLevel}return this._startLevel}set startLevel(t){this._startLevel=t}get pathways(){return this.steering?this.steering.pathways():[]}get pathwayPriority(){return this.steering?this.steering.pathwayPriority:null}set pathwayPriority(t){if(this.steering){const n=this.steering.pathways(),r=t.filter(s=>n.indexOf(s)!==-1);if(t.length<1){this.warn(`pathwayPriority ${t} should contain at least one pathway from list: ${n}`);return}this.steering.pathwayPriority=r}}onError(t,n){n.fatal||!n.context||n.context.type===Yt.LEVEL&&n.context.level===this.level&&this.checkRetry(n)}onFragBuffered(t,{frag:n}){if(n!==void 0&&n.type===pt.MAIN){const r=n.elementaryStreams;if(!Object.keys(r).some(i=>!!r[i]))return;const s=this._levels[n.level];s!=null&&s.loadError&&(this.log(`Resetting level error count of ${s.loadError} on frag buffered`),s.loadError=0)}}onLevelLoaded(t,n){var r;const{level:s,details:i}=n,o=n.levelInfo;if(!o){var a;this.warn(`Invalid level index ${s}
131`),(a=n.deliveryDirectives)!=null&&a.skip&&(i.deltaUpdateFailed=!0);return}if(o===this.currentLevel||n.withoutMultiVariant){o.fragmentError===0&&(o.loadError=0);let l=o.details;l===n.details&&l.advanced&&(l=void 0),this.playlistLoaded(s,n,l)}else(r=n.deliveryDirectives)!=null&&r.skip&&(i.deltaUpdateFailed=!0)}loadPlaylist(t){super.loadPlaylist(),this.shouldLoadPlaylist(this.currentLevel)&&this.scheduleLoading(this.currentLevel,t)}loadingPlaylist(t,n){super.loadingPlaylist(t,n);const r=this.getUrlWithDirectives(t.uri,n),s=this.currentLevelIndex,i=t.attrs["PATHWAY-ID"],o=t.details,a=o?.age;this.log(`Loading level index ${s}${n?.msn!==void 0?" at sn "+n.msn+" part "+n.part:""}${i?" Pathway "+i:""}${a&&o.live?" age "+a.toFixed(1)+(o.type&&" "+o.type||""):""} ${r}`),this.hls.trigger(G.LEVEL_LOADING,{url:r,level:s,levelInfo:t,pathwayId:t.attrs["PATHWAY-ID"],id:0,deliveryDirectives:n||null})}get nextLoadLevel(){return this.manualLevelIndex!==-1?this.manualLevelIndex:this.hls.nextAutoLevel}set nextLoadLevel(t){this.level=t,this.manualLevelIndex===-1&&(this.hls.nextAutoLevel=t)}removeLevel(t){var n;if(this._levels.length===1)return;const r=this._levels.filter((i,o)=>o!==t?!0:(this.steering&&this.steering.removeLevel(i),i===this.currentLevel&&(this.currentLevel=null,this.currentLevelIndex=-1,i.details&&i.details.fragments.forEach(a=>a.level=-1)),!1));H6(r),this._levels=r,this.currentLevelIndex>-1&&(n=this.currentLevel)!=null&&n.details&&(this.currentLevelIndex=this.currentLevel.details.fragments[0].level),this.manualLevelIndex>-1&&(this.manualLevelIndex=this.currentLevelIndex);const s=r.length-1;this._firstLevel=Math.min(this._firstLevel,s),this._startLevel&&(this._startLevel=Math.min(this._startLevel,s)),this.hls.trigger(G.LEVELS_UPDATED,{levels:r})}onLevelsUpdated(t,{levels:n}){this._levels=n}checkMaxAutoUpdated(){const{autoLevelCapping:t,maxAutoLevel:n,maxHdcpLevel:r}=this.hls;this._maxAutoLevel!==n&&(this._maxAutoLevel=n,this.hls.trigger(G.MAX_AUTO_LEVEL_UPDATED,{autoLevelCapping:t,levels:this.levels,maxAutoLevel:n,minAutoLevel:this.hls.minAutoLevel,maxHdcpLevel:r}))}}function pL(e){const t={};e.forEach(n=>{const r=n.groupId||"";n.id=t[r]=t[r]||0,t[r]++})}function N5(){return self.SourceBuffer||self.WebKitSourceBuffer}function V5(){if(!xl())return!1;const t=N5();return!t||t.prototype&&typeof t.prototype.appendBuffer=="function"&&typeof t.prototype.remove=="function"}function Tpe(){if(!V5())return!1;const e=xl();return typeof e?.isTypeSupported=="function"&&(["avc1.42E01E,mp4a.40.2","av01.0.01M.08","vp09.00.50.08"].some(t=>e.isTypeSupported(ch(t,"video")))||["mp4a.40.2","fLaC"].some(t=>e.isTypeSupported(ch(t,"audio"))))}function Cpe(){var e;const t=N5();return typeof(t==null||(e=t.prototype)==null?void 0:e.changeType)=="function"}const Ape=100;class kpe extends NE{constructor(t,n,r){super(t,n,r,"stream-controller",pt.MAIN),this.audioCodecSwap=!1,this.level=-1,this._forceStartLoad=!1,this._hasEnoughToStart=!1,this.altAudio=0,this.audioOnly=!1,this.fragPlaying=null,this.fragLastKbps=0,this.couldBacktrack=!1,this.backtrackFragment=null,this.audioCodecSwitch=!1,this.videoBuffer=null,this.onMediaPlaying=()=>{this.tick()},this.onMediaSeeked=()=>{const s=this.media,i=s?s.currentTime:null;if(i===null||!lt(i)||(this.log(`Media seeked to ${i.toFixed(3)}`),!this.getBufferedFrag(i)))return;const o=this.getFwdBufferInfoAtPos(s,i,pt.MAIN,0);if(o===null||o.len===0){this.warn(`Main forward buffer length at ${i} on "seeked" event ${o?o.len:"empty"})`);return}this.tick()},this.registerListeners()}registerListeners(){super.registerListeners();const{hls:t}=this;t.on(G.MANIFEST_PARSED,this.onManifestParsed,this),t.on(G.LEVEL_LOADING,this.onLevelLoading,this),t.on(G.LEVEL_LOADED,this.onLevelLoaded,this),t.on(G.FRAG_LOAD_EMERGENCY_ABORTED,this.onFragLoadEmergencyAborted,this),t.on(G.AUDIO_TRACK_SWITCHING,this.onAudioTrackSwitching,this),t.on(G.AUDIO_TRACK_SWITCHED,this.onAudioTrackSwitched,this),t.on(G.BUFFER_CREATED,this.onBufferCreated,this),t.on(G.BUFFER_FLUSHED,this.onBufferFlushed,this),t.on(G.LEVELS_UPDATED,this.onLevelsUpdated,this),t.on(G.FRAG_BUFFERED,this.onFragBuffered,this)}unregisterListeners(){super.unregisterListeners();const{hls:t}=this;t.off(G.MANIFEST_PARSED,this.onManifestParsed,this),t.off(G.LEVEL_LOADED,this.onLevelLoaded,this),t.off(G.FRAG_LOAD_EMERGENCY_ABORTED,this.onFragLoadEmergencyAborted,this),t.off(G.AUDIO_TRACK_SWITCHING,this.onAudioTrackSwitching,this),t.off(G.AUDIO_TRACK_SWITCHED,this.onAudioTrackSwitched,this),t.off(G.BUFFER_CREATED,this.onBufferCreated,this),t.off(G.BUFFER_FLUSHED,this.onBufferFlushed,this),t.off(G.LEVELS_UPDATED,this.onLevelsUpdated,this),t.off(G.FRAG_BUFFERED,this.onFragBuffered,this)}onHandlerDestroying(){this.onMediaPlaying=this.onMediaSeeked=null,this.unregisterListeners(),super.onHandlerDestroying()}
vendor: 24,638 bytes, line 131
131startLoad(t,n){if(this.levels){const{lastCurrentTime:r,hls:s}=this;if(this.stopLoad(),this.setInterval(Ape),this.level=-1,!this.startFragRequested){let i=s.startLevel;i===-1&&(s.config.testBandwidth&&this.levels.length>1?(i=0,this.bitrateTest=!0):i=s.firstAutoLevel),s.nextLoadLevel=i,this.level=s.loadLevel,this._hasEnoughToStart=!!n}r>0&&t===-1&&!n&&(this.log(`Override startPosition with lastCurrentTime @${r.toFixed(3)}`),t=r),this.state=Ge.IDLE,this.nextLoadPosition=this.lastCurrentTime=t+this.timelineOffset,this.startPosition=n?-1:t,this.tick()}else this._forceStartLoad=!0,this.state=Ge.STOPPED}stopLoad(){this._forceStartLoad=!1,super.stopLoad()}doTick(){switch(this.state){case Ge.WAITING_LEVEL:{const{levels:t,level:n}=this,r=t?.[n],s=r?.details;if(s&&(!s.live||this.levelLastLoaded===r&&!this.waitForLive(r))){if(this.waitForCdnTuneIn(s))break;this.state=Ge.IDLE;break}else if(this.hls.nextLoadLevel!==this.level){this.state=Ge.IDLE;break}break}case Ge.FRAG_LOADING_WAITING_RETRY:this.checkRetryDate();break}this.state===Ge.IDLE&&this.doTickIdle(),this.onTickEnd()}onTickEnd(){var t;super.onTickEnd(),(t=this.media)!=null&&t.readyState&&this.media.seeking===!1&&(this.lastCurrentTime=this.media.currentTime),this.checkFragmentChanged()}doTickIdle(){const{hls:t,levelLastLoaded:n,levels:r,media:s}=this;if(n===null||!s&&!this.primaryPrefetch&&(this.startFragRequested||!t.config.startFragPrefetch)||this.altAudio&&this.audioOnly)return;const i=this.buffering?t.nextLoadLevel:t.loadLevel;if(!(r!=null&&r[i]))return;const o=r[i],a=this.getMainFwdBufferInfo();if(a===null)return;const l=this.getLevelDetails();if(l&&this._streamEnded(a,l)){const m={};this.altAudio===2&&(m.type="video"),this.hls.trigger(G.BUFFER_EOS,m),this.state=Ge.ENDED;return}if(!this.buffering)return;t.loadLevel!==i&&t.manualLevel===-1&&this.log(`Adapting to level ${i} from level ${this.level}`),this.level=t.nextLoadLevel=i;const u=o.details;if(!u||this.state===Ge.WAITING_LEVEL||this.waitForLive(o)){this.level=i,this.state=Ge.WAITING_LEVEL,this.startFragRequested=!1;return}const c=a.len,d=this.getMaxBufferLength(o.maxBitrate);if(c>=d)return;this.backtrackFragment&&this.backtrackFragment.start>a.end&&(this.backtrackFragment=null);const f=this.backtrackFragment?this.backtrackFragment.start:a.end;let h=this.getNextFragment(f,u);if(this.couldBacktrack&&!this.fragPrevious&&h&&mr(h)&&this.fragmentTracker.getState(h)!==br.OK){var p;const v=((p=this.backtrackFragment)!=null?p:h).sn-u.startSN,x=u.fragments[v-1];x&&h.cc===x.cc&&(h=x,this.fragmentTracker.removeFragment(x))}else this.backtrackFragment&&a.len&&(this.backtrackFragment=null);if(h&&this.isLoopLoading(h,f)){if(!h.gap){const v=this.audioOnly&&!this.altAudio?In.AUDIO:In.VIDEO,x=(v===In.VIDEO?this.videoBuffer:this.mediaBuffer)||this.media;x&&this.afterBufferFlushed(x,v,pt.MAIN)}h=this.getNextFragmentLoopLoading(h,u,a,pt.MAIN,d)}h&&(h.initSegment&&!h.initSegment.data&&!this.bitrateTest&&(h=h.initSegment),this.loadFragment(h,o,f))}loadFragment(t,n,r){const s=this.fragmentTracker.getState(t);s===br.NOT_LOADED||s===br.PARTIAL?mr(t)?this.bitrateTest?(this.log(`Fragment ${t.sn} of level ${t.level} is being downloaded to test bitrate and will not be buffered`),this._loadBitrateTestFrag(t,n)):super.loadFragment(t,n,r):this._loadInitSegment(t,n):this.clearTrackerIfNeeded(t)}getBufferedFrag(t){return this.fragmentTracker.getBufferedFrag(t,pt.MAIN)}followingBufferedFrag(t){return t?this.getBufferedFrag(t.end+.5):null}immediateLevelSwitch(){this.abortCurrentFrag(),this.flushMainBuffer(0,Number.POSITIVE_INFINITY)}nextLevelSwitch(){const{levels:t,media:n}=this;if(n!=null&&n.readyState){let r;const s=this.getAppendedFrag(n.currentTime);s&&s.start>1&&this.flushMainBuffer(0,s.start-1);const i=this.getLevelDetails();if(i!=null&&i.live){const a=this.getMainFwdBufferInfo();if(!a||a.len<i.targetduration*2)return}if(!n.paused&&t){const a=this.hls.nextLoadLevel,l=t[a],u=this.fragLastKbps;u&&this.fragCurrent?r=this.fragCurrent.duration*l.maxBitrate/(1e3*u)+1:r=0}else r=0;const o=this.getBufferedFrag(n.currentTime+r);if(o){const a=this.followingBufferedFrag(o);if(a){this.abortCurrentFrag();const l=a.maxStartPTS?a.maxStartPTS:a.start,u=a.duration,c=Math.max(o.end,l+Math.min(Math.max(u-this.config.maxFragLookUpTolerance,u*(this.couldBacktrack?.5:.125)),u*(this.couldBacktrack?.75:.25)));this.flushMainBuffer(c,Number.POSITIVE_INFINITY)}}}}abortCurrentFrag(){const t=this.fragCurrent;switch(this.fragCurrent=null,this.backtrackFragment=null,t&&(t.abortRequests(),this.fragmentTracker.removeFragment(t)),this.state){case Ge.KEY_LOADING:case Ge.FRAG_LOADING:case Ge.FRAG_LOADING_WAITING_RETRY:case Ge.PARSING:case Ge.PARSED:this.state=Ge.IDLE;break}this.nextLoadPosition=this.getLoadPosition()}flushMainBuffer(t,n){super.flushMainBuffer(t,n,this.altAudio===2?"video":null)}onMediaAttached(t,n){super.onMediaAttached(t,n);const r=n.media;Cs(r,"playing",this.onMediaPlaying),Cs(r,"seeked",this.onMediaSeeked)}onMediaDetaching(t,n){const{media:r}=this;r&&(Us(r,"playing",this.onMediaPlaying),Us(r,"seeked",this.onMediaSeeked)),this.videoBuffer=null,this.fragPlaying=null,super.onMediaDetaching(t,n),!n.transferMedia&&(this._hasEnoughToStart=!1)}onManifestLoading(){super.onManifestLoading(),this.log("Trigger BUFFER_RESET"),this.hls.trigger(G.BUFFER_RESET,void 0),this.couldBacktrack=!1,this.fragLastKbps=0,this.fragPlaying=this.backtrackFragment=null,this.altAudio=0,this.audioOnly=!1}onManifestParsed(t,n){let r=!1,s=!1;for(let i=0;i<n.levels.length;i++){const o=n.levels[i].audioCodec;o&&(r=r||o.indexOf("mp4a.40.2")!==-1,s=s||o.indexOf("mp4a.40.5")!==-1)}this.audioCodecSwitch=r&&s&&!Cpe(),this.audioCodecSwitch&&this.log("Both AAC/HE-AAC audio found in levels; declaring level codec as HE-AAC"),this.levels=n.levels,this.startFragRequested=!1}onLevelLoading(t,n){const{levels:r}=this;if(!r||this.state!==Ge.IDLE)return;const s=n.levelInfo;(!s.details||s.details.live&&(this.levelLastLoaded!==s||s.details.expired)||this.waitForCdnTuneIn(s.details))&&(this.state=Ge.WAITING_LEVEL)}onLevelLoaded(t,n){var r;const{levels:s,startFragRequested:i}=this,o=n.level,a=n.details,l=a.totalduration;if(!s){this.warn(`Levels were reset while loading level ${o}`);return}this.log(`Level ${o} loaded [${a.startSN},${a.endSN}]${a.lastPartSn?`[part-${a.lastPartSn}-${a.lastPartIndex}]`:""}, cc [${a.startCC}, ${a.endCC}] duration:${l}`);const u=n.levelInfo,c=this.fragCurrent;c&&(this.state===Ge.FRAG_LOADING||this.state===Ge.FRAG_LOADING_WAITING_RETRY)&&c.level!==n.level&&c.loader&&this.abortCurrentFrag();let d=0;if(a.live||(r=u.details)!=null&&r.live){var f;if(this.checkLiveUpdate(a),a.deltaUpdateFailed)return;d=this.alignPlaylists(a,u.details,(f=this.levelLastLoaded)==null?void 0:f.details)}if(u.details=a,this.levelLastLoaded=u,i||this.setStartPosition(a,d),this.hls.trigger(G.LEVEL_UPDATED,{details:a,level:o}),this.state===Ge.WAITING_LEVEL){if(this.waitForCdnTuneIn(a))return;this.state=Ge.IDLE}i&&a.live&&this.synchronizeToLiveEdge(a),this.tick()}synchronizeToLiveEdge(t){const{config:n,media:r}=this;if(!r)return;const s=this.hls.liveSyncPosition,i=this.getLoadPosition(),o=t.fragmentStart,a=t.edge,l=i>=o-n.maxFragLookUpTolerance&&i<=a;if(s!==null&&r.duration>s&&(i<s||!l)){const c=n.liveMaxLatencyDuration!==void 0?n.liveMaxLatencyDuration:n.liveMaxLatencyDurationCount*t.targetduration;if((!l&&r.readyState<4||i<a-c)&&(this._hasEnoughToStart||(this.nextLoadPosition=s),r.readyState))if(this.warn(`Playback: ${i.toFixed(3)} is located too far from the end of live sliding playlist: ${a}, reset currentTime to : ${s.toFixed(3)}`),this.config.liveSyncMode==="buffered"){var u;const d=Ft.bufferInfo(r,s,0);if(!((u=d.buffered)!=null&&u.length)){r.currentTime=s;return}if(d.start<=i){r.currentTime=s;return}const{nextStart:h}=Ft.bufferedInfo(d.buffered,i,0);h&&(r.currentTime=h)}else r.currentTime=s}}_handleFragmentLoadProgress(t){var n;const r=t.frag,{part:s,payload:i}=t,{levels:o}=this;if(!o){this.warn(`Levels were reset while fragment load was in progress. Fragment ${r.sn} of level ${r.level} will not be buffered`);return}const a=o[r.level];if(!a){this.warn(`Level ${r.level} not found on progress`);return}const l=a.details;if(!l){this.warn(`Dropping fragment ${r.sn} of level ${r.level} after level details were reset`),this.fragmentTracker.removeFragment(r);return}const u=a.videoCodec,c=l.PTSKnown||!l.live,d=(n=r.initSegment)==null?void 0:n.data,f=this._getAudioCodec(a),h=this.transmuxer=this.transmuxer||new f5(this.hls,pt.MAIN,this._handleTransmuxComplete.bind(this),this._handleTransmuxerFlush.bind(this)),p=s?s.index:-1,m=p!==-1,v=new ME(r.level,r.sn,r.stats.chunkCount,i.byteLength,p,m),x=this.initPTS[r.cc];h.push(i,d,f,u,r,s,l.totalduration,c,v,x)}onAudioTrackSwitching(t,n){const r=this.hls,s=this.altAudio===2;if(fg(n.url,r))this.altAudio=1;else{if(this.mediaBuffer!==this.media){this.log("Switching on main audio, use media.buffered to schedule main fragment loading"),this.mediaBuffer=this.media;const o=this.fragCurrent;o&&(this.log("Switching to main audio track, cancel main fragment load"),o.abortRequests(),this.fragmentTracker.removeFragment(o)),this.resetTransmuxer(),this.resetLoadingState()}else this.audioOnly&&this.resetTransmuxer();if(s){this.fragmentTracker.removeAllFragments(),r.once(G.BUFFER_FLUSHED,()=>{this.hls&&this.hls.trigger(G.AUDIO_TRACK_SWITCHED,n)}),r.trigger(G.BUFFER_FLUSHING,{startOffset:0,endOffset:Number.POSITIVE_INFINITY,type:null});return}r.trigger(G.AUDIO_TRACK_SWITCHED,n)}}onAudioTrackSwitched(t,n){const r=fg(n.url,this.hls);if(r){const s=this.videoBuffer;s&&this.mediaBuffer!==s&&(this.log("Switching on alternate audio, use video.buffered to schedule main fragment loading"),this.mediaBuffer=s)}this.altAudio=r?2:0,this.tick()}onBufferCreated(t,n){const r=n.tracks;let s,i,o=!1;for(const a in r){const l=r[a];if(l.id==="main"){if(i=a,s=l,a==="video"){const u=r[a];u&&(this.videoBuffer=u.buffer)}}else o=!0}o&&s?(this.log(`Alternate track found, use ${i}.buffered to schedule main fragment loading`),this.mediaBuffer=s.buffer):this.mediaBuffer=this.media}onFragBuffered(t,n){const{frag:r,part:s}=n,i=r.type===pt.MAIN;if(i){if(this.fragContextChanged(r)){this.warn(`Fragment ${r.sn}${s?" p: "+s.index:""} of level ${r.level} finished buffering, but was aborted. state: ${this.state}`),this.state===Ge.PARSED&&(this.state=Ge.IDLE);return}const a=s?s.stats:r.stats;this.fragLastKbps=Math.round(8*a.total/(a.buffering.end-a.loading.first)),mr(r)&&(this.fragPrevious=r),this.fragBufferedComplete(r,s)}const o=this.media;o&&(!this._hasEnoughToStart&&Ft.getBuffered(o).length&&(this._hasEnoughToStart=!0,this.seekToStartPos()),i&&this.tick())}get hasEnoughToStart(){return this._hasEnoughToStart}onError(t,n){var r;if(n.fatal){this.state=Ge.ERROR;return}switch(n.details){case Re.FRAG_GAP:case Re.FRAG_PARSING_ERROR:case Re.FRAG_DECRYPT_ERROR:case Re.FRAG_LOAD_ERROR:case Re.FRAG_LOAD_TIMEOUT:case Re.KEY_LOAD_ERROR:case Re.KEY_LOAD_TIMEOUT:this.onFragmentOrKeyLoadError(pt.MAIN,n);break;case Re.LEVEL_LOAD_ERROR:case Re.LEVEL_LOAD_TIMEOUT:case Re.LEVEL_PARSING_ERROR:!n.levelRetry&&this.state===Ge.WAITING_LEVEL&&((r=n.context)==null?void 0:r.type)===Yt.LEVEL&&(this.state=Ge.IDLE);break;case Re.BUFFER_ADD_CODEC_ERROR:case Re.BUFFER_APPEND_ERROR:if(n.parent!=="main")return;this.reduceLengthAndFlushBuffer(n)&&this.resetLoadingState();break;case Re.BUFFER_FULL_ERROR:if(n.parent!=="main")return;this.reduceLengthAndFlushBuffer(n)&&(!this.config.interstitialsController&&this.config.assetPlayerId?this._hasEnoughToStart=!0:this.flushMainBuffer(0,Number.POSITIVE_INFINITY));break;case Re.INTERNAL_EXCEPTION:this.recoverWorkerError(n);break}}onFragLoadEmergencyAborted(){this.state=Ge.IDLE,this._hasEnoughToStart||(this.startFragRequested=!1,this.nextLoadPosition=this.lastCurrentTime),this.tickImmediate()}onBufferFlushed(t,{type:n}){if(n!==In.AUDIO||!this.altAudio){const r=(n===In.VIDEO?this.videoBuffer:this.mediaBuffer)||this.media;r&&(this.afterBufferFlushed(r,n,pt.MAIN),this.tick())}}onLevelsUpdated(t,n){this.level>-1&&this.fragCurrent&&(this.level=this.fragCurrent.level,this.level===-1&&this.resetWhenMissingContext(this.fragCurrent)),this.levels=n.levels}swapAudioCodec(){this.audioCodecSwap=!this.audioCodecSwap}seekToStartPos(){const{media:t}=this;if(!t)return;const n=t.currentTime;let r=this.startPosition;if(r>=0&&n<r){if(t.seeking){this.log(`could not seek to ${r}, already seeking at ${n}`);return}const s=this.timelineOffset;s&&r&&(r+=s);const i=this.getLevelDetails(),o=Ft.getBuffered(t),a=o.length?o.start(0):0,l=a-r,u=Math.max(this.config.maxBufferHole,this.config.maxFragLookUpTolerance);(this.config.startOnSegmentBoundary||l>0&&(l<u||this.loadingParts&&l<2*(i?.partTarget||0)))&&(this.log(`adjusting start position by ${l} to match buffer start`),r+=l,this.startPosition=r),n<r&&(this.log(`seek to target start position ${r} from current time ${n} buffer start ${a}`),t.currentTime=r)}}_getAudioCodec(t){let n=this.config.defaultAudioCodec||t.audioCodec;return this.audioCodecSwap&&n&&(this.log("Swapping audio codec"),n.indexOf("mp4a.40.5")!==-1?n="mp4a.40.2":n="mp4a.40.5"),n}_loadBitrateTestFrag(t,n){t.bitrateTest=!0,this._doFragLoad(t,n).then(r=>{const{hls:s}=this,i=r?.frag;if(!i||this.fragContextChanged(i))return;n.fragmentError=0,this.state=Ge.IDLE,this.startFragRequested=!1,this.bitrateTest=!1;const o=i.stats;o.parsing.start=o.parsing.end=o.buffering.start=o.buffering.end=self.performance.now(),s.trigger(G.FRAG_LOADED,r),i.bitrateTest=!1}).catch(r=>{this.state===Ge.STOPPED||this.state===Ge.ERROR||(this.warn(r),this.resetFragmentLoading(t))})}_handleTransmuxComplete(t){const n=this.playlistType,{hls:r}=this,{remuxResult:s,chunkMeta:i}=t,o=this.getCurrentContext(i);if(!o){this.resetWhenMissingContext(i);return}const{frag:a,part:l,level:u}=o,{video:c,text:d,id3:f,initSegment:h}=s,{details:p}=u,m=this.altAudio?void 0:s.audio;if(this.fragContextChanged(a)){this.fragmentTracker.removeFragment(a);return}if(this.state=Ge.PARSING,h){const v=h.tracks;if(v){const _=a.initSegment||a;if(this.unhandledEncryptionError(h,a))return;this._bufferInitSegment(u,v,_,i),r.trigger(G.FRAG_PARSING_INIT_SEGMENT,{frag:_,id:n,tracks:v})}const x=h.initPTS,g=h.timescale,y=this.initPTS[a.cc];if(lt(x)&&(!y||y.baseTime!==x||y.timescale!==g)){const _=h.trackId;this.initPTS[a.cc]={baseTime:x,timescale:g,trackId:_},r.trigger(G.INIT_PTS_FOUND,{frag:a,id:n,initPTS:x,timescale:g,trackId:_})}}if(c&&p){m&&c.type==="audiovideo"&&this.logMuxedErr(a);const v=p.fragments[a.sn-1-p.startSN],x=a.sn===p.startSN,g=!v||a.cc>v.cc;if(s.independent!==!1){const{startPTS:y,endPTS:_,startDTS:E,endDTS:w}=c;if(l)l.elementaryStreams[c.type]={startPTS:y,endPTS:_,startDTS:E,endDTS:w};else if(c.firstKeyFrame&&c.independent&&i.id===1&&!g&&(this.couldBacktrack=!0),c.dropped&&c.independent){const T=this.getMainFwdBufferInfo(),C=(T?T.end:this.getLoadPosition())+this.config.maxBufferHole,I=c.firstKeyFramePTS?c.firstKeyFramePTS:y;if(!x&&C<I-this.config.maxBufferHole&&!g){this.backtrack(a);return}else g&&(a.gap=!0);a.setElementaryStreamInfo(c.type,a.start,_,a.start,w,!0)}else x&&y-(p.appliedTimelineOffset||0)>Mm&&(a.gap=!0);a.setElementaryStreamInfo(c.type,y,_,E,w),this.backtrackFragment&&(this.backtrackFragment=a),this.bufferFragmentData(c,a,l,i,x||g)}else if(x||g)a.gap=!0;else{this.backtrack(a);return}}if(m){const{startPTS:v,endPTS:x,startDTS:g,endDTS:y}=m;l&&(l.elementaryStreams[In.AUDIO]={startPTS:v,endPTS:x,startDTS:g,endDTS:y}),a.setElementaryStreamInfo(In.AUDIO,v,x,g,y),this.bufferFragmentData(m,a,l,i)}if(p&&f!=null&&f.samples.length){const v={id:n,frag:a,details:p,samples:f.samples};r.trigger(G.FRAG_PARSING_METADATA,v)}if(p&&d){const v={id:n,frag:a,details:p,samples:d.samples};r.trigger(G.FRAG_PARSING_USERDATA,v)}}logMuxedErr(t){this.warn(`${mr(t)?"Media":"Init"} segment with muxed audiovideo where only video expected: ${t.url}`)}_bufferInitSegment(t,n,r,s){if(this.state!==Ge.PARSING)return;this.audioOnly=!!n.audio&&!n.video,this.altAudio&&!this.audioOnly&&(delete n.audio,n.audiovideo&&this.logMuxedErr(r));const{audio:i,video:o,audiovideo:a}=n;if(i){const u=t.audioCodec;let c=Im(i.codec,u);c==="mp4a"&&(c="mp4a.40.5");const d=navigator.userAgent.toLowerCase();if(this.audioCodecSwitch){c&&(c.indexOf("mp4a.40.5")!==-1?c="mp4a.40.2":c="mp4a.40.5");const f=i.metadata;f&&"channelCount"in f&&(f.channelCount||1)!==1&&d.indexOf("firefox")===-1&&(c="mp4a.40.5")}c&&c.indexOf("mp4a.40.5")!==-1&&d.indexOf("android")!==-1&&i.container!=="audio/mpeg"&&(c="mp4a.40.2",this.log(`Android: force audio codec to ${c}`)),u&&u!==c&&this.log(`Swapping manifest audio codec "${u}" for "${c}"`),i.levelCodec=c,i.id=pt.MAIN,this.log(`Init audio buffer, container:${i.container}, codecs[selected/level/parsed]=[${c||""}/${u||""}/${i.codec}]`),delete n.audiovideo}if(o){o.levelCodec=t.videoCodec,o.id=pt.MAIN;const u=o.codec;if(u?.length===4)switch(u){case"hvc1":case"hev1":o.codec="hvc1.1.6.L120.90";break;case"av01":o.codec="av01.0.04M.08";break;case"avc1":o.codec="avc1.42e01e";break}this.log(`Init video buffer, container:${o.container}, codecs[level/parsed]=[${t.videoCodec||""}/${u}]${o.codec!==u?" parsed-corrected="+o.codec:""}${o.supplemental?" supplemental="+o.supplemental:""}`),delete n.audiovideo}a&&(this.log(`Init audiovideo buffer, container:${a.container}, codecs[level/parsed]=[${t.codecs}/${a.codec}]`),delete n.video,delete n.audio);const l=Object.keys(n);if(l.length){if(this.hls.trigger(G.BUFFER_CODECS,n),!this.hls)return;l.forEach(u=>{const d=n[u].initSegment;d!=null&&d.byteLength&&this.hls.trigger(G.BUFFER_APPENDING,{type:u,data:d,frag:r,part:null,chunkMeta:s,parent:r.type})})}this.tickImmediate()}getMainFwdBufferInfo(){const t=this.mediaBuffer&&this.altAudio===2?this.mediaBuffer:this.media;return this.getFwdBufferInfo(t,pt.MAIN)}get maxBufferLength(){const{levels:t,level:n}=this,r=t?.[n];return r?this.getMaxBufferLength(r.maxBitrate):this.config.maxBufferLength}backtrack(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=Ge.IDLE}checkFragmentChanged(){const t=this.media;let n=null;if(t&&t.readyState>1&&t.seeking===!1){const r=t.currentTime;if(Ft.isBuffered(t,r)?n=this.getAppendedFrag(r):Ft.isBuffered(t,r+.1)&&(n=this.getAppendedFrag(r+.1)),n){this.backtrackFragment=null;const s=this.fragPlaying,i=n.level;(!s||n.sn!==s.sn||s.level!==i)&&(this.fragPlaying=n,this.hls.trigger(G.FRAG_CHANGED,{frag:n}),(!s||s.level!==i)&&this.hls.trigger(G.LEVEL_SWITCHED,{level:i}))}}}get nextLevel(){const t=this.nextBufferedFrag;return t?t.level:-1}get currentFrag(){var t;if(this.fragPlaying)return this.fragPlaying;const n=((t=this.media)==null?void 0:t.currentTime)||this.lastCurrentTime;return lt(n)?this.getAppendedFrag(n):null}get currentProgramDateTime(){var t;const n=((t=this.media)==null?void 0:t.currentTime)||this.lastCurrentTime;if(lt(n)){const r=this.getLevelDetails(),s=this.currentFrag||(r?Au(null,r.fragments,n):null);if(s){const i=s.programDateTime;if(i!==null){const o=i+(n-s.start)*1e3;return new Date(o)}}}return null}get currentLevel(){const t=this.currentFrag;return t?t.level:-1}get nextBufferedFrag(){const t=this.currentFrag;return t?this.followingBufferedFrag(t):null}get forceStartLoad(){return this._forceStartLoad}}class Ipe extends Ki{constructor(t,n){super("key-loader",n),this.config=void 0,this.keyIdToKeyInfo={},this.emeController=null,this.config=t}abort(t){for(const r in this.keyIdToKeyInfo){const s=this.keyIdToKeyInfo[r].loader;if(s){var n;if(t&&t!==((n=s.context)==null?void 0:n.frag.type))return;s.abort()}}}detach(){for(const t in this.keyIdToKeyInfo){const n=this.keyIdToKeyInfo[t];(n.mediaKeySessionContext||n.decryptdata.isCommonEncryption)&&delete this.keyIdToKeyInfo[t]}}destroy(){this.detach();for(const t in this.keyIdToKeyInfo){const n=this.keyIdToKeyInfo[t].loader;n&&n.destroy()}this.keyIdToKeyInfo={}}createKeyLoadError(t,n=Re.KEY_LOAD_ERROR,r,s,i){return new ia({type:bt.NETWORK_ERROR,details:n,fatal:!1,frag:t,response:i,error:r,networkDetails:s})}loadClear(t,n,r){if(this.emeController&&this.config.emeEnabled&&!this.emeController.getSelectedKeySystemFormats().length){if(n.length)for(let s=0,i=n.length;s<i;s++){const o=n[s];if(t.cc<=o.cc&&(!mr(t)||!mr(o)||t.sn<o.sn)||!r&&s==i-1)return this.emeController.selectKeySystemFormat(o).then(a=>{if(!this.emeController)return;o.setKeyFormat(a);const l=Dm(a);if(l)return this.emeController.getKeySystemAccess([l])})}if(this.config.requireKeySystemAccessOnStart){const s=rf(this.config);if(s.length)return this.emeController.getKeySystemAccess(s)}}return null}load(t){return!t.decryptdata&&t.encrypted&&this.emeController&&this.config.emeEnabled?this.emeController.selectKeySystemFormat(t).then(n=>this.loadInternal(t,n)):this.loadInternal(t)}loadInternal(t,n){var r,s;n&&t.setKeyFormat(n);const i=t.decryptdata;if(!i){const u=new Error(n?`Expected frag.decryptdata to be defined after setting format ${n}`:`Missing decryption data on fragment in onKeyLoading (emeEnabled with controller: ${this.emeController&&this.config.emeEnabled})`);return Promise.reject(this.createKeyLoadError(t,Re.KEY_LOAD_ERROR,u))}const o=i.uri;if(!o)return Promise.reject(this.createKeyLoadError(t,Re.KEY_LOAD_ERROR,new Error(`Invalid key URI: "${o}"`)));const a=Ox(i);let l=this.keyIdToKeyInfo[a];if((r=l)!=null&&r.decryptdata.key)return i.key=l.decryptdata.key,Promise.resolve({frag:t,keyInfo:l});if(this.emeController&&(s=l)!=null&&s.keyLoadPromise)switch(this.emeController.getKeyStatus(l.decryptdata)){case"usable":case"usable-in-future":return l.keyLoadPromise.then(c=>{const{keyInfo:d}=c;return i.key=d.decryptdata.key,{frag:t,keyInfo:d}})}switch(this.log(`${this.keyIdToKeyInfo[a]?"Rel":"L"}oading${i.keyId?" keyId: "+_s(i.keyId):""} URI: ${i.uri} from ${t.type} ${t.level}`),l=this.keyIdToKeyInfo[a]={decryptdata:i,keyLoadPromise:null,loader:null,mediaKeySessionContext:null},i.method){case"SAMPLE-AES":case"SAMPLE-AES-CENC":case"SAMPLE-AES-CTR":return i.keyFormat==="identity"?this.loadKeyHTTP(l,t):this.loadKeyEME(l,t);case"AES-128":case"AES-256":case"AES-256-CTR":return this.loadKeyHTTP(l,t);default:return Promise.reject(this.createKeyLoadError(t,Re.KEY_LOAD_ERROR,new Error(`Key supplied with unsupported METHOD: "${i.method}"`)))}}loadKeyEME(t,n){const r={frag:n,keyInfo:t};if(this.emeController&&this.config.emeEnabled){var s;if(!t.decryptdata.keyId&&(s=n.initSegment)!=null&&s.data){const o=qce(n.initSegment.data);if(o.length){const a=o[0];a.some(l=>l!==0)&&(this.log(`Using keyId found in init segment ${_s(a)}`),t.decryptdata.keyId=a,fu.setKeyIdForUri(t.decryptdata.uri,a))}}const i=this.emeController.loadKey(r);return(t.keyLoadPromise=i.then(o=>(t.mediaKeySessionContext=o,r))).catch(o=>{throw t.keyLoadPromise=null,"data"in o&&(o.data.frag=n),o})}return Promise.resolve(r)}loadKeyHTTP(t,n){const r=this.config,s=r.loader,i=new s(r);return n.keyLoader=t.loader=i,t.keyLoadPromise=new Promise((o,a)=>{const l={keyInfo:t,frag:n,responseType:"arraybuffer",url:t.decryptdata.uri},u=r.keyLoadPolicy.default,c={loadPolicy:u,timeout:u.maxLoadTimeMs,maxRetry:0,retryDelay:0,maxRetryDelay:0},d={onSuccess:(f,h,p,m)=>{const{frag:v,keyInfo:x}=p,g=Ox(x.decryptdata);if(!v.decryptdata||x!==this.keyIdToKeyInfo[g])return a(this.createKeyLoadError(v,Re.KEY_LOAD_ERROR,new Error("after key load, decryptdata unset or changed"),m));x.decryptdata.key=v.decryptdata.key=new Uint8Array(f.data),v.keyLoader=null,x.loader=null,o({frag:v,keyInfo:x})},onError:(f,h,p,m)=>{this.resetLoader(h),a(this.createKeyLoadError(n,Re.KEY_LOAD_ERROR,new Error(`HTTP Error ${f.code} loading key ${f.text}`),p,Sn({url:l.url,data:void 0},f)))},onTimeout:(f,h,p)=>{this.resetLoader(h),a(this.createKeyLoadError(n,Re.KEY_LOAD_TIMEOUT,new Error("key loading timed out"),p))},onAbort:(f,h,p)=>{this.resetLoader(h),a(this.createKeyLoadError(n,Re.INTERNAL_ABORTED,new Error("key loading aborted"),p))}};i.load(l,c,d)})}resetLoader(t){const{frag:n,keyInfo:r,url:s}=t,i=r.loader;n.keyLoader===i&&(n.keyLoader=null,r.loader=null);const o=Ox(r.decryptdata)||s;delete this.keyIdToKeyInfo[o],i&&i.destroy()}}function Ox(e){if(e.keyFormat!==Gr.FAIRPLAY){const t=e.keyId;if(t)return _s(t)}return e.uri}function mL(e){const{type:t}=e;switch(t){case Yt.AUDIO_TRACK:return pt.AUDIO;case Yt.SUBTITLE_TRACK:return pt.SUBTITLE;default:return pt.MAIN}}function $x(e,t){let n=e.url;return(n===void 0||n.indexOf("data:")===0)&&(n=t.url),n}class Lpe{constructor(t){this.hls=void 0,this.loaders=Object.create(null),this.variableList=null,this.onManifestLoaded=this.checkAutostartLoad,this.hls=t,this.registerListeners()}
vendor: 4,314 bytes, line 131
131startLoad(t){}stopLoad(){this.destroyInternalLoaders()}registerListeners(){const{hls:t}=this;t.on(G.MANIFEST_LOADING,this.onManifestLoading,this),t.on(G.LEVEL_LOADING,this.onLevelLoading,this),t.on(G.AUDIO_TRACK_LOADING,this.onAudioTrackLoading,this),t.on(G.SUBTITLE_TRACK_LOADING,this.onSubtitleTrackLoading,this),t.on(G.LEVELS_UPDATED,this.onLevelsUpdated,this)}unregisterListeners(){const{hls:t}=this;t.off(G.MANIFEST_LOADING,this.onManifestLoading,this),t.off(G.LEVEL_LOADING,this.onLevelLoading,this),t.off(G.AUDIO_TRACK_LOADING,this.onAudioTrackLoading,this),t.off(G.SUBTITLE_TRACK_LOADING,this.onSubtitleTrackLoading,this),t.off(G.LEVELS_UPDATED,this.onLevelsUpdated,this)}createInternalLoader(t){const n=this.hls.config,r=n.pLoader,s=n.loader,i=r||s,o=new i(n);return this.loaders[t.type]=o,o}getInternalLoader(t){return this.loaders[t.type]}resetInternalLoader(t){this.loaders[t]&&delete this.loaders[t]}destroyInternalLoaders(){for(const t in this.loaders){const n=this.loaders[t];n&&n.destroy(),this.resetInternalLoader(t)}}destroy(){this.variableList=null,this.unregisterListeners(),this.destroyInternalLoaders()}onManifestLoading(t,n){const{url:r}=n;this.variableList=null,this.load({id:null,level:0,responseType:"text",type:Yt.MANIFEST,url:r,deliveryDirectives:null,levelOrTrack:null})}onLevelLoading(t,n){const{id:r,level:s,pathwayId:i,url:o,deliveryDirectives:a,levelInfo:l}=n;this.load({id:r,level:s,pathwayId:i,responseType:"text",type:Yt.LEVEL,url:o,deliveryDirectives:a,levelOrTrack:l})}onAudioTrackLoading(t,n){const{id:r,groupId:s,url:i,deliveryDirectives:o,track:a}=n;this.load({id:r,groupId:s,level:null,responseType:"text",type:Yt.AUDIO_TRACK,url:i,deliveryDirectives:o,levelOrTrack:a})}onSubtitleTrackLoading(t,n){const{id:r,groupId:s,url:i,deliveryDirectives:o,track:a}=n;this.load({id:r,groupId:s,level:null,responseType:"text",type:Yt.SUBTITLE_TRACK,url:i,deliveryDirectives:o,levelOrTrack:a})}onLevelsUpdated(t,n){const r=this.loaders[Yt.LEVEL];if(r){const s=r.context;s&&!n.levels.some(i=>i===s.levelOrTrack)&&(r.abort(),delete this.loaders[Yt.LEVEL])}}load(t){var n;const r=this.hls.config;let s=this.getInternalLoader(t);if(s){const u=this.hls.logger,c=s.context;if(c&&c.levelOrTrack===t.levelOrTrack&&(c.url===t.url||c.deliveryDirectives&&!t.deliveryDirectives)){c.url===t.url?u.log(`[playlist-loader]: ignore ${t.url} ongoing request`):u.log(`[playlist-loader]: ignore ${t.url} in favor of ${c.url}`);return}u.log(`[playlist-loader]: aborting previous loader for type: ${t.type}`),s.abort()}let i;if(t.type===Yt.MANIFEST?i=r.manifestLoadPolicy.default:i=kn({},r.playlistLoadPolicy.default,{timeoutRetry:null,errorRetry:null}),s=this.createInternalLoader(t),lt((n=t.deliveryDirectives)==null?void 0:n.part)){let u;if(t.type===Yt.LEVEL&&t.level!==null?u=this.hls.levels[t.level].details:t.type===Yt.AUDIO_TRACK&&t.id!==null?u=this.hls.audioTracks[t.id].details:t.type===Yt.SUBTITLE_TRACK&&t.id!==null&&(u=this.hls.subtitleTracks[t.id].details),u){const c=u.partTarget,d=u.targetduration;if(c&&d){const f=Math.max(c*3,d*.8)*1e3;i=kn({},i,{maxTimeToFirstByteMs:Math.min(f,i.maxTimeToFirstByteMs),maxLoadTimeMs:Math.min(f,i.maxTimeToFirstByteMs)})}}}const o=i.errorRetry||i.timeoutRetry||{},a={loadPolicy:i,timeout:i.maxLoadTimeMs,maxRetry:o.maxNumRetry||0,retryDelay:o.retryDelayMs||0,maxRetryDelay:o.maxRetryDelayMs||0},l={onSuccess:(u,c,d,f)=>{const h=this.getInternalLoader(d);this.resetInternalLoader(d.type);const p=u.data;c.parsing.start=performance.now(),$o.isMediaPlaylist(p)||d.type!==Yt.MANIFEST?this.handleTrackOrLevelPlaylist(u,c,d,f||null,h):this.handleMasterPlaylist(u,c,d,f)},onError:(u,c,d,f)=>{this.handleNetworkError(c,d,!1,u,f)},onTimeout:(u,c,d)=>{this.handleNetworkError(c,d,!0,void 0,u)}};s.load(t,a,l)}checkAutostartLoad(){if(!this.hls)return;const{config:{autoStartLoad:t,startPosition:n},forceStartLoad:r}=this.hls;(t||r)&&(this.hls.logger.log(`${t?"auto":"force"} startLoad with configured startPosition ${n}`),this.hls.startLoad(n))}handleMasterPlaylist(t,n,r,s){const i=this.hls,o=t.data,a=$x(t,r),l=$o.parseMasterPlaylist(o,a);if(l.playlistParsingError){n.parsing.end=performance.now(),this.handleManifestParsingError(t,r,l.playlistParsingError,s,n);return}const{contentSteering:u,levels:c,sessionData:d,sessionKeys:f,startTimeOffset:h,variableList:p}=l;
vendor: 8,635 bytes, line 131
131this.variableList=p,c.forEach(g=>{const{unknownCodecs:y}=g;if(y){const{preferManagedMediaSource:_}=this.hls.config;let{audioCodec:E,videoCodec:w}=g;for(let T=y.length;T--;){const C=y[T];uh(C,"audio",_)?(g.audioCodec=E=E?`${E},${C}`:C,Xc.audio[E.substring(0,4)]=2,y.splice(T,1)):uh(C,"video",_)&&(g.videoCodec=w=w?`${w},${C}`:C,Xc.video[w.substring(0,4)]=2,y.splice(T,1))}}});const{AUDIO:m=[],SUBTITLES:v,"CLOSED-CAPTIONS":x}=$o.parseMasterPlaylistMedia(o,a,l);m.length&&!m.some(y=>!y.url)&&c[0].audioCodec&&!c[0].attrs.AUDIO&&(this.hls.logger.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 Hn({}),bitrate:0,url:""})),i.trigger(G.MANIFEST_LOADED,{levels:c,audioTracks:m,subtitles:v,captions:x,contentSteering:u,url:a,stats:n,networkDetails:s,sessionData:d,sessionKeys:f,startTimeOffset:h,variableList:p})}handleTrackOrLevelPlaylist(t,n,r,s,i){const o=this.hls,{id:a,level:l,type:u}=r,c=$x(t,r),d=lt(l)?l:lt(a)?a:0,f=mL(r),h=$o.parseLevelPlaylist(t.data,c,d,f,0,this.variableList);if(u===Yt.MANIFEST){const p={attrs:new Hn({}),bitrate:0,details:h,name:"",url:c};h.requestScheduled=n.loading.start+U6(h,0),o.trigger(G.MANIFEST_LOADED,{levels:[p],audioTracks:[],url:c,stats:n,networkDetails:s,sessionData:null,sessionKeys:null,contentSteering:null,startTimeOffset:null,variableList:null})}n.parsing.end=performance.now(),r.levelDetails=h,this.handlePlaylistLoaded(h,t,n,r,s,i)}handleManifestParsingError(t,n,r,s,i){this.hls.trigger(G.ERROR,{type:bt.NETWORK_ERROR,details:Re.MANIFEST_PARSING_ERROR,fatal:n.type===Yt.MANIFEST,url:t.url,err:r,error:r,reason:r.message,response:t,context:n,networkDetails:s,stats:i})}handleNetworkError(t,n,r=!1,s,i){let o=`A network ${r?"timeout":"error"+(s?" (status "+s.code+")":"")} occurred while loading ${t.type}`;t.type===Yt.LEVEL?o+=`: ${t.level} id: ${t.id}`:(t.type===Yt.AUDIO_TRACK||t.type===Yt.SUBTITLE_TRACK)&&(o+=` id: ${t.id} group-id: "${t.groupId}"`);const a=new Error(o);this.hls.logger.warn(`[playlist-loader]: ${o}`);let l=Re.UNKNOWN,u=!1;const c=this.getInternalLoader(t);switch(t.type){case Yt.MANIFEST:l=r?Re.MANIFEST_LOAD_TIMEOUT:Re.MANIFEST_LOAD_ERROR,u=!0;break;case Yt.LEVEL:l=r?Re.LEVEL_LOAD_TIMEOUT:Re.LEVEL_LOAD_ERROR,u=!1;break;case Yt.AUDIO_TRACK:l=r?Re.AUDIO_TRACK_LOAD_TIMEOUT:Re.AUDIO_TRACK_LOAD_ERROR,u=!1;break;case Yt.SUBTITLE_TRACK:l=r?Re.SUBTITLE_TRACK_LOAD_TIMEOUT:Re.SUBTITLE_LOAD_ERROR,u=!1;break}c&&this.resetInternalLoader(t.type);const d={type:bt.NETWORK_ERROR,details:l,fatal:u,url:t.url,loader:c,context:t,error:a,networkDetails:n,stats:i};if(s){const f=n?.url||t.url;d.response=Sn({url:f,data:void 0},s)}this.hls.trigger(G.ERROR,d)}handlePlaylistLoaded(t,n,r,s,i,o){const a=this.hls,{type:l,level:u,levelOrTrack:c,id:d,groupId:f,deliveryDirectives:h}=s,p=$x(n,s),m=mL(s);let v=typeof s.level=="number"&&m===pt.MAIN?u:void 0;const x=t.playlistParsingError;if(x){if(this.hls.logger.warn(`${x} ${t.url}`),!a.config.ignorePlaylistParsingErrors){a.trigger(G.ERROR,{type:bt.NETWORK_ERROR,details:Re.LEVEL_PARSING_ERROR,fatal:!1,url:p,error:x,reason:x.message,response:n,context:s,level:v,parent:m,networkDetails:i,stats:r});return}t.playlistParsingError=null}if(!t.fragments.length){const g=t.playlistParsingError=new Error("No Segments found in Playlist");a.trigger(G.ERROR,{type:bt.NETWORK_ERROR,details:Re.LEVEL_EMPTY_ERROR,fatal:!1,url:p,error:g,reason:g.message,response:n,context:s,level:v,parent:m,networkDetails:i,stats:r});return}switch(t.live&&o&&(o.getCacheAge&&(t.ageHeader=o.getCacheAge()||0),(!o.getCacheAge||isNaN(t.ageHeader))&&(t.ageHeader=0)),l){case Yt.MANIFEST:case Yt.LEVEL:if(v){if(!c)v=0;else if(c!==a.levels[v]){const g=a.levels.indexOf(c);g>-1&&(v=g)}}a.trigger(G.LEVEL_LOADED,{details:t,levelInfo:c||a.levels[0],level:v||0,id:d||0,stats:r,networkDetails:i,deliveryDirectives:h,withoutMultiVariant:l===Yt.MANIFEST});break;case Yt.AUDIO_TRACK:a.trigger(G.AUDIO_TRACK_LOADED,{details:t,track:c,id:d||0,groupId:f||"",stats:r,networkDetails:i,deliveryDirectives:h});break;case Yt.SUBTITLE_TRACK:a.trigger(G.SUBTITLE_TRACK_LOADED,{details:t,track:c,id:d||0,groupId:f||"",stats:r,networkDetails:i,deliveryDirectives:h});break}}}class Ur{static get version(){return fh}static isMSESupported(){return V5()}static isSupported(){return Tpe()}static getMediaSource(){return xl()}static get Events(){return G}static get MetadataSchema(){return si}static get ErrorTypes(){return bt}static get ErrorDetails(){return Re}static get DefaultConfig(){return Ur.defaultConfig?Ur.defaultConfig:hpe}static set DefaultConfig(t){Ur.defaultConfig=t}constructor(t={}){this.config=void 0,this.userConfig=void 0,this.logger=void 0,this.coreComponents=void 0,this.networkControllers=void 0,this._emitter=new VE,this._autoLevelCapping=-1,this._maxHdcpLevel=null,this.abrController=void 0,this.bufferController=void 0,this.capLevelController=void 0,this.latencyController=void 0,this.levelController=void 0,this.streamController=void 0,this.audioStreamController=void 0,this.subtititleStreamController=void 0,this.audioTrackController=void 0,this.subtitleTrackController=void 0,this.interstitialsController=void 0,this.gapController=void 0,this.emeController=void 0,this.cmcdController=void 0,this._media=null,this._url=null,this._sessionId=void 0,this.triggeringException=void 0,this.started=!1;const n=this.logger=Mce(t.debug||!1,"Hls instance",t.assetPlayerId),r=this.config=mpe(Ur.DefaultConfig,t,n);this.userConfig=t,r.progressive&&vpe(r,n);const{abrController:s,bufferController:i,capLevelController:o,errorController:a,fpsController:l}=r,u=new a(this),c=this.abrController=new s(this),d=new Dde(this),f=r.interstitialsController,h=f?this.interstitialsController=new f(this,Ur):null,p=this.bufferController=new i(this,d),m=this.capLevelController=new o(this),v=new l(this),x=new Lpe(this),g=r.contentSteeringController,y=g?new g(this):null,_=this.levelController=new wpe(this,y),E=new Spe(this),w=new Ipe(this.config,this.logger),T=this.streamController=new kpe(this,d,w),C=this.gapController=new bpe(this,d);m.setStreamController(T),v.setStreamController(T);const I=[x,_,T];h&&I.splice(1,0,h),y&&I.splice(1,0,y),this.networkControllers=I;const k=[c,p,C,m,v,E,d];this.audioTrackController=this.createController(r.audioTrackController,I);const $=r.audioStreamController;$&&I.push(this.audioStreamController=new $(this,d,w)),this.subtitleTrackController=this.createController(r.subtitleTrackController,I);const R=r.subtitleStreamController;R&&I.push(this.subtititleStreamController=new R(this,d,w)),this.createController(r.timelineController,k),w.emeController=this.emeController=this.createController(r.emeController,k),this.cmcdController=this.createController(r.cmcdController,k),this.latencyController=this.createController(Epe,k),this.coreComponents=k,I.push(u);const D=u.onErrorOut;typeof D=="function"&&this.on(G.ERROR,D,u),this.on(G.MANIFEST_LOADED,x.onManifestLoaded,x)}createController(t,n){if(t){const r=new t(this);return n&&n.push(r),r}return null}on(t,n,r=this){this._emitter.on(t,n,r)}once(t,n,r=this){this._emitter.once(t,n,r)}removeAllListeners(t){this._emitter.removeAllListeners(t)}off(t,n,r=this,s){this._emitter.off(t,n,r,s)}listeners(t){return this._emitter.listeners(t)}emit(t,n,r){return this._emitter.emit(t,n,r)}trigger(t,n){if(this.config.debug)return this.emit(t,t,n);try{return this.emit(t,t,n)}catch(r){if(this.logger.error("An internal error happened while handling event "+t+'. Error message: "'+r.message+'". Here is a stacktrace:',r),!this.triggeringException){this.triggeringException=!0;const s=t===G.ERROR;this.trigger(G.ERROR,{type:bt.OTHER_ERROR,details:Re.INTERNAL_EXCEPTION,fatal:s,event:t,error:r}),this.triggeringException=!1}}return!1}listenerCount(t){return this._emitter.listenerCount(t)}destroy(){this.logger.log("destroy"),this.trigger(G.DESTROYING,void 0),this.detachMedia(),this.removeAllListeners(),this._autoLevelCapping=-1,this._url=null,this.networkControllers.forEach(n=>n.destroy()),this.networkControllers.length=0,this.coreComponents.forEach(n=>n.destroy()),this.coreComponents.length=0;const t=this.config;t.xhrSetup=t.fetchSetup=void 0,this.userConfig=null}attachMedia(t){if(!t||"media"in t&&!t.media){const i=new Error(`attachMedia failed: invalid argument (${t})`);this.trigger(G.ERROR,{type:bt.OTHER_ERROR,details:Re.ATTACH_MEDIA_ERROR,fatal:!0,error:i});return}this.logger.log("attachMedia"),this._media&&(this.logger.warn("media must be detached before attaching"),this.detachMedia());const n="media"in t,r=n?t.media:t,s=n?t:{media:r};
vendor: 2,240 bytes, line 131
131this._media=r,this.trigger(G.MEDIA_ATTACHING,s)}detachMedia(){this.logger.log("detachMedia"),this.trigger(G.MEDIA_DETACHING,{}),this._media=null}transferMedia(){this._media=null;const t=this.bufferController.transferMedia();return this.trigger(G.MEDIA_DETACHING,{transferMedia:t}),t}loadSource(t){this.stopLoad();const n=this.media,r=this._url,s=this._url=IE.buildAbsoluteURL(self.location.href,t,{alwaysNormalize:!0});this._autoLevelCapping=-1,this._maxHdcpLevel=null,this.logger.log(`loadSource:${s}`),n&&r&&(r!==s||this.bufferController.hasSourceTypes())&&(this.detachMedia(),this.attachMedia(n)),this.trigger(G.MANIFEST_LOADING,{url:t})}get url(){return this._url}get hasEnoughToStart(){return this.streamController.hasEnoughToStart}get startPosition(){return this.streamController.startPositionValue}startLoad(t=-1,n){this.logger.log(`startLoad(${t+(n?", <skip seek to start>":"")})`),this.started=!0,this.resumeBuffering();for(let r=0;r<this.networkControllers.length&&(this.networkControllers[r].startLoad(t,n),!(!this.started||!this.networkControllers));r++);}stopLoad(){this.logger.log("stopLoad"),this.started=!1;for(let t=0;t<this.networkControllers.length&&(this.networkControllers[t].stopLoad(),!(this.started||!this.networkControllers));t++);}get loadingEnabled(){return this.started}get bufferingEnabled(){return this.streamController.bufferingEnabled}resumeBuffering(){this.bufferingEnabled||(this.logger.log("resume buffering"),this.networkControllers.forEach(t=>{t.resumeBuffering&&t.resumeBuffering()}))}pauseBuffering(){this.bufferingEnabled&&(this.logger.log("pause buffering"),this.networkControllers.forEach(t=>{t.pauseBuffering&&t.pauseBuffering()}))}get inFlightFragments(){const t={[pt.MAIN]:this.streamController.inFlightFrag};return this.audioStreamController&&(t[pt.AUDIO]=this.audioStreamController.inFlightFrag),this.subtititleStreamController&&(t[pt.SUBTITLE]=this.subtititleStreamController.inFlightFrag),t}swapAudioCodec(){this.logger.log("swapAudioCodec"),this.streamController.swapAudioCodec()}recoverMediaError(){this.logger.log("recoverMediaError");const t=this._media,n=t?.currentTime;this.detachMedia(),t&&(this.attachMedia(t),n&&this.startLoad(n))}removeLevel(t){this.levelController.removeLevel(t)}
131get sessionId(){let t=this._sessionId;return t||(t=this._sessionId=b0e()),t}get levels(){const t=this.levelController.levels;return t||[]}get latestLevelDetails(){return this.streamController.getLevelDetails()||null}get loadLevelObj(){return this.levelController.loadLevelObj}get currentLevel(){return this.streamController.currentLevel}set currentLevel(t){this.logger.log(`set currentLevel:${t}`),this.levelController.manualLevel=t,this.streamController.immediateLevelSwitch()}get nextLevel(){return this.streamController.nextLevel}set nextLevel(t){this.logger.log(`set nextLevel:${t}`),this.levelController.manualLevel=t,this.streamController.nextLevelSwitch()}get loadLevel(){return this.levelController.level}set loadLevel(t){this.logger.log(`set loadLevel:${t}`),this.levelController.manualLevel=t}get nextLoadLevel(){return this.levelController.nextLoadLevel}set nextLoadLevel(t){this.levelController.nextLoadLevel=t}get firstLevel(){return Math.max(this.levelController.firstLevel,this.minAutoLevel)}set firstLevel(t){this.logger.log(`set firstLevel:${t}`),this.levelController.firstLevel=t}get startLevel(){const t=this.levelController.startLevel;return t===-1&&this.abrController.forcedAutoLevel>-1?this.abrController.forcedAutoLevel:t}set startLevel(t){this.logger.log(`set startLevel:${t}`),t!==-1&&(t=Math.max(t,this.minAutoLevel)),this.levelController.startLevel=t}get capLevelToPlayerSize(){return this.config.capLevelToPlayerSize}set capLevelToPlayerSize(t){const n=!!t;n!==this.config.capLevelToPlayerSize&&(n?this.capLevelController.startCapping():(this.capLevelController.stopCapping(),this.autoLevelCapping=-1,this.streamController.nextLevelSwitch()),this.config.capLevelToPlayerSize=n)}get autoLevelCapping(){return this._autoLevelCapping}get bandwidthEstimate(){const{bwEstimator:t}=this.abrController;return t?t.getEstimate():NaN}set bandwidthEstimate(t){this.abrController.resetEstimator(t)}get abrEwmaDefaultEstimate(){const{bwEstimator:t}=this.abrController;return t?t.defaultEstimate:NaN}get ttfbEstimate(){const{bwEstimator:t}=this.abrController;return t?t.getEstimateTTFB():NaN}set autoLevelCapping(t){this._autoLevelCapping!==t&&(this.logger.log(`set autoLevelCapping:${t}`),this._autoLevelCapping=t,this.levelController.checkMaxAutoUpdated())}get maxHdcpLevel(){return this._maxHdcpLevel}set maxHdcpLevel(t){mde(t)&&this._maxHdcpLevel!==t&&(this._maxHdcpLevel=t,this.levelController.checkMaxAutoUpdated())}get autoLevelEnabled(){return this.levelController.manualLevel===-1}get manualLevel(){return this.levelController.manualLevel}get minAutoLevel(){const{levels:t,config:{minAutoBitrate:n}}=this;if(!t)return 0;const r=t.length;for(let s=0;s<r;s++)if(t[s].maxBitrate>=n)return s;return 0}get maxAutoLevel(){const{levels:t,autoLevelCapping:n,maxHdcpLevel:r}=this;let s;if(n===-1&&t!=null&&t.length?s=t.length-1:s=n,r)for(let i=s;i--;){const o=t[i].attrs["HDCP-LEVEL"];if(o&&o<=r)return i}return s}get firstAutoLevel(){return this.abrController.firstAutoLevel}get nextAutoLevel(){return this.abrController.nextAutoLevel}set nextAutoLevel(t){this.abrController.nextAutoLevel=t}get playingDate(){return this.streamController.currentProgramDateTime}get mainForwardBufferInfo(){return this.streamController.getMainFwdBufferInfo()}get maxBufferLength(){return this.streamController.maxBufferLength}setAudioOption(t){var n;return((n=this.audioTrackController)==null?void 0:n.setAudioOption(t))||null}setSubtitleOption(t){var n;return((n=this.subtitleTrackController)==null?void 0:n.setSubtitleOption(t))||null}get allAudioTracks(){const t=this.audioTrackController;return t?t.allAudioTracks:[]}get audioTracks(){const t=this.audioTrackController;return t?t.audioTracks:[]}get audioTrack(){const t=this.audioTrackController;return t?t.audioTrack:-1}set audioTrack(t){const n=this.audioTrackController;n&&(n.audioTrack=t)}get allSubtitleTracks(){const t=this.subtitleTrackController;return t?t.allSubtitleTracks:[]}get subtitleTracks(){const t=this.subtitleTrackController;return t?t.subtitleTracks:[]}get subtitleTrack(){const t=this.subtitleTrackController;return t?t.subtitleTrack:-1}get media(){return this._media}set subtitleTrack(t){const n=this.subtitleTrackController;n&&(n.subtitleTrack=t)}get subtitleDisplay(){const t=this.subtitleTrackController;return t?t.subtitleDisplay:!1}set subtitleDisplay(t){const n=this.subtitleTrackController;n&&(n.subtitleDisplay=t)}get lowLatencyMode(){return this.config.lowLatencyMode}set lowLatencyMode(t){this.config.lowLatencyMode=t}get liveSyncPosition(){return this.latencyController.liveSyncPosition}get latency(){return this.latencyController.latency}get maxLatency(){return this.latencyController.maxLatency}get targetLatency(){return this.latencyController.targetLatency}set targetLatency(t){this.latencyController.targetLatency=t}get drift(){return this.latencyController.drift}get forceStartLoad(){return this.streamController.forceStartLoad}get pathways(){return this.levelController.pathways}get pathwayPriority(){return this.levelController.pathwayPriority}set pathwayPriority(t){this.levelController.pathwayPriority=t}get bufferedToEnd(){var t;return!!((t=this.bufferController)!=null&&t.bufferedToEnd)}get interstitialsManager(){var t;return((t=this.interstitialsController)==null?void 0:t.interstitialsManager)||null}getMediaDecodingInfo(t,n=this.allAudioTracks){const r=C6(n);return w6(t,r,navigator.mediaCapabilities)}}Ur.defaultConfig=void 0;var sf={exports:{}};sf.exports;var vL;function Dpe(){return vL||(vL=1,(function(e,t){(function(n,r,s,i,o){var a=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof mf<"u"?mf:{},l=typeof a[i]=="function"&&a[i],u=l.cache||{},c=typeof Pb=="function"&&Pb.bind(e);function d(p,m){if(!u[p]){if(!n[p]){var v=typeof a[i]=="function"&&a[i];if(!m&&v)return v(p,!0);if(l)return l(p,!0);if(c&&typeof p=="string")return c(p);var x=Error("Cannot find module '"+p+"'");throw x.code="MODULE_NOT_FOUND",x}y.resolve=function(_){var E=n[p][1][_];return E??_},y.cache={};var g=u[p]=new d.Module(p);n[p][0].call(g.exports,y,g,g.exports,this)}return u[p].exports;function y(_){var E=y.resolve(_);return E===!1?{}:d(E)}}d.isParcelRequire=!0,d.Module=function(p){this.id=p,this.bundle=d,this.exports={}},d.modules=n,d.cache=u,d.parent=l,d.register=function(p,m){n[p]=[function(v,x){x.exports=m},{}]},Object.defineProperty(d,"root",{get:function(){return a[i]}}),a[i]=d;for(var f=0;f<r.length;f++)d(r[f]);{var h=d(s);e.exports=h}})({haa6A:[function(n,r,s){var i=n("@parcel/transformer-js/src/esmodule-helpers.js");i.defineInteropFlag(s),i.export(s,"default",()=>d);var o=n("bundle-text:./quality.svg"),a=i.interopDefault(o),l=n("bundle-text:./audio.svg"),u=i.interopDefault(l);function c(f,h){let p=new Map;return f.filter(m=>{let v=m[h];return v===void 0||!p.has(v)&&p.set(v,1)})}function d(f={}){return h=>{let{$video:p}=h.template,{errorHandle:m}=h.constructor.utils;function v(){m(h.hls?.media===p,'Cannot find instance of HLS from "art.hls"'),(function(x){if(!x.levels.length)return;let g=f.quality||{},y=g.auto||"Auto",_=g.title||"Quality",E=g.getName||(k=>k.name||k.height+"P"),w=x.levels[x.currentLevel],T=w?E(w):y,C=c(x.levels.map((k,$)=>({html:E(k,$),value:$,default:x.currentLevel===$})),"html").sort((k,$)=>$.value-k.value);C.push({html:y,value:-1,default:x.currentLevel===-1});let I=k=>(x.currentLevel=k.value,h.notice.show=`${_}: ${k.html}`,g.control&&h.controls.check(k),g.setting&&h.setting.check(k),k.html);g.control&&h.controls.update({name:"hls-quality",position:"right",html:T,style:{padding:"0 10px"},selector:C,onSelect:I}),g.setting&&h.setting.update({name:"hls-quality",tooltip:T,html:_,icon:a.default,width:200,selector:C,onSelect:I})})(h.hls),(function(x){if(!x.audioTracks.length)return;let g=f.audio||{},y=g.auto||"Auto",_=g.title||"Audio",E=g.getName||(k=>k.name||k.lang||k.language),w=x.audioTracks[x.audioTrack],T=w?E(w):y,C=c(x.audioTracks.map((k,$)=>({html:E(k,$),value:k.id,default:x.audioTrack===k.id})),"html"),I=k=>(x.audioTrack=k.value,h.notice.show=`${_}: ${k.html}`,g.control&&h.controls.check(k),g.setting&&h.setting.check(k),k.html);g.control&&h.controls.update({name:"hls-audio",position:"right",html:T,style:{padding:"0 10px"},selector:C,onSelect:I}),g.setting&&h.setting.update({name:"hls-audio",tooltip:T,html:_,icon:u.default,width:200,selector:C,onSelect:I})})(h.hls)}return h.on("ready",v),h.on("restart",v),{name:"artplayerPluginHlsControl",update:v}}}typeof window<"u"&&(window.artplayerPluginHlsControl=d)},{"bundle-text:./quality.svg":"5aI3W","bundle-text:./audio.svg":"kbgg8","@parcel/transformer-js/src/esmodule-helpers.js":"9pCYc"}],"5aI3W":[function(n,r,s){r.exports='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512" height="18"><path fill="#fff" d="M0 96c0-35.3 28.7-64 64-64h384c35.3 0 64 28.7 64 64v320c0 35.3-28.7 64-64 64H64c-35.3 0-64-28.7-64-64V96zm323.8 106.5c-4.5-6.6-11.9-10.5-19.8-10.5s-15.4 3.9-19.8 10.5l-87 127.6-26.5-33.1c-4.6-5.7-11.5-9-18.7-9s-14.2 3.3-18.7 9l-64 80c-5.8 7.2-6.9 17.1-2.9 25.4S78.8 416 88 416h336c8.9 0 17.1-4.9 21.2-12.8s3.6-17.4-1.4-24.7l-120-176zM112 192a48 48 0 1 0 0-96 48 48 0 1 0 0 96z"/></svg>'},{}],kbgg8:[function(n,r,s){r.exports='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512" height="18"><path fill="#fff" d="M256 80C149.9 80 62.4 159.4 49.6 262c9.4-3.8 19.6-6 30.4-6 26.5 0 48 21.5 48 48v128c0 26.5-21.5 48-48 48-44.2 0-80-35.8-80-80V288C0 146.6 114.6 32 256 32s256 114.6 256 256v112c0 44.2-35.8 80-80 80-26.5 0-48-21.5-48-48V304c0-26.5 21.5-48 48-48 10.8 0 21 2.1 30.4 6C449.6 159.4 362.1 80 256 80z"/></svg>'},{}],"9pCYc":[function(n,r,s){s.interopDefault=function(i){return i&&i.__esModule?i:{default:i}},s.defineInteropFlag=function(i){Object.defineProperty(i,"__esModule",{value:!0})}
131,s.exportAll=function(i,o){return Object.keys(i).forEach(function(a){a==="default"||a==="__esModule"||Object.prototype.hasOwnProperty.call(o,a)||Object.defineProperty(o,a,{enumerable:!0,get:function(){return i[a]}})}),o},s.export=function(i,o,a){Object.defineProperty(i,o,{enumerable:!0,get:a})}},{}]},["haa6A"],"haa6A","parcelRequire4dc0")})(sf,sf.exports)),sf.exports}Dpe();const n0=Ws(()=>{const e=M(!1),t=M(1),n=M(!1),r=M(0),s=M(0),i=M(!1),o=M(!1),a=di("player-current-line",0),l=di("player-settings",{volume:1,playbackRate:1,autoNext:!0});return{muted:e,playbackRate:t,isFullscreen:n,currentTime:r,duration:s,playing:i,loading:o,currentLine:a,settings:l}}),Ppe={key:0,class:"error-overlay"},Rpe={class:"video-action-controls"},Ope=ke({__name:"VideoArt",props:{src:{},poster:{},currentTime:{},duration:{},loading:{type:Boolean},playing:{type:Boolean},active:{type:Boolean},playbackRate:{},ratio:{},controls:{type:Boolean},qualityList:{},lineList:{},autoplay:{type:Boolean},currentQuality:{},currentLine:{},controlNext:{type:Boolean},fullscreenWeb:{type:Boolean},autoSize:{type:Boolean}},emits:["update:currentTime","update:duration","update:loading","update:playing","ended","error","update:fullscreen","next","quality-change","line-change"],setup(e,{expose:t,emit:n}){Lu(()=>m.value=!0),zi(()=>m.value=!0),La(()=>{m.value=!1,delete r[s],c.value&&(c.value.mini=!1,c.value.pause(),c.value.url=""),I(),D()}),cn(()=>{m.value=!1,delete r[s],c.value&&(c.value.mini=!1,c.value.destroy()),D()}),window.playerMaps=window.playerMaps||{};const r=window.playerMaps;window.__playerId=window.__playerId||0;const s=`p-${++window.__playerId}`,i=e,o=n,{muted:a,playbackRate:l,isFullscreen:u}=n0(),c=M(null),d=Xd(i,"loading"),f=Xd(i,"currentTime"),h=Xd(i,"duration"),p=Xd(i,"playing"),m=M(!1),v=M(!1),x=M(!1),g=M(!1),y=M(null),_=Mu(),E=M(),w=F(()=>{if(!i.ratio)return{};let U;if(typeof i.ratio=="string"){const[N,V]=i.ratio.split(":").map(Number);U=`${V/N*100}%`}else U=`${1/i.ratio*100}%`;return{position:"relative",width:"100%",height:"0",paddingTop:U}}),T=F(()=>i.ratio?{position:"absolute",top:"0",left:"0",width:"100%",height:"100%"}:{});async function C(){if(!m.value)return!1;if(c.value&&!c.value.playing)try{return await c.value.play(),!0}catch(U){if(U?.name==="AbortError")return console.log("play() interrupted by new load request, ignoring",U),!1;if(console.error(U),!a.value){if(a.value=!0,await tt(),await C())return!0;a.value=!1}}return!1}function I(){c.value&&c.value.pause()}async function k(){c.value&&(c.value.playing?I():(a.value&&(a.value=!1,await tt()),C()))}ft(()=>{if(!E.value)return;const U=i.controls??!0;Artplayer.FULLSCREEN_WEB_IN_BODY=!0,Artplayer.ASPECT_RATIO=["default","9:16","4:3","16:9"],Artplayer.FAST_FORWARD_VALUE=2,Artplayer.CONTROL_HIDE_TIME=5e3,Artplayer.CONTEXTMENU=U,Jk.LOG_VERSION=!1,c.value=new Jk({container:E.value,url:i.src,poster:i.poster??"",autoplay:i.active,muted:a.value,playbackRate:!0,volume:1,isLive:!1,setting:U,autoSize:i.autoSize??U,fullscreen:U,fullscreenWeb:i.fullscreenWeb??!1,autoMini:!1,loop:!1,flip:U,aspectRatio:U,subtitleOffset:!1,miniProgressBar:!1,mutex:!0,backdrop:!1,playsInline:!0,autoPlayback:!1,airplay:!1,fastForward:!0,theme:_.current.value.colors.primary,lang:navigator.language.toLowerCase(),whitelist:["*"],controls:[O.value!=null?{...O.value}:!1,B.value!=null?{...B.value}:!1,...i.controlNext?[{name:"next-episode",position:"right",index:0,html:'<i class="iconify i-ph:fast-forward-fill cursor-pointer"></i>',tooltip:"下一集",style:{fontSize:"150%"},click:function(){o("next")}}]:[]].filter(Boolean),customType:{m3u8:function(X,Q,le){if(Ur.isSupported()){try{le.hls&&le.hls.destroy()}catch(ue){console.log("Error destroying HLS instance:",ue)}const ve={maxBufferHole:2,maxFragLookUpTolerance:1,fragLoadingTimeOut:2e4,fragLoadingMaxRetry:3,fragLoadingRetryDelay:1e3,fragLoadingMaxRetryTimeout:3e4,maxBufferLength:30,maxMaxBufferLength:600,debug:!1},oe=new Ur(ve);let K=0,ee="";const ae=3;oe.on(Ur.Events.ERROR,(ue,Ee)=>{if(Ee.fatal)switch(Ee.type){case Ur.ErrorTypes.NETWORK_ERROR:console.warn("HLS network error, attempting to re
131cover...",Ee),K++,K<=ae?oe.startLoad():(console.error("HLS network error: too many retries, stopping"),le.notice.show="视频加载失败,请刷新重试",v.value=!0,o("error",Ee));break;case Ur.ErrorTypes.MEDIA_ERROR:if(console.warn("HLS media error, attempting to recover...",Ee),K++,K<=ae)try{oe.recoverMediaError()}catch(_e){console.error("HLS recover error:",_e)}else console.error("HLS media error: too many retries, stopping"),le.notice.show="视频播放错误,请刷新重试",v.value=!0,o("error",Ee);break;default:console.error("HLS fatal error:",Ee),v.value=!0,o("error",Ee);break}else if(Ee.type===Ur.ErrorTypes.NETWORK_ERROR&&Ee.details===Ur.ErrorDetails.FRAG_LOAD_ERROR){const _e=Ee.frag?.url||"";_e===ee?K++:(K=1,ee=_e),K>ae&&(console.warn("HLS: skipping problematic fragment after multiple failures:",_e),K=0,ee="")}}),oe.on(Ur.Events.FRAG_LOADED,()=>{K=0,ee="",v.value&&(v.value=!1)}),oe.on(Ur.Events.MANIFEST_PARSED,()=>{v.value&&(v.value=!1)}),oe.on(Ur.Events.LEVEL_LOADED,()=>{v.value&&(v.value=!1)}),oe.loadSource(Q),oe.attachMedia(X),le.hls=oe,le.on("destroy",()=>oe.destroy()),le.on("video:pause",()=>{oe&&oe.stopLoad()}),le.on("video:play",()=>{oe&&oe.startLoad()})}else X.canPlayType("application/vnd.apple.mpegurl")?X.src=Q:le.notice.show="Unsupported playback format: m3u8"}}}),r[s]=c.value;const N=c.value,V=wr(),H=V?.app||V?.name||"YJSP",re=On()?.mail||{};if(H.length<=2||H.length,U){N.layers.add({html:`<div style="position: absolute;right:15px;bottom:0px;text-align:right;
132    text-shadow: 1px -1px 0 #000, 1px -1px 0 #000, -1px 1px 0 #000, 1px 1px 0 #000;;opacity:0.5;font-size:90%;line-height:1.5">邮件取新地址<br>${(re?.dz||"").toUpperCase()}</div>`});try{const W=document.createElement("div");W.className="vj-actions-control",W.style.display="inline-flex",W.style.alignItems="center",W.style.gap="6px",N.controls.add({name:"vj-actions",position:"right",index:20,html:W,tooltip:""}),y.value=W}catch(W){console.warn("attach actions to controls failed:",W)}}N.on("video:loadedmetadata",()=>{h.value=N.duration*1e3,g.value=!0,typeof i.currentTime=="number"&&!isNaN(i.currentTime)&&Math.abs(N.currentTime*1e3-i.currentTime)>1500&&(N.currentTime=i.currentTime/1e3)}),N.on("video:ratechange",()=>{x.value||(l.value=N?.playbackRate)}),N.on("video:play",()=>{x.value=!1,N.playbackRate=l.value,p.value=!0,Object.keys(r).forEach(W=>{if(W!==s&&r[W]&&r[W].playing)try{r[W].pause()}catch(X){console.warn("Failed to pause player:",W,X)}}),console.group("play"),Object.keys(r).forEach(W=>{console.log(W,r[W]?.playing)}),console.groupEnd()}),N.on("video:pause",()=>{console.log("pause",s,N?.playing,c.value),p.value=!1,N.mini=!1}
132),N.on("video:ended",()=>{x.value=!0,o("ended")}),N.on("video:error",W=>{v.value=!0,o("error",W)}),N.on("video:timeupdate",()=>{c.value&&g.value&&(f.value=~~(N.currentTime*1e3),i.active||I())}),N.on("video:waiting",()=>{d.value=!0,o("update:loading",!0)}),N.on("video:canplay",()=>{d.value=!1,o("update:loading",!1)}),N.on("video:playing",()=>{d.value=!1,o("update:loading",!1)}),N.on("video:loadeddata",()=>{d.value=!1,o("update:loading",!1)}),N.on("video:stalled",()=>{d.value=!0,o("update:loading",!0)}),N.on("fullscreen",W=>{}),N.on("fullscreenWeb",W=>{u.value=W}),be(a,W=>{c.value&&(c.value.muted=W)}),be(l,W=>{c.value&&(c.value.playbackRate=W)}),be(()=>i.active,W=>{!c.value||!m.value||(W?(c.value.url=i.src,C()):(I(),c.value.url="",D()))},{immediate:!0}),be(()=>_.current.value.colors.primary,W=>{c.value&&(c.value.theme=W)}),be(()=>i.poster,W=>{c.value&&(c.value.poster=W||"")}),tt(()=>{const W=E.value?.querySelector(".art-bottom");W&&W.classList.add("swiper-no-swiping")})}),be(()=>i.src,U=>{if(c.value)if(i.active&&U){g.value=!1;const N=c.value.fullscreenWeb;D(),d.value=!0,o("update:loading",!0),c.value.url=U,x.value=!1,c.value.playbackRate=l.value,N&&c.value.once("video:loadedmetadata",()=>{N&&(c.value.fullscreenWeb=!0)})}else I(),c.value.url="",D()});const $=kh();be(()=>$.path,()=>{c.value&&(c.value.mini=!1)});let R=0;t({play:C,pause:I,toggle:k,updateCurrentTime:U=>{c.value&&(c.value.currentTime=U/1e3)},switchUrl:U=>{c.value&&(g.value=!1,R||(R=c.value.currentTime),c.value.url=U,c.value.once("video:loadedmetadata",()=>{R>0&&(c.value.currentTime=R),R=0}))}});function D(){if(c.value?.hls)try{c.value.hls.destroy(),c.value.hls=null}catch(U){console.error("ArtPlayer HLS destroy error:",U)}}Er(()=>{D()});const O=F(()=>{if(!i.qualityList?.length||i.qualityList.length<=1)return null;const U=i.qualityList.map((N,V)=>({html:N.name,value:V,default:V===i.currentQuality}));return{name:"quality-control",position:"right",html:i.qualityList[i.currentQuality]?.name||"画质",style:{padding:"0 10px"},selector:U,async onSelect(N){const V=i.qualityList?.[N.value];return I(),await new Promise(re=>{o("quality-change",{index:N.value,vip:V?.vip||0,name:V?.name||"",callback:W=>re(W)})})?(i.currentQuality=N.value,c.value.notice.show=`已切换至: ${N.html}`,N.html):O.value.html}}}),B=F(()=>{if(!i.lineList?.length||i.lineList.length<=1)return null;const U=i.lineList.map((V,H)=>({html:H===0?V.name:`${V.name}<span class="vj-vip-badge">VIP</span>`,value:H,default:H===i.currentLine})),N=V=>`<span class="vj-line-label">${V}</span><i class="iconify i-mdi:menu-up vj-line-arrow"></i>`;return{name:"line-control",position:"right",html:N(i.lineList[i.currentLine||0]?.name||"线路"),style:{padding:"0 10px",fontSize:"14px",display:"inline-flex",alignItems:"center",gap:"2px"},selector:U,async onSelect(V){if(I(),!await new Promise(W=>{o("line-change",{index:V.value,callback:X=>W(X)})}))return B.value?.html||N("线路");const re=i.lineList?.[V.value]?.name||"线路";return c.value.notice.show=`已切换至: ${re}`,N(re)}}});return be(()=>i.qualityList,()=>{c.value&&O.value&&c.value.controls.update(O.value)}),be(()=>i.currentQuality,()=>{c.value&&O.value&&c.value.controls.update(O.value)}),be(()=>i.lineList,()=>{c.value&&B.value&&c.value.controls.update(B.value)}),be(()=>i.currentLine,()=>{c.value&&B.value&&c.value.controls.update(B.value)}),(U,N)=>(P(),j(se,null,[L("div",Ve({class:"video-art-wrapper",style:b(w)},U.$attrs),[L("div",{ref_key:"container",ref:E,class:"art-player-container",style:Qe(b(T))},null,4),b(v)?(P(),j("div",Ppe,[Ht(U.$slots,"error",{error:b(v)},void 0,!0)])):te("",!0),b(y)&&U.$slots.actions?(P(),q(J2,{key:1,to:b(y)},[L("div",Rpe,[Ht(U.$slots,"actions",{},void 0,!0)])],8,["to"])):te("",!0)],16),S(de,{icon:"ph:fast-forward-fill",style:{display:"none"}}),S(de,{icon:"mdi:menu-up",style:{display:"none"}}),S(Gt,{"model-value":b(m)&&b(p)&&b(a)&&!b(v),width:120,scrim:!1,contained:""},{default:A(()=>[S($e,{class:"opacity-80",onClick:N[0]||(N[0]=()=>{a.value=!1,C()})},{default:A(()=>[S(We,{class:"flex p-3"},{default:A(()=>[S(de,{icon:"fa6-solid:volume-high"}),S(Mt),N[1]||(N[1]=L("div",null,"打开声音",-1))]),_:1})]),_:1})]),_:1},8,["model-value"])],64))}}),r0=vt(Ope,[["__scopeId","data-v-8af8c0e3"]]),$pe=Object.freeze(Object.defineProperty({__proto__:null,default:r0},Symbol.toStringTag,{value:"Module"}));function Mpe(){const n=Zr()?.public?.features||{};return{dynamicVideoGrid:F(()=>!!n.dynamicVideoGrid)}}const Fpe={key:0,class:"fixed top-[50%] left-[50%] -translate-x-1/2 -translate-y-1/2 w-full"},Bpe={key:1,class:"flex flex-col h-full relative"},Npe={key:2,class:"w-full h-full flex flex-col bg-black"},Vpe={key:0,style:{height:"48px","flex-shrink":"0"}},Upe={class:"player-wrapper flex-1 flex items-center justify-center relative"},jpe={key:0,class:"w-full h-full"},zpe={class:"timeline-action-menu-inner"},Hpe={class:"absolute inset-0 flex flex-col items-center justify-center gap-3 bg-black/70 text-white"},Gpe={class:"flex gap-2"},Gd=4,Kpe=ke({__name:"TimelineAttachmentCard",props:{file:{},fileList:{},index:{},needPay:{type:Boolean},needSubscribe:{type:Boolean},postId:{},post:{},user:{},initialLiked:{type:Boolean},initialLikes:{},initialFavored:{type:Boolean}}
132,emits:["like-change","fav-change"],setup(e,{emit:t}){const n=M(!1),r=M(!1),{playbackRate:s,currentLine:i}=n0(),o=M(!1),a=M(null),l=M(0),u=M(0),c=M(!1),d=M(0),f=M(null),h=(Se,Ue="md")=>qs(Se)+(Ue?`?${Ue}`:""),p=Se=>Se?.[720]||Se?.[480]||"",m=(Se,Ue=0)=>{const gt=p(Se);return gt?Hf(gt,"y",Ue):""},v=e,{dynamicVideoGrid:x}=Mpe(),g=M(v.index??0),y=M(0),_=M(null),E=F(()=>(Gg()||[]).map((Ue,gt)=>({name:`线路${gt+1}`}))),w=F(()=>E.value.length||1),T=M(0),C=F(()=>{const Se=w.value;return Se<=1?i.value:(i.value+T.value)%Se});function I(){T.value=0}function k(){const Se=w.value;Se>1&&T.value<Se-1&&T.value++}be([i,y],I);function $(){I()}const R=[{key:480,name:"高清"},{key:720,name:"超清"}];function D(Se){if(!Se)return[];const Ue=R.filter(_t=>!!Se[_t.key]),gt=Ue.length-1;return Ue.map((_t,gn)=>({name:_t.name,key:_t.key,vip:Ue.length>1&&gn===gt?1:0}))}function O(Se,Ue,gt){const _t=D(Se);if(!_t.length)return m(Se,gt);const gn=Math.min(Math.max(Ue,0),_t.length-1),bi=Se?.[_t[gn].key]||"";return bi?Hf(bi,"y",gt):""}function B(){v.needPay||v.needSubscribe||(n.value=!0,g.value=v.index??0)}function U(){n.value=!1}const N=Se=>{g.value=Se.realIndex,I();const Ue=D(v.fileList?.[g.value]?.vod);y.value>Math.max(Ue.length-1,0)&&(y.value=0)},V=Se=>{l.value=Se.touches[0].clientY,u.value=Date.now(),c.value=!0,d.value=0,f.value&&(f.value.style.transition="none")},H=Se=>{if(!c.value)return;const gt=Se.touches[0].clientY-l.value;if(gt>0&&(d.value=gt,Se.preventDefault(),f.value)){const _t=gt,gn=Math.max(.3,1-gt/300);f.value.style.transform=`translateY(${_t}px)`,f.value.style.opacity=gn.toString()}},re=Se=>{if(!c.value)return;const gt=Se.changedTouches[0].clientY-l.value,_t=Date.now()-u.value,gn=gt/_t;gt>100||gn>.5?(f.value&&(f.value.style.transition="opacity 0.3s ease, transform 0.3s ease",f.value.style.opacity="0",f.value.style.transform="translateY(100vh)"),setTimeout(()=>{U()},300)):f.value&&(f.value.style.transition="opacity 0.3s ease, transform 0.3s ease",f.value.style.opacity="1",f.value.style.transform="translateY(0px)"),c.value=!1,d.value=0};ft(()=>{if(!a.value)return;const Se=new IntersectionObserver(([Ue])=>{o.value=Ue.isIntersecting},{root:null,rootMargin:"150px 0px 150px 0px",threshold:.01});Se.observe(a.value),cn(()=>Se.disconnect())}),cn(()=>{f.value&&(f.value.style.opacity="",f.value.style.transform="",f.value.style.transition="")});const W=M({});function X(Se,Ue){W.value[Ue]=Se}const Q=M({});function le(Se,Ue){const{target:gt,src:_t,status:gn}=Se;gn==="success"&&gt&&(Q.value[Ue]=_t)}const ve=/android/i.test(navigator.userAgent),{user:oe}=Ct(),K=M(-1),ee=M(!1),ae=M(!1),ue=M(!1);function Ee(){return oe.value?.username?!oe.value?.vip||Number(oe.value?.vip)<1?(ue.value=!0,!1):!0:(ae.value=!0,!1)}const _e=F(()=>!!oe.value?.username&&Number(oe.value?.vip)>=1);be(_e,Se=>{Se||(i.value>0&&(i.value=0),y.value=0)},{immediate:!0});function J(){const Se=_.value;Se&&(Se.kind==="line"?i.value=Se.index:y.value=Se.index,_.value=null)}const Y=F(()=>D(v.fileList?.[g.value]?.vod)),fe=M(!1),xe=F(()=>{const Se=E.value.map((gt,_t)=>({...gt,index:_t}));if(fe.value)return Se;const Ue=Se.slice(0,Gd);return i.value>=Gd&&Se[i.value]&&(Ue[Gd-1]=Se[i.value]),Ue});function ne(Se){if(Se===i.value){Pe.value=!1;return}if(Se!==0&&!Ee()){_.value={kind:"line",index:Se},Pe.value=!1;return}i.value=Se,_.value=null,Pe.value=!1}function ie(Se,Ue){if(Se===y.value){Pe.value=!1;return}if(Ue>0&&!Ee()){_.value={kind:"quality",index:Se},Pe.value=!1;return}y.value=Se,_.value=null,Pe.value=!1}const Le=M(!1),we=M(null),Be=M(null),Pe=M(!1),qe=M(v.initialLiked===!0),Me=M(v.initialLikes??0),ze=M(v.initialFavored===!0);be(()=>v.initialLiked,Se=>{qe.value=Se===!0}),be(()=>v.initialLikes,Se=>{Me.value=Se??0}),be(()=>v.initialFavored,Se=>{ze.value=Se===!0});function et(){Pe.value=!1,Le.value=!0,Be.value?.openDialog();try{we.value?.pause?.()}catch(Se){console.warn("pause player failed:",Se)}}function pe(){Le.value=!1,tt(()=>{try{we.value?.play?.()}catch(Se){console.warn("resume player failed:",Se)}})}function ge(Se){ze.value=Se,Pe.value=!1,me("fav-change",Se)}function he(Se,Ue){qe.value=Se,Me.value=Ue,Pe.value=!1,me("like-change",Se,Ue)}const ye={VBtn:{variant:"plain",density:"comfortable",class:"text-white font-bold",style:"color: white"},VIcon:{}},me=t,Ne=F(()=>fo("detail").filter(Se=>Se.place==="top")[0]?.ads||[]),Je=F(()=>
132{if(oe.value?.vip)return;K.value<0&&(K.value=Math.round(Math.random()*Ne.value.length));const Se=Ne.value[K.value]||!1;return Se?{img:Se.img,url:Se.url}:{}});function Oe(){return!oe.value?.vip}function Ye(){ee.value=!1,K.value=Ne.value.length+1}function ot(){if(!oe.value?.username){ae.value=!0;return}if(!oe.value?.vip||Number(oe.value?.vip)<1){ue.value=!0;return}ee.value=!1,K.value=Ne.value.length+1}function rt(){if(_.value){if(!oe.value?.username){_.value=null;return}if(_e.value){J();return}ue.value=!0;return}oe.value?.username&&!_e.value&&(ue.value=!0)}function ct(){_.value&&(_e.value?J():_.value=null)}return be(n,Se=>{if(Se&&(fe.value=!1,I(),ee.value=Oe(),ee.value)){const Ue=Ne.value.length;Ue>0?(K.value=Math.floor(Math.random()*Ue),Ne.value[K.value]?.img||(ee.value=!1)):ee.value=!1}}),(Se,Ue)=>{const gt=Jh,_t=An,gn=Hy,bi=kE,Dl=t0,Wi=r0,yn=F2,e1=B2,l0=Cr,t1=Uu,u0=_y;return P(),j("div",null,[!b(ve)&&e.file.ext==="mp4"&&b(x)?(P(),j("div",{key:0,ref_key:"rootRef",ref:a,class:Ie(["w-full relative",{"aspect-square":(v.fileList?.length??0)>1,"aspect-video":(v.fileList?.length??0)===1,"cursor-pointer":!v.needPay&&!v.needSubscribe,"cursor-not-allowed":v.needPay||v.needSubscribe}]),onClick:Et(B,["stop"])},[S(gt,{src:O(e.file.vod,0,b(i)),controls:!1,autoplay:!0,muted:!0,loop:!0,class:Ie(`w-full h-full rounded ${(v.fileList?.length??0)>1?"object-cover":"object-contain"}`)},null,8,["src","class"])],2)):(P(),j("div",{key:1,class:Ie(["w-full relative",{"aspect-square":(v.fileList?.length??0)>1,"aspect-video":(v.fileList?.length??0)===1,"cursor-pointer":!v.needPay&&!v.needSubscribe,"cursor-not-allowed":v.needPay||v.needSubscribe}]),onClick:Et(B,["stop"])},[S(_t,{src:h(e.file.img,(v.fileList?.length??0)>1?"md/0":"lg/0"),encoded:1,cover:(v.fileList?.length??0)>1,"blur-background":!0,"background-size":(v.fileList?.length??0)===1?"100%":"cover",class:"w-full h-full rounded"},null,8,["src","cover","background-size"]),e.file.ext==="mp4"&&!v.needPay&&!v.needSubscribe?(P(),q(de,{key:0,class:"absolute left-1/2 top-1/2 -translate-x-1/2 -translate-y-1/2 text-white text-4xl drop-shadow-lg pointer-events-none opacity-80"},{default:A(()=>[...Ue[8]||(Ue[8]=[z(" mdi-play-circle ",-1)])]),_:1})):te("",!0)],2)),b(n)?(P(),q(Gt,{key:2,ref_key:"dialogRef",ref:f,modelValue:b(n),"onUpdate:modelValue":[Ue[4]||(Ue[4]=fn=>Ce(n)?n.value=fn:null),Ue[5]||(Ue[5]=fn=>{fn||U()})],fullscreen:Se.$vuetify.display.mobile,"max-width":Se.$vuetify.display.mobile?"100%":"1024px",scrim:"#000",opacity:1,onTouchstart:V,onTouchmove:H,onTouchend:re,"content-class":"timeline-dialog-content"},{default:A(()=>[b(ee)&&b(Je)?.img?(P(),j("div",Fpe,[S(gn,{img:b(Je).img,link:b(Je).url,place:"top",page:"detail",duration:5,"show-countdown":!0,"auto-close":!0,"min-close-seconds":3,paused:b(ae)||b(ue),"btn-style":{top:"-50px",padding:"10px",marginRight:"-10px"},onClose:Ye,onUpgrade:ot},null,8,["img","link","paused"]),Ue[9]||(Ue[9]=L("div",{class:"text-center text-white text-xs bg-black/60 rounded px-3 py-5 pointer-events-none opacity-70",style:{"z-index":"60"}}," 精彩内容在广告关闭后,点击广告图片可查看广告详情 ",-1))])):te("",!0),L("button",{class:"absolute top-4 right-4 text-white w-[32px] h-[32px] text-2xl bg-black/40 rounded-full p-2 hover:bg-black/70 transition","aria-label":"关闭",style:{"line-height":"0!important","z-index":"200"},onClick:U}," × "),b(ee)?te("",!0):(P(),j("div",Bpe,[S(e1,{modelValue:b(g),"onUpdate:modelValue":Ue[3]||(Ue[3]=fn=>Ce(g)?g.value=fn:null),modules:[],loop:!0,"initial-slide":b(g),class:"items-center justify-center bg-black w-full h-full",pagination:{clickable:!0},onSlideChange:N},{default:A(()=>[(P(!0),j(se,null,Fe(v.fileList,(fn,es)=>(P(),q(yn,{key:fn.id},{default:A(()=>[fn.ext==="mp4"?(P(),q(_t,{key:0,src:h(fn.img,"lg"),encoded:!0,class:"timeline-poster-preload",onLoad:_n=>le(_n,es.toString())},null,8,["src","onLoad"])):te("",!0),fn.ext!=="mp4"?(P(),q(_t,{key:1,src:h(fn.img,"lg"),encoded:!0,class:"w-full h-full object-contain"},null,8,["src"])):(P(),j("div",Npe,[b(ve)?(P(),j("div",Vpe)):te("",!0),L("div",Upe,[b(g)===es?pn((P(),j("div",jpe,[S(Wi,{ref_for:!0,ref_key:"videoRef",ref:we,src:O(fn.vod,b(y),b(C)),poster:b(Q)[es.toString()],"playback-rate":b(s),"current-time":b(W)[es]??0,"fullscreen-web":!1,duration:fn.duration||0,loading:b(r),active:b(g)===es,playing:b(g)===es,"control-next":!1,"auto-size":!1,controls:"",class:"timeline-preview-player","onUpdate:currentTime":_n=>X(_n,String(es)),onError:k},{actions:A(()=>[S(Ri,{modelValue:b(Pe),"onUpdate:modelValue":Ue[1]||(Ue[1]=_n=>Ce(Pe)?Pe.value=_n:null),location:"top end","close-on-content-click":!1,offset:8},{activator:A(({props:_n})=>[S(ce,Ve({ref_for:!0},_n,{variant:"text",size:"small",class:"text-white",style:{"font-size":"14px"},"append-icon":"mdi:menu-up"}),{default:A(()=>[...Ue[10]||(Ue[10]=[z(" 选项 ",-1)])]),_:1},16)]),default:A(()=>[S($e,{class:"timeline-action-menu"},{default:A(()=>[S(sn,{defaults:ye},{default:A(()=>[L("div",zpe,[b(Y).length>1?(P(),j(se,{key:0},[Ue[12]||(Ue[12]=L("div",{class:"timeline-action-menu-label"}," 清晰度 ",-1)),(P(!0),j(se,null,Fe(b(Y),(_n,qi)=>(P(),q(ce,{key:`q-${qi}`,"prepend-icon":qi===b(y)?"mdi:check":"mdi:video-outline",class:Ie({"text-primary":qi===b(y)}),onClick:Et(TLe=>ie(qi,_n.vip),["stop"])},{default:A(()=>[z(Z(_n.name)+" ",1),_n.vip>
1320?(P(),q(de,{key:0,size:"14",class:"ml-1 opacity-80",color:"amber"},{default:A(()=>[...Ue[11]||(Ue[11]=[z(" mdi-crown ",-1)])]),_:1})):te("",!0)]),_:2},1032,["prepend-icon","class","onClick"]))),128)),S(zt,{class:"my-1 opacity-30"})],64)):te("",!0),b(E).length>1?(P(),j(se,{key:1},[Ue[14]||(Ue[14]=L("div",{class:"timeline-action-menu-label"}," 线路 ",-1)),(P(!0),j(se,null,Fe(b(xe),_n=>(P(),q(ce,{key:`line-${_n.index}`,"prepend-icon":_n.index===b(i)?"mdi:check":"mdi:access-point",class:Ie({"text-primary":_n.index===b(i)}),onClick:Et(qi=>ne(_n.index),["stop"])},{default:A(()=>[z(Z(_n.name)+" ",1),_n.index!==0?(P(),q(de,{key:0,size:"14",class:"ml-1 opacity-80",color:"amber"},{default:A(()=>[...Ue[13]||(Ue[13]=[z(" mdi-crown ",-1)])]),_:1})):te("",!0)]),_:2},1032,["prepend-icon","class","onClick"]))),128)),!b(fe)&&b(E).length>Gd?(P(),q(ce,{key:0,"prepend-icon":"mdi:dots-horizontal",onClick:Ue[0]||(Ue[0]=Et(_n=>fe.value=!0,["stop"]))},{default:A(()=>[z(" 显示更多("+Z(b(E).length-Gd)+") ",1)]),_:1})):te("",!0),S(zt,{class:"my-1 opacity-30"})],64)):te("",!0),v.post&&v.user?(P(),q(ce,{key:2,"prepend-icon":"mdi:gift-outline",onClick:Et(et,["stop"])},{default:A(()=>[...Ue[15]||(Ue[15]=[z(" 打赏 ",-1)])]),_:1})):te("",!0),v.postId!==void 0&&v.postId!==null?(P(),q(bi,{key:3,id:v.postId,"initial-favored":b(ze),"icon-color":"white","icon-size":20,onChange:ge},{default:A(({isFavored:_n,handleFav:qi})=>[S(ce,{"prepend-icon":_n?"mdi:bookmark":"mdi:bookmark-outline",onClick:Et(qi,["stop"])},{default:A(()=>[z(Z(_n?"已收藏":"收藏"),1)]),_:2},1032,["prepend-icon","onClick"])]),_:1},8,["id","initial-favored"])):te("",!0),v.postId!==void 0&&v.postId!==null?(P(),q(Dl,{key:4,id:v.postId,source:"1","initial-liked":b(qe),"initial-count":b(Me),"icon-color":"white","icon-size":20,onChange:he},{default:A(({isLiked:_n,handleLike:qi})=>[S(ce,{"prepend-icon":_n?"mdi:heart":"mdi:heart-outline",onClick:Et(qi,["stop"])},{default:A(()=>[z(Z(_n?"已点赞":"点赞"),1)]),_:2},1032,["prepend-icon","onClick"])]),_:1},8,["id","initial-liked","initial-count"])):te("",!0)])]),_:1})]),_:1})]),_:1},8,["modelValue"])]),error:A(()=>[L("div",Hpe,[S(de,{size:"36",class:"opacity-80"},{default:A(()=>[...Ue[16]||(Ue[16]=[z(" mdi-alert-circle-outline ",-1)])]),_:1}),Ue[19]||(Ue[19]=L("div",{class:"text-sm opacity-90"}," 视频加载失败,已尝试全部线路 ",-1)),L("div",Gpe,[S(ce,{size:"small",variant:"tonal",color:"primary","prepend-icon":"mdi:reload",onClick:Et($,["stop"])},{default:A(()=>[...Ue[17]||(Ue[17]=[z(" 重试 ",-1)])]),_:1}),S(ce,{size:"small",variant:"outlined","prepend-icon":"mdi:swap-horizontal",onClick:Ue[2]||(Ue[2]=Et(_n=>Pe.value=!0,["stop"]))},{default:A(()=>[...Ue[18]||(Ue[18]=[z(" 切换线路/清晰度 ",-1)])]),_:1})])])]),_:1},8,["src","poster","playback-rate","current-time","duration","loading","active","playing","onUpdate:currentTime"])],512)),[[hs,!b(Le)]]):te("",!0)])]))]),_:2},1024))),128))]),_:1},8,["modelValue","initial-slide"])]))]),_:1},8,["modelValue","fullscreen","max-width"])):te("",!0),b(ae)?(P(),q(l0,{key:3,modelValue:b(ae),"onUpdate:modelValue":Ue[6]||(Ue[6]=fn=>Ce(ae)?ae.value=fn:null),"initial-mode":"login",onClose:rt},null,8,["modelValue"])):te("",!0),b(ue)?(P(),q(t1,{key:4,modelValue:b(ue),"onUpdate:modelValue":Ue[7]||(Ue[7]=fn=>Ce(ue)?ue.value=fn:null),onClose:ct},null,8,["modelValue"])):te("",!0),v.post&&v.user?(P(),q(u0,{key:5,ref_key:"rewardDialogRef",ref:Be,post:v.post,user:v.user,onClose:pe},null,8,["post","user"])):te("",!0)])}}}),U5=vt(Kpe,[["__scopeId","data-v-fdcea952"]]),Wpe=Object.freeze(Object.defineProperty({__proto__:null,default:U5},Symbol.toStringTag,{value:"Module"})),qpe={class:"text-shadow"},Ype=ke({__name:"TimelineAttachmentList",props:{fileList:{},autoExpand:{type:Boolean},needPay:{type:Boolean},needSubscribe:{type:Boolean},postId:{},post:{},user:{},initialLiked:{type:Boolean},initialLikes:{},initialFavored:{type:Boolean}}
132,emits:["like-change","fav-change"],setup(e,{emit:t}){const n=e,r=t,s=M(n.autoExpand||!1),i=F(()=>s.value?n.fileList:n.fileList.slice(0,3));return(o,a)=>{const l=U5;return n.fileList&&n.fileList.length?(P(),j("div",{key:0,class:Ie(["grid gap-1 w-full",{"grid-cols-3":n.fileList.length>=3,"grid-cols-2":n.fileList.length===2}])},[(P(!0),j(se,null,Fe(b(i),(u,c)=>(P(),j("div",{key:u.id,class:"relative box-border"},[S(l,{file:u,"file-list":n.fileList,index:c,"need-pay":n.needPay,"need-subscribe":n.needSubscribe,"post-id":n.postId,post:n.post,user:n.user,"initial-liked":n.initialLiked,"initial-likes":n.initialLikes,"initial-favored":n.initialFavored,class:"w-full",onLikeChange:a[0]||(a[0]=(d,f)=>r("like-change",d,f)),onFavChange:a[1]||(a[1]=d=>r("fav-change",d))},null,8,["file","file-list","index","need-pay","need-subscribe","post-id","post","user","initial-liked","initial-likes","initial-favored"]),!b(s)&&c===2&&n.fileList.length>3?(P(),j("div",{key:0,class:"absolute inset-0 flex items-center justify-center bg-black/40 bg-opacity-60 text-white text-base font-bold cursor-pointer rounded z-10 drop-shadow-md",onClick:a[2]||(a[2]=Et(d=>s.value=!0,["stop"]))},[L("span",qpe,"共 "+Z(n.fileList.length)+" 条",1)])):te("",!0)]))),128))],2)):te("",!0)}}}),j5=vt(Ype,[["__scopeId","data-v-d32f3c72"]]),Xpe=Object.freeze(Object.defineProperty({__proto__:null,default:j5},Symbol.toStringTag,{value:"Module"})),Zpe={class:"post-reward-btn"},Jpe=ke({__name:"PostRewardBtn",props:{user:{},post:{},hideText:{type:Boolean,default:!1},iconColor:{default:void 0},iconClass:{default:""},iconSize:{default:18},iconLeft:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1}},emits:["open","close"],setup(e,{expose:t,emit:n}){const r=e,s=n,i=M(null);function o(){r.disabled||(i.value?.openDialog(),s("open"))}function a(){i.value?.closeDialog(),s("close")}return t({open:o,close:a}),(l,u)=>{const c=_y;return P(),j("div",Zpe,[Ht(l.$slots,"default",{open:o},()=>[e.hideText?(P(),q(ce,{key:1,icon:"",variant:"plain",density:"comfortable",style:Qe(e.iconColor?{color:e.iconColor}:void 0),disabled:e.disabled,onClick:Et(o,["stop"])},{default:A(()=>[S(de,{icon:"mdi:gift-outline",size:e.iconSize,class:Ie([e.iconClass])},null,8,["size","class"])]),_:1},8,["style","disabled"])):(P(),q(ce,{key:0,"prepend-icon":e.iconLeft?"mdi-gift-outline":void 0,"append-icon":e.iconLeft?void 0:"mdi-gift-outline",disabled:e.disabled,onClick:Et(o,["stop"])},{default:A(()=>[...u[0]||(u[0]=[L("span",null,"打赏",-1)])]),_:1},8,["prepend-icon","append-icon","disabled"]))],!0),S(c,{ref_key:"rewardDialogRef",ref:i,user:e.user,post:e.post,onClose:a},null,8,["user","post"])])}}}),z5=vt(Jpe,[["__scopeId","data-v-c2612cf5"]]),Qpe=Object.freeze(Object.defineProperty({__proto__:null,default:z5},Symbol.toStringTag,{value:"Module"})),eme={class:"flex items-center justify-center h-full"},qy=ke({__name:"CaptchaField",props:{modelValue:{},rand:{}},emits:["update:modelValue","update:rand"],setup(e,{emit:t}){const n=e,r=t,s=M(n.rand||Date.now());be(()=>n.rand,a=>{a&&(s.value=a)});const i=F({get:()=>n.modelValue,set:a=>r("update:modelValue",a)});function o(){s.value=Date.now(),r("update:rand",s.value)}return(a,l)=>(P(),q(St,{modelValue:b(i),"onUpdate:modelValue":l[0]||(l[0]=u=>Ce(i)?i.value=u:null),"prepend-inner-icon":"ant-design:safety-certificate-filled",placeholder:"请输入验证码",class:"mb-4","hide-details":""},{"append-inner":A(()=>[S(Xr,{src:`/@wafcaptcha?${b(s)}`,width:100,class:"cursor-pointer",onClick:o},{placeholder:A(()=>[L("div",eme,[S(jn,{size:"20",indeterminate:""})])]),_:1},8,["src"])]),_:1},8,["modelValue"]))}}),tme=Object.freeze(Object.defineProperty({__proto__:null,default:qy},Symbol.toStringTag,{value:"Module"})),nme={key:"step1",class:"mb-6"},rme={class:"text-center mb-2"},sme={class:"flex flex-wrap gap-2"},ime={class:"mt-3 flex justify-between items-center text-xs text-gray-500"},ome={class:"flex gap-2"},ame={key:"step2"},lme={class:"text-center relative flex flex-col items-center mb-6"},ume={style:{width:"80px",height:"80px",margin:"10px 0"}},cme={key:0,class:"mb-4"},dme={class:"text-center text-sm text-gray-600"},fme={key:1,class:"mb-4"},hme={class:"flex items-center justify-between mb-2"},pme={class:"grid grid-cols-6 gap-3"},mme=["onClick"],vme={class:"rounded-full overflow-hidden"},gme={class:"text-center mb-6"},yme={class:"flex gap-3"},xme={key:"step3",class:"mb-6"},bme={class:"text-center mb-6"},_me={class:"space-y-4 mb-6"},Sme={key:"step4",class:"mb-6"},Eme={class:"text-center mb-4"},wme={class:"text-lg font-medium mb-2"},Tme={key:0,class:"text-xs text-amber-600 mt-1"},Cme={key:0,class:"mb-4"},Ame={key:"step4-no-verify",class:"mb-6"},kme={class:"text-center mb-6"},Ime=ke({__name:"UserVerifyDialog",props:{modelValue:{type:Boolean},enablePhone:{type:Boolean},enableEmail:{type:Boolean},closeable:{type:Boolean}},emits:["update:modelValue","success"],setup(e,{emit:t}){const n=e;console.log("props",{...n});const r=t,{user:s}=Ct(),i=F({get:()=>n.modelValue,set:pe=>r("update:modelValue",pe)}),{user:o}=it(),a=M({nickname:s.value?.nickname||"",sex:s.value?.sex||1,withdrawpwd:"",withdrawpwd2:""}),l=F(()=>({enablePhone:n.enablePhone!==!1,enableEmail:n.enableEmail!==!1})),u=F(()=>{const pe=[];return l.value.enablePhone&&pe.push("phone"),l.value.enableEmail&&pe.push("email"),pe}),c=M("phone"),d=M(1),f=M(!1),h=M(!1),p=F(()=>{const pe=s.value?.nickeditat||0;return Math.floor(Date.now()/1e3)-pe>720*60*60}),m=F(()=>Number(s.value?.withpwd||0)>0),v=F(()=>{const pe=s.value?.avatar||"";return!!pe&&!pe.startsWith("/avatar/")&&pe.substring(0,1)!=="/"}),x=F(()=>{const pe=s.value?.avatar||"";return!!pe&&(pe.startsWith("/avatar/")||pe.substring(0,1)!=="/")}),g=F(()=>!p.value&&m.value),y=M({}),_=F(()=>y.value.showWithdrawPwd!==0),E=M({phone:s.value?.phone||"",email:s.value?.email||"",code:"",countdown:0,timer:void 0}),w=M(null),T=M(""),C=M([]),I=M(null),k=M(!1);function $(){const ge=Array.from({length:1e3},(he,ye)=>ye+1).sort(()=>Math.random()-.5);C.value=ge.slice(0,12)}function R(){C.value.length===0&&$(),k.value=!k.value}function D(){$(),I.value=null}const O=F(()=>
132{if(T.value)return T.value;if(I.value)return`/avatar/${I.value}`;const pe=s.value?.avatar||"";return pe.startsWith("/avatar/")?pe:pe.substring(0,1)=="/"?"":qs(pe)}),B=M(null),U=M(!1),N=M(0);function V(pe){I.value=pe,T.value=`/avatar/${pe}`}const H=M(!1),re=M(""),W=M(Date.now()),X=F(()=>u.value.length>1),Q=F({get:()=>c.value==="phone"?E.value.phone:E.value.email,set:pe=>{c.value==="phone"?E.value.phone=pe:E.value.email=pe}}),le=[pe=>!!pe||"请输入昵称",pe=>pe.length>=3||"昵称长度至少3位",pe=>pe.length<=16||"昵称长度不能超过16位",pe=>pe!==s.value?.username||"昵称不能与用户名相同"],ve=[pe=>!!pe||"请输入手机号",pe=>/^1[3-9]\d{9}$/.test(pe)||"请输入正确的手机号"],oe=[pe=>!!pe||"请输入邮箱",pe=>/^[a-zA-Z0-9._%+-]+@[a-zA-Z0-9.-]+\.[a-zA-Z]{2,}$/.test(pe)||"请输入有效的邮箱地址"],K=[pe=>pe?pe.length<6?"密码长度至少6位":pe.length>20?"密码长度不能超过20位":/^[A-Za-z0-9]+$/.test(pe)?!0:"密码只能包含数字和字母":!0],ee=[pe=>a.value.withdrawpwd?pe?pe===a.value.withdrawpwd||"两次输入的密码不一致":"请再次输入取现密码":!0],ae=M([]),ue=M(!1),Ee=M(!1);async function _e(){if(!ue.value){ue.value=!0;try{const pe=await o.nicknameRandom({count:8}),ge=pe?.data?.nicknames||pe?.nicknames||[];ae.value=Array.isArray(ge)?ge:[],ae.value.length?Ee.value=!0:je.error("暂时没有可用的随机昵称,请稍后再试")}catch(pe){je.error(pe?.data||"获取随机昵称失败")}finally{ue.value=!1}}}function J(pe){a.value.nickname=pe,Ee.value=!1}const Y=M("fade");be(()=>i.value,async pe=>{if(pe){try{const ge=await o.conf();y.value=ge}catch(ge){console.error("读取用户配置失败:",ge),y.value={showWithdrawPwd:1}}a.value={nickname:s.value?.nickname||"",sex:s.value?.sex||1,withdrawpwd:"",withdrawpwd2:""},E.value={phone:s.value?.phone||"",email:s.value?.email||"",code:"",countdown:0,timer:void 0},w.value=null,T.value="",I.value=null,k.value=!1,C.value=[],g.value?(h.value=!0,d.value=et()):(d.value=1,h.value=!1),u.value.length>0&&(c.value=u.value[0]),fe()}},{immediate:!0}),be(u,pe=>{pe.length>0&&!pe.includes(c.value)&&(c.value=pe[0])},{immediate:!0});function fe(){E.value.timer&&(clearInterval(E.value.timer),E.value.timer=void 0),E.value.countdown=0}function xe(){E.value.countdown=60,E.value.timer=fi(()=>{E.value.countdown--,E.value.countdown<=0&&(clearInterval(E.value.timer),E.value.timer=void 0)},1e3)}async function ne(pe,ge){let he=pe;if(he===2&&v.value&&(he=et()),ge){let ye=!1;if(I.value)try{const{user:me}=await o.update({avatar:I.value});me&&typeof me=="object"&&"avatar"in me&&(s.value.avatar=me.avatar),ye=!0,je.success("头像设置成功")}catch(me){console.error("系统头像设置失败:",me),je.error("设置头像失败,请重试");return}else if(w.value)try{const me=await we(),{user:Ne}=await o.update({avatar:me});Ne&&typeof Ne=="object"&&"avatar"in Ne&&(s.value.avatar=Ne.avatar),ye=!0,je.success("头像上传成功")}catch(me){console.error("头像上传失败:",me);return}else x.value&&(ye=!0);if(!ye){je.error("请选择头像");return}}Y.value="slide-left",d.value=he}async function ie(){if(p.value){if(!a.value.nickname){je.error("请输入昵称");return}if(a.value.nickname===s.value?.username){je.error("昵称不能与用户名相同");return}if(a.value.nickname.length<2||a.value.nickname.length>20){je.error("昵称长度必须在2-20位之间");return}}if(a.value.sex===0){je.error("请选择性别");return}if(_.value){for(const pe of K){const ge=pe(a.value.withdrawpwd);if(ge!==!0){je.error(ge);return}}for(const pe of ee){const ge=pe(a.value.withdrawpwd2);if(ge!==!0){je.error(ge);return}}}try{const pe={sex:a.value.sex};_.value&&a.value.withdrawpwd&&(pe.withdrawpwd=a.value.withdrawpwd),p.value&&(pe.nickname=a.value.nickname),await o.update(pe),h.value=!0,je.success("基本信息保存成功"),ne(2)}catch(pe){console.log("nicknamefailed",pe)}}function Le(pe){const ge=pe.target;if(!ge.files?.length)return;const he=ge.files[0];if(he.size>5*1024*1024){je.error("头像文件不能超过5MB");return}w.value=he,T.value=URL.createObjectURL(he)}async function we(){if(!w.value)return s.value?.avatar||"";U.value=!0,N.value=0;try{const{file:pe}=it();return(await Hh(pe,w.value,he=>{N.value=he}))?.id||""}catch(pe){throw je.error(`头像上传失败:${pe}`),console.error("头像上传失败:",pe),pe}finally{U.value=!1,N.value=0}}function Be(pe){c.value=pe,ne(4)}async function Pe(){const pe=Q.value;if(!pe||E.value.countdown>0)return;const{user:ge}=it();f.value=!0;try{await ge.sendcode({type:c.value==="phone"?1:2,source:pe,_captcha:re.value}),je.success(c.value==="phone"?"验证码已发送":"验证邮件已发送,请查收"),xe(),H.value=!0,re.value=""}
132catch(he){he?.error===403?(H.value=!1,re.value="",W.value=Date.now()):je.error(he?.data||"发送失败")}finally{f.value=!1}}async function qe(){if(!E.value.code){je.error("请输入验证码");return}const pe=Q.value;f.value=!0;try{const{user:ge}=it();await ge.bind({source:pe,code:E.value.code}),je.success("验证成功"),i.value=!1,r("success")}catch(ge){je.error(ge?.data||"验证失败")}finally{f.value=!1}}function Me(){if(d.value<=1||d.value===2&&g.value)return;Y.value="slide-right";let pe=d.value-1;if(pe===2&&x.value){if(g.value)return;pe=1}d.value=pe}function ze(){i.value=!1,r("success")}cn(()=>{fe()});function et(){return v.value?X.value?3:4:2}return(pe,ge)=>{const he=An,ye=qy;return P(),q(Gt,{modelValue:b(i),"onUpdate:modelValue":ge[17]||(ge[17]=me=>Ce(i)?i.value=me:null),"max-width":"500",persistent:!e.closeable},{default:A(()=>[S($e,{class:"overflow-visible"},{default:A(()=>[S(We,{class:"overflow-visible"},{default:A(()=>[S(No,{name:b(Y),mode:"out-in"},{default:A(()=>[b(d)===1?(P(),j("div",nme,[L("div",rme,[S(de,{icon:"mdi-account-edit",size:"48",color:"primary",class:"mb-4"}),ge[18]||(ge[18]=L("h3",{class:"text-lg font-medium mb-2"}," 请设置昵称和性别 ",-1))]),S(gl,{onSubmit:Et(ie,["prevent"])},{default:A(()=>[S(St,{modelValue:b(a).nickname,"onUpdate:modelValue":ge[3]||(ge[3]=me=>b(a).nickname=me),label:"昵称",placeholder:"3-16位长度/不能和用户名一样",rules:le,"prepe
132nd-inner-icon":"mdi-account-edit",class:"mb-4",density:"compact","hide-details":"auto",disabled:!b(p)},Sh({_:2},[b(p)?{name:"append-inner",fn:A(()=>[S(Ri,{modelValue:b(Ee),"onUpdate:modelValue":ge[2]||(ge[2]=me=>Ce(Ee)?Ee.value=me:null),"close-on-content-click":!1,offset:"8"},{activator:A(({props:me})=>[S(ce,Ve(me,{icon:"",size:"small",variant:"text",loading:b(ue),onClick:ge[0]||(ge[0]=Et(Ne=>_e(),["stop"]))}),{default:A(()=>[S(de,{icon:"mdi-dice-5-outline"})]),_:1},16,["loading"])]),default:A(()=>[S($e,{"min-width":"220","max-width":"260"},{default:A(()=>[S(at,{class:"py-2 text-sm"},{default:A(()=>[...ge[19]||(ge[19]=[z(" 选择一个随机昵称 ",-1)])]),_:1}),S(We,{class:"py-2"},{default:A(()=>[L("div",sme,[(P(!0),j(se,null,Fe(b(ae),me=>(P(),q(kt,{key:me,size:"small",class:"cursor-pointer",onClick:Ne=>J(me)},{default:A(()=>[z(Z(me),1)]),_:2},1032,["onClick"]))),128))]),L("div",ime,[ge[21]||(ge[21]=L("span",null,"不喜欢可以再摇一次",-1)),S(ce,{variant:"text",size:"x-small",loading:b(ue),onClick:ge[1]||(ge[1]=Et(me=>_e(),["stop"]))},{default:A(()=>[...ge[20]||(ge[20]=[z(" 换一批 ",-1)])]),_:1},8,["loading"])])]),_:1})]),_:1})]),_:1},8,["modelValue"])]),key:"0"}:void 0]),1032,["modelValue","disabled"]),L("div",ome,[S(oo,{modelValue:b(a).sex,"onUpdate:modelValue":ge[4]||(ge[4]=me=>b(a).sex=me),label:"性别",items:[{title:"男",value:1},{title:"女",value:2},{title:"保密",value:3}],"item-title":"title","item-value":"value","prepend-inner-icon":"mdi-sex-male-female",class:"mb-4 flex-1","hide-details":"auto",density:"compact"},null,8,["modelValue"])]),b(_)?(P(),j(se,{key:0},[S(St,{modelValue:b(a).withdrawpwd,"onUpdate:modelValue":ge[5]||(ge[5]=me=>b(a).withdrawpwd=me),label:"设置取现密码",placeholder:"6-20位数字或字母",rules:K,"prepend-inner-icon":"mdi-lock",class:"mb-4",type:"password",density:"compact","hide-details":"auto",autocomplete:"new-password"},null,8,["modelValue"]),S(St,{modelValue:b(a).withdrawpwd2,"onUpdate:modelValue":ge[6]||(ge[6]=me=>b(a).withdrawpwd2=me),label:"重复取现密码",placeholder:"请再次输入取现密码",rules:ee,"prepe
132nd-inner-icon":"mdi-lock-check",class:"mb-4",type:"password",density:"compact","hide-details":"auto",autocomplete:"new-password"},null,8,["modelValue"])],64)):te("",!0),ge[23]||(ge[23]=L("p",{class:"opacity-70 text-xs text-center my-2"},[z(" 昵称 30 天内只能修改一次"),L("br"),z(" 骂人/不雅/广告等昵称将被封号处理 ")],-1)),S(ce,{block:"",color:"primary",size:"large",type:"submit"},{default:A(()=>[...ge[22]||(ge[22]=[z(" 保存基本信息 ",-1)])]),_:1})]),_:1})])):b(d)===2?(P(),j("div",ame,[L("div",lme,[L("div",ume,[b(O)?(P(),q(he,{key:0,src:b(O),encoded:1,width:88,height:88,class:"mb-4 bg-black/50"},null,8,["src"])):(P(),q(de,{key:1,icon:"mdi-camera",size:"88",color:"primary",class:"mb-4"}))]),ge[24]||(ge[24]=L("h3",{class:"text-lg font-medium mb-2"}," 上传头像 ",-1)),ge[25]||(ge[25]=L("p",{class:"opacity-70 text-sm"},[z(" 点击图标上传您的头像"),L("br"),z(" 严禁上传任何广告/变态/幼女等图片(直接封号) ")],-1)),L("input",{ref_key:"avatarInput",ref:B,type:"file",accept:"image/*",class:"opacity-0 absolute top-0 left-0 right-0 bottom-0 z-10",onChange:Le},null,544)]),b(U)?(P(),j("div",cme,[S(gd,{"model-value":b(N),height:"8",color:"primary",class:"mb-2"},null,8,["model-value"]),L("div",dme," 正在上传头像... "+Z(b(N))+"% ",1)])):te("",!0),b(k)&&!b(w)&&!b(U)?(P(),j("div",fme,[L("div",hme,[ge[27]||(ge[27]=L("div",{class:"text-xs text-gray-500 text-left"}," 从系统默认头像中选择一个: ",-1)),S(ce,{variant:"text",size:"x-small",onClick:D},{default:A(()=>[S(de,{icon:"mdi-shuffle",size:"16",class:"mr-1"}),ge[26]||(ge[26]=z(" 换一批 ",-1))]),_:1})]),L("div",pme,[(P(!0),j(se,null,Fe(b(C),me=>(P(),j("button",{key:me,type:"button",class:Ie(["relative rounded-full border focus:outline-none transition-all",b(I)===me?"border-primary ring-2 ring-primary/60 scale-105":"border-gray-300 hover:border-primary/50"]),onClick:Ne=>V(me)},[L("div",vme,[S(he,{src:`/avatar/${me}`,encoded:0,width:64,height:64,class:"w-12 h-12 object-cover"},null,8,["src"])]),b(I)===me?(P(),q(de,{key:0,icon:"mdi-check-circle",color:"primary",size:"18",class:"absolute bottom-0 right-0 bg-white rounded-full translate-x-1 translate-y-1"})):te("",!0)],10,mme))),128))])])):te("",!0),L("div",gme,[L("div",yme,[!b(w)&&!b(U)?(P(),q(ce,{key:0,variant:"outlined",size:"large",onClick:R},{default:A(()=>[S(de,{icon:"mdi-account-circle",size:"20",class:"mr-1"}),ge[28]||(ge[28]=z(" 系统头像 ",-1))]),_:1})):te("",!0),S(ce,{color:"primary",size:"large",class:"flex-1",loading:b(U),disabled:b(U),onClick:ge[7]||(ge[7]=me=>b(X)?ne(3,!0):ne(4,!0))},{default:A(()=>[...ge[29]||(ge[29]=[z(" 下一步 ",-1)])]),_:1},8,["loading","disabled"])])])])):b(d)===3&&b(X)?(P(),j("div",xme,[L("div",bme,[S(de,{icon:"mdi-shield-check",size:"48",color:"primary",class:"mb-4"}
132),ge[30]||(ge[30]=L("h3",{class:"text-lg font-medium mb-2"}," 请选择验证方式 ",-1)),ge[31]||(ge[31]=L("p",{class:"text-gray-600"}," 为了账户安全,请验证您的手机号或邮箱 ",-1))]),L("div",_me,[b(l).enablePhone?(P(),q($e,{key:0,variant:"outlined",class:"cursor-pointer rounded-md",onClick:ge[8]||(ge[8]=me=>Be("phone"))},{default:A(()=>[S(We,{class:"flex items-center"},{default:A(()=>[S(de,{icon:"mdi-phone",color:"primary",class:"mr-3"}),ge[32]||(ge[32]=L("div",null,[L("div",{class:"font-medium"}," 手机号验证 "),L("div",{class:"text-sm text-gray-600"}," 通过短信验证码, 验证手机号 ")],-1)),S(Mt),S(de,{icon:"mdi-chevron-right",color:"gray"})]),_:1})]),_:1})):te("",!0),b(l).enableEmail?(P(),q($e,{key:1,variant:"outlined",class:"cursor-pointer rounded-md",onClick:ge[9]||(ge[9]=me=>Be("email"))},{default:A(()=>[S(We,{class:"flex items-center"},{default:A(()=>[S(de,{icon:"mdi-email",color:"primary",class:"mr-3"}),ge[33]||(ge[33]=L("div",null,[L("div",{class:"font-medium"}," 邮箱验证 "),L("div",{class:"text-sm text-gray-600"}," 通过邮件验证码, 验证邮箱 ")],-1)),S(Mt),S(de,{icon:"mdi-chevron-right",color:"gray"})]),_:1})]),_:1})):te("",!0)]),S(ce,{variant:"outlined",size:"large",block:"",class:"mt-4",onClick:Me},{default:A(()=>[...ge[34]||(ge[34]=[z(" 上一步 ",-1)])]),_:1})])):b(d)===4&&b(u).length>0?(P(),j("div",Sme,[L("div",Eme,[S(de,{icon:b(c)==="phone"?"mdi-phone":"mdi-email",size:"48",color:"primary",class:"mb-4"},null,8,["icon"]),L("h3",wme,Z(b(c)==="phone"?"手机号验证":"邮箱验证"),1),b(c)==="email"&&b(y).emailVerifyReward?(P(),j("p",Tme," 可额外获得 "+Z(b(y).emailVerifyReward)+" 积分奖励 ",1)):te("",!0)]),L("div",null,[S(St,{modelValue:b(Q),"onUpdate:modelValue":ge[10]||(ge[10]=me=>Ce(Q)?Q.value=me:null),label:b(c)==="phone"?"手机号":"邮箱地址",placeholder:b(c)==="phone"?"请输入手机号":"请输入邮箱地址",rules:b(c)==="phone"?ve:oe,"prepend-inner-icon":b(c)==="phone"?"mdi-phone":"mdi-email",class:"mb-4",disabled:b(H)},null,8,["modelValue","label","placeholder","rules","prepend-inner-icon","disabled"]),b(H)?te("",!0):(P(),j("div",Cme,[S(ye,{rand:b(W),"onUpdate:rand":ge[11]||(ge[11]=me=>Ce(W)?W.value=me:null),randModifiers:{lazy:!0},modelValue:b(re),"onUpdate:modelValue":ge[12]||(ge[12]=me=>Ce(re)?re.value=me:null),class:"mb-2"},null,8,["rand","modelValue"])])),b(H)?(P(),j(se,{key:1},[S(St,{modelValue:b(E).code,"onUpdate:modelValue":ge[13]||(ge[13]=me=>b(E).code=me),placeholder:"验证码",label:b(c)==="phone"?"请输入手机收到的验证码":"请输入邮箱收到的验证码","prepe
132nd-inner-icon":"mdi-key",maxlength:"6"},null,8,["modelValue","label"]),S(ce,{block:"",color:"primary",size:"large",loading:b(f),onClick:ge[14]||(ge[14]=me=>qe())},{default:A(()=>[z(" 验证"+Z(b(c)==="phone"?"手机号":"邮箱"),1)]),_:1},8,["loading"])],64)):(P(),q(ce,{key:2,disabled:!b(Q)||b(E).countdown>0||b(re).length!==4,loading:b(f),block:"",color:"primary",size:"large",onClick:ge[15]||(ge[15]=me=>Pe())},{default:A(()=>[z(Z(b(E).countdown>0?`${b(E).countdown}s`:"获取验证码"),1)]),_:1},8,["disabled","loading"]))]),b(H)?(P(),q(ce,{key:0,variant:"outlined",size:"large",block:"",class:"mt-4",onClick:ge[16]||(ge[16]=me=>H.value=!1)},{default:A(()=>[...ge[35]||(ge[35]=[z(" 上一步 ",-1)])]),_:1})):te("",!0)])):b(d)===4&&b(u).length===0?(P(),j("div",Ame,[L("div",kme,[S(de,{icon:"mdi-check-circle",size:"48",color:"success",class:"mb-4"}),ge[36]||(ge[36]=L("h3",{class:"text-lg font-medium mb-2"}," 信息完善完成 ",-1)),ge[37]||(ge[37]=L("p",{class:"text-gray-600"}," 您的账户信息已完善,无需验证即可使用 ",-1))]),S(ce,{color:"primary",size:"large",block:"",onClick:ze},{default:A(()=>[...ge[38]||(ge[38]=[z(" 完成 ",-1)])]),_:1})])):te("",!0)]),_:1},8,["name"])]),_:1})]),_:1})]),_:1},8,["modelValue","persistent"])}}}),s0=vt(Ime,[["__scopeId","data-v-40df7e5a"]]),Lme=Object.freeze(Object.defineProperty({__proto__:null,default:s0},Symbol.toStringTag,{value:"Module"})),Dme={class:"flex bg-background p-4 rounded-md"},Pme=["onClick"],Rme=ke({__name:"TimelineReplyInput",props:{postId:{},replyToId:{},editReply:{},content:{}},emits:["success","edited","error","cancel"],setup(e,{expose:t,emit:n}){const r=e,s=n,i=M(r.editReply?.content||`${r?.content||""}`||""),o=M(!1),a=M(!1),l=M(!1),u=M(!1),{status:c}=Ct(),d=()=>{l.value=!1},f=M();function h(){f.value?.focus()}t({focus:h});const p=[{name:"常用",icon:"mdi:emoticon-happy-outline",list:["😀","😁","😂","🤣","😃","😄","😅","😆","😉","😊","😋","😎","😍","😘","🥰","😗","😙","😚","🙂","🤗","🤩","🤔","🤨","😐","😑","😶","🙄","😏","😣","😥","😮","🤐","😯","😪","😫","🥱","😴","😌","😛","😜","😝","🤤","😒","😓","😔","😕","🙃","🤑","😲","☹️","🙁","😖","😞","😟","😤","😢","😭","😦","😧","😨","😩","🤯","😬","😰","😱","🥵","🥶","😳","🤪","😵","🥴","😠","😡","🤬","😷","🤒","🤕","🤢","🤮","🤧","😇","🥳","🥺","🤠","😎","🤓","🧐"]},{name:"手势",icon:"mdi:hand-peace",list:["👍","👎","👌","✌️","🤞","🤟","🤘","🤙","🖖","👏","🙌","👐","🤲","🙏","💪","🦾"]},{name:"爱心",icon:"mdi:heart-outline",list:["❤️","🧡","💛","💚","💙","💜","🖤","🤍","🤎","💔","❣️","💕","💞","💓","💗","💖","💘","💝","💟","💌","💤","💢","💥","💦","💨","🕳️","💣","💬","👀","🎉","🎊","🎈","🎂","🍰","🍻","🥂"]},{name:"动物",icon:"mdi:paw",list:["🐶","🐱","🐭","🐹","🐰","🦊","🐻","🐼","🐨","🐯","🦁","🐮","🐷","🐸","🐵","🙈","🙉","🙊"]},{name:"食物",icon:"mdi:food-apple",list:["🍎","🍊","🍋","🍌","🍉","🍇","🍓","🍒","🍑","🥭","🍍","🥥","🥝","🍅","🍆","🥑","🥦","🥕"]},{name:"交通",icon:"mdi:car",list:["🚗","🚕","🚙","🚌","🚎","🏎️","🚓","🚑","🚒","🚐","🚚","🚛","🚜"]},{name:"自然",icon:"mdi:weather-sunny",list:["🌞","🌝","🌚","🌈","⭐","🌟","⚡","🔥","💧","🌊","☁️","⛄","🌸","🌹","🌺","🌻","🌼","🌷"]}],m=M(0);function v(g){const y=f.value;if(!y){i.value+=g;return}const _=y.selectionStart,E=y.selectionEnd,w=i.value.slice(0,_),T=i.value.slice(E);i.value=w+g+T,tt(()=>{y.focus(),y.setSelectionRange(_+g.length,_+g.length)})}async function x(){if(!(!i.value.trim()||a.value))try{a.value=!0;const{post:g}=it();if(r.editReply?.id){const y={id:String(r.editReply?.id),content:i.value.trim()},{reply:_}=await g.replyEdit({...y,id:r.editReply?.id});i.value="",o.value=!1,s("edited",_)}else{const y={id:String(r.postId),content:i.value.trim(),...r.replyToId&&{pid:String(r.replyToId)}},{reply:_}=await g.reply(y);i.value="",o.value=!1,s("success",_)}}catch(g){if(g.error==901){l.value=!0;return}if(c.value!=="authenticated"){f.value?.blur(),u.value=!0;return}console.error("发布评论失败:",JSON.stringify(g)),s("error",g)}finally{a.value=!1}}return(g,y)=>{const _=s0,E=Cr;return P(),j(se,null,[L("div",Dme,[S(ce,{icon:"",density:"comfortable",disabled:b(a),class:"mr-1",title:b(o)?"点击关闭表情选择器":"插入表情",onClick:y[0]||(y[0]=w=>o.value=!b(o))},{default:A(()=>[S(de,{icon:b(o)?"mdi:close":"mdi:emoticon-outline"},null,8,["icon"])]),_:1},8,["disabled","title"]),S(St,{ref_key:"textareaRef",ref:f,modelValue:b(i),"onUpdate:modelValue":y[1]||(y[1]=w=>Ce(i)?i.value=w:null),placeholder:r.replyToId?"输入回复内容...":"输入你的评论内容...",class:"flex-1","auto-grow":"",rows:"1",density:"compact",variant:"plain","hide-details":"",disabled:b(a)},null,8,["modelValue","placeholder","disabled"]),S(ce,{color:"primary",class:"rounded-xs",loading:b(a),disabled:!b(i).trim()||b(a),onClick:x},{default:A(()=>[z(Z(r.replyToId?"回复":"评论"),1)]),_:1},8,["loading","disabled"])]),b(o)?(P(),q($e,{key:0,class:"border rounded-none shadow"},{default:A(()=>[S(Hi,{"center-active":"",class:"flex flex-nowrap overflow-x-auto gap-2 border-b mb-2 justify-start items-center"},{default:A(()=>[(P(),j(se,null,Fe(p,(w,T)=>S(Sr,{key:w.name,stacked:"",grow:"",class:Ie(["px-0 py-0 text-lg text-center focus:outline-none text-xs rounded-none whitespace-nowrap",b(m)===T?"text-primary border-b-2 border-primary":"text-gray-400"]),type:"button",onClick:C=>m.value=T},{default:A(()=>[S(de,{icon:w.icon,size:"small"},null,8,["icon"]),z(" "+Z(w.name),1)]),_:2},1032,["class","onClick"])),64))]),_:1}),S(We,{class:"flex flex-wrap gap-1 p-2 max-h-40 overflow-y-auto"},{default:A(()=>[(P(!0),j(se,null,Fe(p[b(m)].list,w=>
132(P(),j("span",{key:w,class:"cursor-pointer text-2xl hover:bg-gray-100 rounded p-1",onClick:T=>v(w)},Z(w),9,Pme))),128))]),_:1})]),_:1})):te("",!0),b(l)?(P(),q(_,{key:1,modelValue:b(l),"onUpdate:modelValue":y[2]||(y[2]=w=>Ce(l)?l.value=w:null),"enable-email":!0,"enable-phone":!1,closeable:!0,onSuccess:d},null,8,["modelValue"])):te("",!0),S(E,{modelValue:b(u),"onUpdate:modelValue":y[3]||(y[3]=w=>Ce(u)?u.value=w:null)},null,8,["modelValue"])],64)}}}),Yy=vt(Rme,[["__scopeId","data-v-4a068774"]]),Ome=Object.freeze(Object.defineProperty({__proto__:null,default:Yy},Symbol.toStringTag,{value:"Module"})),$me={key:0,class:"mt-3 p-3 bg-primary/5 rounded-lg border border-primary/10"},Mme={class:"text-xs text-gray-400 mb-2 flex items-center justify-between"},Fme={class:"flex items-center gap-1"},Bme={class:"flex flex-col gap-2"},Nme={class:"whitespace-normal text-wrap"},pp=5,H5=ke({__name:"TimelineReplySuggest",props:{postId:{},suggests:{}},emits:["publish-success"],setup(e,{emit:t}){const n=e,r=t,s=M(!1),i=M(new Set),o=M(0),a=M(!1);async function l(h,p){if(!(s.value||i.value.has(p)||a.value))try{s.value=!0;const{post:m}=it(),{reply:v}=await m.reply({id:n.postId,content:h.content,ai_id:h.id});i.value.add(p),a.value=!0,r("publish-success",v)}catch(m){console.error("发布失败:",m);const v=m?.data?.msg||m?.message||"发布失败,请重试";v.includes("已经在该帖子使用过神评助手")&&(a.value=!0),je.error(v)}finally{s.value=!1}}function u(){n.suggests.length-i.value.size<=pp?o.value=0:o.value=(o.value+pp)%n.suggests.length}const c=F(()=>{const h=n.suggests.map((m,v)=>({...m,index:v})).filter(m=>!i.value.has(m.index));if(h.length===0)return[];const p=[];for(let m=0;m<Math.min(pp,h.length);m++){const v=(o.value+m)%h.length;p.push(h[v])}return p}),d=F(()=>n.suggests.length-i.value.size>pp&&!a.value),f=F(()=>c.value.length>0&&!a.value);return(h,p)=>b(f)?(P(),j("div",$me,[L("div",Mme,[L("div",Fme,[S(de,{size:"14"},{default:A(()=>[...p[0]||(p[0]=[z(" mdi-lightbulb-outline ",-1)])]),_:1}),p[1]||(p[1]=z(" 神评助手 · 点击即可发布 ",-1))]),b(d)?(P(),q(ce,{key:0,variant:"text",size:"x-small",class:"text-xs h-auto py-1 px-2 min-w-0",onClick:u},{default:A(()=>[S(de,{size:"14",class:"mr-1"},{default:A(()=>[...p[2]||(p[2]=[z(" mdi-refresh ",-1)])]),_:1}),p[3]||(p[3]=z(" 换一换 ",-1))]),_:1})):te("",!0)]),L("div",Bme,[(P(!0),j(se,null,Fe(b(c),m=>(P(),q(ce,{key:m.index,variant:"tonal",size:"small",class:"justify-start text-left h-auto py-2 px-3",loading:b(s),disabled:b(s)||b(a),onClick:v=>l(m,m.index)},{default:A(()=>[L("span",Nme,Z(m.content),1)]),_:2},1032,["loading","disabled","onClick"]))),128))])])):te("",!0)}}),Vme=Object.freeze(Object.defineProperty({__proto__:null,default:H5},Symbol.toStringTag,{value:"Module"})),Ume={key:0},jme={key:1},zme={class:"text-primary text-bold"},QE=ke({__name:"TimelineReplyDialog",props:{reply:{},editReply:{}},emits:["success","edited","error","cancel"],setup(e,{expose:t,emit:n}){const r=e,s=n,i=M(!1);function o(){i.value=!0}t({open:o});function a(f){s("success",f),i.value=!1}function l(f){s("edited",f),i.value=!1}function u(f){s("error",f)}function c(){s("cancel"),i.value=!1}const d=()=>(r.editReply?.id,"");return(f,h)=>{const p=Yy;return P(),j(se,null,[Ht(f.$slots,"activator",{onClick:()=>i.value=!0}),b(i)?(P(),q(zo,{key:0,modelValue:b(i),"onUpdate:modelValue":h[0]||(h[0]=m=>Ce(i)?i.value=m:null),transition:"bottom-sheet-transition","max-width":"600",persistent:"",class:"mx-auto"},{default:A(()=>[S($e,{class:"rounded-none"},{default:A(()=>[S(at,{class:"flex items-center justify-between px-2 py-0"},{default:A(()=>[e.editReply?.id?(P(),j("span",Ume," 编辑回复 ")):(P(),j("span",jme,[h[1]||(h[1]=z("回复 ",-1)),L("span",zme,Z(e.reply?.user.nickname),1)])),S(ce,{icon:"",variant:"text",onClick:c},{default:A(()=>[S(de,null,{default:A(()=>[...h[2]||(h[2]=[z("mdi-close",-1)])]),_:1})]),_:1})]),_:1}),S(We,{class:"px-2"},{default:A(()=>[S(p,{"post-id":e.reply?.postId||"","reply-to-id":e.reply?.id||"","edit-reply":e.editReply,content:d(),onEdited:l,onSuccess:a,onError:u,onCancel:c},null,8,["post-id","reply-to-id","edit-reply","content"])]),_:1})]),_:1})]),_:1},8,["modelValue"])):te("",!0)],64)}}}),Hme=Object.freeze(Object.defineProperty({__proto__:null,default:QE},Symbol.toStringTag,{value:"Module"})),G5=ke({__name:"TimelineReplyMenu",props:{reply:{}},emits:["edited","deleted"],setup(e,{expose:t,emit:n}){const r=e,s=n,i=M(!1),o=M(!1),a=M(!1),{isEditor:l}=Ct(),{post:u}=it(),{deleteLikeStatus:c}=Ey();function d(x){s("edited",x),m()}function f(){m()}function h(x){x&&r.reply.user&&(x.avatar&&(r.reply.user.avatar=x.avatar),x.nickname&&(r.reply.user.nickname=x.nickname),x.sex!==void 0&&(r.reply.user.sex=x.sex)),m()}function p(x){setTimeout(()=>x.onClick(),0)}function m(){i.value=!1}async function v(){a.value=!0;try{await u.replyDel(r.reply.id);const x=r.reply.tid?"3":"2";c(r.reply.id,x),s("deleted",r.reply.id),m()}catch{}finally{a.value=!1,o.value=!1}}return t({close:m}),(x,g)=>{const y=QE,_=zS,E=zh,w=HS;return P(),q(Ri,{modelValue:b(i),"onUpdate:modelValue":g[1]||(g[1]=T=>Ce(i)?i.value=T:null),location:"bottom end"},{activator:A(({props:T})=>[S(ce,Ve({icon:"",density:"comfortable",variant:"text",color:"grey"},T,{class:"opacity-60"}),{default:A(()=>[S(de,{icon:"mdi:dots-vertical",size:"small"})]),_:1},16)]),default:A(()=>[S(vr,{density:"compact"},{default:A(()=>[Ht(x.$slots,"first"),S(y,{"edit-reply":e.reply,onEdited:d},{activator:A(T=>[S(Rt,{title:"编辑",density:"compact",slim:"","prepend-icon":"mdi:pencil",onClick:Et(C=>p(T),["stop"])},null,8,["onClick"])]),_:1},8,["edit-reply"]),S(_,{id:e.reply.id,type:"reply",onSuccess:f},{activator:A(({props:T})=>[S(Rt,Ve(T,{title:"举报",density:"compact",slim:"","prepend-icon":"mdi:flag"}),null,16)]),_:1},8,["id"]),S(E,{modelValue:b(o),"onUpdate:modelValue":g[0]||(g[0]=T=>Ce(o)?o.value=T:null),title:"确定删除该评论吗?",content:"删除后不可恢复",onConfirm:v},{activator:A(({props:T})=>[S(Rt,Ve({title:"删除",density:"compact",slim:"","prepend-icon":"mdi:delete"},T),null,16)]),_:1},8,["modelValue"]),b(l)&&e.reply.user?.id?(P(),q(w,{key:0,uid:e.reply.user.id,onConfirm:h},{activator:A(({props:T,onClick:C})=>[S(Rt,Ve(T,{title:"用户",density:"compact",slim:"","prepend-icon":"mdi:account-edit",onClick:C}),null,16,["onClick"])]),_:1},8,["uid"])):te("",!0)]),_:3})]),_:3},8,["modelValue"])}}}),Gme=Object.freeze(Object.defineProperty({__proto__:null,default:G5},Symbol.toStringTag,{value:"Module"})),K5=ke({__name:"TimelineReplyChildrenSheet",props:{id:{},pid:{},tid:{},open:{type:Boolean},level:{}},emits:["close","reply-success"],setup(e,{emit:t}){const n=e,r=t,s=M(n.open),i=F(()=>`${n.pid}-bs`);function o(){s.value=!1,r("close")}function a(u){r("reply-success",u)}const l={id:n.id,pubat:0,content:"",tags:[],credits:0,issubscribe:!1,files:0,file:[],likes:0,replies:0,reposts:0,liked:!1}
132;return(u,c)=>{const d=ew;return P(),q(zo,{modelValue:b(s),"onUpdate:modelValue":[c[0]||(c[0]=f=>Ce(s)?s.value=f:null),c[1]||(c[1]=f=>{f||o()})],transition:"bottom-sheet-transition","max-width":"600",class:"m-auto px-2"},{default:A(()=>[S($e,{class:"rounded-none"},{default:A(()=>[S(at,{class:"flex items-center fixed top-0 left-0 right-0 z-10 bg-background"},{default:A(()=>[c[2]||(c[2]=L("span",null,"评论详情",-1)),S(Mt),S(ce,{icon:"mdi-close",variant:"text",onClick:o})]),_:1}),S(We,{class:"px-2 mt-12 mb-4"},{default:A(()=>[(P(),q(d,Ve({key:b(i),post:l,pid:n.pid,tid:n.tid,replies:[],level:e.level+1,loading:!1,"fixed-input":!0,"hide-tab":!0,order:"hot",style:{minHeight:"200px"}},u.$attrs,{onReplySuccess:a}),null,16,["pid","tid","level"]))]),_:1})]),_:1})]),_:1},8,["modelValue"])}}}),Kme=Object.freeze(Object.defineProperty({__proto__:null,default:K5},Symbol.toStringTag,{value:"Module"})),Wme={class:"flex flex-col items-center w-[40px] mr-2 ml-1 mt-3"},qme={class:"flex-1"},Yme={class:"font-bold text-base mb-1 flex items-center gap-2 opacity-90"},Xme={class:"text-xs text-gray-400 font-normal"},Zme=["onClick"],Jme={key:0,class:"mt-2 flex items-center"},Qme={key:0,class:"mr-1"},eve={key:0,class:"mt-2 flex items-start"},tve=ke({__name:"TimelineReplyCard",props:{reply:{},level:{}},emits:["reply","like","reply-success","update:reply","delete"],setup(e,{emit:t}){const n=e,r=t,s=M(!1),i=M(!1),o=M(),a=M(!1),l=F(()=>n.reply?.replies||n.reply.children?.length||0),u=CD();console.log("attrs",JSON.stringify(u));function c(I){const k=new Date(I),R=new Date().getTime()-k.getTime(),D=Math.floor(R/(1e3*60)),O=Math.floor(R/(1e3*60*60)),B=Math.floor(R/(1e3*60*60*24));return D<1?"刚刚":D<60?`${D}分钟前`:O<24?`${O}小时前`:B<7?`${B}天前`:k.toLocaleDateString()}function d(){tt(()=>{o.value&&(i.value=o.value.scrollHeight>120)})}ft(d),be(()=>n.reply.content,d);const f=M(!1);function h(){f.value=!0}function p(){f.value=!1}function m(){}function v(){}function x(){}const g=M();function y(I){const k=Array.isArray(n.reply.children)?[I,...n.reply.children]:[I],$={...n.reply,replies:(n.reply.replies||0)+1,children:k};r("update:reply",$),r("reply-success",I),g.value?.close()}function _(){}function E(I){const k={...n.reply,replies:(n.reply.replies||0)+1,children:Array.isArray(n.reply.children)?[I,...n.reply.children]:[I]};r("update:reply",k),r("reply-success",I)}function w(I){r("update:reply",I)}function T(I){r("delete",I)}function C(){g.value?.open()}return(I,k)=>{const $=Ra,R=G5,D=t0,O=QE,B=K5;return P(),j(se,null,[L("div",Ve({class:"timeline-reply-card flex py-2 transition-colors border-b"},I.$attrs),[L("div",Wme,[S($,{user:e.reply.user,size:40},null,8,["user"])]),L("div",qme,[L("div",Yme,[z(Z(e.reply.user.nickname)+" ",1),L("span",Xme,Z(c(e.reply.date)),1),S(Mt),S(sn,{defaults:{VBtn:{variant:"plain",color:"grey",density:"comfortable",size:"small"}}},{default:A(()=>[S(R,{reply:e.reply,onEdited:w,onDeleted:T},{first:A(()=>[S(Rt,{title:"回复",density:"compact",slim:"","prepend-icon":"mdi:reply",onClick:C})]),_:1},8,["reply"]),S(D,{id:e.reply.id,source:`${e.level>=2?3:2}`,"initial-liked":e.reply.liked,"initial-count":e.reply.likes,class:"pr-0","icon-right":!0,onChange:m,onSuccess:v,onError:x},null,8,["id","source","initial-liked","initial-count"])]),_:1})]),S(O,{ref_key:"replyDialogRef",ref:g,reply:e.reply,onSuccess:y,onCancel:_},{activator:A(({onClick:U})=>[L("div",{ref_key:"contentRef",ref:o,class:Ie(["whitespace-pre-line text-base leading-relaxed break-all transition-all duration-300 cursor-pointer opacity-80",{"max-h-[120px] overflow-hidden":b(i)&&!b(s),"max-h-none":b(s)}]),onClick:U},Z(e.reply.content),11,Zme),b(i)?(P(),j("div",Jme,[b(s)?te("",!0):(P(),j("span",Qme,"...")),S(ce,{variant:"plain",color:"primary",density:"compact",class:"px-0 w-auto min-w-0",onClick:k[0]||(k[0]=Et(N=>s.value=!b(s),["stop"]))},{default:A(()=>[z(Z(b(s)?"收起":"展开"),1)]),_:1})])):te("",!0)]),_:1},8,["reply"]),b(l)>0&&!b(a)?(P(),j("div",eve,[S(ce,{variant:"text",color:"primary",class:"pl-0 flex items-center",onClick:h},{default:A(()=>[z(" 查看其它 "+Z(e.reply.replies||0)+" 条评论 ",1),k[4]||(k[4]=L("span",{class:"inline-block mr-1 align-middle",style:{"font-size":"12px"}}," ▼ ",-1))]),_:1}),b(f)?(P(),q(B,{key:0,id:e.reply.postId,pid:e.level>
1321?e.reply.id:"0",tid:e.level==1?e.reply?.tid:"0",level:e.level,open:b(f),onClose:p,onReplySuccess:E},null,8,["id","pid","tid","level","open"])):te("",!0)])):te("",!0)])],16),te("",!0)],64)}}}),W5=vt(tve,[["__scopeId","data-v-7537220e"]]),nve=Object.freeze(Object.defineProperty({__proto__:null,default:W5},Symbol.toStringTag,{value:"Module"})),rve={key:0},sve={class:"flex gap-4 my-2"},ive=["disabled","onClick"],ove={key:1,class:"flex justify-center items-center py-2"},ave={key:2,class:"mb-2"},lve={key:3,class:"flex justify-center items-center py-4"},uve={key:4,class:"text-center py-8"},cve={class:"text-gray-400 mb-2"},ew=ke({__name:"TimelineReplyList",props:{post:{},replies:{default:()=>[]},loading:{type:Boolean,default:!1},pid:{default:0},tid:{default:0},fixedInput:{type:Boolean},hideTab:{type:Boolean},order:{},level:{}},emits:["reply-success"],setup(e,{expose:t,emit:n}){const r=e,s=n,i=M([]),o=M([]),a=M(!1),l=M(!1),u=M(1),c=M(!0),d=M(r?.order?r?.order:"new"),f=M(!1),h=M(""),p=[{label:"按热度",value:"hot"},{label:"按时间",value:"new"}];async function m(R=1,D=d.value,O=!1){if(R===1&&r?.pid&&r.replies?.length===0&&r.post?.replies,!a.value)try{(O||R===1)&&(a.value=!0),f.value=!1,h.value="";const{post:B}=it(),U={id:r.pid?0:String(r.post.id),tid:r.tid?String(r.tid):0,pid:r.pid?String(r.pid):0,page:R,order:D,replies:r.post?.replies??0};r.level==1?(U.tid=0,delete U.pid):r.level==2?delete U.pid:delete U.tid,U.id||delete U.id;const{list:N,size:V,suggest:H}=await B.replyList(U),re=N;O||R===1?(i.value=re,o.value=H||[]):i.value.push(...re),u.value=R,c.value=V==N.length}catch(B){console.error("获取评论列表失败:",B),f.value=!0,h.value="加载评论失败,请重试"}finally{(O||R===1)&&(a.value=!1)}}async function v(){c.value&&!a.value&&!l.value&&(l.value=!0,await m(u.value+1,d.value),l.value=!1)}async function x(R){R===d.value||a.value||(d.value=R,u.value=1,c.value=!0,await m(1,R,!0))}ft(()=>{r.replies.length===0?m(1,d.value,!0):(u.value=0,c.value=!0,i.value=[...r.replies])}),be(()=>r.replies,R=>{R.length>0&&(i.value=[...R])},{deep:!0});const g=F(()=>[...i.value]),y=M(null);function _(R){const D=R;i.value.unshift(D),d.value,tt(()=>{const O=y.value?.$el?.querySelectorAll(".timeline-reply-card")[0];O&&O.scrollIntoView({behavior:"smooth",block:"start"})}),tt(()=>{y.value&&(y.value.scrollTop=0)}),s("reply-success",R)}function E(R){je.success("评论失败,请重试"),console.error("提交评论失败:",R)}function w(R,D){je.success("回复成功"),console.log("回复评论:",{commentId:R,content:D})}function T(R){je.success("点赞成功"),console.log("点赞评论:",{commentId:R})}function C(R){je.success("回复成功!"),console.log("子回复成功:",R)}async function I(){await m(1,d.value,!0)}function k(R){const D=i.value.findIndex(O=>O.id===R.id);D!==-1&&(i.value[D]=R)}function $(R){const D=i.value.findIndex(O=>O.id===R);D!==-1&&i.value.splice(D,1)}return t({loadReplies:m,changeSort:x,loadMore:v,retryLoad:I}),(R,D)=>{const O=Yy,B=H5,U=W5;return P(),j("div",null,[S($e,{ref_key:"replyListContainer",ref:y,class:Ie(["border-t rounded-none px-0 pt-2",{"mb-12":e.fixedInput}])},{default:A(()=>[!e.fixedInput&&e.post.id?(P(),j("div",rve,[S(O,{"post-id":e.post.id,onSuccess:_,onError:E},null,8,["post-id"])])):te("",!0),!e.fixedInput&&e.post.id&&b(o).length>0?(P(),q(B,{key:1,"post-id":e.post.id,suggests:b(o),onPublishSuccess:_},null,8,["post-id","suggests"])):te("",!0),b(g).length>0?(P(),j(se,{key:2},[e.hideTab?te("",!0):(P(),j(se,{key:0},[e.fixedInput?te("",!0):(P(),q(zt,{key:0,class:"my-2"})),L("div",sve,[(P(),j(se,null,Fe(p,N=>L("button",{key:N.value,class:Ie(["text-base",b(d)===N.value?"text-primary font-bold":"text-gray-400"]),disabled:b(a),onClick:V=>x(N.value)},Z(N.label),11,ive)),64))])],64)),b(a)&&!b(l)&&b(g).length>0?(P(),j("div",ove,[S(jn,{indeterminate:"",size:"20",color:"primary"})])):(P(),j("div",ave,[(P(!0),j(se,null,Fe(b(g),N=>(P(),q(U,{key:N.id,reply:N,level:e.level||1,onReply:w,onLike:T,onReplySuccess:C,"onUpdate:reply":k,onDelete:$},null,8,["reply","level"]))),128))])),b(c)?(P(),j("div",{key:3,class:"text-center text-primary my-4 cursor-pointer hover:underline",onClick:v},[S(ce,{variant:"text",loading:b(l),disabled:b(a)||b(l)},{default:A(()=>[...D[0]||(D[0]=[z(" 加载更多评论 ",-1)])]),_:1},8,["loading","disabled"])])):te("",!0)],64)):te("",!0),b(a)&&b(g).length===0?(P(),j("div",lve,[S(jn,{indeterminate:"",color:"primary"})])):b(f)&&b(g).length===0?(P(),j("div",uve,[L("div",cve,Z(b(h)),1),S(ce,{variant:"outlined",color:"primary",size:"small",onClick:I},{default:A(()=>[...D[1]||(D[1]=[z(" 重试 ",-1)])]),_:1})])):!b(a)&&!b(f)&&b(g).length===0?(P(),q(We,{key:5,class:"text-center text-gray-400 py-8 flex flex-col items-center"},{default:A(()=>[S(de,{size:64,class:"text-gray-300 mb-2 opacity-70"},{default:A(()=>[...D[2]||(D[2]=[z(" mdi-sofa-outline ",-1)])]),_:1}),D[3]||(D[3]=z(" 暂无评论,快来抢沙发吧~ ",-1))]),_:1})):te("",!0)]),_:1},8,["class"]),S($e,{class:"px-0 rounded-none fixed bottom-0 left-0 right-0"},{default:A(()=>[e.fixedInput&&e.post.id?(P(),q(We,{key:0,class:"p-0"},{default:A(()=>[S(O,{"post-id":e.post.id,"reply-to-id":e.tid||e.pid,onSuccess:_,onError:E},null,8,["post-id","reply-to-id"])]),_:1})):te("",!0)]),_:1})])}}}),dve=Object.freeze(Object.defineProperty({__proto__:null,default:ew},Symbol.toStringTag,{value:"Module"})),Cc=new Map;let Kd=null;const of=new Set;let Wd=null;const q5=new Sy(100);function fve(){Wd||(Wd=fi(()=>
132{if(of.size>0){const e=Array.from(of),t=`html/thread/${e.join(",")}.html`;try{if(typeof window<"u"&&typeof window.reportTJ=="function"){const n=window.reportTJ({r:t});e.forEach(r=>q5.set(r,!0)),of.clear()}else{console.warn("reportTJ not available, will retry:",{ids:e,windowDefined:typeof window<"u",reportTJType:typeof window?.reportTJ});return}}catch(n){console.error("reportErr",n,{ids:e,url:t,error:n}),of.clear()}}else Cc.size===0&&Wd&&(clearInterval(Wd),Wd=null)},5e3))}function hve(){Kd||(Kd=fi(()=>{const e=Date.now();for(const[t,n]of Cc)!n.reported&&e-n.enterTime>3e3&&(n.reported=!0,Cc.delete(t),q5.get(t)||of.add(t));Cc.size===0&&Kd&&(clearInterval(Kd),Kd=null)},500)),fve()}function pve(e){function t(){Cc.set(e,{enterTime:Date.now(),reported:!1}),hve()}function n(){Cc.delete(e)}return{enter:t,leave:n}}const mve=Qg("v-alert-title"),vve=He({iconSize:[Number,String],iconSizes:{type:Array,default:()=>[["x-small",10],["small",16],["default",24],["large",28],["x-large",32]]}},"iconSize");function gve(e,t){return{iconSize:F(()=>{const r=new Map(e.iconSizes),s=e.iconSize??t()??"default";return r.has(s)?r.get(s):s})}}const yve=["success","info","warning","error"],xve=He({border:{type:[Boolean,String],validator:e=>typeof e=="boolean"||["top","end","bottom","start"].includes(e)},borderColor:String,closable:Boolean,closeIcon:{type:jt,default:"$close"},closeLabel:{type:String,default:"$vuetify.close"},icon:{type:[Boolean,String,Function,Object],default:null},modelValue:{type:Boolean,default:!0},prominent:Boolean,title:String,text:String,type:{type:String,validator:e=>yve.includes(e)},...At(),...Ps(),...ms(),...Rs(),...vve(),...Fu(),...iy(),...Tr(),...rn(),...Dn(),...Xo({variant:"flat"})},"VAlert"),ci=nt()({name:"VAlert",props:xve(),emits:{"click:close":e=>!0,"update:modelValue":e=>!0},setup(e,t){let{emit:n,slots:r}=t;const s=Qt(e,"modelValue"),i=Ae(()=>{if(e.icon!==!1)return e.type?e.icon??`$${e.type}`:e.icon}),{iconSize:o}=gve(e,()=>e.prominent?44:void 0),{themeClasses:a}=ir(e),{colorClasses:l,colorStyles:u,variantClasses:c}=pd(()=>({color:e.color??e.type,variant:e.variant})),{densityClasses:d}=vi(e),{dimensionStyles:f}=vs(e),{elevationClasses:h}=gi(e),{locationStyles:p}=vd(e),{positionClasses:m}
132=oy(e),{roundedClasses:v}=Qr(e),{textColorClasses:x,textColorStyles:g}=Gs(()=>e.borderColor),{t:y}=po(),_=Ae(()=>({"aria-label":y(e.closeLabel),onClick(E){s.value=!1,n("click:close",E)}}));return()=>{const E=!!(r.prepend||i.value),w=!!(r.title||e.title),T=!!(r.close||e.closable),C={density:e.density,icon:i.value,size:e.iconSize||e.prominent?o.value:void 0};return s.value&&S(e.tag,{class:Ie(["v-alert",e.border&&{"v-alert--border":!!e.border,[`v-alert--border-${e.border===!0?"start":e.border}`]:!0},{"v-alert--prominent":e.prominent},a.value,l.value,d.value,h.value,m.value,v.value,c.value,e.class]),style:Qe([u.value,f.value,p.value,e.style]),role:"alert"},{default:()=>[hd(!1,"v-alert"),e.border&&L("div",{key:"border",class:Ie(["v-alert__border",x.value]),style:Qe(g.value)},null),E&&L("div",{key:"prepend",class:"v-alert__prepend"},[r.prepend?S(sn,{key:"prepend-defaults",disabled:!i.value,defaults:{VIcon:{...C}}},r.prepend):S(de,Ve({key:"prepend-icon"},C),null)]),L("div",{class:"v-alert__content"},[w&&S(mve,{key:"title"},{default:()=>[r.title?.()??e.title]}),r.text?.()??e.text,r.default?.()]),r.append&&L("div",{key:"append",class:"v-alert__append"},[r.append()]),T&&L("div",{key:"close",class:"v-alert__close"},[r.close?S(sn,{key:"close-defaults",defaults:{VBtn:{icon:e.closeIcon,size:"x-small",variant:"text"}}},{default:()=>[r.close?.({props:_.value})]}):S(ce,Ve({key:"close-btn",icon:e.closeIcon,size:"x-small",variant:"text"},_.value),null)])]})}}}),bve={key:0,class:"flex items-center gap-3 mb-2"},_ve={class:"font-bold text-base"},Sve={class:"text-xs opacity-60"},Eve={key:0},wve={class:"text-base mb-1 whitespace-pre-line text-justify"};const Tve={class:"font-bold mx-1"},Cve={class:"flex items-center gap-4 text-white px-4 py-4 max-w-full"},Ave={class:"flex flex-col items-start gap-2 flex-1 min-w-0 ml-2"},kve={class:"text-sm font-medium"},Ive={key:0,class:"text-xs opacity-90"},Lve={class:"font-bold mx-1"},Dve={class:"flex flex-wrap items-center opacity-80 mt-1 gap-x-2 gap-y-1"},Pve={key:5,class:"text-center text-xs opacity-30"},Rve={key:6,class:"flex justify-center gap-6 py-4 mb-2"},Ove={class:"flex flex-col items-center gap-2"},$ve={class:"text-xs text-gray-600 dark:text-gray-400"},Mve={class:"flex flex-col items-center gap-2"},Fve={class:"text-xs text-gray-600 dark:text-gray-400"},Bve={class:"flex flex-col items-center gap-2"},Nve={class:"text-xs text-gray-600 dark:text-gray-400"},Vve={class:"flex flex-col items-center gap-2"},Uve={class:"text-xs text-gray-600 dark:text-gray-400"},jve={key:7,class:"grid grid-cols-4 items-center mb-2 border-none border-gray-200 pb-2"},zve={class:"flex justify-start"},Hve={class:"flex justify-center"},Gve={class:"flex justify-center"},Kve={class:"flex justify-end"},Wve=ke({__name:"TimelineCard",props:{user:{type:Object,required:!1},post:{type:Object,required:!0},replies:{type:Array,required:!1},showReply:{type:Boolean,default:!1,required:!1},isDetail:{type:Boolean,default:!1,required:!1}},emits:["statusChanged","postUpdated"],setup(e,{emit:t}){const n=e,r=t,{detail:s}=It(),i=M(!1),o=M(!1),{isAdmin:a,isLogin:l}=Ct(),u=by();function c(_e,J){if(i.value=_e,o.value=J,n.user?.id){const Y=J?2:_e?1:0;u.updateStatus(n.user.id,{following:_e,follow_status:Y,is_mutual:J})}}const d=F(()=>n.post.issubscribe&&!i.value),f=F(()=>{if(a.value||d.value)return!1;const _e=n.post.credits>0,J=n.post.iscredit===1,Y=n.post.boughted===1;return _e&&J&&!Y}),h=F(()=>{if(d.value)return!1;const _e=n.post.credits>0,J=n.post.iscredit===1,Y=n.post.boughted===1;return _e&&J&&Y}),p=F(()=>{const _e=n.post.credits>0,J=n.post.iscredit===1,Y=n.post.boughted===1;return _e&&J&&Y}),{post:m}=it(),v=M(null),x=M(!1);function g(_e,J){return l.value?(J&&J(_e),!0):(_e.preventDefault(),_e.stopPropagation(),x.value=!0,!1)}async function y(_e){try{const J=_e?.detail;if(J?.post){r("postUpdated",J.post);return}try{const Y=await m.detail({id:n.post.id});if(Y?.post)r("postUpdated",Y.post);else{const fe={...n.post,boughted:1};r("postUpdated",fe)}}catch(Y){console.error("刷新帖子详情失败:",Y);const fe={...n.post,boughted:1};r("postUpdated",fe)}}catch(J){console.error("处理购买成功失败:",J)}}const _=M(n?.showReply||!1),E=M(!1);function w(){_.value=!_.value}function T(_e){je.success("评论成功~"),n.post&&typeof n.post.replies=="number"&&console.log("评论数量已更新")}const C=M(!!n.post.liked),I=M(Number(n.post.likes||0)),k=M(Number(n.post.favored)===1),$=M(Number(n.post.favs||0));be(()=>n.post,_e=>{C.value=!!_e.liked,I.value=Number(_e.likes||0),k.value=Number(_e.favored)===1,$.value=Number(_e.fav
132s||0)},{deep:!0});function R(_e,J){C.value=_e,I.value=J}function D(_e,J){}function O(_e){console.error("点赞失败:",_e)}function B(_e){E.value=!0}function U(_e,J){r("statusChanged",_e,J)}function N(_e){_e!==k.value&&($.value+=_e?1:-1,k.value=_e)}const V=M(null),{enter:H,leave:re}=pve(n.post.id);let W=null;ft(()=>{n.isDetail||setTimeout(()=>{W=new IntersectionObserver(_e=>{_e[0].isIntersecting?H():re()},{threshold:.5,rootMargin:"100px 0px 100px 0px"}),V.value&&W.observe(V.value)},50+Math.random()*100)}),cn(()=>{n.isDetail||(W&&V.value&&W.unobserve(V.value),re())});const X=F(()=>{const _e=Number(n.post.istop);return _e>=1&&_e<=9}),Q=F(()=>X.value?"置顶":""),le=F(()=>{const _e=Number(n.post.istop);return _e===9?"text-white bg-red-500":_e>=7&&_e<=8?"text-white bg-orange-500":_e>=4&&_e<=6?"text-white bg-purple-500":(_e>=1&&_e<=3,"text-white bg-blue-500")}),ve=F(()=>n.post?.isvideo&&n.post?.isvideo>0),oe=F(()=>n.post?.isimage&&n.post?.isimage>0),K=F(()=>Number(n.post?.isai)===1||!!n.post?.extend?.ai),ee=F(()=>!n.post?.file||!Array.isArray(n.post.file)?0:n.post.file.filter(_e=>_e.ext!=="mp4").length),ae=F(()=>!n.post?.file||!Array.isArray(n.post.file)?0:n.post.file.filter(_e=>_e.ext==="mp4").length),ue=F(()=>ee.value+ae.value===1),Ee=F(()=>{const _e=[];return ee.value>0&&_e.push(` ${ee.value} 图片`),ae.value>0&&_e.push(` ${ae.value} 视频`),_e.length>0?`本帖包含${_e.join("和")}`:"本帖包含附件"});return(_e,J)=>{const Y=Ra,fe=Gi,xe=Mi("RouterLink"),ne=K8,ie=Vu,Le=l6,we=u6,Be=j5,Pe=kE,qe=z5,Me=t0,ze=ew,et=Cr;return P(),j("div",{ref_key:"cardRef",ref:V},[b(E)?te("",!0):(P(),q($e,{key:0,class:"p-4 flex flex-col gap-2 mb-2 pb-0 relative rounded-md"},{default:A(()=>[e.user?(P(),j("div",bve,[S(Y,{user:e.user,size:40},null,8,["user"]),L("div",null,[L("div",_ve,[S(fe,{to:`/u/${e.user.id}`},{default:A(()=>[z(Z(e.user.nickname),1)]),_:1},8,["to"])]),L("div",Sve,[L("span",null,Z(e.post.pubat),1),e.post.city?(P(),q(xe,{key:0,to:`/html/post/loc/${e.post.city}`},{default:A(()=>[S(de,{size:"13",class:"ml-1 -mt-1",icon:"mdi:map-marker-outline"}),e.post.city?(P(),j("span",Eve,Z(e.post.city),1)):te("",!0)]),_:1},8,["to"])):te("",!0)])]),S(Mt),S(ne,{post:e.post,user:e.user,"is-detail":e.isDetail,onDeleted:B,onStatusChanged:U},null,8,["post","user","is-detail"]),e.user?.id?(P(),q(ie,{key:0,"user-id":e.user.id,class:"ml-2 h-7",size:"small",onChange:c},null,8,["user-id"])):te("",!0)])):te("",!0),L("div",wve,[_e.$slots.status?Ht(_e.$slots,"status",{key:0},void 0,!0):te("",!0),b(X)?(P(),q(kt,{key:1,size:"small",density:"compact",class:Ie(["text-xs font-medium -mt-1 mr-1",b(le)]),label:""},{default:A(()=>[z(Z(b(Q)),1)]),_:1},8,["class"])):te("",!0),!b(K)&&b(ve)?(P(),q(de,{key:2,icon:"mdi:video-outline",size:"20",class:"mr-1 -mt-0.5 opacity-80"})):!b(K)&&b(oe)?(P(),q(de,{key:3,icon:"mdi:image-outline",size:"20",class:"mr-1 -mt-0.5 opacity-80"})):te("",!0),S(Le,{post:e.post,"is-detail":e.isDetail,"need-subscribe":b(d),"need-pay":b(f)},null,8,["post","is-detail","need-subscribe","need-pay"])]),b(d)?(P(),q(ci,{key:1,type:"info",variant:"tonal",border:"start",class:"mb-2 py-2 px-4"},{default:A(()=>[...J[2]||(J[2]=[L("span",null,"需关注发布者后才能查看",-1)])]),_:1})):te("",!0),te("",!0),b(p)?(P(),q(ci,{key:3,type:"success",variant:"tonal",border:"start",class:"mb-2 py-2 px-4",icon:"mdi:check-circle"},{default:A(()=>[L("span",null,[J[6]||(J[6]=z("已解锁付费内容(",-1)),L("span",Tve,Z(e.post.credits),1),J[7]||(J[7]=z(" 积分)",-1))])]),_:1})):te("",!0),e.post.file?(P(),j("div",{key:4,class:Ie(["relative",{"timeline-card-media-single":b(ue)}])},[S(Be,{"file-list":e.post.file,"auto-expand":e.isDetail,"need-pay":b(f),"need-subscribe":b(d),"post-id":e.post.id,post:e.post,user:e.user,"initial-liked":b(C),"initial-likes":b(I),"initial-favored":b(k),onLikeChange:R,onFavChange:N},null,8,["file-list","auto-expand","need-pay","need-subscribe","post-id","post","user","initial-liked","initial-likes","initial-favored"]),b(f)&&(b(ee)>0||b(ae)>0)?(P(),j("div",{key:0,class:"absolute inset-0 flex items-center justify-center bg-black/60 rounded z-20 backdrop-blur-sm overflow-hidden",onClick:J[0]||(J[0]=Et(()=>{},["stop"]))},[L("div",Cve,[S(de,{size:"32",class:"opacity-70 flex-shrink-0"},{default:A(()=>[...J[8]||(J[8]=[z(" mdi-lock ",-1)])]),_:1}),L("div",Ave,[L("div",kve,Z(b(Ee)),1),b(h)?te("",!0):(P(),j("div",Ive,[J[9]||(J[9]=z(" 需 ",-1)),L("span",Lve,Z(e.post.credits),1),J[10]||(J[10]=z(" 积分解锁查看 ",-1))])),S(we,{ref_key:"unlockDialogRef",ref:v,user:e.user??{},post:e.post,onSuccess:y},{activator:A(({props:pe})=>[S(ce,Ve({...pe,onClick:void 0},{color:"primary",class:"font-bold",onClick:Et(ge=>g(ge,pe.onClick),["stop"])}),{default:A(()=>[z(Z(b(h)?"立即观看":"立即解锁"),1)]),_:1},16,["onClick"])]),_:1},8,["user","post"])])])])):te("",!0)],2)):te("",!0),L("div",Dve,[(P(!0),j(se,null,Fe(e.post.tags,pe=>(P(),q(fe,{key:pe,to:`/html/post/${pe}`,class:"inline-flex items-center px-2 py-0.5 rounded-md hidden bg-gray-100 border border-gray-300 text-blue-600 text-xs font-medium hover:bg-blue-50 hover:underline transition-all dark:bg-gray-800 dark:border-gray-600 dark:text-blue-300 dark:hover:bg-gray-700"},{default:A(()=>[S(de,{size:"14",class:"mr-1",icon:"mdi:tag-outline"}),z(" "+Z(pe),1)]),_:2},1032,["to"]))),128)),e.post.extend&&e.post.extend.url?(P(),q(fe,{key:0,to:e.post.extend.url,target:"_blank",class:"inline-flex items-center px-2 py-0.5 rounded-md bg-gray-100 border border-gray-300 text-blue-600 text-xs font-medium hover:bg-blue-50 hover:underline transition-all dark:bg-gray-800 dark:border-gray-600 dark:text-blue-300 dark:hover:bg-gray-700"},{default:A(()=>[S(de,{size:"14",class:"mr-1",icon:"mdi:link-variant"}),J[11]||(J[11]=z(" 原链接 » ",-1))]),_:1},8,["to"])):te("",!0)]),e.isDetail?(P(),j("div",Pve,"ID: "+Z(e.post.id),1)):te("",!0),e.isDetail?(P(),j("div",Rve,[L("div",Ove,[S(ce,{icon:"",variant:"plain",density:"comfortable",class:"text-gray-500 dark:text-gray-400 cursor-default",ripple:!1},{default:A(()=>[S(de,{icon:"mdi-eye-outline",size:"32"})]),_:1}),L("span",$ve,Z(b(Dr)(e.post.totalclicks??0,"浏览","浏览")),1)]),L("div",Mve,[S(Pe,{id:e.post.id,"initial-favored":b(k),"initial-count":b($),"icon-size":32,"hide-text":"",onChange:N},null,8,["id","initial-favored","initial-count"]),L("span",Fve,Z(b(Dr)(b($),b(k)?"已收藏":"收藏",b(k)?"已收藏":"收藏")),1
132)]),L("div",Bve,[S(qe,{user:e.user??{},post:e.post,"icon-size":32,"hide-text":""},{default:A(({open:pe})=>[S(ce,{icon:"",variant:"plain",density:"comfortable",class:"text-gray-500 dark:text-gray-400",onClick:Et(pe,["stop"])},{default:A(()=>[S(de,{icon:"mdi:gift-outline",size:"32"})]),_:1},8,["onClick"])]),_:1},8,["user","post"]),L("span",Nve,Z(b(Dr)(e.post?.rewards??0,"打赏","打赏")),1)]),L("div",Vve,[S(Me,{id:e.post.id,source:"1","initial-liked":b(C),"initial-count":b(I),"icon-size":32,"hide-text":"",onChange:R,onSuccess:D,onError:O},null,8,["id","initial-liked","initial-count"]),L("span",Uve,Z(b(Dr)(b(I),"点赞","点赞")),1)])])):(P(),j("div",jve,[S(sn,{defaults:{VBtn:{variant:"plain",color:"grey",class:"items-center opacity-90 px-0 text-sm font-normal",size:"small"},VIcon:{size:"18",class:"-mr-1"}}},{default:A(()=>[L("div",zve,[S(ce,{"prepend-icon":"mdi-eye-outline",class:"cursor-default",ripple:!1,to:b(s)("thread",`${e.post.id}`)},{default:A(()=>[L("span",null,Z(b(Dr)(e.post.totalclicks??0,"浏览","")),1)]),_:1},8,["to"])]),L("div",Hve,[S(Me,{id:e.post.id,source:"1","initial-liked":b(C),"initial-count":b(I),onChange:R,onSuccess:D,onError:O},null,8,["id","initial-liked","initial-count"])]),L("div",Gve,[S(Pe,{id:e.post.id,"initial-favored":b(k),"initial-count":b($),onChange:N},null,8,["id","initial-favored","initial-count"])]),L("div",Kve,[S(ce,{"prepend-icon":"mdi:comment-outline",onClick:Et(w,["stop"])},{default:A(()=>[L("span",null,Z(b(Dr)(e.post.replies??0,"评论","评论")),1)]),_:1})])]),_:1})])),b(_)||Array.isArray(e.replies)&&e.replies.length>0?(P(),q(ze,{key:8,id:"timeline-replies",level:1,post:e.post,replies:e.replies,onReplySuccess:T},null,8,["post","replies"])):te("",!0)]),_:3})),b(x)?(P(),q(et,{key:1,modelValue:b(x),"onUpdate:modelValue":J[1]||(J[1]=pe=>Ce(x)?x.value=pe:null),"initial-mode":"login"},null,8,["modelValue"])):te("",!0)],512)}}}),i0=vt(Wve,[["__scopeId","data-v-6ffa93e7"]]),qve=Object.freeze(Object.defineProperty({__proto__:null,default:i0},Symbol.toStringTag,{value:"Module"})),M2="new",Y5=[{key:"hot",label:"热门",icon:"ph:fire",order:"hot"},{key:"new",label:"最新",icon:"ph:clock",order:M2},{key:"week",label:"周榜",icon:"ph:trophy",order:"week"},{key:"vip",label:"收费榜",icon:"ph:money",order:"vip"},{key:"rand",label:"随机",icon:"ph:shuffle",order:"rand"},{key:"vod",label:"视频",icon:"ph:video",order:"hot",query:{vod:2}},{key:"img",label:"图片",icon:"ph:image",order:"hot",query:{img:2}}];function X5(e={}){const t=mt("routeParams",{tab:M2,tag:"",page:1,...e}),n=Tt(),r=Y5,s=F(()=>t.tab||e?.tab||M2),i=F(()=>t.tag||e?.tag||""),o=M(!1),a=M(!1),l=M(""),u=M("tag");function c(f){let h="/html/post";h+=`/${i.value||"_"}`,h+=`/${f}`,n.push(h)}function d(f){a.value=!1,l.value=f.text,u.value=f.scope}return{tabs:r,activeTab:s,sortMenu:o,searchMenu:a,searchText:l,searchScope:u,activeTag:i,handleSelectSort:c,handleDoSearch:d}}const Yve=He({color:String,direction:{type:String,default:"vertical",validator:e=>["vertical","horizontal"].includes(e)},side:{type:String,default:"end",validator:e=>["start","end","both"].includes(e)},mode:{type:String,default:"intersect",validator:e=>["intersect","manual"].includes(e)},margin:[Number,String],loadMoreText:{type:String,default:"$vuetify.infiniteScroll.loadMore"},emptyText:{type:String,default:"$vuetify.infiniteScroll.empty"},...ms(),...rn()},"VInfiniteScroll"),gL=$u({name:"VInfiniteScrollIntersect",props:{side:{type:String,required:!0},rootMargin:String},emits:{intersect:(e,t)=>!0},setup(e,t){let{emit:n}=t;const{intersectionRef:r,isIntersecting:s}=_S();return be(s,async i=>{n("intersect",e.side,i)}),ut(()=>L("div",{class:"v-infinite-scroll-intersect",style:{"--v-infinite-margin-size":e.rootMargin},ref:r},[z(" ")])),{}}}),o0=nt()({name:"VInfiniteScroll",props:Yve(),emits:{load:e=>!0},setup(e,t){let{slots:n,emit:r}=t;const s=M(),i=Ze("ok"),o=Ze("ok"),a=F(()=>ht(e.margin)),l=Ze(!1);function u(w){if(!s.value)return;const T=e.direction==="vertical"?"scrollTop":"scrollLeft";s.value[T]=w}function c(){if(!s.value)return 0;const w=e.direction==="vertical"?"scrollTop":"scrollLeft";return s.value[w]}function d(){if(!s.value)return 0;const w=e.direction==="vertical"?"scrollHeight":"scrollWidth";return s.value[w]}function f(){if(!s.value)return 0;const w=e.direction==="vertical"?"clientHeight":"clientWidth";return s.value[w]}ft(()=>{s.value&&(e.side==="start"?u(d()):e.side==="both"&&u(d()/2-f()/2))});function h(w,T){w==="start"?i.value=T:w==="end"?o.value=T:w==="both"&&(i.value=T,o.value=T)}function p(w){return w==="start"?i.value:o.value}let m=0;function v(w,T){l.value=T,l.value&&x(w)}function x(w){if(e.mode!=="manual"&&!l.value)return;const T=p(w);if(!s.value||["empty","loading"].includes(T))return;m=d(),h(w,"loading");function C(I){h(w,I),tt(()=>{I==="empty"||I==="error"||(I==="ok"&&w==="start"&&u(d()-m+c()),e.mode!=="manual"&&tt(()=>{window.requestAnimationFrame(()=>{window.requestAnimationFrame(()=>{window.requestAnimationFrame(()=>{x(w)})})})}))})}r("load",{side:w,done:C})}const{t:g}=po();function y(w,T){if(e.side!==w&&e.side!=="both")return;const C=()=>x(w),I={side:w,props:{onClick:C,color:e.color}};return T==="error"?n.error?.(I):T==="empty"?n.empty?.(I)??L("div",null,[g(e.emptyText)]
132):e.mode==="manual"?T==="loading"?n.loading?.(I)??S(jn,{indeterminate:!0,color:e.color},null):n["load-more"]?.(I)??S(ce,{variant:"outlined",color:e.color,onClick:C},{default:()=>[g(e.loadMoreText)]}):n.loading?.(I)??S(jn,{indeterminate:!0,color:e.color},null)}const{dimensionStyles:_}=vs(e);ut(()=>{const w=e.tag,T=e.side==="start"||e.side==="both",C=e.side==="end"||e.side==="both",I=e.mode==="intersect";return S(w,{ref:s,class:Ie(["v-infinite-scroll",`v-infinite-scroll--${e.direction}`,{"v-infinite-scroll--start":T,"v-infinite-scroll--end":C}]),style:Qe(_.value)},{default:()=>[L("div",{class:"v-infinite-scroll__side"},[y("start",i.value)]),T&&I&&S(gL,{key:"start",side:"start",onIntersect:v,rootMargin:a.value},null),n.default?.(),C&&I&&S(gL,{key:"end",side:"end",onIntersect:v,rootMargin:a.value},null),L("div",{class:"v-infinite-scroll__side"},[y("end",o.value)])]})});function E(w){const T=w??e.side;h(T,"ok"),tt(()=>{u(d()-m+c()),e.mode!=="manual"&&tt(()=>{window.requestAnimationFrame(()=>{window.requestAnimationFrame(()=>{window.requestAnimationFrame(()=>{T==="both"?(x("start"),x("end")):x(T)})})})})})}return{reset:E}}}),Xve={key:0,class:"text-center py-4 text-gray-400"},Zve={key:0,class:"text-center py-4 text-gray-400"},Jve=1e3,Cd=ke({__name:"PostTimelineList",props:{activeTab:{},activeTag:{},isLocation:{type:Boolean},searchText:{},userId:{},immediate:{type:Boolean},limit:{}},emits:["listLoaded"],setup(e,{emit:t}){const n=e,r=t,s=M([]),i=M(!1),o=M(!1),a=M(1),{post:l}=it(),u=M(0),c=M(0),d=M(!1),{getBatchFavStatus:f,hasBatchFavStatus:h,setFavStatus:p}=wy(),{getBatchLikeStatus:m,hasBatchLikeStatus:v,setLikeStatus:x}=Ey(),g=F(()=>a.value===1&&i.value);async function y({activeTab:C,activeTag:I,isLoadMore:k=!1,keyword:$="",userId:R=""}){if(!(i.value||o.value)){k||(a.value=1,s.value=[],o.value=!1),i.value=!0;try{const O=Y5.find(N=>N.key===C);let B={page:a.value,order:O?.order};O?.query&&(B={...B,...O.query}),I&&I!=="_"&&(n.isLocation?B.city=I:B.tag=I),$&&(B.keyword=$),R&&(B.uid=R);const{list:U}=await l.search(B);if(!U||U.length===0){o.value=!0;return}try{const N=U.map(V=>V.post.id);if(N.length>0){const V=h(N),H=v(N,"1"),re=f(N),W=m(N,"1"),X=[],Q={};if(N.forEach(le=>{const ve=U.find(ue=>ue.post.id===le);if(!ve)return;const oe=ve.post,K=oe.iscredit===1&&oe.credits>0,ee=V[le]===!0,ae=H[le]===!0;Q[le]={},ee&&(Q[le].favored=re[le]?1:0),ae&&(Q[le].liked=W[le]?1:0),(K||!ee||!ae)&&X.push(le)}),X.length>0){const le=await l.batchStatus(X);X.forEach(ve=>{const oe=le[ve];oe&&Object.keys(oe).forEach(K=>{if(K==="favored"){const ee=oe[K]||0;Q[ve][K]=ee,p(ve,ee===1)}else if(K==="liked"){const ee=oe[K]||0;Q[ve][K]=ee,x(ve,"1",ee===1)}else K==="file"?Q[ve][K]=oe[K]:Q[ve][K]=oe[K]??0})})}U.forEach(le=>{const ve=Q[le.post.id];ve&&Object.keys(ve).forEach(oe=>{le.post[oe]=ve[oe]||0,console.log("post="+le.post.id,oe+"="+le.post[oe])})}),console.log("list",U)}}catch(N){console.error("批量获取帖子状态失败:",N)}if(a.value===1?s.value=U:s.value.push(...U),n.limit&&s.value.length>=n.limit){s.value=s.value.slice(0,n.limit),o.value=!0;return}U.length<20?o.value=!0:a.value++}catch(D){throw console.error("拉取帖子列表失败:",D),D}finally{i.value=!1}}}async function _(C){const I=Date.now();if(I-u.value<Jve){C?.done("ok");return}if(g.value){C?.done("ok");return}if(n.limit&&s.value.length>=n.limit){C?.done("empty");return}if(i.value||o.value){C?.done("ok");return}if(!d.value){C?.done("ok");return}u.value=I;try{await y({activeTab:n.activeTab,activeTag:n.activeTag,isLoadMore:!0,keyword:n.searchText||"",userId:n.userId||""}),await tt()}catch{C?.done("error")}o.value?C?.done("empty"):C?.done("ok")}async function E(){try{await y({activeTab:n.activeTab,activeTag:n.activeTag,isLoadMore:!1,keyword:n.searchText||"",userId:n.userId||""}),await tt(),r("listLoaded")}catch(C){console.error("初始化加载失败:",C),o.value=!0}}ft(()=>{E().catch(I=>{console.error("初始化加载失败:",I)});const C=()=>{d.value=!0};window.addEventListener("scroll",C,{passive:!0}),cn(()=>{window.removeEventListener("scroll",C),c.value=window.scrollY})}),zi(()=>{d.value=!1,tt(()=>{c.value>0&&window.scrollTo(0,c.value)})}),be(()=>[n.activeTab,n.activeTag,n.searchText,n.userId],()=>{a.value=1,s.value=[],o.value=!1,E().catch(C=>{console.error("参数变化时加载失败:",C)})});function w(C){const I=s.value.findIndex(k=>k.post.id===C.id);I!==-1&&(s.value[I].post={...s.value[I].post,...C})}const T=F(()=>JSON.stringify({activeTab:n.activeTab,activeTag:n.activeTag,searchText:n.searchText,isLocation:n.isLocation,userId:n.userId}));return(C,I)=>{const k=gy,$=i0;return P(),q(o0,{key:b(T),side:"end",direction:"vertical",immediate:!1,disabled:b(g)||n.limit&&b(s).length>=n.limit,onLoad:_},{empty:A(()=>[!b(g)&&!b(i)&&b(o)&&b(s).length===0?(P(),j("div",Zve," 暂无数据 ")):te("",!0)]),default:A(()=>[b(g)?(P(),j(se,{key:0},Fe(5,R=>S(k,{key:`skeleton-${R}`})),64)):(P(),j(se,{key:1},[(P(!0),j(se,null,Fe(n.limit?b(s).slice(0,n.limit):b(s),R=>(P(),q($,{key:R.post.id,user:R.user,post:R.post,onPostUpdated:w},null,8,["user","post"]))),128)),b(o)&&b(s).length>0&&!n.limit?(P(),j("div",Xve," 没有更多了 ")):te("",!0)],64))]),_:1},8,["disabled"])}}}),Qve=Object.freeze(Object.defineProperty({__proto__:null,default:Cd},Symbol.toStringTag,{value:"Module"})),ege={key:0,class:"grid gap-2"},tge={key:2,class:"px-2 mb-3 text-center"},nge={class:"flex justify-center my-2"};const Ad=ke({__name:"DataListOfIndexCommend",props:{shuffle:{type:Boolean,default:!1},type:{default:"vod"},tabs:{default:()=>[]},categoryTabs:{default:()=>[]},useCategoryMode:{type:Boolean,default:!1},activeCategoryId:{default:""},orderOptions:{default:()=>[{title:"最新",order:"update"},{title:"日榜",order:"click"},{title:"周榜",order:"week"},{title:"月榜",order:"month"}]},currentOrder:{default:"update"},showOrder:{type:Boolean,default:!1},onTabClick:{type:Function,default:void 0},onOrderClick:{type:Function,default:void 0}},emits:["tab-click","order-click"],setup(e,{emit:t}){const n=e,r=it(),{commend:s}=r,i=M([]),o=M(!1),a=M({}),l=M({}),u=M(6),c=M(1),d=t,f=F(()=>n.categoryTabs.map(I=>I.name)),h=F(()=>
132{if(!n.useCategoryMode)return 0;const I=n.categoryTabs.findIndex(k=>k.id===n.activeCategoryId);return I>=0?I:0}),p=I=>n.useCategoryMode?f.value:n.tabs.map(k=>k.title||I.title),m=I=>n.tabs[l.value[I].activeTab]?.order||"update";ft(()=>{v()});async function v(){o.value=!0;try{i.value=await s({size:20,type:n.type}),i.value.forEach((k,$)=>{l.value[$]={activeTab:0,data:{0:null}}})}catch(k){console.error(k)}finally{o.value=!1}}async function x(I,k){if(n.useCategoryMode&&n.onTabClick){const D=n.categoryTabs[k];n.onTabClick(D,k),d("tab-click",D,k);return}const $=l.value[I],R=`${I}_${k}`;a.value[R]=!0;try{if(k===0){$.activeTab=0;return}c.value=1,$.data[k]||await y(I,k,m(I)),$.activeTab=k}finally{setTimeout(()=>{a.value[R]=!1},300)}}function g(I){n.onOrderClick&&n.onOrderClick(I),d("order-click",I)}async function y(I,k,$){try{o.value=!0;const R=i.value[I].param,D=await r[n?.type].list({page:1,order:$,cid:R},{cache:{ttl:3600,compress:!0}});l.value[I].data[k]=D}catch(R){console.error(R)}finally{o.value=!1}}const _=(I,k)=>{const $=l.value[k].activeTab;let R=[];return $===0?R=I?.col2List:R=l.value[k].data[$]?.[`${n.type}List`],(R||[]).slice(0,u.value*2)},E=I=>{const k=Is(n.type).find($=>$.cid===I.param);return k?It().list(n?.type,{cid:k.id}):"#"};function w(I){const k=`${I}_${l.value[I].activeTab}`;a.value[k]=!0,setTimeout(()=>{const $=l.value[I].activeTab;if(m(I)==="update")i.value[I].col2List=[...i.value[I].col2List].sort(()=>Math.random()-.5);else{const R=l.value[I].data[$];R&&(R[`${n.type}List`]=[...R[`${n.type}List`]].sort(()=>Math.random()-.5))}document.querySelector(`#category-${I}`)?.scrollIntoView({behavior:"smooth"}),setTimeout(()=>{a.value[k]=!1},300)},0)}const T=F(()=>vu()),C=F(()=>T.value);return(I,k)=>{const $=Sd,R=gs,D=kl,O=Ys,B=Cd,U=Gi;return P(),j(se,null,[b(o)?(P(),j("div",ege,[(P(!0),j(se,null,Fe(b(u),N=>(P(),q($,{key:"skeleton-"+N}))),128))])):te("",!0),(P(!0),j(se,null,Fe(b(i),(N,V)=>(P(),j(se,{key:V},[e.useCategoryMode?(P(),q(R,{key:0,id:`category-${V}`,"model-value":b(h),tabs:b(f),loading:b(a),class:"my-2","tab-width":"auto",sticky:!0,onTabClick:H=>x(V,H)},null,8,["id","model-value","tabs","loading","onTabClick"])):(P(),q(R,{key:1,id:`category-${V}`,modelValue:b(l)[V].activeTab,"onUpdate:modelValue":H=>b(l)[V].activeTab=H,tabs:p(N),loading:b(a),class:"my-2","tab-width":"auto",onTabClick:H=>x(V,H)},{append:A(()=>[S(Mt),N.more?(P(),q(ce,{key:0,variant:"plain",to:E(N),class:"align-self-center"},{default:A(()=>[z(Z(N.more),1)]),_:2},1032,["to"])):te("",!0)]),_:2},1032,["id","modelValue","onUpdate:modelValue","tabs","loading","onTabClick"])),e.useCategoryMode&&e.showOrder&&V===0?(P(),j("div",tge,[(P(!0),j(se,null,Fe(e.orderOptions,H=>(P(),q(kt,{key:H.order,color:e.currentOrder===H.order?"primary":void 0,variant:e.currentOrder===H.order?"tonal":"text",size:"small",class:"cursor-pointer mr-2",onClick:re=>g(H.order)},{default:A(()=>[z(Z(H.title),1)]),_:2},1032,["color","variant","onClick"]))),128))])):te("",!0),V==0?(P(),q(D,{key:3,page:"index",place:"text2"})):te("",!0),S(O,{type:e.type,items:_(N,V),loading:b(o)||b(a)[`${V}_${b(l)[V].activeTab}`],"pc-cols":b(u),skeleton:!0,"mobile-cols":2,class:"mb-0"},{header:A(()=>[Ht(I.$slots,"default")]),_:3},8,["type","items","loading","pc-cols"]),L("div",nge,[S(ce,{variant:"outlined",size:"small",class:"opacity-60 min-w-50","prepend-icon":"mdi-shuffle",onClick:H=>w(V)},{default:A(()=>[...k[0]||(k[0]=[z(" 随机浏览 ",-1)])]),_:1},8,["onClick"])]),(V==0&&b(C),te("",!0))],64))),128))],64)}}}),rge=Object.freeze(Object.defineProperty({__proto__:null,default:Ad},Symbol.toStringTag,{value:"Module"})),sge={key:0,class:"grid gap-2"},ige={class:"flex justify-center mb-4"},Xy=ke({__name:"SjListOfIndexCommend",props:{tabs:{default:[]}},setup(e){const t=e,n=it(),{sj:r}=n,s=r,i=M([]),o=M(!1),a=M({}),l=M({}),u=M(1),c=g=>t.tabs.map(y=>y.title||g.category.name),d=g=>t.tabs[l.value[g].activeTab]?.order||"update";ft(()=>{f()});async function f(){o.value=!0;try{const g=await s.command({});g.map(y=>{y.list=[...y.list].sort(()=>Math.random()-.5)}),i.value=g,i.value.forEach((y,_)=>{l.value[_]={activeTab:0,data:{0:null}}})}catch(g){console.error(g)}finally{o.value=!1}}async function h(g,y){const _=l.value[g],E=`${g}_${y}`;a.value[E]=!0;try{if(y===0){_.activeTab=0;return}u.value=1,_.data[y]||await p(g,y,d(g)),_.activeTab=y}finally{setTimeout(()=>{a.value[E]=!1},300)}}async function p(g,y,_){try{o.value=!0;const E=i.value[g].category.id,w=await s.list({tagid:E,page:1,order:_});l.value[g].data[y]=w}catch(E){console.error(E)}finally{o.value=!1}}const m=(g,y)=>{const _=l.value[y].activeTab;let E=[];return _===0?E=g?.list.slice(0,6):E=l.value[y].data[_]?.list.slice(0,6)||[],(E||[]).slice(0,8)},v=g=>It().list("sj",{cid:g.category.id});function x(g){const y=`${g}_${l.value[g].activeTab}`;a.value[y]=!0,setTimeout(()=>{const _=l.value[g].activeTab;if(_===0)i.value[g].list=[...i.value[g].list].sort(()=>Math.random()-.5);else{const E=l.value[g].data[_];E&&(E.list=[...E.list].sort(()=>Math.random()-.5))}document.querySelector(`#sj-category-${g}`)?.scrollIntoView({behavior:"smooth"}),setTimeout(()=>{a.value[y]=!1},300)},0)}return(g,y)=>{const _=Sd,E=gs,w=Ys;return P(),j(se,null,[b(o)?(P(),j("div",sge,[(P(),j(se,null,Fe(4,T=>S(_,{key:"skeleton-"+T})),64))])):te("",!0),(P(!0),j(se,null,Fe(b(i),(T,C)=>(P(),j(se,{key:C},[S(E,{id:`sj-category-${C}`,modelValue:b(l)[C].activeTab,"onUpdate:modelValue":I=>b(l)[C].activeTab=I,tabs:c(T),loading:b(a),class:"my-2","tab-width":"auto",onTabClick:I=>h(C,I)},{append:A(()=>[S(Mt),S(ce,{variant:"plain",to:v(T),class:"align-self-center"},{default:A(()=>[...y[0]||(y[0]=[z(" 更多 » ",-1)])]),_:1},8,["to"])]),_:2},1032,["id","modelValue","onUpdate:modelValue","tabs","loading","onTabClick"]),S(w,{type:"sj",items:m(T,C),loading:b(o)||b(a)[`${C}_${b(l)[C].activeTab}`],"pc-cols":6,skeleton:!0,"mobile-cols":3,class:"mb-2"},{header:A(()=>[Ht(g.$slots,"default")]),_:3},8,["items","loading"]),L("div",ige,[S(ce,{variant:"outlined",size:"small",class:"opacity-60 min-w-50","prepe
132nd-icon":"mdi-shuffle",onClick:I=>x(C)},{default:A(()=>[...y[1]||(y[1]=[z(" 随机浏览 ",-1)])]),_:1},8,["onClick"])])],64))),128))],64)}}}),oge=Object.freeze(Object.defineProperty({__proto__:null,default:Xy},Symbol.toStringTag,{value:"Module"})),age={key:0,class:"flex justify-center py-4"},lge={class:"text-xs text-primary whitespace-nowrap"},uge={key:0,class:"my-2"},Z5=ke({__name:"AiPublishSheet",props:{modelValue:{type:Boolean}},emits:["update:modelValue"],setup(e,{emit:t}){const n=e,r=t,s=Tt(),i=wr(),{workflows:o,loadingWorkflows:a,loadWorkflows:l}=e0(),u=M(!1),c=M(null),d=F(()=>i?.credit_name||"积分"),f={image:"AI 图像生成",video:"AI 视频生成"},h=F(()=>{const v=[];for(const x of o.value){const g=x.category||"other";let y=v.find(_=>_.category===g);y||(y={category:g,label:f[g]||"AI 创作",items:[]},v.push(y)),y.items.push(x)}return v});be(()=>n.modelValue,v=>{v&&l()});function p(){r("update:modelValue",!1),s.push("/user/post")}function m(v){c.value=v,r("update:modelValue",!1),tt(()=>{u.value=!0})}return(v,x)=>{const g=AE;return P(),j("div",null,[S(zo,{"model-value":e.modelValue,"onUpdate:modelValue":x[1]||(x[1]=y=>r("update:modelValue",y))},{default:A(()=>[S($e,{class:"rounded-b-none"},{default:A(()=>[S(at,{class:"flex items-center"},{default:A(()=>[x[3]||(x[3]=L("div",null,"发布 / 创作",-1)),S(Mt),S(ce,{variant:"plain",icon:"mdi-close",onClick:x[0]||(x[0]=y=>r("update:modelValue",!1))})]),_:1}),S(vr,{class:"pb-3"},{default:A(()=>[S(Rt,{class:"pb-2",onClick:p},{prepend:A(()=>[S(rr,{color:"primary",variant:"tonal",rounded:""},{default:A(()=>[S(de,{icon:"mdi:image-multiple-outline"})]),_:1})]),default:A(()=>[S(lo,null,{default:A(()=>[...x[4]||(x[4]=[z("发动态",-1)])]),_:1}),S(vm,null,{default:A(()=>[...x[5]||(x[5]=[z("发布图片 / 视频到社区",-1)])]),_:1})]),_:1}),b(o).length||b(a)?(P(),j(se,{key:0},[S(zt,{class:"my-1"}),S(py,null,{default:A(()=>[...x[6]||(x[6]=[z("AI 创作",-1)])]),_:1}),b(a)&&!b(o).length?(P(),j("div",age,[S(jn,{indeterminate:"",size:"24",color:"primary"})])):te("",!0),(P(!0),j(se,null,Fe(b(h),(y,_)=>(P(),j(se,{key:y.category},[_>0?(P(),q(zt,{key:0,class:"my-1"})):te("",!0),(P(!0),j(se,null,Fe(y.items,E=>(P(),q(Rt,{class:"py-3 border-b",key:E.workflow,onClick:w=>m(E)},{prepend:A(()=>[S(rr,{color:"primary",variant:"tonal",rounded:""},{default:A(()=>[S(de,{icon:E.icon||"mdi:auto-fix"},null,8,["icon"])]),_:2},1024)]),append:A(()=>[L("span",lge,Z(E.credits)+" "+Z(b(d)),1)]),default:A(()=>[S(lo,null,{default:A(()=>[z(Z(E.name),1)]),_:2},1024),S(vm,null,{default:A(()=>[z(Z(E.desc||y.label),1)]),_:2},1024)]),_:2},1032,["onClick"]))),128))],64))),128)),b(o).length&&!b(o).some(y=>y.category==="video")?(P(),j(se,{key:1},[b(h).length?(P(),j("div",uge)):te("",!0),S(Rt,{disabled:!0},{prepend:A(()=>[S(rr,{color:"grey",variant:"tonal",rounded:""},{default:A(()=>[S(de,{icon:"mdi:movie-open-play-outline"})]),_:1})]),default:A(()=>[S(lo,null,{default:A(()=>[...x[7]||(x[7]=[z("AI 视频生成",-1)])]),_:1}),S(vm,null,{default:A(()=>[...x[8]||(x[8]=[z("即将上线,敬请期待",-1)])]),_:1})]),_:1})],64)):te("",!0)],64)):te("",!0)]),_:1})]),_:1})]),_:1},8,["model-value"]),S(g,{modelValue:b(u),"onUpdate:modelValue":x[2]||(x[2]=y=>Ce(u)?u.value=y:null),workflow:b(c)},null,8,["modelValue","workflow"])])}}}),cge=Object.freeze(Object.defineProperty({__proto__:null,default:Z5},Symbol.toStringTag,{value:"Module"})),dge=He({baseColor:String,bgColor:String,color:String,grow:Boolean,mode:{type:String,validator:e=>!e||["horizontal","shift"].includes(e)},height:{type:[Number,String],default:56},active:{type:Boolean,default:!0},...mo(),...At(),...Ps(),...Rs(),...Tr(),...fS({name:"bottom-navigation"}),...rn({tag:"header"}),...ry({selectedClass:"v-btn--selected"}),...Dn()},"VBottomNavigation"),J5=nt()({name:"VBottomNavigation",props:dge(),emits:{"update:active":e=>!0,"update:modelValue":e=>!0},setup(e,t){let{slots:n}=t;const{themeClasses:r}=Mu(),{borderClasses:s}=Yo(e),{backgroundColorClasses:i,backgroundColorStyles:o}=_r(()=>e.bgColor),{densityClasses:a}=vi(e),{elevationClasses:l}
132=gi(e),{roundedClasses:u}=Qr(e),{ssrBootStyles:c}=Nh(),d=F(()=>Number(e.height)-(e.density==="comfortable"?8:0)-(e.density==="compact"?16:0)),f=Qt(e,"active",e.active),{layoutItemStyles:h}=hS({id:e.name,order:F(()=>parseInt(e.order,10)),position:Ae(()=>"bottom"),layoutSize:Ae(()=>f.value?d.value:0),elementSize:d,active:f,absolute:Ae(()=>e.absolute)});return Fh(e,bS),Ni({VBtn:{baseColor:Ae(()=>e.baseColor),color:Ae(()=>e.color),density:Ae(()=>e.density),stacked:Ae(()=>e.mode!=="horizontal"),variant:"text"}},{scoped:!0}),ut(()=>S(e.tag,{class:Ie(["v-bottom-navigation",{"v-bottom-navigation--active":f.value,"v-bottom-navigation--grow":e.grow,"v-bottom-navigation--shift":e.mode==="shift"},r.value,i.value,s.value,a.value,l.value,u.value,e.class]),style:Qe([o.value,h.value,{height:ht(d.value)},c.value,e.style])},{default:()=>[n.default&&L("div",{class:"v-bottom-navigation__content"},[n.default()])]})),{}}}),fge={key:0},hge={class:"post-bottom-nav__publish-fab"},Xs=ke({__name:"PostBottomNav",setup(e){const t=Tt(),{isLogin:n}=Ct(),{visible:r,open:s}=a6(),i=M(!1);function o(u){u.url&&(/^http/.test(u.url)?window.open(u.url,"_blank"):t.replace(u.url))}const a=()=>{n.value?s():i.value=!0},l=M(vu());return(u,c)=>{const d=gS,f=ny,h=Vh,p=Cr,m=Z5;return b(l)?(P(),j("div",fge,[c[8]||(c[8]=L("div",{style:{height:"76px"}},"   ",-1)),S(J5,{class:"post-bottom-nav fixed bottom-0 left-0 right-0 z-20 overflow-visible",grow:"",height:"64",border:""},{default:A(()=>[S(ce,{to:"/html/index.html",variant:"text",class:"post-bottom-nav__item flex flex-col items-center flex-1",size:"small",ripple:!1},{default:A(()=>[S(d,{name:"mdi:home-outline",size:24}),c[2]||(c[2]=L("span",{class:"post-bottom-nav__text"},"首页",-1))]),_:1}),S(ce,{to:"/html/post",variant:"text",class:"post-bottom-nav__item flex flex-col items-center flex-1",size:"small",ripple:!1},{default:A(()=>[S(d,{name:"ph:camera",size:24}),c[3]||(c[3]=L("span",{class:"post-bottom-nav__text"},"社区",-1))]),_:1}),S(ce,{variant:"text",class:"post-bottom-nav__item post-bottom-nav__publish flex flex-col items-center flex-1 relative",size:"small",ripple:!1,onClick:a},{default:A(()=>[L("span",hge,[S(f,{name:"mdi:plus",mode:"css",class:"no-gradient-icon post-bottom-nav__publish-icon"})]),c[4]||(c[4]=L("span",{class:"post-bottom-nav__text post-bottom-nav__publish-text z-10"},"创作/发布",-1))]),_:1}),te("",!0),S(ce,{to:"/html/game.html",variant:"text",class:"post-bottom-nav__item flex flex-col items-center flex-1",size:"small",ripple:!1},{default:A(()=>[S(d,{name:"mdi:gamepad-variant-outline",size:24}),c[6]||(c[6]=L("span",{class:"post-bottom-nav__text"},"游戏",-1))]),_:1}),S(ce,{to:"/user",variant:"text",class:"post-bottom-nav__item flex flex-col items-center flex-1",size:"small",ripple:!1},{default:A(()=>[S(d,{name:"mdi:account-outline",size:24}),c[7]||(c[7]=L("span",{class:"post-bottom-nav__text"},"我的",-1))]),_:1})]),_:1}),b(i)?(P(),q(p,{key:0,modelValue:b(i),"onUpdate:modelValue":c[0]||(c[0]=v=>Ce(i)?i.value=v:null),"initial-mode":"login"},null,8,["modelValue"])):te("",!0),S(m,{modelValue:b(r),"onUpdate:modelValue":c[1]||(c[1]=v=>Ce(r)?r.value=v:null)},null,8,["modelValue"])])):te("",!0)}}}),pge=Object.freeze(Object.defineProperty({__proto__:null,default:Xs},Symbol.toStringTag,{value:"Module"})),mge=ke({__name:"SplashDialog",props:{splash:{},show:{type:Boolean}},emits:["update:show"],setup(e,{emit:t}){const n=e,r=t,s=F({get:()=>n.show,set:c=>r("update:show",c)}),i=M(100),o=M(),a=()=>{i.value=n.splash?.time||5,clearInterval(o.value),o.value=fi(()=>{i.value--,i.value<=0&&l()},1e3)},l=()=>{clearInterval(o.value),r("update:show",!1)},u=()=>{window.open(n.splash?.url||"","_blank")};return cn(()=>{clearInterval(o.value)}),be(()=>n.show,c=>{c?a():clearInterval(o.value)},{immediate:!0}),(c,d)=>{const f=An;return P(),q(Gt,{modelValue:b(s),"onUpdate:modelValue":d[0]||(d[0]=h=>Ce(s)?s.value=h:null),width:"auto",persistent:"",class:"splash-dialog"},{default:A(()=>[S($e,{class:"splash-card"},{default:A(()=>[S(We,{class:"p-0 relative"},{default:A(()=>[S(f,{src:e.splash.img,class:"ad-img",onError:l,onClick:u},null,8,["src"]),S(ce,{class:"close-btn bg-black opacity-70",color:"white",icon:"",size:"small",variant:"tonal",onClick:l},{default:A(()=>[z(Z(b(i))+"s ",1)]),_:1}),S(ce,{class:"skip-btn bg-black opacity-70",color:"white",size:"small",variant:"tonal",onClick:l},{default:A(()=>[...d[1]||(d[1]=[z(" 跳过 ",-1)])]),_:1})]),_:1})]),_:1})]),_:1},8,["modelValue"])}}}),Q5=vt(mge,[["__scopeId","data-v-0ae23437"]]),vge=Object.freeze(Object.defineProperty({__proto__:null,default:Q5},Symbol.toStringTag,{value:"Module"}));function e$(){return F(()=>{const e=Vo()?.host301,n=`${Rr()||""}html`,r=e?`https://${e.replace(/^https?:\/\//i,"")}/${n}/enter.html`:`${location.origin}/${n}/enter.html`;return`/webclip?url=${encodeURIComponent(r)}`})}const gge={class:"app-features mb-4"},yge={class:"feature-item"},xge={class:"feature-item"},bge={class:"feature-item"},_ge={class:"feature-item"},Sge={class:"feature-item"},Ege={class:"feature-item"},wge={class:"text-center mb-2"},Tge={class:"qr-code-container flex items-center justify-center"},Cge=ke({__name:"AppDownloadDialog",props:{modelValue:{type:Boolean}},emits:["update:modelValue"],setup(e,{emit:t}
132){const n=e,r=t,s=F(()=>wr().app),i=It(),{$device:o}=wt(),a=F(()=>o.isIOS()&&o.isSafari()),l=e$(),u=F({get:()=>n.modelValue,set:x=>r("update:modelValue",x)}),c=()=>{u.value=!1},d=M("android"),f=[{key:"android",name:"安卓版",icon:"mdi-android"},{key:"ios",name:"iOS版",icon:"mdi-apple"},{key:"desktop",name:"桌面版",icon:"mdi-desktop-mac"}],h=F(()=>d.value==="ios"),p=F(()=>{if(h.value)return!0;const x=On();switch(d.value){case"android":return!!x.android?.download_url;case"desktop":return!!x.desktop?.download_url;default:return!1}}),m=F(()=>{const x=On();switch(d.value){case"android":return x.android?.download_url;case"ios":return`${location.origin}${i.html("webclip.html")}`;case"desktop":return x.desktop?.download_url;default:return""}}),v=()=>{if(a.value){location.href=l.value;return}c(),Ah(i.html("webclip.html"))};return(x,g)=>(P(),q(Gt,{modelValue:b(u),"onUpdate:modelValue":g[1]||(g[1]=y=>Ce(u)?u.value=y:null),width:"auto",persistent:"",class:"dialog-container"},{default:A(()=>[S($e,{class:"dialog-card"},{default:A(()=>[S(at,{class:"body_dialog items-center py-2 flex text-h5 font-weight-bold ml-3"},{default:A(()=>[z(" 下载"+Z(b(s)||"")+"APP ",1),S(Mt),S(ce,{icon:"mdi-close",onClick:c})]),_:1}),S(We,{class:"body_tip p-4"},{default:A(()=>[S(Hi,{modelValue:b(d),"onUpdate:modelValue":g[0]||(g[0]=y=>Ce(d)?d.value=y:null),color:"primary",class:"mb-4"},{default:A(()=>[(P(),j(se,null,Fe(f,y=>S(Sr,{key:y.key,value:y.key},{default:A(()=>[S(de,{icon:y.icon,size:"20",class:"mr-2"},null,8,["icon"]),z(" "+Z(y.name),1)]),_:2},1032,["value"])),64))]),_:1},8,["modelValue"]),b(p)?(P(),j(se,{key:0},[L("div",gge,[b(h)?(P(),j(se,{key:0},[L("div",yge,[S(de,{color:"primary",size:"20",class:"mr-2"},{default:A(()=>[...g[2]||(g[2]=[z(" mdi-monitor-cellphone ",-1)])]),_:1}),g[3]||(g[3]=z(" 添加到桌面,无需 App Store,一键打开 ",-1))]),L("div",xge,[S(de,{color:"primary",size:"20",class:"mr-2"},{default:A(()=>[...g[4]||(g[4]=[z(" mdi-shield-check ",-1)])]),_:1}),g[5]||(g[5]=z(" 防止失联,永久访问,告别网址失效 ",-1))]),L("div",bge,[S(de,{color:"primary",size:"20",class:"mr-2"},{default:A(()=>[...g[6]||(g[6]=[z(" mdi-rocket-launch ",-1)])]),_:1}),g[7]||(g[7]=z(" 打开速度快,体验接近原生 App ",-1))])],64)):(P(),j(se,{key:1},[L("div",_ge,[S(de,{color:"primary",size:"20",class:"mr-2"},{default:A(()=>[...g[8]||(g[8]=[z(" mdi-shield-check ",-1)])]),_:1}),g[9]||(g[9]=z(" 防止失联,永久访问,告别网址失效 ",-1))]),L("div",Sge,[S(de,{color:"primary",size:"20",class:"mr-2"},{default:A(()=>[...g[10]||(g[10]=[z(" mdi-rocket-launch ",-1)])]),_:1}),g[11]||(g[11]=z(" 离线下载,极速观看体验,秒开不卡顿 ",-1))]),L("div",Ege,[S(de,{color:"primary",size:"20",class:"mr-2"},{default:A(()=>[...g[12]||(g[12]=[z(" mdi-bookmark-multiple ",-1)])]),_:1}),g[13]||(g[13]=z(" 收藏同步,体验流畅,记录不丢失 ",-1))])],64))]),S($e,{class:"qr-section p-4 mb-4"},{default:A(()=>[L("div",wge,Z(b(h)?"扫码或点击下方按钮添加":"扫描二维码下载"),1),L("div",Tge,[S(Uh,{value:b(m),size:120},null,8,["value"])])]),_:1}),b(h)&&!b(a)?(P(),q(ci,{key:0,type:"info",variant:"tonal",density:"compact",class:"mb-3 text-caption"},{default:A(()=>[...g[14]||(g[14]=[z(" 请使用 ",-1),L("strong",null,"Safari",-1),z(" 浏览器打开并添加,微信/QQ 内置浏览器无效 ",-1)])]),_:1})):te("",!0),b(h)?(P(),q(ce,{key:1,block:"",color:"primary",elevation:"2",height:"44",class:"mb-2",onClick:v},{default:A(()=>[S(de,{class:"mr-2"},{default:A(()=>[...g[15]||(g[15]=[z(" mdi-apple ",-1)])]),_:1}),g[16]||(g[16]=z(" 添加到桌面 ",-1))]),_:1})):(P(),q(ce,{key:2,block:"",color:"primary",elevation:"2",height:"44",class:"mb-2",href:b(m),target:"_blank"},{default:A(()=>[S(de,{class:"mr-2"},{default:A(()=>[...g[17]||(g[17]=[z(" mdi-download ",-1)])]),_:1}),g[18]||(g[18]=z(" 立即下载APP ",-1))]),_:1},8,["href"]))],64)):(P(),q($e,{key:1,class:"coming-soon-card p-8 mb-4 text-center"},{default:A(()=>[S(de,{size:"64",color:"primary",class:"mb-4"},{default:A(()=>[...g[19]||(g[19]=[z(" mdi-timer-sand ",-1)])]),_:1}),g[20]||(g[20]=L("div",{class:"text-h6 mb-2"}," 敬请期待 ",-1)),g[21]||(g[21]=L("div",{class:"text-body-1 text-medium-emphasis"}
132," 正在开发中,请稍后下载 ",-1))]),_:1}))]),_:1})]),_:1})]),_:1},8,["modelValue"]))}}),Zy=vt(Cge,[["__scopeId","data-v-f7d796ba"]]),Age=Object.freeze(Object.defineProperty({__proto__:null,default:Zy},Symbol.toStringTag,{value:"Module"})),kge={class:"flex items-center justify-center w-full"},Ige={class:"logo-container"},Lge={class:"warning mb-2 opacity-90"},Dge={class:"notice-section mb-4 p-2"},Pge={class:"notice-title mb-2"},Rge={class:"notice-content"},Oge={class:"mb-0"},$ge=["innerHTML"],Mge={class:"notice-section p-2"},Fge={class:"notice-title mb-2"},Bge={class:"notice-content"},Nge={class:"current-url"},Vge={class:"qr-code-container flex items-center justify-center space-y-1"},Uge={class:"ml-4 text-center",style:{"line-height":"1.5"}},jge={class:"current-url"},zge=ke({__name:"WelcomeDialog",props:{modelValue:{type:Boolean}},emits:["update:modelValue","close"],setup(e,{emit:t}){const n=F(()=>window?.location?.host?.replace(/^(www|m)\./ig,"").replace(/:\d+$/,"")),r=F(()=>(On()?.mail.dz||"").toUpperCase()),s=F(()=>On()?.vpnLink||""),i=M(!1),o=e,a=t,l=F({get:()=>o.modelValue,set:f=>a("update:modelValue",f)});ft(()=>{});const u=()=>{l.value=!1,a("close")},c=F(()=>`http://${wr().host301}`),d=()=>{location.href="https://www.baidu.com"};return(f,h)=>{const p=An,m=Zy;return P(),q(Gt,{modelValue:b(l),"onUpdate:modelValue":h[2]||(h[2]=v=>Ce(l)?l.value=v:null),width:"auto",persistent:"",class:"dialog-container"},{default:A(()=>[S($e,{class:"dialog-card"},{default:A(()=>[S(at,{class:"body_dialog py-2"},{default:A(()=>[L("div",kge,[L("div",Ige,[S(p,{src:"/static/img/icon-logo{SITE}.png",width:"56",height:"56",alt:"logo"})]),h[3]||(h[3]=L("div",{class:"title text-h5 font-weight-bold ml-3"}," 温馨提示 ",-1))])]),_:1}),S(We,{class:"body_tip p-0"},{default:A(()=>[L("p",Lge,[S(de,{color:"error",size:"20",class:"mx-2"},{default:A(()=>[...h[4]||(h[4]=[z(" mdi-alert-circle ",-1)])]),_:1}),h[5]||(h[5]=L("strong",null,"移动屏蔽本站,请用电信或联通",-1))]),L("div",Dge,[L("div",Pge,[S(de,{size:"18",class:"mr-2"},{default:A(()=>[...h[6]||(h[6]=[z(" mdi-numeric-1-circle ",-1)])]),_:1}),h[7]||(h[7]=z(" 若无法访问本站: ",-1))]),L("div",Rge,[S(ce,{"prepend-icon":"mdi-chevron-right",variant:"plain",color:"red",class:"p-0 underline text-base",onClick:h[0]||(h[0]=v=>i.value=!0)},{default:A(()=>[...h[8]||(h[8]=[z(" 下载本站APP进行访问 ",-1)])]),_:1}),L("div",null,[S(de,{size:"14",class:"mr-2"},{default:A(()=>[...h[9]||(h[9]=[z(" mdi-chevron-right ",-1)])]),_:1}),h[10]||(h[10]=z(" 发邮件获取新地址 ",-1))]),L("div",null,[S(de,{size:"14",class:"mr-2"},{default:A(()=>[...h[11]||(h[11]=[z(" mdi-chevron-right ",-1)])]),_:1}),h[12]||(h[12]=z(" 设置 DNS 为 8.8.8.8 或 1.1.1.1 ",-1))]),L("div",Oge,[S(de,{size:"14",class:"mr-2"},{default:A(()=>[...h[13]||(h[13]=[z(" mdi-chevron-right ",-1)])]),_:1}),h[14]||(h[14]=z(" 使用浏览器里收藏的链接依次访问 ",-1))]),b(s)?(P(),q(ce,{key:0,"prepend-icon":"mdi-chevron-right",variant:"plain",color:"red",class:"p-0 underline text-base"},{default:A(()=>[L("span",{innerHTML:b(s)},null,8,$ge)]),_:1})):te("",!0)])]),L("div",Mge,[L("div",Fge,[S(de,{size:"18",class:"mr-2"},{default:A(()=>[...h[15]||(h[15]=[z(" mdi-numeric-2-circle ",-1)])]),_:1}),h[16]||(h[16]=z(" 本站每天更换域名: ",-1))]),L("div",Bge,[L("div",null,[S(de,{size:"14",class:"mr-2"},{default:A(()=>[...h[17]||(h[17]=[z(" mdi-chevron-right ",-1)])]),_:1}),h[18]||(h[18]=z(" 收藏5个以上,就能永久访问本站! ",-1))]),L("div",null,[S(de,{size:"14",class:"mr-2"},{default:A(()=>[...h[19]||(h[19]=[z(" mdi-chevron-right ",-1)])]),_:1}),h[20]||(h[20]=z(" 发信到邮箱取地址: ",-1)),L("span",Nge,Z(b(r)),1)]),S($e,{class:"p-0"},{default:A(()=>[S(We,{class:"p-0"},{default:A(()=>[L("div",Vge,[S(Uh,{value:b(c),size:78},null,8,["value"]),L("div",Uge,[h[21]||(h[21]=z(" 记住当前网址",-1)),h[22]||(h[22]=L("br",null,null,-1)),L("span",jge,Z(b(n)),1),h[23]||(h[23]=L("br",null,null,-1)),h[24]||(h[24]=L("span",{class:"text-caption"},"截图保存,扫码访问",-1))])])]),_:1})]),_:1})])])]),_:1}),S(mn,{class:"p-3 border-t border-gray-500 flex justify-between"},{default:A(()=>[S(ce,{elevation:"2",height:"40",onClick:d},{default:A(()=>[...h[25]||(h[25]=[z(" 未满 18 岁,关闭 ",-1)])]),_:1}),S(ce,{height:"40",onClick:u,color:"primary"},{default:A(()=>[...h[26]||(h[26]=[z(" 已满 18 岁,进入 » ",-1)])]),_:1})]),_:1})]),_:1}
132),b(i)?(P(),q(m,{key:0,modelValue:b(i),"onUpdate:modelValue":h[1]||(h[1]=v=>Ce(i)?i.value=v:null)},null,8,["modelValue"])):te("",!0)]),_:1},8,["modelValue"])}}}),tw=vt(zge,[["__scopeId","data-v-16ff50d2"]]),Hge=Object.freeze(Object.defineProperty({__proto__:null,default:tw},Symbol.toStringTag,{value:"Module"})),Gge=["href"],t$=ke({__name:"BusinessContactDialog",props:{modelValue:{type:Boolean,required:!0}},emits:["update:modelValue"],setup(e,{emit:t}){const n=On().tg||"",r=t,s=()=>{r("update:modelValue",!1)};return(i,o)=>(P(),q(Gt,{"model-value":e.modelValue,"max-width":"400","onUpdate:modelValue":s},{default:A(()=>[S($e,null,{default:A(()=>[S(at,{class:"text-center pa-4"},{default:A(()=>[...o[0]||(o[0]=[z(" 商务合作 ",-1)])]),_:1}),S(We,{class:"text-center pa-4"},{default:A(()=>[b(n).search(/\w+@\w+/ig)>-1?(P(),q(kt,{key:0},{default:A(()=>[L("a",{href:`mailto:${b(n)}`,target:"_blank"},Z(b(n)),9,Gge)]),_:1})):(P(),j(se,{key:1},[o[1]||(o[1]=L("p",{class:"my-4"}," 请通过以下 Telegram 账号联系我们: ",-1)),S(kt,{color:"primary",class:"text-h6 font-weight-bold",href:`https://t.me/${b(n)}`,target:"_blank"},{default:A(()=>[z(" @"+Z(b(n)),1)]),_:1},8,["href"]),o[2]||(o[2]=z(" (双向机器人) ",-1))],64))]),_:1}),S(mn,null,{default:A(()=>[S(Mt),S(ce,{color:"primary",onClick:s},{default:A(()=>[...o[3]||(o[3]=[z(" 关闭 ",-1)])]),_:1})]),_:1})]),_:1})]),_:1},8,["model-value"]))}}),Kge=Object.freeze(Object.defineProperty({__proto__:null,default:t$},Symbol.toStringTag,{value:"Module"})),Wge={class:"left-0 right-0 m-0"},qge={class:"mb-4"},Yge={class:"opacity-50 border-t border-b py-2 my-2"},Xge={class:"text-xs text-grey text-center opacity-40 mb-0 line-height-2"},$a=ke({__name:"GlobalFooter",props:{page:{default:"index"},hideWelcome:{type:Boolean,default:!1}},setup(e){const t=e,n=mt("routeParams",null),r=F(()=>wr()?.app||""),s=F(()=>location.hostname||""),{user:i}=Ct(),{version:o}=Zr().public,a=F(()=>"警告:如果您未滿18歲或您當地法律許可之法定年齡、或是對情色反感或是衛道人士建議您離開本站! 本站歸類為限制級、限定為成年者已具有完整行為能力且願接受本站內影音內容、及各項條款之網友才可瀏覽,未滿18歲謝絕進入。"),{html:l}=It(),u=On().tg||"",c=F(()=>{const _=wr();return _?.splash?{img:_?.splash,url:_?.splashUrl,time:_?.splashTime||5}:null}),d=di("welcome-closed",""),f=()=>{if(!d.value)return!0;const _=new Date().toDateString(),E=new Date(d.value).toDateString();return _!==E},h=F(()=>f()),p=M(!1);F(()=>h.value);const m=M(h.value);be(p,_=>{!_&&c.value&&(m.value=!0)});const v=()=>{m.value=!1,d.value=new Date().toISOString()},x=M(!1),g=M(!1),y=F(()=>!n?.hideBanner&&!i.value?.vip);return(_,E)=>{const w=Xs,T=$S,C=Q5,I=tw,k=Zy,$=t$;return P(),j(se,null,[S(w),b(y)?(P(),q(T,{key:`${t.page}-banner`,page:t.page,place:"banner"},null,8,["page"])):te("",!0),L("div",Wge,[S($e,{id:"copyright",class:"mt-0 rounded-none"},{default:A(()=>[S(We,{class:"p-4 text-center"},{default:A(()=>[L("p",qge,[S(ce,{variant:"plain","prepend-icon":"mdi-help-circle",to:b(l)("help.html"),size:"small"},{default:A(()=>[...E[7]||(E[7]=[z(" 帮助中心 ",-1)])]),_:1},8,["to"]),S(ce,{variant:"plain",class:"min-w-auto","prepend-icon":"mdi-image",size:"small",onClick:E[0]||(E[0]=R=>m.value=!0)},{default:A(()=>[...E[8]||(E[8]=[z(" 截屏保存网址 ",-1)])]),_:1}),S(ce,{variant:"plain","prepend-icon":"mdi-download",class:"min-w-auto",size:"small",onClick:E[1]||(E[1]=R=>x.value=!0)},{default:A(()=>[...E[9]||(E[9]=[z(" 下载APP ",-1)])]),_:1})]),L("p",null,Z(new Date().toLocaleString())+" @"+Z(b(r))+"("+Z(b(s))+") ",1),L("p",Yge,[z(Z(b(a))+" ",1),b(u)?(P(),q(ce,{key:0,variant:"plain","prepend-icon":"mdi-message-text",class:"min-w-auto",size:"small",onClick:E[2]||(E[2]=R=>g.value=!0)},{default:A(()=>[...E[10]||(E[10]=[z(" 商务合作 ",-1)])]),_:1})):te("",!0)]),L("p",Xge," version: "+Z(b(o)),1)]),_:1})]),_:1})]),b(c)?(P(),q(C,{key:1,show:b(p),"onUpdate:show":E[3]||(E[3]=R=>Ce(p)?p.value=R:null),splash:b(c)},null,8,["show","splash"])):te("",!0),e.hideWelcome?te("",!0):(P(),q(I,{key:2,modelValue:b(m),"onUpdate:modelValue":E[4]||(E[4]=R=>Ce(m)?m.value=R:null),onClose:v},null,8,["modelValue"])),S(k,{modelValue:b(x),"onUpdate:modelValue":E[5]||(E[5]=R=>Ce(x)?x.value=R:null)},null,8,["modelValue"]),S($,{modelValue:b(g),"onUpdate:modelValue":E[6]||(E[6]=R=>Ce(g)?g.value=R:null)},null,8,["modelValue"])],64)}}}),Zge=Object.freeze(Object.defineProperty({__proto__:null,default:$a},Symbol.toStringTag,{value:"Module"})),Jge=ke({__name:"index",props:{hideHeader:{type:Boolean}},setup(e){const t=e,n=Fn(),r=F(()=>n.path==="/"||n.path.endsWith("main"));be(()=>r.value,i=>{if(i){const o=Rr();o&&(window.location.href=`/${o}
132main`)}});const s=[{title:"",order:"update"},{title:"日榜",order:"click"},{title:"周榜",order:"week"},{title:"月榜",order:"month"}];return(i,o)=>{const a=bd,l=Ad,u=Xy,c=$a;return b(r)?(P(),q(_d,{key:0})):(P(),j(se,{key:1},[t?.hideHeader?te("",!0):(P(),q(a,{key:"index-header",page:"index"})),S(dn,{class:"p-2"},{default:A(()=>[S(l,{tabs:s})]),_:1}),S(dn,{class:"px-2"},{default:A(()=>[S(u,{tabs:s})]),_:1}),t?.hideHeader?te("",!0):(P(),q(c,{key:1}))],64))}}}),n$=vt(Jge,[["__scopeId","data-v-493121da"]]),Qge=Object.freeze(Object.defineProperty({__proto__:null,default:n$},Symbol.toStringTag,{value:"Module"})),eye=ke({__name:"hlmain",setup(e){return(t,n)=>(P(),q(_d))}}),tye=Object.freeze(Object.defineProperty({__proto__:null,default:eye},Symbol.toStringTag,{value:"Module"})),Jy=e=>e>=1e4?(e/1e4).toFixed(1)+"w":e?e.toString():"",nye=e=>new Date(e*1e3).toLocaleDateString(),nw=e=>new Date(e*1e3).toISOString().substr(11,8).replace(/^00:/,""),rye={class:"line-clamp-2 whitespace-normal opacity-90"},sye={class:"flex flex-col items-center gap-4"},iye={class:"text-grey"},oye=ke({__name:"fav",setup(e){const t=F(()=>[{id:1,type:"vod",title:"影视",icon:"ph:film-strip-fill"},{id:2,type:"nvl",title:"小说",icon:"ph:book-fill"},{id:3,type:"pic",title:"图片",icon:"ph:image-fill"},{id:4,type:"sj",title:"短剧",icon:"ph:video-fill"},vu()?{id:5,type:"post",title:"帖子",icon:"ph:note-pencil-fill"}:null].filter(Boolean)),n=M("vod"),r=M(!1),s=M(1),i=M(1),o=M([]),a=It(),l=m=>{const v=t.value.find(x=>x.id===m.type)?.type;return v==="post"?a.detail("thread",m[v].param):a.detail(v,m[v].param)},u=(m,v)=>{const x=v.target;x.closest("button")||x.closest(".v-btn")||Ah(l(m))},c=m=>m==="post"?"/html/post":a.list(m),d=F(()=>t.value.find(m=>m.type===n.value)?.title||""),f=async()=>{r.value=!0;try{const m=it(),{favList:v,pageCount:x}=await m.user.fav({type:n.value,page:s.value});o.value=v,i.value=x}catch(m){console.error(m)}finally{r.value=!1}};be(n,()=>{console.log("tab",n),s.value=1,f()});const{deleteFavStatus:h}=wy(),p=async m=>{try{const v=it(),x=o.value.find(g=>g.id===m);await v.user.favDel([m]),n.value==="post"&&x?.post?.param&&h(x.post.param),o.value=o.value.filter(g=>g.id!==m),je.success("删除成功")}catch(v){console.error("删除失败:",v),je.error(v?.data||v?.message||"删除失败,请稍后重试")}};return ft(()=>{f()}),(m,v)=>{const x=zh,g=Xs;return P(),j(se,null,[S(dn,{class:"p-0 flex flex-col gap-3 max-w-[480px]"},{default:A(()=>[S(Hi,{modelValue:b(n),"onUpdate:modelValue":v[0]||(v[0]=y=>Ce(n)?n.value=y:null),color:"primary",grow:"",class:"mb-2"},{default:A(()=>[(P(!0),j(se,null,Fe(b(t),y=>(P(),q(Sr,{key:y.type,value:y.type},{default:A(()=>[S(de,{icon:y.icon,class:"mr-2"},null,8,["icon"]),z(" "+Z(y.title),1)]),_:2},1032,["value"]))),128))]),_:1},8,["modelValue"]),S($e,null,{default:A(()=>[b(o).length?(P(),q(vr,{key:0},{default:A(()=>[(P(!0),j(se,null,Fe(b(o),(y,_)=>(P(),j(se,{key:y.id},[S(Rt,{onClick:E=>u(y,E)},{title:A(()=>[L("div",rye,Z(y[b(n)]?.title),1)]),subtitle:A(()=>[z(" 收藏于 "+Z(b(nye)(y.dateline)),1)]),append:A(()=>[S(x,{title:"确定删除该收藏吗?",content:"删除后不可恢复",onConfirm:E=>p(y.id)},{activator:A(({props:E})=>[S(ce,Ve({icon:"ph:trash",variant:"text",color:"error"},{ref_for:!0},E,{onClick:v[1]||(v[1]=Et(()=>{},["stop","prevent"]))}),null,16)]),_:1},8,["onConfirm"])]),_:2},1032,["onClick"]),_<b(o).length-1?(P(),q(zt,{key:0})):te("",!0)],64))),128))]),_:1})):b(r)?(P(),q(We,{key:2,class:"text-center py-8"},{default:A(()=>[S(jn,{indeterminate:"",color:"primary"})]),_:1})):(P(),q(We,{key:1,class:"text-center py-8"},{default:A(()=>[L("div",sye,[L("div",iye," 暂无"+Z(b(d))+"收藏内容 ",1),S(ce,{to:c(b(n)),color:"primary",variant:"outlined","prepend-icon":"ph:arrow-right"},{default:A(()=>[z(" 去"+Z(b(d))+"版块逛逛 ",1)]),_:1},8,["to"])])]),_:1}))]),_:1}),b(i)>1?(P(),q(Qh,{key:0,modelValue:b(s),"onUpdate:modelValue":[v[2]||(v[2]=y=>Ce(s)?s.value=y:null),f],length:b(i),"total-visible":5},null,8,["modelValue","length"])):te("",!0)]),_:1}),S(g)],64)}}}),aye=Object.freeze(Object.defineProperty({__proto__:null,default:oye},Symbol.toStringTag,{value:"Module"})),lye=He({text:String,...At(),...rn()},"VToolbarTitle"),uye=nt()({name:"VToolbarTitle",props:lye(),setup(e,t){let{slots:n}=t;return ut(()=>{const r=!!(n.default||n.text||e.text);return S(e.tag,{class:Ie(["v-toolbar-title",e.class]),style:Qe(e.style)}
132,{default:()=>[r&&L("div",{class:"v-toolbar-title__placeholder"},[n.text?n.text():e.text,n.default?.()])]})}),{}}}),cye=[null,"prominent","default","comfortable","compact"],r$=He({absolute:Boolean,collapse:Boolean,color:String,density:{type:String,default:"default",validator:e=>cye.includes(e)},extended:{type:Boolean,default:null},extensionHeight:{type:[Number,String],default:48},flat:Boolean,floating:Boolean,height:{type:[Number,String],default:64},image:String,title:String,...mo(),...At(),...Rs(),...Tr(),...rn({tag:"header"}),...Dn()},"VToolbar"),yL=nt()({name:"VToolbar",props:r$(),setup(e,t){let{slots:n}=t;const{backgroundColorClasses:r,backgroundColorStyles:s}=_r(()=>e.color),{borderClasses:i}=Yo(e),{elevationClasses:o}=gi(e),{roundedClasses:a}=Qr(e),{themeClasses:l}=ir(e),{rtlClasses:u}=Jr(),c=Ze(e.extended===null?!!n.extension?.():e.extended),d=F(()=>parseInt(Number(e.height)+(e.density==="prominent"?Number(e.height):0)-(e.density==="comfortable"?8:0)-(e.density==="compact"?16:0),10)),f=F(()=>c.value?parseInt(Number(e.extensionHeight)+(e.density==="prominent"?Number(e.extensionHeight):0)-(e.density==="comfortable"?4:0)-(e.density==="compact"?8:0),10):0);return Ni({VBtn:{variant:"text"}}),ut(()=>{const h=!!(e.title||n.title),p=!!(n.image||e.image),m=n.extension?.();return c.value=e.extended===null?!!m:e.extended,S(e.tag,{class:Ie(["v-toolbar",{"v-toolbar--absolute":e.absolute,"v-toolbar--collapse":e.collapse,"v-toolbar--flat":e.flat,"v-toolbar--floating":e.floating,[`v-toolbar--density-${e.density}`]:!0},r.value,i.value,o.value,a.value,l.value,u.value,e.class]),style:Qe([s.value,e.style])},{default:()=>[p&&L("div",{key:"image",class:"v-toolbar__image"},[n.image?S(sn,{key:"image-defaults",disabled:!e.image,defaults:{VImg:{cover:!0,src:e.image}}},n.image):S(Xr,{key:"image-img",cover:!0,src:e.image},null)]),S(sn,{defaults:{VTabs:{height:ht(d.value)}}},{default:()=>[L("div",{class:"v-toolbar__content",style:{height:ht(d.value)}},[n.prepend&&L("div",{class:"v-toolbar__prepend"},[n.prepend?.()]),h&&S(uye,{key:"title",text:e.title},{text:n.title}),n.default?.(),n.append&&L("div",{class:"v-toolbar__append"},[n.append?.()])])]}),S(sn,{defaults:{VTabs:{height:ht(f.value)}}},{default:()=>[S(dy,null,{default:()=>[c.value&&L("div",{class:"v-toolbar__extension",style:{height:ht(f.value)}},[m])]})]})]})}),{contentHeight:d,extensionHeight:f}}}),dye=He({scrollTarget:{type:String},scrollThreshold:{type:[String,Number],default:300}},"scroll");function fye(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const{canScroll:n}=t;let r=0,s=0;const i=M(null),o=Ze(0),a=Ze(0),l=Ze(0),u=Ze(!1),c=Ze(!1),d=F(()=>Number(e.scrollThreshold)),f=F(()=>Yr((d.value-o.value)/d.value||0)),h=()=>{const p=i.value;if(!p||n&&!n.value)return;r=o.value,o.value="window"in p?p.pageYOffset:p.scrollTop;const m=p instanceof Window?document.documentElement.scrollHeight:p.scrollHeight;if(s!==m){s=m;return}c.value=o.value<r,l.value=Math.abs(o.value-d.value)};return be(c,()=>{a.value=a.value||o.value}),be(u,()=>{a.value=0}),ft(()=>{be(()=>e.scrollTarget,p=>{const m=p?document.querySelector(p):window;m&&m!==i.value&&(i.value?.removeEventListener("scroll",h),i.value=m,i.value.addEventListener("scroll",h,{passive:!0}))},{immediate:!0})}),cn(()=>{i.value?.removeEventListener("scroll",h)}),n&&be(n,h,{immediate:!0}),{scrollThreshold:d,currentScroll:o,currentThreshold:l,isScrollActive:u,scrollRatio:f,isScrollingUp:c,savedScroll:a}}const hye=He({scrollBehavior:String,modelValue:{type:Boolean,default:!0},location:{type:String,default:"top",validator:e=>["top","bottom"].includes(e)},...r$(),...fS(),...dye(),height:{type:[Number,String],default:64}},"VAppBar"),pye=nt()({name:"VAppBar",props:hye(),emits:{"update:modelValue":e=>!0},setup(e,t){let{slots:n}=t;const r=M(),s=Qt(e,"modelValue"),i=F(()=>{const g=new Set(e.scrollBehavior?.split(" ")??[]);return{hide:g.has("hide"),fullyHide:g.has("fully-hide"),inverted:g.has("inverted"),collapse:g.has("collapse"),elevate:g.has("elevate"),fadeImage:g.has("fade-image")}}),o=F(()=>{const g=i.value;return g.hide||g.fullyHide||g.inverted||g.collapse||g.elevate||g.fadeImage||!s.value}),{currentScroll:a,scrollThreshold:l,isScrollingUp:u,scrollRatio:c}=fye(e,{canScroll:o}),d=Ae(()=>i.value.hide||i.value.fullyHide),f=F(()=>e.collapse||i.value.collapse&&(i.value.inverted?c.value>0:c.value===0)),h=F(()=>e.flat||i.value.fullyHide&&!s.value||i.value.elevate&&(i.value.inverted?a.value>0:a.value===0)),p=F(()=>i.value.fadeImage?i.value.inverted?1-c.value:c.value:void 0),m=F(()=>
132{if(i.value.hide&&i.value.inverted)return 0;const g=r.value?.contentHeight??0,y=r.value?.extensionHeight??0;return d.value?a.value<l.value||i.value.fullyHide?g+y:g:g+y});jo(()=>!!e.scrollBehavior,()=>{zn(()=>{d.value?i.value.inverted?s.value=a.value>l.value:s.value=u.value||a.value<l.value:s.value=!0})});const{ssrBootStyles:v}=Nh(),{layoutItemStyles:x}=hS({id:e.name,order:F(()=>parseInt(e.order,10)),position:Ae(()=>e.location),layoutSize:m,elementSize:Ze(void 0),active:s,absolute:Ae(()=>e.absolute)});return ut(()=>{const g=yL.filterProps(e);return S(yL,Ve({ref:r,class:["v-app-bar",{"v-app-bar--bottom":e.location==="bottom"},e.class],style:[{...x.value,"--v-toolbar-image-opacity":p.value,height:void 0,...v.value},e.style]},g,{collapse:f.value,flat:h.value}),n)}),{}}}),mye=He({...ps(uy({icon:"$menu",variant:"text"}),["spaced"])},"VAppBarNavIcon"),vye=nt()({name:"VAppBarNavIcon",props:mye(),setup(e,t){let{slots:n}=t;return ut(()=>S(ce,Ve(e,{class:["v-app-bar-nav-icon"]}),n)),{}}}),gye={key:3,class:"absolute left-0 text-center w-full text-xl",style:{"z-index":"0"}},rw=ke({__name:"AppBar",setup(e){const t=Fn(),n=Tt();return(r,s)=>(P(),q(pye,{flat:"",style:{background:"rgba(var(--v-theme-primary), .8)!important",color:"white!important"},density:"compact",class:"backdrop-blur-md"},Sh({default:A(()=>[r.$slots.left?Ht(r.$slots,"left",{key:0}):(P(),j(se,{key:1},[b(t).meta?.hideBack?te("",!0):(P(),q(vye,{key:0,icon:"ph:caret-left",style:{"z-index":"1"},onClick:s[0]||(s[0]=()=>{b(n).options.history.state.back?b(n).back():b(n).replace("/")})}))],64)),r.$slots.default?Ht(r.$slots,"default",{key:2}):(P(),j("div",gye,Z(b(t).meta.title),1))]),_:2},[r.$slots.right?{name:"append",fn:A(()=>[Ht(r.$slots,"right")]),key:"0"}:void 0]),1024))}}),yye=Object.freeze(Object.defineProperty({__proto__:null,default:rw},Symbol.toStringTag,{value:"Module"})),xye={key:1,class:"text-xs text-gray-400 mt-1"},s$=ke({__name:"PostTags",props:{modelValue:{type:Array,required:!0},allTags:{type:Array,required:!0}},emits:["update:modelValue","update:allTags"],setup(e,{emit:t}){const n=e,r=t,s=M(n.modelValue),i=M(n.allTags),o=M(""),a=M(!1),{post:l}=it(),u=M([]),c=M(!1);let d=null;const f=M(!1),h=F(()=>f.value?i.value:i.value.slice(0,10));be(()=>n.modelValue,E=>{s.value=E}),be(s,E=>{r("update:modelValue",E)}),be(()=>n.allTags,E=>{i.value=E});function p(E){if(d&&clearTimeout(d),!E.trim()){u.value=[];return}c.value=!0,d=setTimeout(async()=>{try{const w=await l.tag(E);w?.list&&Array.isArray(w.list)?u.value=w.list.map(T=>T.name):u.value=[]}catch{u.value=[]}finally{c.value=!1}},300)}const m=F(()=>u.value.filter(E=>E.includes(o.value)));function v(E){i.value.includes(E)||(i.value.push(E),r("update:allTags",i.value)),s.value.includes(E)||s.value.push(E),o.value="",u.value=[],a.value=!1}function x(){o.value.trim()&&(i.value.includes(o.value)||(i.value.push(o.value),r("update:allTags",i.value)),s.value.includes(o.value)||s.value.push(o.value),o.value="",a.value=!1)}function g(E){s.value=s.value.filter(w=>w!==E)}function y(E){return s.value.includes(E)?"mdi:close-circle":"mdi:checkbox-outline"}be(o,E=>{p(E)});const _=()=>{tt(()=>{f.value=!0})};return(E,w)=>(P(),j("div",null,[S(Yv,{modelValue:s.value,"onUpdate:modelValue":w[1]||(w[1]=T=>s.value=T),multiple:"",column:"",class:"flex flex-wrap gap-2 mb-2 !overflow-visible"},{default:A(()=>[(P(!0),j(se,null,Fe(h.value,T=>(P(),q(kt,{key:T,value:T,color:"primary",c2losable:"","c2lose-icon":y(T),class:"cursor-pointer","onClick:close":C=>g(T)},{default:A(()=>[S(de,{icon:y(T),class:"mr-1"},null,8,["icon"]),z(" "+Z(T),1)]),_:2},1032,["value","c2lose-icon","onClick:close"]))),128)),!f.value&&i.value.length>10?(P(),q(kt,{key:0,class:"cursor-pointer",color:"secondary",onMousedown:Et(_,["prevent"]),onTouchstart:Et(_,["prevent"])},{default:A(()=>[...w[5]||(w[5]=[z(" 更多标签 ",-1)])]),_:1})):te("",!0),S(kt,{key:"add-custom",class:"cursor-pointer",color:"default",onClick:w[0]||(w[0]=T=>a.value=!0)},{default:A(()=>[...w[6]||(w[6]=[z(" + 新标签 ",-1)])]),_:1})]),_:1},8,["modelValue"]),S(Gt,{modelValue:a.value,"onUpdate:modelValue":w[4]||(w[4]=T=>a.value=T),persistent:"","max-width":"320"},{default:A(()=>[S($e,null,{default:A(()=>[S(at,null,{default:A(()=>[...w[7]||(w[7]=[z("添加自定义标签",-1)])]),_:1}),S(We,null,{default:A(()=>[S(St,{modelValue:o.value,"onUpdate:modelValue":w[2]||(w[2]=T=>o.value=T),label:"输入新标签",autofocus:"",onKeyup:Vg(x,["enter"])},null,8,["modelValue"]),m.value.length&&o.value?(P(),q(Yv,{key:0,column:"",class:"flex flex-wrap gap-2 mb-2"},{default:A(()=>[(P(!0),j(se,null,Fe(m.value,T=>(P(),q(kt,{key:T,class:"cursor-pointer",color:"primary",onClick:C=>v(T)},{default:A(()=>[z(Z(T),1)]),_:2},1032,["onClick"]))),128))]),_:1})):te("",!0),c.value?(P(),j("div",xye," 正在检索... ")):te("",!0)]),_:1}),S(mn,null,{default:A(()=>[S(Mt),S(ce,{color:"default",onClick:w[3]||(w[3]=T=>a.value=!1)},{default:A(()=>[...w[8]||(w[8]=[z(" 取消 ",-1)])]),_:1}),S(ce,{color:"primary",onClick:x},{default:A(()=>[...w[9]||(w[9]=[z(" 确定 ",-1)])]),_:1})]),_:1})]),_:1})]),_:1},8,["modelValue"])]))}}),bye=Object.freeze(Object.defineProperty({__proto__:null,default:s$},Symbol.toStringTag,{value:"Module"})),_ye=He({indeterminate:Boolean,inset:Boolean,flat:Boolean,loading:{type:[Boolean,String],default:!1},...Nu(),...yy()},"VSwitch"),i$=nt()({name:"VSwitch",inheritAttrs:!1,props:_ye(),emits:{"update:focused":e=>!0,"update:modelValue":e=>!0,"update:indeterminate":e=>!0},setup(e,t){let{attrs:n,slots:r}=t;const s=Qt(e,"indeterminate"),i=Qt(e,"modelValue"),{loaderClasses:o}=sy(e),{isFocused:a,focus:l,blur:u}=yd(e),c=M(),d=M(),f=Q_&&window.matchMedia("(forced-colors: active)").matches,h=Ae(()=>typeof e.loading=="string"&&e.loading!==""?e.loading:e.color),p=Ds(),m=Ae(()=>e.id||`switch-${p}`);function v(){s.value&&(s.value=!1)}function x(g){g.stopPropagation(),g.preventDefault(),c.value?.input?.click()}return ut(()=>{const[g,y]=dd(n),_=Vi.filterProps(e),E=Su.filterProps(e);return S(Vi,Ve({ref:d,class:["v-switch",{"v-switch--flat":e.flat},{"v-switch--inset":e.inset},{"v-switch--indeterminate":s.value},o.value,e.class]},g,_,{modelValue:i.value,"onUpdate:modelValue":w=>i.value=w,id:m.value,focused:a.value,style:e.style}),{...r,default:w=>{let{id:T,messagesId:C,isDisabled:I,isReadonly:k,isValid:$}=w;const R={model:i,isValid:$};return S(Su,Ve({ref:c},E,{modelValue:i.value,"onUpdate:modelValue":[D=>i.value=D,v],id:T.value,"aria-describedby":C.value,type:"checkbox","aria-checked":s.value?"mixed":void 0,disabled:I.value,readonly:k.value,onFocus:l,onBlur:u},y),{...r,default:D=>{let{backgroundColorClasses:O,backgroundColorStyles:B}=D;return L("div",{class:Ie(["v-switch__track",f?void 0:O.value]),style:Qe(B.value),onClick:x},[r["track-true"]&&L("div",{key:"prepend",class:"v-switch__track-true"},[r["track-true"](R)]),r["track-false"]&&L("div",{key:"append",class:"v-switch__track-false"},[r["track-false"](R)])])},input:D=>{let{inputNode:O,icon:B,backgroundColorClasses:U,backgroundColorStyles:N}=D;return L(se,null,[O,L("div",{class:Ie(["v-switch__thumb",{"v-switch__thumb--filled":B||e.loading},e.inset||f?void 0:U.value]),style:Qe(e.inset?void 0:N.value)},[r.thumb?S(sn,{defaults:{VIcon:{icon:B,size:"x-small"}}},{default:()=>[r.thumb({...R,icon:B})]}):S(O4,null,{default:()=>[e.loading?S(ES,{name:"v-switch",active:!0,color:$.value===!1?void 0:h.value},{default:V=>r.loader?r.loader(V):S(jn,{active:V.isActive,color:V.color,indeterminate:!0,size:"16",width:"2"},null)}):B&&S(de,{key:String(B),icon:B,size:"x-small"},null)]})])])}})}})}),yi({},d)}}
132),Sye={class:"whitespace-pre-line text-justify leading-6 text-sm"},Eye={class:"mb-6"},wye={class:"text-gray-600 mb-4"},Tye={class:"flex flex-col gap-3"},Cye={class:"mt-4 text-sm text-gray-500"},Aye={class:"mb-2"},kye={key:0,class:"mb-4"},Iye={class:"flex items-center gap-2 mb-2"},Lye={class:"mb-4 hidden"},Dye={key:2,class:"my-4"},Pye={class:"flex items-center gap-2"},Rye={key:3,class:"my-4"},Oye={class:"flex items-center gap-2"},$ye=ke({__name:"post",setup(e){const{user:t}=Ct(),n=Fn(),r=M(""),s=M([]),i=M(20),o=M([]),a=M([]),l=M([]),u=M(!1),c=M(null),d=M(0),{post:f}=it(),h=M(!1),p=M(!1),m=M(""),v=M(""),x=M(!1),g=M(""),y=M(Date.now()),_=M(""),E=M([]),w=M(0),T=M(0),C=M(0),I=M(!1),k=F(()=>t.value?.verify?.phone||t.value?.verify?.email),$=F(()=>n.query.id||""),R=F(()=>!!$.value);async function D(ae){if(ae)try{const ue=await f.detail({id:ae,edit:1});if(ue&&ue.post){const Ee=ue.post;r.value=Ee.content||"",o.value=Array.isArray(Ee.tags)?Ee.tags:(Ee.tags||"").split("|"),a.value=Array.from(new Set([...o.value,...a.value]));const _e=Array.isArray(Ee.file)?Ee.file:[];if(s.value=_e.slice(),l.value=_e.map(J=>J?.id||J),await tt(),s.value=_e.slice(),c.value=Ee.credits||0,d.value=Ee.issubscribe?1:0,Array.isArray(Ee.extend)){const J=Ee.extend.find(Y=>Y&&typeof Y=="object"&&Y.url);v.value=J?J.url:""}else Ee.extend&&typeof Ee.extend=="object"?v.value=Ee.extend.url||"":v.value=""}}catch(ue){const Ee=ue?.message||ue?.msg||"获取帖子信息失败";je.error(Ee),setTimeout(()=>{le()},1500)}}function O(ae){const ue=String(ae||"").trim();if(!ue)return null;const Ee=ue.indexOf(":");if(Ee<=0)return{type:"",id:ue};const _e=ue.slice(0,Ee).toLowerCase(),J=ue.slice(Ee+1);return!J||_e==="http"||_e==="https"?{type:"",id:ue}:{type:_e,id:J}}function B(){const ae=n.query.share||"";if(ae)return ae;const ue=n.query.ai_task||"";return ue?`ai:${ue}`:""}async function U(ae){if(ae)try{const{ai:ue}=it(),{task:Ee}=await ue.status({id:ae});if(Ee&&Ee.post_id){je.error("该生成结果已分享过"),Tt().replace(`/html/thread/${Ee.post_id}.html`);return}if(Ee&&Ee.status===2&&Array.isArray(Ee.outputs)&&Ee.outputs.length){_.value=ae;const _e=[],J=new Set;for(const Y of[...Ee.outputs||[],...Ee.inputs||[]]){const fe=String(Y?.id||"");!fe||J.has(fe)||(J.add(fe),_e.push(Y))}s.value=_e,l.value=_e.map(Y=>Y.id||Y),r.value||(r.value=Ee.prompt||"");return}Ee&&Ee.status!==2&&je.error("该生成任务尚未完成,暂时无法分享")}catch{}}async function N(ae){if(!ae)return;const ue=await f.shareData({id:ae});ue&&(r.value=ue?.content||"",o.value=ue?.tags||[],a.value=Array.from(new Set([...o.value,...a.value])),s.value=ue?.files||[],l.value=s.value.map(Ee=>Ee.id||Ee),c.value=ue?.credits||0,d.value=ue?.issubscribe?1:0,v.value=ue?.extend?.url||"")}async function V(ae){const ue=O(ae);if(!ue)return;if(ue.type==="ai"){await U(ue.id);return}const Ee=ue.type==="down"?`down-${ue.id}`:ue.type?`${ue.type}:${ue.id}`:ue.id;await N(Ee)}be(()=>({id:n.query.id||"",share:B()}),async(ae,ue)=>{if(!(ae.id===ue?.id&&ae.share===ue?.share)){if(p.value=!1,ae.id){_.value="",await D(ae.id);return}if(ae.share){(ue?.id||ue?.share&&ue.share!==ae.share)&&Q(!1),x.value=!0;try{await V(ae.share)}finally{x.value=!1}return}(ue?.id||ue?.share)&&Q(!1)}},{immediate:!0});const H=M(!0);zi(async()=>{if(H.value){H.value=!1;return}const ae=B();if(!ae)return;const ue=O(ae);if(!(ue?.type==="ai"&&_.value===ue.id&&s.value.length)&&!(ue?.type!=="ai"&&s.value.length)){x.value=!0;try{await V(ae)}finally{x.value=!1}}});const re=()=>k.value?!0:(I.value=!0,!1);function W(ae){l.value=ae}async function X(){if(!re()||h.value)return;h.value=!0;const ae={content:r.value,credits:c.value?~~c.value:0,tags:o.value.join("|"),file:l.value.map(ue=>ue.id||ue).join("|"),issubscribe:d.value?1:0,extend:{url:v.value},__captcha:g.value,...R.value||!_.value?{}:{ai_task_id:_.value}};R.value&&(ae.id=$.value);try{const ue=await f.pub(ae),{id:Ee}=ue;Ee&&(m.value=Ee,p.value=!0)}catch(ue){console.log("error",ue)}finally{h.value=!1}}function Q(ae=!0){r.value="",s.value=[],o.value=[],l.value=[],u.value=!1,c.value=null,d.value=0,p.value=!1,m.value="",g.value="",y.value=Date.now(),_.value="",ae&&Tt().replace({query:{}})}function le(){Tt().push("/user/timeline?tab=posts")}function ve(){I.value=!1}const oe=M(!1),K=M("");async function ee(){try{const ae=await f.rule(()=>({}));K.value=ae?.pub||"暂无版规内容",oe.value=!0}catch{K.value="获取版规失败",oe.value=!0}}return ft(async()=>{try{const{tags:ae,exts:ue,files:Ee,maxCredit:_e,canCredit:J,nextPost:Y}=await f.conf();a.value=ae.map(fe=>fe.name),E.value=ue||[],i.value=Ee||20,w.value=_e||0,T.value=J||0,C.value=Y||0,re()}catch{}}),(ae,ue)=>{const Ee=rw,_e=CE,J=s$,Y=qy,fe=zh,xe=s0,ne=Xs;return P(),j(se,null,[S(Ee,null,{right:A(()=>
132[S(ce,{variant:"plain","prepend-icon":"mdi-file-document-outline",onClick:le},{default:A(()=>[...ue[13]||(ue[13]=[z("我的发布",-1)])]),_:1}),S(ce,{variant:"plain","prepend-icon":"mdi-book-open-variant",onClick:ee},{default:A(()=>[...ue[14]||(ue[14]=[z("查看版规",-1)])]),_:1})]),_:1}),S(dn,{class:"p-0 flex flex-col gap-4 max-w-[480px]"},{default:A(()=>[S(Gt,{modelValue:b(oe),"onUpdate:modelValue":ue[1]||(ue[1]=ie=>Ce(oe)?oe.value=ie:null),"max-width":"500"},{default:A(()=>[S($e,null,{default:A(()=>[S(at,null,{default:A(()=>[...ue[15]||(ue[15]=[z("版规",-1)])]),_:1}),S(We,{class:"max-h-[80vh] overflow-y-auto"},{default:A(()=>[L("div",Sye,Z(b(K)),1)]),_:1}),S(mn,{class:"bottom-0 left-0 z-10 text-center"},{default:A(()=>[S(ce,{color:"primary",onClick:ue[0]||(ue[0]=ie=>oe.value=!1)},{default:A(()=>[...ue[16]||(ue[16]=[z("关闭",-1)])]),_:1})]),_:1})]),_:1})]),_:1},8,["modelValue"]),S(bu,{"model-value":b(x),persistent:"","z-index":"9999",class:"flex items-center justify-center text-center w-full h-full"},{default:A(()=>[L("div",null,[S(jn,{indeterminate:"",size:"32",color:"primary"})])]),_:1},8,["model-value"]),b(p)?(P(),q($e,{key:0},{default:A(()=>[S(We,{class:"text-center py-8"},{default:A(()=>[L("div",Eye,[S(de,{icon:"mdi-check-circle",size:"64",color:"success",class:"mb-4"}),S(at,{class:"text-xl mb-2"},{default:A(()=>[z(Z(b(R)?"修改成功!":"发布成功!"),1)]),_:1}),L("div",wye,Z(b(R)?"您的内容已修改,正在等待审核":"您的内容已提交,正在等待审核"),1)]),S(ci,{type:"info",variant:"tonal",class:"mb-4 text-left"},{default:A(()=>[...ue[17]||(ue[17]=[L("div",{class:"font-medium mb-2"},"审核说明:",-1),L("ul",{class:"text-sm space-y-1"},[L("li",null,"• 审核通过后,您的内容将对所有用户可见"),L("li",null,"• 审核成功后可获得 10-50 积分奖励"),L("li",null,"• 积分可用于兑换会员特权、下载权限等奖励")],-1)])]),_:1}),L("div",Tye,[S(ce,{color:"primary",block:"",size:"large",onClick:Q},{default:A(()=>[...ue[18]||(ue[18]=[z("继续发布",-1)])]),_:1}),S(ce,{variant:"outlined",block:"",size:"large",onClick:le},{default:A(()=>[...ue[19]||(ue[19]=[z("查看我的发布",-1)])]),_:1})]),L("div",Cye,"帖子ID: "+Z(b(m)),1)]),_:1})]),_:1})):(P(),q($e,{key:1,class:"rounded-sm"},{default:A(()=>[S(We,null,{default:A(()=>[S(jh,{modelValue:b(r),"onUpdate:modelValue":ue[2]||(ue[2]=ie=>Ce(r)?r.value=ie:null),rows:"3",class:"mb-0","auto-grow":"",counter:"","hide-details":"",placeholder:"输入您要发布的内容"},null,8,["modelValue"]),S(_e,{modelValue:b(s),"onUpdate:modelValue":ue[3]||(ue[3]=ie=>Ce(s)?s.value=ie:null),max:b(i),"allowed-file-exts":b(E),class:"mb-4",onUploaded:W},null,8,["modelValue","max","allowed-file-exts"]),L("div",Aye,[ue[20]||(ue[20]=L("div",{class:"mb-2 text-sm text-gray-500"},"选择标签",-1)),S(J,{modelValue:b(o),"onUpdate:modelValue":ue[4]||(ue[4]=ie=>Ce(o)?o.value=ie:null),allTags:b(a),"onUpdate:allTags":ue[5]||(ue[5]=ie=>Ce(a)?a.value=ie:null)},null,8,["modelValue","allTags"])]),b(T)>0?(P(),j("div",kye,[L("div",Iye,[S(i$,{modelValue:b(u),"onUpdate:modelValue":ue[6]||(ue[6]=ie=>Ce(u)?u.value=ie:null),label:"积分出售",inset:"",color:"primary","hide-details":""},null,8,["modelValue"]),b(u)?(P(),q(St,{key:0,modelValue:b(c),"onUpdate:modelValue":ue[7]||(ue[7]=ie=>Ce(c)?c.value=ie:null),type:"number",min:1,max:b(w),label:`输入需要购买积分(1-${b(w)})`,class:"w-32","hide-details":"",density:"compact",hint:`最大可设置 ${b(w)} 积分`,"persistent-hint":""},null,8,["modelValue","max","label","hint"])):te("",!0)])])):te("",!0),b(v)?(P(),q(St,{key:1,modelValue:b(v),"onUpdate:modelValue":ue[8]||(ue[8]=ie=>Ce(v)?v.value=ie:null),label:"站点地址 (以/html/开头)",class:"mb-4",rules:[ie=>!ie||ie.startsWith("/html/")||"地址必须以/html/开头"],placeholder:"/html/","hide-details":"auto",disabled:!0},null,8,["modelValue","rules"])):te("",!0),L("div",Lye,[ue[21]||(ue[21]=L("div",{class:"mb-2 text-sm text-gray-500"},"可见范围",-1)),S(xy,{modelValue:b(d),"onUpdate:modelValue":ue[9]||(ue[9]=ie=>Ce(d)?d.value=ie:null),inline:"",class:"flex gap-4"},{default:A(()=>[S(jc,{label:"站内发布",value:0,color:"primary"}),S(jc,{label:"仅粉丝可看",value:1,color:"primary"})]),_:1},8,["modelValue"])]),S(Y,{modelValue:b(g),"onUpdate:modelValue":ue[10]||(ue[10]=ie=>Ce(g)?g.value=ie:null),rand:b(y),"onUpdate:rand":ue[11]||(ue[11]=ie=>Ce(y)?y.value=ie:null)},null,8,["modelValue","rand"]),S(fe,{title:"确定发布?",content:"提交后,审核通过即可展示",onConfirm:X},{activator:A(({props:ie})=>[S(ce,Ve({color:"primary",block:"",size:"large"},ie,{loading:b(h)}),{default:A(()=>[z(Z(b(R)?"修改":"发布"),1)]),_:1},16,["loading"])]),_:1}),b(C)>0?(P(),j("div",Dye,[S(ci,{type:"info",variant:"tonal",class:"text-sm"},{default:A(()=>[L("div",Pye,[L("span",null,[ue[22]||(ue[22]=z(" 距离下一个收费帖还需要发布 ",-1)),L("strong",null,Z(b(C)),1),ue[23]||(ue[23]=z(" 个免费帖 ",-1))])])]),_:1})])):b(T)>0?(P(),j("div",Rye,[S(ci,{type:"success",variant:"tonal",class:"text-sm"},{default:A(()=>[L("div",Oye,[L("span",null,[ue[24]||(ue[24]=z(" 您目前可以发布 ",-1)),L("strong",null,Z(b(T)),1),ue[25]||(ue[25]=z(" 个收费帖 ",-1))])])]),_:1})])):te("",!0)]),_:1})]),_:1})),b(I)?(P(),q(xe,{key:2,modelValue:b(I),"onUpdate:modelValue":ue[12]||(ue[12]=ie=>Ce(I)?I.value=ie:null),"enable-email":!0,"enable-phone":!1,onSuccess:ve},null,8,["modelValue"])):te("",!0),S(ne)]),_:1})],64)}}}),Mye=Object.freeze(Object.defineProperty({__proto__:null,default:$ye},Symbol.toStringTag,{value:"Module"})),Fye={class:"flex flex-row my-4 gap-4 justify-between"},Bye=ke({__name:"login",setup(e){const t=Tt(),{html:n}=It(),r=()=>{const i=t.currentRoute.value.query.from;i?t.push(i):t.push("/user")},s=F(()=>wl());return(i,o)=>{const a=An,l=kS,u=Mi("RouterLink");return P(),q(dn,{class:"auth-container"},{default:A(()=>[S(at,{class:"flex align-center items-center justify-center gap-2 mb-6"},{default:A(()=>[S(a,{src:b(s),style:{width:"100px",height:"100px"},"blur-background":!1},null,8,["src"])]),_:1}),S(l,{onSuccess:r}),L("div",Fye,[S(u,{to:"/auth/register"},{default:A(()=>[...o[0]||(o[0]=[z(" 没有账号?立即注册 ",-1)])]),_:1}),S(u,{to:"/auth/forget"},{default:A(()=>[...o[1]||(o[1]=[z(" 忘记密码? ",-1)])]),_:1})]),S(u,{class:"",to:b(n)("index.html")},{default:A(()=>[...o[2]||(o[2]=[z("返回首页",-1)])]),_:1},8,["to"])]),_:1})}}}),Nye=vt(Bye,[["__scopeId","data-v-782af8d0"]]),Vye=Object.freeze(Object.defineProperty({__proto__:null,default:Nye},Symbol.toStringTag,{value:"Module"})),Uye={class:"flex items-center gap-2"},jye={key:0},zye={key:1},Hye={class:"flex flex-column align-center justify-center items-center"},Gye={class:"mb-2"},Kye={class:"w-full flex flex-wrap gap-2"},o$=ke({__name:"UserCardCredits",setup(e){wr();const{user:t,refreshAuth:n,isLogin:r}=Ct(),s=M(!1),i=M(!1),o=M(!1),a=M("register"),l=F(()=>t.value?.credit||0),u=F(()=>
132{if(!t.value?.expiretime||t.value?.expiretime<new Date().getTime()/1e3)return"";const m=new Date(t.value.expiretime*1e3);return`${m.getFullYear()}-${m.getMonth()+1}-${m.getDate()}`}),c=async()=>{o.value=!0,await n(),o.value=!1},d=M(!1),f=m=>{a.value=m,d.value=!0},h=Tt(),p=()=>{h.push("/user/credit")};return(m,v)=>{const x=Uu,g=Ed,y=Cr;return P(),j(se,null,[S($e,{style:{background:"var(--yj-card-gradient)"},class:"text-white user-hl-credits-card"},{default:A(()=>[S(at,{class:"pb-2"},{default:A(()=>[L("div",Uye,[S(de,{icon:"ph:crown",size:"24"}),v[8]||(v[8]=z(" 会员卡 ",-1)),b(u)?(P(),j("span",jye,[S(ce,{color:"default",variant:"text",loading:b(o),class:"text-body-1 opacity-50 px-1"},{default:A(()=>[z(" (有效期至 "+Z(b(u))+") ",1)]),_:1},8,["loading"])])):(P(),j("span",zye,[S(ce,{color:"default",variant:"text",class:"text-body-1 opacity-50 px-1"},{default:A(()=>[...v[7]||(v[7]=[z(" (未开通) ",-1)])]),_:1})]))])]),_:1}),S(We,{class:"py-2"},{default:A(()=>[L("div",Hye,[L("div",Gye,[S(ce,{color:"default",variant:"plain",class:"px-0 text-h2 text-2xl font-weight-bold min-w-auto",loading:b(o),style:{"min-width":"unset"},onClick:c},{default:A(()=>[z(Z(b(l)??0),1)]),_:1},8,["loading"]),S(kt,{ripple:!1,variant:"plain",class:"m-0"},{default:A(()=>[...v[9]||(v[9]=[z(" 积分 ",-1)])]),_:1})])])]),_:1}),S(mn,{class:"pt-0 min-h-0 flex gap-2 w-full flex-wrap"},{default:A(()=>[L("div",Kye,[b(r)?(P(),j(se,{key:0},[S(ce,{color:"default",class:"rounded-2xl px-5 flex-1 min-w-0","prepend-icon":"ph:gift",variant:"flat",onClick:p},{default:A(()=>[...v[10]||(v[10]=[z(" 积分提现 ",-1)])]),_:1}),("isYj"in m?m.isYj:b(vu))?(P(),q(ce,{key:0,color:"default",class:"rounded-2xl px-5 flex-1 min-w-0","prepend-icon":"mdi:wallet-plus",variant:"flat",onClick:v[0]||(v[0]=_=>i.value=!0)},{default:A(()=>[...v[11]||(v[11]=[z(" 充值 ",-1)])]),_:1})):te("",!0),S(ce,{color:"primary",class:"rounded-2xl px-5 flex-1 min-w-0","prepend-icon":"mdi:plus",variant:"flat",onClick:v[1]||(v[1]=_=>s.value=!0)},{default:A(()=>[...v[12]||(v[12]=[z(" 购买会员 ",-1)])]),_:1})],64)):(P(),j(se,{key:1},[S(ce,{color:"black",class:"rounded-2xl px-5 flex-1 min-w-0","prepend-icon":"mdi:account-multiple-plus",variant:"flat",onClick:v[2]||(v[2]=_=>f("register"))},{default:A(()=>[...v[13]||(v[13]=[z(" 注册 ",-1)])]),_:1}),S(ce,{color:"primary",class:"rounded-2xl px-5 flex-1 min-w-0","prepend-icon":"mdi:account",variant:"flat",onClick:v[3]||(v[3]=_=>f("login"))},{default:A(()=>[...v[14]||(v[14]=[z(" 登录 ",-1)])]),_:1})],64))])]),_:1})]),_:1}),b(s)?(P(),q(x,{key:0,modelValue:b(s),"onUpdate:modelValue":v[4]||(v[4]=_=>Ce(s)?s.value=_:null)}
132,null,8,["modelValue"])):te("",!0),b(i)?(P(),q(g,{key:1,modelValue:b(i),"onUpdate:modelValue":v[5]||(v[5]=_=>Ce(i)?i.value=_:null),onSuccess:c},null,8,["modelValue"])):te("",!0),b(d)?(P(),q(y,{key:2,modelValue:b(d),"onUpdate:modelValue":v[6]||(v[6]=_=>Ce(d)?d.value=_:null),"initial-mode":b(a)},null,8,["modelValue","initial-mode"])):te("",!0)],64)}}}),Wye=Object.freeze(Object.defineProperty({__proto__:null,default:o$},Symbol.toStringTag,{value:"Module"})),qye={class:"mb-6"},Yye={class:"flex items-center gap-4 mb-4 justify-center text-center"},Xye={class:"relative"},Zye={key:0,class:"mb-4"},Jye={class:"flex items-center justify-between mb-2"},Qye={class:"grid grid-cols-6 gap-3"},e1e=["onClick"],t1e={class:"rounded-full overflow-hidden"},n1e={key:1,class:"mb-4"},r1e={class:"text-center text-sm text-gray-600"},a$=ke({__name:"UserProfileFormContent",props:{modelValue:{},loading:{type:Boolean}},emits:["update:modelValue","submit"],setup(e,{emit:t}){const n=e,r=t,{user:s}=Ct(),{user:i}=it(),o=F({get:()=>n.modelValue,set:k=>r("update:modelValue",k)}),a=[{title:"男",value:1},{title:"女",value:2}],l=M(null),u=M(""),c=M([]),d=M(null),f=M(!1),h=M(null),p=M(!1),m=M(0);function v(){const $=Array.from({length:1e3},(R,D)=>D+1).sort(()=>Math.random()-.5);c.value=$.slice(0,12)}function x(){c.value.length===0&&v(),f.value=!f.value}function g(){v(),d.value=null}const y=F(()=>{if(u.value)return u.value;if(d.value)return`/avatar/${d.value}`;const k=s.value?.avatar||"";return k.startsWith("/avatar/")?k:k.substring(0,1)=="/"?"":qs(k)}),_=F(()=>{if(y.value)return y.value.startsWith("blob:")?y.value:co(y.value)});function E(k){d.value=k,u.value=`/avatar/${k}`,l.value=null}function w(k){const $=k.target;if(!$.files?.length){$.value="";return}const R=$.files[0];if(R.size>5*1024*1024){je.error("头像文件不能超过5MB"),$.value="";return}l.value=R,u.value=URL.createObjectURL(R),d.value=null,$.value=""}async function T(){if(!l.value)return"";p.value=!0,m.value=0;try{const{file:k}=it();return(await Hh(k,l.value,R=>{m.value=R}))?.id||""}catch(k){throw je.error(`头像上传失败:${k}`),k}finally{p.value=!1,m.value=0}}function C(k){if(k?.preventDefault(),k?.stopPropagation(),!h.value){console.error("avatarInput ref is not available");return}h.value.click()}async function I(){let k;if(l.value)try{k=await T()}catch($){console.error("头像上传失败:",$);return}else d.value&&(k=d.value);k!==void 0&&(o.value.avatar=k),r("submit")}return(k,$)=>{const R=An;return P(),q(gl,{onSubmit:Et(I,["prevent"])},{default:A(()=>[L("div",qye,[L("div",Yye,[L("div",Xye,[S(rr,{size:80,image:b(_),icon:b(y)?void 0:"ph:user",style:{background:"#DDD"}},null,8,["image","icon"]),S(ce,{icon:"mdi-camera",size:"small",color:"primary",class:"absolute bottom-0 right-0",style:{"min-width":"32px",width:"32px",height:"32px"},type:"button",onClick:C})]),L("div",null,[S(ce,{variant:"outlined",size:"small",class:"mb-2",type:"button",onClick:C},{default:A(()=>[S(de,{icon:"mdi-upload",size:"16",class:"mr-1"}),$[2]||($[2]=z(" 上传头像 ",-1))]),_:1}),$[4]||($[4]=L("br",null,null,-1)),S(ce,{variant:"outlined",size:"small",type:"button",onClick:x},{default:A(()=>[S(de,{icon:"mdi-account-circle",size:"16",class:"mr-1"}),$[3]||($[3]=z(" 系统头像 ",-1))]),_:1})]),L("input",{ref_key:"avatarInput",ref:h,type:"file",accept:"image/*",style:{display:"none"},onChange:w},null,544)]),b(f)?(P(),j("div",Zye,[L("div",Jye,[$[6]||($[6]=L("div",{class:"text-xs text-gray-500"}," 从系统默认头像中选择一个: ",-1)),S(ce,{variant:"text",size:"x-small",onClick:g},{default:A(()=>[S(de,{icon:"mdi-shuffle",size:"16",class:"mr-1"}),$[5]||($[5]=z(" 换一批 ",-1))]),_:1})]),L("div",Qye,[(P(!0),j(se,null,Fe(b(c),D=>(P(),j("button",{key:D,type:"button",class:Ie(["relative rounded-full border focus:outline-none transition-all",b(d)===D?"border-primary ring-2 ring-primary/60 scale-105":"border-gray-300 hover:border-primary/50"]),onClick:O=>E(D)},[L("div",t1e,[S(R,{src:`/avatar/${D}`,encoded:0,width:64,height:64,class:"w-12 h-12 object-cover"},null,8,["src"])]),b(d)===D?(P(),q(de,{key:0,icon:"mdi-check-circle",color:"primary",size:"18",class:"absolute bottom-0 right-0 bg-white rounded-full translate-x-1 translate-y-1"})):te("",!0)],10,e1e))),128))])])):te("",!0),b(p)?(P(),j("div",n1e,[S(gd,{"model-value":b(m),height:"8",color:"primary",class:"mb-2"},null,8,["model-value"]),L("div",r1e," 正在上传头像... "+Z(b(m))+"% ",1)])):te("",!0)]),S(ba,null,{default:A(()=>[S(oi,{cols:"12"},{default:A(()=>[S(St,{modelValue:b(o).nickname,"onUpdate:modelValue":$[0]||($[0]=D=>b(o).nickname=D),label:"昵称",placeholder:"请输入昵称","persistent-placeholder":"","hide-details":"",rules:[D=>!!D||"请输入昵称"]},null,8,["modelValue","rules"])]),_:1}),S(oi,{cols:"12",class:"flex items-center mb-4"},{default:A(()=>[S(xy,{modelValue:b(o).sex,"onUpdate:modelValue":$[1]||($[1]=D=>b(o).sex=D),inline:"",label:"","hide-details":"","hide-spin-buttons":!0},{default:A(()=>[(P(),j(se,null,Fe(a,D=>S(jc,{key:D.value,label:D.title,value:D.value},null,8,["label","value"])),64))]),_:1},8,["modelValue"])]),_:1})]),_:1}),b(s)?.verify?.email?(P(),q(ba,{key:0},{default:A(()=>[S(oi,{cols:"12"},{default:A(()=>[S(St,{"model-value":b(s)?.email||"",label:"邮箱",readonly:"","prepend-inner-icon":"mdi-email",hint:"已绑定邮箱","persistent-hint":""},null,8,["model-value"])]),_:1})]),_:1})):te("",!0),S(ce,{block:"",color:"primary",size:"large",type:"submit",loading:e.loading||b(p),disabled:b(p)},{default:A(()=>[...$[7]||($[7]=[z(" 确认修改 ",-1)])]),_:1},8,["loading","disabled"])]),_:1})}}}),s1e=Object.freeze(Object.defineProperty({__proto__:null,default:a$},Symbol.toStringTag,{value:"Module"})),l$=ke({__name:"UserProfileForm",props:{dialog:{type:Boolean}},setup(e,{expose:t}){const n=e,r=M(!1),s=M(!1),{user:i}=Ct(),o=M({nickname:i.value.nickname,sex:i.value.sex});function a(u){const c="GHSnoVW48XYpqrBC2MNdeDKfghlmRb0QTu51LijOZaUcPAEF3stk67vwIJxyz9";if(u===0)return c[0];let d="";for(;u>0;){const f=u%62;u=Math.floor(u/62),f===0?d=c[0]+d:d=c[f]+d}return d}async function l(){s.value=!0;try{const{$api:u}=wt(),{refreshAuth:c}=Ct(),d={...o.value,...o.value.region};if(d.avatar!==void 0){const f=typeof d.avatar=="string"?parseInt(d.avatar,10):d.avatar;typeof f=="number"&&!isNaN(f)&&(f>=1&&f<=1e3?(d.raw_avatar=f,delete d.avatar):f>=1001&&(d.avatar=a(f)))}await u("user/update",{method:"POST",body:Vt(d)}),je("保存成功",{type:"success"}),r.value=!1}catch{}finally{s.value=!1}}
132return t({open:()=>r.value=!0,close:()=>r.value=!1}),(u,c)=>{const d=a$;return P(),j(se,null,[n.dialog?Ht(u.$slots,"default",{key:0,open:()=>r.value=!0}):te("",!0),n.dialog?(P(),q(Gt,{key:1,modelValue:b(r),"onUpdate:modelValue":c[1]||(c[1]=f=>Ce(r)?r.value=f:null),"max-width":"500"},{default:A(({isActive:f})=>[S($e,null,{default:A(()=>[S(at,{class:"flex items-center pr-0 border-b"},{default:A(()=>[c[3]||(c[3]=L("span",null,"修改资料",-1)),S(Mt),S(ce,{icon:"mdi:close",flat:"",variant:"plain",class:"h-full",onClick:h=>f.value=!1},null,8,["onClick"])]),_:2},1024),S(We,null,{default:A(()=>[S(d,{modelValue:b(o),"onUpdate:modelValue":c[0]||(c[0]=h=>Ce(o)?o.value=h:null),loading:b(s),onSubmit:l},null,8,["modelValue","loading"])]),_:1})]),_:2},1024)]),_:1},8,["modelValue"])):n.dialog?te("",!0):(P(),q($e,{key:2,class:"p-4"},{default:A(()=>[S(d,{modelValue:b(o),"onUpdate:modelValue":c[2]||(c[2]=f=>Ce(o)?o.value=f:null),loading:b(s),onSubmit:l},null,8,["modelValue","loading"])]),_:1}))],64)}}}),i1e=Object.freeze(Object.defineProperty({__proto__:null,default:l$},Symbol.toStringTag,{value:"Module"})),u$=ke({__name:"UserPasswordDialog",props:{onSubmit:{type:Function}},setup(e,{expose:t}){const n=M(!1),r=M(!1),s=Wt({old:"",new:"",confirm:""}),i=[d=>!!d||"请输入密码",d=>d.length>=6||"密码长度至少6位",d=>d.length<=20||"密码长度不能超过20位"],o=M(0),a=Wt({old:"",new:"",confirm:""}),l=M(!1);async function u(){if(!s.old||!s.new||!s.confirm){je("请填写完整信息",{type:"error"});return}if(s.new!==s.confirm){je("两次输入的密码不一致",{type:"error"});return}r.value=!0;try{const{$api:d}=wt();await d("user/pass",{method:"POST",body:Vt({pass:s.old,pass1:s.new,pass2:s.confirm})}),je("密码修改成功",{type:"success"}),s.old="",s.new="",s.confirm="",n.value=!1}catch{je("密码修改失败",{type:"error"})}finally{r.value=!1}}async function c(){if(!a.old||!a.new||!a.confirm){je("请填写完整信息",{type:"error"});return}if(a.new!==a.confirm){je("两次输入的密码不一致",{type:"error"});return}l.value=!0;try{await it().user.update({withdrawpwd:a.new}),je("提现密码修改成功",{type:"success"}),a.old="",a.new="",a.confirm="",n.value=!1}catch{je("提现密码修改失败",{type:"error"})}finally{l.value=!1}}return t({open:()=>n.value=!0,close:()=>n.value=!1}),(d,f)=>(P(),j(se,null,[Ht(d.$slots,"default",{open:()=>n.value=!0}),S(Gt,{modelValue:b(n),"onUpdate:modelValue":f[8]||(f[8]=h=>Ce(n)?n.value=h:null),"max-width":"420"},{default:A(({isActive:h})=>[S($e,null,{default:A(()=>[S(at,{class:"flex items-center pr-0"},{default:A(()=>[S(Hi,{modelValue:b(o),"onUpdate:modelValue":f[0]||(f[0]=p=>Ce(o)?o.value=p:null),class:"mb-2","slider-color":"primary"},{default:A(()=>[S(Sr,{class:"text-base px-6 py-2",color:"primary"},{default:A(()=>[S(de,{class:"mr-1",size:"18"},{default:A(()=>[...f[9]||(f[9]=[z(" mdi-lock-outline ",-1)])]),_:1}),f[10]||(f[10]=z(" 登录密码 ",-1))]),_:1}),S(Sr,{class:"text-base px-6 py-2",color:"primary"},{default:A(()=>[S(de,{class:"mr-1",size:"18"},{default:A(()=>[...f[11]||(f[11]=[z(" mdi-cash-lock ",-1)])]),_:1}),f[12]||(f[12]=z(" 提现密码 ",-1))]),_:1})]),_:1},8,["modelValue"]),S(Mt),S(ce,{icon:"mdi:close",flat:"",variant:"plain",class:"h-full",onClick:p=>h.value=!1},null,8,["onClick"])]),_:2},1024),S(We,null,{default:A(()=>[S(nh,{modelValue:b(o),"onUpdate:modelValue":f[7]||(f[7]=p=>Ce(o)?o.value=p:null)},{default:A(()=>[S(Mo,{value:0},{default:A(()=>[S(gl,{onSubmit:Et(u,["prevent"])},{default:A(()=>[S(St,{modelValue:b(s).old,"onUpdate:modelValue":f[1]||(f[1]=p=>b(s).old=p),label:"原始密码",placeholder:"请输入原始密码","persistent-placeholder":"",type:"password",rules:i,"prepend-inner-icon":"ph:lock-key"},null,8,["modelValue"]),S(St,{modelValue:b(s).new,"onUpdate:modelValue":f[2]||(f[2]=p=>b(s).new=p),label:"新密码",placeholder:"请输入新密码","persistent-placeholder":"",type:"password",rules:i,"prepend-inner-icon":"ph:lock-key"},null,8,["modelValue"]),S(St,{modelValue:b(s).confirm,"onUpdate:modelValue":f[3]||(f[3]=p=>b(s).confirm=p),label:"确认密码",placeholder:"请再次输入新密码","persistent-placeholder":"",type:"password",rules:i,"prepend-inner-icon":"ph:check-circle"},null,8,["modelValue"]),S(ce,{block:"",color:"primary",size:"large",type:"submit",loading:b(r),class:"mt-4"},{default:A(()=>[...f[13]||(f[13]=[z(" 确认修改 ",-1)])]),_:1},8,["loading"])]),_:1})]),_:1}),S(Mo,{value:1},{default:A(()=>[S(gl,{onSubmit:Et(c,["prevent"])},{default:A(()=>[S(St,{modelValue:b(a).old,"onUpdate:modelValue":f[4]||(f[4]=p=>b(a).old=p),label:"原提现密码",placeholder:"请输入原提现密码","persistent-placeholder":"",type:"password",rules:i,"prepend-inner-icon":"ph:lock-key"},null,8,["modelValue"]),S(St,{modelValue:b(a).new,"onUpdate:modelValue":f[5]||
132(f[5]=p=>b(a).new=p),label:"新提现密码",placeholder:"请输入新提现密码","persistent-placeholder":"",type:"password",rules:i,"prepend-inner-icon":"ph:lock-key"},null,8,["modelValue"]),S(St,{modelValue:b(a).confirm,"onUpdate:modelValue":f[6]||(f[6]=p=>b(a).confirm=p),label:"确认提现密码",placeholder:"请再次输入新提现密码","persistent-placeholder":"",type:"password",rules:i,"prepend-inner-icon":"ph:check-circle"},null,8,["modelValue"]),S(ce,{block:"",color:"primary",size:"large",type:"submit",loading:b(l),class:"mt-4"},{default:A(()=>[...f[14]||(f[14]=[z(" 确认修改 ",-1)])]),_:1},8,["loading"])]),_:1})]),_:1})]),_:1},8,["modelValue"])]),_:1})]),_:2},1024)]),_:1},8,["modelValue"])],64))}}),o1e=Object.freeze(Object.defineProperty({__proto__:null,default:u$},Symbol.toStringTag,{value:"Module"})),c$=ke({__name:"UserLogout",props:{isHorizontal:{type:Boolean}},setup(e){const t=e,{logout:n}=Ct(),r=M(!1),s=M({logout:"安全退出",cancel:"取消","logout-message":"您确定要退出登录吗?"}),i=[{title:s.value.cancel,icon:"ph:x",value:"no"},{title:s.value.logout,icon:"ph:sign-out",value:"yes"}],o=async()=>{r.value=!0;try{await n()}catch(a){console.error("退出登录失败:",a)}finally{r.value=!1}};return(a,l)=>(P(),q(zo,{"max-height":400},{activator:A(({props:u})=>[a.$slots.default?Ht(a.$slots,"default",{key:1,props:u}):(P(),q(Rt,Ve({key:0},u,{"prepend-icon":"ph:sign-out","append-icon":t.isHorizontal?void 0:"ph:caret-right",title:b(s).logout,class:{"horizontal-item":!!t?.isHorizontal}}),null,16,["append-icon","title","class"]))]),default:A(({isActive:u})=>[S($e,{class:"rounded-b-none"},{default:A(()=>[S(at,null,{default:A(()=>[z(Z(b(s).logout),1)]),_:1}),S(We,{class:"text-center"},{default:A(()=>[z(Z(b(s)["logout-message"]),1)]),_:1}),S(mn,{class:"justify-center flex pb-8"},{default:A(()=>[(P(),j(se,null,Fe(i,c=>S(ce,{key:c.value,class:"flex-1","prepend-icon":c.icon,color:c.value==="yes"?"primary":"default",loading:b(r),onClick:async()=>{c.value==="yes"&&await o(),u.value=!1}},{default:A(()=>[z(Z(c.title),1)]),_:2},1032,["prepend-icon","color","loading","onClick"])),64))]),_:2},1024)]),_:2},1024)]),_:3}))}}),a1e=Object.freeze(Object.defineProperty({__proto__:null,default:c$},Symbol.toStringTag,{value:"Module"})),d$=ke({__name:"SettingTheme",props:{isHorizontal:{type:Boolean}},setup(e){const t=e,{theme:n}=mS(),r=[{title:"暗黑主题",icon:"ph:moon-duotone",value:"dark"},{title:"明亮主题",icon:"ph:sun-duotone",value:"light"},{title:"跟随系统",icon:window.matchMedia("(prefers-color-scheme: dark)").matches?"ph:moon-duotone":"ph:sun-duotone",value:"system"}],s=F(()=>r.find(o=>o.value===n.value)),i=function(o){localStorage.setItem("userSetTheme","1"),n.value=o};return(o,a)=>(P(),q(zo,{"max-height":400},{activator:A(({props:l})=>[S(Rt,Ve(l,{"append-icon":t.isHorizontal?void 0:"ph:caret-right","prepend-icon":b(s).icon,title:b(s).title,class:{"horizontal-item":!!t?.isHorizontal}}),null,16,["append-icon","prepend-icon","title","class"])]),default:A(({isActive:l})=>[S($e,{class:"rounded-b-none"},{default:A(()=>[S(vr,{color:"primary",items:r,selected:[b(n)],"onUpdate:selected":u=>{i(u[0]),l.value=!1}},null,8,["selected","onUpdate:selected"])]),_:2},1024)]),_:1}))}}),l1e=Object.freeze(Object.defineProperty({__proto__:null,default:d$},Symbol.toStringTag,{value:"Module"})),f$=Ws(()=>{const e=it(),{isLogin:t}=Ct(),n=M(!1);let r=null;const s=6e4;async function i(){if(!t.value){n.value=!1;return}try{const l=await e.user.notifyStatus();if(l){const{notify:u}=l;n.value=u||!1}}catch{}}function o(){r||t.value&&(i(),r=fi(()=>{i()},s))}function a(){r&&(clearInterval(r),r=null),n.value=!1}return be(t,l=>{l?o():a()},{immediate:!0}),Uf(document,"visibilitychange",()=>{document.visibilityState==="visible"&&t.value&&i()}),{hasNotify:n,fetchNotifyStatus:i,startPolling:o,stopPolling:a}}),u1e={class:"px-2"},c1e={class:"flex justify-between"},d1e={class:"text-h6"},f1e={key:0,class:"opacity-50"},h1e={class:"mx-4"},p1e={class:"flex items-center"},m1e=["href"],v1e=ke({__name:"index",setup(e){const{user:t,isLogin:n,refreshAuth:r}=Ct();bj();const s=F(()=>Rr()||""),i=It(),{hasNotify:o}=f$();F(()=>t.value?.nickname||t.value?.username||"未登录");const a=F(()=>(On()?.mail.dz||"").toUpperCase()),{version:l}=Zr().public,u=M(!1),c=M(!1),d=M(!1),{$device:f}=wt(),h=F(()=>f.isIOS()),p=async()=>
132{if(!n.value)return je.error("请先登录"),await v.push(localePath("/auth/login"));if(u.value)return;const D=it();try{u.value=!0;const{data:O,extend:B}=await D.user.sign();B?.credit>0&&await r(),je.success(O)}finally{u.value=!1}},m=F(()=>[{label:"观看历史",icon:"ph:book-bookmark",to:"/user/history",value:t.value?.novel_favorites||0},{label:"我的收藏",icon:"ph:heart",to:"/user/fav",value:t.value?.image_favorites||0},{label:"我的发布",icon:"ph:file-text",to:"/user/timeline?tab=posts",value:t.value?.post_count||0},{label:"生成历史",icon:"ph:magic-wand",to:"/user/ai-history",value:t.value?.ai_task_count||0}]);F(()=>{if(!t.value?.vip)return{type:"free",label:"普通用户"};const D=Date.now()/1e3;return t.value.expiretime>D?{type:"active",label:"VIP会员"}:{type:"expired",label:"VIP已过期"}});const v=Tt();F(()=>t.value?.vip);const x=M(!0),g=()=>{const{copyText:D}=Pa(),O=On().share?.vod?.text||[],B=O[Math.floor(Math.random()*O.length)]||"为你推荐一个非常棒的网站";try{D(B+" "+location.href),je.success("复制成功, 请粘贴分享给你的QQ/微信等好友吧")}catch{je.error("复制失败")}},y=M(!1),_=M(!1),E=M(!1),w=M(null),T=()=>{n.value?w.value?.open():_.value=!0},C=()=>{if(!n.value){je.error("请先登录");return}E.value=!0},I=()=>{je.success("绑定成功"),r()},k=F(()=>[s.value!="hl"?{icon:"mdi-bell",title:"通知中心",to:"/user/notify",showNotifyBadge:!0}:!1,{icon:"ph:user-circle",title:"修改资料",isProfile:!0},{icon:"ph:lock",title:"修改密码",isPassword:!0},t.value.verify?.email?!1:{icon:"mdi-email",title:"绑定邮箱",isBindEmail:!0}].filter(Boolean)),$=F(()=>[s.value!="hl"?{icon:"mdi-camera-outline",title:"自拍社区",to:"/html/post"}:!1,{icon:"mdi-image",title:"保存网址,防失联",click:()=>{c.value=!0}},h.value?{icon:"mdi-monitor-cellphone",title:"添加到桌面",to:i.html("webclip.html")}:!1,{icon:"mdi-share-variant",title:"分享网址",click:()=>{g()}},{icon:"mdi-download",title:"下载APP",click:()=>{d.value=!0}},{title:"返回首页",icon:"ph:house",click:()=>{Tt().push("/")}},{title:"清理缓存",icon:"ph:trash",click:()=>{},hidden:!0},{icon:"ph:chat",title:"留言反馈",to:"#",hidden:!0},{icon:"ph:question",title:"常见问题",to:"#",hidden:!0}].filter(Boolean)),R=F(()=>[{key:"isstar",icon:"ph:star",label:"会员",class:"vip-span-star",show:t.value?.vip}]);return(D,O)=>{const B=Ra,U=o$,N=l$,V=u$,H=c$,re=d$,W=Cr,X=tw,Q=Zy,le=s0,ve=$a;return P(),j(se,null,[b(x)?(P(),q(dn,{key:0,class:"p-0 flex flex-col gap-3 max-w-[480px]"},{default:A(()=>[S($e,{style:{"border-radius":"0 0 40px 40px !important",background:"var(--yj-header-gradient)"},class:"h-auto pt-0 pb-8 mb-4 text-white user-hl-profile-card"},{default:A(()=>[S(Rt,{subtitle:`${b(t)?.nickname?"昵称:"+b(t).nickname:"点击登录"}`,"append-icon":"ph:caret-right",onClick:T},{prepend:A(()=>[L("div",u1e,[b(t)&&typeof b(t)=="object"?(P(),q(B,{key:0,user:b(t),size:60,clickable:!1},null,8,["user"])):(P(),q(rr,{key:1,icon:"ph:user",size:60,style:{"font-size":"30px",background:"transparent"},class:"text-white"}))])]),title:A(()=>[z(Z(b(t)?.username||"未登录")+" ",1),(P(!0),j(se,null,Fe(b(R),(oe,K)=>(P(),j(se,null,[oe.show?(P(),j("span",{key:oe.key,class:Ie(["vip-span",oe.class])},[S(de,{size:"small",icon:oe.icon,class:"vip-icon"},null,8,["icon"]),z(" "+Z(oe.label),1)],2)):te("",!0)],64))),256))]),_:1},8,["subtitle"])]),_:1}),S($e,{class:"-mt-14 mx-4"},{default:A(()=>[S(We,{class:"w-full p-0"},{default:A(()=>[L("div",c1e,[(P(!0),j(se,null,Fe(b(m),(oe,K)=>(P(),q(ce,{key:K,class:"text-center flex-1",to:oe.to,stacked:""},{default:A(()=>[S(de,{icon:oe.icon,color:"primary",class:"mb-1"},null,8,["icon"]),L("div",d1e,[z(Z(oe.label)+" ",1),oe.value>0?(P(),j("span",f1e,"("+Z(oe.value)+")",1)):te("",!0)])]),_:2},1032,["to"]))),128))])]),_:1})]),_:1}),L("div",h1e,[S(U)]),S($e,{class:"mx-4"},{default:A(()=>[S(L4,null,{prepend:A(()=>[S(de,{icon:"ph:calendar-check",color:"primary"})]),append:A(()=>[S(ce,{color:"primary",variant:"tonal",size:"small",loading:b(u),"prepend-icon":"mdi:calendar-star",onClick:p},{default:A(()=>[...O[5]||(O[5]=[z(" 立即签到 ",-1)])]),_:1},8,["loading"])]),default:A(()=>[S(at,null,{default:A(()=>[...O[4]||(O[4]=[z("每日签到",-1)])]),_:1})]),_:1}),S(We,null,{default:A(()=>[...O[6]||(O[6]=[L("div",{class:"text-caption"}," 连续签到可获得更多积分奖励,连续签到 15 天即可获
132得体验会员一天。 ",-1)])]),_:1})]),_:1}),b(n)?(P(),j(se,{key:0},[O[9]||(O[9]=L("div",{class:"px-4"},[L("div",{class:"flex text-subtitle-1"}," 账号设置 ")],-1)),S($e,{class:"mx-4"},{default:A(()=>[S(vr,{class:Ie(["p-0",{"horizontal-list-grid":b(y)}])},{default:A(()=>[(P(!0),j(se,null,Fe(b(k),(oe,K)=>(P(),j(se,{key:K},[oe.isProfile?(P(),q(N,{key:0,dialog:""},{default:A(({open:ee})=>[S(Rt,{"prepend-icon":oe.icon,title:oe.title,class:Ie({"horizontal-item":b(y)}),"append-icon":b(y)?void 0:"ph:caret-right",onClick:ee},null,8,["prepend-icon","title","class","append-icon","onClick"])]),_:2},1024)):oe.isPassword?(P(),q(V,{key:1},{default:A(({open:ee})=>[S(Rt,{"prepend-icon":oe.icon,title:oe.title,class:Ie({"horizontal-item":b(y)}),"append-icon":b(y)?void 0:"ph:caret-right",onClick:ee},null,8,["prepend-icon","title","class","append-icon","onClick"])]),_:2},1024)):oe.isBindEmail?(P(),q(Rt,{key:2,"prepend-icon":oe.icon,title:oe.title,class:Ie({"horizontal-item":b(y)}),"append-icon":b(y)?void 0:"ph:caret-right",onClick:C},null,8,["prepend-icon","title","class","append-icon"])):oe.isLogout?(P(),q(H,{key:3,"is-horizontal":b(y)},null,8,["is-horizontal"])):oe.isTheme?(P(),q(re,{key:4,"is-horizontal":b(y)},null,8,["is-horizontal"])):(P(),q(Rt,{key:5,"prepend-icon":oe.icon,title:oe.title,to:oe.to,class:Ie({"horizontal-item":b(y)})},{append:A(()=>[L("div",p1e,[oe.showNotifyBadge&&b(o)?(P(),q(kt,{key:0,size:"x-small",color:"error",class:"mr-2"},{default:A(()=>[...O[7]||(O[7]=[z(" 新通知 ",-1)])]),_:1})):te("",!0),b(y)?te("",!0):(P(),q(de,{key:1},{default:A(()=>[...O[8]||(O[8]=[z(" ph:caret-right ",-1)])]),_:1}))])]),_:2},1032,["prepend-icon","title","to","class"]))],64))),128))]),_:1},8,["class"])]),_:1})],64)):te("",!0),O[11]||(O[11]=L("div",{class:"px-4"},[L("div",{class:"text-subtitle-1"}," 帮助与反馈 ")],-1)),S($e,{class:"mx-4 mb-4"},{default:A(()=>[S(We,{class:"text-center text-sm text-grey"},{default:A(()=>[O[10]||(O[10]=z(" 获取最新访问地址,发任意邮件至:",-1)),L("a",{href:"mailto:"+b(a)+"?subject=NewAddress",style:{color:"red"},target:"_blank"},Z(b(a)),9,m1e)]),_:1}),S(zt),S(vr,{class:Ie(["p-0",{"horizontal-list-grid":b(y)}])},{default:A(()=>[(P(!0),j(se,null,Fe(b($),(oe,K)=>(P(),j(se,{key:K},[oe.hidden?te("",!0):(P(),q(Rt,{key:0,"prepend-icon":oe.icon,title:oe.title,to:oe.to,class:Ie({"horizontal-item":b(y)}),"append-icon":b(y)?void 0:"ph:caret-right",onClick:oe.click},null,8,["prepend-icon","title","to","class","append-icon","onClick"])),!oe.hidden&&!b(y)?(P(),q(zt,{key:1})):te("",!0)],64))),128)),S(zt),S(re,{"is-horizontal":b(y)},null,8,["is-horizontal"]),b(n)?(P(),j(se,{key:0},[S(zt),S(H,{"is-horizontal":b(y)},null,8,["is-horizontal"])],64)):te("",!0)]),_:1},8,["class"])]),_:1}),S(W,{modelValue:b(_),"onUpdate:modelValue":O[0]||(O[0]=oe=>Ce(_)?_.value=oe:null),"initial-mode":"register"},null,8,["modelValue"]),S(X,{modelValue:b(c),"onUpdate:modelValue":O[1]||(O[1]=oe=>Ce(c)?c.value=oe:null)},null,8,["modelValue"]),S(Q,{modelValue:b(d),"onUpdate:modelValue":O[2]||(O[2]=oe=>Ce(d)?d.value=oe:null)},null,8,["modelValue"]),b(E)?(P(),q(le,{key:1,modelValue:b(E),"onUpdate:modelValue":O[3]||(O[3]=oe=>Ce(E)?E.value=oe:null),"enable-phone":!1,"enable-email":!0,closeable:!0,onSuccess:I},null,8,["modelValue"])):te("",!0),S(N,{ref_key:"profileFormRef",ref:w,dialog:""},null,512)]),_:1})):te("",!0),S(ve)],64)}}}),g1e=vt(v1e,[["__scopeId","data-v-88bba157"]]),y1e=Object.freeze(Object.defineProperty({__proto__:null,default:g1e},Symbol.toStringTag,{value:"Module"})),x1e={class:"my-2 text-center text-sm"},b1e={class:"font-bold text-primary"},_1e={class:"flex gap-4"},S1e={class:"mt-4 flex gap-2"},E1e={class:"flex flex-row my-4 gap-4 justify-between"},w1e=ke({__name:"forget",setup(e){const t=M({source:"",password:"",password2:"",_captcha:"",code:""}),n=F(()=>wl()),{html:r}=It(),s=M(!1),i=M(!1),o=M(Date.now()),a=M(!1),l=M(0);let u=null;const c=M(!1),d=M(1);function f(){l.value=60,u=fi(()=>{l.value--,l.value<=0&&(clearInterval(u),u=null)},1e3)}async function h(){if(!t.value.source){je("请填写邮箱",{type:"error"});return}if(!t.value._captcha||t.value._captcha.length!==4){je("请填写图形验证码",{type:"error"});return}if(l.value>0)return;a.value=!0;const{user:g}=it();try{await g.forgetcode({source:t.value.source,_captcha:t.value._captcha}),je("验证码已发送,请查收邮箱",{type:"success"}),f(),c.value=!0,d.value=2}catch(y){je(y?.data||"发送失败",{type:"error"}),o.value=Date.now()}finally{a.value=!1}}const p=[g=>!!g||"请输入邮箱",g=>/^[a-zA-Z0-9._%+-]+@[a-zA-Z0-9.-]+\.[a-zA-Z]{2,}$/.test(g)||"请输入有效的邮箱地址"],m=[g=>!!g||"请输入密码",g=>g.length>=6||"密码长度至少6位",g=>g.length<=20||"密码长度不能超过20位"];async function v(){if(!t.value.source||!t.value.password||!t.value.password2||!t.value.code){je("请填写完整信息",{type:"error"});return}if(t.value.password!==t.value.password2){je("两次输入的密码不一致",{type:"error"});return}try{if(s.value)return;s.value=!0;const{user:g}=it();await g.forget({source:t.value.source,code:t.value.code,password:t.value.password,password2:t.value.password2}),je("密码修改成功,请返回登录",{type:"success"}),Ah("/auth/login")}
132catch(g){g?.error===403&&(i.value=!0),g?.error===404&&(o.value=Date.now())}finally{s.value=!1}}function x(){d.value=1,c.value=!1,t.value.code="",t.value.password="",t.value.password2=""}return(g,y)=>{const _=An,E=qy,w=Mi("RouterLink");return P(),q(dn,{class:"auth-container"},{default:A(()=>[S(at,{class:"flex align-center items-center justify-center gap-2 mb-6"},{default:A(()=>[S(_,{src:b(n),style:{width:"100px",height:"100px"},"blur-background":!1},null,8,["src"])]),_:1}),S($e,{class:"pa-6 rounded-lg elevation-3"},{default:A(()=>[b(d)===1?(P(),q(gl,{key:0,onSubmit:Et(h,["prevent"])},{default:A(()=>[S(St,{modelValue:b(t).source,"onUpdate:modelValue":y[0]||(y[0]=T=>b(t).source=T),label:"邮箱",type:"email",placeholder:"请输入邮箱","prepend-inner-icon":"ph:envelope","persistent-placeholder":"",rules:p,class:"mb-2"},null,8,["modelValue"]),S(E,{rand:b(o),"onUpdate:rand":y[1]||(y[1]=T=>Ce(o)?o.value=T:null),randModifiers:{lazy:!0},modelValue:b(t)._captcha,"onUpdate:modelValue":y[2]||(y[2]=T=>b(t)._captcha=T)},null,8,["rand","modelValue"]),S(ce,{disabled:!b(t).source||!b(t)._captcha||b(l)>0,loading:b(a),color:"primary",size:"large",block:"",onClick:h},{default:A(()=>[z(Z(b(l)>0?`${b(l)}s后重试`:"获取验证码"),1)]),_:1},8,["disabled","loading"])]),_:1})):(P(),q(gl,{key:1,onSubmit:Et(v,["prevent"])},{default:A(()=>[L("div",x1e,[y[6]||(y[6]=z(" 正在为 ",-1)),L("span",b1e,Z(b(t).source),1),y[7]||(y[7]=z(" 重置密码 ",-1))]),S(St,{modelValue:b(t).code,"onUpdate:modelValue":y[3]||(y[3]=T=>b(t).code=T),label:"输入邮箱收到的验证码",placeholder:"输入邮箱收到的验证码","prepe
132nd-inner-icon":"ph:key",maxlength:"6",class:"mb-2"},null,8,["modelValue"]),L("div",_1e,[S(St,{modelValue:b(t).password,"onUpdate:modelValue":y[4]||(y[4]=T=>b(t).password=T),label:"新密码",type:"password",placeholder:"请输入新密码","persistent-placeholder":"","prepend-inner-icon":"ph:lock",rules:m},null,8,["modelValue"]),S(St,{modelValue:b(t).password2,"onUpdate:modelValue":y[5]||(y[5]=T=>b(t).password2=T),label:"确认密码",type:"password",placeholder:"请再次输入","persistent-placeholder":"","prepend-inner-icon":"ph:lock",rules:m},null,8,["modelValue"])]),L("div",S1e,[S(ce,{color:"grey",size:"large",variant:"plain",disabled:b(s),onClick:x},{default:A(()=>[...y[8]||(y[8]=[z(" 返回上一步 ",-1)])]),_:1},8,["disabled"]),S(ce,{block:"",color:"primary",size:"large",type:"submit",loading:b(s),class:"text-center"},{default:A(()=>[...y[9]||(y[9]=[z(" 重置密码 ",-1)])]),_:1},8,["loading"])])]),_:1}))]),_:1}),L("div",E1e,[S(w,{class:"",to:b(r)("index.html")},{default:A(()=>[...y[10]||(y[10]=[z("[返回首页]",-1)])]),_:1},8,["to"]),S(w,{to:"/auth/register"},{default:A(()=>[...y[11]||(y[11]=[z(" [立即注册] ",-1)])]),_:1}),S(w,{to:"/auth/login"},{default:A(()=>[...y[12]||(y[12]=[z(" [立即登录] ",-1)])]),_:1})])]),_:1})}}}),T1e=vt(w1e,[["__scopeId","data-v-3331109f"]]),C1e=Object.freeze(Object.defineProperty({__proto__:null,default:T1e},Symbol.toStringTag,{value:"Module"})),A1e={class:"placeholder-wrapper"},k1e={key:0,class:"image-overlay"},I1e={class:"views-count"},L1e={key:1,class:"placeholder-wrapper"},D1e=ke({__name:"PicCard",props:{item:{},loading:{type:Boolean},target:{}},emits:["image-loaded"],setup(e,{emit:t}){const n=e,r=M(null),s=M(!1),i=M(1),o=M(!1),a=M(),l=t;ft(()=>{if(!a.value)return;const p=new IntersectionObserver(([m])=>{m.isIntersecting&&(o.value=!0,p.disconnect())},{rootMargin:"100px 0px",threshold:.1});p.observe(a.value.$el),cn(()=>{p.disconnect()})});const u=p=>(p?.cover||"").replace(/^https?:\/\/[^/]*/ig,"")+"?cover/0",c=F(()=>n.item||{}),d=F(()=>It().detail("pic",c.value.id||c.value.eid||c.value.param)),f=F(()=>c.value.width&&c.value.height?{paddingTop:`${c.value.height/c.value.width*100}%`}:{paddingTop:`${1/i.value*100}%`}),h=p=>{const{target:m,status:v}=p;if(v==="success"&&m){s.value=!0;const x=m.naturalWidth||m.width,g=m.naturalHeight||m.height;x&&g&&(i.value=x/g,l("image-loaded",{width:x,height:g}))}};return(p,m)=>{const v=An;return P(),q($e,Ve({ref_key:"cardRef",ref:a,class:"pic-card cursor-pointer",loading:e.loading,to:b(d),tag:"a",target:n.target,rel:"opener"},p.$attrs),{default:A(()=>[L("div",{class:"pic-wrapper",style:Qe(b(f))},[b(o)?(P(),q(v,{key:0,ref_key:"imgRef",ref:r,src:u(b(c)),class:"rounded-lg pic-cover",encoded:"1",contain:!1,"aspect-ratio":b(i),cover:"","blur2-background":"",loading:"lazy",decoding:"async",onLoad:h},{placeholder:A(()=>[L("div",A1e,[S(Hs,{type:"image","aspect-ratio":b(i)},null,8,["aspect-ratio"])])]),default:A(()=>[b(c).allplays>0?(P(),j("div",k1e,[L("div",I1e,Z(("formatNumber"in p?p.formatNumber:b(Jy))(b(c).allplays)||0)+" 次浏览 ",1)])):te("",!0)]),_:1},8,["src","aspect-ratio"])):(P(),j("div",L1e,[S(Hs,{type:"image","aspect-ratio":b(i)},null,8,["aspect-ratio"])]))],4),S(at,{class:"card-title text-sm py-0 px-1 line-clamp-2 whitespace-normal h-12 opacity-90"},{default:A(()=>[z(Z(b(c).subtitle)+" "+Z(b(c).title),1)]),_:1})]),_:1},16,["loading","to","target"])}}}),h$=vt(D1e,[["__scopeId","data-v-7f47dcfd"]]),P1e=Object.freeze(Object.defineProperty({__proto__:null,default:h$},Symbol.toStringTag,{value:"Module"})),R1e={key:0,class:"grid gap-2"},O1e=ke({__name:"PicGrid",props:{items:{},loading:{type:Boolean}},setup(e){const t=e,n=M(null),r=M(!1),s=M(new Map);ft(()=>{r.value=window?.innerWidth<768});const i=()=>{typeof window>"u"||(r.value=window.innerWidth<768,u())},o=F(()=>r.value?2:4),a=F(()=>{const f=Array.from({length:o.value},()=>[]);return t.items.forEach((h,p)=>{const m=p%o.value;f[m].push(h)}),f}),l=M(a.value),u=async()=>{if(await tt(),s.value.size===0){l.value=a.value;return}const f=Array.from({length:o.value},()=>[]),h=new Array(o.value).fill(0);
132t.items.forEach(p=>{const m=s.value.get(p.id);if(!m)return;const v=m.offsetWidth,x=p.width/p.height||1,g=v/x+60,y=Math.min(...h),_=h.indexOf(y);f[_].push(p),h[_]+=g+16}),l.value=f},c=async(f,h)=>{f.width=h?.width||0,f.height=h?.height||0,await u()},d=(f,h)=>{f&&h.id&&s.value.set(h.id,f)};return ft(async()=>{typeof window<"u"&&window.addEventListener("resize",i),i()}),Er(()=>{typeof window<"u"&&window.removeEventListener("resize",i)}),be(()=>t.items,async()=>{await tt(),await u()},{deep:!0}),be(o,async()=>{await u()}),be(()=>s.value.size,async f=>{f>0&&await u()}),(f,h)=>{const p=Sd,m=h$;return t.loading?(P(),j("div",R1e,[(P(),j(se,null,Fe(4,v=>S(p,{key:"skeleton-"+v})),64))])):(P(),j("div",{key:1,ref_key:"containerRef",ref:n,class:"masonry-grid"},[(P(!0),j(se,null,Fe(b(l),(v,x)=>(P(),j("div",{key:x,class:"masonry-column"},[(P(!0),j(se,null,Fe(v,g=>(P(),j("div",{key:g.id,ref_for:!0,ref:y=>d(y,g),class:"masonry-item"},[S(m,Ve({item:g},{ref_for:!0},f.$attrs,{onImageLoaded:c}),null,16,["item"])]))),128))]))),128))],512))}}}),sw=vt(O1e,[["__scopeId","data-v-6b2d2dac"]]),$1e=Object.freeze(Object.defineProperty({__proto__:null,default:sw},Symbol.toStringTag,{value:"Module"}));function kd(e){return Ws(()=>{const n=it()[e],r=M([]),s=M(!1),i=M(1),o=M(1),a=M(0),l=M(""),u=F(()=>r.value.length===0),c=F(()=>i.value===1),d=F(()=>i.value>=o.value),f=v=>`${e}_${v.order}_${v.page}_${v.cid||"all"}`;return{items:r,loading:s,currentPage:i,pageCount:o,isEmpty:u,isFirstPage:c,isLastPage:d,loadData:async v=>{if(s.value)return;const x=Date.now(),g=f(v);if(g===l.value&&x-a.value<2e3){console.log("防止重复请求");return}s.value=!0,a.value=x,l.value=g;try{let y={};v?.page===1&&(y={cache:{ttl:"week,click,month,fav".search(v?.order||"default")>-1?1800:300,compress:!0,cacheable:C=>C?.error===0}});const _=await n.list({order:v.order,page:v.page,cid:v?.cid||v?.id},y),E=_[`${e}List`]||_.list,{pageCount:w}=_;return r.value=E.map(T=>({...T,commandText:void 0,_id:T.id||T.eid||T.param||Math.random().toString(36)})),o.value=~~w||Math.ceil(_.total/(_?.size||20)),_}catch(y){throw console.error(`加载${e}数据出错:`,y),y}finally{s.value=!1}},clearData:()=>{r.value=[],i.value=1,o.value=1,l.value="",a.value=0},preloadNextPage:async()=>{if(d.value||s.value)return;const v=i.value+1,x={order:"update",page:v,cid:void 0};try{await n.list({order:x.order,page:x.page,cid:x.cid},{cache:{ttl:300,compress:!0,cacheable:g=>g?.error===0}}),console.log(`预加载第${v}页成功`)}catch{console.log("预加载失败,但不影响用户体验")}}}})}const M1e=kd("vod"),F1e=kd("pic"),B1e=kd("nvl"),N1e=kd("sj"),V1e=kd("down"),U1e=kd("actor");function j1e(e){return{vod:M1e,pic:F1e,nvl:B1e,sj:N1e,down:V1e,actor:U1e}[e]()}const z1e={ref:"dataListRef"},H1e={key:0,class:"pagination-pc py-4"},G1e={key:1,class:"pagination-mobile py-4 my-2 rounded-md"},K1e={class:"grid grid-cols-4 gap-2 justify-between items-center px-0 py-3"},W1e=["disabled"],q1e=["disabled"],Y1e=["value"],X1e=["disabled"],Z1e=["disabled"],J1e={key:0,class:"loading-icon"},Q1e=ke({__name:"ListTabContent",props:{type:{},cid:{},order:{},page:{}},emits:["page-change","data-loaded"],setup(e,{emit:t}){const n=e,{items:r,loading:s,currentPage:i,pageCount:o,loadData:a}=j1e(n.type),l=t,u=M(wt().$device.isMobile()),c=F(()=>Is(n.type)?.find(x=>x.id===n.cid));async function d(){const x={order:n.order,page:n.page,cid:c.value?.cid||c.value?.id||n?.cid};i.value!==n.page&&(i.value=n.page),await a(x),l("data-loaded")}be(()=>({order:n.order,page:n.page,cid:n.cid}),async(x,g)=>{(x.order!==g?.order||x.page!==g?.page||x.cid!==g?.cid)&&await d()},{deep:!0,immediate:!0});const f=x=>{x===void 0&&(x=i.value),l("page-change",x)},h=F(()=>({vod:{pc:6,mobile:2},pic:{pc:5,mobile:2},nvl:{pc:1,mobile:1},sj:{pc:2,mobile:1},down:{pc:4,mobile:2},actor:{pc:8,mobile:4}})[n.type]),p=()=>{const x=Math.floor(Math.random()*o.value)+1;f(x)},m=F(()=>h.value.pc),v=F(()=>h.value.mobile);return(x,g)=>{const y=sw,_=Ys;return P(),j(se,null,[L("div",z1e,[e.type==="pic"?(P(),q(y,{key:0,items:b(r),loading:b(s)},null,8,["items","loading"])):(P(),q(Ic,{key:1},[(P(),q(_,Ve({key:`${n.order}-${n.page}-${n.cid}`,type:n.type,items:b(r),loading:b(s),skeleton:!0,"pc-cols":b(m),"mobile-cols":b(v)},x.$attrs),null,16,["type","items","loading","pc-cols","mobile-cols"]))],1024))],512),b(u)?(P(),j("div",G1e,[L("div",K1e,[L("button",{disabled:b(i)<=1||b(s),class:"pagination-btn",onClick:g[1]||(g[1]=E=>f(b(i)-1))}," 上一页 ",8,W1e),pn(L("select",{"onUpdate:modelValue":g[2]||(g[2]=E=>Ce(i)?i.value=E:null),class:"page-select",disabled:b(s),onChange:g[3]||(g[3]=E=>f())},[(P(!0),j(se,null,Fe(b(o),E=>(P(),j("option",{key:E,value:E},Z(E)+"/"+Z(b(o)),9,Y1e))),128))],40,q1e),[[Ch,b(i)]]),L("button",{disabled:b(i)>=b(o)||b(s),class:"pagination-btn",onClick:g[4]||(g[4]=E=>f(b(i)+1))}," 下一页 ",8,X1e),L("button",{class:"pagination-btn random-btn",disabled:b(s),variant:"plain",ripple:!1,flat:"",onClick:p}
132,[b(s)?(P(),j("i",J1e)):te("",!0),g[5]||(g[5]=z(" 随机翻 ",-1))],8,Z1e)])])):(P(),j("div",H1e,[S(Qh,{modelValue:b(i),"onUpdate:modelValue":[g[0]||(g[0]=E=>Ce(i)?i.value=E:null),f],length:b(o),"total-visible":8,disabled:b(s)},null,8,["modelValue","length","disabled"])]))],64)}}}),p$=vt(Q1e,[["__scopeId","data-v-a67b2b9a"]]),exe=Object.freeze(Object.defineProperty({__proto__:null,default:p$},Symbol.toStringTag,{value:"Module"})),ju=ke({__name:"DataListPage",props:{type:{},hideTabs:{type:Boolean}},setup(e){const t=e;Fn();const n=Tt(),r=mt("routeParams",{cid:"",page:1,order:"update"}),{cid:s,page:i,order:o}=r,a=M({}),l=F(()=>Is(t.type)?.find(g=>g.id==s)),u={vod:[l.value?.name||"最新","日榜","周榜","月榜","收藏榜","总榜"],pic:[l.value?.name||"最新","热门","收藏"],nvl:[l.value?.name||"最新","热门","收藏"],sj:[l.value?.name||"最新"+s,"日榜","周榜","月榜","收藏榜"],down:[l.value?.name||"最新"+s,"周榜","月榜","年榜","总榜"],actor:[l.value?.name||"最新"+s,"周榜","月榜","年榜","总榜"]},c={vod:["update","click","week","month","favs","rank"],pic:["update","click","favs"],nvl:["update","click","favs"],sj:["update","click","week","month","feeds"],down:["update","week","month","year","total"],actor:["update","week","month","year","total"]},d=M(c[t.type].indexOf(o||"update")||0),f=F(()=>u[t.type]);function h(g){return It().list(t.type,g)}async function p(g){if(d.value===g&&Number(i)===1)return;const y=c[t.type][g],_=h({...r,order:y,page:1});await n.replace(_)}function m(g){p(g)}async function v(g){if(Number(i)===g)return;const y=h({...r,order:c[t.type][d.value],page:g});await n.replace(y)}function x(){i>1&&document.querySelectorAll(".v-tabs")[0]?.scrollIntoView({behavior:"smooth"})}return(g,y)=>{const _=gs,E=kl,w=p$;return P(),q(dn,{class:"p-2"},{default:A(()=>[e.hideTabs?te("",!0):(P(),q(_,{key:0,modelValue:b(d),"onUpdate:modelValue":y[0]||(y[0]=T=>Ce(d)?d.value=T:null),tabs:b(f),loading:b(a),class:"mb-4",onTabClick:m},null,8,["modelValue","tabs","loading"])),S(E,{page:"index",place:"text2"}),(P(),q(w,Ve({key:`${t.type}-${b(r)?.order||""}`,type:e.type,cid:b(s),order:e.hideTabs?b(o):c[t.type][b(d)]||void 0,page:Number(b(i))||1},g.$attrs,{onPageChange:v,onDataLoaded:x}),null,16,["type","cid","order","page"]))]),_:1})}}}),txe=Object.freeze(Object.defineProperty({__proto__:null,default:ju},Symbol.toStringTag,{value:"Module"})),nxe={class:"px-4 mt-2 mb-2 text-center"},rxe={class:"flex flex-wrap gap-2"},sxe=ke({__name:"sj",setup(e){const t=mt("routeParams",{cid:"",page:1,order:"update",type:"sj"}),n=Tt(),{search:r,list:s}=It(),i=F(()=>!t.cid),o=[{title:"最新",order:"update"},{title:"日榜",order:"click"},{title:"周榜",order:"week"},{title:"月榜",order:"month"},{title:"收藏",order:"feeds"}],a=F(()=>t.order||"update"),l=F(()=>Is(t.type)||[]),u=F(()=>t.cid||""),c=F(()=>l.value.find(m=>m.id===t.cid)?.tags||[]);function d(p){const m=s(t.type,{...t,order:p,page:1});n.replace(m)}function f(p){const m=s(t.type,{cid:p.id,order:t.order,page:1});n.replace(m)}const h=[{title:"",order:"update"},{title:"日榜",order:"click"},{title:"周榜",order:"week"},{title:"月榜",order:"month"}];return(p,m)=>{const v=Xy,x=gs,g=ju;
132return P(),j(se,null,[b(i)?(P(),q(dn,{key:0,class:"px-2"},{default:A(()=>[S(v,{tabs:h})]),_:1})):(P(),j(se,{key:1},[S(x,{"model-value":b(l).findIndex(y=>y.id===b(u)),tabs:b(l).map(y=>y.name),sticky:!0,class:"px-2","tab-width":"auto",onTabClick:m[0]||(m[0]=y=>f(b(l)[y]))},null,8,["model-value","tabs"]),L("div",nxe,[(P(),j(se,null,Fe(o,y=>S(kt,{key:y.order,color:b(a)===y.order?"primary":void 0,variant:b(a)===y.order?"tonal":"text",size:"small",class:"cursor-pointer mr-2",onClick:_=>d(y.order)},{default:A(()=>[z(Z(y.title),1)]),_:2},1032,["color","variant","onClick"])),64))]),(P(),q(g,{key:`${b(u)}-${b(a)}`,skeleton:!0,"hide-tabs":!0,type:"sj",layout:"cover-lr"}))],64)),b(c).length?(P(),q($e,{key:2,class:"mb-4 mx-2 rounded-md"},{default:A(()=>[S(We,{class:"rounded-md"},{default:A(()=>[L("div",null,[m[1]||(m[1]=L("div",{class:"text-body-2 text-medium-emphasis mb-2"}," 热门搜索: ",-1)),L("div",rxe,[(P(!0),j(se,null,Fe(b(c),y=>(P(),q(kt,{key:y,variant:"outlined",color:"primary",size:"small",class:"cursor-pointer",to:b(r)(b(t).type,{key:y})},{default:A(()=>[z(Z(y),1)]),_:2},1032,["to"]))),128))])])]),_:1})]),_:1})):te("",!0)],64)}}}),m$=Object.freeze(Object.defineProperty({__proto__:null,default:sxe},Symbol.toStringTag,{value:"Module"})),ixe={class:"text-xs text-gray-500 mb-2"},oxe={key:0,class:"text-red-500 text-xs mt-1"},v$=ke({__name:"WithdrawDialog",props:{modelValue:{type:Boolean},withdrawable:{}},emits:["update:modelValue","success"],setup(e,{emit:t}){const n=t,r=e,s=M(!1);be(()=>r.modelValue,m=>{typeof m=="boolean"&&(s.value=m)}),be(s,m=>{n("update:modelValue",m)});const{user:i}=Ct(),o=M({amount:"",method:"usdt",account:"",pwd:""}),a=M(!1),l=M(""),u=F(()=>{if(typeof r.withdrawable=="number")return Math.floor(r.withdrawable)/100;const m=i.value;return m&&typeof m=="object"&&"credit"in m?Math.floor(m.credit)/100:0});be(()=>o.value.amount,m=>{Number(m)>u.value?l.value=`可提现金额最多为${u.value}元`:l.value=""});function c(){o.value={amount:"",method:"usdt",account:"",pwd:""},l.value="",s.value=!0}const d=M(!1);let f=null;function h(){d.value=!1,f&&p(f)}async function p(m){l.value="";const v=m||o.value,x=Number(v.amount);if(!v.amount||!v.account||!v.pwd){l.value="请填写完整信息";return}if(x>u.value){l.value=`可提现金额最多为${u.value}元`;return}if(x<=0){l.value="请输入正确的提现金额";return}a.value=!0;try{await it().user.withdraw({amount:Math.round(x*100),method:v.method,account:v.account,pwd:v.pwd}),s.value=!1,n("success"),f=null}catch(g){if(g?.error===901){d.value=!0,f={...v};return}l.value=g?.msg||"提现失败,请稍后再试"}finally{a.value=!1}}return(m,v)=>{const x=s0;return P(),q(Gt,{modelValue:b(s),"onUpdate:modelValue":v[7]||(v[7]=g=>Ce(s)?s.value=g:null),"max-width":"400"},{activator:A(g=>[Ht(m.$slots,"activator",Ks(pi({...g,onClick:c})))]),default:A(()=>[S($e,null,{default:A(()=>[S(at,{class:"font-bold"},{default:A(()=>[...v[8]||(v[8]=[z(" 发起提现 ",-1)])]),_:1}),S(We,null,{default:A(()=>[L("div",ixe," 可提现:"+Z(b(u))+" 元 ",1),S(St,{modelValue:b(o).amount,"onUpdate:modelValue":v[0]||(v[0]=g=>b(o).amount=g),label:"提现金额",type:"number",min:"1",max:b(u),required:"",class:"mb-2"},null,8,["modelValue","max"]),S(oo,{modelValue:b(o).method,"onUpdate:modelValue":v[1]||(v[1]=g=>b(o).method=g),items:[{title:"USDT",value:"usdt"}],label:"提现方式",required:"",class:"mb-2"},null,8,["modelValue"]),S(St,{modelValue:b(o).account,"onUpdate:modelValue":v[2]||(v[2]=g=>b(o).account=g),label:"USDT地址",required:"",class:"mb-2"},null,8,["modelValue"]),S(St,{modelValue:b(o).pwd,"onUpdate:modelValue":v[3]||(v[3]=g=>b(o).pwd=g),label:"提现密码",type:"password",required:"",class:"mb-2"},null,8,["modelValue"]),b(l)?(P(),j("div",oxe,Z(b(l)),1)):te("",!0)]),_:1}),S(mn,null,{default:A(()=>[S(Mt),S(ce,{variant:"text",onClick:v[4]||(v[4]=g=>s.value=!1)},{default:A(()=>[...v[9]||(v[9]=[z(" 取消 ",-1)])]),_:1}),S(ce,{color:"primary",loading:b(a),onClick:v[5]||(v[5]=g=>p())},{default:A(()=>[...v[10]||(v[10]=[z(" 提交 ",-1)])]),_:1},8,["loading"])]),_:1})]),_:1}),b(d)?(P(),q(x,{key:0,modelValue:b(d),"onUpdate:modelValue":v[6]||(v[6]=g=>Ce(d)?d.value=g:null),"enable-email":!0,"enable-phone":!1,closeable:!0,onSuccess:h},null,8,["modelValue"])):te("",!0)]),_:3},8,["modelValue"])}}}),axe=Object.freeze(Object.defineProperty({__proto__:null,default:v$},Symbol.toStringTag,{value:"Module"})),lxe=He({color:String,...mo(),...At(),...ms(),...Rs(),...Fu(),...iy(),...Tr(),...rn(),...Dn()},"VSheet"),Fm=nt()({name:"VSheet",props:lxe(),setup(e,t){let{slots:n}=t;const{themeClasses:r}=ir(e),{backgroundColorClasses:s,backgroundColorStyles:i}=_r(()=>e.color),{borderClasses:o}=Yo(e),{dimensionStyles:a}=vs(e),{elevationClasses:l}=gi(e),{locationStyles:u}=vd(e),{positionClasses:c}
132=oy(e),{roundedClasses:d}=Qr(e);return ut(()=>S(e.tag,{class:Ie(["v-sheet",r.value,s.value,o.value,l.value,c.value,d.value,e.class]),style:Qe([i.value,a.value,u.value,e.style])},n)),{}}}),uxe={class:"grid grid-cols-3 gap-3 text-center"},cxe={class:"text-base font-bold"},dxe={class:"text-base font-bold"},fxe={class:"text-base font-bold"},hxe={class:"text-base font-bold text-green-700 mt-1"},pxe={class:"text-xl font-extrabold text-primary mt-1 font-bold"},mxe={class:"text-base font-bold text-red-700 mt-1"},g$=ke({__name:"CreditSummaryCard",props:{total:{},summary:{}},setup(e){const t=e;return(n,r)=>(P(),q($e,{class:"rounded-md shadow-lg mb-4 px-0 py-0 overflow-visible"},{default:A(()=>[S(We,{class:"py-6 px-0"},{default:A(()=>[S(ba,{align:"center",justify:"center","no-gutters":""},{default:A(()=>[t.summary?(P(),q(oi,{key:0,cols:"12",class:"px-4 pb-4"},{default:A(()=>[S(Fm,{class:"rounded-lg px-4 py-3",elevation:"0"},{default:A(()=>[L("div",uxe,[L("div",null,[r[0]||(r[0]=L("div",{class:"text-sm text-gray-500"},"可用",-1)),L("div",cxe,Z(t.summary.available),1)]),L("div",null,[r[1]||(r[1]=L("div",{class:"text-sm text-gray-500"},"冻结",-1)),L("div",dxe,Z(t.summary.frozen),1)]),L("div",null,[r[2]||(r[2]=L("div",{class:"text-sm text-gray-500"},"可提",-1)),L("div",fxe,Z(t.summary.withdrawable),1)])])]),_:1})]),_:1})):te("",!0),S(oi,{cols:"4",class:"flex flex-col items-center justify-center"},{default:A(()=>[S(Fm,{class:"rounded-lg flex flex-col items-center py-2 px-0 w-[90%]",elevation:"0"},{default:A(()=>[S(de,{icon:"mdi-arrow-down-bold-circle",size:"28",color:"success"}),L("span",hxe,"+"+Z(t.total.income),1),r[3]||(r[3]=L("span",{class:"text-xs text-gray-500"},"收入",-1))]),_:1})]),_:1}),S(oi,{cols:"4",class:"flex flex-col items-center justify-center relative"},{default:A(()=>[S(rr,{size:"64",class:"mb-2",color:"primary",variant:"elevated"},{default:A(()=>[S(de,{icon:"mdi-diamond-stone",size:"38",color:"white"})]),_:1}),L("span",pxe,Z(t.total.balance),1),r[4]||(r[4]=L("span",{class:"text-xs text-gray-500"},"当前积分",-1))]),_:1}),S(oi,{cols:"4",class:"flex flex-col items-center justify-center"},{default:A(()=>[S(Fm,{class:"rounded-lg flex flex-col items-center py-2 px-0 w-[90%]",elevation:"0"},{default:A(()=>[S(de,{icon:"mdi-arrow-up-bold-circle",size:"28",color:"error"}),L("span",mxe,"-"+Z(t.total.expense),1),r[5]||(r[5]=L("span",{class:"text-xs text-gray-500"},"支出",-1))]),_:1})]),_:1})]),_:1})]),_:1}),S(mn,{class:"flex"},{default:A(()=>[Ht(n.$slots,"actions")]),_:3})]),_:3}))}}),vxe=Object.freeze(Object.defineProperty({__proto__:null,default:g$},Symbol.toStringTag,{value:"Module"})),gxe={class:"flex-1 min-w-0"},yxe={class:"items-center gap-2"},xxe={class:"text-base font-semibold"},bxe={class:"text-xs text-gray-400"},_xe={class:"text-xs text-gray-500 mt-1"},Sxe={class:"flex flex-col items-end min-w-[70px]"},y$=ke({__name:"UserCreditCard",props:{item:{},types:{}},setup(e){const t=e;return(n,r)=>(P(),q($e,{class:"mb-2 rounded-md shadow-sm hover:shadow-lg transition-shadow"},{default:A(()=>[S(We,{class:"flex items-center gap-4 px-4 py-2"},{default:A(()=>[S(rr,{size:"48",color:t.item.credit>0?"green-lighten-4":"red-lighten-4",class:"mr-2"},{default:A(()=>[S(de,{icon:t.types[t.item.type]?.icon||"mdi:gift",size:"28",color:t.item.credit>0?"success":"error"},null,8,["icon","color"])]),_:1},8,["color"]),L("div",gxe,[L("div",yxe,[L("span",xxe,Z(t.types[t.item.type]?.remark||t.item.type),1),r[0]||(r[0]=L("br",null,null,-1)),L("span",bxe,Z(t.item.date),1)]),L("div",_xe,Z(t.types[t.item.type]?.description||t.item.remark||"无备注"),1)]),L("div",Sxe,[L("span",{class:Ie(["text-xl font-bold",t.item.credit>0?"text-green-600":"text-red-500"])},Z(t.item.credit>0?"+":"")+Z(t.item.credit),3)])]),_:1})]),_:1}))}}),Exe=Object.freeze(Object.defineProperty({__proto__:null,default:y$},Symbol.toStringTag,{value:"Module"})),wxe={class:"flex-1 min-w-0"},Txe={class:"text-xs text-gray-400 mt-1"},Cxe={class:"text-xs text-gray-500 mt-1"},Axe={class:"flex flex-col items-end min-w-[90px]"},kxe={class:"text-xl font-bold text-green-600"},Ixe={class:"text-xs text-gray-500"},x$=ke({__name:"UserRechargeCard",props:{item:{}},setup(e){const t=e,n=F(()=>{const i=Number(t.item?.status);return i===0?"待支付":i===1?"已支付":i===2?"已关闭":i===3?"退款中":i===4?"已退款":i===5?"手工入账":"未知"}),r=F(()=>{const i=Number(t.item?.status);return i===1?"success":i===0?"warning":i===4?"info":i===3?"warning":i===5?"info":"error"}),s=F(()=>((Number(t.item?.money)||0)/100).toFixed(2));return(i,o)=>(P(),q($e,{class:"mb-2 rounded-md shadow-sm hover:shadow-lg transition-shadow"},{default:A(()=>[S(We,{class:"flex items-center gap-4 px-4 py-2"},{default:A(()=>[S(rr,{size:"48",color:"green-lighten-4",class:"mr-2"},{default:A(()=>[S(de,{icon:"mdi:wallet-plus",size:"28",color:"primary"})]),_:1}),L("div",wxe,[o[0]||(o[0]=L("div",{class:"flex items-center gap-2"},[L("span",{class:"text-base font-semibold"},"积分充值")],-1)),L("div",Txe,Z(new Date((Number(t.item.createdat)||0)*1e3).toLocaleStr
132ing()),1),L("div",Cxe,[z(Z((t.item.payment||"").toString().toUpperCase()||"-")+" / ",1),S(kt,{color:b(r),variant:"plain",size:"small",class:"p-1"},{default:A(()=>[z(Z(b(n)),1)]),_:1},8,["color"])])]),L("div",Axe,[L("span",kxe,"+"+Z(b(s)),1),L("span",Ixe,Z(Number(t.item.credit)||0)+" 积分",1)])]),_:1})]),_:1}))}}),Lxe=Object.freeze(Object.defineProperty({__proto__:null,default:x$},Symbol.toStringTag,{value:"Module"})),Dxe={class:"flex-1 min-w-0"},Pxe={class:"flex items-center gap-2"},Rxe={class:"text-base font-semibold"},Oxe={class:"text-xs text-gray-400 mt-1"},$xe={class:"text-xs text-gray-500 mt-1"},Mxe={key:0,class:"text-xs text-red-400 mt-1"},Fxe={class:"flex flex-col items-end min-w-[70px]"},Bxe={class:"text-xl font-bold text-blue-600"},Nxe={key:1,class:"text-red-500 text-xs mt-1"},b$=ke({__name:"UserWithdrawCard",props:{item:{},isEditor:{type:Boolean}},emits:["refresh"],setup(e,{emit:t}){const n=e,r=t,s=M(!1),i=M(0),o=M(""),a=M(!1),l=M("");function u(){i.value=0,o.value="",l.value="",s.value=!0}function c(){if(i.value!==1&&i.value!==-1){l.value="请选择审核结果";return}if(i.value===-1&&!o.value){l.value="请填写拒绝理由";return}a.value=!0,l.value="",it().user.withdrawAudit({id:n.item.id,status:i.value,reason:i.value===-1?o.value:""}).then(()=>{s.value=!1,r("refresh")}).catch(d=>{l.value=d?.msg||"审核失败"}).finally(()=>{a.value=!1})}return(d,f)=>(P(),q($e,{class:"mb-2 rounded-md shadow-sm hover:shadow-lg transition-shadow"},{default:A(()=>[S(We,{class:"flex items-center gap-4 px-4 py-2"},{default:A(()=>[S(rr,{size:"48",color:"blue-lighten-4",class:"mr-2"},{default:A(()=>[S(de,{icon:"mdi-cash",size:"28",color:"primary"})]),_:1}),L("div",Dxe,[L("div",Pxe,[L("span",Rxe,Z(n.item.method.toUpperCase())+"提现",1),S(kt,{color:n.item.status===1?"success":n.item.status===0?"warning":"error",size:"small",class:"ml-2"},{default:A(()=>[z(Z(n.item.status===1?"已完成":n.item.status===0?"审核中":"失败"),1)]),_:1},8,["color"])]),L("div",Oxe,Z(new Date(n.item.createdat*1e3).toLocaleString()),1),L("div",$xe," 账号:"+Z(n.item.account),1),n.item.reason?(P(),j("div",Mxe,Z(n.item.reason),1)):te("",!0)]),L("div",Fxe,[L("span",Bxe,"-"+Z((n.item.amount/100).toFixed(2)),1),n.isEditor&&n.item.status===0?(P(),q(ce,{key:0,size:"small",color:"primary",class:"mt-2",onClick:u},{default:A(()=>[...f[4]||(f[4]=[z(" 审核 ",-1)])]),_:1})):te("",!0)]),S(Gt,{modelValue:s.value,"onUpdate:modelValue":f[3]||(f[3]=h=>s.value=h),"max-width":"400"},{default:A(()=>[S($e,null,{default:A(()=>[S(at,{class:"font-bold"},{default:A(()=>[...f[5]||(f[5]=[z(" 提现审核 ",-1)])]),_:1}),S(We,null,{default:A(()=>[S(xy,{modelValue:i.value,"onUpdate:modelValue":f[0]||(f[0]=h=>i.value=h),inline:""},{default:A(()=>[S(jc,{label:"通过",value:1}),S(jc,{label:"退回",value:-1})]),_:1},8,["modelValue"]),i.value==-1?(P(),q(St,{key:0,modelValue:o.value,"onUpdate:modelValue":f[1]||(f[1]=h=>o.value=h),label:"理由",dense:"",class:"max-w-xs",rules:[h=>!!h||"请填写理由"]},null,8,["modelValue","rules"])):te("",!0),l.value?(P(),j("div",Nxe,Z(l.value),1)):te("",!0)]),_:1}),S(mn,null,{default:A(()=>[S(Mt),S(ce,{variant:"text",onClick:f[2]||(f[2]=h=>s.value=!1)},{default:A(()=>[...f[6]||(f[6]=[z(" 取消 ",-1)])]),_:1}),S(ce,{color:"primary",loading:a.value,onClick:c},{default:A(()=>[...f[7]||(f[7]=[z(" 提交 ",-1)])]),_:1},8,["loading"])]),_:1})]),_:1})]),_:1},8,["modelValue"])]),_:1})]),_:1}))}}),Vxe=Object.freeze(Object.defineProperty({__proto__:null,default:b$},Symbol.toStringTag,{value:"Module"})),Uxe={class:"flex items-center justify-between mb-2"},jxe={key:0,class:"flex flex-col items-center justify-center py-16 text-gray-400"},zxe={key:0,class:"flex flex-col items-center justify-center py-16 text-gray-400"},Hxe={key:0,class:"flex flex-col items-center justify-center py-16 text-gray-400"},Gxe=20,xL=20,bL=20,Kxe=ke({__name:"credit",setup(e){const t=M(0),n=M(!1),r=M(!1),s=M(!1),i=M([]),o=M({}),a=M(1),l=M(!0),u=M(!0),c=M(!1),d=M({income:0,expense:0,balance:0}),f=M({available:0,frozen:0,withdrawable:0}),{isEditor:h}=Ct(),p=M(!1);async function m(R=1,D=!1){if(!c.value){c.value=!0,D&&(u.value=!0);try{const O=await it().user.credit({page:R});D&&(i.value=[],a.value=1,l.value=!0);const B=O.list||O.extend?.list||[];
132B.length<Gxe&&(l.value=!1),D?i.value=B:i.value.push(...B),o.value=O.types||O.extend?.types||{},d.value=O.total||O.extend?.total||{},f.value=O.summary||O.extend?.summary||{available:0,frozen:0,withdrawable:0},D?a.value=1:a.value=R,n.value=!0}catch(O){if(O?.error===901)return;console.error("加载积分记录失败",O)}finally{c.value=!1,D&&(u.value=!1)}}}const v=M([]),x=M(1),g=M(!0),y=M(!1),_=M(!1),E=M([]),w=M(1),T=M(!0),C=M(!1),I=M(!1);async function k(R=1,D=!1){if(!_.value){_.value=!0,D&&(y.value=!0);try{const O=await it().user.withdrawList({page:R,size:xL});D&&(v.value=[],x.value=1,g.value=!0);const B=O.data?.list||O.list||[];B.length<xL&&(g.value=!1),D?v.value=B:v.value.push(...B),v.value.forEach(U=>{U.status===0&&(U._auditStatus=0,U._auditReason="",U._auditLoading=!1,U._auditError="")}),D?x.value=1:x.value=R,r.value=!0}catch(O){if(O?.error===901)return;console.error("加载提现记录失败",O)}finally{_.value=!1,D&&(y.value=!1)}}}async function $(R=1,D=!1){if(!I.value){I.value=!0,D&&(C.value=!0);try{const O=await it().user.rechargeList({page:R,size:bL});D&&(E.value=[],w.value=1,T.value=!0);const B=O.list||O.data?.list||O.extend?.list||[];B.length<bL&&(T.value=!1),D?E.value=B:E.value.push(...B),D?w.value=1:w.value=R,s.value=!0}catch(O){if(O?.error===901)return;console.error("加载充值记录失败",O)}finally{I.value=!1,D&&(C.value=!1)}}}return ft(()=>{n.value=!1,r.value=!1,s.value=!1,i.value=[],v.value=[],E.value=[]}),be(t,R=>{R===0&&!n.value&&m(1,!0),R===1&&!s.value&&$(1,!0),R===2&&!r.value&&k(1,!0)},{immediate:!0}),(R,D)=>{const O=xd,B=v$,U=g$,N=y$,V=x$,H=b$,re=$a,W=Xs,X=Ed;return P(),j(se,null,[S(O),S(dn,{class:"max-w-xl mx-auto py-4"},{default:A(()=>[S(U,{total:b(d),summary:b(f)},{actions:A(()=>[S(ce,{color:"plain",variant:"elevated",class:"ml-2 flex-1",onClick:D[0]||(D[0]=Q=>p.value=!0)},{default:A(()=>[S(de,{icon:"mdi:wallet-plus",class:"mr-1"}),D[10]||(D[10]=z(" 充值 ",-1))]),_:1}),S(B,{withdrawable:b(f).withdrawable,onSuccess:D[1]||(D[1]=Q=>k(1,!0))},{activator:A(({onClick:Q})=>[S(ce,{color:"plain",variant:"elevated",class:"ml-2 flex-1",onClick:Q},{default:A(()=>[S(de,{icon:"mdi-cash-plus",class:"mr-1"}),D[11]||(D[11]=z(" 提现 ",-1))]),_:1},8,["onClick"])]),_:1},8,["withdrawable"])]),_:1},8,["total","summary"]),L("div",Uxe,[S(Hi,{modelValue:b(t),"onUpdate:modelValue":D[2]||(D[2]=Q=>Ce(t)?t.value=Q:null),class:"mb-4 w-full"},{default:A(()=>[S(Sr,{class:"flex-1 justify-center"},{default:A(()=>[...D[12]||(D[12]=[z("积分明细",-1)])]),_:1}),S(Sr,{class:"flex-1 justify-center"},{default:A(()=>[...D[13]||(D[13]=[z("充值记录",-1)])]),_:1}),S(Sr,{class:"flex-1 justify-center"},{default:A(()=>[...D[14]||(D[14]=[z("提现记录",-1)])]),_:1})]),_:1},8,["modelValue"]),S(Mt)]),S(nh,{modelValue:b(t),"onUpdate:modelValue":D[7]||(D[7]=Q=>Ce(t)?t.value=Q:null)},{default:A(()=>[S(Mo,null,{default:A(()=>[b(a)==1&&b(u)?(P(),j("div",jxe,[S(jn,{indeterminate:"",color:"primary",size:"48",class:"mb-2"}),D[15]||(D[15]=L("div",{class:"text-base mt-2"}," 加载中... ",-1))])):b(i).length>0?(P(),j(se,{key:1},[(P(!0),j(se,null,Fe(b(i),Q=>(P(),q(N,{key:Q.id,item:Q,types:b(o)},null,8,["item","types"]))),128)),b(l)&&!b(c)?(P(),q(ce,{key:0,block:"",class:"mt-2",color:"primary",variant:"elevated",onClick:D[3]||(D[3]=Q=>m(b(a)+1))},{default:A(()=>[S(de,{icon:"mdi-chevron-down",size:"20",class:"mr-1"}),D[16]||(D[16]=z(" 加载更多 ",-1))]),_:1})):te("",!0),b(c)?(P(),q(jn,{key:1,indeterminate:"",color:"primary",class:"mx-auto mt-2"})):te("",!0)],64)):(P(),q($e,{key:2,class:"flex flex-col items-center justify-center py-16 text-gray-400 rounded-xl shadow-none"},{default:A(()=>[S(de,{icon:"mdi-gift-off-outline",size:"48",class:"mb-2 text-gray-300"}),D[17]||(D[17]=L("div",{class:"text-base"}," 暂无积分记录 ",-1))]),_:1}))]),_:1}),S(Mo,null,{default:A(()=>[b(C)?(P(),j("div",zxe,[S(jn,{indeterminate:"",color:"primary",size:"48",class:"mb-2"}),D[18]||(D[18]=L("div",{class:"text-base mt-2"}," 加载中... ",-1))])):b(E).length>0?(P(),j(se,{key:1},[(P(!0),j(se,null,Fe(b(E),Q=>(P(),q(V,{key:Q.id,item:Q},null,8,["item"]))),128)),b(T)&&!b(I)?(P(),q(ce,{key:0,block:"",class:"mt-2",color:"primary",variant:"elevated",onClick:D[4]||(D[4]=Q=>$(b(w)+1))},{default:A(()=>[S(de,{icon:"mdi-chevron-down",size:"20",class:"mr-1"}),D[19]||(D[19]=z(" 加载更多 ",-1))]),_:1})):te("",!0),b(I)?(P(),q(jn,{key:1,indeterminate:"",color:"primary",class:"mx-auto mt-2"})):te("",!0)],64)):(P(),q($e,{key:2,class:"flex flex-col items-center justify-center py-16 text-gray-400 rounded-xl shadow-none"},{default:A(()=>[S(de,{icon:"mdi-wallet-outline",size:"48",class:"mb-2 text-gray-300"}),D[20]||(D[20]=L("div",{class:"text-base"}," 暂无充值记录 ",-1))]),_:1}))]),_:1}),S(Mo,null,{default:A(()=>[b(y)?(P(),j("div",Hxe,[S(jn,{indeterminate:"",color:"primary",size:"48",class:"mb-2"}),D[21]||(D[21]=L("div",{class:"text-base mt-2"}," 加载中... ",-1))])):b(v).length>0?(P(),j(se,{key:1},[(P(!0),j(se,null,Fe(b(v),Q=>(P(),q(H,{key:Q.id,item:Q,"is-editor":b(h),onRefresh:D[5]||(D[5]=le=>k(b(x),!0))},null,8,["item","is-editor"]))),128)),b(g)&&!b(_)?(P(),q(ce,{key:0,block:"",class:"mt-2",color:"primary",variant:"elevated",onClick:D[6]||(D[6]=Q=>k(b(x)+1))},{default:A(()=>[S(de,{icon:"mdi-chevron-down",size:"20",class:"mr-1"}),D[22]||(D[22]=z(" 加载更多 ",-1))]),_:1})):te("",!0),b(_)?(P(),q(jn,{key:1,indeterminate:"",color:"primary",class:"mx-auto mt-2"})):te("",!0)],64)):(P(),q($e,{key:2,class:"flex flex-col items-center justify-center py-16 text-gray-400 rounded-xl shadow-none"},{default:A(()=>[S(de,{icon:"mdi-cash-remove",size:"48",class:"mb-2 text-gray-300"}),D[23]||(D[23]=L("div",{class:"text-base"}," 暂无提现记录 ",-1))]),_:1}))]),_:1})]),_:1},8,["modelValue"])]),_:1}),S(re),S(W),b(p)?(P(),q(X,{key:0,modelValue:b(p),"onUpdate:modelValue":D[8]||(D[8]=Q=>Ce(p)?p.value=Q:null),onSuccess:D[9]||(D[9]=Q=>m(1,!0))},null,8,["modelValue"])):te("",!0)],64)}}}),Wxe=Object.freeze(Object.defineProperty({__proto__:null,default:Kxe},Symbol.toStringTag,{value:"Module"})),qxe={class:"flex-1 min-w-0 mx-auto -mt-4"},Yxe={class:"flex-1 min-w-0"},Xxe={class:"flex items-center gap-2 mb-1"},Zxe={class:"text-xs text-gray-500"},Jxe={key:0,class:"text-center py-4 text-gray-400"},Qxe={key:1,class:"flex flex-col items-center py-8 text-gray-400"},ebe={key:2,class:"flex flex-col items-center py-4 text-gray-400"},iw=ke({__name:"UserFollowingList",props:{userId:{}},setup(e,{expose:t}){const n=e,{user:r}=it(),{authInfo:s,isLogin:i}=Ct(),o=M([]),a=M(!1),l=M(1),u=M(!1),c=M(!1),d=F(()=>
132!s.value?.userId||!n.userId?!1:String(s.value.userId)===String(n.userId));async function f(m){if(a.value||u.value){m?.done("empty");return}if(!i.value){c.value=!0,m?.done("empty");return}a.value=!0;try{const x=(await r.following({uid:n.userId,ref:s.value?.userId,page:l.value,size:20}))?.list||[];if(x.length===0){u.value=!0,m?.done("empty");return}l.value===1?o.value=x:o.value.push(...x),l.value++,x.length<20?(u.value=!0,m?.done("empty")):m?.done("ok")}catch(v){console.error("加载关注列表失败:",v),u.value=!0,m?.done("error")}finally{a.value=!1}}function h(m,v,x){if(x){const g=o.value.find(y=>y.user.id===x);g&&(g.follow_status=v?2:m?1:0)}}function p(){n.userId&&(l.value=1,u.value=!1,o.value=[],f())}return t({refresh:p}),be(()=>n.userId,()=>{n.userId&&p()},{immediate:!1}),ft(()=>{n.userId&&f()}),(m,v)=>{const x=Ra,g=Gi,y=Vu,_=Cr;return P(),j("div",qxe,[(P(),q(o0,{key:b(l),side:"end",direction:"vertical",disabled:b(a)||b(u),onLoad:f},{empty:A(()=>[b(a)?(P(),j("div",Jxe," 加载中... ")):b(u)&&b(o).length===0?(P(),j("div",Qxe,[S(de,{icon:"mdi:account-plus-outline",size:"64",class:"mb-4 opacity-50"}),v[2]||(v[2]=L("div",{class:"text-lg mb-2"}," 还没有关注任何人 ",-1)),v[3]||(v[3]=L("div",{class:"text-sm opacity-80"}," 去发现感兴趣的用户吧 ",-1))])):b(u)?(P(),j("div",ebe,[S(de,{icon:"mdi:inbox-remove-outline",size:"48",class:"mb-2 opacity-80"}),v[4]||(v[4]=z(" 没有更多了 ",-1))])):te("",!0)]),default:A(()=>[(P(!0),j(se,null,Fe(b(o),E=>(P(),q($e,{key:E.user.id,class:"mb-2 rounded-md"},{default:A(()=>[S(We,{class:"flex items-center gap-3 p-3"},{default:A(()=>[S(x,{user:E.user,size:48,clickable:!0},null,8,["user"]),L("div",Yxe,[L("div",Xxe,[S(g,{to:`/u/${E.user.id}`,class:"font-medium text-base hover:text-primary transition-colors"},{default:A(()=>[z(Z(E.user.nickname||"未知用户"),1)]),_:2},1032,["to"]),b(d)&&E.follow_status===2?(P(),q(kt,{key:0,size:"small",color:"primary",variant:"tonal",class:"text-xs"},{default:A(()=>[...v[1]||(v[1]=[z(" 互关 ",-1)])]),_:1})):te("",!0)]),L("div",Zxe," 关注于 "+Z(new Date(E.createdat*1e3).toLocaleDateString()),1)]),S(y,{"user-id":E.user.id,"initial-following":E.follow_status>0,"initial-mutual":E.follow_status===2,context:"following","is-viewing-self":b(d),onChange:(w,T)=>h(w,T,E.user.id)},null,8,["user-id","initial-following","initial-mutual","is-viewing-self","onChange"])]),_:2},1024)]),_:2},1024))),128))]),_:1},8,["disabled"])),S(_,{modelValue:b(c),"onUpdate:modelValue":v[0]||(v[0]=E=>Ce(c)?c.value=E:null)},null,8,["modelValue"])])}}}),tbe=Object.freeze(Object.defineProperty({__proto__:null,default:iw},Symbol.toStringTag,{value:"Module"})),nbe={class:"flex-1 min-w-0 mx-auto -mt-4"},rbe={class:"flex-1 min-w-0"},sbe={class:"flex items-center gap-2 mb-1"},ibe={class:"text-xs text-gray-500"},obe={key:0,class:"text-center py-4 text-gray-400"},abe={key:1,class:"flex flex-col items-center py-8 text-gray-400"},lbe={key:2,class:"flex flex-col items-center py-4 text-gray-400"},ow=ke({__name:"UserFollowersList",props:{userId:{}},setup(e,{expose:t}){const n=e,{user:r}=it(),{authInfo:s,isLogin:i}=Ct(),o=M([]),a=M(!1),l=M(1),u=M(!1),c=M(!1),d=F(()=>
132!s.value?.userId||!n.userId?!1:String(s.value.userId)===String(n.userId));async function f(m){if(a.value||u.value){m?.done("empty");return}if(!i.value){c.value=!0,m?.done("empty");return}a.value=!0;try{const x=(await r.followers({uid:n.userId,ref:s.value?.userId,page:l.value,size:20}))?.list||[];if(x.length===0){u.value=!0,m?.done("empty");return}l.value===1?o.value=x:o.value.push(...x),l.value++,x.length<20?(u.value=!0,m?.done("empty")):m?.done("ok")}catch(v){console.error("加载粉丝列表失败:",v),u.value=!0,m?.done("error")}finally{a.value=!1}}function h(m,v,x){if(x){const g=o.value.find(y=>y.user.id===x);g&&(g.follow_status=v?2:m?1:0)}}function p(){n.userId&&(l.value=1,u.value=!1,o.value=[],f())}return t({refresh:p}),be(()=>n.userId,()=>{n.userId&&p()},{immediate:!1}),ft(()=>{n.userId&&f()}),(m,v)=>{const x=Ra,g=Gi,y=Vu,_=Cr;return P(),j("div",nbe,[(P(),q(o0,{key:b(l),side:"end",direction:"vertical",disabled:b(a)||b(u),onLoad:f},{empty:A(()=>[b(a)?(P(),j("div",obe," 加载中... ")):b(u)&&b(o).length===0?(P(),j("div",abe,[S(de,{icon:"mdi:account-heart-outline",size:"64",class:"mb-4 opacity-50"}),v[2]||(v[2]=L("div",{class:"text-lg mb-2"}," 还没有粉丝 ",-1)),v[3]||(v[3]=L("div",{class:"text-sm opacity-80"}," 发布优质内容来吸引粉丝吧 ",-1))])):b(u)?(P(),j("div",lbe,[S(de,{icon:"mdi:inbox-remove-outline",size:"48",class:"mb-2 opacity-80"}),v[4]||(v[4]=z(" 没有更多了 ",-1))])):te("",!0)]),default:A(()=>[(P(!0),j(se,null,Fe(b(o),E=>(P(),q($e,{key:E.user.id,class:"mb-2 rounded-md"},{default:A(()=>[S(We,{class:"flex items-center gap-3 p-3"},{default:A(()=>[S(x,{user:E.user,size:48,clickable:!0},null,8,["user"]),L("div",rbe,[L("div",sbe,[S(g,{to:`/u/${E.user.id}`,class:"font-medium text-base hover:text-primary transition-colors"},{default:A(()=>[z(Z(E.user.nickname||"未知用户"),1)]),_:2},1032,["to"]),b(d)&&E.follow_status===2?(P(),q(kt,{key:0,size:"small",color:"primary",variant:"tonal",class:"text-xs"},{default:A(()=>[...v[1]||(v[1]=[z(" 互关 ",-1)])]),_:1})):te("",!0)]),L("div",ibe," 关注于 "+Z(new Date(E.createdat*1e3).toLocaleDateString()),1)]),S(y,{"user-id":E.user.id,"initial-following":E.follow_status===2,"initial-mutual":E.follow_status===2,context:"followers","is-viewing-self":b(d),onChange:(w,T)=>h(w,T,E.user.id)},null,8,["user-id","initial-following","initial-mutual","is-viewing-self","onChange"])]),_:2},1024)]),_:2},1024))),128))]),_:1},8,["disabled"])),S(_,{modelValue:b(c),"onUpdate:modelValue":v[0]||(v[0]=E=>Ce(c)?c.value=E:null)},null,8,["modelValue"])])}}}),ube=Object.freeze(Object.defineProperty({__proto__:null,default:ow},Symbol.toStringTag,{value:"Module"})),cbe={class:"px-2"},dbe={class:"flex items-center justify-between"},fbe={key:0},hbe={key:1},pbe=ke({__name:"follow",setup(e){const t=Fn(),n=Tt(),{user:r}=Ct(),s=["我的关注","我的粉丝"];function i(){const d=t.query.tab;if(d){const f=parseInt(String(d));if(!isNaN(f)&&f>=0&&f<s.length)return f}return 0}const o=M(i()),a=M(null),l=M(null),u=M(new Set([o.value]));be(()=>t.query.tab,d=>{if(d!==void 0){const f=parseInt(String(d));!isNaN(f)&&f>=0&&f<s.length&&(o.value=f)}});function c(d){n.replace({query:{...t.query,tab:d.toString()}}),u.value.has(d)||(u.value.add(d),d===0&&a.value?a.value.refresh():d===1&&l.value&&l.value.refresh())}return(d,f)=>{const h=xd,p=gs,m=Gi,v=iw,x=ow,g=$a,y=Xs;return P(),j(se,null,[S(h),L("div",cbe,[L("div",dbe,[S(p,{modelValue:b(o),"onUpdate:modelValue":f[0]||(f[0]=_=>Ce(o)?o.value=_:null),tabs:s,class:"mb-4",onTabClick:c},null,8,["modelValue"]),S(m,{to:`/u/${b(r)?.eid}`,class:"hover:opacity-80 pb-2 transition-opacity flex items-center gap-1"},{default:A(()=>[f[1]||(f[1]=z(" 我的主页 ",-1)),S(de,{icon:"mdi:chevron-right",size:"16"})]),_:1},8,["to"])]),b(o)===0?(P(),j("div",fbe,[S(v,{ref_key:"followingListRef",ref:
132a},null,512)])):(P(),j("div",hbe,[S(x,{ref_key:"followersListRef",ref:l},null,512)]))]),S(g),S(y)],64)}}}),mbe=Object.freeze(Object.defineProperty({__proto__:null,default:pbe},Symbol.toStringTag,{value:"Module"})),vbe=He({bordered:Boolean,color:String,content:[Number,String],dot:Boolean,floating:Boolean,icon:jt,inline:Boolean,label:{type:String,default:"$vuetify.badge"},max:[Number,String],modelValue:{type:Boolean,default:!0},offsetX:[Number,String],offsetY:[Number,String],textColor:String,...At(),...Fu({location:"top end"}),...Tr(),...rn(),...Dn(),...Bu({transition:"scale-rotate-transition"}),...ms()},"VBadge"),gbe=nt()({name:"VBadge",inheritAttrs:!1,props:vbe(),setup(e,t){const{backgroundColorClasses:n,backgroundColorStyles:r}=_r(()=>e.color),{roundedClasses:s}=Qr(e),{t:i}=po(),{textColorClasses:o,textColorStyles:a}=Gs(()=>e.textColor),{themeClasses:l}=Mu(),{locationStyles:u}=vd(e,!0,d=>(e.floating?e.dot?2:4:e.dot?8:12)+(["top","bottom"].includes(d)?Number(e.offsetY??0):["left","right"].includes(d)?Number(e.offsetX??0):0)),{dimensionStyles:c}=vs(e);return ut(()=>{const d=Number(e.content),f=!e.max||isNaN(d)?e.content:d<=Number(e.max)?d:`${e.max}+`,[h,p]=Kb(t.attrs,["aria-atomic","aria-label","aria-live","role","title"]);return S(e.tag,Ve({class:["v-badge",{"v-badge--bordered":e.bordered,"v-badge--dot":e.dot,"v-badge--floating":e.floating,"v-badge--inline":e.inline},e.class]},p,{style:e.style}),{default:()=>[L("div",{class:"v-badge__wrapper"},[t.slots.default?.(),S(io,{transition:e.transition},{default:()=>[pn(L("span",Ve({class:["v-badge__badge",l.value,n.value,s.value,o.value],style:[r.value,a.value,c.value,e.inline?{}:u.value],"aria-atomic":"true","aria-label":i(e.label,d),"aria-live":"polite",role:"status"},h),[e.dot?void 0:t.slots.badge?t.slots.badge?.():e.icon?S(de,{icon:e.icon},null):f]),[[hs,e.modelValue]])]})])]})}),{}}}),ybe={class:"flex flex-col items-center relative justify-center w-full"},xbe={class:"text-xs mt-1"},bbe={class:"flex items-center justify-between mb-2"},_be={class:"text-lg font-bold"},Sbe={class:"relative w-12 h-12 flex-shrink-0"},Ebe={class:"flex-1 min-w-0"},wbe={class:"text-sm font-medium truncate"},Tbe={key:0,class:"text-xs mt-1 truncate"},Cbe={class:"text-xs mt-1"},Abe={class:"right-desc flex items-center justify-center ml-2"},kbe={class:"text-xs font-medium leading-tight break-words w-[48px] text-center opacity-60"},Ibe={key:0},Lbe={class:"mb-3"},Dbe={class:"text-base font-semibold mb-2 leading-relaxed break-words whitespace-normal"},Pbe={class:"text-xs text-gray-500 space-y-1"},Rbe={class:"mt-2"},Obe={class:"mb-2 flex items-center"},$be={class:"ml-auto"},Mbe={class:"rounded-lg bg-surface shadow-sm mb-2"},Fbe={class:"text-sm"},Bbe={class:"text-xs text-gray-400 mt-1"},Nbe={class:"flex items-center text-primary mb-2"},Vbe={class:"flex items-center text-primary mb-2"},Ube={class:"rounded-lg bg-surface shadow-sm p-3"},jbe={class:"text-sm font-medium"},zbe={key:0,class:"text-xs text-gray-400 mt-2"},Hbe={key:0},Gbe={class:"flex items-center text-primary mb-2"},Kbe={class:"rounded-lg bg-white p-3 shadow-sm"},Wbe={class:"text-sm"},qbe={key:4,class:"text-xs text-gray-500"},Ybe={class:"hidden"},Xbe=20,Zbe=ke({__name:"notify",setup(e){const t=M([]),n=M([]),r=M("all"),s=M(!0),{detail:i}=It(),{fetchNotifyStatus:o}=f$(),a=M(1),l=M(!0),u=M(!1),c=M([]);function d(){c.value.reduce((I,k)=>I+(k.unread||0),0)===0&&o()}function f(C){return C?{id:C.id,content:C?.content||"",type:C.type||"system",title:C.title,date:C.date,avatars:Array.isArray(C.avatar)&&C.avatar.length>0?C.avatar.map(I=>qs(`${I}`)):[],icon:C.icon,read:C.read||!!C.readedat,reply:C.reply||{},post:C?.post||{},follower:C.type==="follow"?{nickname:C.follower?.nickname||""}:void 0,readedat:C.readedat,readDetail:C.readDetail}:null}async function h(C=1,I=!1,k="all"){if(!u.value){u.value=!0,I&&(s.value=!0);try{const{types:$,list:R}=await it().user.notify({page:C,type:k==="all"?void 0:k});I&&(t.value=[],a.value=1,l.value=!0),R.length<Xbe&&(l.value=!1),I?t.value=R.map(f).filter(D=>!!D):t.value.push(...R.map(f).filter(D=>!!D)),I?a.value=1:a.value=C,C===1&&$&&(c.value=$,d()),n.value=[{key:"all",name:"全部",icon:"mdi-bell-outline"},...c.value]}catch($){console.error("加载通知失败",$)}finally{u.value=!1,I&&(s.value=!1)}}}ft(()=>{h(1,!0,r.value)}),zi(()=>{h(1,!0,r.value)}),be(r,C=>{h(1,!0,C)});const p=M(null),m=M(!1);async function v(C){if(C.read){C.post&&Object.keys(C.post).length>0&&(p.value=C,m.value=!0);return}if(!C.post||Object.keys(C.post).length===0){try{await it().user.notifyRead({id:C.id}),C.read=!0,await h(1,!0,r.value)}catch(I){console.error("e",I)}return}p.value=C,m.value=!0;try{const I=await it().user.notifyRead({id:C.id});Object.assign(C,I),await h(1,!0,r.value)}catch(I){console.error("e",I)}}async function x(){try{const C=r.value==="all"?void 0:r.value;await it().user.notifyRead({mode:"all",type:C}),await h(1,!0,r.value)}catch(C){console.error("全部标记为已读失败",C)}}const g=F(()=>t.value.every(C=>C.read)),y=F(()=>t.value),_=F(()=>{const C=(p.value?.post?.tags||[]).join(", "),I=[`ID: ${p.value?.post?.id}`,C.length>0?`标签: ${C}`:""].filter(k=>k);return p.value?.post?.files>0&&I.push(`文件: ${p.value?.post?.files}`),I.length>0?`${I.join(" / ")}`:""}),E=F(()=>{const C={};for(const I of c.value)C[I.key]=I.unread;return C.all=c.value.reduce((I,k)=>I+(k.unread||0),0),C}),w={all:"通知",reply:"评论通知",like:"点赞通知",profit:"收益通知",system:"系统通知",follow:"关注通知"},T=F(()=>{const C=n.value.find(I=>I.key===r.value);return C&&C.label?C.label+"通知":w[r.value]||"通知"});return(C,I)=>{const k=xd,$=An,R=Gi,D=t0,O=Yy,B=$a,U=Xs;return P(),j(se,null,[S(k),S(dn,{class:"flex flex-col p-2"},{default:A(()=>[S(Hi,{modelValue:b(r),"onUpdate:modelValue":I[0]||(I[0]=N=>Ce(r)?r.value=N:null),class:"mb-2",grow:"",height:"48","slider-color":"primary"},{default:A(()=>[(P(!0),j(se,null,Fe(b(n),N=>(P(),q(Sr,{key:N.key,value:N.key,class:"relative flex flex-col items-center justify-center min-h-[56px] px-0",style:{"min-width":"0"}},{default:A(()=>[L("span",ybe,[S(de,{icon:N.icon,size:"24"},null,8,["icon"]),L("span",xbe,Z(N.name),1),b(E)[N.key]?(P(),q(gbe,{key:0,content:b(E)[N.key],color:"primary",class:"absolute top-1 -right-2",overlap:"",bordered:"",size:"x-small"},null,8,["content"])):te("",!0)])]),_:2},1032,["value"]))),128))]),_:1},8,["modelValue"]),S(zt,{class:"my-2"}),L("div",bbe,[L("span",_be,Z(b(T)),1),S(ce,{size:"small",variant:"text",disabled:b(g),onClick:x},{default:A(()=>[S(de,{size:"18",start:"",icon:"mdi-check-all",class:"mr-1"}),I[5]||(I[5]=z(" 全部标记为已读 ",-1))]),_:1},8,["disabled"])]),b(y).length>0?(P(),j(se,{key:0},[(P(!0),j(se,null,Fe(b(y),N=>(P(),q($e,{key:N.id,class:"mb-2 cursor-pointer rounded-md",variant:"elevated",onClick:V=>v(N)},{default:A(()=>[S(We,{class:"flex items-center gap-3 p-3"},{default:A(()=>[L("div",Sbe,[N.avatars.length===2?(P(),q($,{key:0,encoded:"1",src:N.avatars[0],class:"absolute left-0 top-0 w-8 h-8 rounded-full z-0 border-2 border-white"},{default:A(()=>[S($,{encoded:"1",src:N.avatars[1],class:"absolute right-0 bottom-0 w-8 h-8 rounded-full z-10 border-2 border-white"},null,8,["src"])]),_:2}
132,1032,["src"])):N.avatars.length===1?(P(),q($,{key:1,encoded:"1",src:N.avatars[0],class:"w-10 h-10 rounded-full border-2 border-white"},null,8,["src"])):(P(),q(de,{key:2,icon:N.icon||"mdi-bell-outline",size:"40",class:"rounded-full bg-gray-100 text-gray-400"},null,8,["icon"]))]),L("div",Ebe,[L("div",wbe,Z(N.title),1),N.content?(P(),j("div",Tbe,Z(N.content),1)):te("",!0),L("div",Cbe,[z(Z(N.date)+" ",1),!N.read&&!N.readedat?(P(),q(kt,{key:0,size:"x-small",color:"primary",class:"ml-2"},{default:A(()=>[S(de,{size:"14",start:"",icon:"mdi-bell-outline",class:"mr-1"}),I[6]||(I[6]=z(" 未读 ",-1))]),_:1})):te("",!0)])]),L("div",Abe,[L("div",kbe,[z(Z((N.post.content||"").slice(0,20)),1),(N.post.content||"").length>20?(P(),j("span",Ibe,"…")):te("",!0)])])]),_:2},1024)]),_:2},1032,["variant","onClick"]))),128)),b(l)&&!b(u)?(P(),q(ce,{key:0,block:"",class:"mt-2",onClick:I[1]||(I[1]=N=>h(b(a)+1,!1,b(r)))},{default:A(()=>[...I[7]||(I[7]=[z(" 加载更多 ",-1)])]),_:1})):te("",!0),b(u)?(P(),q(jn,{key:1,indeterminate:"",color:"primary",class:"mx-auto mt-2"})):te("",!0)],64)):(P(),q($e,{key:1,class:"flex flex-col items-center justify-center py-16 text-gray-400"},{default:A(()=>[S(de,{icon:"mdi-bell-off-outline",size:"48",class:"mb-2"}),I[8]||(I[8]=L("div",null,"暂无通知",-1))]),_:1})),S(Gt,{modelValue:b(m),"onUpdate:modelValue":I[4]||(I[4]=N=>Ce(m)?m.value=N:null),"max-width":"400",scrollable:""},{default:A(()=>[S($e,{class:"rounded-xl shadow-lg p-0"},{default:A(()=>[S(at,{class:"text-lg font-bold pt-6 pb-2 px-6 border-b"},{default:A(()=>[S(de,{icon:"mdi-post-outline",size:"22",class:"mr-2 text-primary"}),I[9]||(I[9]=z(" 帖子详情 ",-1))]),_:1}),S(We,{class:"py-4 px-6"},{default:A(()=>[L("div",Lbe,[L("pre",Dbe,"              "+Z(b(p)?.post?.content&&b(p).post.content.length>80?b(p).post.content.substring(0,80)+"…":b(p)?.post?.content||"")+`
133            `,1),L("div",Pbe,[L("div",null,Z(b(_)),1),L("div",null,"时间:"+Z(b(p)?.post.pubat),1)]),L("div",Rbe,[S(R,{to:b(i)("thread",`${b(p)?.post.id}`),class:"inline-block underline text-primary font-medium text-sm hover:opacity-80 transition"},{default:A(()=>[S(de,{icon:"mdi-open-in-new",size:"16",class:"mr-1 align-middle"}),I[10]||(I[10]=z(" 打开详情 ",-1))]),_:1},8,["to"])])]),S(zt,{class:"my-4"}),b(p)?.type==="reply"&&b(p)?.reply?(P(),j(se,{key:0},[L("div",Obe,[S(de,{icon:"mdi-comment-outline",size:"20",class:"mr-2 text-primary"}),I[11]||(I[11]=L("span",{class:"text-base font-bold"},"评论内容",-1)),L("div",$be,[S(D,{id:b(p).reply.id,source:`${b(p)?.reply.id==b(p)?.reply.tid?2:3}`,"icon-right":!0,class:"pr-0"},null,8,["id","source"])])]),L("div",Mbe,[L("div",Fbe,Z(b(p).reply.content),1),L("div",Bbe," 来自:"+Z(b(p).reply.user.nickname)+" / "+Z(b(p)?.reply?.date),1)]),S(O,{"post-id":b(p).post.id,"reply-to-id":b(p).reply?.tid||b(p).reply?.id,class:"mb-2",onSuccess:I[2]||(I[2]=N=>m.value=!1)},null,8,["post-id","reply-to-id"])],64)):b(p)?.type==="like"?(P(),j(se,{key:1},[L("div",Nbe,[S(de,{icon:"mdi-thumb-up-outline",size:"20",class:"mr-2"}),I[12]||(I[12]=L("span",{class:"text-base font-bold"},"点赞通知",-1))]),I[13]||(I[13]=L("div",{class:"text-xs text-gray-400"}," 该通知为点赞,无评论内容 ",-1))],64)):b(p)?.type==="income"?(P(),j(se,{key:2},[L("div",Vbe,[S(de,{icon:b(p).icon||"mdi:cart",size:"20",class:"mr-2"},null,8,["icon"]),I[14]||(I[14]=L("span",{class:"text-base font-bold"},"收益通知",-1))]),L("div",Ube,[L("div",jbe,Z(b(p).content),1),b(p).post?.id?(P(),j("div",zbe,[z(" 来自帖子:"+Z((b(p).post.content||"").slice(0,30)),1),(b(p).post.content||"").length>30?(P(),j("span",Hbe,"…")):te("",!0)])):te("",!0)])],64)):b(p)?.type==="follow"?(P(),j(se,{key:3},[L("div",Gbe,[S(de,{icon:"mdi-account-plus-outline",size:"20",class:"mr-2"}),I[15]||(I[15]=L("span",{class:"text-base font-bold"},"新粉丝",-1))]),L("div",Kbe,[L("div",Wbe," 新粉丝:"+Z(b(p).follower?.nickname||"未知用户"),1),I[16]||(I[16]=L("div",{class:"text-xs text-gray-400 mt-1"}," 关注了你 ",-1))])],64)):te("",!0),b(p)?.readDetail?(P(),j("div",qbe,Z(b(p).readDetail),1)):te("",!0)]),_:1}),S(mn,{class:"px-6 pb-4 pt-2 flex justify-end"},{default:A(()=>[S(ce,{color:"plain",variant:"elevated",class:"rounded-full px-5 py-2 text-base font-medium shadow-md",onClick:I[3]||(I[3]=N=>m.value=!1)},{default:A(()=>[S(de,{icon:"mdi-close",size:"18",class:"mr-1"}),I[17]||(I[17]=z(" 关闭 ",-1))]),_:1})]),_:1})]),_:1})]),_:1},8,["modelValue"]),L("div",Ybe,[S(de,{icon:"mdi-bell-outline"}),S(de,{icon:"mdi-comment-outline"}),S(de,{icon:"mdi-thumb-up-outline"}),S(de,{icon:"mdi-currency-cny"}),S(de,{icon:"mdi-cog-outline"}),S(de,{icon:"mdi-account-plus-outline"}),S(de,{icon:"mdi:gift"})])]),_:1}),S(B),S(U)],64)}}}),Jbe=vt(Zbe,[["__scopeId","data-v-2dd6e2cf"]]),Qbe=Object.freeze(Object.defineProperty({__proto__:null,default:Jbe},Symbol.toStringTag,{value:"Module"})),e2e={class:"px-4 mt-2 mb-2 text-center"},t2e={class:"flex flex-wrap gap-2"}
133,n2e=ke({__name:"nvl",setup(e){const t=mt("routeParams",{cid:"",page:1,order:"update",type:"nvl"}),n=Tt(),{search:r,list:s}=It(),i=F(()=>!t.cid),o=[{title:"最新",order:"update"},{title:"热门",order:"click"},{title:"收藏",order:"favs"}],a=F(()=>t.order||"update"),l=F(()=>Is(t.type)||[]),u=F(()=>t.cid||""),c=F(()=>l.value.find(m=>m.id===t.cid)?.tags||[]);function d(p){const m=s(t.type,{...t,order:p,page:1});n.replace(m)}function f(p){const m=s(t.type,{cid:p.id,order:t.order,page:1});n.replace(m)}const h=[{title:"",order:"update"},{title:"热门榜",order:"click"},{title:"收藏榜",order:"week"}];return(p,m)=>{const v=Ad,x=gs,g=ju;return P(),j(se,null,[b(i)?(P(),q(v,{key:0,tabs:h,type:"nvl"})):(P(),j(se,{key:1},[S(x,{"model-value":b(l).findIndex(y=>y.id===b(u)),tabs:b(l).map(y=>y.name),sticky:!0,class:"px-2","tab-width":"auto",onTabClick:m[0]||(m[0]=y=>f(b(l)[y]))},null,8,["model-value","tabs"]),L("div",e2e,[(P(),j(se,null,Fe(o,y=>S(kt,{key:y.order,color:b(a)===y.order?"primary":void 0,variant:b(a)===y.order?"tonal":"text",size:"small",class:"cursor-pointer mr-2",onClick:_=>d(y.order)},{default:A(()=>[z(Z(y.title),1)]),_:2},1032,["color","variant","onClick"])),64))]),(P(),q(g,{key:`${b(u)}-${b(a)}`,skeleton:!0,"hide-tabs":!0,type:"nvl"}))],64)),b(c).length?(P(),q($e,{key:2,class:"mb-4 mx-2 rounded-md"},{default:A(()=>[S(We,{class:"rounded-md"},{default:A(()=>[L("div",null,[m[1]||(m[1]=L("div",{class:"text-body-2 text-medium-emphasis mb-2"}," 热门搜索: ",-1)),L("div",t2e,[(P(!0),j(se,null,Fe(b(c),y=>(P(),q(kt,{key:y,variant:"outlined",color:"primary",size:"small",class:"cursor-pointer",to:b(r)(b(t).type,{key:y})},{default:A(()=>[z(Z(y),1)]),_:2},1032,["to"]))),128))])])]),_:1})]),_:1})):te("",!0)],64)}}}),_$=Object.freeze(Object.defineProperty({__proto__:null,default:n2e},Symbol.toStringTag,{value:"Module"})),r2e={class:"px-4 mt-2 mb-2 text-center"},s2e={class:"flex flex-wrap gap-2"},i2e=ke({__name:"pic",setup(e){const t=mt("routeParams",{cid:"",page:1,order:"update",type:"pic"}),n=Tt(),{search:r,list:s}=It(),i=F(()=>!t.cid),o=[{title:"最新",order:"update"},{title:"热门",order:"click"},{title:"收藏",order:"favs"}],a=F(()=>t.order||"update"),l=F(()=>Is(t.type)||[]),u=F(()=>t.cid||""),c=F(()=>l.value.find(m=>m.id===t.cid)?.tags||[]);function d(p){const m=s(t.type,{...t,order:p,page:1});n.replace(m)}function f(p){const m=s(t.type,{cid:p.id,order:t.order,page:1});n.replace(m)}const h=[{title:"",order:"update"},{title:"热门榜",order:"click"},{title:"收藏榜",order:"week"}];return(p,m)=>{const v=Ad,x=gs,g=ju;
133return P(),j(se,null,[b(i)?(P(),q(dn,{key:0,class:"px-2"},{default:A(()=>[S(v,{tabs:h,type:"pic"})]),_:1})):(P(),j(se,{key:1},[S(x,{"model-value":b(l).findIndex(y=>y.id===b(u)),tabs:b(l).map(y=>y.name),sticky:!0,class:"px-2","tab-width":"auto",onTabClick:m[0]||(m[0]=y=>f(b(l)[y]))},null,8,["model-value","tabs"]),L("div",r2e,[(P(),j(se,null,Fe(o,y=>S(kt,{key:y.order,color:b(a)===y.order?"primary":void 0,variant:b(a)===y.order?"tonal":"text",size:"small",class:"cursor-pointer mr-2",onClick:_=>d(y.order)},{default:A(()=>[z(Z(y.title),1)]),_:2},1032,["color","variant","onClick"])),64))]),(P(),q(g,{key:`${b(u)}-${b(a)}`,skeleton:!0,"hide-tabs":!0,type:"pic"}))],64)),b(c).length?(P(),q($e,{key:2,class:"mb-4 mx-2 rounded-md"},{default:A(()=>[S(We,{class:"rounded-md"},{default:A(()=>[L("div",null,[m[1]||(m[1]=L("div",{class:"text-body-2 text-medium-emphasis mb-2"}," 热门搜索: ",-1)),L("div",s2e,[(P(!0),j(se,null,Fe(b(c),y=>(P(),q(kt,{key:y,variant:"outlined",color:"primary",size:"small",class:"cursor-pointer",to:b(r)(b(t).type,{key:y})},{default:A(()=>[z(Z(y),1)]),_:2},1032,["to"]))),128))])])]),_:1})]),_:1})):te("",!0)],64)}}}),S$=Object.freeze(Object.defineProperty({__proto__:null,default:i2e},Symbol.toStringTag,{value:"Module"})),o2e={class:"px-4 mt-2 mb-2 text-center"},a2e={class:"flex flex-wrap gap-2"},l2e=ke({__name:"vod",setup(e){const t=mt("routeParams",{cid:"",page:1,order:"update",type:"vod"}),n=Tt(),{search:r,list:s}=It(),i=F(()=>!t.cid),o=[{title:"最新",order:"update"},{title:"日榜",order:"click"},{title:"周榜",order:"week"},{title:"月榜",order:"month"},{title:"收藏",order:"favs"},{title:"总榜",order:"rank"}],a=F(()=>t.order||"update"),l=F(()=>Is(t.type)||[]),u=F(()=>t.cid||""),c=F(()=>l.value.find(m=>m.id===t.cid)?.tags||[]);function d(p){const m=s(t.type,{...t,order:p,page:1});n.replace(m)}function f(p){const m=s(t.type,{cid:p.id,order:t.order,page:1});n.replace(m)}const h=[{title:"",order:"update"},{title:"日榜",order:"click"},{title:"周榜",order:"week"},{title:"月榜",order:"month"}];return(p,m)=>{const v=Ad,x=gs,g=ju;
133return P(),j(se,null,[b(i)?(P(),q(dn,{key:0,class:"px-2"},{default:A(()=>[S(v,{tabs:h,type:"vod"})]),_:1})):(P(),j(se,{key:1},[S(x,{"model-value":b(l).findIndex(y=>y.id===b(u)),tabs:b(l).map(y=>y.name),sticky:!0,class:"px-2","tab-width":"auto",onTabClick:m[0]||(m[0]=y=>f(b(l)[y]))},null,8,["model-value","tabs"]),L("div",o2e,[(P(),j(se,null,Fe(o,y=>S(kt,{key:y.order,color:b(a)===y.order?"primary":void 0,variant:b(a)===y.order?"tonal":"text",size:"small",class:"cursor-pointer mr-2",onClick:_=>d(y.order)},{default:A(()=>[z(Z(y.title),1)]),_:2},1032,["color","variant","onClick"])),64))]),(P(),q(g,{key:`${b(u)}-${b(a)}`,skeleton:!0,"hide-tabs":!0,type:"vod"}))],64)),b(c).length?(P(),q($e,{key:2,class:"mb-4 mx-2 rounded-md"},{default:A(()=>[S(We,{class:"rounded-md"},{default:A(()=>[L("div",null,[m[1]||(m[1]=L("div",{class:"text-body-2 text-medium-emphasis mb-2"}," 热门搜索: ",-1)),L("div",a2e,[(P(!0),j(se,null,Fe(b(c),y=>(P(),q(kt,{key:y,variant:"outlined",color:"primary",size:"small",class:"cursor-pointer",to:b(r)(b(t).type,{key:y})},{default:A(()=>[z(Z(y),1)]),_:2},1032,["to"]))),128))])])]),_:1})]),_:1})):te("",!0)],64)}}}),E$=Object.freeze(Object.defineProperty({__proto__:null,default:l2e},Symbol.toStringTag,{value:"Module"})),u2e={key:0},c2e={class:"line-clamp-2 whitespace-normal max-h-12 opacity-90"},d2e={key:0,class:"opacity-80 text-xs"},f2e={class:"flex flex-col items-center gap-4"},h2e={class:"text-grey"},p2e=ke({__name:"history",setup(e){const t=[{title:"视频",type:"vod",icon:"ph:play-circle"},{title:"短剧",type:"sj",icon:"ph:television"},{title:"社区",type:"post",icon:"ph:bookmark"},{title:"小说",type:"nvl",icon:"ph:book"},{title:"图片",type:"pic",icon:"ph:image"},{title:"下载",type:"down",icon:"ph:download"},{title:"演员",type:"actor",icon:"ph:user"}];F(()=>t.find(h=>h.type===n.value));const n=M("vod"),{history:r,clearHistory:s,formatTime:i}=zy(),o=It(),a=F(()=>t.find(h=>h.type===n.value)?.title||""),l=h=>h==="post"?"/html/post":h==="down"||h==="actor"?"/":o.list(h),u=M(!1),c=()=>{u.value=!0},d=()=>{s(n.value),u.value=!1},f=h=>h.url.search(/ep=/ig)>-1?h.url.match(/ep=(\d+)/)[1]:0;return(h,p)=>{const m=Xs;return P(),j(se,null,[S(dn,{class:"p-0 flex flex-col gap-3 max-w-[480px]"},{default:A(()=>[S(Hi,{modelValue:b(n),"onUpdate:modelValue":p[0]||(p[0]=v=>Ce(n)?n.value=v:null),color:"primary",grow:"",class:"mb-2"},{default:A(()=>[(P(),j(se,null,Fe(t,v=>S(Sr,{key:v.type,value:v.type},{default:A(()=>[S(de,{icon:v.icon,class:"mr-2"},null,8,["icon"]),z(" "+Z(v.title),1),b(r)[v.type]?.length?(P(),j("span",u2e,"("+Z(b(r)[v.type].length)+")",1)):te("",!0)]),_:2},1032,["value"])),64))]),_:1},8,["modelValue"]),S($e,null,{default:A(()=>[b(r)[b(n)].length?(P(),q(vr,{key:0},{default:A(()=>[(P(!0),j(se,null,Fe(b(r)[b(n)],(v,x)=>(P(),j(se,{key:v.eid},[S(Rt,{to:v.url},{title:A(()=>[L("div",c2e,[z(Z(v.title)+" ",1),f(v)>0?(P(),j("span",d2e," (第 "+Z(f(v))+" 集) ",1)):te("",!0)])]),subtitle:A(()=>[z(Z(b(i)(v.time)),1)]),prepend:A(()=>[S(de,{icon:t.find(g=>g.type===b(n))?.icon,color:"primary",size:"32",class:"self-center"},null,8,["icon"])]),_:2},1032,["to"]),x<b(r)[b(n)].length-1?(P(),q(zt,{key:0})):te("",!0)],64))),128))]),_:1})):(P(),q(We,{key:1,class:"text-center py-8"},{default:A(()=>[L("div",f2e,[L("div",h2e," 暂无"+Z(b(a))+"浏览记录 ",1),b(n)!=="down"&&b(n)!=="actor"?(P(),q(ce,{key:0,to:l(b(n)),color:"primary",variant:"outlined","prepend-icon":"ph:arrow-right"},{default:A(()=>[z(" 去"+Z(b(a))+"版块逛逛 ",1)]),_:1},8,["to"])):te("",!0)])]),_:1})),b(r)[b(n)].length?(P(),q(mn,{key:2},{default:A(()=>[S(ce,{block:"",color:"error",variant:"outlined",onClick:c},{default:A(()=>[...p[3]||(p[3]=[z(" 清空历史记录 ",-1)])]),_:1})]),_:1})):te("",!0)]),_:1})]),_:1}),S(Gt,{modelValue:b(u),"onUpdate:modelValue":p[2]||(p[2]=v=>Ce(u)?u.value=v:null),"max-width":"320"},{default:A(()=>[S($e,null,{default:A(()=>[S(at,null,{default:A(()=>[...p[4]||(p[4]=[z("确认清空",-1)])]),_:1}),S(We,null,{default:A(()=>[...p[5]||(p[5]=[z(" 确定要清空当前类型的所有历史记录吗?此操作不可恢复。 ",-1)])]),_:1}),S(mn,null,{default:A(()=>[S(Mt),S(ce,{color:"grey",variant:"text",onClick:p[1]||(p[1]=v=>u.value=!1)},{default:A(()=>[...p[6]||(p[6]=[z(" 取消 ",-1)])]),_:1}),S(ce,{color:"error",variant:"text",onClick:d},{default:A(()=>[...p[7]||(p[7]=[z(" 确认清空 ",-1)])]),_:1})]),_:1})]),_:1})]),_:1},8,["modelValue"]),S(m)],64)}}}),m2e=vt(p2e,[["__scopeId","data-v-7cc3f52c"]]),v2e=Object.freeze(Object.defineProperty({__proto__:null,default:m2e},Symbol.toStringTag,{value:"Module"})),g2e={class:"flex flex-row my-4 gap-4 justify-between"},y2e=ke({__name:"register",setup(e){const t=Tt(),{html:n}=It(),r=()=>{const i=t.currentRoute.value.query.from;i?t.push(i):t.push("/user")},s=F(()=>wl());return(i,o)=>{const a=An,l=IS,u=Mi("RouterLink");return P(),q(dn,{class:"auth-container"},{default:A(()=>[S(at,{class:"flex align-center items-center justify-center gap-2 mb-6"},{default:A(()=>[S(a,{src:b(s),style:{width:"100px",height:"100px"},"blur-background":!1},null,8,["src"])]),_:1}),S(l,{onSuccess:r}),L("div",g2e,[S(u,{to:"/auth/login"},{default:A(()=>[...o[0]||(o[0]=[z(" 已有账号?立即登录 ",-1)])]),_:1}),S(u,{to:"/auth/forget"},{default:A(()=>[...o[1]||(o[1]=[z(" 忘记密码? ",-1)])]),_:1})]),S(u,{class:"",to:b(n)("index.html")},{default:A(()=>[...o[2]||(o[2]=[z("返回首页",-1)])]),_:1},8,["to"])]),_:1})}}}),x2e=vt(y2e,[["__scopeId","data-v-61405641"]]),b2e=Object.freeze(Object.defineProperty({__proto__:null,default:x2e},Symbol.toStringTag,{value:"Module"})),_2e={key:0,class:"grid gap-2"},Mx=20,w$=ke({__name:"DownListOfIndexCommend",props:{tabs:{default:[]}},setup(e){const t=e,{down:n}=it(),r=M([]),s=M(!1),i=M({}),o=M({}),a=M(1),l=m=>t.tabs.map(v=>v.title||m.title||m.name),u=m=>t.tabs[o.value[m].activeTab]?.order||"update";ft(()=>{c()});async function c(){s.value=!0;try{const m=await n.command({});m.map(v=>{v.list=[...v.list]}),r.value=m,r.value.forEach((v,x)=>{o.value[x]={activeTab:0,data:{0:null}}})}catch(m){console.error(m)}finally{s.value=!1}}async function d(m,v){const x=o.value[m],g=`${m}_${v}`;i.value[g]=!0;try{if(v===0){x.activeTab=0;return}a.value=1,x.data[v]||await f(m,v,u(m)),x.activeTab=v}finally{setTimeout(()=>{i.value[g]=!1},300)}}async function f(m,v,x){try{s.value=!0;const g=r.value[m]?.cid||r.value[m].category.id,y=await n.list({cid:g,page:1,order:x});o.value[m].data[v]=y}catch(g){console.error(g)}finally{s.value=!1}}const h=(m,v)=>{const x=o.value[v].activeTab;let g=[];return x===0?g=m?.list.slice(0,Mx):g=o.value[v].data[x]?.list.slice(0,Mx)||[],(g||[]).slice(0,Mx)},p=m=>It().list("down",{cid:m.cid||m.category.id});return(m,v)=>{const x=Sd,g=gs,y=Ys;
133return P(),j(se,null,[b(s)?(P(),j("div",_2e,[(P(),j(se,null,Fe(4,_=>S(x,{key:"skeleton-"+_})),64))])):te("",!0),(P(!0),j(se,null,Fe(b(r),(_,E)=>(P(),j(se,{key:E},[S(g,{id:`down-category-${E}`,modelValue:b(o)[E].activeTab,"onUpdate:modelValue":w=>b(o)[E].activeTab=w,tabs:l(_),loading:b(i),class:"my-2","tab-width":"auto",onTabClick:w=>d(E,w)},{append:A(()=>[S(Mt),S(ce,{variant:"plain",to:p(_),class:"align-self-center"},{default:A(()=>[...v[0]||(v[0]=[z(" 更多 » ",-1)])]),_:1},8,["to"])]),_:2},1032,["id","modelValue","onUpdate:modelValue","tabs","loading","onTabClick"]),S(y,{type:"down",items:h(_,E),loading:b(s)||b(i)[`${E}_${b(o)[E].activeTab}`],"pc-cols":4,skeleton:!0,"mobile-cols":2,class:"mb-2"},{header:A(()=>[Ht(m.$slots,"default")]),_:3},8,["items","loading"])],64))),128))],64)}}}),S2e=Object.freeze(Object.defineProperty({__proto__:null,default:w$},Symbol.toStringTag,{value:"Module"})),E2e=ke({__name:"down",setup(e){const t=mt("routeParams",{cid:"",page:1,order:"update",type:"down"}),n=F(()=>!t.cid),r=[{title:"",order:"update"},{title:"周榜",order:"weekclicks"},{title:"月榜",order:"monthclicks"},{title:"总榜",order:"totalclicks"}];return M(""),(s,i)=>{const o=w$,a=ju;
133return b(n)?(P(),q(dn,{key:0,class:"px-0"},{default:A(()=>[S(o,{tabs:r})]),_:1})):(P(),q(a,{key:1,skeleton:!0,type:"down",layout:"cover-tb"}))}}}),T$=Object.freeze(Object.defineProperty({__proto__:null,default:E2e},Symbol.toStringTag,{value:"Module"})),w2e={class:"flex h-screen bg-[#121212] text-white overflow-hidden font-sans min-h-0"},T2e={class:"w-28 flex flex-col py-4 overflow-y-auto no-scrollbar border-r border-white/5 h-full"},C2e=["onClick"],A2e=["data-id"],k2e={class:"flex items-center justify-between mb-4 px-0"},I2e={class:"flex items-center space-x-1"},L2e={class:"text-xl"},D2e={class:"text-lg font-bold tracking-wide"},P2e=["href"],R2e={class:"grid grid-cols-3 md:grid-cols-6 gap-3 md:gap-4"},O2e={key:0,class:"flex flex-col items-center space-y-2 group"},$2e=["href"],M2e={class:"relative w-full aspect-square rounded-2xl overflow-hidden ring-1 ring-white/10 group-hover:ring-yellow-400/50 transition-all shadow-lg"},F2e=["src","alt","onLoad"],B2e={key:0,class:"absolute inset-0 flex items-center justify-center pointer-events-none"},N2e={class:"text-[11px] text-gray-400 group-hover:text-white text-center truncate w-full px-1 transition-colors"},V2e={key:1,class:"col-span-3 md:col-span-6 mt-2 mb-2 overflow-hidden shadow-xl ring-white/10 cursor-pointer hover:opacity-95 transition-all"},U2e=["href"],j2e=["src","onLoad"],z2e=ke({__name:"game",setup(e){const t=fo("game"),n=M([]),r=M(""),s=M(null),i=M({}),o=M(new Set);let a=!1,l=null;const u=h=>{o.value.add(h)},c=h=>{const p=i.value[h];if(p&&s.value){a=!0,r.value=h;const m=s.value.getBoundingClientRect(),v=p.getBoundingClientRect(),x=s.value.scrollTop+(v.top-m.top);s.value.scrollTo({top:x,behavior:"smooth"}),setTimeout(()=>{a=!1},800)}},d=()=>{l&&l.disconnect(),l=new IntersectionObserver(h=>{a||h.forEach(p=>{if(p.isIntersecting){const m=p.target.getAttribute("data-id");m&&(r.value=m)}})},{root:s.value,rootMargin:"0px 0px -60% 0px",threshold:0}),Object.values(i.value).forEach(h=>l?.observe(h))},f=(h,p)=>{p&&(i.value[h]=p)};return ft(()=>{Array.isArray(t)&&(n.value=t.filter(h=>h?.items?.length>0).map((h,p)=>({...h,id:`cat_${p}`})),n.value.length>0&&(r.value=n.value[0].id),tt(()=>d()))}),Er(()=>{l?.disconnect()}),(h,p)=>(P(),j("div",w2e,[L("div",T2e,[(P(!0),j(se,null,Fe(b(n),m=>(P(),j("div",{key:m.id,class:Ie(["flex items-center justify-start gap-2 py-1.5 px-3 mb-1 cursor-pointer transition-all duration-300 relative group rounded-lg mx-2",b(r)===m.id?"shadow-lg shadow-yellow-400/10":"hover:bg-white/10 hover:shadow-[0_0_0_1px_rgba(255,255,255,0.08)]"]),style:Qe(b(r)===m.id?{background:"linear-gradient(180deg, #feef9c, #fbcd53)"}:{}),onClick:v=>c(m.id)},[L("span",{class:Ie(["text-lg transition-transform flex-shrink-0",b(r)===m.id?"text-black scale-110":"text-gray-500"])},Z(m.icon),3),L("span",{class:Ie(["text-xs font-bold truncate transition-colors",b(r)===m.id?"text-black":"text-gray-400"])},Z(m.name),3)],14,C2e))),128))]),L("div",{ref_key:"scrollContainer",ref:s,class:"flex-1 overflow-y-auto pl-3 pr-3 py-4 space-y-8 scroll-smooth min-h-0 h-full"},[(P(!0),j(se,null,Fe(b(n),m=>(P(),j("div",{key:m.id,ref_for:!0,ref:v=>f(m.id,v),"data-id":m.id,class:"category-section"},[L("div",k2e,[L("div",I2e,[L("span",L2e,Z(m.icon),1),L("h2",D2e,Z(m.name),1)]),m.items?.length>0?(P(),j("a",{key:0,href:m.items[0].url,target:"_blank",class:"flex items-center text-gray-500 text-xs cursor-pointer hover:text-white transition-colors group/all"},[...p[0]||(p[0]=[L("span",null,"全部",-1),L("svg",{class:"h-4 w-4 ml-0.5 transform group-hover/all:translate-x-0.5 transition-transform",viewBox:"0 0 20 20",fill:"currentColor"},[L("path",{"fill-rule":"evenodd",d:"M7.293 14.707a1 1 0 010-1.414L10.586 10 7.293 6.707a1 1 0 011.414-1.414l4 4a1 1 0 010 1.414l-4 4a1 1 0 01-1.414 0z","clip-rule":"evenodd"})],-1)])],8,P2e)):te("",!0)]),L("div",R2e,[(P(!0),j(se,null,Fe(m.items,(v,x)=>(P(),j(se,{key:m.id+x},[v.name?(P(),j("div",O2e,[L("a",{href:v.url,target:"_blank",class:"w-full"},[L("div",M2e,[L("img",{src:v.img,alt:v.name,loading:"lazy",class:Ie(["w-full h-full object-cover transform group-hover:scale-110 transition-all duration-500",b(o).has(m.id+x)?"opacity-100":"opacity-0"]),onLoad:g=>u(m.id+x)},null,42,F2e),b(o).has(m.id+x)?te("",!0):(P(),j("div",B2e,[...p[1]||(p[1]=[L("div",{class:"w-1/2 h-1/2 bg-gradient-to-tr from-white/5 to-transparent roun
133ded-full animate-pulse"},null,-1)])])),p[2]||(p[2]=L("div",{class:"absolute inset-0 bg-black/0 group-hover:bg-black/20 transition-colors"},null,-1))])],8,$2e),L("span",N2e,Z(v.name),1)])):(P(),j("div",V2e,[L("a",{href:v.url||"#",target:"_blank",class:"block w-full"},[L("img",{src:v.img,loading:"lazy",class:Ie(["w-full h-auto object-cover transition-opacity duration-700",b(o).has(m.id+x)?"opacity-100":"opacity-0"]),alt:"category banner",onLoad:g=>u(m.id+x)},null,42,j2e)],8,U2e)]))],64))),128))])],8,A2e))),128)),p[3]||(p[3]=L("div",{class:"h-[70vh]"},null,-1))],512)]))}}),H2e=vt(z2e,[["__scopeId","data-v-2b315dc8"]]),C$=Object.freeze(Object.defineProperty({__proto__:null,default:H2e},Symbol.toStringTag,{value:"Module"})),G2e={class:"list-content"},K2e={class:"text-primary"},W2e={class:"list-content"},q2e={class:"list-content"},Y2e=["innerHTML"],X2e=ke({__name:"help",setup(e){F(()=>wr()?.app||"");const t=F(()=>It().html("enter.html")),n=F(()=>Vo().host301),r=F(()=>Vo().app),s=F(()=>"http://"+n.value+"/"),i=F(()=>On()?.vpnLink||""),o=()=>{const a=document.querySelector(".qrcode-vue");if(a){const l=document.createElement("a");l.download=`${r.value}-${n.value}-二维码.jpg`,l.href=a.toDataURL("image/jpeg",.8),l.click()}};return(a,l)=>(P(),q(dn,{class:"help-main"},{default:A(()=>[S(ba,{justify:"center"},{default:A(()=>[S(oi,{cols:"12",class:"text-center"},{default:A(()=>[...l[0]||(l[0]=[L("h1",{class:"text-h5 font-weight-bold py-4"}," 部分地区的网友反映本站遭到劫持! ",-1),L("p",{class:"text-grey"}," 以下我们提供暂时的解决办法!给您带来不便,请谅解,也谢谢网友对我们的长期支持! ",-1)])]),_:1})]),_:1}),S(ba,{class:"mt-4"},{default:A(()=>[S(oi,{cols:"12"},{default:A(()=>[S($e,{class:"mb-4"},{default:A(()=>[S(at,{class:"text-subtitle-1 font-weight-bold text-center"},{default:A(()=>[...l[1]||(l[1]=[z(" 视频无法观看教程 ",-1)])]),_:1}),S(vr,null,{default:A(()=>[S(Rt,null,{default:A(()=>[...l[2]||(l[2]=[L("div",{class:"list-content"}," 方法1:请先确认网络是否正常,如果网络正常,请尝试更换浏览器,推荐使用谷歌浏览器 ",-1)])]),_:1}),S(Rt,null,{default:A(()=>[...l[3]||(l[3]=[L("div",{class:"list-content"}," 方法2:尝试切换线路(或者使用VIP线路) ",-1)])]),_:1})]),_:1})]),_:1}),S($e,null,{default:A(()=>[S(at,{class:"text-subtitle-1 font-weight-bold text-center"},{default:A(()=>[...l[4]||(l[4]=[z(" 本站永久访问教程(15秒看完) ",-1)])]),_:1}),S(vr,null,{default:A(()=>[S(Rt,null,{default:A(()=>[...l[5]||(l[5]=[L("div",{class:"list-content"}," 方法1:请先确认网络是否正常,如果网络正常,请尝试更换浏览器,推荐使用谷歌浏览器 ",-1)])]),_:1}),S(Rt,null,{default:A(()=>[...l[6]||(l[6]=[L("div",{class:"list-content"}," 方法2:本站网址每天都会更换,请务必多收藏几个地址 ",-1)])]),_:1}),S(Rt,null,{default:A(()=>[L("div",G2e,[l[7]||(l[7]=z(" 方法3:使用本站永久访问域名: ",-1)),L("span",K2e,Z(b(n)),1),l[8]||(l[8]=z(" 进行访问 ",-1))])]),_:1}),S(Rt,null,{default:A(()=>[L("div",W2e,[l[10]||(l[10]=z(" 方法4:下载本站二维码,扫码访问 ",-1)),S(ce,{variant:"text",class:"text-primary pa-0",onClick:o},{default:A(()=>[...l[9]||(l[9]=[z(" >点击下载< ",-1)])]),_:1})])]),_:1}),b(i)?(P(),q(Rt,{key:0},{default:A(()=>[L("div",q2e,[l[11]||(l[11]=z(" 方法5:使用VPN访问 ",-1)),L("span",{innerHTML:b(i)},null,8,Y2e)])]),_:1})):te("",!0)]),_:1})]),_:1})]),_:1})]),_:1}),S(ba,{justify:"center",class:"mt-8"},{default:A(()=>[S(oi,{cols:"12",class:"text-center"},{default:A(()=>[S(ce,{to:b(t),color:"primary",size:"large",class:"text-h6"},{default:A(()=>[...l[12]||(l[12]=[z(" 返回本站首页 ",-1)])]),_:1},8,["to"]),l[13]||(l[13]=L("p",{class:"text-grey mt-8"}," 特别提醒:我们永久提倡保护未成年人,若你未满18周岁,请立即关闭离开! ",-1))]),_:1})]),_:1}),S(Uh,{value:b(s),size:120,"render-as":"canvas",margin:2,quality:1,level:"H",foreground:"#000000",background:"#ffffff",class:"mx-auto qrcode-vue opacity-70 mt-4"},null,8,["value"])]),_:1}))}}),Z2e=vt(X2e,[["__scopeId","data-v-9ace2521"]]),A$=Object.freeze(Object.defineProperty({__proto__:null,default:Z2e},Symbol.toStringTag,{value:"Module"})),J2e={class:"flex items-center"},Q2e=["src"],e_e=["href"],t_e=ke({__name:"FloatNavIcon",props:{bg:{},icon:{},text:{},link:{},btn:{}},setup(e){const t=e,n=F(()=>co(t?.bg||"/static/img/header_land.png")),r=F(()=>co(t.icon));return(s,i)=>(P(),j(se,null,[i[0]||(i[0]=L("div",{class:"land-placer"},null,-1)),L("div",{class:"wrap land-header",style:Qe({background:`url(${b(n)})`})},[L("p",J2e,[L("img",{src:b(r),style:{width:"45px","border-radius":"10px"},alt:""},null,8,Q2e),z(" "+Z(t.text),1)]),L("a",{href:e.link,target:"_blank",class:"goto-btn"},Z(t?.btn||"立即进入"),9,e_e)],4)],64))}}),k$=vt(t_e,[["__scopeId","data-v-8f27022f"]]),n_e=Object.freeze(Object.defineProperty({__proto__:null,default:k$},Symbol.toStringTag,{value:"Module"})),r_e={key:0,class:"fixed bottom-0 left-0 w-full z-50 bottom-float"},s_e=["href"],I$=ke({__name:"FloatBottom",props:{items:{}},setup(e){const t=M(!0),n=()=>{t.value=!1},r=F(()=>"float-bottom-swipe");return(s,i)=>{const o=F2,a=B2;return b(t)?(P(),j("div",r_e,[(P(),q(a,{key:b(r),keepalive:"",class:"w-full",loop:"",autoplay:{delay:3e3,disableOnInteraction:!1},modules:[b(IL)]},{default:A(()=>[(P(!0),j(se,null,Fe(e.items,(l,u)=>(P(),q(o,{key:u},{default:A(()=>[L("a",{href:l.url,target:"_blank"},[S(Xr,{src:l.img,height:"70",width:"100%"},null,8,["src"])],8,s_e)]),_:2},1024))),128))]),_:1},8,["modules"])),S(ce,{class:"top-2 right-2 absolute close p-2",border:"",variant:"flat",icon:"mdi-close",onClick:n})])):te("",!0)}}}),i_e=Object.freeze(Object.defineProperty({__proto__:null,default:I$},Symbol.toStringTag,{value:"Module"}
133)),o_e=ke({__name:"land",setup(e){const t=mt("routeParams",{id:""}),n=M({}),r=F(()=>{const{land_conf:u}=n.value;return u});ft(async()=>{n.value=await it().land(t.id);const u=r.value?.tj;u&&(CH("tj",u),z_(!0))});const{bottom_float:s}=On(),i=F(()=>typeof s<"u"&&Object.keys(s).length>0),o=F(()=>{const u=r.value;return u?.text?{icon:co(u?.img),text:u?.text||"",link:u?.url||""}:!1}),a=u=>(r.value?.ad||"swipe").search(u)>-1,l=[{title:"",order:"update"},{title:"日榜",order:"click"},{title:"周榜",order:"week"},{title:"月榜",order:"month"}];return(u,c)=>{const d=k$,f=my,h=Ad,p=Xy,m=I$,v=$a;return P(),j(se,null,[b(o)?(P(),q(d,Ks(Ve({key:0},b(o))),null,16)):te("",!0),a("swipe")?(P(),q(f,{key:1,page:"index",place:"top"})):te("",!0),S(dn,{class:"p-2"},{default:A(()=>[S(h,{tabs:l})]),_:1}),S(dn,{class:"px-2"},{default:A(()=>[S(p,{tabs:l})]),_:1}),b(i)?(P(),q(m,{key:2,items:b(s)},null,8,["items"])):te("",!0),S(v,{"hide-welcome":!0})],64)}}}),L$=Object.freeze(Object.defineProperty({__proto__:null,default:o_e},Symbol.toStringTag,{value:"Module"})),a_e=ke({__name:"main",setup(e){return(t,n)=>(P(),q(_d,{"hide-header":!0}))}}),D$=Object.freeze(Object.defineProperty({__proto__:null,default:a_e},Symbol.toStringTag,{value:"Module"})),l_e={class:"mb-4"},u_e={class:"flex items-center gap-2"},c_e=["src"],P$=ke({__name:"PostTagEditDialog",props:{tagDetail:{},activeTag:{}},emits:["close","saved"],setup(e,{emit:t}){const n=e,r=t,s=M(!0);be(s,x=>{x||r("close")});const i=M(n.tagDetail?.conf?.desc||""),o=M(n.tagDetail?.sortid||0),a=M(null),l=M(n.tagDetail?.icon?.img?qs(n.tagDetail?.icon?.img):""),u=M(!1),c=M(0),d=M(null);function f(x){const g=x.target;if(!g.files?.length)return;const y=g.files[0];if(y.size>2*1024*1024){je.error("图标不能超过2MB");return}a.value=y,l.value=URL.createObjectURL(y)}function h(){d.value?.click()}async function p(){if(!a.value)return n.tagDetail?.icon||"";u.value=!0,c.value=0;try{const{file:x}=it();return(await Hh(x,a.value,y=>{c.value=y}))?.id||""}catch(x){throw je.error("图标上传失败"),x}finally{u.value=!1,c.value=0}}const m=M(!1);async function v(){m.value=!0;let x=n.tagDetail?.icon||"";try{a.value&&(x=await p());const{post:g}=it();await g.tagEdit({id:n.tagDetail.id,conf:{desc:i.value,icon:x},sortid:o.value}),je.success("保存成功"),r("saved"),r("close")}catch{}finally{m.value=!1}}return(x,g)=>{const y=An;return P(),q(Gt,{"model-value":b(s),"max-width":"400",persistent:"","onUpdate:modelValue":g[3]||(g[3]=_=>s.value=_)},{default:A(()=>[S($e,null,{default:A(()=>[S(at,null,{default:A(()=>[z(Z(e.activeTag)+" ",1),g[4]||(g[4]=L("span",{class:"text-sm text-gray-500"},"编辑标签 ",-1))]),_:1}),S(We,null,{default:A(()=>[S(jh,{modelValue:b(i),"onUpdate:modelValue":g[0]||(g[0]=_=>Ce(i)?i.value=_:null),"auto-grow":!0,rows:"2",label:"简介",class:"mb-4"},null,8,["modelValue"]),S(St,{modelValue:b(o),"onUpdate:modelValue":g[1]||(g[1]=_=>Ce(o)?o.value=_:null),label:"排序",type:"number",class:"mb-4"},null,8,["modelValue"]),L("div",l_e,[g[6]||(g[6]=L("div",{class:"mb-2"}," 图标 ",-1)),L("div",u_e,[!b(a)&&b(l)?(P(),q(y,{key:0,src:b(l),alt:"icon",encoded:1,class:"w-12 h-12 rounded"},null,8,["src"])):b(l)?(P(),j("img",{key:1,src:b(l),alt:"icon",class:"w-12 h-12 rounded"},null,8,c_e)):(P(),q(de,{key:2,icon:"mdi-image-outline",class:"w-12 h-12 rounded"})),S(ce,{size:"small",onClick:h},{default:A(()=>[...g[5]||(g[5]=[z(" 选择图标 ",-1)])]),_:1}),L("input",{ref_key:"iconInput",ref:d,type:"file",accept:"image/*",class:"hidden",onChange:f},null,544)]),b(u)?(P(),q(gd,{key:0,"model-value":b(c),height:"6",class:"mt-2"},null,8,["model-value"])):te("",!0)])]),_:1}),S(mn,null,{default:A(()=>[S(Mt),S(ce,{text:"",onClick:g[2]||(g[2]=_=>s.value=!1)},{default:A(()=>[...g[7]||(g[7]=[z(" 取消 ",-1)])]),_:1}),S(ce,{color:"primary",loading:b(m),onClick:v},{default:A(()=>[...g[8]||(g[8]=[z(" 保存 ",-1)])]),_:1},8,["loading"])]),_:1})]),_:1})]),_:1},8,["model-value"])}}}),d_e=Object.freeze(Object.defineProperty({__proto__:null,default:P$},Symbol.toStringTag,{value:"Module"})),f_e={class:"flex flex-col px-6 py-5"},h_e={class:"flex items-center gap-4"},p_e={class:"flex-shrink-0 flex items-center justify-center w-12 h-12 rounded-full bg-primary/90 shadow"},m_e={key:1,class:"text-xl font-bold text-white/90"},v_e={class:"flex-1 min-w-0 flex items-center gap-2"},g_e={class:"text-2xl font-bold truncate max-w-[10em]"},y_e={class:"flex items-center gap-2 mr-0"},x_e={class:"relative my-3"},b_e={class:"bg-primary/5 border-l-4 border-primary rounded p-3 pl-5 font-medium text-sm shadow-sm whitespace-pre-line text-ju
133stify"},__e={class:"flex gap-8 mt-1 mb-0 opacity-80 pt-1"},S_e={class:"flex-1 flex flex-col items-center justify-center"},E_e={class:"flex items-center gap-1"},w_e={class:"flex flex-col items-center"},T_e={class:"font-semibold text-2xl leading-tight"},C_e={class:"flex-1 flex flex-col items-center"},A_e={class:"flex items-center gap-1"},k_e={class:"flex flex-col items-center"},I_e={class:"font-semibold text-2xl leading-tight"},L_e={class:"flex-1 flex flex-col items-center"},D_e={class:"flex items-center gap-1"},P_e={class:"flex flex-col items-center"},R_e={class:"font-semibold text-2xl leading-tight"},O_e={class:"flex-1 flex flex-col items-center"},$_e={class:"flex items-center gap-1"},M_e={class:"flex flex-col items-center"},F_e={class:"font-semibold text-2xl leading-tight"},B_e={key:1,class:"flex items-center gap-1 mt-3"},aw=ke({__name:"PostTagDetailCard",props:{tagDetail:{},activeTag:{}},setup(e){const{isEditor:t}=Ct(),n=M(!1);function r(){location.reload()}const s=()=>{const{copyText:l}=Pa(),u=On().share?.vod?.text||[],c=u[Math.floor(Math.random()*u.length)]||"为你推荐一个非常棒的网站";try{l(c+" "+location.href),je.success("复制成功, 请粘贴分享给你的QQ/微信等好友吧")}catch{je.error("复制失败")}},i=(l,u="md")=>qs(l)+(u?`?${u}`:""),o=M(null),a=M(!1);return ft(()=>{tt(()=>{if(o.value){const u=parseFloat(getComputedStyle(o.value).lineHeight)*2;a.value=o.value.scrollHeight>u+2}})}),(l,u)=>{const c=An,d=P$;return e.activeTag?(P(),q(Fm,{key:0,class:"rounded-md",color:"surface",elevation:"2"},{default:A(()=>[L("div",f_e,[L("div",h_e,[L("div",p_e,[e.tagDetail?.icon?(P(),q(c,{key:0,src:i(e.tagDetail.icon.img),encoded:1,"blur-background":!0,class:"object-cover rounded-full"},null,8,["src"])):(P(),j("span",m_e,Z(e.activeTag?.charAt(0).toUpperCase()),1))]),L("div",v_e,[L("div",g_e," #"+Z(e.activeTag),1)]),L("div",y_e,[S(ce,{icon:"",density:"comfortable",size:"small",class:"mr-1",onClick:s},{default:A(()=>[S(de,{icon:"mdi:share-variant",class:"mr-1"}),u[2]||(u[2]=z(" 分享 ",-1))]),_:1}),b(t)?(P(),q(Ri,{key:0,location:"bottom end"},{activator:A(({props:f})=>[S(ce,Ve({icon:"",density:"comfortable"},f,{class:"bg-transparent"}),{default:A(()=>[S(de,{icon:"mdi:dots-vertical"})]),_:1},16)]),default:A(()=>[S(vr,null,{default:A(()=>[S(Rt,{title:"编辑","prepend-icon":"mdi-pencil",onClick:u[0]||(u[0]=f=>n.value=!0)})]),_:1})]),_:1}
133)):te("",!0)])]),b(n)?(P(),q(d,{key:0,"tag-detail":e.tagDetail,"active-tag":e.activeTag,onClose:u[1]||(u[1]=f=>n.value=!1),onSaved:r},null,8,["tag-detail","active-tag"])):te("",!0),L("div",x_e,[L("div",b_e,Z(e.tagDetail?.conf?.desc||`#${e.activeTag},快来发布自拍或参与讨论吧!`),1)]),L("div",__e,[L("div",S_e,[L("div",E_e,[L("div",w_e,[L("span",T_e,Z(("humanNumberWithDefault"in l?l.humanNumberWithDefault:b(Dr))(e.tagDetail?.counts,"-")),1),u[3]||(u[3]=L("span",{class:"text-xs mt-0.5"},"帖子数",-1))])])]),L("div",C_e,[L("div",A_e,[L("div",k_e,[L("span",I_e,Z(("humanNumberWithDefault"in l?l.humanNumberWithDefault:b(Dr))(e.tagDetail?.clicks,"-")),1),u[4]||(u[4]=L("span",{class:"text-xs mt-0.5"},"点击量",-1))])])]),L("div",L_e,[L("div",D_e,[L("div",P_e,[L("span",R_e,Z(("humanNumberWithDefault"in l?l.humanNumberWithDefault:b(Dr))(e.tagDetail?.likes,"-")),1),u[5]||(u[5]=L("span",{class:"text-xs mt-0.5"},"福报数",-1))])])]),L("div",O_e,[L("div",$_e,[L("div",M_e,[L("span",F_e,Z(("humanNumberWithDefault"in l?l.humanNumberWithDefault:b(Dr))(e.tagDetail?.rewards,"-")),1),u[6]||(u[6]=L("span",{class:"text-xs mt-0.5"},"打赏量",-1))])])])]),e.tagDetail?.activeUsers?.length?(P(),j("div",B_e,[u[7]||(u[7]=L("span",{class:"text-xs text-gray-400 mr-2"},"活跃用户:",-1)),(P(!0),j(se,null,Fe(e.tagDetail.activeUsers,f=>(P(),q(rr,{key:f.id,image:f.avatar,size:"24",class:"border"},null,8,["image"]))),128))])):te("",!0)])]),_:1})):te("",!0)}}}),N_e=Object.freeze(Object.defineProperty({__proto__:null,default:aw},Symbol.toStringTag,{value:"Module"})),V_e={class:"flex items-center gap-2 -mb-2"},U_e={class:"flex w-full border rounded-none overflow-hidden",style:{height:"40px"}},j_e={class:"p-4 min-w-64 bg-surface border rounded-none -mr-4 -mt-[1px]"},z_e={class:"flex justify-end mt-2"},Qy=ke({__name:"PostListFilterMenu",props:{activeTab:{},activeTag:{},tabs:{},sortMenu:{type:Boolean},searchMenu:{type:Boolean},searchText:{},hideCategory:{type:Boolean},searchLocked:{type:Boolean}},emits:["update:sortMenu","update:searchMenu","selectSort","update:searchText","search","searchBlocked"],setup(e,{emit:t}){const n=e,r=t,s=M(n.searchText);be(()=>n.searchText,h=>s.value=h);const i=M(!1),o=M(!1);function a(h){i.value=h,r("update:sortMenu",h)}function l(h){o.value=h,r("update:searchMenu",h)}function u(h){i.value=!1,r("selectSort",h)}Tt();const{isLogin:c}=Ct();function d(){if(n.searchLocked){o.value=!1,r("searchBlocked");return}s.value&&s.value.trim()&&(r("update:searchText",s.value),o.value=!1,r("update:searchMenu",!1),r("search",s.value.trim()))}function f(){n.searchLocked&&r("searchBlocked")}return(h,p)=>{const m=Vh;return P(),j("div",V_e,[L("div",U_e,[n.hideCategory?te("",!0):(P(),q(m,{key:0},{activator:A(v=>[S(ce,Ve(v,{variant:"text",class:"flex-1 h-10 rounded-none shadow-none border-none bg-transparent text-gray-700 font-normal justify-center",style:{"border-right":"1px solid #e5e7eb"}}),{default:A(()=>[S(de,{class:"mr-1",size:"18"},{default:A(()=>[...p[1]||(p[1]=[z(" mdi-tag ",-1)])]),_:1}),Ht(h.$slots,"activeTag",{},()=>[z(Z(n.activeTag||"版块"),1)]),S(de,{class:"ml-1",size:"18"},{default:A(()=>[...p[2]||(p[2]=[z(" mdi-menu-down ",-1)])]),_:1})]),_:3},16)]),_:3})),S(Ri,{"model-value":b(i),"close-on-content-click":!1,"onUpdate:modelValue":a},{activator:A(({props:v})=>[S(ce,Ve(v,{variant:"text",class:"flex-1 h-10 rounded-none shadow-none border-none bg-transparent text-gray-700 font-normal justify-center",style:n.hideCategory?"":"border-right: 1px solid #e5e7eb;"}),{default:A(()=>[S(de,{class:"mr-1",size:"18"},{default:A(()=>[...p[3]||(p[3]=[z(" mdi-sort ",-1)])]),_:1}),z(" "+Z(n.tabs.find(x=>x.key===n.activeTab)?.label||"排序")+" ",1),S(de,{class:"ml-1",size:"18"},{default:A(()=>[...p[4]||(p[4]=[z(" mdi-menu-down ",-1)])]),_:1})]),_:1},16,["style"])]),default:A(()=>[S(vr,null,{default:A(()=>[(P(!0),j(se,null,Fe(n.tabs,v=>(P(),q(Rt,{key:v.key,active:n.activeTab===v.key,onClick:x=>u(v.key)},{default:A(()=>[S(lo,null,{default:A(()=>[S(de,{icon:v.icon,class:"mr-1",size:"18"},null,8,["icon"]),z(" "+Z(v.label),1)]),_:2},1024)]),_:2},1032,["active","onClick"]))),128))]),_:1})]),_:1},8,["model-value"]),n.searchLocked?(P(),q(ce,{key:2,variant:"text",class:"flex-1 h-10 rounded-none shadow-none border-none bg-transparent text-gray-500 font-normal justify-center",style:{"border-right":"1px solid #e5e7eb"},onClick:f},{default:A(()=>[S(de,{class:"mr-1",size:"18"},{default:A(()=>[...p[8]||(p[8]=[z(" mdi-magnify ",-1)])]),_:1}),p[9]||(p[9]=z(" 搜索 ",-1))]),_:1})):(P(),q(Ri,{key:1,"model-value":b(o),"close-on-content-click":!1,"onUpdate:modelValue":l},{activator:A(({props:v})=>[S(ce,Ve(v,{variant:"text",class:"flex-1 h-10 rounded-none shadow-none border-none bg-transparent text-gray-700 font-normal justify-center",style:{"border-right":"1px solid #e5e7eb"}}),{default:A(()=>[S(de,{class:"mr-1",size:"18"},{default:A(()=>[...p[5]||(p[5]=[z(" mdi-magnify ",-1)])]),_:1}),p[6]||(p[6]=z(" 搜索 ",-1))]),_:1},16)]),default:A(()=>[L("div",j_e,[S(St,{modelValue:b(s),"onUpdate:modelValue":p[0]||(p[0]=v=>Ce(s)?s.value=v:null),label:"输入关键词",dense:"",clearable:"","hide-details":"",onKeyup:Vg(d,["enter"])},null,8,["modelValue"]),L("div",z_e,[S(ce,{color:"primary",block:"",onClick:d},{default:A(()=>[...p[7]||(p[7]=[z(" 搜索 ",-1)])]),_:1})])])]),_:1},8,["model-value"]))])])}}}),H_e=Object.freeze(Object.defineProperty({__proto__:null,default:Qy},Symbol.toStringTag,{value:"Module"}
133)),G_e={key:0,class:"recommended-users-list"},K_e={class:"flex items-center justify-between mb-3"},W_e={class:"flex gap-3 overflow-visible overflow-x-auto pb-2 scrollbar-hide"},q_e=ke({__name:"RecommendedUsersList",props:{size:{type:Number,default:10}},setup(e){const t=e,n=M([]),r=M(!1);async function s(){try{r.value=!0;const{user:i}=it(),o=await i.recommend({size:t.size});o?.list&&Array.isArray(o.list)?n.value=o.list:n.value=[]}catch(i){console.error("获取推荐用户失败:",i),n.value=[]}finally{r.value=!1}}return ft(()=>{s()}),(i,o)=>{const a=Gi,l=Ra,u=Vu;return b(n).length>0?(P(),j("div",G_e,[S($e,{class:"rounded-md shadow"},{default:A(()=>[S(We,{class:"px-3 py-4"},{default:A(()=>[L("div",K_e,[o[1]||(o[1]=L("div",{class:"text-sm font-medium opacity-80"}," 推荐关注 ",-1)),S(a,{to:"/user/follow",class:"text-xs hover:opacity-80 transition-opacity flex items-center gap-1"},{default:A(()=>[o[0]||(o[0]=z(" 我的关注 ",-1)),S(de,{icon:"mdi:chevron-right",size:"16"})]),_:1})]),L("div",W_e,[(P(!0),j(se,null,Fe(b(n),c=>(P(),j("div",{key:c.user.id,class:"flex-shrink-0 flex flex-col overflow-visible items-center gap-2 min-w-[80px] max-w-[100px]"},[S(l,{user:c.user,size:60,clickable:!0},null,8,["user"]),S(a,{to:`/u/${c.user.id}`,class:"text-xs text-center font-medium hover:text-primary transition-colors line-clamp-2 w-full",title:c.user.nickname||"未知用户"},{default:A(()=>[z(Z(c.user.nickname||"未知用户"),1)]),_:2},1032,["to","title"]),S(u,{"user-id":c.user.id,size:"x-small",variant:"outlined",class:"w-full"},null,8,["user-id"])]))),128))])]),_:1})]),_:1})])):te("",!0)}}}),lw=vt(q_e,[["__scopeId","data-v-3f09e4b0"]]),Y_e=Object.freeze(Object.defineProperty({__proto__:null,default:lw},Symbol.toStringTag,{value:"Module"})),X_e={class:"flex flex-col md:flex-row gap-4"},Z_e={class:"grid grid-cols-2 gap-2"},J_e={class:"flex-1 min-w-0"},Q_e={class:"m-2 md:m-0"},eSe={class:"mt-4"},tSe={class:"px-2 mt-2 -mb-2"},nSe=ke({__name:"post",props:{hideHeader:{type:Boolean}},setup(e){const t=Tt(),n=M([]),r=mt("routeParams",{tab:"hot",tag:"",page:1,isLocation:!1}),s=F(()=>!!r.isLocation),i=F(()=>{const y=Array.isArray(r.tag)?r.tag[0]:r.tag||"";return y==="_"?"":y});async function o(){try{const{post:y}=it(),_=await y.tag();_?.list&&Array.isArray(_.list)&&(n.value=[{name:"首页",url:"/html/post"},..._.list.map(E=>({name:E.name}))])}catch{}}ft(()=>{o()});function a(y){let _="/html/post";_+=`/${y||"_"}`,t.replace(_)}function l(y){return typeof y=="object"&&y!==null&&"name"in y}const{tabs:u,activeTab:c,sortMenu:d,searchMenu:f,handleSelectSort:h}=X5(),p=M(null);be(i,async y=>{if(y)try{const{post:_}=it(),E=await _.tagDetail({tag:y,isloc:s.value?1:0});p.value=E||{}}catch{p.value=null}else p.value=null},{immediate:!0});const m=Fn(),v=F(()=>m.query.keyword?String(m.query.keyword):""),{isLogin:x}=Ct();function g(y){t.push({path:m.path,query:{...m.query,keyword:y||void 0}})}return be(()=>m.query.keyword,()=>{}),(y,_)=>{const E=bd,w=aw,T=Qy,C=lw,I=kl,k=Cd,$=Xs;return P(),j(se,null,[S(E,{page:"post"}),L("div",X_e,[b(n).length?(P(),q($e,{key:0,class:"hidden md:block w-56 flex-shrink-0 rounded-md my-2 shadow px-3 py-2"},{default:A(()=>[L("div",Z_e,[(P(!0),j(se,null,Fe(b(n),R=>(P(),q(ce,{key:l(R)?R.name:R,color:l(R)&&b(i)===R.name||!l(R)&&b(i)===R?"primary":"default",variant:"text",class:"px-4 py-1 min-w-0 text-sm font-medium transition-all duration-150 rounded-full hover:bg-gray-100 hover:text-primary cursor-pointer",style:Qe(l(R)&&b(i)===R.name||!l(R)&&b(i)===R?"background-color: #E3F2FD; color: #1976D2;":""),onClick:D=>l(R)?R.url?a(""):a(R.name):a(R)},{default:A(()=>[z(Z(l(R)?R.name:R),1)]),_:2},1032,["color","style","onClick"]))),128))])]),_:1})):te("",!0),b(n).length?(P(),q($e,{key:1,class:"hidden flex mt-1 gap-1 flex-wrap rounded-none shadow px-3 py-2 mb-2 justify-between md:hidden"},{default:A(()=>[(P(!0),j(se,null,Fe(b(n),R=>(P(),q(ce,{key:l(R)?R.name:R,color:b(i)===(l(R)?R.name:R)?"primary":"default",variant:"text",class:"px-4 py-1 min-w-0 text-sm font-medium transition-all duration-150 rounded-full hover:bg-gray-100 hover:text-primary curs
133or-pointer",style:Qe(b(i)===(l(R)?R.name:R)?"background-color: #E3F2FD; color: #1976D2;":""),onClick:D=>l(R)&&R.url?a(""):a(l(R)?R.name:R)},{default:A(()=>[z(Z(l(R)?R.name:R),1)]),_:2},1032,["color","style","onClick"]))),128))]),_:1})):te("",!0),L("div",J_e,[L("div",Q_e,[S(w,{"tag-detail":b(p),"active-tag":b(i)},null,8,["tag-detail","active-tag"])]),S(T,{"search-text":b(v),"onUpdate:searchText":_[0]||(_[0]=R=>Ce(v)?v.value=R:null),"search-menu":b(f),"onUpdate:searchMenu":[_[1]||(_[1]=R=>Ce(f)?f.value=R:null),_[3]||(_[3]=R=>f.value=R)],"active-tab":b(c),"active-tag":b(i),tabs:b(u),"sort-menu":b(d),"onUpdate:sortMenu":_[2]||(_[2]=R=>d.value=R),onSelectSort:b(h),onSearch:g},null,8,["search-text","search-menu","active-tab","active-tag","tabs","sort-menu","onSelectSort"]),L("div",eSe,[S(C,{size:10})]),L("div",tSe,[S(I,{page:"index",place:"text2"})]),(P(),q(k,{key:`${b(v)}-${b(c)}-${b(i)}-${b(s)}`,"active-tab":b(c),"active-tag":b(i),"is-location":b(s),"search-text":b(v)},null,8,["active-tab","active-tag","is-location","search-text"]))])]),S($)],64)}}}),R$=Object.freeze(Object.defineProperty({__proto__:null,default:nSe},Symbol.toStringTag,{value:"Module"})),rSe=ke({__name:"register",setup(e){return w_().replace("/auth/register"),()=>{}}}),sSe=Object.freeze(Object.defineProperty({__proto__:null,default:rSe},Symbol.toStringTag,{value:"Module"})),iSe={class:"flex py-2"},oSe={class:"flex-1 min-w-0 mx-auto -mt-4"},aSe={key:0,class:"flex flex-col items-center justify-center py-16 text-gray-400"},lSe={key:0,class:"text-center py-4 text-gray-400"},uSe={key:1,class:"flex flex-col items-center py-4 text-gray-400"},cSe=ke({__name:"timeline",setup(e){const t=kh(),n=w_(),r=M([]),s=M(!1),i=M(1),o=M(!1),a=M(t.query.tab||"posts"),l=M(t.query.type||"all"),u=M(t.query.status||"all"),{post:c}=it(),{isEditor:d}=Ct(),f=[{key:"posts",label:"我的发布",icon:"ph:file-text"},{key:"replies",label:"我的评论",icon:"ph:chat-circle"},{key:"likes",label:"我的点赞",icon:"ph:heart"},{key:"bought",label:"我的购买",icon:"ph:shopping-cart"}],h=M(!1),p=[{key:"all",label:"全部",icon:"mdi:apps"},{key:"video",label:"视频",icon:"mdi:video"},{key:"image",label:"图片",icon:"mdi:image"}],m=M(!1),v=F(()=>[{key:"all",label:"全部",icon:"mdi:check-all"},{key:"processed",label:"待审",icon:"mdi:clock-outline"},{key:"uploaded",label:"处理中",icon:"mdi:progress-clock"},{key:"scheduled",label:"定时",icon:"mdi:timer-outline"},{key:"reviewed",label:"展示",icon:"mdi:eye-outline"},{key:"rejected",label:"拒绝",icon:"mdi:close-circle-outline"},d.value?{key:"deleted",label:"删除",icon:"mdi:delete-outline"}:void 0].filter(Boolean)),x=M(!1),g=F(()=>!s.value&&r.value.length===0);function y(){n.replace({query:{...t.query,tab:a.value,type:l.value,status:u.value}})}function _(D){a.value=D,h.value=!1,y()}function E(D){l.value=D,m.value=!1,y()}function w(D){u.value=D,x.value=!1,y()}async function T(D){if(s.value||o.value){D?.done("empty");return}s.value=!0;try{const O={all:{img:0,vod:0},image:{img:2,vod:0},video:{img:0,vod:2}},{img:B,vod:U}=O[l.value]||{img:0,vod:0},N={page:i.value,tab:a.value,status:d.value?u.value:void 0,img:B,vod:U},{list:V}=await c.list(N);if(V.length===0){o.value=!0,D?.done("empty");return}i.value===1?r.value=V:r.value.push(...V),i.value++,V.length<20?(o.value=!0,D?.done("empty")):D?.done("ok")}catch{D?.done("error")}finally{s.value=!1}}function C(){r.value=[],i.value=1,o.value=!1,T()}ft(()=>T()),be(()=>[t.query.tab,t.query.type,t.query.status],([D,O,B])=>{a.value=D||"posts",l.value=O||"all",u.value=B||"all",C()},{immediate:!0});function I(D){return{100:"展示",95:"定时",1:"待审",0:"处理中","-1":"被拒","-2":"删除"}[`${D}`]||"未知"}function k(D){return{100:"text-green-600 bg-green-50",95:"text-yellow-600 bg-yellow-50",1:"text-yellow-600 bg-yellow-50",0:"text-yellow-600 bg-yellow-50","-1":"text-red-600 bg-red-50","-2":"text-red-600 bg-red-50"}[`${D}`]||"text-gray-600 bg-gray-50"}function $(D,O){const B=r.value.find(U=>U.post.id===D);B&&(B.post.status=O,console.log(`帖子 ${D} 状态已更新为: ${I(O)}`))}function R(D){const O=r.value.find(B=>B.post.id===D.id);O&&(O.post={...O.post,...D})}return(D,O)=>{const B=xd,U=i0,N=$a,V=Xs;return P(),j(se,null,[S(B),L("div",iSe,[S(Ri,{modelValue:b(h),"onUpdate:modelValue":O[0]||(O[0]=H=>Ce(h)?h.value=H:null),"content-class":"left-menu"},{activator:A(({props:H})=>[S(ce,Ve(H,{variant:"text",class:"flex-1 h-10 rounded shadow-none border font-normal justify-center"}),{default:A(()=>[S(de,{icon:f.find(re=>re.key===b(a))?.icon,class:"mr-1",size:"18"},null,8,["icon"]),z(" "+Z(f.find(re=>re.key===b(a))?.label||"我的内容")+" ",1),S(de,{icon:"mdi-menu-down",class:"ml-1",size:"18"})]),_:1},16)]),default:A(()=>[S(vr,null,{default:A(()=>[(P(),j(se,null,Fe(f,H=>S(Rt,{key:H.key,active:b(a)===H.key,onClick:re=>_(H.key)},{default:A(()=>[S(lo,null,{default:A(()=>[S(de,{icon:H.icon,class:"mr-1",size:"18"},null,8,["icon"]),z(" "+Z(H.label),1)]),_:2},1024)]),_:2},1032,["active","onClick"])),64))]),_:1})]),_:1},8,["modelValue"]),S(Ri,{modelValue:b(m),"onUpdate:modelValue":O[1]||(O[1]=H=>Ce(m)?m.value=H:null)},{activator:A(({props:H})=>[S(ce,Ve(H,{variant:"text",class:"flex-1 h-10 rounded shadow-none border font-normal justify-center"}),{default:A(()=>[S(de,{icon:p.find(re=>re.key===b(l))?.icon,class:"mr-1",size:"18"},null,8,["icon"]),z(" "+Z(p.find(re=>re.key===b(l))?.label||"类型")+" ",1),S(de,{icon:"mdi-menu-down",class:"ml-1",size:"18"})]),_:1},16)]),default:A(()=>[S(vr,null,{default:A(()=>[(P(),j(se,null,Fe(p,H=>
133S(Rt,{key:H.key,active:b(l)===H.key,onClick:re=>E(H.key)},{default:A(()=>[S(lo,null,{default:A(()=>[S(de,{icon:H.icon,class:"mr-1",size:"18"},null,8,["icon"]),z(" "+Z(H.label),1)]),_:2},1024)]),_:2},1032,["active","onClick"])),64))]),_:1})]),_:1},8,["modelValue"]),S(Ri,{modelValue:b(x),"onUpdate:modelValue":O[2]||(O[2]=H=>Ce(x)?x.value=H:null),"content-class":"right-menu"},{activator:A(({props:H})=>[S(ce,Ve(H,{variant:"text",class:"flex-1 h-10 rounded shadow-none border font-normal justify-center"}),{default:A(()=>[S(de,{icon:b(v).find(re=>re.key===b(u))?.icon,class:"mr-1",size:"18"},null,8,["icon"]),z(" "+Z(b(v).find(re=>re.key===b(u))?.label||"状态")+" ",1),S(de,{icon:"mdi-menu-down",class:"ml-1",size:"18"})]),_:1},16)]),default:A(()=>[S(vr,null,{default:A(()=>[(P(!0),j(se,null,Fe(b(v),H=>(P(),q(Rt,{key:H.key,active:b(u)===H.key,onClick:re=>w(H.key)},{default:A(()=>[S(lo,null,{default:A(()=>[S(de,{icon:H.icon,class:"mr-1",size:"18"},null,8,["icon"]),z(" "+Z(H.label),1)]),_:2},1024)]),_:2},1032,["active","onClick"]))),128))]),_:1})]),_:1},8,["modelValue"])]),L("div",oSe,[b(g)?(P(),j("div",aSe,[S(de,{icon:"mdi:clipboard-text-off-outline",size:"72",class:"mb-4 opacity-70"}),O[4]||(O[4]=L("p",{class:"text-base font-medium"}," 暂无内容 ",-1)),L("p",null,[S(ce,{variant:"text",color:"primary",to:"/html/post"},{default:A(()=>[O[3]||(O[3]=z(" 去逛逛   ",-1)),S(de,{icon:"mdi:arrow-right"})]),_:1})])])):(P(),q(o0,{key:JSON.stringify({page:b(i),activeTab:b(a)}),side:"end",direction:"vertical",disabled:b(s)||b(o),onLoad:T},{empty:A(()=>[b(s)?(P(),j("div",lSe," 加载中... ")):b(o)?(P(),j("div",uSe,[S(de,{icon:"mdi:inbox-remove-outline",size:"48",class:"mb-2 opacity-80"}),O[5]||(O[5]=z(" 没有更多了 ",-1))])):te("",!0)]),default:A(()=>[(P(!0),j(se,null,Fe(b(r),H=>(P(),q(U,{key:H.post.id,user:H.user,post:H.post,replies:H?.replies||[],onStatusChanged:$,onPostUpdated:R},Sh({_:2},[b(a)==="posts"&&H.post.status!==void 0?{name:"status",fn:A(()=>[S(kt,{size:"small",density:"compact",class:Ie(["text-xs font-medium -mt-1 mr-1",k(H.post.status)])},{default:A(()=>[z(Z(I(H.post.status)),1)]),_:2},1032,["class"])]),key:"0"}:void 0]),1032,["user","post","replies"]))),128))]),_:1},8,["disabled"]))]),S(N),S(V)],64)}}}),dSe=vt(cSe,[["__scopeId","data-v-71e74b58"]]),fSe=Object.freeze(Object.defineProperty({__proto__:null,default:dSe},Symbol.toStringTag,{value:"Module"})),hSe=(e,t,n)=>{const r=e[t];return r?typeof r=="function"?r():Promise.resolve(r):new Promise((s,i)=>{(typeof queueMicrotask=="function"?queueMicrotask:setTimeout)(i.bind(null,new Error("Unknown variable dynamic import: "+t+(t.split("/").length!==n?". Note that variables only represent file names one level deep.":""))))})},pSe={class:"flex justify-center items-center h-[50vh]"},O$=ke({__name:"[...slug]",setup(e){const t=Fn(),{prod:n}=Zr().public,r=F(()=>{const f=location.pathname;return f.includes("enter")||f.includes("main")}),s=[{pattern:/\/(vod|nvl|pic|sj|down|actor)([_/])?(\d+)?/,priority:90,handler:(f,h)=>{h.type=f[1],h.cid=f[3]||0}},{pattern:/\/(vod|nvl|pic|sj|down|actor)\b/,priority:90,handler:(f,h)=>{f[1]&&(h.type=f[1])}},{pattern:/^\/([a-z]{1,2}\d+)/,priority:90,handler:(f,h)=>(h.type="land",f[1]&&(h.id=f[1]),h.hideFooter=!0,h.hideHeader=!0,!0)},{pattern:/\/(update|click|week|month|total|clicks|weekclicks|monthclicks|yearclicks|totalclicks|year|favs|feeds|rank)/,priority:80,handler:(f,h)=>{h.order=f[1]}},{pattern:/\/page_(\d+)\.html$/,priority:100,handler:(f,h)=>{h.page=parseInt(f[1])}},{pattern:/\/search\/(\w+)\.html$/,priority:10,handler:(f,h)=>(h.type="search",h.component="search",!0)},{pattern:/\/post\/?$/,priority:10,handler:(f,h)=>(h.type="post",h.component="post",h.hideHeader=!0,h.hideFooter=!0,!0)},{pattern:/\/post\/loc\/([^/]*?)\/?(new|hot|week|month|year|vod|img|vip)?(?:\/(\d+)\.html)?$/,priority:102,handler:(f,h)=>(h.type="post",h.component="post",h.hideHeader=!0,h.hideFooter=!0,h.tag=f[1],h.isLocation=!0,h.tab=f[2]||"new",h.page=f[3]||1,!0)},{pattern:/\/post\/([^/]*?)\/?(new|hot|week|month|year|vod|img|rand|vip)?(?:\/(\d+)\.html)?$/,priority:101,handler:(f,h)=>(h.type="post",h.component="post",h.hideHeader=!0,h.hideFooter=!0,h.tag=f[1],h.tab=f[2]||"new",h.page=f[3]?parseInt(f[3]):1,!0)},{pattern:/\/thread\/([^/]*?)(\/?|\.html)$/,priority:11,handler:(f,h)=>(h.type="post",h.component="post_detail",h.id=f[1],h.hideHeader=!0,h.hideFooter=!0,!0)},{pattern:/\/(vod|nvl|pic|sj|down|actor)\/page_(\d+)\.html$/,priority:10,handler:(f,h)=>(h.type=f[1],h.page=f[2],!0)},{pattern:/\/(vod|nvl|pic|sj|down|actor)\/(\w+)\.html$/,priority:10,handler:(f,h)=>
133(h.type=f[1],h.id=f[2],h.component=`${h.type}_detail`,h.place="detail",!0)},{pattern:/\/game(\.html)?$/,priority:11,handler:(f,h)=>(h.component="game",h.hideBanner=!0,h.hideIcon=!0,h.place="game",!0)},{pattern:/\/(.+)\.html$/,priority:1,handler:(f,h)=>{const p=f[1].replace("(\\w*)?html/(\\w+)\\.html","$1");if(p)return h.component=p,!0}}],i=()=>{const h=`/${Array.isArray(t.params.slug)?t.params.slug.join("/"):t.params.slug}`,p={hideHeader:!1,hideFooter:!1},m=[...s].sort((v,x)=>x.priority-v.priority);for(const v of m){const x=h.match(v.pattern);if(x&&v.handler(x,p)===!0)break}return p},o=Wt({place:"list",...i()});Cn("routeParams",o),!n&&console.log("params",o),be(()=>t.params.slug,()=>{const f=i();Object.keys(o).forEach(h=>{!(h in f)&&h!=="place"&&delete o[h]}),Object.assign(o,{place:"list",...f}),!n&&console.log("params updated",o)}),zi(()=>{const f=i();(f.id!==o.id||f.type!==o.type)&&(!n&&console.log("onActivated: params mismatch, updating",{old:{id:o.id,type:o.type},new:{id:f.id,type:f.type}}),Object.keys(o).forEach(h=>{!(h in f)&&h!=="place"&&delete o[h]}),Object.assign(o,{place:"list",...f}))});const a=Ze(),l=M({}),u=M("");let c="",d=null;return be(()=>t.params.slug,(f,h)=>{const p=Array.isArray(f)?f.join("/"):String(f),m=Array.isArray(h)?h.join("/"):String(h);if(p===m)return;u.value=p;const v=async g=>{try{return c!=g&&(c=g,d=await hSe(Object.assign({
133"./sub/actor.vue":()=>Te(()=>Promise.resolve().then(()=>M$),void 0,import.meta.url),
133"./sub/actor_detail.vue":()=>Te(()=>Promise.resolve().then(()=>sM),void 0,import.meta.url),
133"./sub/down.vue":()=>Te(()=>Promise.resolve().then(()=>T$),void 0,import.meta.url),
133"./sub/down_detail.vue":()=>Te(()=>Promise.resolve().then(()=>nM),void 0,import.meta.url),
133"./sub/enter.vue":()=>Te(()=>Promise.resolve().then(()=>F$),void 0,import.meta.url),
133"./sub/game.vue":()=>Te(()=>Promise.resolve().then(()=>C$),void 0,import.meta.url),
133"./sub/help.vue":()=>Te(()=>Promise.resolve().then(()=>A$),void 0,import.meta.url),
133"./sub/index.vue":()=>Te(()=>Promise.resolve().then(()=>B$),void 0,import.meta.url),
133"./sub/land.vue":()=>Te(()=>Promise.resolve().then(()=>L$),void 0,import.meta.url),
133"./sub/main.vue":()=>Te(()=>Promise.resolve().then(()=>D$),void 0,import.meta.url),
133"./sub/nvl.vue":()=>Te(()=>Promise.resolve().then(()=>_$),void 0,import.meta.url),
133"./sub/nvl_detail.vue":()=>Te(()=>Promise.resolve().then(()=>Z$),void 0,import.meta.url),
133"./sub/pic.vue":()=>Te(()=>Promise.resolve().then(()=>S$),void 0,import.meta.url),
133"./sub/pic_detail.vue":()=>Te(()=>Promise.resolve().then(()=>J$),void 0,import.meta.url),
133"./sub/post.vue":()=>Te(()=>Promise.resolve().then(()=>R$),void 0,import.meta.url),
133"./sub/post_detail.vue":()=>Te(()=>Promise.resolve().then(()=>rM),void 0,import.meta.url),
133"./sub/search.vue":()=>Te(()=>Promise.resolve().then(()=>U$),void 0,import.meta.url),
133"./sub/sj.vue":()=>Te(()=>Promise.resolve().then(()=>m$),void 0,import.meta.url),
133"./sub/sj_detail.vue":()=>Te(()=>Promise.resolve().then(()=>W$),void 0,import.meta.url),
133"./sub/vod.vue":()=>Te(()=>Promise.resolve().then(()=>E$),void 0,import.meta.url),
133"./sub/vod_detail.vue":()=>Te(()=>Promise.resolve().then(()=>Q$),void 0,import.meta.url),
133"./sub/webclip.vue":()=>Te(()=>Promise.resolve().then(()=>j$),void 0,import.meta.url),
133"./sub/xz_detail.vue":()=>Te(()=>Promise.resolve().then(()=>Y$),void 0,import.meta.url)
133}),`./sub/${g}.vue`,3)),d}catch{return null}};(async()=>{const g=[o.component,o.type];for(const y of g){if(!y)continue;const _=await v(y);if(_){const E=_.default;if(E.props){const w=E.props;l.value=Object.keys(o).reduce((T,C)=>((w[C]!==void 0||Array.isArray(w)&&w.includes(C))&&(T[C]=o[C]),T),{})}else l.value={};return _}}return l.value={},Te(()=>Promise.resolve().then(()=>E8),void 0,import.meta.url)})().then(g=>{a.value=Ke(()=>Promise.resolve(g))})},{immediate:!0}),(f,h)=>{const p=bd,m=$a;return P(),j(se,null,[(P(),q(Ic,null,[!b(r)&&!b(o)?.hideHeader?(P(),q(p,{key:0,page:b(o).place},null,8,["page"])):te("",!0)],1024)),(P(),q(td,null,{default:A(()=>[L("div",null,[(P(),q(hl(b(a)),Ve({key:b(u),"hide-header":!0},b(l)),null,16))])]),fallback:A(()=>[L("div",pSe,[S(jn,{indeterminate:"",color:"primary"})])]),_:1})),!b(r)&&!b(o)?.hideFooter?(P(),q(m,{key:0})):te("",!0)],64)}}}),mSe=Object.freeze(Object.defineProperty({__proto__:null,default:O$},Symbol.toStringTag,{value:"Module"})),vSe={key:0,class:"grid gap-2"},Fx=20,$$=ke({__name:"ActorListOfIndexCommend",props:{tabs:{default:[]}},setup(e){const t=e,{actor:n}=it(),r=M([]),s=M(!1),i=M({}),o=M({}),a=M(1),l=m=>t.tabs.map(v=>v.title||m.title||m.name),u=m=>t.tabs[o.value[m].activeTab]?.order||"update";ft(()=>{c()});async function c(){s.value=!0;try{const m=await n.command({});m.map(v=>{v.list=[...v.list]}),r.value=m,r.value.forEach((v,x)=>{o.value[x]={activeTab:0,data:{0:null}}})}catch(m){console.error(m)}finally{s.value=!1}}async function d(m,v){const x=o.value[m],g=`${m}_${v}`;i.value[g]=!0;try{if(v===0){x.activeTab=0;return}a.value=1,x.data[v]||await f(m,v,u(m)),x.activeTab=v}finally{setTimeout(()=>{i.value[g]=!1},300)}}async function f(m,v,x){try{s.value=!0;const g=r.value[m]?.cid||r.value[m].category.id,y=await n.list({cid:g,page:1,order:x});o.value[m].data[v]=y}catch(g){console.error(g)}finally{s.value=!1}}const h=(m,v)=>{const x=o.value[v].activeTab;let g=[];return x===0?g=m?.list.slice(0,Fx):g=o.value[v].data[x]?.list.slice(0,Fx)||[],(g||[]).slice(0,Fx)},p=m=>It().list("actor",{cid:m.cid||m.category.id});return(m,v)=>{const x=Sd,g=gs,y=Ys;return P(),j(se,null,[b(s)?(P(),j("div",vSe,[(P(),j(se,null,Fe(4,_=>S(x,{key:"skeleton-"+_})),64))])):te("",!0),(P(!0),j(se,null,Fe(b(r),(_,E)=>(P(),j(se,{key:E},[S(g,{id:`actor-category-${E}`,modelValue:b(o)[E].activeTab,"onUpdate:modelValue":w=>b(o)[E].activeTab=w,tabs:l(_),loading:b(i),class:"my-2","tab-width":"auto",onTabClick:w=>d(E,w)},{append:A(()=>[S(Mt),S(ce,{variant:"plain",to:p(_),class:"align-self-center"},{default:A(()=>[...v[0]||(v[0]=[z(" 更多 » ",-1)])]),_:1},8,["to"])]),_:2},1032,["id","modelValue","onUpdate:modelValue","tabs","loading","onTabClick"]),S(y,{type:"actor",items:h(_,E),loading:b(s)||b(i)[`${E}_${b(o)[E].activeTab}`],"pc-cols":10,skeleton:!0,"mobile-cols":4,class:"mb-2"},{header:A(()=>[Ht(m.$slots,"default")]),_:3},8,["items","loading"])],64))),128))],64)}}}),gSe=Object.freeze(Object.defineProperty({__proto__:null,default:$$},Symbol.toStringTag,{value:"Module"})),ySe=ke({__name:"actor",setup(e){const t=mt("routeParams",{cid:"",page:1,order:"update",type:"actor"}),n=F(()=>!t.cid),r=[{title:"",order:"update"},{title:"周榜",order:"weekclicks"},{title:"月榜",order:"monthclicks"},{title:"总榜",order:"totalclicks"}];return(s,i)=>{const o=$$,a=ju;
133return b(n)?(P(),q(dn,{key:0,class:"px-0"},{default:A(()=>[S(o,{tabs:r})]),_:1})):(P(),q(a,{key:1,skeleton:!0,type:"actor",layout:"cover-tb"}))}}}),M$=Object.freeze(Object.defineProperty({__proto__:null,default:ySe},Symbol.toStringTag,{value:"Module"})),xSe=ke({__name:"enter",setup(e){return(t,n)=>(P(),q(_d,{"hide-header":!0}))}}),F$=Object.freeze(Object.defineProperty({__proto__:null,default:xSe},Symbol.toStringTag,{value:"Module"})),bSe=ke({__name:"index",setup(e){return(t,n)=>(P(),q(n$,{"hide-header":!0}))}}),B$=Object.freeze(Object.defineProperty({__proto__:null,default:bSe},Symbol.toStringTag,{value:"Module"}));let _Se=1;const _L=new Map;function SSe(e,t){const n=_L.get(e);if(n)return n;const r=e instanceof RegExp?{regex:e,paramNames:[]}:ESe(e);return _L.set(e,r),r}function ESe(e,t){const n=[];let r=e;return r=r.replace(/\(:(\w+)=([^)]+)\)/g,(s,i,o)=>(n.push(i),o.includes("|")?`(${o})`:o.includes("int")?"(\\d+)":`(${o})`)),r=r.replace(/\(:(\w+)\)/g,(s,i)=>(n.push(i),`:${i}`)),r=r.replace(/:(\w+)/g,(s,i)=>(n.push(i),"([^/]*?)")),{regex:new RegExp(`^${r}$`),paramNames:n}}function SL(e,t){return wSe(e,t)}function wSe(e,t,n,r){return{pattern:e,handler:void 0,priority:_Se++,component:t,...r}}function N$(e){return e.replace(/^~\//,"/").replace(/^\//,"")}function TSe(e,t){return`../${N$(e)}/${t}.vue`}function CSe(e){const t=e.rules.map(l=>({...l,compiled:SSe(l.pattern)})).sort((l,u)=>(l.priority??0)-(u.priority??0)),n=Fn(),r=Ze(),s=()=>{const u=`/${Array.isArray(n.params.slug)?n.params.slug.join("/"):n.params.slug}`,c={};for(const d of t){const{regex:f,paramNames:h}=d.compiled,p=u.match(f);if(p){if(d.component){const v=(typeof d.component=="string"?d.component:d.component(p,c)).replace(/\.(html|vue)$/,"");v in(e?.componentMap||{})?c.component=e.componentMap[v]:console.warn(`Component "${v}" not found in componentMap`)}if(h.forEach((m,v)=>{c[m]=p[v+1]}),d.handler){if(d.handler(p,c)===!0)break;continue}if(!d.continue)break}}return c},i=e.componentPath||"/pages/html/sub",o=async l=>{if(!l)return null;try{return await import(TSe(i,l))}catch(u){return console.error(`Failed to load component: ${l}`,u),null}};return be(n,async()=>{const l=s(),u=[l.component,l.type].filter(Boolean);for(const c of u)if(typeof c=="string"){const d=await o(c);if(d){r.value=Ke(()=>Promise.resolve(d));return}}else{r.value=Ke(c);return}if(e.fallbackComponent)if(typeof e.fallbackComponent=="string"){const c=await Te(()=>import("../"+N$(e.fallbackComponent)),[],import.meta.url);r.value=Ke(()=>Promise.resolve(c))}else r.value=Ke(e.fallbackComponent)},{immediate:!0}),{params:s(),resolvedComponent:r}}const ASe=ke({__name:"[...slug]",setup(e){Tt();const t=Fn(),{prod:n}=Zr().public,r={componentPath:"~/pages/user",fallbackComponent:"~/pages/404.vue",rules:[SL("/:component/?$"),SL("/:component\\.html")]},{params:s,resolvedComponent:i}=CSe(r);return Cn("routeParams",s),!n&&console.log("params",s),(o,a)=>(P(),q(td,null,{default:A(()=>[(P(),q(hl(b(i)),Ve({key:b(t).params.slug},{...b(s),hideHeader:!0}),null,16))]),fallback:A(()=>[S(Hs)]),_:1}))}}),kSe=Object.freeze(Object.defineProperty({__proto__:null,default:ASe},Symbol.toStringTag,{value:"Module"})),ISe=He({dotColor:String,fillDot:Boolean,hideDot:Boolean,icon:jt,iconColor:String,lineColor:String,...At(),...Tr(),...Al(),...Rs()},"VTimelineDivider"),LSe=nt()({name:"VTimelineDivider",props:ISe(),setup(e,t){let{slots:n}=t;const{sizeClasses:r,sizeStyles:s}=md(e,"v-timeline-divider__dot"),{backgroundColorStyles:i,backgroundColorClasses:o}=_r(()=>
133e.dotColor),{roundedClasses:a}=Qr(e,"v-timeline-divider__dot"),{elevationClasses:l}=gi(e),{backgroundColorClasses:u,backgroundColorStyles:c}=_r(()=>e.lineColor);return ut(()=>L("div",{class:Ie(["v-timeline-divider",{"v-timeline-divider--fill-dot":e.fillDot},e.class]),style:Qe(e.style)},[L("div",{class:Ie(["v-timeline-divider__before",u.value]),style:Qe(c.value)},null),!e.hideDot&&L("div",{key:"dot",class:Ie(["v-timeline-divider__dot",l.value,a.value,r.value]),style:Qe(s.value)},[L("div",{class:Ie(["v-timeline-divider__inner-dot",o.value,a.value]),style:Qe(i.value)},[n.default?S(sn,{key:"icon-defaults",disabled:!e.icon,defaults:{VIcon:{color:e.iconColor,icon:e.icon,size:e.size}}},n.default):S(de,{key:"icon",color:e.iconColor,icon:e.icon,size:e.size},null)])]),L("div",{class:Ie(["v-timeline-divider__after",u.value]),style:Qe(c.value)},null)])),{}}}),V$=He({density:String,dotColor:String,fillDot:Boolean,hideDot:Boolean,hideOpposite:{type:Boolean,default:void 0},icon:jt,iconColor:String,lineInset:[Number,String],side:{type:String,validator:e=>e==null||["start","end"].includes(e)},...At(),...ms(),...Rs(),...Tr(),...Al(),...rn()},"VTimelineItem"),DSe=nt()({name:"VTimelineItem",props:V$(),setup(e,t){let{slots:n}=t;const{dimensionStyles:r}=vs(e),s=Ze(0),i=M();return be(i,o=>{o&&(s.value=o.$el.querySelector(".v-timeline-divider__dot")?.getBoundingClientRect().width??0)},{flush:"post"}),ut(()=>L("div",{class:Ie(["v-timeline-item",{"v-timeline-item--fill-dot":e.fillDot,"v-timeline-item--side-start":e.side==="start","v-timeline-item--side-end":e.side==="end"},e.class]),style:Qe([{"--v-timeline-dot-size":ht(s.value),"--v-timeline-line-inset":e.lineInset?`calc(var(--v-timeline-dot-size) / 2 + ${ht(e.lineInset)})`:ht(0)},e.style])},[L("div",{class:"v-timeline-item__body",style:Qe(r.value)},[n.default?.()]),S(LSe,{ref:i,hideDot:e.hideDot,icon:e.icon,iconColor:e.iconColor,size:e.size,elevation:e.elevation,dotColor:e.dotColor,fillDot:e.fillDot,rounded:e.rounded},{default:n.icon}),e.density!=="compact"&&L("div",{class:"v-timeline-item__opposite"},[!e.hideOpposite&&n.opposite?.()])])),{}}}),PSe=He({align:{type:String,default:"center",validator:e=>["center","start"].includes(e)},direction:{type:String,default:"vertical",validator:e=>["vertical","horizontal"].includes(e)},justify:{type:String,default:"auto",validator:e=>["auto","center"].includes(e)},side:{type:String,validator:e=>e==null||["start","end"].includes(e)},lineThickness:{type:[String,Number],default:2},lineColor:String,truncateLine:{type:String,validator:e=>["start","end","both"].includes(e)},...cd(V$({lineInset:0}),["dotColor","fillDot","hideOpposite","iconColor","lineInset","size"]),...At(),...Ps(),...rn(),...Dn()},"VTimeline"),RSe=nt()({name:"VTimeline",props:PSe(),setup(e,t){let{slots:n}=t;const{themeClasses:r}=ir(e),{densityClasses:s}=vi(e),{rtlClasses:i}=Jr();Ni({VTimelineDivider:{lineColor:Ae(()=>e.lineColor)},VTimelineItem:{density:Ae(()=>e.density),dotColor:Ae(()=>e.dotColor),fillDot:Ae(()=>e.fillDot),hideOpposite:Ae(()=>e.hideOpposite),iconColor:Ae(()=>e.iconColor),lineColor:Ae(()=>e.lineColor),lineInset:Ae(()=>e.lineInset),size:Ae(()=>e.size)}});const o=F(()=>{const l=e.side?e.side:e.density!=="default"?"end":null;return l&&`v-timeline--side-${l}`}),a=F(()=>{const l=["v-timeline--truncate-line-start","v-timeline--truncate-line-end"];switch(e.truncateLine){case"both":return l;case"start":return l[0];case"end":return l[1];default:return null}});return ut(()=>S(e.tag,{class:Ie(["v-timeline",`v-timeline--${e.direction}`,`v-timeline--align-${e.align}`,`v-timeline--justify-${e.justify}`,a.value,{"v-timeline--inset-line":!!e.lineInset},r.value,s.value,o.value,i.value,e.class]),style:Qe([{"--v-timeline-line-thickness":ht(e.lineThickness)},e.style])},n)),{}}}),OSe={class:"d-flex justify-space-between align-center points-item"},$Se={class:"primary--text font-weight-medium text-primary"},MSe={class:"member-levels"},FSe={class:"font-weight-bold"},BSe={__name:"share_doc",setup(e){const t=M([{action:"每日登录",points:5},{action:"观看视频(每日上限5次)",points:2},{action:"评论视频(每日上限3次)",points:3},{action:"分享视频(每日上限3次)",points:5},{action:"上传视频",points:20},{action:"视频获赞",points:1}]),n=M([{level:1,name:"普通会员",color:"grey",benefits:["基础观看功能","评论功能","积分提现"]},{level:2,name:"白银会员",color:"blue",benefits:["去广告特权","专属标识","优先客服"]},{level:3,name:"黄金会员",color:"amber darken-2",benefits:["1080P观看","视频下载","专属活动"]}]);return(r,s)=>{const i=Mi("VListItemIcon"),o=Mi("VListItemContent");return P(),q(dn,{class:"pa-0",fluid:""},{default:A(()=>[S(ba,null,{default:A(()=>[S(oi,{cols:"12"},{default:A(()=>[s[3]||(s[3]=L("div",{class:"text-h6 white--text px-4 mb-5"}," 积分说明与会员福利 ",-1)),S($e,{class:"mx-4 mb-6"},{default:A(()=>[S(at,{class:"welfare-title"},{default:A(()=>[...s[0]||(s[0]=[z(" 如何获取积分 ",-1)])]),_:1}),S(We,null,{default:A(()=>[S(RSe,{dense:"",class:"points-timeline"},{default:A(()=>[(P(!0),j(se,null,Fe(b(t),(a,l)=>(P(),q(DSe,{key:l,small:""},{default:A(()=>[L("div",OSe,[L("div",null,Z(a.action),1),L("div",$Se," +"+Z(a.points)+"分 ",1)])]),_:2},1024))),128))]),_:1})]),_:1})]),_:1}),S($e,{class:"mx-4"},{default:A(()=>[S(at,{class:"welfare-title"},{default:A(()=>[...s[1]||(s[1]=[z(" 会员等级与特权 ",-1)])]),_:1}),S(We,null,{default:A(()=>[L("div",MSe,[(P(!0),j(se,null,Fe(b(n),(a,l)=>(P(),q($e,{key:l,outlined:"",class:Ie(["member-level-card mb-4",`level-${a.level}`])},{default:A(()=>[S(at,{class:"subtitle-1 d-flex align-center"},{default:A(()=>[L("span",FSe,Z(a.name),1),S(kt,{small:"",color:a.color,class:"ml-2","text-color":"white"},{default:A(()=>[z(" LV."+Z(a.level),1)]),_:2},1032,["color"])]),_:2},1024),S(We,null,{default:A(()=>[S(vr,{dense:""},{default:A(()=>[(P(!0),j(se,null,Fe(a.benefits,(u,c)=>(P(),q(Rt,{key:c},{default:A(()=>[S(i,{class:"mr-2"},{default:A(()=>[S(de,{small:"",color:a.color},{default:A(()=>[...s[2]||(s[2]=[z(" mdi-check-circle ",-1)])]),_:1},8,["color"])]),_:2},1024),S(o,null,{default:A(()=>[S(lo,null,{default:A(()=>[z(Z(u),1)]),_:2},1024)]),_:2},1024)]),_:2},1024))),128))]),_:2},1024)]),_:2},1024)]),_:2},1032,["class"]))),128))])]),_:1})]),_:1})]),_:1})]),_:1})]),_:1})}}},NSe=Object.freeze(Object.defineProperty({__proto__:null,default:BSe},Symbol.toStringTag,{value:"Module"})),VSe=()=>window.APP&&window.APP?.getEnv!==void 0,USe={class:"flex align-center mb-4 border"},jSe={key:0,class:"mt-4"},zSe={class:"flex flex-wrap gap-2"},HSe={class:"text-medium-emphasis text-body-2 ml-2"},GSe={key:0,class:"pa-4"},KSe={key:1},WSe={key:0,class:"pagination-pc py-4"},qSe={key:1,class:"pagination-mobile py-4 my-2 rounded-md"},YSe={class:"grid grid-cols-4 gap-2 justify-between items-center px-0 py-3"},XSe=["disabled"],ZSe=["disabled"],JSe=["value"],QSe=["disabled"],eEe=["disabled"],tEe={key:0,class:"loading-icon"}
133,nEe=ke({__name:"search",setup(e){const t=mt("routeParams",{keyword:""}),n=Fn(),r=Tt(),s=M("vod"),i=M(""),o=M(!1),a=M({list:[],total:0}),l=F(()=>Rr()||""),u=M(Number(n.query.page)||1),c=M(wt().$device.isMobile());ft(()=>{const{mod:g}=n.query;let{key:y}=n.query;if(g&&(s.value=g),t.keyword&&(y=t.keyword),y)try{i.value=decodeURIComponent(vl.decode(y))}catch{i.value=""}i.value&&setTimeout(()=>{d()},100)});const d=async(g=!0)=>{if(o.value){console.log("搜索正在进行中,请勿重复操作");return}if(!i.value?.trim()||i.value.length<2){je.error("请输入至少2个字符");return}g&&(u.value=1);let y;try{y=vl.encode(encodeURIComponent(i.value.trim()))}catch(_){console.error("编码失败:",_),je.error("搜索参数无效");return}o.value=!0;try{if(await r.replace({query:{mod:s.value,key:y,page:u.value.toString()}}),s.value==="sj"){const{sj:_}=it(),E=await _.list({keyword:i.value.trim(),page:u.value});a.value={list:E.list||[],total:E?.total||E.list?.length||0,size:E?.size||20}}else if(s.value==="down"||s.value==="actor"){const w=await it()[s.value].list({keyword:i.value.trim(),page:u.value});a.value={list:w.list||[],total:w?.total||w.list?.length||0,size:w?.size||20},console.log("result",a.value)}else if(s.value==="post"){const{post:_}=it(),E=await _.search({keyword:i.value.trim(),page:u.value,order:"hot"});a.value={list:E.list||[],total:E?.total||E.list?.length||0,size:E?.size||20}}else{const{$api:_}=wt(),E=await _("/lua/api-data-search",{params:{mod:s.value,key:i.value.trim(),site:Rr(),jsonp:"callback"},baseUrl:!0,responseType:"text"});try{const w=E.match(/^callback\((.*)\);?\s*$/);if(!w)throw new Error("Invalid JSONP response");const T=JSON.parse(w[1]);a.value={...T,total:T?.list?.length||0}}catch{throw new Error("解析搜索结果失败")}}tt(()=>{document.getElementById("search-result")?.scrollIntoView({behavior:"smooth"})})}catch(_){console.error("搜索失败:",_),je.error(_ instanceof Error?_.message:"搜索失败,请稍后重试")}finally{o.value=!1}},f=F(()=>Math.ceil((a.value?.total||0)/(a.value?.size||9999999)));be([s,i],()=>{a.value={list:[],total:-1}});const h=g=>{g.key==="Enter"&&!o.value&&(g.preventDefault(),d())},p=F(()=>s.value==="post"?a.value.list:a.value.list.map(g=>s.value==="sj"?{...g,id:g.eid||g.id,cover:g.cover,title:g.title,time:g.time?g.time*1e3:void 0}:s.value==="down"||s.value==="actor"?{...g,id:g.id||g.eid,cover:g?.img||g?.avatar,title:g?.title||g?.name,time:g.time?g.time*1e3:void 0}:{...g,cover:g.cover.replace(/(\?lg\/0)+/g,s.value==="pic"?"?cover/0":"?lg/0")})),m=M([{text:"视频",value:"vod"},l.value!="hl"?{text:"社区",value:"post"}:!1,{text:"下载",value:"down"},{text:"女优",value:"actor"},{text:"短剧",value:"sj"},{text:"图片",value:"pic"},{text:"小说",value:"nvl"}].filter(Boolean)),v=F(()=>(wr()?.tags?.split(`\r
134`)||[]).filter(Boolean)),x=g=>{r.push({query:{...n.query,page:g.toString()}}),window.scrollTo({top:0,behavior:"smooth"})};return be(()=>n.query.page,async g=>{u.value=Number(g)||1,i.value&&await d(!1)}),(g,y)=>{const _=gy,E=i0,w=Ys;return P(),q(dn,{class:"py-4 px-0 mx-auto"},{default:A(()=>[S($e,{class:"mb-4 mx-0 rounded-none"},{default:A(()=>[S(at,{class:"text-center py-6"},{default:A(()=>[...y[8]||(y[8]=[L("h1",{class:"text-h4 font-weight-bold"}," 站内搜索 ",-1)])]),_:1}),S(We,null,{default:A(()=>[L("div",USe,[S(oo,{modelValue:b(s),"onUpdate:modelValue":y[0]||(y[0]=T=>Ce(s)?s.value=T:null),items:b(m),"item-title":"text","item-value":"value",density:"comfortable","hide-details":"",class:"flex-grow-0 h-full border-none rounded-none",style:{width:"100px"}},null,8,["modelValue","items"]),S(St,{modelValue:b(i),"onUpdate:modelValue":y[1]||(y[1]=T=>Ce(i)?i.value=T:null),placeholder:"请输入关键词","hide-details":"",density:"comfortable",variant:"solo",class:"search-input rounded-none",onKeyup:h},{append:A(()=>[S(ce,{loading:b(o),disabled:!b(i),color:"primary",class:"rounded-none h-full",onClick:d},{default:A(()=>[S(de,{left:""},{default:A(()=>[...y[9]||(y[9]=[z(" mdi-magnify ",-1)])]),_:1}),y[10]||(y[10]=z(" 搜索 ",-1))]),_:1},8,["loading","disabled"])]),_:1},8,["modelValue"])]),b(v).length?(P(),j("div",jSe,[y[11]||(y[11]=L("div",{class:"text-body-2 text-medium-emphasis mb-2"}," 热门搜索: ",-1)),L("div",zSe,[(P(!0),j(se,null,Fe(b(v),T=>(P(),q(kt,{key:T,variant:"outlined",color:"primary",size:"small",class:"cursor-pointer",onClick:C=>{i.value=T,d()}},{default:A(()=>[z(Z(T),1)]),_:2},1032,["onClick"]))),128))])])):te("",!0)]),_:1})]),_:1}),b(i)&&b(a).total>-1?(P(),q($e,{key:0,id:"search-result",class:"mx-2 bg-transparent"},{default:A(()=>[S(at,{class:"py-4"},{default:A(()=>[y[12]||(y[12]=z(" 搜索结果 ",-1)),L("span",HSe," (共 "+Z(b(a)?.total||b(a)?.list?.length||"0")+" 条) ",1)]),_:1}),S(zt),S(We,{class:"p-0"},{default:A(()=>[b(o)?(P(),j("div",GSe,[b(s)==="post"?(P(),j(se,{key:0},Fe(5,T=>S(_,{key:`skeleton-${T}`})),64)):(P(),q(Hs,{key:1,type:"article,article",class:"mb-2"}))])):b(a).list?.length?(P(),j("div",KSe,[b(s)==="post"?(P(!0),j(se,{key:0},Fe(b(a).list,T=>(P(),q(E,{key:T.post?.id||T.id,user:T.user,post:T.post||T},null,8,["user","post"]))),128)):(P(),q(w,{key:1,type:b(s),items:b(p),"pc-cols":b(s)==="nvl"?1:b(s)==="sj"?6:4,"mobile-cols":b(s)==="nvl"?1:b(s)==="sj"?3:2,target:("isApp"in g?g.isApp:b(VSe))()?void 0:"_blank",newtab:1},null,8,["type","items","pc-cols","mobile-cols","target"]))])):b(o)?te("",!0):(P(),q(ci,{key:2,type:"info",text:"暂无搜索结果",class:"ma-4"})),b(f)>1?(P(),j(se,{key:3},[b(c)?(P(),j("div",qSe,[L("div",YSe,[L("button",{disabled:b(u)<=1||b(o),class:"pagination-btn",onClick:y[3]||(y[3]=T=>x(b(u)-1))}," 上一页 ",8,XSe),pn(L("select",{"onUpdate:modelValue":y[4]||(y[4]=T=>Ce(u)?u.value=T:null),class:"page-select",disabled:b(o),onChange:y[5]||(y[5]=T=>x(b(u)))},[(P(!0),j(se,null,Fe(b(f),T=>(P(),j("option",{key:T,value:T},Z(T)+"/"+Z(b(f)),9,JSe))),128))],40,ZSe),[[Ch,b(u)]]),L("button",{disabled:b(u)>=b(f)||b(o),class:"pagination-btn",onClick:y[6]||(y[6]=T=>x(b(u)+1))}," 下一页 ",8,QSe),L("button",{class:"pagination-btn random-btn",disabled:b(o),onClick:y[7]||(y[7]=T=>x(Math.floor(Math.random()*b(f))+1))},[b(o)?(P(),j("i",tEe)):te("",!0),y[13]||(y[13]=z(" 随机翻 ",-1))],8,eEe)])])):(P(),j("div",WSe,[S(Qh,{modelValue:b(u),"onUpdate:modelValue":[y[2]||(y[2]=T=>Ce(u)?u.value=T:null),x],length:b(f),"total-visible":8,disabled:b(o)},null,8,["modelValue","length","disabled"])]))],64)):te("",!0)]),_:1})]),_:1})):(P(),q($e,{key:1},{default:A(()=>[S(We,{class:"p-4 text-center m-2"},{default:A(()=>[...y[14]||(y[14]=[z(" 请输入关键词 ",-1)])]),_:1})]),_:1}))]),_:1})}}}),rEe=vt(nEe,[["__scopeId","data-v-3ea0a7ec"]]),U$=Object.freeze(Object.defineProperty({__proto__:null,default:rEe},Symbol.toStringTag,{value:"Module"})),sEe={key:0},iEe=["onClick"],oEe={class:"w-16 h-16 shrink-0 rounded-lg overflow-hidden bg-gray-100 flex items-center justify-center"},aEe={class:"min-w-0 flex-1"},lEe={class:"flex items-center gap-2 min-w-0"},uEe={class:"truncate text-sm font-medium"},cEe={class:"text-xs text-grey mt-1"},dEe={key:0,class:"text-primary"},fEe={key:0,class:"shrink-0"}
134,hEe=ke({__name:"ai-history",setup(e){const t=wr(),n=Tt(),{listTasks:r,fetchStatus:s,historyVersion:i}=e0(),o=M(""),a=M(!0),l=[{title:"全部",value:"all"},{title:"进行中",value:"processing"},{title:"已完成",value:"success"},{title:"失败",value:"failed"}],u=M("all"),c=M([]),d=M(1),f=M(!1),h=M(!1),p=F(()=>t?.credit_name||"积分"),m=M(!1),v=M(null);function x(D){return D===2?"success":D<0?"error":"primary"}function g(D){if(!D)return"";const O=new Date(D*1e3),B=U=>String(U).padStart(2,"0");return`${O.getFullYear()}-${B(O.getMonth()+1)}-${B(O.getDate())} ${B(O.getHours())}:${B(O.getMinutes())}`}async function y(D=!1){if(!h.value){h.value=!0;try{D&&(d.value=1,c.value=[]);const{list:O,hasmore:B}=await r({page:d.value,status:u.value});c.value=D?O:[...c.value,...O],f.value=!!B}finally{h.value=!1}}}function _(){!f.value||h.value||(d.value+=1,y())}be(u,()=>y(!0)),be(i,()=>{i.value>0&&y(!0)}),ft(()=>y(!0)),zi(()=>{if(a.value){a.value=!1;return}y(!0)});function E(D){v.value=D,m.value=!0}function w(D){if(D.post_id){T(D);return}n.push(`/user/post?share=ai:${D.id}`)}function T(D){D.post_id&&window.open(`/html/thread/${D.post_id}.html`,"_blank")}async function C(D){if(o.value!==D.id){o.value=D.id;try{const O=await s(D.id),B=c.value.findIndex(U=>U.id===D.id);B>-1&&(c.value[B]=O),O.status===2?je.success("生成完成"):O.status<0?je.error(O.error||O.status_text||"生成失败"):je.info("仍在生成中")}catch{}finally{o.value=""}}}function I(D){return D.outputs?.[0]}function k(D,O="lg"){return`${qs(D)}?${O}`}function $(D){const O=D.vod?.[720]||D.vod?.[480]||D.vod?.[168]||D.vod?.raw||"";return O?Hf(O,"y",0):""}function R(D){if(!D.dl){je.error("下载链接已失效,请刷新后重试");return}const O=new URL(D.dl,window.location.origin);if(O.origin!==window.location.origin||!O.pathname.startsWith("/api/aidl/")){je.error("下载链接无效,请刷新后重试");return}window.open(`${O.pathname}${O.search}${O.hash}`,"_blank","noopener")}return(D,O)=>{const B=An,U=Jh,N=Xs;return P(),j(se,null,[S(dn,{class:"p-0 flex flex-col gap-3 max-w-[480px]"},{default:A(()=>[S(Hi,{modelValue:b(u),"onUpdate:modelValue":O[0]||(O[0]=V=>Ce(u)?u.value=V:null),color:"primary",grow:"",class:"mb-2"},{default:A(()=>[(P(),j(se,null,Fe(l,V=>S(Sr,{key:V.value,value:V.value},{default:A(()=>[z(Z(V.title),1)]),_:2},1032,["value"])),64))]),_:1},8,["modelValue"]),S($e,null,{default:A(()=>[b(c).length?(P(),j("div",sEe,[(P(!0),j(se,null,Fe(b(c),(V,H)=>(P(),j(se,{key:V.id},[L("div",{class:Ie(["flex items-center gap-3 px-4 py-3",V.status===2?"cursor-pointer hover:bg-black/5 active:bg-black/10 transition-colors":""]),onClick:re=>V.status===2&&E(V)},[L("div",oEe,[I(V)?(P(),q(B,{key:0,src:k(I(V).img,"sm"),encoded:1,cover:!0,class:"w-full h-full"},null,8,["src"])):(P(),q(de,{key:1,icon:V.status<0?"mdi:image-off-outline":"mdi:progress-clock",color:"grey",size:"28"},null,8,["icon"]))]),L("div",aEe,[L("div",lEe,[L("span",uEe,Z(V.workflow_name||V.workflow),1),S(kt,{color:x(V.status),size:"x-small",variant:"tonal",class:"shrink-0"},{default:A(()=>[z(Z(V.status_text),1)]),_:2},1032,["color"])]),L("div",cEe,[z(Z(V.credits_cost)+" "+Z(b(p))+" · "+Z(g(V.createdat))+" ",1),V.refunded?(P(),j("span",dEe,"· 已退款")):te("",!0)])]),V.status===2||V.status===1?(P(),j("div",fEe,[V.status===2&&!V.post_id?(P(),q(ce,{key:0,color:"primary",variant:"flat",height:"38","prepend-icon":"mdi:share-variant-outline",onClick:Et(re=>w(V),["stop"])},{default:A(()=>[...O[6]||(O[6]=[z(" 分享 ",-1)])]),_:1},8,["onClick"])):V.status===2&&V.post_id?(P(),q(ce,{key:1,variant:"text",color:"primary",height:"40","prepend-icon":"mdi:check-circle-outline",onClick:Et(re=>w(V),["stop"])},{default:A(()=>[...O[7]||(O[7]=[z(" 已分享 ",-1)])]),_:1},8,["onClick"])):V.status===1?(P(),q(ce,{key:2,color:"primary",variant:"tonal",height:"40",loading:b(o)===V.id,"prepend-icon":"mdi:progress-clock",onClick:Et(re=>C(V),["stop"])},{default:A(()=>[...O[8]||(O[8]=[z(" 进行中 ",-1)])]),_:1},8,["loading","onClick"])):te("",!0)])):te("",!0)],10,iEe),H<b(c).length-1?(P(),q(zt,{key:0})):te("",!0)],64))),128))])):b(h)?te("",!0):(P(),q(We,{key:1,class:"text-center py-10 text-grey"},{default:A(()=>[...O[9]||(O[9]=[z(" 暂无生成记录 ",-1)])]),_:1})),b(h)?(P(),q(We,{key:2,class:"flex justify-center py-4"},{default:A(()=>[S(jn,{indeterminate:"",color:"primary",size:"28"})]),_:1})):te("",!0),b(f)&&!b(h)?(P(),q(mn,{key:3},{default:A(()=>[S(ce,{block:"",variant:"text",onClick:_},{default:A(()=>[...O[10]||(O[10]=[z(" 加载更多 ",-1)])]),_:1})]),_:1})):te("",!0)]),_:1}),S(Gt,{modelValue:b(m),"onUpdate:modelValue":O[5]||(O[5]=V=>Ce(m)?m.value=V:null),"max-width":"640",scrollable:""},{default:A(()=>[b(v)?(P(),q($e,{key:0},{default:A(()=>[S(at,{class:"flex items-center"},{default:A(()=>[L("div",null,Z(b(v).workflow_name||b(v).workflow),1),S(Mt),S(ce,{variant:"plain",icon:"mdi-close",onClick:O[1]||(O[1]=V=>m.value=!1)})]),_:1}),S(We,null,{default:A(()=>[L("div",{class:Ie(["flex flex-col items-center gap-3",(b(v).outputs?.length||0)>1?"sm:grid sm:grid-cols-2 sm:items-stretch":""])},[(P(!0),j(se,null,Fe(b(v).outputs,(V,H)=>(P(),j("div",{key:H,class:"relative w-full h-[70vh] max-h-[70vh] rounded-lg overflow-hidden bg-black/5 flex items-center justify-center"},[V.ext!=="mp4"?(P(),q(B,{key:0,src:k(V.img),encoded:1,contain:!0,eager:!0,class:"w-full h-full"},null,8,["src"])):(P(),q(U,{key:1,src:$(V),controls:!0,eager:!0,class:"max-w-full max-h-[70vh] w-auto h-auto object-contain"},null,8,["src"]))]))),128))],2)]),_:1}),S(mn,{class:"gap-2 px-4 pb-4"},{default:A(()=>[b(v).outputs?.length?(P(),q(ce,{key:0,variant:"tonal",color:"primary",class:"flex-1",height:"40","prepe
134nd-icon":"mdi:download",onClick:O[2]||(O[2]=V=>R(b(v).outputs[0]))},{default:A(()=>[...O[11]||(O[11]=[z(" 下载 ",-1)])]),_:1})):te("",!0),b(v).post_id?(P(),q(ce,{key:1,color:"primary",variant:"outlined",class:"flex-1",height:"40","prepend-icon":"mdi:check-circle-outline",onClick:O[3]||(O[3]=V=>T(b(v)))},{default:A(()=>[...O[12]||(O[12]=[z(" 已分享 ",-1)])]),_:1})):(P(),q(ce,{key:2,color:"primary",variant:"flat",class:"flex-1",height:"40","prepend-icon":"mdi:share-variant-outline",onClick:O[4]||(O[4]=V=>w(b(v)))},{default:A(()=>[...O[13]||(O[13]=[z(" 分享 ",-1)])]),_:1}))]),_:1})]),_:1})):te("",!0)]),_:1},8,["modelValue"])]),_:1}),S(N)],64)}}}),pEe=Object.freeze(Object.defineProperty({__proto__:null,default:hEe},Symbol.toStringTag,{value:"Module"})),mEe=ke({__name:"[...slug]",setup(e){return(t,n)=>(P(),q(O$))}}),vEe=Object.freeze(Object.defineProperty({__proto__:null,default:mEe},Symbol.toStringTag,{value:"Module"})),gEe={class:"text-h6 font-bold"},yEe={class:"step-list"},xEe=ke({__name:"webclip",setup(e){const t=F(()=>Vo()?.app||"本站"),n=F(()=>wl()),{$device:r}=wt(),s=F(()=>r.isIOS()),i=F(()=>r.isSafari()),o=e$(),a=()=>{location.href=o.value};return(l,u)=>{const c=An;return P(),q(dn,{class:"webclip-page max-w-[480px] mx-auto py-4"},{default:A(()=>[S($e,{class:"rounded-lg text-center py-6 px-4"},{default:A(()=>[S(c,{src:b(n),width:"72",height:"72",class:"mx-auto mb-3 w-[48px] h-[48px]","blur-background":!1},null,8,["src"]),L("div",gEe,Z(b(t)),1),u[0]||(u[0]=L("div",{class:"text-sm opacity-70 mt-1"}," 添加到 iPhone / iPad 桌面 ",-1))]),_:1}),S($e,{class:"rounded-lg mt-4"},{default:A(()=>[S(at,{class:"text-subtitle-1 font-bold px-4 pt-4 pb-2"},{default:A(()=>[S(de,{icon:"mdi-apple",class:"mr-2"}),u[1]||(u[1]=z(" 安装步骤(仅 Safari) ",-1))]),_:1}),S(We,{class:"px-4 pb-4"},{default:A(()=>[L("ol",yEe,[u[4]||(u[4]=L("li",null,[z("使用 "),L("strong",null,"Safari"),z(" 浏览器打开本页(微信/QQ 内置浏览器无效)")],-1)),u[5]||(u[5]=L("li",null,"点击下方「添加到桌面」按钮,下载描述文件",-1)),u[6]||(u[6]=L("li",null,[z("打开系统 "),L("strong",null,"设置"),z(",顶部会出现「已下载描述文件」")],-1)),u[7]||(u[7]=L("li",null,"点击进入后选择「安装」,按提示完成",-1)),L("li",null,[u[2]||(u[2]=z("回到桌面即可看到 ",-1)),L("strong",null,Z(b(t)),1),u[3]||(u[3]=z(" 图标",-1))])])]),_:1})]),_:1}),S($e,{class:"rounded-lg mt-4"},{default:A(()=>[S(We,{class:"p-4"},{default:A(()=>
134[b(s)?b(i)?te("",!0):(P(),q(ci,{key:1,type:"warning",variant:"tonal",class:"mb-4",density:"compact"},{default:A(()=>[...u[9]||(u[9]=[z(" 检测到当前不是 Safari 浏览器,直接下载可能无法安装。请点击右上角菜单选择「在 Safari 中打开」。 ",-1)])]),_:1})):(P(),q(ci,{key:0,type:"info",variant:"tonal",class:"mb-4",density:"compact"},{default:A(()=>[...u[8]||(u[8]=[z(" 当前不是 iOS 设备。请用 iPhone / iPad 的 Safari 打开本页再安装。 ",-1)])]),_:1})),S(ce,{block:"",color:"primary",size:"large",height:"48",href:b(o),onClick:Et(a,["prevent"])},{default:A(()=>[S(de,{icon:"mdi-monitor-cellphone",class:"mr-2"}),u[10]||(u[10]=z(" 添加到桌面 ",-1))]),_:1},8,["href"]),u[11]||(u[11]=L("div",{class:"text-xs opacity-60 text-center mt-3 leading-relaxed"},[z(" 安装后桌面图标名称与图标会按当前站点自动生成。 "),L("br"),z(" 描述文件未签名时系统会提示「未验证」,属正常现象,点继续安装即可。 ")],-1))]),_:1})]),_:1})]),_:1})}}}),bEe=vt(xEe,[["__scopeId","data-v-9b7510d2"]]),j$=Object.freeze(Object.defineProperty({__proto__:null,default:bEe},Symbol.toStringTag,{value:"Module"})),_Ee={class:"container mx-auto px-2 py-4"},SEe={key:0,class:"flex justify-center py-8"},EEe={key:1,class:"gap-4 w-full"},wEe={class:"flex items-center gap-4 mb-4"},TEe={class:"flex-1"},CEe={class:"flex items-center gap-2 mb-0"},AEe={class:"text-2xl font-bold"},kEe={class:"text-gray-600"},IEe={class:"flex items-center gap-1"},LEe={key:0},DEe={key:0,class:"grid grid-cols-4 md:grid-cols-4 gap-2 justify-between border-t border-gray-800 pt-4"},PEe={class:"text-center rounded-lg"},REe={class:"text-xl font-bold text-primary"},OEe={class:"text-center rounded-lg"},$Ee={class:"text-xl font-bold text-primary"},MEe={class:"text-xl font-bold text-primary"},FEe={class:"text-xl font-bold text-primary"},BEe={key:2,class:"text-center py-8 text-gray-500"},NEe={key:0},VEe={class:"text-sm text-gray-500 mb-4"},UEe={class:"flex flex-col sm:flex-row items-center justify-center gap-3"},jEe={key:0,class:"w-full flex items-center justify-center",style:{"max-width":"min(90vw, 420px)","max-height":"80vh"}},zEe={key:1,class:"text-center text-gray-400"},HEe={class:"text-sm text-gray-500 mb-4 w-full"},GEe={class:"flex flex-col gap-3 w-full max-w-xs"},KEe=20,WEe=ke({__name:"[...slug]",setup(e){const t=Fn(),n=F(()=>t.params.uid),r=F(()=>{const oe=t.params.slug;if(!oe)return{tab:"new",page:1};const K=Array.isArray(oe)?oe:[oe],ee=K[0]||"new";let ae=1;if(K[1]){const ue=K[1].match(/^(\d+)\.html$/);ue&&(ae=parseInt(ue[1]))}return{tab:ee,page:ae}}),s=M(t.query.keyword?String(t.query.keyword):""),i=M(r.value.tab);function o(oe){i.value=oe;let K=`/u/${n.value}`;oe!=="new"&&(K+=`/${oe}`),window.history.replaceState({},"",K)}function a(oe){if(C.value){k();return}s.value=oe.trim();const K=new URL(window.location.href);oe.trim()?K.searchParams.set("keyword",oe.trim()):K.searchParams.delete("keyword"),window.history.replaceState({},"",K.toString())}const l=M(null),u=M(!0),c=M(null),d=M(!1),f=M(!1);async function h(){try{u.value=!0;const{user:oe}=it(),K=await oe.stat({uid:n.value});c.value=K,K?.user&&(l.value=K.user),d.value=K?.is_following??!1;const ee=K?.follow_status??(d.value?1:0);f.value=K?.is_mutual??ee===2}catch(oe){console.error("获取用户信息失败:",oe)}finally{u.value=!1}}const p=by();function m(oe,K){if(d.value=oe,f.value=K,n.value){const ee=K?2:oe?1:0;p.updateStatus(n.value,{following:oe,follow_status:ee,is_mutual:K})}c.value&&(oe?c.value.fans=(c.value.fans||0)+1:c.value.fans=Math.max((c.value.fans||0)-1,0))}be(()=>n.value,()=>{n.value&&h()},{immediate:!0});const{copyText:v}=Pa(),x=async()=>{if(!n.value)return;await v(n.value)?je.success("UID 已复制"):je.error("复制失败,请重试")},g=M(!1),y=M(null),{isLogin:_,authInfo:E}=Ct(),w=M(!1),T=F(()=>{if(!_.value)return!1;const oe=E.value?.userId;return oe?!!(String(n.value)===String(oe)||l.value?.id&&Number(l.value.id)===Number(oe)):!1}),C=F(()=>!T.value&&!d.value),I=M(!1);function k(){I.value=!0}function $(){if(u.value||!C.value||!s.value)return;s.value="";const oe=new URL(window.location.href);oe.searchParams.delete("keyword"),window.history.replaceState({},"",oe.toString())}be([C,u],$),be(()=>[r.value.tab,t.query.keyword],([oe,K])=>{i.value=oe;const ee=K&&typeof K=="string"?K:"";if(C.value&&ee){$();return}s.value=ee},{immediate:!1});const R=M(!1);function D(){R.value=!0}be([i,s,()=>d.value],()=>{R.value=!1});function O(){w.value=!0}function B(){if(!_.value){w.value=!0;return}g.value=!0,tt(()=>{y.value&&y.value.refresh()})}function U(){g.value=!1}const N=M(!1),V=M(null),H=M(!1),re=F(()=>{const oe=l.value?.avatar;return oe?oe.search(/avatar/ig)>
134-1?oe:qs(oe):""}),W=F(()=>{const oe=l.value?.avatar||"";return oe?oe.search(/avatar|logo/ig)>-1?0:1:0});function X(){l.value?.avatar&&(H.value=!0)}function Q(){H.value=!1}function le(){if(!_.value){w.value=!0;return}N.value=!0,tt(()=>{V.value&&V.value.refresh()})}function ve(){N.value=!1}return(oe,K)=>{const ee=Ra,ae=Vu,ue=Qy,Ee=Cd,_e=Xs,J=An,Y=ow,fe=iw,xe=Cr;return P(),j(se,null,[L("div",_Ee,[S($e,{class:"mb-2 p-2 rounded-md"},{default:A(()=>[b(u)?(P(),j("div",SEe,[S(jn,{indeterminate:"",color:"primary"})])):b(l)?(P(),j("div",EEe,[S($e,{class:"mb-2 p-2"},{default:A(()=>[L("div",wEe,[L("div",{class:"flex-shrink-0 cursor-zoom-in",role:"button","aria-label":"查看头像大图",onClick:X},[S(ee,{user:b(l),size:64,clickable:!1},null,8,["user"])]),L("div",TEe,[L("div",CEe,[L("h1",AEe,Z(b(l)?.nickname||"未知用户"),1),b(f)?(P(),q(kt,{key:0,size:"small",color:"primary",variant:"tonal",class:"text-xs"},{default:A(()=>[...K[9]||(K[9]=[z(" 互关 ",-1)])]),_:1})):te("",!0)]),L("div",kEe,[L("div",IEe,[L("span",{onClick:x},"UID: "+Z(b(n)),1),S(ce,{icon:"",size:"x-small",variant:"text",class:"text-gray-600 -ml-1",onClick:x},{default:A(()=>[S(de,{icon:"mdi-content-copy",size:"small"})]),_:1})]),b(l)?.city?(P(),j("p",LEe,Z(b(l).city.replace(/\|/g," ")),1)):te("",!0)])]),b(n)?(P(),q(ae,{key:0,"user-id":b(n),"initial-following":b(d),"initial-mutual":b(f),variant:"elevated",size:"small",onChange:m},null,8,["user-id","initial-following","initial-mutual"])):te("",!0)]),b(c)?(P(),j("div",DEe,[L("div",PEe,[L("div",REe,Z(b(Dr)(b(c).posts||0,0)),1),K[10]||(K[10]=L("div",{class:"text-sm"}," 帖子 ",-1))]),L("div",OEe,[L("div",$Ee,Z(b(Dr)(b(c).gotlikes||0,0)),1),K[11]||(K[11]=L("div",{class:"text-sm"}," 获赞 ",-1))]),L("div",{class:"text-center rounded-lg cursor-pointer hover:bg-gray-800/50 transition-colors",onClick:le},[L("div",MEe,Z(b(Dr)(b(c).follows||0,0)),1),K[12]||(K[12]=L("div",{class:"text-sm"}," 关注 ",-1))]),L("div",{class:"text-center rounded-lg cursor-pointer hover:opacity-80 transition-opacity",onClick:B},[L("div",FEe,Z(b(Dr)(b(c).fans||0,0)),1),K[13]||(K[13]=L("div",{class:"text-sm"}," 粉丝 ",-1))])])):te("",!0)]),_:1})])):(P(),j("div",BEe," 用户不存在或已被删除 "))]),_:1}),b(l)?(P(),j("div",NEe,[S(ue,{"search-text":b(s),"onUpdate:searchText":K[0]||(K[0]=ne=>Ce(s)?s.value=ne:null),"active-tab":b(i),"active-tag":"","sort-menu":!1,"search-menu":!1,"hide-category":!0,"search-locked":b(C),tabs:[{key:"new",label:"最新",icon:"mdi-clock"},{key:"hot",label:"热门",icon:"mdi-fire"},{key:"week",label:"本周",icon:"mdi-trophy"},{key:"month",label:"本月",icon:"mdi-calendar-month"},{key:"year",label:"今年",icon:"mdi-calendar"},{key:"vod",label:"视频",icon:"mdi-video"},{key:"img",label:"图片",icon:"mdi-image"},{key:"rand",label:"随机",icon:"mdi-shuffle"}],onSelectSort:o,onSearch:a,onSearchBlocked:k},null,8,["search-text","active-tab","search-locked"]),(P(),q(Ee,{key:`user-${b(n)}-${b(i)}-${b(s)}-${b(d)}`,"active-tab":b(i),"active-tag":"","is-location":!1,"user-id":b(n),"search-text":b(s),immediate:!0,limit:b(C)?KEe:void 0,onListLoaded:D},null,8,["active-tab","user-id","search-text","limit"])),b(C)&&b(R)?(P(),q($e,{key:0,class:"mt-4 p-6 rounded-md border border-dashed border-gray-600/60 flex flex-col items-center text-center",variant:"tonal"},{default:A(()=>[S(de,{icon:"mdi-account-heart-outline",size:"40",color:"primary",class:"mb-3 opacity-80"}),K[15]||(K[15]=L("p",{class:"text-base font-medium mb-1"}," 关注后可查看更多动态 ",-1)),L("p",VEe,Z(b(_)?"关注 TA 即可浏览全部帖子":"登录并关注 TA 即可浏览全部帖子"),1),L("div",UEe,[b(_)?te("",!0):(P(),q(ce,{key:0,color:"primary",variant:"elevated","prepend-icon":"mdi-login",onClick:O},{default:A(()=>[...K[14]||(K[14]=[z(" 登录 ",-1)])]),_:1})),b(n)?(P(),q(ae,{key:1,"user-id":b(n),"initial-following":b(d),"initial-mutual":b(f),variant:"elevated",size:"default",onChange:m},null,8,["user-id","initial-following","initial-mutual"])):te("",!0)])]),_:1})):te("",!0)])):te("",!0)]),S(_e),S(Gt,{modelValue:b(H),"onUpdate:modelValue":K[1]||(K[1]=ne=>Ce(H)?H.value=ne:null),"max-width":"90vw"},{default:A(()=>[S($e,{class:"bg-background"},{default:A(()=>[S(at,{class:"flex items-center justify-between px-4 py-3 border-b"},{default:A(()=>[S(Mt),S(ce,{icon:"",variant:"text",onClick:Q},{default:A(()=>[S(de,null,{default:A(()=>[...K[16]||(K[16]=[z("mdi-close",-1)])]),_:1})]),_:1})]),_:1}),S(We,{class:"px-4 py-4 flex items-center justify-center bg-black"},{default:A(()=>[b(re)?(P(),j("div",jEe,[S(J,{src:b(re),encoded:b(W),contain:!0,eager:"",class:"rounded-2xl shadow-lg bg-black",style:{"max-width":"90vw","max-height":"80vh"}},null,8,["src","encoded"])])):(P(),j("div",zEe," 暂无头像可预览 "))]),_:1})]),_:1})]),_:1},8,["modelValue"]),S(zo,{modelValue:b(g),"onUpdate:modelValue":K[2]||(K[2]=ne=>Ce(g)?g.value=ne:null),transition:"bottom-sheet-transition","max-width":"600",class:"mx-auto"},{default:A(()=>[S($e,{class:"rounded-none"},{default:A(()=>[S(at,{class:"flex items-center justify-between px-4 py-3 border-b sticky top-0 z-10 bg-background"},{default:A(()=>[K[18]||(K[18]=L("span",{class:"font-bold text-lg"},"粉丝列表",-1)),S(ce,{icon:"",variant:"text",onClick:U},{default:A(()=>[S(de,null,{default:A(()=>[...K[17]||(K[17]=[z("mdi-close",-1)])]),_:1})]),_:1})]),_:1}),S(We,{class:"px-2 py-4",style:{"max-height":"70vh","overflow-y":"auto"}},{default:A(()=>[S(Y,{ref_key:"followersListRef",ref:y,"user-id":b(n)},null,8,["user-id"])]),_:1})]),_:1})]),_:1},8,["modelValue"]),S(zo,{modelValue:b(N),"onUpdate:modelValue":K[3]||(K[3]=ne
134=>Ce(N)?N.value=ne:null),transition:"bottom-sheet-transition","max-width":"600",class:"mx-auto"},{default:A(()=>[S($e,{class:"rounded-none"},{default:A(()=>[S(at,{class:"flex items-center justify-between px-4 py-3 border-b sticky top-0 z-10 bg-background"},{default:A(()=>[K[20]||(K[20]=L("span",{class:"font-bold text-lg"},"关注列表",-1)),S(ce,{icon:"",variant:"text",onClick:ve},{default:A(()=>[S(de,null,{default:A(()=>[...K[19]||(K[19]=[z("mdi-close",-1)])]),_:1})]),_:1})]),_:1}),S(We,{class:"px-2 py-4",style:{"max-height":"70vh","overflow-y":"auto"}},{default:A(()=>[S(fe,{ref_key:"followingListRef",ref:V,"user-id":b(n)},null,8,["user-id"])]),_:1})]),_:1})]),_:1},8,["modelValue"]),S(xe,{modelValue:b(w),"onUpdate:modelValue":K[4]||(K[4]=ne=>Ce(w)?w.value=ne:null)},null,8,["modelValue"]),S(Gt,{modelValue:b(I),"onUpdate:modelValue":K[8]||(K[8]=ne=>Ce(I)?I.value=ne:null),"max-width":"400"},{default:A(()=>[S($e,{class:"p-6 rounded-md flex flex-col items-center text-center w-full"},{default:A(()=>[S(de,{icon:"mdi-account-heart-outline",size:"40",color:"primary",class:"mb-3 opacity-80"}),K[23]||(K[23]=L("p",{class:"text-base font-medium mb-1 w-full"}," 关注后可搜索并查看更多 ",-1)),L("p",HEe,Z(b(_)?"关注 TA 即可使用搜索并浏览å
134…¨éƒ¨å¸–子":"登录并关注 TA 即可使用搜索并浏览全部帖子"),1),L("div",GEe,[b(_)?te("",!0):(P(),q(ce,{key:0,color:"primary",variant:"elevated","prepend-icon":"mdi-login",onClick:K[5]||(K[5]=ne=>{I.value=!1,O()})},{default:A(()=>[...K[21]||(K[21]=[z(" 登录 ",-1)])]),_:1})),b(n)?(P(),q(ae,{key:1,"user-id":b(n),"initial-following":b(d),"initial-mutual":b(f),variant:"elevated",size:"default",class:"w-full",onChange:K[6]||(K[6]=(ne,ie)=>{m(ne,ie),ne&&(I.value=!1)})},null,8,["user-id","initial-following","initial-mutual"])):te("",!0),S(ce,{variant:"text",onClick:K[7]||(K[7]=ne=>I.value=!1)},{default:A(()=>[...K[22]||(K[22]=[z(" 取消 ",-1)])]),_:1})])]),_:1})]),_:1},8,["modelValue"])],64)}}}),qEe=Object.freeze(Object.defineProperty({__proto__:null,default:WEe},Symbol.toStringTag,{value:"Module"})),z$=Symbol.for("SeriesKey");function YEe(e){const{id:t,episode:n}=e;Fn();const r=Tt(),{refreshAuth:s}=Ct(),{isLogin:i}=Ct(),{sj:o}=it(),a=M({}),l=M(),u=M(!1),c=M(!1),d=M(!1),f=M(n.value),h=M(0),p=M(0),m=F(()=>{const N=$(n.value);return(!N?.tokens||!N.time||Date.now()-N.time>15e5)&&g(n.value),N});be(e.series,async()=>{a.value=e?.series?.value??{},n.value&&await g(n.value)}),be(n,async N=>{N&&a.value?.episodelist?.length&&await g(N)});const v=F(()=>e.series?.value??a.value),x=F(()=>{const N={};return v.value.episodelist.forEach((V,H)=>{N[V.episode]=H}),N});F(()=>{let N=0;return a.value.episodelist.forEach((V,H)=>{V.episode>N&&(N=V.episode)}),N});async function g(N=-1){if(!c.value){if(N>10&&!i.value&&e.onNeedLogin){e.onNeedLogin(N);return}c.value=!0,N<1&&(N=n.value);try{if(!a.value?.episodelist||!a.value?.episodelist.length)return;const V=$(N);return V?.tokens&&V.time&&V.time>Date.now()-15e6?l.value=V:(l.value=await o.episode({id:t.value,ep:N}),T(l.value,N)),l.value}catch(V){if(V?.error===401)p.value=V?.extend?.fee?.series,h.value=V?.extend?.fee?.episode,f.value=N,d.value=!0;else if(V?.error===406){const{gotoEmailActivation:H}=useSharedAuthUser();H()}else if(V?.error===999){if(e.onNeedLogin){e.onNeedLogin(N,V);return}}else console.error(V)}finally{c.value=!1}}}function y(N){if(N>10&&!i.value&&e.onNeedLogin){e.onNeedLogin(N);return}r.replace({query:{ep:N}})}function _(N,V){const H=V==="next"?v.value.episodes:1,re=V==="next"?1:-1;let W=N+re;for(;(V==="next"?W<=H:W>=H)&&!k(W);)W+=re;return(V==="next"?W<=H:W>=H)?W:void 0}async function E(){const N=_(n.value,"next");N&&await y(N)}async function w(){const N=_(n.value,"prev");N&&await y(N)}function T(N,V){const H=I(V);v.value.episodelist[H]={...v.value.episodelist[H],...N,time:Date.now()}}async function C(N){const V=await api.series.buy(t.value,N);T(V,N),setTimeout(async()=>await s(),0)}function I(N){return x.value[N]}function k(N){return I(N)!==void 0}function $(N){return a.value.episodelist?.[I(N)]}const R=M(),D=M({});async function O(){const{eid:N,title:V}=v.value;R.value!==N&&(R.value=N,D.value=await api.share.series(N,V))}async function B(){return await O(),D.value}const U={id:t,series:v,episode:n,episodeData:m,seriesLoading:u,loadEpisode:g,hasEpisode:k,getEpisode:$,episodeLoading:c,gotoEpisode:y,nextEpisode:E,prevEpisode:w,buyEpisode:C,showBuy:d,needBuyedEpisode:f,episodeFee:h,seriesFee:p,getShare:B};return Cn(z$,U),U}function H$(){const e=mt(z$);if(!e)throw cl("Failed to useSeries, needs parent component call provideSeries.");return e}function XEe(e){return di(`likes-${e}`,[])}const ZEe={class:"text-center my-4"},JEe={class:"rating-stars mb-4"},QEe={class:"rating-text text-subtitle-1 font-weight-bold"},ewe=ke({__name:"SjLike",props:{loading:{type:Boolean}},setup(e){const t=e,{series:n,episode:r}=H$(),{sj:s}=it(),i=XEe("sj"),o=M(!1),a=M(4),l=M(!1);F(()=>(n.value?.likes??0)+(l.value?1:0));const u=F(()=>n.value?.scores??3.5),c={1:"1星-不太喜欢",2:"2星-一般般",3:"3星-还不错",4:"4星-很喜欢",5:"5星-超级棒"},d=F(()=>c[a.value]||"请选择评分");async function f(m){try{a.value=m,m>0?i.value.unshift(h()):i.value=i.value.filter(v=>v.eid!==n.value.eid),await s.action({eid:n.value.eid,episode:r.value,act:"like",val:m}),o.value=!1,l.value=m>0,je.success("评分成功")}catch(v){console.error("评分失败",v),je.error("评分失败,请重试")}}function h(){return{type:"sj",eid:n.value.eid,title:n.value.title,covers:n.value.covers,episodes:n.value.episodes}}const p=()=>{o.value=!0};return(m,v)=>(P(),j(se,null,[S(ce,Ve(m.$attrs,{variant:"text",loading:t.loading,class:"rating-btn text-lg",color:b(l)?"primary":void 0,stacked:"",onClick:p}),{default:A(()=>[S(de,{class:Ie(["star-icon mb-2",{"star-active":b(l)}]),size:"large",color:b(l)?"primary":void 0},{default:A(()=>[...v[3]||(v[3]=[z(" icon-park-solid:good-two ",-1)])]),_:1},8,["color","class"]),z(" "+Z(b(u)),1)]),_:1},16,["loading","color"]),S(zo,{modelValue:b(o),"onUpdate:modelValue":v[2]||(v[2]=x=>Ce(o)?o.value=x:null),"max-width":"500",scrim:!0,persistent:!0},{default:A(()=>[S($e,null,{default:A(()=>[S(at,{class:"text-base pa-4"},{default:A(()=>[z(Z(`给${b(n).title}评分`),1)]),_:1}),S(We,null,{default:A(()=>[L("div",ZEe,[L("div",JEe,[(P(),j(se,null,Fe(5,x=>S(de,{key:x,icon:x<=b(a)?"icon-park-solid:good-two":"icon-park-outline:good-two",color:x<=b(a)?"amber":"grey",size:"x-large",class:"mx-1 cursor-pointer",onClick:g=>a.value=x},null,8,["icon","color","onClick"])),64))]),L("div",QEe,Z(b(d)),1)])]),_:1}),S(mn,{class:"pa-4 pt-0"},{default:A(()=>[S(Mt),S(ce,{color:"grey-darken-1",variant:"text",onClick:v[0]||(v[0]=x=>o.value=!1)},{default:A(()=>[...v[4]||(v[4]=[z(" 取消 ",-1)])]),_:1}),S(ce,{color:"primary",loading:t.loading,onClick:v[1]||(v[1]=x=>f(b(a)))},{default:A(()=>[...v[5]||(v[5]=[z(" 提交 ",-1)])]),_:1},8,["loading"])]),_:1})]),_:1})]),_:1},8,["modelValue"])],64))}}),G$=vt(ewe,[["__scopeId","data-v-fe64ec5f"]]),twe=Object.freeze(Object.defineProperty({__proto__:null,default:G$},Symbol.toStringTag,{value:"Module"}));const nwe={class:"text-grey"},rwe=ke({__name:"SjPlaylist",props:{pageSize:{}},emits:["change"],setup(e,{emit:t}){const n=e,r=t,{series:s,episode:i,gotoEpisode:o,hasEpisode:a,getEpisode:l}=H$(),u=M(),c=M(!1),d=F(()=>n.pageSize??(s.value.episodes>=150?50:30)),f=M(Math.floor(i.value/d.value)+1),h=F(()=>Array.from({length:Math.ceil(s.value.episodes/d.value)},(v,x)=>x*d.value+1));function p(v){c.value=!1;const x=u.value,g=(v-1)*d.value+1,y=x.querySelector(`.episode-item-${g}`);x.scrollTo({behavior:"smooth",top:y?.offsetTop??0})}function m(){const v=u.value,{scrollTop:x,offsetHeight:g,scrollHeight:y}=v;if(x+g>=y-10)f.value=h.value.length;else{let _=0;h.value.forEach((E,w)=>{(v.querySelector(`.episode-item-${E}`)?.offsetTop??0)<=x+50&&(_=w)}),f.value=_+1}}return be(i,m),(v,x)=>(P(),j("div",Ks(pi(v.$attrs)),[S(Hi,{modelValue:b(f),"onUpdate:modelValue":x[0]||(x[0]=g=>Ce(f)?f.value=g:null),class:"mx-3",mobile:"",style:{"min-height":"36px"},density:"compact",color:"primary"},{default:A(()=>[(P(!0),j(se,null,Fe(Math.ceil(b(s).episodes/b(d)),g=>(P(),q(Sr,{key:g,value:g,class:"cursor-pointer p-1 min-h-0 min-w-0 mr-3",onClick:y=>p(g)},{default:A(()=>[z(Z((g-1)*b(d)+1)+"-"+Z(Math.min(b(s).episodes,g*b(d))),1)]),_:2},1032,["value","onClick"]))),128)),S(Mt)]),_:1},8,["modelValue"]),S(We,{class:"px-2"},{default:A(()=>[L("div",Ve({ref_key:"containerRef",ref:u,class:"overflow-y-auto relative"},v.$attrs,{onScroll:m}),[S(ba,{dense:"",class:"m-0 justify-center"},{default:A(()=>[(P(!0),j(se,null,Fe(b(s).episodes,(g,y)=>
134(P(),q(oi,{key:y,cols:"auto",lg:"auto",class:Ie(`episode-item-${g}`),style:{maxWidth:"90px",minWidth:"60px"}},{default:A(()=>[b(a)(g)?(P(),q(Gv,{key:0,"aspect-ratio":1,class:"rounded-lg"},{default:A(()=>[S($e,{variant:"tonal",width:"100%",height:"100%",class:"flex items-center justify-center text-sm",color:b(i)===g?"primary":void 0,onClick:()=>{b(o)(g),r("change")}},{default:A(()=>[L("span",null,Z(b(l)(g)?.episode),1),b(l)(g)?.needbuy?(P(),q(de,{key:0,size:"x-small",class:"absolute right-1 top-1 scale-90 opacity-50",color:"grey",icon:"ph:lock-duotone"})):b(l)(g)?.fee>0?(P(),q(de,{key:1,size:"x-small",class:"absolute right-1 top-1 scale-90 opacity-50",color:"grey",icon:"ph:lock-open-duotone"})):te("",!0),te("",!0)]),_:2},1032,["color","onClick"])]),_:2},1024)):(P(),q(Gv,{key:1,"aspect-ratio":1,class:"rounded-lg"},{default:A(()=>[S($e,{variant:"tonal",width:"100%",height:"100%",class:"flex items-center justify-center text-sm opacity-50"},{default:A(()=>[L("span",nwe,Z(g),1),x[1]||(x[1]=L("span",{class:"absolute right-1 top-1 scale-90 text-grey"}," 缺 ",-1))]),_:2},1024)]),_:2},1024))]),_:2},1032,["class"]))),128))]),_:1})],16)]),_:1})],16))}}),K$=vt(rwe,[["__scopeId","data-v-c53a308b"]]),swe=Object.freeze(Object.defineProperty({__proto__:null,default:K$},Symbol.toStringTag,{value:"Module"})),Bx=new Map;function iwe(e){const t=M(new Map),n=Wt({detail:null,relatedList:[],loading:!1,relatedLoading:!1}),s=it()[e],i=async a=>{const l=Fn().query.page||"1",u=a+":"+l,c=t.value.get(u);if(c)return n.detail=c.detail,c.detail;n.loading=!0;try{const d=await s.detail({id:a,page:l});return n.detail=d,t.value.set(u,{detail:d}),d}catch(d){throw console.error(`加载${e}详情失败:`,d),d}finally{n.loading=!1}},o=async a=>{n.relatedLoading=!0;try{const l=await s.related(a);return n.relatedList=l?.list||l||[],l}catch(l){throw console.error(`加载${e}相关推荐失败:`,l),l}finally{n.relatedLoading=!1}};return{...Pg(n),loadDetail:i,loadRelated:o}}function Il(e){return Bx.has(e)||Bx.set(e,iwe(e)),Bx.get(e)}const owe={class:""},Ll=ke({__name:"DetailBase",props:{type:{}},setup(e){const t=e,{prod:n}=Zr().public,r=mt("routeParams",{id:""}),{detail:s,relatedList:i,loading:o,relatedLoading:a,loadDetail:l,loadRelated:u}=Il(t.type),c=M(!1),{addHistory:d}=zy();return be(()=>r.id,async(f,h)=>{if(!(f===h&&h!==void 0))try{c.value=!1,await l(r.id),setTimeout(async()=>{const p={id:s.value?.cid||0};if(s.value?.pid&&(p.pid=s.value.pid),t.type==="actor"||t.type==="down"){const m=s.value?.uncensored||0;p.censor=m>0?m+1:0;const v=[s.value?.maker,s.value?.series,(s.value?.eid||"").replace(/\-.*$/ig,"")].sort(()=>Math.random()-.5);for(const x of v)if(x){p.keyword=x,p.order="rand";break}}(s.value?.cid||s.value?.pid||t.type==="sj"||t.type==="actor"||t.type==="down")&&await u({...s.value,...p})},0)}catch(p){console.error("加载数据失败:",p),p.value=!0}finally{!n&&console.log("detail",s),!n&&console.log("relate",i)}},{immediate:!0}),zi(async()=>{const f=s.value?.eid||s.value?.id;if(r.id&&f!==r.id){!n&&console.log("onActivated: detail mismatch, reloading",{currentDetailId:f,paramsId:r.id});try{c.value=!1,await l(r.id)}catch(h){console.error("加载数据失败:",h),c.value=!0}}}),be(()=>s.value,f=>{f?.eid&&d(t.type,{eid:f?.eid||f.id,title:f.title,url:window.location.pathname+window.location.search,cover:"cover"in f?f.cover:void 0,duration:"duration"in f?f.duration:void 0})}),(f,h)=>(P(),j("div",owe,[b(c)?(P(),q(ci,{key:0,type:"error",text:"加载失败,请稍后重试"})):b(o)?(P(),q(Hs,{key:1,type:"article",class:"mb-4"})):b(s)?Ht(f.$slots,"default",{key:2,detail:b(s),relatedList:b(i),loading:b(o),relatedLoading:b(a)}):te("",!0)]))}}),awe=Object.freeze(Object.defineProperty({__proto__:null,default:Ll},Symbol.toStringTag,{value:"Module"})),a0=Ws(()=>{const{user:e,status:t}=Ct(),n=M(!1),r=M(!1),{$api:s}=wt();function i(l,u){let c="";l=decodeURIComponent(l);for(let d=0;d<l.length;d++)c+=String.fromCharCode(u.charCodeAt(d%u.length)^l.charCodeAt(d));return c}return{isFaved:n,isLiked:r,toggleFavorite:async(l,u)=>{t.value!="authenticated"&&Tt().push("/auth/login");try{const{code:c}=await s("/user/fav_do",{method:"POST",body:Vt({id:l,type:u??1})});return n.value=c==1,n.value}catch(c){throw console.error("收藏失败:",c),c}},toggleLike:async l=>{try{const u="lua/api-up",c=i(JSON.stringify({id:l,type:"up",site:Rr(),time:Math.ceil(new Date().getTime()/1e3)}),u),{$api:d}=wt(),f=await d("/"+u,{body:new URLSearchParams({id:c}),baseUrl:!0,method:"POST"});return je.success("点赞成功,好人一生平安"),r.value=!0,!0}catch(u){throw console.error("点赞失败:",u),u}}}}),lwe={key:0,class:"relative h-[30vh]"},uwe={class:"absolute inset-0 flex flex-col items-center justify-center bg-black/75 z-10"},cwe={key:1,class:"player-wrapper relative flex",style:{"max-height":"80vh",overflow:"hidden"}},dwe={class:"absolute inset-0 flex items-center justify-center bg-black/50"},fwe={class:"vod-actions flex flex-column justify-center"},hwe={class:"text-sm opacity-75"},pwe={key:0,class:"flex flex-wrap gap-2 mb-2"},mwe={class:"text-sm opacity-75"},vwe={class:"w-full"},gwe=ke({__name:"sj_detail",setup(e){const t=M("sj"),n=mt("routeParam
134s",{type:t.value,id:""}),r=kh(),{detail:s,relatedList:i,loadRelated:o}=Il(t.value),{isLiked:a,isFaved:l,toggleFavorite:u,toggleLike:c}=a0(),{currentTime:d,duration:f,playing:h,playbackRate:p,isFullscreen:m}=n0(),v=()=>{},x=M(),g=M(!0),y=M(!1),_=M(!1),E=M(!1),w=M(!1),T=M(0),C=M(!1),I=F(()=>Number(r.query?.ep)||1),k=M(!1),$=(Me,ze)=>{T.value=Me,w.value=!0},{episode:R,episodeData:D,series:O,seriesLoading:B,episodeLoading:U,nextEpisode:N,prevEpisode:V,gotoEpisode:H}=YEe({id:F(()=>n.id),episode:I,series:F(()=>s.value),onNeedLogin:$});be(()=>s.value?.eid,async Me=>{Me&&(a.value=!1,y.value=!1)});const re=async()=>{const Me=`${window.location.href}
135${s.value.title.replace(/#[\S]+/g,"")}`;await Pa().copyText(Me)?(y.value=!0,je.success("分享链接已复制,请手动粘贴给微信/QQ/微博/朋友圈")):je.error("复制失败,请手动复制")};F(()=>It().list(t.value,{cid:s.value?.cid,order:"week"}));const W=F(()=>s.value?.tags.slice(0,6)||[]),X=Me=>{const ze=Is(t.value);for(const et of ze)if(et.name==Me)return It().list(t.value,{cid:et.id});return It().search(t.value,{key:Me})},Q=()=>{const{isLogin:Me}=Ct();Me.value&&T.value>0?(H(T.value),T.value=0,C.value=!1):T.value>0&&(C.value=!0)},le=()=>{},ve=F(()=>{if(s.value.episodes/18>6)for(let pe=1;;pe++){const ge=18+pe*6;if(Math.ceil(s.value.episodes/ge)<=6)return ge}return 18}),oe=[{title:"相关推荐",order:"relate"},{title:"日榜",order:"click"},{title:"周榜",order:"week"},{title:"月榜",order:"month"}],K=M(0),ee=M({}),ae=M({}),ue=F(()=>(i.value||[]).map(Me=>({...Me,type:n.type,cover:Me.cover,id:Me.eid||Me.id,time:Me.time?Me.time*1e3:void 0,duration:Me.duration}))),Ee=F(()=>K.value===0?(ue.value||[]).slice(0,18):(ae.value[K.value]||_e(K.value),(ae.value[K.value]||[]).slice(0,18))),_e=async Me=>{const ze=`tab_${Me}`;if(!(ae.value[Me]||ee.value[ze])){ee.value[ze]=!0;try{if(Me===0){ae.value[Me]=ue.value||[];return}const et=oe[Me].order;console.log("tags",W.value);const{list:pe}=await o({order:et,tag:W.value[0]||""});ae.value[Me]=pe.map(ge=>({...ge,id:ge.eid,time:ge.time*1e3}))}catch(et){console.error(et)}finally{setTimeout(()=>{ee.value[ze]=!1},300)}}},J=async Me=>{K.value!==Me&&(K.value=Me,ae.value[Me]||await _e(Me))},Y=F(()=>D.value?.tokens??[]),fe=M(0),xe=F(()=>Y.value[fe.value]),ne=F(()=>O?.value?.episodelist?.reduce((Me,ze)=>Me+(ze.duration||0),0)),ie=M(),Le=F(()=>window.innerWidth<=768?7/10:16/9),we=async()=>{d.value=0,await N()},Be=async()=>{await N()},Pe=Me=>{fe.value<Y.value.length-1?fe.value++:je.error("视频加载失败,请稍后重试")};La(()=>{x.value&&x.value.pause()});const qe=async()=>{try{await u(s.value.eid,4),je(l.value?"已收藏":"已取消收藏")}catch{je("操作失败,请稍后重试",{type:"error"})}};return(Me,ze)=>{const et=r0,pe=G$,ge=K$,he=gs,ye=Ys,me=Ll,Ne=Cr,Je=Uu;return P(),j(se,null,[(P(),q(me,{key:b(n).id,"keep-alive":"",type:t.value},{default:A(()=>[S(dn,{class:"pb-4 mt-0 pt-0 px-0 md:px-4"},{default:A(()=>[C.value?(P(),j("div",lwe,[L("div",uwe,[S(de,{icon:"mdi-account-lock-outline",size:"x-large",color:"primary",class:"mb-4"}),ze[10]||(ze[10]=L("h3",{class:"text-center text-white text-h6 mb-2"}," 需要登录才能继续观看 ",-1)),ze[11]||(ze[11]=L("p",{class:"text-center text-white-darken-2 text-body-2 mb-4"}," 登录后即可享受更多精彩内容 ",-1)),S(ce,{color:"primary",variant:"elevated",onClick:ze[0]||(ze[0]=Oe=>w.value=!0)},{default:A(()=>[...ze[9]||(ze[9]=[z(" 立即登录/注册 ",-1)])]),_:1})])])):(P(),j("div",cwe,[S(et,{ref_key:"playerRef",ref:x,autoplay:!0,src:`${xe.value||""}`,poster:ie.value,"current-time":b(d),duration:b(f),loading:_.value,playing:b(h),active:!0,"playback-rate":b(p),controls:g.value,ratio:Le.value,"fullscreen-web":!0,"control-next":!0,"onUpdate:currentTime":ze[1]||(ze[1]=Oe=>d.value=Oe),"onUpdate:duration":ze[2]||(ze[2]=Oe=>f.value=Oe),"onUpdate:loading":ze[3]||(ze[3]=Oe=>_.value=Oe),"onUpdate:playing":ze[4]||(ze[4]=Oe=>h.value=Oe),onEnded:we,onNext:Be,onError:Pe,"onUpdate:fullscreen":ze[5]||(ze[5]=Oe=>m.value=Oe)},{error:A(()=>[L("div",dwe,[S(ci,{type:"error",text:"视频加载失败,请稍后重试"})])]),_:1},8,["src","poster","current-time","duration","loading","playing","playback-rate","controls","ratio"])])),S($e,{class:"mt-2 mx-2"},{default:A(()=>[L("div",fwe,[S(ce,{stacked:"",onClick:qe},{default:A(()=>[S(de,{color:b(l)?"primary":void 0,icon:"mdi-star",class:"mb-1"},null,8,["color"]),L("span",{class:Ie(["text-caption",{"text-primary":b(l)}])},"收藏",2)]),_:1}),S(ce,{stacked:"",onClick:re},{default:A(()=>[S(de,{color:y.value?"primary":void 0,icon:"ph:share-fat-fill",class:"mb-1"},null,8,["color"]),L("span",{class:Ie(["text-caption",{"text-primary":y.value}])},"分享",2)]),_:1}),S(pe,{stacked:"",style:{fontSize:"120%"}}),S(ce,{stacked:"",disabled:b(R)===1,loading:b(U)||_.value||k.value,variant:"text",onClick:b(V)},{default:A(()=>[S(de,{icon:"mdi-arrow-left",class:"mb-1"}),ze[12]||(ze[12]=L("span",{class:"text-caption"},"上集",-1))]),_:1},8,["disabled","loading","onClick"]),S(ce,{stacked:"",disabled:b(R)===b(s).episodes,loading:b(U)||_.value,variant:"text",onClick:b(N)},{default:A(()=>[S(de,{icon:"mdi-arrow-right",class:"mb-1"}),ze[13]||(ze[13]=L("span",{class:"text-caption"},"下集",-1))]),_:1},8,["disabled","loading","onClick"])])]),_:1}),S($e,{class:"mt-2 mx-2"},{default:A(()=>[S(at,{class:"px-2 mb-0 whitespace-normal opacity-90"},{default:A(()=>[z(Z(b(s)?.title.replace(/#[\S]+/g,""))+" ",1),L("span",hwe,"(第"+Z(b(R))+"/"+Z(b(s).episodes
135)+"集)",1)]),_:1}),S(We,{class:"px-2 mt-0"},{default:A(()=>[W.value.length?(P(),j("div",pwe,[(P(!0),j(se,null,Fe(W.value,Oe=>(P(),q(kt,{key:Oe,size:"small",variant:"outlined",color:"primary",class:"text-caption",to:X(Oe)},{default:A(()=>[z(Z(Oe),1)]),_:2},1032,["to"]))),128))])):te("",!0),L("div",null,[L("span",mwe,Z(("formatDuration"in Me?Me.formatDuration:b(nw))(ne.value))+" (时长)",1),z(" "+Z(b(O)?.desc||"暂无简介"),1)])]),_:1})]),_:1}),b(B)?te("",!0):(P(),q($e,{key:2,class:"mt-2 mx-2"},{default:A(()=>[S(at,{class:"px-4 py-2"},{default:A(()=>[...ze[14]||(ze[14]=[z(" 剧集列表 ",-1)])]),_:1}),S(zt),S(We,{class:"py-2 px-0"},{default:A(()=>[L("div",vwe,[S(ge,{style:{height:"200px",padding:"0 0 50px"},"page-size":ve.value,onChange:v},null,8,["page-size"])])]),_:1})]),_:1})),b(B)?(P(),q($e,{key:4,class:"mt-2 mx-2"},{default:A(()=>[S(Hs,{type:"image",width:"100%",height:Me.$vuetify.display.mdAndUp?"480px":"56.25vw","aspect-ratio":Le.value,class:"flex-1"},null,8,["height","aspect-ratio"])]),_:1})):(P(),q($e,{key:3,class:"mt-2 mx-2"},{default:A(()=>[S(at,{class:"flex items-center py-2"},{default:A(()=>[S(he,{modelValue:K.value,"onUpdate:modelValue":ze[6]||(ze[6]=Oe=>K.value=Oe),tabs:oe.map(Oe=>Oe.title),loading:ee.value,"tab-width":"auto",onTabClick:J},null,8,["modelValue","tabs","loading"])]),_:1}),S(zt),S(We,{class:"py-2"},{default:A(()=>[S(ye,{type:t.value,class:"mx-0 my-2",items:Ee.value,loading:ee.value[`tab_${K.value}`],"pc-cols":6,"mobile-cols":3,skeleton:!0},null,8,["type","items","loading"])]),_:1})]),_:1}))]),_:1})]),_:1},8,["type"])),w.value?(P(),q(Ne,{key:0,modelValue:w.value,"onUpdate:modelValue":ze[7]||(ze[7]=Oe=>w.value=Oe),"initial-mode":"register",onClose:Q},null,8,["modelValue"])):E.value?(P(),q(Je,{key:1,modelValue:E.value,"onUpdate:modelValue":ze[8]||(ze[8]=Oe=>E.value=Oe),onClose:le},null,8,["modelValue"])):te("",!0)],64)}}}),ywe=vt(gwe,[["__scopeId","data-v-ba1a64c9"]]),W$=Object.freeze(Object.defineProperty({__proto__:null,default:ywe},Symbol.toStringTag,{value:"Module"})),q$=Ws(()=>{const{user:e}=Ct(),{vod:t}=it(),n=M(0),r=M(0),s=M([]),i=F(()=>(wr()?.vodLines||[]).map(d=>({name:d.name,id:d.id})));function o(c,d){let f="";c=vl.encode(c);for(let h=0;h<c.length;h++)f+=String.fromCharCode(d.charCodeAt(h%d.length)^c.charCodeAt(h));return encodeURIComponent(f)}function a(){let c="";for(let d=0;d<8;d++)c+=String.fromCharCode(Math.floor(Math.random()*26)+97);return c}const l=c=>(c||"").replace(/play\.m3u8/g,"x.m3u8");return{currentRoad:n,currentQuality:r,qualityList:s,roads:i,loadVideoUrl:async c=>{try{const d=a(),f={road:i.value[n.value]?.id||"",id:c,pos:r.value||0,site:Rr()||""},h=o(JSON.stringify(f),d),{$api:p}=wt(),m=new URLSearchParams,v={data:h,key:d,...f};for(const[g,y]of Object.entries(v))m.append(g,y);const{url:x}=await p("/lua/api-vipurl",{method:"POST",body:m,baseUrl:!0,silent:!0});return l(x)}catch(d){throw console.error("加载视频源失败:",d),d}},convertPlayUrl:l}}),xwe={class:"vod-lines"},bwe={class:"player-wrapper relative"},_we={class:"absolute inset-0 flex items-center justify-center bg-black/50"},Swe={class:"vod-actions flex flex-column justify-center"},Ewe={class:"text-sm flex items-center gap-4 mb-2 text-sm opacity-75"},wwe={key:0,class:"flex flex-wrap gap-2 mb-2"},Twe={key:1,class:"mt-4 text-sm opacity-75"},Cwe={class:"flex justify-center mt-2"},Awe=ke({__name:"xz_detail",setup(e){const t=mt("routeParams",{type:"vod",id:""}),{detail:n,relatedList:r}=Il("vod"),{user:s,isLogin:i}=Ct(),{currentRoad:o,currentQuality:a,loadVideoUrl:l,convertPlayUrl:u,roads:c}=q$(),{isFaved:d,isLiked:f,toggleFavorite:h,toggleLike:p}=a0(),{currentTime:m,duration:v,loading:x,playing:g,playbackRate:y,isFullscreen:_}=n0(),E=M(),w=M(!1),T=M(!1),C=M(!0),I=M(!1),k=M(0),$=M(0),R=di("player-settings",{road:0,quality:0});be([o,a],([pe,ge])=>{R.value={road:pe,quality:ge}}),be(()=>n.value?.eid,async pe=>{if(pe){f.value=!1,I.value=!1;try{$.value=o.value,k.value=a.value,o.value=R.value.road,a.value=R.value.quality,await B()}catch{o.value=0,a.value=0,R.value={road:0,quality:0},await B()}}});const D=async()=>{f.value||await p(n.value?.eid)},O=M(!1),B=async()=>
135{if(!O.value){O.value=!0;try{const pe=await l(n.value?.eid);n.value.urls[a.value||0].url=pe,await E.value?.switchUrl(pe)}catch(pe){throw pe?.error<0?(pe?.error===-1?(T.value=!0,w.value=!0):pe?.error===-2?w.value=!0:je.error("视频加载失败,请稍后重试"),pe):(console.error(`加载失败:${pe.data||pe.message}`,pe),je.error("视频加载失败,请稍后重试"),pe)}finally{O.value=!1}}},U=()=>s.value?.username?!s.value?.vip||Number(s.value?.vip)<1?(w.value=!0,!1):!0:(T.value=!0,!1),N=async pe=>{const{index:ge,vip:he,name:ye,callback:me}=pe;if(k.value=a.value,$.value=o.value,!U()){me(!1);return}a.value=ge,me(!0);try{await B()}catch(Ne){throw a.value=k.value,o.value=$.value,Ne}},V=async()=>{if(Ee.value){const he=n.value.urls.map((me,Ne)=>({...me,index:Ne})).filter(me=>me.vip===0).sort((me,Ne)=>me.vip-Ne.vip);if(he.length===0){je.error("没有找到普通画质版本");return}const ye=he[0];await N({index:ye.index,vip:ye.vip,name:ye.name,callback:me=>{me||B().catch(()=>{})}});return}if(!U())return;const pe=n.value.urls.map((he,ye)=>({...he,index:ye})).filter(he=>he.vip>0).sort((he,ye)=>ye.vip-he.vip);if(pe.length===0){je.error("没有找到高清版本");return}const ge=pe[0];await N({index:ge.index,vip:ge.vip,name:ge.name,callback:he=>{he||B().catch(()=>{})}})};be(o,async(pe,ge)=>{try{await B()}catch{}});const H=async()=>{d.value=await h(n.value.eid)},re=async()=>{const{copyText:pe}=Pa(),ge=`${window.location.href}
136${n.value.title.replace(/#[\S]+/g,"")}`;await pe(ge)?(I.value=!0,je.success("分享链接已复制,请手动粘贴给微信/QQ/微博/朋友圈")):je.error("复制失败,请手动复制")},W=F(()=>(r.value||[]).map(pe=>({...pe,type:t.type,cover:pe.cover,id:pe.eid||pe.id,time:pe.time?pe.time*1e3:void 0,duration:pe.duration}))),X=F(()=>It().list("vod",{cid:n.value?.cid})),Q=F(()=>It().list("vod",{cid:n.value?.cid,order:"week"})),le=F(()=>{if(n.value?.tags?.length)return n.value?.tags;const pe=n.value?.title.match(/#[\S]+/g);return pe?pe.map(ge=>ge.slice(1)):[]}),ve=F(()=>c.value.map(pe=>pe.name)),oe=pe=>It().search("vod",{key:pe}),K=()=>{},ee=pe=>{},ae=()=>{if(!i.value){w.value=!1,a.value=k.value,o.value=$.value;return}if(s.value?.vip){B().catch(()=>{w.value=!0});return}},ue=()=>{if(!s.value?.vip){w.value=!1,a.value=k.value,o.value=$.value;return}B().catch(()=>{})},Ee=F(()=>n.value?.urls[a.value||0]?.vip>0);be([w,T],([pe,ge],[he,ye])=>{E.value?.pause()});const _e=[{title:"相关推荐",order:"relate"},{title:"日榜",order:"click"},{title:"周榜",order:"week"},{title:"月榜",order:"month"}],J=M(0),Y=M({}),fe=M({}),xe=F(()=>J.value===0?W.value||[]:(fe.value[J.value]||ne(J.value),fe.value[J.value]||[])),ne=async pe=>{const ge=`tab_${pe}`;if(!(fe.value[pe]||Y.value[ge])){Y.value[ge]=!0;try{if(pe===0){fe.value[pe]=W.value||[];return}const he=_e[pe].order,ye=it(),me=Is("vod").find(Je=>Je.id===n.value?.cid),{vodList:Ne}=await ye.vod.list({page:1,order:he,cid:me?.cid});fe.value[pe]=Ne.map(Je=>({...Je,id:Je.eid,time:Je.time*1e3}))}catch(he){console.error(he)}finally{setTimeout(()=>{Y.value[ge]=!1},300)}}},ie=async pe=>{J.value!==pe&&(J.value=pe,fe.value[pe]||await ne(pe))},Le=M(void 0),we=pe=>{const{target:ge,src:he,status:ye,type:me}=pe;ye==="success"&&ge&&(Le.value=he)},Be=F(()=>!s.value?.vip),Pe=F(()=>fo("detail").filter(pe=>pe.place==="top")[0]?.ads||[]),qe=M(-1),Me=F(()=>{if(!Be.value)return;qe.value<0&&(qe.value=Math.round(Math.random()*Pe.value.length));const pe=Pe.value[qe.value]||!1;return pe?{img:pe.img,url:pe.url}:{}}),ze=()=>{qe.value=Pe.value.length+1},et=()=>{U()&&(qe.value=Pe.value.length+1)};return La(()=>{E.value&&E.value.pause()}),(pe,ge)=>{const he=An,ye=gs,me=Hy,Ne=r0,Je=Ys,Oe=Ll,Ye=Cr,ot=Uu;return P(),j(se,null,[S(Oe,{type:"vod"},{default:A(()=>[S(dn,{class:"mt-1 p-0"},{default:A(()=>[S(he,{src:"/playpic/"+b(n).cover+"?lg/0",encoded:"1",class:"absolute max-w-0 max-h-0",onLoad:we},null,8,["src"]),S($e,{class:"m-0 mt-0 rounded-none -mt-3"},{default:A(()=>[L("div",xwe,[S(ye,{modelValue:b(o),"onUpdate:modelValue":ge[0]||(ge[0]=rt=>Ce(o)?o.value=rt:null),tabs:b(ve),"tab-width":"auto"},null,8,["modelValue","tabs"])])]),_:1}
136),L("div",bwe,[b(Me)?.img?(P(),q(me,{key:0,img:b(Me).img,link:b(Me).url,ratio:16/9,duration:6,onClose:ze,onUpgrade:et},null,8,["img","link"])):(P(),q(Ne,{key:1,ref_key:"playerRef",ref:E,autoplay:!1,src:b(u)(b(n).urls[b(a)||0]?.url),poster:b(Le),"quality-list":b(n).urls,"current-time":b(m),duration:b(v),loading:b(x),playing:b(g),active:!0,"playback-rate":b(y),controls:b(C),ratio:16/9,"current-quality":b(a)||0,onQualityChange:N,"onUpdate:currentTime":ge[1]||(ge[1]=rt=>m.value=rt),"onUpdate:duration":ge[2]||(ge[2]=rt=>v.value=rt),"onUpdate:loading":ge[3]||(ge[3]=rt=>x.value=rt),"onUpdate:playing":ge[4]||(ge[4]=rt=>g.value=rt),onEnded:K,onError:ee,"onUpdate:fullscreen":ge[5]||(ge[5]=rt=>_.value=rt),"onUpdate:currentQuality":ge[6]||(ge[6]=rt=>a.value=rt)},{error:A(()=>[L("div",_we,[S(ci,{type:"error",text:"视频加载失败,请稍后重试"})])]),_:1},8,["src","poster","quality-list","current-time","duration","loading","playing","playback-rate","controls","current-quality"]))]),S($e,{class:"mt-2 mx-0 rounded-md"},{default:A(()=>[L("div",Swe,[S(ce,{stacked:"",onClick:H},{default:A(()=>[S(de,{color:b(d)?"primary":void 0,icon:"mdi-heart",class:"mb-1"},null,8,["color"]),L("span",{class:Ie(["text-caption",{"text-primary":b(d)}])},"收藏",2)]),_:1}),S(ce,{stacked:"",onClick:D},{default:A(()=>[S(de,{color:b(f)?"primary":void 0,icon:"mdi-thumb-up",class:"mb-1"},null,8,["color"]),L("span",{class:Ie(["text-caption",{"text-primary":b(f)}])},"点赞",2)]),_:1}),S(ce,{stacked:"",onClick:re},{default:A(()=>[S(de,{color:b(I)?"primary":void 0,icon:"ph:share-fat-fill",class:"mb-1"},null,8,["color"]),L("span",{class:Ie(["text-caption",{"text-primary":b(I)}])},"分享",2)]),_:1}),S(ce,{to:b(Q),stacked:""},{default:A(()=>[S(de,{icon:"icon-park-solid:ranking-list",class:"mb-1"}),ge[10]||(ge[10]=L("span",{class:"text-caption"},"榜单",-1))]),_:1},8,["to"]),S(ce,{stacked:"",onClick:V},{default:A(()=>[S(de,{color:b(Ee)?"primary":void 0,icon:"mdi-crown",class:"mb-1"},null,8,["color"]),L("span",{class:Ie(["text-caption",{"text-primary":b(Ee)}])},"高清版",2)]),_:1})])]),_:1}),S($e,{class:"mt-2 mx-0 rounded-md"},{default:A(()=>[S(at,{class:"px-2 mb-0 whitespace-normal opacity-90"},{default:A(()=>[z(Z(b(n)?.title.replace(/#[\S]+/g,"")),1)]),_:1}),S(We,{class:"px-2 mt-0"},{default:A(()=>[L("div",Ewe,[L("span",null,Z(("formatNumber"in pe?pe.formatNumber:b(Jy))(b(n).clicks))+" 次播放",1),L("span",null,Z(("formatDuration"in pe?pe.formatDuration:b(nw))(b(n).duration))+" 时长",1)]),b(le).length?(P(),j("div",wwe,[(P(!0),j(se,null,Fe(b(le),rt=>(P(),q(kt,{key:rt,size:"small",variant:"outlined",color:"primary",class:"text-caption",to:oe(rt)},{default:A(()=>[z(Z(rt),1)]),_:2},1032,["to"]))),128))])):te("",!0),b(n)?.content?(P(),j("div",Twe,Z(b(n)?.content),1)):te("",!0)]),_:1})]),_:1}),S($e,{class:"mt-2 mx-0 rounded-md"},{default:A(()=>[S(at,{class:"flex items-center py-2"},{default:A(()=>[S(ye,{modelValue:b(J),"onUpdate:modelValue":ge[7]||(ge[7]=rt=>Ce(J)?J.value=rt:null),tabs:_e.map(rt=>rt.title),loading:b(Y),"tab-width":"auto",onTabClick:ie},null,8,["modelValue","tabs","loading"]),S(Mt),S(ce,{to:b(X),variant:"plain"},{default:A(()=>[...ge[11]||(ge[11]=[z(" 更多 » ",-1)])]),_:1},8,["to"])]),_:1}),S(zt),S(We,{class:"p-2 bg-transparent"},{default:A(()=>[S(Je,{type:"vod",class:"mx-0 my-2",items:b(xe),loading:b(Y)[`tab_${b(J)}`],"pc-cols":6,"mobile-cols":2,skeleton:!0},null,8,["items","loading"]),L("div",Cwe,[S(ce,{variant:"outlined",size:"small",class:"opacity-60 min-w-50","append-icon":"mdi-more",to:b(X)},{default:A(()=>[...ge[12]||(ge[12]=[z(" 查看更多 ",-1)])]),_:1},8,["to"])])]),_:1})]),_:1})]),_:1})]),_:1}),b(T)?(P(),q(Ye,{key:0,modelValue:b(T),"onUpdate:modelValue":ge[8]||(ge[8]=rt=>Ce(T)?T.value=rt:null),"initial-mode":"register",onClose:ae},null,8,["modelValue"])):b(w)?(P(),q(ot,{key:1,modelValue:b(w),"onUpdate:modelValue":ge[9]||(ge[9]=rt=>Ce(w)?w.value=rt:null),onClose:ue},null,8,["modelValue"])):te("",!0)],64)}}}),kwe=vt(Awe,[["__scopeId","data-v-1f3efa96"]]),Y$=Object.freeze(Object.defineProperty({__proto__:null,default:kwe},Symbol.toStringTag,{value:"Module"})),uw=Symbol.for("vuetify:v-slider");function Iwe(e,t,n){const r=n==="vertical",s=t.getBoundingClientRect(),i="touches"in e?e.touches[0]:e;return r?i.clientY-(s.top+s.height/2):i.clientX-(s.left+s.width/2)}function Lwe(e,t){return"touches"in e&&e.touches.length?e.touches[0][t]:"changedTouches"in e&&e.changedTouches.length?e.changedTouches[0][t]:e[t]}const Dwe=He({disabled:{type:Boolean,default:null},error:Boolean,readonly:{type:Boolean,default:null},max:{type:[Number,String],default:100},min:{type:[Number,String],default:0},step:{type:[Number,String],default:0}
136,thumbColor:String,thumbLabel:{type:[Boolean,String],default:void 0,validator:e=>typeof e=="boolean"||e==="always"},thumbSize:{type:[Number,String],default:20},showTicks:{type:[Boolean,String],default:!1,validator:e=>typeof e=="boolean"||e==="always"},ticks:{type:[Array,Object]},tickSize:{type:[Number,String],default:2},color:String,trackColor:String,trackFillColor:String,trackSize:{type:[Number,String],default:4},direction:{type:String,default:"horizontal",validator:e=>["vertical","horizontal"].includes(e)},reverse:Boolean,noKeyboard:Boolean,...Tr(),...Rs({elevation:2}),ripple:{type:Boolean,default:!0}},"Slider"),Pwe=e=>{const t=F(()=>parseFloat(e.min)),n=F(()=>parseFloat(e.max)),r=F(()=>Number(e.step)>0?parseFloat(e.step):0),s=F(()=>Math.max(cA(r.value),cA(t.value)));function i(o){if(o=parseFloat(o),r.value<=0)return o;const a=Yr(o,t.value,n.value),l=t.value%r.value;let u=Math.round((a-l)/r.value)*r.value+l;return a>u&&u+r.value>n.value&&(u=n.value),parseFloat(Math.min(u,n.value).toFixed(s.value))}return{min:t,max:n,step:r,decimals:s,roundValue:i}},Rwe=e=>{let{props:t,steps:n,onSliderStart:r,onSliderMove:s,onSliderEnd:i,getActiveThumb:o}=e;const a=cy(t),{isRtl:l}=Jr(),u=Ae(()=>t.reverse),c=F(()=>t.direction==="vertical"),d=F(()=>c.value!==u.value),{min:f,max:h,step:p,decimals:m,roundValue:v}=n,x=F(()=>parseInt(t.thumbSize,10)),g=F(()=>parseInt(t.tickSize,10)),y=F(()=>parseInt(t.trackSize,10)),_=F(()=>(h.value-f.value)/p.value),E=F(()=>t.error||a.isDisabled.value?void 0:t.thumbColor??t.color),w=F(()=>t.error||a.isDisabled.value?void 0:t.thumbColor),T=F(()=>t.error||a.isDisabled.value?void 0:t.trackColor??t.color),C=F(()=>t.error||a.isDisabled.value?void 0:t.trackFillColor??t.color),I=Ze(!1),k=Ze(0),$=M(),R=M();function D(K){const ee=$.value?.$el;if(!ee)return;const ae=t.direction==="vertical",ue=ae?"top":"left",Ee=ae?"height":"width",_e=ae?"clientY":"clientX",{[ue]:J,[Ee]:Y}=ee.getBoundingClientRect(),fe=Lwe(K,_e);let xe=Yr((fe-J-k.value)/Y)||0;return(ae?d.value:d.value!==l.value)&&(xe=1-xe),v(f.value+xe*(h.value-f.value))}const O=K=>{const ee=D(K);ee!=null&&i({value:ee}),I.value=!1,k.value=0},B=K=>{const ee=D(K);R.value=o(K),R.value&&(I.value=!0,R.value.contains(K.target)?k.value=Iwe(K,R.value,t.direction):(k.value=0,ee!=null&&s({value:ee})),ee!=null&&r({value:ee}),tt(()=>R.value?.focus()))},U={passive:!0,capture:!0};function N(K){const ee=D(K);ee!=null&&s({value:ee})}function V(K){K.stopPropagation(),K.preventDefault(),O(K),window.removeEventListener("mousemove",N,U),window.removeEventListener("mouseup",V)}function H(K){O(K),window.removeEventListener("touchmove",N,U),K.target?.removeEventListener("touchend",H)}function re(K){B(K),window.addEventListener("touchmove",N,U),K.target?.addEventListener("touchend",H,{passive:!1})}function W(K){K.button===0&&(K.preventDefault(),B(K),window.addEventListener("mousemove",N,U),window.addEventListener("mouseup",V,{passive:!1}))}const X=K=>{const ee=(K-f.value)/(h.value-f.value)*100;return Yr(isNaN(ee)?0:ee,0,100)},Q=Ae(()=>t.showTicks),le=F(()=>Q.value?t.ticks?Array.isArray(t.ticks)?t.ticks.map(K=>({value:K,position:X(K),label:K.toString()})):Object.keys(t.ticks).map(K=>({value:parseFloat(K),position:X(parseFloat(K)),label:t.ticks[K]})):_.value!==1/0?Zl(_.value+1).map(K=>{const ee=f.value+K*p.value;return{value:ee,position:X(ee)}}):[]:[]),ve=F(()=>le.value.some(K=>{let{label:ee}=K;return!!ee})),oe={activeThumbRef:R,color:Ae(()=>t.color),decimals:m,disabled:a.isDisabled,direction:Ae(()=>t.direction),elevation:Ae(()=>t.elevation),hasLabels:ve,isReversed:u,indexFromEnd:d,min:f,max:h,mousePressed:I,noKeyboard:Ae(()=>t.noKeyboard),numTicks:_,onSliderMousedown:W,onSliderTouchstart:re,parsedTicks:le,parseMouseMove:D,position:X,readonly:a.isReadonly,rounded:Ae(()=>t.rounded),roundValue:v,showTicks:Q,startOffset:k,step:p,thumbSize:x,thumbColor:E,thumbLabelColor:w,thumbLabel:Ae(()=>t.thumbLabel),ticks:Ae(()=>t.ticks),tickSize:g,trackColor:T,trackContainerRef:$,trackFillColor:C,trackSize:y,vertical:c};return Cn(uw,oe),oe},Owe=He({focused:Boolean,max:{type:Number,required:!0},min:{type:Number,required:!0},modelValue:{type:Number,required:!0},position:{type:Number,required:!0},ripple:{type:[Boolean,Object],default:!0},name:String,noKeyboard:Boolean,...At()},"VSliderThumb"),$we=nt()({name:"VSliderThumb",directives:{vRipple:ho},props:Owe(),emits:{"update:modelValue":e=>!0},setup(e,t){let{slots:n,emit:r}=t;const s=mt(uw),{isRtl:i,rtlClasses:o}=Jr();if(!s)throw new Error("[Vuetify] v-slider-thumb must be used inside v-slider or v-range-slider");const{min:a,max:l,thumbColor:u,thumbLabelColor:c,step:d,disabled:f,thumbSize:h,thumbLabel:p,direction:m,isReversed:v,vertical:x,readonly:g,elevation:y,mousePressed:_,decimals:E,indexFromEnd:w}=s,T=F(()=>f.value?void 0:y.value),{elevationClasses:C}=gi(T),{textColorClasses:I,textColorStyles:k}=Gs(u),{backgroundColorClasses:$,backgroundColorStyles:R}=_r(c),{pageup:D,pagedown:O,end:B,home:U,left:N,right:V,down:H,up:re}=Gb,W=[D,O,B,U,N,V,H,re],X=F(()=>d.value?[1,2,3]:[1,5,10]);function Q(ve,oe){if(e.noKeyboard||f.value||!W.includes(ve.key))return;ve.preventDefault();const K=d.value||.1,ee=(l.value-a.value)/K;if([N,V,H,re].includes(ve.key)){const ue=(x.value?[i.value?N:V,v.value?H:re]:w.value!==i.value?[N,re]:[V,re]).includes(ve.key)?1:-1,Ee=ve.shiftKey?2:ve.ctrlKey?1:0;ue===-1&&oe===l.value&&!Ee&&!Number.isInteger(ee)?oe=oe-ee%1*K:oe=oe+ue*K*X.value[Ee]}else if(ve.key===U)oe=a.value;else if(ve.key===B)oe=l.value;else{const ae=ve.key===O?1:-1;
136oe=oe-ae*K*(ee>100?ee/10:10)}return Math.max(e.min,Math.min(e.max,oe))}function le(ve){const oe=Q(ve,e.modelValue);oe!=null&&r("update:modelValue",oe)}return ut(()=>{const ve=ht(w.value?100-e.position:e.position,"%");return L("div",{class:Ie(["v-slider-thumb",{"v-slider-thumb--focused":e.focused,"v-slider-thumb--pressed":e.focused&&_.value},e.class,o.value]),style:Qe([{"--v-slider-thumb-position":ve,"--v-slider-thumb-size":ht(h.value)},e.style]),role:"slider",tabindex:f.value?-1:0,"aria-label":e.name,"aria-valuemin":a.value,"aria-valuemax":l.value,"aria-valuenow":e.modelValue,"aria-readonly":!!g.value,"aria-orientation":m.value,onKeydown:g.value?void 0:le},[L("div",{class:Ie(["v-slider-thumb__surface",I.value,C.value]),style:Qe(k.value)},null),pn(L("div",{class:Ie(["v-slider-thumb__ripple",I.value]),style:Qe(k.value)},null),[[ho,e.ripple,null,{circle:!0,center:!0}]]),S(O4,{origin:"bottom center"},{default:()=>[pn(L("div",{class:"v-slider-thumb__label-container"},[L("div",{class:Ie(["v-slider-thumb__label",$.value]),style:Qe(R.value)},[L("div",null,[n["thumb-label"]?.({modelValue:e.modelValue})??e.modelValue.toFixed(d.value?E.value:1)]),L("div",{class:"v-slider-thumb__label-wedge"},null)])]),[[hs,p.value&&e.focused||p.value==="always"]])]})])}),{}}}),Mwe=He({start:{type:Number,required:!0},stop:{type:Number,required:!0},...At()},"VSliderTrack"),Fwe=nt()({name:"VSliderTrack",props:Mwe(),emits:{},setup(e,t){let{slots:n}=t;const r=mt(uw);if(!r)throw new Error("[Vuetify] v-slider-track must be inside v-slider or v-range-slider");const{color:s,parsedTicks:i,rounded:o,showTicks:a,tickSize:l,trackColor:u,trackFillColor:c,trackSize:d,vertical:f,min:h,max:p,indexFromEnd:m}
136=r,{roundedClasses:v}=Qr(o),{backgroundColorClasses:x,backgroundColorStyles:g}=_r(c),{backgroundColorClasses:y,backgroundColorStyles:_}=_r(u),E=F(()=>`inset-${f.value?"block":"inline"}-${m.value?"end":"start"}`),w=F(()=>f.value?"height":"width"),T=F(()=>({[E.value]:"0%",[w.value]:"100%"})),C=F(()=>e.stop-e.start),I=F(()=>({[E.value]:ht(e.start,"%"),[w.value]:ht(C.value,"%")})),k=F(()=>a.value?(f.value?i.value.slice().reverse():i.value).map((R,D)=>{const O=R.value!==h.value&&R.value!==p.value?ht(R.position,"%"):void 0;return L("div",{key:R.value,class:Ie(["v-slider-track__tick",{"v-slider-track__tick--filled":R.position>=e.start&&R.position<=e.stop,"v-slider-track__tick--first":R.value===h.value,"v-slider-track__tick--last":R.value===p.value}]),style:{[E.value]:O}},[(R.label||n["tick-label"])&&L("div",{class:"v-slider-track__tick-label"},[n["tick-label"]?.({tick:R,index:D})??R.label])])}):[]);return ut(()=>L("div",{class:Ie(["v-slider-track",v.value,e.class]),style:Qe([{"--v-slider-track-size":ht(d.value),"--v-slider-tick-size":ht(l.value)},e.style])},[L("div",{class:Ie(["v-slider-track__background",y.value,{"v-slider-track__background--opacity":!!s.value||!c.value}]),style:{...T.value,..._.value}},null),L("div",{class:Ie(["v-slider-track__fill",x.value]),style:{...I.value,...g.value}},null),a.value&&L("div",{class:Ie(["v-slider-track__ticks",{"v-slider-track__ticks--always-show":a.value==="always"}])},[k.value])])),{}}}),Bwe=He({...TS(),...Dwe(),...Nu(),modelValue:{type:[Number,String],default:0}},"VSlider"),EL=nt()({name:"VSlider",props:Bwe(),emits:{"update:focused":e=>!0,"update:modelValue":e=>!0,start:e=>!0,end:e=>!0},setup(e,t){let{slots:n,emit:r}=t;const s=M(),i=M(),{rtlClasses:o}=Jr(),a=Pwe(e),l=Qt(e,"modelValue",void 0,I=>a.roundValue(I??a.min.value)),{min:u,max:c,mousePressed:d,roundValue:f,onSliderMousedown:h,onSliderTouchstart:p,trackContainerRef:m,position:v,hasLabels:x,disabled:g,readonly:y,noKeyboard:_}=Rwe({props:e,steps:a,onSliderStart:()=>{!g.value&&!y.value&&r("start",l.value)},onSliderEnd:I=>{let{value:k}=I;const $=f(k);!g.value&&!y.value&&(l.value=$),r("end",$)},onSliderMove:I=>{let{value:k}=I;!g.value&&!y.value&&(l.value=f(k))},getActiveThumb:()=>s.value?.$el}),{isFocused:E,focus:w,blur:T}=yd(e),C=F(()=>v(l.value));return ut(()=>{const I=Vi.filterProps(e),k=!!(e.label||n.label||n.prepend);return S(Vi,Ve({ref:i,class:["v-slider",{"v-slider--has-labels":!!n["tick-label"]||x.value,"v-slider--focused":E.value,"v-slider--pressed":d.value,"v-slider--disabled":g.value},o.value,e.class],style:e.style},I,{focused:E.value}),{...n,prepend:k?$=>L(se,null,[n.label?.($)??(e.label?S(fy,{id:$.id.value,class:"v-slider__label",text:e.label},null):void 0),n.prepend?.($)]):void 0,default:$=>{let{id:R,messagesId:D}=$;return L("div",{class:"v-slider__container",onMousedown:y.value?void 0:h,onTouchstartPassive:y.value?void 0:p},[L("input",{id:R.value,name:e.name||R.value,disabled:g.value,readonly:y.value,tabindex:"-1",value:l.value},null),S(Fwe,{ref:m,start:0,stop:C.value},{"tick-label":n["tick-label"]}),S($we,{ref:s,"aria-describedby":D.value,focused:E.value,noKeyboard:_.value,min:u.value,max:c.value,modelValue:l.value,"onUpdate:modelValue":O=>l.value=O,position:C.value,elevation:e.elevation,onFocus:w,onBlur:T,ripple:e.ripple,name:e.name},{"thumb-label":n["thumb-label"]})])}})}),yi({focus:()=>s.value?.$el.focus()},i)}}),Nwe={class:"mb-4"},Vwe={class:"flex items-center gap-4"},Uwe={class:"min-w-[3em] text-right"},jwe={class:"mb-4"},zwe={class:"flex items-center gap-4"},Hwe={class:"min-w-[3em] text-right"},Gwe={key:0,class:"mb-4"},Kwe={class:"flex items-center justify-between hidden"},Wwe=ke({__name:"NvlReaderSettings",props:{modelValue:{type:Boolean}},emits:["update:modelValue"],setup(e,{expose:t,emit:n}){const r=e,s=n,i=F({get:()=>r.modelValue,set:p=>s("update:modelValue",p)}),o=di("reader-settings",{fontSize:16,lineHeight:1.8,darkMode:!1,fontFamily:"system-ui"}),a=M([]),l=M(!1),u=p=>{const v=document.createElement("canvas").getContext("2d"),x="abcdefghijklmnopqrstuvwxyz";v.font=`16px ${p}, monospace`;const g=v.measureText(x).width;v.font="16px monospace";const y=v.measureText(x).width;return g!==y},c=async()=>{try{if("queryLocalFonts"in window){const p=await window.queryLocalFonts(),m=[...new Set(p.map(v=>v.family))];a.value=m.filter(v=>u(v)),l.value=!0}else{const p=["system-ui","SimSun","SimHei","KaiTi","Microsoft YaHei","PingFang SC","Noto Sans SC"];a.value=p.filter(m=>u(m))}}catch(p){console.error("获取系统字体失败:",p),l.value=!1}},d=F(()=>l.value?[{title:"系统默认",value:"system-ui"},...a.value.map(p=>({title:p,value:p}))]:[]),f=p=>{o.value.fontSize=Math.max(12,Math.min(24,o.value.fontSize+p))},h=p=>{o.value.lineHeight=Math.max(1.2,Math.min(2.4,o.value.lineHeight+p))};return be(()=>o.value.darkMode,p=>{document.documentElement.classList.toggle("dark",p)},{immediate:!0}),ft(()=>{c()}),t({settings:o}),(p,m)=>(P(),q(Gt,{modelValue:b(i),"onUpdate:modelValue":m[9]||(m[9]=v=>Ce(i)?i.value=v:null),width:"300",scrollable:""},{default:A(()=>[S($e,null,{default:A(()=>[S(at,{class:"flex items-center text-center py-4"},{default:A(()=>[m[10]||(m[10]=z(" 阅读设置 ",-1)),S(Mt),S(ce,{icon:"ph:x-bold",variant:"text",size:"small",class:"position-absolute right-2",onClick:m[0]||(m[0]=v=>i.value=!1)})]),_:1}),S(zt),S(We,{class:"pa-4"},{default:A(()=>[L("div",Nwe,[m[11]||(m[11]=L("div",{class:"text-subtitle-2 mb-2"}," 字体大小 ",-1)),L("div",Vwe,[S(ce,{icon:"",size:"small",onClick:m[1]||(m[1]=v=>f(-1))},{default:A(()=>[S(de,{icon:"ph:minus-bold"})]),_:1}),S(EL,{modelValue:b(o).fontSize,"onUpdate:modelValue":m[2]||(m[2]=v=>b(o).fontSize=v),min:12,max:48,step:1,"hide-details":"",class:"flex-1"},null,8,["modelValue"]),S(ce,{icon:"",size:"small",onClick:m[3]||(m[3]=v=>f(1))},{default:A(()=>[S(de,{icon:"ph:plus-bold"})]),_:1}),L("span",Uwe,Z(b(o).fontSize)+"px",1)])]),L("div",jwe,[m[12]||(m[12]=L("div",{class:"text-subtitle-2 mb-2"}," 行间距 ",-1)),L("div",zwe,[S(ce,{icon:"",size:"small",onClick:m[4]||(m[4]=v=>h(-.1))},{default:A(()=>[S(de,{icon:"ph:minus-bold"})]),_:1}),S(EL,{modelValue:b(o).lineHeight,"onUpdate:modelValue":m[5]||(m[5]=v=>b(o).lineHeight=v),min:1,max:2.4,step:.1,"hide-details":"",class:"flex-1"},null,8,["modelValue"]),S(ce,{icon:"",size:"small",onClick:m[6]||(m[6]=v=>h(.1))},{default:A(()=>[S(de,{icon:"ph:plus-bold"})]),_:1}),L("span",Hwe,Z(b(o).lineHeight.toFixed(1)),1)])]),b(l)?(P(),j("div",Gwe,[m[13]||(m[13]=L("div",{class:"text-subtitle-2 mb-2"}," 字体 ",-1)),S(oo,{modelValue:b(o).fontFamily,"onUpdate:modelValue":m[7]||(m[7]=v=>b(o).fontFamily=v),items:b(d),"item-title":"title","item-value":"value",density:"compact","hide-details":""},{prepend:A(()=>[S(de,{icon:"ph:text-t-duotone"})]),_:1},8,["modelValue","items"])])):te("",!0),L("div",Kwe,[m[14]||(m[14]=L("span",{class:"text-subtitle-2"},"暗色模式",-1)),S(i$,{modelValue:b(o).darkMode,"onUpdate:modelValue":m[8]||(m[8]=v=>b(o).darkMode=v),"hide-details":"",density:"compact",color:"primary"},{prepend:A(()=>[S(de,{icon:b(o).darkMode?"ph:moon-fill":"ph:sun-dim-duotone",color:b(o).darkMode?"primary":void 0},null,8,["icon","color"])]),_:1},8,["modelValue"])])]),_:1})]),_:1})]),_:1},8,["modelValue"]))}}),X$=vt(Wwe,[["__scopeId","data-v-7ea6cc95"]]),qwe=Object.freeze(Object.defineProperty({__proto__:null,default:X$},Symbol.toStringTag,{value:"Module"})),Ywe={class:"text-2xl md:text-3xl font-bold mb-1 mt-2"},Xwe={class:"flex flex-wrap gap-2 justify-center mb-2"},Zwe={class:"py-2 px-4 flex justify-center gap-4"},Jwe={class:"text-caption"},Qwe={class:"bottom-0 left-0 right-0 bg-surface py-3 px-4 shadow-lg"},eTe={class:"flex justify-between items-center max-w-3xl mx-auto"},tTe={class:"text-center"},nTe={class:"text-primary font-bold"},Nx=50,rTe=ke({__name:"nvl_detail",setup(e){const{detail:t,relatedList:n}=Il("nvl"),{isLiked:r,isFaved:s,toggleFavorite:i,toggleLike:o}=a0(),a=F(()=>t.value?.content||""),l=Fn(),u=Tt(),{html:c}=It(),d=M(Number(l.query.page)||1);be(d,R=>{y(),u.replace({query:{...l.query,page:R}})});const f=di("reader-settings",{fontSize:16,lineHeight:1.8,darkMode:!1,fontFamily:"system-ui"}),h=F(()=>(a.value||"").split(`
137`).map(R=>R.replace(/^[\s\u3000]+/,"")).filter(R=>R.length>0)),p=F(()=>Math.ceil(h.value.length/Nx)),m=F(()=>{const R=(d.value-1)*Nx,D=R+Nx;return h.value.slice(R,D)}),v=()=>{d.value<p.value&&d.value++},x=()=>{d.value>1&&d.value--},g=M(null),y=()=>{try{g.value?.$el.scrollIntoView()}catch(R){console.error("滚动到顶部失败:",R)}},_=M(!1);be(()=>f.value.darkMode,R=>{document.documentElement.classList.toggle("dark",R)},{immediate:!0}),ft(()=>{window.addEventListener("keydown",E)}),Er(()=>{window.removeEventListener("keydown",E)});const E=R=>{R.key==="ArrowRight"?v():R.key==="ArrowLeft"&&x()},w=async()=>{try{await i(t.value.eid,2),je(s.value?"已收藏":"已取消收藏")}catch{je("操作失败,请稍后重试",{type:"error"})}},T=async()=>{try{await o(t.value.eid)}catch{je("操作失败,请稍后重试",{type:"error"})}}
137,C=F(()=>[{icon:"mdi-chart-bar",color:void 0,text:"榜单",onClick:()=>u.push(c(`nvl_${t.value?.cid}/week/`))},{icon:s.value?"ph:star-fill":"ph:star-duotone",color:s.value?"warning":void 0,text:"收藏",onClick:w},{icon:r.value?"ph:thumbs-up-fill":"ph:thumbs-up-duotone",color:r.value?"primary":void 0,text:"点赞",onClick:T},{icon:"ph:gear-six-duotone",text:"阅读设置",onClick:()=>_.value=!0}]),I=F(()=>{const R=Is("nvl")?.find(D=>D.id===t.value?.cid);return It().list("nvl",{cid:R?.id})}),k=F(()=>(n.value||[]).map(R=>({...R,id:R.eid,time:R.time*1e3}))),$=F(()=>Is("nvl").find(R=>R.id===t.value?.cid));return(R,D)=>{const O=kl,B=X$,U=Ys,N=Ll;return P(),q(N,{type:"nvl"},{default:A(()=>[S($e,{ref_key:"titleRef",ref:g,class:"mb-2 rounded-md"},{default:A(()=>[S(We,{class:"text-center pb-2"},{default:A(()=>[L("h1",Ywe,Z(b(t).title),1),L("div",Xwe,[z(" 分类: "+Z(b($)?.name)+" ",1),(P(!0),j(se,null,Fe(b(t).tags,V=>(P(),q(kt,{key:V,size:"small",color:"primary",variant:"flat"},{default:A(()=>[z(Z(V),1)]),_:2},1024))),128))])]),_:1}),S(zt),S(O,{page:"index",place:"text2"}),S($e,{class:"mb-2 mt-2 rounded-none border-none"},{default:A(()=>[S(We,{class:"py-6 px-3 md:px-8",style:Qe({fontSize:`${b(f).fontSize}px`,lineHeight:b(f).lineHeight,fontFamily:b(f).fontFamily})},{default:A(()=>[(P(!0),j(se,null,Fe(b(m),(V,H)=>(P(),j("p",{key:H,class:"mb-4"},Z(V),1))),128))]),_:1},8,["style"]),S(zt),L("div",Zwe,[(P(!0),j(se,null,Fe(b(C),(V,H)=>(P(),q(ce,{key:H,color:V.color,variant:"text",stacked:"",onClick:V.onClick},{default:A(()=>[S(de,{icon:V.icon,size:"24",class:"mb-1"},null,8,["icon"]),L("span",Jwe,Z(V.text),1)]),_:2},1032,["color","onClick"]))),128))])]),_:1}),L("div",Qwe,[L("div",eTe,[S(ce,{disabled:b(d)===1,variant:"tonal",onClick:x},{default:A(()=>[S(de,{icon:"ph:caret-left-bold",class:"mr-2"}),D[1]||(D[1]=z(" 上一页 ",-1))]),_:1},8,["disabled"]),L("div",tTe,[L("span",nTe,Z(b(d)),1),D[2]||(D[2]=L("span",{class:"mx-2"},"/",-1)),L("span",null,Z(b(p)),1)]),S(ce,{disabled:b(d)===b(p),variant:"tonal",onClick:v},{default:A(()=>[D[3]||(D[3]=z(" 下一页 ",-1)),S(de,{icon:"ph:caret-right-bold",class:"ml-2"})]),_:1},8,["disabled"])])]),S(B,{ref:"readerSettingsRef",modelValue:b(_),"onUpdate:modelValue":D[0]||(D[0]=V=>Ce(_)?_.value=V:null)},null,8,["modelValue"])]),_:1},512),b(n)?.length?(P(),q($e,{key:0,class:"mt-4 rounded-md mx-2"},{default:A(()=>[S(at,{class:"flex text-h6 py-4"},{default:A(()=>[D[5]||(D[5]=z(" 相关推荐 ",-1)),S(Mt),S(ce,{to:b(I),variant:"plain"},{default:A(()=>[...D[4]||(D[4]=[z(" 更多 » ",-1)])]),_:1},8,["to"])]),_:1}),S(zt),S(We,{class:"py-4"},{default:A(()=>[S(U,{type:"nvl",items:b(k),"pc-cols":2,"mobile-cols":1,skeleton:!1},null,8,["items"])]),_:1})]),_:1})):te("",!0)]),_:1})}}}),sTe=vt(rTe,[["__scopeId","data-v-03f609cc"]]),Z$=Object.freeze(Object.defineProperty({__proto__:null,default:sTe},Symbol.toStringTag,{value:"Module"})),iTe={class:"text-2xl md:text-3xl font-bold mb-1 mt-2"},oTe={class:"flex flex-wrap gap-2 justify-center mb-2"},aTe={class:"flex flex-wrap gap-2 justify-center mb-2"},lTe={key:1,class:"flex items-center justify-center gap-4 mt-4"},uTe={class:"text-center"},cTe={class:"text-primary font-bold"},dTe={class:"image-viewer"},fTe={class:"image-counter"},hTe=["src"],pTe=ke({__name:"pic_detail",setup(e){const{detail:t,relatedList:n}=Il("pic"),{isLiked:r,isFaved:s,toggleFavorite:i,toggleLike:o}=a0(),a=Tt(),{html:l}=It(),u=F(()=>({imagesPerPage:t.value?.arg?.search(/mh/i)>-1?99999:5,preloadPages:2})),c=F(()=>{const ee=[],ae=t.value?.pics||[];for(let ue=0;ue<ae.length;ue+=u.value.imagesPerPage)ee.push(ae.slice(ue,ue+u.value.imagesPerPage));return ee}),d=ee=>{const ae=[];for(let ue=0;ue<u.value.preloadPages;ue++){const Ee=ee+ue+1;Ee<c.value.length&&ae.push(...c.value[Ee])}ae.forEach(ue=>{const Ee=new Image;Ee.src="../"+ue+(t.value?.arg||"")})},f=M(0);ft(()=>{const ee=new URLSearchParams(window.location.search),ae=parseInt(ee.get("page")||"1");ae>1&&(f.value=ae-1)}),be(f,ee=>{d(ee),x();const ae=new URL(window.location.href);ae.searchParams.set("page",String(ee+1)),window.history.replaceState({},"",ae)});const h=M(0),p=()=>{f.value<c.value.length-1&&(f.value++,h.value=0)},m=()=>{f.value>0&&(f.value--,h.value=0)};be(f,ee=>{d(ee),x()});const v=M(null),x=()=>{try{v.value?.$el.scrollIntoView()}catch(ee){console.error("滚动到顶部失败:",ee)}},g=M(0),y=ee=>{g.value=N.value.findIndex(ue=>ue===ee);const ae=W(ee);ae&&(R.value=ae,k.value=!0,$.value=1)},_=async()=>
137{if(g.value<N.value.length-1){g.value++;const ee=N.value[g.value],ae=W(ee);ae&&(R.value=ae,$.value=1)}else if(f.value<c.value.length-1){f.value++,g.value=0,await tt();const ee=c.value[f.value][0];await new Promise(ae=>{const ue=()=>{const Ee=W(ee);Ee?(R.value=Ee,$.value=1,ae(!0)):setTimeout(ue,100)};ue()})}},E=async()=>{if(g.value>0){g.value--;const ee=N.value[g.value],ae=W(ee);ae&&(R.value=ae,$.value=1)}else if(f.value>0){f.value--,await tt();const ee=c.value[f.value];g.value=ee.length-1;const ae=ee[g.value];await new Promise(ue=>{const Ee=()=>{const _e=W(ae);_e?(R.value=_e,$.value=1,ue(!0)):setTimeout(Ee,100)};Ee()})}},w=async()=>{try{await i(t.value?.eid,3),je(s.value?"已收藏":"已取消收藏")}catch{je("操作失败,请稍后重试",{type:"error"})}},T=async()=>{try{await o(t.value?.eid)}catch{je("操作失败,请稍后重试",{type:"error"})}},C=F(()=>[{icon:"mdi-chart-bar",color:void 0,text:"榜单",onClick:()=>a.push(l(`pic_${t.value?.cid}/week/`))},{icon:s.value?"ph:star-fill":"ph:star-duotone",color:s.value?"warning":void 0,text:"收藏",onClick:w},{icon:r.value?"ph:thumbs-up-fill":"ph:thumbs-up-duotone",color:r.value?"primary":void 0,text:"点赞",onClick:T}]),I=F(()=>(n.value||[]).map(ee=>({...ee,cover:"../"+ee.cover,id:ee.eid,time:ee.time*1e3}))),k=M(!1),$=M(1),R=M(""),D=M(!0);let O=null;const B=()=>{O&&clearTimeout(O),D.value=!0,O=setTimeout(()=>{D.value=!1},2e3)};be(k,ee=>{ee?B():O&&clearTimeout(O)});const U=M(new Map),N=F(()=>c.value[f.value]||[]),V=M(!0),H=M(0),re=(ee,ae)=>{ee.status==="success"&&(U.value.set(ae,ee.src),H.value++,V.value&&H.value>0&&(V.value=!1))};be(f,()=>{V.value=!0,H.value=0});const W=ee=>U.value.get(ee)||"",X=()=>{$.value=Math.min($.value+.2,3)},Q=()=>{$.value=Math.max($.value-.2,.5)},le=F(()=>t.value?.pics?.length||0),ve=F(()=>f.value*u.value.imagesPerPage+g.value+1),oe=F(()=>{const ee=Is("pic").find(ae=>ae.id===t.value?.cid);return It().list("pic",{cid:ee?.id})}),K=F(()=>Is("pic").find(ee=>ee.id===t.value?.cid));return(ee,ae)=>{const ue=kl,Ee=An,_e=sw,J=Ll;return P(),q(J,{type:"pic"},{default:A(()=>[S(dn,{class:"pt-0 pb-4 px-0 md:px-4 mx-auto"},{default:A(()=>[S($e,{ref_key:"titleRef",ref:v,class:"mb-2 rounded-none"},{default:A(()=>[S(We,{class:"text-center pb-2"},{default:A(()=>[L("h1",iTe,Z(b(t).title),1),L("div",oTe,[(P(!0),j(se,null,Fe(b(t).tags,Y=>(P(),q(kt,{key:Y,size:"small",color:"primary",variant:"flat"},{default:A(()=>[z(Z(Y),1)]),_:2},1024))),128)),L("div",aTe,[z(" 分类: "+Z(b(K)?.name)+" ",1),(P(!0),j(se,null,Fe(b(t).tags,Y=>(P(),q(kt,{key:Y,size:"small",color:"primary",variant:"flat"},{default:A(()=>[z(Z(Y),1)]),_:2},1024))),128))])])]),_:1}),S(ue,{page:"index",place:"text2"}),S($e,{class:"mb-2 mt-0 rounded-none"},{default:A(()=>[S(We,{class:"pb-6 px-0 md:px-0 pt-0"},{default:A(()=>[b(V)?(P(),q(Hs,{key:0,type:"image",class:"w-full h-full absolute top-0 left-0 opacity-30","aspect-ratio":1.5})):te("",!0),(P(!0),j(se,null,Fe(b(N),(Y,fe)=>(P(),j("div",{key:fe,class:"image-item"},[S(Ee,{src:"../"+Y+(b(t).arg||""),class:"w-full min-h-40 cursor-pointer",cover:"",encoded:"1",skeleton:!0,onLoad:xe=>re(xe,Y),onClick:xe=>y(Y)},{placeholder:A(()=>[S(Hs,{type:"image","aspect-ratio":1.5})]),_:1},8,["src","onLoad","onClick"])]))),128)),S(zt),S(mn,{class:"py-2 px-4 flex justify-center gap-4"},{default:A(()=>[(P(!0),j(se,null,Fe(b(C),(Y,fe)=>(P(),q(ce,{key:fe,color:Y.color,variant:"text","prepend-icon":Y.icon,stacked:"",onClick:Y.onClick},{default:A(()=>[z(Z(Y.text),1)]),_:2},1032,["color","prepend-icon","onClick"]))),128))]),_:1}),b(c).length>1?(P(),j("div",lTe,[S(ce,{variant:"tonal",disabled:b(f)===0,"prepend-icon":"ph:caret-left-bold",onClick:m},{default:A(()=>[...ae[3]||(ae[3]=[z(" 上一页 ",-1)])]),_:1},8,["disabled"]),L("div",uTe,[L("span",cTe,Z(b(f)+1),1),ae[4]||(ae[4]=L("span",{class:"mx-2"},"/",-1)),L("span",null,Z(b(c).length),1)]),S(ce,{variant:"tonal",disabled:b(f)===b(c).length-1,"append-icon":"ph:caret-right-bold",onClick:p},{default:A(()=>[...ae[5]||(ae[5]=[z(" 下一页 ",-1)])]),_:1},8,["disabled"])])):te("",!0)]),_:1})]),_:1})]),_:1},512),S(Gt,{modelValue:b(k),"onUpdate:modelValue":ae[2]||(ae[2]=Y=>Ce(k)?k.value=Y:null),fullscreen:"",scrim:!0,transition:"dialog-bottom-transition"},{default:A(()=>[L("div",dTe,[L("div",{class:Ie(["viewer-toolbar",{"toolbar-hidden":!b(D)}]),onMouseenter:B},[L("div",fTe,Z(b(ve))+" / "+Z(b(le)),1),S(ce,{icon:"ph:minus",onClick:Q}),S(ce,{icon:"ph:plus",onClick:X}),S(ce,{icon:"ph:x",onClick:ae[0]||(ae[0]=Y=>k.value=!1)})],34),L("div",{class:"viewer-content",onClick:ae[1]||(ae[1]=Et(Y=>k.value=!1,["self"]))},[pn(S(ce,{class:"viewer-nav-btn viewer-prev-btn",icon:"ph:caret-left-bold",variant:"text",onClick:Et(E,["stop"])},null,512),[[hs,b(g)>0||b(f)>0]]),pn(S(ce,{class:"viewer-nav-btn viewer-next-btn",icon:"ph:caret-right-bold",variant:"text",onClick:Et(_,["stop"])},null,512),[[hs,b(g)<b(N).length-1||b(f)<b(c).length-1]]),L("img",{src:b(R),style:Qe({transform:`scale(${b($)})`}),class:"viewer-image",onClick:Et(B,["stop"])},null,12,hTe)])])]),_:1},8,["modelValue"]),b(n)?.length?(P(),q($e,{key:0,class:"mt-4"},{default:A(()=>[S(at,{class:"flex text-h6 py-4"},{default:A(()=>[ae[7]||(ae[7]=z(" 相关推荐 ",-1)),S(Mt),S(ce,{to:b(oe),variant:"plain"},{default:A(()=>[...ae[6]||(ae[6]=[z(" 更多 » ",-1)])]),_:1},8,["to"])]),_:1}),S(zt),S(We,{class:"py-4"},{default:A(()=>[S(_e,{items:b(I)},null,8,["items"])]),_:1})]),_:1})):te("",!0)]),_:1})]),_:1})}}}),mTe=vt(pTe,[["__scopeId","data-v-3d4e37b2"]]),J$=Object.freeze(Object.defineProperty({__proto__:null,default:mTe},Symbol.toStringTag,{value:"Module"})),vTe={class:"vod-lines"},gTe={class:"player-wrapper relative"},yTe={class:"absolute inset-0 flex items-center justify-center bg-black/50"},xTe={class:"vod-actions flex flex-column justify-center"},bTe={class:"text-sm flex items-center gap-4 mb-2 text-sm opacity-75"},_Te={key:0,class:"flex flex-wrap gap-2 mb-2 items-center"},STe={key:1,class:"mt-4 text-sm opacity-75"},ETe={ref:"postTimelineContainerRef",class:"post-timeline-container"},wTe={key:1,class:"flex justify-center py-2 pb-4 -mt-6"},TTe={class:"flex justify-center mt-2"}
137,CTe=ke({__name:"vod_detail",setup(e){const t=mt("routeParams",{type:"vod",id:""}),n=Fn(),r=F(()=>{const Ye=n.path.match(/\/vod\/([\w]+)\.html$/);return Ye?Ye[1]:t.id}),s=F(()=>vu()),{detail:i,relatedList:o,loadDetail:a}=Il("vod"),{user:l,isLogin:u}=Ct(),{currentRoad:c,currentQuality:d,loadVideoUrl:f,convertPlayUrl:h,roads:p}=q$(),{isFaved:m,isLiked:v,toggleFavorite:x,toggleLike:g}=a0(),{playbackRate:y,settings:_}=n0(),E=M(0),w=M(0),T=M(!1),C=M(!1),I=M(!1),k=M(),$=M(!1),R=M(!1),D=M(!0),O=M(!1),B=M(0),U=M(0),N=di("player-settings",{road:0,quality:0});be([c,d],([Oe,Ye])=>{N.value={road:Oe,quality:Ye}}),be(()=>i.value?.eid,async Oe=>{if(Oe){v.value=!1,O.value=!1;try{U.value=c.value,B.value=d.value,c.value=N.value.road,d.value=N.value.quality,await re()}catch{c.value=0,d.value=0,N.value={road:0,quality:0},await re()}}});const V=async()=>{v.value||await g(i.value?.eid)},H=M(!1),re=async()=>{if(!H.value){H.value=!0;try{const Oe=await f(i.value?.eid);i.value.urls[d.value||0].url=Oe,await k.value?.switchUrl(Oe)}catch(Oe){throw Oe?.error<0?(Oe?.error===-1?(R.value=!0,$.value=!0):Oe?.error===-2?$.value=!0:je.error("视频加载失败,请稍后重试"),Oe):(console.error(`加载失败:${Oe.data||Oe.message}`,Oe),je.error("视频加载失败,请稍后重试"),Oe)}finally{H.value=!1}}},W=()=>l.value?.username?!l.value?.vip||Number(l.value?.vip)<1?($.value=!0,!1):!0:(R.value=!0,!1),X=async Oe=>{const{index:Ye,vip:ot,name:rt,callback:ct}=Oe;if(B.value=d.value,U.value=c.value,!W()){ct(!1);return}d.value=Ye,ct(!0);try{await re()}catch(Se){throw d.value=B.value,c.value=U.value,Se}},Q=async()=>{if(ne.value){const ot=i.value.urls.map((ct,Se)=>({...ct,index:Se})).filter(ct=>ct.vip===0).sort((ct,Se)=>ct.vip-Se.vip);if(ot.length===0){je.error("没有找到普通画质版本");return}const rt=ot[0];await X({index:rt.index,vip:rt.vip,name:rt.name,callback:ct=>{ct||re().catch(()=>{})}});return}if(!W())return;const Oe=i.value.urls.map((ot,rt)=>({...ot,index:rt})).filter(ot=>ot.vip>0).sort((ot,rt)=>rt.vip-ot.vip);if(Oe.length===0){je.error("没有找到高清版本");return}const Ye=Oe[0];await X({index:Ye.index,vip:Ye.vip,name:Ye.name,callback:ot=>{ot||re().catch(()=>{})}})};be(c,async(Oe,Ye)=>{try{await re()}catch{}});const le=async()=>{m.value=await x(i.value.eid)},ve=async()=>{const{copyText:Oe}=Pa(),Ye=`${window.location.href}
138${i.value.title.replace(/#[\S]+/g,"")}`;await Oe(Ye)?(O.value=!0,je.success("分享链接已复制,请手动粘贴给微信/QQ/微博/朋友圈")):je.error("复制失败,请手动复制")},oe=F(()=>(o.value||[]).map(Oe=>({...Oe,type:t.type,cover:Oe.cover,id:Oe.eid||Oe.id,time:Oe.time?Oe.time*1e3:void 0,duration:Oe.duration}))),K=F(()=>It().list("vod",{cid:i.value?.cid})),ee=F(()=>It().list("vod",{cid:i.value?.cid,order:"week"})),ae=F(()=>{if(i.value?.tags?.length)return i.value?.tags;const Oe=i.value?.title.match(/#[\S]+/g);return Oe?Oe.map(Ye=>Ye.slice(1)):[]}),ue=M(!1),Ee=F(()=>p.value.map(Oe=>Oe.name)),_e=Oe=>It().search("vod",{key:Oe}),J=()=>{},Y=Oe=>{},fe=()=>{if(!u.value){$.value=!1,d.value=B.value,c.value=U.value;return}if(l.value?.vip){re().catch(()=>{$.value=!0});return}$.value=!0},xe=()=>{if(!l.value?.vip){$.value=!1,d.value=B.value,c.value=U.value;return}re().catch(()=>{})},ne=F(()=>i.value?.urls[d.value||0]?.vip>0);be([$,R],([Oe,Ye],[ot,rt])=>{k.value?.pause()});const ie=[{title:"相关推荐",order:"relate"},{title:"日榜",order:"click"},{title:"周榜",order:"week"},{title:"月榜",order:"month"}],Le=M(0),we=M({}),Be=M({}),Pe=F(()=>Le.value===0?oe.value||[]:(Be.value[Le.value]||qe(Le.value),Be.value[Le.value]||[])),qe=async Oe=>{const Ye=`tab_${Oe}`;if(!(Be.value[Oe]||we.value[Ye])){we.value[Ye]=!0;try{if(Oe===0){Be.value[Oe]=oe.value||[];return}const ot=ie[Oe].order,rt=it(),ct=Is("vod").find(Ue=>Ue.id===i.value?.cid),{vodList:Se}=await rt.vod.list({page:1,order:ot,cid:ct?.cid});Be.value[Oe]=Se.map(Ue=>({...Ue,id:Ue.eid,time:Ue.time*1e3}))}catch(ot){console.error(ot)}finally{setTimeout(()=>{we.value[Ye]=!1},300)}}},Me=async Oe=>{Le.value!==Oe&&(Le.value=Oe,Be.value[Oe]||await qe(Oe))},ze=M(void 0),et=Oe=>{const{target:Ye,src:ot,status:rt,type:ct}=Oe;rt==="success"&&Ye&&(ze.value=ot)},pe=F(()=>!l.value?.vip),ge=F(()=>fo("detail").filter(Oe=>Oe.place==="top")[0]?.ads||[]),he=M(-1),ye=F(()=>
138{if(!pe.value)return;he.value<0&&(he.value=Math.round(Math.random()*ge.value.length));const Oe=ge.value[he.value]||!1;return Oe?{img:Oe.img,url:Oe.url}:{}}),me=()=>{he.value=ge.value.length+1},Ne=()=>{W()&&(he.value=ge.value.length+1)};La(()=>{k.value&&k.value.pause(),C.value=!1}),zi(()=>{k.value&&k.value.pause(),C.value=!1}),be(r,async(Oe,Ye)=>{if(!(!Oe||Oe===Ye)){console.log("[vod_detail] 视频ID变化:",Ye,"->",Oe),k.value&&k.value.pause(),C.value=!1,Be.value={},Le.value=0,v.value=!1,O.value=!1;try{await a(Oe)}catch(ot){console.error("加载详情失败:",ot)}}});const Je=F(()=>s.value&&Math.random()>.7);return(Oe,Ye)=>{const ot=An,rt=gs,ct=Hy,Se=r0,Ue=kl,gt=Cd,_t=Gi,gn=Ys,bi=Ll,Dl=Cr,Wi=Uu;return P(),j(se,null,[S(bi,{type:"vod"},{default:A(()=>[S(dn,{class:"mt-1 p-0"},{default:A(()=>[S(ot,{src:"/playpic/"+b(i).cover+"?lg/0",encoded:"1",class:"absolute max-w-0 max-h-0",onLoad:et},null,8,["src"]),S($e,{class:"m-0 mt-0 rounded-none -mt-3"},{default:A(()=>[L("div",vTe,[S(rt,{modelValue:b(c),"onUpdate:modelValue":Ye[0]||(Ye[0]=yn=>Ce(c)?c.value=yn:null),tabs:b(Ee),"tab-width":"auto"},null,8,["modelValue","tabs"])])]),_:1}),L("div",gTe,[b(ye)?.img?(P(),q(ct,{key:0,img:b(ye).img,link:b(ye).url,ratio:16/9,duration:6,"show-countdown":!0,"auto-close":!0,"disable-close":!0,paused:b(R)||b($),onClose:me,onUpgrade:Ne},null,8,["img","link","paused"])):(P(),q(Se,{key:1,ref_key:"playerRef",ref:k,autoplay:!1,src:b(h)(b(i)?.urls[b(d)||0]?.url),poster:b(ze),"quality-list":b(i)?.urls,"current-time":b(E),duration:b(w),loading:b(T),playing:b(C),active:!0,"playback-rate":b(y),controls:b(D),ratio:16/9,"current-quality":b(d)||0,onQualityChange:X,"onUpdate:currentTime":Ye[1]||(Ye[1]=yn=>E.value=yn),"onUpdate:duration":Ye[2]||(Ye[2]=yn=>w.value=yn),"onUpdate:loading":Ye[3]||(Ye[3]=yn=>T.value=yn),"onUpdate:playing":Ye[4]||(Ye[4]=yn=>C.value=yn),onEnded:J,onError:Y,"onUpdate:fullscreen":Ye[5]||(Ye[5]=yn=>I.value=yn),"onUpdate:currentQuality":Ye[6]||(Ye[6]=yn=>d.value=yn)},{error:A(()=>[L("div",yTe,[S(ci,{type:"error",text:"视频加载失败,请稍后重试"})])]),_:1},8,["src","poster","quality-list","current-time","duration","loading","playing","playback-rate","controls","current-quality"]))]),S($e,{class:"mt-2 mx-0 rounded-md"},{default:A(()=>[L("div",xTe,[S(ce,{stacked:"",onClick:le},{default:A(()=>[S(de,{color:b(m)?"primary":void 0,icon:"mdi-heart",class:"mb-1"},null,8,["color"]),L("span",{class:Ie(["text-caption",{"text-primary":b(m)}])},"收藏",2)]),_:1}),S(ce,{stacked:"",onClick:V},{default:A(()=>[S(de,{color:b(v)?"primary":void 0,icon:"mdi-thumb-up",class:"mb-1"},null,8,["color"]),L("span",{class:Ie(["text-caption",{"text-primary":b(v)}])},"点赞",2)]),_:1}),S(ce,{stacked:"",onClick:ve},{default:A(()=>[S(de,{color:b(O)?"primary":void 0,icon:"ph:share-fat-fill",class:"mb-1"},null,8,["color"]),L("span",{class:Ie(["text-caption",{"text-primary":b(O)}])},"分享",2)]),_:1}),S(ce,{to:b(ee),stacked:""},{default:A(()=>[S(de,{icon:"icon-park-solid:ranking-list",class:"mb-1"}),Ye[11]||(Ye[11]=L("span",{class:"text-caption"},"榜单",-1))]),_:1},8,["to"]),S(ce,{stacked:"",onClick:Q},{default:A(()=>[S(de,{color:b(ne)?"primary":void 0,icon:"mdi-crown",class:"mb-1"},null,8,["color"]),L("span",{class:Ie(["text-caption",{"text-primary":b(ne)}])},"高清版",2)]),_:1})])]),_:1}),S($e,{class:"mt-2 mx-0 rounded-md"},{default:A(()=>[S(at,{class:"px-2 mb-0 whitespace-normal opacity-90"},{default:A(()=>[z(Z(b(i)?.title.replace(/#[\S]+/g,"")),1)]),_:1}),S(We,{class:"px-2 mt-0"},{default:A(()=>[L("div",bTe,[L("span",null,Z(("formatNumber"in Oe?Oe.formatNumber:b(Jy))(b(i).clicks))+" 次播放",1),L("span",null,Z(("formatDuration"in Oe?Oe.formatDuration:b(nw))(b(i).duration))+" 时长",1)]),b(ae).length?(P(),j("div",_Te,[(P(!0),j(se,null,Fe(b(ue)?b(ae):b(ae).slice(0,5),yn=>(P(),q(kt,{key:yn,size:"small",variant:"outlined",color:"primary",class:"text-caption",to:_e(yn)},{default:A(()=>[z(Z(yn),1)]),_:2},1032,["to"]))),128)),b(ae).length>5?(P(),q(kt,{key:0,size:"small",variant:"tonal",color:"grey",class:"text-caption cursor-pointer",onClick:Ye[7]||(Ye[7]=yn=>ue.value=!b(ue))},{default:A(()=>[z(Z(b(ue)?"收起":`+${b(ae).length-5} 更多`),1)]),_:1})):te("",!0)])):te("",!0),b(i)?.content?(P(),j("div",STe,Z(b(i)?.content),1)):te("",!0)]),_:1})]),_:1}),S(Ue,{"class-name":"mt-2 mb-0",page:"index",place:"text2"}),L("div",ETe,[b(Je)?(P(),q(gt,{key:0,"active-tab":"rand","active-tag":"_","search-text":"",limit:2})):te("",!0),b(Je)?(P(),j("div",wTe,[S(_t,{to:"/html/post",class:"text-primary text-sm underline"},{default:A(()=>[...Ye[12]||(Ye[12]=[z(" 点击进入社区 查看更多帖子 » ",-1)])]),_:1})])):te("",!0)],512),S($e,{class:"mt-2 mx-0 rounded-md"},{default:A(()=>[S(at,{class:"flex items-center py-2"},{default:A(()=>[S(rt,{modelValue:b(Le),"onUpdate:modelValue":Ye[8]||(Ye[8]=yn=>
138Ce(Le)?Le.value=yn:null),tabs:ie.map(yn=>yn.title),loading:b(we),"tab-width":"auto",onTabClick:Me},null,8,["modelValue","tabs","loading"]),S(Mt),S(ce,{to:b(K),variant:"plain"},{default:A(()=>[...Ye[13]||(Ye[13]=[z(" 更多 » ",-1)])]),_:1},8,["to"])]),_:1}),S(zt),S(We,{class:"p-2 bg-transparent"},{default:A(()=>[S(gn,{type:"vod",class:"mx-0 my-2",items:b(Pe),loading:b(we)[`tab_${b(Le)}`],"pc-cols":6,"mobile-cols":2,skeleton:!0},null,8,["items","loading"]),L("div",TTe,[S(ce,{variant:"outlined",size:"small",class:"opacity-60 min-w-50","append-icon":"mdi-more",to:b(K)},{default:A(()=>[...Ye[14]||(Ye[14]=[z(" 查看更多 ",-1)])]),_:1},8,["to"])])]),_:1})]),_:1})]),_:1})]),_:1}),b(R)?(P(),q(Dl,{key:0,modelValue:b(R),"onUpdate:modelValue":Ye[9]||(Ye[9]=yn=>Ce(R)?R.value=yn:null),"initial-mode":"register",onClose:fe},null,8,["modelValue"])):b($)?(P(),q(Wi,{key:1,modelValue:b($),"onUpdate:modelValue":Ye[10]||(Ye[10]=yn=>Ce($)?$.value=yn:null),onClose:xe},null,8,["modelValue"])):te("",!0)],64)}}}),ATe=vt(CTe,[["__scopeId","data-v-e5fbce10"]]),Q$=Object.freeze(Object.defineProperty({__proto__:null,default:ATe},Symbol.toStringTag,{value:"Module"})),kTe=He({...At(),...ps(tJ(),["fullHeight"]),...Dn()},"VApp"),eM=nt()({name:"VApp",props:kTe(),setup(e,t){let{slots:n}=t;const r=ir(e),{layoutClasses:s,getLayoutItem:i,items:o,layoutRef:a}=sJ({...e,fullHeight:!0}),{rtlClasses:l}=Jr();return ut(()=>L("div",{ref:a,class:Ie(["v-application",r.themeClasses.value,s.value,l.value,e.class]),style:Qe([e.style])},[L("div",{class:"v-application__wrap"},[n.default?.()])])),{getLayoutItem:i,items:o,theme:r}}}),ITe=He({app:Boolean,appear:Boolean,extended:Boolean,layout:Boolean,offset:Boolean,modelValue:{type:Boolean,default:!0},...ps(uy({active:!0}),["location","spaced"]),...fS(),...Fu(),...Bu({transition:"fab-transition"})},"VFab"),LTe=nt()({name:"VFab",props:ITe(),emits:{"update:modelValue":e=>!0},setup(e,t){let{slots:n}=t;const r=Qt(e,"modelValue"),s=Ze(56),i=M(),{resizeRef:o}=Ia(d=>{d.length&&(s.value=d[0].target.clientHeight)}),a=Ae(()=>e.app||e.absolute),l=F(()=>a.value?e.location?.split(" ").shift()??"bottom":!1),u=F(()=>a.value?e.location?.split(" ")[1]??"end":!1);jo(()=>e.app,()=>{const d=hS({id:e.name,order:F(()=>parseInt(e.order,10)),position:l,layoutSize:F(()=>e.layout?s.value+24:0),elementSize:F(()=>s.value+24),active:F(()=>e.app&&r.value),absolute:Ae(()=>e.absolute)});zn(()=>{i.value=d.layoutItemStyles.value})});const c=M();return ut(()=>{const d=ce.filterProps(e);return L("div",{ref:c,class:Ie(["v-fab",{"v-fab--absolute":e.absolute,"v-fab--app":!!e.app,"v-fab--extended":e.extended,"v-fab--offset":e.offset,[`v-fab--${l.value}`]:a.value,[`v-fab--${u.value}`]:a.value},e.class]),style:Qe([e.app?{...i.value}:{height:e.absolute?"100%":"inherit"},e.style])},[L("div",{class:"v-fab__container"},[S(io,{appear:e.appear,transition:e.transition},{default:()=>[pn(S(ce,Ve({ref:o},d,{active:void 0,location:void 0}),n),[[hs,e.active]])]})])])}),{}}}),DTe=He({scrollable:Boolean,...At(),...ms(),...rn({tag:"main"})},"VMain"),tM=nt()({name:"VMain",props:DTe(),setup(e,t){let{slots:n}=t;const{dimensionStyles:r}=vs(e),{mainStyles:s}=nJ(),{ssrBootStyles:i}=Nh();return ut(()=>S(e.tag,{class:Ie(["v-main",{"v-main--scrollable":e.scrollable},e.class]),style:Qe([s.value,i.value,r.value,e.style])},{default:()=>[e.scrollable?L("div",{class:"v-main__scroller"},[n.default?.()]):n.default?.()]})),{}}});function Jc(e){const t=M(e.initialIndex||0);return{getUrl:s=>C_(e.cdns[t.value],s),handleError:()=>t.value<e.cdns.length-1?(t.value++,e.onError?.(),!0):!1,currentIndex:t}}const PTe={class:"text-2xl md:text-3xl font-bold mb-1 mt-2"},RTe={class:"flex flex-wrap gap-2 justify-center mb-2"},OTe={class:"grid grid-cols-1 md:grid-cols-12 gap-4"},$Te={class:"md:col-span-8"},MTe={class:"md:col-span-4 text-lg"},FTe={class:"mb-2"},BTe={class:"mb-2"},NTe={class:"mb-2"},VTe={class:"mb-2"},UTe={class:"mb-2"},jTe={key:0,class:"mb-2"},zTe={class:"grid grid-cols-1 md:grid-cols-2 gap-4"},HTe={class:"flex items-center justify-between"},GTe={class:"min-w-0 flex-1"},KTe={class:"font-bold truncate"},WTe={class:"text-sm text-gray-500"},qTe=["onClick"],YTe=["src"],XTe=ke({__name:"down_detail",setup(e){const{detail:t,relatedList:n}=Il("down"),{getUrl:r,handleError:s}=Jc({cdns:On().down.pic,onError:()=>{}}),i=w=>{const T=Math.floor(w/3600),C=Math.floor(w%3600/60);return`${T}小时${C}分钟`},o=w=>new Date(w*1e3).toLocaleDateString("zh-CN"),a=w=>r(w.img),l=(w,T)=>{if(w.startsWith("magnet:?")){const C=encodeURIComponent(`${T}_${wr()?.host301}`);
138return w.includes("&dn=")?w.replace(/([&?]dn=)[^&]*/,`$1${C}`):w+`&dn=${C}`}try{const C=new URL(w);return C.searchParams.set("dn",`${T}_${wr()?.host301}`),C.toString()}catch{return w}},u=(w,T)=>It().search(w,{key:T}),c=M(!1),d=M(""),f=M("grid"),h=w=>{d.value=w,c.value=!0},p=()=>{f.value=f.value==="grid"?"list":"grid"},m=[{title:"相关推荐",order:"relate"},{title:"周榜",order:"week"},{title:"月榜",order:"month"},{title:"年榜",order:"year"}],v=M(0),x=M({}),g=M({}),y=F(()=>{const w="ontouchstart"in window?100:18;return v.value===0?(n.value||[]).slice(0,w):(g.value[v.value]||_(v.value),(g.value[v.value]||[]).slice(0,w))}),_=async w=>{const T=`tab_${w}`;if(!(g.value[w]||x.value[T])){x.value[T]=!0;try{if(w===0){g.value[w]=n.value||[];return}const C=m[w].order,I=it(),{list:k}=await I.down.list({page:1,order:C});g.value[w]=k}catch(C){console.error(C)}finally{setTimeout(()=>{x.value[T]=!1},300)}}},E=async w=>{v.value!==w&&(v.value=w,g.value[w]||await _(w))};return ft(()=>{}),(w,T)=>{const C=Gi,I=gs,k=Ys,$=Ll;return P(),q($,{type:"down"},{default:A(()=>[S(dn,{class:"pt-0 pb-4 px-0 mx-auto"},{default:A(()=>[S($e,{ref:"titleRef",class:"mb-2 rounded-none"},{default:A(()=>[S(We,{class:"text-center pb-2"},{default:A(()=>[L("h1",PTe,Z(b(t).title),1),L("div",RTe,[(P(!0),j(se,null,Fe(b(t).cates,R=>(P(),q(kt,{key:R,size:"small",color:"primary",variant:"flat",to:u("down",R),class:"cursor-pointer"},{default:A(()=>[z(Z(R),1)]),_:2},1032,["to"]))),128))])]),_:1})]),_:1},512),S($e,{class:"mb-2 rounded-none"},{default:A(()=>[S(We,null,{default:A(()=>[L("div",OTe,[L("div",$Te,[S(Xr,{src:a(b(t)),class:"rounded-lg w-full",cover:"","aspect-ratio":"3/4",onError:b(s)},null,8,["src","onError"])]),L("div",MTe,[L("p",FTe,[T[3]||(T[3]=L("span",{class:"font-bold"},"番号:",-1)),z(Z(b(t).eid),1)]),L("p",BTe,[T[4]||(T[4]=L("span",{class:"font-bold"},"制作商:",-1)),S(C,{to:u("down",b(t).maker),class:"text-primary hover:underline"},{default:A(()=>[z(Z(b(t).maker),1)]),_:1},8,["to"])]),L("p",NTe,[T[5]||(T[5]=L("span",{class:"font-bold"},"系列:",-1)),S(C,{to:u("down",b(t).series),class:"text-primary hover:underline"},{default:A(()=>[z(Z(b(t).series),1)]),_:1},8,["to"])]),L("p",VTe,[T[6]||(T[6]=L("span",{class:"font-bold"},"发布日期:",-1)),z(Z(o(b(t).pubedat)),1)]),L("p",UTe,[T[7]||(T[7]=L("span",{class:"font-bold"},"时长:",-1)),z(Z(i(b(t).duration)),1)]),b(t)?.actors.length>0?(P(),j("p",jTe,[T[8]||(T[8]=L("span",{class:"font-bold"},"演员:",-1)),(P(!0),j(se,null,Fe(b(t)?.actors||[],R=>(P(),q(kt,{key:R,size:"small",variant:"flat",to:u("actor",R),class:"cursor-pointer mr-1"},{default:A(()=>[R?(P(),j(se,{key:0},[z(Z(R),1)],64)):te("",!0)]),_:2},1032,["to"]))),128))])):te("",!0)])])]),_:1})]),_:1}),S($e,{class:"mb-2 rounded-none"},{default:A(()=>[S(at,null,{default:A(()=>[...T[9]||(T[9]=[z("下载链接",-1)])]),_:1}),S(b(zt)),S(We,null,{default:A(()=>[L("div",zTe,[(P(!0),j(se,null,Fe(b(t).downs,(R,D)=>(P(),j("div",{key:D,class:"p-4 border rounded-lg"},[L("div",HTe,[L("div",GTe,[L("p",KTe,Z(R.name),1),L("p",WTe,[z(Z(R.size)+" | "+Z(R.date)+" ",1),R.hd?(P(),q(kt,{key:0,size:"small",color:"success",class:"ml-2"},{default:A(()=>[...T[10]||(T[10]=[z(" HD ",-1)])]),_:1})):te("",!0),R.sub?(P(),q(kt,{key:1,size:"small",color:"warning",class:"ml-2"},{default:A(()=>[...T[11]||(T[11]=[z(" 字幕 ",-1)])]),_:1})):te("",!0)])]),S(ce,{color:"primary",href:l(R.url,b(t).title),target:"_blank",class:"ml-4 flex-shrink-0"},{default:A(()=>[...T[12]||(T[12]=[z(" 下载 ",-1)])]),_:1},8,["href"])])]))),128))])]),_:1})]),_:1}),b(t).shots?.length>0?(P(),q($e,{key:0,class:"mb-2 rounded-none"},{default:A(()=>[S(at,{class:"flex items-center justify-between"},{default:A(()=>[T[13]||(T[13]=L("span",null,"预览图",-1)),S(ce,{icon:"",variant:"text",onClick:p},{default:A(()=>[S(de,null,{default:A(()=>[z(Z(b(f)==="grid"?"mdi-view-grid-outline":"mdi-view-list-outline"),1)]),_:1})]),_:1})]),_:1}),S(b(zt)),S(We,null,{default:A(()=>[L("div",{class:Ie([b(f)==="grid"?"grid grid-cols-2 md:grid-cols-6 gap-2":"grid grid-cols-1 md:grid-cols-4 gap-4"])},[(P(!0),j(se,null,Fe(b(t).shots,(R,D)=>(P(),j("div",{key:D,class:"cursor-pointer",onClick:O=>h(R.url)},[S(Xr,{src:a({img:R.url}),alt:`预览图 ${D+1}`,class:Ie(["rounded-lg transition-all duration-300",[b(f)==="grid"?"aspect-square":"aspect-[16/9]"]]),cover:b(f)==="grid",contain:b(f)!=="grid",onError:b(s)},null,8,["src","alt","class","cover","contain","onError"])],8,qTe))),128))],2)]),_:1})]),_:1})):te("",!0),S($e,{class:"mb-2 rounded-none"},{default:A(()=>[S(at,{class:"flex items-center py-2"},{default:A(()=>[S(I,{modelValue:b(v),"onUpdate:modelValue":T[0]||(T[0]=R=>Ce(v)?v.value=R:null),tabs:m.map(R=>R.title),loading:b(x),"tab-width":"auto",onTabClick:E},null,8,["modelValue","tabs","loading"])]),_:1}),S(b(zt)),S(We,{class:"p-2 bg-transparent"},{default:A(()=>[S(k,{type:"down",class:"mx-0 my-2",items:b(y),loading:b(x)[`tab_${b(v)}`],"pc-cols":6,"mobile-cols":2,skeleton:!0},null,8,["items","loading"])]),_:1})]),_:1})]),_:1}),S(Gt,{modelValue:b(c),"onUpdate:modelValue":T[2]||(T[2]=R=>Ce(c)?c.value=R:null),"max-width":"90vw","max-height":"90vh"},{default:A(()=>[S($e,null,{default:A(()=>[S(at,{class:"flex items-center justify-between"},{default:A(()=>[T[15]||(T[15]=L("span",null,"预览图",-1)),S(ce,{color:"primary",variant:"text",onClick:T[1]||(T[1]=R=>c.value=!1)},{default:A(()=>[...T[14]||(T[14]=[z(" 关闭 ",-1)])]),_:1})]),_:1}),S(We,{class:"p-2"},{default:A(()=>[L("img",{src:b(d)},null,8,YTe)]),_:1})]),_:1})]),_:1},8,["modelValue"])]),_:1})}}}),ZTe=vt(XTe,[["__scopeId","data-v-dd5a8ad5"]]),nM=Object.freeze(Object.defineProperty({__proto__:null,default:ZTe},Symbol.toStringTag,{value:"Module"})),JTe={class:"mx-auto px-0"},QTe={key:0},eCe={key:1,class:"text-center text-red-500 py-8"},tCe={key:2},nCe={ref:"timelineListRef"}
138,rCe=ke({__name:"post_detail",setup(e){const t=mt("routeParams",{id:""}),n=F(()=>t.id),r=M(null),s=M(!0),i=M(""),{tabs:o,activeTab:a,sortMenu:l,searchMenu:u,searchText:c,searchScope:d,activeTag:f,handleSelectSort:h,handleDoSearch:p}=X5({tab:"rand"}),{post:m}=it(),{addHistory:v}=zy(),x=It();async function g(){s.value=!0,i.value="";try{const E=await m.detail({id:n.value});if(r.value=E,E?.post?.id){const w=E.post?.content?E.post.content.length>50?`${E.post.content.substring(0,50)}...`:E.post.content:"无标题";v("post",{eid:E.post.id,title:w,url:x.detail("thread",E.post.id)})}}catch{i.value="加载失败"}finally{s.value=!1}}function y(E){r.value&&(r.value={...r.value,post:{...r.value.post,...E}})}function _(E){p({text:E,scope:d.value})}return ft(()=>{g()}),(E,w)=>{const T=bd,C=gy,I=i0,k=kl,$=lw,R=Qy,D=Cd,O=Xs;return P(),j(se,null,[S(T,{page:"post"}),L("div",JTe,[b(s)?(P(),j("div",QTe,[S(C)])):b(i)?(P(),j("div",eCe,Z(b(i)),1)):b(r)?(P(),j("div",tCe,[S(I,{user:b(r).user,post:b(r).post,"show-reply":!0,"is-detail":!0,onPostUpdated:y},null,8,["user","post"])])):te("",!0)]),S(k,{page:"index",place:"text2"}),b(r)?(P(),j(se,{key:0},[S($e,{class:"my-2 rounded-none pr-0"},{default:A(()=>[S($,{size:10})]),_:1}),S($e,{class:"rounded-none py-2"},{default:A(()=>[S(at,null,{default:A(()=>[...w[3]||(w[3]=[z("随机推荐",-1)])]),_:1})]),_:1}),S(R,{"search-text":b(c),"onUpdate:searchText":w[0]||(w[0]=B=>Ce(c)?c.value=B:null),"active-tab":b(a),"active-tag":b(f),tabs:b(o),"sort-menu":b(l),"search-menu":b(u),"onUpdate:sortMenu":w[1]||(w[1]=B=>l.value=B),"onUpdate:searchMenu":w[2]||(w[2]=B=>u.value=B),onSelectSort:b(h),onSearch:_},null,8,["search-text","active-tab","active-tag","tabs","sort-menu","search-menu","onSelectSort"]),L("div",nCe,[S(D,{"active-tab":b(a),"active-tag":b(f),"search-text":b(c),"search-scope":b(d),"is-location":!1,immediate:!0},null,8,["active-tab","active-tag","search-text","search-scope"])],512)],64)):te("",!0),S(O)],64)}}}),rM=Object.freeze(Object.defineProperty({__proto__:null,default:rCe},Symbol.toStringTag,{value:"Module"})),sCe={class:"columns-2 md:columns-2 lg:columns-5 gap-4"},iCe={class:"break-inside-avoid mb-4 p-3"},oCe={class:"mt-2 p-2 rounded-lg"},aCe={class:"text-sm font-bold"},lCe={class:"text-xs mt-1"},uCe=["innerHTML"],cCe=["onClick"],dCe={class:"text-sm font-medium line-clamp-2"},fCe={class:"text-xs mt-1 text-gray-500 flex items-center gap-2"},hCe={key:0,class:"text-green-500"},pCe={key:1,class:"text-red-500"},mCe={class:"text-xs text-gray-500 mt-1"},vCe={key:0,class:"pagination-pc py-4"},gCe={key:1,class:"pagination-mobile py-4 my-2 rounded-md"},yCe={class:"grid grid-cols-4 gap-2 justify-between items-center px-0 py-3"},xCe=["disabled"],bCe=["disabled"],_Ce=["value"],SCe=["disabled"],ECe=["disabled"],wCe={key:0,class:"loading-icon"},TCe=ke({__name:"actor_detail",setup(e){const t=Tt(),n=Fn(),{detail:r,relatedList:s,loadDetail:i,loading:o}=Il("actor"),{getUrl:a,handleError:l}=Jc({cdns:On().actor.pic,onError:()=>{}}),{getUrl:u,handleError:c}=Jc({cdns:On().down.pic,onError:()=>{}}),d=M(Number(n.query.page)||1),f=M(wt().$device.isMobile()),h=F(()=>Math.ceil((r.value?.vods||0)/(r.value?.size||20)));be(()=>n.query.page,async R=>{d.value=Number(R)||1,await i(r.value.id)});const p=R=>{t.push({query:{...n.query,page:R.toString()}}),window.scrollTo({top:0,behavior:"smooth"})},m=R=>a(R.avatar),v=R=>R.img?R.img.search(/^https?:/ig)>-1?R.img:u(R.img+"?sm"):R.shots?.[0]?.url,x=F(()=>(r.value?.info||"").replace(/[\n\r]+/ig,"<br>")),g=R=>{const D=Math.floor(R/60),O=Math.floor(D/60);return O>0?`${String(O).padStart(2,"0")}:${String(D%60).padStart(2,"0")}:${String(R%60).padStart(2,"0")}`:`${D}:${String(R%60).padStart(2,"0")}`},y=R=>{const D=R.value||R;return It().detail("down",D?.id||D?.eid||D?.param)},_=R=>{const D=y(R);return t.push(D)},E=[{title:"相关推荐",order:"relate"},{title:"周榜",order:"week"},{title:"月榜",order:"month"},{title:"年榜",order:"year"}],w=M(0),T=M({}),C=M({}),I=F(()=>w.value===0?s.value||[]:(C.value[w.value]||k(w.value),C.value[w.value]||[])),k=async R=>{const D=`tab_${R}`;if(!(C.value[R]||T.value[D])){T.value[D]=!0;try{if(R===0){C.value[R]=r.value?.list||[];return}const O=E[R].order,B=it(),{list:U}=await B.actor.list({page:1,order:O});C.value[R]=U}catch(O){console.error(O)}finally{setTimeout(()=>{T.value[D]=!1},300)}}},$=async R=>{w.value!==R&&(w.value=R,C.value[R]||await k(R))};return(R,D)=>{const O=gs,B=Ys,U=Ll;return P(),q(U,{type:"actor"},{default:A(()=>[S($e,{class:"p-0 rounded-none"},{default:A(()=>[S(at,null,{default:A(()=>[z(Z(b(r)?.name)+" 作品列表",1)]),_:1}),S(zt),S(We,{class:"md:p-0"},{default:A(()=>[L("div",sCe,[L("div",iCe,[S(Xr,{src:m(b(r)),"aspect-ratio":1,class:"rounded-full",cover:"",onError:b(l)},null,8,["src","onError"]),L("div",oCe,[L("div",aCe,Z(b(r)?.name),1),L("div",lCe,[z(" 作品:"+Z(b(r).vods||0)+" ",1),b(r)?.info?(P(),j("div",{key:0,innerHTML:b(x)},null,8,uCe)):te("",!0)])])]),(P(!0),j(se,null,Fe(b(r)?.list,N=>(P(),j("div",{key:N.id,class:"break-inside-avoid mb-4"},[S(Xr,{src:`${v(N)}
138`,"aspect-ratio":4/3,class:"rounded-lg cursor-pointer",contain:"",onError:b(c),onClick:V=>_(N)},null,8,["src","onError","onClick"]),L("div",{class:"p-1 rounded-lg",onClick:V=>_(N)},[L("div",dCe,Z(N.title||N.series),1),L("div",fCe,[L("span",null,Z(g(N.duration)),1),N.isdown>0?(P(),j("span",hCe,"可下载")):te("",!0),N.uncensored>0?(P(),j("span",pCe,"无码")):te("",!0)]),L("div",mCe,Z(N.pubed),1)],8,cCe)]))),128))]),b(h)>1?(P(),j(se,{key:0},[b(f)?(P(),j("div",gCe,[L("div",yCe,[L("button",{disabled:b(d)<=1||b(o),class:"pagination-btn",onClick:D[1]||(D[1]=N=>p(b(d)-1))}," 上一页 ",8,xCe),pn(L("select",{"onUpdate:modelValue":D[2]||(D[2]=N=>Ce(d)?d.value=N:null),class:"page-select",disabled:b(o),onChange:D[3]||(D[3]=N=>p(b(d)))},[(P(!0),j(se,null,Fe(b(h),N=>(P(),j("option",{key:N,value:N},Z(N)+"/"+Z(b(h)),9,_Ce))),128))],40,bCe),[[Ch,b(d)]]),L("button",{disabled:b(d)>=b(h)||b(o),class:"pagination-btn",onClick:D[4]||(D[4]=N=>p(b(d)+1))}," 下一页 ",8,SCe),L("button",{class:"pagination-btn random-btn",disabled:b(o),onClick:D[5]||(D[5]=N=>p(Math.floor(Math.random()*b(h))+1))},[b(o)?(P(),j("i",wCe)):te("",!0),D[7]||(D[7]=z(" 随机翻 ",-1))],8,ECe)])])):(P(),j("div",vCe,[S(Qh,{modelValue:b(d),"onUpdate:modelValue":[D[0]||(D[0]=N=>Ce(d)?d.value=N:null),p],length:b(h),"total-visible":8,disabled:b(o)},null,8,["modelValue","length","disabled"])]))],64)):te("",!0),S($e,{class:"mt-2 mx-0 rounded-md px-0"},{default:A(()=>[S(at,{class:"flex items-center py-2 px-0"},{default:A(()=>[S(O,{modelValue:b(w),"onUpdate:modelValue":D[6]||(D[6]=N=>Ce(w)?w.value=N:null),tabs:E.map(N=>N.title),loading:b(T),"tab-width":"auto",onTabClick:$},null,8,["modelValue","tabs","loading"])]),_:1}),S(zt),S(We,{class:"py-2 px-0 bg-transparent"},{default:A(()=>[S(B,{type:"actor",class:"mx-0 my-2",items:b(I),loading:b(T)[`tab_${b(w)}`],"pc-cols":6,"mobile-cols":3,skeleton:!0},null,8,["items","loading"])]),_:1})]),_:1})]),_:1})]),_:1})]),_:1})}}}),sM=Object.freeze(Object.defineProperty({__proto__:null,default:TCe},Symbol.toStringTag,{value:"Module"})),CCe=ke({__name:"ActorCard",props:{item:{},loading:{type:Boolean},target:{}},setup(e){const t=e,{getUrl:n,handleError:r}=Jc({cdns:On().actor.pic,onError:()=>{}}),s=a=>a.avatar?n(a.avatar+"?sm"):"",i=F(()=>t.item||{}),o=F(()=>It().detail("actor",i.value.id||i.value.eid||i.value.param));return(a,l)=>{const u=An;return P(),q($e,Ve({class:"p-0 cursor-pointer rounded-none bg-transparent",to:b(o),tag:"a",target:t.target,rel:"opener"},a.$attrs),{default:A(()=>[S(u,{src:s(b(i)),class:"rounded-full","aspect-ratio":1,encoded2:"1",style:{height:"100px"},center:"",cover:"","no-cdn":!0,transition:!0,"blur-background":!0,onError:b(r)},null,8,["src","onError"]),S(at,{class:"text-sm py-0 px-1 line-clamp-2 whitespace-normal h-10 opacity-90 text-center"},{default:A(()=>[z(Z(b(i).name),1)]),_:1})]),_:1},16,["to","target"])}}}),ACe=Object.freeze(Object.defineProperty({__proto__:null,default:CCe},Symbol.toStringTag,{value:"Module"})),kCe={class:"absolute right-0 bottom-10 p-1 text-xs text-white box-border"},ICe={key:0,class:"absolute left-0 bottom-10 p-1 text-xs text-white box-border"},LCe={key:1,class:"hidden absolute left-0 bottom-10 w-full p-1 text-xs text-white box-border",style:{background:"linear-gradient(0deg, rgba(0,0,0,0.7), transparent)"}},DCe=ke({__name:"VodCardFloat",props:{item:{}},setup(e){const t=e,n=o=>{const a=Math.floor(o/60),l=Math.floor(a/60);return l>0?`${l}:${String(a%60).padStart(2,"0")}:${String(o%60).padStart(2,"0")}`:`${a}:${String(o%60).padStart(2,"0")}`},r=F(()=>n(t.item.duration||0)),s=F(()=>Jy(t.item.allplays||t.item.plays||0)),i=F(()=>{if(t.item?.dateText)return t.item.dateText;if(t.item?.pubed)return t.item.pubed;if(!t.item.time)return"";const o=new Date((t.item.time||t.item.createdat)*1e3),a=String(o.getMonth()+1).padStart(2,"0"),l=String(o.getDate()).padStart(2,"0");return`${a}-${l}`});return(o,a)=>(P(),j(se,null,[L("div",kCe,Z(i.value),1),r.value!="0:00"?(P(),j("div",ICe,Z(r.value),1)):te("",!0),s.value>1e3?(P(),j("div",LCe,Z(s.value)+"播放 ",1)):te("",!0)],64))}}),cw=vt(DCe,[["__scopeId","data-v-196a9690"]]),PCe=Object.freeze(Object.defineProperty({__proto__:null,default:cw},Symbol.toStringTag,{value:"Module"})),RCe=ke({__name:"DownCard",props:{item:{},loading:{type:Boolean},target:{}},setup(e){const t=e,{getUrl:n,handleError:r}=Jc({cdns:On().down.pic,onError:()=>{}}),s=a=>a.img?n(a.img+"?sm"):n(a.shots?.[0]?.url),i=F(()=>t.item||{}),o=F(()=>It().detail("down",i.value.id||i.value.eid||i.value.param));return(a,l)=>{const u=cw,c=An;return P(),q($e,Ve({class:"p-0 cursor-pointer rounded-none bg-transparent",to:b(o),tag:"a",target:t.target,rel:"opener"},a.$attrs),{default:A(()=>[S(u,{item:b(i)},null,8,["item"]),S(c,{src:s(b(i)),class:"rounded-md vod-cover","aspect-ratio":3/4,e2ncoded:"1",center:"",cover:"","no-cdn":!0,transition:!0,"blur-background":!0,onError:b(r)},null,8,["src","onError"]),S(at,{class:"text-sm py-0 px-1 line-clamp-2 whitespace-normal h-10 opacity-90"},{default:A(()=>[z(Z(b(i).title),1)]),_:1})]),_:1},16,["to","target"])}}}),OCe=vt(RCe,[["__scopeId","data-v-a7aea1aa"]]),$Ce=Object.freeze(Object.defineProperty({__proto__:null,default:OCe},Symbol.toStringTag,{value:"Module"})),MCe={class:"level-1-container flex align-center flex-nowrap"},FCe=["onClick"],BCe={key:0,class:"active-indicator"};const NCe={class:"level-2-container border mb-2 mx-1 py-2 -mt-[1px] rounded-md grid grid-cols-5 md:flex md:flex-wrap gap-2",style:{"border-color":"var(--v-theme-variant)"}},VCe=ke({__name:"HeaderMenu",setup(e){const t=u3(),n=M(!1),r=M(0),s=Fn(),i=M(null),o=M([]),a=(p,m)=>{const v=[...Is(p)];if(!v?.length)return null;const x=v.map(g=>({title:g.name,url:It().list(p,{cid:g.id})}));return x.unshift({title:m,url:It().list(p)}),x},l=F(()=>{const p=[...Object.values(t)];let m=!1;try{for(const v of p){for(const x of v)if((x?.url?.search(/\/sj\//ig)||-1)>-1){m=!0;break}if(m)break}if(!m){const v=a("sj","最新短剧");v&&p.splice(p.length,0,v)}}catch(v){console.error("HeaderMenu",v)}return p}),u=F(()=>l.value.map(p=>p[0])),c=p=>{tt(()=>{const m=i.value,v=o.value[p];if(m&&v){const x=m.offsetWidth,g=v.offsetLeft,y=v.offsetWidth,_=g-x/2+y/2;if(Math.abs(m.scrollLeft-_)<10)return;m.scrollTo({left:_,behavior:"smooth"})}})},d=F(()=>
138{if(r.value===null)return[];const p=l.value[r.value];return p?p.slice(1):[]}),f=(p,m)=>{r.value=p,c(p)},h=()=>{const p=s.path;let m=-1;for(let v=0;v<l.value.length;v++)if(l.value[v].some(y=>y.url?p===y.url||y.url!=="/"&&p.startsWith(y.url):!1)){m=v;break}m!==-1?(r.value=m,c(m)):r.value};return be(()=>s.path,()=>{h()},{immediate:!0}),be(l,()=>{h()}),ft(()=>{r.value!==null&&c(r.value)}),_h(()=>{o.value=[]}),(p,m)=>(P(),q($e,{class:"rounded-none header-menu-container",color:"surface"},{default:A(()=>[L("div",MCe,[L("div",{ref_key:"scrollContainer",ref:i,class:"level-1-scroll flex-grow-1 flex flex-nowrap overflow-x-auto no-scrollbar",style:{"flex-wrap":"nowrap","min-width":"0"}},[(P(!0),j(se,null,Fe(b(u),(v,x)=>(P(),j("div",{ref_for:!0,ref:g=>{g&&(b(o)[x]=g)},key:x,class:Ie(["level-1-item px-3 text-sm py-3 cursor-pointer flex-shrink-0",{"font-weight-bold text-variant":b(r)===x,"text-medium-emphasis":b(r)!==x}]),onClick:g=>f(x,v.url)},[z(Z(v.title)+" ",1),b(r)===x?(P(),j("div",BCe)):te("",!0)],10,FCe))),128))],512),te("",!0)]),S(dy,null,{default:A(()=>[pn(L("div",NCe,[(P(!0),j(se,null,Fe(b(d),(v,x)=>(P(),q(ce,Ve({key:x},{ref_for:!0},v.url.search(/^http/ig)>-1?{href:v.url,target:"_blank",rel:"noopener nofollow",new:"1"}:{to:v.url},{variant:"text",density:"compact",class:"level-2-item px-3 text-body-2 font-weight-regular",rounded:"pill",ripple:!1,color:"medium-emphasis","active-class":"text-primary font-weight-medium bg-primary-lighten-5"}),{default:A(()=>[z(Z(v.title),1)]),_:2},1040))),128))],512),[[hs,b(r)!==null&&b(d).length>0]])]),_:1}),S(Vh,{modelValue:b(n),"onUpdate:modelValue":m[1]||(m[1]=v=>Ce(n)?n.value=v:null)},null,8,["modelValue"])]),_:1}))}}),UCe=vt(VCe,[["__scopeId","data-v-d94954ba"]]),jCe=Object.freeze(Object.defineProperty({__proto__:null,default:UCe},Symbol.toStringTag,{value:"Module"})),zCe={class:"flex items-center justify-between px-2 py-3"},HCe={class:"min-w-0 flex-1"},GCe={key:0,class:"category-tag mr-2"},KCe={class:"title flex-1"},WCe={class:"date-text ml-4 flex-1 text-right"},qCe=ke({__name:"NvlCard",props:{item:{},loading:{type:Boolean},target:{}},setup(e){const t=e,n=F(()=>t.item||{}),r=F(()=>It().detail("nvl",n.value.id||n.value.eid||n.value.param)),s=F(()=>n.value.time?new Date(n.value.time*1e3).toISOString().split("T")[0].split("-").slice(1).join("-"):""),i=F(()=>n.value.type_name||"");return(o,a)=>(P(),q($e,Ve({class:"nvl-card cursor-pointer",to:b(r),tag:"a",variant:"text",target:t.target,rel:"opener"},o.$attrs),{default:A(()=>[L("div",zCe,[L("div",HCe,[b(i)?(P(),j("span",GCe,"["+Z(b(i))+"]",1)):te("",!0),L("span",KCe,Z(b(n).title),1)]),L("span",WCe,Z(b(s)),1)])]),_:1},16,["to","target"]))}}),YCe=vt(qCe,[["__scopeId","data-v-5f00a39f"]]),XCe=Object.freeze(Object.defineProperty({__proto__:null,default:YCe},Symbol.toStringTag,{value:"Module"})),ZCe={class:"flex-1 min-w-0 mx-auto"},JCe={class:"flex flex-col md:flex-row gap-4"},QCe={class:"grid grid-cols-2 gap-2"},eAe={class:"flex-1 min-w-0 mt-2"},tAe={class:"m-2 md:m-0"},nAe=ke({__name:"PostLayout",setup(e){const t=Tt(),n=[{key:"hot",label:"热门",icon:"ph:fire",order:"hot"},{key:"new",label:"最新",icon:"ph:clock",order:"new"},{key:"week",label:"周榜",icon:"ph:trophy",order:"week"},{key:"vod",label:"视频",icon:"ph:video",order:"hot",query:{vod:2}},{key:"img",label:"图片",icon:"ph:image",order:"hot",query:{img:2}}],r=mt("routeParams",{tab:"hot",tag:"",page:1}),s=M([]),i=M(null),o=M(r.tab),a=F(()=>{const w=Array.isArray(r.tag)?r.tag[0]:r.tag||"";return w==="_"?"":w}),l=F(()=>Number(r.page)||1);function u(){const w=Array.isArray(r.tab)?r.tab[0]:r.tab||"",T=w&&n.some(C=>C.key===w)?w:"hot";o.value!==T&&(o.value=T)}be(()=>r.tab,()=>{u()},{immediate:!0});async function c(){try{const{post:w}=it(),T=await w.tag();T?.list&&Array.isArray(T.list)&&(s.value=[{name:"首页",url:"/html/post"},...T.list.map(C=>({name:C.name}))])}catch{}}ft(()=>{c(),u()});function d(w){const T=o.value;let C="/html/post";C+=`/${w||"_"}`,C+=`/${T}`,l.value>1&&(C+=`/${l.value}.html`),t.replace(C)}const f=M(null),h=M(!1);async function p(w){const T=a.value;let C="/html/post";C+=`/${T||"_"}`,C+=`/${w}`,l.value>1&&(C+=`/${l.value}.html`),t.replace(C),h.value=!0}be(a,async w=>{if(w)try{const{post:T}=it(),C=await T.tagDetail(w);i.value=C||{}}catch{i.value=null}else i.value=null},{immediate:!0});function m(){h.value&&(f.value?.scrollIntoView({behavior:"smooth",block:"start"}),h.value=!1)}const v=M(!1),x=M(!1),g=M("");function y(w){p(w),v.value=!1}function _(){x.value=!1}function E(w){return typeof w=="object"&&w!==null&&"name"in w}return(w,T)=>{const C=aw,I=Xs;return P(),j(se,null,[L("div",ZCe,[L("div",JCe,[b(s).length?(P(),q($e,{key:0,class:"hidden md:block w-56 flex-shrink-0 rounded-md my-2 shadow px-3 py-2"},{default:A(()=>[L("div",QCe,[(P(!0),j(se,null,Fe(b(s),k=>
138(P(),q(ce,{key:E(k)?k.name:k,color:E(k)&&b(a)===k.name||!E(k)&&b(a)===k?"primary":"default",variant:"text",class:"px-4 py-1 min-w-0 text-sm font-medium transition-all duration-150 rounded-full hover:bg-gray-100 hover:text-primary cursor-pointer",style:Qe(E(k)&&b(a)===k.name||!E(k)&&b(a)===k?"background-color: #E3F2FD; color: #1976D2;":""),onClick:$=>E(k)?k.url?d(""):d(k.name):d(k)},{default:A(()=>[z(Z(E(k)?k.name:k),1)]),_:2},1032,["color","style","onClick"]))),128))])]),_:1})):te("",!0),(b(s).length,te("",!0)),L("div",eAe,[L("div",tAe,[S(C,{"tag-detail":b(i),"active-tag":b(a)},null,8,["tag-detail","active-tag"])]),Ht(w.$slots,"default",{activeTab:b(o),activeTag:b(a),page:b(l),tabs:n,sortMenu:b(v),searchMenu:b(x),searchText:b(g),selectSort:y,doSearch:_,onListLoaded:m})])])]),S(I)],64)}}}),rAe=Object.freeze(Object.defineProperty({__proto__:null,default:nAe},Symbol.toStringTag,{value:"Module"})),sAe=ke({__name:"RightFloatAd",props:{link:{},image:{},side:{default:"right"}},setup(e){const t=e,n=M(!0),r=F(()=>t.link&&n.value&&u.value),s=M(!1),i=()=>{window.open(t.link,"_blank")},o=()=>{n.value=!1},a=()=>{s.value=!0},{user:l}=Ct(),u=F(()=>Zr().public.prod&&!l.value?.vip);return(c,d)=>b(r)?(P(),j("div",{key:0,class:Ie(["fixed top-1/2 -translate-y-1/2",e.side==="left"?"left-0":"right-0"]),style:{"z-index":"99"}},[S(Xr,{src:e.image,cover:"",class:"box rounded-lg",onClick:i,onLoad:a},null,8,["src"]),b(s)?(P(),q(ce,{key:0,class:"close-btn",border:"",icon:"",onClick:o},{default:A(()=>[S(de,{color:"white",class:"font-bold"},{default:A(()=>[...d[0]||(d[0]=[z(" mdi-close ",-1)])]),_:1})]),_:1})):te("",!0)],2)):te("",!0)}}),iM=vt(sAe,[["__scopeId","data-v-2fda7b7c"]]),iAe=Object.freeze(Object.defineProperty({__proto__:null,default:iM},Symbol.toStringTag,{value:"Module"})),oAe=ke({__name:"ShareBottomSheet",props:{modelValue:{type:Boolean}},emits:["update:modelValue"],setup(e,{emit:t}){const n=e,r=t,s=wr(),i=it(),o=M(""),{copyText:a}=Pa(),l=async()=>{try{const{text:f}=await i.share.user();o.value=f}catch(f){console.error("获取分享内容失败:",f),je.error("获取分享内容失败")}},u=F(()=>s.credit.find(f=>f.type==="share")?.credit??0),c=async()=>{const f=document.getElementById("share-textarea");f.select(),f.setSelectionRange(0,f.value.length)};async function d(){await a(o.value)?je.success("复制成功"):je.error("复制失败,请手动复制")}return be(()=>n.modelValue,f=>{f&&l()}),(f,h)=>(P(),q(zo,{"model-value":e.modelValue,"onUpdate:modelValue":h[3]||(h[3]=p=>r("update:modelValue",p))},{default:A(()=>[S($e,{class:"rounded-b-none"},{default:A(()=>[S(at,{class:"flex items-center"},{default:A(()=>[L("div",null,"分享得"+Z(b(s).credit_name),1),S(Mt),S(ce,{variant:"plain",icon:"mdi-close",onClick:h[0]||(h[0]=p=>r("update:modelValue",!1))})]),_:1}),S(Hv,{class:"break-all whitespace-normal"},{default:A(()=>[z(" 复制文字和链接分享到微信或QQ等。新用户点击链接,即绑定为您直属会员!同时送您 "+Z(b(u))+" "+Z(b(s).credit_name)+"! ",1)]),_:1}),S(We,{class:"px-3 pb-3"},{default:A(()=>[S(jh,{id:"share-textarea","model-value":b(o),readonly:"",variant:"outlined","hide-details":"",rows:"3",onClick:h[1]||(h[1]=async()=>{await c()})},null,8,["model-value"])]),_:1}),S(Hv,{style:{"text-overflow":"unset","white-space":"wrap"}},{default:A(()=>[h[4]||(h[4]=z(" 每邀请成功 3 个会员,可得7天VIP会员体验!",-1)),h[5]||(h[5]=L("br",null,null,-1)),z(" 直属会员充值,您可得50%等值"+Z(b(s).credit_name)+",多充多送,限时活动! ",1)]),_:1}),S(mn,{class:"justify-center pb-3"},{default:A(()=>[S(ce,{color:"primary",variant:"flat",class:"rounded-xl px-5",onClick:h[2]||(h[2]=async()=>{await d(),r("update:modelValue",!1)})},{default:A(()=>[...h[6]||(h[6]=[z(" 立即复制 ",-1)])]),_:1})]),_:1})]),_:1})]),_:1},8,["model-value"]))}}),aAe=Object.freeze(Object.defineProperty({__proto__:null,default:oAe},Symbol.toStringTag,{value:"Module"})),lAe=Ws(()=>{const e=["#16a085","#9b59b6","#8e44ad","#e67e22","#d35400","#c0392b","#006ede","#e02398"];function t(r){let s=0;for(let i=0;i<r.length;i++){const o=r.charCodeAt(i);s=(s<<5)-s+o,s|=0}return s}function n(r,s){s=`${s||r}`;const i=Math.abs(t(s));return e[i%e.length]}return{getColor:n}}),uAe={key:0,class:"absolute left-0 bottom-0 h-16 w-full flex justify-end items-end px-1 text-xs text-white box-border auto-line",style:{background:"linear-gradient(0deg, #000, transparent)"}},cAe={key:1,class:"absolute left-0 top-0 p-0 pr-1 px-1 text-xs text-white box-border bg-black opacity-60 auto-line"},dAe={key:2,class:"absolute right-0 top-0 p-0 px-1 text-xs text-white box-border text-center bg-black opacity-60 auto-line"},oM=ke({__name:"SjCardFloat",props:{item:{},showDate:{type:Boolean,default:!0},showEpisodes:{type:Boolean,default:!0},showCommend:{type:Boolean,default:!0}},setup(e){const t=e;function n(s,i){const o=[...s];for(let a=o.length-1;a>0;a--){i=i%1e4*78;const l=i%(a+1);[o[a],o[l]]=[o[l],o[a]]}return o}function r(s){const i=s.createdat||0,o=s.renewedat||i||s.updatedat;s.dateText||(s.dateText=F(()=>o?new Date(o*1e3).toISOString().split("T")[0].split("-").slice(1).join("-"):"").value),s.c
138ommandText||(s.commandText=F(()=>{if(s.remark)return s.remark;if(i&&i>Date.now()/1e3-3*86400)return"新剧";if(s.sortid>0)return"推荐";let a=s.tags||[];return s.age===1?a.push("古代"):s.age===2&&a.push("现代"),s.isfinished&&a.push("完结"),a=n(a,s.eid.toString().split("").reduce((l,u)=>l+u.charCodeAt(0),0)),a[0]||""}).value),s.commandBg=F(()=>lAe().getColor(s.commandText)).value,s.channelText=F(()=>{if(s?.male+s?.female===2)return"男女";if(s.male)return"男频";if(s.female)return"女频"}).value}return zn(()=>{r(t.item)}),(s,i)=>(P(),j(se,null,[t.showEpisodes?(P(),j("div",uAe,[e.item.isfinished?(P(),j(se,{key:0},[z(" 全"+Z(e.item.episodes)+"集 ",1)],64)):(P(),j(se,{key:1},[z(" 更新至"+Z(e.item.episodes)+"集 ",1)],64))])):te("",!0),t.showDate&&e.item.dateText?(P(),j("div",cAe,Z(e.item.dateText),1)):te("",!0),e.item.channelText?(P(),j("div",dAe,Z(e.item.channelText),1)):te("",!0),t.showCommend&&e.item.commandText?(P(),j("div",{key:3,class:"absolute left-0 bottom-0 p-0 px-1 text-xs text-white box-border text-center auto-line",style:Qe({backgroundColor:e.item.commandBg})},Z(e.item.commandText),5)):te("",!0)],64))}}),fAe=Object.freeze(Object.defineProperty({__proto__:null,default:oM},Symbol.toStringTag,{value:"Module"}));function wn(e){const t=Object.prototype.toString.call(e);return e instanceof Date||typeof e=="object"&&t==="[object Date]"?new e.constructor(+e):typeof e=="number"||t==="[object Number]"||typeof e=="string"||t==="[object String]"?new Date(e):new Date(NaN)}function lr(e,t){return e instanceof Date?new e.constructor(t):new Date(t)}function aM(e,t){const n=wn(e);return isNaN(t)?lr(e,NaN):(t&&n.setDate(n.getDate()+t),n)}const lM=6048e5,hAe=6e4,pAe=36e5,mAe=1e3,mp=43200,wL=1440;let vAe={};function Id(){return vAe}function Wo(e,t){const n=Id(),r=t?.weekStartsOn??t?.locale?.options?.weekStartsOn??n.weekStartsOn??n.locale?.options?.weekStartsOn??0,s=wn(e),i=s.getDay(),o=(i<r?7:0)+i-r;return s.setDate(s.getDate()-o),s.setHours(0,0,0,0),s}function Qc(e){return Wo(e,{weekStartsOn:1})}function gAe(e){const t=wn(e),n=t.getFullYear(),r=lr(e,0);r.setFullYear(n+1,0,4),r.setHours(0,0,0,0);const s=Qc(r),i=lr(e,0);i.setFullYear(n,0,4),i.setHours(0,0,0,0);const o=Qc(i);return t.getTime()>=s.getTime()?n+1:t.getTime()>=o.getTime()?n:n-1}function bg(e){const t=wn(e),n=new Date(Date.UTC(t.getFullYear(),t.getMonth(),t.getDate(),t.getHours(),t.getMinutes(),t.getSeconds(),t.getMilliseconds()));return n.setUTCFullYear(t.getFullYear()),+e-+n}function yAe(e){const t=gAe(e),n=lr(e,0);return n.setFullYear(t,0,4),n.setHours(0,0,0,0),Qc(n)}function Bm(e,t){const n=wn(e),r=wn(t),s=n.getTime()-r.getTime();return s<0?-1:s>0?1:s}function xAe(e){return lr(e,Date.now())}function bAe(e,t){const n=wn(e),r=wn(t),s=n.getFullYear()-r.getFullYear(),i=n.getMonth()-r.getMonth();return s*12+i}function _Ae(e){return t=>{const r=(e?Math[e]:Math.trunc)(t);return r===0?0:r}}function SAe(e,t){return+wn(e)-+wn(t)}function EAe(e){const t=wn(e);return t.setHours(23,59,59,999),t}function wAe(e){const t=wn(e),n=t.getMonth();return t.setFullYear(t.getFullYear(),n+1,0),t.setHours(23,59,59,999),t}function TAe(e){const t=wn(e);return+EAe(t)==+wAe(t)}function CAe(e,t){const n=wn(e),r=wn(t),s=Bm(n,r),i=Math.abs(bAe(n,r));let o;if(i<1)o=0;else{n.getMonth()===1&&n.getDate()>27&&n.setDate(30),n.setMonth(n.getMonth()-s*i);let a=Bm(n,r)===-s;TAe(wn(e))&&i===1&&Bm(e,r)===1&&(a=!1),o=s*(i-Number(a))}return o===0?0:o}function AAe(e,t,n){const r=SAe(e,t)/1e3;return _Ae(n?.roundingMethod)(r)}const kAe={lessThanXSeconds:{one:"less than a second",other:"less than {{count}} seconds"},xSeconds:{one:"1 second",other:"{{count}} seconds"},halfAMinute:"half a minute",lessThanXMinutes:{one:"less than a minute",other:"less than {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"about 1 hour",other:"about {{count}} hours"},xHours:{one:"1 hour",other:"{{count}} hours"},xDays:{one:"1 day",other:"{{count}} days"},aboutXWeeks:{one:"about 1 week",other:"about {{count}} weeks"},xWeeks:{one:"1 week",other:"{{count}} weeks"},aboutXMonths:{one:"about 1 month",other:"about {{count}} months"},xMonths:{one:"1 month",other:"{{count}} months"},aboutXYears:{one:"about 1 year",other:"about {{count}} years"},xYears:{one:"1 year",other:"{{count}} years"},overXYears:{one:"over 1 year",other:"over {{count}} years"},almostXYears:{one:"almost 1 year",other:"almost {{count}} years"}}
vendor: 7,895 bytes, line 138
138,IAe=(e,t,n)=>{let r;const s=kAe[e];return typeof s=="string"?r=s:t===1?r=s.one:r=s.other.replace("{{count}}",t.toString()),n?.addSuffix?n.comparison&&n.comparison>0?"in "+r:r+" ago":r};function Ac(e){return(t={})=>{const n=t.width?String(t.width):e.defaultWidth;return e.formats[n]||e.formats[e.defaultWidth]}}const LAe={full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},DAe={full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},PAe={full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},RAe={date:Ac({formats:LAe,defaultWidth:"full"}),time:Ac({formats:DAe,defaultWidth:"full"}),dateTime:Ac({formats:PAe,defaultWidth:"full"})},OAe={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"},$Ae=(e,t,n,r)=>OAe[e];function ko(e){return(t,n)=>{const r=n?.context?String(n.context):"standalone";let s;if(r==="formatting"&&e.formattingValues){const o=e.defaultFormattingWidth||e.defaultWidth,a=n?.width?String(n.width):o;s=e.formattingValues[a]||e.formattingValues[o]}else{const o=e.defaultWidth,a=n?.width?String(n.width):e.defaultWidth;s=e.values[a]||e.values[o]}const i=e.argumentCallback?e.argumentCallback(t):t;return s[i]}}const MAe={narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},FAe={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},BAe={narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],wide:["January","February","March","April","May","June","July","August","September","October","November","December"]},NAe={narrow:["S","M","T","W","T","F","S"],short:["Su","Mo","Tu","We","Th","Fr","Sa"],abbreviated:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],wide:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},VAe={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"}},UAe={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"}},jAe=(e,t)=>{const n=Number(e),r=n%100;if(r>20||r<10)switch(r%10){case 1:return n+"st";case 2:return n+"nd";case 3:return n+"rd"}return n+"th"},zAe={ordinalNumber:jAe,era:ko({values:MAe,defaultWidth:"wide"}),quarter:ko({values:FAe,defaultWidth:"wide",argumentCallback:e=>e-1}),month:ko({values:BAe,defaultWidth:"wide"}),day:ko({values:NAe,defaultWidth:"wide"}),dayPeriod:ko({values:VAe,defaultWidth:"wide",formattingValues:UAe,defaultFormattingWidth:"wide"})};function Io(e){return(t,n={})=>{const r=n.width,s=r&&e.matchPatterns[r]||e.matchPatterns[e.defaultMatchWidth],i=t.match(s);if(!i)return null;const o=i[0],a=r&&e.parsePatterns[r]||e.parsePatterns[e.defaultParseWidth],l=Array.isArray(a)?GAe(a,d=>d.test(o)):HAe(a,d=>d.test(o));let u;u=e.valueCallback?e.valueCallback(l):l,u=n.valueCallback?n.valueCallback(u):u;const c=t.slice(o.length);return{value:u,rest:c}}}function HAe(e,t){for(const n in e)if(Object.prototype.hasOwnProperty.call(e,n)&&t(e[n]))return n}function GAe(e,t){for(let n=0;n<e.length;n++)if(t(e[n]))return n}function uM(e){return(t,n={})=>{const r=t.match(e.matchPattern);if(!r)return null;const s=r[0],i=t.match(e.parsePattern);if(!i)return null;let o=e.valueCallback?e.valueCallback(i[0]):i[0];o=n.valueCallback?n.valueCallback(o):o;const a=t.slice(s.length);return{value:o,rest:a}}}const KAe=/^(\d+)(th|st|nd|rd)?/i,WAe=/\d+/i,qAe={narrow:/^(b|a)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(before christ|before common era|anno domini|common era)/i},YAe={any:[/^b/i,/^(a|c)/i]},XAe={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},ZAe={any:[/1/i,/2/i,/3/i,/4/i]},JAe={narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,wide:/^(january|february|march|april|may|june|july|august|september|october|november|december)/i},QAe={narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^may/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},eke={narrow:/^[smtwf]/i,short:/^(su|mo|tu|we|th|fr|sa)/i,abbreviated:/^(sun|mon|tue|wed|thu|fri|sat)/i,wide:/^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i},tke={narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},nke={narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},rke={any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},ske={ordinalNumber:uM({matchPattern:KAe,parsePattern:WAe,valueCallback:e=>parseInt(e,10)}),era:Io({matchPatterns:qAe,defaultMatchWidth:"wide",parsePatterns:YAe,defaultParseWidth:"any"}),quarter:Io({matchPatterns:XAe,defaultMatchWidth:"wide",parsePatterns:ZAe,defaultParseWidth:"any",valueCallback:e=>e+1}),month:Io({matchPatterns:JAe,defaultMatchWidth:"wide",parsePatterns:QAe,defaultParseWidth:"any"}),day:Io({matchPatterns:eke,defaultMatchWidth:"wide",parsePatterns:tke,defaultParseWidth:"any"}),dayPeriod:Io({matchPatterns:nke,defaultMatchWidth:"any",parsePatterns:rke,defaultParseWidth:"any"})},cM={code:"en-US",formatDistance:IAe,formatLong:RAe,formatRelative:$Ae,localize:zAe,match:ske,options:{weekStartsOn:0,firstWeekContainsDate:1}};function ike(e){const t=wn(e),n=+Qc(t)-+yAe(t);return Math.round(n/lM)+1}function dM(e,t){const n=wn(e),r=n.getFullYear(),s=Id(),i=t?.firstWeekContainsDate??t?.locale?.options?.firstWeekContainsDate??s.firstWeekContainsDate??s.locale?.options?.firstWeekContainsDate??1,o=lr(e,0);o.setFullYear(r+1,0,i),o.setHours(0,0,0,0);const a=Wo(o,t),l=lr(e,0);l.setFullYear(r,0,i),l.setHours(0,0,0,0);const u=Wo(l,t);return n.getTime()>=a.getTime()?r+1:n.getTime()>=u.getTime()?r:r-1}function oke(e,t){const n=Id(),r=t?.firstWeekContainsDate??t?.locale?.options?.firstWeekContainsDate??n.firstWeekContainsDate??n.locale?.options?.firstWeekContainsDate??1,s=dM(e,t),i=lr(e,0);return i.setFullYear(s,0,r),i.setHours(0,0,0,0),Wo(i,t)}function ake(e,t){const n=wn(e),r=+Wo(n,t)-+oke(n,t);return Math.round(r/lM)+1}const TL=(e,t)=>{switch(e){case"P":return t.date({width:"short"});case"PP":return t.date({width:"medium"});case"PPP":return t.date({width:"long"});case"PPPP":default:return t.date({width:"full"})}},fM=(e,t)=>{switch(e){case"p":return t.time({width:"short"});case"pp":return t.time({width:"medium"});case"ppp":return t.time({width:"long"});case"pppp":default:return t.time({width:"full"})}},lke=(e,t)=>{const n=e.match(/(P+)(p+)?/)||[],r=n[1],s=n[2];if(!s)return TL(e,t);let i;switch(r){case"P":i=t.dateTime({width:"short"});break;case"PP":i=t.dateTime({width:"medium"});break;case"PPP":i=t.dateTime({width:"long"});break;case"PPPP":default:i=t.dateTime({width:"full"});break}return i.replace("{{date}}",TL(r,t)).replace("{{time}}",fM(s,t))},CL={p:fM,P:lke},uke=/^D+$/,cke=/^Y+$/,dke=["D","DD","YY","YYYY"];function fke(e){return uke.test(e)}function hke(e){return cke.test(e)}
138function AL(e,t,n){const r=pke(e,t,n);if(console.warn(r),dke.includes(e))throw new RangeError(r)}function pke(e,t,n){const r=e[0]==="Y"?"years":"days of the month";return`Use \`${e.toLowerCase()}\` instead of \`${e}\` (in \`${t}\`) for formatting ${r} to the input \`${n}\`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md`}function mke(e,t,n){const r=Id(),s=n?.locale??r.locale??cM,i=2520,o=Bm(e,t);if(isNaN(o))throw new RangeError("Invalid time value");const a=Object.assign({},n,{addSuffix:n?.addSuffix,comparison:o});let l,u;o>0?(l=wn(t),u=wn(e)):(l=wn(e),u=wn(t));const c=AAe(u,l),d=(bg(u)-bg(l))/1e3,f=Math.round((c-d)/60);let h;if(f<2)return n?.includeSeconds?c<5?s.formatDistance("lessThanXSeconds",5,a):c<10?s.formatDistance("lessThanXSeconds",10,a):c<20?s.formatDistance("lessThanXSeconds",20,a):c<40?s.formatDistance("halfAMinute",0,a):c<60?s.formatDistance("lessThanXMinutes",1,a):s.formatDistance("xMinutes",1,a):f===0?s.formatDistance("lessThanXMinutes",1,a):s.formatDistance("xMinutes",f,a);if(f<45)return s.formatDistance("xMinutes",f,a);if(f<90)return s.formatDistance("aboutXHours",1,a);if(f<wL){const p=Math.round(f/60);return s.formatDistance("aboutXHours",p,a)}else{if(f<i)return s.formatDistance("xDays",1,a);if(f<mp){const p=Math.round(f/wL);return s.formatDistance("xDays",p,a)}else if(f<mp*2)return h=Math.round(f/mp),s.formatDistance("aboutXMonths",h,a)}if(h=CAe(u,l),h<12){const p=Math.round(f/mp);return s.formatDistance("xMonths",p,a)}else{const p=h%12,m=Math.trunc(h/12);return p<3?s.formatDistance("aboutXYears",m,a):p<9?s.formatDistance("overXYears",m,a):s.formatDistance("almostXYears",m+1,a)}}function vke(e,t){return mke(e,xAe(e),t)}function gke(){return Object.assign({},Id())}function yke(e){let n=wn(e).getDay();return n===0&&(n=7),n}function xke(e,t){const n=t instanceof Date?lr(t,0):new t(0);return n.setFullYear(e.getFullYear(),e.getMonth(),e.getDate()),n.setHours(e.getHours(),e.getMinutes(),e.getSeconds(),e.getMilliseconds()),n}const bke=10;class hM{subPriority=0;validate(t,n){return!0}}class _ke extends hM{constructor(t,n,r,s,i){super(),this.value=t,this.validateValue=n,this.setValue=r,this.priority=s,i&&(this.subPriority=i)}validate(t,n){return this.validateValue(t,this.value,n)}set(t,n,r){return this.setValue(t,n,this.value,r)}}class Ske extends hM{priority=bke;subPriority=-1;set(t,n){return n.timestampIsSet?t:lr(t,xke(t,Date))}}class vn{run(t,n,r,s){const i=this.parse(t,n,r,s);return i?{setter:new _ke(i.value,this.validate,this.set,this.priority,this.subPriority),rest:i.rest}:null}validate(t,n,r){return!0}}class Eke extends vn{priority=140;parse(t,n,r){switch(n){case"G":case"GG":case"GGG":return r.era(t,{width:"abbreviated"})||r.era(t,{width:"narrow"});case"GGGGG":return r.era(t,{width:"narrow"});case"GGGG":default:return r.era(t,{width:"wide"})||r.era(t,{width:"abbreviated"})||r.era(t,{width:"narrow"})}}set(t,n,r){return n.era=r,t.setFullYear(r,0,1),t.setHours(0,0,0,0),t}incompatibleTokens=["R","u","t","T"]}const cr={month:/^(1[0-2]|0?\d)/,date:/^(3[0-1]|[0-2]?\d)/,dayOfYear:/^(36[0-6]|3[0-5]\d|[0-2]?\d?\d)/,week:/^(5[0-3]|[0-4]?\d)/,hour23h:/^(2[0-3]|[0-1]?\d)/,hour24h:/^(2[0-4]|[0-1]?\d)/,hour11h:/^(1[0-1]|0?\d)/,hour12h:/^(1[0-2]|0?\d)/,minute:/^[0-5]?\d/,second:/^[0-5]?\d/,singleDigit:/^\d/,twoDigits:/^\d{1,2}/,threeDigits:/^\d{1,3}/,fourDigits:/^\d{1,4}/,anyDigitsSigned:/^-?\d+/,singleDigitSigned:/^-?\d/,twoDigitsSigned:/^-?\d{1,2}/,threeDigitsSigned:/^-?\d{1,3}/,fourDigitsSigned:/^-?\d{1,4}/},Lo={basicOptionalMinutes:/^([+-])(\d{2})(\d{2})?|Z/,basic:/^([+-])(\d{2})(\d{2})|Z/,basicOptionalSeconds:/^([+-])(\d{2})(\d{2})((\d{2}))?|Z/,extended:/^([+-])(\d{2}):(\d{2})|Z/,extendedOptionalSeconds:/^([+-])(\d{2}):(\d{2})(:(\d{2}))?|Z/};function dr(e,t){return e&&{value:t(e.value),rest:e.rest}}function Wn(e,t){const n=t.match(e);return n?{value:parseInt(n[0],10),rest:t.slice(n[0].length)}:null}function Do(e,t){const n=t.match(e);if(!n)return null;if(n[0]==="Z")return{value:0,rest:t.slice(1)};const r=n[1]==="+"?1:-1,s=n[2]?parseInt(n[2],10):0,i=n[3]?parseInt(n[3],10):0,o=n[5]?parseInt(n[5],10):0;return{value:r*(s*pAe+i*hAe+o*mAe),rest:t.slice(n[0].length)}}function pM(e){return Wn(cr.anyDigitsSigned,e)}function sr(e,t){switch(e){case 1:return Wn(cr.singleDigit,t);case 2:return Wn(cr.twoDigits,t);case 3:return Wn(cr.threeDigits,t);case 4:return Wn(cr.fourDigits,t);default:return Wn(new RegExp("^\\d{1,"+e+"}"),t)}}function _g(e,t){switch(e){case 1:return Wn(cr.singleDigitSigned,t);case 2:return Wn(cr.twoDigitsSigned,t);case 3:return Wn(cr.threeDigitsSigned,t);case 4:return Wn(cr.fourDigitsSigned,t);default:return Wn(new RegExp("^-?\\d{1,"+e+"}"),t)}}function dw(e){switch(e){case"morning":return 4;case"evening":return 17;case"pm":case"noon":case"afternoon":return 12;case"am":case"midnight":case"night":default:return 0}}function mM(e,t){const n=t>0,r=n?t:1-t;let s;if(r<=50)s=e||100;else{const i=r+50,o=Math.trunc(i/100)*100,a=e>=i%100;s=e+o-(a?100:0)}return n?s:1-s}function vM(e){return e%400===0||e%4===0&&e%100!==0}class wke extends vn{priority=130;incompatibleTokens=["Y","R","u","w","I","i","e","c","t","T"];parse(t,n,r){const s=i=>({year:i,isTwoDigitYear:n==="yy"});switch(n){case"y":return dr(sr(4,t),s);case"yo":return dr(r.ordinalNumber(t,{unit:"year"}),s);default:return dr(sr(n.length,t),s)}}validate(t,n){return n.isTwoDigitYear||n.year>0}set(t,n,r){const s=t.getFullYear();if(r.isTwoDigitYear){const o=mM(r.year,s);return t.setFullYear(o,0,1),t.setHours(0,0,0,0),t}const i=!("era"in n)||n.era===1?r.year:1-r.year;return t.setFullYear(i,0,1),t.setHours(0,0,0,0),t}}class Tke extends vn{priority=130;parse(t,n,r){const s=i=>({year:i,isTwoDigitYear:n==="YY"});switch(n){case"Y":return dr(sr(4,t),s);case"Yo":return dr(r.ordinalNumber(t,{unit:"year"}),s);default:return dr(sr(n.length,t),s)}}validate(t,n){return n.isTwoDigitYear||n.year>0}
138set(t,n,r,s){const i=dM(t,s);if(r.isTwoDigitYear){const a=mM(r.year,i);return t.setFullYear(a,0,s.firstWeekContainsDate),t.setHours(0,0,0,0),Wo(t,s)}const o=!("era"in n)||n.era===1?r.year:1-r.year;return t.setFullYear(o,0,s.firstWeekContainsDate),t.setHours(0,0,0,0),Wo(t,s)}incompatibleTokens=["y","R","u","Q","q","M","L","I","d","D","i","t","T"]}class Cke extends vn{priority=130;parse(t,n){return _g(n==="R"?4:n.length,t)}set(t,n,r){const s=lr(t,0);return s.setFullYear(r,0,4),s.setHours(0,0,0,0),Qc(s)}incompatibleTokens=["G","y","Y","u","Q","q","M","L","w","d","D","e","c","t","T"]}class Ake extends vn{priority=130;parse(t,n){return _g(n==="u"?4:n.length,t)}set(t,n,r){return t.setFullYear(r,0,1),t.setHours(0,0,0,0),t}incompatibleTokens=["G","y","Y","R","w","I","i","e","c","t","T"]}class kke extends vn{priority=120;parse(t,n,r){switch(n){case"Q":case"QQ":return sr(n.length,t);case"Qo":return r.ordinalNumber(t,{unit:"quarter"});case"QQQ":return r.quarter(t,{width:"abbreviated",context:"formatting"})||r.quarter(t,{width:"narrow",context:"formatting"});case"QQQQQ":return r.quarter(t,{width:"narrow",context:"formatting"});case"QQQQ":default:return r.quarter(t,{width:"wide",context:"formatting"})||r.quarter(t,{width:"abbreviated",context:"formatting"})||r.quarter(t,{width:"narrow",context:"formatting"})}}validate(t,n){return n>=1&&n<=4}set(t,n,r){return t.setMonth((r-1)*3,1),t.setHours(0,0,0,0),t}incompatibleTokens=["Y","R","q","M","L","w","I","d","D","i","e","c","t","T"]}class Ike extends vn{priority=120;parse(t,n,r){switch(n){case"q":case"qq":return sr(n.length,t);case"qo":return r.ordinalNumber(t,{unit:"quarter"});case"qqq":return r.quarter(t,{width:"abbreviated",context:"standalone"})||r.quarter(t,{width:"narrow",context:"standalone"});case"qqqqq":return r.quarter(t,{width:"narrow",context:"standalone"});case"qqqq":default:return r.quarter(t,{width:"wide",context:"standalone"})||r.quarter(t,{width:"abbreviated",context:"standalone"})||r.quarter(t,{width:"narrow",context:"standalone"})}}validate(t,n){return n>=1&&n<=4}set(t,n,r){return t.setMonth((r-1)*3,1),t.setHours(0,0,0,0),t}incompatibleTokens=["Y","R","Q","M","L","w","I","d","D","i","e","c","t","T"]}class Lke extends vn{incompatibleTokens=["Y","R","q","Q","L","w","I","D","i","e","c","t","T"];priority=110;parse(t,n,r){const s=i=>i-1;switch(n){case"M":return dr(Wn(cr.month,t),s);case"MM":return dr(sr(2,t),s);case"Mo":return dr(r.ordinalNumber(t,{unit:"month"}),s);case"MMM":return r.month(t,{width:"abbreviated",context:"formatting"})||r.month(t,{width:"narrow",context:"formatting"});case"MMMMM":return r.month(t,{width:"narrow",context:"formatting"});case"MMMM":default:return r.month(t,{width:"wide",context:"formatting"})||r.month(t,{width:"abbreviated",context:"formatting"})||r.month(t,{width:"narrow",context:"formatting"})}}validate(t,n){return n>=0&&n<=11}set(t,n,r){return t.setMonth(r,1),t.setHours(0,0,0,0),t}}class Dke extends vn{priority=110;parse(t,n,r){const s=i=>i-1;switch(n){case"L":return dr(Wn(cr.month,t),s);case"LL":return dr(sr(2,t),s);case"Lo":return dr(r.ordinalNumber(t,{unit:"month"}),s);case"LLL":return r.month(t,{width:"abbreviated",context:"standalone"})||r.month(t,{width:"narrow",context:"standalone"});case"LLLLL":return r.month(t,{width:"narrow",context:"standalone"});case"LLLL":default:return r.month(t,{width:"wide",context:"standalone"})||r.month(t,{width:"abbreviated",context:"standalone"})||r.month(t,{width:"narrow",context:"standalone"})}}validate(t,n){return n>=0&&n<=11}set(t,n,r){return t.setMonth(r,1),t.setHours(0,0,0,0),t}incompatibleTokens=["Y","R","q","Q","M","w","I","D","i","e","c","t","T"]}function Pke(e,t,n){const r=wn(e),s=ake(r,n)-t;return r.setDate(r.getDate()-s*7),r}class Rke extends vn{priority=100;parse(t,n,r){switch(n){case"w":return Wn(cr.week,t);case"wo":return r.ordinalNumber(t,{unit:"week"});default:return sr(n.length,t)}}validate(t,n){return n>=1&&n<=53}set(t,n,r,s){return Wo(Pke(t,r,s),s)}incompatibleTokens=["y","R","u","q","Q","M","L","I","d","D","i","t","T"]}function Oke(e,t){const n=wn(e),r=ike(n)-t;return n.setDate(n.getDate()-r*7),n}class $ke extends vn{priority=100;parse(t,n,r){switch(n){case"I":return Wn(cr.week,t);case"Io":return r.ordinalNumber(t,{unit:"week"});default:return sr(n.length,t)}}validate(t,n){return n>=1&&n<=53}set(t,n,r){return Qc(Oke(t,r))}incompatibleTokens=["y","Y","u","q","Q","M","L","w","d","D","e","c","t","T"]}const Mke=[31,28,31,30,31,30,31,31,30,31,30,31],Fke=[31,29,31,30,31,30,31,31,30,31,30,31];class Bke extends vn{priority=90;subPriority=1;parse(t,n,r){switch(n){case"d":return Wn(cr.date,t);case"do":return r.ordinalNumber(t,{unit:"date"});default:return sr(n.length,t)}}validate(t,n){const r=t.getFullYear(),s=vM(r),i=t.getMonth();return s?n>=1&&n<=Fke[i]:n>=1&&n<=Mke[i]}set(t,n,r){return t.setDate(r),t.setHours(0,0,0,0),t}incompatibleTokens=["Y","R","q","Q","w","I","D","i","e","c","t","T"]}class Nke extends vn{priority=90;subpriority=1;parse(t,n,r){switch(n){case"D":case"DD":return Wn(cr.dayOfYear,t);case"Do":return r.ordinalNumber(t,{unit:"date"});default:return sr(n.length,t)}}validate(t,n){const r=t.getFullYear();return vM(r)?n>=1&&n<=366:n>=1&&n<=365}set(t,n,r){return t.setMonth(0,r),t.setHours(0,0,0,0),t}incompatibleTokens=["Y","R","q","Q","M","L","w","I","d","E","i","e","c","t","T"]}function fw(e,t,n){const r=Id(),s=n?.weekStartsOn??n?.locale?.options?.weekStartsOn??r.weekStartsOn??r.locale?.options?.weekStartsOn??0,i=wn(e),o=i.getDay(),l=(t%7+7)%7,u=7-s,c=t<0||t>6?t-(o+u)%7:(l+u)%7-(o+u)%7;return aM(i,c)}class Vke extends vn{priority=90;parse(t,n,r){switch(n){case"E":case"EE":case"EEE":return r.day(t,{width:"abbreviated",context:"formatting"})||r.day(t,{width:"short",context:"formatting"})||r.day(t,{width:"narrow",context:"formatting"});case"EEEEE":return r.day(t,{width:"narrow",context:"formatting"});case"EEEEEE":return r.day(t,{width:"short",context:"formatting"})||r.day(t,{width:"narrow",context:"formatting"});case"EEEE":default:return r.day(t,{width:"wide",context:"formatting"})||r.day(t,{width:"abbreviated",context:"formatting"})||r.day(t,{width:"short",context:"formatting"})||r.day(t,{width:"narrow",context:"formatting"})}}validate(t,n){return n>=0&&n<=6}set(t,n,r,s){return t=fw(t,r,s),t.setHours(0,0,0,0),t}incompatibleTokens=["D","i","e","c","t","T"]}class Uke extends vn{priority=90;parse(t,n,r,s){const i=o=>{const a=Math.floor((o-1)/7)*7;return(o+s.weekStartsOn+6)%7+a};switch(n){case"e":case"ee":return dr(sr(n.length,t),i);case"eo":return dr(r.ordinalNumber(t,{unit:"day"}),i);case"eee":return r.day(t,{width:"abbreviated",context:"formatting"})||r.day(t,{width:"short",context:"formatting"})||r.day(t,{width:"narrow",context:"formatting"});case"eeeee":return r.day(t,{width:"narrow",context:"formatting"});case"eeeeee":return r.day(t,{width:"short",context:"formatting"})||r.day(t,{width:"narrow",context:"formatting"});case"eeee":default:return r.day(t,{width:"wide",context:"formatting"})||r.day(t,{width:"abbreviated",context:"formatting"})||r.day(t,{width:"short",context:"formatting"})||r.day(t,{width:"narrow",context:"formatting"})}}validate(t,n){return n>=0&&n<=6}set(t,n,r,s){return t=fw(t,r,s),t.setHours(0,0,0,0),t}incompatibleTokens=["y","R","u","q","Q","M","L","I","d","D","E","i","c","t","T"]}class jke extends vn{priority=90;parse(t,n,r,s){const i=o=>{const a=Math.floor((o-1)/7)*7;return(o+s.weekStartsOn+6)%7+a};switch(n){case"c":case"cc":return dr(sr(n.length,t),i);case"co":return dr(r.ordinalNumber(t,{unit:"day"}),i);case"ccc":return r.day(t,{width:"abbreviated",context:"standalone"})||r.day(t,{width:"short",context:"standalone"})||r.day(t,{width:"narrow",context:"standalone"});case"ccccc":return r.day(t,{width:"narrow",context:"standalone"});case"cccccc":return r.day(t,{width:"short",context:"standalone"})||r.day(t,{width:"narrow",context:"standalone"});case"cccc":default:return r.day(t,{width:"wide",context:"standalone"})||r.day(t,{width:"abbreviated",context:"standalone"})||r.day(t,{width:"short",context:"standalone"})||r.day(t,{width:"narrow",context:"standalone"})}}validate(t,n){return n>=0&&n<=6}set(t,n,r,s){return t=fw(t,r,s),t.setHours(0,0,0,0),t}incompatibleTokens=["y","R","u","q","Q","M","L","I","d","D","E","i","e","t","T"]}function zke(e,t){const n=wn(e),r=yke(n),s=t-r;return aM(n,s)}class Hke extends vn{priority=90;parse(t,n,r){const s=i=>i===0?7:i;switch(n){case"i":case"ii":return sr(n.length,t);case"io":return r.ordinalNumber(t,{unit:"day"});case"iii":return dr(r.day(t,{width:"abbreviated",context:"formatting"})||r.day(t,{width:"short",context:"formatting"})||r.day(t,{width:"narrow",context:"formatting"}),s);case"iiiii":return dr(r.day(t,{width:"narrow",context:"formatting"}),s);case"iiiiii":return dr(r.day(t,{width:"short",context:"formatting"})||r.day(t,{width:"narrow",context:"formatting"}),s);case"iiii":default:return dr(r.day(t,{width:"wide",context:"formatting"})||r.day(t,{width:"abbreviated",context:"formatting"})||r.day(t,{width:"short",context:"formatting"})||r.day(t,{width:"narrow",context:"formatting"}),s)}}validate(t,n){return n>=1&&n<=7}set(t,n,r){return t=zke(t,r),t.setHours(0,0,0,0),t}incompatibleTokens=["y","Y","u","q","Q","M","L","w","d","D","E","e","c","t","T"]}class Gke extends vn{priority=80;parse(t,n,r){switch(n){case"a":case"aa":case"aaa":return r.dayPeriod(t,{width:"abbreviated",context:"formatting"})||r.dayPeriod(t,{width:"narrow",context:"formatting"});case"aaaaa":return r.dayPeriod(t,{width:"narrow",context:"formatting"});case"aaaa":default:return r.dayPeriod(t,{width:"wide",context:"formatting"})||r.dayPeriod(t,{width:"abbreviated",context:"formatting"})||r.dayPeriod(t,{width:"narrow",context:"formatting"})}}set(t,n,r){return t.setHours(dw(r),0,0,0),t}incompatibleTokens=["b","B","H","k","t","T"]}class Kke extends vn{priority=80;
138parse(t,n,r){switch(n){case"b":case"bb":case"bbb":return r.dayPeriod(t,{width:"abbreviated",context:"formatting"})||r.dayPeriod(t,{width:"narrow",context:"formatting"});case"bbbbb":return r.dayPeriod(t,{width:"narrow",context:"formatting"});case"bbbb":default:return r.dayPeriod(t,{width:"wide",context:"formatting"})||r.dayPeriod(t,{width:"abbreviated",context:"formatting"})||r.dayPeriod(t,{width:"narrow",context:"formatting"})}}set(t,n,r){return t.setHours(dw(r),0,0,0),t}incompatibleTokens=["a","B","H","k","t","T"]}class Wke extends vn{priority=80;parse(t,n,r){switch(n){case"B":case"BB":case"BBB":return r.dayPeriod(t,{width:"abbreviated",context:"formatting"})||r.dayPeriod(t,{width:"narrow",context:"formatting"});case"BBBBB":return r.dayPeriod(t,{width:"narrow",context:"formatting"});case"BBBB":default:return r.dayPeriod(t,{width:"wide",context:"formatting"})||r.dayPeriod(t,{width:"abbreviated",context:"formatting"})||r.dayPeriod(t,{width:"narrow",context:"formatting"})}}set(t,n,r){return t.setHours(dw(r),0,0,0),t}incompatibleTokens=["a","b","t","T"]}class qke extends vn{priority=70;parse(t,n,r){switch(n){case"h":return Wn(cr.hour12h,t);case"ho":return r.ordinalNumber(t,{unit:"hour"});default:return sr(n.length,t)}}validate(t,n){return n>=1&&n<=12}set(t,n,r){const s=t.getHours()>=12;return s&&r<12?t.setHours(r+12,0,0,0):!s&&r===12?t.setHours(0,0,0,0):t.setHours(r,0,0,0),t}incompatibleTokens=["H","K","k","t","T"]}class Yke extends vn{priority=70;parse(t,n,r){switch(n){case"H":return Wn(cr.hour23h,t);case"Ho":return r.ordinalNumber(t,{unit:"hour"});default:return sr(n.length,t)}}validate(t,n){return n>=0&&n<=23}set(t,n,r){return t.setHours(r,0,0,0),t}incompatibleTokens=["a","b","h","K","k","t","T"]}class Xke extends vn{priority=70;parse(t,n,r){switch(n){case"K":return Wn(cr.hour11h,t);case"Ko":return r.ordinalNumber(t,{unit:"hour"});default:return sr(n.length,t)}}validate(t,n){return n>=0&&n<=11}set(t,n,r){return t.getHours()>=12&&r<12?t.setHours(r+12,0,0,0):t.setHours(r,0,0,0),t}incompatibleTokens=["h","H","k","t","T"]}class Zke extends vn{priority=70;parse(t,n,r){switch(n){case"k":return Wn(cr.hour24h,t);case"ko":return r.ordinalNumber(t,{unit:"hour"});default:return sr(n.length,t)}}validate(t,n){return n>=1&&n<=24}set(t,n,r){const s=r<=24?r%24:r;return t.setHours(s,0,0,0),t}incompatibleTokens=["a","b","h","H","K","t","T"]}class Jke extends vn{priority=60;parse(t,n,r){switch(n){case"m":return Wn(cr.minute,t);case"mo":return r.ordinalNumber(t,{unit:"minute"});default:return sr(n.length,t)}}validate(t,n){return n>=0&&n<=59}set(t,n,r){return t.setMinutes(r,0,0),t}incompatibleTokens=["t","T"]}class Qke extends vn{priority=50;parse(t,n,r){switch(n){case"s":return Wn(cr.second,t);case"so":return r.ordinalNumber(t,{unit:"second"});default:return sr(n.length,t)}}validate(t,n){return n>=0&&n<=59}set(t,n,r){return t.setSeconds(r,0),t}incompatibleTokens=["t","T"]}class eIe extends vn{priority=30;parse(t,n){const r=s=>Math.trunc(s*Math.pow(10,-n.length+3));return dr(sr(n.length,t),r)}set(t,n,r){return t.setMilliseconds(r),t}incompatibleTokens=["t","T"]}class tIe extends vn{priority=10;parse(t,n){switch(n){case"X":return Do(Lo.basicOptionalMinutes,t);case"XX":return Do(Lo.basic,t);case"XXXX":return Do(Lo.basicOptionalSeconds,t);case"XXXXX":return Do(Lo.extendedOptionalSeconds,t);case"XXX":default:return Do(Lo.extended,t)}}set(t,n,r){return n.timestampIsSet?t:lr(t,t.getTime()-bg(t)-r)}incompatibleTokens=["t","T","x"]}class nIe extends vn{priority=10;parse(t,n){switch(n){case"x":return Do(Lo.basicOptionalMinutes,t);case"xx":return Do(Lo.basic,t);case"xxxx":return Do(Lo.basicOptionalSeconds,t);case"xxxxx":return Do(Lo.extendedOptionalSeconds,t);case"xxx":default:return Do(Lo.extended,t)}}set(t,n,r){return n.timestampIsSet?t:lr(t,t.getTime()-bg(t)-r)}incompatibleTokens=["t","T","X"]}class rIe extends vn{priority=40;parse(t){return pM(t)}set(t,n,r){return[lr(t,r*1e3),{timestampIsSet:!0}]}incompatibleTokens="*"}class sIe extends vn{priority=20;parse(t){return pM(t)}set(t,n,r){return[lr(t,r),{timestampIsSet:!0}]}incompatibleTokens="*"}const iIe={G:new Eke,y:new wke,Y:new Tke,R:new Cke,u:new Ake,Q:new kke,q:new Ike,M:new Lke,L:new Dke,w:new Rke,I:new $ke,d:new Bke,D:new Nke,E:new Vke,e:new Uke,c:new jke,i:new Hke,a:new Gke,b:new Kke,B:new Wke,h:new qke,H:new Yke,K:new Xke,k:new Zke,m:new Jke,s:new Qke,S:new eIe,X:new tIe,x:new nIe,t:new rIe,T:new sIe},oIe=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,aIe=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,lIe=/^'([^]*?)'?$/,uIe=/''/g,cIe=/\S/,dIe=/[a-zA-Z]/;function fIe(e,t,n,r){const s=gke(),i=s.locale??cM,o=s.firstWeekContainsDate??s.locale?.options?.firstWeekContainsDate??1,a=s.weekStartsOn??s.locale?.options?.weekStartsOn??0,l={firstWeekContainsDate:o,weekStartsOn:a,locale:i},u=[new Ske],c=t.match(aIe).map(m=>{const v=m[0];if(v in CL){const x=CL[v];return x(m,i.formatLong)}return m}).join("").match(oIe),d=[];for(let m of c){hke(m)&&AL(m,t,e),fke(m)&&AL(m,t,e);const v=m[0],x=iIe[v];if(x){const{incompatibleTokens:g}=x;if(Array.isArray(g)){const _=d.find(E=>g.includes(E.token)||E.token===v);
138if(_)throw new RangeError(`The format string mustn't contain \`${_.fullToken}\` and \`${m}\` at the same time`)}else if(x.incompatibleTokens==="*"&&d.length>0)throw new RangeError(`The format string mustn't contain \`${m}\` and any other token at the same time`);d.push({token:v,fullToken:m});const y=x.run(e,m,i.match,l);if(!y)return lr(n,NaN);u.push(y.setter),e=y.rest}else{if(v.match(dIe))throw new RangeError("Format string contains an unescaped latin alphabet character `"+v+"`");if(m==="''"?m="'":v==="'"&&(m=hIe(m)),e.indexOf(m)===0)e=e.slice(m.length);else return lr(n,NaN)}}if(e.length>0&&cIe.test(e))return lr(n,NaN);const f=u.map(m=>m.priority).sort((m,v)=>v-m).filter((m,v,x)=>x.indexOf(m)===v).map(m=>u.filter(v=>v.priority===m).sort((v,x)=>x.subPriority-v.subPriority)).map(m=>m[0]);let h=wn(n);if(isNaN(h.getTime()))return lr(n,NaN);const p={};for(const m of f){if(!m.validate(h,l))return lr(n,NaN);const v=m.set(h,p,l);Array.isArray(v)?(h=v[0],Object.assign(p,v[1])):h=v}return lr(n,h)}function hIe(e){return e.match(lIe)[1].replace(uIe,"'")}function pIe(e,t,n){const r=Wo(e,n),s=Wo(t,n);return+r==+s}const mIe={lessThanXSeconds:{one:"不到 1 秒",other:"不到 {{count}} 秒"},xSeconds:{one:"1 秒",other:"{{count}} 秒"},halfAMinute:"半分钟",lessThanXMinutes:{one:"不到 1 分钟",other:"不到 {{count}} 分钟"},xMinutes:{one:"1 分钟",other:"{{count}} 分钟"},xHours:{one:"1 小时",other:"{{count}} 小时"},aboutXHours:{one:"大约 1 小时",other:"大约 {{count}} 小时"},xDays:{one:"1 天",other:"{{count}} 天"},aboutXWeeks:{one:"大约 1 个星期",other:"大约 {{count}} 个星期"},xWeeks:{one:"1 个星期",other:"{{count}} 个星期"},aboutXMonths:{one:"大约 1 个月",other:"大约 {{count}} 个月"},xMonths:{one:"1 个月",other:"{{count}} 个月"},aboutXYears:{one:"大约 1 年",other:"大约 {{count}} 年"},xYears:{one:"1 年",other:"{{count}} 年"},overXYears:{one:"超过 1 年",other:"超过 {{count}} 年"},almostXYears:{one:"将近 1 年",other:"将近 {{count}} 年"}},vIe=(e,t,n)=>{let r;const s=mIe[e];return typeof s=="string"?r=s:t===1?r=s.one:r=s.other.replace("{{count}}",String(t)),n?.addSuffix?n.comparison&&n.comparison>0?r+"内":r+"前":r},gIe={full:"y'年'M'月'd'日' EEEE",long:"y'年'M'月'd'日'",medium:"yyyy-MM-dd",short:"yy-MM-dd"},yIe={full:"zzzz a h:mm:ss",long:"z a h:mm:ss",medium:"a h:mm:ss",short:"a h:mm"},xIe={full:"{{date}} {{time}}",long:"{{date}} {{time}}",medium:"{{date}} {{time}}",short:"{{date}} {{time}}"},bIe={date:Ac({formats:gIe,defaultWidth:"full"}),time:Ac({formats:yIe,defaultWidth:"full"}),dateTime:Ac({formats:xIe,defaultWidth:"full"})};function kL(e,t,n){const r="eeee p";return pIe(e,t,n)?r:e.getTime()>t.getTime()?"'下个'"+r:"'上个'"+r}const _Ie={lastWeek:kL,yesterday:"'昨天' p",today:"'今天' p",tomorrow:"'明天' p",nextWeek:kL,other:"PP p"},SIe=(e,t,n,r)=>{const s=_Ie[e];return typeof s=="function"?s(t,n,r):s},EIe={narrow:["前","公元"],abbreviated:["前","公元"],wide:["公元前","公元"]},wIe={narrow:["1","2","3","4"],abbreviated:["第一季","第二季","第三季","第四季"],wide:["第一季度","第二季度","第三季度","第四季度"]},TIe={narrow:["一","二","三","四","五","六","七","八","九","十","十一","十二"],abbreviated:["1月","2月","3月","4月","5月","6月","7月","8月","9月","10月","11月","12月"],wide:["一月","二月","三月","四月","五月","六月","七月","八月","九月","十月","十一月","十二月"]},CIe={narrow:["日","一","二","三","四","五","六"],short:["日","一","二","三","四","五","六"],abbreviated:["周日","周一","周二","周三","周四","周五","周六"],wide:["星期日","星期一","星期二","星期三","星期四","星期五","星期六"]},AIe={narrow:{am:"上",pm:"下",midnight:"凌晨",noon:"午",morning:"早",afternoon:"下午",evening:"晚",night:"夜"},abbreviated:{am:"上午",pm:"下午",midnight:"凌晨",noon:"中午",morning:"早晨",afternoon:"中午",evening:"晚上",night:"夜间"},wide:{am:"上午",pm:"下午",midnight:"凌晨",noon:"中午",morning:"早晨",afternoon:"中午",evening:"晚上",night:"夜间"}},kIe={narrow:{am:"上",pm:"下",midnight:"凌晨",noon:"午",morning:"早",afternoon:"下午",evening:"晚",night:"夜"},abbreviated:{am:"上午",pm:"下午",midnight:"凌晨",noon:"中午",morning:"早晨",afternoon:"中午",evening:"晚上",night:"夜间"},wide:{am:"上午",pm:"下午",midnight:"凌晨",noon:"中午",morning:"早晨",afternoon:"中午",evening:"晚上",night:"夜间"}},IIe=(e,t)=>{const n=Number(e);switch(t?.unit){case"date":return n.toString()+"日";case"hour":return n.toString()+"时";case"minute":return n.toString()+"分";case"second":return n.toString()+"秒";default:return"第 "+n.toString()}},LIe={ordinalNumber:IIe,era:ko({values:EIe,defaultWidth:"wide"}),quarter:ko({values:wIe,defaultWidth:"wide",argumentCallback:e=>e-1}),month:ko({values:TIe,defaultWidth:"wide"}),day:ko({values:CIe,defaultWidth:"wide"}),dayPeriod:ko({values:AIe,defaultWidth:"wide",formattingValues:kIe,defaultFormattingWidth:"wide"})}
138,DIe=/^(第\s*)?\d+(日|时|分|秒)?/i,PIe=/\d+/i,RIe={narrow:/^(前)/i,abbreviated:/^(前)/i,wide:/^(公元前|公元)/i},OIe={any:[/^(前)/i,/^(公元)/i]},$Ie={narrow:/^[1234]/i,abbreviated:/^第[一二三四]刻/i,wide:/^第[一二三四]刻钟/i},MIe={any:[/(1|一)/i,/(2|二)/i,/(3|三)/i,/(4|四)/i]},FIe={narrow:/^(一|二|三|四|五|六|七|八|九|十[二一])/i,abbreviated:/^(一|二|三|四|五|六|七|八|九|十[二一]|\d|1[12])月/i,wide:/^(一|二|三|四|五|六|七|八|九|十[二一])月/i},BIe={narrow:[/^一/i,/^二/i,/^三/i,/^四/i,/^五/i,/^六/i,/^七/i,/^八/i,/^九/i,/^十(?!(一|二))/i,/^十一/i,/^十二/i],any:[/^一|1/i,/^二|2/i,/^三|3/i,/^四|4/i,/^五|5/i,/^六|6/i,/^七|7/i,/^八|8/i,/^九|9/i,/^十(?!(一|二))|10/i,/^十一|11/i,/^十二|12/i]},NIe={narrow:/^[一二三四五六日]/i,short:/^[一二三四五六日]/i,abbreviated:/^周[一二三四五六日]/i,wide:/^星期[一二三四五六日]/i},VIe={any:[/日/i,/一/i,/二/i,/三/i,/四/i,/五/i,/六/i]},UIe={any:/^(上午?|下午?|午夜|[中正]午|早上?|下午|晚上?|凌晨|)/i},jIe={any:{am:/^上午?/i,pm:/^下午?/i,midnight:/^午夜/i,noon:/^[中正]午/i,morning:/^早上/i,afternoon:/^下午/i,evening:/^晚上?/i,night:/^凌晨/i}},zIe={ordinalNumber:uM({matchPattern:DIe,parsePattern:PIe,valueCallback:e=>parseInt(e,10)}),era:Io({matchPatterns:RIe,defaultMatchWidth:"wide",parsePatterns:OIe,defaultParseWidth:"any"}),quarter:Io({matchPatterns:$Ie,defaultMatchWidth:"wide",parsePatterns:MIe,defaultParseWidth:"any",valueCallback:e=>e+1}),month:Io({matchPatterns:FIe,defaultMatchWidth:"wide",parsePatterns:BIe,defaultParseWidth:"any"}),day:Io({matchPatterns:NIe,defaultMatchWidth:"wide",parsePatterns:VIe,defaultParseWidth:"any"}),dayPeriod:Io({matchPatterns:UIe,defaultMatchWidth:"any",parsePatterns:jIe,defaultParseWidth:"any"})},HIe={code:"zh-CN",formatDistance:vIe,formatLong:bIe,formatRelative:SIe,localize:LIe,match:zIe,options:{weekStartsOn:1,firstWeekContainsDate:4}};function GIe(e){if(!e)return"";let t;if(typeof e=="string")t=fIe(e,"yyyy-MM-dd HH:mm:ss",new Date);else if(typeof e=="number")t=e*1e3;else return"";return vke(t,{addSuffix:!0,locale:HIe})}const KIe={class:"absolute left-0 bottom-0 top-0"},WIe={class:"pl-[130px] flex flex-col gap-2 w-full"},qIe={class:"text-xs opacity-30"},YIe={key:1,class:"flex flex-row flex-nowrap gap-1"},XIe=ke({__name:"SjCard",props:{layout:{default:"cover-tb"},item:{},loading:{type:Boolean}},setup(e){const t=e,{getUrl:n,handleError:r}=Jc({cdns:On().sj.cover,onError:()=>{}}),s=l=>n(l?.covers?l.covers[0]:""),{sm:i}=fd(),o=It(),a=F(()=>o.detail("sj",t.item.eid));return(l,u)=>{const c=oM;return e.layout==="cover-lr"?(P(),q($e,{key:0,to:b(a),color:"transparent rounded-none",flat:""},{default:A(()=>[L("div",KIe,[S(Xr,{src:s(e.item),"min-width":120,"max-width":120,class:"rounded-lg","aspect-ratio":3/4,onError:b(r)},{placeholder:A(()=>[S(Hs,{class:"h-full w-full",type:"image"})]),default:A(()=>[S(c,{item:e.item},null,8,["item"])]),_:1},8,["src","onError"])]),L("div",WIe,[S(at,{class:"text-xl p-0 line-clamp-2 whitespace-normal"},{default:A(()=>[z(Z(e.item.title),1)]),_:1}),e.item.desc?(P(),q(Hv,{key:0,class:"text-sm opacity-50 p-0 line-clamp-3 whitespace-normal break-keep"},{default:A(()=>[z(Z(e.item.desc),1)]),_:1})):te("",!0),L("div",qIe,Z(("toHumanTime"in l?l.toHumanTime:b(GIe))(e.item.renewedat||e.item.createdat))+"更新 ",1),S(Mt),e.item.tags?(P(),j("div",YIe,[(P(!0),j(se,null,Fe(e.item.tags.slice(0,3),(d,f)=>(P(),q(kt,{key:f,class:"rounded-lg",size:b(i)?"small":"x-small"},{default:A(()=>[z(Z(d),1)]),_:2},1032,["size"]))),128))])):te("",!0)])]),_:1},8,["to"])):e.layout==="cover-tb"?(P(),q($e,{key:1,to:b(a),color:"transparent",flat:"",class:"rounded-none"},{default:A(()=>[S(Xr,{src:s(e.item),class:"rounded-lg","aspect-ratio":3/4,cover:""},{placeholder:A(()=>[S(Hs,{class:"h-full w-full",type:"image"})]),default:A(()=>[S(c,{item:e.item},null,8,["item"])]),_:1},8,["src"]),S(at,{class:"text-base pb-0 px-0 line-clamp-2 whitespace-normal h-14"},{default:A(()=>[z(Z(e.item.title),1)]),_:1})]),_:1},8,["to"])):e.layout==="cover-wrapped"?(P(),q($e,{key:2,to:b(a),class:"rounded-none",color:"transparent",flat:""},{default:A(()=>[S(Xr,{src:s(e.item),class:"rounded-lg","aspect-ratio":3/4,cover:""},{placeholder:A(()=>[S(Hs,{class:"h-full w-full",type:"image"})]),default:A(()=>[S(c,{item:e.item},null,8,["item"])]),_:1},8,["src"])]),_:1},8,["to"])):te("",!0)}}}),ZIe=vt(XIe,[["__scopeId","data-v-65a11302"]]),JIe=Object.freeze(Object.defineProperty({__proto__:null,default:ZIe},Symbol.toStringTag,{value:"Module"})),QIe={key:1,class:"rounded-md vod-cover bg-gray-200 dark:bg-gray-700 animate-pulse"},eLe=ke({__name:"VodCard",props:{item:{},loading:{type:Boolean},target:{}},setup(e){const t=e,n=M(!1),r=M();ft(()=>{if(!r.value)return;const a=new IntersectionObserver(([l])=>{l.isIntersecting&&(n.value=!0,a.disconnect())},{rootMargin:"50px 0px",threshold:.1});a.observe(r.value.$el),cn(()=>{a.disconnect()})});const s=a=>{const l=(a?.cover||"").replace(/^https?:\/\/[^/]*/ig,"");return l.search(/\?\w+\/\d+$/ig)===-1?l.search(/\?/ig)===-1?l+"?lg/0":l+"&lg/0":l},i=F(()=>t.item||{}),o=F(()=>It().detail("vod",i.value.id||i.value.eid||i.value.param));return(a,l)=>{const u=cw,c=An;return P(),q($e,Ve({ref_key:"cardRef",ref:r,class:"p-0 cursor-pointer rounded-none bg-transparent vod-card",to:b(o),tag:"a",target:t.target,rel:"opener"},a.$attrs),{default:A(()=>[S(u,{item:b(i)},null,8,["item"]),b(n)?(P(),q(c,{key:0,src:s(b(i)),class:"rounded-md vod-cover","aspect-ratio":3/4,encoded:"1",center:"",cover:"",transition:!0,"blur-background":!0,loading:"lazy",decoding:"async"},null,8,["src"])):(P(),j("div",QIe)),S(at,{class:"text-sm py-0 px-0 line-clamp-2 whitespace-normal h-10 opacity-90"},{default:A(()=>[z(Z(b(i).title),1)]),_:1})]),_:1},16,["to","target"])}}}),tLe=vt(eLe,[["__scopeId","data-v-c23fa1a3"]]),nLe=Object.freeze(Object.defineProperty({__proto__:null,default:tLe},Symbol.toStringTag,{value:"Module"})),rLe=ke({__name:"VodListInfiniteScroll",props:{cid:{},order:{},page:{default:1},shuffle:{type:Boolean,default:!1},maxPage:{default:-1},maxItems:{default:200}},setup(e,{expose:t}){const n=e,{vod:r}=it(),s=M([]),i=M(!1),o=M(1),a=()=>
138{if(n.maxItems&&s.value.length>n.maxItems){const c=s.value.length-n.maxItems;s.value=s.value.slice(c),console.log(`内存管理:删除了 ${c} 个旧项目`)}};ft(()=>{l()});async function l(c){i.value=!0;try{const f=o.value++;if(n.maxPage>0&&f>n.maxPage){c?.done("empty");return}const h=await r.list({page:f,size:20,cid:n.cid?Number(n.cid):void 0},{}),{vodList:p,pageSize:m}=h,v=p.map(x=>({...x,commandText:void 0}));n.shuffle&&v.sort(()=>Math.random()-.5),s.value.push(...v),a(),console.log("items",s.value.length),!v.length||v.length<m?c?.done("empty"):c?.done("ok")}catch(f){console.error(f),c?.done("error")}finally{i.value=!1}}return t({clearItems:()=>{s.value=[],o.value=1}}),(c,d)=>{const f=Ys;return P(),q(o0,{side:"end",direction:"vertical",onLoad:l},{default:A(()=>[S(f,{type:"vod",items:b(s),loading:b(i),skeleton:e.page===1,"pc-cols":4,"mobile-cols":2},{default:A(()=>[Ht(c.$slots,"default")]),_:3},8,["items","loading","skeleton"])]),_:3})}}}),sLe=Object.freeze(Object.defineProperty({__proto__:null,default:rLe},Symbol.toStringTag,{value:"Module"})),iLe=ke({__name:"auth",setup(e){const{status:t}=Ct(),n=Tt();return t.value==="authenticated"&&n.replace("/user"),(r,s)=>(P(),q(eM,null,{default:A(()=>[S(tM,null,{default:A(()=>[S(dn,{class:"flex justify-center items-center h-dvh"},{default:A(()=>[Ht(r.$slots,"default")]),_:3})]),_:3})]),_:3}))}}),oLe=Object.freeze(Object.defineProperty({__proto__:null,default:iLe},Symbol.toStringTag,{value:"Module"})),aLe={class:"truncate"},lLe=ke({__name:"default",setup(e){const{y:t}=_j(window),n=Fn(),r=[],s=dS(),i=F(()=>n.path.includes("/sj/")),o=F(()=>On()||{}),a=F(()=>o.value?.right_float),l=F(()=>o.value?.left_float),{user:u}=Ct();function c(m){if(Zr().public.prod&&u.value?.vip)return!1;const v=["/","/main"];return!!(m?.img&&m?.url&&!v.some(x=>n.path==x||n.path==x+"/"))}const d=F(()=>c(a.value)),f=F(()=>c(l.value)),h=F(()=>Rr()=="hl"?"site-hl":""),p=F(()=>!!n.meta?.showAppBar);return(m,v)=>{const x=rw,g=iM;return P(),q(eM,{class:Ie([b(h)?b(h):""])},{default:A(()=>[b(p)?(P(),q(x,{key:0})):te("",!0),S(tM,null,{default:A(()=>[Ht(m.$slots,"default"),b(i)?te("",!0):(P(),q(LTe,{key:0,active:b(t)>200,icon:"mdi-arrow-up",location:"bottom end",class:"opacity-80",app:"",style:{bottom:"80px"},flat:"",onClick:v[0]||(v[0]=y=>b(s)(0))},null,8,["active"])),(P(),q(Ic,null,[b(f)?(P(),q(g,{key:"left-float-ad",side:"left",image:b(l)?.img,link:b(l)?.url},null,8,["image","link"])):te("",!0)],1024)),(P(),q(Ic,null,[b(d)?(P(),q(g,{key:"right-float-ad",image:b(a)?.img,link:b(a)?.url},null,8,["image","link"])):te("",!0)],1024))]),_:3}),r.length>0?(P(),q(J5,{key:1,class:"backdrop-blur-md shadow-none border-t",color:"primary",flat:""},{default:A(()=>[(P(),j(se,null,Fe(r,(y,_)=>S(ce,{key:_,to:y.external?void 0:y.to,href:y.external?y.href:void 0,target:y.target,class:"flex-1",variant:"text",flat:"",ripple:!1,"prepend-icon":y.icon+(!y.external&&y.name===b(n).name?"-fill":"-duotone")},{default:A(()=>[L("div",aLe,Z(y.title),1)]),_:2},1032,["to","href","target","prepend-icon"])),64))]),_:1})):te("",!0)]),_:3},8,["class"])}}}),uLe=Object.freeze(Object.defineProperty({__proto__:null,default:lLe},Symbol.toStringTag,{value:"Module"})),cLe={class:"antialiased bg-white dark:bg-black dark:text-white font-sans grid min-h-screen overflow-hidden place-content-center text-black"},dLe={class:"max-w-520px text-center z-20"},fLe=["textContent"],hLe=["textContent"],pLe={class:"flex items-center justify-center w-full"},mLe={__name:"error-404",props:{appName:{type:String,default:"Nuxt"},version:{type:String,default:""},statusCode:{type:Number,default:404},statusMessage:{type:String,default:"Not Found"},description:{type:String,default:"Sorry, the page you are looking for could not be found."},backHome:{type:String,default:"Go back home"}},setup(e){const t=e;return b_({title:`${t.statusCode} - ${t.statusMessage} | ${t.appName}`,script:[{innerHTML:`!function(){const e=document.createElement("link").relList;if(!(e&&e.supports&&e.supports("modulepreload"))){for(const e of document.querySelectorAll('link[rel="modulepreload"]'))r(e);new MutationObserver((e=>{for(const o of e)if("childList"===o.type)for(const e of o.addedNodes)"LINK"===e.tagName&&"modulepreload"===e.rel&&r(e)})).observe(document,{childList:!0,subtree:!0})}function r(e){if(e.ep)return;e.ep=!0;const r=function(e){const r={};return e.integrity&&(r.integrity=e.integrity),e.referrerPolicy&&(r.referrerPolicy=e.referrerPolicy),"use-credentials"===e.crossOrigin?r.credentials="include":"anonymous"===e.crossOrigin?r.credentials="omit":r.credentials="same-origin",r}(e);fetch(e.href,r)}}();`}],style:[{innerHTML:'*,:after,:before{border-color:var(--un-default-border-color,#e5e7eb);border-style:solid;border-width:0;box-sizing:border-box}:after,:before{--un-content:""}html{line-height:1.5;-webkit-text-size-adjust:100%;font-family:ui-sans-serif,system-ui,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji;font-feature-settings:normal;font-variation-settings:normal;-moz-tab-size:4;tab-size:4;-webkit-tap-highlight-color:transparent}body{line-height:inherit;margin:0}h1{font-size:inherit;font-weight:inherit}a{color:inherit;text-decoration:inherit}h1,p{margin:0}*,:after,:before{--un-rotate:0;--un-rotate-x:0;--un-rotate-y:0;--un-rotate-z:0;--un-scale-x:1;--un-scale-y:1;--un-scale-z:1;--un-skew-x:0;--un-skew-y:0;--un-translate-x:0;--un-translate-y:0;--un-translate-z:0;--un-pan-x: ;--un-pan-y: ;--un-pinch-zoom: ;--un-scroll-snap-strictness:proximity;--un-ordinal: ;--un-slashed-zero: ;--un-numeric-figure: ;--un-numeric-spacing: ;--un-numeric-fraction: ;--un-border-spacing-x:0;--un-border-spacing-y:0;--un-ring-offset-shadow:0 0 transparent;--un-ring-shadow:0 0 transparent;--un-shadow-inset: ;--un-shadow:0 0 transparent;--un-ring-inset: ;--un-ring-offset-width:0px;--un-ring-offset-color:#fff;--un-ring-width:0px;--un-ring-color:rgba(147,197,253,.5);
138--un-blur: ;--un-brightness: ;--un-contrast: ;--un-drop-shadow: ;--un-grayscale: ;--un-hue-rotate: ;--un-invert: ;--un-saturate: ;--un-sepia: ;--un-backdrop-blur: ;--un-backdrop-brightness: ;--un-backdrop-contrast: ;--un-backdrop-grayscale: ;--un-backdrop-hue-rotate: ;--un-backdrop-invert: ;--un-backdrop-opacity: ;--un-backdrop-saturate: ;--un-backdrop-sepia: }'}]}),(n,r)=>{const s=Gi;return P(),j("div",cLe,[r[0]||(r[0]=L("div",{class:"fixed left-0 right-0 spotlight z-10"},null,-1)),L("div",dLe,[L("h1",{class:"font-medium mb-8 sm:text-10xl text-8xl",textContent:Z(e.statusCode)},null,8,fLe),L("p",{class:"font-light leading-tight mb-16 px-8 sm:px-0 sm:text-4xl text-xl",textContent:Z(e.description)},null,8,hLe),L("div",pLe,[S(s,{to:"/",class:"cursor-pointer gradient-border px-4 py-2 sm:px-6 sm:py-3 sm:text-xl text-md"},{default:A(()=>[z(Z(e.backHome),1)]),_:1})])])])}}},vLe=vt(mLe,[["__scopeId","data-v-29c4380c"]]),gLe=Object.freeze(Object.defineProperty({__proto__:null,default:vLe},Symbol.toStringTag,{value:"Module"})),yLe={class:"antialiased bg-white dark:bg-black dark:text-white font-sans grid min-h-screen overflow-hidden place-content-center text-black"},xLe={class:"max-w-520px text-center"},bLe=["textContent"],_Le=["textContent"],SLe={__name:"error-500",props:{appName:{type:String,default:"Nuxt"},version:{type:String,default:""},statusCode:{type:Number,default:500},statusMessage:{type:String,default:"Server error"},description:{type:String,default:"This page is temporarily unavailable."}},setup(e){const t=e;return b_({title:`${t.statusCode} - ${t.statusMessage} | ${t.appName}`,script:[{innerHTML:`!function(){const e=document.createElement("link").relList;if(!(e&&e.supports&&e.supports("modulepreload"))){for(const e of document.querySelectorAll('link[rel="modulepreload"]'))r(e);new MutationObserver((e=>{for(const o of e)if("childList"===o.type)for(const e of o.addedNodes)"LINK"===e.tagName&&"modulepreload"===e.rel&&r(e)})).observe(document,{childList:!0,subtree:!0})}function r(e){if(e.ep)return;e.ep=!0;const r=function(e){const r={};return e.integrity&&(r.integrity=e.integrity),e.referrerPolicy&&(r.referrerPolicy=e.referrerPolicy),"use-credentials"===e.crossOrigin?r.credentials="include":"anonymous"===e.crossOrigin?r.credentials="omit":r.credentials="same-origin",r}(e);fetch(e.href,r)}}();`}],style:[{innerHTML:'*,:after,:before{border-color:var(--un-default-border-color,#e5e7eb);border-style:solid;border-width:0;box-sizing:border-box}:after,:before{--un-content:""}html{line-height:1.5;-webkit-text-size-adjust:100%;font-family:ui-sans-serif,system-ui,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji;font-feature-settings:normal;font-variation-settings:normal;-moz-tab-size:4;tab-size:4;-webkit-tap-highlight-color:transparent}body{line-height:inherit;margin:0}h1{font-size:inherit;font-weight:inherit}h1,p{margin:0}*,:after,:before{--un-rotate:0;--un-rotate-x:0;--un-rotate-y:0;--un-rotate-z:0;--un-scale-x:1;--un-scale-y:1;--un-scale-z:1;--un-skew-x:0;--un-skew-y:0;--un-translate-x:0;--un-translate-y:0;--un-translate-z:0;--un-pan-x: ;--un-pan-y: ;--un-pinch-zoom: ;--un-scroll-snap-strictness:proximity;--un-ordinal: ;--un-slashed-zero: ;--un-numeric-figure: ;--un-numeric-spacing: ;--un-numeric-fraction: ;--un-border-spacing-x:0;--un-border-spacing-y:0;--un-ring-offset-shadow:0 0 transparent;--un-ring-shadow:0 0 transparent;--un-shadow-inset: ;--un-shadow:0 0 transparent;--un-ring-inset: ;--un-ring-offset-width:0px;--un-ring-offset-color:#fff;--un-ring-width:0px;--un-ring-color:rgba(147,197,253,.5);--un-blur: ;--un-brightness: ;--un-contrast: ;--un-drop-shadow: ;--un-grayscale: ;--un-hue-rotate: ;--un-invert: ;--un-saturate: ;--un-sepia: ;--un-backdrop-blur: ;--un-backdrop-brightness: ;--un-backdrop-contrast: ;--un-backdrop-grayscale: ;--un-backdrop-hue-rotate: ;--un-backdrop-invert: ;--un-backdrop-opacity: ;--un-backdrop-saturate: ;--un-backdrop-sepia: }'}]}),(n,r)=>(P(),j("div",yLe,[r[0]||(r[0]=L("div",{class:"-bottom-1/2 fixed h-1/2 left-0 right-0 spotlight"},null,-1)),L("div",xLe,[L("h1",{class:"font-medium mb-8 sm:text-10xl text-8xl",textContent:Z(e.statusCode)},null,8,bLe),L("p",{class:"font-light leading-tight mb-16 px-8 sm:px-0 sm:text-4xl text-xl",textContent:Z(e.description)},null,8,_Le)])]))}},ELe=vt(SLe,[["__scopeId","data-v-71b97760"]]),wLe=Object.freeze(Object.defineProperty({__proto__:null,default:ELe},Symbol.toStringTag,{value:"Module"}));
138export{_h as a,Du as b,cn as c,F as d,Dt as h,tt as n,ft as o,Cn as p,M as r,be as w};

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