!function(){const e=["bookVersionId","currentGradeNum"];function t(e,t){if(null==e)return{};var n,r,a=function(e,t){if(null==e)return{};var n,r,a={},i=Object.keys(e);for(r=0;r=0||(a[n]=e[n]);return a}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(a[n]=e[n])}return a}function n(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function r(e){for(var t=1;t{i=e.d,s=e.a,l=e.x,c=e.r,u=e.y,d=e.a7,p=e.V,f=e.A,h=e.F,g=e.C,m=e.q,v=e.M,y=e.al,b=e.w,x=e.z,w=e.E,_=e.a5,A=e.e,k=e.h,T=e.a0,C=e.Q},e=>{N=e.a,S=e.b,P=e.c,M=e.d,E=e.e,j=e.f,F=e.g,D=e.h},e=>{O=e.q},e=>{L=e.g,B=e.s,I=e.a,z=e.b},e=>{W=e.d},e=>{H=e.N},e=>{R=e.T,q=e.a},e=>{V=e.T},null,null,null],execute:function(){const X={container:"_container_1xc3a_1",head:"_head_1xc3a_10",back:"_back_1xc3a_18",tabs:"_tabs_1xc3a_21",downBtn:"_downBtn_1xc3a_37",activeBtn:"_activeBtn_1xc3a_48",icon:"_icon_1xc3a_48",iconUp:"_iconUp_1xc3a_73",popover:"_popover_1xc3a_78",content:"_content_1xc3a_97",wrap:"_wrap_1xc3a_103",emtpyWrap:"_emtpyWrap_1xc3a_109",wrapItem:"_wrapItem_1xc3a_120",item:"_item_1xc3a_130",name:"_name_1xc3a_161",favoriteBtn:"_favoriteBtn_1xc3a_168",containerImg:"_containerImg_1xc3a_174",cover:"_cover_1xc3a_200",loaded:"_loaded_1xc3a_230",book:"_book_1xc3a_233",bookWrap:"_bookWrap_1xc3a_247",show:"_show_1xc3a_255",popupContainer:"_popupContainer_1xc3a_260",searchList:"_searchList_1xc3a_266",popoverTitle:"_popoverTitle_1xc3a_272",popupList:"_popupList_1xc3a_288",btnGroup:"_btnGroup_1xc3a_310",btnSure:"_btnSure_1xc3a_325"},U=""+new URL("icon_back-b80c2fc2.svg",a.meta.url).href,G=i({name:"the-favorite",props:{isFavorite:{type:Boolean,default:!1}},setup:e=>()=>s("div",{class:["favoriteWrap",e.isFavorite?"liked":""]},[s("img",{class:"favoritIcon",src:e.isFavorite?"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":"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"},null)])}),K={book:"_book_1xtvx_1",back:"_back_1xtvx_11",bookHide:"_bookHide_1xtvx_16",wrap:"_wrap_1xtvx_36",wrapItem:"_wrapItem_1xtvx_53",item:"_item_1xtvx_60",des:"_des_1xtvx_69",icon:"_icon_1xtvx_74",last:"_last_1xtvx_79"},Q=i({name:"courseware-detail",emits:["close"],setup(e,{emit:t}){const n=l({box:{},show:!1,steps:[{ele:"",eleRect:{},img:L("courseware-detail1.png"),handStyle:{top:"-0.4rem",left:"0.98rem",transform:"rotate(-90deg)"},boxStyle:{borderRadius:"0.1rem"},imgStyle:{top:"-1.3rem",left:"2.2rem"},btnsStyle:{top:"1.5rem",left:"3.5rem"}}],step:0}),a=c(!1),i=c({}),m=function(){var e=o((function*(){try{const t=yield I({guideTag:"guideInfo"});var e;if(t.data)i.value=JSON.parse(null===(e=t.data)||void 0===e?void 0:e.guideValue)||null;else i.value={};i.value&&i.value.coursewareDetail?a.value=!1:a.value=!0}catch(t){console.log(t)}}));return function(){return e.apply(this,arguments)}}();m();const v=()=>{console.log(`coursewareDetail-${n.step}`);const e=document.getElementById(`coursewareDetail-${n.step}`);if(e){const t=e.getBoundingClientRect();n.box={left:t.x+"px",top:t.y+"px",width:t.width+"px",height:t.height+"px"}}else b()};u((()=>{v(),window.addEventListener("resize",y)}));const y=()=>{v()};d((()=>{window.removeEventListener("resize",y)}));const b=()=>{n.step>=2?x():(n.step=n.step+1,v())},x=function(){var e=o((function*(){i.value?i.value.coursewareDetail=!0:i.value={coursewareDetail:!0};try{yield z({guideTag:"guideInfo",guideValue:JSON.stringify(i.value)})}catch(e){console.log(e)}a.value=!1}));return function(){return e.apply(this,arguments)}}();return()=>s(p,{teleport:"body",overlay:!1,closeOnClickOverlay:!1,class:["popup-custom",B.guidePopup],show:a.value,"onUpdate:show":e=>a.value=e},{default:()=>[s("div",{class:B.content,onClick:()=>b()},[n.step!=n.steps.length-1&&s("div",{class:B.backBtn,onClick:e=>{e.stopPropagation(),x()}},[f("跳过")]),s("div",{class:B.box,style:r(r({},n.box),n.steps[n.step].boxStyle),id:`modeType-${n.step}`},[n.steps.map(((e,t)=>{var r,a;return s("div",{onClick:e=>e.stopPropagation(),class:B.item,style:{display:t===n.step?"":"none",left:`${null===(r=e.eleRect)||void 0===r?void 0:r.left}px`,top:`${null===(a=e.eleRect)||void 0===a?void 0:a.top}px`}},[s("img",{class:B.img,style:e.imgStyle,src:e.img},null),s("img",{class:B.iconHead,style:e.handStyle,src:L("indexDot.png")},null),s("div",{class:B.btns,style:e.btnsStyle},[n.step+1==n.steps.length?s(h,null,[s(g,{class:[B.btn,B.endBtn],round:!0,type:"primary",onClick:()=>x()},{default:()=>[f("完成")]})]):s(g,{class:B.btn,round:!0,type:"primary",onClick:()=>b()},{default:()=>[f("下一步 ("),n.step+1,f("/"),n.steps.length,f(")")]})])])}))])])]})}}),Y=i({name:"the-book",props:{bookData:{type:Object,default:()=>({})},tab:{type:String,default:""},show:{type:Boolean,default:!1},rect:{type:Object,default:()=>({})}},emits:["close"],setup(e,{emit:t}){var n,r,a,i;m(),console.log(v.user.data.phone);const d="lastTime"+(null!==(n=null===(r=v)||void 0===r||null===(a=r.user)||void 0===a||null===(i=a.data)||void 0===i?void 0:i.phone)&&void 0!==n?n:""),p=l({show:!1,width:0,height:0,transform:"",list:[],lastTime:localStorage.getItem(d)}),g=c(!1),A=function(){var e=o((function*(){console.log("初始化完成")}));return function(){return e.apply(this,arguments)}}();let k=null,T=null;const C=()=>{clearTimeout(T);const e=document.querySelector(".bookWrap");k.turn("page",1),e&&(e.style.transform=p.transform),t("close"),setTimeout((()=>{e.style.transition="",e.style.transform="",p.show=!1,p.list=[]}),1e3)};u(o((function*(){yield A(),y("webViewOnResume",(()=>{p.lastTime=localStorage.getItem(d)}))})));b((()=>e.show),(()=>{e.show&&((()=>{var t;if(null===(t=e.bookData)||void 0===t||!t.lessonList)return;const n=Math.floor((.8*document.body.clientHeight-40)/50);console.log("🚀 ~ step:",n);const r=[];let a=[];for(let i=0;i=n?(r.push([...a]),a=[{name:t.name}]):a.push({name:t.name});for(let e=0;e=n?(r.push([...a]),a=[t.knowledgeList[e]]):a.push(t.knowledgeList[e])}a.length&&r.push(a),p.list=r})(),x((()=>{(()=>{k=window.$("#flipbook");const e=.8*document.body.clientHeight;p.height=e,p.width=e*(210/297)*2,k.turn({autoCenter:!0,duration:1e3,acceleration:!0,elevation:50,width:p.width,height:p.height,gradients:!0})})(),requestAnimationFrame((()=>{(()=>{const t=document.querySelector(".bookWrap");if(t){const n=t.getBoundingClientRect(),r=e.rect.width/(n.width/2),a=e.rect.height/n.height,i=`scale3d(${r}, ${a}, 1) translate(${(n.width/2*(r-1)/2+e.rect.x-n.x-n.width/4)/r}px, ${(n.height*(a-1)/2+e.rect.y-n.y)/a}px)`;t.style.transform=p.transform=i,t.style.transition="transform 0s",x((()=>{requestAnimationFrame((()=>{requestAnimationFrame((()=>{t.style.transition="transform 1s",t.style.transform="",p.show=!0,T=setTimeout((()=>{k.turn("page",2),setTimeout((()=>{g.value=!0}),1500)}),500)}))}))}))}})()}))})))}));return()=>s("div",{class:[K.book,p.show?"":K.bookHide]},[s("div",{class:K.back,onClick:C},[s("img",{src:U},null)]),s("div",{class:"bookWrap",style:{width:p.width+"px"}},[!!p.list.length&&s("div",{id:"flipbook",class:[p.show&&"animated"]},[s("div",{class:"page"},[s("img",{style:"width: 100%; height: 100%; object-fit: cover;",src:e.bookData.coverImg},null)]),p.list.map((t=>s("div",{class:"page"},[s("div",{class:K.wrap},[s("div",{class:K.wrapItem},[t.map(((t,n)=>s(h,null,[s("div",{class:[K.item,t.id&&K.des],onTouchstart:e=>{e.stopPropagation()},onClick:n=>{n.stopPropagation(),(t=>{if(t.id){if(!t.containMaterial)return void w("暂无资源");localStorage.setItem(d,t.id);const n=O.stringify({id:t.id,lessonCoursewareId:t.lessonCoursewareId,lessonCoursewareDetailId:t.lessonCoursewareDetailId,name:t.name,tab:e.tab}),r=location.origin+location.pathname+"#/courseware-play?"+n;console.log("🚀 ~ url:",r),_({api:"openWebView",content:{url:r,orientation:0,isHideTitle:!1,c_orientation:0}})}})(t)}},[t.id?s("img",{id:1==n?"coursewareDetail-0":"",class:K.icon,src:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACgAAAAoCAYAAACM/rhtAAAAAXNSR0IArs4c6QAAAERlWElmTU0AKgAAAAgAAYdpAAQAAAABAAAAGgAAAAAAA6ABAAMAAAABAAEAAKACAAQAAAABAAAAKKADAAQAAAABAAAAKAAAAAB65masAAAFDElEQVRYCcWZy24cRRSGT3XPxbHj+MIlwXLCJkJKkLJmzSICicfIhi0Pwg55k9dASF6AxAOwQAIhgRRkQpwQRMaZxjOeme7i/8+pmqtlVwMzLqlVl66u+uo/p0731DiZS/6s+754eYTmhyL+DsrX57r892obQzon0nkmUlUF5jnCoIcizcfujXd+mJ4AvSx571tyVnyO2qfifRbbl5K3NwCIKU5eiJSDyRTOVagcyM7+Z845vaGAAe4rgH046b3EUuuaSNYQOX0l0oeAC8l9Lbv7HxPSlKJyq4IjTFkaUgtKnpsg1KuntKa44HPfL92sMyAwnJoZefGXyODvmbtaobl940GmG2LZPrcwvZ/43saOSKO10MMEGz6iibFbryCNsAfKke3mzbdN0UWMh873X3eXEkoWJzu/pYkNk2PDMJVDmPtUhPAV/dQVzvdeQ+8rTjlMTDMzNs6lgD7XmlTFukZ9XEPx1UA8Vu0rlGG2CkpU2KllWUnlR8i9lJWXUVXJta1bcuOt27MzMBbyypsWfhgjA2w64M9firz8EdIT6gwvAEzqGlJlTSmlgXLTymgrxcoVy2zHpX2Rd4tiETDi0sS8plIiINT67Vu8kezJyuU6KQHsAgQgWfaA8Ch7vWftpfYnLPr4RTNO8SwUEwHDcxjbS6Yg40mpngAYbwYqWY3LOYC4kLgIgybkN0/gBhjpvd1cbm/Zu2KBLDSkA3oPVUy5aC6aNyrH3ANyUg/3CA0ohScs6s8LvnKxWF/+j4CAU6WQm/kAS7W0DhiFoGoRCPcIHKAM3u4HcZKyZAVpLvoXFYgKTnKCEsZAI5T2jSaP9/F8nXSxA0yNZGAThQyIZm2JW9sOgKauKQ3goGD0TbZzoXVS8nI4me5QNRkmUvM2ZOv+R9Lc2pM+Pj47v/8kvdPClEY/6xNVxe6Gz3KMGA1SQNMBaVoqgJybw8ydS7Z2Q+dZ296TW7hOOy/kz+MnMuz1gsnNT6m4PV9PwXQTB3PpBlFQbgKoIbNxbX37pty594G8uXcXiyDUrG+qginShT7JCkaTTmKbmXmObzx13myrv9mOByh8T1Vcjg+6MDjVMBNz09Cn5hXswwf/eP5UOt3uJCbyGaqpeT0TJyvICUwNvnttNzIOjgZ9yVvrctYr5OXxr9I5OVHTR19lHtWPz49lTijUADQwew/bjib08S/fSWN9Wwp8BNiHQVBZfS/ERy0HUCyqTkoHxMDxy8XMFXwKn1T9AuZE+Bj72XRflmlaQsIlqGidlNxbgy4m01eWmtvim4Yb1OMrzlwhqm1QsQ9dgs/XScm9LVzQfAYWYxpNHu9FECo53r1UEFf0Qy6gTkruHb9UxmCMi/wwBTBhDCCYE/W4EDUv6hGept5slfiSEXn3kk8tLiQZUFWCD2l4oYr0qRjbUGbIYZuBTvwxgkUX4InCJ3eT3w/4+kxMa7v7AAgbI4AZ1JRqhOSlChps3DhqZlUyWRMlq/2rzuPnYIWdWyIv8SMo/hjiacYQZsMt5E6GVYYfSZkMcA418DnacuQNubnh5N7O7O+OizSqDXjRYMu4l+Fdet7x0jLmqj8m2OCD7qj+k6t6wh1xkxyuarp/Mc/hFR2/JaDy+M3Jg8y1N3kmfJDwyKq7HJBNP4dXfgR82VIdjoDb1ydHwHpgjQYc2HyBy35VXzbIMu6rWcEQ4DjF7A8KNKzkb4jpxWmY00hyCJrHweXGPf4B6HyHtp8LqjYAAAAASUVORK5CYII="},null):null,s("div",{class:K.name,style:{lineHeight:"20Px"}},[t.name,p.lastTime===t.id&&s("span",{class:K.last},[f("上次观看")])])])])))])])]))),p.list.length%2==1&&s("div",{class:"page",style:{pointerEvents:"none"}},[s("div",{class:K.wrap},[s("div",{class:K.wrapItem},null)])])])]),g.value?s(Q,null,null):null])}}),Z=i({name:"courseware-list",emits:["close"],setup(e,{emit:t}){const n=l({box:{},show:!1,steps:[{ele:"",eleRect:{},img:L("courseware-list1.png"),handStyle:{top:"1.5rem",left:"3.5rem",transform:"rotate(-90deg)"},imgStyle:{top:".7rem",left:"5rem"},btnsStyle:{top:"3.5rem",left:"6.2rem"},boxStyle:{},eleRectPadding:{left:-4,top:-4,width:-8,height:-8}},{ele:"",img:L("courseware-list2.png"),handStyle:{top:"-.25rem",left:"1.38rem",transform:"rotate(-90deg)"},imgStyle:{top:"-1.2rem",left:"2.4rem"},btnsStyle:{top:"1.6rem",left:"3.6rem"},eleRectPadding:{left:4,top:4,width:8,height:8}},{ele:"",img:L("courseware-list3.png"),handStyle:{bottom:"-2.1rem",left:"0.66rem"},imgStyle:{top:"1.1rem",left:"-2rem"},btnsStyle:{top:"4.2rem",left:"-0.5rem"},eleRectPadding:{left:4,top:4,width:8,height:8}},{ele:"",img:L("courseware-list4.png"),handStyle:{top:".8rem",left:"1rem"},imgStyle:{top:"1.1rem",left:"-4.6rem"},btnsStyle:{top:"4rem",left:"-4.5rem","justify-content":"center",padding:0}}],step:0}),a=c(!1),i=c({}),m=function(){var e=o((function*(){try{const t=yield I({guideTag:"guideInfo"});var e;if(t.data)i.value=JSON.parse(null===(e=t.data)||void 0===e?void 0:e.guideValue)||null;else i.value={};i.value&&i.value.courseware?a.value=!1:a.value=!0}catch(t){console.log(t)}}));return function(){return e.apply(this,arguments)}}();m();const v=()=>{const e=document.getElementById(`courseware-${n.step}`);if(e){var t,r,a,i;const o=e.getBoundingClientRect(),s=(null===(t=n.steps[n.step].eleRectPadding)||void 0===t?void 0:t.left)||0,l=(null===(r=n.steps[n.step].eleRectPadding)||void 0===r?void 0:r.top)||0,c=(null===(a=n.steps[n.step].eleRectPadding)||void 0===a?void 0:a.width)||0,u=(null===(i=n.steps[n.step].eleRectPadding)||void 0===i?void 0:i.height)||0;n.box={left:o.x-s+"px",top:o.y-l+"px",width:o.width+c+"px",height:o.height+u+"px"}}else b()};u((()=>{v(),window.addEventListener("resize",y)}));const y=()=>{v()};d((()=>{window.removeEventListener("resize",y)}));const b=()=>{n.step>=3?x():(n.step=n.step+1,v())},x=function(){var e=o((function*(){i.value?i.value.courseware=!0:i.value={courseware:!0};try{yield z({guideTag:"guideInfo",guideValue:JSON.stringify(i.value)})}catch(e){console.log(e)}a.value=!1}));return function(){return e.apply(this,arguments)}}();return()=>s(p,{teleport:"body",overlay:!1,closeOnClickOverlay:!1,class:["popup-custom",B.guidePopup],show:a.value,"onUpdate:show":e=>a.value=e},{default:()=>[s("div",{class:B.content,onClick:()=>b()},[n.step!=n.steps.length-1&&s("div",{class:B.backBtn,onClick:e=>{e.stopPropagation(),x()}},[f("跳过")]),s("div",{class:B.box,style:r(r({},n.box),n.steps[n.step].boxStyle),id:`modeType-${n.step}`},[n.steps.map(((e,t)=>{var r,a;return s("div",{onClick:e=>e.stopPropagation(),class:B.item,style:{display:t===n.step?"":"none",left:`${null===(r=e.eleRect)||void 0===r?void 0:r.left}px`,top:`${null===(a=e.eleRect)||void 0===a?void 0:a.top}px`}},[s("img",{class:B.img,style:e.imgStyle,src:e.img},null),s("img",{class:B.iconHead,style:e.handStyle,src:L("indexDot.png")},null),s("div",{class:B.btns,style:e.btnsStyle},[n.step+1==n.steps.length?s(h,null,[s(g,{class:[B.btn],round:!0,type:"primary",onClick:()=>x()},{default:()=>[f("完成")]}),s(g,{class:[B.btn,B.endBtn],round:!0,color:"transparent",style:{"border-color":"#fff"},type:"primary",onClick:()=>{n.step=0,v()}},{default:()=>[f("再看一遍")]})]):s(g,{class:B.btn,round:!0,type:"primary",onClick:()=>b()},{default:()=>[f("下一步 ("),n.step+1,f("/"),n.steps.length,f(")")]})])])}))])])]})}});/*! jQuery v1.7 jquery.com | jquery.org/license */!function(e,t){function n(e){return E.isWindow(e)?e:9===e.nodeType&&(e.defaultView||e.parentWindow)}function r(e){if(!dt[e]){var t=S.body,n=E("<"+e+">").appendTo(t),r=n.css("display");n.remove(),"none"!==r&&""!==r||(st||((st=S.createElement("iframe")).frameBorder=st.width=st.height=0),t.appendChild(st),lt&&st.createElement||((lt=(st.contentWindow||st.contentDocument).document).write(("CSS1Compat"===S.compatMode?"":"")+""),lt.close()),n=lt.createElement(e),lt.body.appendChild(n),r=E.css(n,"display"),t.removeChild(st)),dt[e]=r}return dt[e]}function a(e,t){var n={};return E.each(ht.concat.apply([],ht.slice(0,t)),(function(){n[this]=e})),n}function i(){ut=t}function o(){return setTimeout(i,0),ut=E.now()}function s(){try{return new e.XMLHttpRequest}catch(t){}}function l(e,t,n,r){if(E.isArray(t))E.each(t,(function(t,a){n||ze.test(e)?r(e,a):l(e+"["+("object"==typeof a||E.isArray(a)?t:"")+"]",a,n,r)}));else if(n||null==t||"object"!=typeof t)r(e,t);else for(var a in t)l(e+"["+a+"]",t[a],n,r)}function c(e,n){var r,a,i=E.ajaxSettings.flatOptions||{};for(r in n)n[r]!==t&&((i[r]?e:a||(a={}))[r]=n[r]);a&&E.extend(!0,e,a)}function u(e,n,r,a,i,o){(o=o||{})[i=i||n.dataTypes[0]]=!0;for(var s,l=e[i],c=0,d=l?l.length:0,p=e===$e;c0?("border"!==n&&E.each(a,(function(){n||(r-=parseFloat(E.css(e,"padding"+this))||0),"margin"===n?r+=parseFloat(E.css(e,n+this))||0:r-=parseFloat(E.css(e,"border"+this+"Width"))||0})),r+"px"):(((r=ke(e,t,t))<0||null==r)&&(r=e.style[t]||0),r=parseFloat(r)||0,n&&E.each(a,(function(){r+=parseFloat(E.css(e,"padding"+this))||0,"padding"!==n&&(r+=parseFloat(E.css(e,"border"+this+"Width"))||0),"margin"===n&&(r+=parseFloat(E.css(e,n+this))||0)})),r+"px")}function f(e,t){t.src?E.ajax({url:t.src,async:!1,dataType:"script"}):E.globalEval((t.text||t.textContent||t.innerHTML||"").replace(we,"/*$0*/")),t.parentNode&&t.parentNode.removeChild(t)}function h(e){var t=(e.nodeName||"").toLowerCase();"input"===t?g(e):"script"!==t&&void 0!==e.getElementsByTagName&&E.grep(e.getElementsByTagName("input"),g)}function g(e){"checkbox"!==e.type&&"radio"!==e.type||(e.defaultChecked=e.checked)}function m(e){return void 0!==e.getElementsByTagName?e.getElementsByTagName("*"):void 0!==e.querySelectorAll?e.querySelectorAll("*"):[]}function v(e,t){var n;1===t.nodeType&&(t.clearAttributes&&t.clearAttributes(),t.mergeAttributes&&t.mergeAttributes(e),"object"===(n=t.nodeName.toLowerCase())?t.outerHTML=e.outerHTML:"input"!==n||"checkbox"!==e.type&&"radio"!==e.type?"option"===n?t.selected=e.defaultSelected:"input"!==n&&"textarea"!==n||(t.defaultValue=e.defaultValue):(e.checked&&(t.defaultChecked=t.checked=e.checked),t.value!==e.value&&(t.value=e.value)),t.removeAttribute(E.expando))}function y(e,t){if(1===t.nodeType&&E.hasData(e)){var n,r,a,i=E._data(e),o=E._data(t,i),s=i.events;if(s)for(n in delete o.handle,o.events={},s)for(r=0,a=s[n].length;r=0===n}))}function _(e){return!e||!e.parentNode||11===e.parentNode.nodeType}function A(){return!0}function k(){return!1}function T(e,t,n){var r=t+"defer",a=t+"queue",i=t+"mark",o=E._data(e,r);o&&("queue"===n||!E._data(e,a))&&("mark"===n||!E._data(e,i))&&setTimeout((function(){!E._data(e,a)&&!E._data(e,i)&&(E.removeData(e,r,!0),o.fire())}),0)}function C(e){for(var t in e)if(("data"!==t||!E.isEmptyObject(e[t]))&&"toJSON"!==t)return!1;return!0}function N(e,n,r){if(r===t&&1===e.nodeType){var a="data-"+n.replace(O,"-$1").toLowerCase();if("string"==typeof(r=e.getAttribute(a))){try{r="true"===r||"false"!==r&&("null"===r?null:E.isNumeric(r)?parseFloat(r):D.test(r)?E.parseJSON(r):r)}catch(j){}E.data(e,n,r)}else r=t}return r}var S=e.document,P=e.navigator,M=e.location,E=function(){function n(){if(!s.isReady){try{S.documentElement.doScroll("left")}catch(e){return void setTimeout(n,1)}s.ready()}}var r,a,i,o,s=function(e,t){return new s.fn.init(e,t,r)},l=e.jQuery,c=e.$,u=/^(?:[^#<]*(<[\w\W]+>)[^>]*$|#([\w\-]*)$)/,d=/\S/,p=/^\s+/,f=/\s+$/,h=/\d/,g=/^<(\w+)\s*\/?>(?:<\/\1>)?$/,m=/^[\],:{}\s]*$/,v=/\\(?:["\\\/bfnrt]|u[0-9a-fA-F]{4})/g,y=/"[^"\\\n\r]*"|true|false|null|-?\d+(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,b=/(?:^|:|,)(?:\s*\[)+/g,x=/(webkit)[ \/]([\w.]+)/,w=/(opera)(?:.*version)?[ \/]([\w.]+)/,_=/(msie) ([\w.]+)/,A=/(mozilla)(?:.*? rv:([\w.]+))?/,k=/-([a-z]|[0-9])/gi,T=/^-ms-/,C=function(e,t){return(t+"").toUpperCase()},N=P.userAgent,M=Object.prototype.toString,E=Object.prototype.hasOwnProperty,j=Array.prototype.push,F=Array.prototype.slice,D=String.prototype.trim,O=Array.prototype.indexOf,L={};return s.fn=s.prototype={constructor:s,init:function(e,n,r){var a,i,o,l;if(!e)return this;if(e.nodeType)return this.context=this[0]=e,this.length=1,this;if("body"===e&&!n&&S.body)return this.context=S,this[0]=S.body,this.selector=e,this.length=1,this;if("string"==typeof e){if((a="<"!==e.charAt(0)||">"!==e.charAt(e.length-1)||e.length<3?u.exec(e):[null,e,null])&&(a[1]||!n)){if(a[1])return l=(n=n instanceof s?n[0]:n)?n.ownerDocument||n:S,(o=g.exec(e))?s.isPlainObject(n)?(e=[S.createElement(o[1])],s.fn.attr.call(e,n,!0)):e=[l.createElement(o[1])]:e=((o=s.buildFragment([a[1]],[l])).cacheable?s.clone(o.fragment):o.fragment).childNodes,s.merge(this,e);if((i=S.getElementById(a[2]))&&i.parentNode){if(i.id!==a[2])return r.find(e);this.length=1,this[0]=i}return this.context=S,this.selector=e,this}return!n||n.jquery?(n||r).find(e):this.constructor(n).find(e)}return s.isFunction(e)?r.ready(e):(e.selector!==t&&(this.selector=e.selector,this.context=e.context),s.makeArray(e,this))},selector:"",jquery:"1.7",length:0,size:function(){return this.length},toArray:function(){return F.call(this,0)},get:function(e){return null==e?this.toArray():e<0?this[this.length+e]:this[e]},pushStack:function(e,t,n){var r=this.constructor();return s.isArray(e)?j.apply(r,e):s.merge(r,e),r.prevObject=this,r.context=this.context,"find"===t?r.selector=this.selector+(this.selector?" ":"")+n:t&&(r.selector=this.selector+"."+t+"("+n+")"),r},each:function(e,t){return s.each(this,e,t)},ready:function(e){return s.bindReady(),i.add(e),this},eq:function(e){return-1===e?this.slice(e):this.slice(e,+e+1)},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},slice:function(){return this.pushStack(F.apply(this,arguments),"slice",F.call(arguments).join(","))},map:function(e){return this.pushStack(s.map(this,(function(t,n){return e.call(t,n,t)})))},end:function(){return this.prevObject||this.constructor(null)},push:j,sort:[].sort,splice:[].splice},s.fn.init.prototype=s.fn,s.extend=s.fn.extend=function(){var e,n,r,a,i,o,l=arguments[0]||{},c=1,u=arguments.length,d=!1;for("boolean"==typeof l&&(d=l,l=arguments[1]||{},c=2),"object"!=typeof l&&!s.isFunction(l)&&(l={}),u===c&&(l=this,--c);c0)return;i.fireWith(S,[s]),s.fn.trigger&&s(S).trigger("ready").unbind("ready")}},bindReady:function(){if(!i){if(i=s.Callbacks("once memory"),"complete"===S.readyState)return setTimeout(s.ready,1);if(S.addEventListener)S.addEventListener("DOMContentLoaded",o,!1),e.addEventListener("load",s.ready,!1);else if(S.attachEvent){S.attachEvent("onreadystatechange",o),e.attachEvent("onload",s.ready);var t=!1;try{t=null==e.frameElement}catch(P){}S.documentElement.doScroll&&t&&n()}}},isFunction:function(e){return"function"===s.type(e)},isArray:Array.isArray||function(e){return"array"===s.type(e)},isWindow:function(e){return e&&"object"==typeof e&&"setInterval"in e},isNumeric:function(e){return null!=e&&h.test(e)&&!isNaN(e)},type:function(e){return null==e?String(e):L[M.call(e)]||"object"},isPlainObject:function(e){if(!e||"object"!==s.type(e)||e.nodeType||s.isWindow(e))return!1;try{if(e.constructor&&!E.call(e,"constructor")&&!E.call(e.constructor.prototype,"isPrototypeOf"))return!1}catch(S){return!1}var n;for(n in e);return n===t||E.call(e,n)},isEmptyObject:function(e){for(var t in e)return!1;return!0},error:function(e){throw e},parseJSON:function(t){return"string"==typeof t&&t?(t=s.trim(t),e.JSON&&e.JSON.parse?e.JSON.parse(t):m.test(t.replace(v,"@").replace(y,"]").replace(b,""))?new Function("return "+t)():void s.error("Invalid JSON: "+t)):null},parseXML:function(n){var r;try{e.DOMParser?r=(new DOMParser).parseFromString(n,"text/xml"):((r=new ActiveXObject("Microsoft.XMLDOM")).async="false",r.loadXML(n))}catch(c){r=t}return(!r||!r.documentElement||r.getElementsByTagName("parsererror").length)&&s.error("Invalid XML: "+n),r},noop:function(){},globalEval:function(t){t&&d.test(t)&&(e.execScript||function(t){e.eval.call(e,t)})(t)},camelCase:function(e){return e.replace(T,"ms-").replace(k,C)},nodeName:function(e,t){return e.nodeName&&e.nodeName.toUpperCase()===t.toUpperCase()},each:function(e,n,r){var a,i=0,o=e.length,l=o===t||s.isFunction(e);if(r)if(l){for(a in e)if(!1===n.apply(e[a],r))break}else for(;i0&&e[0]&&e[c-1]||0===c||s.isArray(e)))for(;l1?F.call(arguments,0):t,l.notifyWith(c,o)}}function n(e){return function(t){r[e]=arguments.length>1?F.call(arguments,0):t,--s||l.resolveWith(l,r)}}var r=F.call(arguments,0),a=0,i=r.length,o=Array(i),s=i,l=i<=1&&e&&E.isFunction(e.promise)?e:E.Deferred(),c=l.promise();if(i>1){for(;a
a",e=m.getElementsByTagName("*"),t=m.getElementsByTagName("a")[0],!e||!e.length||!t)return{};r=(n=S.createElement("select")).appendChild(S.createElement("option")),a=m.getElementsByTagName("input")[0],o={leadingWhitespace:3===m.firstChild.nodeType,tbody:!m.getElementsByTagName("tbody").length,htmlSerialize:!!m.getElementsByTagName("link").length,style:/top/.test(t.getAttribute("style")),hrefNormalized:"/a"===t.getAttribute("href"),opacity:/^0.55/.test(t.style.opacity),cssFloat:!!t.style.cssFloat,unknownElems:!!m.getElementsByTagName("nav").length,checkOn:"on"===a.value,optSelected:r.selected,getSetAttribute:"t"!==m.className,enctype:!!S.createElement("form").enctype,submitBubbles:!0,changeBubbles:!0,focusinBubbles:!1,deleteExpando:!0,noCloneEvent:!0,inlineBlockNeedsLayout:!1,shrinkWrapBlocks:!1,reliableMarginRight:!0},a.checked=!0,o.noCloneChecked=a.cloneNode(!0).checked,n.disabled=!0,o.optDisabled=!r.disabled;try{delete m.test}catch(U){o.deleteExpando=!1}for(h in!m.addEventListener&&m.attachEvent&&m.fireEvent&&(m.attachEvent("onclick",(function(){o.noCloneEvent=!1})),m.cloneNode(!0).fireEvent("onclick")),(a=S.createElement("input")).value="t",a.setAttribute("type","radio"),o.radioValue="t"===a.value,a.setAttribute("checked","checked"),m.appendChild(a),(s=S.createDocumentFragment()).appendChild(m.lastChild),o.checkClone=s.cloneNode(!0).cloneNode(!0).lastChild.checked,m.innerHTML="",m.style.width=m.style.paddingLeft="1px",l=S.getElementsByTagName("body")[0],u=S.createElement(l?"div":"body"),d={visibility:"hidden",width:0,height:0,border:0,margin:0,background:"none"},l&&E.extend(d,{position:"absolute",left:"-999px",top:"-999px"}),d)u.style[h]=d[h];if(u.appendChild(m),(c=l||v).insertBefore(u,c.firstChild),o.appendChecked=a.checked,o.boxModel=2===m.offsetWidth,"zoom"in m.style&&(m.style.display="inline",m.style.zoom=1,o.inlineBlockNeedsLayout=2===m.offsetWidth,m.style.display="",m.innerHTML="
",o.shrinkWrapBlocks=2!==m.offsetWidth),m.innerHTML="
t
",g=0===(p=m.getElementsByTagName("td"))[0].offsetHeight,p[0].style.display="",p[1].style.display="none",o.reliableHiddenOffsets=g&&0===p[0].offsetHeight,m.innerHTML="",S.defaultView&&S.defaultView.getComputedStyle&&((i=S.createElement("div")).style.width="0",i.style.marginRight="0",m.appendChild(i),o.reliableMarginRight=0===(parseInt((S.defaultView.getComputedStyle(i,null)||{marginRight:0}).marginRight,10)||0)),m.attachEvent)for(h in{submit:1,change:1,focusin:1})(g=(f="on"+h)in m)||(m.setAttribute(f,"return;"),g="function"==typeof m[f]),o[h+"Bubbles"]=g;return E((function(){var e,t,n,r,a,i="position:absolute;top:0;left:0;width:1px;height:1px;margin:0;",s="visibility:hidden;border:0;",c="style='"+i+"border:5px solid #000;padding:0;'",d="
";!(l=S.getElementsByTagName("body")[0])||((e=S.createElement("div")).style.cssText=s+"width:0;height:0;position:static;top:0;margin-top:1px",l.insertBefore(e,l.firstChild),(u=S.createElement("div")).style.cssText=i+s,u.innerHTML=d,e.appendChild(u),n=(t=u.firstChild).firstChild,r=t.nextSibling.firstChild.firstChild,a={doesNotAddBorder:5!==n.offsetTop,doesAddBorderForTableAndCells:5===r.offsetTop},n.style.position="fixed",n.style.top="20px",a.fixedPosition=20===n.offsetTop||15===n.offsetTop,n.style.position=n.style.top="",t.style.overflow="hidden",t.style.position="relative",a.subtractsBorderForOverflowNotVisible=-5===n.offsetTop,a.doesNotIncludeMarginInBodyOffset=1!==l.offsetTop,l.removeChild(e),u=e=null,E.extend(o,a))})),u.innerHTML="",c.removeChild(u),u=s=n=r=l=i=m=a=null,o}(),E.boxModel=E.support.boxModel;var D=/^(?:\{.*\}|\[.*\])$/,O=/([A-Z])/g;E.extend({cache:{},uuid:0,expando:"jQuery"+(E.fn.jquery+Math.random()).replace(/\D/g,""),noData:{embed:!0,object:"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000",applet:!0},hasData:function(e){return!!(e=e.nodeType?E.cache[e[E.expando]]:e[E.expando])&&!C(e)},data:function(e,n,r,a){if(E.acceptData(e)){var i,o,s;E.expando;var l="string"==typeof n,c=e.nodeType,u=c?E.cache:e,d=c?e[E.expando]:e[E.expando]&&E.expando,p="events"===n;if((!d||!u[d]||!p&&!a&&!u[d].data)&&l&&r===t)return;return d||(c?e[E.expando]=d=++E.uuid:d=E.expando),u[d]||(u[d]={},c||(u[d].toJSON=E.noop)),"object"!=typeof n&&"function"!=typeof n||(a?u[d]=E.extend(u[d],n):u[d].data=E.extend(u[d].data,n)),i=o=u[d],a||(o.data||(o.data={}),o=o.data),r!==t&&(o[E.camelCase(n)]=r),p&&!o[n]?i.events:(l?null==(s=o[n])&&(s=o[E.camelCase(n)]):s=o,s)}},removeData:function(e,t,n){if(E.acceptData(e)){var r,a,i;E.expando;var o=e.nodeType,s=o?E.cache:e,l=o?e[E.expando]:E.expando;if(!s[l])return;if(t&&(r=n?s[l]:s[l].data)){E.isArray(t)||(t in r?t=[t]:t=(t=E.camelCase(t))in r?[t]:t.split(" "));for(a=0,i=t.length;a-1)return!0;return!1},val:function(e){var n,r,a,i=this[0];return arguments.length?(a=E.isFunction(e),this.each((function(r){var i,o=E(this);1===this.nodeType&&(null==(i=a?e.call(this,r,o.val()):e)?i="":"number"==typeof i?i+="":E.isArray(i)&&(i=E.map(i,(function(e){return null==e?"":e+""}))),(n=E.valHooks[this.nodeName.toLowerCase()]||E.valHooks[this.type])&&"set"in n&&n.set(this,i,"value")!==t||(this.value=i))}))):i?(n=E.valHooks[i.nodeName.toLowerCase()]||E.valHooks[i.type])&&"get"in n&&(r=n.get(i,"value"))!==t?r:"string"==typeof(r=i.value)?r.replace(H,""):null==r?"":r:t}}),E.extend({valHooks:{option:{get:function(e){var t=e.attributes.value;return!t||t.specified?e.value:e.text}},select:{get:function(e){var t,n,r,a,i=e.selectedIndex,o=[],s=e.options,l="select-one"===e.type;if(i<0)return null;for(n=l?i:0,r=l?i+1:s.length;n=0})),n.length||(e.selectedIndex=-1),n}}},attrFn:{val:!0,css:!0,html:!0,text:!0,data:!0,width:!0,height:!0,offset:!0},attr:function(e,n,r,a){var i,o,s,l=e.nodeType;return e&&3!==l&&8!==l&&2!==l?a&&n in E.attrFn?E(e)[n](r):"getAttribute"in e?((s=1!==l||!E.isXMLDoc(e))&&(n=n.toLowerCase(),o=E.attrHooks[n]||(X.test(n)?B:L)),r!==t?null===r?(E.removeAttr(e,n),t):o&&"set"in o&&s&&(i=o.set(e,r,n))!==t?i:(e.setAttribute(n,""+r),r):o&&"get"in o&&s&&null!==(i=o.get(e,n))?i:null===(i=e.getAttribute(n))?t:i):E.prop(e,n,r):t},removeAttr:function(e,t){var n,r,a,i,o=0;if(1===e.nodeType)for(i=(r=(t||"").split(W)).length;o=0}})}));var G=/^(?:textarea|input|select)$/i,K=/^([^\.]*)?(?:\.(.+))?$/,Q=/\bhover(\.\S+)?/,Y=/^key/,Z=/^(?:mouse|contextmenu)|click/,J=/^(\w*)(?:#([\w\-]+))?(?:\.([\w\-]+))?$/,$=function(e){var t=J.exec(e);return t&&(t[1]=(t[1]||"").toLowerCase(),t[3]=t[3]&&new RegExp("(?:^|\\s)"+t[3]+"(?:\\s|$)")),t},ee=function(e,t){return(!t[1]||e.nodeName.toLowerCase()===t[1])&&(!t[2]||e.id===t[2])&&(!t[3]||t[3].test(e.className))},te=function(e){return E.event.special.hover?e:e.replace(Q,"mouseenter$1 mouseleave$1")};E.event={add:function(e,n,r,a,i){var o,s,l,c,u,d,p,f,h,g,m;if(3!==e.nodeType&&8!==e.nodeType&&n&&r&&(o=E._data(e))){for(r.handler&&(r=(h=r).handler),r.guid||(r.guid=E.guid++),(l=o.events)||(o.events=l={}),(s=o.handle)||(o.handle=s=function(e){return void 0===E||e&&E.event.triggered===e.type?t:E.event.dispatch.apply(s.elem,arguments)},s.elem=e),n=te(n).split(" "),c=0;c=0&&(m=m.slice(0,-1),s=!0),m.indexOf(".")>=0&&(v=m.split("."),m=v.shift(),v.sort()),(!a||E.event.customEvent[m])&&!E.event.global[m])return;if((n="object"==typeof n?n[E.expando]?n:new E.Event(m,n):new E.Event(m)).type=m,n.isTrigger=!0,n.exclusive=s,n.namespace=v.join("."),n.namespace_re=n.namespace?new RegExp("(^|\\.)"+v.join("\\.(?:.*\\.)?")+"(\\.|$)"):null,d=m.indexOf(":")<0?"on"+m:"",(i||!a)&&n.preventDefault(),!a){for(l in o=E.cache)o[l].events&&o[l].events[m]&&E.event.trigger(n,r,o[l].handle.elem,!0);return}if(n.result=t,n.target||(n.target=a),(r=null!=r?E.makeArray(r):[]).unshift(n),(p=E.event.special[m]||{}).trigger&&!1===p.trigger.apply(a,r))return;if(h=[[a,p.bindType||m]],!i&&!p.noBubble&&!E.isWindow(a)){for(g=p.delegateType||m,u=null,c=a.parentNode;c;c=c.parentNode)h.push([c,g]),u=c;u&&u===a.ownerDocument&&h.push([u.defaultView||u.parentWindow||e,g])}for(l=0;l=0:p===t&&(p=s[d]=u.quick?ee(i,u.quick):E(i).is(d)),p&&c.push(u);c.length&&y.push({elem:i,matches:c})}for(f.length>h&&y.push({elem:this,matches:f.slice(h)}),r=0;r0?this.bind(t,e,n):this.trigger(t)},E.attrFn&&(E.attrFn[t]=!0),Y.test(t)&&(E.event.fixHooks[t]=E.event.keyHooks),Z.test(t)&&(E.event.fixHooks[t]=E.event.mouseHooks)})),function(){function e(e,t,n,r,i,o){for(var s=0,l=r.length;s0){u=c;break}c=c[e]}r[s]=u}}}function n(e,t,n,r,i,o){for(var s=0,l=r.length;s+~,(\[\\]+)+|[>+~])(\s*,\s*)?((?:.|\r|\n)*)/g,a="sizcache"+(Math.random()+"").replace(".",""),i=0,o=Object.prototype.toString,s=!1,l=!0,c=/\\/g,u=/\r\n/g,d=/\W/;[0,0].sort((function(){return l=!1,0}));var p=function(e,t,n,a){n=n||[];var i=t=t||S;if(1!==t.nodeType&&9!==t.nodeType)return[];if(!e||"string"!=typeof e)return n;var s,l,c,u,d,f,m,v,y=!0,b=p.isXML(t),_=[],A=e;do{if(r.exec(""),(s=r.exec(A))&&(A=s[3],_.push(s[1]),s[2])){u=s[3];break}}while(s);if(_.length>1&&g.exec(e))if(2===_.length&&h.relative[_[0]])l=w(_[0]+_[1],t,a);else for(l=h.relative[_[0]]?[t]:p(_.shift(),t);_.length;)e=_.shift(),h.relative[e]&&(e+=_.shift()),l=w(e,l,a);else if(!a&&_.length>1&&9===t.nodeType&&!b&&h.match.ID.test(_[0])&&!h.match.ID.test(_[_.length-1])&&(t=(d=p.find(_.shift(),t,b)).expr?p.filter(d.expr,d.set)[0]:d.set[0]),t)for(l=(d=a?{expr:_.pop(),set:x(a)}:p.find(_.pop(),1!==_.length||"~"!==_[0]&&"+"!==_[0]||!t.parentNode?t:t.parentNode,b)).expr?p.filter(d.expr,d.set):d.set,_.length>0?c=x(l):y=!1;_.length;)m=f=_.pop(),h.relative[f]?m=_.pop():f="",null==m&&(m=t),h.relative[f](c,m,b);else c=_=[];if(c||(c=l),c||p.error(f||e),"[object Array]"===o.call(c))if(y)if(t&&1===t.nodeType)for(v=0;null!=c[v];v++)c[v]&&(!0===c[v]||1===c[v].nodeType&&p.contains(t,c[v]))&&n.push(l[v]);else for(v=0;null!=c[v];v++)c[v]&&1===c[v].nodeType&&n.push(l[v]);else n.push.apply(n,c);else x(c,n);return u&&(p(u,i,n,a),p.uniqueSort(n)),n};p.uniqueSort=function(e){if(y&&(s=l,e.sort(y),s))for(var t=1;t0},p.find=function(e,t,n){var r,a,i,o,s,l;if(!e)return[];for(a=0,i=h.order.length;a":function(e,t){var n,r="string"==typeof t,a=0,i=e.length;if(r&&!d.test(t)){for(t=t.toLowerCase();a=0)?n||r.push(o):n&&(t[s]=!1));return!1},ID:function(e){return e[1].replace(c,"")},TAG:function(e,t){return e[1].replace(c,"").toLowerCase()},CHILD:function(e){if("nth"===e[1]){e[2]||p.error(e[0]),e[2]=e[2].replace(/^\+|\s*/g,"");var t=/(-?)(\d*)(?:n([+\-]?\d*))?/.exec(("even"===e[2]?"2n":"odd"===e[2]&&"2n+1")||!/\D/.test(e[2])&&"0n+"+e[2]||e[2]);e[2]=t[1]+(t[2]||1)-0,e[3]=t[3]-0}else e[2]&&p.error(e[0]);return e[0]=i++,e},ATTR:function(e,t,n,r,a,i){var o=e[1]=e[1].replace(c,"");return!i&&h.attrMap[o]&&(e[1]=h.attrMap[o]),e[4]=(e[4]||e[5]||"").replace(c,""),"~="===e[2]&&(e[4]=" "+e[4]+" "),e},PSEUDO:function(e,t,n,a,i){if("not"===e[1]){if(!((r.exec(e[3])||"").length>1||/^\w/.test(e[3]))){var o=p.filter(e[3],t,n,!0^i);return n||a.push.apply(a,o),!1}e[3]=p(e[3],null,null,t)}else if(h.match.POS.test(e[0])||h.match.CHILD.test(e[0]))return!0;return e},POS:function(e){return e.unshift(!0),e}},filters:{enabled:function(e){return!1===e.disabled&&"hidden"!==e.type},disabled:function(e){return!0===e.disabled},checked:function(e){return!0===e.checked},selected:function(e){return e.parentNode&&e.parentNode.selectedIndex,!0===e.selected},parent:function(e){return!!e.firstChild},empty:function(e){return!e.firstChild},has:function(e,t,n){return!!p(n[3],e).length},header:function(e){return/h\d/i.test(e.nodeName)},text:function(e){var t=e.getAttribute("type"),n=e.type;return"input"===e.nodeName.toLowerCase()&&"text"===n&&(t===n||null===t)},radio:function(e){return"input"===e.nodeName.toLowerCase()&&"radio"===e.type},checkbox:function(e){return"input"===e.nodeName.toLowerCase()&&"checkbox"===e.type},file:function(e){return"input"===e.nodeName.toLowerCase()&&"file"===e.type},password:function(e){return"input"===e.nodeName.toLowerCase()&&"password"===e.type},submit:function(e){var t=e.nodeName.toLowerCase();return("input"===t||"button"===t)&&"submit"===e.type},image:function(e){return"input"===e.nodeName.toLowerCase()&&"image"===e.type},reset:function(e){var t=e.nodeName.toLowerCase();return("input"===t||"button"===t)&&"reset"===e.type},button:function(e){var t=e.nodeName.toLowerCase();return"input"===t&&"button"===e.type||"button"===t},input:function(e){return/input|select|textarea|button/i.test(e.nodeName)},focus:function(e){return e===e.ownerDocument.activeElement}},setFilters:{first:function(e,t){return 0===t},last:function(e,t,n,r){return t===r.length-1},even:function(e,t){return t%2==0},odd:function(e,t){return t%2==1},lt:function(e,t,n){return tn[3]-0},nth:function(e,t,n){return n[3]-0===t},eq:function(e,t,n){return n[3]-0===t}},filter:{PSEUDO:function(e,t,n,r){var a=t[1],i=h.filters[a];if(i)return i(e,n,t,r);if("contains"===a)return(e.textContent||e.innerText||f([e])||"").indexOf(t[3])>=0;if("not"===a){for(var o=t[3],s=0,l=o.length;s=0}},ID:function(e,t){return 1===e.nodeType&&e.getAttribute("id")===t},TAG:function(e,t){return"*"===t&&1===e.nodeType||!!e.nodeName&&e.nodeName.toLowerCase()===t},CLASS:function(e,t){return(" "+(e.className||e.getAttribute("class"))+" ").indexOf(t)>-1},ATTR:function(e,t){var n=t[1],r=p.attr?p.attr(e,n):h.attrHandle[n]?h.attrHandle[n](e):null!=e[n]?e[n]:e.getAttribute(n),a=r+"",i=t[2],o=t[4];return null==r?"!="===i:!i&&p.attr?null!=r:"="===i?a===o:"*="===i?a.indexOf(o)>=0:"~="===i?(" "+a+" ").indexOf(o)>=0:o?"!="===i?a!==o:"^="===i?0===a.indexOf(o):"$="===i?a.substr(a.length-o.length)===o:"|="===i&&(a===o||a.substr(0,o.length+1)===o+"-"):a&&!1!==r},POS:function(e,t,n,r){var a=t[2],i=h.setFilters[a];if(i)return i(e,n,t,r)}}},g=h.match.POS,m=function(e,t){return"\\"+(t-0+1)};for(var v in h.match)h.match[v]=new RegExp(h.match[v].source+/(?![^\[]*\])(?![^\(]*\))/.source),h.leftMatch[v]=new RegExp(/(^(?:.|\r|\n)*?)/.source+h.match[v].source.replace(/\\(\d+)/g,m));var y,b,x=function(e,t){return e=Array.prototype.slice.call(e,0),t?(t.push.apply(t,e),t):e};try{Array.prototype.slice.call(S.documentElement.childNodes,0)[0].nodeType}catch(V){x=function(e,t){var n=0,r=t||[];if("[object Array]"===o.call(e))Array.prototype.push.apply(r,e);else if("number"==typeof e.length)for(var a=e.length;n",r.insertBefore(e,r.firstChild),S.getElementById(n)&&(h.find.ID=function(e,n,r){if(void 0!==n.getElementById&&!r){var a=n.getElementById(e[1]);return a?a.id===e[1]||void 0!==a.getAttributeNode&&a.getAttributeNode("id").nodeValue===e[1]?[a]:t:[]}},h.filter.ID=function(e,t){var n=void 0!==e.getAttributeNode&&e.getAttributeNode("id");return 1===e.nodeType&&n&&n.nodeValue===t}),r.removeChild(e),r=e=null}(),function(){var e=S.createElement("div");e.appendChild(S.createComment("")),e.getElementsByTagName("*").length>0&&(h.find.TAG=function(e,t){var n=t.getElementsByTagName(e[1]);if("*"===e[1]){for(var r=[],a=0;n[a];a++)1===n[a].nodeType&&r.push(n[a]);n=r}return n}),e.innerHTML="",e.firstChild&&void 0!==e.firstChild.getAttribute&&"#"!==e.firstChild.getAttribute("href")&&(h.attrHandle.href=function(e){return e.getAttribute("href",2)}),e=null}(),S.querySelectorAll&&function(){var e=p,t=S.createElement("div");if(t.innerHTML="

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