import{r as Ae,w as tn,c as ja,d as ct,y as Mt,ax as jt,ay as nn,f as Ha,a as te,V as jr,h as Tn,ae as $a,F as Ot,m as Nn,aj as qa,n as Ua,t as Ln,a3 as Xa,z as Er,az as pi,aA as Va,a9 as Ya,I as Ga,aB as Ka,k as Za,A as vt,aC as Ja,e as Ue,aD as Qa,aE as es,aF as J,aG as ts,aH as ns,aI as gn,aJ as fo,aK as Kt,T as fn,aL as Cn,v as ho,g as Yn,aM as rs,aN as is,aO as os,D as kn,x as En,C as dn,q as po,E as as,a5 as vo,a0 as ss,M as ls}from"./index-c8c429a5.js";import{q as us}from"./base-aba1ba3e.js";import{g as Yt,s as Ze}from"./index-ab8cc45c.js";import{w as vi,q as cs,o as gt,a as ut,i as Mr,b as Hr,S as Gn,c as Dt,g as nr,r as rr,d as fs,e as ds,f as $r,h as hs,M as qr,t as mn,j as Or,k as ps,U as gi,l as mi,m as qn,n as vs,p as gs,s as ms,u as ys,v as ws,x as bs,y as xs,z as Ur,A as Ss,B as go,C as kr,D as Cs,E as Qe,F as Ve,G as ir,H as As,I as Zt,J as Gt,K as Lt,L as Pn,N as Xr,O as Un,P as Ts,Q as Es,R as Ms,T as Os,V as Kn,W as ks,X as yi,Y as vr,Z as mo,_ as Ps,$ as wi,a0 as yo,a1 as Rs,a2 as Ds,a3 as wn,a4 as Bn,a5 as wo,a6 as _s,a7 as bo,a8 as Ns,a9 as Ls,aa as Bs}from"./fade-in-scale-up.cssr-1cad0834.js";import{T as Fs,a as bi}from"./index-49881408.js";import"./use-tab-status-b2042569.js";import"./index-bb4de0f4.js";const Is=(e,i)=>{const a=Ae(e());return tn(e,f=>{f!==a.value&&(a.value=f)}),tn(a,f=>{f!==e()&&i(f)}),a};function At(e){if(e==null)return window;if(e.toString()!=="[object Window]"){var i=e.ownerDocument;return i&&i.defaultView||window}return e}function Vr(e){var i=At(e).Element;return e instanceof i||e instanceof Element}function Ct(e){var i=At(e).HTMLElement;return e instanceof i||e instanceof HTMLElement}function xo(e){if(typeof ShadowRoot>"u")return!1;var i=At(e).ShadowRoot;return e instanceof i||e instanceof ShadowRoot}var vn=Math.round;function Pr(){var e=navigator.userAgentData;return e!=null&&e.brands?e.brands.map(function(i){return i.brand+"/"+i.version}).join(" "):navigator.userAgent}function zs(){return!/^((?!chrome|android).)*safari/i.test(Pr())}function Zn(e,i,a){i===void 0&&(i=!1),a===void 0&&(a=!1);var f=e.getBoundingClientRect(),d=1,y=1;i&&Ct(e)&&(d=e.offsetWidth>0&&vn(f.width)/e.offsetWidth||1,y=e.offsetHeight>0&&vn(f.height)/e.offsetHeight||1);var S=Vr(e)?At(e):window,T=S.visualViewport,A=!zs()&&a,E=(f.left+(A&&T?T.offsetLeft:0))/d,D=(f.top+(A&&T?T.offsetTop:0))/y,$=f.width/d,V=f.height/y;return{width:$,height:V,top:D,right:E+$,bottom:D+V,left:E,x:E,y:D}}function So(e){var i=At(e),a=i.pageXOffset,f=i.pageYOffset;return{scrollLeft:a,scrollTop:f}}function Ws(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}function js(e){return e===At(e)||!Ct(e)?So(e):Ws(e)}function _t(e){return e?(e.nodeName||"").toLowerCase():null}function or(e){return((Vr(e)?e.ownerDocument:e.document)||window.document).documentElement}function Hs(e){return Zn(or(e)).left+So(e).scrollLeft}function Nt(e){return At(e).getComputedStyle(e)}function Yr(e){var i=Nt(e),a=i.overflow,f=i.overflowX,d=i.overflowY;return/auto|scroll|overlay|hidden/.test(a+d+f)}function $s(e){var i=e.getBoundingClientRect(),a=vn(i.width)/e.offsetWidth||1,f=vn(i.height)/e.offsetHeight||1;return a!==1||f!==1}function qs(e,i,a){a===void 0&&(a=!1);var f=Ct(i),d=Ct(i)&&$s(i),y=or(i),S=Zn(e,d,a),T={scrollLeft:0,scrollTop:0},A={x:0,y:0};return(f||!f&&!a)&&((_t(i)!=="body"||Yr(y))&&(T=js(i)),Ct(i)?(A=Zn(i,!0),A.x+=i.clientLeft,A.y+=i.clientTop):y&&(A.x=Hs(y))),{x:S.left+T.scrollLeft-A.x,y:S.top+T.scrollTop-A.y,width:S.width,height:S.height}}function Us(e){var i=Zn(e),a=e.offsetWidth,f=e.offsetHeight;return Math.abs(i.width-a)<=1&&(a=i.width),Math.abs(i.height-f)<=1&&(f=i.height),{x:e.offsetLeft,y:e.offsetTop,width:a,height:f}}function Gr(e){return _t(e)==="html"?e:e.assignedSlot||e.parentNode||(xo(e)?e.host:null)||or(e)}function Co(e){return["html","body","#document"].indexOf(_t(e))>=0?e.ownerDocument.body:Ct(e)&&Yr(e)?e:Co(Gr(e))}function Xn(e,i){var a;i===void 0&&(i=[]);var f=Co(e),d=f===((a=e.ownerDocument)==null?void 0:a.body),y=At(f),S=d?[y].concat(y.visualViewport||[],Yr(f)?f:[]):f,T=i.concat(S);return d?T:T.concat(Xn(Gr(S)))}function Xs(e){return["table","td","th"].indexOf(_t(e))>=0}function xi(e){return!Ct(e)||Nt(e).position==="fixed"?null:e.offsetParent}function Vs(e){var i=/firefox/i.test(Pr()),a=/Trident/i.test(Pr());if(a&&Ct(e)){var f=Nt(e);if(f.position==="fixed")return null}var d=Gr(e);for(xo(d)&&(d=d.host);Ct(d)&&["html","body"].indexOf(_t(d))<0;){var y=Nt(d);if(y.transform!=="none"||y.perspective!=="none"||y.contain==="paint"||["transform","perspective"].indexOf(y.willChange)!==-1||i&&y.willChange==="filter"||i&&y.filter&&y.filter!=="none")return d;d=d.parentNode}return null}function Ao(e){for(var i=At(e),a=xi(e);a&&Xs(a)&&Nt(a).position==="static";)a=xi(a);return a&&(_t(a)==="html"||_t(a)==="body"&&Nt(a).position==="static")?i:a||Vs(e)||i}var hn="top",Jn="bottom",Mn="right",Jt="left",To="auto",Ys=[hn,Jn,Mn,Jt],Eo="start",Qn="end",Gs=[].concat(Ys,[To]).reduce(function(e,i){return e.concat([i,i+"-"+Eo,i+"-"+Qn])},[]),Ks="beforeRead",Zs="read",Js="afterRead",Qs="beforeMain",el="main",tl="afterMain",nl="beforeWrite",rl="write",il="afterWrite",Rr=[Ks,Zs,Js,Qs,el,tl,nl,rl,il];function ol(e){var i=new Map,a=new Set,f=[];e.forEach(function(y){i.set(y.name,y)});function d(y){a.add(y.name);var S=[].concat(y.requires||[],y.requiresIfExists||[]);S.forEach(function(T){if(!a.has(T)){var A=i.get(T);A&&d(A)}}),f.push(y)}return e.forEach(function(y){a.has(y.name)||d(y)}),f}function al(e){var i=ol(e);return Rr.reduce(function(a,f){return a.concat(i.filter(function(d){return d.phase===f}))},[])}function sl(e){var i;return function(){return i||(i=new Promise(function(a){Promise.resolve().then(function(){i=void 0,a(e())})})),i}}function It(e){for(var i=arguments.length,a=new Array(i>1?i-1:0),f=1;f=0?"x":"y"}function hl(e){var i=e.reference,a=e.element,f=e.placement,d=f?ar(f):null,y=f?Mo(f):null,S=i.x+i.width/2-a.width/2,T=i.y+i.height/2-a.height/2,A;switch(d){case hn:A={x:S,y:i.y-a.height};break;case Jn:A={x:S,y:i.y+i.height};break;case Mn:A={x:i.x+i.width,y:T};break;case Jt:A={x:i.x-a.width,y:T};break;default:A={x:i.x,y:i.y}}var E=d?dl(d):null;if(E!=null){var D=E==="y"?"height":"width";switch(y){case Eo:A[E]=A[E]-(i[D]/2-a[D]/2);break;case Qn:A[E]=A[E]+(i[D]/2-a[D]/2);break}}return A}var Ci="Popper: Invalid reference or popper argument provided. They must be either a DOM element or virtual element.",pl="Popper: An infinite loop in the modifiers cycle has been detected! The cycle has been interrupted to prevent a browser crash.",Ai={placement:"bottom",modifiers:[],strategy:"absolute"};function Ti(){for(var e=arguments.length,i=new Array(e),a=0;a100){console.error(pl);break}if(D.reset===!0){D.reset=!1,Q=-1;continue}var ve=D.orderedModifiers[Q],ue=ve.fn,ge=ve.options,Se=ge===void 0?{}:ge,be=ve.name;typeof ue=="function"&&(D=ue({state:D,options:Se,name:be,instance:Y})||D)}}},update:sl(function(){return new Promise(function(L){Y.forceUpdate(),L(D)})}),destroy:function(){N(),V=!0}};if(!Ti(T,A))return console.error(Ci),Y;Y.setOptions(E).then(function(L){!V&&E.onFirstUpdate&&E.onFirstUpdate(L)});function se(){D.orderedModifiers.forEach(function(L){var Z=L.name,R=L.options,ne=R===void 0?{}:R,he=L.effect;if(typeof he=="function"){var Q=he({state:D,name:Z,instance:Y,options:ne}),ve=function(){};$.push(Q||ve)}})}function N(){$.forEach(function(L){return L()}),$=[]}return Y}}var Fn={passive:!0};function gl(e){var i=e.state,a=e.instance,f=e.options,d=f.scroll,y=d===void 0?!0:d,S=f.resize,T=S===void 0?!0:S,A=At(i.elements.popper),E=[].concat(i.scrollParents.reference,i.scrollParents.popper);return y&&E.forEach(function(D){D.addEventListener("scroll",a.update,Fn)}),T&&A.addEventListener("resize",a.update,Fn),function(){y&&E.forEach(function(D){D.removeEventListener("scroll",a.update,Fn)}),T&&A.removeEventListener("resize",a.update,Fn)}}var ml={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:gl,data:{}};function yl(e){var i=e.state,a=e.name;i.modifiersData[a]=hl({reference:i.rects.reference,element:i.rects.popper,strategy:"absolute",placement:i.placement})}var wl={name:"popperOffsets",enabled:!0,phase:"read",fn:yl,data:{}},bl={top:"auto",right:"auto",bottom:"auto",left:"auto"};function xl(e){var i=e.x,a=e.y,f=window,d=f.devicePixelRatio||1;return{x:vn(i*d)/d||0,y:vn(a*d)/d||0}}function Ei(e){var i,a=e.popper,f=e.popperRect,d=e.placement,y=e.variation,S=e.offsets,T=e.position,A=e.gpuAcceleration,E=e.adaptive,D=e.roundOffsets,$=e.isFixed,V=S.x,Y=V===void 0?0:V,se=S.y,N=se===void 0?0:se,L=typeof D=="function"?D({x:Y,y:N}):{x:Y,y:N};Y=L.x,N=L.y;var Z=S.hasOwnProperty("x"),R=S.hasOwnProperty("y"),ne=Jt,he=hn,Q=window;if(E){var ve=Ao(a),ue="clientHeight",ge="clientWidth";if(ve===At(a)&&(ve=or(a),Nt(ve).position!=="static"&&T==="absolute"&&(ue="scrollHeight",ge="scrollWidth")),ve=ve,d===hn||(d===Jt||d===Mn)&&y===Qn){he=Jn;var Se=$&&ve===Q&&Q.visualViewport?Q.visualViewport.height:ve[ue];N-=Se-f.height,N*=A?1:-1}if(d===Jt||(d===hn||d===Jn)&&y===Qn){ne=Mn;var be=$&&ve===Q&&Q.visualViewport?Q.visualViewport.width:ve[ge];Y-=be-f.width,Y*=A?1:-1}}var ke=Object.assign({position:T},E&&bl),Be=D===!0?xl({x:Y,y:N}):{x:Y,y:N};if(Y=Be.x,N=Be.y,A){var Te;return Object.assign({},ke,(Te={},Te[he]=R?"0":"",Te[ne]=Z?"0":"",Te.transform=(Q.devicePixelRatio||1)<=1?"translate("+Y+"px, "+N+"px)":"translate3d("+Y+"px, "+N+"px, 0)",Te))}return Object.assign({},ke,(i={},i[he]=R?N+"px":"",i[ne]=Z?Y+"px":"",i.transform="",i))}function Sl(e){var i=e.state,a=e.options,f=a.gpuAcceleration,d=f===void 0?!0:f,y=a.adaptive,S=y===void 0?!0:y,T=a.roundOffsets,A=T===void 0?!0:T;{var E=Nt(i.elements.popper).transitionProperty||"";S&&["transform","top","right","bottom","left"].some(function($){return E.indexOf($)>=0})&&console.warn(["Popper: Detected CSS transitions on at least one of the following",'CSS properties: "transform", "top", "right", "bottom", "left".',` `,'Disable the "computeStyles" modifier\'s `adaptive` option to allow',"for smooth transitions, or remove these properties from the CSS","transition declaration on the popper element if only transitioning","opacity or background-color for example.",` `,"We recommend using the popper element as a wrapper around an inner","element that can have any CSS property transitioned for animations."].join(" "))}var D={placement:ar(i.placement),variation:Mo(i.placement),popper:i.elements.popper,popperRect:i.rects.popper,gpuAcceleration:d,isFixed:i.options.strategy==="fixed"};i.modifiersData.popperOffsets!=null&&(i.styles.popper=Object.assign({},i.styles.popper,Ei(Object.assign({},D,{offsets:i.modifiersData.popperOffsets,position:i.options.strategy,adaptive:S,roundOffsets:A})))),i.modifiersData.arrow!=null&&(i.styles.arrow=Object.assign({},i.styles.arrow,Ei(Object.assign({},D,{offsets:i.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:A})))),i.attributes.popper=Object.assign({},i.attributes.popper,{"data-popper-placement":i.placement})}var Cl={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:Sl,data:{}};function Al(e){var i=e.state;Object.keys(i.elements).forEach(function(a){var f=i.styles[a]||{},d=i.attributes[a]||{},y=i.elements[a];!Ct(y)||!_t(y)||(Object.assign(y.style,f),Object.keys(d).forEach(function(S){var T=d[S];T===!1?y.removeAttribute(S):y.setAttribute(S,T===!0?"":T)}))})}function Tl(e){var i=e.state,a={popper:{position:i.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(i.elements.popper.style,a.popper),i.styles=a,i.elements.arrow&&Object.assign(i.elements.arrow.style,a.arrow),function(){Object.keys(i.elements).forEach(function(f){var d=i.elements[f],y=i.attributes[f]||{},S=Object.keys(i.styles.hasOwnProperty(f)?i.styles[f]:a[f]),T=S.reduce(function(A,E){return A[E]="",A},{});!Ct(d)||!_t(d)||(Object.assign(d.style,T),Object.keys(y).forEach(function(A){d.removeAttribute(A)}))})}}var El={name:"applyStyles",enabled:!0,phase:"write",fn:Al,effect:Tl,requires:["computeStyles"]},Ml=[ml,wl,Cl,El],Ol=vl({defaultModifiers:Ml});function kl(e,i,a){var f=ar(e),d=[Jt,hn].indexOf(f)>=0?-1:1,y=typeof a=="function"?a(Object.assign({},i,{placement:e})):a,S=y[0],T=y[1];return S=S||0,T=(T||0)*d,[Jt,Mn].indexOf(f)>=0?{x:T,y:S}:{x:S,y:T}}function Pl(e){var i=e.state,a=e.options,f=e.name,d=a.offset,y=d===void 0?[0,0]:d,S=Gs.reduce(function(D,$){return D[$]=kl($,i.rects,y),D},{}),T=S[i.placement],A=T.x,E=T.y;i.modifiersData.popperOffsets!=null&&(i.modifiersData.popperOffsets.x+=A,i.modifiersData.popperOffsets.y+=E),i.modifiersData[f]=S}var Rl={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:Pl};const[Dl,Xt]=ja("popover"),_l=["overlay","duration","teleport","overlayStyle","overlayClass","closeOnClickOverlay"],Nl={show:Boolean,theme:Nn("light"),overlay:Boolean,actions:qa(),actionsDirection:Nn("vertical"),trigger:Nn("click"),duration:Ua,showArrow:Ln,placement:Nn("bottom"),iconPrefix:String,overlayClass:Xa,overlayStyle:Object,closeOnClickAction:Ln,closeOnClickOverlay:Ln,closeOnClickOutside:Ln,offset:{type:Array,default:()=>[0,8]},teleport:{type:[String,Object],default:"body"}};var Ll=ct({name:Dl,props:Nl,emits:["select","touchstart","update:show"],setup(e,{emit:i,slots:a,attrs:f}){let d;const y=Ae(),S=Ae(),T=Ae(),A=Is(()=>e.show,R=>i("update:show",R)),E=()=>({placement:e.placement,modifiers:[{name:"computeStyles",options:{adaptive:!1,gpuAcceleration:!1}},Ya({},Rl,{options:{offset:e.offset}})]}),D=()=>S.value&&T.value?Ol(S.value,T.value.popupRef.value,E()):null,$=()=>{Er(()=>{A.value&&(d?d.setOptions(E()):(d=D(),pi&&(window.addEventListener("animationend",$),window.addEventListener("transitionend",$))))})},V=R=>{A.value=R},Y=()=>{e.trigger==="click"&&(A.value=!A.value)},se=(R,ne)=>{R.disabled||(i("select",R,ne),e.closeOnClickAction&&(A.value=!1))},N=()=>{A.value&&e.closeOnClickOutside&&(!e.overlay||e.closeOnClickOverlay)&&(A.value=!1)},L=(R,ne)=>a.action?a.action({action:R,index:ne}):[R.icon&&te(Ga,{name:R.icon,classPrefix:e.iconPrefix,class:Xt("action-icon")},null),te("div",{class:[Xt("action-text"),{[Ka]:e.actionsDirection==="vertical"}]},[R.text])],Z=(R,ne)=>{const{icon:he,color:Q,disabled:ve,className:ue}=R;return te("div",{role:"menuitem",class:[Xt("action",{disabled:ve,"with-icon":he}),{[Va]:e.actionsDirection==="horizontal"},ue],style:{color:Q},tabindex:ve?void 0:0,"aria-disabled":ve||void 0,onClick:()=>se(R,ne)},[L(R,ne)])};return Mt(()=>{$(),jt(()=>{var R;y.value=(R=T.value)==null?void 0:R.popupRef.value})}),nn(()=>{d&&(pi&&(window.removeEventListener("animationend",$),window.removeEventListener("transitionend",$)),d.destroy(),d=null)}),tn(()=>[A.value,e.offset,e.placement],$),Ha([S,y],N,{eventName:"touchstart"}),()=>{var R;return te(Ot,null,[te("span",{ref:S,class:Xt("wrapper"),onClick:Y},[(R=a.reference)==null?void 0:R.call(a)]),te(jr,Tn({ref:T,show:A.value,class:Xt([e.theme]),position:"",transition:"van-popover-zoom",lockScroll:!1,"onUpdate:show":V},f,$a(e,_l)),{default:()=>[e.showArrow&&te("div",{class:Xt("arrow")},null),te("div",{role:"menu",class:Xt("content",e.actionsDirection)},[a.default?a.default():e.actions.map(Z)])]})])}}});const Bl=Za(Ll);function er(e){return e.composedPath()[0]||null}function Fl(e=8){return Math.random().toString(16).slice(2,2+e)}function Il(e,i=[],a){const f={};return i.forEach(d=>{f[d]=e[d]}),Object.assign(f,a)}function Dr(e,i=!0,a=[]){return e.forEach(f=>{if(f!==null){if(typeof f!="object"){(typeof f=="string"||typeof f=="number")&&a.push(vt(String(f)));return}if(Array.isArray(f)){Dr(f,i,a);return}if(f.type===Ot){if(f.children===null)return;Array.isArray(f.children)&&Dr(f.children,i,a)}else f.type!==Ja&&a.push(f)}}),a}function Mi(e,i="default",a=void 0){const f=e[i];if(!f)return vi("getFirstSlotVNode",`slot[${i}] is empty`),null;const d=Dr(f(a));return d.length===1?d[0]:(vi("getFirstSlotVNode",`slot[${i}] should have exactly one child`),null)}const Oi=ct({render(){var e,i;return(i=(e=this.$slots).default)===null||i===void 0?void 0:i.call(e)}}),zl=/^(\d|\.)+$/,ki=/(\d|\.)+/;function gr(e,{c:i=1,offset:a=0,attachPx:f=!0}={}){if(typeof e=="number"){const d=(e+a)*i;return d===0?"0":`${d}px`}else if(typeof e=="string")if(zl.test(e)){const d=(Number(e)+a)*i;return f?d===0?"0":`${d}px`:`${d}`}else{const d=ki.exec(e);return d?e.replace(ki,String((Number(d[0])+a)*i)):e}return e}function Wl(e,i){if(e===void 0)return!1;if(i){const{context:{ids:a}}=i;return a.has(e)}return cs(e)!==null}let mr;function jl(){return mr===void 0&&(mr=navigator.userAgent.includes("Node.js")||navigator.userAgent.includes("jsdom")),mr}const Hl=typeof document<"u"&&typeof window<"u";function $l(e,i){return Ue(()=>{for(const a of i)if(e[a]!==void 0)return e[a];return e[i[i.length-1]]})}const ql=(typeof window>"u"?!1:/iPad|iPhone|iPod/.test(navigator.platform)||navigator.platform==="MacIntel"&&navigator.maxTouchPoints>1)&&!window.MSStream;function Ul(){return ql}const ln="@@mmoContext",Xl={mounted(e,{value:i}){e[ln]={handler:void 0},typeof i=="function"&&(e[ln].handler=i,gt("mousemoveoutside",e,i))},updated(e,{value:i}){const a=e[ln];typeof i=="function"?a.handler?a.handler!==i&&(ut("mousemoveoutside",e,a.handler),a.handler=i,gt("mousemoveoutside",e,i)):(e[ln].handler=i,gt("mousemoveoutside",e,i)):a.handler&&(ut("mousemoveoutside",e,a.handler),a.handler=void 0)},unmounted(e){const{handler:i}=e[ln];i&&ut("mousemoveoutside",e,i),e[ln].handler=void 0}},Vl=Xl,un="@@coContext",Yl={mounted(e,{value:i,modifiers:a}){e[un]={handler:void 0},typeof i=="function"&&(e[un].handler=i,gt("clickoutside",e,i,{capture:a.capture}))},updated(e,{value:i,modifiers:a}){const f=e[un];typeof i=="function"?f.handler?f.handler!==i&&(ut("clickoutside",e,f.handler,{capture:a.capture}),f.handler=i,gt("clickoutside",e,i,{capture:a.capture})):(e[un].handler=i,gt("clickoutside",e,i,{capture:a.capture})):f.handler&&(ut("clickoutside",e,f.handler,{capture:a.capture}),f.handler=void 0)},unmounted(e,{modifiers:i}){const{handler:a}=e[un];a&&ut("clickoutside",e,a,{capture:i.capture}),e[un].handler=void 0}},Pi=Yl;function Ri(e,i){console.error(`[vueuc/${e}]: ${i}`)}function Di(e){return typeof e=="string"?document.querySelector(e):e()}var Qt=[],Gl=function(){return Qt.some(function(e){return e.activeTargets.length>0})},Kl=function(){return Qt.some(function(e){return e.skippedTargets.length>0})},_i="ResizeObserver loop completed with undelivered notifications.",Zl=function(){var e;typeof ErrorEvent=="function"?e=new ErrorEvent("error",{message:_i}):(e=document.createEvent("Event"),e.initEvent("error",!1,!1),e.message=_i),window.dispatchEvent(e)},On;(function(e){e.BORDER_BOX="border-box",e.CONTENT_BOX="content-box",e.DEVICE_PIXEL_CONTENT_BOX="device-pixel-content-box"})(On||(On={}));var en=function(e){return Object.freeze(e)},Jl=function(){function e(i,a){this.inlineSize=i,this.blockSize=a,en(this)}return e}(),Oo=function(){function e(i,a,f,d){return this.x=i,this.y=a,this.width=f,this.height=d,this.top=this.y,this.left=this.x,this.bottom=this.top+this.height,this.right=this.left+this.width,en(this)}return e.prototype.toJSON=function(){var i=this,a=i.x,f=i.y,d=i.top,y=i.right,S=i.bottom,T=i.left,A=i.width,E=i.height;return{x:a,y:f,top:d,right:y,bottom:S,left:T,width:A,height:E}},e.fromRect=function(i){return new e(i.x,i.y,i.width,i.height)},e}(),Kr=function(e){return e instanceof SVGElement&&"getBBox"in e},ko=function(e){if(Kr(e)){var i=e.getBBox(),a=i.width,f=i.height;return!a&&!f}var d=e,y=d.offsetWidth,S=d.offsetHeight;return!(y||S||e.getClientRects().length)},Ni=function(e){var i;if(e instanceof Element)return!0;var a=(i=e==null?void 0:e.ownerDocument)===null||i===void 0?void 0:i.defaultView;return!!(a&&e instanceof a.Element)},Ql=function(e){switch(e.tagName){case"INPUT":if(e.type!=="image")break;case"VIDEO":case"AUDIO":case"EMBED":case"OBJECT":case"CANVAS":case"IFRAME":case"IMG":return!0}return!1},An=typeof window<"u"?window:{},In=new WeakMap,Li=/auto|scroll/,eu=/^tb|vertical/,tu=/msie|trident/i.test(An.navigator&&An.navigator.userAgent),Et=function(e){return parseFloat(e||"0")},pn=function(e,i,a){return e===void 0&&(e=0),i===void 0&&(i=0),a===void 0&&(a=!1),new Jl((a?i:e)||0,(a?e:i)||0)},Bi=en({devicePixelContentBoxSize:pn(),borderBoxSize:pn(),contentBoxSize:pn(),contentRect:new Oo(0,0,0,0)}),Po=function(e,i){if(i===void 0&&(i=!1),In.has(e)&&!i)return In.get(e);if(ko(e))return In.set(e,Bi),Bi;var a=getComputedStyle(e),f=Kr(e)&&e.ownerSVGElement&&e.getBBox(),d=!tu&&a.boxSizing==="border-box",y=eu.test(a.writingMode||""),S=!f&&Li.test(a.overflowY||""),T=!f&&Li.test(a.overflowX||""),A=f?0:Et(a.paddingTop),E=f?0:Et(a.paddingRight),D=f?0:Et(a.paddingBottom),$=f?0:Et(a.paddingLeft),V=f?0:Et(a.borderTopWidth),Y=f?0:Et(a.borderRightWidth),se=f?0:Et(a.borderBottomWidth),N=f?0:Et(a.borderLeftWidth),L=$+E,Z=A+D,R=N+Y,ne=V+se,he=T?e.offsetHeight-ne-e.clientHeight:0,Q=S?e.offsetWidth-R-e.clientWidth:0,ve=d?L+R:0,ue=d?Z+ne:0,ge=f?f.width:Et(a.width)-ve-Q,Se=f?f.height:Et(a.height)-ue-he,be=ge+L+Q+R,ke=Se+Z+he+ne,Be=en({devicePixelContentBoxSize:pn(Math.round(ge*devicePixelRatio),Math.round(Se*devicePixelRatio),y),borderBoxSize:pn(be,ke,y),contentBoxSize:pn(ge,Se,y),contentRect:new Oo($,A,ge,Se)});return In.set(e,Be),Be},Ro=function(e,i,a){var f=Po(e,a),d=f.borderBoxSize,y=f.contentBoxSize,S=f.devicePixelContentBoxSize;switch(i){case On.DEVICE_PIXEL_CONTENT_BOX:return S;case On.BORDER_BOX:return d;default:return y}},nu=function(){function e(i){var a=Po(i);this.target=i,this.contentRect=a.contentRect,this.borderBoxSize=en([a.borderBoxSize]),this.contentBoxSize=en([a.contentBoxSize]),this.devicePixelContentBoxSize=en([a.devicePixelContentBoxSize])}return e}(),Do=function(e){if(ko(e))return 1/0;for(var i=0,a=e.parentNode;a;)i+=1,a=a.parentNode;return i},ru=function(){var e=1/0,i=[];Qt.forEach(function(S){if(S.activeTargets.length!==0){var T=[];S.activeTargets.forEach(function(E){var D=new nu(E.target),$=Do(E.target);T.push(D),E.lastReportedSize=Ro(E.target,E.observedBox),$e?a.activeTargets.push(d):a.skippedTargets.push(d))})})},iu=function(){var e=0;for(Fi(e);Gl();)e=ru(),Fi(e);return Kl()&&Zl(),e>0},yr,_o=[],ou=function(){return _o.splice(0).forEach(function(e){return e()})},au=function(e){if(!yr){var i=0,a=document.createTextNode(""),f={characterData:!0};new MutationObserver(function(){return ou()}).observe(a,f),yr=function(){a.textContent="".concat(i?i--:i++)}}_o.push(e),yr()},su=function(e){au(function(){requestAnimationFrame(e)})},Vn=0,lu=function(){return!!Vn},uu=250,cu={attributes:!0,characterData:!0,childList:!0,subtree:!0},Ii=["resize","load","transitionend","animationend","animationstart","animationiteration","keyup","keydown","mouseup","mousedown","mouseover","mouseout","blur","focus"],zi=function(e){return e===void 0&&(e=0),Date.now()+e},wr=!1,fu=function(){function e(){var i=this;this.stopped=!0,this.listener=function(){return i.schedule()}}return e.prototype.run=function(i){var a=this;if(i===void 0&&(i=uu),!wr){wr=!0;var f=zi(i);su(function(){var d=!1;try{d=iu()}finally{if(wr=!1,i=f-zi(),!lu())return;d?a.run(1e3):i>0?a.run(i):a.start()}})}},e.prototype.schedule=function(){this.stop(),this.run()},e.prototype.observe=function(){var i=this,a=function(){return i.observer&&i.observer.observe(document.body,cu)};document.body?a():An.addEventListener("DOMContentLoaded",a)},e.prototype.start=function(){var i=this;this.stopped&&(this.stopped=!1,this.observer=new MutationObserver(this.listener),this.observe(),Ii.forEach(function(a){return An.addEventListener(a,i.listener,!0)}))},e.prototype.stop=function(){var i=this;this.stopped||(this.observer&&this.observer.disconnect(),Ii.forEach(function(a){return An.removeEventListener(a,i.listener,!0)}),this.stopped=!0)},e}(),_r=new fu,Wi=function(e){!Vn&&e>0&&_r.start(),Vn+=e,!Vn&&_r.stop()},du=function(e){return!Kr(e)&&!Ql(e)&&getComputedStyle(e).display==="inline"},hu=function(){function e(i,a){this.target=i,this.observedBox=a||On.CONTENT_BOX,this.lastReportedSize={inlineSize:0,blockSize:0}}return e.prototype.isActive=function(){var i=Ro(this.target,this.observedBox,!0);return du(this.target)&&(this.lastReportedSize=i),this.lastReportedSize.inlineSize!==i.inlineSize||this.lastReportedSize.blockSize!==i.blockSize},e}(),pu=function(){function e(i,a){this.activeTargets=[],this.skippedTargets=[],this.observationTargets=[],this.observer=i,this.callback=a}return e}(),zn=new WeakMap,ji=function(e,i){for(var a=0;a=0&&(y&&Qt.splice(Qt.indexOf(f),1),f.observationTargets.splice(d,1),Wi(-1))},e.disconnect=function(i){var a=this,f=zn.get(i);f.observationTargets.slice().forEach(function(d){return a.unobserve(i,d.target)}),f.activeTargets.splice(0,f.activeTargets.length)},e}(),vu=function(){function e(i){if(arguments.length===0)throw new TypeError("Failed to construct 'ResizeObserver': 1 argument required, but only 0 present.");if(typeof i!="function")throw new TypeError("Failed to construct 'ResizeObserver': The callback provided as parameter 1 is not a function.");Wn.connect(this,i)}return e.prototype.observe=function(i,a){if(arguments.length===0)throw new TypeError("Failed to execute 'observe' on 'ResizeObserver': 1 argument required, but only 0 present.");if(!Ni(i))throw new TypeError("Failed to execute 'observe' on 'ResizeObserver': parameter 1 is not of type 'Element");Wn.observe(this,i,a)},e.prototype.unobserve=function(i){if(arguments.length===0)throw new TypeError("Failed to execute 'unobserve' on 'ResizeObserver': 1 argument required, but only 0 present.");if(!Ni(i))throw new TypeError("Failed to execute 'unobserve' on 'ResizeObserver': parameter 1 is not of type 'Element");Wn.unobserve(this,i)},e.prototype.disconnect=function(){Wn.disconnect(this)},e.toString=function(){return"function ResizeObserver () { [polyfill code] }"},e}();class gu{constructor(){this.handleResize=this.handleResize.bind(this),this.observer=new(typeof window<"u"&&window.ResizeObserver||vu)(this.handleResize),this.elHandlersMap=new Map}handleResize(i){for(const a of i){const f=this.elHandlersMap.get(a.target);f!==void 0&&f(a)}}registerHandler(i,a){this.elHandlersMap.set(i,a),this.observer.observe(i)}unregisterHandler(i){this.elHandlersMap.has(i)&&(this.elHandlersMap.delete(i),this.observer.unobserve(i))}}const Hi=new gu,$i=ct({name:"ResizeObserver",props:{onResize:Function},setup(e){let i=!1;const a=Qa().proxy;function f(d){const{onResize:y}=e;y!==void 0&&y(d)}Mt(()=>{const d=a.$el;if(d===void 0){Ri("resize-observer","$el does not exist.");return}if(d.nextElementSibling!==d.nextSibling&&d.nodeType===3&&d.nodeValue!==""){Ri("resize-observer","$el can not be observed (it may be a text node).");return}d.nextElementSibling!==null&&(Hi.registerHandler(d.nextElementSibling,f),i=!0)}),nn(()=>{i&&Hi.unregisterHandler(a.$el.nextElementSibling)})},render(){return es(this.$slots,"default")}});function No(e){return e instanceof HTMLElement}function Lo(e){for(let i=0;i=0;i--){const a=e.childNodes[i];if(No(a)&&(Fo(a)||Bo(a)))return!0}return!1}function Fo(e){if(!mu(e))return!1;try{e.focus({preventScroll:!0})}catch(i){}return document.activeElement===e}function mu(e){if(e.tabIndex>0||e.tabIndex===0&&e.getAttribute("tabIndex")!==null)return!0;if(e.getAttribute("disabled"))return!1;switch(e.nodeName){case"A":return!!e.href&&e.rel!=="ignore";case"INPUT":return e.type!=="hidden"&&e.type!=="file";case"BUTTON":case"SELECT":case"TEXTAREA":return!0;default:return!1}}let bn=[];const yu=ct({name:"FocusTrap",props:{disabled:Boolean,active:Boolean,autoFocus:{type:Boolean,default:!0},onEsc:Function,initialFocusTo:String,finalFocusTo:String,returnFocusOnDeactivated:{type:Boolean,default:!0}},setup(e){const i=Fl(),a=Ae(null),f=Ae(null);let d=!1,y=!1;const S=typeof document>"u"?null:document.activeElement;function T(){return bn[bn.length-1]===i}function A(L){var Z;L.code==="Escape"&&T()&&((Z=e.onEsc)===null||Z===void 0||Z.call(e,L))}Mt(()=>{tn(()=>e.active,L=>{L?($(),gt("keydown",document,A)):(ut("keydown",document,A),d&&V())},{immediate:!0})}),nn(()=>{ut("keydown",document,A),d&&V()});function E(L){if(!y&&T()){const Z=D();if(Z===null||Z.contains(er(L)))return;Y("first")}}function D(){const L=a.value;if(L===null)return null;let Z=L;for(;Z=Z.nextSibling,!(Z===null||Z instanceof Element&&Z.tagName==="DIV"););return Z}function $(){var L;if(!e.disabled){if(bn.push(i),e.autoFocus){const{initialFocusTo:Z}=e;Z===void 0?Y("first"):(L=Di(Z))===null||L===void 0||L.focus({preventScroll:!0})}d=!0,document.addEventListener("focus",E,!0)}}function V(){var L;if(e.disabled||(document.removeEventListener("focus",E,!0),bn=bn.filter(R=>R!==i),T()))return;const{finalFocusTo:Z}=e;Z!==void 0?(L=Di(Z))===null||L===void 0||L.focus({preventScroll:!0}):e.returnFocusOnDeactivated&&S instanceof HTMLElement&&(y=!0,S.focus({preventScroll:!0}),y=!1)}function Y(L){if(T()&&e.active){const Z=a.value,R=f.value;if(Z!==null&&R!==null){const ne=D();if(ne==null||ne===R){y=!0,Z.focus({preventScroll:!0}),y=!1;return}y=!0;const he=L==="first"?Lo(ne):Bo(ne);y=!1,he||(y=!0,Z.focus({preventScroll:!0}),y=!1)}}}function se(L){if(y)return;const Z=D();Z!==null&&(L.relatedTarget!==null&&Z.contains(L.relatedTarget)?Y("last"):Y("first"))}function N(L){y||(L.relatedTarget!==null&&L.relatedTarget===a.value?Y("last"):Y("first"))}return{focusableStartRef:a,focusableEndRef:f,focusableStyle:"position: absolute; height: 0; width: 0;",handleStartFocus:se,handleEndFocus:N}},render(){const{default:e}=this.$slots;if(e===void 0)return null;if(this.disabled)return e();const{active:i,focusableStyle:a}=this;return J(Ot,null,[J("div",{"aria-hidden":"true",tabindex:i?"0":"-1",ref:"focusableStartRef",style:a,onFocus:this.handleStartFocus}),e(),J("div",{"aria-hidden":"true",style:a,ref:"focusableEndRef",tabindex:i?"0":"-1",onFocus:this.handleEndFocus})])}});function wu(e){const i={isDeactivated:!1};let a=!1;return ts(()=>{if(i.isDeactivated=!1,!a){a=!0;return}e()}),ns(()=>{i.isDeactivated=!0,a||(a=!0)}),i}var bu="[object Symbol]";function Zr(e){return typeof e=="symbol"||Mr(e)&&Hr(e)==bu}function Io(e,i){for(var a=-1,f=e==null?0:e.length,d=Array(f);++ad?0:d+i),a=a>d?d:a,a<0&&(a+=d),d=i>a?0:a-i>>>0,i>>>=0;for(var y=Array(d);++f=f?e:Wu(e,i,a)}var Hu="\\ud800-\\udfff",$u="\\u0300-\\u036f",qu="\\ufe20-\\ufe2f",Uu="\\u20d0-\\u20ff",Xu=$u+qu+Uu,Vu="\\ufe0e\\ufe0f",Yu="\\u200d",Gu=RegExp("["+Yu+Hu+Xu+Vu+"]");function Ho(e){return Gu.test(e)}function Ku(e){return e.split("")}var $o="\\ud800-\\udfff",Zu="\\u0300-\\u036f",Ju="\\ufe20-\\ufe2f",Qu="\\u20d0-\\u20ff",ec=Zu+Ju+Qu,tc="\\ufe0e\\ufe0f",nc="["+$o+"]",Lr="["+ec+"]",Br="\\ud83c[\\udffb-\\udfff]",rc="(?:"+Lr+"|"+Br+")",qo="[^"+$o+"]",Uo="(?:\\ud83c[\\udde6-\\uddff]){2}",Xo="[\\ud800-\\udbff][\\udc00-\\udfff]",ic="\\u200d",Vo=rc+"?",Yo="["+tc+"]?",oc="(?:"+ic+"(?:"+[qo,Uo,Xo].join("|")+")"+Yo+Vo+")*",ac=Yo+Vo+oc,sc="(?:"+[qo+Lr+"?",Lr,Uo,Xo,nc].join("|")+")",lc=RegExp(Br+"(?="+Br+")|"+sc+ac,"g");function uc(e){return e.match(lc)||[]}function cc(e){return Ho(e)?uc(e):Ku(e)}function fc(e){return function(i){i=sr(i);var a=Ho(i)?cc(i):void 0,f=a?a[0]:i.charAt(0),d=a?ju(a,1).join(""):i.slice(1);return f[e]()+d}}var dc=fc("toUpperCase");const hc=dc;function pc(e,i,a,f){var d=-1,y=e==null?0:e.length;for(f&&y&&(a=e[++d]);++dT))return!1;var E=y.get(e),D=y.get(i);if(E&&D)return E==i&&D==e;var $=-1,V=!0,Y=a&Mf?new tr:void 0;for(y.set(e,i),y.set(i,e);++$`Please load all ${e}'s descendants before checking it.`},Time:{dateFormat:"yyyy-MM-dd",dateTimeFormat:"yyyy-MM-dd HH:mm:ss"},DatePicker:{yearFormat:"yyyy",monthFormat:"MMM",dayFormat:"eeeeee",yearTypeFormat:"yyyy",monthTypeFormat:"yyyy-MM",dateFormat:"yyyy-MM-dd",dateTimeFormat:"yyyy-MM-dd HH:mm:ss",quarterFormat:"yyyy-qqq",clear:"Clear",now:"Now",confirm:"Confirm",selectTime:"Select Time",selectDate:"Select Date",datePlaceholder:"Select Date",datetimePlaceholder:"Select Date and Time",monthPlaceholder:"Select Month",yearPlaceholder:"Select Year",quarterPlaceholder:"Select Quarter",startDatePlaceholder:"Start Date",endDatePlaceholder:"End Date",startDatetimePlaceholder:"Start Date and Time",endDatetimePlaceholder:"End Date and Time",startMonthPlaceholder:"Start Month",endMonthPlaceholder:"End Month",monthBeforeYear:!0,firstDayOfWeek:6,today:"Today"},DataTable:{checkTableAll:"Select all in the table",uncheckTableAll:"Unselect all in the table",confirm:"Confirm",clear:"Clear"},LegacyTransfer:{sourceTitle:"Source",targetTitle:"Target"},Transfer:{selectAll:"Select all",unselectAll:"Unselect all",clearAll:"Clear",total:e=>`Total ${e} items`,selected:e=>`${e} items selected`},Empty:{description:"No Data"},Select:{placeholder:"Please Select"},TimePicker:{placeholder:"Select Time",positiveText:"OK",negativeText:"Cancel",now:"Now"},Pagination:{goto:"Goto",selectionSuffix:"page"},DynamicTags:{add:"Add"},Log:{loading:"Loading"},Input:{placeholder:"Please Input"},InputNumber:{placeholder:"Please Input"},DynamicInput:{create:"Create"},ThemeEditor:{title:"Theme Editor",clearAllVars:"Clear All Variables",clearSearch:"Clear Search",filterCompName:"Filter Component Name",filterVarName:"Filter Variable Name",import:"Import",export:"Export",restore:"Reset to Default"},Image:{tipPrevious:"Previous picture (←)",tipNext:"Next picture (→)",tipCounterclockwise:"Counterclockwise",tipClockwise:"Clockwise",tipZoomOut:"Zoom out",tipZoomIn:"Zoom in",tipClose:"Close (Esc)",tipOriginalSize:"Zoom to original size"}},xd=bd;function xr(e){return function(){var i=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},a=i.width?String(i.width):e.defaultWidth,f=e.formats[a]||e.formats[e.defaultWidth];return f}}function xn(e){return function(i,a){var f=a!=null&&a.context?String(a.context):"standalone",d;if(f==="formatting"&&e.formattingValues){var y=e.defaultFormattingWidth||e.defaultWidth,S=a!=null&&a.width?String(a.width):y;d=e.formattingValues[S]||e.formattingValues[y]}else{var T=e.defaultWidth,A=a!=null&&a.width?String(a.width):e.defaultWidth;d=e.values[A]||e.values[T]}var E=e.argumentCallback?e.argumentCallback(i):i;return d[E]}}function Sn(e){return function(i){var a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},f=a.width,d=f&&e.matchPatterns[f]||e.matchPatterns[e.defaultMatchWidth],y=i.match(d);if(!y)return null;var S=y[0],T=f&&e.parsePatterns[f]||e.parsePatterns[e.defaultParseWidth],A=Array.isArray(T)?Cd(T,function($){return $.test(S)}):Sd(T,function($){return $.test(S)}),E;E=e.valueCallback?e.valueCallback(A):A,E=a.valueCallback?a.valueCallback(E):E;var D=i.slice(S.length);return{value:E,rest:D}}}function Sd(e,i){for(var a in e)if(e.hasOwnProperty(a)&&i(e[a]))return a}function Cd(e,i){for(var a=0;a1&&arguments[1]!==void 0?arguments[1]:{},f=i.match(e.matchPattern);if(!f)return null;var d=f[0],y=i.match(e.parsePattern);if(!y)return null;var S=e.valueCallback?e.valueCallback(y[0]):y[0];S=a.valueCallback?a.valueCallback(S):S;var T=i.slice(d.length);return{value:S,rest:T}}}var Td={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"}},Ed=function(i,a,f){var d,y=Td[i];return typeof y=="string"?d=y:a===1?d=y.one:d=y.other.replace("{{count}}",a.toString()),f!=null&&f.addSuffix?f.comparison&&f.comparison>0?"in "+d:d+" ago":d};const Md=Ed;var Od={full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},kd={full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},Pd={full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},Rd={date:xr({formats:Od,defaultWidth:"full"}),time:xr({formats:kd,defaultWidth:"full"}),dateTime:xr({formats:Pd,defaultWidth:"full"})};const Dd=Rd;var _d={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"},Nd=function(i,a,f,d){return _d[i]};const Ld=Nd;var Bd={narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},Fd={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},Id={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"]},zd={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"]},Wd={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"}},jd={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"}},Hd=function(i,a){var f=Number(i),d=f%100;if(d>20||d<10)switch(d%10){case 1:return f+"st";case 2:return f+"nd";case 3:return f+"rd"}return f+"th"},$d={ordinalNumber:Hd,era:xn({values:Bd,defaultWidth:"wide"}),quarter:xn({values:Fd,defaultWidth:"wide",argumentCallback:function(i){return i-1}}),month:xn({values:Id,defaultWidth:"wide"}),day:xn({values:zd,defaultWidth:"wide"}),dayPeriod:xn({values:Wd,defaultWidth:"wide",formattingValues:jd,defaultFormattingWidth:"wide"})};const qd=$d;var Ud=/^(\d+)(th|st|nd|rd)?/i,Xd=/\d+/i,Vd={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},Yd={any:[/^b/i,/^(a|c)/i]},Gd={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},Kd={any:[/1/i,/2/i,/3/i,/4/i]},Zd={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},Jd={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]},Qd={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},eh={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]},th={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},nh={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}},rh={ordinalNumber:Ad({matchPattern:Ud,parsePattern:Xd,valueCallback:function(i){return parseInt(i,10)}}),era:Sn({matchPatterns:Vd,defaultMatchWidth:"wide",parsePatterns:Yd,defaultParseWidth:"any"}),quarter:Sn({matchPatterns:Gd,defaultMatchWidth:"wide",parsePatterns:Kd,defaultParseWidth:"any",valueCallback:function(i){return i+1}}),month:Sn({matchPatterns:Zd,defaultMatchWidth:"wide",parsePatterns:Jd,defaultParseWidth:"any"}),day:Sn({matchPatterns:Qd,defaultMatchWidth:"wide",parsePatterns:eh,defaultParseWidth:"any"}),dayPeriod:Sn({matchPatterns:th,defaultMatchWidth:"any",parsePatterns:nh,defaultParseWidth:"any"})};const ih=rh;var oh={code:"en-US",formatDistance:Md,formatLong:Dd,formatRelative:Ld,localize:qd,match:ih,options:{weekStartsOn:0,firstWeekContainsDate:1}};const ah=oh,sh={name:"en-US",locale:ah},lh=sh;function uh(e){const{mergedLocaleRef:i,mergedDateLocaleRef:a}=gn(Ur,null)||{},f=Ue(()=>{var y,S;return(S=(y=i==null?void 0:i.value)===null||y===void 0?void 0:y[e])!==null&&S!==void 0?S:xd[e]});return{dateLocaleRef:Ue(()=>{var y;return(y=a==null?void 0:a.value)!==null&&y!==void 0?y:lh}),localeRef:f}}function ch(e,i,a){if(!i){Ss("use-style","No style is specified.");return}const f=go(),d=gn(Ur,null),y=()=>{const S=a==null?void 0:a.value;i.mount({id:S===void 0?e:S+e,head:!0,anchorMetaName:kr,props:{bPrefix:S?`.${S}-`:void 0},ssr:f}),d!=null&&d.preflightStyleDisabled||Cs.mount({id:"n-global",head:!0,anchorMetaName:kr,ssr:f})};f?y():fo(y)}function fh(e,i,a){if(!i)return;const f=go(),d=Ue(()=>{const{value:S}=i;if(!S)return;const T=S[e];if(T)return T}),y=()=>{jt(()=>{const{value:S}=a,T=`${S}${e}Rtl`;if(Wl(T,f))return;const{value:A}=d;A&&A.style.mount({id:T,head:!0,anchorMetaName:kr,props:{bPrefix:S?`.${S}-`:void 0},ssr:f})})};return f?y():fo(y),d}function ur(e,i){return ct({name:hc(e),setup(){var a;const f=(a=gn(Ur,null))===null||a===void 0?void 0:a.mergedIconsRef;return()=>{var d;const y=(d=f==null?void 0:f.value)===null||d===void 0?void 0:d[e];return y?y():i}}})}const dh=ur("rotateClockwise",J("svg",{viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"},J("path",{d:"M3 10C3 6.13401 6.13401 3 10 3C13.866 3 17 6.13401 17 10C17 12.7916 15.3658 15.2026 13 16.3265V14.5C13 14.2239 12.7761 14 12.5 14C12.2239 14 12 14.2239 12 14.5V17.5C12 17.7761 12.2239 18 12.5 18H15.5C15.7761 18 16 17.7761 16 17.5C16 17.2239 15.7761 17 15.5 17H13.8758C16.3346 15.6357 18 13.0128 18 10C18 5.58172 14.4183 2 10 2C5.58172 2 2 5.58172 2 10C2 10.2761 2.22386 10.5 2.5 10.5C2.77614 10.5 3 10.2761 3 10Z",fill:"currentColor"}),J("path",{d:"M10 12C11.1046 12 12 11.1046 12 10C12 8.89543 11.1046 8 10 8C8.89543 8 8 8.89543 8 10C8 11.1046 8.89543 12 10 12ZM10 11C9.44772 11 9 10.5523 9 10C9 9.44772 9.44772 9 10 9C10.5523 9 11 9.44772 11 10C11 10.5523 10.5523 11 10 11Z",fill:"currentColor"}))),hh=ur("rotateClockwise",J("svg",{viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"},J("path",{d:"M17 10C17 6.13401 13.866 3 10 3C6.13401 3 3 6.13401 3 10C3 12.7916 4.63419 15.2026 7 16.3265V14.5C7 14.2239 7.22386 14 7.5 14C7.77614 14 8 14.2239 8 14.5V17.5C8 17.7761 7.77614 18 7.5 18H4.5C4.22386 18 4 17.7761 4 17.5C4 17.2239 4.22386 17 4.5 17H6.12422C3.66539 15.6357 2 13.0128 2 10C2 5.58172 5.58172 2 10 2C14.4183 2 18 5.58172 18 10C18 10.2761 17.7761 10.5 17.5 10.5C17.2239 10.5 17 10.2761 17 10Z",fill:"currentColor"}),J("path",{d:"M10 12C8.89543 12 8 11.1046 8 10C8 8.89543 8.89543 8 10 8C11.1046 8 12 8.89543 12 10C12 11.1046 11.1046 12 10 12ZM10 11C10.5523 11 11 10.5523 11 10C11 9.44772 10.5523 9 10 9C9.44772 9 9 9.44772 9 10C9 10.5523 9.44772 11 10 11Z",fill:"currentColor"}))),ph=ur("zoomIn",J("svg",{viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"},J("path",{d:"M11.5 8.5C11.5 8.22386 11.2761 8 11 8H9V6C9 5.72386 8.77614 5.5 8.5 5.5C8.22386 5.5 8 5.72386 8 6V8H6C5.72386 8 5.5 8.22386 5.5 8.5C5.5 8.77614 5.72386 9 6 9H8V11C8 11.2761 8.22386 11.5 8.5 11.5C8.77614 11.5 9 11.2761 9 11V9H11C11.2761 9 11.5 8.77614 11.5 8.5Z",fill:"currentColor"}),J("path",{d:"M8.5 3C11.5376 3 14 5.46243 14 8.5C14 9.83879 13.5217 11.0659 12.7266 12.0196L16.8536 16.1464C17.0488 16.3417 17.0488 16.6583 16.8536 16.8536C16.68 17.0271 16.4106 17.0464 16.2157 16.9114L16.1464 16.8536L12.0196 12.7266C11.0659 13.5217 9.83879 14 8.5 14C5.46243 14 3 11.5376 3 8.5C3 5.46243 5.46243 3 8.5 3ZM8.5 4C6.01472 4 4 6.01472 4 8.5C4 10.9853 6.01472 13 8.5 13C10.9853 13 13 10.9853 13 8.5C13 6.01472 10.9853 4 8.5 4Z",fill:"currentColor"}))),vh=ur("zoomOut",J("svg",{viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"},J("path",{d:"M11 8C11.2761 8 11.5 8.22386 11.5 8.5C11.5 8.77614 11.2761 9 11 9H6C5.72386 9 5.5 8.77614 5.5 8.5C5.5 8.22386 5.72386 8 6 8H11Z",fill:"currentColor"}),J("path",{d:"M14 8.5C14 5.46243 11.5376 3 8.5 3C5.46243 3 3 5.46243 3 8.5C3 11.5376 5.46243 14 8.5 14C9.83879 14 11.0659 13.5217 12.0196 12.7266L16.1464 16.8536L16.2157 16.9114C16.4106 17.0464 16.68 17.0271 16.8536 16.8536C17.0488 16.6583 17.0488 16.3417 16.8536 16.1464L12.7266 12.0196C13.5217 11.0659 14 9.83879 14 8.5ZM4 8.5C4 6.01472 6.01472 4 8.5 4C10.9853 4 13 6.01472 13 8.5C13 10.9853 10.9853 13 8.5 13C6.01472 13 4 10.9853 4 8.5Z",fill:"currentColor"}))),gh=ct({name:"ResizeSmall",render(){return J("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20"},J("g",{fill:"none"},J("path",{d:"M5.5 4A1.5 1.5 0 0 0 4 5.5v1a.5.5 0 0 1-1 0v-1A2.5 2.5 0 0 1 5.5 3h1a.5.5 0 0 1 0 1h-1zM16 5.5A1.5 1.5 0 0 0 14.5 4h-1a.5.5 0 0 1 0-1h1A2.5 2.5 0 0 1 17 5.5v1a.5.5 0 0 1-1 0v-1zm0 9a1.5 1.5 0 0 1-1.5 1.5h-1a.5.5 0 0 0 0 1h1a2.5 2.5 0 0 0 2.5-2.5v-1a.5.5 0 0 0-1 0v1zm-12 0A1.5 1.5 0 0 0 5.5 16h1.25a.5.5 0 0 1 0 1H5.5A2.5 2.5 0 0 1 3 14.5v-1.25a.5.5 0 0 1 1 0v1.25zM8.5 7A1.5 1.5 0 0 0 7 8.5v3A1.5 1.5 0 0 0 8.5 13h3a1.5 1.5 0 0 0 1.5-1.5v-3A1.5 1.5 0 0 0 11.5 7h-3zM8 8.5a.5.5 0 0 1 .5-.5h3a.5.5 0 0 1 .5.5v3a.5.5 0 0 1-.5.5h-3a.5.5 0 0 1-.5-.5v-3z",fill:"currentColor"})))}}),mh=Qe("base-icon",` height: 1em; width: 1em; line-height: 1em; text-align: center; display: inline-block; position: relative; fill: currentColor; transform: translateZ(0); `,[Ve("svg",` height: 1em; width: 1em; `)]),zt=ct({name:"BaseIcon",props:{role:String,ariaLabel:String,ariaDisabled:{type:Boolean,default:void 0},ariaHidden:{type:Boolean,default:void 0},clsPrefix:{type:String,required:!0},onClick:Function,onMousedown:Function,onMouseup:Function},setup(e){ch("-base-icon",mh,Kt(e,"clsPrefix"))},render(){return J("i",{class:`${this.clsPrefix}-base-icon`,onClick:this.onClick,onMousedown:this.onMousedown,onMouseup:this.onMouseup,role:this.role,"aria-label":this.ariaLabel,"aria-hidden":this.ariaHidden,"aria-disabled":this.ariaDisabled},this.$slots)}}),yh=e=>{const{scrollbarColor:i,scrollbarColorHover:a}=e;return{color:i,colorHover:a}},wh={name:"Scrollbar",common:ir,self:yh},bh=wh,{cubicBezierEaseInOut:lo}=As;function Wr({name:e="fade-in",enterDuration:i="0.2s",leaveDuration:a="0.2s",enterCubicBezier:f=lo,leaveCubicBezier:d=lo}={}){return[Ve(`&.${e}-transition-enter-active`,{transition:`all ${i} ${f}!important`}),Ve(`&.${e}-transition-leave-active`,{transition:`all ${a} ${d}!important`}),Ve(`&.${e}-transition-enter-from, &.${e}-transition-leave-to`,{opacity:0}),Ve(`&.${e}-transition-leave-from, &.${e}-transition-enter-to`,{opacity:1})]}const xh=Qe("scrollbar",` overflow: hidden; position: relative; z-index: auto; height: 100%; width: 100%; `,[Ve(">",[Qe("scrollbar-container",` width: 100%; overflow: scroll; height: 100%; max-height: inherit; scrollbar-width: none; `,[Ve("&::-webkit-scrollbar, &::-webkit-scrollbar-track-piece, &::-webkit-scrollbar-thumb",` width: 0; height: 0; display: none; `),Ve(">",[Qe("scrollbar-content",` box-sizing: border-box; min-width: 100%; `)])])]),Ve(">, +",[Qe("scrollbar-rail",` position: absolute; pointer-events: none; user-select: none; -webkit-user-select: none; `,[Zt("horizontal",` left: 2px; right: 2px; bottom: 4px; height: var(--n-scrollbar-height); `,[Ve(">",[Gt("scrollbar",` height: var(--n-scrollbar-height); border-radius: var(--n-scrollbar-border-radius); right: 0; `)])]),Zt("vertical",` right: 4px; top: 2px; bottom: 2px; width: var(--n-scrollbar-width); `,[Ve(">",[Gt("scrollbar",` width: var(--n-scrollbar-width); border-radius: var(--n-scrollbar-border-radius); bottom: 0; `)])]),Zt("disabled",[Ve(">",[Gt("scrollbar",{pointerEvents:"none"})])]),Ve(">",[Gt("scrollbar",` position: absolute; cursor: pointer; pointer-events: all; background-color: var(--n-scrollbar-color); transition: background-color .2s var(--n-scrollbar-bezier); `,[Wr(),Ve("&:hover",{backgroundColor:"var(--n-scrollbar-color-hover)"})])])])])]),Sh=Object.assign(Object.assign({},Lt.props),{size:{type:Number,default:5},duration:{type:Number,default:0},scrollable:{type:Boolean,default:!0},xScrollable:Boolean,trigger:{type:String,default:"hover"},useUnifiedContainer:Boolean,triggerDisplayManually:Boolean,container:Function,content:Function,containerClass:String,containerStyle:[String,Object],contentClass:String,contentStyle:[String,Object],horizontalRailStyle:[String,Object],verticalRailStyle:[String,Object],onScroll:Function,onWheel:Function,onResize:Function,internalOnUpdateScrollLeft:Function,internalHoistYRail:Boolean}),Ch=ct({name:"Scrollbar",props:Sh,inheritAttrs:!1,setup(e){const{mergedClsPrefixRef:i,inlineThemeDisabled:a,mergedRtlRef:f}=Pn(e),d=fh("Scrollbar",f,i),y=Ae(null),S=Ae(null),T=Ae(null),A=Ae(null),E=Ae(null),D=Ae(null),$=Ae(null),V=Ae(null),Y=Ae(null),se=Ae(null),N=Ae(null),L=Ae(0),Z=Ae(0),R=Ae(!1),ne=Ae(!1);let he=!1,Q=!1,ve,ue,ge=0,Se=0,be=0,ke=0;const Be=Ul(),Te=Ue(()=>{const{value:X}=V,{value:ce}=D,{value:we}=se;return X===null||ce===null||we===null?0:Math.min(X,we*X/ce+e.size*1.5)}),de=Ue(()=>`${Te.value}px`),Pe=Ue(()=>{const{value:X}=Y,{value:ce}=$,{value:we}=N;return X===null||ce===null||we===null?0:we*X/ce+e.size*1.5}),q=Ue(()=>`${Pe.value}px`),s=Ue(()=>{const{value:X}=V,{value:ce}=L,{value:we}=D,{value:De}=se;if(X===null||we===null||De===null)return 0;{const We=we-X;return We?ce/We*(De-Te.value):0}}),l=Ue(()=>`${s.value}px`),n=Ue(()=>{const{value:X}=Y,{value:ce}=Z,{value:we}=$,{value:De}=N;if(X===null||we===null||De===null)return 0;{const We=we-X;return We?ce/We*(De-Pe.value):0}}),m=Ue(()=>`${n.value}px`),b=Ue(()=>{const{value:X}=V,{value:ce}=D;return X!==null&&ce!==null&&ce>X}),B=Ue(()=>{const{value:X}=Y,{value:ce}=$;return X!==null&&ce!==null&&ce>X}),oe=Ue(()=>{const{trigger:X}=e;return X==="none"||R.value}),ee=Ue(()=>{const{trigger:X}=e;return X==="none"||ne.value}),pe=Ue(()=>{const{container:X}=e;return X?X():S.value}),Re=Ue(()=>{const{content:X}=e;return X?X():T.value}),_e=wu(()=>{e.container||nt({top:L.value,left:Z.value})}),Ie=()=>{_e.isDeactivated||mt()},lt=X=>{if(_e.isDeactivated)return;const{onResize:ce}=e;ce&&ce(X),mt()},nt=(X,ce)=>{if(!e.scrollable)return;if(typeof X=="number"){G(ce!=null?ce:0,X,0,!1,"auto");return}const{left:we,top:De,index:We,elSize:Ke,position:ft,behavior:Fe,el:$e,debounce:Ht=!0}=X;(we!==void 0||De!==void 0)&&G(we!=null?we:0,De!=null?De:0,0,!1,Fe),$e!==void 0?G(0,$e.offsetTop,$e.offsetHeight,Ht,Fe):We!==void 0&&Ke!==void 0?G(0,We*Ke,Ke,Ht,Fe):ft==="bottom"?G(0,Number.MAX_SAFE_INTEGER,0,!1,Fe):ft==="top"&&G(0,0,0,!1,Fe)},He=(X,ce)=>{if(!e.scrollable)return;const{value:we}=pe;we&&(typeof X=="object"?we.scrollBy(X):we.scrollBy(X,ce||0))};function G(X,ce,we,De,We){const{value:Ke}=pe;if(Ke){if(De){const{scrollTop:ft,offsetHeight:Fe}=Ke;if(ce>ft){ce+we<=ft+Fe||Ke.scrollTo({left:X,top:ce+we-Fe,behavior:We});return}}Ke.scrollTo({left:X,top:ce,behavior:We})}}function me(){Ye(),rt(),mt()}function le(){Me()}function Me(){Ne(),Xe()}function Ne(){ue!==void 0&&window.clearTimeout(ue),ue=window.setTimeout(()=>{ne.value=!1},e.duration)}function Xe(){ve!==void 0&&window.clearTimeout(ve),ve=window.setTimeout(()=>{R.value=!1},e.duration)}function Ye(){ve!==void 0&&window.clearTimeout(ve),R.value=!0}function rt(){ue!==void 0&&window.clearTimeout(ue),ne.value=!0}function et(X){const{onScroll:ce}=e;ce&&ce(X),kt()}function kt(){const{value:X}=pe;X&&(L.value=X.scrollTop,Z.value=X.scrollLeft*(d!=null&&d.value?-1:1))}function rn(){const{value:X}=Re;X&&(D.value=X.offsetHeight,$.value=X.offsetWidth);const{value:ce}=pe;ce&&(V.value=ce.offsetHeight,Y.value=ce.offsetWidth);const{value:we}=E,{value:De}=A;we&&(N.value=we.offsetWidth),De&&(se.value=De.offsetHeight)}function pt(){const{value:X}=pe;X&&(L.value=X.scrollTop,Z.value=X.scrollLeft*(d!=null&&d.value?-1:1),V.value=X.offsetHeight,Y.value=X.offsetWidth,D.value=X.scrollHeight,$.value=X.scrollWidth);const{value:ce}=E,{value:we}=A;ce&&(N.value=ce.offsetWidth),we&&(se.value=we.offsetHeight)}function mt(){e.scrollable&&(e.useUnifiedContainer?pt():(rn(),kt()))}function Ge(X){var ce;return!(!((ce=y.value)===null||ce===void 0)&&ce.contains(er(X)))}function yn(X){X.preventDefault(),X.stopPropagation(),Q=!0,gt("mousemove",window,Pt,!0),gt("mouseup",window,Bt,!0),Se=Z.value,be=d!=null&&d.value?window.innerWidth-X.clientX:X.clientX}function Pt(X){if(!Q)return;ve!==void 0&&window.clearTimeout(ve),ue!==void 0&&window.clearTimeout(ue);const{value:ce}=Y,{value:we}=$,{value:De}=Pe;if(ce===null||we===null)return;const Ke=(d!=null&&d.value?window.innerWidth-X.clientX-be:X.clientX-be)*(we-ce)/(ce-De),ft=we-ce;let Fe=Se+Ke;Fe=Math.min(ft,Fe),Fe=Math.max(Fe,0);const{value:$e}=pe;if($e){$e.scrollLeft=Fe*(d!=null&&d.value?-1:1);const{internalOnUpdateScrollLeft:Ht}=e;Ht&&Ht(Fe)}}function Bt(X){X.preventDefault(),X.stopPropagation(),ut("mousemove",window,Pt,!0),ut("mouseup",window,Bt,!0),Q=!1,mt(),Ge(X)&&Me()}function xt(X){X.preventDefault(),X.stopPropagation(),he=!0,gt("mousemove",window,yt,!0),gt("mouseup",window,wt,!0),ge=L.value,ke=X.clientY}function yt(X){if(!he)return;ve!==void 0&&window.clearTimeout(ve),ue!==void 0&&window.clearTimeout(ue);const{value:ce}=V,{value:we}=D,{value:De}=Te;if(ce===null||we===null)return;const Ke=(X.clientY-ke)*(we-ce)/(ce-De),ft=we-ce;let Fe=ge+Ke;Fe=Math.min(ft,Fe),Fe=Math.max(Fe,0);const{value:$e}=pe;$e&&($e.scrollTop=Fe)}function wt(X){X.preventDefault(),X.stopPropagation(),ut("mousemove",window,yt,!0),ut("mouseup",window,wt,!0),he=!1,mt(),Ge(X)&&Me()}jt(()=>{const{value:X}=B,{value:ce}=b,{value:we}=i,{value:De}=E,{value:We}=A;De&&(X?De.classList.remove(`${we}-scrollbar-rail--disabled`):De.classList.add(`${we}-scrollbar-rail--disabled`)),We&&(ce?We.classList.remove(`${we}-scrollbar-rail--disabled`):We.classList.add(`${we}-scrollbar-rail--disabled`))}),Mt(()=>{e.container||mt()}),nn(()=>{ve!==void 0&&window.clearTimeout(ve),ue!==void 0&&window.clearTimeout(ue),ut("mousemove",window,yt,!0),ut("mouseup",window,wt,!0)});const Ft=Lt("Scrollbar","-scrollbar",xh,bh,e,i),qe=Ue(()=>{const{common:{cubicBezierEaseInOut:X,scrollbarBorderRadius:ce,scrollbarHeight:we,scrollbarWidth:De},self:{color:We,colorHover:Ke}}=Ft.value;return{"--n-scrollbar-bezier":X,"--n-scrollbar-color":We,"--n-scrollbar-color-hover":Ke,"--n-scrollbar-border-radius":ce,"--n-scrollbar-width":De,"--n-scrollbar-height":we}}),Je=a?Xr("scrollbar",void 0,qe,e):void 0;return Object.assign(Object.assign({},{scrollTo:nt,scrollBy:He,sync:mt,syncUnifiedContainer:pt,handleMouseEnterWrapper:me,handleMouseLeaveWrapper:le}),{mergedClsPrefix:i,rtlEnabled:d,containerScrollTop:L,wrapperRef:y,containerRef:S,contentRef:T,yRailRef:A,xRailRef:E,needYBar:b,needXBar:B,yBarSizePx:de,xBarSizePx:q,yBarTopPx:l,xBarLeftPx:m,isShowXBar:oe,isShowYBar:ee,isIos:Be,handleScroll:et,handleContentResize:Ie,handleContainerResize:lt,handleYScrollMouseDown:xt,handleXScrollMouseDown:yn,cssVars:a?void 0:qe,themeClass:Je==null?void 0:Je.themeClass,onRender:Je==null?void 0:Je.onRender})},render(){var e;const{$slots:i,mergedClsPrefix:a,triggerDisplayManually:f,rtlEnabled:d,internalHoistYRail:y}=this;if(!this.scrollable)return(e=i.default)===null||e===void 0?void 0:e.call(i);const S=this.trigger==="none",T=()=>J("div",{ref:"yRailRef",class:[`${a}-scrollbar-rail`,`${a}-scrollbar-rail--vertical`],"data-scrollbar-rail":!0,style:this.verticalRailStyle,"aria-hidden":!0},J(S?Oi:fn,S?null:{name:"fade-in-transition"},{default:()=>this.needYBar&&this.isShowYBar&&!this.isIos?J("div",{class:`${a}-scrollbar-rail__scrollbar`,style:{height:this.yBarSizePx,top:this.yBarTopPx},onMousedown:this.handleYScrollMouseDown}):null})),A=()=>{var D,$;return(D=this.onRender)===null||D===void 0||D.call(this),J("div",Tn(this.$attrs,{role:"none",ref:"wrapperRef",class:[`${a}-scrollbar`,this.themeClass,d&&`${a}-scrollbar--rtl`],style:this.cssVars,onMouseenter:f?void 0:this.handleMouseEnterWrapper,onMouseleave:f?void 0:this.handleMouseLeaveWrapper}),[this.container?($=i.default)===null||$===void 0?void 0:$.call(i):J("div",{role:"none",ref:"containerRef",class:[`${a}-scrollbar-container`,this.containerClass],style:this.containerStyle,onScroll:this.handleScroll,onWheel:this.onWheel},J($i,{onResize:this.handleContentResize},{default:()=>J("div",{ref:"contentRef",role:"none",style:[{width:this.xScrollable?"fit-content":null},this.contentStyle],class:[`${a}-scrollbar-content`,this.contentClass]},i)})),y?null:T(),this.xScrollable&&J("div",{ref:"xRailRef",class:[`${a}-scrollbar-rail`,`${a}-scrollbar-rail--horizontal`],style:this.horizontalRailStyle,"data-scrollbar-rail":!0,"aria-hidden":!0},J(S?Oi:fn,S?null:{name:"fade-in-transition"},{default:()=>this.needXBar&&this.isShowXBar&&!this.isIos?J("div",{class:`${a}-scrollbar-rail__scrollbar`,style:{width:this.xBarSizePx,right:d?this.xBarLeftPx:void 0,left:d?void 0:this.xBarLeftPx},onMousedown:this.handleXScrollMouseDown}):null}))])},E=this.container?A():J($i,{onResize:this.handleContainerResize},{default:A});return y?J(Ot,null,E,T()):E}}),Ah=Ch,Th={space:"6px",spaceArrow:"10px",arrowOffset:"10px",arrowOffsetVertical:"10px",arrowHeight:"6px",padding:"8px 14px"},Eh=e=>{const{boxShadow2:i,popoverColor:a,textColor2:f,borderRadius:d,fontSize:y,dividerColor:S}=e;return Object.assign(Object.assign({},Th),{fontSize:y,borderRadius:d,color:a,dividerColor:S,textColor:f,boxShadow:i})},Mh={name:"Popover",common:ir,self:Eh},fa=Mh,Sr={top:"bottom",bottom:"top",left:"right",right:"left"},st="var(--n-arrow-height) * 1.414",Oh=Ve([Qe("popover",` transition: box-shadow .3s var(--n-bezier), background-color .3s var(--n-bezier), color .3s var(--n-bezier); position: relative; font-size: var(--n-font-size); color: var(--n-text-color); box-shadow: var(--n-box-shadow); word-break: break-word; `,[Ve(">",[Qe("scrollbar",` height: inherit; max-height: inherit; `)]),Un("raw",` background-color: var(--n-color); border-radius: var(--n-border-radius); `,[Un("scrollable",[Un("show-header-or-footer","padding: var(--n-padding);")])]),Gt("header",` padding: var(--n-padding); border-bottom: 1px solid var(--n-divider-color); transition: border-color .3s var(--n-bezier); `),Gt("footer",` padding: var(--n-padding); border-top: 1px solid var(--n-divider-color); transition: border-color .3s var(--n-bezier); `),Zt("scrollable, show-header-or-footer",[Gt("content",` padding: var(--n-padding); `)])]),Qe("popover-shared",` transform-origin: inherit; `,[Qe("popover-arrow-wrapper",` position: absolute; overflow: hidden; pointer-events: none; `,[Qe("popover-arrow",` transition: background-color .3s var(--n-bezier); position: absolute; display: block; width: calc(${st}); height: calc(${st}); box-shadow: 0 0 8px 0 rgba(0, 0, 0, .12); transform: rotate(45deg); background-color: var(--n-color); pointer-events: all; `)]),Ve("&.popover-transition-enter-from, &.popover-transition-leave-to",` opacity: 0; transform: scale(.85); `),Ve("&.popover-transition-enter-to, &.popover-transition-leave-from",` transform: scale(1); opacity: 1; `),Ve("&.popover-transition-enter-active",` transition: box-shadow .3s var(--n-bezier), background-color .3s var(--n-bezier), color .3s var(--n-bezier), opacity .15s var(--n-bezier-ease-out), transform .15s var(--n-bezier-ease-out); `),Ve("&.popover-transition-leave-active",` transition: box-shadow .3s var(--n-bezier), background-color .3s var(--n-bezier), color .3s var(--n-bezier), opacity .15s var(--n-bezier-ease-in), transform .15s var(--n-bezier-ease-in); `)]),bt("top-start",` top: calc(${st} / -2); left: calc(${Rt("top-start")} - var(--v-offset-left)); `),bt("top",` top: calc(${st} / -2); transform: translateX(calc(${st} / -2)) rotate(45deg); left: 50%; `),bt("top-end",` top: calc(${st} / -2); right: calc(${Rt("top-end")} + var(--v-offset-left)); `),bt("bottom-start",` bottom: calc(${st} / -2); left: calc(${Rt("bottom-start")} - var(--v-offset-left)); `),bt("bottom",` bottom: calc(${st} / -2); transform: translateX(calc(${st} / -2)) rotate(45deg); left: 50%; `),bt("bottom-end",` bottom: calc(${st} / -2); right: calc(${Rt("bottom-end")} + var(--v-offset-left)); `),bt("left-start",` left: calc(${st} / -2); top: calc(${Rt("left-start")} - var(--v-offset-top)); `),bt("left",` left: calc(${st} / -2); transform: translateY(calc(${st} / -2)) rotate(45deg); top: 50%; `),bt("left-end",` left: calc(${st} / -2); bottom: calc(${Rt("left-end")} + var(--v-offset-top)); `),bt("right-start",` right: calc(${st} / -2); top: calc(${Rt("right-start")} - var(--v-offset-top)); `),bt("right",` right: calc(${st} / -2); transform: translateY(calc(${st} / -2)) rotate(45deg); top: 50%; `),bt("right-end",` right: calc(${st} / -2); bottom: calc(${Rt("right-end")} + var(--v-offset-top)); `),...md({top:["right-start","left-start"],right:["top-end","bottom-end"],bottom:["right-end","left-end"],left:["top-start","bottom-start"]},(e,i)=>{const a=["right","left"].includes(i),f=a?"width":"height";return e.map(d=>{const y=d.split("-")[1]==="end",T=`calc((${`var(--v-target-${f}, 0px)`} - ${st}) / 2)`,A=Rt(d);return Ve(`[v-placement="${d}"] >`,[Qe("popover-shared",[Zt("center-arrow",[Qe("popover-arrow",`${i}: calc(max(${T}, ${A}) ${y?"+":"-"} var(--v-offset-${a?"left":"top"}));`)])])])})})]);function Rt(e){return["top","bottom"].includes(e.split("-")[0])?"var(--n-arrow-offset)":"var(--n-arrow-offset-vertical)"}function bt(e,i){const a=e.split("-")[0],f=["top","bottom"].includes(a)?"height: var(--n-space-arrow);":"width: var(--n-space-arrow);";return Ve(`[v-placement="${e}"] >`,[Qe("popover-shared",` margin-${Sr[a]}: var(--n-space); `,[Zt("show-arrow",` margin-${Sr[a]}: var(--n-space-arrow); `),Zt("overlap",` margin: 0; `),Ts("popover-arrow-wrapper",` right: 0; left: 0; top: 0; bottom: 0; ${a}: 100%; ${Sr[a]}: auto; ${f} `,[Qe("popover-arrow",i)])])])}const da=Object.assign(Object.assign({},Lt.props),{to:Kn.propTo,show:Boolean,trigger:String,showArrow:Boolean,delay:Number,duration:Number,raw:Boolean,arrowPointToCenter:Boolean,arrowStyle:[String,Object],displayDirective:String,x:Number,y:Number,flip:Boolean,overlap:Boolean,placement:String,width:[Number,String],keepAliveOnHover:Boolean,scrollable:Boolean,contentStyle:[Object,String],headerStyle:[Object,String],footerStyle:[Object,String],internalDeactivateImmediately:Boolean,animated:Boolean,onClickoutside:Function,internalTrapFocus:Boolean,internalOnAfterLeave:Function,minWidth:Number,maxWidth:Number}),kh=({arrowStyle:e,clsPrefix:i})=>J("div",{key:"__popover-arrow__",class:`${i}-popover-arrow-wrapper`},J("div",{class:`${i}-popover-arrow`,style:e})),Ph=ct({name:"PopoverBody",inheritAttrs:!1,props:da,setup(e,{slots:i,attrs:a}){const{namespaceRef:f,mergedClsPrefixRef:d,inlineThemeDisabled:y}=Pn(e),S=Lt("Popover","-popover",Oh,fa,e,d),T=Ae(null),A=gn("NPopover"),E=Ae(null),D=Ae(e.show),$=Ae(!1);jt(()=>{const{show:ue}=e;ue&&!jl()&&!e.internalDeactivateImmediately&&($.value=!0)});const V=Ue(()=>{const{trigger:ue,onClickoutside:ge}=e,Se=[],{positionManuallyRef:{value:be}}=A;return be||(ue==="click"&&!ge&&Se.push([Pi,he,void 0,{capture:!0}]),ue==="hover"&&Se.push([Vl,ne])),ge&&Se.push([Pi,he,void 0,{capture:!0}]),(e.displayDirective==="show"||e.animated&&$.value)&&Se.push([ho,e.show]),Se}),Y=Ue(()=>{const ue=e.width==="trigger"?void 0:gr(e.width),ge=[];ue&&ge.push({width:ue});const{maxWidth:Se,minWidth:be}=e;return Se&&ge.push({maxWidth:gr(Se)}),be&&ge.push({maxWidth:gr(be)}),y||ge.push(se.value),ge}),se=Ue(()=>{const{common:{cubicBezierEaseInOut:ue,cubicBezierEaseIn:ge,cubicBezierEaseOut:Se},self:{space:be,spaceArrow:ke,padding:Be,fontSize:Te,textColor:de,dividerColor:Pe,color:q,boxShadow:s,borderRadius:l,arrowHeight:n,arrowOffset:m,arrowOffsetVertical:b}}=S.value;return{"--n-box-shadow":s,"--n-bezier":ue,"--n-bezier-ease-in":ge,"--n-bezier-ease-out":Se,"--n-font-size":Te,"--n-text-color":de,"--n-color":q,"--n-divider-color":Pe,"--n-border-radius":l,"--n-arrow-height":n,"--n-arrow-offset":m,"--n-arrow-offset-vertical":b,"--n-padding":Be,"--n-space":be,"--n-space-arrow":ke}}),N=y?Xr("popover",void 0,se,e):void 0;A.setBodyInstance({syncPosition:L}),nn(()=>{A.setBodyInstance(null)}),tn(Kt(e,"show"),ue=>{e.animated||(ue?D.value=!0:D.value=!1)});function L(){var ue;(ue=T.value)===null||ue===void 0||ue.syncPosition()}function Z(ue){e.trigger==="hover"&&e.keepAliveOnHover&&e.show&&A.handleMouseEnter(ue)}function R(ue){e.trigger==="hover"&&e.keepAliveOnHover&&A.handleMouseLeave(ue)}function ne(ue){e.trigger==="hover"&&!Q().contains(er(ue))&&A.handleMouseMoveOutside(ue)}function he(ue){(e.trigger==="click"&&!Q().contains(er(ue))||e.onClickoutside)&&A.handleClickOutside(ue)}function Q(){return A.getTriggerElement()}Cn(Es,E),Cn(Ms,null),Cn(Os,null);function ve(){if(N==null||N.onRender(),!(e.displayDirective==="show"||e.show||e.animated&&$.value))return null;let ge;const Se=A.internalRenderBodyRef.value,{value:be}=d;if(Se)ge=Se([`${be}-popover-shared`,N==null?void 0:N.themeClass.value,e.overlap&&`${be}-popover-shared--overlap`,e.showArrow&&`${be}-popover-shared--show-arrow`,e.arrowPointToCenter&&`${be}-popover-shared--center-arrow`],E,Y.value,Z,R);else{const{value:ke}=A.extraClassRef,{internalTrapFocus:Be}=e,Te=!yi(i.header)||!yi(i.footer),de=()=>{var Pe;const q=Te?J(Ot,null,vr(i.header,n=>n?J("div",{class:`${be}-popover__header`,style:e.headerStyle},n):null),vr(i.default,n=>n?J("div",{class:`${be}-popover__content`,style:e.contentStyle},i):null),vr(i.footer,n=>n?J("div",{class:`${be}-popover__footer`,style:e.footerStyle},n):null)):e.scrollable?(Pe=i.default)===null||Pe===void 0?void 0:Pe.call(i):J("div",{class:`${be}-popover__content`,style:e.contentStyle},i),s=e.scrollable?J(Ah,{contentClass:Te?void 0:`${be}-popover__content`,contentStyle:Te?void 0:e.contentStyle},{default:()=>q}):q,l=e.showArrow?kh({arrowStyle:e.arrowStyle,clsPrefix:be}):null;return[s,l]};ge=J("div",Tn({class:[`${be}-popover`,`${be}-popover-shared`,N==null?void 0:N.themeClass.value,ke.map(Pe=>`${be}-${Pe}`),{[`${be}-popover--scrollable`]:e.scrollable,[`${be}-popover--show-header-or-footer`]:Te,[`${be}-popover--raw`]:e.raw,[`${be}-popover-shared--overlap`]:e.overlap,[`${be}-popover-shared--show-arrow`]:e.showArrow,[`${be}-popover-shared--center-arrow`]:e.arrowPointToCenter}],ref:E,style:Y.value,onKeydown:A.handleKeydown,onMouseenter:Z,onMouseleave:R},a),Be?J(yu,{active:e.show,autoFocus:!0},{default:de}):de())}return Yn(ge,V.value)}return{displayed:$,namespace:f,isMounted:A.isMountedRef,zIndex:A.zIndexRef,followerRef:T,adjustedTo:Kn(e),followerEnabled:D,renderContentNode:ve}},render(){return J(ks,{ref:"followerRef",zIndex:this.zIndex,show:this.show,enabled:this.followerEnabled,to:this.adjustedTo,x:this.x,y:this.y,flip:this.flip,placement:this.placement,containerClass:this.namespace,overlap:this.overlap,width:this.width==="trigger"?"target":void 0,teleportDisabled:this.adjustedTo===Kn.tdkey},{default:()=>this.animated?J(fn,{name:"popover-transition",appear:this.isMounted,onEnter:()=>{this.followerEnabled=!0},onAfterLeave:()=>{var e;(e=this.internalOnAfterLeave)===null||e===void 0||e.call(this),this.followerEnabled=!1,this.displayed=!1}},{default:this.renderContentNode}):this.renderContentNode()})}}),Rh=Object.keys(da),Dh={focus:["onFocus","onBlur"],click:["onClick"],hover:["onMouseenter","onMouseleave"],manual:[],nested:["onFocus","onBlur","onMouseenter","onMouseleave","onClick"]};function _h(e,i,a){Dh[i].forEach(f=>{e.props?e.props=Object.assign({},e.props):e.props={};const d=e.props[f],y=a[f];d?e.props[f]=(...S)=>{d(...S),y(...S)}:e.props[f]=y})}const ha={show:{type:Boolean,default:void 0},defaultShow:Boolean,showArrow:{type:Boolean,default:!0},trigger:{type:String,default:"hover"},delay:{type:Number,default:100},duration:{type:Number,default:100},raw:Boolean,placement:{type:String,default:"top"},x:Number,y:Number,arrowPointToCenter:Boolean,disabled:Boolean,getDisabled:Function,displayDirective:{type:String,default:"if"},arrowStyle:[String,Object],flip:{type:Boolean,default:!0},animated:{type:Boolean,default:!0},width:{type:[Number,String],default:void 0},overlap:Boolean,keepAliveOnHover:{type:Boolean,default:!0},zIndex:Number,to:Kn.propTo,scrollable:Boolean,contentStyle:[Object,String],headerStyle:[Object,String],footerStyle:[Object,String],onClickoutside:Function,"onUpdate:show":[Function,Array],onUpdateShow:[Function,Array],internalDeactivateImmediately:Boolean,internalSyncTargetWithParent:Boolean,internalInheritedEventHandlers:{type:Array,default:()=>[]},internalTrapFocus:Boolean,internalExtraClass:{type:Array,default:()=>[]},onShow:[Function,Array],onHide:[Function,Array],arrow:{type:Boolean,default:void 0},minWidth:Number,maxWidth:Number},Nh=Object.assign(Object.assign(Object.assign({},Lt.props),ha),{internalOnAfterLeave:Function,internalRenderBody:Function}),Lh=ct({name:"Popover",inheritAttrs:!1,props:Nh,__popover__:!0,setup(e){jt(()=>{e.maxWidth!==void 0&&wn("popover","`max-width` is deprecated, please use `style` instead."),e.minWidth!==void 0&&wn("popover","`min-width` is deprecated, please use `style` instead."),e.arrow!==void 0&&wn("popover","`arrow` is deprecated, please use `showArrow` instead."),e.onHide!==void 0&&wn("popover","`on-hide` is deprecated, please use `on-update:show` instead."),e.onShow!==void 0&&wn("popover","`on-show` is deprecated, please use `on-update:show` instead.")});const i=mo(),a=Ae(null),f=Ue(()=>e.show),d=Ae(e.defaultShow),y=Ps(f,d),S=wi(()=>e.disabled?!1:y.value),T=()=>{if(e.disabled)return!0;const{getDisabled:de}=e;return!!(de!=null&&de())},A=()=>T()?!1:y.value,E=$l(e,["arrow","showArrow"]),D=Ue(()=>e.overlap?!1:E.value);let $=null;const V=Ae(null),Y=Ae(null),se=wi(()=>e.x!==void 0&&e.y!==void 0);function N(de){const{"onUpdate:show":Pe,onUpdateShow:q,onShow:s,onHide:l}=e;d.value=de,Pe&&Bn(Pe,de),q&&Bn(q,de),de&&s&&Bn(s,!0),de&&l&&Bn(l,!1)}function L(){$&&$.syncPosition()}function Z(){const{value:de}=V;de&&(window.clearTimeout(de),V.value=null)}function R(){const{value:de}=Y;de&&(window.clearTimeout(de),Y.value=null)}function ne(){const de=T();if(e.trigger==="focus"&&!de){if(A())return;N(!0)}}function he(){const de=T();if(e.trigger==="focus"&&!de){if(!A())return;N(!1)}}function Q(){const de=T();if(e.trigger==="hover"&&!de){if(R(),V.value!==null||A())return;const Pe=()=>{N(!0),V.value=null},{delay:q}=e;q===0?Pe():V.value=window.setTimeout(Pe,q)}}function ve(){const de=T();if(e.trigger==="hover"&&!de){if(Z(),Y.value!==null||!A())return;const Pe=()=>{N(!1),Y.value=null},{duration:q}=e;q===0?Pe():Y.value=window.setTimeout(Pe,q)}}function ue(){ve()}function ge(de){var Pe;A()&&(e.trigger==="click"&&(Z(),R(),N(!1)),(Pe=e.onClickoutside)===null||Pe===void 0||Pe.call(e,de))}function Se(){if(e.trigger==="click"&&!T()){Z(),R();const de=!A();N(de)}}function be(de){e.internalTrapFocus&&de.key==="Escape"&&(Z(),R(),N(!1))}function ke(de){d.value=de}function Be(){var de;return(de=a.value)===null||de===void 0?void 0:de.targetRef}function Te(de){$=de}return Cn("NPopover",{getTriggerElement:Be,handleKeydown:be,handleMouseEnter:Q,handleMouseLeave:ve,handleClickOutside:ge,handleMouseMoveOutside:ue,setBodyInstance:Te,positionManuallyRef:se,isMountedRef:i,zIndexRef:Kt(e,"zIndex"),extraClassRef:Kt(e,"internalExtraClass"),internalRenderBodyRef:Kt(e,"internalRenderBody")}),jt(()=>{y.value&&T()&&N(!1)}),{binderInstRef:a,positionManually:se,mergedShowConsideringDisabledProp:S,uncontrolledShow:d,mergedShowArrow:D,getMergedShow:A,setShow:ke,handleClick:Se,handleMouseEnter:Q,handleMouseLeave:ve,handleFocus:ne,handleBlur:he,syncPosition:L}},render(){var e;const{positionManually:i,$slots:a}=this;let f,d=!1;if(!i&&(a.activator?f=Mi(a,"activator"):f=Mi(a,"trigger"),f)){f=rs(f),f=f.type===is?J("span",[f]):f;const y={onClick:this.handleClick,onMouseenter:this.handleMouseEnter,onMouseleave:this.handleMouseLeave,onFocus:this.handleFocus,onBlur:this.handleBlur};if(!((e=f.type)===null||e===void 0)&&e.__popover__)d=!0,f.props||(f.props={internalSyncTargetWithParent:!0,internalInheritedEventHandlers:[]}),f.props.internalSyncTargetWithParent=!0,f.props.internalInheritedEventHandlers?f.props.internalInheritedEventHandlers=[y,...f.props.internalInheritedEventHandlers]:f.props.internalInheritedEventHandlers=[y];else{const{internalInheritedEventHandlers:S}=this,T=[y,...S],A={onBlur:E=>{T.forEach(D=>{D.onBlur(E)})},onFocus:E=>{T.forEach(D=>{D.onFocus(E)})},onClick:E=>{T.forEach(D=>{D.onClick(E)})},onMouseenter:E=>{T.forEach(D=>{D.onMouseenter(E)})},onMouseleave:E=>{T.forEach(D=>{D.onMouseleave(E)})}};_h(f,S?"nested":i?"manual":this.trigger,A)}}return J(Ds,{ref:"binderInstRef",syncTarget:!d,syncTargetWithParent:this.internalSyncTargetWithParent},{default:()=>{this.mergedShowConsideringDisabledProp;const y=this.getMergedShow();return[this.internalTrapFocus&&y?Yn(J("div",{style:{position:"fixed",inset:0}}),[[yo,{enabled:y,zIndex:this.zIndex}]]):null,i?null:J(Rs,null,{default:()=>f}),J(Ph,Il(this.$props,Rh,Object.assign(Object.assign({},this.$attrs),{showArrow:this.mergedShowArrow,show:y})),{default:()=>{var S,T;return(T=(S=this.$slots).default)===null||T===void 0?void 0:T.call(S)},header:()=>{var S,T;return(T=(S=this.$slots).header)===null||T===void 0?void 0:T.call(S)},footer:()=>{var S,T;return(T=(S=this.$slots).footer)===null||T===void 0?void 0:T.call(S)}})]}})}}),Bh=Hl&&"loading"in document.createElement("img"),Fh=(e={})=>{var i;const{root:a=null}=e;return{hash:`${e.rootMargin||"0px 0px 0px 0px"}-${Array.isArray(e.threshold)?e.threshold.join(","):(i=e.threshold)!==null&&i!==void 0?i:"0"}`,options:Object.assign(Object.assign({},e),{root:(typeof a=="string"?document.querySelector(a):a)||document.documentElement})}},Cr=new WeakMap,Ar=new WeakMap,Tr=new WeakMap,Ih=(e,i,a)=>{if(!e)return()=>{};const f=Fh(i),{root:d}=f.options;let y;const S=Cr.get(d);S?y=S:(y=new Map,Cr.set(d,y));let T,A;y.has(f.hash)?(A=y.get(f.hash),A[1].has(e)||(T=A[0],A[1].add(e),T.observe(e))):(T=new IntersectionObserver($=>{$.forEach(V=>{if(V.isIntersecting){const Y=Ar.get(V.target),se=Tr.get(V.target);Y&&Y(),se&&(se.value=!0)}})},f.options),T.observe(e),A=[T,new Set([e])],y.set(f.hash,A));let E=!1;const D=()=>{E||(Ar.delete(e),Tr.delete(e),E=!0,A[1].has(e)&&(A[0].unobserve(e),A[1].delete(e)),A[1].size<=0&&y.delete(f.hash),y.size||Cr.delete(d))};return Ar.set(e,D),Tr.set(e,a),D},zh={padding:"8px 14px"},Wh=e=>{const{borderRadius:i,boxShadow2:a,baseColor:f}=e;return Object.assign(Object.assign({},zh),{borderRadius:i,boxShadow:a,color:_s(f,"rgba(0, 0, 0, .85)"),textColor:f})},jh=wo({name:"Tooltip",common:ir,peers:{Popover:fa},self:Wh}),pa=jh,Hh=Object.assign(Object.assign({},ha),Lt.props),$h=ct({name:"Tooltip",props:Hh,__popover__:!0,setup(e){const{mergedClsPrefixRef:i}=Pn(e),a=Lt("Tooltip","-tooltip",void 0,pa,e,i),f=Ae(null);return Object.assign(Object.assign({},{syncPosition(){f.value.syncPosition()},setShow(y){f.value.setShow(y)}}),{popoverRef:f,mergedTheme:a,popoverThemeOverrides:Ue(()=>a.value.self)})},render(){const{mergedTheme:e,internalExtraClass:i}=this;return J(Lh,Object.assign(Object.assign({},this.$props),{theme:e.peers.Popover,themeOverrides:e.peerOverrides.Popover,builtinThemeOverrides:this.popoverThemeOverrides,internalExtraClass:i.concat("tooltip"),ref:"popoverRef"}),this.$slots)}}),va=Object.assign(Object.assign({},Lt.props),{showToolbar:{type:Boolean,default:!0},showToolbarTooltip:Boolean}),ga=bo("n-image");function qh(){return{toolbarIconColor:"rgba(255, 255, 255, .9)",toolbarColor:"rgba(0, 0, 0, .35)",toolbarBoxShadow:"none",toolbarBorderRadius:"24px"}}const Uh=wo({name:"Image",common:ir,peers:{Tooltip:pa},self:qh}),Xh=J("svg",{viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"},J("path",{d:"M6 5C5.75454 5 5.55039 5.17688 5.50806 5.41012L5.5 5.5V14.5C5.5 14.7761 5.72386 15 6 15C6.24546 15 6.44961 14.8231 6.49194 14.5899L6.5 14.5V5.5C6.5 5.22386 6.27614 5 6 5ZM13.8536 5.14645C13.68 4.97288 13.4106 4.9536 13.2157 5.08859L13.1464 5.14645L8.64645 9.64645C8.47288 9.82001 8.4536 10.0894 8.58859 10.2843L8.64645 10.3536L13.1464 14.8536C13.3417 15.0488 13.6583 15.0488 13.8536 14.8536C14.0271 14.68 14.0464 14.4106 13.9114 14.2157L13.8536 14.1464L9.70711 10L13.8536 5.85355C14.0488 5.65829 14.0488 5.34171 13.8536 5.14645Z",fill:"currentColor"})),Vh=J("svg",{viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"},J("path",{d:"M13.5 5C13.7455 5 13.9496 5.17688 13.9919 5.41012L14 5.5V14.5C14 14.7761 13.7761 15 13.5 15C13.2545 15 13.0504 14.8231 13.0081 14.5899L13 14.5V5.5C13 5.22386 13.2239 5 13.5 5ZM5.64645 5.14645C5.82001 4.97288 6.08944 4.9536 6.28431 5.08859L6.35355 5.14645L10.8536 9.64645C11.0271 9.82001 11.0464 10.0894 10.9114 10.2843L10.8536 10.3536L6.35355 14.8536C6.15829 15.0488 5.84171 15.0488 5.64645 14.8536C5.47288 14.68 5.4536 14.4106 5.58859 14.2157L5.64645 14.1464L9.79289 10L5.64645 5.85355C5.45118 5.65829 5.45118 5.34171 5.64645 5.14645Z",fill:"currentColor"})),Yh=J("svg",{viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"},J("path",{d:"M4.089 4.216l.057-.07a.5.5 0 0 1 .638-.057l.07.057L10 9.293l5.146-5.147a.5.5 0 0 1 .638-.057l.07.057a.5.5 0 0 1 .057.638l-.057.07L10.707 10l5.147 5.146a.5.5 0 0 1 .057.638l-.057.07a.5.5 0 0 1-.638.057l-.07-.057L10 10.707l-5.146 5.147a.5.5 0 0 1-.638.057l-.07-.057a.5.5 0 0 1-.057-.638l.057-.07L9.293 10L4.146 4.854a.5.5 0 0 1-.057-.638l.057-.07l-.057.07z",fill:"currentColor"})),Gh=Ve([Ve("body >",[Qe("image-container","position: fixed;")]),Qe("image-preview-container",` position: fixed; left: 0; right: 0; top: 0; bottom: 0; display: flex; `),Qe("image-preview-overlay",` z-index: -1; position: absolute; left: 0; right: 0; top: 0; bottom: 0; background: rgba(0, 0, 0, .3); `,[Wr()]),Qe("image-preview-toolbar",` z-index: 1; position: absolute; left: 50%; transform: translateX(-50%); border-radius: var(--n-toolbar-border-radius); height: 48px; bottom: 40px; padding: 0 12px; background: var(--n-toolbar-color); box-shadow: var(--n-toolbar-box-shadow); color: var(--n-toolbar-icon-color); transition: color .3s var(--n-bezier); display: flex; align-items: center; `,[Qe("base-icon",` padding: 0 8px; font-size: 28px; cursor: pointer; `),Wr()]),Qe("image-preview-wrapper",` position: absolute; left: 0; right: 0; top: 0; bottom: 0; display: flex; pointer-events: none; `,[Ns()]),Qe("image-preview",` user-select: none; -webkit-user-select: none; pointer-events: all; margin: auto; max-height: calc(100vh - 32px); max-width: calc(100vw - 32px); transition: transform .3s var(--n-bezier); `),Qe("image",` display: inline-flex; max-height: 100%; max-width: 100%; `,[Un("preview-disabled",` cursor: pointer; `),Ve("img",` border-radius: inherit; `)])]),Hn=32,Kh=ct({name:"ImagePreview",props:Object.assign(Object.assign({},va),{onNext:Function,onPrev:Function,clsPrefix:{type:String,required:!0}}),setup(e){const i=Lt("Image","-image",Gh,Uh,e,Kt(e,"clsPrefix"));let a=null;const f=Ae(null),d=Ae(null),y=Ae(void 0),S=Ae(!1),T=Ae(!1),{localeRef:A}=uh("Image");function E(){const{value:G}=d;if(!a||!G)return;const{style:me}=G,le=a.getBoundingClientRect(),Me=le.left+le.width/2,Ne=le.top+le.height/2;me.transformOrigin=`${Me}px ${Ne}px`}function D(G){var me,le;switch(G.key){case" ":G.preventDefault();break;case"ArrowLeft":(me=e.onPrev)===null||me===void 0||me.call(e);break;case"ArrowRight":(le=e.onNext)===null||le===void 0||le.call(e);break;case"Escape":pe();break}}tn(S,G=>{G?gt("keydown",document,D):ut("keydown",document,D)}),nn(()=>{ut("keydown",document,D)});let $=0,V=0,Y=0,se=0,N=0,L=0,Z=0,R=0,ne=!1;function he(G){const{clientX:me,clientY:le}=G;Y=me-$,se=le-V,Bs(ee)}function Q(G){const{mouseUpClientX:me,mouseUpClientY:le,mouseDownClientX:Me,mouseDownClientY:Ne}=G,Xe=Me-me,Ye=Ne-le,rt=`vertical${Ye>0?"Top":"Bottom"}`,et=`horizontal${Xe>0?"Left":"Right"}`;return{moveVerticalDirection:rt,moveHorizontalDirection:et,deltaHorizontal:Xe,deltaVertical:Ye}}function ve(G){const{value:me}=f;if(!me)return{offsetX:0,offsetY:0};const le=me.getBoundingClientRect(),{moveVerticalDirection:Me,moveHorizontalDirection:Ne,deltaHorizontal:Xe,deltaVertical:Ye}=G||{};let rt=0,et=0;return le.width<=window.innerWidth?rt=0:le.left>0?rt=(le.width-window.innerWidth)/2:le.right0?et=(le.height-window.innerHeight)/2:le.bottom.5){const G=Te;Be-=1,Te=Math.max(.5,Math.pow(ke,Be));const me=G-Te;ee(!1);const le=ve();Te+=me,ee(!1),Te-=me,Y=le.offsetX,se=le.offsetY,ee()}}function ee(G=!0){var me;const{value:le}=f;if(!le)return;const{style:Me}=le,Ne=os((me=ge==null?void 0:ge.previewedImgPropsRef.value)===null||me===void 0?void 0:me.style);let Xe="";if(typeof Ne=="string")Xe=Ne+";";else for(const rt in Ne)Xe+=`${wd(rt)}: ${Ne[rt]};`;const Ye=`transform-origin: center; transform: translateX(${Y}px) translateY(${se}px) rotate(${de}deg) scale(${Te});`;ne?Me.cssText=Xe+"cursor: grabbing; transition: none;"+Ye:Me.cssText=Xe+"cursor: grab;"+Ye+(G?"":"transition: none;"),G||le.offsetHeight}function pe(){S.value=!S.value,T.value=!0}function Re(){Te=b(),Be=Math.ceil(Math.log(Te)/Math.log(ke)),Y=0,se=0,ee()}const _e={setPreviewSrc:G=>{y.value=G},setThumbnailEl:G=>{a=G},toggleShow:pe};function Ie(G,me){if(e.showToolbarTooltip){const{value:le}=i;return J($h,{to:!1,theme:le.peers.Tooltip,themeOverrides:le.peerOverrides.Tooltip,keepAliveOnHover:!1},{default:()=>A.value[me],trigger:()=>G})}else return G}const lt=Ue(()=>{const{common:{cubicBezierEaseInOut:G},self:{toolbarIconColor:me,toolbarBorderRadius:le,toolbarBoxShadow:Me,toolbarColor:Ne}}=i.value;return{"--n-bezier":G,"--n-toolbar-icon-color":me,"--n-toolbar-color":Ne,"--n-toolbar-border-radius":le,"--n-toolbar-box-shadow":Me}}),{inlineThemeDisabled:nt}=Pn(),He=nt?Xr("image-preview",void 0,lt,e):void 0;return Object.assign({previewRef:f,previewWrapperRef:d,previewSrc:y,show:S,appear:mo(),displayed:T,previewedImgProps:ge==null?void 0:ge.previewedImgPropsRef,handleWheel(G){G.preventDefault()},handlePreviewMousedown:Se,handlePreviewDblclick:be,syncTransformOrigin:E,handleAfterLeave:()=>{Pe(),de=0,T.value=!1},handleDragStart:G=>{var me,le;(le=(me=ge==null?void 0:ge.previewedImgPropsRef.value)===null||me===void 0?void 0:me.onDragstart)===null||le===void 0||le.call(me,G),G.preventDefault()},zoomIn:B,zoomOut:oe,rotateCounterclockwise:l,rotateClockwise:n,handleSwitchPrev:q,handleSwitchNext:s,withTooltip:Ie,resizeToOrignalImageSize:Re,cssVars:nt?void 0:lt,themeClass:He==null?void 0:He.themeClass,onRender:He==null?void 0:He.onRender},_e)},render(){var e,i;const{clsPrefix:a}=this;return J(Ot,null,(i=(e=this.$slots).default)===null||i===void 0?void 0:i.call(e),J(Ls,{show:this.show},{default:()=>{var f;return this.show||this.displayed?((f=this.onRender)===null||f===void 0||f.call(this),Yn(J("div",{class:[`${a}-image-preview-container`,this.themeClass],style:this.cssVars,onWheel:this.handleWheel},J(fn,{name:"fade-in-transition",appear:this.appear},{default:()=>this.show?J("div",{class:`${a}-image-preview-overlay`,onClick:this.toggleShow}):null}),this.showToolbar?J(fn,{name:"fade-in-transition",appear:this.appear},{default:()=>{if(!this.show)return null;const{withTooltip:d}=this;return J("div",{class:`${a}-image-preview-toolbar`},this.onPrev?J(Ot,null,d(J(zt,{clsPrefix:a,onClick:this.handleSwitchPrev},{default:()=>Xh}),"tipPrevious"),d(J(zt,{clsPrefix:a,onClick:this.handleSwitchNext},{default:()=>Vh}),"tipNext")):null,d(J(zt,{clsPrefix:a,onClick:this.rotateCounterclockwise},{default:()=>J(hh,null)}),"tipCounterclockwise"),d(J(zt,{clsPrefix:a,onClick:this.rotateClockwise},{default:()=>J(dh,null)}),"tipClockwise"),d(J(zt,{clsPrefix:a,onClick:this.resizeToOrignalImageSize},{default:()=>J(gh,null)}),"tipOriginalSize"),d(J(zt,{clsPrefix:a,onClick:this.zoomOut},{default:()=>J(vh,null)}),"tipZoomOut"),d(J(zt,{clsPrefix:a,onClick:this.zoomIn},{default:()=>J(ph,null)}),"tipZoomIn"),d(J(zt,{clsPrefix:a,onClick:this.toggleShow},{default:()=>Yh}),"tipClose"))}}):null,J(fn,{name:"fade-in-scale-up-transition",onAfterLeave:this.handleAfterLeave,appear:this.appear,onEnter:this.syncTransformOrigin,onBeforeLeave:this.syncTransformOrigin},{default:()=>{const{previewedImgProps:d={}}=this;return Yn(J("div",{class:`${a}-image-preview-wrapper`,ref:"previewWrapperRef"},J("img",Object.assign({},d,{draggable:!1,onMousedown:this.handlePreviewMousedown,onDblclick:this.handlePreviewDblclick,class:[`${a}-image-preview`,d.class],key:this.previewSrc,src:this.previewSrc,ref:"previewRef",onDragstart:this.handleDragStart}))),[[ho,this.show]])}})),[[yo,{enabled:this.show}]])):null}}))}}),Zh=bo("n-image-group"),Jh=Object.assign({alt:String,height:[String,Number],imgProps:Object,previewedImgProps:Object,lazy:Boolean,intersectionObserverOptions:Object,objectFit:{type:String,default:"fill"},previewSrc:String,fallbackSrc:String,width:[String,Number],src:String,previewDisabled:Boolean,loadDescription:String,onError:Function,onLoad:Function},va),uo=ct({name:"Image",props:Jh,inheritAttrs:!1,setup(e){const i=Ae(null),a=Ae(!1),f=Ae(null),d=gn(Zh,null),{mergedClsPrefixRef:y}=d||Pn(e),S={click:()=>{if(e.previewDisabled||a.value)return;const E=e.previewSrc||e.src;if(d){d.setPreviewSrc(E),d.setThumbnailEl(i.value),d.toggleShow();return}const{value:D}=f;D&&(D.setPreviewSrc(E),D.setThumbnailEl(i.value),D.toggleShow())}},T=Ae(!e.lazy);Mt(()=>{var E;(E=i.value)===null||E===void 0||E.setAttribute("data-group-id",(d==null?void 0:d.groupId)||"")}),Mt(()=>{if(e.lazy&&e.intersectionObserverOptions){let E;const D=jt(()=>{E==null||E(),E=void 0,E=Ih(i.value,e.intersectionObserverOptions,T)});nn(()=>{D(),E==null||E()})}}),jt(()=>{var E;e.src,(E=e.imgProps)===null||E===void 0||E.src,a.value=!1});const A=Ae(!1);return Cn(ga,{previewedImgPropsRef:Kt(e,"previewedImgProps")}),Object.assign({mergedClsPrefix:y,groupId:d==null?void 0:d.groupId,previewInstRef:f,imageRef:i,showError:a,shouldStartLoading:T,loaded:A,mergedOnClick:E=>{var D,$;S.click(),($=(D=e.imgProps)===null||D===void 0?void 0:D.onClick)===null||$===void 0||$.call(D,E)},mergedOnError:E=>{if(!T.value)return;a.value=!0;const{onError:D,imgProps:{onError:$}={}}=e;D==null||D(E),$==null||$(E)},mergedOnLoad:E=>{const{onLoad:D,imgProps:{onLoad:$}={}}=e;D==null||D(E),$==null||$(E),A.value=!0}},S)},render(){var e,i;const{mergedClsPrefix:a,imgProps:f={},loaded:d,$attrs:y,lazy:S}=this,T=(i=(e=this.$slots).placeholder)===null||i===void 0?void 0:i.call(e),A=this.src||f.src,E=J("img",Object.assign(Object.assign({},f),{ref:"imageRef",width:this.width||f.width,height:this.height||f.height,src:this.showError?this.fallbackSrc:S&&this.intersectionObserverOptions?this.shouldStartLoading?A:void 0:A,alt:this.alt||f.alt,"aria-label":this.alt||f.alt,onClick:this.mergedOnClick,onError:this.mergedOnError,onLoad:this.mergedOnLoad,loading:Bh&&S&&!this.intersectionObserverOptions?"lazy":"eager",style:[f.style||"",T&&!d?{height:"0",width:"0",visibility:"hidden"}:"",{objectFit:this.objectFit}],"data-error":this.showError,"data-preview-src":this.previewSrc||this.src}));return J("div",Object.assign({},y,{role:"none",class:[y.class,`${a}-image`,(this.previewDisabled||this.showError)&&`${a}-image--preview-disabled`]}),this.groupId?E:J(Kh,{theme:this.theme,themeOverrides:this.themeOverrides,clsPrefix:a,ref:"previewInstRef",showToolbar:this.showToolbar,showToolbarTooltip:this.showToolbarTooltip},{default:()=>E}),!d&&T)}}),Qh="_container_drr4y_1",ep="_head_drr4y_10",tp="_back_drr4y_18",np="_tabs_drr4y_21",rp="_downBtn_drr4y_37",ip="_icon_drr4y_61",op="_iconUp_drr4y_67",ap="_popover_drr4y_72",sp="_content_drr4y_91",lp="_wrap_drr4y_97",up="_emtpyWrap_drr4y_103",cp="_wrapItem_drr4y_114",fp="_name_drr4y_124",dp="_favoriteBtn_drr4y_131",hp="_containerImg_drr4y_137",pp="_cover_drr4y_163",vp="_loaded_drr4y_194",gp="_book_drr4y_197",mp="_bookWrap_drr4y_211",yp="_show_drr4y_219",at={container:Qh,head:ep,back:tp,tabs:np,downBtn:rp,icon:ip,iconUp:op,popover:ap,content:sp,wrap:lp,emtpyWrap:up,wrapItem:cp,name:fp,favoriteBtn:dp,containerImg:hp,cover:pp,loaded:vp,book:gp,bookWrap:mp,show:yp},ma=""+new URL("icon_back-b80c2fc2.svg",import.meta.url).href,wp=e=>kn.post("/edu-app/lessonCourseware/page",{data:e}),bp=e=>kn.post("/edu-app/lessonCoursewareFavorite/page",{data:e}),xp=e=>kn.post("/edu-app/lessonCoursewareFavorite/save",{data:e}),Sp=e=>kn.post("/edu-app/lessonCoursewareFavorite/remove",{data:e}),Cp=e=>kn.get(`/edu-app/lessonCourseware/detail/${e}`);const Ap="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACgAAAAkCAYAAAD7PHgWAAAAAXNSR0IArs4c6QAAAERlWElmTU0AKgAAAAgAAYdpAAQAAAABAAAAGgAAAAAAA6ABAAMAAAABAAEAAKACAAQAAAABAAAAKKADAAQAAAABAAAAJAAAAAC/FoutAAADKklEQVRYCc2YW4hNYRiGx3FyaJxPMUYOOZWSUBgjE8odk3AhXChR5E5qTG5QUmhScoFxNXKIckiZUk4hlJBcGJPzIeVYzOB5prWy7TFr9p7Zs9d+69nrX+v7//97117/+tbaOy8vx9UhBX/j6VMG82AYDIFv8AKuwQmogV+QqMnsLAXHFUIBvAbHXYaTcBtarXGMvAC/U+AufUpAeRLVkMq4W/SbCWlrIyN+gkk+wkFYCCOhG/SDqVABtWA/v8Hd8DbY/8x2DxTDAMiHIiiFvfASHCeV0AlS0k56hQn30+7bwigTl0MDhAnP0R4KUfJEt4LLxXFnwGORWkPUzj9geWTPpkHXWz1UQeem4WaPTCfyDsx7qNleBCZAeDbLojpGxOYTS/lSJcwzkfYX0OTKhOP/NE8FHVxvcWgFSTX4Bppcas/ARf4V+kNcukpiTW5KNrArCOxLDmR530qhwYfJee8FgdnJgSzvu34ta5osDHNbRsLL2zU8GOP2OLk1uEoPHcHK7yPvCVhe4tb9wECRWw0ODA5Yi3JBPonUID802MMG8g7OBVkPVU8/NPjKBvItJRcU+mj0pcHngauWnp3ZMu89oRp9adDK/RN07ltK3JoUGKhLNHKaHW/tDYkHY2iPIKclz3XYuAbZNmoRnxq0YMepbSTXx5FkE1044KU2uDo5mKX9UeTxJVcP/32i+T5n0E6jIZvy/fE6mL8qKvHRoNMdtn2iOmY4VhnkrWXbK2ruAoKPwTNxPfpboj1lFTkA5vsOs6BFWW4egIMeQViXaGZUrvvwivkUK01ndl9avcya9OYpgUxqMJNdAef/BMWQtnoz4iI4iYV8M3hJ2qq5TBD+5KyjPaUtE2poO1g8NXoJWvtI9E7dAQ3gXDWQsTW+gMn828KJP8ASSEdj6XwTHF8P5ZCJq8E0f+V741kwibjAI0sCcbUOvAkc8xRmQLtqLbOHCZ/RntNMNqvBeQhP6DBty1hWNIYsN8Dkrk9/FeZDKJ/t78G42zLIulz0FeAdrhF/Ki6G6mDfY36DfpOxahrZLegaCvF1aT3kjLy8W0Bjx2A45KS6Z9rVH+dMzG9PPT/rAAAAAElFTkSuQmCC",Tp="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACQAAAAgCAYAAAB6kdqOAAAAAXNSR0IArs4c6QAAAERlWElmTU0AKgAAAAgAAYdpAAQAAAABAAAAGgAAAAAAA6ABAAMAAAABAAEAAKACAAQAAAABAAAAJKADAAQAAAABAAAAIAAAAADfjkU8AAAHv0lEQVRYCZVXW6hWRRReM/u/HM/xclRCUzHLEFIkyqfwIUylG5pKIFqBhSgUkj1kGYT2ENJDUQhhF4QgDBRJPGZHo9KkHoISzUsmPQl5yfvlePz33jN935qZ39+T132Yf9bMrMs331ozex8jN3h6X180Nqv1e8kb+4QxdoR3MsSXZSGFOyul32tco6s6+O41ZuVK1+rCr1+f5bt2LYTNLG+z8eL8MKwbyd1ZnxfH/JX8+0Zv8cnADWsPtdol2SQh9X75K0Pzava+qdTniStrxnmBUwGgqz2mxBvB2lFTuhWVj1Z/Rvti6dKFpmJXOicjDQ2g5wv+wL6kDzSMvTO5uXy5q7jc83L/zV8dp216rgHUeHvJQ1m1vskbP9rAK4EI+zLK6himAOOxaf4xqHi7UaMaedZgTedowzXaF0435NXeYIqgsFy4E9JzZU775i9+/h+gxhuLH8wGDNjpnRtkXIHdw6JaExkzTmT/HjgtuVExaJ5BxUYf6BkYT1hDDzbAbtgQOmWYDKktl7AhjB03Vvqesrd3+sBvvvxFffDHL13aWXaa3djwGAsw6mz0WDHzF4u09RNZ9abIqZO6KwYnC5pCgrIEBL7SHDZisJfALoGRjYgEQFQkVgiUnbcE9a87f2r8wB1dJysElHcU71mfjTG6K2gbK2beIpH2DpEtG0ROHIMlphkITiApgIAqZh3zzXWkSBWVqTAP5jFFOyiSNcji2JBOsXeZen/W4WzTs2zhqGq945A1rt2UOZRLhIPRYzNE9u0W+fswjDHW7cAEq+oMU/pghwqS47Bl9H1kXYMa5/Gw595DaYI1+ARTeS1vPFDJfH2BuKJdte4bJ2bkPSLbN4OZ9cFCdwmPdBYdq1ewGAKnKJjVnVMPirRL+uwxvppW6pA52LKedGirufOvVcDM44KyMQbeJk8TGTdBZOc2kfMNBORWoN4KhtZkCUwG2oPzZnAuN8HQFo3poR39YKxXiW40+NHTiiWsTK1A6V54wAio1n0qMrBT5MJFTMGaTmhIAAmYynFNgTIgA8WGLtjFnmu6jp8ElL4pg50AGDJFa4dXfOmGWnjjSTDnzomcPoMVesdDEKqJjrvkoyDQ666xTpUkt65TTmvJhr4AhjUUWIKAGFpbvDMy6QBDuDsJALN6AijH2zU4pGMGjrvBsj4E2wwYZa5xTtegr+ucg6AnKuiBhHBjs2eDb1wC3LuzvpEfxztKkZNGRdt0lJzHQATFRxmJfQKWwNCWTCQfaZ1YdA4/0NW7SeNhjPgat5Dz1pTmKG/NAAYsUaZzbZA1eGRHmeJanG8JdhVAWk89bYM90xSAMG2BHX2tgCWiRYZO4WLODyRmPI9gWIMCHKadJgCca7JDUBynFscYNnVa7NUvAfH80B/Z0XSFrBAgoh+y1rnP9Q3M25UKrCEijqwpG3RMJ5i+yk4CwrkIQoFTpm5s9KPA6BsyY7Dx3YjeUVbmwZDYDxFJpPeF5w8bKe/HW0Usql2LWymkc2pEQJTZFECU01jBQK9VJ26gyQg27QDENUopiwLYUMpopcFNVK2eGLxn6zBct3hyt5HXkL6B+akAWvVqUuSQGUx3SRmNTxNIlLnOR+fxowBjzUBmypSNnAVMIGGsajA11m6huQKqnxu6AiCO8UWvOWZ+1UOoKQVB6hnsmsa5OB/ZCKkKTNEFCxrfPSFFZAd+SrwznZ4sxMGflex8z/GjS5qAzLerr5iyXEXlAIoswRFBNHMMdTJHQAzEXllrSZOucYwwyTYFJhiwo0CwpqcMTljKlazywYh/fuuJHtmF5/LsufvgaYIlhagl1hTfMxjiwScJAyoQ9IlrBYEf7aGp6cEAoLV4Wbg5NkgwrBsAK7lx5MzZTGy1emTw/u7RjMAn1FCQxRbFXOhddDl2gObwNcKdKvXax8CQ9W5REFEmewoGPY829QGkCQaACEazQNahZozprbnqrBheu2sA1bs27pfSvkrwNCQQrSm+SjCpaUhB6bEFGEspAIIRPnbSsQ7MhFQ5njKmEH8OKcjq/ZZ3HOz6vRVQyEbrDORLT85Zi9p5kWg1fRCQMIxwU+jeMh0pc0DCL8XAIgMCGRrTw2LWY57SBDAlLlYPp5W22qbOfdtm9wkdy6PvLMaXps/eiAtrjkWkjPcE4Wgfq4pAmHEWsLJFNskMmIynimyUjcCKgxLLDsxIVm/7YfCB7qnXCXtjQFS+MG3mJsn9MxnQWDhTQFEmW9oYRQGRjZBWpovMlDqGjHVegh5gKvXajs6D3025HhjO0etNn54ps9ahGOfx9iYwfoaCdDSwg7pSenjXsFAJAHMKBDIKES0ww/9OAGbroAPbn75ZQJbJTZ/2HzfNN9YsQ/p6SxS3Hlse4bxAY4+ADRznPA9rkHUN6dJ/CLlna/JKve2dW4EhkFsylNBemDxzCnhfhzoZTrb4KaH3EutGixopURkAyQrm1Lu1Z+qVtnn9/+zGh/qtn9sGRFdHRj3Sb9DIIR9Lo3gO76Nq+gzVLwQFwTQRB1JopMhqta97zp1ekG7hW8O5A4ZanV2aNOPhoszXoHAn4drFQQQKANKjbywuYPuH9ZVFg/7a9mur3e3Id8RQX4cXJz41sTTuXXxKPIoaM3gn/YR/M98asq97b1/d2x3/B8k9N3E67sAEAAAAAElFTkSuQmCC",co=ct({name:"the-favorite",props:{isFavorite:{type:Boolean,default:!1}},setup(e){return()=>te("div",{class:["favoriteWrap",e.isFavorite?"liked":""]},[te("img",{class:"favoritIcon",src:e.isFavorite?Tp:Ap},null)])}}),Ep="_book_1fdnj_1",Mp="_back_1fdnj_7",Op="_bookHide_1fdnj_12",kp="_wrap_1fdnj_52",Pp="_item_1fdnj_56",Rp="_des_1fdnj_67",Dp="_icon_1fdnj_71",Wt={book:Ep,back:Mp,bookHide:Op,wrap:kp,item:Pp,des:Rp,icon:Dp},_p=""+new URL("icon_play-8079d539.svg",import.meta.url).href,Np=ct({name:"courseware-detail",emits:["close"],setup(e,{emit:i}){const a=En({box:{},show:!1,steps:[{ele:"",eleRect:{},img:Yt("courseware-detail1.png"),handStyle:{top:"-0.4rem",left:"1.1rem",transform:"rotate(-90deg)"},imgStyle:{top:"-1.3rem",left:"2.2rem"},btnsStyle:{top:"1.5rem",left:"3.5rem"}}],step:0}),f=Ae(!1),d=localStorage.getItem("guideInfo");d&&JSON.parse(d).coursewareDetail?f.value=!1:f.value=!0;const y=()=>{console.log(`coursewareDetail-${a.step}`);const A=document.getElementById(`coursewareDetail-${a.step}`);if(A){const E=A.getBoundingClientRect();a.box={left:E.x+"px",top:E.y+"px",width:E.width+"px",height:E.height+"px"}}};Mt(()=>{y()});const S=()=>{if(a.step>=3){T();return}a.step=a.step+1,y()},T=()=>{let A=JSON.parse(localStorage.getItem("guideInfo")||"{}")||null;A?A.coursewareDetail=!0:A={coursewareDetail:!0},localStorage.setItem("guideInfo",JSON.stringify(A)),f.value=!1};return()=>te(jr,{teleport:"body",overlay:!1,closeOnClickOverlay:!1,class:["popup-custom",Ze.guidePopup],show:f.value,"onUpdate:show":A=>f.value=A},{default:()=>[te("div",{class:Ze.content,onClick:()=>S()},[te("div",{class:Ze.backBtn,onClick:A=>{A.stopPropagation(),T()}},[vt("跳过")]),te("div",{class:Ze.box,style:a.box,id:`modeType-${a.step}`},[a.steps.map((A,E)=>{var D,$;return te("div",{onClick:V=>V.stopPropagation(),class:Ze.item,style:{display:E===a.step?"":"none",left:`${(D=A.eleRect)==null?void 0:D.left}px`,top:`${($=A.eleRect)==null?void 0:$.top}px`}},[te("img",{class:Ze.img,style:A.imgStyle,src:A.img},null),te("img",{class:Ze.iconHead,style:A.handStyle,src:Yt("indexDot.png")},null),te("div",{class:Ze.btns,style:A.btnsStyle},[a.step+1==a.steps.length?te(Ot,null,[te(dn,{class:[Ze.btn,Ze.endBtn],round:!0,type:"primary",onClick:()=>T()},{default:()=>[vt("完成")]})]):te(dn,{class:Ze.btn,round:!0,type:"primary",onClick:()=>S()},{default:()=>[vt("下一步 ("),a.step+1,vt("/"),a.steps.length,vt(")")]})])])})])])]})}}),Lp=ct({name:"the-book",props:{bookData:{type:Object,default:()=>({})},show:{type:Boolean,default:!1},rect:{type:Object,default:()=>({})}},emits:["close"],setup(e,{emit:i}){po();const a=En({show:!1,width:0,height:0,transform:"",list:[]}),f=Ae(!1),d=async()=>{console.log("初始化完成")};let y=null,S=null;const T=()=>{y=window.$("#flipbook");const V=document.body.clientHeight*.8;a.height=V,a.width=V*(210/297)*2,y.turn({autoCenter:!0,duration:1e3,acceleration:!0,elevation:50,width:a.width,height:a.height,gradients:!0})},A=()=>{const V=document.querySelector(".bookWrap");if(V){const Y=V.getBoundingClientRect(),se=e.rect.width/(Y.width/2),N=e.rect.height/Y.height,L=(Y.width/2*(se-1)/2+e.rect.x-Y.x-Y.width/4)/se,Z=(Y.height*(N-1)/2+e.rect.y-Y.y)/N,R=`scale3d(${se}, ${N}, 1) translate(${L}px, ${Z}px)`;V.style.transform=a.transform=R,V.style.transition="transform 0s",Er(()=>{requestAnimationFrame(()=>{requestAnimationFrame(()=>{V.style.transition="transform 1s",V.style.transform="",a.show=!0,S=setTimeout(()=>{y.turn("page",2)},500),setTimeout(()=>{f.value=!0},1500)})})})}},E=()=>{clearTimeout(S);const V=document.querySelector(".bookWrap");y.turn("page",1),V&&(V.style.transform=a.transform),i("close"),setTimeout(()=>{V.style.transition="",V.style.transform="",a.show=!1,a.list=[]},1e3)};Mt(async()=>{await d()});const D=()=>{var N;if(!((N=e.bookData)!=null&&N.lessonList))return;const V=Math.floor((document.body.clientHeight*.8-40)/50);console.log("🚀 ~ step:",V);const Y=[];let se=[];for(let L=0;Le.show,()=>{e.show&&(D(),Er(()=>{T(),requestAnimationFrame(()=>{A()})}))});const $=V=>{if(!V.containMaterial){as("暂无资源");return}if(V.id){const Y=us.stringify({id:V.id,name:V.name}),se=location.origin+location.pathname+"#/courseware-play?"+Y;console.log("🚀 ~ url:",se),vo({api:"openWebView",content:{url:se,orientation:0,isHideTitle:!1}})}};return()=>te("div",{class:[Wt.book,a.show?"":Wt.bookHide]},[te("div",{class:Wt.back,onClick:E},[te("img",{src:ma},null)]),te("div",{class:"bookWrap",style:{width:a.width+"px"}},[!!a.list.length&&te("div",{id:"flipbook",class:[a.show&&"animated"]},[te("div",{class:"page"},[te("img",{style:"width: 100%; height: 100%; object-fit: cover;",src:e.bookData.coverImg},null)]),a.list.map(V=>te("div",{class:"page"},[te("div",{class:"gradient"},null),te("div",{class:Wt.wrap},[V.map((Y,se)=>te(Ot,null,[te("div",{class:[Wt.item,Y.id&&Wt.des],onTouchstart:N=>{N.stopPropagation()},onClick:N=>{N.stopPropagation(),$(Y)}},[te("div",{class:Wt.name},[Y.name]),Y.id?te("img",{id:se==1?"coursewareDetail-0":"",class:Wt.icon,src:_p},null):null])]))])])),te("div",{class:"page"},[te("div",{class:"gradient"},null)])])]),f.value?te(Np,null,null):null])}}),Bp=ct({name:"courseware-list",emits:["close"],setup(e,{emit:i}){const a=En({box:{},show:!1,steps:[{ele:"",eleRect:{},img:Yt("courseware-list1.png"),handStyle:{top:"1.5rem",left:"3.8rem",transform:"rotate(-90deg)"},imgStyle:{top:".7rem",left:"4.8rem"},btnsStyle:{top:"3.5rem",left:"6rem"}},{ele:"",img:Yt("courseware-list2.png"),handStyle:{top:"-.3rem",left:"1.3rem",transform:"rotate(-90deg)"},imgStyle:{top:"-1.2rem",left:"2.4rem"},btnsStyle:{top:"1.6rem",left:"3.6rem"}},{ele:"",img:Yt("courseware-list3.png"),handStyle:{bottom:"-2rem",left:"0.5rem"},imgStyle:{top:"1.2rem",left:"-2rem"},btnsStyle:{top:"4.2rem",left:"-0.5rem"}},{ele:"",img:Yt("courseware-list4.png"),handStyle:{top:".9rem",left:"1rem"},imgStyle:{top:"1.1rem",left:"-4.6rem"},btnsStyle:{top:"4rem",left:"-4.5rem","justify-content":"center",padding:0}}],step:0}),f=Ae(!1),d=localStorage.getItem("guideInfo");d&&JSON.parse(d).courseware?f.value=!1:f.value=!0;const y=()=>{console.log(`courseware-${a.step}`);const A=document.getElementById(`courseware-${a.step}`);if(A){const E=A.getBoundingClientRect();a.box={left:E.x+"px",top:E.y+"px",width:E.width+"px",height:E.height+"px"}}};Mt(()=>{y()});const S=()=>{if(a.step>=3){T();return}a.step=a.step+1,y()},T=()=>{let A=JSON.parse(localStorage.getItem("guideInfo")||"{}")||null;A?A.courseware=!0:A={courseware:!0},localStorage.setItem("guideInfo",JSON.stringify(A)),f.value=!1};return()=>te(jr,{teleport:"body",overlay:!1,closeOnClickOverlay:!1,class:["popup-custom",Ze.guidePopup],show:f.value,"onUpdate:show":A=>f.value=A},{default:()=>[te("div",{class:Ze.content,onClick:()=>S()},[te("div",{class:Ze.backBtn,onClick:A=>{A.stopPropagation(),T()}},[vt("跳过")]),te("div",{class:Ze.box,style:a.box,id:`modeType-${a.step}`},[a.steps.map((A,E)=>{var D,$;return te("div",{onClick:V=>V.stopPropagation(),class:Ze.item,style:{display:E===a.step?"":"none",left:`${(D=A.eleRect)==null?void 0:D.left}px`,top:`${($=A.eleRect)==null?void 0:$.top}px`}},[te("img",{class:Ze.img,style:A.imgStyle,src:A.img},null),te("img",{class:Ze.iconHead,style:A.handStyle,src:Yt("indexDot.png")},null),te("div",{class:Ze.btns,style:A.btnsStyle},[a.step+1==a.steps.length?te(Ot,null,[te(dn,{class:Ze.btn,round:!0,color:"transparent",style:{"border-color":"#fff"},type:"primary",onClick:()=>{a.step=0,y()}},{default:()=>[vt("再看一遍")]}),te(dn,{class:[Ze.btn,Ze.endBtn],round:!0,type:"primary",onClick:()=>T()},{default:()=>[vt("完成")]})]):te(dn,{class:Ze.btn,round:!0,type:"primary",onClick:()=>S()},{default:()=>[vt("下一步 ("),a.step+1,vt("/"),a.steps.length,vt(")")]})])])})])])]})}});/*! jQuery v1.7 jquery.com | jquery.org/license */(function(e,i){function a(t){return n.isWindow(t)?t:t.nodeType===9?t.defaultView||t.parentWindow:!1}function f(t){if(!hr[t]){var r=q.body,o=n("<"+t+">").appendTo(r),u=o.css("display");o.remove(),(u==="none"||u==="")&&(Tt||(Tt=q.createElement("iframe"),Tt.frameBorder=Tt.width=Tt.height=0),r.appendChild(Tt),(!sn||!Tt.createElement)&&(sn=(Tt.contentWindow||Tt.contentDocument).document,sn.write((q.compatMode==="CSS1Compat"?"":"")+""),sn.close()),o=sn.createElement(t),sn.body.appendChild(o),u=n.css(o,"display"),r.removeChild(Tt)),hr[t]=u}return hr[t]}function d(t,r){var o={};return n.each(di.concat.apply([],di.slice(0,r)),function(){o[this]=t}),o}function y(){_n=i}function S(){return setTimeout(y,0),_n=n.now()}function T(){try{return new e.ActiveXObject("Microsoft.XMLHTTP")}catch(t){}}function A(){try{return new e.XMLHttpRequest}catch(t){}}function E(t,r){t.dataFilter&&(r=t.dataFilter(r,t.dataType));var o=t.dataTypes,u={},c,h,v=o.length,g,C=o[0],k,M,O,F,W;for(c=1;c0?(o!=="border"&&n.each(c,function(){o||(u-=parseFloat(n.css(t,"padding"+this))||0),o==="margin"?u+=parseFloat(n.css(t,o+this))||0:u-=parseFloat(n.css(t,"border"+this+"Width"))||0}),u+"px"):(u=on(t,r,r),(u<0||u==null)&&(u=t.style[r]||0),u=parseFloat(u)||0,o&&n.each(c,function(){u+=parseFloat(n.css(t,"padding"+this))||0,o!=="padding"&&(u+=parseFloat(n.css(t,"border"+this+"Width"))||0),o==="margin"&&(u+=parseFloat(n.css(t,o+this))||0)}),u+"px")}function L(t,r){r.src?n.ajax({url:r.src,async:!1,dataType:"script"}):n.globalEval((r.text||r.textContent||r.innerHTML||"").replace(Fe,"/*$0*/")),r.parentNode&&r.parentNode.removeChild(r)}function Z(t){var r=(t.nodeName||"").toLowerCase();r==="input"?R(t):r!=="script"&&typeof t.getElementsByTagName<"u"&&n.grep(t.getElementsByTagName("input"),R)}function R(t){(t.type==="checkbox"||t.type==="radio")&&(t.defaultChecked=t.checked)}function ne(t){return typeof t.getElementsByTagName<"u"?t.getElementsByTagName("*"):typeof t.querySelectorAll<"u"?t.querySelectorAll("*"):[]}function he(t,r){var o;r.nodeType===1&&(r.clearAttributes&&r.clearAttributes(),r.mergeAttributes&&r.mergeAttributes(t),o=r.nodeName.toLowerCase(),o==="object"?r.outerHTML=t.outerHTML:o!=="input"||t.type!=="checkbox"&&t.type!=="radio"?o==="option"?r.selected=t.defaultSelected:(o==="input"||o==="textarea")&&(r.defaultValue=t.defaultValue):(t.checked&&(r.defaultChecked=r.checked=t.checked),r.value!==t.value&&(r.value=t.value)),r.removeAttribute(n.expando))}function Q(t,r){if(r.nodeType===1&&n.hasData(t)){var o,u,c,h=n._data(t),v=n._data(r,h),g=h.events;if(g){delete v.handle,v.events={};for(o in g)for(u=0,c=g[o].length;u=0===o})}function Se(t){return!t||!t.parentNode||t.parentNode.nodeType===11}function be(){return!0}function ke(){return!1}function Be(t,r,o){var u=r+"defer",c=r+"queue",h=r+"mark",v=n._data(t,u);v&&(o==="queue"||!n._data(t,c))&&(o==="mark"||!n._data(t,h))&&setTimeout(function(){!n._data(t,c)&&!n._data(t,h)&&(n.removeData(t,u,!0),v.fire())},0)}function Te(t){for(var r in t)if(!(r==="data"&&n.isEmptyObject(t[r]))&&r!=="toJSON")return!1;return!0}function de(t,r,o){if(o===i&&t.nodeType===1){var u="data-"+r.replace(oe,"-$1").toLowerCase();if(o=t.getAttribute(u),typeof o=="string"){try{o=o==="true"?!0:o==="false"?!1:o==="null"?null:n.isNumeric(o)?parseFloat(o):B.test(o)?n.parseJSON(o):o}catch(c){}n.data(t,r,o)}else o=i}return o}function Pe(t){var r=m[t]={},o,u;for(t=t.split(/\s+/),o=0,u=t.length;o)[^>]*$|#([\w\-]*)$)/,v=/\S/,g=/^\s+/,C=/\s+$/,k=/\d/,M=/^<(\w+)\s*\/?>(?:<\/\1>)?$/,O=/^[\],:{}\s]*$/,F=/\\(?:["\\\/bfnrt]|u[0-9a-fA-F]{4})/g,W=/"[^"\\\n\r]*"|true|false|null|-?\d+(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,K=/(?:^|:|,)(?:\s*\[)+/g,ye=/(webkit)[ \/]([\w.]+)/,Ee=/(opera)(?:.*version)?[ \/]([\w.]+)/,Ce=/(msie) ([\w.]+)/,it=/(mozilla)(?:.*? rv:([\w.]+))?/,ot=/-([a-z]|[0-9])/ig,xe=/^-ms-/,p=function(w,H){return(H+"").toUpperCase()},x=s.userAgent,P,_,I,z=Object.prototype.toString,U=Object.prototype.hasOwnProperty,ae=Array.prototype.push,re=Array.prototype.slice,fe=String.prototype.trim,dt=Array.prototype.indexOf,tt={};return r.fn=r.prototype={constructor:r,init:function(w,H,ie){var j,Oe,Le,je;if(!w)return this;if(w.nodeType)return this.context=this[0]=w,this.length=1,this;if(w==="body"&&!H&&q.body)return this.context=q,this[0]=q.body,this.selector=w,this.length=1,this;if(typeof w=="string"){if(w.charAt(0)!=="<"||w.charAt(w.length-1)!==">"||w.length<3?j=h.exec(w):j=[null,w,null],j&&(j[1]||!H)){if(j[1])return H=H instanceof r?H[0]:H,je=H?H.ownerDocument||H:q,Le=M.exec(w),Le?r.isPlainObject(H)?(w=[q.createElement(Le[1])],r.fn.attr.call(w,H,!0)):w=[je.createElement(Le[1])]:(Le=r.buildFragment([j[1]],[je]),w=(Le.cacheable?r.clone(Le.fragment):Le.fragment).childNodes),r.merge(this,w);if(Oe=q.getElementById(j[2]),Oe&&Oe.parentNode){if(Oe.id!==j[2])return ie.find(w);this.length=1,this[0]=Oe}return this.context=q,this.selector=w,this}return!H||H.jquery?(H||ie).find(w):this.constructor(H).find(w)}return r.isFunction(w)?ie.ready(w):(w.selector!==i&&(this.selector=w.selector,this.context=w.context),r.makeArray(w,this))},selector:"",jquery:"1.7",length:0,size:function(){return this.length},toArray:function(){return re.call(this,0)},get:function(w){return w==null?this.toArray():w<0?this[this.length+w]:this[w]},pushStack:function(w,H,ie){var j=this.constructor();return r.isArray(w)?ae.apply(j,w):r.merge(j,w),j.prevObject=this,j.context=this.context,H==="find"?j.selector=this.selector+(this.selector?" ":"")+ie:H&&(j.selector=this.selector+"."+H+"("+ie+")"),j},each:function(w,H){return r.each(this,w,H)},ready:function(w){return r.bindReady(),_.add(w),this},eq:function(w){return w===-1?this.slice(w):this.slice(w,+w+1)},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},slice:function(){return this.pushStack(re.apply(this,arguments),"slice",re.call(arguments).join(","))},map:function(w){return this.pushStack(r.map(this,function(H,ie){return w.call(H,ie,H)}))},end:function(){return this.prevObject||this.constructor(null)},push:ae,sort:[].sort,splice:[].splice},r.fn.init.prototype=r.fn,r.extend=r.fn.extend=function(){var w,H,ie,j,Oe,Le,je=arguments[0]||{},ht=1,St=arguments.length,pr=!1;for(typeof je=="boolean"&&(pr=je,je=arguments[1]||{},ht=2),typeof je!="object"&&!r.isFunction(je)&&(je={}),St===ht&&(je=this,--ht);ht0)return;_.fireWith(q,[r]),r.fn.trigger&&r(q).trigger("ready").unbind("ready")}},bindReady:function(){if(!_){if(_=r.Callbacks("once memory"),q.readyState==="complete")return setTimeout(r.ready,1);if(q.addEventListener)q.addEventListener("DOMContentLoaded",I,!1),e.addEventListener("load",r.ready,!1);else if(q.attachEvent){q.attachEvent("onreadystatechange",I),e.attachEvent("onload",r.ready);var w=!1;try{w=e.frameElement==null}catch(H){}q.documentElement.doScroll&&w&&t()}}},isFunction:function(w){return r.type(w)==="function"},isArray:Array.isArray||function(w){return r.type(w)==="array"},isWindow:function(w){return w&&typeof w=="object"&&"setInterval"in w},isNumeric:function(w){return w!=null&&k.test(w)&&!isNaN(w)},type:function(w){return w==null?String(w):tt[z.call(w)]||"object"},isPlainObject:function(w){if(!w||r.type(w)!=="object"||w.nodeType||r.isWindow(w))return!1;try{if(w.constructor&&!U.call(w,"constructor")&&!U.call(w.constructor.prototype,"isPrototypeOf"))return!1}catch(ie){return!1}var H;for(H in w);return H===i||U.call(w,H)},isEmptyObject:function(w){for(var H in w)return!1;return!0},error:function(w){throw w},parseJSON:function(w){if(typeof w!="string"||!w)return null;if(w=r.trim(w),e.JSON&&e.JSON.parse)return e.JSON.parse(w);if(O.test(w.replace(F,"@").replace(W,"]").replace(K,"")))return new Function("return "+w)();r.error("Invalid JSON: "+w)},parseXML:function(w){var H,ie;try{e.DOMParser?(ie=new DOMParser,H=ie.parseFromString(w,"text/xml")):(H=new ActiveXObject("Microsoft.XMLDOM"),H.async="false",H.loadXML(w))}catch(j){H=i}return(!H||!H.documentElement||H.getElementsByTagName("parsererror").length)&&r.error("Invalid XML: "+w),H},noop:function(){},globalEval:function(w){w&&v.test(w)&&(e.execScript||function(H){e.eval.call(e,H)})(w)},camelCase:function(w){return w.replace(xe,"ms-").replace(ot,p)},nodeName:function(w,H){return w.nodeName&&w.nodeName.toUpperCase()===H.toUpperCase()},each:function(w,H,ie){var j,Oe=0,Le=w.length,je=Le===i||r.isFunction(w);if(ie)if(je){for(j in w)if(H.apply(w[j],ie)===!1)break}else for(;Oe0&&w[0]&&w[ht-1]||ht===0||r.isArray(w));if(St)for(;je1?b.call(arguments,0):O,C.notifyWith(k,v)}}function o(M){return function(O){u[M]=arguments.length>1?b.call(arguments,0):O,--g||C.resolveWith(C,u)}}var u=b.call(arguments,0),c=0,h=u.length,v=Array(h),g=h,C=h<=1&&t&&n.isFunction(t.promise)?t:n.Deferred(),k=C.promise();if(h>1){for(;c
a",o=t.getElementsByTagName("*"),u=t.getElementsByTagName("a")[0],!o||!o.length||!u)return{};c=q.createElement("select"),h=c.appendChild(q.createElement("option")),v=t.getElementsByTagName("input")[0],C={leadingWhitespace:t.firstChild.nodeType===3,tbody:!t.getElementsByTagName("tbody").length,htmlSerialize:!!t.getElementsByTagName("link").length,style:/top/.test(u.getAttribute("style")),hrefNormalized:u.getAttribute("href")==="/a",opacity:/^0.55/.test(u.style.opacity),cssFloat:!!u.style.cssFloat,unknownElems:!!t.getElementsByTagName("nav").length,checkOn:v.value==="on",optSelected:h.selected,getSetAttribute:t.className!=="t",enctype:!!q.createElement("form").enctype,submitBubbles:!0,changeBubbles:!0,focusinBubbles:!1,deleteExpando:!0,noCloneEvent:!0,inlineBlockNeedsLayout:!1,shrinkWrapBlocks:!1,reliableMarginRight:!0},v.checked=!0,C.noCloneChecked=v.cloneNode(!0).checked,c.disabled=!0,C.optDisabled=!h.disabled;try{delete t.test}catch(it){C.deleteExpando=!1}!t.addEventListener&&t.attachEvent&&t.fireEvent&&(t.attachEvent("onclick",function(){C.noCloneEvent=!1}),t.cloneNode(!0).fireEvent("onclick")),v=q.createElement("input"),v.value="t",v.setAttribute("type","radio"),C.radioValue=v.value==="t",v.setAttribute("checked","checked"),t.appendChild(v),k=q.createDocumentFragment(),k.appendChild(t.lastChild),C.checkClone=k.cloneNode(!0).cloneNode(!0).lastChild.checked,t.innerHTML="",t.style.width=t.style.paddingLeft="1px",M=q.getElementsByTagName("body")[0],F=q.createElement(M?"div":"body"),W={visibility:"hidden",width:0,height:0,border:0,margin:0,background:"none"},M&&n.extend(W,{position:"absolute",left:"-999px",top:"-999px"});for(Ee in W)F.style[Ee]=W[Ee];if(F.appendChild(t),O=M||r,O.insertBefore(F,O.firstChild),C.appendChecked=v.checked,C.boxModel=t.offsetWidth===2,"zoom"in t.style&&(t.style.display="inline",t.style.zoom=1,C.inlineBlockNeedsLayout=t.offsetWidth===2,t.style.display="",t.innerHTML="
",C.shrinkWrapBlocks=t.offsetWidth!==2),t.innerHTML="
t
",K=t.getElementsByTagName("td"),Ce=K[0].offsetHeight===0,K[0].style.display="",K[1].style.display="none",C.reliableHiddenOffsets=Ce&&K[0].offsetHeight===0,t.innerHTML="",q.defaultView&&q.defaultView.getComputedStyle&&(g=q.createElement("div"),g.style.width="0",g.style.marginRight="0",t.appendChild(g),C.reliableMarginRight=(parseInt((q.defaultView.getComputedStyle(g,null)||{marginRight:0}).marginRight,10)||0)===0),t.attachEvent)for(Ee in{submit:1,change:1,focusin:1})ye="on"+Ee,Ce=ye in t,Ce||(t.setAttribute(ye,"return;"),Ce=typeof t[ye]=="function"),C[Ee+"Bubbles"]=Ce;return n(function(){var it,ot,xe,p,x,P=1,_="position:absolute;top:0;left:0;width:1px;height:1px;margin:0;",I="visibility:hidden;border:0;",z="style='"+_+"border:5px solid #000;padding:0;'",U="
";M=q.getElementsByTagName("body")[0],!M||(it=q.createElement("div"),it.style.cssText=I+"width:0;height:0;position:static;top:0;margin-top:"+P+"px",M.insertBefore(it,M.firstChild),F=q.createElement("div"),F.style.cssText=_+I,F.innerHTML=U,it.appendChild(F),ot=F.firstChild,xe=ot.firstChild,p=ot.nextSibling.firstChild.firstChild,x={doesNotAddBorder:xe.offsetTop!==5,doesAddBorderForTableAndCells:p.offsetTop===5},xe.style.position="fixed",xe.style.top="20px",x.fixedPosition=xe.offsetTop===20||xe.offsetTop===15,xe.style.position=xe.style.top="",ot.style.overflow="hidden",ot.style.position="relative",x.subtractsBorderForOverflowNotVisible=xe.offsetTop===-5,x.doesNotIncludeMarginInBodyOffset=M.offsetTop!==P,M.removeChild(it),F=it=null,n.extend(C,x))}),F.innerHTML="",O.removeChild(F),F=k=c=h=M=g=t=v=null,C}(),n.boxModel=n.support.boxModel;var B=/^(?:\{.*\}|\[.*\])$/,oe=/([A-Z])/g;n.extend({cache:{},uuid:0,expando:"jQuery"+(n.fn.jquery+Math.random()).replace(/\D/g,""),noData:{embed:!0,object:"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000",applet:!0},hasData:function(t){return t=t.nodeType?n.cache[t[n.expando]]:t[n.expando],!!t&&!Te(t)},data:function(t,r,o,u){if(n.acceptData(t)){var c,h,v;n.expando;var g=typeof r=="string",C=t.nodeType,k=C?n.cache:t,M=C?t[n.expando]:t[n.expando]&&n.expando,O=r==="events";return(!M||!k[M]||!O&&!u&&!k[M].data)&&g&&o===i?void 0:(M||(C?t[n.expando]=M=++n.uuid:M=n.expando),k[M]||(k[M]={},C||(k[M].toJSON=n.noop)),(typeof r=="object"||typeof r=="function")&&(u?k[M]=n.extend(k[M],r):k[M].data=n.extend(k[M].data,r)),c=h=k[M],u||(h.data||(h.data={}),h=h.data),o!==i&&(h[n.camelCase(r)]=o),O&&!h[r]?c.events:(g?(v=h[r],v==null&&(v=h[n.camelCase(r)])):v=h,v))}},removeData:function(t,r,o){if(n.acceptData(t)){var u,c,h;n.expando;var v=t.nodeType,g=v?n.cache:t,C=v?t[n.expando]:n.expando;if(!g[C])return;if(r&&(u=o?g[C]:g[C].data,u)){for(n.isArray(r)?r=r:(r in u)?r=[r]:(r=n.camelCase(r),r in u?r=[r]:r=r.split(" ")),c=0,h=r.length;c"u"){if(this.length&&(h=n.data(this[0]),this[0].nodeType===1&&!n._data(this[0],"parsedAttrs"))){u=this[0].attributes;for(var v=0,g=u.length;v-1)return!0;return!1},val:function(t){var r,o,u,c=this[0];return arguments.length?(u=n.isFunction(t),this.each(function(h){var v=n(this),g;this.nodeType===1&&(u?g=t.call(this,h,v.val()):g=t,g==null?g="":typeof g=="number"?g+="":n.isArray(g)&&(g=n.map(g,function(C){return C==null?"":C+""})),r=n.valHooks[this.nodeName.toLowerCase()]||n.valHooks[this.type],(!r||!("set"in r)||r.set(this,g,"value")===i)&&(this.value=g))})):c?(r=n.valHooks[c.nodeName.toLowerCase()]||n.valHooks[c.type],r&&"get"in r&&(o=r.get(c,"value"))!==i?o:(o=c.value,typeof o=="string"?o.replace(Re,""):o==null?"":o)):i}}),n.extend({valHooks:{option:{get:function(t){var r=t.attributes.value;return!r||r.specified?t.value:t.text}},select:{get:function(t){var r,o,u,c,h=t.selectedIndex,v=[],g=t.options,C=t.type==="select-one";if(h<0)return null;for(o=C?h:0,u=C?h+1:g.length;o=0}),o.length||(t.selectedIndex=-1),o}}},attrFn:{val:!0,css:!0,html:!0,text:!0,data:!0,width:!0,height:!0,offset:!0},attr:function(t,r,o,u){var c,h,v,g=t.nodeType;return!t||g===3||g===8||g===2?i:u&&r in n.attrFn?n(t)[r](o):"getAttribute"in t?(v=g!==1||!n.isXMLDoc(t),v&&(r=r.toLowerCase(),h=n.attrHooks[r]||(nt.test(r)?me:G)),o!==i?o===null?(n.removeAttr(t,r),i):h&&"set"in h&&v&&(c=h.set(t,o,r))!==i?c:(t.setAttribute(r,""+o),o):h&&"get"in h&&v&&(c=h.get(t,r))!==null?c:(c=t.getAttribute(r),c===null?i:c)):n.prop(t,r,o)},removeAttr:function(t,r){var o,u,c,h,v=0;if(t.nodeType===1)for(u=(r||"").split(pe),h=u.length;v=0}})});var Me=/^(?:textarea|input|select)$/i,Ne=/^([^\.]*)?(?:\.(.+))?$/,Xe=/\bhover(\.\S+)?/,Ye=/^key/,rt=/^(?:mouse|contextmenu)|click/,et=/^(\w*)(?:#([\w\-]+))?(?:\.([\w\-]+))?$/,kt=function(t){var r=et.exec(t);return r&&(r[1]=(r[1]||"").toLowerCase(),r[3]=r[3]&&new RegExp("(?:^|\\s)"+r[3]+"(?:\\s|$)")),r},rn=function(t,r){return(!r[1]||t.nodeName.toLowerCase()===r[1])&&(!r[2]||t.id===r[2])&&(!r[3]||r[3].test(t.className))},pt=function(t){return n.event.special.hover?t:t.replace(Xe,"mouseenter$1 mouseleave$1")};n.event={add:function(t,r,o,u,c){var h,v,g,C,k,M,O,F,W,K,ye;if(!(t.nodeType===3||t.nodeType===8||!r||!o||!(h=n._data(t)))){for(o.handler&&(W=o,o=W.handler),o.guid||(o.guid=n.guid++),g=h.events,g||(h.events=g={}),v=h.handle,v||(h.handle=v=function(Ee){return typeof n<"u"&&(!Ee||n.event.triggered!==Ee.type)?n.event.dispatch.apply(v.elem,arguments):i},v.elem=t),r=pt(r).split(" "),C=0;C=0&&(c=c.slice(0,-1),g=!0),c.indexOf(".")>=0&&(h=c.split("."),c=h.shift(),h.sort()),(!o||n.event.customEvent[c])&&!n.event.global[c])return;if(t=typeof t=="object"?t[n.expando]?t:new n.Event(c,t):new n.Event(c),t.type=c,t.isTrigger=!0,t.exclusive=g,t.namespace=h.join("."),t.namespace_re=t.namespace?new RegExp("(^|\\.)"+h.join("\\.(?:.*\\.)?")+"(\\.|$)"):null,O=c.indexOf(":")<0?"on"+c:"",(u||!o)&&t.preventDefault(),!o){v=n.cache;for(C in v)v[C].events&&v[C].events[c]&&n.event.trigger(t,r,v[C].handle.elem,!0);return}if(t.result=i,t.target||(t.target=o),r=r!=null?n.makeArray(r):[],r.unshift(t),F=n.event.special[c]||{},F.trigger&&F.trigger.apply(o,r)===!1)return;if(K=[[o,F.bindType||c]],!u&&!F.noBubble&&!n.isWindow(o)){for(ye=F.delegateType||c,M=null,k=o.parentNode;k;k=k.parentNode)K.push([k,ye]),M=k;M&&M===o.ownerDocument&&K.push([M.defaultView||M.parentWindow||e,ye])}for(C=0;C=0:Ee===i&&(Ee=O[ye]=K.quick?rn(k,K.quick):n(k).is(ye)),Ee&&W.push(K);W.length&&v.push({elem:k,matches:W})}for(r.length>o&&v.push({elem:this,matches:r.slice(o)}),g=0;g0?this.bind(r,o,u):this.trigger(r)},n.attrFn&&(n.attrFn[r]=!0),Ye.test(r)&&(n.event.fixHooks[r]=n.event.keyHooks),rt.test(r)&&(n.event.fixHooks[r]=n.event.mouseHooks)}),function(){function t(p,x,P,_,I,z){for(var U=0,ae=_.length;U0){fe=re;break}}re=re[p]}_[U]=fe}}}function r(p,x,P,_,I,z){for(var U=0,ae=_.length;U+~,(\[\\]+)+|[>+~])(\s*,\s*)?((?:.|\r|\n)*)/g,u="sizcache"+(Math.random()+"").replace(".",""),c=0,h=Object.prototype.toString,v=!1,g=!0,C=/\\/g,k=/\r\n/g,M=/\W/;[0,0].sort(function(){return g=!1,0});var O=function(p,x,P,_){P=P||[],x=x||q;var I=x;if(x.nodeType!==1&&x.nodeType!==9)return[];if(!p||typeof p!="string")return P;var z,U,ae,re,fe,dt,tt,w,H=!0,ie=O.isXML(x),j=[],Oe=p;do if(o.exec(""),z=o.exec(Oe),z&&(Oe=z[3],j.push(z[1]),z[2])){re=z[3];break}while(z);if(j.length>1&&K.exec(p))if(j.length===2&&W.relative[j[0]])U=xe(j[0]+j[1],x,_);else for(U=W.relative[j[0]]?[x]:O(j.shift(),x);j.length;)p=j.shift(),W.relative[p]&&(p+=j.shift()),U=xe(p,U,_);else if(!_&&j.length>1&&x.nodeType===9&&!ie&&W.match.ID.test(j[0])&&!W.match.ID.test(j[j.length-1])&&(fe=O.find(j.shift(),x,ie),x=fe.expr?O.filter(fe.expr,fe.set)[0]:fe.set[0]),x)for(fe=_?{expr:j.pop(),set:Ce(_)}:O.find(j.pop(),j.length===1&&(j[0]==="~"||j[0]==="+")&&x.parentNode?x.parentNode:x,ie),U=fe.expr?O.filter(fe.expr,fe.set):fe.set,j.length>0?ae=Ce(U):H=!1;j.length;)dt=j.pop(),tt=dt,W.relative[dt]?tt=j.pop():dt="",tt==null&&(tt=x),W.relative[dt](ae,tt,ie);else ae=j=[];if(ae||(ae=U),ae||O.error(dt||p),h.call(ae)==="[object Array]")if(!H)P.push.apply(P,ae);else if(x&&x.nodeType===1)for(w=0;ae[w]!=null;w++)ae[w]&&(ae[w]===!0||ae[w].nodeType===1&&O.contains(x,ae[w]))&&P.push(U[w]);else for(w=0;ae[w]!=null;w++)ae[w]&&ae[w].nodeType===1&&P.push(U[w]);else Ce(ae,P);return re&&(O(re,I,P,_),O.uniqueSort(P)),P};O.uniqueSort=function(p){if(it&&(v=g,p.sort(it),v))for(var x=1;x0},O.find=function(p,x,P){var _,I,z,U,ae,re;if(!p)return[];for(I=0,z=W.order.length;I":function(p,x){var P,_=typeof x=="string",I=0,z=p.length;if(_&&!M.test(x)){for(x=x.toLowerCase();I=0)?P||_.push(ae):P&&(x[U]=!1));return!1},ID:function(p){return p[1].replace(C,"")},TAG:function(p,x){return p[1].replace(C,"").toLowerCase()},CHILD:function(p){if(p[1]==="nth"){p[2]||O.error(p[0]),p[2]=p[2].replace(/^\+|\s*/g,"");var x=/(-?)(\d*)(?:n([+\-]?\d*))?/.exec(p[2]==="even"&&"2n"||p[2]==="odd"&&"2n+1"||!/\D/.test(p[2])&&"0n+"+p[2]||p[2]);p[2]=x[1]+(x[2]||1)-0,p[3]=x[3]-0}else p[2]&&O.error(p[0]);return p[0]=c++,p},ATTR:function(p,x,P,_,I,z){var U=p[1]=p[1].replace(C,"");return!z&&W.attrMap[U]&&(p[1]=W.attrMap[U]),p[4]=(p[4]||p[5]||"").replace(C,""),p[2]==="~="&&(p[4]=" "+p[4]+" "),p},PSEUDO:function(p,x,P,_,I){if(p[1]==="not")if((o.exec(p[3])||"").length>1||/^\w/.test(p[3]))p[3]=O(p[3],null,null,x);else{var z=O.filter(p[3],x,P,!0^I);return P||_.push.apply(_,z),!1}else if(W.match.POS.test(p[0])||W.match.CHILD.test(p[0]))return!0;return p},POS:function(p){return p.unshift(!0),p}},filters:{enabled:function(p){return p.disabled===!1&&p.type!=="hidden"},disabled:function(p){return p.disabled===!0},checked:function(p){return p.checked===!0},selected:function(p){return p.parentNode&&p.parentNode.selectedIndex,p.selected===!0},parent:function(p){return!!p.firstChild},empty:function(p){return!p.firstChild},has:function(p,x,P){return!!O(P[3],p).length},header:function(p){return/h\d/i.test(p.nodeName)},text:function(p){var x=p.getAttribute("type"),P=p.type;return p.nodeName.toLowerCase()==="input"&&P==="text"&&(x===P||x===null)},radio:function(p){return p.nodeName.toLowerCase()==="input"&&p.type==="radio"},checkbox:function(p){return p.nodeName.toLowerCase()==="input"&&p.type==="checkbox"},file:function(p){return p.nodeName.toLowerCase()==="input"&&p.type==="file"},password:function(p){return p.nodeName.toLowerCase()==="input"&&p.type==="password"},submit:function(p){var x=p.nodeName.toLowerCase();return(x==="input"||x==="button")&&p.type==="submit"},image:function(p){return p.nodeName.toLowerCase()==="input"&&p.type==="image"},reset:function(p){var x=p.nodeName.toLowerCase();return(x==="input"||x==="button")&&p.type==="reset"},button:function(p){var x=p.nodeName.toLowerCase();return x==="input"&&p.type==="button"||x==="button"},input:function(p){return/input|select|textarea|button/i.test(p.nodeName)},focus:function(p){return p===p.ownerDocument.activeElement}},setFilters:{first:function(p,x){return x===0},last:function(p,x,P,_){return x===_.length-1},even:function(p,x){return x%2===0},odd:function(p,x){return x%2===1},lt:function(p,x,P){return xP[3]-0},nth:function(p,x,P){return P[3]-0===x},eq:function(p,x,P){return P[3]-0===x}},filter:{PSEUDO:function(p,x,P,_){var I=x[1],z=W.filters[I];if(z)return z(p,P,x,_);if(I==="contains")return(p.textContent||p.innerText||F([p])||"").indexOf(x[3])>=0;if(I==="not"){for(var U=x[3],ae=0,re=U.length;ae=0}},ID:function(p,x){return p.nodeType===1&&p.getAttribute("id")===x},TAG:function(p,x){return x==="*"&&p.nodeType===1||!!p.nodeName&&p.nodeName.toLowerCase()===x},CLASS:function(p,x){return(" "+(p.className||p.getAttribute("class"))+" ").indexOf(x)>-1},ATTR:function(p,x){var P=x[1],_=O.attr?O.attr(p,P):W.attrHandle[P]?W.attrHandle[P](p):p[P]!=null?p[P]:p.getAttribute(P),I=_+"",z=x[2],U=x[4];return _==null?z==="!=":!z&&O.attr?_!=null:z==="="?I===U:z==="*="?I.indexOf(U)>=0:z==="~="?(" "+I+" ").indexOf(U)>=0:U?z==="!="?I!==U:z==="^="?I.indexOf(U)===0:z==="$="?I.substr(I.length-U.length)===U:z==="|="?I===U||I.substr(0,U.length+1)===U+"-":!1:I&&_!==!1},POS:function(p,x,P,_){var I=x[2],z=W.setFilters[I];if(z)return z(p,P,x,_)}}},K=W.match.POS,ye=function(p,x){return"\\"+(x-0+1)};for(var Ee in W.match)W.match[Ee]=new RegExp(W.match[Ee].source+/(?![^\[]*\])(?![^\(]*\))/.source),W.leftMatch[Ee]=new RegExp(/(^(?:.|\r|\n)*?)/.source+W.match[Ee].source.replace(/\\(\d+)/g,ye));var Ce=function(p,x){return p=Array.prototype.slice.call(p,0),x?(x.push.apply(x,p),x):p};try{Array.prototype.slice.call(q.documentElement.childNodes,0)[0].nodeType}catch(p){Ce=function(x,P){var _=0,I=P||[];if(h.call(x)==="[object Array]")Array.prototype.push.apply(I,x);else if(typeof x.length=="number")for(var z=x.length;_",P.insertBefore(p,P.firstChild),q.getElementById(x)&&(W.find.ID=function(_,I,z){if(typeof I.getElementById<"u"&&!z){var U=I.getElementById(_[1]);return U?U.id===_[1]||typeof U.getAttributeNode<"u"&&U.getAttributeNode("id").nodeValue===_[1]?[U]:i:[]}},W.filter.ID=function(_,I){var z=typeof _.getAttributeNode<"u"&&_.getAttributeNode("id");return _.nodeType===1&&z&&z.nodeValue===I}),P.removeChild(p),P=p=null}(),function(){var p=q.createElement("div");p.appendChild(q.createComment("")),p.getElementsByTagName("*").length>0&&(W.find.TAG=function(x,P){var _=P.getElementsByTagName(x[1]);if(x[1]==="*"){for(var I=[],z=0;_[z];z++)_[z].nodeType===1&&I.push(_[z]);_=I}return _}),p.innerHTML="",p.firstChild&&typeof p.firstChild.getAttribute<"u"&&p.firstChild.getAttribute("href")!=="#"&&(W.attrHandle.href=function(x){return x.getAttribute("href",2)}),p=null}(),q.querySelectorAll&&function(){var p=O,x=q.createElement("div"),P="__sizzle__";if(x.innerHTML="

",!x.querySelectorAll||x.querySelectorAll(".TEST").length!==0){O=function(I,z,U,ae){if(z=z||q,!ae&&!O.isXML(z)){var re=/^(\w+$)|^\.([\w\-]+$)|^#([\w\-]+$)/.exec(I);if(re&&(z.nodeType===1||z.nodeType===9)){if(re[1])return Ce(z.getElementsByTagName(I),U);if(re[2]&&W.find.CLASS&&z.getElementsByClassName)return Ce(z.getElementsByClassName(re[2]),U)}if(z.nodeType===9){if(I==="body"&&z.body)return Ce([z.body],U);if(re&&re[3]){var fe=z.getElementById(re[3]);if(!fe||!fe.parentNode)return Ce([],U);if(fe.id===re[3])return Ce([fe],U)}try{return Ce(z.querySelectorAll(I),U)}catch(j){}}else if(z.nodeType===1&&z.nodeName.toLowerCase()!=="object"){var dt=z,tt=z.getAttribute("id"),w=tt||P,H=z.parentNode,ie=/^\s*[+~]/.test(I);tt?w=w.replace(/'/g,"\\$&"):z.setAttribute("id",w),ie&&H&&(z=z.parentNode);try{if(!ie||H)return Ce(z.querySelectorAll("[id='"+w+"'] "+I),U)}catch(j){}finally{tt||dt.removeAttribute("id")}}}return p(I,z,U,ae)};for(var _ in p)O[_]=p[_];x=null}}(),function(){var p=q.documentElement,x=p.matchesSelector||p.mozMatchesSelector||p.webkitMatchesSelector||p.msMatchesSelector;if(x){var P=!x.call(q.createElement("div"),"div"),_=!1;try{x.call(q.documentElement,"[test!='']:sizzle")}catch(I){_=!0}O.matchesSelector=function(I,z){if(z=z.replace(/\=\s*([^'"\]]*)\s*\]/g,"='$1']"),!O.isXML(I))try{if(_||!W.match.PSEUDO.test(z)&&!/!=/.test(z)){var U=x.call(I,z);if(U||!P||I.document&&I.document.nodeType!==11)return U}}catch(ae){}return O(z,null,null,[I]).length>0}}}(),function(){var p=q.createElement("div");if(p.innerHTML="
",p.getElementsByClassName&&p.getElementsByClassName("e").length!==0){if(p.lastChild.className="e",p.getElementsByClassName("e").length===1)return;W.order.splice(1,0,"CLASS"),W.find.CLASS=function(x,P,_){if(typeof P.getElementsByClassName<"u"&&!_)return P.getElementsByClassName(x[1])},p=null}}(),q.documentElement.contains?O.contains=function(p,x){return p!==x&&(p.contains?p.contains(x):!0)}:q.documentElement.compareDocumentPosition?O.contains=function(p,x){return!!(p.compareDocumentPosition(x)&16)}:O.contains=function(){return!1},O.isXML=function(p){var x=(p?p.ownerDocument||p:0).documentElement;return x?x.nodeName!=="HTML":!1};var xe=function(p,x,P){for(var _,I=[],z="",U=x.nodeType?[x]:x;_=W.match.PSEUDO.exec(p);)z+=_[0],p=p.replace(W.match.PSEUDO,"");p=W.relative[p]?p+"*":p;for(var ae=0,re=U.length;ae0){for(v=h;v=0:n.filter(t,this).length>0:this.filter(t).length>0)},closest:function(t,r){var o=[],u,c,h=this[0];if(n.isArray(t)){for(var v=1;h&&h.ownerDocument&&h!==r;){for(u=0;u-1:n.find.matchesSelector(h,t)){o.push(h);break}if(h=h.parentNode,!h||!h.ownerDocument||h===r||h.nodeType===11)break}return o=o.length>1?n.unique(o):o,this.pushStack(o,"closest",t)},index:function(t){return t?typeof t=="string"?n.inArray(this[0],n(t)):n.inArray(t.jquery?t[0]:t,this):this[0]&&this[0].parentNode?this.prevAll().length:-1},add:function(t,r){var o=typeof t=="string"?n(t,r):n.makeArray(t&&t.nodeType?[t]:t),u=n.merge(this.get(),o);return this.pushStack(Se(o[0])||Se(u[0])?u:n.unique(u))},andSelf:function(){return this.add(this.prevObject)}}),n.each({parent:function(t){var r=t.parentNode;return r&&r.nodeType!==11?r:null},parents:function(t){return n.dir(t,"parentNode")},parentsUntil:function(t,r,o){return n.dir(t,"parentNode",o)},next:function(t){return n.nth(t,2,"nextSibling")},prev:function(t){return n.nth(t,2,"previousSibling")},nextAll:function(t){return n.dir(t,"nextSibling")},prevAll:function(t){return n.dir(t,"previousSibling")},nextUntil:function(t,r,o){return n.dir(t,"nextSibling",o)},prevUntil:function(t,r,o){return n.dir(t,"previousSibling",o)},siblings:function(t){return n.sibling(t.parentNode.firstChild,t)},children:function(t){return n.sibling(t.firstChild)},contents:function(t){return n.nodeName(t,"iframe")?t.contentDocument||t.contentWindow.document:n.makeArray(t.childNodes)}},function(t,r){n.fn[t]=function(o,u){var c=n.map(this,r,o),h=Bt.call(arguments);return mt.test(t)||(u=o),u&&typeof u=="string"&&(c=n.filter(u,c)),c=this.length>1&&!yt[t]?n.unique(c):c,(this.length>1||yn.test(u))&&Ge.test(t)&&(c=c.reverse()),this.pushStack(c,t,h.join(","))}}),n.extend({filter:function(t,r,o){return o&&(t=":not("+t+")"),r.length===1?n.find.matchesSelector(r[0],t)?[r[0]]:[]:n.find.matches(t,r)},dir:function(t,r,o){for(var u=[],c=t[r];c&&c.nodeType!==9&&(o===i||c.nodeType!==1||!n(c).is(o));)c.nodeType===1&&u.push(c),c=c[r];return u},nth:function(t,r,o,u){r=r||1;for(var c=0;t&&!(t.nodeType===1&&++c===r);t=t[o]);return t},sibling:function(t,r){for(var o=[];t;t=t.nextSibling)t.nodeType===1&&t!==r&&o.push(t);return o}});var wt="abbr article aside audio canvas datalist details figcaption figure footer header hgroup mark meter nav output progress section summary time video",Ft=/ jQuery\d+="(?:\d+|null)"/g,qe=/^\s+/,Je=/<(?!area|br|col|embed|hr|img|input|link|meta|param)(([\w:]+)[^>]*)\/>/ig,ze=/<([\w:]+)/,X=/",""],legend:[1,"
","
"],thead:[1,"","
"],tr:[2,"","
"],td:[3,"","
"],col:[2,"","
"],area:[1,"",""],_default:[0,"",""]},Ht=ue(q);$e.optgroup=$e.option,$e.tbody=$e.tfoot=$e.colgroup=$e.caption=$e.thead,$e.th=$e.td,n.support.htmlSerialize||($e._default=[1,"div
","
"]),n.fn.extend({text:function(t){return n.isFunction(t)?this.each(function(r){var o=n(this);o.text(t.call(this,r,o.text()))}):typeof t!="object"&&t!==i?this.empty().append((this[0]&&this[0].ownerDocument||q).createTextNode(t)):n.text(this)},wrapAll:function(t){if(n.isFunction(t))return this.each(function(o){n(this).wrapAll(t.call(this,o))});if(this[0]){var r=n(t,this[0].ownerDocument).eq(0).clone(!0);this[0].parentNode&&r.insertBefore(this[0]),r.map(function(){for(var o=this;o.firstChild&&o.firstChild.nodeType===1;)o=o.firstChild;return o}).append(this)}return this},wrapInner:function(t){return n.isFunction(t)?this.each(function(r){n(this).wrapInner(t.call(this,r))}):this.each(function(){var r=n(this),o=r.contents();o.length?o.wrapAll(t):r.append(t)})},wrap:function(t){return this.each(function(){n(this).wrapAll(t)})},unwrap:function(){return this.parent().each(function(){n.nodeName(this,"body")||n(this).replaceWith(this.childNodes)}).end()},append:function(){return this.domManip(arguments,!0,function(t){this.nodeType===1&&this.appendChild(t)})},prepend:function(){return this.domManip(arguments,!0,function(t){this.nodeType===1&&this.insertBefore(t,this.firstChild)})},before:function(){if(this[0]&&this[0].parentNode)return this.domManip(arguments,!1,function(r){this.parentNode.insertBefore(r,this)});if(arguments.length){var t=n(arguments[0]);return t.push.apply(t,this.toArray()),this.pushStack(t,"before",arguments)}},after:function(){if(this[0]&&this[0].parentNode)return this.domManip(arguments,!1,function(r){this.parentNode.insertBefore(r,this.nextSibling)});if(arguments.length){var t=this.pushStack(this,"after",arguments);return t.push.apply(t,n(arguments[0]).toArray()),t}},remove:function(t,r){for(var o=0,u;(u=this[o])!=null;o++)(!t||n.filter(t,[u]).length)&&(!r&&u.nodeType===1&&(n.cleanData(u.getElementsByTagName("*")),n.cleanData([u])),u.parentNode&&u.parentNode.removeChild(u));return this},empty:function(){for(var t=0,r;(r=this[t])!=null;t++)for(r.nodeType===1&&n.cleanData(r.getElementsByTagName("*"));r.firstChild;)r.removeChild(r.firstChild);return this},clone:function(t,r){return t=t==null?!1:t,r=r==null?t:r,this.map(function(){return n.clone(this,t,r)})},html:function(t){if(t===i)return this[0]&&this[0].nodeType===1?this[0].innerHTML.replace(Ft,""):null;if(typeof t=="string"&&!we.test(t)&&(n.support.leadingWhitespace||!qe.test(t))&&!$e[(ze.exec(t)||["",""])[1].toLowerCase()]){t=t.replace(Je,"<$1>");try{for(var r=0,o=this.length;r1&&k0?this.clone(!0):this).get();n(c[v])[r](C),u=u.concat(C)}return this.pushStack(u,t,c.selector)}}),n.extend({clone:function(t,r,o){var u=t.cloneNode(!0),c,h,v;if((!n.support.noCloneEvent||!n.support.noCloneChecked)&&(t.nodeType===1||t.nodeType===11)&&!n.isXMLDoc(t))for(he(t,u),c=ne(t),h=ne(u),v=0;c[v];++v)h[v]&&he(c[v],h[v]);if(r&&(Q(t,u),o))for(c=ne(t),h=ne(u),v=0;c[v];++v)Q(c[v],h[v]);return c=h=null,u},clean:function(t,r,o,u){var c;r=r||q,typeof r.createElement>"u"&&(r=r.ownerDocument||r[0]&&r[0].ownerDocument||q);for(var h=[],v,g=0,C;(C=t[g])!=null;g++)if(typeof C=="number"&&(C+=""),!!C){if(typeof C=="string")if(!ce.test(C))C=r.createTextNode(C);else{C=C.replace(Je,"<$1>");var k=(ze.exec(C)||["",""])[1].toLowerCase(),M=$e[k]||$e._default,O=M[0],F=r.createElement("div");for(r===q?Ht.appendChild(F):ue(r).appendChild(F),F.innerHTML=M[1]+C+M[2];O--;)F=F.lastChild;if(!n.support.tbody){var W=X.test(C),K=k==="table"&&!W?F.firstChild&&F.firstChild.childNodes:M[1]===""&&!W?F.childNodes:[];for(v=K.length-1;v>=0;--v)n.nodeName(K[v],"tbody")&&!K[v].childNodes.length&&K[v].parentNode.removeChild(K[v])}!n.support.leadingWhitespace&&qe.test(C)&&F.insertBefore(r.createTextNode(qe.exec(C)[0]),F.firstChild),C=F.childNodes}var ye;if(!n.support.appendChecked)if(C[0]&&typeof(ye=C.length)=="number")for(v=0;v=0)return u+"px"}}}),n.support.opacity||(n.cssHooks.opacity={get:function(t,r){return ya.test((r&&t.currentStyle?t.currentStyle.filter:t.style.filter)||"")?parseFloat(RegExp.$1)/100+"":r?"1":""},set:function(t,r){var o=t.style,u=t.currentStyle,c=n.isNumeric(r)?"alpha(opacity="+r*100+")":"",h=u&&u.filter||o.filter||"";o.zoom=1,!(r>=1&&n.trim(h.replace(cr,""))===""&&(o.removeAttribute("filter"),u&&!u.filter))&&(o.filter=cr.test(h)?h.replace(cr,c):h+" "+c)}}),n(function(){n.support.reliableMarginRight||(n.cssHooks.marginRight={get:function(t,r){var o;return n.swap(t,{display:"inline-block"},function(){r?o=on(t,"margin-right","marginRight"):o=t.style.marginRight}),o}})}),q.defaultView&&q.defaultView.getComputedStyle&&(ri=function(t,r){var o,u,c;return r=r.replace(wa,"-$1").toLowerCase(),(u=t.ownerDocument.defaultView)?((c=u.getComputedStyle(t,null))&&(o=c.getPropertyValue(r),o===""&&!n.contains(t.ownerDocument.documentElement,t)&&(o=n.style(t,r))),o):i}),q.documentElement.currentStyle&&(ii=function(t,r){var o,u,c,h=t.currentStyle&&t.currentStyle[r],v=t.style;return h===null&&v&&(c=v[r])&&(h=c),!ni.test(h)&&ba.test(h)&&(o=v.left,u=t.runtimeStyle&&t.runtimeStyle.left,u&&(t.runtimeStyle.left=t.currentStyle.left),v.left=r==="fontSize"?"1em":h||0,h=v.pixelLeft+"px",v.left=o,u&&(t.runtimeStyle.left=u)),h===""?"auto":h}),on=ri||ii,n.expr&&n.expr.filters&&(n.expr.filters.hidden=function(t){var r=t.offsetWidth,o=t.offsetHeight;return r===0&&o===0||!n.support.reliableHiddenOffsets&&(t.style&&t.style.display||n.css(t,"display"))==="none"},n.expr.filters.visible=function(t){return!n.expr.filters.hidden(t)});var Ta=/%20/g,Ea=/\[\]$/,oi=/\r?\n/g,Ma=/#.*$/,Oa=/^(.*?):[ \t]*([^\r\n]*)\r?$/mg,ka=/^(?:color|date|datetime|datetime-local|email|hidden|month|number|password|range|search|tel|text|time|url|week)$/i,Pa=/^(?:about|app|app\-storage|.+\-extension|file|res|widget):$/,Ra=/^(?:GET|HEAD)$/,Da=/^\/\//,ai=/\?/,_a=/)<[^<]*)*<\/script>/gi,Na=/^(?:select|textarea)/i,si=/\s+/,La=/([?&])_=[^&]*/,li=/^([\w\+\.\-]+:)(?:\/\/([^\/?#:]*)(?::(\d+))?)?/,ui=n.fn.load,fr={},ci={},$t,qt,fi=["*/"]+["*"];try{$t=l.href}catch(t){$t=q.createElement("a"),$t.href="",$t=$t.href}qt=li.exec($t.toLowerCase())||[],n.fn.extend({load:function(t,r,o){if(typeof t!="string"&&ui)return ui.apply(this,arguments);if(!this.length)return this;var u=t.indexOf(" ");if(u>=0){var c=t.slice(u,t.length);t=t.slice(0,u)}var h="GET";r&&(n.isFunction(r)?(o=r,r=i):typeof r=="object"&&(r=n.param(r,n.ajaxSettings.traditional),h="POST"));var v=this;return n.ajax({url:t,type:h,dataType:"html",data:r,complete:function(g,C,k){k=g.responseText,g.isResolved()&&(g.done(function(M){k=M}),v.html(c?n("
").append(k.replace(_a,"")).find(c):k)),o&&v.each(o,[k,C,g])}}),this},serialize:function(){return n.param(this.serializeArray())},serializeArray:function(){return this.map(function(){return this.elements?n.makeArray(this.elements):this}).filter(function(){return this.name&&!this.disabled&&(this.checked||Na.test(this.nodeName)||ka.test(this.type))}).map(function(t,r){var o=n(this).val();return o==null?null:n.isArray(o)?n.map(o,function(u,c){return{name:r.name,value:u.replace(oi,`\r `)}}):{name:r.name,value:o.replace(oi,`\r `)}}).get()}}),n.each("ajaxStart ajaxStop ajaxComplete ajaxError ajaxSuccess ajaxSend".split(" "),function(t,r){n.fn[r]=function(o){return this.bind(r,o)}}),n.each(["get","post"],function(t,r){n[r]=function(o,u,c,h){return n.isFunction(u)&&(h=h||c,c=u,u=i),n.ajax({type:r,url:o,data:u,success:c,dataType:h})}}),n.extend({getScript:function(t,r){return n.get(t,i,r,"script")},getJSON:function(t,r,o){return n.get(t,r,o,"json")},ajaxSetup:function(t,r){return r?V(t,n.ajaxSettings):(r=t,t=n.ajaxSettings),V(t,r),t},ajaxSettings:{url:$t,isLocal:Pa.test(qt[1]),global:!0,type:"GET",contentType:"application/x-www-form-urlencoded",processData:!0,async:!0,accepts:{xml:"application/xml, text/xml",html:"text/html",text:"text/plain",json:"application/json, text/javascript","*":fi},contents:{xml:/xml/,html:/html/,json:/json/},responseFields:{xml:"responseXML",text:"responseText"},converters:{"* text":e.String,"text html":!0,"text json":n.parseJSON,"text xml":n.parseXML},flatOptions:{context:!0,url:!0}},ajaxPrefilter:se(fr),ajaxTransport:se(ci),ajax:function(t,r){function o(P,_,I,z){if(Ce!==2){Ce=2,ye&&clearTimeout(ye),K=i,F=z||"",xe.readyState=P>0?4:0;var U,ae,re,fe=_,dt=I?D(u,xe,I):i,tt,w;if(P>=200&&P<300||P===304)if(u.ifModified&&((tt=xe.getResponseHeader("Last-Modified"))&&(n.lastModified[k]=tt),(w=xe.getResponseHeader("Etag"))&&(n.etag[k]=w)),P===304)fe="notmodified",U=!0;else try{ae=E(u,dt),fe="success",U=!0}catch(H){fe="parsererror",re=H}else re=fe,(!fe||P)&&(fe="error",P<0&&(P=0));xe.status=P,xe.statusText=""+(_||fe),U?v.resolveWith(c,[ae,fe,xe]):v.rejectWith(c,[xe,fe,re]),xe.statusCode(C),C=i,it&&h.trigger("ajax"+(U?"Success":"Error"),[xe,u,U?ae:re]),g.fireWith(c,[xe,fe]),it&&(h.trigger("ajaxComplete",[xe,u]),--n.active||n.event.trigger("ajaxStop"))}}typeof t=="object"&&(r=t,t=i),r=r||{};var u=n.ajaxSetup({},r),c=u.context||u,h=c!==u&&(c.nodeType||c instanceof n)?n(c):n.event,v=n.Deferred(),g=n.Callbacks("once memory"),C=u.statusCode||{},k,M={},O={},F,W,K,ye,Ee,Ce=0,it,ot,xe={readyState:0,setRequestHeader:function(P,_){if(!Ce){var I=P.toLowerCase();P=O[I]=O[I]||P,M[P]=_}return this},getAllResponseHeaders:function(){return Ce===2?F:null},getResponseHeader:function(P){var _;if(Ce===2){if(!W)for(W={};_=Oa.exec(F);)W[_[1].toLowerCase()]=_[2];_=W[P.toLowerCase()]}return _===i?null:_},overrideMimeType:function(P){return Ce||(u.mimeType=P),this},abort:function(P){return P=P||"abort",K&&K.abort(P),o(0,P),this}};if(v.promise(xe),xe.success=xe.done,xe.error=xe.fail,xe.complete=g.add,xe.statusCode=function(P){if(P){var _;if(Ce<2)for(_ in P)C[_]=[C[_],P[_]];else _=P[xe.status],xe.then(_,_)}return this},u.url=((t||u.url)+"").replace(Ma,"").replace(Da,qt[1]+"//"),u.dataTypes=n.trim(u.dataType||"*").toLowerCase().split(si),u.crossDomain==null&&(Ee=li.exec(u.url.toLowerCase()),u.crossDomain=!(!Ee||Ee[1]==qt[1]&&Ee[2]==qt[2]&&(Ee[3]||(Ee[1]==="http:"?80:443))==(qt[3]||(qt[1]==="http:"?80:443)))),u.data&&u.processData&&typeof u.data!="string"&&(u.data=n.param(u.data,u.traditional)),Y(fr,u,r,xe),Ce===2)return!1;if(it=u.global,u.type=u.type.toUpperCase(),u.hasContent=!Ra.test(u.type),it&&n.active++===0&&n.event.trigger("ajaxStart"),!u.hasContent&&(u.data&&(u.url+=(ai.test(u.url)?"&":"?")+u.data,delete u.data),k=u.url,u.cache===!1)){var p=n.now(),x=u.url.replace(La,"$1_="+p);u.url=x+(x===u.url?(ai.test(u.url)?"&":"?")+"_="+p:"")}(u.data&&u.hasContent&&u.contentType!==!1||r.contentType)&&xe.setRequestHeader("Content-Type",u.contentType),u.ifModified&&(k=k||u.url,n.lastModified[k]&&xe.setRequestHeader("If-Modified-Since",n.lastModified[k]),n.etag[k]&&xe.setRequestHeader("If-None-Match",n.etag[k])),xe.setRequestHeader("Accept",u.dataTypes[0]&&u.accepts[u.dataTypes[0]]?u.accepts[u.dataTypes[0]]+(u.dataTypes[0]!=="*"?", "+fi+"; q=0.01":""):u.accepts["*"]);for(ot in u.headers)xe.setRequestHeader(ot,u.headers[ot]);if(u.beforeSend&&(u.beforeSend.call(c,xe,u)===!1||Ce===2))return xe.abort(),!1;for(ot in{success:1,error:1,complete:1})xe[ot](u[ot]);if(K=Y(ci,u,r,xe),!K)o(-1,"No Transport");else{xe.readyState=1,it&&h.trigger("ajaxSend",[xe,u]),u.async&&u.timeout>0&&(ye=setTimeout(function(){xe.abort("timeout")},u.timeout));try{Ce=1,K.send(M,o)}catch(P){Ce<2?o(-1,P):n.error(P)}}return xe},param:function(t,r){var o=[],u=function(h,v){v=n.isFunction(v)?v():v,o[o.length]=encodeURIComponent(h)+"="+encodeURIComponent(v)};if(r===i&&(r=n.ajaxSettings.traditional),n.isArray(t)||t.jquery&&!n.isPlainObject(t))n.each(t,function(){u(this.name,this.value)});else for(var c in t)$(c,t[c],r,u);return o.join("&").replace(Ta,"+")}}),n.extend({active:0,lastModified:{},etag:{}});var Ba=n.now(),Rn=/(\=)\?(&|$)|\?\?/i;n.ajaxSetup({jsonp:"callback",jsonpCallback:function(){return n.expando+"_"+Ba++}}),n.ajaxPrefilter("json jsonp",function(t,r,o){var u=t.contentType==="application/x-www-form-urlencoded"&&typeof t.data=="string";if(t.dataTypes[0]==="jsonp"||t.jsonp!==!1&&(Rn.test(t.url)||u&&Rn.test(t.data))){var c,h=t.jsonpCallback=n.isFunction(t.jsonpCallback)?t.jsonpCallback():t.jsonpCallback,v=e[h],g=t.url,C=t.data,k="$1"+h+"$2";return t.jsonp!==!1&&(g=g.replace(Rn,k),t.url===g&&(u&&(C=C.replace(Rn,k)),t.data===C&&(g+=(/\?/.test(g)?"&":"?")+t.jsonp+"="+h))),t.url=g,t.data=C,e[h]=function(M){c=[M]},o.always(function(){e[h]=v,c&&n.isFunction(v)&&e[h](c[0])}),t.converters["script json"]=function(){return c||n.error(h+" was not called"),c[0]},t.dataTypes[0]="json","script"}}),n.ajaxSetup({accepts:{script:"text/javascript, application/javascript, application/ecmascript, application/x-ecmascript"},contents:{script:/javascript|ecmascript/},converters:{"text script":function(t){return n.globalEval(t),t}}}),n.ajaxPrefilter("script",function(t){t.cache===i&&(t.cache=!1),t.crossDomain&&(t.type="GET",t.global=!1)}),n.ajaxTransport("script",function(t){if(t.crossDomain){var r,o=q.head||q.getElementsByTagName("head")[0]||q.documentElement;return{send:function(u,c){r=q.createElement("script"),r.async="async",t.scriptCharset&&(r.charset=t.scriptCharset),r.src=t.url,r.onload=r.onreadystatechange=function(h,v){(v||!r.readyState||/loaded|complete/.test(r.readyState))&&(r.onload=r.onreadystatechange=null,o&&r.parentNode&&o.removeChild(r),r=i,v||c(200,"success"))},o.insertBefore(r,o.firstChild)},abort:function(){r&&r.onload(0,1)}}}});var dr=e.ActiveXObject?function(){for(var t in an)an[t](0,1)}:!1,Fa=0,an;n.ajaxSettings.xhr=e.ActiveXObject?function(){return!this.isLocal&&A()||T()}:A,function(t){n.extend(n.support,{ajax:!!t,cors:!!t&&"withCredentials"in t})}(n.ajaxSettings.xhr()),n.support.ajax&&n.ajaxTransport(function(t){if(!t.crossDomain||n.support.cors){var r;return{send:function(o,u){var c=t.xhr(),h,v;if(t.username?c.open(t.type,t.url,t.async,t.username,t.password):c.open(t.type,t.url,t.async),t.xhrFields)for(v in t.xhrFields)c[v]=t.xhrFields[v];t.mimeType&&c.overrideMimeType&&c.overrideMimeType(t.mimeType),!t.crossDomain&&!o["X-Requested-With"]&&(o["X-Requested-With"]="XMLHttpRequest");try{for(v in o)c.setRequestHeader(v,o[v])}catch(g){}c.send(t.hasContent&&t.data||null),r=function(g,C){var k,M,O,F,W;try{if(r&&(C||c.readyState===4))if(r=i,h&&(c.onreadystatechange=n.noop,dr&&delete an[h]),C)c.readyState!==4&&c.abort();else{k=c.status,O=c.getAllResponseHeaders(),F={},W=c.responseXML,W&&W.documentElement&&(F.xml=W),F.text=c.responseText;try{M=c.statusText}catch(K){M=""}!k&&t.isLocal&&!t.crossDomain?k=F.text?200:404:k===1223&&(k=204)}}catch(K){C||u(-1,K)}F&&u(k,M,F,O)},!t.async||c.readyState===4?r():(h=++Fa,dr&&(an||(an={},n(e).unload(dr)),an[h]=r),c.onreadystatechange=r)},abort:function(){r&&r(0,1)}}}});var hr={},Tt,sn,Ia=/^(?:toggle|show|hide)$/,za=/^([+\-]=)?([\d+.\-]+)([a-z%]*)$/i,Dn,di=[["height","marginTop","marginBottom","paddingTop","paddingBottom"],["width","marginLeft","marginRight","paddingLeft","paddingRight"],["opacity"]],_n;n.fn.extend({show:function(t,r,o){var u,c;if(t||t===0)return this.animate(d("show",3),t,r,o);for(var h=0,v=this.length;h=g.duration+this.startTime){this.now=this.end,this.pos=this.state=1,this.update(),g.animatedProperties[this.prop]=!0;for(r in g.animatedProperties)g.animatedProperties[r]!==!0&&(h=!1);if(h){if(g.overflow!=null&&!n.support.shrinkWrapBlocks&&n.each(["","X","Y"],function(C,k){v.style["overflow"+k]=g.overflow[C]}),g.hide&&n(v).hide(),g.hide||g.show)for(r in g.animatedProperties)n.style(v,r,g.orig[r]),n.removeData(v,"fxshow"+r,!0),n.removeData(v,"toggle"+r,!0);u=g.complete,u&&(g.complete=!1,u.call(v))}return!1}return g.duration==1/0?this.now=c:(o=c-this.startTime,this.state=o/g.duration,this.pos=n.easing[g.animatedProperties[this.prop]](this.state,o,0,1,g.duration),this.now=this.start+(this.end-this.start)*this.pos),this.update(),!0}},n.extend(n.fx,{tick:function(){for(var t,r=n.timers,o=0;o-1,k={},M={},O,F;C?(M=c.position(),O=M.top,F=M.left):(O=parseFloat(v)||0,F=parseFloat(g)||0),n.isFunction(r)&&(r=r.call(t,o,h)),r.top!=null&&(k.top=r.top-h.top+O),r.left!=null&&(k.left=r.left-h.left+F),"using"in r?r.using.call(t,k):c.css(k)}},n.fn.extend({position:function(){if(!this[0])return null;var t=this[0],r=this.offsetParent(),o=this.offset(),u=hi.test(r[0].nodeName)?{top:0,left:0}:r.offset();return o.top-=parseFloat(n.css(t,"marginTop"))||0,o.left-=parseFloat(n.css(t,"marginLeft"))||0,u.top+=parseFloat(n.css(r[0],"borderTopWidth"))||0,u.left+=parseFloat(n.css(r[0],"borderLeftWidth"))||0,{top:o.top-u.top,left:o.left-u.left}},offsetParent:function(){return this.map(function(){for(var t=this.offsetParent||q.body;t&&!hi.test(t.nodeName)&&n.css(t,"position")==="static";)t=t.offsetParent;return t})}}),n.each(["Left","Top"],function(t,r){var o="scroll"+r;n.fn[o]=function(u){var c,h;return u===i?(c=this[0],c?(h=a(c),h?"pageXOffset"in h?h[t?"pageYOffset":"pageXOffset"]:n.support.boxModel&&h.document.documentElement[o]||h.document.body[o]:c[o]):null):this.each(function(){h=a(this),h?h.scrollTo(t?n(h).scrollLeft():u,t?u:n(h).scrollTop()):this[o]=u})}}),n.each(["Height","Width"],function(t,r){var o=r.toLowerCase();n.fn["inner"+r]=function(){var u=this[0];return u?u.style?parseFloat(n.css(u,o,"padding")):this[o]():null},n.fn["outer"+r]=function(u){var c=this[0];return c?c.style?parseFloat(n.css(c,o,u?"margin":"border")):this[o]():null},n.fn[o]=function(u){var c=this[0];if(!c)return u==null?null:this;if(n.isFunction(u))return this.each(function(k){var M=n(this);M[o](u.call(this,k,M[o]()))});if(n.isWindow(c)){var h=c.document.documentElement["client"+r],v=c.document.body;return c.document.compatMode==="CSS1Compat"&&h||v&&v["client"+r]||h}if(c.nodeType===9)return Math.max(c.documentElement["client"+r],c.body["scroll"+r],c.documentElement["scroll"+r],c.body["offset"+r],c.documentElement["offset"+r]);if(u===i){var g=n.css(c,o),C=parseFloat(g);return n.isNumeric(C)?C:g}return this.css(o,typeof u=="string"?u:u+"px")}}),e.jQuery=e.$=n})(window);(function(e){var i,a,f="",d="4.1.0",y=Math.PI,S=y/2,T="ontouchstart"in window,A=T?{down:"touchstart",move:"touchmove",up:"touchend",over:"touchstart",out:"touchend"}:{down:"mousedown",move:"mousemove",up:"mouseup",over:"mouseover",out:"mouseout"},E={backward:["bl","tl"],forward:["br","tr"],all:["tl","bl","tr","br","l","r"]},D=["single","double"],$=["ltr","rtl"],V={acceleration:!0,display:"double",duration:600,page:1,gradients:!0,turnCorners:"bl,br",when:null},Y={cornerSize:100},se=6,N={init:function(s){i="WebKitCSSMatrix"in window||"MozPerspective"in document.body.style,a=ve(),f=be();var l,n=0,m=this.data(),b=this.children();if(s=e.extend({width:this.width(),height:this.height(),direction:this.attr("dir")||this.css("direction")||"ltr"},V,s),m.opts=s,m.pageObjs={},m.pages={},m.pageWrap={},m.pageZoom={},m.pagePlace={},m.pageMv=[],m.zoom=1,m.totalPages=s.pages||0,m.eventHandlers={touchStart:e.proxy(N._touchStart,this),touchMove:e.proxy(N._touchMove,this),touchEnd:e.proxy(N._touchEnd,this),start:e.proxy(N._eventStart,this)},s.when)for(l in s.when)Se(l,s.when)&&this.bind(l,s.when[l]);for(this.css({position:"relative",width:s.width,height:s.height}),this.turn("display",s.display),s.direction!==""&&this.turn("direction",s.direction),i&&!T&&s.acceleration&&this.transform(ue(0,0,!0)),l=0;loe)throw de('Page "'+l+'" cannot be inserted')}else l=oe,b=!0;return l>=1&&l<=oe&&(B.display=="double"?m=l%2?" odd":" even":m="",B.done&&this.turn("stop"),l in B.pageObjs&&N._movePages.call(this,l,1),b&&(B.totalPages=oe),B.pageObjs[l]=e(s).css({float:"left"}).addClass("page p"+l+m),!q()&&B.pageObjs[l].hasClass("hard")&&B.pageObjs[l].removeClass("hard"),N._addPage.call(this,l),N._removeFromDOM.call(this)),this},_addPage:function(s){var l=this.data(),n=l.pageObjs[s];if(n)if(N._necessPage.call(this,s)){if(!l.pageWrap[s]){l.pageWrap[s]=e("
",{class:"page-wrapper",page:s,css:{position:"absolute",overflow:"hidden"}}),this.append(l.pageWrap[s]),l.pagePlace[s]||(l.pagePlace[s]=s,l.pageObjs[s].appendTo(l.pageWrap[s]));var m=N._pageSize.call(this,s,!0);n.css({width:m.width,height:m.height}),l.pageWrap[s].css(m)}l.pagePlace[s]==s&&N._makeFlip.call(this,s)}else l.pagePlace[s]=0,l.pageObjs[s]&&l.pageObjs[s].remove()},hasPage:function(s){return Se(s,this.data().pageObjs)},center:function(s){var l=this.data(),n=e(this).turn("size"),m=0;if(!l.noCenter){if(l.display=="double"){var b=this.turn("view",s||l.tpage||l.page);l.direction=="ltr"?b[0]?b[1]||(m+=n.width/4):m-=n.width/4:b[0]?b[1]||(m-=n.width/4):m+=n.width/4}e(this).css({marginLeft:m})}return this},destroy:function(){var s=this,l=this.data(),n=["end","first","flip","last","pressed","released","start","turning","turned","zooming","missing"];if(Te("destroying",this)!="prevented"){for(l.destroying=!0,e.each(n,function(m,b){s.unbind(b)}),this.parent().unbind("start",l.eventHandlers.start),e(document).unbind(A.move,l.eventHandlers.touchMove).unbind(A.up,l.eventHandlers.touchEnd);l.totalPages!==0;)this.turn("removePage",l.totalPages);return l.fparent&&l.fparent.remove(),l.shadow&&l.shadow.remove(),this.removeData(),l=null,this}},is:function(){return typeof this.data().pages=="object"},zoom:function(s){var l=this.data();if(typeof s=="number"){if(s<.001||s>100)throw de(s+" is not a value for zoom");if(Te("zooming",this,[s,l.zoom])=="prevented")return this;var n=this.turn("size"),m=this.turn("view"),b=1/l.zoom,B=Math.round(n.width*b*s),oe=Math.round(n.height*b*s);l.zoom=s,e(this).turn("stop").turn("size",B,oe),l.opts.autoCenter&&this.turn("center"),N._updateShadow.call(this);for(var ee=0;eeB.totalPages)throw de('"'+s+'" is not a valid page');return b[1]=b[1]||b[0],b[0]>=1&&b[1]<=B.totalPages?(l=Math.floor((se-2)/2),B.totalPages-b[1]>b[0]?(n=Math.min(b[0]-1,l),m=2*l-n):(m=Math.min(B.totalPages-b[1],l),n=2*l-m)):(n=se-1,m=se-1),[Math.max(1,b[0]-n),Math.min(B.totalPages,b[1]+m)]},_necessPage:function(s){if(s===0)return!0;var l=this.turn("range");return this.data().pageObjs[s].hasClass("fixed")||s>=l[0]&&s<=l[1]},_removeFromDOM:function(){var s,l=this.data();for(s in l.pageWrap)Se(s,l.pageWrap)&&!N._necessPage.call(this,s)&&N._removePageFromDOM.call(this,s)},_removePageFromDOM:function(s){var l=this.data();if(l.pages[s]){var n=l.pages[s].data();L._moveFoldingPage.call(l.pages[s],!1),n.f&&n.f.fwrapper&&n.f.fwrapper.remove(),l.pages[s].removeData(),l.pages[s].remove(),delete l.pages[s]}l.pageObjs[s]&&l.pageObjs[s].remove(),l.pageWrap[s]&&(l.pageWrap[s].remove(),delete l.pageWrap[s]),N._removeMv.call(this,s),delete l.pagePlace[s],delete l.pageZoom[s]},removePage:function(s){var l=this.data();if(s=="*")for(;l.totalPages!==0;)this.turn("removePage",l.totalPages);else{if(s<1||s>l.totalPages)throw de("The page "+s+" doesn't exist");l.pageObjs[s]&&(this.turn("stop"),N._removePageFromDOM.call(this,s),delete l.pageObjs[s]),N._movePages.call(this,s,-1),l.totalPages=l.totalPages-1,l.page>l.totalPages?(l.page=null,N._fitPage.call(this,l.totalPages)):(N._makeRange.call(this),this.turn("update"))}return this},_movePages:function(s,l){var n,m=this,b=this.data(),B=b.display=="single",oe=function(ee){var pe=ee+l,Re=pe%2,_e=Re?" odd ":" even ";b.pageObjs[ee]&&(b.pageObjs[pe]=b.pageObjs[ee].removeClass("p"+ee+" odd even").addClass("p"+pe+_e)),b.pagePlace[ee]&&b.pageWrap[ee]&&(b.pagePlace[pe]=pe,b.pageObjs[pe].hasClass("fixed")?b.pageWrap[pe]=b.pageWrap[ee].attr("page",pe):b.pageWrap[pe]=b.pageWrap[ee].css(N._pageSize.call(m,pe,!0)).attr("page",pe),b.pages[ee]&&(b.pages[pe]=b.pages[ee].flip("options",{page:pe,next:B||Re?pe+1:pe-1})),l&&(delete b.pages[ee],delete b.pagePlace[ee],delete b.pageZoom[ee],delete b.pageObjs[ee],delete b.pageWrap[ee]))};if(l>0)for(n=b.totalPages;n>=s;n--)oe(n);else for(n=s;n<=b.totalPages;n++)oe(n)},display:function(s){var l=this.data(),n=l.display;if(s===void 0)return n;if(e.inArray(s,D)==-1)throw de('"'+s+'" is not a value for display');switch(s){case"single":l.pageObjs[0]||(this.turn("stop").css({overflow:"hidden"}),l.pageObjs[0]=e("
",{class:"page p-temporal"}).css({width:this.width(),height:this.height()}).appendTo(this)),this.addClass("shadow");break;case"double":l.pageObjs[0]&&(this.turn("stop").css({overflow:""}),l.pageObjs[0].remove(),delete l.pageObjs[0]),this.removeClass("shadow");break}if(l.display=s,n){var m=this.turn("size");N._movePages.call(this,1,0),this.turn("size",m.width,m.height).turn("update")}return this},direction:function(s){var l=this.data();if(s===void 0)return l.direction;if(s=s.toLowerCase(),e.inArray(s,$)==-1)throw de('"'+s+'" is not a value for direction');return s=="rtl"&&e(this).attr("dir","ltr").css({direction:"ltr"}),l.direction=s,l.done&&this.turn("size",e(this).width(),e(this).height()),this},animating:function(){return this.data().pageMv.length>0},corner:function(){var s,l,n=this.data();for(l in n.pages)if(Se(l,n.pages)&&(s=n.pages[l].flip("corner")))return s;return!1},data:function(){return this.data()},disable:function(s){var l,n=this.data(),m=this.turn("view");n.disabled=s===void 0||s===!0;for(l in n.pages)Se(l,n.pages)&&n.pages[l].flip("disable",n.disabled?!0:e.inArray(parseInt(l,10),m)==-1);return this},disabled:function(s){return s===void 0?this.data().disabled===!0:this.turn("disable",s)},size:function(s,l){if(s===void 0||l===void 0)return{width:this.width(),height:this.height()};this.turn("stop");var n,m,b=this.data(),B=b.display=="double"?s/2:s;this.css({width:s,height:l}),b.pageObjs[0]&&b.pageObjs[0].css({width:B,height:l});for(n in b.pageWrap)Se(n,b.pageWrap)&&(m=N._pageSize.call(this,n,!0),b.pageObjs[n].css({width:m.width,height:m.height}),b.pageWrap[n].css(m),b.pages[n]&&b.pages[n].css({width:m.width,height:m.height}));return this.turn("resize"),this},resize:function(){var s,l=this.data();for(l.pages[0]&&(l.pageWrap[0].css({left:-this.width()}),l.pages[0].flip("resize",!0)),s=1;s<=l.totalPages;s++)l.pages[s]&&l.pages[s].flip("resize",!0);N._updateShadow.call(this),l.opts.autoCenter&&this.turn("center")},_removeMv:function(s){var l,n=this.data();for(l=0;l0?n[0]:0,n[1]<=l.totalPages?n[1]:0]:[n[0]>0&&n[0]<=l.totalPages?n[0]:0]},stop:function(s,l){if(this.turn("animating")){var n,m,b,B=this.data();for(B.tpage&&(B.page=B.tpage,delete B.tpage),n=0;ns;n--)this.turn("removePage",n);return l.totalPages=s,N._fitPage.call(this,l.page),this}else return l.totalPages},_missing:function(s){var l=this.data();if(!(l.totalPages<1)){var n,m=this.turn("range",s),b=[];for(n=m[0];n<=m[1];n++)l.pageObjs[n]||b.push(n);b.length>0&&this.trigger("missing",[b])}},_fitPage:function(s){var l=this.data(),n=this.turn("view",s);if(N._missing.call(this,s),!!l.pageObjs[s]){l.page=s,this.turn("stop");for(var m=0;mB[1]?(l=B[1],n=oe[0]):B[0]&&sl?"r":"l"):m.pages[l].flip("turnPage",s>l?"l":"r"):m.direction=="ltr"?m.pages[l].flip("turnPage",pe[s>l?1:0]):m.pages[l].flip("turnPage",pe[s>l?0:1]))},page:function(s){var l=this.data();if(s===void 0)return l.page;if(!l.disabled&&!l.destroying){if(s=parseInt(s,10),s>0&&s<=l.totalPages)return s!=l.page&&(!l.done||e.inArray(s,this.turn("view"))!=-1?N._fitPage.call(this,s):N._turnPage.call(this,s)),this;throw de("The page "+s+" does not exist")}},next:function(){return this.turn("page",Math.min(this.data().totalPages,N._view.call(this,this.data().page).pop()+1))},previous:function(){return this.turn("page",Math.max(1,N._view.call(this,this.data().page).shift()-1))},peel:function(s,l){var n=this.data(),m=this.turn("view");if(l=l===void 0?!0:l===!0,s===!1)this.turn("stop",null,l);else if(n.display=="single")n.pages[n.page].flip("peel",s,l);else{var b;n.direction=="ltr"?b=s.indexOf("l")!=-1?m[0]:m[1]:b=s.indexOf("l")!=-1?m[1]:m[0],n.pages[b]&&n.pages[b].flip("peel",s,l)}return this},_addMotionPage:function(){var s=e(this).data().f.opts,l=s.turn;l.data(),N._addMv.call(l,s.page)},_eventStart:function(s,l,n){var m=l.turn.data(),b=m.pageZoom[l.page];if(s.isDefaultPrevented()){N._updateShadow.call(l.turn);return}b&&b!=m.zoom&&(l.turn.trigger("zoomed",[l.page,l.turn.turn("view",l.page),b,m.zoom]),m.pageZoom[l.page]=m.zoom),m.display=="single"&&n&&(n.charAt(1)=="l"&&m.direction=="ltr"||n.charAt(1)=="r"&&m.direction=="rtl"?(l.next=l.nextl.page?l.next:l.page+1),N._addMotionPage.call(s.target),N._updateShadow.call(l.turn)},_eventEnd:function(s,l,n){var m=e(s.target);m.data().f;var b=l.turn,B=b.data();if(n){var oe=B.tpage||B.page;(oe==l.next||oe==l.page)&&(delete B.tpage,N._fitPage.call(b,oe||l.next,!0))}else N._removeMv.call(b,l.page),N._updateShadow.call(b),b.turn("update")},_eventPressed:function(s){var l=e(s.target).data().f,n=l.opts.turn,m=n.data();return m.pages,m.mouseAction=!0,n.turn("update"),l.time=new Date().getTime()},_eventReleased:function(s,l){var n,m=e(s.target),b=m.data().f,B=b.opts.turn,oe=B.data();oe.display=="single"?n=l.corner=="br"||l.corner=="tr"?l.xm.width()/2:n=l.x<0||l.x>m.width(),(new Date().getTime()-b.time<200||n)&&(s.preventDefault(),N._turnPage.call(B,b.opts.next)),oe.mouseAction=!1},_flip:function(s){s.stopPropagation();var l=e(s.target).data().f.opts;l.turn.trigger("turn",[l.next]),l.turn.data().opts.autoCenter&&l.turn.turn("center",l.next)},_touchStart:function(){var s=this.data();for(var l in s.pages)if(Se(l,s.pages)&&L._eventStart.apply(s.pages[l],arguments)===!1)return!1},_touchMove:function(){var s=this.data();for(var l in s.pages)Se(l,s.pages)&&L._eventMove.apply(s.pages[l],arguments)},_touchEnd:function(){var s=this.data();for(var l in s.pages)Se(l,s.pages)&&L._eventEnd.apply(s.pages[l],arguments)},calculateZ:function(s){var l,n,m,b,B,oe=this,ee=this.data(),pe=this.turn("view"),Re=pe[0]||pe[1],_e=s.length-1,Ie={pageZ:{},partZ:{},pageV:{}},lt=function(nt){var He=oe.turn("view",nt);He[0]&&(Ie.pageV[He[0]]=!0),He[1]&&(Ie.pageV[He[1]]=!0)};for(l=0;l<=_e;l++)n=s[l],m=ee.pages[n].data().f.opts.next,b=ee.pagePlace[n],lt(n),lt(m),B=ee.pagePlace[m]==m?m:n,Ie.pageZ[B]=ee.totalPages-Math.abs(Re-B),Ie.partZ[b]=ee.totalPages*2-_e+l;return Ie},update:function(){var s,l=this.data();if(this.turn("animating")&&l.pageMv[0]!==0){var n,m,b=this.turn("calculateZ",l.pageMv),B=this.turn("corner"),oe=this.turn("view"),ee=this.turn("view",l.tpage);for(s in l.pageWrap)Se(s,l.pageWrap)&&(m=l.pageObjs[s].hasClass("fixed"),l.pageWrap[s].css({display:b.pageV[s]||m?"":"none",zIndex:(l.pageObjs[s].hasClass("hard")?b.partZ[s]:b.pageZ[s])||(m?-1:0)}),(n=l.pages[s])&&(n.flip("z",b.partZ[s]||null),b.pageV[s]&&n.flip("resize"),l.tpage?n.flip("hover",!1).flip("disable",e.inArray(parseInt(s,10),l.pageMv)==-1&&s!=ee[0]&&s!=ee[1]):n.flip("hover",B===!1).flip("disable",s!=oe[0]&&s!=oe[1])))}else for(s in l.pageWrap)if(Se(s,l.pageWrap)){var pe=N._setPageLoc.call(this,s);l.pages[s]&&l.pages[s].flip("disable",l.disabled||pe!=1).flip("hover",!0).flip("z",null)}return this},_updateShadow:function(){var s,l,n,m=this.data(),b=this.width(),B=this.height(),oe=m.display=="single"?b:b/2;s=this.turn("view"),m.shadow||(m.shadow=e("
",{class:"shadow",css:R(0,0,0).css}).appendTo(this));for(var ee=0;ee=n||b.y>=m)return!1;var oe=L._cAllowed.call(this);switch(l.effect){case"hard":if(b.x>n-B)b.corner="r";else if(b.x=m-B)b.corner+="b";else return!1;if(b.x<=B)b.corner+="l";else if(b.x>=n-B)b.corner+="r";else return!1;break}return!b.corner||e.inArray(b.corner,oe)==-1?!1:b},_isIArea:function(s){var l=this.data().f.parent.offset();return s=T&&s.originalEvent?s.originalEvent.touches[0]:s,L._cornerActivated.call(this,{x:s.pageX-l.left,y:s.pageY-l.top})},_c:function(s,l){switch(l=l||0,s){case"tl":return Q(l,l);case"tr":return Q(this.width()-l,l);case"bl":return Q(l,this.height()-l);case"br":return Q(this.width()-l,this.height()-l);case"l":return Q(l,0);case"r":return Q(this.width()-l,0)}},_c2:function(s){switch(s){case"tl":return Q(this.width()*2,0);case"tr":return Q(-this.width(),0);case"bl":return Q(this.width()*2,this.height());case"br":return Q(-this.width(),this.height());case"l":return Q(this.width()*2,0);case"r":return Q(-this.width(),0)}},_foldingPage:function(){var s=this.data().f;if(s){var l=s.opts;if(l.turn)return s=l.turn.data(),s.display=="single"?l.next>1||l.page>1?s.pageObjs[0]:null:s.pageObjs[l.next]}},_backGradient:function(){var s=this.data().f,l=s.opts.turn.data(),n=l.opts.gradients&&(l.display=="single"||s.opts.page!=2&&s.opts.page!=l.totalPages-1);return n&&!s.bshadow&&(s.bshadow=e("
",R(0,0,1)).css({position:"",width:this.width(),height:this.height()}).appendTo(s.parent)),n},type:function(){return this.data().f.effect},resize:function(s){var l=this.data().f,n=l.opts.turn.data(),m=this.width(),b=this.height();switch(l.effect){case"hard":s&&(l.wrapper.css({width:m,height:b}),l.fpage.css({width:m,height:b}),n.opts.gradients&&(l.ashadow.css({width:m,height:b}),l.bshadow.css({width:m,height:b})));break;case"sheet":if(s){var B=Math.round(Math.sqrt(Math.pow(m,2)+Math.pow(b,2)));l.wrapper.css({width:B,height:B}),l.fwrapper.css({width:B,height:B}).children(":first-child").css({width:m,height:b}),l.fpage.css({width:m,height:b}),n.opts.gradients&&l.ashadow.css({width:m,height:b}),L._backGradient.call(this)&&l.bshadow.css({width:m,height:b})}if(l.parent.is(":visible")){var oe=Pe(l.parent[0]);l.fwrapper.css({top:oe.top,left:oe.left}),oe=Pe(l.opts.turn[0]),l.fparent.css({top:-oe.top,left:-oe.left})}this.flip("z",l.opts["z-index"]);break}},_addPageWrapper:function(){var s=this.data().f,l=s.opts.turn.data(),n=this.parent();if(s.parent=n,!s.wrapper)switch(s.effect){case"hard":var m={};m[f+"transform-style"]="preserve-3d",m[f+"backface-visibility"]="hidden",s.wrapper=e("
",R(0,0,2)).css(m).appendTo(n).prepend(this),s.fpage=e("
",R(0,0,1)).css(m).appendTo(n),l.opts.gradients&&(s.ashadow=e("
",R(0,0,0)).hide().appendTo(n),s.bshadow=e("
",R(0,0,0)));break;case"sheet":if(this.width(),this.height(),s.fparent=s.opts.turn.data().fparent,!s.fparent){var b=e("
",{css:{"pointer-events":"none"}}).hide();b.data().flips=0,b.css(R(0,0,"auto","visible").css).appendTo(s.opts.turn),s.opts.turn.data().fparent=b,s.fparent=b}this.css({position:"absolute",top:0,left:0,bottom:"auto",right:"auto"}),s.wrapper=e("
",R(0,0,this.css("z-index"))).appendTo(n).prepend(this),s.fwrapper=e("
",R(n.offset().top,n.offset().left)).hide().appendTo(s.fparent),s.fpage=e("
",R(0,0,0,"visible")).css({cursor:"default"}).appendTo(s.fwrapper),l.opts.gradients&&(s.ashadow=e("
",R(0,0,1)).appendTo(s.fpage)),L.setData.call(this,s);break}L.resize.call(this,!0)},_fold:function(s){var l=this.data().f,n=l.opts.turn.data(),m=L._c.call(this,s.corner),b=this.width(),B=this.height();switch(l.effect){case"hard":s.corner=="l"?s.x=Math.min(Math.max(s.x,0),b*2):s.x=Math.max(Math.min(s.x,b),-b);var oe,ee,pe,Re,_e,Ie=n.totalPages,lt=l.opts["z-index"]||Ie,nt={overflow:"visible"},He=m.x?(m.x-s.x)/b:s.x/b,G=He*90,me=G<90;switch(s.corner){case"l":Re="0% 50%",_e="100% 50%",me?(oe=0,ee=l.opts.next-1>0,pe=1):(oe="100%",ee=l.opts.page+1S&&(Ge.x=Ge.x+Math.abs(Ge.y*qe.y/qe.x),Ge.y=0,Math.round(Ge.x*Math.tan(y-ze))S){var we=y-ze,De=Bt-B/Math.sin(we);pt=Q(Math.round(De*Math.cos(we)),Math.round(De*Math.sin(we))),yt&&(pt.x=-pt.x),xt&&(pt.y=-pt.y)}Ne=Math.round(Ge.y/Math.tan(ze)+Ge.x);var We=b-Ne,Ke=We*Math.cos(ze*2),ft=We*Math.sin(ze*2);if(mt=Q(Math.round(yt?We-Ke:Ne+Ke),Math.round(xt?ft:B-ft)),n.opts.gradients){et=We*Math.sin(ze);var Fe=L._c2.call(le,s.corner),$e=Math.sqrt(Math.pow(Fe.x-s.x,2)+Math.pow(Fe.y-s.y,2))/b;rn=Math.sin(S*($e>1?2-$e:$e)),kt=Math.min($e,1),rt=et>100?(et-100)/et:0,Xe=Q(et*Math.sin(ze)/b*100,et*Math.cos(ze)/B*100),L._backGradient.call(le)&&(Ye=Q(et*1.2*Math.sin(ze)/b*100,et*1.2*Math.cos(ze)/B*100),yt||(Ye.x=100-Ye.x),xt||(Ye.y=100-Ye.y))}return Ge.x=Math.round(Ge.x),Ge.y=Math.round(Ge.y),!0},Ft=function(qe,Je,ze,X){var ce=["0","auto"],we=(b-Bt)*ze[0]/100,De=(B-Bt)*ze[1]/100,We={left:ce[Je[0]],top:ce[Je[1]],right:ce[Je[2]],bottom:ce[Je[3]]},Ke={},ft=X!=90&&X!=-90?yt?-1:1:0,Fe=ze[0]+"% "+ze[1]+"%";le.css(We).transform(ge(X)+ue(qe.x+ft,qe.y,Pt),Fe),l.fpage.css(We).transform(ge(X)+ue(qe.x+mt.x-pt.x-b*ze[0]/100,qe.y+mt.y-pt.y-B*ze[1]/100,Pt)+ge((180/X-2)*X),Fe),l.wrapper.transform(ue(-qe.x+we-ft,-qe.y+De,Pt)+ge(-X),Fe),l.fwrapper.transform(ue(-qe.x+pt.x+we,-qe.y+pt.y+De,Pt)+ge(-X),Fe),n.opts.gradients&&(ze[0]&&(Xe.x=100-Xe.x),ze[1]&&(Xe.y=100-Xe.y),Ke["box-shadow"]="0 0 20px rgba(0,0,0,"+.5*rn+")",yn.css(Ke),Be(l.ashadow,Q(yt?100:0,xt?0:100),Q(Xe.x,Xe.y),[[rt,"rgba(0,0,0,0)"],[(1-rt)*.8+rt,"rgba(0,0,0,"+.2*kt+")"],[1,"rgba(255,255,255,"+.2*kt+")"]],3),L._backGradient.call(le)&&Be(l.bshadow,Q(yt?0:100,xt?0:100),Q(Ye.x,Ye.y),[[.6,"rgba(0,0,0,0)"],[.8,"rgba(0,0,0,"+.3*kt+")"],[1,"rgba(0,0,0,0)"]],3))};switch(s.corner){case"l":break;case"r":break;case"tl":s.x=Math.max(s.x,1),wt(),Ft(Ge,[1,0,0,1],[100,0],Me);break;case"tr":s.x=Math.min(s.x,b-1),wt(),Ft(Q(-Ge.x,Ge.y),[0,0,0,1],[0,0],-Me);break;case"bl":s.x=Math.max(s.x,1),wt(),Ft(Q(Ge.x,-Ge.y),[1,1,0,0],[100,100],-Me);break;case"br":s.x=Math.min(s.x,b-1),wt(),Ft(Q(-Ge.x,-Ge.y),[0,1,1,0],[0,100],Me);break}break}l.point=s},_moveFoldingPage:function(s){var l=this.data().f;if(l){var n=l.opts.turn,m=n.data(),b=m.pagePlace;if(s){var B=l.opts.next;if(b[B]!=l.opts.page){l.folding&&L._moveFoldingPage.call(this,!1);var oe=L._foldingPage.call(this);oe.appendTo(l.fpage),b[B]=l.opts.page,l.folding=B}n.turn("update")}else if(l.folding){if(m.pages[l.folding]){var ee=m.pages[l.folding].data().f;m.pageObjs[l.folding].appendTo(ee.wrapper)}else m.pageWrap[l.folding]&&m.pageObjs[l.folding].appendTo(m.pageWrap[l.folding]);l.folding in b&&(b[l.folding]=l.folding),delete l.folding}}},_showFoldedPage:function(s,l){var n=L._foldingPage.call(this),m=this.data(),b=m.f,B=b.visible;if(n){if(!B||!b.point||b.point.corner!=s.corner){var oe=b.status=="hover"||b.status=="peel"||b.opts.turn.data().mouseAction?s.corner:null;if(B=!1,Te("start",this,[b.opts,oe])=="prevented")return!1}if(l){var ee=this,pe=b.point&&b.point.corner==s.corner?b.point:L._c.call(this,s.corner,1);this.animatef({from:[pe.x,pe.y],to:[s.x,s.y],duration:500,frame:function(Re){s.x=Math.round(Re[0]),s.y=Math.round(Re[1]),L._fold.call(ee,s)}})}else L._fold.call(this,s),m.effect&&!m.effect.turning&&this.animatef(!1);if(!B)switch(b.effect){case"hard":b.visible=!0,L._moveFoldingPage.call(this,!0),b.fpage.show(),b.opts.shadows&&b.bshadow.show();break;case"sheet":b.visible=!0,b.fparent.show().data().flips++,L._moveFoldingPage.call(this,!0),b.fwrapper.show(),b.bshadow&&b.bshadow.show();break}return!0}return!1},hide:function(){var s=this.data().f,l=s.opts.turn.data(),n=L._foldingPage.call(this);switch(s.effect){case"hard":l.opts.gradients&&(s.bshadowLoc=0,s.bshadow.remove(),s.ashadow.hide()),s.wrapper.transform(""),s.fpage.hide();break;case"sheet":--s.fparent.data().flips===0&&s.fparent.hide(),this.css({left:0,top:0,right:"auto",bottom:"auto"}).transform(""),s.wrapper.transform(""),s.fwrapper.hide(),s.bshadow&&s.bshadow.hide(),n.transform("");break}return s.visible=!1,this},hideFoldedPage:function(s){var l=this.data().f;if(l.point){var n=this,m=l.point,b=function(){l.point=null,l.status="",n.flip("hide"),n.trigger("end",[l.opts,!1])};if(s){var B=L._c.call(this,m.corner),oe=m.corner.substr(0,1)=="t",ee=oe?Math.min(0,m.y-B.y)/2:Math.max(0,m.y-B.y)/2,pe=Q(m.x,m.y+ee),Re=Q(B.x,B.y-ee);this.animatef({from:0,to:1,frame:function(_e){var Ie=ne(m,pe,Re,B,_e);m.x=Ie.x,m.y=Ie.y,L._fold.call(n,m)},complete:b,duration:800,hiding:!0})}else this.animatef(!1),b()}},turnPage:function(s){var l=this,n=this.data().f,m=n.opts.turn.data();s={corner:n.corner?n.corner.corner:s||L._cAllowed.call(this)[0]};var b=n.point||L._c.call(this,s.corner,n.opts.turn?m.opts.elevation:0),B=L._c2.call(this,s.corner);this.trigger("flip").animatef({from:0,to:1,frame:function(oe){var ee=ne(b,b,B,B,oe);s.x=ee.x,s.y=ee.y,L._showFoldedPage.call(l,s)},complete:function(){l.trigger("end",[n.opts,!0])},duration:m.opts.duration,turning:!0}),n.corner=null},moving:function(){return"effect"in this.data()},isTurning:function(){return this.flip("moving")&&this.data().effect.turning},corner:function(){return this.data().f.corner},_eventStart:function(s){var l=this.data().f,n=l.opts.turn;if(!l.corner&&!l.disabled&&!this.flip("isTurning")&&l.opts.page==n.data().pagePlace[l.opts.page]){if(l.corner=L._isIArea.call(this,s),l.corner&&L._foldingPage.call(this))return this.trigger("pressed",[l.point]),L._showFoldedPage.call(this,l.corner),!1;l.corner=null}},_eventMove:function(s){var l=this.data().f;if(!l.disabled){if(s=T?s.originalEvent.touches:[s],l.corner){var n=l.parent.offset();l.corner.x=s[0].pageX-n.left,l.corner.y=s[0].pageY-n.top,L._showFoldedPage.call(this,l.corner)}else if(l.hover&&!this.data().effect&&this.is(":visible")){var m=L._isIArea.call(this,s[0]);if(m){if(l.effect=="sheet"&&m.corner.length==2||l.effect=="hard"){l.status="hover";var b=L._c.call(this,m.corner,l.opts.cornerSize/2);m.x=b.x,m.y=b.y,L._showFoldedPage.call(this,m,!0)}}else l.status=="hover"&&(l.status="",L.hideFoldedPage.call(this,!0))}}},_eventEnd:function(){var s=this.data().f,l=s.corner;!s.disabled&&l&&Te("released",this,[s.point||l])!="prevented"&&L.hideFoldedPage.call(this,!0),s.corner=null},disable:function(s){return L.setData.call(this,{disabled:s}),this},hover:function(s){return L.setData.call(this,{hover:s}),this},peel:function(s,l){var n=this.data().f;if(s){if(e.inArray(s,E.all)==-1)throw de("Corner "+s+" is not permitted");if(e.inArray(s,L._cAllowed.call(this))!=-1){var m=L._c.call(this,s,n.opts.cornerSize/2);n.status="peel",L._showFoldedPage.call(this,{corner:s,x:m.x,y:m.y},l)}}else n.status="",L.hideFoldedPage.call(this,l);return this}};function Z(s,l,n){if(!n[0]||typeof n[0]=="object")return l.init.apply(s,n);if(l[n[0]])return l[n[0]].apply(s,Array.prototype.slice.call(n,1));throw de(n[0]+" is not a method or property")}function R(s,l,n,m){return{css:{position:"absolute",top:s,left:l,overflow:m||"hidden",zIndex:n||"auto"}}}function ne(s,l,n,m,b){var B=1-b,oe=B*B*B,ee=b*b*b;return Q(Math.round(oe*s.x+3*b*B*B*l.x+3*b*b*B*n.x+ee*m.x),Math.round(oe*s.y+3*b*B*B*l.y+3*b*b*B*n.y+ee*m.y))}function he(s){return s/y*180}function Q(s,l){return{x:s,y:l}}function ve(){var s;if(s=/AppleWebkit\/([0-9\.]+)/i.exec(navigator.userAgent)){var l=parseFloat(s[1]);return l>534.3}else return!0}function ue(s,l,n){return i&&n?" translate3d("+s+"px,"+l+"px, 0px) ":" translate("+s+"px, "+l+"px) "}function ge(s){return" rotate("+s+"deg) "}function Se(s,l){return Object.prototype.hasOwnProperty.call(l,s)}function be(){for(var s=["Moz","Webkit","Khtml","O","ms"],l=s.length,n="";l--;)s[l]+"Transform"in document.body.style&&(n="-"+s[l].toLowerCase()+"-");return n}function ke(){var s,l=document.createElement("fakeelement"),n={transition:"transitionend",OTransition:"oTransitionEnd",MSTransition:"transitionend",MozTransition:"transitionend",WebkitTransition:"webkitTransitionEnd"};for(s in n)if(l.style[s]!==void 0)return n[s]}function Be(s,l,n,m,b){var B,oe=[];if(f=="-webkit-"){for(B=0;B{vo({api:"goBack"})},a=En({currentGradeNum:0,page:1,rows:10,type:"COURSEWARE"}),f=Ue(()=>$n.grades.map((R,ne)=>({...R,color:a.currentGradeNum===ne?"var(--van-primary-color)":"",className:a.currentGradeNum===ne?"fontBlod":""}))),d=(R,ne)=>{a.currentGradeNum=ne,D()},y=Ae(!1),S=En({list:[],loading:!1,favoriteList:[],tab:"all",details:[],bookData:{},showBook:!1,book:{}}),T=async()=>{var ne;S.loading=!0;const R=await wp({...a,currentGradeNum:a.currentGradeNum?a.currentGradeNum:""});(R==null?void 0:R.code)===200&&Array.isArray((ne=R==null?void 0:R.data)==null?void 0:ne.rows)&&(S.list=R.data.rows.map(he=>{const Q=$n.bookTypes[he.bookType];return he.name=`${he.name}(${Q})`,he.load=!1,he.key=Date.now()+he.id,he})),S.loading=!1,y.value=!0},A=async()=>{var ne,he,Q;S.loading=!0;const R=await bp({clientType:"STUDENT",userId:(he=(ne=ls.user)==null?void 0:ne.data)==null?void 0:he.id,page:a.page,rows:a.rows,currentGradeNum:a.currentGradeNum?a.currentGradeNum:""});(R==null?void 0:R.code)===200&&Array.isArray((Q=R==null?void 0:R.data)==null?void 0:Q.rows)&&(S.list=R.data.rows.map(ve=>{const ue=$n.bookTypes[ve.bookType];return ve.name=`${ve.name}(${ue})`,ve.load=!1,ve.key=Date.now()+ve.id,ve})),S.loading=!1},E=()=>{S.list=[],S.tab==="all"&&T(),S.tab==="favorite"&&A()},D=()=>{a.page=1,E()};Mt(()=>{E()});const $=async R=>{R.favoriteFlag?await xp({lessonCoursewareId:R.id}):await Sp({lessonCoursewareId:R.id})};let V=null;const Y=(R,ne=300)=>{V&&clearTimeout(V),V=setTimeout(R,ne)},se=async R=>{var he;const ne=await Cp(R.id);(ne==null?void 0:ne.code)==200&&Array.isArray((he=ne==null?void 0:ne.data)==null?void 0:he.lessonList)&&(S.details=ne.data.lessonList||[],S.bookData=ne.data,console.log("🚀 ~ data.details:",S.details))},N=R=>{const ne=document.querySelector(`[data-id="${R}"]`);if(!ne)return;const he=ne.getBoundingClientRect();S.book=he},L=R=>{requestAnimationFrame(()=>{requestAnimationFrame(()=>{R()})})},Z=async R=>{await se(R),N(R.id),L(()=>{S.showBook=!0})};return()=>te("div",{class:at.container},[te("div",{class:at.head,style:{opacity:S.showBook?0:""}},[te("div",{class:at.back,onClick:i},[te("img",{src:ma},null)]),te(Fs,{class:at.tabs,active:S.tab,"onUpdate:active":R=>S.tab=R,onChange:()=>D()},{default:()=>[te(bi,{title:"全部教材",name:"all"},null),te(bi,{name:"favorite"},{title:()=>te("div",{id:"courseware-2"},[vt("我的收藏")])})]}),te(Bl,{show:e.value,"onUpdate:show":R=>e.value=R,class:at.popover,actions:f.value,onSelect:d},{reference:()=>te(dn,Tn({class:at.downBtn,round:!0,size:"small"},{id:"courseware-3"}),{default:()=>[$n.grades[a.currentGradeNum].text," ",te("svg",{class:[at.icon,e.value?at.iconUp:""],width:"9px",height:"5px",viewBox:"0 0 9 5",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},[te("title",null,[vt("三角形")]),te("g",{id:"演示用",stroke:"none","stroke-width":"1",fill:"currentColor","fill-rule":"evenodd"},[te("g",{id:"全部教材-筛选",transform:"translate(-769.000000, -35.000000)",fill:"currentColor"},[te("g",{id:"编组-3",transform:"translate(696.000000, 20.000000)"},[te("g",{id:"筛选目录备份-2",transform:"translate(13.000000, 7.000000)"},[te("path",{d:"M64.8716471,8.41294119 L68.2489659,12.1655176 C68.4336954,12.3707726 68.4170562,12.6869176 68.2118012,12.8716471 C68.1199888,12.9542782 68.0008397,13 67.8773188,13 L61.1226812,13 C60.8465388,13 60.6226812,12.7761424 60.6226812,12.5 C60.6226812,12.3764791 60.668403,12.25733 60.7510341,12.1655176 L64.1283529,8.41294119 C64.3130824,8.20768618 64.6292274,8.19104698 64.8344824,8.37577649 C64.8475136,8.38750459 64.859919,8.39990996 64.8716471,8.41294119 Z",id:"三角形",transform:"translate(64.500000, 10.500000) rotate(-180.000000) translate(-64.500000, -10.500000) "},null)])])])])])]})})]),te("div",{class:at.content},[te("div",{class:[at.wrap,S.list.length<=0&&!S.loading?at.emtpyWrap:""]},[S.list.map((R,ne)=>te("div",{class:[at.wrapItem,S.bookData.id===R.id&&S.showBook?at.wrapItemHide:""],key:R.key,onClick:()=>Z(R)},[ne==0?te(uo,Tn({"data-id":R.id},{id:"courseware-0"},{class:[at.cover,R.load?at.loaded:""],objectFit:"cover",src:R.coverImg,onLoad:()=>{R.load=!0},onError:()=>{R.load=!0}}),null):te(uo,{"data-id":R.id,class:[at.cover,R.load?at.loaded:""],objectFit:"cover",src:R.coverImg,onLoad:()=>{R.load=!0},onError:()=>{R.load=!0}},null),te("div",{class:at.name},[R.name]),ne==0?te("div",{id:"courseware-1",class:at.favoriteBtn,onClick:he=>{he.stopPropagation(),S.tab==="all"&&(R.favoriteFlag=!R.favoriteFlag,Y(()=>$(R)))}},[te(co,{isFavorite:S.tab!=="all"?!0:R.favoriteFlag},null)]):te("div",{class:at.favoriteBtn,onClick:he=>{he.stopPropagation(),S.tab==="all"&&(R.favoriteFlag=!R.favoriteFlag,Y(()=>$(R)))}},[te(co,{isFavorite:S.tab!=="all"?!0:R.favoriteFlag},null)])])),S.list.length<=0&&!S.loading&&te(ss,{description:"暂无数据"},null)])]),te(Lp,{show:S.showBook,bookData:S.bookData,rect:S.book,onClose:()=>{S.showBook=!1}},null),y.value?te(Bp,null,null):null])}});export{$n as BOOK_DATA,qp as default};