index-3e385f71.js 241 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241
  1. import{r as Me,w as Zt,c as Na,d as ft,y as Ft,aw as zt,ax as Qt,f as La,a as Ce,V as Ba,h as Br,ae as Fa,F as Jt,m as On,ai as za,n as Ia,t as Pn,a3 as Wa,z as br,ay as ui,az as ja,a9 as Ha,I as $a,aA as qa,k as Ua,A as Xa,aB as Va,e as Ue,aC as Ya,aD as Ga,aE as J,aF as Ka,aG as Za,aH as dn,aI as io,aJ as Xt,T as ln,aK as wn,v as oo,g as Hn,aL as Ja,aM as Qa,aN as es,D as An,q as ao,x as xr,E as ts,a4 as so,C as ns,M as rs}from"./index-fac4d009.js";import{w as ci,q as is,o as pt,a as st,i as Sr,b as Fr,S as $n,c as Ot,g as Kn,r as Zn,d as os,e as as,f as zr,h as ss,M as Ir,t as hn,j as Ar,k as ls,U as fi,l as di,m as zn,n as us,p as cs,s as fs,u as ds,v as hs,x as ps,y as vs,z as Wr,A as gs,B as lo,C as Cr,D as ms,E as Je,F as Ve,G as Jn,H as ys,I as Vt,J as Ut,K as Rt,L as Cn,N as jr,O as In,P as ws,Q as bs,R as xs,T as Ss,V as qn,W as As,X as hi,Y as ur,Z as uo,_ as Cs,$ as pi,a0 as co,a1 as Ts,a2 as Ms,a3 as vn,a4 as kn,a5 as fo,a6 as Es,a7 as ho,a8 as Os,a9 as Ps,aa as ks}from"./fade-in-scale-up.cssr-edcc72e3.js";import{T as Rs,a as vi}from"./index-5fac2e52.js";import"./use-tab-status-5c9ad5e4.js";import"./index-1701cc18.js";const _s=(e,i)=>{const s=Me(e());return Zt(e,f=>{f!==s.value&&(s.value=f)}),Zt(s,f=>{f!==e()&&i(f)}),s};function St(e){if(e==null)return window;if(e.toString()!=="[object Window]"){var i=e.ownerDocument;return i&&i.defaultView||window}return e}function Hr(e){var i=St(e).Element;return e instanceof i||e instanceof Element}function xt(e){var i=St(e).HTMLElement;return e instanceof i||e instanceof HTMLElement}function po(e){if(typeof ShadowRoot>"u")return!1;var i=St(e).ShadowRoot;return e instanceof i||e instanceof ShadowRoot}var fn=Math.round;function Tr(){var e=navigator.userAgentData;return e!=null&&e.brands?e.brands.map(function(i){return i.brand+"/"+i.version}).join(" "):navigator.userAgent}function Ds(){return!/^((?!chrome|android).)*safari/i.test(Tr())}function Un(e,i,s){i===void 0&&(i=!1),s===void 0&&(s=!1);var f=e.getBoundingClientRect(),d=1,y=1;i&&xt(e)&&(d=e.offsetWidth>0&&fn(f.width)/e.offsetWidth||1,y=e.offsetHeight>0&&fn(f.height)/e.offsetHeight||1);var A=Hr(e)?St(e):window,T=A.visualViewport,M=!Ds()&&s,R=(f.left+(M&&T?T.offsetLeft:0))/d,_=(f.top+(M&&T?T.offsetTop:0))/y,I=f.width/d,Z=f.height/y;return{width:I,height:Z,top:_,right:R+I,bottom:_+Z,left:R,x:R,y:_}}function vo(e){var i=St(e),s=i.pageXOffset,f=i.pageYOffset;return{scrollLeft:s,scrollTop:f}}function Ns(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}function Ls(e){return e===St(e)||!xt(e)?vo(e):Ns(e)}function Pt(e){return e?(e.nodeName||"").toLowerCase():null}function Qn(e){return((Hr(e)?e.ownerDocument:e.document)||window.document).documentElement}function Bs(e){return Un(Qn(e)).left+vo(e).scrollLeft}function kt(e){return St(e).getComputedStyle(e)}function $r(e){var i=kt(e),s=i.overflow,f=i.overflowX,d=i.overflowY;return/auto|scroll|overlay|hidden/.test(s+d+f)}function Fs(e){var i=e.getBoundingClientRect(),s=fn(i.width)/e.offsetWidth||1,f=fn(i.height)/e.offsetHeight||1;return s!==1||f!==1}function zs(e,i,s){s===void 0&&(s=!1);var f=xt(i),d=xt(i)&&Fs(i),y=Qn(i),A=Un(e,d,s),T={scrollLeft:0,scrollTop:0},M={x:0,y:0};return(f||!f&&!s)&&((Pt(i)!=="body"||$r(y))&&(T=Ls(i)),xt(i)?(M=Un(i,!0),M.x+=i.clientLeft,M.y+=i.clientTop):y&&(M.x=Bs(y))),{x:A.left+T.scrollLeft-M.x,y:A.top+T.scrollTop-M.y,width:A.width,height:A.height}}function Is(e){var i=Un(e),s=e.offsetWidth,f=e.offsetHeight;return Math.abs(i.width-s)<=1&&(s=i.width),Math.abs(i.height-f)<=1&&(f=i.height),{x:e.offsetLeft,y:e.offsetTop,width:s,height:f}}function qr(e){return Pt(e)==="html"?e:e.assignedSlot||e.parentNode||(po(e)?e.host:null)||Qn(e)}function go(e){return["html","body","#document"].indexOf(Pt(e))>=0?e.ownerDocument.body:xt(e)&&$r(e)?e:go(qr(e))}function Wn(e,i){var s;i===void 0&&(i=[]);var f=go(e),d=f===((s=e.ownerDocument)==null?void 0:s.body),y=St(f),A=d?[y].concat(y.visualViewport||[],$r(f)?f:[]):f,T=i.concat(A);return d?T:T.concat(Wn(qr(A)))}function Ws(e){return["table","td","th"].indexOf(Pt(e))>=0}function gi(e){return!xt(e)||kt(e).position==="fixed"?null:e.offsetParent}function js(e){var i=/firefox/i.test(Tr()),s=/Trident/i.test(Tr());if(s&&xt(e)){var f=kt(e);if(f.position==="fixed")return null}var d=qr(e);for(po(d)&&(d=d.host);xt(d)&&["html","body"].indexOf(Pt(d))<0;){var y=kt(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 mo(e){for(var i=St(e),s=gi(e);s&&Ws(s)&&kt(s).position==="static";)s=gi(s);return s&&(Pt(s)==="html"||Pt(s)==="body"&&kt(s).position==="static")?i:s||js(e)||i}var un="top",Xn="bottom",xn="right",Yt="left",yo="auto",Hs=[un,Xn,xn,Yt],wo="start",Vn="end",$s=[].concat(Hs,[yo]).reduce(function(e,i){return e.concat([i,i+"-"+wo,i+"-"+Vn])},[]),qs="beforeRead",Us="read",Xs="afterRead",Vs="beforeMain",Ys="main",Gs="afterMain",Ks="beforeWrite",Zs="write",Js="afterWrite",Mr=[qs,Us,Xs,Vs,Ys,Gs,Ks,Zs,Js];function Qs(e){var i=new Map,s=new Set,f=[];e.forEach(function(y){i.set(y.name,y)});function d(y){s.add(y.name);var A=[].concat(y.requires||[],y.requiresIfExists||[]);A.forEach(function(T){if(!s.has(T)){var M=i.get(T);M&&d(M)}}),f.push(y)}return e.forEach(function(y){s.has(y.name)||d(y)}),f}function el(e){var i=Qs(e);return Mr.reduce(function(s,f){return s.concat(i.filter(function(d){return d.phase===f}))},[])}function tl(e){var i;return function(){return i||(i=new Promise(function(s){Promise.resolve().then(function(){i=void 0,s(e())})})),i}}function Nt(e){for(var i=arguments.length,s=new Array(i>1?i-1:0),f=1;f<i;f++)s[f-1]=arguments[f];return[].concat(s).reduce(function(d,y){return d.replace(/%s/,y)},e)}var Ht='Popper: modifier "%s" provided an invalid %s property, expected %s but got %s',nl='Popper: modifier "%s" requires "%s", but "%s" modifier is not available',mi=["name","enabled","phase","fn","effect","requires","options"];function rl(e){e.forEach(function(i){[].concat(Object.keys(i),mi).filter(function(s,f,d){return d.indexOf(s)===f}).forEach(function(s){switch(s){case"name":typeof i.name!="string"&&console.error(Nt(Ht,String(i.name),'"name"','"string"','"'+String(i.name)+'"'));break;case"enabled":typeof i.enabled!="boolean"&&console.error(Nt(Ht,i.name,'"enabled"','"boolean"','"'+String(i.enabled)+'"'));break;case"phase":Mr.indexOf(i.phase)<0&&console.error(Nt(Ht,i.name,'"phase"',"either "+Mr.join(", "),'"'+String(i.phase)+'"'));break;case"fn":typeof i.fn!="function"&&console.error(Nt(Ht,i.name,'"fn"','"function"','"'+String(i.fn)+'"'));break;case"effect":i.effect!=null&&typeof i.effect!="function"&&console.error(Nt(Ht,i.name,'"effect"','"function"','"'+String(i.fn)+'"'));break;case"requires":i.requires!=null&&!Array.isArray(i.requires)&&console.error(Nt(Ht,i.name,'"requires"','"array"','"'+String(i.requires)+'"'));break;case"requiresIfExists":Array.isArray(i.requiresIfExists)||console.error(Nt(Ht,i.name,'"requiresIfExists"','"array"','"'+String(i.requiresIfExists)+'"'));break;case"options":case"data":break;default:console.error('PopperJS: an invalid property has been provided to the "'+i.name+'" modifier, valid properties are '+mi.map(function(f){return'"'+f+'"'}).join(", ")+'; but "'+s+'" was provided.')}i.requires&&i.requires.forEach(function(f){e.find(function(d){return d.name===f})==null&&console.error(Nt(nl,String(i.name),f,f))})})})}function il(e,i){var s=new Set;return e.filter(function(f){var d=i(f);if(!s.has(d))return s.add(d),!0})}function er(e){return e.split("-")[0]}function ol(e){var i=e.reduce(function(s,f){var d=s[f.name];return s[f.name]=d?Object.assign({},d,f,{options:Object.assign({},d.options,f.options),data:Object.assign({},d.data,f.data)}):f,s},{});return Object.keys(i).map(function(s){return i[s]})}function bo(e){return e.split("-")[1]}function al(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function sl(e){var i=e.reference,s=e.element,f=e.placement,d=f?er(f):null,y=f?bo(f):null,A=i.x+i.width/2-s.width/2,T=i.y+i.height/2-s.height/2,M;switch(d){case un:M={x:A,y:i.y-s.height};break;case Xn:M={x:A,y:i.y+i.height};break;case xn:M={x:i.x+i.width,y:T};break;case Yt:M={x:i.x-s.width,y:T};break;default:M={x:i.x,y:i.y}}var R=d?al(d):null;if(R!=null){var _=R==="y"?"height":"width";switch(y){case wo:M[R]=M[R]-(i[_]/2-s[_]/2);break;case Vn:M[R]=M[R]+(i[_]/2-s[_]/2);break}}return M}var yi="Popper: Invalid reference or popper argument provided. They must be either a DOM element or virtual element.",ll="Popper: An infinite loop in the modifiers cycle has been detected! The cycle has been interrupted to prevent a browser crash.",wi={placement:"bottom",modifiers:[],strategy:"absolute"};function bi(){for(var e=arguments.length,i=new Array(e),s=0;s<e;s++)i[s]=arguments[s];return!i.some(function(f){return!(f&&typeof f.getBoundingClientRect=="function")})}function ul(e){e===void 0&&(e={});var i=e,s=i.defaultModifiers,f=s===void 0?[]:s,d=i.defaultOptions,y=d===void 0?wi:d;return function(T,M,R){R===void 0&&(R=y);var _={placement:"bottom",orderedModifiers:[],options:Object.assign({},wi,y),modifiersData:{},elements:{reference:T,popper:M},attributes:{},styles:{}},I=[],Z=!1,Y={state:_,setOptions:function($){var V=typeof $=="function"?$(_.options):$;B(),_.options=Object.assign({},y,_.options,V),_.scrollParents={reference:Hr(T)?Wn(T):T.contextElement?Wn(T.contextElement):[],popper:Wn(M)};var ve=el(ol([].concat(f,_.options.modifiers)));_.orderedModifiers=ve.filter(function(Pe){return Pe.enabled});{var be=il([].concat(ve,_.options.modifiers),function(Pe){var Be=Pe.name;return Be});if(rl(be),er(_.options.placement)===yo){var ee=_.orderedModifiers.find(function(Pe){var Be=Pe.name;return Be==="flip"});ee||console.error(['Popper: "auto" placements require the "flip" modifier be',"present and enabled to work."].join(" "))}var me=kt(M),le=me.marginTop,de=me.marginRight,xe=me.marginBottom,ye=me.marginLeft;[le,de,xe,ye].some(function(Pe){return parseFloat(Pe)})&&console.warn(['Popper: CSS "margin" styles cannot be used to apply padding',"between the popper and its reference element or boundary.","To replicate margin, use the `offset` modifier, as well as","the `padding` option in the `preventOverflow` and `flip`","modifiers."].join(" "))}return ce(),Y.update()},forceUpdate:function(){if(!Z){var $=_.elements,V=$.reference,ve=$.popper;if(!bi(V,ve)){console.error(yi);return}_.rects={reference:zs(V,mo(ve),_.options.strategy==="fixed"),popper:Is(ve)},_.reset=!1,_.placement=_.options.placement,_.orderedModifiers.forEach(function(Pe){return _.modifiersData[Pe.name]=Object.assign({},Pe.data)});for(var be=0,ee=0;ee<_.orderedModifiers.length;ee++){if(be+=1,be>100){console.error(ll);break}if(_.reset===!0){_.reset=!1,ee=-1;continue}var me=_.orderedModifiers[ee],le=me.fn,de=me.options,xe=de===void 0?{}:de,ye=me.name;typeof le=="function"&&(_=le({state:_,options:xe,name:ye,instance:Y})||_)}}},update:tl(function(){return new Promise(function(C){Y.forceUpdate(),C(_)})}),destroy:function(){B(),Z=!0}};if(!bi(T,M))return console.error(yi),Y;Y.setOptions(R).then(function(C){!Z&&R.onFirstUpdate&&R.onFirstUpdate(C)});function ce(){_.orderedModifiers.forEach(function(C){var $=C.name,V=C.options,ve=V===void 0?{}:V,be=C.effect;if(typeof be=="function"){var ee=be({state:_,name:$,instance:Y,options:ve}),me=function(){};I.push(ee||me)}})}function B(){I.forEach(function(C){return C()}),I=[]}return Y}}var Rn={passive:!0};function cl(e){var i=e.state,s=e.instance,f=e.options,d=f.scroll,y=d===void 0?!0:d,A=f.resize,T=A===void 0?!0:A,M=St(i.elements.popper),R=[].concat(i.scrollParents.reference,i.scrollParents.popper);return y&&R.forEach(function(_){_.addEventListener("scroll",s.update,Rn)}),T&&M.addEventListener("resize",s.update,Rn),function(){y&&R.forEach(function(_){_.removeEventListener("scroll",s.update,Rn)}),T&&M.removeEventListener("resize",s.update,Rn)}}var fl={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:cl,data:{}};function dl(e){var i=e.state,s=e.name;i.modifiersData[s]=sl({reference:i.rects.reference,element:i.rects.popper,strategy:"absolute",placement:i.placement})}var hl={name:"popperOffsets",enabled:!0,phase:"read",fn:dl,data:{}},pl={top:"auto",right:"auto",bottom:"auto",left:"auto"};function vl(e){var i=e.x,s=e.y,f=window,d=f.devicePixelRatio||1;return{x:fn(i*d)/d||0,y:fn(s*d)/d||0}}function xi(e){var i,s=e.popper,f=e.popperRect,d=e.placement,y=e.variation,A=e.offsets,T=e.position,M=e.gpuAcceleration,R=e.adaptive,_=e.roundOffsets,I=e.isFixed,Z=A.x,Y=Z===void 0?0:Z,ce=A.y,B=ce===void 0?0:ce,C=typeof _=="function"?_({x:Y,y:B}):{x:Y,y:B};Y=C.x,B=C.y;var $=A.hasOwnProperty("x"),V=A.hasOwnProperty("y"),ve=Yt,be=un,ee=window;if(R){var me=mo(s),le="clientHeight",de="clientWidth";if(me===St(s)&&(me=Qn(s),kt(me).position!=="static"&&T==="absolute"&&(le="scrollHeight",de="scrollWidth")),me=me,d===un||(d===Yt||d===xn)&&y===Vn){be=Xn;var xe=I&&me===ee&&ee.visualViewport?ee.visualViewport.height:me[le];B-=xe-f.height,B*=M?1:-1}if(d===Yt||(d===un||d===Xn)&&y===Vn){ve=xn;var ye=I&&me===ee&&ee.visualViewport?ee.visualViewport.width:me[de];Y-=ye-f.width,Y*=M?1:-1}}var Pe=Object.assign({position:T},R&&pl),Be=_===!0?vl({x:Y,y:B}):{x:Y,y:B};if(Y=Be.x,B=Be.y,M){var Ae;return Object.assign({},Pe,(Ae={},Ae[be]=V?"0":"",Ae[ve]=$?"0":"",Ae.transform=(ee.devicePixelRatio||1)<=1?"translate("+Y+"px, "+B+"px)":"translate3d("+Y+"px, "+B+"px, 0)",Ae))}return Object.assign({},Pe,(i={},i[be]=V?B+"px":"",i[ve]=$?Y+"px":"",i.transform="",i))}function gl(e){var i=e.state,s=e.options,f=s.gpuAcceleration,d=f===void 0?!0:f,y=s.adaptive,A=y===void 0?!0:y,T=s.roundOffsets,M=T===void 0?!0:T;{var R=kt(i.elements.popper).transitionProperty||"";A&&["transform","top","right","bottom","left"].some(function(I){return R.indexOf(I)>=0})&&console.warn(["Popper: Detected CSS transitions on at least one of the following",'CSS properties: "transform", "top", "right", "bottom", "left".',`
  2. `,'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.",`
  3. `,"We recommend using the popper element as a wrapper around an inner","element that can have any CSS property transitioned for animations."].join(" "))}var _={placement:er(i.placement),variation:bo(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,xi(Object.assign({},_,{offsets:i.modifiersData.popperOffsets,position:i.options.strategy,adaptive:A,roundOffsets:M})))),i.modifiersData.arrow!=null&&(i.styles.arrow=Object.assign({},i.styles.arrow,xi(Object.assign({},_,{offsets:i.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:M})))),i.attributes.popper=Object.assign({},i.attributes.popper,{"data-popper-placement":i.placement})}var ml={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:gl,data:{}};function yl(e){var i=e.state;Object.keys(i.elements).forEach(function(s){var f=i.styles[s]||{},d=i.attributes[s]||{},y=i.elements[s];!xt(y)||!Pt(y)||(Object.assign(y.style,f),Object.keys(d).forEach(function(A){var T=d[A];T===!1?y.removeAttribute(A):y.setAttribute(A,T===!0?"":T)}))})}function wl(e){var i=e.state,s={popper:{position:i.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(i.elements.popper.style,s.popper),i.styles=s,i.elements.arrow&&Object.assign(i.elements.arrow.style,s.arrow),function(){Object.keys(i.elements).forEach(function(f){var d=i.elements[f],y=i.attributes[f]||{},A=Object.keys(i.styles.hasOwnProperty(f)?i.styles[f]:s[f]),T=A.reduce(function(M,R){return M[R]="",M},{});!xt(d)||!Pt(d)||(Object.assign(d.style,T),Object.keys(y).forEach(function(M){d.removeAttribute(M)}))})}}var bl={name:"applyStyles",enabled:!0,phase:"write",fn:yl,effect:wl,requires:["computeStyles"]},xl=[fl,hl,ml,bl],Sl=ul({defaultModifiers:xl});function Al(e,i,s){var f=er(e),d=[Yt,un].indexOf(f)>=0?-1:1,y=typeof s=="function"?s(Object.assign({},i,{placement:e})):s,A=y[0],T=y[1];return A=A||0,T=(T||0)*d,[Yt,xn].indexOf(f)>=0?{x:T,y:A}:{x:A,y:T}}function Cl(e){var i=e.state,s=e.options,f=e.name,d=s.offset,y=d===void 0?[0,0]:d,A=$s.reduce(function(_,I){return _[I]=Al(I,i.rects,y),_},{}),T=A[i.placement],M=T.x,R=T.y;i.modifiersData.popperOffsets!=null&&(i.modifiersData.popperOffsets.x+=M,i.modifiersData.popperOffsets.y+=R),i.modifiersData[f]=A}var Tl={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:Cl};const[Ml,$t]=Na("popover"),El=["overlay","duration","teleport","overlayStyle","overlayClass","closeOnClickOverlay"],Ol={show:Boolean,theme:On("light"),overlay:Boolean,actions:za(),actionsDirection:On("vertical"),trigger:On("click"),duration:Ia,showArrow:Pn,placement:On("bottom"),iconPrefix:String,overlayClass:Wa,overlayStyle:Object,closeOnClickAction:Pn,closeOnClickOverlay:Pn,closeOnClickOutside:Pn,offset:{type:Array,default:()=>[0,8]},teleport:{type:[String,Object],default:"body"}};var Pl=ft({name:Ml,props:Ol,emits:["select","touchstart","update:show"],setup(e,{emit:i,slots:s,attrs:f}){let d;const y=Me(),A=Me(),T=Me(),M=_s(()=>e.show,V=>i("update:show",V)),R=()=>({placement:e.placement,modifiers:[{name:"computeStyles",options:{adaptive:!1,gpuAcceleration:!1}},Ha({},Tl,{options:{offset:e.offset}})]}),_=()=>A.value&&T.value?Sl(A.value,T.value.popupRef.value,R()):null,I=()=>{br(()=>{M.value&&(d?d.setOptions(R()):(d=_(),ui&&(window.addEventListener("animationend",I),window.addEventListener("transitionend",I))))})},Z=V=>{M.value=V},Y=()=>{e.trigger==="click"&&(M.value=!M.value)},ce=(V,ve)=>{V.disabled||(i("select",V,ve),e.closeOnClickAction&&(M.value=!1))},B=()=>{M.value&&e.closeOnClickOutside&&(!e.overlay||e.closeOnClickOverlay)&&(M.value=!1)},C=(V,ve)=>s.action?s.action({action:V,index:ve}):[V.icon&&Ce($a,{name:V.icon,classPrefix:e.iconPrefix,class:$t("action-icon")},null),Ce("div",{class:[$t("action-text"),{[qa]:e.actionsDirection==="vertical"}]},[V.text])],$=(V,ve)=>{const{icon:be,color:ee,disabled:me,className:le}=V;return Ce("div",{role:"menuitem",class:[$t("action",{disabled:me,"with-icon":be}),{[ja]:e.actionsDirection==="horizontal"},le],style:{color:ee},tabindex:me?void 0:0,"aria-disabled":me||void 0,onClick:()=>ce(V,ve)},[C(V,ve)])};return Ft(()=>{I(),zt(()=>{var V;y.value=(V=T.value)==null?void 0:V.popupRef.value})}),Qt(()=>{d&&(ui&&(window.removeEventListener("animationend",I),window.removeEventListener("transitionend",I)),d.destroy(),d=null)}),Zt(()=>[M.value,e.offset,e.placement],I),La([A,y],B,{eventName:"touchstart"}),()=>{var V;return Ce(Jt,null,[Ce("span",{ref:A,class:$t("wrapper"),onClick:Y},[(V=s.reference)==null?void 0:V.call(s)]),Ce(Ba,Br({ref:T,show:M.value,class:$t([e.theme]),position:"",transition:"van-popover-zoom",lockScroll:!1,"onUpdate:show":Z},f,Fa(e,El)),{default:()=>[e.showArrow&&Ce("div",{class:$t("arrow")},null),Ce("div",{role:"menu",class:$t("content",e.actionsDirection)},[s.default?s.default():e.actions.map($)])]})])}}});const kl=Ua(Pl);function Yn(e){return e.composedPath()[0]||null}function Rl(e=8){return Math.random().toString(16).slice(2,2+e)}function _l(e,i=[],s){const f={};return i.forEach(d=>{f[d]=e[d]}),Object.assign(f,s)}function Er(e,i=!0,s=[]){return e.forEach(f=>{if(f!==null){if(typeof f!="object"){(typeof f=="string"||typeof f=="number")&&s.push(Xa(String(f)));return}if(Array.isArray(f)){Er(f,i,s);return}if(f.type===Jt){if(f.children===null)return;Array.isArray(f.children)&&Er(f.children,i,s)}else f.type!==Va&&s.push(f)}}),s}function Si(e,i="default",s=void 0){const f=e[i];if(!f)return ci("getFirstSlotVNode",`slot[${i}] is empty`),null;const d=Er(f(s));return d.length===1?d[0]:(ci("getFirstSlotVNode",`slot[${i}] should have exactly one child`),null)}const Ai=ft({render(){var e,i;return(i=(e=this.$slots).default)===null||i===void 0?void 0:i.call(e)}}),Dl=/^(\d|\.)+$/,Ci=/(\d|\.)+/;function cr(e,{c:i=1,offset:s=0,attachPx:f=!0}={}){if(typeof e=="number"){const d=(e+s)*i;return d===0?"0":`${d}px`}else if(typeof e=="string")if(Dl.test(e)){const d=(Number(e)+s)*i;return f?d===0?"0":`${d}px`:`${d}`}else{const d=Ci.exec(e);return d?e.replace(Ci,String((Number(d[0])+s)*i)):e}return e}function Nl(e,i){if(e===void 0)return!1;if(i){const{context:{ids:s}}=i;return s.has(e)}return is(e)!==null}let fr;function Ll(){return fr===void 0&&(fr=navigator.userAgent.includes("Node.js")||navigator.userAgent.includes("jsdom")),fr}const Bl=typeof document<"u"&&typeof window<"u";function Fl(e,i){return Ue(()=>{for(const s of i)if(e[s]!==void 0)return e[s];return e[i[i.length-1]]})}const zl=(typeof window>"u"?!1:/iPad|iPhone|iPod/.test(navigator.platform)||navigator.platform==="MacIntel"&&navigator.maxTouchPoints>1)&&!window.MSStream;function Il(){return zl}const on="@@mmoContext",Wl={mounted(e,{value:i}){e[on]={handler:void 0},typeof i=="function"&&(e[on].handler=i,pt("mousemoveoutside",e,i))},updated(e,{value:i}){const s=e[on];typeof i=="function"?s.handler?s.handler!==i&&(st("mousemoveoutside",e,s.handler),s.handler=i,pt("mousemoveoutside",e,i)):(e[on].handler=i,pt("mousemoveoutside",e,i)):s.handler&&(st("mousemoveoutside",e,s.handler),s.handler=void 0)},unmounted(e){const{handler:i}=e[on];i&&st("mousemoveoutside",e,i),e[on].handler=void 0}},jl=Wl,an="@@coContext",Hl={mounted(e,{value:i,modifiers:s}){e[an]={handler:void 0},typeof i=="function"&&(e[an].handler=i,pt("clickoutside",e,i,{capture:s.capture}))},updated(e,{value:i,modifiers:s}){const f=e[an];typeof i=="function"?f.handler?f.handler!==i&&(st("clickoutside",e,f.handler,{capture:s.capture}),f.handler=i,pt("clickoutside",e,i,{capture:s.capture})):(e[an].handler=i,pt("clickoutside",e,i,{capture:s.capture})):f.handler&&(st("clickoutside",e,f.handler,{capture:s.capture}),f.handler=void 0)},unmounted(e,{modifiers:i}){const{handler:s}=e[an];s&&st("clickoutside",e,s,{capture:i.capture}),e[an].handler=void 0}},Ti=Hl;function Mi(e,i){console.error(`[vueuc/${e}]: ${i}`)}function Ei(e){return typeof e=="string"?document.querySelector(e):e()}var Gt=[],$l=function(){return Gt.some(function(e){return e.activeTargets.length>0})},ql=function(){return Gt.some(function(e){return e.skippedTargets.length>0})},Oi="ResizeObserver loop completed with undelivered notifications.",Ul=function(){var e;typeof ErrorEvent=="function"?e=new ErrorEvent("error",{message:Oi}):(e=document.createEvent("Event"),e.initEvent("error",!1,!1),e.message=Oi),window.dispatchEvent(e)},Sn;(function(e){e.BORDER_BOX="border-box",e.CONTENT_BOX="content-box",e.DEVICE_PIXEL_CONTENT_BOX="device-pixel-content-box"})(Sn||(Sn={}));var Kt=function(e){return Object.freeze(e)},Xl=function(){function e(i,s){this.inlineSize=i,this.blockSize=s,Kt(this)}return e}(),xo=function(){function e(i,s,f,d){return this.x=i,this.y=s,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,Kt(this)}return e.prototype.toJSON=function(){var i=this,s=i.x,f=i.y,d=i.top,y=i.right,A=i.bottom,T=i.left,M=i.width,R=i.height;return{x:s,y:f,top:d,right:y,bottom:A,left:T,width:M,height:R}},e.fromRect=function(i){return new e(i.x,i.y,i.width,i.height)},e}(),Ur=function(e){return e instanceof SVGElement&&"getBBox"in e},So=function(e){if(Ur(e)){var i=e.getBBox(),s=i.width,f=i.height;return!s&&!f}var d=e,y=d.offsetWidth,A=d.offsetHeight;return!(y||A||e.getClientRects().length)},Pi=function(e){var i;if(e instanceof Element)return!0;var s=(i=e==null?void 0:e.ownerDocument)===null||i===void 0?void 0:i.defaultView;return!!(s&&e instanceof s.Element)},Vl=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},bn=typeof window<"u"?window:{},_n=new WeakMap,ki=/auto|scroll/,Yl=/^tb|vertical/,Gl=/msie|trident/i.test(bn.navigator&&bn.navigator.userAgent),Ct=function(e){return parseFloat(e||"0")},cn=function(e,i,s){return e===void 0&&(e=0),i===void 0&&(i=0),s===void 0&&(s=!1),new Xl((s?i:e)||0,(s?e:i)||0)},Ri=Kt({devicePixelContentBoxSize:cn(),borderBoxSize:cn(),contentBoxSize:cn(),contentRect:new xo(0,0,0,0)}),Ao=function(e,i){if(i===void 0&&(i=!1),_n.has(e)&&!i)return _n.get(e);if(So(e))return _n.set(e,Ri),Ri;var s=getComputedStyle(e),f=Ur(e)&&e.ownerSVGElement&&e.getBBox(),d=!Gl&&s.boxSizing==="border-box",y=Yl.test(s.writingMode||""),A=!f&&ki.test(s.overflowY||""),T=!f&&ki.test(s.overflowX||""),M=f?0:Ct(s.paddingTop),R=f?0:Ct(s.paddingRight),_=f?0:Ct(s.paddingBottom),I=f?0:Ct(s.paddingLeft),Z=f?0:Ct(s.borderTopWidth),Y=f?0:Ct(s.borderRightWidth),ce=f?0:Ct(s.borderBottomWidth),B=f?0:Ct(s.borderLeftWidth),C=I+R,$=M+_,V=B+Y,ve=Z+ce,be=T?e.offsetHeight-ve-e.clientHeight:0,ee=A?e.offsetWidth-V-e.clientWidth:0,me=d?C+V:0,le=d?$+ve:0,de=f?f.width:Ct(s.width)-me-ee,xe=f?f.height:Ct(s.height)-le-be,ye=de+C+ee+V,Pe=xe+$+be+ve,Be=Kt({devicePixelContentBoxSize:cn(Math.round(de*devicePixelRatio),Math.round(xe*devicePixelRatio),y),borderBoxSize:cn(ye,Pe,y),contentBoxSize:cn(de,xe,y),contentRect:new xo(I,M,de,xe)});return _n.set(e,Be),Be},Co=function(e,i,s){var f=Ao(e,s),d=f.borderBoxSize,y=f.contentBoxSize,A=f.devicePixelContentBoxSize;switch(i){case Sn.DEVICE_PIXEL_CONTENT_BOX:return A;case Sn.BORDER_BOX:return d;default:return y}},Kl=function(){function e(i){var s=Ao(i);this.target=i,this.contentRect=s.contentRect,this.borderBoxSize=Kt([s.borderBoxSize]),this.contentBoxSize=Kt([s.contentBoxSize]),this.devicePixelContentBoxSize=Kt([s.devicePixelContentBoxSize])}return e}(),To=function(e){if(So(e))return 1/0;for(var i=0,s=e.parentNode;s;)i+=1,s=s.parentNode;return i},Zl=function(){var e=1/0,i=[];Gt.forEach(function(A){if(A.activeTargets.length!==0){var T=[];A.activeTargets.forEach(function(R){var _=new Kl(R.target),I=To(R.target);T.push(_),R.lastReportedSize=Co(R.target,R.observedBox),I<e&&(e=I)}),i.push(function(){A.callback.call(A.observer,T,A.observer)}),A.activeTargets.splice(0,A.activeTargets.length)}});for(var s=0,f=i;s<f.length;s++){var d=f[s];d()}return e},_i=function(e){Gt.forEach(function(s){s.activeTargets.splice(0,s.activeTargets.length),s.skippedTargets.splice(0,s.skippedTargets.length),s.observationTargets.forEach(function(d){d.isActive()&&(To(d.target)>e?s.activeTargets.push(d):s.skippedTargets.push(d))})})},Jl=function(){var e=0;for(_i(e);$l();)e=Zl(),_i(e);return ql()&&Ul(),e>0},dr,Mo=[],Ql=function(){return Mo.splice(0).forEach(function(e){return e()})},eu=function(e){if(!dr){var i=0,s=document.createTextNode(""),f={characterData:!0};new MutationObserver(function(){return Ql()}).observe(s,f),dr=function(){s.textContent="".concat(i?i--:i++)}}Mo.push(e),dr()},tu=function(e){eu(function(){requestAnimationFrame(e)})},jn=0,nu=function(){return!!jn},ru=250,iu={attributes:!0,characterData:!0,childList:!0,subtree:!0},Di=["resize","load","transitionend","animationend","animationstart","animationiteration","keyup","keydown","mouseup","mousedown","mouseover","mouseout","blur","focus"],Ni=function(e){return e===void 0&&(e=0),Date.now()+e},hr=!1,ou=function(){function e(){var i=this;this.stopped=!0,this.listener=function(){return i.schedule()}}return e.prototype.run=function(i){var s=this;if(i===void 0&&(i=ru),!hr){hr=!0;var f=Ni(i);tu(function(){var d=!1;try{d=Jl()}finally{if(hr=!1,i=f-Ni(),!nu())return;d?s.run(1e3):i>0?s.run(i):s.start()}})}},e.prototype.schedule=function(){this.stop(),this.run()},e.prototype.observe=function(){var i=this,s=function(){return i.observer&&i.observer.observe(document.body,iu)};document.body?s():bn.addEventListener("DOMContentLoaded",s)},e.prototype.start=function(){var i=this;this.stopped&&(this.stopped=!1,this.observer=new MutationObserver(this.listener),this.observe(),Di.forEach(function(s){return bn.addEventListener(s,i.listener,!0)}))},e.prototype.stop=function(){var i=this;this.stopped||(this.observer&&this.observer.disconnect(),Di.forEach(function(s){return bn.removeEventListener(s,i.listener,!0)}),this.stopped=!0)},e}(),Or=new ou,Li=function(e){!jn&&e>0&&Or.start(),jn+=e,!jn&&Or.stop()},au=function(e){return!Ur(e)&&!Vl(e)&&getComputedStyle(e).display==="inline"},su=function(){function e(i,s){this.target=i,this.observedBox=s||Sn.CONTENT_BOX,this.lastReportedSize={inlineSize:0,blockSize:0}}return e.prototype.isActive=function(){var i=Co(this.target,this.observedBox,!0);return au(this.target)&&(this.lastReportedSize=i),this.lastReportedSize.inlineSize!==i.inlineSize||this.lastReportedSize.blockSize!==i.blockSize},e}(),lu=function(){function e(i,s){this.activeTargets=[],this.skippedTargets=[],this.observationTargets=[],this.observer=i,this.callback=s}return e}(),Dn=new WeakMap,Bi=function(e,i){for(var s=0;s<e.length;s+=1)if(e[s].target===i)return s;return-1},Nn=function(){function e(){}return e.connect=function(i,s){var f=new lu(i,s);Dn.set(i,f)},e.observe=function(i,s,f){var d=Dn.get(i),y=d.observationTargets.length===0;Bi(d.observationTargets,s)<0&&(y&&Gt.push(d),d.observationTargets.push(new su(s,f&&f.box)),Li(1),Or.schedule())},e.unobserve=function(i,s){var f=Dn.get(i),d=Bi(f.observationTargets,s),y=f.observationTargets.length===1;d>=0&&(y&&Gt.splice(Gt.indexOf(f),1),f.observationTargets.splice(d,1),Li(-1))},e.disconnect=function(i){var s=this,f=Dn.get(i);f.observationTargets.slice().forEach(function(d){return s.unobserve(i,d.target)}),f.activeTargets.splice(0,f.activeTargets.length)},e}(),uu=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.");Nn.connect(this,i)}return e.prototype.observe=function(i,s){if(arguments.length===0)throw new TypeError("Failed to execute 'observe' on 'ResizeObserver': 1 argument required, but only 0 present.");if(!Pi(i))throw new TypeError("Failed to execute 'observe' on 'ResizeObserver': parameter 1 is not of type 'Element");Nn.observe(this,i,s)},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(!Pi(i))throw new TypeError("Failed to execute 'unobserve' on 'ResizeObserver': parameter 1 is not of type 'Element");Nn.unobserve(this,i)},e.prototype.disconnect=function(){Nn.disconnect(this)},e.toString=function(){return"function ResizeObserver () { [polyfill code] }"},e}();class cu{constructor(){this.handleResize=this.handleResize.bind(this),this.observer=new(typeof window<"u"&&window.ResizeObserver||uu)(this.handleResize),this.elHandlersMap=new Map}handleResize(i){for(const s of i){const f=this.elHandlersMap.get(s.target);f!==void 0&&f(s)}}registerHandler(i,s){this.elHandlersMap.set(i,s),this.observer.observe(i)}unregisterHandler(i){this.elHandlersMap.has(i)&&(this.elHandlersMap.delete(i),this.observer.unobserve(i))}}const Fi=new cu,zi=ft({name:"ResizeObserver",props:{onResize:Function},setup(e){let i=!1;const s=Ya().proxy;function f(d){const{onResize:y}=e;y!==void 0&&y(d)}Ft(()=>{const d=s.$el;if(d===void 0){Mi("resize-observer","$el does not exist.");return}if(d.nextElementSibling!==d.nextSibling&&d.nodeType===3&&d.nodeValue!==""){Mi("resize-observer","$el can not be observed (it may be a text node).");return}d.nextElementSibling!==null&&(Fi.registerHandler(d.nextElementSibling,f),i=!0)}),Qt(()=>{i&&Fi.unregisterHandler(s.$el.nextElementSibling)})},render(){return Ga(this.$slots,"default")}});function Eo(e){return e instanceof HTMLElement}function Oo(e){for(let i=0;i<e.childNodes.length;i++){const s=e.childNodes[i];if(Eo(s)&&(ko(s)||Oo(s)))return!0}return!1}function Po(e){for(let i=e.childNodes.length-1;i>=0;i--){const s=e.childNodes[i];if(Eo(s)&&(ko(s)||Po(s)))return!0}return!1}function ko(e){if(!fu(e))return!1;try{e.focus({preventScroll:!0})}catch(i){}return document.activeElement===e}function fu(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 gn=[];const du=ft({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=Rl(),s=Me(null),f=Me(null);let d=!1,y=!1;const A=typeof document>"u"?null:document.activeElement;function T(){return gn[gn.length-1]===i}function M(C){var $;C.code==="Escape"&&T()&&(($=e.onEsc)===null||$===void 0||$.call(e,C))}Ft(()=>{Zt(()=>e.active,C=>{C?(I(),pt("keydown",document,M)):(st("keydown",document,M),d&&Z())},{immediate:!0})}),Qt(()=>{st("keydown",document,M),d&&Z()});function R(C){if(!y&&T()){const $=_();if($===null||$.contains(Yn(C)))return;Y("first")}}function _(){const C=s.value;if(C===null)return null;let $=C;for(;$=$.nextSibling,!($===null||$ instanceof Element&&$.tagName==="DIV"););return $}function I(){var C;if(!e.disabled){if(gn.push(i),e.autoFocus){const{initialFocusTo:$}=e;$===void 0?Y("first"):(C=Ei($))===null||C===void 0||C.focus({preventScroll:!0})}d=!0,document.addEventListener("focus",R,!0)}}function Z(){var C;if(e.disabled||(document.removeEventListener("focus",R,!0),gn=gn.filter(V=>V!==i),T()))return;const{finalFocusTo:$}=e;$!==void 0?(C=Ei($))===null||C===void 0||C.focus({preventScroll:!0}):e.returnFocusOnDeactivated&&A instanceof HTMLElement&&(y=!0,A.focus({preventScroll:!0}),y=!1)}function Y(C){if(T()&&e.active){const $=s.value,V=f.value;if($!==null&&V!==null){const ve=_();if(ve==null||ve===V){y=!0,$.focus({preventScroll:!0}),y=!1;return}y=!0;const be=C==="first"?Oo(ve):Po(ve);y=!1,be||(y=!0,$.focus({preventScroll:!0}),y=!1)}}}function ce(C){if(y)return;const $=_();$!==null&&(C.relatedTarget!==null&&$.contains(C.relatedTarget)?Y("last"):Y("first"))}function B(C){y||(C.relatedTarget!==null&&C.relatedTarget===s.value?Y("last"):Y("first"))}return{focusableStartRef:s,focusableEndRef:f,focusableStyle:"position: absolute; height: 0; width: 0;",handleStartFocus:ce,handleEndFocus:B}},render(){const{default:e}=this.$slots;if(e===void 0)return null;if(this.disabled)return e();const{active:i,focusableStyle:s}=this;return J(Jt,null,[J("div",{"aria-hidden":"true",tabindex:i?"0":"-1",ref:"focusableStartRef",style:s,onFocus:this.handleStartFocus}),e(),J("div",{"aria-hidden":"true",style:s,ref:"focusableEndRef",tabindex:i?"0":"-1",onFocus:this.handleEndFocus})])}});function hu(e){const i={isDeactivated:!1};let s=!1;return Ka(()=>{if(i.isDeactivated=!1,!s){s=!0;return}e()}),Za(()=>{i.isDeactivated=!0,s||(s=!0)}),i}var pu="[object Symbol]";function Xr(e){return typeof e=="symbol"||Sr(e)&&Fr(e)==pu}function Ro(e,i){for(var s=-1,f=e==null?0:e.length,d=Array(f);++s<f;)d[s]=i(e[s],s,e);return d}var vu=1/0,Ii=$n?$n.prototype:void 0,Wi=Ii?Ii.toString:void 0;function _o(e){if(typeof e=="string")return e;if(Ot(e))return Ro(e,_o)+"";if(Xr(e))return Wi?Wi.call(e):"";var i=e+"";return i=="0"&&1/e==-vu?"-0":i}var gu=Kn(Zn,"WeakMap");const Pr=gu;var mu=os(Object.keys,Object);const yu=mu;var wu=Object.prototype,bu=wu.hasOwnProperty;function xu(e){if(!as(e))return yu(e);var i=[];for(var s in Object(e))bu.call(e,s)&&s!="constructor"&&i.push(s);return i}function Vr(e){return zr(e)?ss(e):xu(e)}var Su=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Au=/^\w*$/;function Yr(e,i){if(Ot(e))return!1;var s=typeof e;return s=="number"||s=="symbol"||s=="boolean"||e==null||Xr(e)?!0:Au.test(e)||!Su.test(e)||i!=null&&e in Object(i)}var Cu="Expected a function";function Gr(e,i){if(typeof e!="function"||i!=null&&typeof i!="function")throw new TypeError(Cu);var s=function(){var f=arguments,d=i?i.apply(this,f):f[0],y=s.cache;if(y.has(d))return y.get(d);var A=e.apply(this,f);return s.cache=y.set(d,A)||y,A};return s.cache=new(Gr.Cache||Ir),s}Gr.Cache=Ir;var Tu=500;function Mu(e){var i=Gr(e,function(f){return s.size===Tu&&s.clear(),f}),s=i.cache;return i}var Eu=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,Ou=/\\(\\)?/g,Pu=Mu(function(e){var i=[];return e.charCodeAt(0)===46&&i.push(""),e.replace(Eu,function(s,f,d,y){i.push(d?y.replace(Ou,"$1"):f||s)}),i});const ku=Pu;function tr(e){return e==null?"":_o(e)}function Do(e,i){return Ot(e)?e:Yr(e,i)?[e]:ku(tr(e))}var Ru=1/0;function nr(e){if(typeof e=="string"||Xr(e))return e;var i=e+"";return i=="0"&&1/e==-Ru?"-0":i}function No(e,i){i=Do(i,e);for(var s=0,f=i.length;e!=null&&s<f;)e=e[nr(i[s++])];return s&&s==f?e:void 0}function _u(e,i,s){var f=e==null?void 0:No(e,i);return f===void 0?s:f}function Du(e,i){for(var s=-1,f=i.length,d=e.length;++s<f;)e[d+s]=i[s];return e}function Nu(e,i,s){var f=-1,d=e.length;i<0&&(i=-i>d?0:d+i),s=s>d?d:s,s<0&&(s+=d),d=i>s?0:s-i>>>0,i>>>=0;for(var y=Array(d);++f<d;)y[f]=e[f+i];return y}function Lu(e,i,s){var f=e.length;return s=s===void 0?f:s,!i&&s>=f?e:Nu(e,i,s)}var Bu="\\ud800-\\udfff",Fu="\\u0300-\\u036f",zu="\\ufe20-\\ufe2f",Iu="\\u20d0-\\u20ff",Wu=Fu+zu+Iu,ju="\\ufe0e\\ufe0f",Hu="\\u200d",$u=RegExp("["+Hu+Bu+Wu+ju+"]");function Lo(e){return $u.test(e)}function qu(e){return e.split("")}var Bo="\\ud800-\\udfff",Uu="\\u0300-\\u036f",Xu="\\ufe20-\\ufe2f",Vu="\\u20d0-\\u20ff",Yu=Uu+Xu+Vu,Gu="\\ufe0e\\ufe0f",Ku="["+Bo+"]",kr="["+Yu+"]",Rr="\\ud83c[\\udffb-\\udfff]",Zu="(?:"+kr+"|"+Rr+")",Fo="[^"+Bo+"]",zo="(?:\\ud83c[\\udde6-\\uddff]){2}",Io="[\\ud800-\\udbff][\\udc00-\\udfff]",Ju="\\u200d",Wo=Zu+"?",jo="["+Gu+"]?",Qu="(?:"+Ju+"(?:"+[Fo,zo,Io].join("|")+")"+jo+Wo+")*",ec=jo+Wo+Qu,tc="(?:"+[Fo+kr+"?",kr,zo,Io,Ku].join("|")+")",nc=RegExp(Rr+"(?="+Rr+")|"+tc+ec,"g");function rc(e){return e.match(nc)||[]}function ic(e){return Lo(e)?rc(e):qu(e)}function oc(e){return function(i){i=tr(i);var s=Lo(i)?ic(i):void 0,f=s?s[0]:i.charAt(0),d=s?Lu(s,1).join(""):i.slice(1);return f[e]()+d}}var ac=oc("toUpperCase");const sc=ac;function lc(e,i,s,f){var d=-1,y=e==null?0:e.length;for(f&&y&&(s=e[++d]);++d<y;)s=i(s,e[d],d,e);return s}function uc(e){return function(i){return e==null?void 0:e[i]}}var cc={À:"A",Á:"A",Â:"A",Ã:"A",Ä:"A",Å:"A",à:"a",á:"a",â:"a",ã:"a",ä:"a",å:"a",Ç:"C",ç:"c",Ð:"D",ð:"d",È:"E",É:"E",Ê:"E",Ë:"E",è:"e",é:"e",ê:"e",ë:"e",Ì:"I",Í:"I",Î:"I",Ï:"I",ì:"i",í:"i",î:"i",ï:"i",Ñ:"N",ñ:"n",Ò:"O",Ó:"O",Ô:"O",Õ:"O",Ö:"O",Ø:"O",ò:"o",ó:"o",ô:"o",õ:"o",ö:"o",ø:"o",Ù:"U",Ú:"U",Û:"U",Ü:"U",ù:"u",ú:"u",û:"u",ü:"u",Ý:"Y",ý:"y",ÿ:"y",Æ:"Ae",æ:"ae",Þ:"Th",þ:"th",ß:"ss",Ā:"A",Ă:"A",Ą:"A",ā:"a",ă:"a",ą:"a",Ć:"C",Ĉ:"C",Ċ:"C",Č:"C",ć:"c",ĉ:"c",ċ:"c",č:"c",Ď:"D",Đ:"D",ď:"d",đ:"d",Ē:"E",Ĕ:"E",Ė:"E",Ę:"E",Ě:"E",ē:"e",ĕ:"e",ė:"e",ę:"e",ě:"e",Ĝ:"G",Ğ:"G",Ġ:"G",Ģ:"G",ĝ:"g",ğ:"g",ġ:"g",ģ:"g",Ĥ:"H",Ħ:"H",ĥ:"h",ħ:"h",Ĩ:"I",Ī:"I",Ĭ:"I",Į:"I",İ:"I",ĩ:"i",ī:"i",ĭ:"i",į:"i",ı:"i",Ĵ:"J",ĵ:"j",Ķ:"K",ķ:"k",ĸ:"k",Ĺ:"L",Ļ:"L",Ľ:"L",Ŀ:"L",Ł:"L",ĺ:"l",ļ:"l",ľ:"l",ŀ:"l",ł:"l",Ń:"N",Ņ:"N",Ň:"N",Ŋ:"N",ń:"n",ņ:"n",ň:"n",ŋ:"n",Ō:"O",Ŏ:"O",Ő:"O",ō:"o",ŏ:"o",ő:"o",Ŕ:"R",Ŗ:"R",Ř:"R",ŕ:"r",ŗ:"r",ř:"r",Ś:"S",Ŝ:"S",Ş:"S",Š:"S",ś:"s",ŝ:"s",ş:"s",š:"s",Ţ:"T",Ť:"T",Ŧ:"T",ţ:"t",ť:"t",ŧ:"t",Ũ:"U",Ū:"U",Ŭ:"U",Ů:"U",Ű:"U",Ų:"U",ũ:"u",ū:"u",ŭ:"u",ů:"u",ű:"u",ų:"u",Ŵ:"W",ŵ:"w",Ŷ:"Y",ŷ:"y",Ÿ:"Y",Ź:"Z",Ż:"Z",Ž:"Z",ź:"z",ż:"z",ž:"z",IJ:"IJ",ij:"ij",Œ:"Oe",œ:"oe",ʼn:"'n",ſ:"s"},fc=uc(cc);const dc=fc;var hc=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,pc="\\u0300-\\u036f",vc="\\ufe20-\\ufe2f",gc="\\u20d0-\\u20ff",mc=pc+vc+gc,yc="["+mc+"]",wc=RegExp(yc,"g");function bc(e){return e=tr(e),e&&e.replace(hc,dc).replace(wc,"")}var xc=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g;function Sc(e){return e.match(xc)||[]}var Ac=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/;function Cc(e){return Ac.test(e)}var Ho="\\ud800-\\udfff",Tc="\\u0300-\\u036f",Mc="\\ufe20-\\ufe2f",Ec="\\u20d0-\\u20ff",Oc=Tc+Mc+Ec,$o="\\u2700-\\u27bf",qo="a-z\\xdf-\\xf6\\xf8-\\xff",Pc="\\xac\\xb1\\xd7\\xf7",kc="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",Rc="\\u2000-\\u206f",_c=" \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",Uo="A-Z\\xc0-\\xd6\\xd8-\\xde",Dc="\\ufe0e\\ufe0f",Xo=Pc+kc+Rc+_c,Vo="['’]",ji="["+Xo+"]",Nc="["+Oc+"]",Yo="\\d+",Lc="["+$o+"]",Go="["+qo+"]",Ko="[^"+Ho+Xo+Yo+$o+qo+Uo+"]",Bc="\\ud83c[\\udffb-\\udfff]",Fc="(?:"+Nc+"|"+Bc+")",zc="[^"+Ho+"]",Zo="(?:\\ud83c[\\udde6-\\uddff]){2}",Jo="[\\ud800-\\udbff][\\udc00-\\udfff]",sn="["+Uo+"]",Ic="\\u200d",Hi="(?:"+Go+"|"+Ko+")",Wc="(?:"+sn+"|"+Ko+")",$i="(?:"+Vo+"(?:d|ll|m|re|s|t|ve))?",qi="(?:"+Vo+"(?:D|LL|M|RE|S|T|VE))?",Qo=Fc+"?",ea="["+Dc+"]?",jc="(?:"+Ic+"(?:"+[zc,Zo,Jo].join("|")+")"+ea+Qo+")*",Hc="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",$c="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",qc=ea+Qo+jc,Uc="(?:"+[Lc,Zo,Jo].join("|")+")"+qc,Xc=RegExp([sn+"?"+Go+"+"+$i+"(?="+[ji,sn,"$"].join("|")+")",Wc+"+"+qi+"(?="+[ji,sn+Hi,"$"].join("|")+")",sn+"?"+Hi+"+"+$i,sn+"+"+qi,$c,Hc,Yo,Uc].join("|"),"g");function Vc(e){return e.match(Xc)||[]}function Yc(e,i,s){return e=tr(e),i=s?void 0:i,i===void 0?Cc(e)?Vc(e):Sc(e):e.match(i)||[]}var Gc="['’]",Kc=RegExp(Gc,"g");function Zc(e){return function(i){return lc(Yc(bc(i).replace(Kc,"")),e,"")}}function Jc(e,i){for(var s=-1,f=e==null?0:e.length,d=0,y=[];++s<f;){var A=e[s];i(A,s,e)&&(y[d++]=A)}return y}function Qc(){return[]}var ef=Object.prototype,tf=ef.propertyIsEnumerable,Ui=Object.getOwnPropertySymbols,nf=Ui?function(e){return e==null?[]:(e=Object(e),Jc(Ui(e),function(i){return tf.call(e,i)}))}:Qc;const rf=nf;function of(e,i,s){var f=i(e);return Ot(e)?f:Du(f,s(e))}function Xi(e){return of(e,Vr,rf)}var af=Kn(Zn,"DataView");const _r=af;var sf=Kn(Zn,"Promise");const Dr=sf;var lf=Kn(Zn,"Set");const Nr=lf;var Vi="[object Map]",uf="[object Object]",Yi="[object Promise]",Gi="[object Set]",Ki="[object WeakMap]",Zi="[object DataView]",cf=hn(_r),ff=hn(Ar),df=hn(Dr),hf=hn(Nr),pf=hn(Pr),qt=Fr;(_r&&qt(new _r(new ArrayBuffer(1)))!=Zi||Ar&&qt(new Ar)!=Vi||Dr&&qt(Dr.resolve())!=Yi||Nr&&qt(new Nr)!=Gi||Pr&&qt(new Pr)!=Ki)&&(qt=function(e){var i=Fr(e),s=i==uf?e.constructor:void 0,f=s?hn(s):"";if(f)switch(f){case cf:return Zi;case ff:return Vi;case df:return Yi;case hf:return Gi;case pf:return Ki}return i});const Ji=qt;var vf="__lodash_hash_undefined__";function gf(e){return this.__data__.set(e,vf),this}function mf(e){return this.__data__.has(e)}function Gn(e){var i=-1,s=e==null?0:e.length;for(this.__data__=new Ir;++i<s;)this.add(e[i])}Gn.prototype.add=Gn.prototype.push=gf;Gn.prototype.has=mf;function yf(e,i){for(var s=-1,f=e==null?0:e.length;++s<f;)if(i(e[s],s,e))return!0;return!1}function wf(e,i){return e.has(i)}var bf=1,xf=2;function ta(e,i,s,f,d,y){var A=s&bf,T=e.length,M=i.length;if(T!=M&&!(A&&M>T))return!1;var R=y.get(e),_=y.get(i);if(R&&_)return R==i&&_==e;var I=-1,Z=!0,Y=s&xf?new Gn:void 0;for(y.set(e,i),y.set(i,e);++I<T;){var ce=e[I],B=i[I];if(f)var C=A?f(B,ce,I,i,e,y):f(ce,B,I,e,i,y);if(C!==void 0){if(C)continue;Z=!1;break}if(Y){if(!yf(i,function($,V){if(!wf(Y,V)&&(ce===$||d(ce,$,s,f,y)))return Y.push(V)})){Z=!1;break}}else if(!(ce===B||d(ce,B,s,f,y))){Z=!1;break}}return y.delete(e),y.delete(i),Z}function Sf(e){var i=-1,s=Array(e.size);return e.forEach(function(f,d){s[++i]=[d,f]}),s}function Af(e){var i=-1,s=Array(e.size);return e.forEach(function(f){s[++i]=f}),s}var Cf=1,Tf=2,Mf="[object Boolean]",Ef="[object Date]",Of="[object Error]",Pf="[object Map]",kf="[object Number]",Rf="[object RegExp]",_f="[object Set]",Df="[object String]",Nf="[object Symbol]",Lf="[object ArrayBuffer]",Bf="[object DataView]",Qi=$n?$n.prototype:void 0,pr=Qi?Qi.valueOf:void 0;function Ff(e,i,s,f,d,y,A){switch(s){case Bf:if(e.byteLength!=i.byteLength||e.byteOffset!=i.byteOffset)return!1;e=e.buffer,i=i.buffer;case Lf:return!(e.byteLength!=i.byteLength||!y(new fi(e),new fi(i)));case Mf:case Ef:case kf:return ls(+e,+i);case Of:return e.name==i.name&&e.message==i.message;case Rf:case Df:return e==i+"";case Pf:var T=Sf;case _f:var M=f&Cf;if(T||(T=Af),e.size!=i.size&&!M)return!1;var R=A.get(e);if(R)return R==i;f|=Tf,A.set(e,i);var _=ta(T(e),T(i),f,d,y,A);return A.delete(e),_;case Nf:if(pr)return pr.call(e)==pr.call(i)}return!1}var zf=1,If=Object.prototype,Wf=If.hasOwnProperty;function jf(e,i,s,f,d,y){var A=s&zf,T=Xi(e),M=T.length,R=Xi(i),_=R.length;if(M!=_&&!A)return!1;for(var I=M;I--;){var Z=T[I];if(!(A?Z in i:Wf.call(i,Z)))return!1}var Y=y.get(e),ce=y.get(i);if(Y&&ce)return Y==i&&ce==e;var B=!0;y.set(e,i),y.set(i,e);for(var C=A;++I<M;){Z=T[I];var $=e[Z],V=i[Z];if(f)var ve=A?f(V,$,Z,i,e,y):f($,V,Z,e,i,y);if(!(ve===void 0?$===V||d($,V,s,f,y):ve)){B=!1;break}C||(C=Z=="constructor")}if(B&&!C){var be=e.constructor,ee=i.constructor;be!=ee&&"constructor"in e&&"constructor"in i&&!(typeof be=="function"&&be instanceof be&&typeof ee=="function"&&ee instanceof ee)&&(B=!1)}return y.delete(e),y.delete(i),B}var Hf=1,eo="[object Arguments]",to="[object Array]",Ln="[object Object]",$f=Object.prototype,no=$f.hasOwnProperty;function qf(e,i,s,f,d,y){var A=Ot(e),T=Ot(i),M=A?to:Ji(e),R=T?to:Ji(i);M=M==eo?Ln:M,R=R==eo?Ln:R;var _=M==Ln,I=R==Ln,Z=M==R;if(Z&&di(e)){if(!di(i))return!1;A=!0,_=!1}if(Z&&!_)return y||(y=new zn),A||us(e)?ta(e,i,s,f,d,y):Ff(e,i,M,s,f,d,y);if(!(s&Hf)){var Y=_&&no.call(e,"__wrapped__"),ce=I&&no.call(i,"__wrapped__");if(Y||ce){var B=Y?e.value():e,C=ce?i.value():i;return y||(y=new zn),d(B,C,s,f,y)}}return Z?(y||(y=new zn),jf(e,i,s,f,d,y)):!1}function Kr(e,i,s,f,d){return e===i?!0:e==null||i==null||!Sr(e)&&!Sr(i)?e!==e&&i!==i:qf(e,i,s,f,Kr,d)}var Uf=1,Xf=2;function Vf(e,i,s,f){var d=s.length,y=d,A=!f;if(e==null)return!y;for(e=Object(e);d--;){var T=s[d];if(A&&T[2]?T[1]!==e[T[0]]:!(T[0]in e))return!1}for(;++d<y;){T=s[d];var M=T[0],R=e[M],_=T[1];if(A&&T[2]){if(R===void 0&&!(M in e))return!1}else{var I=new zn;if(f)var Z=f(R,_,M,e,i,I);if(!(Z===void 0?Kr(_,R,Uf|Xf,f,I):Z))return!1}}return!0}function na(e){return e===e&&!cs(e)}function Yf(e){for(var i=Vr(e),s=i.length;s--;){var f=i[s],d=e[f];i[s]=[f,d,na(d)]}return i}function ra(e,i){return function(s){return s==null?!1:s[e]===i&&(i!==void 0||e in Object(s))}}function Gf(e){var i=Yf(e);return i.length==1&&i[0][2]?ra(i[0][0],i[0][1]):function(s){return s===e||Vf(s,e,i)}}function Kf(e,i){return e!=null&&i in Object(e)}function Zf(e,i,s){i=Do(i,e);for(var f=-1,d=i.length,y=!1;++f<d;){var A=nr(i[f]);if(!(y=e!=null&&s(e,A)))break;e=e[A]}return y||++f!=d?y:(d=e==null?0:e.length,!!d&&fs(d)&&ds(A,d)&&(Ot(e)||hs(e)))}function Jf(e,i){return e!=null&&Zf(e,i,Kf)}var Qf=1,ed=2;function td(e,i){return Yr(e)&&na(i)?ra(nr(e),i):function(s){var f=_u(s,e);return f===void 0&&f===i?Jf(s,e):Kr(i,f,Qf|ed)}}function nd(e){return function(i){return i==null?void 0:i[e]}}function rd(e){return function(i){return No(i,e)}}function id(e){return Yr(e)?nd(nr(e)):rd(e)}function od(e){return typeof e=="function"?e:e==null?ps:typeof e=="object"?Ot(e)?td(e[0],e[1]):Gf(e):id(e)}function ad(e,i){return e&&vs(e,i,Vr)}function sd(e,i){return function(s,f){if(s==null)return s;if(!zr(s))return e(s,f);for(var d=s.length,y=i?d:-1,A=Object(s);(i?y--:++y<d)&&f(A[y],y,A)!==!1;);return s}}var ld=sd(ad);const ud=ld;function cd(e,i){var s=-1,f=zr(e)?Array(e.length):[];return ud(e,function(d,y,A){f[++s]=i(d,y,A)}),f}function fd(e,i){var s=Ot(e)?Ro:cd;return s(e,od(i))}var dd=Zc(function(e,i,s){return e+(s?"-":"")+i.toLowerCase()});const hd=dd,pd={name:"en-US",global:{undo:"Undo",redo:"Redo",confirm:"Confirm",clear:"Clear"},Popconfirm:{positiveText:"Confirm",negativeText:"Cancel"},Cascader:{placeholder:"Please Select",loading:"Loading",loadingRequiredMessage: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"}},vd=pd;function vr(e){return function(){var i=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},s=i.width?String(i.width):e.defaultWidth,f=e.formats[s]||e.formats[e.defaultWidth];return f}}function mn(e){return function(i,s){var f=s!=null&&s.context?String(s.context):"standalone",d;if(f==="formatting"&&e.formattingValues){var y=e.defaultFormattingWidth||e.defaultWidth,A=s!=null&&s.width?String(s.width):y;d=e.formattingValues[A]||e.formattingValues[y]}else{var T=e.defaultWidth,M=s!=null&&s.width?String(s.width):e.defaultWidth;d=e.values[M]||e.values[T]}var R=e.argumentCallback?e.argumentCallback(i):i;return d[R]}}function yn(e){return function(i){var s=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},f=s.width,d=f&&e.matchPatterns[f]||e.matchPatterns[e.defaultMatchWidth],y=i.match(d);if(!y)return null;var A=y[0],T=f&&e.parsePatterns[f]||e.parsePatterns[e.defaultParseWidth],M=Array.isArray(T)?md(T,function(I){return I.test(A)}):gd(T,function(I){return I.test(A)}),R;R=e.valueCallback?e.valueCallback(M):M,R=s.valueCallback?s.valueCallback(R):R;var _=i.slice(A.length);return{value:R,rest:_}}}function gd(e,i){for(var s in e)if(e.hasOwnProperty(s)&&i(e[s]))return s}function md(e,i){for(var s=0;s<e.length;s++)if(i(e[s]))return s}function yd(e){return function(i){var s=arguments.length>1&&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 A=e.valueCallback?e.valueCallback(y[0]):y[0];A=s.valueCallback?s.valueCallback(A):A;var T=i.slice(d.length);return{value:A,rest:T}}}var wd={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"}},bd=function(i,s,f){var d,y=wd[i];return typeof y=="string"?d=y:s===1?d=y.one:d=y.other.replace("{{count}}",s.toString()),f!=null&&f.addSuffix?f.comparison&&f.comparison>0?"in "+d:d+" ago":d};const xd=bd;var Sd={full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},Ad={full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},Cd={full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},Td={date:vr({formats:Sd,defaultWidth:"full"}),time:vr({formats:Ad,defaultWidth:"full"}),dateTime:vr({formats:Cd,defaultWidth:"full"})};const Md=Td;var Ed={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"},Od=function(i,s,f,d){return Ed[i]};const Pd=Od;var kd={narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},Rd={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},_d={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"]},Dd={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"]},Nd={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"}},Ld={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"}},Bd=function(i,s){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"},Fd={ordinalNumber:Bd,era:mn({values:kd,defaultWidth:"wide"}),quarter:mn({values:Rd,defaultWidth:"wide",argumentCallback:function(i){return i-1}}),month:mn({values:_d,defaultWidth:"wide"}),day:mn({values:Dd,defaultWidth:"wide"}),dayPeriod:mn({values:Nd,defaultWidth:"wide",formattingValues:Ld,defaultFormattingWidth:"wide"})};const zd=Fd;var Id=/^(\d+)(th|st|nd|rd)?/i,Wd=/\d+/i,jd={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},Hd={any:[/^b/i,/^(a|c)/i]},$d={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},qd={any:[/1/i,/2/i,/3/i,/4/i]},Ud={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},Xd={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]},Vd={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},Yd={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]},Gd={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},Kd={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}},Zd={ordinalNumber:yd({matchPattern:Id,parsePattern:Wd,valueCallback:function(i){return parseInt(i,10)}}),era:yn({matchPatterns:jd,defaultMatchWidth:"wide",parsePatterns:Hd,defaultParseWidth:"any"}),quarter:yn({matchPatterns:$d,defaultMatchWidth:"wide",parsePatterns:qd,defaultParseWidth:"any",valueCallback:function(i){return i+1}}),month:yn({matchPatterns:Ud,defaultMatchWidth:"wide",parsePatterns:Xd,defaultParseWidth:"any"}),day:yn({matchPatterns:Vd,defaultMatchWidth:"wide",parsePatterns:Yd,defaultParseWidth:"any"}),dayPeriod:yn({matchPatterns:Gd,defaultMatchWidth:"any",parsePatterns:Kd,defaultParseWidth:"any"})};const Jd=Zd;var Qd={code:"en-US",formatDistance:xd,formatLong:Md,formatRelative:Pd,localize:zd,match:Jd,options:{weekStartsOn:0,firstWeekContainsDate:1}};const eh=Qd,th={name:"en-US",locale:eh},nh=th;function rh(e){const{mergedLocaleRef:i,mergedDateLocaleRef:s}=dn(Wr,null)||{},f=Ue(()=>{var y,A;return(A=(y=i==null?void 0:i.value)===null||y===void 0?void 0:y[e])!==null&&A!==void 0?A:vd[e]});return{dateLocaleRef:Ue(()=>{var y;return(y=s==null?void 0:s.value)!==null&&y!==void 0?y:nh}),localeRef:f}}function ih(e,i,s){if(!i){gs("use-style","No style is specified.");return}const f=lo(),d=dn(Wr,null),y=()=>{const A=s==null?void 0:s.value;i.mount({id:A===void 0?e:A+e,head:!0,anchorMetaName:Cr,props:{bPrefix:A?`.${A}-`:void 0},ssr:f}),d!=null&&d.preflightStyleDisabled||ms.mount({id:"n-global",head:!0,anchorMetaName:Cr,ssr:f})};f?y():io(y)}function oh(e,i,s){if(!i)return;const f=lo(),d=Ue(()=>{const{value:A}=i;if(!A)return;const T=A[e];if(T)return T}),y=()=>{zt(()=>{const{value:A}=s,T=`${A}${e}Rtl`;if(Nl(T,f))return;const{value:M}=d;M&&M.style.mount({id:T,head:!0,anchorMetaName:Cr,props:{bPrefix:A?`.${A}-`:void 0},ssr:f})})};return f?y():io(y),d}function rr(e,i){return ft({name:sc(e),setup(){var s;const f=(s=dn(Wr,null))===null||s===void 0?void 0:s.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 ah=rr("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"}))),sh=rr("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"}))),lh=rr("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"}))),uh=rr("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"}))),ch=ft({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"})))}}),fh=Je("base-icon",`
  4. height: 1em;
  5. width: 1em;
  6. line-height: 1em;
  7. text-align: center;
  8. display: inline-block;
  9. position: relative;
  10. fill: currentColor;
  11. transform: translateZ(0);
  12. `,[Ve("svg",`
  13. height: 1em;
  14. width: 1em;
  15. `)]),Lt=ft({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){ih("-base-icon",fh,Xt(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)}}),dh=e=>{const{scrollbarColor:i,scrollbarColorHover:s}=e;return{color:i,colorHover:s}},hh={name:"Scrollbar",common:Jn,self:dh},ph=hh,{cubicBezierEaseInOut:ro}=ys;function Lr({name:e="fade-in",enterDuration:i="0.2s",leaveDuration:s="0.2s",enterCubicBezier:f=ro,leaveCubicBezier:d=ro}={}){return[Ve(`&.${e}-transition-enter-active`,{transition:`all ${i} ${f}!important`}),Ve(`&.${e}-transition-leave-active`,{transition:`all ${s} ${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 vh=Je("scrollbar",`
  16. overflow: hidden;
  17. position: relative;
  18. z-index: auto;
  19. height: 100%;
  20. width: 100%;
  21. `,[Ve(">",[Je("scrollbar-container",`
  22. width: 100%;
  23. overflow: scroll;
  24. height: 100%;
  25. max-height: inherit;
  26. scrollbar-width: none;
  27. `,[Ve("&::-webkit-scrollbar, &::-webkit-scrollbar-track-piece, &::-webkit-scrollbar-thumb",`
  28. width: 0;
  29. height: 0;
  30. display: none;
  31. `),Ve(">",[Je("scrollbar-content",`
  32. box-sizing: border-box;
  33. min-width: 100%;
  34. `)])])]),Ve(">, +",[Je("scrollbar-rail",`
  35. position: absolute;
  36. pointer-events: none;
  37. user-select: none;
  38. -webkit-user-select: none;
  39. `,[Vt("horizontal",`
  40. left: 2px;
  41. right: 2px;
  42. bottom: 4px;
  43. height: var(--n-scrollbar-height);
  44. `,[Ve(">",[Ut("scrollbar",`
  45. height: var(--n-scrollbar-height);
  46. border-radius: var(--n-scrollbar-border-radius);
  47. right: 0;
  48. `)])]),Vt("vertical",`
  49. right: 4px;
  50. top: 2px;
  51. bottom: 2px;
  52. width: var(--n-scrollbar-width);
  53. `,[Ve(">",[Ut("scrollbar",`
  54. width: var(--n-scrollbar-width);
  55. border-radius: var(--n-scrollbar-border-radius);
  56. bottom: 0;
  57. `)])]),Vt("disabled",[Ve(">",[Ut("scrollbar",{pointerEvents:"none"})])]),Ve(">",[Ut("scrollbar",`
  58. position: absolute;
  59. cursor: pointer;
  60. pointer-events: all;
  61. background-color: var(--n-scrollbar-color);
  62. transition: background-color .2s var(--n-scrollbar-bezier);
  63. `,[Lr(),Ve("&:hover",{backgroundColor:"var(--n-scrollbar-color-hover)"})])])])])]),gh=Object.assign(Object.assign({},Rt.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}),mh=ft({name:"Scrollbar",props:gh,inheritAttrs:!1,setup(e){const{mergedClsPrefixRef:i,inlineThemeDisabled:s,mergedRtlRef:f}=Cn(e),d=oh("Scrollbar",f,i),y=Me(null),A=Me(null),T=Me(null),M=Me(null),R=Me(null),_=Me(null),I=Me(null),Z=Me(null),Y=Me(null),ce=Me(null),B=Me(null),C=Me(0),$=Me(0),V=Me(!1),ve=Me(!1);let be=!1,ee=!1,me,le,de=0,xe=0,ye=0,Pe=0;const Be=Il(),Ae=Ue(()=>{const{value:X}=Z,{value:ae}=_,{value:ge}=ce;return X===null||ae===null||ge===null?0:Math.min(X,ge*X/ae+e.size*1.5)}),ue=Ue(()=>`${Ae.value}px`),ke=Ue(()=>{const{value:X}=Y,{value:ae}=I,{value:ge}=B;return X===null||ae===null||ge===null?0:ge*X/ae+e.size*1.5}),q=Ue(()=>`${ke.value}px`),a=Ue(()=>{const{value:X}=Z,{value:ae}=C,{value:ge}=_,{value:_e}=ce;if(X===null||ge===null||_e===null)return 0;{const We=ge-X;return We?ae/We*(_e-Ae.value):0}}),l=Ue(()=>`${a.value}px`),n=Ue(()=>{const{value:X}=Y,{value:ae}=$,{value:ge}=I,{value:_e}=B;if(X===null||ge===null||_e===null)return 0;{const We=ge-X;return We?ae/We*(_e-ke.value):0}}),m=Ue(()=>`${n.value}px`),b=Ue(()=>{const{value:X}=Z,{value:ae}=_;return X!==null&&ae!==null&&ae>X}),N=Ue(()=>{const{value:X}=Y,{value:ae}=I;return X!==null&&ae!==null&&ae>X}),re=Ue(()=>{const{trigger:X}=e;return X==="none"||V.value}),Q=Ue(()=>{const{trigger:X}=e;return X==="none"||ve.value}),fe=Ue(()=>{const{container:X}=e;return X?X():A.value}),Re=Ue(()=>{const{content:X}=e;return X?X():T.value}),De=hu(()=>{e.container||tt({top:C.value,left:$.value})}),ze=()=>{De.isDeactivated||vt()},at=X=>{if(De.isDeactivated)return;const{onResize:ae}=e;ae&&ae(X),vt()},tt=(X,ae)=>{if(!e.scrollable)return;if(typeof X=="number"){G(ae!=null?ae:0,X,0,!1,"auto");return}const{left:ge,top:_e,index:We,elSize:Ke,position:lt,behavior:Fe,el:$e,debounce:It=!0}=X;(ge!==void 0||_e!==void 0)&&G(ge!=null?ge:0,_e!=null?_e:0,0,!1,Fe),$e!==void 0?G(0,$e.offsetTop,$e.offsetHeight,It,Fe):We!==void 0&&Ke!==void 0?G(0,We*Ke,Ke,It,Fe):lt==="bottom"?G(0,Number.MAX_SAFE_INTEGER,0,!1,Fe):lt==="top"&&G(0,0,0,!1,Fe)},He=(X,ae)=>{if(!e.scrollable)return;const{value:ge}=fe;ge&&(typeof X=="object"?ge.scrollBy(X):ge.scrollBy(X,ae||0))};function G(X,ae,ge,_e,We){const{value:Ke}=fe;if(Ke){if(_e){const{scrollTop:lt,offsetHeight:Fe}=Ke;if(ae>lt){ae+ge<=lt+Fe||Ke.scrollTo({left:X,top:ae+ge-Fe,behavior:We});return}}Ke.scrollTo({left:X,top:ae,behavior:We})}}function he(){Ye(),nt(),vt()}function oe(){Ee()}function Ee(){Ne(),Xe()}function Ne(){le!==void 0&&window.clearTimeout(le),le=window.setTimeout(()=>{ve.value=!1},e.duration)}function Xe(){me!==void 0&&window.clearTimeout(me),me=window.setTimeout(()=>{V.value=!1},e.duration)}function Ye(){me!==void 0&&window.clearTimeout(me),V.value=!0}function nt(){le!==void 0&&window.clearTimeout(le),ve.value=!0}function Qe(X){const{onScroll:ae}=e;ae&&ae(X),Tt()}function Tt(){const{value:X}=fe;X&&(C.value=X.scrollTop,$.value=X.scrollLeft*(d!=null&&d.value?-1:1))}function en(){const{value:X}=Re;X&&(_.value=X.offsetHeight,I.value=X.offsetWidth);const{value:ae}=fe;ae&&(Z.value=ae.offsetHeight,Y.value=ae.offsetWidth);const{value:ge}=R,{value:_e}=M;ge&&(B.value=ge.offsetWidth),_e&&(ce.value=_e.offsetHeight)}function dt(){const{value:X}=fe;X&&(C.value=X.scrollTop,$.value=X.scrollLeft*(d!=null&&d.value?-1:1),Z.value=X.offsetHeight,Y.value=X.offsetWidth,_.value=X.scrollHeight,I.value=X.scrollWidth);const{value:ae}=R,{value:ge}=M;ae&&(B.value=ae.offsetWidth),ge&&(ce.value=ge.offsetHeight)}function vt(){e.scrollable&&(e.useUnifiedContainer?dt():(en(),Tt()))}function Ge(X){var ae;return!(!((ae=y.value)===null||ae===void 0)&&ae.contains(Yn(X)))}function pn(X){X.preventDefault(),X.stopPropagation(),ee=!0,pt("mousemove",window,Mt,!0),pt("mouseup",window,_t,!0),xe=$.value,ye=d!=null&&d.value?window.innerWidth-X.clientX:X.clientX}function Mt(X){if(!ee)return;me!==void 0&&window.clearTimeout(me),le!==void 0&&window.clearTimeout(le);const{value:ae}=Y,{value:ge}=I,{value:_e}=ke;if(ae===null||ge===null)return;const Ke=(d!=null&&d.value?window.innerWidth-X.clientX-ye:X.clientX-ye)*(ge-ae)/(ae-_e),lt=ge-ae;let Fe=xe+Ke;Fe=Math.min(lt,Fe),Fe=Math.max(Fe,0);const{value:$e}=fe;if($e){$e.scrollLeft=Fe*(d!=null&&d.value?-1:1);const{internalOnUpdateScrollLeft:It}=e;It&&It(Fe)}}function _t(X){X.preventDefault(),X.stopPropagation(),st("mousemove",window,Mt,!0),st("mouseup",window,_t,!0),ee=!1,vt(),Ge(X)&&Ee()}function wt(X){X.preventDefault(),X.stopPropagation(),be=!0,pt("mousemove",window,gt,!0),pt("mouseup",window,mt,!0),de=C.value,Pe=X.clientY}function gt(X){if(!be)return;me!==void 0&&window.clearTimeout(me),le!==void 0&&window.clearTimeout(le);const{value:ae}=Z,{value:ge}=_,{value:_e}=Ae;if(ae===null||ge===null)return;const Ke=(X.clientY-Pe)*(ge-ae)/(ae-_e),lt=ge-ae;let Fe=de+Ke;Fe=Math.min(lt,Fe),Fe=Math.max(Fe,0);const{value:$e}=fe;$e&&($e.scrollTop=Fe)}function mt(X){X.preventDefault(),X.stopPropagation(),st("mousemove",window,gt,!0),st("mouseup",window,mt,!0),be=!1,vt(),Ge(X)&&Ee()}zt(()=>{const{value:X}=N,{value:ae}=b,{value:ge}=i,{value:_e}=R,{value:We}=M;_e&&(X?_e.classList.remove(`${ge}-scrollbar-rail--disabled`):_e.classList.add(`${ge}-scrollbar-rail--disabled`)),We&&(ae?We.classList.remove(`${ge}-scrollbar-rail--disabled`):We.classList.add(`${ge}-scrollbar-rail--disabled`))}),Ft(()=>{e.container||vt()}),Qt(()=>{me!==void 0&&window.clearTimeout(me),le!==void 0&&window.clearTimeout(le),st("mousemove",window,gt,!0),st("mouseup",window,mt,!0)});const Dt=Rt("Scrollbar","-scrollbar",vh,ph,e,i),qe=Ue(()=>{const{common:{cubicBezierEaseInOut:X,scrollbarBorderRadius:ae,scrollbarHeight:ge,scrollbarWidth:_e},self:{color:We,colorHover:Ke}}=Dt.value;return{"--n-scrollbar-bezier":X,"--n-scrollbar-color":We,"--n-scrollbar-color-hover":Ke,"--n-scrollbar-border-radius":ae,"--n-scrollbar-width":_e,"--n-scrollbar-height":ge}}),Ze=s?jr("scrollbar",void 0,qe,e):void 0;return Object.assign(Object.assign({},{scrollTo:tt,scrollBy:He,sync:vt,syncUnifiedContainer:dt,handleMouseEnterWrapper:he,handleMouseLeaveWrapper:oe}),{mergedClsPrefix:i,rtlEnabled:d,containerScrollTop:C,wrapperRef:y,containerRef:A,contentRef:T,yRailRef:M,xRailRef:R,needYBar:b,needXBar:N,yBarSizePx:ue,xBarSizePx:q,yBarTopPx:l,xBarLeftPx:m,isShowXBar:re,isShowYBar:Q,isIos:Be,handleScroll:Qe,handleContentResize:ze,handleContainerResize:at,handleYScrollMouseDown:wt,handleXScrollMouseDown:pn,cssVars:s?void 0:qe,themeClass:Ze==null?void 0:Ze.themeClass,onRender:Ze==null?void 0:Ze.onRender})},render(){var e;const{$slots:i,mergedClsPrefix:s,triggerDisplayManually:f,rtlEnabled:d,internalHoistYRail:y}=this;if(!this.scrollable)return(e=i.default)===null||e===void 0?void 0:e.call(i);const A=this.trigger==="none",T=()=>J("div",{ref:"yRailRef",class:[`${s}-scrollbar-rail`,`${s}-scrollbar-rail--vertical`],"data-scrollbar-rail":!0,style:this.verticalRailStyle,"aria-hidden":!0},J(A?Ai:ln,A?null:{name:"fade-in-transition"},{default:()=>this.needYBar&&this.isShowYBar&&!this.isIos?J("div",{class:`${s}-scrollbar-rail__scrollbar`,style:{height:this.yBarSizePx,top:this.yBarTopPx},onMousedown:this.handleYScrollMouseDown}):null})),M=()=>{var _,I;return(_=this.onRender)===null||_===void 0||_.call(this),J("div",Br(this.$attrs,{role:"none",ref:"wrapperRef",class:[`${s}-scrollbar`,this.themeClass,d&&`${s}-scrollbar--rtl`],style:this.cssVars,onMouseenter:f?void 0:this.handleMouseEnterWrapper,onMouseleave:f?void 0:this.handleMouseLeaveWrapper}),[this.container?(I=i.default)===null||I===void 0?void 0:I.call(i):J("div",{role:"none",ref:"containerRef",class:[`${s}-scrollbar-container`,this.containerClass],style:this.containerStyle,onScroll:this.handleScroll,onWheel:this.onWheel},J(zi,{onResize:this.handleContentResize},{default:()=>J("div",{ref:"contentRef",role:"none",style:[{width:this.xScrollable?"fit-content":null},this.contentStyle],class:[`${s}-scrollbar-content`,this.contentClass]},i)})),y?null:T(),this.xScrollable&&J("div",{ref:"xRailRef",class:[`${s}-scrollbar-rail`,`${s}-scrollbar-rail--horizontal`],style:this.horizontalRailStyle,"data-scrollbar-rail":!0,"aria-hidden":!0},J(A?Ai:ln,A?null:{name:"fade-in-transition"},{default:()=>this.needXBar&&this.isShowXBar&&!this.isIos?J("div",{class:`${s}-scrollbar-rail__scrollbar`,style:{width:this.xBarSizePx,right:d?this.xBarLeftPx:void 0,left:d?void 0:this.xBarLeftPx},onMousedown:this.handleXScrollMouseDown}):null}))])},R=this.container?M():J(zi,{onResize:this.handleContainerResize},{default:M});return y?J(Jt,null,R,T()):R}}),yh=mh,wh={space:"6px",spaceArrow:"10px",arrowOffset:"10px",arrowOffsetVertical:"10px",arrowHeight:"6px",padding:"8px 14px"},bh=e=>{const{boxShadow2:i,popoverColor:s,textColor2:f,borderRadius:d,fontSize:y,dividerColor:A}=e;return Object.assign(Object.assign({},wh),{fontSize:y,borderRadius:d,color:s,dividerColor:A,textColor:f,boxShadow:i})},xh={name:"Popover",common:Jn,self:bh},ia=xh,gr={top:"bottom",bottom:"top",left:"right",right:"left"},ot="var(--n-arrow-height) * 1.414",Sh=Ve([Je("popover",`
  64. transition:
  65. box-shadow .3s var(--n-bezier),
  66. background-color .3s var(--n-bezier),
  67. color .3s var(--n-bezier);
  68. position: relative;
  69. font-size: var(--n-font-size);
  70. color: var(--n-text-color);
  71. box-shadow: var(--n-box-shadow);
  72. word-break: break-word;
  73. `,[Ve(">",[Je("scrollbar",`
  74. height: inherit;
  75. max-height: inherit;
  76. `)]),In("raw",`
  77. background-color: var(--n-color);
  78. border-radius: var(--n-border-radius);
  79. `,[In("scrollable",[In("show-header-or-footer","padding: var(--n-padding);")])]),Ut("header",`
  80. padding: var(--n-padding);
  81. border-bottom: 1px solid var(--n-divider-color);
  82. transition: border-color .3s var(--n-bezier);
  83. `),Ut("footer",`
  84. padding: var(--n-padding);
  85. border-top: 1px solid var(--n-divider-color);
  86. transition: border-color .3s var(--n-bezier);
  87. `),Vt("scrollable, show-header-or-footer",[Ut("content",`
  88. padding: var(--n-padding);
  89. `)])]),Je("popover-shared",`
  90. transform-origin: inherit;
  91. `,[Je("popover-arrow-wrapper",`
  92. position: absolute;
  93. overflow: hidden;
  94. pointer-events: none;
  95. `,[Je("popover-arrow",`
  96. transition: background-color .3s var(--n-bezier);
  97. position: absolute;
  98. display: block;
  99. width: calc(${ot});
  100. height: calc(${ot});
  101. box-shadow: 0 0 8px 0 rgba(0, 0, 0, .12);
  102. transform: rotate(45deg);
  103. background-color: var(--n-color);
  104. pointer-events: all;
  105. `)]),Ve("&.popover-transition-enter-from, &.popover-transition-leave-to",`
  106. opacity: 0;
  107. transform: scale(.85);
  108. `),Ve("&.popover-transition-enter-to, &.popover-transition-leave-from",`
  109. transform: scale(1);
  110. opacity: 1;
  111. `),Ve("&.popover-transition-enter-active",`
  112. transition:
  113. box-shadow .3s var(--n-bezier),
  114. background-color .3s var(--n-bezier),
  115. color .3s var(--n-bezier),
  116. opacity .15s var(--n-bezier-ease-out),
  117. transform .15s var(--n-bezier-ease-out);
  118. `),Ve("&.popover-transition-leave-active",`
  119. transition:
  120. box-shadow .3s var(--n-bezier),
  121. background-color .3s var(--n-bezier),
  122. color .3s var(--n-bezier),
  123. opacity .15s var(--n-bezier-ease-in),
  124. transform .15s var(--n-bezier-ease-in);
  125. `)]),yt("top-start",`
  126. top: calc(${ot} / -2);
  127. left: calc(${Et("top-start")} - var(--v-offset-left));
  128. `),yt("top",`
  129. top: calc(${ot} / -2);
  130. transform: translateX(calc(${ot} / -2)) rotate(45deg);
  131. left: 50%;
  132. `),yt("top-end",`
  133. top: calc(${ot} / -2);
  134. right: calc(${Et("top-end")} + var(--v-offset-left));
  135. `),yt("bottom-start",`
  136. bottom: calc(${ot} / -2);
  137. left: calc(${Et("bottom-start")} - var(--v-offset-left));
  138. `),yt("bottom",`
  139. bottom: calc(${ot} / -2);
  140. transform: translateX(calc(${ot} / -2)) rotate(45deg);
  141. left: 50%;
  142. `),yt("bottom-end",`
  143. bottom: calc(${ot} / -2);
  144. right: calc(${Et("bottom-end")} + var(--v-offset-left));
  145. `),yt("left-start",`
  146. left: calc(${ot} / -2);
  147. top: calc(${Et("left-start")} - var(--v-offset-top));
  148. `),yt("left",`
  149. left: calc(${ot} / -2);
  150. transform: translateY(calc(${ot} / -2)) rotate(45deg);
  151. top: 50%;
  152. `),yt("left-end",`
  153. left: calc(${ot} / -2);
  154. bottom: calc(${Et("left-end")} + var(--v-offset-top));
  155. `),yt("right-start",`
  156. right: calc(${ot} / -2);
  157. top: calc(${Et("right-start")} - var(--v-offset-top));
  158. `),yt("right",`
  159. right: calc(${ot} / -2);
  160. transform: translateY(calc(${ot} / -2)) rotate(45deg);
  161. top: 50%;
  162. `),yt("right-end",`
  163. right: calc(${ot} / -2);
  164. bottom: calc(${Et("right-end")} + var(--v-offset-top));
  165. `),...fd({top:["right-start","left-start"],right:["top-end","bottom-end"],bottom:["right-end","left-end"],left:["top-start","bottom-start"]},(e,i)=>{const s=["right","left"].includes(i),f=s?"width":"height";return e.map(d=>{const y=d.split("-")[1]==="end",T=`calc((${`var(--v-target-${f}, 0px)`} - ${ot}) / 2)`,M=Et(d);return Ve(`[v-placement="${d}"] >`,[Je("popover-shared",[Vt("center-arrow",[Je("popover-arrow",`${i}: calc(max(${T}, ${M}) ${y?"+":"-"} var(--v-offset-${s?"left":"top"}));`)])])])})})]);function Et(e){return["top","bottom"].includes(e.split("-")[0])?"var(--n-arrow-offset)":"var(--n-arrow-offset-vertical)"}function yt(e,i){const s=e.split("-")[0],f=["top","bottom"].includes(s)?"height: var(--n-space-arrow);":"width: var(--n-space-arrow);";return Ve(`[v-placement="${e}"] >`,[Je("popover-shared",`
  166. margin-${gr[s]}: var(--n-space);
  167. `,[Vt("show-arrow",`
  168. margin-${gr[s]}: var(--n-space-arrow);
  169. `),Vt("overlap",`
  170. margin: 0;
  171. `),ws("popover-arrow-wrapper",`
  172. right: 0;
  173. left: 0;
  174. top: 0;
  175. bottom: 0;
  176. ${s}: 100%;
  177. ${gr[s]}: auto;
  178. ${f}
  179. `,[Je("popover-arrow",i)])])])}const oa=Object.assign(Object.assign({},Rt.props),{to:qn.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}),Ah=({arrowStyle:e,clsPrefix:i})=>J("div",{key:"__popover-arrow__",class:`${i}-popover-arrow-wrapper`},J("div",{class:`${i}-popover-arrow`,style:e})),Ch=ft({name:"PopoverBody",inheritAttrs:!1,props:oa,setup(e,{slots:i,attrs:s}){const{namespaceRef:f,mergedClsPrefixRef:d,inlineThemeDisabled:y}=Cn(e),A=Rt("Popover","-popover",Sh,ia,e,d),T=Me(null),M=dn("NPopover"),R=Me(null),_=Me(e.show),I=Me(!1);zt(()=>{const{show:le}=e;le&&!Ll()&&!e.internalDeactivateImmediately&&(I.value=!0)});const Z=Ue(()=>{const{trigger:le,onClickoutside:de}=e,xe=[],{positionManuallyRef:{value:ye}}=M;return ye||(le==="click"&&!de&&xe.push([Ti,be,void 0,{capture:!0}]),le==="hover"&&xe.push([jl,ve])),de&&xe.push([Ti,be,void 0,{capture:!0}]),(e.displayDirective==="show"||e.animated&&I.value)&&xe.push([oo,e.show]),xe}),Y=Ue(()=>{const le=e.width==="trigger"?void 0:cr(e.width),de=[];le&&de.push({width:le});const{maxWidth:xe,minWidth:ye}=e;return xe&&de.push({maxWidth:cr(xe)}),ye&&de.push({maxWidth:cr(ye)}),y||de.push(ce.value),de}),ce=Ue(()=>{const{common:{cubicBezierEaseInOut:le,cubicBezierEaseIn:de,cubicBezierEaseOut:xe},self:{space:ye,spaceArrow:Pe,padding:Be,fontSize:Ae,textColor:ue,dividerColor:ke,color:q,boxShadow:a,borderRadius:l,arrowHeight:n,arrowOffset:m,arrowOffsetVertical:b}}=A.value;return{"--n-box-shadow":a,"--n-bezier":le,"--n-bezier-ease-in":de,"--n-bezier-ease-out":xe,"--n-font-size":Ae,"--n-text-color":ue,"--n-color":q,"--n-divider-color":ke,"--n-border-radius":l,"--n-arrow-height":n,"--n-arrow-offset":m,"--n-arrow-offset-vertical":b,"--n-padding":Be,"--n-space":ye,"--n-space-arrow":Pe}}),B=y?jr("popover",void 0,ce,e):void 0;M.setBodyInstance({syncPosition:C}),Qt(()=>{M.setBodyInstance(null)}),Zt(Xt(e,"show"),le=>{e.animated||(le?_.value=!0:_.value=!1)});function C(){var le;(le=T.value)===null||le===void 0||le.syncPosition()}function $(le){e.trigger==="hover"&&e.keepAliveOnHover&&e.show&&M.handleMouseEnter(le)}function V(le){e.trigger==="hover"&&e.keepAliveOnHover&&M.handleMouseLeave(le)}function ve(le){e.trigger==="hover"&&!ee().contains(Yn(le))&&M.handleMouseMoveOutside(le)}function be(le){(e.trigger==="click"&&!ee().contains(Yn(le))||e.onClickoutside)&&M.handleClickOutside(le)}function ee(){return M.getTriggerElement()}wn(bs,R),wn(xs,null),wn(Ss,null);function me(){if(B==null||B.onRender(),!(e.displayDirective==="show"||e.show||e.animated&&I.value))return null;let de;const xe=M.internalRenderBodyRef.value,{value:ye}=d;if(xe)de=xe([`${ye}-popover-shared`,B==null?void 0:B.themeClass.value,e.overlap&&`${ye}-popover-shared--overlap`,e.showArrow&&`${ye}-popover-shared--show-arrow`,e.arrowPointToCenter&&`${ye}-popover-shared--center-arrow`],R,Y.value,$,V);else{const{value:Pe}=M.extraClassRef,{internalTrapFocus:Be}=e,Ae=!hi(i.header)||!hi(i.footer),ue=()=>{var ke;const q=Ae?J(Jt,null,ur(i.header,n=>n?J("div",{class:`${ye}-popover__header`,style:e.headerStyle},n):null),ur(i.default,n=>n?J("div",{class:`${ye}-popover__content`,style:e.contentStyle},i):null),ur(i.footer,n=>n?J("div",{class:`${ye}-popover__footer`,style:e.footerStyle},n):null)):e.scrollable?(ke=i.default)===null||ke===void 0?void 0:ke.call(i):J("div",{class:`${ye}-popover__content`,style:e.contentStyle},i),a=e.scrollable?J(yh,{contentClass:Ae?void 0:`${ye}-popover__content`,contentStyle:Ae?void 0:e.contentStyle},{default:()=>q}):q,l=e.showArrow?Ah({arrowStyle:e.arrowStyle,clsPrefix:ye}):null;return[a,l]};de=J("div",Br({class:[`${ye}-popover`,`${ye}-popover-shared`,B==null?void 0:B.themeClass.value,Pe.map(ke=>`${ye}-${ke}`),{[`${ye}-popover--scrollable`]:e.scrollable,[`${ye}-popover--show-header-or-footer`]:Ae,[`${ye}-popover--raw`]:e.raw,[`${ye}-popover-shared--overlap`]:e.overlap,[`${ye}-popover-shared--show-arrow`]:e.showArrow,[`${ye}-popover-shared--center-arrow`]:e.arrowPointToCenter}],ref:R,style:Y.value,onKeydown:M.handleKeydown,onMouseenter:$,onMouseleave:V},s),Be?J(du,{active:e.show,autoFocus:!0},{default:ue}):ue())}return Hn(de,Z.value)}return{displayed:I,namespace:f,isMounted:M.isMountedRef,zIndex:M.zIndexRef,followerRef:T,adjustedTo:qn(e),followerEnabled:_,renderContentNode:me}},render(){return J(As,{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===qn.tdkey},{default:()=>this.animated?J(ln,{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()})}}),Th=Object.keys(oa),Mh={focus:["onFocus","onBlur"],click:["onClick"],hover:["onMouseenter","onMouseleave"],manual:[],nested:["onFocus","onBlur","onMouseenter","onMouseleave","onClick"]};function Eh(e,i,s){Mh[i].forEach(f=>{e.props?e.props=Object.assign({},e.props):e.props={};const d=e.props[f],y=s[f];d?e.props[f]=(...A)=>{d(...A),y(...A)}:e.props[f]=y})}const aa={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:qn.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},Oh=Object.assign(Object.assign(Object.assign({},Rt.props),aa),{internalOnAfterLeave:Function,internalRenderBody:Function}),Ph=ft({name:"Popover",inheritAttrs:!1,props:Oh,__popover__:!0,setup(e){zt(()=>{e.maxWidth!==void 0&&vn("popover","`max-width` is deprecated, please use `style` instead."),e.minWidth!==void 0&&vn("popover","`min-width` is deprecated, please use `style` instead."),e.arrow!==void 0&&vn("popover","`arrow` is deprecated, please use `showArrow` instead."),e.onHide!==void 0&&vn("popover","`on-hide` is deprecated, please use `on-update:show` instead."),e.onShow!==void 0&&vn("popover","`on-show` is deprecated, please use `on-update:show` instead.")});const i=uo(),s=Me(null),f=Ue(()=>e.show),d=Me(e.defaultShow),y=Cs(f,d),A=pi(()=>e.disabled?!1:y.value),T=()=>{if(e.disabled)return!0;const{getDisabled:ue}=e;return!!(ue!=null&&ue())},M=()=>T()?!1:y.value,R=Fl(e,["arrow","showArrow"]),_=Ue(()=>e.overlap?!1:R.value);let I=null;const Z=Me(null),Y=Me(null),ce=pi(()=>e.x!==void 0&&e.y!==void 0);function B(ue){const{"onUpdate:show":ke,onUpdateShow:q,onShow:a,onHide:l}=e;d.value=ue,ke&&kn(ke,ue),q&&kn(q,ue),ue&&a&&kn(a,!0),ue&&l&&kn(l,!1)}function C(){I&&I.syncPosition()}function $(){const{value:ue}=Z;ue&&(window.clearTimeout(ue),Z.value=null)}function V(){const{value:ue}=Y;ue&&(window.clearTimeout(ue),Y.value=null)}function ve(){const ue=T();if(e.trigger==="focus"&&!ue){if(M())return;B(!0)}}function be(){const ue=T();if(e.trigger==="focus"&&!ue){if(!M())return;B(!1)}}function ee(){const ue=T();if(e.trigger==="hover"&&!ue){if(V(),Z.value!==null||M())return;const ke=()=>{B(!0),Z.value=null},{delay:q}=e;q===0?ke():Z.value=window.setTimeout(ke,q)}}function me(){const ue=T();if(e.trigger==="hover"&&!ue){if($(),Y.value!==null||!M())return;const ke=()=>{B(!1),Y.value=null},{duration:q}=e;q===0?ke():Y.value=window.setTimeout(ke,q)}}function le(){me()}function de(ue){var ke;M()&&(e.trigger==="click"&&($(),V(),B(!1)),(ke=e.onClickoutside)===null||ke===void 0||ke.call(e,ue))}function xe(){if(e.trigger==="click"&&!T()){$(),V();const ue=!M();B(ue)}}function ye(ue){e.internalTrapFocus&&ue.key==="Escape"&&($(),V(),B(!1))}function Pe(ue){d.value=ue}function Be(){var ue;return(ue=s.value)===null||ue===void 0?void 0:ue.targetRef}function Ae(ue){I=ue}return wn("NPopover",{getTriggerElement:Be,handleKeydown:ye,handleMouseEnter:ee,handleMouseLeave:me,handleClickOutside:de,handleMouseMoveOutside:le,setBodyInstance:Ae,positionManuallyRef:ce,isMountedRef:i,zIndexRef:Xt(e,"zIndex"),extraClassRef:Xt(e,"internalExtraClass"),internalRenderBodyRef:Xt(e,"internalRenderBody")}),zt(()=>{y.value&&T()&&B(!1)}),{binderInstRef:s,positionManually:ce,mergedShowConsideringDisabledProp:A,uncontrolledShow:d,mergedShowArrow:_,getMergedShow:M,setShow:Pe,handleClick:xe,handleMouseEnter:ee,handleMouseLeave:me,handleFocus:ve,handleBlur:be,syncPosition:C}},render(){var e;const{positionManually:i,$slots:s}=this;let f,d=!1;if(!i&&(s.activator?f=Si(s,"activator"):f=Si(s,"trigger"),f)){f=Ja(f),f=f.type===Qa?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:A}=this,T=[y,...A],M={onBlur:R=>{T.forEach(_=>{_.onBlur(R)})},onFocus:R=>{T.forEach(_=>{_.onFocus(R)})},onClick:R=>{T.forEach(_=>{_.onClick(R)})},onMouseenter:R=>{T.forEach(_=>{_.onMouseenter(R)})},onMouseleave:R=>{T.forEach(_=>{_.onMouseleave(R)})}};Eh(f,A?"nested":i?"manual":this.trigger,M)}}return J(Ms,{ref:"binderInstRef",syncTarget:!d,syncTargetWithParent:this.internalSyncTargetWithParent},{default:()=>{this.mergedShowConsideringDisabledProp;const y=this.getMergedShow();return[this.internalTrapFocus&&y?Hn(J("div",{style:{position:"fixed",inset:0}}),[[co,{enabled:y,zIndex:this.zIndex}]]):null,i?null:J(Ts,null,{default:()=>f}),J(Ch,_l(this.$props,Th,Object.assign(Object.assign({},this.$attrs),{showArrow:this.mergedShowArrow,show:y})),{default:()=>{var A,T;return(T=(A=this.$slots).default)===null||T===void 0?void 0:T.call(A)},header:()=>{var A,T;return(T=(A=this.$slots).header)===null||T===void 0?void 0:T.call(A)},footer:()=>{var A,T;return(T=(A=this.$slots).footer)===null||T===void 0?void 0:T.call(A)}})]}})}}),kh=Bl&&"loading"in document.createElement("img"),Rh=(e={})=>{var i;const{root:s=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 s=="string"?document.querySelector(s):s)||document.documentElement})}},mr=new WeakMap,yr=new WeakMap,wr=new WeakMap,_h=(e,i,s)=>{if(!e)return()=>{};const f=Rh(i),{root:d}=f.options;let y;const A=mr.get(d);A?y=A:(y=new Map,mr.set(d,y));let T,M;y.has(f.hash)?(M=y.get(f.hash),M[1].has(e)||(T=M[0],M[1].add(e),T.observe(e))):(T=new IntersectionObserver(I=>{I.forEach(Z=>{if(Z.isIntersecting){const Y=yr.get(Z.target),ce=wr.get(Z.target);Y&&Y(),ce&&(ce.value=!0)}})},f.options),T.observe(e),M=[T,new Set([e])],y.set(f.hash,M));let R=!1;const _=()=>{R||(yr.delete(e),wr.delete(e),R=!0,M[1].has(e)&&(M[0].unobserve(e),M[1].delete(e)),M[1].size<=0&&y.delete(f.hash),y.size||mr.delete(d))};return yr.set(e,_),wr.set(e,s),_},Dh={padding:"8px 14px"},Nh=e=>{const{borderRadius:i,boxShadow2:s,baseColor:f}=e;return Object.assign(Object.assign({},Dh),{borderRadius:i,boxShadow:s,color:Es(f,"rgba(0, 0, 0, .85)"),textColor:f})},Lh=fo({name:"Tooltip",common:Jn,peers:{Popover:ia},self:Nh}),sa=Lh,Bh=Object.assign(Object.assign({},aa),Rt.props),Fh=ft({name:"Tooltip",props:Bh,__popover__:!0,setup(e){const{mergedClsPrefixRef:i}=Cn(e),s=Rt("Tooltip","-tooltip",void 0,sa,e,i),f=Me(null);return Object.assign(Object.assign({},{syncPosition(){f.value.syncPosition()},setShow(y){f.value.setShow(y)}}),{popoverRef:f,mergedTheme:s,popoverThemeOverrides:Ue(()=>s.value.self)})},render(){const{mergedTheme:e,internalExtraClass:i}=this;return J(Ph,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)}}),la=Object.assign(Object.assign({},Rt.props),{showToolbar:{type:Boolean,default:!0},showToolbarTooltip:Boolean}),ua=ho("n-image");function zh(){return{toolbarIconColor:"rgba(255, 255, 255, .9)",toolbarColor:"rgba(0, 0, 0, .35)",toolbarBoxShadow:"none",toolbarBorderRadius:"24px"}}const Ih=fo({name:"Image",common:Jn,peers:{Tooltip:sa},self:zh}),Wh=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"})),jh=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"})),Hh=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"})),$h=Ve([Ve("body >",[Je("image-container","position: fixed;")]),Je("image-preview-container",`
  180. position: fixed;
  181. left: 0;
  182. right: 0;
  183. top: 0;
  184. bottom: 0;
  185. display: flex;
  186. `),Je("image-preview-overlay",`
  187. z-index: -1;
  188. position: absolute;
  189. left: 0;
  190. right: 0;
  191. top: 0;
  192. bottom: 0;
  193. background: rgba(0, 0, 0, .3);
  194. `,[Lr()]),Je("image-preview-toolbar",`
  195. z-index: 1;
  196. position: absolute;
  197. left: 50%;
  198. transform: translateX(-50%);
  199. border-radius: var(--n-toolbar-border-radius);
  200. height: 48px;
  201. bottom: 40px;
  202. padding: 0 12px;
  203. background: var(--n-toolbar-color);
  204. box-shadow: var(--n-toolbar-box-shadow);
  205. color: var(--n-toolbar-icon-color);
  206. transition: color .3s var(--n-bezier);
  207. display: flex;
  208. align-items: center;
  209. `,[Je("base-icon",`
  210. padding: 0 8px;
  211. font-size: 28px;
  212. cursor: pointer;
  213. `),Lr()]),Je("image-preview-wrapper",`
  214. position: absolute;
  215. left: 0;
  216. right: 0;
  217. top: 0;
  218. bottom: 0;
  219. display: flex;
  220. pointer-events: none;
  221. `,[Os()]),Je("image-preview",`
  222. user-select: none;
  223. -webkit-user-select: none;
  224. pointer-events: all;
  225. margin: auto;
  226. max-height: calc(100vh - 32px);
  227. max-width: calc(100vw - 32px);
  228. transition: transform .3s var(--n-bezier);
  229. `),Je("image",`
  230. display: inline-flex;
  231. max-height: 100%;
  232. max-width: 100%;
  233. `,[In("preview-disabled",`
  234. cursor: pointer;
  235. `),Ve("img",`
  236. border-radius: inherit;
  237. `)])]),Bn=32,qh=ft({name:"ImagePreview",props:Object.assign(Object.assign({},la),{onNext:Function,onPrev:Function,clsPrefix:{type:String,required:!0}}),setup(e){const i=Rt("Image","-image",$h,Ih,e,Xt(e,"clsPrefix"));let s=null;const f=Me(null),d=Me(null),y=Me(void 0),A=Me(!1),T=Me(!1),{localeRef:M}=rh("Image");function R(){const{value:G}=d;if(!s||!G)return;const{style:he}=G,oe=s.getBoundingClientRect(),Ee=oe.left+oe.width/2,Ne=oe.top+oe.height/2;he.transformOrigin=`${Ee}px ${Ne}px`}function _(G){var he,oe;switch(G.key){case" ":G.preventDefault();break;case"ArrowLeft":(he=e.onPrev)===null||he===void 0||he.call(e);break;case"ArrowRight":(oe=e.onNext)===null||oe===void 0||oe.call(e);break;case"Escape":fe();break}}Zt(A,G=>{G?pt("keydown",document,_):st("keydown",document,_)}),Qt(()=>{st("keydown",document,_)});let I=0,Z=0,Y=0,ce=0,B=0,C=0,$=0,V=0,ve=!1;function be(G){const{clientX:he,clientY:oe}=G;Y=he-I,ce=oe-Z,ks(Q)}function ee(G){const{mouseUpClientX:he,mouseUpClientY:oe,mouseDownClientX:Ee,mouseDownClientY:Ne}=G,Xe=Ee-he,Ye=Ne-oe,nt=`vertical${Ye>0?"Top":"Bottom"}`,Qe=`horizontal${Xe>0?"Left":"Right"}`;return{moveVerticalDirection:nt,moveHorizontalDirection:Qe,deltaHorizontal:Xe,deltaVertical:Ye}}function me(G){const{value:he}=f;if(!he)return{offsetX:0,offsetY:0};const oe=he.getBoundingClientRect(),{moveVerticalDirection:Ee,moveHorizontalDirection:Ne,deltaHorizontal:Xe,deltaVertical:Ye}=G||{};let nt=0,Qe=0;return oe.width<=window.innerWidth?nt=0:oe.left>0?nt=(oe.width-window.innerWidth)/2:oe.right<window.innerWidth?nt=-(oe.width-window.innerWidth)/2:Ne==="horizontalRight"?nt=Math.min((oe.width-window.innerWidth)/2,B-(Xe!=null?Xe:0)):nt=Math.max(-((oe.width-window.innerWidth)/2),B-(Xe!=null?Xe:0)),oe.height<=window.innerHeight?Qe=0:oe.top>0?Qe=(oe.height-window.innerHeight)/2:oe.bottom<window.innerHeight?Qe=-(oe.height-window.innerHeight)/2:Ee==="verticalBottom"?Qe=Math.min((oe.height-window.innerHeight)/2,C-(Ye!=null?Ye:0)):Qe=Math.max(-((oe.height-window.innerHeight)/2),C-(Ye!=null?Ye:0)),{offsetX:nt,offsetY:Qe}}function le(G){st("mousemove",document,be),st("mouseup",document,le);const{clientX:he,clientY:oe}=G;ve=!1;const Ee=ee({mouseUpClientX:he,mouseUpClientY:oe,mouseDownClientX:$,mouseDownClientY:V}),Ne=me(Ee);Y=Ne.offsetX,ce=Ne.offsetY,Q()}const de=dn(ua,null);function xe(G){var he,oe;if((oe=(he=de==null?void 0:de.previewedImgPropsRef.value)===null||he===void 0?void 0:he.onMousedown)===null||oe===void 0||oe.call(he,G),G.button!==0)return;const{clientX:Ee,clientY:Ne}=G;ve=!0,I=Ee-Y,Z=Ne-ce,B=Y,C=ce,$=Ee,V=Ne,Q(),pt("mousemove",document,be),pt("mouseup",document,le)}function ye(G){var he,oe;(oe=(he=de==null?void 0:de.previewedImgPropsRef.value)===null||he===void 0?void 0:he.onDblclick)===null||oe===void 0||oe.call(he,G);const Ee=b();Ae=Ae===Ee?1:Ee,Q()}const Pe=1.5;let Be=0,Ae=1,ue=0;function ke(){Ae=1,Be=0}function q(){var G;ke(),ue=0,(G=e.onPrev)===null||G===void 0||G.call(e)}function a(){var G;ke(),ue=0,(G=e.onNext)===null||G===void 0||G.call(e)}function l(){ue-=90,Q()}function n(){ue+=90,Q()}function m(){const{value:G}=f;if(!G)return 1;const{innerWidth:he,innerHeight:oe}=window,Ee=Math.max(1,G.naturalHeight/(oe-Bn)),Ne=Math.max(1,G.naturalWidth/(he-Bn));return Math.max(3,Ee*2,Ne*2)}function b(){const{value:G}=f;if(!G)return 1;const{innerWidth:he,innerHeight:oe}=window,Ee=G.naturalHeight/(oe-Bn),Ne=G.naturalWidth/(he-Bn);return Ee<1&&Ne<1?1:Math.max(Ee,Ne)}function N(){const G=m();Ae<G&&(Be+=1,Ae=Math.min(G,Math.pow(Pe,Be)),Q())}function re(){if(Ae>.5){const G=Ae;Be-=1,Ae=Math.max(.5,Math.pow(Pe,Be));const he=G-Ae;Q(!1);const oe=me();Ae+=he,Q(!1),Ae-=he,Y=oe.offsetX,ce=oe.offsetY,Q()}}function Q(G=!0){var he;const{value:oe}=f;if(!oe)return;const{style:Ee}=oe,Ne=es((he=de==null?void 0:de.previewedImgPropsRef.value)===null||he===void 0?void 0:he.style);let Xe="";if(typeof Ne=="string")Xe=Ne+";";else for(const nt in Ne)Xe+=`${hd(nt)}: ${Ne[nt]};`;const Ye=`transform-origin: center; transform: translateX(${Y}px) translateY(${ce}px) rotate(${ue}deg) scale(${Ae});`;ve?Ee.cssText=Xe+"cursor: grabbing; transition: none;"+Ye:Ee.cssText=Xe+"cursor: grab;"+Ye+(G?"":"transition: none;"),G||oe.offsetHeight}function fe(){A.value=!A.value,T.value=!0}function Re(){Ae=b(),Be=Math.ceil(Math.log(Ae)/Math.log(Pe)),Y=0,ce=0,Q()}const De={setPreviewSrc:G=>{y.value=G},setThumbnailEl:G=>{s=G},toggleShow:fe};function ze(G,he){if(e.showToolbarTooltip){const{value:oe}=i;return J(Fh,{to:!1,theme:oe.peers.Tooltip,themeOverrides:oe.peerOverrides.Tooltip,keepAliveOnHover:!1},{default:()=>M.value[he],trigger:()=>G})}else return G}const at=Ue(()=>{const{common:{cubicBezierEaseInOut:G},self:{toolbarIconColor:he,toolbarBorderRadius:oe,toolbarBoxShadow:Ee,toolbarColor:Ne}}=i.value;return{"--n-bezier":G,"--n-toolbar-icon-color":he,"--n-toolbar-color":Ne,"--n-toolbar-border-radius":oe,"--n-toolbar-box-shadow":Ee}}),{inlineThemeDisabled:tt}=Cn(),He=tt?jr("image-preview",void 0,at,e):void 0;return Object.assign({previewRef:f,previewWrapperRef:d,previewSrc:y,show:A,appear:uo(),displayed:T,previewedImgProps:de==null?void 0:de.previewedImgPropsRef,handleWheel(G){G.preventDefault()},handlePreviewMousedown:xe,handlePreviewDblclick:ye,syncTransformOrigin:R,handleAfterLeave:()=>{ke(),ue=0,T.value=!1},handleDragStart:G=>{var he,oe;(oe=(he=de==null?void 0:de.previewedImgPropsRef.value)===null||he===void 0?void 0:he.onDragstart)===null||oe===void 0||oe.call(he,G),G.preventDefault()},zoomIn:N,zoomOut:re,rotateCounterclockwise:l,rotateClockwise:n,handleSwitchPrev:q,handleSwitchNext:a,withTooltip:ze,resizeToOrignalImageSize:Re,cssVars:tt?void 0:at,themeClass:He==null?void 0:He.themeClass,onRender:He==null?void 0:He.onRender},De)},render(){var e,i;const{clsPrefix:s}=this;return J(Jt,null,(i=(e=this.$slots).default)===null||i===void 0?void 0:i.call(e),J(Ps,{show:this.show},{default:()=>{var f;return this.show||this.displayed?((f=this.onRender)===null||f===void 0||f.call(this),Hn(J("div",{class:[`${s}-image-preview-container`,this.themeClass],style:this.cssVars,onWheel:this.handleWheel},J(ln,{name:"fade-in-transition",appear:this.appear},{default:()=>this.show?J("div",{class:`${s}-image-preview-overlay`,onClick:this.toggleShow}):null}),this.showToolbar?J(ln,{name:"fade-in-transition",appear:this.appear},{default:()=>{if(!this.show)return null;const{withTooltip:d}=this;return J("div",{class:`${s}-image-preview-toolbar`},this.onPrev?J(Jt,null,d(J(Lt,{clsPrefix:s,onClick:this.handleSwitchPrev},{default:()=>Wh}),"tipPrevious"),d(J(Lt,{clsPrefix:s,onClick:this.handleSwitchNext},{default:()=>jh}),"tipNext")):null,d(J(Lt,{clsPrefix:s,onClick:this.rotateCounterclockwise},{default:()=>J(sh,null)}),"tipCounterclockwise"),d(J(Lt,{clsPrefix:s,onClick:this.rotateClockwise},{default:()=>J(ah,null)}),"tipClockwise"),d(J(Lt,{clsPrefix:s,onClick:this.resizeToOrignalImageSize},{default:()=>J(ch,null)}),"tipOriginalSize"),d(J(Lt,{clsPrefix:s,onClick:this.zoomOut},{default:()=>J(uh,null)}),"tipZoomOut"),d(J(Lt,{clsPrefix:s,onClick:this.zoomIn},{default:()=>J(lh,null)}),"tipZoomIn"),d(J(Lt,{clsPrefix:s,onClick:this.toggleShow},{default:()=>Hh}),"tipClose"))}}):null,J(ln,{name:"fade-in-scale-up-transition",onAfterLeave:this.handleAfterLeave,appear:this.appear,onEnter:this.syncTransformOrigin,onBeforeLeave:this.syncTransformOrigin},{default:()=>{const{previewedImgProps:d={}}=this;return Hn(J("div",{class:`${s}-image-preview-wrapper`,ref:"previewWrapperRef"},J("img",Object.assign({},d,{draggable:!1,onMousedown:this.handlePreviewMousedown,onDblclick:this.handlePreviewDblclick,class:[`${s}-image-preview`,d.class],key:this.previewSrc,src:this.previewSrc,ref:"previewRef",onDragstart:this.handleDragStart}))),[[oo,this.show]])}})),[[co,{enabled:this.show}]])):null}}))}}),Uh=ho("n-image-group"),Xh=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},la),Vh=ft({name:"Image",props:Xh,inheritAttrs:!1,setup(e){const i=Me(null),s=Me(!1),f=Me(null),d=dn(Uh,null),{mergedClsPrefixRef:y}=d||Cn(e),A={click:()=>{if(e.previewDisabled||s.value)return;const R=e.previewSrc||e.src;if(d){d.setPreviewSrc(R),d.setThumbnailEl(i.value),d.toggleShow();return}const{value:_}=f;_&&(_.setPreviewSrc(R),_.setThumbnailEl(i.value),_.toggleShow())}},T=Me(!e.lazy);Ft(()=>{var R;(R=i.value)===null||R===void 0||R.setAttribute("data-group-id",(d==null?void 0:d.groupId)||"")}),Ft(()=>{if(e.lazy&&e.intersectionObserverOptions){let R;const _=zt(()=>{R==null||R(),R=void 0,R=_h(i.value,e.intersectionObserverOptions,T)});Qt(()=>{_(),R==null||R()})}}),zt(()=>{var R;e.src,(R=e.imgProps)===null||R===void 0||R.src,s.value=!1});const M=Me(!1);return wn(ua,{previewedImgPropsRef:Xt(e,"previewedImgProps")}),Object.assign({mergedClsPrefix:y,groupId:d==null?void 0:d.groupId,previewInstRef:f,imageRef:i,showError:s,shouldStartLoading:T,loaded:M,mergedOnClick:R=>{var _,I;A.click(),(I=(_=e.imgProps)===null||_===void 0?void 0:_.onClick)===null||I===void 0||I.call(_,R)},mergedOnError:R=>{if(!T.value)return;s.value=!0;const{onError:_,imgProps:{onError:I}={}}=e;_==null||_(R),I==null||I(R)},mergedOnLoad:R=>{const{onLoad:_,imgProps:{onLoad:I}={}}=e;_==null||_(R),I==null||I(R),M.value=!0}},A)},render(){var e,i;const{mergedClsPrefix:s,imgProps:f={},loaded:d,$attrs:y,lazy:A}=this,T=(i=(e=this.$slots).placeholder)===null||i===void 0?void 0:i.call(e),M=this.src||f.src,R=J("img",Object.assign(Object.assign({},f),{ref:"imageRef",width:this.width||f.width,height:this.height||f.height,src:this.showError?this.fallbackSrc:A&&this.intersectionObserverOptions?this.shouldStartLoading?M:void 0:M,alt:this.alt||f.alt,"aria-label":this.alt||f.alt,onClick:this.mergedOnClick,onError:this.mergedOnError,onLoad:this.mergedOnLoad,loading:kh&&A&&!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,`${s}-image`,(this.previewDisabled||this.showError)&&`${s}-image--preview-disabled`]}),this.groupId?R:J(qh,{theme:this.theme,themeOverrides:this.themeOverrides,clsPrefix:s,ref:"previewInstRef",showToolbar:this.showToolbar,showToolbarTooltip:this.showToolbarTooltip},{default:()=>R}),!d&&T)}}),Yh="_container_133yi_1",Gh="_head_133yi_10",Kh="_back_133yi_18",Zh="_tabs_133yi_21",Jh="_downBtn_133yi_37",Qh="_icon_133yi_61",ep="_popover_133yi_66",tp="_content_133yi_85",np="_wrap_133yi_91",rp="_wrapItem_133yi_97",ip="_name_133yi_107",op="_favoriteBtn_133yi_114",ap="_cover_133yi_120",sp="_loaded_133yi_150",lp="_book_133yi_153",up="_bookWrap_133yi_167",cp="_show_133yi_175",ht={container:Yh,head:Gh,back:Kh,tabs:Zh,downBtn:Jh,icon:Qh,popover:ep,content:tp,wrap:np,wrapItem:rp,name:ip,favoriteBtn:op,cover:ap,loaded:sp,book:lp,bookWrap:up,show:cp},ca=""+new URL("icon_back-b80c2fc2.svg",import.meta.url).href,fp=""+new URL("icon_arrow-2c7b8e94.svg",import.meta.url).href,dp=e=>An.post("/edu-app/lessonCourseware/page",{data:e}),hp=e=>An.post("/edu-app/lessonCoursewareFavorite/page",{data:e}),pp=e=>An.post("/edu-app/lessonCoursewareFavorite/save",{data:e}),vp=e=>An.post("/edu-app/lessonCoursewareFavorite/remove",{data:e}),gp=e=>An.get(`/edu-app/lessonCourseware/detail/${e}`);const mp="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",yp="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",wp=ft({name:"the-favorite",props:{isFavorite:{type:Boolean,default:!1}},setup(e){return()=>Ce("div",{class:["favoriteWrap",e.isFavorite?"liked":""]},[Ce("img",{class:"favoritIcon",src:e.isFavorite?yp:mp},null)])}}),bp="_book_1fdnj_1",xp="_back_1fdnj_7",Sp="_bookHide_1fdnj_12",Ap="_wrap_1fdnj_52",Cp="_item_1fdnj_56",Tp="_des_1fdnj_67",Mp="_icon_1fdnj_71",Bt={book:bp,back:xp,bookHide:Sp,wrap:Ap,item:Cp,des:Tp,icon:Mp},Ep=""+new URL("icon_play-8079d539.svg",import.meta.url).href,Op=ft({name:"the-book",props:{bookData:{type:Object,default:()=>({})},show:{type:Boolean,default:!1},rect:{type:Object,default:()=>({})}},emits:["close"],setup(e,{emit:i}){ao();const s=xr({show:!1,width:0,height:0,transform:"",list:[]}),f=async()=>{console.log("初始化完成")};let d=null,y=null;const A=()=>{d=window.$("#flipbook");const I=document.body.clientHeight*.8;s.height=I,s.width=I*(210/297)*2,d.turn({autoCenter:!0,duration:1e3,acceleration:!0,elevation:50,width:s.width,height:s.height,gradients:!0})},T=()=>{const I=document.querySelector(".bookWrap");if(I){const Z=I.getBoundingClientRect(),Y=e.rect.width/(Z.width/2),ce=e.rect.height/Z.height,B=(Z.width/2*(Y-1)/2+e.rect.x-Z.x-Z.width/4)/Y,C=(Z.height*(ce-1)/2+e.rect.y-Z.y)/ce,$=`scale3d(${Y}, ${ce}, 1) translate(${B}px, ${C}px)`;I.style.transform=s.transform=$,I.style.transition="transform 0s",br(()=>{requestAnimationFrame(()=>{requestAnimationFrame(()=>{I.style.transition="transform 1s",I.style.transform="",s.show=!0,y=setTimeout(()=>{d.turn("page",2)},500)})})})}},M=()=>{clearTimeout(y);const I=document.querySelector(".bookWrap");d.turn("page",1),I&&(I.style.transform=s.transform),i("close"),setTimeout(()=>{I.style.transition="",I.style.transform="",s.show=!1,s.list=[]},1e3)};Ft(async()=>{await f()});const R=()=>{var ce;if(!((ce=e.bookData)!=null&&ce.lessonList))return;const I=Math.floor((document.body.clientHeight*.8-40)/50);console.log("🚀 ~ step:",I);const Z=[];let Y=[];for(let B=0;B<e.bookData.lessonList.length;B++){const C=e.bookData.lessonList[B];Y.length<I?Y.push({name:C.name}):Y=[{name:C.name}];for(let $=0;$<C.knowledgeList.length;$++)Y.length<I?Y.push(C.knowledgeList[$]):(Z.push(Y),Y=[C.knowledgeList[$]])}Y.length&&Z.push(Y),s.list=Z};Zt(()=>e.show,()=>{e.show&&(R(),br(()=>{A(),requestAnimationFrame(()=>{T()})}))});const _=I=>{if(!I.containMaterial){ts("暂无资源");return}I.id&&so({api:"openWebView",content:{url:location.origin+location.pathname+"#/courseware-play?id="+I.id+"&name="+I.name,orientation:0,isHideTitle:!1}})};return()=>Ce("div",{class:[Bt.book,s.show?"":Bt.bookHide]},[Ce("div",{class:Bt.back,onClick:M},[Ce("img",{src:ca},null)]),Ce("div",{class:"bookWrap",style:{width:s.width+"px"}},[!!s.list.length&&Ce("div",{id:"flipbook",class:[s.show&&"animated"]},[Ce("div",{class:"page"},[Ce("img",{style:"width: 100%; height: 100%; object-fit: cover;",src:e.bookData.coverImg},null)]),s.list.map(I=>Ce("div",{class:"page"},[Ce("div",{class:"gradient"},null),Ce("div",{class:Bt.wrap},[I.map(Z=>Ce("div",{class:[Bt.item,Z.id&&Bt.des],onTouchstart:Y=>{Y.stopPropagation()},onClick:Y=>{Y.stopPropagation(),_(Z)}},[Ce("div",{class:Bt.name},[Z.name]),Z.id?Ce("img",{class:Bt.icon,src:Ep},null):null]))])])),Ce("div",{class:"page"},[Ce("div",{class:"gradient"},null)])])])])}});/*! jQuery v1.7 jquery.com | jquery.org/license */(function(e,i){function s(t){return n.isWindow(t)?t:t.nodeType===9?t.defaultView||t.parentWindow:!1}function f(t){if(!sr[t]){var r=q.body,o=n("<"+t+">").appendTo(r),u=o.css("display");o.remove(),(u==="none"||u==="")&&(At||(At=q.createElement("iframe"),At.frameBorder=At.width=At.height=0),r.appendChild(At),(!rn||!At.createElement)&&(rn=(At.contentWindow||At.contentDocument).document,rn.write((q.compatMode==="CSS1Compat"?"<!doctype html>":"")+"<html><body>"),rn.close()),o=rn.createElement(t),rn.body.appendChild(o),u=n.css(o,"display"),r.removeChild(At)),sr[t]=u}return sr[t]}function d(t,r){var o={};return n.each(si.concat.apply([],si.slice(0,r)),function(){o[this]=t}),o}function y(){En=i}function A(){return setTimeout(y,0),En=n.now()}function T(){try{return new e.ActiveXObject("Microsoft.XMLHTTP")}catch(t){}}function M(){try{return new e.XMLHttpRequest}catch(t){}}function R(t,r){t.dataFilter&&(r=t.dataFilter(r,t.dataType));var o=t.dataTypes,u={},c,h,v=o.length,g,S=o[0],P,E,O,L,W;for(c=1;c<v;c++){if(c===1)for(h in t.converters)typeof h=="string"&&(u[h.toLowerCase()]=t.converters[h]);if(P=S,S=o[c],S==="*")S=P;else if(P!=="*"&&P!==S){if(E=P+" "+S,O=u[E]||u["* "+S],!O){W=i;for(L in u)if(g=L.split(" "),(g[0]===P||g[0]==="*")&&(W=u[g[1]+" "+S],W)){L=u[L],L===!0?O=W:W===!0&&(O=L);break}}!O&&!W&&n.error("No conversion from "+E.replace(" "," to ")),O!==!0&&(r=O?O(r):W(L(r)))}}return r}function _(t,r,o){var u=t.contents,c=t.dataTypes,h=t.responseFields,v,g,S,P;for(g in h)g in o&&(r[h[g]]=o[g]);for(;c[0]==="*";)c.shift(),v===i&&(v=t.mimeType||r.getResponseHeader("content-type"));if(v){for(g in u)if(u[g]&&u[g].test(v)){c.unshift(g);break}}if(c[0]in o)S=c[0];else{for(g in o){if(!c[0]||t.converters[g+" "+c[0]]){S=g;break}P||(P=g)}S=S||P}if(S)return S!==c[0]&&c.unshift(S),o[S]}function I(t,r,o,u){if(n.isArray(r))n.each(r,function(h,v){o||wa.test(t)?u(t,v):I(t+"["+(typeof v=="object"||n.isArray(v)?h:"")+"]",v,o,u)});else if(!o&&r!=null&&typeof r=="object")for(var c in r)I(t+"["+c+"]",r[c],o,u);else u(t,r)}function Z(t,r){var o,u,c=n.ajaxSettings.flatOptions||{};for(o in r)r[o]!==i&&((c[o]?t:u||(u={}))[o]=r[o]);u&&n.extend(!0,t,u)}function Y(t,r,o,u,c,h){c=c||r.dataTypes[0],h=h||{},h[c]=!0;for(var v=t[c],g=0,S=v?v.length:0,P=t===or,E;g<S&&(P||!E);g++)E=v[g](r,o,u),typeof E=="string"&&(!P||h[E]?E=i:(r.dataTypes.unshift(E),E=Y(t,r,o,u,E,h)));return(P||!E)&&!h["*"]&&(E=Y(t,r,o,u,"*",h)),E}function ce(t){return function(r,o){if(typeof r!="string"&&(o=r,r="*"),n.isFunction(o))for(var u=r.toLowerCase().split(ni),c=0,h=u.length,v,g,S;c<h;c++)v=u[c],S=/^\+/.test(v),S&&(v=v.substr(1)||"*"),g=t[v]=t[v]||[],g[S?"unshift":"push"](o)}}function B(t,r,o){var u=r==="width"?t.offsetWidth:t.offsetHeight,c=r==="width"?ga:ma;return u>0?(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=tn(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 C(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 $(t){var r=(t.nodeName||"").toLowerCase();r==="input"?V(t):r!=="script"&&typeof t.getElementsByTagName<"u"&&n.grep(t.getElementsByTagName("input"),V)}function V(t){(t.type==="checkbox"||t.type==="radio")&&(t.defaultChecked=t.checked)}function ve(t){return typeof t.getElementsByTagName<"u"?t.getElementsByTagName("*"):typeof t.querySelectorAll<"u"?t.querySelectorAll("*"):[]}function be(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 ee(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<c;u++)n.event.add(r,o+(g[o][u].namespace?".":"")+g[o][u].namespace,g[o][u],g[o][u].data)}v.data&&(v.data=n.extend({},v.data))}}function me(t,r){return n.nodeName(t,"table")?t.getElementsByTagName("tbody")[0]||t.appendChild(t.ownerDocument.createElement("tbody")):t}function le(t){var r=mt.split(" "),o=t.createDocumentFragment();if(o.createElement)for(;r.length;)o.createElement(r.pop());return o}function de(t,r,o){if(r=r||0,n.isFunction(r))return n.grep(t,function(c,h){var v=!!r.call(c,h,c);return v===o});if(r.nodeType)return n.grep(t,function(c,h){return c===r===o});if(typeof r=="string"){var u=n.grep(t,function(c){return c.nodeType===1});if(Mt.test(r))return n.filter(r,u,!o);r=n.filter(r,u)}return n.grep(t,function(c,h){return n.inArray(c,r)>=0===o})}function xe(t){return!t||!t.parentNode||t.parentNode.nodeType===11}function ye(){return!0}function Pe(){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 Ae(t){for(var r in t)if(!(r==="data"&&n.isEmptyObject(t[r]))&&r!=="toJSON")return!1;return!0}function ue(t,r,o){if(o===i&&t.nodeType===1){var u="data-"+r.replace(re,"-$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):N.test(o)?n.parseJSON(o):o}catch(c){}n.data(t,r,o)}else o=i}return o}function ke(t){var r=m[t]={},o,u;for(t=t.split(/\s+/),o=0,u=t.length;o<u;o++)r[t[o]]=!0;return r}var q=e.document,a=e.navigator,l=e.location,n=function(){function t(){if(!r.isReady){try{q.documentElement.doScroll("left")}catch(w){setTimeout(t,1);return}r.ready()}}var r=function(w,H){return new r.fn.init(w,H,c)},o=e.jQuery,u=e.$,c,h=/^(?:[^#<]*(<[\w\W]+>)[^>]*$|#([\w\-]*)$)/,v=/\S/,g=/^\s+/,S=/\s+$/,P=/\d/,E=/^<(\w+)\s*\/?>(?:<\/\1>)?$/,O=/^[\],:{}\s]*$/,L=/\\(?:["\\\/bfnrt]|u[0-9a-fA-F]{4})/g,W=/"[^"\\\n\r]*"|true|false|null|-?\d+(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,K=/(?:^|:|,)(?:\s*\[)+/g,pe=/(webkit)[ \/]([\w.]+)/,Te=/(opera)(?:.*version)?[ \/]([\w.]+)/,Se=/(msie) ([\w.]+)/,rt=/(mozilla)(?:.*? rv:([\w.]+))?/,it=/-([a-z]|[0-9])/ig,we=/^-ms-/,p=function(w,H){return(H+"").toUpperCase()},x=a.userAgent,k,D,F,z=Object.prototype.toString,U=Object.prototype.hasOwnProperty,ie=Array.prototype.push,te=Array.prototype.slice,se=String.prototype.trim,ut=Array.prototype.indexOf,et={};return r.fn=r.prototype={constructor:r,init:function(w,H,ne){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=E.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 ne.find(w);this.length=1,this[0]=Oe}return this.context=q,this.selector=w,this}return!H||H.jquery?(H||ne).find(w):this.constructor(H).find(w)}return r.isFunction(w)?ne.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 te.call(this,0)},get:function(w){return w==null?this.toArray():w<0?this[this.length+w]:this[w]},pushStack:function(w,H,ne){var j=this.constructor();return r.isArray(w)?ie.apply(j,w):r.merge(j,w),j.prevObject=this,j.context=this.context,H==="find"?j.selector=this.selector+(this.selector?" ":"")+ne:H&&(j.selector=this.selector+"."+H+"("+ne+")"),j},each:function(w,H){return r.each(this,w,H)},ready:function(w){return r.bindReady(),D.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(te.apply(this,arguments),"slice",te.call(arguments).join(","))},map:function(w){return this.pushStack(r.map(this,function(H,ne){return w.call(H,ne,H)}))},end:function(){return this.prevObject||this.constructor(null)},push:ie,sort:[].sort,splice:[].splice},r.fn.init.prototype=r.fn,r.extend=r.fn.extend=function(){var w,H,ne,j,Oe,Le,je=arguments[0]||{},ct=1,bt=arguments.length,lr=!1;for(typeof je=="boolean"&&(lr=je,je=arguments[1]||{},ct=2),typeof je!="object"&&!r.isFunction(je)&&(je={}),bt===ct&&(je=this,--ct);ct<bt;ct++)if((w=arguments[ct])!=null)for(H in w)ne=je[H],j=w[H],je!==j&&(lr&&j&&(r.isPlainObject(j)||(Oe=r.isArray(j)))?(Oe?(Oe=!1,Le=ne&&r.isArray(ne)?ne:[]):Le=ne&&r.isPlainObject(ne)?ne:{},je[H]=r.extend(lr,Le,j)):j!==i&&(je[H]=j));return je},r.extend({noConflict:function(w){return e.$===r&&(e.$=u),w&&e.jQuery===r&&(e.jQuery=o),r},isReady:!1,readyWait:1,holdReady:function(w){w?r.readyWait++:r.ready(!0)},ready:function(w){if(w===!0&&!--r.readyWait||w!==!0&&!r.isReady){if(!q.body)return setTimeout(r.ready,1);if(r.isReady=!0,w!==!0&&--r.readyWait>0)return;D.fireWith(q,[r]),r.fn.trigger&&r(q).trigger("ready").unbind("ready")}},bindReady:function(){if(!D){if(D=r.Callbacks("once memory"),q.readyState==="complete")return setTimeout(r.ready,1);if(q.addEventListener)q.addEventListener("DOMContentLoaded",F,!1),e.addEventListener("load",r.ready,!1);else if(q.attachEvent){q.attachEvent("onreadystatechange",F),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&&P.test(w)&&!isNaN(w)},type:function(w){return w==null?String(w):et[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(ne){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(L,"@").replace(W,"]").replace(K,"")))return new Function("return "+w)();r.error("Invalid JSON: "+w)},parseXML:function(w){var H,ne;try{e.DOMParser?(ne=new DOMParser,H=ne.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(we,"ms-").replace(it,p)},nodeName:function(w,H){return w.nodeName&&w.nodeName.toUpperCase()===H.toUpperCase()},each:function(w,H,ne){var j,Oe=0,Le=w.length,je=Le===i||r.isFunction(w);if(ne)if(je){for(j in w)if(H.apply(w[j],ne)===!1)break}else for(;Oe<Le&&H.apply(w[Oe++],ne)!==!1;);else if(je){for(j in w)if(H.call(w[j],j,w[j])===!1)break}else for(;Oe<Le&&H.call(w[Oe],Oe,w[Oe++])!==!1;);return w},trim:se?function(w){return w==null?"":se.call(w)}:function(w){return w==null?"":(w+"").replace(g,"").replace(S,"")},makeArray:function(w,H){var ne=H||[];if(w!=null){var j=r.type(w);w.length==null||j==="string"||j==="function"||j==="regexp"||r.isWindow(w)?ie.call(ne,w):r.merge(ne,w)}return ne},inArray:function(w,H,ne){var j;if(H){if(ut)return ut.call(H,w,ne);for(j=H.length,ne=ne?ne<0?Math.max(0,j+ne):ne:0;ne<j;ne++)if(ne in H&&H[ne]===w)return ne}return-1},merge:function(w,H){var ne=w.length,j=0;if(typeof H.length=="number")for(var Oe=H.length;j<Oe;j++)w[ne++]=H[j];else for(;H[j]!==i;)w[ne++]=H[j++];return w.length=ne,w},grep:function(w,H,ne){var j=[],Oe;ne=!!ne;for(var Le=0,je=w.length;Le<je;Le++)Oe=!!H(w[Le],Le),ne!==Oe&&j.push(w[Le]);return j},map:function(w,H,ne){var j,Oe,Le=[],je=0,ct=w.length,bt=w instanceof r||ct!==i&&typeof ct=="number"&&(ct>0&&w[0]&&w[ct-1]||ct===0||r.isArray(w));if(bt)for(;je<ct;je++)j=H(w[je],je,ne),j!=null&&(Le[Le.length]=j);else for(Oe in w)j=H(w[Oe],Oe,ne),j!=null&&(Le[Le.length]=j);return Le.concat.apply([],Le)},guid:1,proxy:function(w,H){if(typeof H=="string"){var ne=w[H];H=w,w=ne}if(!r.isFunction(w))return i;var j=te.call(arguments,2),Oe=function(){return w.apply(H,j.concat(te.call(arguments)))};return Oe.guid=w.guid=w.guid||Oe.guid||r.guid++,Oe},access:function(w,H,ne,j,Oe,Le){var je=w.length;if(typeof H=="object"){for(var ct in H)r.access(w,ct,H[ct],j,Oe,ne);return w}if(ne!==i){j=!Le&&j&&r.isFunction(ne);for(var bt=0;bt<je;bt++)Oe(w[bt],H,j?ne.call(w[bt],bt,Oe(w[bt],H)):ne,Le);return w}return je?Oe(w[0],H):i},now:function(){return new Date().getTime()},uaMatch:function(w){w=w.toLowerCase();var H=pe.exec(w)||Te.exec(w)||Se.exec(w)||w.indexOf("compatible")<0&&rt.exec(w)||[];return{browser:H[1]||"",version:H[2]||"0"}},sub:function(){function w(ne,j){return new w.fn.init(ne,j)}r.extend(!0,w,this),w.superclass=this,w.fn=w.prototype=this(),w.fn.constructor=w,w.sub=this.sub,w.fn.init=function(ne,j){return j&&j instanceof r&&!(j instanceof w)&&(j=w(j)),r.fn.init.call(this,ne,j,H)},w.fn.init.prototype=w.fn;var H=w(q);return w},browser:{}}),r.each("Boolean Number String Function Array Date RegExp Object".split(" "),function(w,H){et["[object "+H+"]"]=H.toLowerCase()}),k=r.uaMatch(x),k.browser&&(r.browser[k.browser]=!0,r.browser.version=k.version),r.browser.webkit&&(r.browser.safari=!0),v.test(" ")&&(g=/^[\s\xA0]+/,S=/[\s\xA0]+$/),c=r(q),q.addEventListener?F=function(){q.removeEventListener("DOMContentLoaded",F,!1),r.ready()}:q.attachEvent&&(F=function(){q.readyState==="complete"&&(q.detachEvent("onreadystatechange",F),r.ready())}),typeof define=="function"&&define.amd&&define.amd.jQuery&&define("jquery",[],function(){return r}),r}(),m={};n.Callbacks=function(t){t=t?m[t]||ke(t):{};var r=[],o=[],u,c,h,v,g,S=function(O){var L,W,K,pe;for(L=0,W=O.length;L<W;L++)K=O[L],pe=n.type(K),pe==="array"?S(K):pe==="function"&&(!t.unique||!E.has(K))&&r.push(K)},P=function(O,L){for(L=L||[],u=!t.memory||[O,L],c=!0,g=h||0,h=0,v=r.length;r&&g<v;g++)if(r[g].apply(O,L)===!1&&t.stopOnFalse){u=!0;break}c=!1,r&&(t.once?u===!0?E.disable():r=[]:o&&o.length&&(u=o.shift(),E.fireWith(u[0],u[1])))},E={add:function(){if(r){var O=r.length;S(arguments),c?v=r.length:u&&u!==!0&&(h=O,P(u[0],u[1]))}return this},remove:function(){if(r)for(var O=arguments,L=0,W=O.length;L<W;L++)for(var K=0;K<r.length&&!(O[L]===r[K]&&(c&&K<=v&&(v--,K<=g&&g--),r.splice(K--,1),t.unique));K++);return this},has:function(O){if(r){for(var L=0,W=r.length;L<W;L++)if(O===r[L])return!0}return!1},empty:function(){return r=[],this},disable:function(){return r=o=u=i,this},disabled:function(){return!r},lock:function(){return o=i,(!u||u===!0)&&E.disable(),this},locked:function(){return!o},fireWith:function(O,L){return o&&(c?t.once||o.push([O,L]):(!t.once||!u)&&P(O,L)),this},fire:function(){return E.fireWith(this,arguments),this},fired:function(){return!!u}};return E};var b=[].slice;n.extend({Deferred:function(t){var r=n.Callbacks("once memory"),o=n.Callbacks("once memory"),u=n.Callbacks("memory"),c="pending",h={resolve:r,reject:o,notify:u},v={done:r.add,fail:o.add,progress:u.add,state:function(){return c},isResolved:r.fired,isRejected:o.fired,then:function(P,E,O){return g.done(P).fail(E).progress(O),this},always:function(){return g.done.apply(g,arguments).fail.apply(g,arguments)},pipe:function(P,E,O){return n.Deferred(function(L){n.each({done:[P,"resolve"],fail:[E,"reject"],progress:[O,"notify"]},function(W,K){var pe=K[0],Te=K[1],Se;n.isFunction(pe)?g[W](function(){Se=pe.apply(this,arguments),Se&&n.isFunction(Se.promise)?Se.promise().then(L.resolve,L.reject,L.notify):L[Te+"With"](this===g?L:this,[Se])}):g[W](L[Te])})}).promise()},promise:function(P){if(P==null)P=v;else for(var E in v)P[E]=v[E];return P}},g=v.promise({}),S;for(S in h)g[S]=h[S].fire,g[S+"With"]=h[S].fireWith;return g.done(function(){c="resolved"},o.disable,u.lock).fail(function(){c="rejected"},r.disable,u.lock),t&&t.call(g,g),g},when:function(t){function r(E){return function(O){v[E]=arguments.length>1?b.call(arguments,0):O,S.notifyWith(P,v)}}function o(E){return function(O){u[E]=arguments.length>1?b.call(arguments,0):O,--g||S.resolveWith(S,u)}}var u=b.call(arguments,0),c=0,h=u.length,v=Array(h),g=h,S=h<=1&&t&&n.isFunction(t.promise)?t:n.Deferred(),P=S.promise();if(h>1){for(;c<h;c++)u[c]&&u[c].promise&&n.isFunction(u[c].promise)?u[c].promise().then(o(c),S.reject,r(c)):--g;g||S.resolveWith(S,u)}else S!==t&&S.resolveWith(S,h?[t]:[]);return P}}),n.support=function(){var t=q.createElement("div"),r=q.documentElement,o,u,c,h,v,g,S,P,E,O,L,W,K,pe,Te,Se;if(t.setAttribute("className","t"),t.innerHTML=" <link/><table></table><a href='/a' style='top:1px;float:left;opacity:.55;'>a</a><input type='checkbox'/><nav></nav>",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],S={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,S.noCloneChecked=v.cloneNode(!0).checked,c.disabled=!0,S.optDisabled=!h.disabled;try{delete t.test}catch(rt){S.deleteExpando=!1}!t.addEventListener&&t.attachEvent&&t.fireEvent&&(t.attachEvent("onclick",function(){S.noCloneEvent=!1}),t.cloneNode(!0).fireEvent("onclick")),v=q.createElement("input"),v.value="t",v.setAttribute("type","radio"),S.radioValue=v.value==="t",v.setAttribute("checked","checked"),t.appendChild(v),P=q.createDocumentFragment(),P.appendChild(t.lastChild),S.checkClone=P.cloneNode(!0).cloneNode(!0).lastChild.checked,t.innerHTML="",t.style.width=t.style.paddingLeft="1px",E=q.getElementsByTagName("body")[0],L=q.createElement(E?"div":"body"),W={visibility:"hidden",width:0,height:0,border:0,margin:0,background:"none"},E&&n.extend(W,{position:"absolute",left:"-999px",top:"-999px"});for(Te in W)L.style[Te]=W[Te];if(L.appendChild(t),O=E||r,O.insertBefore(L,O.firstChild),S.appendChecked=v.checked,S.boxModel=t.offsetWidth===2,"zoom"in t.style&&(t.style.display="inline",t.style.zoom=1,S.inlineBlockNeedsLayout=t.offsetWidth===2,t.style.display="",t.innerHTML="<div style='width:4px;'></div>",S.shrinkWrapBlocks=t.offsetWidth!==2),t.innerHTML="<table><tr><td style='padding:0;border:0;display:none'></td><td>t</td></tr></table>",K=t.getElementsByTagName("td"),Se=K[0].offsetHeight===0,K[0].style.display="",K[1].style.display="none",S.reliableHiddenOffsets=Se&&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),S.reliableMarginRight=(parseInt((q.defaultView.getComputedStyle(g,null)||{marginRight:0}).marginRight,10)||0)===0),t.attachEvent)for(Te in{submit:1,change:1,focusin:1})pe="on"+Te,Se=pe in t,Se||(t.setAttribute(pe,"return;"),Se=typeof t[pe]=="function"),S[Te+"Bubbles"]=Se;return n(function(){var rt,it,we,p,x,k=1,D="position:absolute;top:0;left:0;width:1px;height:1px;margin:0;",F="visibility:hidden;border:0;",z="style='"+D+"border:5px solid #000;padding:0;'",U="<div "+z+"><div></div></div><table "+z+" cellpadding='0' cellspacing='0'><tr><td></td></tr></table>";E=q.getElementsByTagName("body")[0],!E||(rt=q.createElement("div"),rt.style.cssText=F+"width:0;height:0;position:static;top:0;margin-top:"+k+"px",E.insertBefore(rt,E.firstChild),L=q.createElement("div"),L.style.cssText=D+F,L.innerHTML=U,rt.appendChild(L),it=L.firstChild,we=it.firstChild,p=it.nextSibling.firstChild.firstChild,x={doesNotAddBorder:we.offsetTop!==5,doesAddBorderForTableAndCells:p.offsetTop===5},we.style.position="fixed",we.style.top="20px",x.fixedPosition=we.offsetTop===20||we.offsetTop===15,we.style.position=we.style.top="",it.style.overflow="hidden",it.style.position="relative",x.subtractsBorderForOverflowNotVisible=we.offsetTop===-5,x.doesNotIncludeMarginInBodyOffset=E.offsetTop!==k,E.removeChild(rt),L=rt=null,n.extend(S,x))}),L.innerHTML="",O.removeChild(L),L=P=c=h=E=g=t=v=null,S}(),n.boxModel=n.support.boxModel;var N=/^(?:\{.*\}|\[.*\])$/,re=/([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&&!Ae(t)},data:function(t,r,o,u){if(n.acceptData(t)){var c,h,v;n.expando;var g=typeof r=="string",S=t.nodeType,P=S?n.cache:t,E=S?t[n.expando]:t[n.expando]&&n.expando,O=r==="events";return(!E||!P[E]||!O&&!u&&!P[E].data)&&g&&o===i?void 0:(E||(S?t[n.expando]=E=++n.uuid:E=n.expando),P[E]||(P[E]={},S||(P[E].toJSON=n.noop)),(typeof r=="object"||typeof r=="function")&&(u?P[E]=n.extend(P[E],r):P[E].data=n.extend(P[E].data,r)),c=h=P[E],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,S=v?t[n.expando]:n.expando;if(!g[S])return;if(r&&(u=o?g[S]:g[S].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<h;c++)delete u[r[c]];if(!(o?Ae:n.isEmptyObject)(u))return}if(!o&&(delete g[S].data,!Ae(g[S])))return;n.support.deleteExpando||!g.setInterval?delete g[S]:g[S]=null,v&&(n.support.deleteExpando?delete t[n.expando]:t.removeAttribute?t.removeAttribute(n.expando):t[n.expando]=null)}},_data:function(t,r,o){return n.data(t,r,o,!0)},acceptData:function(t){if(t.nodeName){var r=n.noData[t.nodeName.toLowerCase()];if(r)return r!==!0&&t.getAttribute("classid")===r}return!0}}),n.fn.extend({data:function(t,r){var o,u,c,h=null;if(typeof t>"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<g;v++)c=u[v].name,c.indexOf("data-")===0&&(c=n.camelCase(c.substring(5)),ue(this[0],c,h[c]));n._data(this[0],"parsedAttrs",!0)}return h}return typeof t=="object"?this.each(function(){n.data(this,t)}):(o=t.split("."),o[1]=o[1]?"."+o[1]:"",r===i?(h=this.triggerHandler("getData"+o[1]+"!",[o[0]]),h===i&&this.length&&(h=n.data(this[0],t),h=ue(this[0],t,h)),h===i&&o[1]?this.data(o[0]):h):this.each(function(){var S=n(this),P=[o[0],r];S.triggerHandler("setData"+o[1]+"!",P),n.data(this,t,r),S.triggerHandler("changeData"+o[1]+"!",P)}))},removeData:function(t){return this.each(function(){n.removeData(this,t)})}}),n.extend({_mark:function(t,r){t&&(r=(r||"fx")+"mark",n._data(t,r,(n._data(t,r)||0)+1))},_unmark:function(t,r,o){if(t!==!0&&(o=r,r=t,t=!1),r){o=o||"fx";var u=o+"mark",c=t?0:(n._data(r,u)||1)-1;c?n._data(r,u,c):(n.removeData(r,u,!0),Be(r,o,"mark"))}},queue:function(t,r,o){var u;if(t)return r=(r||"fx")+"queue",u=n._data(t,r),o&&(!u||n.isArray(o)?u=n._data(t,r,n.makeArray(o)):u.push(o)),u||[]},dequeue:function(t,r){r=r||"fx";var o=n.queue(t,r),u=o.shift(),c={};u==="inprogress"&&(u=o.shift()),u&&(r==="fx"&&o.unshift("inprogress"),n._data(t,r+".run",c),u.call(t,function(){n.dequeue(t,r)},c)),o.length||(n.removeData(t,r+"queue "+r+".run",!0),Be(t,r,"queue"))}}),n.fn.extend({queue:function(t,r){return typeof t!="string"&&(r=t,t="fx"),r===i?n.queue(this[0],t):this.each(function(){var o=n.queue(this,t,r);t==="fx"&&o[0]!=="inprogress"&&n.dequeue(this,t)})},dequeue:function(t){return this.each(function(){n.dequeue(this,t)})},delay:function(t,r){return t=n.fx&&n.fx.speeds[t]||t,r=r||"fx",this.queue(r,function(o,u){var c=setTimeout(o,t);u.stop=function(){clearTimeout(c)}})},clearQueue:function(t){return this.queue(t||"fx",[])},promise:function(t,r){function o(){--v||u.resolveWith(c,[c])}typeof t!="string"&&(t=i),t=t||"fx";for(var u=n.Deferred(),c=this,h=c.length,v=1,g=t+"defer",S=t+"queue",P=t+"mark",E;h--;)(E=n.data(c[h],g,i,!0)||(n.data(c[h],S,i,!0)||n.data(c[h],P,i,!0))&&n.data(c[h],g,n.Callbacks("once memory"),!0))&&(v++,E.add(o));return o(),u.promise()}});var Q=/[\n\t\r]/g,fe=/\s+/,Re=/\r/g,De=/^(?:button|input)$/i,ze=/^(?:button|input|object|select|textarea)$/i,at=/^a(?:rea)?$/i,tt=/^(?:autofocus|autoplay|async|checked|controls|defer|disabled|hidden|loop|multiple|open|readonly|required|scoped|selected)$/i,He=n.support.getSetAttribute,G,he,oe;n.fn.extend({attr:function(t,r){return n.access(this,t,r,!0,n.attr)},removeAttr:function(t){return this.each(function(){n.removeAttr(this,t)})},prop:function(t,r){return n.access(this,t,r,!0,n.prop)},removeProp:function(t){return t=n.propFix[t]||t,this.each(function(){try{this[t]=i,delete this[t]}catch(r){}})},addClass:function(t){var r,o,u,c,h,v,g;if(n.isFunction(t))return this.each(function(S){n(this).addClass(t.call(this,S,this.className))});if(t&&typeof t=="string"){for(r=t.split(fe),o=0,u=this.length;o<u;o++)if(c=this[o],c.nodeType===1)if(!c.className&&r.length===1)c.className=t;else{for(h=" "+c.className+" ",v=0,g=r.length;v<g;v++)~h.indexOf(" "+r[v]+" ")||(h+=r[v]+" ");c.className=n.trim(h)}}return this},removeClass:function(t){var r,o,u,c,h,v,g;if(n.isFunction(t))return this.each(function(S){n(this).removeClass(t.call(this,S,this.className))});if(t&&typeof t=="string"||t===i){for(r=(t||"").split(fe),o=0,u=this.length;o<u;o++)if(c=this[o],c.nodeType===1&&c.className)if(t){for(h=(" "+c.className+" ").replace(Q," "),v=0,g=r.length;v<g;v++)h=h.replace(" "+r[v]+" "," ");c.className=n.trim(h)}else c.className=""}return this},toggleClass:function(t,r){var o=typeof t,u=typeof r=="boolean";return n.isFunction(t)?this.each(function(c){n(this).toggleClass(t.call(this,c,this.className,r),r)}):this.each(function(){if(o==="string")for(var c,h=0,v=n(this),g=r,S=t.split(fe);c=S[h++];)g=u?g:!v.hasClass(c),v[g?"addClass":"removeClass"](c);else(o==="undefined"||o==="boolean")&&(this.className&&n._data(this,"__className__",this.className),this.className=this.className||t===!1?"":n._data(this,"__className__")||"")})},hasClass:function(t){for(var r=" "+t+" ",o=0,u=this.length;o<u;o++)if(this[o].nodeType===1&&(" "+this[o].className+" ").replace(Q," ").indexOf(r)>-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(S){return S==null?"":S+""})),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,S=t.type==="select-one";if(h<0)return null;for(o=S?h:0,u=S?h+1:g.length;o<u;o++)if(c=g[o],c.selected&&(n.support.optDisabled?!c.disabled:c.getAttribute("disabled")===null)&&(!c.parentNode.disabled||!n.nodeName(c.parentNode,"optgroup"))){if(r=n(c).val(),S)return r;v.push(r)}return S&&!v.length&&g.length?n(g[h]).val():v},set:function(t,r){var o=n.makeArray(r);return n(t).find("option").each(function(){this.selected=n.inArray(n(this).val(),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]||(tt.test(r)?he: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(fe),h=u.length;v<h;v++)c=u[v].toLowerCase(),o=n.propFix[c]||c,n.attr(t,c,""),t.removeAttribute(He?c:o),tt.test(c)&&o in t&&(t[o]=!1)},attrHooks:{type:{set:function(t,r){if(De.test(t.nodeName)&&t.parentNode)n.error("type property can't be changed");else if(!n.support.radioValue&&r==="radio"&&n.nodeName(t,"input")){var o=t.value;return t.setAttribute("type",r),o&&(t.value=o),r}}},value:{get:function(t,r){return G&&n.nodeName(t,"button")?G.get(t,r):r in t?t.value:null},set:function(t,r,o){if(G&&n.nodeName(t,"button"))return G.set(t,r,o);t.value=r}}},propFix:{tabindex:"tabIndex",readonly:"readOnly",for:"htmlFor",class:"className",maxlength:"maxLength",cellspacing:"cellSpacing",cellpadding:"cellPadding",rowspan:"rowSpan",colspan:"colSpan",usemap:"useMap",frameborder:"frameBorder",contenteditable:"contentEditable"},prop:function(t,r,o){var u,c,h,v=t.nodeType;return!t||v===3||v===8||v===2?i:(h=v!==1||!n.isXMLDoc(t),h&&(r=n.propFix[r]||r,c=n.propHooks[r]),o!==i?c&&"set"in c&&(u=c.set(t,o,r))!==i?u:t[r]=o:c&&"get"in c&&(u=c.get(t,r))!==null?u:t[r])},propHooks:{tabIndex:{get:function(t){var r=t.getAttributeNode("tabindex");return r&&r.specified?parseInt(r.value,10):ze.test(t.nodeName)||at.test(t.nodeName)&&t.href?0:i}}}}),n.attrHooks.tabindex=n.propHooks.tabIndex,he={get:function(t,r){var o,u=n.prop(t,r);return u===!0||typeof u!="boolean"&&(o=t.getAttributeNode(r))&&o.nodeValue!==!1?r.toLowerCase():i},set:function(t,r,o){var u;return r===!1?n.removeAttr(t,o):(u=n.propFix[o]||o,u in t&&(t[u]=!0),t.setAttribute(o,o.toLowerCase())),o}},He||(oe={name:!0,id:!0},G=n.valHooks.button={get:function(t,r){var o;return o=t.getAttributeNode(r),o&&(oe[r]?o.nodeValue!=="":o.specified)?o.nodeValue:i},set:function(t,r,o){var u=t.getAttributeNode(o);return u||(u=q.createAttribute(o),t.setAttributeNode(u)),u.nodeValue=r+""}},n.attrHooks.tabindex.set=G.set,n.each(["width","height"],function(t,r){n.attrHooks[r]=n.extend(n.attrHooks[r],{set:function(o,u){if(u==="")return o.setAttribute(r,"auto"),u}})}),n.attrHooks.contenteditable={get:G.get,set:function(t,r,o){r===""&&(r="false"),G.set(t,r,o)}}),n.support.hrefNormalized||n.each(["href","src","width","height"],function(t,r){n.attrHooks[r]=n.extend(n.attrHooks[r],{get:function(o){var u=o.getAttribute(r,2);return u===null?i:u}})}),n.support.style||(n.attrHooks.style={get:function(t){return t.style.cssText.toLowerCase()||i},set:function(t,r){return t.style.cssText=""+r}}),n.support.optSelected||(n.propHooks.selected=n.extend(n.propHooks.selected,{get:function(t){var r=t.parentNode;return r&&(r.selectedIndex,r.parentNode&&r.parentNode.selectedIndex),null}})),n.support.enctype||(n.propFix.enctype="encoding"),n.support.checkOn||n.each(["radio","checkbox"],function(){n.valHooks[this]={get:function(t){return t.getAttribute("value")===null?"on":t.value}}}),n.each(["radio","checkbox"],function(){n.valHooks[this]=n.extend(n.valHooks[this],{set:function(t,r){if(n.isArray(r))return t.checked=n.inArray(n(t).val(),r)>=0}})});var Ee=/^(?:textarea|input|select)$/i,Ne=/^([^\.]*)?(?:\.(.+))?$/,Xe=/\bhover(\.\S+)?/,Ye=/^key/,nt=/^(?:mouse|contextmenu)|click/,Qe=/^(\w*)(?:#([\w\-]+))?(?:\.([\w\-]+))?$/,Tt=function(t){var r=Qe.exec(t);return r&&(r[1]=(r[1]||"").toLowerCase(),r[3]=r[3]&&new RegExp("(?:^|\\s)"+r[3]+"(?:\\s|$)")),r},en=function(t,r){return(!r[1]||t.nodeName.toLowerCase()===r[1])&&(!r[2]||t.id===r[2])&&(!r[3]||r[3].test(t.className))},dt=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,S,P,E,O,L,W,K,pe;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(Te){return typeof n<"u"&&(!Te||n.event.triggered!==Te.type)?n.event.dispatch.apply(v.elem,arguments):i},v.elem=t),r=dt(r).split(" "),S=0;S<r.length;S++)P=Ne.exec(r[S])||[],E=P[1],O=(P[2]||"").split(".").sort(),pe=n.event.special[E]||{},E=(c?pe.delegateType:pe.bindType)||E,pe=n.event.special[E]||{},L=n.extend({type:E,origType:P[1],data:u,handler:o,guid:o.guid,selector:c,namespace:O.join(".")},W),c&&(L.quick=Tt(c),!L.quick&&n.expr.match.POS.test(c)&&(L.isPositional=!0)),K=g[E],K||(K=g[E]=[],K.delegateCount=0,(!pe.setup||pe.setup.call(t,u,O,v)===!1)&&(t.addEventListener?t.addEventListener(E,v,!1):t.attachEvent&&t.attachEvent("on"+E,v))),pe.add&&(pe.add.call(t,L),L.handler.guid||(L.handler.guid=o.guid)),c?K.splice(K.delegateCount++,0,L):K.push(L),n.event.global[E]=!0;t=null}},global:{},remove:function(t,r,o,u){var c=n.hasData(t)&&n._data(t),h,v,g,S,P,E,O,L,W,K,pe;if(c&&(O=c.events)){for(r=dt(r||"").split(" "),h=0;h<r.length;h++){if(v=Ne.exec(r[h])||[],g=v[1],S=v[2],!g){S=S?"."+S:"";for(E in O)n.event.remove(t,E+S,o,u);return}if(L=n.event.special[g]||{},g=(u?L.delegateType:L.bindType)||g,K=O[g]||[],P=K.length,S=S?new RegExp("(^|\\.)"+S.split(".").sort().join("\\.(?:.*\\.)?")+"(\\.|$)"):null,o||S||u||L.remove)for(E=0;E<K.length;E++)pe=K[E],(!o||o.guid===pe.guid)&&(!S||S.test(pe.namespace))&&(!u||u===pe.selector||u==="**"&&pe.selector)&&(K.splice(E--,1),pe.selector&&K.delegateCount--,L.remove&&L.remove.call(t,pe));else K.length=0;K.length===0&&P!==K.length&&((!L.teardown||L.teardown.call(t,S)===!1)&&n.removeEvent(t,g,c.handle),delete O[g])}n.isEmptyObject(O)&&(W=c.handle,W&&(W.elem=null),n.removeData(t,["events","handle"],!0))}},customEvent:{getData:!0,setData:!0,changeData:!0},trigger:function(t,r,o,u){if(!o||o.nodeType!==3&&o.nodeType!==8){var c=t.type||t,h=[],v,g,S,P,E,O,L,W,K,pe;if(c.indexOf("!")>=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(S in v)v[S].events&&v[S].events[c]&&n.event.trigger(t,r,v[S].handle.elem,!0);return}if(t.result=i,t.target||(t.target=o),r=r!=null?n.makeArray(r):[],r.unshift(t),L=n.event.special[c]||{},L.trigger&&L.trigger.apply(o,r)===!1)return;if(K=[[o,L.bindType||c]],!u&&!L.noBubble&&!n.isWindow(o)){for(pe=L.delegateType||c,E=null,P=o.parentNode;P;P=P.parentNode)K.push([P,pe]),E=P;E&&E===o.ownerDocument&&K.push([E.defaultView||E.parentWindow||e,pe])}for(S=0;S<K.length&&(P=K[S][0],t.type=K[S][1],W=(n._data(P,"events")||{})[t.type]&&n._data(P,"handle"),W&&W.apply(P,r),W=O&&P[O],W&&n.acceptData(P)&&W.apply(P,r),!t.isPropagationStopped());S++);return t.type=c,t.isDefaultPrevented()||(!L._default||L._default.apply(o.ownerDocument,r)===!1)&&(c!=="click"||!n.nodeName(o,"a"))&&n.acceptData(o)&&O&&o[c]&&(c!=="focus"&&c!=="blur"||t.target.offsetWidth!==0)&&!n.isWindow(o)&&(E=o[O],E&&(o[O]=null),n.event.triggered=c,o[c](),n.event.triggered=i,E&&(o[O]=E)),t.result}},dispatch:function(t){t=n.event.fix(t||e.event);var r=(n._data(this,"events")||{})[t.type]||[],o=r.delegateCount,u=[].slice.call(arguments,0),c=!t.exclusive&&!t.namespace,h=(n.event.special[t.type]||{}).handle,v=[],g,S,P,E,O,L,W,K,pe,Te;if(u[0]=t,t.delegateTarget=this,o&&!t.target.disabled&&(!t.button||t.type!=="click"))for(P=t.target;P!=this;P=P.parentNode||this){for(O={},W=[],g=0;g<o;g++)K=r[g],pe=K.selector,Te=O[pe],K.isPositional?Te=(Te||(O[pe]=n(pe))).index(P)>=0:Te===i&&(Te=O[pe]=K.quick?en(P,K.quick):n(P).is(pe)),Te&&W.push(K);W.length&&v.push({elem:P,matches:W})}for(r.length>o&&v.push({elem:this,matches:r.slice(o)}),g=0;g<v.length&&!t.isPropagationStopped();g++)for(L=v[g],t.currentTarget=L.elem,S=0;S<L.matches.length&&!t.isImmediatePropagationStopped();S++)K=L.matches[S],(c||!t.namespace&&!K.namespace||t.namespace_re&&t.namespace_re.test(K.namespace))&&(t.data=K.data,t.handleObj=K,E=(h||K.handler).apply(L.elem,u),E!==i&&(t.result=E,E===!1&&(t.preventDefault(),t.stopPropagation())));return t.result},props:"attrChange attrName relatedNode srcElement altKey bubbles cancelable ctrlKey currentTarget eventPhase metaKey relatedTarget shiftKey target timeStamp view which".split(" "),fixHooks:{},keyHooks:{props:"char charCode key keyCode".split(" "),filter:function(t,r){return t.which==null&&(t.which=r.charCode!=null?r.charCode:r.keyCode),t}},mouseHooks:{props:"button buttons clientX clientY fromElement offsetX offsetY pageX pageY screenX screenY toElement wheelDelta".split(" "),filter:function(t,r){var o,u,c,h=r.button,v=r.fromElement;return t.pageX==null&&r.clientX!=null&&(o=t.target.ownerDocument||q,u=o.documentElement,c=o.body,t.pageX=r.clientX+(u&&u.scrollLeft||c&&c.scrollLeft||0)-(u&&u.clientLeft||c&&c.clientLeft||0),t.pageY=r.clientY+(u&&u.scrollTop||c&&c.scrollTop||0)-(u&&u.clientTop||c&&c.clientTop||0)),!t.relatedTarget&&v&&(t.relatedTarget=v===t.target?r.toElement:v),!t.which&&h!==i&&(t.which=h&1?1:h&2?3:h&4?2:0),t}},fix:function(t){if(t[n.expando])return t;var r,o,u=t,c=n.event.fixHooks[t.type]||{},h=c.props?this.props.concat(c.props):this.props;for(t=n.Event(u),r=h.length;r;)o=h[--r],t[o]=u[o];return t.target||(t.target=u.srcElement||q),t.target.nodeType===3&&(t.target=t.target.parentNode),t.metaKey===i&&(t.metaKey=t.ctrlKey),c.filter?c.filter(t,u):t},special:{ready:{setup:n.bindReady},focus:{delegateType:"focusin",noBubble:!0},blur:{delegateType:"focusout",noBubble:!0},beforeunload:{setup:function(t,r,o){n.isWindow(this)&&(this.onbeforeunload=o)},teardown:function(t,r){this.onbeforeunload===r&&(this.onbeforeunload=null)}}},simulate:function(t,r,o,u){var c=n.extend(new n.Event,o,{type:t,isSimulated:!0,originalEvent:{}});u?n.event.trigger(c,null,r):n.event.dispatch.call(r,c),c.isDefaultPrevented()&&o.preventDefault()}},n.event.handle=n.event.dispatch,n.removeEvent=q.removeEventListener?function(t,r,o){t.removeEventListener&&t.removeEventListener(r,o,!1)}:function(t,r,o){t.detachEvent&&t.detachEvent("on"+r,o)},n.Event=function(t,r){if(!(this instanceof n.Event))return new n.Event(t,r);t&&t.type?(this.originalEvent=t,this.type=t.type,this.isDefaultPrevented=t.defaultPrevented||t.returnValue===!1||t.getPreventDefault&&t.getPreventDefault()?ye:Pe):this.type=t,r&&n.extend(this,r),this.timeStamp=t&&t.timeStamp||n.now(),this[n.expando]=!0},n.Event.prototype={preventDefault:function(){this.isDefaultPrevented=ye;var t=this.originalEvent;!t||(t.preventDefault?t.preventDefault():t.returnValue=!1)},stopPropagation:function(){this.isPropagationStopped=ye;var t=this.originalEvent;!t||(t.stopPropagation&&t.stopPropagation(),t.cancelBubble=!0)},stopImmediatePropagation:function(){this.isImmediatePropagationStopped=ye,this.stopPropagation()},isDefaultPrevented:Pe,isPropagationStopped:Pe,isImmediatePropagationStopped:Pe},n.each({mouseenter:"mouseover",mouseleave:"mouseout"},function(t,r){n.event.special[t]=n.event.special[r]={delegateType:r,bindType:r,handle:function(o){var u=this,c=o.relatedTarget,h=o.handleObj;h.selector;var v,g;return(!c||h.origType===o.type||c!==u&&!n.contains(u,c))&&(v=o.type,o.type=h.origType,g=h.handler.apply(this,arguments),o.type=v),g}}}),n.support.submitBubbles||(n.event.special.submit={setup:function(){if(n.nodeName(this,"form"))return!1;n.event.add(this,"click._submit keypress._submit",function(t){var r=t.target,o=n.nodeName(r,"input")||n.nodeName(r,"button")?r.form:i;o&&!o._submit_attached&&(n.event.add(o,"submit._submit",function(u){this.parentNode&&n.event.simulate("submit",this.parentNode,u,!0)}),o._submit_attached=!0)})},teardown:function(){if(n.nodeName(this,"form"))return!1;n.event.remove(this,"._submit")}}),n.support.changeBubbles||(n.event.special.change={setup:function(){if(Ee.test(this.nodeName))return(this.type==="checkbox"||this.type==="radio")&&(n.event.add(this,"propertychange._change",function(t){t.originalEvent.propertyName==="checked"&&(this._just_changed=!0)}),n.event.add(this,"click._change",function(t){this._just_changed&&(this._just_changed=!1,n.event.simulate("change",this,t,!0))})),!1;n.event.add(this,"beforeactivate._change",function(t){var r=t.target;Ee.test(r.nodeName)&&!r._change_attached&&(n.event.add(r,"change._change",function(o){this.parentNode&&!o.isSimulated&&n.event.simulate("change",this.parentNode,o,!0)}),r._change_attached=!0)})},handle:function(t){var r=t.target;if(this!==r||t.isSimulated||t.isTrigger||r.type!=="radio"&&r.type!=="checkbox")return t.handleObj.handler.apply(this,arguments)},teardown:function(){return n.event.remove(this,"._change"),Ee.test(this.nodeName)}}),n.support.focusinBubbles||n.each({focus:"focusin",blur:"focusout"},function(t,r){var o=0,u=function(c){n.event.simulate(r,c.target,n.event.fix(c),!0)};n.event.special[r]={setup:function(){o++===0&&q.addEventListener(t,u,!0)},teardown:function(){--o===0&&q.removeEventListener(t,u,!0)}}}),n.fn.extend({on:function(t,r,o,u,c){var h,v;if(typeof t=="object"){typeof r!="string"&&(o=r,r=i);for(v in t)this.on(v,r,o,t[v],c);return this}if(o==null&&u==null?(u=r,o=r=i):u==null&&(typeof r=="string"?(u=o,o=i):(u=o,o=r,r=i)),u===!1)u=Pe;else if(!u)return this;return c===1&&(h=u,u=function(g){return n().off(g),h.apply(this,arguments)},u.guid=h.guid||(h.guid=n.guid++)),this.each(function(){n.event.add(this,t,u,o,r)})},one:function(t,r,o,u){return this.on.call(this,t,r,o,u,1)},off:function(t,r,o){if(t&&t.preventDefault&&t.handleObj){var u=t.handleObj;return n(t.delegateTarget).off(u.namespace?u.type+"."+u.namespace:u.type,u.selector,u.handler),this}if(typeof t=="object"){for(var c in t)this.off(c,r,t[c]);return this}return(r===!1||typeof r=="function")&&(o=r,r=i),o===!1&&(o=Pe),this.each(function(){n.event.remove(this,t,o,r)})},bind:function(t,r,o){return this.on(t,null,r,o)},unbind:function(t,r){return this.off(t,null,r)},live:function(t,r,o){return n(this.context).on(t,this.selector,r,o),this},die:function(t,r){return n(this.context).off(t,this.selector||"**",r),this},delegate:function(t,r,o,u){return this.on(r,t,o,u)},undelegate:function(t,r,o){return arguments.length==1?this.off(t,"**"):this.off(r,t,o)},trigger:function(t,r){return this.each(function(){n.event.trigger(t,r,this)})},triggerHandler:function(t,r){if(this[0])return n.event.trigger(t,r,this[0],!0)},toggle:function(t){var r=arguments,o=t.guid||n.guid++,u=0,c=function(h){var v=(n._data(this,"lastToggle"+t.guid)||0)%u;return n._data(this,"lastToggle"+t.guid,v+1),h.preventDefault(),r[v].apply(this,arguments)||!1};for(c.guid=o;u<r.length;)r[u++].guid=o;return this.click(c)},hover:function(t,r){return this.mouseenter(t).mouseleave(r||t)}}),n.each("blur focus focusin focusout load resize scroll unload click dblclick mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave change select submit keydown keypress keyup error contextmenu".split(" "),function(t,r){n.fn[r]=function(o,u){return u==null&&(u=o,o=null),arguments.length>0?this.bind(r,o,u):this.trigger(r)},n.attrFn&&(n.attrFn[r]=!0),Ye.test(r)&&(n.event.fixHooks[r]=n.event.keyHooks),nt.test(r)&&(n.event.fixHooks[r]=n.event.mouseHooks)}),function(){function t(p,x,k,D,F,z){for(var U=0,ie=D.length;U<ie;U++){var te=D[U];if(te){var se=!1;for(te=te[p];te;){if(te[u]===k){se=D[te.sizset];break}if(te.nodeType===1){if(z||(te[u]=k,te.sizset=U),typeof x!="string"){if(te===x){se=!0;break}}else if(O.filter(x,[te]).length>0){se=te;break}}te=te[p]}D[U]=se}}}function r(p,x,k,D,F,z){for(var U=0,ie=D.length;U<ie;U++){var te=D[U];if(te){var se=!1;for(te=te[p];te;){if(te[u]===k){se=D[te.sizset];break}if(te.nodeType===1&&!z&&(te[u]=k,te.sizset=U),te.nodeName.toLowerCase()===x){se=te;break}te=te[p]}D[U]=se}}}var o=/((?:\((?:\([^()]+\)|[^()]+)+\)|\[(?:\[[^\[\]]*\]|['"][^'"]*['"]|[^\[\]'"]+)+\]|\\.|[^ >+~,(\[\\]+)+|[>+~])(\s*,\s*)?((?:.|\r|\n)*)/g,u="sizcache"+(Math.random()+"").replace(".",""),c=0,h=Object.prototype.toString,v=!1,g=!0,S=/\\/g,P=/\r\n/g,E=/\W/;[0,0].sort(function(){return g=!1,0});var O=function(p,x,k,D){k=k||[],x=x||q;var F=x;if(x.nodeType!==1&&x.nodeType!==9)return[];if(!p||typeof p!="string")return k;var z,U,ie,te,se,ut,et,w,H=!0,ne=O.isXML(x),j=[],Oe=p;do if(o.exec(""),z=o.exec(Oe),z&&(Oe=z[3],j.push(z[1]),z[2])){te=z[3];break}while(z);if(j.length>1&&K.exec(p))if(j.length===2&&W.relative[j[0]])U=we(j[0]+j[1],x,D);else for(U=W.relative[j[0]]?[x]:O(j.shift(),x);j.length;)p=j.shift(),W.relative[p]&&(p+=j.shift()),U=we(p,U,D);else if(!D&&j.length>1&&x.nodeType===9&&!ne&&W.match.ID.test(j[0])&&!W.match.ID.test(j[j.length-1])&&(se=O.find(j.shift(),x,ne),x=se.expr?O.filter(se.expr,se.set)[0]:se.set[0]),x)for(se=D?{expr:j.pop(),set:Se(D)}:O.find(j.pop(),j.length===1&&(j[0]==="~"||j[0]==="+")&&x.parentNode?x.parentNode:x,ne),U=se.expr?O.filter(se.expr,se.set):se.set,j.length>0?ie=Se(U):H=!1;j.length;)ut=j.pop(),et=ut,W.relative[ut]?et=j.pop():ut="",et==null&&(et=x),W.relative[ut](ie,et,ne);else ie=j=[];if(ie||(ie=U),ie||O.error(ut||p),h.call(ie)==="[object Array]")if(!H)k.push.apply(k,ie);else if(x&&x.nodeType===1)for(w=0;ie[w]!=null;w++)ie[w]&&(ie[w]===!0||ie[w].nodeType===1&&O.contains(x,ie[w]))&&k.push(U[w]);else for(w=0;ie[w]!=null;w++)ie[w]&&ie[w].nodeType===1&&k.push(U[w]);else Se(ie,k);return te&&(O(te,F,k,D),O.uniqueSort(k)),k};O.uniqueSort=function(p){if(rt&&(v=g,p.sort(rt),v))for(var x=1;x<p.length;x++)p[x]===p[x-1]&&p.splice(x--,1);return p},O.matches=function(p,x){return O(p,null,null,x)},O.matchesSelector=function(p,x){return O(x,null,null,[p]).length>0},O.find=function(p,x,k){var D,F,z,U,ie,te;if(!p)return[];for(F=0,z=W.order.length;F<z;F++)if(ie=W.order[F],(U=W.leftMatch[ie].exec(p))&&(te=U[1],U.splice(1,1),te.substr(te.length-1)!=="\\"&&(U[1]=(U[1]||"").replace(S,""),D=W.find[ie](U,x,k),D!=null))){p=p.replace(W.match[ie],"");break}return D||(D=typeof x.getElementsByTagName<"u"?x.getElementsByTagName("*"):[]),{set:D,expr:p}},O.filter=function(p,x,k,D){for(var F,z,U,ie,te,se,ut,et,w,H=p,ne=[],j=x,Oe=x&&x[0]&&O.isXML(x[0]);p&&x.length;){for(U in W.filter)if((F=W.leftMatch[U].exec(p))!=null&&F[2]){if(se=W.filter[U],ut=F[1],z=!1,F.splice(1,1),ut.substr(ut.length-1)==="\\")continue;if(j===ne&&(ne=[]),W.preFilter[U]){if(F=W.preFilter[U](F,j,k,ne,D,Oe),!F)z=ie=!0;else if(F===!0)continue}if(F)for(et=0;(te=j[et])!=null;et++)te&&(ie=se(te,F,et,j),w=D^ie,k&&ie!=null?w?z=!0:j[et]=!1:w&&(ne.push(te),z=!0));if(ie!==i){if(k||(j=ne),p=p.replace(W.match[U],""),!z)return[];break}}if(p===H)if(z==null)O.error(p);else break;H=p}return j},O.error=function(p){throw"Syntax error, unrecognized expression: "+p};var L=O.getText=function(p){var x,k,D=p.nodeType,F="";if(D){if(D===1){if(typeof p.textContent=="string")return p.textContent;if(typeof p.innerText=="string")return p.innerText.replace(P,"");for(p=p.firstChild;p;p=p.nextSibling)F+=L(p)}else if(D===3||D===4)return p.nodeValue}else for(x=0;k=p[x];x++)k.nodeType!==8&&(F+=L(k));return F},W=O.selectors={order:["ID","NAME","TAG"],match:{ID:/#((?:[\w\u00c0-\uFFFF\-]|\\.)+)/,CLASS:/\.((?:[\w\u00c0-\uFFFF\-]|\\.)+)/,NAME:/\[name=['"]*((?:[\w\u00c0-\uFFFF\-]|\\.)+)['"]*\]/,ATTR:/\[\s*((?:[\w\u00c0-\uFFFF\-]|\\.)+)\s*(?:(\S?=)\s*(?:(['"])(.*?)\3|(#?(?:[\w\u00c0-\uFFFF\-]|\\.)*)|)|)\s*\]/,TAG:/^((?:[\w\u00c0-\uFFFF\*\-]|\\.)+)/,CHILD:/:(only|nth|last|first)-child(?:\(\s*(even|odd|(?:[+\-]?\d+|(?:[+\-]?\d*)?n\s*(?:[+\-]\s*\d+)?))\s*\))?/,POS:/:(nth|eq|gt|lt|first|last|even|odd)(?:\((\d*)\))?(?=[^\-]|$)/,PSEUDO:/:((?:[\w\u00c0-\uFFFF\-]|\\.)+)(?:\((['"]?)((?:\([^\)]+\)|[^\(\)]*)+)\2\))?/},leftMatch:{},attrMap:{class:"className",for:"htmlFor"},attrHandle:{href:function(p){return p.getAttribute("href")},type:function(p){return p.getAttribute("type")}},relative:{"+":function(p,x){var k=typeof x=="string",D=k&&!E.test(x),F=k&&!D;D&&(x=x.toLowerCase());for(var z=0,U=p.length,ie;z<U;z++)if(ie=p[z]){for(;(ie=ie.previousSibling)&&ie.nodeType!==1;);p[z]=F||ie&&ie.nodeName.toLowerCase()===x?ie||!1:ie===x}F&&O.filter(x,p,!0)},">":function(p,x){var k,D=typeof x=="string",F=0,z=p.length;if(D&&!E.test(x)){for(x=x.toLowerCase();F<z;F++)if(k=p[F],k){var U=k.parentNode;p[F]=U.nodeName.toLowerCase()===x?U:!1}}else{for(;F<z;F++)k=p[F],k&&(p[F]=D?k.parentNode:k.parentNode===x);D&&O.filter(x,p,!0)}},"":function(p,x,k){var D,F=c++,z=t;typeof x=="string"&&!E.test(x)&&(x=x.toLowerCase(),D=x,z=r),z("parentNode",x,F,p,D,k)},"~":function(p,x,k){var D,F=c++,z=t;typeof x=="string"&&!E.test(x)&&(x=x.toLowerCase(),D=x,z=r),z("previousSibling",x,F,p,D,k)}},find:{ID:function(p,x,k){if(typeof x.getElementById<"u"&&!k){var D=x.getElementById(p[1]);return D&&D.parentNode?[D]:[]}},NAME:function(p,x){if(typeof x.getElementsByName<"u"){for(var k=[],D=x.getElementsByName(p[1]),F=0,z=D.length;F<z;F++)D[F].getAttribute("name")===p[1]&&k.push(D[F]);return k.length===0?null:k}},TAG:function(p,x){if(typeof x.getElementsByTagName<"u")return x.getElementsByTagName(p[1])}},preFilter:{CLASS:function(p,x,k,D,F,z){if(p=" "+p[1].replace(S,"")+" ",z)return p;for(var U=0,ie;(ie=x[U])!=null;U++)ie&&(F^(ie.className&&(" "+ie.className+" ").replace(/[\t\n\r]/g," ").indexOf(p)>=0)?k||D.push(ie):k&&(x[U]=!1));return!1},ID:function(p){return p[1].replace(S,"")},TAG:function(p,x){return p[1].replace(S,"").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,k,D,F,z){var U=p[1]=p[1].replace(S,"");return!z&&W.attrMap[U]&&(p[1]=W.attrMap[U]),p[4]=(p[4]||p[5]||"").replace(S,""),p[2]==="~="&&(p[4]=" "+p[4]+" "),p},PSEUDO:function(p,x,k,D,F){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,k,!0^F);return k||D.push.apply(D,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,k){return!!O(k[3],p).length},header:function(p){return/h\d/i.test(p.nodeName)},text:function(p){var x=p.getAttribute("type"),k=p.type;return p.nodeName.toLowerCase()==="input"&&k==="text"&&(x===k||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,k,D){return x===D.length-1},even:function(p,x){return x%2===0},odd:function(p,x){return x%2===1},lt:function(p,x,k){return x<k[3]-0},gt:function(p,x,k){return x>k[3]-0},nth:function(p,x,k){return k[3]-0===x},eq:function(p,x,k){return k[3]-0===x}},filter:{PSEUDO:function(p,x,k,D){var F=x[1],z=W.filters[F];if(z)return z(p,k,x,D);if(F==="contains")return(p.textContent||p.innerText||L([p])||"").indexOf(x[3])>=0;if(F==="not"){for(var U=x[3],ie=0,te=U.length;ie<te;ie++)if(U[ie]===p)return!1;return!0}O.error(F)},CHILD:function(p,x){var k,D,F,z,U,ie,te=x[1],se=p;switch(te){case"only":case"first":for(;se=se.previousSibling;)if(se.nodeType===1)return!1;if(te==="first")return!0;se=p;case"last":for(;se=se.nextSibling;)if(se.nodeType===1)return!1;return!0;case"nth":if(k=x[2],D=x[3],k===1&&D===0)return!0;if(F=x[0],z=p.parentNode,z&&(z[u]!==F||!p.nodeIndex)){for(U=0,se=z.firstChild;se;se=se.nextSibling)se.nodeType===1&&(se.nodeIndex=++U);z[u]=F}return ie=p.nodeIndex-D,k===0?ie===0:ie%k===0&&ie/k>=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 k=x[1],D=O.attr?O.attr(p,k):W.attrHandle[k]?W.attrHandle[k](p):p[k]!=null?p[k]:p.getAttribute(k),F=D+"",z=x[2],U=x[4];return D==null?z==="!=":!z&&O.attr?D!=null:z==="="?F===U:z==="*="?F.indexOf(U)>=0:z==="~="?(" "+F+" ").indexOf(U)>=0:U?z==="!="?F!==U:z==="^="?F.indexOf(U)===0:z==="$="?F.substr(F.length-U.length)===U:z==="|="?F===U||F.substr(0,U.length+1)===U+"-":!1:F&&D!==!1},POS:function(p,x,k,D){var F=x[2],z=W.setFilters[F];if(z)return z(p,k,x,D)}}},K=W.match.POS,pe=function(p,x){return"\\"+(x-0+1)};for(var Te in W.match)W.match[Te]=new RegExp(W.match[Te].source+/(?![^\[]*\])(?![^\(]*\))/.source),W.leftMatch[Te]=new RegExp(/(^(?:.|\r|\n)*?)/.source+W.match[Te].source.replace(/\\(\d+)/g,pe));var Se=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){Se=function(x,k){var D=0,F=k||[];if(h.call(x)==="[object Array]")Array.prototype.push.apply(F,x);else if(typeof x.length=="number")for(var z=x.length;D<z;D++)F.push(x[D]);else for(;x[D];D++)F.push(x[D]);return F}}var rt,it;q.documentElement.compareDocumentPosition?rt=function(p,x){return p===x?(v=!0,0):!p.compareDocumentPosition||!x.compareDocumentPosition?p.compareDocumentPosition?-1:1:p.compareDocumentPosition(x)&4?-1:1}:(rt=function(p,x){if(p===x)return v=!0,0;if(p.sourceIndex&&x.sourceIndex)return p.sourceIndex-x.sourceIndex;var k,D,F=[],z=[],U=p.parentNode,ie=x.parentNode,te=U;if(U===ie)return it(p,x);if(!U)return-1;if(!ie)return 1;for(;te;)F.unshift(te),te=te.parentNode;for(te=ie;te;)z.unshift(te),te=te.parentNode;k=F.length,D=z.length;for(var se=0;se<k&&se<D;se++)if(F[se]!==z[se])return it(F[se],z[se]);return se===k?it(p,z[se],-1):it(F[se],x,1)},it=function(p,x,k){if(p===x)return k;for(var D=p.nextSibling;D;){if(D===x)return-1;D=D.nextSibling}return 1}),function(){var p=q.createElement("div"),x="script"+new Date().getTime(),k=q.documentElement;p.innerHTML="<a name='"+x+"'/>",k.insertBefore(p,k.firstChild),q.getElementById(x)&&(W.find.ID=function(D,F,z){if(typeof F.getElementById<"u"&&!z){var U=F.getElementById(D[1]);return U?U.id===D[1]||typeof U.getAttributeNode<"u"&&U.getAttributeNode("id").nodeValue===D[1]?[U]:i:[]}},W.filter.ID=function(D,F){var z=typeof D.getAttributeNode<"u"&&D.getAttributeNode("id");return D.nodeType===1&&z&&z.nodeValue===F}),k.removeChild(p),k=p=null}(),function(){var p=q.createElement("div");p.appendChild(q.createComment("")),p.getElementsByTagName("*").length>0&&(W.find.TAG=function(x,k){var D=k.getElementsByTagName(x[1]);if(x[1]==="*"){for(var F=[],z=0;D[z];z++)D[z].nodeType===1&&F.push(D[z]);D=F}return D}),p.innerHTML="<a href='#'></a>",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"),k="__sizzle__";if(x.innerHTML="<p class='TEST'></p>",!x.querySelectorAll||x.querySelectorAll(".TEST").length!==0){O=function(F,z,U,ie){if(z=z||q,!ie&&!O.isXML(z)){var te=/^(\w+$)|^\.([\w\-]+$)|^#([\w\-]+$)/.exec(F);if(te&&(z.nodeType===1||z.nodeType===9)){if(te[1])return Se(z.getElementsByTagName(F),U);if(te[2]&&W.find.CLASS&&z.getElementsByClassName)return Se(z.getElementsByClassName(te[2]),U)}if(z.nodeType===9){if(F==="body"&&z.body)return Se([z.body],U);if(te&&te[3]){var se=z.getElementById(te[3]);if(!se||!se.parentNode)return Se([],U);if(se.id===te[3])return Se([se],U)}try{return Se(z.querySelectorAll(F),U)}catch(j){}}else if(z.nodeType===1&&z.nodeName.toLowerCase()!=="object"){var ut=z,et=z.getAttribute("id"),w=et||k,H=z.parentNode,ne=/^\s*[+~]/.test(F);et?w=w.replace(/'/g,"\\$&"):z.setAttribute("id",w),ne&&H&&(z=z.parentNode);try{if(!ne||H)return Se(z.querySelectorAll("[id='"+w+"'] "+F),U)}catch(j){}finally{et||ut.removeAttribute("id")}}}return p(F,z,U,ie)};for(var D in p)O[D]=p[D];x=null}}(),function(){var p=q.documentElement,x=p.matchesSelector||p.mozMatchesSelector||p.webkitMatchesSelector||p.msMatchesSelector;if(x){var k=!x.call(q.createElement("div"),"div"),D=!1;try{x.call(q.documentElement,"[test!='']:sizzle")}catch(F){D=!0}O.matchesSelector=function(F,z){if(z=z.replace(/\=\s*([^'"\]]*)\s*\]/g,"='$1']"),!O.isXML(F))try{if(D||!W.match.PSEUDO.test(z)&&!/!=/.test(z)){var U=x.call(F,z);if(U||!k||F.document&&F.document.nodeType!==11)return U}}catch(ie){}return O(z,null,null,[F]).length>0}}}(),function(){var p=q.createElement("div");if(p.innerHTML="<div class='test e'></div><div class='test'></div>",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,k,D){if(typeof k.getElementsByClassName<"u"&&!D)return k.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 we=function(p,x,k){for(var D,F=[],z="",U=x.nodeType?[x]:x;D=W.match.PSEUDO.exec(p);)z+=D[0],p=p.replace(W.match.PSEUDO,"");p=W.relative[p]?p+"*":p;for(var ie=0,te=U.length;ie<te;ie++)O(p,U[ie],F,k);return O.filter(z,F)};O.attr=n.attr,O.selectors.attrMap={},n.find=O,n.expr=O.selectors,n.expr[":"]=n.expr.filters,n.unique=O.uniqueSort,n.text=O.getText,n.isXMLDoc=O.isXML,n.contains=O.contains}();var vt=/Until$/,Ge=/^(?:parents|prevUntil|prevAll)/,pn=/,/,Mt=/^.[^:#\[\.,]*$/,_t=Array.prototype.slice,wt=n.expr.match.POS,gt={children:!0,contents:!0,next:!0,prev:!0};n.fn.extend({find:function(t){var r=this,o,u;if(typeof t!="string")return n(t).filter(function(){for(o=0,u=r.length;o<u;o++)if(n.contains(r[o],this))return!0});var c=this.pushStack("","find",t),h,v,g;for(o=0,u=this.length;o<u;o++)if(h=c.length,n.find(t,this[o],c),o>0){for(v=h;v<c.length;v++)for(g=0;g<h;g++)if(c[g]===c[v]){c.splice(v--,1);break}}return c},has:function(t){var r=n(t);return this.filter(function(){for(var o=0,u=r.length;o<u;o++)if(n.contains(this,r[o]))return!0})},not:function(t){return this.pushStack(de(this,t,!1),"not",t)},filter:function(t){return this.pushStack(de(this,t,!0),"filter",t)},is:function(t){return!!t&&(typeof t=="string"?wt.test(t)?n(t,this.context).index(this[0])>=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<t.length;u++)n(h).is(t[u])&&o.push({selector:t[u],elem:h,level:v});h=h.parentNode,v++}return o}var g=wt.test(t)||typeof t!="string"?n(t,r||this.context):0;for(u=0,c=this.length;u<c;u++)for(h=this[u];h;){if(g?g.index(h)>-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(xe(o[0])||xe(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=_t.call(arguments);return vt.test(t)||(u=o),u&&typeof u=="string"&&(c=n.filter(u,c)),c=this.length>1&&!gt[t]?n.unique(c):c,(this.length>1||pn.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 mt="abbr article aside audio canvas datalist details figcaption figure footer header hgroup mark meter nav output progress section summary time video",Dt=/ jQuery\d+="(?:\d+|null)"/g,qe=/^\s+/,Ze=/<(?!area|br|col|embed|hr|img|input|link|meta|param)(([\w:]+)[^>]*)\/>/ig,Ie=/<([\w:]+)/,X=/<tbody/i,ae=/<|&#?\w+;/,ge=/<(?:script|style)/i,_e=/<(?:script|object|embed|option|style)/i,We=new RegExp("<(?:"+mt.replace(" ","|")+")","i"),Ke=/checked\s*(?:[^=]|=\s*.checked.)/i,lt=/\/(java|ecma)script/i,Fe=/^\s*<!(?:\[CDATA\[|\-\-)/,$e={option:[1,"<select multiple='multiple'>","</select>"],legend:[1,"<fieldset>","</fieldset>"],thead:[1,"<table>","</table>"],tr:[2,"<table><tbody>","</tbody></table>"],td:[3,"<table><tbody><tr>","</tr></tbody></table>"],col:[2,"<table><tbody></tbody><colgroup>","</colgroup></table>"],area:[1,"<map>","</map>"],_default:[0,"",""]},It=le(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<div>","</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(Dt,""):null;if(typeof t=="string"&&!ge.test(t)&&(n.support.leadingWhitespace||!qe.test(t))&&!$e[(Ie.exec(t)||["",""])[1].toLowerCase()]){t=t.replace(Ze,"<$1></$2>");try{for(var r=0,o=this.length;r<o;r++)this[r].nodeType===1&&(n.cleanData(this[r].getElementsByTagName("*")),this[r].innerHTML=t)}catch(u){this.empty().append(t)}}else n.isFunction(t)?this.each(function(u){var c=n(this);c.html(t.call(this,u,c.html()))}):this.empty().append(t);return this},replaceWith:function(t){return this[0]&&this[0].parentNode?n.isFunction(t)?this.each(function(r){var o=n(this),u=o.html();o.replaceWith(t.call(this,r,u))}):(typeof t!="string"&&(t=n(t).detach()),this.each(function(){var r=this.nextSibling,o=this.parentNode;n(this).remove(),r?n(r).before(t):n(o).append(t)})):this.length?this.pushStack(n(n.isFunction(t)?t():t),"replaceWith",t):this},detach:function(t){return this.remove(t,!0)},domManip:function(t,r,o){var u,c,h,v,g=t[0],S=[];if(!n.support.checkClone&&arguments.length===3&&typeof g=="string"&&Ke.test(g))return this.each(function(){n(this).domManip(t,r,o,!0)});if(n.isFunction(g))return this.each(function(L){var W=n(this);t[0]=g.call(this,L,r?W.html():i),W.domManip(t,r,o)});if(this[0]){if(v=g&&g.parentNode,n.support.parentNode&&v&&v.nodeType===11&&v.childNodes.length===this.length?u={fragment:v}:u=n.buildFragment(t,this,S),h=u.fragment,h.childNodes.length===1?c=h=h.firstChild:c=h.firstChild,c){r=r&&n.nodeName(c,"tr");for(var P=0,E=this.length,O=E-1;P<E;P++)o.call(r?me(this[P]):this[P],u.cacheable||E>1&&P<O?n.clone(h,!0,!0):h)}S.length&&n.each(S,C)}return this}}),n.buildFragment=function(t,r,o){var u,c,h,v,g=t[0];return r&&r[0]&&(v=r[0].ownerDocument||r[0]),v.createDocumentFragment||(v=q),t.length===1&&typeof g=="string"&&g.length<512&&v===q&&g.charAt(0)==="<"&&!_e.test(g)&&(n.support.checkClone||!Ke.test(g))&&!n.support.unknownElems&&We.test(g)&&(c=!0,h=n.fragments[g],h&&h!==1&&(u=h)),u||(u=v.createDocumentFragment(),n.clean(t,v,u,o)),c&&(n.fragments[g]=h?u:1),{fragment:u,cacheable:c}},n.fragments={},n.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},function(t,r){n.fn[t]=function(o){var u=[],c=n(o),h=this.length===1&&this[0].parentNode;if(h&&h.nodeType===11&&h.childNodes.length===1&&c.length===1)return c[r](this[0]),this;for(var v=0,g=c.length;v<g;v++){var S=(v>0?this.clone(!0):this).get();n(c[v])[r](S),u=u.concat(S)}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(be(t,u),c=ve(t),h=ve(u),v=0;c[v];++v)h[v]&&be(c[v],h[v]);if(r&&(ee(t,u),o))for(c=ve(t),h=ve(u),v=0;c[v];++v)ee(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,S;(S=t[g])!=null;g++)if(typeof S=="number"&&(S+=""),!!S){if(typeof S=="string")if(!ae.test(S))S=r.createTextNode(S);else{S=S.replace(Ze,"<$1></$2>");var P=(Ie.exec(S)||["",""])[1].toLowerCase(),E=$e[P]||$e._default,O=E[0],L=r.createElement("div");for(r===q?It.appendChild(L):le(r).appendChild(L),L.innerHTML=E[1]+S+E[2];O--;)L=L.lastChild;if(!n.support.tbody){var W=X.test(S),K=P==="table"&&!W?L.firstChild&&L.firstChild.childNodes:E[1]==="<table>"&&!W?L.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(S)&&L.insertBefore(r.createTextNode(qe.exec(S)[0]),L.firstChild),S=L.childNodes}var pe;if(!n.support.appendChecked)if(S[0]&&typeof(pe=S.length)=="number")for(v=0;v<pe;v++)$(S[v]);else $(S);S.nodeType?h.push(S):h=n.merge(h,S)}if(o)for(c=function(Se){return!Se.type||lt.test(Se.type)},g=0;h[g];g++)if(u&&n.nodeName(h[g],"script")&&(!h[g].type||h[g].type.toLowerCase()==="text/javascript"))u.push(h[g].parentNode?h[g].parentNode.removeChild(h[g]):h[g]);else{if(h[g].nodeType===1){var Te=n.grep(h[g].getElementsByTagName("script"),c);h.splice.apply(h,[g+1,0].concat(Te))}o.appendChild(h[g])}return h},cleanData:function(t){for(var r,o,u=n.cache,c=n.event.special,h=n.support.deleteExpando,v=0,g;(g=t[v])!=null;v++)if(!(g.nodeName&&n.noData[g.nodeName.toLowerCase()])&&(o=g[n.expando],o)){if(r=u[o],r&&r.events){for(var S in r.events)c[S]?n.event.remove(g,S):n.removeEvent(g,S,r.handle);r.handle&&(r.handle.elem=null)}h?delete g[n.expando]:g.removeAttribute&&g.removeAttribute(n.expando),delete u[o]}}});var ir=/alpha\([^)]*\)/i,fa=/opacity=([^)]*)/,da=/([A-Z]|^ms)/g,Zr=/^-?\d+(?:px)?$/i,ha=/^-?\d/,pa=/^([\-+])=([\-+.\de]+)/,va={position:"absolute",visibility:"hidden",display:"block"},ga=["Left","Right"],ma=["Top","Bottom"],tn,Jr,Qr;n.fn.css=function(t,r){return arguments.length===2&&r===i?this:n.access(this,t,r,!0,function(o,u,c){return c!==i?n.style(o,u,c):n.css(o,u)})},n.extend({cssHooks:{opacity:{get:function(t,r){if(r){var o=tn(t,"opacity","opacity");return o===""?"1":o}return t.style.opacity}}},cssNumber:{fillOpacity:!0,fontWeight:!0,lineHeight:!0,opacity:!0,orphans:!0,widows:!0,zIndex:!0,zoom:!0},cssProps:{float:n.support.cssFloat?"cssFloat":"styleFloat"},style:function(t,r,o,u){if(t&&t.nodeType!==3&&t.nodeType!==8&&t.style){var c,h,v=n.camelCase(r),g=t.style,S=n.cssHooks[v];if(r=n.cssProps[v]||v,o===i)return S&&"get"in S&&(c=S.get(t,!1,u))!==i?c:g[r];if(h=typeof o,h==="string"&&(c=pa.exec(o))&&(o=+(c[1]+1)*+c[2]+parseFloat(n.css(t,r)),h="number"),o==null||h==="number"&&isNaN(o))return;if(h==="number"&&!n.cssNumber[v]&&(o+="px"),!S||!("set"in S)||(o=S.set(t,o))!==i)try{g[r]=o}catch(P){}}},css:function(t,r,o){var u,c;if(r=n.camelCase(r),c=n.cssHooks[r],r=n.cssProps[r]||r,r==="cssFloat"&&(r="float"),c&&"get"in c&&(u=c.get(t,!0,o))!==i)return u;if(tn)return tn(t,r)},swap:function(t,r,o){var u={};for(var c in r)u[c]=t.style[c],t.style[c]=r[c];o.call(t);for(c in r)t.style[c]=u[c]}}),n.curCSS=n.css,n.each(["height","width"],function(t,r){n.cssHooks[r]={get:function(o,u,c){var h;if(u)return o.offsetWidth!==0?B(o,r,c):(n.swap(o,va,function(){h=B(o,r,c)}),h)},set:function(o,u){if(!Zr.test(u))return u;if(u=parseFloat(u),u>=0)return u+"px"}}}),n.support.opacity||(n.cssHooks.opacity={get:function(t,r){return fa.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(ir,""))===""&&(o.removeAttribute("filter"),u&&!u.filter))&&(o.filter=ir.test(h)?h.replace(ir,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=tn(t,"margin-right","marginRight"):o=t.style.marginRight}),o}})}),q.defaultView&&q.defaultView.getComputedStyle&&(Jr=function(t,r){var o,u,c;return r=r.replace(da,"-$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&&(Qr=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),!Zr.test(h)&&ha.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}),tn=Jr||Qr,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 ya=/%20/g,wa=/\[\]$/,ei=/\r?\n/g,ba=/#.*$/,xa=/^(.*?):[ \t]*([^\r\n]*)\r?$/mg,Sa=/^(?:color|date|datetime|datetime-local|email|hidden|month|number|password|range|search|tel|text|time|url|week)$/i,Aa=/^(?:about|app|app\-storage|.+\-extension|file|res|widget):$/,Ca=/^(?:GET|HEAD)$/,Ta=/^\/\//,ti=/\?/,Ma=/<script\b[^<]*(?:(?!<\/script>)<[^<]*)*<\/script>/gi,Ea=/^(?:select|textarea)/i,ni=/\s+/,Oa=/([?&])_=[^&]*/,ri=/^([\w\+\.\-]+:)(?:\/\/([^\/?#:]*)(?::(\d+))?)?/,ii=n.fn.load,or={},oi={},Wt,jt,ai=["*/"]+["*"];try{Wt=l.href}catch(t){Wt=q.createElement("a"),Wt.href="",Wt=Wt.href}jt=ri.exec(Wt.toLowerCase())||[],n.fn.extend({load:function(t,r,o){if(typeof t!="string"&&ii)return ii.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,S,P){P=g.responseText,g.isResolved()&&(g.done(function(E){P=E}),v.html(c?n("<div>").append(P.replace(Ma,"")).find(c):P)),o&&v.each(o,[P,S,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||Ea.test(this.nodeName)||Sa.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(ei,`\r
  238. `)}}):{name:r.name,value:o.replace(ei,`\r
  239. `)}}).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?Z(t,n.ajaxSettings):(r=t,t=n.ajaxSettings),Z(t,r),t},ajaxSettings:{url:Wt,isLocal:Aa.test(jt[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","*":ai},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:ce(or),ajaxTransport:ce(oi),ajax:function(t,r){function o(k,D,F,z){if(Se!==2){Se=2,pe&&clearTimeout(pe),K=i,L=z||"",we.readyState=k>0?4:0;var U,ie,te,se=D,ut=F?_(u,we,F):i,et,w;if(k>=200&&k<300||k===304)if(u.ifModified&&((et=we.getResponseHeader("Last-Modified"))&&(n.lastModified[P]=et),(w=we.getResponseHeader("Etag"))&&(n.etag[P]=w)),k===304)se="notmodified",U=!0;else try{ie=R(u,ut),se="success",U=!0}catch(H){se="parsererror",te=H}else te=se,(!se||k)&&(se="error",k<0&&(k=0));we.status=k,we.statusText=""+(D||se),U?v.resolveWith(c,[ie,se,we]):v.rejectWith(c,[we,se,te]),we.statusCode(S),S=i,rt&&h.trigger("ajax"+(U?"Success":"Error"),[we,u,U?ie:te]),g.fireWith(c,[we,se]),rt&&(h.trigger("ajaxComplete",[we,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"),S=u.statusCode||{},P,E={},O={},L,W,K,pe,Te,Se=0,rt,it,we={readyState:0,setRequestHeader:function(k,D){if(!Se){var F=k.toLowerCase();k=O[F]=O[F]||k,E[k]=D}return this},getAllResponseHeaders:function(){return Se===2?L:null},getResponseHeader:function(k){var D;if(Se===2){if(!W)for(W={};D=xa.exec(L);)W[D[1].toLowerCase()]=D[2];D=W[k.toLowerCase()]}return D===i?null:D},overrideMimeType:function(k){return Se||(u.mimeType=k),this},abort:function(k){return k=k||"abort",K&&K.abort(k),o(0,k),this}};if(v.promise(we),we.success=we.done,we.error=we.fail,we.complete=g.add,we.statusCode=function(k){if(k){var D;if(Se<2)for(D in k)S[D]=[S[D],k[D]];else D=k[we.status],we.then(D,D)}return this},u.url=((t||u.url)+"").replace(ba,"").replace(Ta,jt[1]+"//"),u.dataTypes=n.trim(u.dataType||"*").toLowerCase().split(ni),u.crossDomain==null&&(Te=ri.exec(u.url.toLowerCase()),u.crossDomain=!(!Te||Te[1]==jt[1]&&Te[2]==jt[2]&&(Te[3]||(Te[1]==="http:"?80:443))==(jt[3]||(jt[1]==="http:"?80:443)))),u.data&&u.processData&&typeof u.data!="string"&&(u.data=n.param(u.data,u.traditional)),Y(or,u,r,we),Se===2)return!1;if(rt=u.global,u.type=u.type.toUpperCase(),u.hasContent=!Ca.test(u.type),rt&&n.active++===0&&n.event.trigger("ajaxStart"),!u.hasContent&&(u.data&&(u.url+=(ti.test(u.url)?"&":"?")+u.data,delete u.data),P=u.url,u.cache===!1)){var p=n.now(),x=u.url.replace(Oa,"$1_="+p);u.url=x+(x===u.url?(ti.test(u.url)?"&":"?")+"_="+p:"")}(u.data&&u.hasContent&&u.contentType!==!1||r.contentType)&&we.setRequestHeader("Content-Type",u.contentType),u.ifModified&&(P=P||u.url,n.lastModified[P]&&we.setRequestHeader("If-Modified-Since",n.lastModified[P]),n.etag[P]&&we.setRequestHeader("If-None-Match",n.etag[P])),we.setRequestHeader("Accept",u.dataTypes[0]&&u.accepts[u.dataTypes[0]]?u.accepts[u.dataTypes[0]]+(u.dataTypes[0]!=="*"?", "+ai+"; q=0.01":""):u.accepts["*"]);for(it in u.headers)we.setRequestHeader(it,u.headers[it]);if(u.beforeSend&&(u.beforeSend.call(c,we,u)===!1||Se===2))return we.abort(),!1;for(it in{success:1,error:1,complete:1})we[it](u[it]);if(K=Y(oi,u,r,we),!K)o(-1,"No Transport");else{we.readyState=1,rt&&h.trigger("ajaxSend",[we,u]),u.async&&u.timeout>0&&(pe=setTimeout(function(){we.abort("timeout")},u.timeout));try{Se=1,K.send(E,o)}catch(k){Se<2?o(-1,k):n.error(k)}}return we},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)I(c,t[c],r,u);return o.join("&").replace(ya,"+")}}),n.extend({active:0,lastModified:{},etag:{}});var Pa=n.now(),Tn=/(\=)\?(&|$)|\?\?/i;n.ajaxSetup({jsonp:"callback",jsonpCallback:function(){return n.expando+"_"+Pa++}}),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&&(Tn.test(t.url)||u&&Tn.test(t.data))){var c,h=t.jsonpCallback=n.isFunction(t.jsonpCallback)?t.jsonpCallback():t.jsonpCallback,v=e[h],g=t.url,S=t.data,P="$1"+h+"$2";return t.jsonp!==!1&&(g=g.replace(Tn,P),t.url===g&&(u&&(S=S.replace(Tn,P)),t.data===S&&(g+=(/\?/.test(g)?"&":"?")+t.jsonp+"="+h))),t.url=g,t.data=S,e[h]=function(E){c=[E]},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 ar=e.ActiveXObject?function(){for(var t in nn)nn[t](0,1)}:!1,ka=0,nn;n.ajaxSettings.xhr=e.ActiveXObject?function(){return!this.isLocal&&M()||T()}:M,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,S){var P,E,O,L,W;try{if(r&&(S||c.readyState===4))if(r=i,h&&(c.onreadystatechange=n.noop,ar&&delete nn[h]),S)c.readyState!==4&&c.abort();else{P=c.status,O=c.getAllResponseHeaders(),L={},W=c.responseXML,W&&W.documentElement&&(L.xml=W),L.text=c.responseText;try{E=c.statusText}catch(K){E=""}!P&&t.isLocal&&!t.crossDomain?P=L.text?200:404:P===1223&&(P=204)}}catch(K){S||u(-1,K)}L&&u(P,E,L,O)},!t.async||c.readyState===4?r():(h=++ka,ar&&(nn||(nn={},n(e).unload(ar)),nn[h]=r),c.onreadystatechange=r)},abort:function(){r&&r(0,1)}}}});var sr={},At,rn,Ra=/^(?:toggle|show|hide)$/,_a=/^([+\-]=)?([\d+.\-]+)([a-z%]*)$/i,Mn,si=[["height","marginTop","marginBottom","paddingTop","paddingBottom"],["width","marginLeft","marginRight","paddingLeft","paddingRight"],["opacity"]],En;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<v;h++)u=this[h],u.style&&(c=u.style.display,!n._data(u,"olddisplay")&&c==="none"&&(c=u.style.display=""),c===""&&n.css(u,"display")==="none"&&n._data(u,"olddisplay",f(u.nodeName)));for(h=0;h<v;h++)u=this[h],u.style&&(c=u.style.display,(c===""||c==="none")&&(u.style.display=n._data(u,"olddisplay")||""));return this},hide:function(t,r,o){if(t||t===0)return this.animate(d("hide",3),t,r,o);for(var u,c,h=0,v=this.length;h<v;h++)u=this[h],u.style&&(c=n.css(u,"display"),c!=="none"&&!n._data(u,"olddisplay")&&n._data(u,"olddisplay",c));for(h=0;h<v;h++)this[h].style&&(this[h].style.display="none");return this},_toggle:n.fn.toggle,toggle:function(t,r,o){var u=typeof t=="boolean";return n.isFunction(t)&&n.isFunction(r)?this._toggle.apply(this,arguments):t==null||u?this.each(function(){var c=u?t:n(this).is(":hidden");n(this)[c?"show":"hide"]()}):this.animate(d("toggle",3),t,r,o),this},fadeTo:function(t,r,o,u){return this.filter(":hidden").css("opacity",0).show().end().animate({opacity:r},t,o,u)},animate:function(t,r,o,u){function c(){h.queue===!1&&n._mark(this);var v=n.extend({},h),g=this.nodeType===1,S=g&&n(this).is(":hidden"),P,E,O,L,W,K,pe,Te,Se;v.animatedProperties={};for(O in t){if(P=n.camelCase(O),O!==P&&(t[P]=t[O],delete t[O]),E=t[P],n.isArray(E)?(v.animatedProperties[P]=E[1],E=t[P]=E[0]):v.animatedProperties[P]=v.specialEasing&&v.specialEasing[P]||v.easing||"swing",E==="hide"&&S||E==="show"&&!S)return v.complete.call(this);g&&(P==="height"||P==="width")&&(v.overflow=[this.style.overflow,this.style.overflowX,this.style.overflowY],n.css(this,"display")==="inline"&&n.css(this,"float")==="none"&&(!n.support.inlineBlockNeedsLayout||f(this.nodeName)==="inline"?this.style.display="inline-block":this.style.zoom=1))}v.overflow!=null&&(this.style.overflow="hidden");for(O in t)L=new n.fx(this,v,O),E=t[O],Ra.test(E)?(Se=n._data(this,"toggle"+O)||(E==="toggle"?S?"show":"hide":0),Se?(n._data(this,"toggle"+O,Se==="show"?"hide":"show"),L[Se]()):L[E]()):(W=_a.exec(E),K=L.cur(),W?(pe=parseFloat(W[2]),Te=W[3]||(n.cssNumber[O]?"":"px"),Te!=="px"&&(n.style(this,O,(pe||1)+Te),K=(pe||1)/L.cur()*K,n.style(this,O,K+Te)),W[1]&&(pe=(W[1]==="-="?-1:1)*pe+K),L.custom(K,pe,Te)):L.custom(K,E,""));return!0}var h=n.speed(r,o,u);return n.isEmptyObject(t)?this.each(h.complete,[!1]):(t=n.extend({},t),h.queue===!1?this.each(c):this.queue(h.queue,c))},stop:function(t,r,o){return typeof t!="string"&&(o=r,r=t,t=i),r&&t!==!1&&this.queue(t||"fx",[]),this.each(function(){function u(S,P,E){var O=P[E];n.removeData(S,E,!0),O.stop(o)}var c,h=!1,v=n.timers,g=n._data(this);if(o||n._unmark(!0,this),t==null)for(c in g)g[c].stop&&c.indexOf(".run")===c.length-4&&u(this,g,c);else g[c=t+".run"]&&g[c].stop&&u(this,g,c);for(c=v.length;c--;)v[c].elem===this&&(t==null||v[c].queue===t)&&(o?v[c](!0):v[c].saveState(),h=!0,v.splice(c,1));(!o||!h)&&n.dequeue(this,t)})}}),n.each({slideDown:d("show",1),slideUp:d("hide",1),slideToggle:d("toggle",1),fadeIn:{opacity:"show"},fadeOut:{opacity:"hide"},fadeToggle:{opacity:"toggle"}},function(t,r){n.fn[t]=function(o,u,c){return this.animate(r,o,u,c)}}),n.extend({speed:function(t,r,o){var u=t&&typeof t=="object"?n.extend({},t):{complete:o||!o&&r||n.isFunction(t)&&t,duration:t,easing:o&&r||r&&!n.isFunction(r)&&r};return u.duration=n.fx.off?0:typeof u.duration=="number"?u.duration:u.duration in n.fx.speeds?n.fx.speeds[u.duration]:n.fx.speeds._default,(u.queue==null||u.queue===!0)&&(u.queue="fx"),u.old=u.complete,u.complete=function(c){n.isFunction(u.old)&&u.old.call(this),u.queue?n.dequeue(this,u.queue):c!==!1&&n._unmark(this)},u},easing:{linear:function(t,r,o,u){return o+u*t},swing:function(t,r,o,u){return(-Math.cos(t*Math.PI)/2+.5)*u+o}},timers:[],fx:function(t,r,o){this.options=r,this.elem=t,this.prop=o,r.orig=r.orig||{}}}),n.fx.prototype={update:function(){this.options.step&&this.options.step.call(this.elem,this.now,this),(n.fx.step[this.prop]||n.fx.step._default)(this)},cur:function(){if(this.elem[this.prop]!=null&&(!this.elem.style||this.elem.style[this.prop]==null))return this.elem[this.prop];var t,r=n.css(this.elem,this.prop);return isNaN(t=parseFloat(r))?!r||r==="auto"?0:r:t},custom:function(t,r,o){function u(v){return c.step(v)}var c=this,h=n.fx;this.startTime=En||A(),this.end=r,this.now=this.start=t,this.pos=this.state=0,this.unit=o||this.unit||(n.cssNumber[this.prop]?"":"px"),u.queue=this.options.queue,u.elem=this.elem,u.saveState=function(){c.options.hide&&n._data(c.elem,"fxshow"+c.prop)===i&&n._data(c.elem,"fxshow"+c.prop,c.start)},u()&&n.timers.push(u)&&!Mn&&(Mn=setInterval(h.tick,h.interval))},show:function(){var t=n._data(this.elem,"fxshow"+this.prop);this.options.orig[this.prop]=t||n.style(this.elem,this.prop),this.options.show=!0,t!==i?this.custom(this.cur(),t):this.custom(this.prop==="width"||this.prop==="height"?1:0,this.cur()),n(this.elem).show()},hide:function(){this.options.orig[this.prop]=n._data(this.elem,"fxshow"+this.prop)||n.style(this.elem,this.prop),this.options.hide=!0,this.custom(this.cur(),0)},step:function(t){var r,o,u,c=En||A(),h=!0,v=this.elem,g=this.options;if(t||c>=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(S,P){v.style["overflow"+P]=g.overflow[S]}),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<r.length;o++)t=r[o],!t()&&r[o]===t&&r.splice(o--,1);r.length||n.fx.stop()},interval:13,stop:function(){clearInterval(Mn),Mn=null},speeds:{slow:600,fast:200,_default:400},step:{opacity:function(t){n.style(t.elem,"opacity",t.now)},_default:function(t){t.elem.style&&t.elem.style[t.prop]!=null?t.elem.style[t.prop]=t.now+t.unit:t.elem[t.prop]=t.now}}}),n.each(["width","height"],function(t,r){n.fx.step[r]=function(o){n.style(o.elem,r,Math.max(0,o.now))}}),n.expr&&n.expr.filters&&(n.expr.filters.animated=function(t){return n.grep(n.timers,function(r){return t===r.elem}).length});var Da=/^t(?:able|d|h)$/i,li=/^(?:body|html)$/i;"getBoundingClientRect"in q.documentElement?n.fn.offset=function(t){var r=this[0],o;if(t)return this.each(function(W){n.offset.setOffset(this,t,W)});if(!r||!r.ownerDocument)return null;if(r===r.ownerDocument.body)return n.offset.bodyOffset(r);try{o=r.getBoundingClientRect()}catch(W){}var u=r.ownerDocument,c=u.documentElement;if(!o||!n.contains(c,r))return o?{top:o.top,left:o.left}:{top:0,left:0};var h=u.body,v=s(u),g=c.clientTop||h.clientTop||0,S=c.clientLeft||h.clientLeft||0,P=v.pageYOffset||n.support.boxModel&&c.scrollTop||h.scrollTop,E=v.pageXOffset||n.support.boxModel&&c.scrollLeft||h.scrollLeft,O=o.top+P-g,L=o.left+E-S;return{top:O,left:L}}:n.fn.offset=function(t){var r=this[0];if(t)return this.each(function(O){n.offset.setOffset(this,t,O)});if(!r||!r.ownerDocument)return null;if(r===r.ownerDocument.body)return n.offset.bodyOffset(r);for(var o,u=r.offsetParent,c=r.ownerDocument,h=c.documentElement,v=c.body,g=c.defaultView,S=g?g.getComputedStyle(r,null):r.currentStyle,P=r.offsetTop,E=r.offsetLeft;(r=r.parentNode)&&r!==v&&r!==h&&!(n.support.fixedPosition&&S.position==="fixed");)o=g?g.getComputedStyle(r,null):r.currentStyle,P-=r.scrollTop,E-=r.scrollLeft,r===u&&(P+=r.offsetTop,E+=r.offsetLeft,n.support.doesNotAddBorder&&(!n.support.doesAddBorderForTableAndCells||!Da.test(r.nodeName))&&(P+=parseFloat(o.borderTopWidth)||0,E+=parseFloat(o.borderLeftWidth)||0),u=r.offsetParent),n.support.subtractsBorderForOverflowNotVisible&&o.overflow!=="visible"&&(P+=parseFloat(o.borderTopWidth)||0,E+=parseFloat(o.borderLeftWidth)||0),S=o;return(S.position==="relative"||S.position==="static")&&(P+=v.offsetTop,E+=v.offsetLeft),n.support.fixedPosition&&S.position==="fixed"&&(P+=Math.max(h.scrollTop,v.scrollTop),E+=Math.max(h.scrollLeft,v.scrollLeft)),{top:P,left:E}},n.offset={bodyOffset:function(t){var r=t.offsetTop,o=t.offsetLeft;return n.support.doesNotIncludeMarginInBodyOffset&&(r+=parseFloat(n.css(t,"marginTop"))||0,o+=parseFloat(n.css(t,"marginLeft"))||0),{top:r,left:o}},setOffset:function(t,r,o){var u=n.css(t,"position");u==="static"&&(t.style.position="relative");var c=n(t),h=c.offset(),v=n.css(t,"top"),g=n.css(t,"left"),S=(u==="absolute"||u==="fixed")&&n.inArray("auto",[v,g])>-1,P={},E={},O,L;S?(E=c.position(),O=E.top,L=E.left):(O=parseFloat(v)||0,L=parseFloat(g)||0),n.isFunction(r)&&(r=r.call(t,o,h)),r.top!=null&&(P.top=r.top-h.top+O),r.left!=null&&(P.left=r.left-h.left+L),"using"in r?r.using.call(t,P):c.css(P)}},n.fn.extend({position:function(){if(!this[0])return null;var t=this[0],r=this.offsetParent(),o=this.offset(),u=li.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&&!li.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=s(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=s(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(P){var E=n(this);E[o](u.call(this,P,E[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),S=parseFloat(g);return n.isNumeric(S)?S:g}return this.css(o,typeof u=="string"?u:u+"px")}}),e.jQuery=e.$=n})(window);(function(e){var i,s,f="",d="4.1.0",y=Math.PI,A=y/2,T="ontouchstart"in window,M=T?{down:"touchstart",move:"touchmove",up:"touchend",over:"touchstart",out:"touchend"}:{down:"mousedown",move:"mousemove",up:"mouseup",over:"mouseover",out:"mouseout"},R={backward:["bl","tl"],forward:["br","tr"],all:["tl","bl","tr","br","l","r"]},_=["single","double"],I=["ltr","rtl"],Z={acceleration:!0,display:"double",duration:600,page:1,gradients:!0,turnCorners:"bl,br",when:null},Y={cornerSize:100},ce=6,B={init:function(a){i="WebKitCSSMatrix"in window||"MozPerspective"in document.body.style,s=me(),f=ye();var l,n=0,m=this.data(),b=this.children();if(a=e.extend({width:this.width(),height:this.height(),direction:this.attr("dir")||this.css("direction")||"ltr"},Z,a),m.opts=a,m.pageObjs={},m.pages={},m.pageWrap={},m.pageZoom={},m.pagePlace={},m.pageMv=[],m.zoom=1,m.totalPages=a.pages||0,m.eventHandlers={touchStart:e.proxy(B._touchStart,this),touchMove:e.proxy(B._touchMove,this),touchEnd:e.proxy(B._touchEnd,this),start:e.proxy(B._eventStart,this)},a.when)for(l in a.when)xe(l,a.when)&&this.bind(l,a.when[l]);for(this.css({position:"relative",width:a.width,height:a.height}),this.turn("display",a.display),a.direction!==""&&this.turn("direction",a.direction),i&&!T&&a.acceleration&&this.transform(le(0,0,!0)),l=0;l<b.length;l++)e(b[l]).attr("ignore")!="1"&&this.turn("addPage",b[l],++n);return e(this).bind(M.down,m.eventHandlers.touchStart).bind("end",B._eventEnd).bind("pressed",B._eventPressed).bind("released",B._eventReleased).bind("flip",B._flip),e(this).parent().bind("start",m.eventHandlers.start),e(document).bind(M.move,m.eventHandlers.touchMove).bind(M.up,m.eventHandlers.touchEnd),this.turn("page",a.page),m.done=!0,this},addPage:function(a,l){var n,m,b=!1,N=this.data(),re=N.totalPages+1;if(N.destroying)return!1;if((n=/\bp([0-9]+)\b/.exec(e(a).attr("class")))&&(l=parseInt(n[1],10)),l){if(l==re)b=!0;else if(l>re)throw ue('Page "'+l+'" cannot be inserted')}else l=re,b=!0;return l>=1&&l<=re&&(N.display=="double"?m=l%2?" odd":" even":m="",N.done&&this.turn("stop"),l in N.pageObjs&&B._movePages.call(this,l,1),b&&(N.totalPages=re),N.pageObjs[l]=e(a).css({float:"left"}).addClass("page p"+l+m),!q()&&N.pageObjs[l].hasClass("hard")&&N.pageObjs[l].removeClass("hard"),B._addPage.call(this,l),B._removeFromDOM.call(this)),this},_addPage:function(a){var l=this.data(),n=l.pageObjs[a];if(n)if(B._necessPage.call(this,a)){if(!l.pageWrap[a]){l.pageWrap[a]=e("<div/>",{class:"page-wrapper",page:a,css:{position:"absolute",overflow:"hidden"}}),this.append(l.pageWrap[a]),l.pagePlace[a]||(l.pagePlace[a]=a,l.pageObjs[a].appendTo(l.pageWrap[a]));var m=B._pageSize.call(this,a,!0);n.css({width:m.width,height:m.height}),l.pageWrap[a].css(m)}l.pagePlace[a]==a&&B._makeFlip.call(this,a)}else l.pagePlace[a]=0,l.pageObjs[a]&&l.pageObjs[a].remove()},hasPage:function(a){return xe(a,this.data().pageObjs)},center:function(a){var l=this.data(),n=e(this).turn("size"),m=0;if(!l.noCenter){if(l.display=="double"){var b=this.turn("view",a||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 a=this,l=this.data(),n=["end","first","flip","last","pressed","released","start","turning","turned","zooming","missing"];if(Ae("destroying",this)!="prevented"){for(l.destroying=!0,e.each(n,function(m,b){a.unbind(b)}),this.parent().unbind("start",l.eventHandlers.start),e(document).unbind(M.move,l.eventHandlers.touchMove).unbind(M.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(a){var l=this.data();if(typeof a=="number"){if(a<.001||a>100)throw ue(a+" is not a value for zoom");if(Ae("zooming",this,[a,l.zoom])=="prevented")return this;var n=this.turn("size"),m=this.turn("view"),b=1/l.zoom,N=Math.round(n.width*b*a),re=Math.round(n.height*b*a);l.zoom=a,e(this).turn("stop").turn("size",N,re),l.opts.autoCenter&&this.turn("center"),B._updateShadow.call(this);for(var Q=0;Q<m.length;Q++)m[Q]&&l.pageZoom[m[Q]]!=l.zoom&&(this.trigger("zoomed",[m[Q],m,l.pageZoom[m[Q]],l.zoom]),l.pageZoom[m[Q]]=l.zoom);return this}else return l.zoom},_pageSize:function(a,l){var n=this.data(),m={};if(n.display=="single")m.width=this.width(),m.height=this.height(),l&&(m.top=0,m.left=0,m.right="auto");else{var b=this.width()/2,N=this.height();if(n.pageObjs[a].hasClass("own-size")?(m.width=n.pageObjs[a].width(),m.height=n.pageObjs[a].height()):(m.width=b,m.height=N),l){var re=a%2;m.top=(N-m.height)/2,n.direction=="ltr"?(m[re?"right":"left"]=b-m.width,m[re?"left":"right"]="auto"):(m[re?"left":"right"]=b-m.width,m[re?"right":"left"]="auto")}}return m},_makeFlip:function(a){var l=this.data();if(!l.pages[a]&&l.pagePlace[a]==a){var n=l.display=="single",m=a%2;l.pages[a]=l.pageObjs[a].css(B._pageSize.call(this,a)).flip({page:a,next:m||n?a+1:a-1,turn:this}).flip("disable",l.disabled),B._setPageLoc.call(this,a),l.pageZoom[a]=l.zoom}return l.pages[a]},_makeRange:function(){var a,l,n=this.data();if(!(n.totalPages<1))for(l=this.turn("range"),a=l[0];a<=l[1];a++)B._addPage.call(this,a)},range:function(a){var l,n,m,b,N=this.data();if(a=a||N.tpage||N.page||1,b=B._view.call(this,a),a<1||a>N.totalPages)throw ue('"'+a+'" is not a valid page');return b[1]=b[1]||b[0],b[0]>=1&&b[1]<=N.totalPages?(l=Math.floor((ce-2)/2),N.totalPages-b[1]>b[0]?(n=Math.min(b[0]-1,l),m=2*l-n):(m=Math.min(N.totalPages-b[1],l),n=2*l-m)):(n=ce-1,m=ce-1),[Math.max(1,b[0]-n),Math.min(N.totalPages,b[1]+m)]},_necessPage:function(a){if(a===0)return!0;var l=this.turn("range");return this.data().pageObjs[a].hasClass("fixed")||a>=l[0]&&a<=l[1]},_removeFromDOM:function(){var a,l=this.data();for(a in l.pageWrap)xe(a,l.pageWrap)&&!B._necessPage.call(this,a)&&B._removePageFromDOM.call(this,a)},_removePageFromDOM:function(a){var l=this.data();if(l.pages[a]){var n=l.pages[a].data();C._moveFoldingPage.call(l.pages[a],!1),n.f&&n.f.fwrapper&&n.f.fwrapper.remove(),l.pages[a].removeData(),l.pages[a].remove(),delete l.pages[a]}l.pageObjs[a]&&l.pageObjs[a].remove(),l.pageWrap[a]&&(l.pageWrap[a].remove(),delete l.pageWrap[a]),B._removeMv.call(this,a),delete l.pagePlace[a],delete l.pageZoom[a]},removePage:function(a){var l=this.data();if(a=="*")for(;l.totalPages!==0;)this.turn("removePage",l.totalPages);else{if(a<1||a>l.totalPages)throw ue("The page "+a+" doesn't exist");l.pageObjs[a]&&(this.turn("stop"),B._removePageFromDOM.call(this,a),delete l.pageObjs[a]),B._movePages.call(this,a,-1),l.totalPages=l.totalPages-1,l.page>l.totalPages?(l.page=null,B._fitPage.call(this,l.totalPages)):(B._makeRange.call(this),this.turn("update"))}return this},_movePages:function(a,l){var n,m=this,b=this.data(),N=b.display=="single",re=function(Q){var fe=Q+l,Re=fe%2,De=Re?" odd ":" even ";b.pageObjs[Q]&&(b.pageObjs[fe]=b.pageObjs[Q].removeClass("p"+Q+" odd even").addClass("p"+fe+De)),b.pagePlace[Q]&&b.pageWrap[Q]&&(b.pagePlace[fe]=fe,b.pageObjs[fe].hasClass("fixed")?b.pageWrap[fe]=b.pageWrap[Q].attr("page",fe):b.pageWrap[fe]=b.pageWrap[Q].css(B._pageSize.call(m,fe,!0)).attr("page",fe),b.pages[Q]&&(b.pages[fe]=b.pages[Q].flip("options",{page:fe,next:N||Re?fe+1:fe-1})),l&&(delete b.pages[Q],delete b.pagePlace[Q],delete b.pageZoom[Q],delete b.pageObjs[Q],delete b.pageWrap[Q]))};if(l>0)for(n=b.totalPages;n>=a;n--)re(n);else for(n=a;n<=b.totalPages;n++)re(n)},display:function(a){var l=this.data(),n=l.display;if(a===void 0)return n;if(e.inArray(a,_)==-1)throw ue('"'+a+'" is not a value for display');switch(a){case"single":l.pageObjs[0]||(this.turn("stop").css({overflow:"hidden"}),l.pageObjs[0]=e("<div />",{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=a,n){var m=this.turn("size");B._movePages.call(this,1,0),this.turn("size",m.width,m.height).turn("update")}return this},direction:function(a){var l=this.data();if(a===void 0)return l.direction;if(a=a.toLowerCase(),e.inArray(a,I)==-1)throw ue('"'+a+'" is not a value for direction');return a=="rtl"&&e(this).attr("dir","ltr").css({direction:"ltr"}),l.direction=a,l.done&&this.turn("size",e(this).width(),e(this).height()),this},animating:function(){return this.data().pageMv.length>0},corner:function(){var a,l,n=this.data();for(l in n.pages)if(xe(l,n.pages)&&(a=n.pages[l].flip("corner")))return a;return!1},data:function(){return this.data()},disable:function(a){var l,n=this.data(),m=this.turn("view");n.disabled=a===void 0||a===!0;for(l in n.pages)xe(l,n.pages)&&n.pages[l].flip("disable",n.disabled?!0:e.inArray(parseInt(l,10),m)==-1);return this},disabled:function(a){return a===void 0?this.data().disabled===!0:this.turn("disable",a)},size:function(a,l){if(a===void 0||l===void 0)return{width:this.width(),height:this.height()};this.turn("stop");var n,m,b=this.data(),N=b.display=="double"?a/2:a;this.css({width:a,height:l}),b.pageObjs[0]&&b.pageObjs[0].css({width:N,height:l});for(n in b.pageWrap)xe(n,b.pageWrap)&&(m=B._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 a,l=this.data();for(l.pages[0]&&(l.pageWrap[0].css({left:-this.width()}),l.pages[0].flip("resize",!0)),a=1;a<=l.totalPages;a++)l.pages[a]&&l.pages[a].flip("resize",!0);B._updateShadow.call(this),l.opts.autoCenter&&this.turn("center")},_removeMv:function(a){var l,n=this.data();for(l=0;l<n.pageMv.length;l++)if(n.pageMv[l]==a)return n.pageMv.splice(l,1),!0;return!1},_addMv:function(a){var l=this.data();B._removeMv.call(this,a),l.pageMv.push(a)},_view:function(a){var l=this.data();return a=a||l.page,l.display=="double"?a%2?[a-1,a]:[a,a+1]:[a]},view:function(a){var l=this.data(),n=B._view.call(this,a);return l.display=="double"?[n[0]>0?n[0]:0,n[1]<=l.totalPages?n[1]:0]:[n[0]>0&&n[0]<=l.totalPages?n[0]:0]},stop:function(a,l){if(this.turn("animating")){var n,m,b,N=this.data();for(N.tpage&&(N.page=N.tpage,delete N.tpage),n=0;n<N.pageMv.length;n++)!N.pageMv[n]||N.pageMv[n]===a||(b=N.pages[N.pageMv[n]],m=b.data().f.opts,b.flip("hideFoldedPage",l),l||C._moveFoldingPage.call(b,!1),m.force&&(m.next=m.page%2===0?m.page-1:m.page+1,delete m.force))}return this.turn("update"),this},pages:function(a){var l=this.data();if(a){if(a<l.totalPages)for(var n=l.totalPages;n>a;n--)this.turn("removePage",n);return l.totalPages=a,B._fitPage.call(this,l.page),this}else return l.totalPages},_missing:function(a){var l=this.data();if(!(l.totalPages<1)){var n,m=this.turn("range",a),b=[];for(n=m[0];n<=m[1];n++)l.pageObjs[n]||b.push(n);b.length>0&&this.trigger("missing",[b])}},_fitPage:function(a){var l=this.data(),n=this.turn("view",a);if(B._missing.call(this,a),!!l.pageObjs[a]){l.page=a,this.turn("stop");for(var m=0;m<n.length;m++)n[m]&&l.pageZoom[n[m]]!=l.zoom&&(this.trigger("zoomed",[n[m],n,l.pageZoom[n[m]],l.zoom]),l.pageZoom[n[m]]=l.zoom);B._removeFromDOM.call(this),B._makeRange.call(this),B._updateShadow.call(this),this.trigger("turned",[a,n]),this.turn("update"),l.opts.autoCenter&&this.turn("center")}},_turnPage:function(a){var l,n,m=this.data(),b=m.pagePlace[a],N=this.turn("view"),re=this.turn("view",a);if(m.page!=a){var Q=m.page;if(Ae("turning",this,[a,re])=="prevented"){Q==m.page&&e.inArray(b,m.pageMv)!=-1&&m.pages[b].flip("hideFoldedPage",!0);return}e.inArray(1,re)!=-1&&this.trigger("first"),e.inArray(m.totalPages,re)!=-1&&this.trigger("last")}m.display=="single"?(l=N[0],n=re[0]):N[1]&&a>N[1]?(l=N[1],n=re[0]):N[0]&&a<N[0]&&(l=N[0],n=re[1]);var fe=m.opts.turnCorners.split(","),Re=m.pages[l].data().f,De=Re.opts,ze=Re.point;B._missing.call(this,a),m.pageObjs[a]&&(this.turn("stop"),m.page=a,B._makeRange.call(this),m.tpage=n,De.next!=n&&(De.next=n,De.force=!0),this.turn("update"),Re.point=ze,Re.effect=="hard"?m.direction=="ltr"?m.pages[l].flip("turnPage",a>l?"r":"l"):m.pages[l].flip("turnPage",a>l?"l":"r"):m.direction=="ltr"?m.pages[l].flip("turnPage",fe[a>l?1:0]):m.pages[l].flip("turnPage",fe[a>l?0:1]))},page:function(a){var l=this.data();if(a===void 0)return l.page;if(!l.disabled&&!l.destroying){if(a=parseInt(a,10),a>0&&a<=l.totalPages)return a!=l.page&&(!l.done||e.inArray(a,this.turn("view"))!=-1?B._fitPage.call(this,a):B._turnPage.call(this,a)),this;throw ue("The page "+a+" does not exist")}},next:function(){return this.turn("page",Math.min(this.data().totalPages,B._view.call(this,this.data().page).pop()+1))},previous:function(){return this.turn("page",Math.max(1,B._view.call(this,this.data().page).shift()-1))},peel:function(a,l){var n=this.data(),m=this.turn("view");if(l=l===void 0?!0:l===!0,a===!1)this.turn("stop",null,l);else if(n.display=="single")n.pages[n.page].flip("peel",a,l);else{var b;n.direction=="ltr"?b=a.indexOf("l")!=-1?m[0]:m[1]:b=a.indexOf("l")!=-1?m[1]:m[0],n.pages[b]&&n.pages[b].flip("peel",a,l)}return this},_addMotionPage:function(){var a=e(this).data().f.opts,l=a.turn;l.data(),B._addMv.call(l,a.page)},_eventStart:function(a,l,n){var m=l.turn.data(),b=m.pageZoom[l.page];if(a.isDefaultPrevented()){B._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.next<l.page?l.next:l.page-1,l.force=!0):l.next=l.next>l.page?l.next:l.page+1),B._addMotionPage.call(a.target),B._updateShadow.call(l.turn)},_eventEnd:function(a,l,n){var m=e(a.target);m.data().f;var b=l.turn,N=b.data();if(n){var re=N.tpage||N.page;(re==l.next||re==l.page)&&(delete N.tpage,B._fitPage.call(b,re||l.next,!0))}else B._removeMv.call(b,l.page),B._updateShadow.call(b),b.turn("update")},_eventPressed:function(a){var l=e(a.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(a,l){var n,m=e(a.target),b=m.data().f,N=b.opts.turn,re=N.data();re.display=="single"?n=l.corner=="br"||l.corner=="tr"?l.x<m.width()/2:l.x>m.width()/2:n=l.x<0||l.x>m.width(),(new Date().getTime()-b.time<200||n)&&(a.preventDefault(),B._turnPage.call(N,b.opts.next)),re.mouseAction=!1},_flip:function(a){a.stopPropagation();var l=e(a.target).data().f.opts;l.turn.trigger("turn",[l.next]),l.turn.data().opts.autoCenter&&l.turn.turn("center",l.next)},_touchStart:function(){var a=this.data();for(var l in a.pages)if(xe(l,a.pages)&&C._eventStart.apply(a.pages[l],arguments)===!1)return!1},_touchMove:function(){var a=this.data();for(var l in a.pages)xe(l,a.pages)&&C._eventMove.apply(a.pages[l],arguments)},_touchEnd:function(){var a=this.data();for(var l in a.pages)xe(l,a.pages)&&C._eventEnd.apply(a.pages[l],arguments)},calculateZ:function(a){var l,n,m,b,N,re=this,Q=this.data(),fe=this.turn("view"),Re=fe[0]||fe[1],De=a.length-1,ze={pageZ:{},partZ:{},pageV:{}},at=function(tt){var He=re.turn("view",tt);He[0]&&(ze.pageV[He[0]]=!0),He[1]&&(ze.pageV[He[1]]=!0)};for(l=0;l<=De;l++)n=a[l],m=Q.pages[n].data().f.opts.next,b=Q.pagePlace[n],at(n),at(m),N=Q.pagePlace[m]==m?m:n,ze.pageZ[N]=Q.totalPages-Math.abs(Re-N),ze.partZ[b]=Q.totalPages*2-De+l;return ze},update:function(){var a,l=this.data();if(this.turn("animating")&&l.pageMv[0]!==0){var n,m,b=this.turn("calculateZ",l.pageMv),N=this.turn("corner"),re=this.turn("view"),Q=this.turn("view",l.tpage);for(a in l.pageWrap)xe(a,l.pageWrap)&&(m=l.pageObjs[a].hasClass("fixed"),l.pageWrap[a].css({display:b.pageV[a]||m?"":"none",zIndex:(l.pageObjs[a].hasClass("hard")?b.partZ[a]:b.pageZ[a])||(m?-1:0)}),(n=l.pages[a])&&(n.flip("z",b.partZ[a]||null),b.pageV[a]&&n.flip("resize"),l.tpage?n.flip("hover",!1).flip("disable",e.inArray(parseInt(a,10),l.pageMv)==-1&&a!=Q[0]&&a!=Q[1]):n.flip("hover",N===!1).flip("disable",a!=re[0]&&a!=re[1])))}else for(a in l.pageWrap)if(xe(a,l.pageWrap)){var fe=B._setPageLoc.call(this,a);l.pages[a]&&l.pages[a].flip("disable",l.disabled||fe!=1).flip("hover",!0).flip("z",null)}return this},_updateShadow:function(){var a,l,n,m=this.data(),b=this.width(),N=this.height(),re=m.display=="single"?b:b/2;a=this.turn("view"),m.shadow||(m.shadow=e("<div />",{class:"shadow",css:V(0,0,0).css}).appendTo(this));for(var Q=0;Q<m.pageMv.length&&!(!a[0]||!a[1]);Q++)a=this.turn("view",m.pages[m.pageMv[Q]].data().f.opts.next),l=this.turn("view",m.pageMv[Q]),a[0]=a[0]&&l[0],a[1]=a[1]&&l[1];switch(a[0]?a[1]?n=3:n=m.direction=="ltr"?2:1:n=m.direction=="ltr"?1:2,n){case 1:m.shadow.css({width:re,height:N,top:0,left:re});break;case 2:m.shadow.css({width:re,height:N,top:0,left:0});break;case 3:m.shadow.css({width:b,height:N,top:0,left:0});break}},_setPageLoc:function(a){var l=this.data(),n=this.turn("view"),m=0;if(a==n[0]||a==n[1]?m=1:(l.display=="single"&&a==n[0]+1||l.display=="double"&&a==n[0]-2||a==n[1]+2)&&(m=2),!this.turn("animating"))switch(m){case 1:l.pageWrap[a].css({zIndex:l.totalPages,display:""});break;case 2:l.pageWrap[a].css({zIndex:l.totalPages-1,display:""});break;case 0:l.pageWrap[a].css({zIndex:0,display:l.pageObjs[a].hasClass("fixed")?"":"none"});break}return m},options:function(a){if(a===void 0)return this.data().opts;var l=this.data();if(e.extend(l.opts,a),a.pages&&this.turn("pages",a.pages),a.page&&this.turn("page",a.page),a.display&&this.turn("display",a.display),a.direction&&this.turn("direction",a.direction),a.width&&a.height&&this.turn("size",a.width,a.height),a.when)for(var n in a.when)xe(n,a.when)&&this.unbind(n).bind(n,a.when[n]);return this},version:function(){return d}},C={init:function(a){return this.data({f:{disabled:!1,hover:!1,effect:this.hasClass("hard")?"hard":"sheet"}}),this.flip("options",a),C._addPageWrapper.call(this),this},setData:function(a){var l=this.data();return l.f=e.extend(l.f,a),this},options:function(a){var l=this.data().f;return a?(C.setData.call(this,{opts:e.extend({},l.opts||Y,a)}),this):l.opts},z:function(a){var l=this.data().f;return l.opts["z-index"]=a,l.fwrapper&&l.fwrapper.css({zIndex:a||parseInt(l.parent.css("z-index"),10)||0}),this},_cAllowed:function(){var a=this.data().f,l=a.opts.page,n=a.opts.turn.data(),m=l%2;return a.effect=="hard"?n.direction=="ltr"?[m?"r":"l"]:[m?"l":"r"]:n.display=="single"?l==1?n.direction=="ltr"?R.forward:R.backward:l==n.totalPages?n.direction=="ltr"?R.backward:R.forward:R.all:n.direction=="ltr"?R[m?"forward":"backward"]:R[m?"backward":"forward"]},_cornerActivated:function(a){var l=this.data().f,n=this.width(),m=this.height(),b={x:a.x,y:a.y,corner:""},N=l.opts.cornerSize;if(b.x<=0||b.y<=0||b.x>=n||b.y>=m)return!1;var re=C._cAllowed.call(this);switch(l.effect){case"hard":if(b.x>n-N)b.corner="r";else if(b.x<N)b.corner="l";else return!1;break;case"sheet":if(b.y<N)b.corner+="t";else if(b.y>=m-N)b.corner+="b";else return!1;if(b.x<=N)b.corner+="l";else if(b.x>=n-N)b.corner+="r";else return!1;break}return!b.corner||e.inArray(b.corner,re)==-1?!1:b},_isIArea:function(a){var l=this.data().f.parent.offset();return a=T&&a.originalEvent?a.originalEvent.touches[0]:a,C._cornerActivated.call(this,{x:a.pageX-l.left,y:a.pageY-l.top})},_c:function(a,l){switch(l=l||0,a){case"tl":return ee(l,l);case"tr":return ee(this.width()-l,l);case"bl":return ee(l,this.height()-l);case"br":return ee(this.width()-l,this.height()-l);case"l":return ee(l,0);case"r":return ee(this.width()-l,0)}},_c2:function(a){switch(a){case"tl":return ee(this.width()*2,0);case"tr":return ee(-this.width(),0);case"bl":return ee(this.width()*2,this.height());case"br":return ee(-this.width(),this.height());case"l":return ee(this.width()*2,0);case"r":return ee(-this.width(),0)}},_foldingPage:function(){var a=this.data().f;if(a){var l=a.opts;if(l.turn)return a=l.turn.data(),a.display=="single"?l.next>1||l.page>1?a.pageObjs[0]:null:a.pageObjs[l.next]}},_backGradient:function(){var a=this.data().f,l=a.opts.turn.data(),n=l.opts.gradients&&(l.display=="single"||a.opts.page!=2&&a.opts.page!=l.totalPages-1);return n&&!a.bshadow&&(a.bshadow=e("<div/>",V(0,0,1)).css({position:"",width:this.width(),height:this.height()}).appendTo(a.parent)),n},type:function(){return this.data().f.effect},resize:function(a){var l=this.data().f,n=l.opts.turn.data(),m=this.width(),b=this.height();switch(l.effect){case"hard":a&&(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(a){var N=Math.round(Math.sqrt(Math.pow(m,2)+Math.pow(b,2)));l.wrapper.css({width:N,height:N}),l.fwrapper.css({width:N,height:N}).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}),C._backGradient.call(this)&&l.bshadow.css({width:m,height:b})}if(l.parent.is(":visible")){var re=ke(l.parent[0]);l.fwrapper.css({top:re.top,left:re.left}),re=ke(l.opts.turn[0]),l.fparent.css({top:-re.top,left:-re.left})}this.flip("z",l.opts["z-index"]);break}},_addPageWrapper:function(){var a=this.data().f,l=a.opts.turn.data(),n=this.parent();if(a.parent=n,!a.wrapper)switch(a.effect){case"hard":var m={};m[f+"transform-style"]="preserve-3d",m[f+"backface-visibility"]="hidden",a.wrapper=e("<div/>",V(0,0,2)).css(m).appendTo(n).prepend(this),a.fpage=e("<div/>",V(0,0,1)).css(m).appendTo(n),l.opts.gradients&&(a.ashadow=e("<div/>",V(0,0,0)).hide().appendTo(n),a.bshadow=e("<div/>",V(0,0,0)));break;case"sheet":if(this.width(),this.height(),a.fparent=a.opts.turn.data().fparent,!a.fparent){var b=e("<div/>",{css:{"pointer-events":"none"}}).hide();b.data().flips=0,b.css(V(0,0,"auto","visible").css).appendTo(a.opts.turn),a.opts.turn.data().fparent=b,a.fparent=b}this.css({position:"absolute",top:0,left:0,bottom:"auto",right:"auto"}),a.wrapper=e("<div/>",V(0,0,this.css("z-index"))).appendTo(n).prepend(this),a.fwrapper=e("<div/>",V(n.offset().top,n.offset().left)).hide().appendTo(a.fparent),a.fpage=e("<div/>",V(0,0,0,"visible")).css({cursor:"default"}).appendTo(a.fwrapper),l.opts.gradients&&(a.ashadow=e("<div/>",V(0,0,1)).appendTo(a.fpage)),C.setData.call(this,a);break}C.resize.call(this,!0)},_fold:function(a){var l=this.data().f,n=l.opts.turn.data(),m=C._c.call(this,a.corner),b=this.width(),N=this.height();switch(l.effect){case"hard":a.corner=="l"?a.x=Math.min(Math.max(a.x,0),b*2):a.x=Math.max(Math.min(a.x,b),-b);var re,Q,fe,Re,De,ze=n.totalPages,at=l.opts["z-index"]||ze,tt={overflow:"visible"},He=m.x?(m.x-a.x)/b:a.x/b,G=He*90,he=G<90;switch(a.corner){case"l":Re="0% 50%",De="100% 50%",he?(re=0,Q=l.opts.next-1>0,fe=1):(re="100%",Q=l.opts.page+1<ze,fe=0);break;case"r":Re="100% 50%",De="0% 50%",G=-G,b=-b,he?(re=0,Q=l.opts.next+1<ze,fe=0):(re="-100%",Q=l.opts.page!=1,fe=1);break}tt[f+"perspective-origin"]=De,l.wrapper.transform("rotateY("+G+"deg)translate3d(0px, 0px, "+(this.attr("depth")||0)+"px)",De),l.fpage.transform("translateX("+b+"px) rotateY("+(180+G)+"deg)",Re),l.parent.css(tt),he?(He=-He+1,l.wrapper.css({zIndex:at+1}),l.fpage.css({zIndex:at})):(He=He-1,l.wrapper.css({zIndex:at}),l.fpage.css({zIndex:at+1})),n.opts.gradients&&(Q?l.ashadow.css({display:"",left:re,backgroundColor:"rgba(0,0,0,"+.5*He+")"}).transform("rotateY(0deg)"):l.ashadow.hide(),l.bshadow.css({opacity:-He+1}),he?l.bshadow.parent()[0]!=l.wrapper[0]&&l.bshadow.appendTo(l.wrapper):l.bshadow.parent()[0]!=l.fpage[0]&&l.bshadow.appendTo(l.fpage),Be(l.bshadow,ee(fe*100,0),ee((-fe+1)*100,0),[[0,"rgba(0,0,0,0.3)"],[1,"rgba(0,0,0,0)"]],2));break;case"sheet":var oe=this,Ee=0,Ne,Xe,Ye,nt,Qe,Tt,en,dt=ee(0,0),vt=ee(0,0),Ge=ee(0,0),pn=C._foldingPage.call(this),Mt=n.opts.acceleration,_t=l.wrapper.height(),wt=a.corner.substr(0,1)=="t",gt=a.corner.substr(1,1)=="l",mt=function(){var qe=ee(0,0),Ze=ee(0,0);qe.x=m.x?m.x-a.x:a.x,s?qe.y=m.y?m.y-a.y:a.y:qe.y=0,Ze.x=gt?b-qe.x/2:a.x+qe.x/2,Ze.y=qe.y/2;var Ie=A-Math.atan2(qe.y,qe.x),X=Ie-Math.atan2(Ze.y,Ze.x),ae=Math.max(0,Math.sin(X)*Math.sqrt(Math.pow(Ze.x,2)+Math.pow(Ze.y,2)));if(Ee=be(Ie),Ge=ee(ae*Math.sin(Ie),ae*Math.cos(Ie)),Ie>A&&(Ge.x=Ge.x+Math.abs(Ge.y*qe.y/qe.x),Ge.y=0,Math.round(Ge.x*Math.tan(y-Ie))<N))return a.y=Math.sqrt(Math.pow(N,2)+2*Ze.x*qe.x),wt&&(a.y=N-a.y),mt();if(Ie>A){var ge=y-Ie,_e=_t-N/Math.sin(ge);dt=ee(Math.round(_e*Math.cos(ge)),Math.round(_e*Math.sin(ge))),gt&&(dt.x=-dt.x),wt&&(dt.y=-dt.y)}Ne=Math.round(Ge.y/Math.tan(Ie)+Ge.x);var We=b-Ne,Ke=We*Math.cos(Ie*2),lt=We*Math.sin(Ie*2);if(vt=ee(Math.round(gt?We-Ke:Ne+Ke),Math.round(wt?lt:N-lt)),n.opts.gradients){Qe=We*Math.sin(Ie);var Fe=C._c2.call(oe,a.corner),$e=Math.sqrt(Math.pow(Fe.x-a.x,2)+Math.pow(Fe.y-a.y,2))/b;en=Math.sin(A*($e>1?2-$e:$e)),Tt=Math.min($e,1),nt=Qe>100?(Qe-100)/Qe:0,Xe=ee(Qe*Math.sin(Ie)/b*100,Qe*Math.cos(Ie)/N*100),C._backGradient.call(oe)&&(Ye=ee(Qe*1.2*Math.sin(Ie)/b*100,Qe*1.2*Math.cos(Ie)/N*100),gt||(Ye.x=100-Ye.x),wt||(Ye.y=100-Ye.y))}return Ge.x=Math.round(Ge.x),Ge.y=Math.round(Ge.y),!0},Dt=function(qe,Ze,Ie,X){var ae=["0","auto"],ge=(b-_t)*Ie[0]/100,_e=(N-_t)*Ie[1]/100,We={left:ae[Ze[0]],top:ae[Ze[1]],right:ae[Ze[2]],bottom:ae[Ze[3]]},Ke={},lt=X!=90&&X!=-90?gt?-1:1:0,Fe=Ie[0]+"% "+Ie[1]+"%";oe.css(We).transform(de(X)+le(qe.x+lt,qe.y,Mt),Fe),l.fpage.css(We).transform(de(X)+le(qe.x+vt.x-dt.x-b*Ie[0]/100,qe.y+vt.y-dt.y-N*Ie[1]/100,Mt)+de((180/X-2)*X),Fe),l.wrapper.transform(le(-qe.x+ge-lt,-qe.y+_e,Mt)+de(-X),Fe),l.fwrapper.transform(le(-qe.x+dt.x+ge,-qe.y+dt.y+_e,Mt)+de(-X),Fe),n.opts.gradients&&(Ie[0]&&(Xe.x=100-Xe.x),Ie[1]&&(Xe.y=100-Xe.y),Ke["box-shadow"]="0 0 20px rgba(0,0,0,"+.5*en+")",pn.css(Ke),Be(l.ashadow,ee(gt?100:0,wt?0:100),ee(Xe.x,Xe.y),[[nt,"rgba(0,0,0,0)"],[(1-nt)*.8+nt,"rgba(0,0,0,"+.2*Tt+")"],[1,"rgba(255,255,255,"+.2*Tt+")"]],3),C._backGradient.call(oe)&&Be(l.bshadow,ee(gt?0:100,wt?0:100),ee(Ye.x,Ye.y),[[.6,"rgba(0,0,0,0)"],[.8,"rgba(0,0,0,"+.3*Tt+")"],[1,"rgba(0,0,0,0)"]],3))};switch(a.corner){case"l":break;case"r":break;case"tl":a.x=Math.max(a.x,1),mt(),Dt(Ge,[1,0,0,1],[100,0],Ee);break;case"tr":a.x=Math.min(a.x,b-1),mt(),Dt(ee(-Ge.x,Ge.y),[0,0,0,1],[0,0],-Ee);break;case"bl":a.x=Math.max(a.x,1),mt(),Dt(ee(Ge.x,-Ge.y),[1,1,0,0],[100,100],-Ee);break;case"br":a.x=Math.min(a.x,b-1),mt(),Dt(ee(-Ge.x,-Ge.y),[0,1,1,0],[0,100],Ee);break}break}l.point=a},_moveFoldingPage:function(a){var l=this.data().f;if(l){var n=l.opts.turn,m=n.data(),b=m.pagePlace;if(a){var N=l.opts.next;if(b[N]!=l.opts.page){l.folding&&C._moveFoldingPage.call(this,!1);var re=C._foldingPage.call(this);re.appendTo(l.fpage),b[N]=l.opts.page,l.folding=N}n.turn("update")}else if(l.folding){if(m.pages[l.folding]){var Q=m.pages[l.folding].data().f;m.pageObjs[l.folding].appendTo(Q.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(a,l){var n=C._foldingPage.call(this),m=this.data(),b=m.f,N=b.visible;if(n){if(!N||!b.point||b.point.corner!=a.corner){var re=b.status=="hover"||b.status=="peel"||b.opts.turn.data().mouseAction?a.corner:null;if(N=!1,Ae("start",this,[b.opts,re])=="prevented")return!1}if(l){var Q=this,fe=b.point&&b.point.corner==a.corner?b.point:C._c.call(this,a.corner,1);this.animatef({from:[fe.x,fe.y],to:[a.x,a.y],duration:500,frame:function(Re){a.x=Math.round(Re[0]),a.y=Math.round(Re[1]),C._fold.call(Q,a)}})}else C._fold.call(this,a),m.effect&&!m.effect.turning&&this.animatef(!1);if(!N)switch(b.effect){case"hard":b.visible=!0,C._moveFoldingPage.call(this,!0),b.fpage.show(),b.opts.shadows&&b.bshadow.show();break;case"sheet":b.visible=!0,b.fparent.show().data().flips++,C._moveFoldingPage.call(this,!0),b.fwrapper.show(),b.bshadow&&b.bshadow.show();break}return!0}return!1},hide:function(){var a=this.data().f,l=a.opts.turn.data(),n=C._foldingPage.call(this);switch(a.effect){case"hard":l.opts.gradients&&(a.bshadowLoc=0,a.bshadow.remove(),a.ashadow.hide()),a.wrapper.transform(""),a.fpage.hide();break;case"sheet":--a.fparent.data().flips===0&&a.fparent.hide(),this.css({left:0,top:0,right:"auto",bottom:"auto"}).transform(""),a.wrapper.transform(""),a.fwrapper.hide(),a.bshadow&&a.bshadow.hide(),n.transform("");break}return a.visible=!1,this},hideFoldedPage:function(a){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(a){var N=C._c.call(this,m.corner),re=m.corner.substr(0,1)=="t",Q=re?Math.min(0,m.y-N.y)/2:Math.max(0,m.y-N.y)/2,fe=ee(m.x,m.y+Q),Re=ee(N.x,N.y-Q);this.animatef({from:0,to:1,frame:function(De){var ze=ve(m,fe,Re,N,De);m.x=ze.x,m.y=ze.y,C._fold.call(n,m)},complete:b,duration:800,hiding:!0})}else this.animatef(!1),b()}},turnPage:function(a){var l=this,n=this.data().f,m=n.opts.turn.data();a={corner:n.corner?n.corner.corner:a||C._cAllowed.call(this)[0]};var b=n.point||C._c.call(this,a.corner,n.opts.turn?m.opts.elevation:0),N=C._c2.call(this,a.corner);this.trigger("flip").animatef({from:0,to:1,frame:function(re){var Q=ve(b,b,N,N,re);a.x=Q.x,a.y=Q.y,C._showFoldedPage.call(l,a)},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(a){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=C._isIArea.call(this,a),l.corner&&C._foldingPage.call(this))return this.trigger("pressed",[l.point]),C._showFoldedPage.call(this,l.corner),!1;l.corner=null}},_eventMove:function(a){var l=this.data().f;if(!l.disabled){if(a=T?a.originalEvent.touches:[a],l.corner){var n=l.parent.offset();l.corner.x=a[0].pageX-n.left,l.corner.y=a[0].pageY-n.top,C._showFoldedPage.call(this,l.corner)}else if(l.hover&&!this.data().effect&&this.is(":visible")){var m=C._isIArea.call(this,a[0]);if(m){if(l.effect=="sheet"&&m.corner.length==2||l.effect=="hard"){l.status="hover";var b=C._c.call(this,m.corner,l.opts.cornerSize/2);m.x=b.x,m.y=b.y,C._showFoldedPage.call(this,m,!0)}}else l.status=="hover"&&(l.status="",C.hideFoldedPage.call(this,!0))}}},_eventEnd:function(){var a=this.data().f,l=a.corner;!a.disabled&&l&&Ae("released",this,[a.point||l])!="prevented"&&C.hideFoldedPage.call(this,!0),a.corner=null},disable:function(a){return C.setData.call(this,{disabled:a}),this},hover:function(a){return C.setData.call(this,{hover:a}),this},peel:function(a,l){var n=this.data().f;if(a){if(e.inArray(a,R.all)==-1)throw ue("Corner "+a+" is not permitted");if(e.inArray(a,C._cAllowed.call(this))!=-1){var m=C._c.call(this,a,n.opts.cornerSize/2);n.status="peel",C._showFoldedPage.call(this,{corner:a,x:m.x,y:m.y},l)}}else n.status="",C.hideFoldedPage.call(this,l);return this}};function $(a,l,n){if(!n[0]||typeof n[0]=="object")return l.init.apply(a,n);if(l[n[0]])return l[n[0]].apply(a,Array.prototype.slice.call(n,1));throw ue(n[0]+" is not a method or property")}function V(a,l,n,m){return{css:{position:"absolute",top:a,left:l,overflow:m||"hidden",zIndex:n||"auto"}}}function ve(a,l,n,m,b){var N=1-b,re=N*N*N,Q=b*b*b;return ee(Math.round(re*a.x+3*b*N*N*l.x+3*b*b*N*n.x+Q*m.x),Math.round(re*a.y+3*b*N*N*l.y+3*b*b*N*n.y+Q*m.y))}function be(a){return a/y*180}function ee(a,l){return{x:a,y:l}}function me(){var a;if(a=/AppleWebkit\/([0-9\.]+)/i.exec(navigator.userAgent)){var l=parseFloat(a[1]);return l>534.3}else return!0}function le(a,l,n){return i&&n?" translate3d("+a+"px,"+l+"px, 0px) ":" translate("+a+"px, "+l+"px) "}function de(a){return" rotate("+a+"deg) "}function xe(a,l){return Object.prototype.hasOwnProperty.call(l,a)}function ye(){for(var a=["Moz","Webkit","Khtml","O","ms"],l=a.length,n="";l--;)a[l]+"Transform"in document.body.style&&(n="-"+a[l].toLowerCase()+"-");return n}function Pe(){var a,l=document.createElement("fakeelement"),n={transition:"transitionend",OTransition:"oTransitionEnd",MSTransition:"transitionend",MozTransition:"transitionend",WebkitTransition:"webkitTransitionEnd"};for(a in n)if(l.style[a]!==void 0)return n[a]}function Be(a,l,n,m,b){var N,re=[];if(f=="-webkit-"){for(N=0;N<b;N++)re.push("color-stop("+m[N][0]+", "+m[N][1]+")");a.css({"background-image":"-webkit-gradient(linear, "+l.x+"% "+l.y+"%,"+n.x+"% "+n.y+"%, "+re.join(",")+" )"})}else{l={x:l.x/100*a.width(),y:l.y/100*a.height()},n={x:n.x/100*a.width(),y:n.y/100*a.height()};var Q=n.x-l.x,fe=n.y-l.y,Re=Math.atan2(fe,Q),De=Re-Math.PI/2,ze=Math.abs(a.width()*Math.sin(De))+Math.abs(a.height()*Math.cos(De)),at=Math.sqrt(fe*fe+Q*Q),tt=ee(n.x<l.x?a.width():0,n.y<l.y?a.height():0),He=Math.tan(Re),G=-1/He,he=(G*tt.x-tt.y-He*l.x+l.y)/(G-He),oe={x:he,y:G*he-G*tt.x+tt.y},Ee=Math.sqrt(Math.pow(oe.x-l.x,2)+Math.pow(oe.y-l.y,2));for(N=0;N<b;N++)re.push(" "+m[N][1]+" "+(Ee+at*m[N][0])*100/ze+"%");a.css({"background-image":f+"linear-gradient("+-Re+"rad,"+re.join(",")+")"})}}function Ae(a,l,n){var m=e.Event(a);return l.trigger(m,n),m.isDefaultPrevented()?"prevented":m.isPropagationStopped()?"stopped":""}function ue(a){function l(n){this.name="TurnJsError",this.message=n}return l.prototype=new Error,l.prototype.constructor=l,new l(a)}function ke(a){var l={top:0,left:0};do l.left+=a.offsetLeft,l.top+=a.offsetTop;while(a=a.offsetParent);return l}function q(){return navigator.userAgent.indexOf("MSIE 9.0")==-1}window.requestAnim=function(){return window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||window.oRequestAnimationFrame||window.msRequestAnimationFrame||function(a){window.setTimeout(a,1e3/60)}}(),e.extend(e.fn,{flip:function(){return $(e(this[0]),C,arguments)},turn:function(){return $(e(this[0]),B,arguments)},transform:function(a,l){var n={};return l&&(n[f+"transform-origin"]=l),n[f+"transform"]=a,this.css(n)},animatef:function(a){var l=this.data();if(l.effect&&l.effect.stop(),a){a.to.length||(a.to=[a.to]),a.from.length||(a.from=[a.from]);for(var n=[],m=a.to.length,b=!0,N=this,re=new Date().getTime(),Q=function(){if(!(!l.effect||!b)){for(var Re=[],De=Math.min(a.duration,new Date().getTime()-re),ze=0;ze<m;ze++)Re.push(l.effect.easing(1,De,a.from[ze],n[ze],a.duration));a.frame(m==1?Re[0]:Re),De==a.duration?(delete l.effect,N.data(l),a.complete&&a.complete()):window.requestAnim(Q)}},fe=0;fe<m;fe++)n.push(a.to[fe]-a.from[fe]);l.effect=e.extend({stop:function(){b=!1},easing:function(Re,De,ze,at,tt){return at*Math.sqrt(1-(De=De/tt-1)*De)+ze}},a),this.data(l),Q()}else delete l.effect}}),e.isTouch=T,e.mouseEvents=M,e.cssPrefix=ye,e.cssTransitionEnd=Pe,e.findPos=ke})(jQuery);const Fn={grades:[{text:"全部年级",value:""},{text:"一年级",value:1},{text:"二年级",value:2},{text:"三年级",value:3},{text:"四年级",value:4},{text:"五年级",value:5},{text:"六年级",value:6},{text:"七年级",value:7},{text:"八年级",value:8},{text:"九年级",value:9}],bookTypes:{LAST:"上册",NEXT:"下册"}},Np=ft({name:"courseware-list",setup(){ao();const e=()=>{so({api:"goBack"})},i=xr({currentGradeNum:0,page:1,rows:10,type:"COURSEWARE"}),s=Ue(()=>Fn.grades.map((C,$)=>({...C,color:i.currentGradeNum===$?"var(--van-primary-color)":""}))),f=(C,$)=>{i.currentGradeNum=$,M()},d=xr({list:[],favoriteList:[],tab:"all",details:[],bookData:{},showBook:!1,book:{}}),y=async()=>{var $;const C=await dp({...i,currentGradeNum:i.currentGradeNum?i.currentGradeNum:""});(C==null?void 0:C.code)===200&&Array.isArray(($=C==null?void 0:C.data)==null?void 0:$.rows)&&(d.list=C.data.rows.map(V=>{const ve=Fn.bookTypes[V.bookType];return V.name=`${V.name}(${ve})`,V.load=!1,V.key=Date.now()+V.id,V}))},A=async()=>{var $,V,ve;const C=await hp({clientType:"STUDENT",userId:(V=($=rs.user)==null?void 0:$.data)==null?void 0:V.id,page:i.page,rows:i.rows,currentGradeNum:i.currentGradeNum?i.currentGradeNum:""});(C==null?void 0:C.code)===200&&Array.isArray((ve=C==null?void 0:C.data)==null?void 0:ve.rows)&&(d.list=C.data.rows.map(be=>{const ee=Fn.bookTypes[be.bookType];return be.name=`${be.name}(${ee})`,be.load=!1,be.key=Date.now()+be.id,be}))},T=()=>{d.tab==="all"&&y(),d.tab==="favorite"&&A()},M=()=>{i.page=1,T()};Ft(()=>{T()});const R=async C=>{C.favoriteFlag?await pp({lessonCoursewareId:C.id}):await vp({lessonCoursewareId:C.id})};let _=null;const I=(C,$=300)=>{_&&clearTimeout(_),_=setTimeout(C,$)},Z=async C=>{var V;const $=await gp(C.id);($==null?void 0:$.code)==200&&Array.isArray((V=$==null?void 0:$.data)==null?void 0:V.lessonList)&&(d.details=$.data.lessonList||[],d.bookData=$.data,console.log("🚀 ~ data.details:",d.details))},Y=C=>{const $=document.querySelector(`[data-id="${C}"]`);if(!$)return;const V=$.getBoundingClientRect();d.book=V},ce=C=>{requestAnimationFrame(()=>{requestAnimationFrame(()=>{C()})})},B=async C=>{await Z(C),Y(C.id),ce(()=>{d.showBook=!0})};return()=>Ce("div",{class:ht.container},[Ce("div",{class:ht.head,style:{opacity:d.showBook?0:""}},[Ce("div",{class:ht.back,onClick:e},[Ce("img",{src:ca},null)]),Ce(Rs,{class:ht.tabs,active:d.tab,"onUpdate:active":C=>d.tab=C,onChange:()=>M()},{default:()=>[Ce(vi,{title:"全部教材",name:"all"},null),Ce(vi,{title:"我的收藏",name:"favorite"},null)]}),Ce(kl,{class:ht.popover,actions:s.value,onSelect:f},{reference:()=>Ce(ns,{class:ht.downBtn,round:!0,size:"small"},{default:()=>[Fn.grades[i.currentGradeNum].text," ",Ce("img",{class:ht.icon,src:fp},null)]})})]),Ce("div",{class:ht.content},[Ce("div",{class:ht.wrap},[d.list.map((C,$)=>Ce("div",{class:[ht.wrapItem,d.bookData.id===C.id&&d.showBook?ht.wrapItemHide:""],key:C.key,onClick:()=>B(C)},[Ce(Vh,{"data-id":C.id,class:[ht.cover,C.load?ht.loaded:""],objectFit:"cover",src:C.coverImg,onLoad:()=>{C.load=!0},onError:()=>{C.load=!0}},null),Ce("div",{class:ht.name},[C.name]),Ce("div",{class:ht.favoriteBtn,onClick:V=>{V.stopPropagation(),d.tab==="all"&&(C.favoriteFlag=!C.favoriteFlag,I(()=>R(C)))}},[Ce(wp,{isFavorite:C.favoriteFlag},null)])]))])]),Ce(Op,{show:d.showBook,bookData:d.bookData,rect:d.book,onClose:()=>{d.showBook=!1}},null)])}});export{Fn as BOOK_DATA,Np as default};