vendor: 145,776 bytes, lines 1-6649
1/* compact [ 2 prive/javascript/jquery.js?1788356716 3 prive/javascript/jquery.form.js?1788356716 4 prive/javascript/jquery.autosave.js?1788356716 5 prive/javascript/jquery.placeholder-label.js?1788356716 6 prive/javascript/ajaxCallback.js?1788356716 7 prive/javascript/js.cookie.js?1788356716 8 plugins-dist/mediabox/lib/lity/lity.js?1790334664 9 plugins-dist/mediabox/lity/js/lity.mediabox.js?1790334664 10 plugins-dist/mediabox/javascript/spip.mediabox.js?1790334664 11 plugins-dist/porte_plume/javascript/jquery.markitup_pour_spip.js?1788357776 12 plugins-dist/porte_plume/javascript/jquery.previsu_spip.js?1788357776 13 local/cache-js/jsdyn-javascript_porte_plume_start_js-0cf7508e.js?1790523125 14 plugins/auto/boutonstexte/v3.1.0/javascript/boutonstexte.js?1720198672 15 plugins/auto/sjcycle/v3.6.0/lib/cycle2/jquery.cycle2.js?1720198658 16 plugins/auto/sjcycle/v3.6.0/lib/cycle2/jquery.cycle2.flip.js?1720198658 17 plugins/auto/sjcycle/v3.6.0/lib/cycle2/jquery.cycle2.carousel.js?1720198658 18 plugins/auto/sjcycle/v3.6.0/lib/cycle2/jquery.cycle2.scrollVert.js?1720198658 19 plugins/auto/sjcycle/v3.6.0/lib/cycle2/jquery.cycle2.shuffle.js?1720198658 20 plugins/auto/sjcycle/v3.6.0/lib/cycle2/jquery.cycle2.tile.js?1720198658 21 plugins/auto/bootstrap4/v4.7.2/bootstrap/js/bootstrap-util.js 22 plugins/auto/bootstrap4/v4.7.2/bootstrap/js/bootstrap-button.js 23 plugins/auto/bootstrap4/v4.7.2/bootstrap/js/bootstrap-collapse.js 24 plugins/auto/bootstrap4/v4.7.2/bootstrap/js/bootstrap-carousel.js 25 plugins/auto/bootstrap4/v4.7.2/bootstrap/js/bootstrap-dropdown.js 26 plugins/auto/bootstrap4/v4.7.2/bootstrap/js/bootstrap-modal.js 27 plugins/auto/bootstrap4/v4.7.2/bootstrap/js/bootstrap-scrollspy.js 28 plugins/auto/bootstrap4/v4.7.2/bootstrap/js/bootstrap-tab.js 29 plugins/auto/bootstrap4/v4.7.2/bootstrap/js/bootstrap-toast.js 30 plugins/auto/bootstrap4/v4.7.2/bootstrap/js/bootstrap-tooltip.js 31 plugins/auto/bootstrap4/v4.7.2/bootstrap/js/bootstrap-popover.js 32] 60.4% */ 33 34/* prive/javascript/jquery.js?1788356716 */ 35 36(function(global,factory){ 37"use strict"; 38if(typeof module==="object"&&typeof module.exports==="object"){ 39module.exports=global.document? 40factory(global,true): 41function(w){ 42if(!w.document){ 43throw new Error("jQuery requires a window with a document"); 44} 45return factory(w); 46}; 47}else{ 48factory(global); 49} 50})(typeof window!=="undefined"?window:this,function(window,noGlobal){ 51"use strict"; 52var arr=[]; 53var getProto=Object.getPrototypeOf; 54var slice=arr.slice; 55var flat=arr.flat?function(array){ 56return arr.flat.call(array); 57}:function(array){ 58return arr.concat.apply([],array); 59}; 60var push=arr.push; 61var indexOf=arr.indexOf; 62var class2type={}; 63var toString=class2type.toString; 64var hasOwn=class2type.hasOwnProperty; 65var fnToString=hasOwn.toString; 66var ObjectFunctionString=fnToString.call(Object); 67var support={}; 68var isFunction=function isFunction(obj){ 69return typeof obj==="function"&&typeof obj.nodeType!=="number"&& 70typeof obj.item!=="function"; 71}; 72var isWindow=function isWindow(obj){ 73return obj!=null&&obj===obj.window; 74}; 75var document=window.document; 76var preservedScriptAttributes={ 77type:true, 78src:true, 79nonce:true, 80noModule:true 81}; 82function DOMEval(code,node,doc){ 83doc=doc||document; 84var i,val, 85script=doc.createElement("script"); 86script.text=code; 87if(node){ 88for(i in preservedScriptAttributes){ 89val=node[i]||node.getAttribute&&node.getAttribute(i); 90if(val){ 91script.setAttribute(i,val); 92} 93} 94} 95doc.head.appendChild(script).parentNode.removeChild(script); 96} 97function toType(obj){ 98if(obj==null){ 99return obj+""; 100} 101return typeof obj==="object"||typeof obj==="function"? 102class2type[toString.call(obj)]||"object": 103typeof obj; 104} 105var version="3.7.1", 106rhtmlSuffix=/HTML$/i, 107jQuery=function(selector,context){ 108return new jQuery.fn.init(selector,context); 109}; 110jQuery.fn=jQuery.prototype={ 111jquery:version, 112constructor:jQuery, 113length:0, 114toArray:function(){ 115return slice.call(this); 116}, 117get:function(num){ 118if(num==null){ 119return slice.call(this); 120} 121return num<0?this[num+this.length]:this[num]; 122}, 123pushStack:function(elems){ 124var ret=jQuery.merge(this.constructor(),elems); 125ret.prevObject=this; 126return ret; 127}, 128each:function(callback){ 129return jQuery.each(this,callback); 130}, 131map:function(callback){ 132return this.pushStack(jQuery.map(this,function(elem,i){ 133return callback.call(elem,i,elem); 134})); 135}, 136slice:function(){ 137return this.pushStack(slice.apply(this,arguments)); 138}, 139first:function(){ 140return this.eq(0); 141}, 142last:function(){ 143return this.eq(-1); 144}, 145even:function(){ 146return this.pushStack(jQuery.grep(this,function(_elem,i){ 147return(i+1)%2; 148})); 149}, 150odd:function(){ 151return this.pushStack(jQuery.grep(this,function(_elem,i){ 152return i%2; 153})); 154}, 155eq:function(i){ 156var len=this.length, 157j=+i+(i<0?len:0); 158return this.pushStack(j>=0&&j<len?[this[j]]:[]); 159}, 160end:function(){ 161return this.prevObject||this.constructor(); 162}, 163push:push, 164sort:arr.sort, 165splice:arr.splice 166}; 167jQuery.extend=jQuery.fn.extend=function(){ 168var options,name,src,copy,copyIsArray,clone, 169target=arguments[0]||{}, 170i=1, 171length=arguments.length, 172deep=false; 173if(typeof target==="boolean"){ 174deep=target; 175target=arguments[i]||{}; 176i++; 177} 178if(typeof target!=="object"&&!isFunction(target)){ 179target={}; 180} 181if(i===length){ 182target=this; 183i--; 184} 185for(;i<length;i++){ 186if((options=arguments[i])!=null){ 187for(name in options){ 188copy=options[name]; 189if(name==="__proto__"||target===copy){ 190continue; 191} 192if(deep&©&&(jQuery.isPlainObject(copy)|| 193(copyIsArray=Array.isArray(copy)))){ 194src=target[name]; 195if(copyIsArray&&!Array.isArray(src)){ 196clone=[]; 197}else if(!copyIsArray&&!jQuery.isPlainObject(src)){ 198clone={}; 199}else{ 200clone=src; 201} 202copyIsArray=false; 203target[name]=jQuery.extend(deep,clone,copy); 204}else if(copy!==undefined){ 205target[name]=copy; 206} 207} 208} 209} 210return target; 211}; 212jQuery.extend({ 213expando:"jQuery"+(version+Math.random()).replace(/\D/g,""), 214isReady:true, 215error:function(msg){ 216throw new Error(msg); 217}, 218noop:function(){}, 219isPlainObject:function(obj){ 220var proto,Ctor; 221if(!obj||toString.call(obj)!=="[object Object]"){ 222return false; 223} 224proto=getProto(obj); 225if(!proto){ 226return true; 227} 228Ctor=hasOwn.call(proto,"constructor")&&proto.constructor; 229return typeof Ctor==="function"&&fnToString.call(Ctor)===ObjectFunctionString; 230}, 231isEmptyObject:function(obj){ 232var name; 233for(name in obj){ 234return false; 235} 236return true; 237}, 238globalEval:function(code,options,doc){ 239DOMEval(code,{nonce:options&&options.nonce},doc); 240}, 241each:function(obj,callback){ 242var length,i=0; 243if(isArrayLike(obj)){ 244length=obj.length; 245for(;i<length;i++){ 246if(callback.call(obj[i],i,obj[i])===false){ 247break; 248} 249} 250}else{ 251for(i in obj){ 252if(callback.call(obj[i],i,obj[i])===false){ 253break; 254} 255} 256} 257return obj; 258}, 259text:function(elem){ 260var node, 261ret="", 262i=0, 263nodeType=elem.nodeType; 264if(!nodeType){ 265while((node=elem[i++])){ 266ret+=jQuery.text(node); 267} 268} 269if(nodeType===1||nodeType===11){ 270return elem.textContent; 271} 272if(nodeType===9){ 273return elem.documentElement.textContent; 274} 275if(nodeType===3||nodeType===4){ 276return elem.nodeValue; 277} 278return ret; 279}, 280makeArray:function(arr,results){ 281var ret=results||[]; 282if(arr!=null){ 283if(isArrayLike(Object(arr))){ 284jQuery.merge(ret, 285typeof arr==="string"? 286[arr]:arr 287); 288}else{ 289push.call(ret,arr); 290} 291} 292return ret; 293}, 294inArray:function(elem,arr,i){ 295return arr==null?-1:indexOf.call(arr,elem,i); 296}, 297isXMLDoc:function(elem){ 298var namespace=elem&&elem.namespaceURI, 299docElem=elem&&(elem.ownerDocument||elem).documentElement; 300return!rhtmlSuffix.test(namespace||docElem&&docElem.nodeName||"HTML"); 301}, 302merge:function(first,second){ 303var len=+second.length, 304j=0, 305i=first.length; 306for(;j<len;j++){ 307first[i++]=second[j]; 308} 309first.length=i; 310return first; 311}, 312grep:function(elems,callback,invert){ 313var callbackInverse, 314matches=[], 315i=0, 316length=elems.length, 317callbackExpect=!invert; 318for(;i<length;i++){ 319callbackInverse=!callback(elems[i],i); 320if(callbackInverse!==callbackExpect){ 321matches.push(elems[i]); 322} 323} 324return matches; 325}, 326map:function(elems,callback,arg){ 327var length,value, 328i=0, 329ret=[]; 330if(isArrayLike(elems)){ 331length=elems.length; 332for(;i<length;i++){ 333value=callback(elems[i],i,arg); 334if(value!=null){ 335ret.push(value); 336} 337} 338}else{ 339for(i in elems){ 340value=callback(elems[i],i,arg); 341if(value!=null){ 342ret.push(value); 343} 344} 345} 346return flat(ret); 347}, 348guid:1, 349support:support 350}); 351if(typeof Symbol==="function"){ 352jQuery.fn[Symbol.iterator]=arr[Symbol.iterator]; 353} 354jQuery.each("Boolean Number String Function Array Date RegExp Object Error Symbol".split(" "), 355function(_i,name){ 356class2type["[object "+name+"]"]=name.toLowerCase(); 357}); 358function isArrayLike(obj){ 359var length=!!obj&&"length"in obj&&obj.length, 360type=toType(obj); 361if(isFunction(obj)||isWindow(obj)){ 362return false; 363} 364return type==="array"||length===0|| 365typeof length==="number"&&length>0&&(length-1)in obj; 366} 367function nodeName(elem,name){ 368return elem.nodeName&&elem.nodeName.toLowerCase()===name.toLowerCase(); 369} 370var pop=arr.pop; 371var sort=arr.sort; 372var splice=arr.splice; 373var whitespace="[\\x20\\t\\r\\n\\f]"; 374var rtrimCSS=new RegExp( 375"^"+whitespace+"+|((?:^|[^\\\\])(?:\\\\.)*)"+whitespace+"+$", 376"g" 377); 378jQuery.contains=function(a,b){ 379var bup=b&&b.parentNode; 380return a===bup||!!(bup&&bup.nodeType===1&&( 381a.contains? 382a.contains(bup): 383a.compareDocumentPosition&&a.compareDocumentPosition(bup)&16 384)); 385}; 386var rcssescape=/([\0-\x1f\x7f]|^-?\d)|^-$|[^\x80-\uFFFF\w-]/g; 387function fcssescape(ch,asCodePoint){ 388if(asCodePoint){ 389if(ch==="\0"){ 390return"\uFFFD"; 391} 392return ch.slice(0,-1)+"\\"+ch.charCodeAt(ch.length-1).toString(16)+" "; 393} 394return"\\"+ch; 395} 396jQuery.escapeSelector=function(sel){ 397return(sel+"").replace(rcssescape,fcssescape); 398}; 399var preferredDoc=document, 400pushNative=push; 401(function(){ 402var i, 403Expr, 404outermostContext, 405sortInput, 406hasDuplicate, 407push=pushNative, 408document, 409documentElement, 410documentIsHTML, 411rbuggyQSA, 412matches, 413expando=jQuery.expando, 414dirruns=0, 415done=0, 416classCache=createCache(), 417tokenCache=createCache(), 418compilerCache=createCache(), 419nonnativeSelectorCache=createCache(), 420sortOrder=function(a,b){ 421if(a===b){ 422hasDuplicate=true; 423} 424return 0; 425}, 426booleans="checked|selected|async|autofocus|autoplay|controls|defer|disabled|hidden|ismap|"+ 427"loop|multiple|open|readonly|required|scoped", 428identifier="(?:\\\\[\\da-fA-F]{1,6}"+whitespace+ 429"?|\\\\[^\\r\\n\\f]|[\\w-]|[^\0-\\x7f])+", 430attributes="\\["+whitespace+"*("+identifier+")(?:"+whitespace+ 431"*([*^$|!~]?=)"+whitespace+ 432"*(?:'((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\"|("+identifier+"))|)"+ 433whitespace+"*\\]", 434pseudos=":("+identifier+")(?:\\(("+ 435"('((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\")|"+ 436"((?:\\\\.|[^\\\\()[\\]]|"+attributes+")*)|"+ 437".*"+ 438")\\)|)", 439rwhitespace=new RegExp(whitespace+"+","g"), 440rcomma=new RegExp("^"+whitespace+"*,"+whitespace+"*"), 441rleadingCombinator=new RegExp("^"+whitespace+"*([>+~]|"+whitespace+")"+ 442whitespace+"*"), 443rdescend=new RegExp(whitespace+"|>"), 444rpseudo=new RegExp(pseudos), 445ridentifier=new RegExp("^"+identifier+"$"), 446matchExpr={ 447ID:new RegExp("^#("+identifier+")"), 448CLASS:new RegExp("^\\.("+identifier+")"), 449TAG:new RegExp("^("+identifier+"|[*])"), 450ATTR:new RegExp("^"+attributes), 451PSEUDO:new RegExp("^"+pseudos), 452CHILD:new RegExp( 453"^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\("+ 454whitespace+"*(even|odd|(([+-]|)(\\d*)n|)"+whitespace+"*(?:([+-]|)"+ 455whitespace+"*(\\d+)|))"+whitespace+"*\\)|)","i"), 456bool:new RegExp("^(?:"+booleans+")$","i"), 457needsContext:new RegExp("^"+whitespace+ 458"*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\("+whitespace+ 459"*((?:-\\d)?\\d*)"+whitespace+"*\\)|)(?=[^-]|$)","i") 460}, 461rinputs=/^(?:input|select|textarea|button)$/i, 462rheader=/^h\d$/i, 463rquickExpr=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/, 464rsibling=/[+~]/, 465runescape=new RegExp("\\\\[\\da-fA-F]{1,6}"+whitespace+ 466"?|\\\\([^\\r\\n\\f])","g"), 467funescape=function(escape,nonHex){ 468var high="0x"+escape.slice(1)-0x10000; 469if(nonHex){ 470return nonHex; 471} 472return high<0? 473String.fromCharCode(high+0x10000): 474String.fromCharCode(high>>10|0xD800,high&0x3FF|0xDC00); 475}, 476unloadHandler=function(){ 477setDocument(); 478}, 479inDisabledFieldset=addCombinator( 480function(elem){ 481return elem.disabled===true&&nodeName(elem,"fieldset"); 482}, 483{dir:"parentNode",next:"legend"} 484); 485function safeActiveElement(){ 486try{ 487return document.activeElement; 488}catch(err){} 489} 490try{ 491push.apply( 492(arr=slice.call(preferredDoc.childNodes)), 493preferredDoc.childNodes 494); 495arr[preferredDoc.childNodes.length].nodeType; 496}catch(e){ 497push={ 498apply:function(target,els){ 499pushNative.apply(target,slice.call(els)); 500}, 501call:function(target){ 502pushNative.apply(target,slice.call(arguments,1)); 503} 504}; 505} 506function find(selector,context,results,seed){ 507var m,i,elem,nid,match,groups,newSelector, 508newContext=context&&context.ownerDocument, 509nodeType=context?context.nodeType:9; 510results=results||[]; 511if(typeof selector!=="string"||!selector|| 512nodeType!==1&&nodeType!==9&&nodeType!==11){ 513return results; 514} 515if(!seed){ 516setDocument(context); 517context=context||document; 518if(documentIsHTML){ 519if(nodeType!==11&&(match=rquickExpr.exec(selector))){ 520if((m=match[1])){ 521if(nodeType===9){ 522if((elem=context.getElementById(m))){ 523if(elem.id===m){ 524push.call(results,elem); 525return results; 526} 527}else{ 528return results; 529} 530}else{ 531if(newContext&&(elem=newContext.getElementById(m))&& 532find.contains(context,elem)&& 533elem.id===m){ 534push.call(results,elem); 535return results; 536} 537} 538}else if(match[2]){ 539push.apply(results,context.getElementsByTagName(selector)); 540return results; 541}else if((m=match[3])&&context.getElementsByClassName){ 542push.apply(results,context.getElementsByClassName(m)); 543return results; 544} 545} 546if(!nonnativeSelectorCache[selector+" "]&& 547(!rbuggyQSA||!rbuggyQSA.test(selector))){ 548newSelector=selector; 549newContext=context; 550if(nodeType===1&& 551(rdescend.test(selector)||rleadingCombinator.test(selector))){ 552newContext=rsibling.test(selector)&&testContext(context.parentNode)|| 553context; 554if(newContext!=context||!support.scope){ 555if((nid=context.getAttribute("id"))){ 556nid=jQuery.escapeSelector(nid); 557}else{ 558context.setAttribute("id",(nid=expando)); 559} 560} 561groups=tokenize(selector); 562i=groups.length; 563while(i--){ 564groups[i]=(nid?"#"+nid:":scope")+" "+ 565toSelector(groups[i]); 566} 567newSelector=groups.join(","); 568} 569try{ 570push.apply(results, 571newContext.querySelectorAll(newSelector) 572); 573return results; 574}catch(qsaError){ 575nonnativeSelectorCache(selector,true); 576}finally{ 577if(nid===expando){ 578context.removeAttribute("id"); 579} 580} 581} 582} 583} 584return select(selector.replace(rtrimCSS,"$1"),context,results,seed); 585} 586function createCache(){ 587var keys=[]; 588function cache(key,value){ 589if(keys.push(key+" ")>Expr.cacheLength){ 590delete cache[keys.shift()]; 591} 592return(cache[key+" "]=value); 593} 594return cache; 595} 596function markFunction(fn){ 597fn[expando]=true; 598return fn; 599} 600function assert(fn){ 601var el=document.createElement("fieldset"); 602try{ 603return!!fn(el); 604}catch(e){ 605return false; 606}finally{ 607if(el.parentNode){ 608el.parentNode.removeChild(el); 609} 610el=null; 611} 612} 613function createInputPseudo(type){ 614return function(elem){ 615return nodeName(elem,"input")&&elem.type===type; 616}; 617} 618function createButtonPseudo(type){ 619return function(elem){ 620return(nodeName(elem,"input")||nodeName(elem,"button"))&& 621elem.type===type; 622}; 623} 624function createDisabledPseudo(disabled){ 625return function(elem){ 626if("form"in elem){ 627if(elem.parentNode&&elem.disabled===false){ 628if("label"in elem){ 629if("label"in elem.parentNode){ 630return elem.parentNode.disabled===disabled; 631}else{ 632return elem.disabled===disabled; 633} 634} 635return elem.isDisabled===disabled|| 636elem.isDisabled!==!disabled&& 637inDisabledFieldset(elem)===disabled; 638} 639return elem.disabled===disabled; 640}else if("label"in elem){ 641return elem.disabled===disabled; 642} 643return false; 644}; 645} 646function createPositionalPseudo(fn){ 647return markFunction(function(argument){ 648argument=+argument; 649return markFunction(function(seed,matches){ 650var j, 651matchIndexes=fn([],seed.length,argument), 652i=matchIndexes.length; 653while(i--){ 654if(seed[(j=matchIndexes[i])]){ 655seed[j]=!(matches[j]=seed[j]); 656} 657} 658}); 659}); 660} 661function testContext(context){ 662return context&&typeof context.getElementsByTagName!=="undefined"&&context; 663} 664function setDocument(node){ 665var subWindow, 666doc=node?node.ownerDocument||node:preferredDoc; 667if(doc==document||doc.nodeType!==9||!doc.documentElement){ 668return document; 669} 670document=doc; 671documentElement=document.documentElement; 672documentIsHTML=!jQuery.isXMLDoc(document); 673matches=documentElement.matches|| 674documentElement.webkitMatchesSelector|| 675documentElement.msMatchesSelector; 676if(documentElement.msMatchesSelector&& 677preferredDoc!=document&& 678(subWindow=document.defaultView)&&subWindow.top!==subWindow){ 679subWindow.addEventListener("unload",unloadHandler); 680} 681support.getById=assert(function(el){ 682documentElement.appendChild(el).id=jQuery.expando; 683return!document.getElementsByName|| 684!document.getElementsByName(jQuery.expando).length; 685}); 686support.disconnectedMatch=assert(function(el){ 687return matches.call(el,"*"); 688}); 689support.scope=assert(function(){ 690return document.querySelectorAll(":scope"); 691}); 692support.cssHas=assert(function(){ 693try{ 694document.querySelector(":has(*,:jqfake)"); 695return false; 696}catch(e){ 697return true; 698} 699}); 700if(support.getById){ 701Expr.filter.ID=function(id){ 702var attrId=id.replace(runescape,funescape); 703return function(elem){ 704return elem.getAttribute("id")===attrId; 705}; 706}; 707Expr.find.ID=function(id,context){ 708if(typeof context.getElementById!=="undefined"&&documentIsHTML){ 709var elem=context.getElementById(id); 710return elem?[elem]:[]; 711} 712}; 713}else{ 714Expr.filter.ID=function(id){ 715var attrId=id.replace(runescape,funescape); 716return function(elem){ 717var node=typeof elem.getAttributeNode!=="undefined"&& 718elem.getAttributeNode("id"); 719return node&&node.value===attrId; 720}; 721}; 722Expr.find.ID=function(id,context){ 723if(typeof context.getElementById!=="undefined"&&documentIsHTML){ 724var node,i,elems, 725elem=context.getElementById(id); 726if(elem){ 727node=elem.getAttributeNode("id"); 728if(node&&node.value===id){ 729return[elem]; 730} 731elems=context.getElementsByName(id); 732i=0; 733while((elem=elems[i++])){ 734node=elem.getAttributeNode("id"); 735if(node&&node.value===id){ 736return[elem]; 737} 738} 739} 740return[]; 741} 742}; 743} 744Expr.find.TAG=function(tag,context){ 745if(typeof context.getElementsByTagName!=="undefined"){ 746return context.getElementsByTagName(tag); 747}else{ 748return context.querySelectorAll(tag); 749} 750}; 751Expr.find.CLASS=function(className,context){ 752if(typeof context.getElementsByClassName!=="undefined"&&documentIsHTML){ 753return context.getElementsByClassName(className); 754} 755}; 756rbuggyQSA=[]; 757assert(function(el){ 758var input; 759documentElement.appendChild(el).innerHTML= 760"<a id='"+expando+"' href='' disabled='disabled'></a>"+ 761"<select id='"+expando+"-\r\\' disabled='disabled'>"+ 762"<option selected=''></option></select>"; 763if(!el.querySelectorAll("[selected]").length){ 764rbuggyQSA.push("\\["+whitespace+"*(?:value|"+booleans+")"); 765} 766if(!el.querySelectorAll("[id~="+expando+"-]").length){ 767rbuggyQSA.push("~="); 768} 769if(!el.querySelectorAll("a#"+expando+"+*").length){ 770rbuggyQSA.push(".#.+[+~]"); 771} 772if(!el.querySelectorAll(":checked").length){ 773rbuggyQSA.push(":checked"); 774} 775input=document.createElement("input"); 776input.setAttribute("type","hidden"); 777el.appendChild(input).setAttribute("name","D"); 778documentElement.appendChild(el).disabled=true; 779if(el.querySelectorAll(":disabled").length!==2){ 780rbuggyQSA.push(":enabled",":disabled"); 781} 782input=document.createElement("input"); 783input.setAttribute("name",""); 784el.appendChild(input); 785if(!el.querySelectorAll("[name='']").length){ 786rbuggyQSA.push("\\["+whitespace+"*name"+whitespace+"*="+ 787whitespace+"*(?:''|\"\")"); 788} 789}); 790if(!support.cssHas){ 791rbuggyQSA.push(":has"); 792} 793rbuggyQSA=rbuggyQSA.length&&new RegExp(rbuggyQSA.join("|")); 794sortOrder=function(a,b){ 795if(a===b){ 796hasDuplicate=true; 797return 0; 798} 799var compare=!a.compareDocumentPosition-!b.compareDocumentPosition; 800if(compare){ 801return compare; 802} 803compare=(a.ownerDocument||a)==(b.ownerDocument||b)? 804a.compareDocumentPosition(b): 8051; 806if(compare&1|| 807(!support.sortDetached&&b.compareDocumentPosition(a)===compare)){ 808if(a===document||a.ownerDocument==preferredDoc&& 809find.contains(preferredDoc,a)){ 810return-1; 811} 812if(b===document||b.ownerDocument==preferredDoc&& 813find.contains(preferredDoc,b)){ 814return 1; 815} 816return sortInput? 817(indexOf.call(sortInput,a)-indexOf.call(sortInput,b)): 8180; 819} 820return compare&4?-1:1; 821}; 822return document; 823} 824find.matches=function(expr,elements){ 825return find(expr,null,null,elements); 826}; 827find.matchesSelector=function(elem,expr){ 828setDocument(elem); 829if(documentIsHTML&& 830!nonnativeSelectorCache[expr+" "]&& 831(!rbuggyQSA||!rbuggyQSA.test(expr))){ 832try{ 833var ret=matches.call(elem,expr); 834if(ret||support.disconnectedMatch|| 835elem.document&&elem.document.nodeType!==11){ 836return ret; 837} 838}catch(e){ 839nonnativeSelectorCache(expr,true); 840} 841} 842return find(expr,document,null,[elem]).length>0; 843}; 844find.contains=function(context,elem){ 845if((context.ownerDocument||context)!=document){ 846setDocument(context); 847} 848return jQuery.contains(context,elem); 849}; 850find.attr=function(elem,name){ 851if((elem.ownerDocument||elem)!=document){ 852setDocument(elem); 853} 854var fn=Expr.attrHandle[name.toLowerCase()], 855val=fn&&hasOwn.call(Expr.attrHandle,name.toLowerCase())? 856fn(elem,name,!documentIsHTML): 857undefined; 858if(val!==undefined){ 859return val; 860} 861return elem.getAttribute(name); 862}; 863find.error=function(msg){ 864throw new Error("Syntax error, unrecognized expression: "+msg); 865}; 866jQuery.uniqueSort=function(results){ 867var elem, 868duplicates=[], 869j=0, 870i=0; 871hasDuplicate=!support.sortStable; 872sortInput=!support.sortStable&&slice.call(results,0); 873sort.call(results,sortOrder); 874if(hasDuplicate){ 875while((elem=results[i++])){ 876if(elem===results[i]){ 877j=duplicates.push(i); 878} 879} 880while(j--){ 881splice.call(results,duplicates[j],1); 882} 883} 884sortInput=null; 885return results; 886}; 887jQuery.fn.uniqueSort=function(){ 888return this.pushStack(jQuery.uniqueSort(slice.apply(this))); 889}; 890Expr=jQuery.expr={ 891cacheLength:50, 892createPseudo:markFunction, 893match:matchExpr, 894attrHandle:{}, 895find:{}, 896relative:{ 897">":{dir:"parentNode",first:true}, 898" ":{dir:"parentNode"}, 899"+":{dir:"previousSibling",first:true}, 900"~":{dir:"previousSibling"} 901}, 902preFilter:{ 903ATTR:function(match){ 904match[1]=match[1].replace(runescape,funescape); 905match[3]=(match[3]||match[4]||match[5]||"") 906.replace(runescape,funescape); 907if(match[2]==="~="){ 908match[3]=" "+match[3]+" "; 909} 910return match.slice(0,4); 911}, 912CHILD:function(match){ 913match[1]=match[1].toLowerCase(); 914if(match[1].slice(0,3)==="nth"){ 915if(!match[3]){ 916find.error(match[0]); 917} 918match[4]=+(match[4]? 919match[5]+(match[6]||1): 9202*(match[3]==="even"||match[3]==="odd") 921); 922match[5]=+((match[7]+match[8])||match[3]==="odd"); 923}else if(match[3]){ 924find.error(match[0]); 925} 926return match; 927}, 928PSEUDO:function(match){ 929var excess, 930unquoted=!match[6]&&match[2]; 931if(matchExpr.CHILD.test(match[0])){ 932return null; 933} 934if(match[3]){ 935match[2]=match[4]||match[5]||""; 936}else if(unquoted&&rpseudo.test(unquoted)&& 937(excess=tokenize(unquoted,true))&& 938(excess=unquoted.indexOf(")",unquoted.length-excess)-unquoted.length)){ 939match[0]=match[0].slice(0,excess); 940match[2]=unquoted.slice(0,excess); 941} 942return match.slice(0,3); 943} 944}, 945filter:{ 946TAG:function(nodeNameSelector){ 947var expectedNodeName=nodeNameSelector.replace(runescape,funescape).toLowerCase(); 948return nodeNameSelector==="*"? 949function(){ 950return true; 951}: 952function(elem){ 953return nodeName(elem,expectedNodeName); 954}; 955}, 956CLASS:function(className){ 957var pattern=classCache[className+" "]; 958return pattern|| 959(pattern=new RegExp("(^|"+whitespace+")"+className+ 960"("+whitespace+"|$)"))&& 961classCache(className,function(elem){ 962return pattern.test( 963typeof elem.className==="string"&&elem.className|| 964typeof elem.getAttribute!=="undefined"&& 965elem.getAttribute("class")|| 966"" 967); 968}); 969}, 970ATTR:function(name,operator,check){ 971return function(elem){ 972var result=find.attr(elem,name); 973if(result==null){ 974return operator==="!="; 975} 976if(!operator){ 977return true; 978} 979result+=""; 980if(operator==="="){ 981return result===check; 982} 983if(operator==="!="){ 984return result!==check; 985} 986if(operator==="^="){ 987return check&&result.indexOf(check)===0; 988} 989if(operator==="*="){ 990return check&&result.indexOf(check)>-1; 991} 992if(operator==="$="){ 993return check&&result.slice(-check.length)===check; 994} 995if(operator==="~="){ 996return(" "+result.replace(rwhitespace," ")+" ") 997.indexOf(check)>-1; 998} 999if(operator==="|="){ 1000return result===check||result.slice(0,check.length+1)===check+"-"; 1001} 1002return false; 1003}; 1004}, 1005CHILD:function(type,what,_argument,first,last){ 1006var simple=type.slice(0,3)!=="nth", 1007forward=type.slice(-4)!=="last", 1008ofType=what==="of-type"; 1009return first===1&&last===0? 1010function(elem){ 1011return!!elem.parentNode; 1012}: 1013function(elem,_context,xml){ 1014var cache,outerCache,node,nodeIndex,start, 1015dir=simple!==forward?"nextSibling":"previousSibling", 1016parent=elem.parentNode, 1017name=ofType&&elem.nodeName.toLowerCase(), 1018useCache=!xml&&!ofType, 1019diff=false; 1020if(parent){ 1021if(simple){ 1022while(dir){ 1023node=elem; 1024while((node=node[dir])){ 1025if(ofType? 1026nodeName(node,name): 1027node.nodeType===1){ 1028return false; 1029} 1030} 1031start=dir=type==="only"&&!start&&"nextSibling"; 1032} 1033return true; 1034} 1035start=[forward?parent.firstChild:parent.lastChild]; 1036if(forward&&useCache){ 1037outerCache=parent[expando]||(parent[expando]={}); 1038cache=outerCache[type]||[]; 1039nodeIndex=cache[0]===dirruns&&cache[1]; 1040diff=nodeIndex&&cache[2]; 1041node=nodeIndex&&parent.childNodes[nodeIndex]; 1042while((node=++nodeIndex&&node&&node[dir]|| 1043(diff=nodeIndex=0)||start.pop())){ 1044if(node.nodeType===1&&++diff&&node===elem){ 1045outerCache[type]=[dirruns,nodeIndex,diff]; 1046break; 1047} 1048} 1049}else{ 1050if(useCache){ 1051outerCache=elem[expando]||(elem[expando]={}); 1052cache=outerCache[type]||[]; 1053nodeIndex=cache[0]===dirruns&&cache[1]; 1054diff=nodeIndex; 1055} 1056if(diff===false){ 1057while((node=++nodeIndex&&node&&node[dir]|| 1058(diff=nodeIndex=0)||start.pop())){ 1059if((ofType? 1060nodeName(node,name): 1061node.nodeType===1)&& 1062++diff){ 1063if(useCache){ 1064outerCache=node[expando]|| 1065(node[expando]={}); 1066outerCache[type]=[dirruns,diff]; 1067} 1068if(node===elem){ 1069break; 1070} 1071} 1072} 1073} 1074} 1075diff-=last; 1076return diff===first||(diff%first===0&&diff/first>=0); 1077} 1078}; 1079}, 1080PSEUDO:function(pseudo,argument){ 1081var args, 1082fn=Expr.pseudos[pseudo]||Expr.setFilters[pseudo.toLowerCase()]|| 1083find.error("unsupported pseudo: "+pseudo); 1084if(fn[expando]){ 1085return fn(argument); 1086} 1087if(fn.length>1){ 1088args=[pseudo,pseudo,"",argument]; 1089return Expr.setFilters.hasOwnProperty(pseudo.toLowerCase())? 1090markFunction(function(seed,matches){ 1091var idx, 1092matched=fn(seed,argument), 1093i=matched.length; 1094while(i--){ 1095idx=indexOf.call(seed,matched[i]); 1096seed[idx]=!(matches[idx]=matched[i]); 1097} 1098}): 1099function(elem){ 1100return fn(elem,0,args); 1101}; 1102} 1103return fn; 1104} 1105}, 1106pseudos:{ 1107not:markFunction(function(selector){ 1108var input=[], 1109results=[], 1110matcher=compile(selector.replace(rtrimCSS,"$1")); 1111return matcher[expando]? 1112markFunction(function(seed,matches,_context,xml){ 1113var elem, 1114unmatched=matcher(seed,null,xml,[]), 1115i=seed.length; 1116while(i--){ 1117if((elem=unmatched[i])){ 1118seed[i]=!(matches[i]=elem); 1119} 1120} 1121}): 1122function(elem,_context,xml){ 1123input[0]=elem; 1124matcher(input,null,xml,results); 1125input[0]=null; 1126return!results.pop(); 1127}; 1128}), 1129has:markFunction(function(selector){ 1130return function(elem){ 1131return find(selector,elem).length>0; 1132}; 1133}), 1134contains:markFunction(function(text){ 1135text=text.replace(runescape,funescape); 1136return function(elem){ 1137return(elem.textContent||jQuery.text(elem)).indexOf(text)>-1; 1138}; 1139}), 1140lang:markFunction(function(lang){ 1141if(!ridentifier.test(lang||"")){ 1142find.error("unsupported lang: "+lang); 1143} 1144lang=lang.replace(runescape,funescape).toLowerCase(); 1145return function(elem){ 1146var elemLang; 1147do{ 1148if((elemLang=documentIsHTML? 1149elem.lang: 1150elem.getAttribute("xml:lang")||elem.getAttribute("lang"))){ 1151elemLang=elemLang.toLowerCase(); 1152return elemLang===lang||elemLang.indexOf(lang+"-")===0; 1153} 1154}while((elem=elem.parentNode)&&elem.nodeType===1); 1155return false; 1156}; 1157}), 1158target:function(elem){ 1159var hash=window.location&&window.location.hash; 1160return hash&&hash.slice(1)===elem.id; 1161}, 1162root:function(elem){ 1163return elem===documentElement; 1164}, 1165focus:function(elem){ 1166return elem===safeActiveElement()&& 1167document.hasFocus()&& 1168!!(elem.type||elem.href||~elem.tabIndex); 1169}, 1170enabled:createDisabledPseudo(false), 1171disabled:createDisabledPseudo(true), 1172checked:function(elem){ 1173return(nodeName(elem,"input")&&!!elem.checked)|| 1174(nodeName(elem,"option")&&!!elem.selected); 1175}, 1176selected:function(elem){ 1177if(elem.parentNode){ 1178elem.parentNode.selectedIndex; 1179} 1180return elem.selected===true; 1181}, 1182empty:function(elem){ 1183for(elem=elem.firstChild;elem;elem=elem.nextSibling){ 1184if(elem.nodeType<6){ 1185return false; 1186} 1187} 1188return true; 1189}, 1190parent:function(elem){ 1191return!Expr.pseudos.empty(elem); 1192}, 1193header:function(elem){ 1194return rheader.test(elem.nodeName); 1195}, 1196input:function(elem){ 1197return rinputs.test(elem.nodeName); 1198}, 1199button:function(elem){ 1200return nodeName(elem,"input")&&elem.type==="button"|| 1201nodeName(elem,"button"); 1202}, 1203text:function(elem){ 1204var attr; 1205return nodeName(elem,"input")&&elem.type==="text"&& 1206((attr=elem.getAttribute("type"))==null|| 1207attr.toLowerCase()==="text"); 1208}, 1209first:createPositionalPseudo(function(){ 1210return[0]; 1211}), 1212last:createPositionalPseudo(function(_matchIndexes,length){ 1213return[length-1]; 1214}), 1215eq:createPositionalPseudo(function(_matchIndexes,length,argument){ 1216return[argument<0?argument+length:argument]; 1217}), 1218even:createPositionalPseudo(function(matchIndexes,length){ 1219var i=0; 1220for(;i<length;i+=2){ 1221matchIndexes.push(i); 1222} 1223return matchIndexes; 1224}), 1225odd:createPositionalPseudo(function(matchIndexes,length){ 1226var i=1; 1227for(;i<length;i+=2){ 1228matchIndexes.push(i); 1229} 1230return matchIndexes; 1231}), 1232lt:createPositionalPseudo(function(matchIndexes,length,argument){ 1233var i; 1234if(argument<0){ 1235i=argument+length; 1236}else if(argument>length){ 1237i=length; 1238}else{ 1239i=argument; 1240} 1241for(;--i>=0;){ 1242matchIndexes.push(i); 1243} 1244return matchIndexes; 1245}), 1246gt:createPositionalPseudo(function(matchIndexes,length,argument){ 1247var i=argument<0?argument+length:argument; 1248for(;++i<length;){ 1249matchIndexes.push(i); 1250} 1251return matchIndexes; 1252}) 1253} 1254}; 1255Expr.pseudos.nth=Expr.pseudos.eq; 1256for(i in{radio:true,checkbox:true,file:true,password:true,image:true}){ 1257Expr.pseudos[i]=createInputPseudo(i); 1258} 1259for(i in{submit:true,reset:true}){ 1260Expr.pseudos[i]=createButtonPseudo(i); 1261} 1262function setFilters(){} 1263setFilters.prototype=Expr.filters=Expr.pseudos; 1264Expr.setFilters=new setFilters(); 1265function tokenize(selector,parseOnly){ 1266var matched,match,tokens,type, 1267soFar,groups,preFilters, 1268cached=tokenCache[selector+" "]; 1269if(cached){ 1270return parseOnly?0:cached.slice(0); 1271} 1272soFar=selector; 1273groups=[]; 1274preFilters=Expr.preFilter; 1275while(soFar){ 1276if(!matched||(match=rcomma.exec(soFar))){ 1277if(match){ 1278soFar=soFar.slice(match[0].length)||soFar; 1279} 1280groups.push((tokens=[])); 1281} 1282matched=false; 1283if((match=rleadingCombinator.exec(soFar))){ 1284matched=match.shift(); 1285tokens.push({ 1286value:matched, 1287type:match[0].replace(rtrimCSS," ") 1288}); 1289soFar=soFar.slice(matched.length); 1290} 1291for(type in Expr.filter){ 1292if((match=matchExpr[type].exec(soFar))&&(!preFilters[type]|| 1293(match=preFilters[type](match)))){ 1294matched=match.shift(); 1295tokens.push({ 1296value:matched, 1297type:type, 1298matches:match 1299}); 1300soFar=soFar.slice(matched.length); 1301} 1302} 1303if(!matched){ 1304break; 1305} 1306} 1307if(parseOnly){ 1308return soFar.length; 1309} 1310return soFar? 1311find.error(selector): 1312tokenCache(selector,groups).slice(0); 1313} 1314function toSelector(tokens){ 1315var i=0, 1316len=tokens.length, 1317selector=""; 1318for(;i<len;i++){ 1319selector+=tokens[i].value; 1320} 1321return selector; 1322} 1323function addCombinator(matcher,combinator,base){ 1324var dir=combinator.dir, 1325skip=combinator.next, 1326key=skip||dir, 1327checkNonElements=base&&key==="parentNode", 1328doneName=done++; 1329return combinator.first? 1330function(elem,context,xml){ 1331while((elem=elem[dir])){ 1332if(elem.nodeType===1||checkNonElements){ 1333return matcher(elem,context,xml); 1334} 1335} 1336return false; 1337}: 1338function(elem,context,xml){ 1339var oldCache,outerCache, 1340newCache=[dirruns,doneName]; 1341if(xml){ 1342while((elem=elem[dir])){ 1343if(elem.nodeType===1||checkNonElements){ 1344if(matcher(elem,context,xml)){ 1345return true; 1346} 1347} 1348} 1349}else{ 1350while((elem=elem[dir])){ 1351if(elem.nodeType===1||checkNonElements){ 1352outerCache=elem[expando]||(elem[expando]={}); 1353if(skip&&nodeName(elem,skip)){ 1354elem=elem[dir]||elem; 1355}else if((oldCache=outerCache[key])&& 1356oldCache[0]===dirruns&&oldCache[1]===doneName){ 1357return(newCache[2]=oldCache[2]); 1358}else{ 1359outerCache[key]=newCache; 1360if((newCache[2]=matcher(elem,context,xml))){ 1361return true; 1362} 1363} 1364} 1365} 1366} 1367return false; 1368}; 1369} 1370function elementMatcher(matchers){ 1371return matchers.length>1? 1372function(elem,context,xml){ 1373var i=matchers.length; 1374while(i--){ 1375if(!matchers[i](elem,context,xml)){ 1376return false; 1377} 1378} 1379return true; 1380}: 1381matchers[0]; 1382} 1383function multipleContexts(selector,contexts,results){ 1384var i=0, 1385len=contexts.length; 1386for(;i<len;i++){ 1387find(selector,contexts[i],results); 1388} 1389return results; 1390} 1391function condense(unmatched,map,filter,context,xml){ 1392var elem, 1393newUnmatched=[], 1394i=0, 1395len=unmatched.length, 1396mapped=map!=null; 1397for(;i<len;i++){ 1398if((elem=unmatched[i])){ 1399if(!filter||filter(elem,context,xml)){ 1400newUnmatched.push(elem); 1401if(mapped){ 1402map.push(i); 1403} 1404} 1405} 1406} 1407return newUnmatched; 1408} 1409function setMatcher(preFilter,selector,matcher,postFilter,postFinder,postSelector){ 1410if(postFilter&&!postFilter[expando]){ 1411postFilter=setMatcher(postFilter); 1412} 1413if(postFinder&&!postFinder[expando]){ 1414postFinder=setMatcher(postFinder,postSelector); 1415} 1416return markFunction(function(seed,results,context,xml){ 1417var temp,i,elem,matcherOut, 1418preMap=[], 1419postMap=[], 1420preexisting=results.length, 1421elems=seed|| 1422multipleContexts(selector||"*", 1423context.nodeType?[context]:context,[]), 1424matcherIn=preFilter&&(seed||!selector)? 1425condense(elems,preMap,preFilter,context,xml): 1426elems; 1427if(matcher){ 1428matcherOut=postFinder||(seed?preFilter:preexisting||postFilter)? 1429[]: 1430results; 1431matcher(matcherIn,matcherOut,context,xml); 1432}else{ 1433matcherOut=matcherIn; 1434} 1435if(postFilter){ 1436temp=condense(matcherOut,postMap); 1437postFilter(temp,[],context,xml); 1438i=temp.length; 1439while(i--){ 1440if((elem=temp[i])){ 1441matcherOut[postMap[i]]=!(matcherIn[postMap[i]]=elem); 1442} 1443} 1444} 1445if(seed){ 1446if(postFinder||preFilter){ 1447if(postFinder){ 1448temp=[]; 1449i=matcherOut.length; 1450while(i--){ 1451if((elem=matcherOut[i])){ 1452temp.push((matcherIn[i]=elem)); 1453} 1454} 1455postFinder(null,(matcherOut=[]),temp,xml); 1456} 1457i=matcherOut.length; 1458while(i--){ 1459if((elem=matcherOut[i])&& 1460(temp=postFinder?indexOf.call(seed,elem):preMap[i])>-1){ 1461seed[temp]=!(results[temp]=elem); 1462} 1463} 1464} 1465}else{ 1466matcherOut=condense( 1467matcherOut===results? 1468matcherOut.splice(preexisting,matcherOut.length): 1469matcherOut 1470); 1471if(postFinder){ 1472postFinder(null,results,matcherOut,xml); 1473}else{ 1474push.apply(results,matcherOut); 1475} 1476} 1477}); 1478} 1479function matcherFromTokens(tokens){ 1480var checkContext,matcher,j, 1481len=tokens.length, 1482leadingRelative=Expr.relative[tokens[0].type], 1483implicitRelative=leadingRelative||Expr.relative[" "], 1484i=leadingRelative?1:0, 1485matchContext=addCombinator(function(elem){ 1486return elem===checkContext; 1487},implicitRelative,true), 1488matchAnyContext=addCombinator(function(elem){ 1489return indexOf.call(checkContext,elem)>-1; 1490},implicitRelative,true), 1491matchers=[function(elem,context,xml){ 1492var ret=(!leadingRelative&&(xml||context!=outermostContext))||( 1493(checkContext=context).nodeType? 1494matchContext(elem,context,xml): 1495matchAnyContext(elem,context,xml)); 1496checkContext=null; 1497return ret; 1498}]; 1499for(;i<len;i++){ 1500if((matcher=Expr.relative[tokens[i].type])){ 1501matchers=[addCombinator(elementMatcher(matchers),matcher)]; 1502}else{ 1503matcher=Expr.filter[tokens[i].type].apply(null,tokens[i].matches); 1504if(matcher[expando]){ 1505j=++i; 1506for(;j<len;j++){ 1507if(Expr.relative[tokens[j].type]){ 1508break; 1509} 1510} 1511return setMatcher( 1512i>1&&elementMatcher(matchers), 1513i>1&&toSelector( 1514tokens.slice(0,i-1) 1515.concat({value:tokens[i-2].type===" "?"*":""}) 1516).replace(rtrimCSS,"$1"), 1517matcher, 1518i<j&&matcherFromTokens(tokens.slice(i,j)), 1519j<len&&matcherFromTokens((tokens=tokens.slice(j))), 1520j<len&&toSelector(tokens) 1521); 1522} 1523matchers.push(matcher); 1524} 1525} 1526return elementMatcher(matchers); 1527} 1528function matcherFromGroupMatchers(elementMatchers,setMatchers){ 1529var bySet=setMatchers.length>0, 1530byElement=elementMatchers.length>0, 1531superMatcher=function(seed,context,xml,results,outermost){ 1532var elem,j,matcher, 1533matchedCount=0, 1534i="0", 1535unmatched=seed&&[], 1536setMatched=[], 1537contextBackup=outermostContext, 1538elems=seed||byElement&&Expr.find.TAG("*",outermost), 1539dirrunsUnique=(dirruns+=contextBackup==null?1:Math.random()||0.1), 1540len=elems.length; 1541if(outermost){ 1542outermostContext=context==document||context||outermost; 1543} 1544for(;i!==len&&(elem=elems[i])!=null;i++){ 1545if(byElement&&elem){ 1546j=0; 1547if(!context&&elem.ownerDocument!=document){ 1548setDocument(elem); 1549xml=!documentIsHTML; 1550} 1551while((matcher=elementMatchers[j++])){ 1552if(matcher(elem,context||document,xml)){ 1553push.call(results,elem); 1554break; 1555} 1556} 1557if(outermost){ 1558dirruns=dirrunsUnique; 1559} 1560} 1561if(bySet){ 1562if((elem=!matcher&&elem)){ 1563matchedCount--; 1564} 1565if(seed){ 1566unmatched.push(elem); 1567} 1568} 1569} 1570matchedCount+=i; 1571if(bySet&&i!==matchedCount){ 1572j=0; 1573while((matcher=setMatchers[j++])){ 1574matcher(unmatched,setMatched,context,xml); 1575} 1576if(seed){ 1577if(matchedCount>0){ 1578while(i--){ 1579if(!(unmatched[i]||setMatched[i])){ 1580setMatched[i]=pop.call(results); 1581} 1582} 1583} 1584setMatched=condense(setMatched); 1585} 1586push.apply(results,setMatched); 1587if(outermost&&!seed&&setMatched.length>0&& 1588(matchedCount+setMatchers.length)>1){ 1589jQuery.uniqueSort(results); 1590} 1591} 1592if(outermost){ 1593dirruns=dirrunsUnique; 1594outermostContext=contextBackup; 1595} 1596return unmatched; 1597}; 1598return bySet? 1599markFunction(superMatcher): 1600superMatcher; 1601} 1602function compile(selector,match){ 1603var i, 1604setMatchers=[], 1605elementMatchers=[], 1606cached=compilerCache[selector+" "]; 1607if(!cached){ 1608if(!match){ 1609match=tokenize(selector); 1610} 1611i=match.length; 1612while(i--){ 1613cached=matcherFromTokens(match[i]); 1614if(cached[expando]){ 1615setMatchers.push(cached); 1616}else{ 1617elementMatchers.push(cached); 1618} 1619} 1620cached=compilerCache(selector, 1621matcherFromGroupMatchers(elementMatchers,setMatchers)); 1622cached.selector=selector; 1623} 1624return cached; 1625} 1626function select(selector,context,results,seed){ 1627var i,tokens,token,type,find, 1628compiled=typeof selector==="function"&&selector, 1629match=!seed&&tokenize((selector=compiled.selector||selector)); 1630results=results||[]; 1631if(match.length===1){ 1632tokens=match[0]=match[0].slice(0); 1633if(tokens.length>2&&(token=tokens[0]).type==="ID"&& 1634context.nodeType===9&&documentIsHTML&&Expr.relative[tokens[1].type]){ 1635context=(Expr.find.ID( 1636token.matches[0].replace(runescape,funescape), 1637context 1638)||[])[0]; 1639if(!context){ 1640return results; 1641}else if(compiled){ 1642context=context.parentNode; 1643} 1644selector=selector.slice(tokens.shift().value.length); 1645} 1646i=matchExpr.needsContext.test(selector)?0:tokens.length; 1647while(i--){ 1648token=tokens[i]; 1649if(Expr.relative[(type=token.type)]){ 1650break; 1651} 1652if((find=Expr.find[type])){ 1653if((seed=find( 1654token.matches[0].replace(runescape,funescape), 1655rsibling.test(tokens[0].type)&& 1656testContext(context.parentNode)||context 1657))){ 1658tokens.splice(i,1); 1659selector=seed.length&&toSelector(tokens); 1660if(!selector){ 1661push.apply(results,seed); 1662return results; 1663} 1664break; 1665} 1666} 1667} 1668} 1669(compiled||compile(selector,match))( 1670seed, 1671context, 1672!documentIsHTML, 1673results, 1674!context||rsibling.test(selector)&&testContext(context.parentNode)||context 1675); 1676return results; 1677} 1678support.sortStable=expando.split("").sort(sortOrder).join("")===expando; 1679setDocument(); 1680support.sortDetached=assert(function(el){ 1681return el.compareDocumentPosition(document.createElement("fieldset"))&1; 1682}); 1683jQuery.find=find; 1684jQuery.expr[":"]=jQuery.expr.pseudos; 1685jQuery.unique=jQuery.uniqueSort; 1686find.compile=compile; 1687find.select=select; 1688find.setDocument=setDocument; 1689find.tokenize=tokenize; 1690find.escape=jQuery.escapeSelector; 1691find.getText=jQuery.text; 1692find.isXML=jQuery.isXMLDoc; 1693find.selectors=jQuery.expr; 1694find.support=jQuery.support; 1695find.uniqueSort=jQuery.uniqueSort; 1696})(); 1697var dir=function(elem,dir,until){ 1698var matched=[], 1699truncate=until!==undefined; 1700while((elem=elem[dir])&&elem.nodeType!==9){ 1701if(elem.nodeType===1){ 1702if(truncate&&jQuery(elem).is(until)){ 1703break; 1704} 1705matched.push(elem); 1706} 1707} 1708return matched; 1709}; 1710var siblings=function(n,elem){ 1711var matched=[]; 1712for(;n;n=n.nextSibling){ 1713if(n.nodeType===1&&n!==elem){ 1714matched.push(n); 1715} 1716} 1717return matched; 1718}; 1719var rneedsContext=jQuery.expr.match.needsContext; 1720var rsingleTag=(/^<([a-z][^\/\0>:\x20\t\r\n\f]*)[\x20\t\r\n\f]*\/?>(?:<\/\1>|)$/i); 1721function winnow(elements,qualifier,not){ 1722if(isFunction(qualifier)){ 1723return jQuery.grep(elements,function(elem,i){ 1724return!!qualifier.call(elem,i,elem)!==not; 1725}); 1726} 1727if(qualifier.nodeType){ 1728return jQuery.grep(elements,function(elem){ 1729return(elem===qualifier)!==not; 1730}); 1731} 1732if(typeof qualifier!=="string"){ 1733return jQuery.grep(elements,function(elem){ 1734return(indexOf.call(qualifier,elem)>-1)!==not; 1735}); 1736} 1737return jQuery.filter(qualifier,elements,not); 1738} 1739jQuery.filter=function(expr,elems,not){ 1740var elem=elems[0]; 1741if(not){ 1742expr=":not("+expr+")"; 1743} 1744if(elems.length===1&&elem.nodeType===1){ 1745return jQuery.find.matchesSelector(elem,expr)?[elem]:[]; 1746} 1747return jQuery.find.matches(expr,jQuery.grep(elems,function(elem){ 1748return elem.nodeType===1; 1749})); 1750}; 1751jQuery.fn.extend({ 1752find:function(selector){ 1753var i,ret, 1754len=this.length, 1755self=this; 1756if(typeof selector!=="string"){ 1757return this.pushStack(jQuery(selector).filter(function(){ 1758for(i=0;i<len;i++){ 1759if(jQuery.contains(self[i],this)){ 1760return true; 1761} 1762} 1763})); 1764} 1765ret=this.pushStack([]); 1766for(i=0;i<len;i++){ 1767jQuery.find(selector,self[i],ret); 1768} 1769return len>1?jQuery.uniqueSort(ret):ret; 1770}, 1771filter:function(selector){ 1772return this.pushStack(winnow(this,selector||[],false)); 1773}, 1774not:function(selector){ 1775return this.pushStack(winnow(this,selector||[],true)); 1776}, 1777is:function(selector){ 1778return!!winnow( 1779this, 1780typeof selector==="string"&&rneedsContext.test(selector)? 1781jQuery(selector): 1782selector||[], 1783false 1784).length; 1785} 1786}); 1787var rootjQuery, 1788rquickExpr=/^(?:\s*(<[\w\W]+>)[^>]*|#([\w-]+))$/, 1789init=jQuery.fn.init=function(selector,context,root){ 1790var match,elem; 1791if(!selector){ 1792return this; 1793} 1794root=root||rootjQuery; 1795if(typeof selector==="string"){ 1796if(selector[0]==="<"&& 1797selector[selector.length-1]===">"&& 1798selector.length>=3){ 1799match=[null,selector,null]; 1800}else{ 1801match=rquickExpr.exec(selector); 1802} 1803if(match&&(match[1]||!context)){ 1804if(match[1]){ 1805context=context instanceof jQuery?context[0]:context; 1806jQuery.merge(this,jQuery.parseHTML( 1807match[1], 1808context&&context.nodeType?context.ownerDocument||context:document, 1809true 1810)); 1811if(rsingleTag.test(match[1])&&jQuery.isPlainObject(context)){ 1812for(match in context){ 1813if(isFunction(this[match])){ 1814this[match](context[match]); 1815}else{ 1816this.attr(match,context[match]); 1817} 1818} 1819} 1820return this; 1821}else{ 1822elem=document.getElementById(match[2]); 1823if(elem){ 1824this[0]=elem; 1825this.length=1; 1826} 1827return this; 1828} 1829}else if(!context||context.jquery){ 1830return(context||root).find(selector); 1831}else{ 1832return this.constructor(context).find(selector); 1833} 1834}else if(selector.nodeType){ 1835this[0]=selector; 1836this.length=1; 1837return this; 1838}else if(isFunction(selector)){ 1839return root.ready!==undefined? 1840root.ready(selector): 1841selector(jQuery); 1842} 1843return jQuery.makeArray(selector,this); 1844}; 1845init.prototype=jQuery.fn; 1846rootjQuery=jQuery(document); 1847var rparentsprev=/^(?:parents|prev(?:Until|All))/, 1848guaranteedUnique={ 1849children:true, 1850contents:true, 1851next:true, 1852prev:true 1853}; 1854jQuery.fn.extend({ 1855has:function(target){ 1856var targets=jQuery(target,this), 1857l=targets.length; 1858return this.filter(function(){ 1859var i=0; 1860for(;i<l;i++){ 1861if(jQuery.contains(this,targets[i])){ 1862return true; 1863} 1864} 1865}); 1866}, 1867closest:function(selectors,context){ 1868var cur, 1869i=0, 1870l=this.length, 1871matched=[], 1872targets=typeof selectors!=="string"&&jQuery(selectors); 1873if(!rneedsContext.test(selectors)){ 1874for(;i<l;i++){ 1875for(cur=this[i];cur&&cur!==context;cur=cur.parentNode){ 1876if(cur.nodeType<11&&(targets? 1877targets.index(cur)>-1: 1878cur.nodeType===1&& 1879jQuery.find.matchesSelector(cur,selectors))){ 1880matched.push(cur); 1881break; 1882} 1883} 1884} 1885} 1886return this.pushStack(matched.length>1?jQuery.uniqueSort(matched):matched); 1887}, 1888index:function(elem){ 1889if(!elem){ 1890return(this[0]&&this[0].parentNode)?this.first().prevAll().length:-1; 1891} 1892if(typeof elem==="string"){ 1893return indexOf.call(jQuery(elem),this[0]); 1894} 1895return indexOf.call(this, 1896elem.jquery?elem[0]:elem 1897); 1898}, 1899add:function(selector,context){ 1900return this.pushStack( 1901jQuery.uniqueSort( 1902jQuery.merge(this.get(),jQuery(selector,context)) 1903) 1904); 1905}, 1906addBack:function(selector){ 1907return this.add(selector==null? 1908this.prevObject:this.prevObject.filter(selector) 1909); 1910} 1911}); 1912function sibling(cur,dir){ 1913while((cur=cur[dir])&&cur.nodeType!==1){} 1914return cur; 1915} 1916jQuery.each({ 1917parent:function(elem){ 1918var parent=elem.parentNode; 1919return parent&&parent.nodeType!==11?parent:null; 1920}, 1921parents:function(elem){ 1922return dir(elem,"parentNode"); 1923}, 1924parentsUntil:function(elem,_i,until){ 1925return dir(elem,"parentNode",until); 1926}, 1927next:function(elem){ 1928return sibling(elem,"nextSibling"); 1929}, 1930prev:function(elem){ 1931return sibling(elem,"previousSibling"); 1932}, 1933nextAll:function(elem){ 1934return dir(elem,"nextSibling"); 1935}, 1936prevAll:function(elem){ 1937return dir(elem,"previousSibling"); 1938}, 1939nextUntil:function(elem,_i,until){ 1940return dir(elem,"nextSibling",until); 1941}, 1942prevUntil:function(elem,_i,until){ 1943return dir(elem,"previousSibling",until); 1944}, 1945siblings:function(elem){ 1946return siblings((elem.parentNode||{}).firstChild,elem); 1947}, 1948children:function(elem){ 1949return siblings(elem.firstChild); 1950}, 1951contents:function(elem){ 1952if(elem.contentDocument!=null&& 1953getProto(elem.contentDocument)){ 1954return elem.contentDocument; 1955} 1956if(nodeName(elem,"template")){ 1957elem=elem.content||elem; 1958} 1959return jQuery.merge([],elem.childNodes); 1960} 1961},function(name,fn){ 1962jQuery.fn[name]=function(until,selector){ 1963var matched=jQuery.map(this,fn,until); 1964if(name.slice(-5)!=="Until"){ 1965selector=until; 1966} 1967if(selector&&typeof selector==="string"){ 1968matched=jQuery.filter(selector,matched); 1969} 1970if(this.length>1){ 1971if(!guaranteedUnique[name]){ 1972jQuery.uniqueSort(matched); 1973} 1974if(rparentsprev.test(name)){ 1975matched.reverse(); 1976} 1977} 1978return this.pushStack(matched); 1979}; 1980}); 1981var rnothtmlwhite=(/[^\x20\t\r\n\f]+/g); 1982function createOptions(options){ 1983var object={}; 1984jQuery.each(options.match(rnothtmlwhite)||[],function(_,flag){ 1985object[flag]=true; 1986}); 1987return object; 1988} 1989jQuery.Callbacks=function(options){ 1990options=typeof options==="string"? 1991createOptions(options): 1992jQuery.extend({},options); 1993var 1994firing, 1995memory, 1996fired, 1997locked, 1998list=[], 1999queue=[], 2000firingIndex=-1, 2001fire=function(){ 2002locked=locked||options.once; 2003fired=firing=true; 2004for(;queue.length;firingIndex=-1){ 2005memory=queue.shift(); 2006while(++firingIndex<list.length){ 2007if(list[firingIndex].apply(memory[0],memory[1])===false&& 2008options.stopOnFalse){ 2009firingIndex=list.length; 2010memory=false; 2011} 2012} 2013} 2014if(!options.memory){ 2015memory=false; 2016} 2017firing=false; 2018if(locked){ 2019if(memory){ 2020list=[]; 2021}else{ 2022list=""; 2023} 2024} 2025}, 2026self={ 2027add:function(){ 2028if(list){ 2029if(memory&&!firing){ 2030firingIndex=list.length-1; 2031queue.push(memory); 2032} 2033(function add(args){ 2034jQuery.each(args,function(_,arg){ 2035if(isFunction(arg)){ 2036if(!options.unique||!self.has(arg)){ 2037list.push(arg); 2038} 2039}else if(arg&&arg.length&&toType(arg)!=="string"){ 2040add(arg); 2041} 2042}); 2043})(arguments); 2044if(memory&&!firing){ 2045fire(); 2046} 2047} 2048return this; 2049}, 2050remove:function(){ 2051jQuery.each(arguments,function(_,arg){ 2052var index; 2053while((index=jQuery.inArray(arg,list,index))>-1){ 2054list.splice(index,1); 2055if(index<=firingIndex){ 2056firingIndex--; 2057} 2058} 2059}); 2060return this; 2061}, 2062has:function(fn){ 2063return fn? 2064jQuery.inArray(fn,list)>-1: 2065list.length>0; 2066}, 2067empty:function(){ 2068if(list){ 2069list=[]; 2070} 2071return this; 2072}, 2073disable:function(){ 2074locked=queue=[]; 2075list=memory=""; 2076return this; 2077}, 2078disabled:function(){ 2079return!list; 2080}, 2081lock:function(){ 2082locked=queue=[]; 2083if(!memory&&!firing){ 2084list=memory=""; 2085} 2086return this; 2087}, 2088locked:function(){ 2089return!!locked; 2090}, 2091fireWith:function(context,args){ 2092if(!locked){ 2093args=args||[]; 2094args=[context,args.slice?args.slice():args]; 2095queue.push(args); 2096if(!firing){ 2097fire(); 2098} 2099} 2100return this; 2101}, 2102fire:function(){ 2103self.fireWith(this,arguments); 2104return this; 2105}, 2106fired:function(){ 2107return!!fired; 2108} 2109}; 2110return self; 2111}; 2112function Identity(v){ 2113return v; 2114} 2115function Thrower(ex){ 2116throw ex; 2117} 2118function adoptValue(value,resolve,reject,noValue){ 2119var method; 2120try{ 2121if(value&&isFunction((method=value.promise))){ 2122method.call(value).done(resolve).fail(reject); 2123}else if(value&&isFunction((method=value.then))){ 2124method.call(value,resolve,reject); 2125}else{ 2126resolve.apply(undefined,[value].slice(noValue)); 2127} 2128}catch(value){ 2129reject.apply(undefined,[value]); 2130} 2131} 2132jQuery.extend({ 2133Deferred:function(func){ 2134var tuples=[ 2135["notify","progress",jQuery.Callbacks("memory"), 2136jQuery.Callbacks("memory"),2], 2137["resolve","done",jQuery.Callbacks("once memory"), 2138jQuery.Callbacks("once memory"),0,"resolved"], 2139["reject","fail",jQuery.Callbacks("once memory"), 2140jQuery.Callbacks("once memory"),1,"rejected"] 2141], 2142state="pending", 2143promise={ 2144state:function(){ 2145return state; 2146}, 2147always:function(){ 2148deferred.done(arguments).fail(arguments); 2149return this; 2150}, 2151"catch":function(fn){ 2152return promise.then(null,fn); 2153}, 2154pipe:function(){ 2155var fns=arguments; 2156return jQuery.Deferred(function(newDefer){ 2157jQuery.each(tuples,function(_i,tuple){ 2158var fn=isFunction(fns[tuple[4]])&&fns[tuple[4]]; 2159deferred[tuple[1]](function(){ 2160var returned=fn&&fn.apply(this,arguments); 2161if(returned&&isFunction(returned.promise)){ 2162returned.promise() 2163.progress(newDefer.notify) 2164.done(newDefer.resolve) 2165.fail(newDefer.reject); 2166}else{ 2167newDefer[tuple[0]+"With"]( 2168this, 2169fn?[returned]:arguments 2170); 2171} 2172}); 2173}); 2174fns=null; 2175}).promise(); 2176}, 2177then:function(onFulfilled,onRejected,onProgress){ 2178var maxDepth=0; 2179function resolve(depth,deferred,handler,special){ 2180return function(){ 2181var that=this, 2182args=arguments, 2183mightThrow=function(){ 2184var returned,then; 2185if(depth<maxDepth){ 2186return; 2187} 2188returned=handler.apply(that,args); 2189if(returned===deferred.promise()){ 2190throw new TypeError("Thenable self-resolution"); 2191} 2192then=returned&& 2193(typeof returned==="object"|| 2194typeof returned==="function")&& 2195returned.then; 2196if(isFunction(then)){ 2197if(special){ 2198then.call( 2199returned, 2200resolve(maxDepth,deferred,Identity,special), 2201resolve(maxDepth,deferred,Thrower,special) 2202); 2203}else{ 2204maxDepth++; 2205then.call( 2206returned, 2207resolve(maxDepth,deferred,Identity,special), 2208resolve(maxDepth,deferred,Thrower,special), 2209resolve(maxDepth,deferred,Identity, 2210deferred.notifyWith) 2211); 2212} 2213}else{ 2214if(handler!==Identity){ 2215that=undefined; 2216args=[returned]; 2217} 2218(special||deferred.resolveWith)(that,args); 2219} 2220}, 2221process=special? 2222mightThrow: 2223function(){ 2224try{ 2225mightThrow(); 2226}catch(e){ 2227if(jQuery.Deferred.exceptionHook){ 2228jQuery.Deferred.exceptionHook(e, 2229process.error); 2230} 2231if(depth+1>=maxDepth){ 2232if(handler!==Thrower){ 2233that=undefined; 2234args=[e]; 2235} 2236deferred.rejectWith(that,args); 2237} 2238} 2239}; 2240if(depth){ 2241process(); 2242}else{ 2243if(jQuery.Deferred.getErrorHook){ 2244process.error=jQuery.Deferred.getErrorHook(); 2245}else if(jQuery.Deferred.getStackHook){ 2246process.error=jQuery.Deferred.getStackHook(); 2247} 2248window.setTimeout(process); 2249} 2250}; 2251} 2252return jQuery.Deferred(function(newDefer){ 2253tuples[0][3].add( 2254resolve( 22550, 2256newDefer, 2257isFunction(onProgress)? 2258onProgress: 2259Identity, 2260newDefer.notifyWith 2261) 2262); 2263tuples[1][3].add( 2264resolve( 22650, 2266newDefer, 2267isFunction(onFulfilled)? 2268onFulfilled: 2269Identity 2270) 2271); 2272tuples[2][3].add( 2273resolve( 22740, 2275newDefer, 2276isFunction(onRejected)? 2277onRejected: 2278Thrower 2279) 2280); 2281}).promise(); 2282}, 2283promise:function(obj){ 2284return obj!=null?jQuery.extend(obj,promise):promise; 2285} 2286}, 2287deferred={}; 2288jQuery.each(tuples,function(i,tuple){ 2289var list=tuple[2], 2290stateString=tuple[5]; 2291promise[tuple[1]]=list.add; 2292if(stateString){ 2293list.add( 2294function(){ 2295state=stateString; 2296}, 2297tuples[3-i][2].disable, 2298tuples[3-i][3].disable, 2299tuples[0][2].lock, 2300tuples[0][3].lock 2301); 2302} 2303list.add(tuple[3].fire); 2304deferred[tuple[0]]=function(){ 2305deferred[tuple[0]+"With"](this===deferred?undefined:this,arguments); 2306return this; 2307}; 2308deferred[tuple[0]+"With"]=list.fireWith; 2309}); 2310promise.promise(deferred); 2311if(func){ 2312func.call(deferred,deferred); 2313} 2314return deferred; 2315}, 2316when:function(singleValue){ 2317var 2318remaining=arguments.length, 2319i=remaining, 2320resolveContexts=Array(i), 2321resolveValues=slice.call(arguments), 2322primary=jQuery.Deferred(), 2323updateFunc=function(i){ 2324return function(value){ 2325resolveContexts[i]=this; 2326resolveValues[i]=arguments.length>1?slice.call(arguments):value; 2327if(!(--remaining)){ 2328primary.resolveWith(resolveContexts,resolveValues); 2329} 2330}; 2331}; 2332if(remaining<=1){ 2333adoptValue(singleValue,primary.done(updateFunc(i)).resolve,primary.reject, 2334!remaining); 2335if(primary.state()==="pending"|| 2336isFunction(resolveValues[i]&&resolveValues[i].then)){ 2337return primary.then(); 2338} 2339} 2340while(i--){ 2341adoptValue(resolveValues[i],updateFunc(i),primary.reject); 2342} 2343return primary.promise(); 2344} 2345}); 2346var rerrorNames=/^(Eval|Internal|Range|Reference|Syntax|Type|URI)Error$/; 2347jQuery.Deferred.exceptionHook=function(error,asyncError){ 2348if(window.console&&window.console.warn&&error&&rerrorNames.test(error.name)){ 2349window.console.warn("jQuery.Deferred exception: "+error.message, 2350error.stack,asyncError); 2351} 2352}; 2353jQuery.readyException=function(error){ 2354window.setTimeout(function(){ 2355throw error; 2356}); 2357}; 2358var readyList=jQuery.Deferred(); 2359jQuery.fn.ready=function(fn){ 2360readyList 2361.then(fn) 2362.catch(function(error){ 2363jQuery.readyException(error); 2364}); 2365return this; 2366}; 2367jQuery.extend({ 2368isReady:false, 2369readyWait:1, 2370ready:function(wait){ 2371if(wait===true?--jQuery.readyWait:jQuery.isReady){ 2372return; 2373} 2374jQuery.isReady=true; 2375if(wait!==true&&--jQuery.readyWait>0){ 2376return; 2377} 2378readyList.resolveWith(document,[jQuery]); 2379} 2380}); 2381jQuery.ready.then=readyList.then; 2382function completed(){ 2383document.removeEventListener("DOMContentLoaded",completed); 2384window.removeEventListener("load",completed); 2385jQuery.ready(); 2386} 2387if(document.readyState==="complete"|| 2388(document.readyState!=="loading"&&!document.documentElement.doScroll)){ 2389window.setTimeout(jQuery.ready); 2390}else{ 2391document.addEventListener("DOMContentLoaded",completed); 2392window.addEventListener("load",completed); 2393} 2394var access=function(elems,fn,key,value,chainable,emptyGet,raw){ 2395var i=0, 2396len=elems.length, 2397bulk=key==null; 2398if(toType(key)==="object"){ 2399chainable=true; 2400for(i in key){ 2401access(elems,fn,i,key[i],true,emptyGet,raw); 2402} 2403}else if(value!==undefined){ 2404chainable=true; 2405if(!isFunction(value)){ 2406raw=true; 2407} 2408if(bulk){ 2409if(raw){ 2410fn.call(elems,value); 2411fn=null; 2412}else{ 2413bulk=fn; 2414fn=function(elem,_key,value){ 2415return bulk.call(jQuery(elem),value); 2416}; 2417} 2418} 2419if(fn){ 2420for(;i<len;i++){ 2421fn( 2422elems[i],key,raw? 2423value: 2424value.call(elems[i],i,fn(elems[i],key)) 2425); 2426} 2427} 2428} 2429if(chainable){ 2430return elems; 2431} 2432if(bulk){ 2433return fn.call(elems); 2434} 2435return len?fn(elems[0],key):emptyGet; 2436}; 2437var rmsPrefix=/^-ms-/, 2438rdashAlpha=/-([a-z])/g; 2439function fcamelCase(_all,letter){ 2440return letter.toUpperCase(); 2441} 2442function camelCase(string){ 2443return string.replace(rmsPrefix,"ms-").replace(rdashAlpha,fcamelCase); 2444} 2445var acceptData=function(owner){ 2446return owner.nodeType===1||owner.nodeType===9||!(+owner.nodeType); 2447}; 2448function Data(){ 2449this.expando=jQuery.expando+Data.uid++; 2450} 2451Data.uid=1; 2452Data.prototype={ 2453cache:function(owner){ 2454var value=owner[this.expando]; 2455if(!value){ 2456value={}; 2457if(acceptData(owner)){ 2458if(owner.nodeType){ 2459owner[this.expando]=value; 2460}else{ 2461Object.defineProperty(owner,this.expando,{ 2462value:value, 2463configurable:true 2464}); 2465} 2466} 2467} 2468return value; 2469}, 2470set:function(owner,data,value){ 2471var prop, 2472cache=this.cache(owner); 2473if(typeof data==="string"){ 2474cache[camelCase(data)]=value; 2475}else{ 2476for(prop in data){ 2477cache[camelCase(prop)]=data[prop]; 2478} 2479} 2480return cache; 2481}, 2482get:function(owner,key){ 2483return key===undefined? 2484this.cache(owner): 2485owner[this.expando]&&owner[this.expando][camelCase(key)]; 2486}, 2487access:function(owner,key,value){ 2488if(key===undefined|| 2489((key&&typeof key==="string")&&value===undefined)){ 2490return this.get(owner,key); 2491} 2492this.set(owner,key,value); 2493return value!==undefined?value:key; 2494}, 2495remove:function(owner,key){ 2496var i, 2497cache=owner[this.expando]; 2498if(cache===undefined){ 2499return; 2500} 2501if(key!==undefined){ 2502if(Array.isArray(key)){ 2503key=key.map(camelCase); 2504}else{ 2505key=camelCase(key); 2506key=key in cache? 2507[key]: 2508(key.match(rnothtmlwhite)||[]); 2509} 2510i=key.length; 2511while(i--){ 2512delete cache[key[i]]; 2513} 2514} 2515if(key===undefined||jQuery.isEmptyObject(cache)){ 2516if(owner.nodeType){ 2517owner[this.expando]=undefined; 2518}else{ 2519delete owner[this.expando]; 2520} 2521} 2522}, 2523hasData:function(owner){ 2524var cache=owner[this.expando]; 2525return cache!==undefined&&!jQuery.isEmptyObject(cache); 2526} 2527}; 2528var dataPriv=new Data(); 2529var dataUser=new Data(); 2530var rbrace=/^(?:\{[\w\W]*\}|\[[\w\W]*\])$/, 2531rmultiDash=/[A-Z]/g; 2532function getData(data){ 2533if(data==="true"){ 2534return true; 2535} 2536if(data==="false"){ 2537return false; 2538} 2539if(data==="null"){ 2540return null; 2541} 2542if(data===+data+""){ 2543return+data; 2544} 2545if(rbrace.test(data)){ 2546return JSON.parse(data); 2547} 2548return data; 2549} 2550function dataAttr(elem,key,data){ 2551var name; 2552if(data===undefined&&elem.nodeType===1){ 2553name="data-"+key.replace(rmultiDash,"-$&").toLowerCase(); 2554data=elem.getAttribute(name); 2555if(typeof data==="string"){ 2556try{ 2557data=getData(data); 2558}catch(e){} 2559dataUser.set(elem,key,data); 2560}else{ 2561data=undefined; 2562} 2563} 2564return data; 2565} 2566jQuery.extend({ 2567hasData:function(elem){ 2568return dataUser.hasData(elem)||dataPriv.hasData(elem); 2569}, 2570data:function(elem,name,data){ 2571return dataUser.access(elem,name,data); 2572}, 2573removeData:function(elem,name){ 2574dataUser.remove(elem,name); 2575}, 2576_data:function(elem,name,data){ 2577return dataPriv.access(elem,name,data); 2578}, 2579_removeData:function(elem,name){ 2580dataPriv.remove(elem,name); 2581} 2582}); 2583jQuery.fn.extend({ 2584data:function(key,value){ 2585var i,name,data, 2586elem=this[0], 2587attrs=elem&&elem.attributes; 2588if(key===undefined){ 2589if(this.length){ 2590data=dataUser.get(elem); 2591if(elem.nodeType===1&&!dataPriv.get(elem,"hasDataAttrs")){ 2592i=attrs.length; 2593while(i--){ 2594if(attrs[i]){ 2595name=attrs[i].name; 2596if(name.indexOf("data-")===0){ 2597name=camelCase(name.slice(5)); 2598dataAttr(elem,name,data[name]); 2599} 2600} 2601} 2602dataPriv.set(elem,"hasDataAttrs",true); 2603} 2604} 2605return data; 2606} 2607if(typeof key==="object"){ 2608return this.each(function(){ 2609dataUser.set(this,key); 2610}); 2611} 2612return access(this,function(value){ 2613var data; 2614if(elem&&value===undefined){ 2615data=dataUser.get(elem,key); 2616if(data!==undefined){ 2617return data; 2618} 2619data=dataAttr(elem,key); 2620if(data!==undefined){ 2621return data; 2622} 2623return; 2624} 2625this.each(function(){ 2626dataUser.set(this,key,value); 2627}); 2628},null,value,arguments.length>1,null,true); 2629}, 2630removeData:function(key){ 2631return this.each(function(){ 2632dataUser.remove(this,key); 2633}); 2634} 2635}); 2636jQuery.extend({ 2637queue:function(elem,type,data){ 2638var queue; 2639if(elem){ 2640type=(type||"fx")+"queue"; 2641queue=dataPriv.get(elem,type); 2642if(data){ 2643if(!queue||Array.isArray(data)){ 2644queue=dataPriv.access(elem,type,jQuery.makeArray(data)); 2645}else{ 2646queue.push(data); 2647} 2648} 2649return queue||[]; 2650} 2651}, 2652dequeue:function(elem,type){ 2653type=type||"fx"; 2654var queue=jQuery.queue(elem,type), 2655startLength=queue.length, 2656fn=queue.shift(), 2657hooks=jQuery._queueHooks(elem,type), 2658next=function(){ 2659jQuery.dequeue(elem,type); 2660}; 2661if(fn==="inprogress"){ 2662fn=queue.shift(); 2663startLength--; 2664} 2665if(fn){ 2666if(type==="fx"){ 2667queue.unshift("inprogress"); 2668} 2669delete hooks.stop; 2670fn.call(elem,next,hooks); 2671} 2672if(!startLength&&hooks){ 2673hooks.empty.fire(); 2674} 2675}, 2676_queueHooks:function(elem,type){ 2677var key=type+"queueHooks"; 2678return dataPriv.get(elem,key)||dataPriv.access(elem,key,{ 2679empty:jQuery.Callbacks("once memory").add(function(){ 2680dataPriv.remove(elem,[type+"queue",key]); 2681}) 2682}); 2683} 2684}); 2685jQuery.fn.extend({ 2686queue:function(type,data){ 2687var setter=2; 2688if(typeof type!=="string"){ 2689data=type; 2690type="fx"; 2691setter--; 2692} 2693if(arguments.length<setter){ 2694return jQuery.queue(this[0],type); 2695} 2696return data===undefined? 2697this: 2698this.each(function(){ 2699var queue=jQuery.queue(this,type,data); 2700jQuery._queueHooks(this,type); 2701if(type==="fx"&&queue[0]!=="inprogress"){ 2702jQuery.dequeue(this,type); 2703} 2704}); 2705}, 2706dequeue:function(type){ 2707return this.each(function(){ 2708jQuery.dequeue(this,type); 2709}); 2710}, 2711clearQueue:function(type){ 2712return this.queue(type||"fx",[]); 2713}, 2714promise:function(type,obj){ 2715var tmp, 2716count=1, 2717defer=jQuery.Deferred(), 2718elements=this, 2719i=this.length, 2720resolve=function(){ 2721if(!(--count)){ 2722defer.resolveWith(elements,[elements]); 2723} 2724}; 2725if(typeof type!=="string"){ 2726obj=type; 2727type=undefined; 2728} 2729type=type||"fx"; 2730while(i--){ 2731tmp=dataPriv.get(elements[i],type+"queueHooks"); 2732if(tmp&&tmp.empty){ 2733count++; 2734tmp.empty.add(resolve); 2735} 2736} 2737resolve(); 2738return defer.promise(obj); 2739} 2740}); 2741var pnum=(/[+-]?(?:\d*\.|)\d+(?:[eE][+-]?\d+|)/).source; 2742var rcssNum=new RegExp("^(?:([+-])=|)("+pnum+")([a-z%]*)$","i"); 2743var cssExpand=["Top","Right","Bottom","Left"]; 2744var documentElement=document.documentElement; 2745var isAttached=function(elem){ 2746return jQuery.contains(elem.ownerDocument,elem); 2747}, 2748composed={composed:true}; 2749if(documentElement.getRootNode){ 2750isAttached=function(elem){ 2751return jQuery.contains(elem.ownerDocument,elem)|| 2752elem.getRootNode(composed)===elem.ownerDocument; 2753}; 2754} 2755var isHiddenWithinTree=function(elem,el){ 2756elem=el||elem; 2757return elem.style.display==="none"|| 2758elem.style.display===""&& 2759isAttached(elem)&& 2760jQuery.css(elem,"display")==="none"; 2761}; 2762function adjustCSS(elem,prop,valueParts,tween){ 2763var adjusted,scale, 2764maxIterations=20, 2765currentValue=tween? 2766function(){ 2767return tween.cur(); 2768}: 2769function(){ 2770return jQuery.css(elem,prop,""); 2771}, 2772initial=currentValue(), 2773unit=valueParts&&valueParts[3]||(jQuery.cssNumber[prop]?"":"px"), 2774initialInUnit=elem.nodeType&& 2775(jQuery.cssNumber[prop]||unit!=="px"&&+initial)&& 2776rcssNum.exec(jQuery.css(elem,prop)); 2777if(initialInUnit&&initialInUnit[3]!==unit){ 2778initial=initial/2; 2779unit=unit||initialInUnit[3]; 2780initialInUnit=+initial||1; 2781while(maxIterations--){ 2782jQuery.style(elem,prop,initialInUnit+unit); 2783if((1-scale)*(1-(scale=currentValue()/initial||0.5))<=0){ 2784maxIterations=0; 2785} 2786initialInUnit=initialInUnit/scale; 2787} 2788initialInUnit=initialInUnit*2; 2789jQuery.style(elem,prop,initialInUnit+unit); 2790valueParts=valueParts||[]; 2791} 2792if(valueParts){ 2793initialInUnit=+initialInUnit||+initial||0; 2794adjusted=valueParts[1]? 2795initialInUnit+(valueParts[1]+1)*valueParts[2]: 2796+valueParts[2]; 2797if(tween){ 2798tween.unit=unit; 2799tween.start=initialInUnit; 2800tween.end=adjusted; 2801} 2802} 2803return adjusted; 2804} 2805var defaultDisplayMap={}; 2806function getDefaultDisplay(elem){ 2807var temp, 2808doc=elem.ownerDocument, 2809nodeName=elem.nodeName, 2810display=defaultDisplayMap[nodeName]; 2811if(display){ 2812return display; 2813} 2814temp=doc.body.appendChild(doc.createElement(nodeName)); 2815display=jQuery.css(temp,"display"); 2816temp.parentNode.removeChild(temp); 2817if(display==="none"){ 2818display="block"; 2819} 2820defaultDisplayMap[nodeName]=display; 2821return display; 2822} 2823function showHide(elements,show){ 2824var display,elem, 2825values=[], 2826index=0, 2827length=elements.length; 2828for(;index<length;index++){ 2829elem=elements[index]; 2830if(!elem.style){ 2831continue; 2832} 2833display=elem.style.display; 2834if(show){ 2835if(display==="none"){ 2836values[index]=dataPriv.get(elem,"display")||null; 2837if(!values[index]){ 2838elem.style.display=""; 2839} 2840} 2841if(elem.style.display===""&&isHiddenWithinTree(elem)){ 2842values[index]=getDefaultDisplay(elem); 2843} 2844}else{ 2845if(display!=="none"){ 2846values[index]="none"; 2847dataPriv.set(elem,"display",display); 2848} 2849} 2850} 2851for(index=0;index<length;index++){ 2852if(values[index]!=null){ 2853elements[index].style.display=values[index]; 2854} 2855} 2856return elements; 2857} 2858jQuery.fn.extend({ 2859show:function(){ 2860return showHide(this,true); 2861}, 2862hide:function(){ 2863return showHide(this); 2864}, 2865toggle:function(state){ 2866if(typeof state==="boolean"){ 2867return state?this.show():this.hide(); 2868} 2869return this.each(function(){ 2870if(isHiddenWithinTree(this)){ 2871jQuery(this).show(); 2872}else{ 2873jQuery(this).hide(); 2874} 2875}); 2876} 2877}); 2878var rcheckableType=(/^(?:checkbox|radio)$/i); 2879var rtagName=(/<([a-z][^\/\0>\x20\t\r\n\f]*)/i); 2880var rscriptType=(/^$|^module$|\/(?:java|ecma)script/i); 2881(function(){ 2882var fragment=document.createDocumentFragment(), 2883div=fragment.appendChild(document.createElement("div")), 2884input=document.createElement("input"); 2885input.setAttribute("type","radio"); 2886input.setAttribute("checked","checked"); 2887input.setAttribute("name","t"); 2888div.appendChild(input); 2889support.checkClone=div.cloneNode(true).cloneNode(true).lastChild.checked; 2890div.innerHTML="<textarea>x</textarea>"; 2891support.noCloneChecked=!!div.cloneNode(true).lastChild.defaultValue; 2892div.innerHTML="<option></option>"; 2893support.option=!!div.lastChild; 2894})(); 2895var wrapMap={ 2896thead:[1,"<table>","</table>"], 2897col:[2,"<table><colgroup>","</colgroup></table>"], 2898tr:[2,"<table><tbody>","</tbody></table>"], 2899td:[3,"<table><tbody><tr>","</tr></tbody></table>"], 2900_default:[0,"",""] 2901}; 2902wrapMap.tbody=wrapMap.tfoot=wrapMap.colgroup=wrapMap.caption=wrapMap.thead; 2903wrapMap.th=wrapMap.td; 2904if(!support.option){ 2905wrapMap.optgroup=wrapMap.option=[1,"<select multiple='multiple'>","</select>"]; 2906} 2907function getAll(context,tag){ 2908var ret; 2909if(typeof context.getElementsByTagName!=="undefined"){ 2910ret=context.getElementsByTagName(tag||"*"); 2911}else if(typeof context.querySelectorAll!=="undefined"){ 2912ret=context.querySelectorAll(tag||"*"); 2913}else{ 2914ret=[]; 2915} 2916if(tag===undefined||tag&&nodeName(context,tag)){ 2917return jQuery.merge([context],ret); 2918} 2919return ret; 2920} 2921function setGlobalEval(elems,refElements){ 2922var i=0, 2923l=elems.length; 2924for(;i<l;i++){ 2925dataPriv.set( 2926elems[i], 2927"globalEval", 2928!refElements||dataPriv.get(refElements[i],"globalEval") 2929); 2930} 2931} 2932var rhtml=/<|&#?\w+;/; 2933function buildFragment(elems,context,scripts,selection,ignored){ 2934var elem,tmp,tag,wrap,attached,j, 2935fragment=context.createDocumentFragment(), 2936nodes=[], 2937i=0, 2938l=elems.length; 2939for(;i<l;i++){ 2940elem=elems[i]; 2941if(elem||elem===0){ 2942if(toType(elem)==="object"){ 2943jQuery.merge(nodes,elem.nodeType?[elem]:elem); 2944}else if(!rhtml.test(elem)){ 2945nodes.push(context.createTextNode(elem)); 2946}else{ 2947tmp=tmp||fragment.appendChild(context.createElement("div")); 2948tag=(rtagName.exec(elem)||["",""])[1].toLowerCase(); 2949wrap=wrapMap[tag]||wrapMap._default; 2950tmp.innerHTML=wrap[1]+jQuery.htmlPrefilter(elem)+wrap[2]; 2951j=wrap[0]; 2952while(j--){ 2953tmp=tmp.lastChild; 2954} 2955jQuery.merge(nodes,tmp.childNodes); 2956tmp=fragment.firstChild; 2957tmp.textContent=""; 2958} 2959} 2960} 2961fragment.textContent=""; 2962i=0; 2963while((elem=nodes[i++])){ 2964if(selection&&jQuery.inArray(elem,selection)>-1){ 2965if(ignored){ 2966ignored.push(elem); 2967} 2968continue; 2969} 2970attached=isAttached(elem); 2971tmp=getAll(fragment.appendChild(elem),"script"); 2972if(attached){ 2973setGlobalEval(tmp); 2974} 2975if(scripts){ 2976j=0; 2977while((elem=tmp[j++])){ 2978if(rscriptType.test(elem.type||"")){ 2979scripts.push(elem); 2980} 2981} 2982} 2983} 2984return fragment; 2985} 2986var rtypenamespace=/^([^.]*)(?:\.(.+)|)/; 2987function returnTrue(){ 2988return true; 2989} 2990function returnFalse(){ 2991return false; 2992} 2993function on(elem,types,selector,data,fn,one){ 2994var origFn,type; 2995if(typeof types==="object"){ 2996if(typeof selector!=="string"){ 2997data=data||selector; 2998selector=undefined; 2999} 3000for(type in types){ 3001on(elem,type,selector,data,types[type],one); 3002} 3003return elem; 3004} 3005if(data==null&&fn==null){ 3006fn=selector; 3007data=selector=undefined; 3008}else if(fn==null){ 3009if(typeof selector==="string"){ 3010fn=data; 3011data=undefined; 3012}else{ 3013fn=data; 3014data=selector; 3015selector=undefined; 3016} 3017} 3018if(fn===false){ 3019fn=returnFalse; 3020}else if(!fn){ 3021return elem; 3022} 3023if(one===1){ 3024origFn=fn; 3025fn=function(event){ 3026jQuery().off(event); 3027return origFn.apply(this,arguments); 3028}; 3029fn.guid=origFn.guid||(origFn.guid=jQuery.guid++); 3030} 3031return elem.each(function(){ 3032jQuery.event.add(this,types,fn,data,selector); 3033}); 3034} 3035jQuery.event={ 3036global:{}, 3037add:function(elem,types,handler,data,selector){ 3038var handleObjIn,eventHandle,tmp, 3039events,t,handleObj, 3040special,handlers,type,namespaces,origType, 3041elemData=dataPriv.get(elem); 3042if(!acceptData(elem)){ 3043return; 3044} 3045if(handler.handler){ 3046handleObjIn=handler; 3047handler=handleObjIn.handler; 3048selector=handleObjIn.selector; 3049} 3050if(selector){ 3051jQuery.find.matchesSelector(documentElement,selector); 3052} 3053if(!handler.guid){ 3054handler.guid=jQuery.guid++; 3055} 3056if(!(events=elemData.events)){ 3057events=elemData.events=Object.create(null); 3058} 3059if(!(eventHandle=elemData.handle)){ 3060eventHandle=elemData.handle=function(e){ 3061return typeof jQuery!=="undefined"&&jQuery.event.triggered!==e.type? 3062jQuery.event.dispatch.apply(elem,arguments):undefined; 3063}; 3064} 3065types=(types||"").match(rnothtmlwhite)||[""]; 3066t=types.length; 3067while(t--){ 3068tmp=rtypenamespace.exec(types[t])||[]; 3069type=origType=tmp[1]; 3070namespaces=(tmp[2]||"").split(".").sort(); 3071if(!type){ 3072continue; 3073} 3074special=jQuery.event.special[type]||{}; 3075type=(selector?special.delegateType:special.bindType)||type; 3076special=jQuery.event.special[type]||{}; 3077handleObj=jQuery.extend({ 3078type:type, 3079origType:origType, 3080data:data, 3081handler:handler, 3082guid:handler.guid, 3083selector:selector, 3084needsContext:selector&&jQuery.expr.match.needsContext.test(selector), 3085namespace:namespaces.join(".") 3086},handleObjIn); 3087if(!(handlers=events[type])){ 3088handlers=events[type]=[]; 3089handlers.delegateCount=0; 3090if(!special.setup|| 3091special.setup.call(elem,data,namespaces,eventHandle)===false){ 3092if(elem.addEventListener){ 3093elem.addEventListener(type,eventHandle); 3094} 3095} 3096} 3097if(special.add){ 3098special.add.call(elem,handleObj); 3099if(!handleObj.handler.guid){ 3100handleObj.handler.guid=handler.guid; 3101} 3102} 3103if(selector){ 3104handlers.splice(handlers.delegateCount++,0,handleObj); 3105}else{ 3106handlers.push(handleObj); 3107} 3108jQuery.event.global[type]=true; 3109} 3110}, 3111remove:function(elem,types,handler,selector,mappedTypes){ 3112var j,origCount,tmp, 3113events,t,handleObj, 3114special,handlers,type,namespaces,origType, 3115elemData=dataPriv.hasData(elem)&&dataPriv.get(elem); 3116if(!elemData||!(events=elemData.events)){ 3117return; 3118} 3119types=(types||"").match(rnothtmlwhite)||[""]; 3120t=types.length; 3121while(t--){ 3122tmp=rtypenamespace.exec(types[t])||[]; 3123type=origType=tmp[1]; 3124namespaces=(tmp[2]||"").split(".").sort(); 3125if(!type){ 3126for(type in events){ 3127jQuery.event.remove(elem,type+types[t],handler,selector,true); 3128} 3129continue; 3130} 3131special=jQuery.event.special[type]||{}; 3132type=(selector?special.delegateType:special.bindType)||type; 3133handlers=events[type]||[]; 3134tmp=tmp[2]&& 3135new RegExp("(^|\\.)"+namespaces.join("\\.(?:.*\\.|)")+"(\\.|$)"); 3136origCount=j=handlers.length; 3137while(j--){ 3138handleObj=handlers[j]; 3139if((mappedTypes||origType===handleObj.origType)&& 3140(!handler||handler.guid===handleObj.guid)&& 3141(!tmp||tmp.test(handleObj.namespace))&& 3142(!selector||selector===handleObj.selector|| 3143selector==="**"&&handleObj.selector)){ 3144handlers.splice(j,1); 3145if(handleObj.selector){ 3146handlers.delegateCount--; 3147} 3148if(special.remove){ 3149special.remove.call(elem,handleObj); 3150} 3151} 3152} 3153if(origCount&&!handlers.length){ 3154if(!special.teardown|| 3155special.teardown.call(elem,namespaces,elemData.handle)===false){ 3156jQuery.removeEvent(elem,type,elemData.handle); 3157} 3158delete events[type]; 3159} 3160} 3161if(jQuery.isEmptyObject(events)){ 3162dataPriv.remove(elem,"handle events"); 3163} 3164}, 3165dispatch:function(nativeEvent){ 3166var i,j,ret,matched,handleObj,handlerQueue, 3167args=new Array(arguments.length), 3168event=jQuery.event.fix(nativeEvent), 3169handlers=( 3170dataPriv.get(this,"events")||Object.create(null) 3171)[event.type]||[], 3172special=jQuery.event.special[event.type]||{}; 3173args[0]=event; 3174for(i=1;i<arguments.length;i++){ 3175args[i]=arguments[i]; 3176} 3177event.delegateTarget=this; 3178if(special.preDispatch&&special.preDispatch.call(this,event)===false){ 3179return; 3180} 3181handlerQueue=jQuery.event.handlers.call(this,event,handlers); 3182i=0; 3183while((matched=handlerQueue[i++])&&!event.isPropagationStopped()){ 3184event.currentTarget=matched.elem; 3185j=0; 3186while((handleObj=matched.handlers[j++])&& 3187!event.isImmediatePropagationStopped()){ 3188if(!event.rnamespace||handleObj.namespace===false|| 3189event.rnamespace.test(handleObj.namespace)){ 3190event.handleObj=handleObj; 3191event.data=handleObj.data; 3192ret=((jQuery.event.special[handleObj.origType]||{}).handle|| 3193handleObj.handler).apply(matched.elem,args); 3194if(ret!==undefined){ 3195if((event.result=ret)===false){ 3196event.preventDefault(); 3197event.stopPropagation(); 3198} 3199} 3200} 3201} 3202} 3203if(special.postDispatch){ 3204special.postDispatch.call(this,event); 3205} 3206return event.result; 3207}, 3208handlers:function(event,handlers){ 3209var i,handleObj,sel,matchedHandlers,matchedSelectors, 3210handlerQueue=[], 3211delegateCount=handlers.delegateCount, 3212cur=event.target; 3213if(delegateCount&& 3214cur.nodeType&& 3215!(event.type==="click"&&event.button>=1)){ 3216for(;cur!==this;cur=cur.parentNode||this){ 3217if(cur.nodeType===1&&!(event.type==="click"&&cur.disabled===true)){ 3218matchedHandlers=[]; 3219matchedSelectors={}; 3220for(i=0;i<delegateCount;i++){ 3221handleObj=handlers[i]; 3222sel=handleObj.selector+" "; 3223if(matchedSelectors[sel]===undefined){ 3224matchedSelectors[sel]=handleObj.needsContext? 3225jQuery(sel,this).index(cur)>-1: 3226jQuery.find(sel,this,null,[cur]).length; 3227} 3228if(matchedSelectors[sel]){ 3229matchedHandlers.push(handleObj); 3230} 3231} 3232if(matchedHandlers.length){ 3233handlerQueue.push({elem:cur,handlers:matchedHandlers}); 3234} 3235} 3236} 3237} 3238cur=this; 3239if(delegateCount<handlers.length){ 3240handlerQueue.push({elem:cur,handlers:handlers.slice(delegateCount)}); 3241} 3242return handlerQueue; 3243}, 3244addProp:function(name,hook){ 3245Object.defineProperty(jQuery.Event.prototype,name,{ 3246enumerable:true, 3247configurable:true, 3248get:isFunction(hook)? 3249function(){ 3250if(this.originalEvent){ 3251return hook(this.originalEvent); 3252} 3253}: 3254function(){ 3255if(this.originalEvent){ 3256return this.originalEvent[name]; 3257} 3258}, 3259set:function(value){ 3260Object.defineProperty(this,name,{ 3261enumerable:true, 3262configurable:true, 3263writable:true, 3264value:value 3265}); 3266} 3267}); 3268}, 3269fix:function(originalEvent){ 3270return originalEvent[jQuery.expando]? 3271originalEvent: 3272new jQuery.Event(originalEvent); 3273}, 3274special:{ 3275load:{ 3276noBubble:true 3277}, 3278click:{ 3279setup:function(data){ 3280var el=this||data; 3281if(rcheckableType.test(el.type)&& 3282el.click&&nodeName(el,"input")){ 3283leverageNative(el,"click",true); 3284} 3285return false; 3286}, 3287trigger:function(data){ 3288var el=this||data; 3289if(rcheckableType.test(el.type)&& 3290el.click&&nodeName(el,"input")){ 3291leverageNative(el,"click"); 3292} 3293return true; 3294}, 3295_default:function(event){ 3296var target=event.target; 3297return rcheckableType.test(target.type)&& 3298target.click&&nodeName(target,"input")&& 3299dataPriv.get(target,"click")|| 3300nodeName(target,"a"); 3301} 3302}, 3303beforeunload:{ 3304postDispatch:function(event){ 3305if(event.result!==undefined&&event.originalEvent){ 3306event.originalEvent.returnValue=event.result; 3307} 3308} 3309} 3310} 3311}; 3312function leverageNative(el,type,isSetup){ 3313if(!isSetup){ 3314if(dataPriv.get(el,type)===undefined){ 3315jQuery.event.add(el,type,returnTrue); 3316} 3317return; 3318} 3319dataPriv.set(el,type,false); 3320jQuery.event.add(el,type,{ 3321namespace:false, 3322handler:function(event){ 3323var result, 3324saved=dataPriv.get(this,type); 3325if((event.isTrigger&1)&&this[type]){ 3326if(!saved){ 3327saved=slice.call(arguments); 3328dataPriv.set(this,type,saved); 3329this[type](); 3330result=dataPriv.get(this,type); 3331dataPriv.set(this,type,false); 3332if(saved!==result){ 3333event.stopImmediatePropagation(); 3334event.preventDefault(); 3335return result; 3336} 3337}else if((jQuery.event.special[type]||{}).delegateType){ 3338event.stopPropagation(); 3339} 3340}else if(saved){ 3341dataPriv.set(this,type,jQuery.event.trigger( 3342saved[0], 3343saved.slice(1), 3344this 3345)); 3346event.stopPropagation(); 3347event.isImmediatePropagationStopped=returnTrue; 3348} 3349} 3350}); 3351} 3352jQuery.removeEvent=function(elem,type,handle){ 3353if(elem.removeEventListener){ 3354elem.removeEventListener(type,handle); 3355} 3356}; 3357jQuery.Event=function(src,props){ 3358if(!(this instanceof jQuery.Event)){ 3359return new jQuery.Event(src,props); 3360} 3361if(src&&src.type){ 3362this.originalEvent=src; 3363this.type=src.type; 3364this.isDefaultPrevented=src.defaultPrevented|| 3365src.defaultPrevented===undefined&& 3366src.returnValue===false? 3367returnTrue: 3368returnFalse; 3369this.target=(src.target&&src.target.nodeType===3)? 3370src.target.parentNode: 3371src.target; 3372this.currentTarget=src.currentTarget; 3373this.relatedTarget=src.relatedTarget; 3374}else{ 3375this.type=src; 3376} 3377if(props){ 3378jQuery.extend(this,props); 3379} 3380this.timeStamp=src&&src.timeStamp||Date.now(); 3381this[jQuery.expando]=true; 3382}; 3383jQuery.Event.prototype={ 3384constructor:jQuery.Event, 3385isDefaultPrevented:returnFalse, 3386isPropagationStopped:returnFalse, 3387isImmediatePropagationStopped:returnFalse, 3388isSimulated:false, 3389preventDefault:function(){ 3390var e=this.originalEvent; 3391this.isDefaultPrevented=returnTrue; 3392if(e&&!this.isSimulated){ 3393e.preventDefault(); 3394} 3395}, 3396stopPropagation:function(){ 3397var e=this.originalEvent; 3398this.isPropagationStopped=returnTrue; 3399if(e&&!this.isSimulated){ 3400e.stopPropagation(); 3401} 3402}, 3403stopImmediatePropagation:function(){ 3404var e=this.originalEvent; 3405this.isImmediatePropagationStopped=returnTrue; 3406if(e&&!this.isSimulated){ 3407e.stopImmediatePropagation(); 3408} 3409this.stopPropagation(); 3410} 3411}; 3412jQuery.each({ 3413altKey:true, 3414bubbles:true, 3415cancelable:true, 3416changedTouches:true, 3417ctrlKey:true, 3418detail:true, 3419eventPhase:true, 3420metaKey:true, 3421pageX:true, 3422pageY:true, 3423shiftKey:true, 3424view:true, 3425"char":true, 3426code:true, 3427charCode:true, 3428key:true, 3429keyCode:true, 3430button:true, 3431buttons:true, 3432clientX:true, 3433clientY:true, 3434offsetX:true, 3435offsetY:true, 3436pointerId:true, 3437pointerType:true, 3438screenX:true, 3439screenY:true, 3440targetTouches:true, 3441toElement:true, 3442touches:true, 3443which:true 3444},jQuery.event.addProp); 3445jQuery.each({focus:"focusin",blur:"focusout"},function(type,delegateType){ 3446function focusMappedHandler(nativeEvent){ 3447if(document.documentMode){ 3448var handle=dataPriv.get(this,"handle"), 3449event=jQuery.event.fix(nativeEvent); 3450event.type=nativeEvent.type==="focusin"?"focus":"blur"; 3451event.isSimulated=true; 3452handle(nativeEvent); 3453if(event.target===event.currentTarget){ 3454handle(event); 3455} 3456}else{ 3457jQuery.event.simulate(delegateType,nativeEvent.target, 3458jQuery.event.fix(nativeEvent)); 3459} 3460} 3461jQuery.event.special[type]={ 3462setup:function(){ 3463var attaches; 3464leverageNative(this,type,true); 3465if(document.documentMode){ 3466attaches=dataPriv.get(this,delegateType); 3467if(!attaches){ 3468this.addEventListener(delegateType,focusMappedHandler); 3469} 3470dataPriv.set(this,delegateType,(attaches||0)+1); 3471}else{ 3472return false; 3473} 3474}, 3475trigger:function(){ 3476leverageNative(this,type); 3477return true; 3478}, 3479teardown:function(){ 3480var attaches; 3481if(document.documentMode){ 3482attaches=dataPriv.get(this,delegateType)-1; 3483if(!attaches){ 3484this.removeEventListener(delegateType,focusMappedHandler); 3485dataPriv.remove(this,delegateType); 3486}else{ 3487dataPriv.set(this,delegateType,attaches); 3488} 3489}else{ 3490return false; 3491} 3492}, 3493_default:function(event){ 3494return dataPriv.get(event.target,type); 3495}, 3496delegateType:delegateType 3497}; 3498jQuery.event.special[delegateType]={ 3499setup:function(){ 3500var doc=this.ownerDocument||this.document||this, 3501dataHolder=document.documentMode?this:doc, 3502attaches=dataPriv.get(dataHolder,delegateType); 3503if(!attaches){ 3504if(document.documentMode){ 3505this.addEventListener(delegateType,focusMappedHandler); 3506}else{ 3507doc.addEventListener(type,focusMappedHandler,true); 3508} 3509} 3510dataPriv.set(dataHolder,delegateType,(attaches||0)+1); 3511}, 3512teardown:function(){ 3513var doc=this.ownerDocument||this.document||this, 3514dataHolder=document.documentMode?this:doc, 3515attaches=dataPriv.get(dataHolder,delegateType)-1; 3516if(!attaches){ 3517if(document.documentMode){ 3518this.removeEventListener(delegateType,focusMappedHandler); 3519}else{ 3520doc.removeEventListener(type,focusMappedHandler,true); 3521} 3522dataPriv.remove(dataHolder,delegateType); 3523}else{ 3524dataPriv.set(dataHolder,delegateType,attaches); 3525} 3526} 3527}; 3528}); 3529jQuery.each({ 3530mouseenter:"mouseover", 3531mouseleave:"mouseout", 3532pointerenter:"pointerover", 3533pointerleave:"pointerout" 3534},function(orig,fix){ 3535jQuery.event.special[orig]={ 3536delegateType:fix, 3537bindType:fix, 3538handle:function(event){ 3539var ret, 3540target=this, 3541related=event.relatedTarget, 3542handleObj=event.handleObj; 3543if(!related||(related!==target&&!jQuery.contains(target,related))){ 3544event.type=handleObj.origType; 3545ret=handleObj.handler.apply(this,arguments); 3546event.type=fix; 3547} 3548return ret; 3549} 3550}; 3551}); 3552jQuery.fn.extend({ 3553on:function(types,selector,data,fn){ 3554return on(this,types,selector,data,fn); 3555}, 3556one:function(types,selector,data,fn){ 3557return on(this,types,selector,data,fn,1); 3558}, 3559off:function(types,selector,fn){ 3560var handleObj,type; 3561if(types&&types.preventDefault&&types.handleObj){ 3562handleObj=types.handleObj; 3563jQuery(types.delegateTarget).off( 3564handleObj.namespace? 3565handleObj.origType+"."+handleObj.namespace: 3566handleObj.origType, 3567handleObj.selector, 3568handleObj.handler 3569); 3570return this; 3571} 3572if(typeof types==="object"){ 3573for(type in types){ 3574this.off(type,selector,types[type]); 3575} 3576return this; 3577} 3578if(selector===false||typeof selector==="function"){ 3579fn=selector; 3580selector=undefined; 3581} 3582if(fn===false){ 3583fn=returnFalse; 3584} 3585return this.each(function(){ 3586jQuery.event.remove(this,types,fn,selector); 3587}); 3588} 3589}); 3590var 3591rnoInnerhtml=/<script|<style|<link/i, 3592rchecked=/checked\s*(?:[^=]|=\s*.checked.)/i, 3593rcleanScript=/^\s*<!\[CDATA\[|\]\]>\s*$/g; 3594function manipulationTarget(elem,content){ 3595if(nodeName(elem,"table")&& 3596nodeName(content.nodeType!==11?content:content.firstChild,"tr")){ 3597return jQuery(elem).children("tbody")[0]||elem; 3598} 3599return elem; 3600} 3601function disableScript(elem){ 3602elem.type=(elem.getAttribute("type")!==null)+"/"+elem.type; 3603return elem; 3604} 3605function restoreScript(elem){ 3606if((elem.type||"").slice(0,5)==="true/"){ 3607elem.type=elem.type.slice(5); 3608}else{ 3609elem.removeAttribute("type"); 3610} 3611return elem; 3612} 3613function cloneCopyEvent(src,dest){ 3614var i,l,type,pdataOld,udataOld,udataCur,events; 3615if(dest.nodeType!==1){ 3616return; 3617} 3618if(dataPriv.hasData(src)){ 3619pdataOld=dataPriv.get(src); 3620events=pdataOld.events; 3621if(events){ 3622dataPriv.remove(dest,"handle events"); 3623for(type in events){ 3624for(i=0,l=events[type].length;i<l;i++){ 3625jQuery.event.add(dest,type,events[type][i]); 3626} 3627} 3628} 3629} 3630if(dataUser.hasData(src)){ 3631udataOld=dataUser.access(src); 3632udataCur=jQuery.extend({},udataOld); 3633dataUser.set(dest,udataCur); 3634} 3635} 3636function fixInput(src,dest){ 3637var nodeName=dest.nodeName.toLowerCase(); 3638if(nodeName==="input"&&rcheckableType.test(src.type)){ 3639dest.checked=src.checked; 3640}else if(nodeName==="input"||nodeName==="textarea"){ 3641dest.defaultValue=src.defaultValue; 3642} 3643} 3644function domManip(collection,args,callback,ignored){ 3645args=flat(args); 3646var fragment,first,scripts,hasScripts,node,doc, 3647i=0, 3648l=collection.length, 3649iNoClone=l-1, 3650value=args[0], 3651valueIsFunction=isFunction(value); 3652if(valueIsFunction|| 3653(l>1&&typeof value==="string"&& 3654!support.checkClone&&rchecked.test(value))){ 3655return collection.each(function(index){ 3656var self=collection.eq(index); 3657if(valueIsFunction){ 3658args[0]=value.call(this,index,self.html()); 3659} 3660domManip(self,args,callback,ignored); 3661}); 3662} 3663if(l){ 3664fragment=buildFragment(args,collection[0].ownerDocument,false,collection,ignored); 3665first=fragment.firstChild; 3666if(fragment.childNodes.length===1){ 3667fragment=first; 3668} 3669if(first||ignored){ 3670scripts=jQuery.map(getAll(fragment,"script"),disableScript); 3671hasScripts=scripts.length; 3672for(;i<l;i++){ 3673node=fragment; 3674if(i!==iNoClone){ 3675node=jQuery.clone(node,true,true); 3676if(hasScripts){ 3677jQuery.merge(scripts,getAll(node,"script")); 3678} 3679} 3680callback.call(collection[i],node,i); 3681} 3682if(hasScripts){ 3683doc=scripts[scripts.length-1].ownerDocument; 3684jQuery.map(scripts,restoreScript); 3685for(i=0;i<hasScripts;i++){ 3686node=scripts[i]; 3687if(rscriptType.test(node.type||"")&& 3688!dataPriv.access(node,"globalEval")&& 3689jQuery.contains(doc,node)){ 3690if(node.src&&(node.type||"").toLowerCase()!=="module"){ 3691if(jQuery._evalUrl&&!node.noModule){ 3692jQuery._evalUrl(node.src,{ 3693nonce:node.nonce||node.getAttribute("nonce") 3694},doc); 3695} 3696}else{ 3697DOMEval(node.textContent.replace(rcleanScript,""),node,doc); 3698} 3699} 3700} 3701} 3702} 3703} 3704return collection; 3705} 3706function remove(elem,selector,keepData){ 3707var node, 3708nodes=selector?jQuery.filter(selector,elem):elem, 3709i=0; 3710for(;(node=nodes[i])!=null;i++){ 3711if(!keepData&&node.nodeType===1){ 3712jQuery.cleanData(getAll(node)); 3713} 3714if(node.parentNode){ 3715if(keepData&&isAttached(node)){ 3716setGlobalEval(getAll(node,"script")); 3717} 3718node.parentNode.removeChild(node); 3719} 3720} 3721return elem; 3722} 3723jQuery.extend({ 3724htmlPrefilter:function(html){ 3725return html; 3726}, 3727clone:function(elem,dataAndEvents,deepDataAndEvents){ 3728var i,l,srcElements,destElements, 3729clone=elem.cloneNode(true), 3730inPage=isAttached(elem); 3731if(!support.noCloneChecked&&(elem.nodeType===1||elem.nodeType===11)&& 3732!jQuery.isXMLDoc(elem)){ 3733destElements=getAll(clone); 3734srcElements=getAll(elem); 3735for(i=0,l=srcElements.length;i<l;i++){ 3736fixInput(srcElements[i],destElements[i]); 3737} 3738} 3739if(dataAndEvents){ 3740if(deepDataAndEvents){ 3741srcElements=srcElements||getAll(elem); 3742destElements=destElements||getAll(clone); 3743for(i=0,l=srcElements.length;i<l;i++){ 3744cloneCopyEvent(srcElements[i],destElements[i]); 3745} 3746}else{ 3747cloneCopyEvent(elem,clone); 3748} 3749} 3750destElements=getAll(clone,"script"); 3751if(destElements.length>0){ 3752setGlobalEval(destElements,!inPage&&getAll(elem,"script")); 3753} 3754return clone; 3755}, 3756cleanData:function(elems){ 3757var data,elem,type, 3758special=jQuery.event.special, 3759i=0; 3760for(;(elem=elems[i])!==undefined;i++){ 3761if(acceptData(elem)){ 3762if((data=elem[dataPriv.expando])){ 3763if(data.events){ 3764for(type in data.events){ 3765if(special[type]){ 3766jQuery.event.remove(elem,type); 3767}else{ 3768jQuery.removeEvent(elem,type,data.handle); 3769} 3770} 3771} 3772elem[dataPriv.expando]=undefined; 3773} 3774if(elem[dataUser.expando]){ 3775elem[dataUser.expando]=undefined; 3776} 3777} 3778} 3779} 3780}); 3781jQuery.fn.extend({ 3782detach:function(selector){ 3783return remove(this,selector,true); 3784}, 3785remove:function(selector){ 3786return remove(this,selector); 3787}, 3788text:function(value){ 3789return access(this,function(value){ 3790return value===undefined? 3791jQuery.text(this): 3792this.empty().each(function(){ 3793if(this.nodeType===1||this.nodeType===11||this.nodeType===9){ 3794this.textContent=value; 3795} 3796}); 3797},null,value,arguments.length); 3798}, 3799append:function(){ 3800return domManip(this,arguments,function(elem){ 3801if(this.nodeType===1||this.nodeType===11||this.nodeType===9){ 3802var target=manipulationTarget(this,elem); 3803target.appendChild(elem); 3804} 3805}); 3806}, 3807prepend:function(){ 3808return domManip(this,arguments,function(elem){ 3809if(this.nodeType===1||this.nodeType===11||this.nodeType===9){ 3810var target=manipulationTarget(this,elem); 3811target.insertBefore(elem,target.firstChild); 3812} 3813}); 3814}, 3815before:function(){ 3816return domManip(this,arguments,function(elem){ 3817if(this.parentNode){ 3818this.parentNode.insertBefore(elem,this); 3819} 3820}); 3821}, 3822after:function(){ 3823return domManip(this,arguments,function(elem){ 3824if(this.parentNode){ 3825this.parentNode.insertBefore(elem,this.nextSibling); 3826} 3827}); 3828}, 3829empty:function(){ 3830var elem, 3831i=0; 3832for(;(elem=this[i])!=null;i++){ 3833if(elem.nodeType===1){ 3834jQuery.cleanData(getAll(elem,false)); 3835elem.textContent=""; 3836} 3837} 3838return this; 3839}, 3840clone:function(dataAndEvents,deepDataAndEvents){ 3841dataAndEvents=dataAndEvents==null?false:dataAndEvents; 3842deepDataAndEvents=deepDataAndEvents==null?dataAndEvents:deepDataAndEvents; 3843return this.map(function(){ 3844return jQuery.clone(this,dataAndEvents,deepDataAndEvents); 3845}); 3846}, 3847html:function(value){ 3848return access(this,function(value){ 3849var elem=this[0]||{}, 3850i=0, 3851l=this.length; 3852if(value===undefined&&elem.nodeType===1){ 3853return elem.innerHTML; 3854} 3855if(typeof value==="string"&&!rnoInnerhtml.test(value)&& 3856!wrapMap[(rtagName.exec(value)||["",""])[1].toLowerCase()]){ 3857value=jQuery.htmlPrefilter(value); 3858try{ 3859for(;i<l;i++){ 3860elem=this[i]||{}; 3861if(elem.nodeType===1){ 3862jQuery.cleanData(getAll(elem,false)); 3863elem.innerHTML=value; 3864} 3865} 3866elem=0; 3867}catch(e){} 3868} 3869if(elem){ 3870this.empty().append(value); 3871} 3872},null,value,arguments.length); 3873}, 3874replaceWith:function(){ 3875var ignored=[]; 3876return domManip(this,arguments,function(elem){ 3877var parent=this.parentNode; 3878if(jQuery.inArray(this,ignored)<0){ 3879jQuery.cleanData(getAll(this)); 3880if(parent){ 3881parent.replaceChild(elem,this); 3882} 3883} 3884},ignored); 3885} 3886}); 3887jQuery.each({ 3888appendTo:"append", 3889prependTo:"prepend", 3890insertBefore:"before", 3891insertAfter:"after", 3892replaceAll:"replaceWith" 3893},function(name,original){ 3894jQuery.fn[name]=function(selector){ 3895var elems, 3896ret=[], 3897insert=jQuery(selector), 3898last=insert.length-1, 3899i=0; 3900for(;i<=last;i++){ 3901elems=i===last?this:this.clone(true); 3902jQuery(insert[i])[original](elems); 3903push.apply(ret,elems.get()); 3904} 3905return this.pushStack(ret); 3906}; 3907}); 3908var rnumnonpx=new RegExp("^("+pnum+")(?!px)[a-z%]+$","i"); 3909var rcustomProp=/^--/; 3910var getStyles=function(elem){ 3911var view=elem.ownerDocument.defaultView; 3912if(!view||!view.opener){ 3913view=window; 3914} 3915return view.getComputedStyle(elem); 3916}; 3917var swap=function(elem,options,callback){ 3918var ret,name, 3919old={}; 3920for(name in options){ 3921old[name]=elem.style[name]; 3922elem.style[name]=options[name]; 3923} 3924ret=callback.call(elem); 3925for(name in options){ 3926elem.style[name]=old[name]; 3927} 3928return ret; 3929}; 3930var rboxStyle=new RegExp(cssExpand.join("|"),"i"); 3931(function(){ 3932function computeStyleTests(){ 3933if(!div){ 3934return; 3935} 3936container.style.cssText="position:absolute;left:-11111px;width:60px;"+ 3937"margin-top:1px;padding:0;border:0"; 3938div.style.cssText= 3939"position:relative;display:block;box-sizing:border-box;overflow:scroll;"+ 3940"margin:auto;border:1px;padding:1px;"+ 3941"width:60%;top:1%"; 3942documentElement.appendChild(container).appendChild(div); 3943var divStyle=window.getComputedStyle(div); 3944pixelPositionVal=divStyle.top!=="1%"; 3945reliableMarginLeftVal=roundPixelMeasures(divStyle.marginLeft)===12; 3946div.style.right="60%"; 3947pixelBoxStylesVal=roundPixelMeasures(divStyle.right)===36; 3948boxSizingReliableVal=roundPixelMeasures(divStyle.width)===36; 3949div.style.position="absolute"; 3950scrollboxSizeVal=roundPixelMeasures(div.offsetWidth/3)===12; 3951documentElement.removeChild(container); 3952div=null; 3953} 3954function roundPixelMeasures(measure){ 3955return Math.round(parseFloat(measure)); 3956} 3957var pixelPositionVal,boxSizingReliableVal,scrollboxSizeVal,pixelBoxStylesVal, 3958reliableTrDimensionsVal,reliableMarginLeftVal, 3959container=document.createElement("div"), 3960div=document.createElement("div"); 3961if(!div.style){ 3962return; 3963} 3964div.style.backgroundClip="content-box"; 3965div.cloneNode(true).style.backgroundClip=""; 3966support.clearCloneStyle=div.style.backgroundClip==="content-box"; 3967jQuery.extend(support,{ 3968boxSizingReliable:function(){ 3969computeStyleTests(); 3970return boxSizingReliableVal; 3971}, 3972pixelBoxStyles:function(){ 3973computeStyleTests(); 3974return pixelBoxStylesVal; 3975}, 3976pixelPosition:function(){ 3977computeStyleTests(); 3978return pixelPositionVal; 3979}, 3980reliableMarginLeft:function(){ 3981computeStyleTests(); 3982return reliableMarginLeftVal; 3983}, 3984scrollboxSize:function(){ 3985computeStyleTests(); 3986return scrollboxSizeVal; 3987}, 3988reliableTrDimensions:function(){ 3989var table,tr,trChild,trStyle; 3990if(reliableTrDimensionsVal==null){ 3991table=document.createElement("table"); 3992tr=document.createElement("tr"); 3993trChild=document.createElement("div"); 3994table.style.cssText="position:absolute;left:-11111px;border-collapse:separate"; 3995tr.style.cssText="box-sizing:content-box;border:1px solid"; 3996tr.style.height="1px"; 3997trChild.style.height="9px"; 3998trChild.style.display="block"; 3999documentElement 4000.appendChild(table) 4001.appendChild(tr) 4002.appendChild(trChild); 4003trStyle=window.getComputedStyle(tr); 4004reliableTrDimensionsVal=(parseInt(trStyle.height,10)+ 4005parseInt(trStyle.borderTopWidth,10)+ 4006parseInt(trStyle.borderBottomWidth,10))===tr.offsetHeight; 4007documentElement.removeChild(table); 4008} 4009return reliableTrDimensionsVal; 4010} 4011}); 4012})(); 4013function curCSS(elem,name,computed){ 4014var width,minWidth,maxWidth,ret, 4015isCustomProp=rcustomProp.test(name), 4016style=elem.style; 4017computed=computed||getStyles(elem); 4018if(computed){ 4019ret=computed.getPropertyValue(name)||computed[name]; 4020if(isCustomProp&&ret){ 4021ret=ret.replace(rtrimCSS,"$1")||undefined; 4022} 4023if(ret===""&&!isAttached(elem)){ 4024ret=jQuery.style(elem,name); 4025} 4026if(!support.pixelBoxStyles()&&rnumnonpx.test(ret)&&rboxStyle.test(name)){ 4027width=style.width; 4028minWidth=style.minWidth; 4029maxWidth=style.maxWidth; 4030style.minWidth=style.maxWidth=style.width=ret; 4031ret=computed.width; 4032style.width=width; 4033style.minWidth=minWidth; 4034style.maxWidth=maxWidth; 4035} 4036} 4037return ret!==undefined? 4038ret+"": 4039ret; 4040} 4041function addGetHookIf(conditionFn,hookFn){ 4042return{ 4043get:function(){ 4044if(conditionFn()){ 4045delete this.get; 4046return; 4047} 4048return(this.get=hookFn).apply(this,arguments); 4049} 4050}; 4051} 4052var cssPrefixes=["Webkit","Moz","ms"], 4053emptyStyle=document.createElement("div").style, 4054vendorProps={}; 4055function vendorPropName(name){ 4056var capName=name[0].toUpperCase()+name.slice(1), 4057i=cssPrefixes.length; 4058while(i--){ 4059name=cssPrefixes[i]+capName; 4060if(name in emptyStyle){ 4061return name; 4062} 4063} 4064} 4065function finalPropName(name){ 4066var final=jQuery.cssProps[name]||vendorProps[name]; 4067if(final){ 4068return final; 4069} 4070if(name in emptyStyle){ 4071return name; 4072} 4073return vendorProps[name]=vendorPropName(name)||name; 4074} 4075var 4076rdisplayswap=/^(none|table(?!-c[ea]).+)/, 4077cssShow={position:"absolute",visibility:"hidden",display:"block"}, 4078cssNormalTransform={ 4079letterSpacing:"0", 4080fontWeight:"400" 4081}; 4082function setPositiveNumber(_elem,value,subtract){ 4083var matches=rcssNum.exec(value); 4084return matches? 4085Math.max(0,matches[2]-(subtract||0))+(matches[3]||"px"): 4086value; 4087} 4088function boxModelAdjustment(elem,dimension,box,isBorderBox,styles,computedVal){ 4089var i=dimension==="width"?1:0, 4090extra=0, 4091delta=0, 4092marginDelta=0; 4093if(box===(isBorderBox?"border":"content")){ 4094return 0; 4095} 4096for(;i<4;i+=2){ 4097if(box==="margin"){ 4098marginDelta+=jQuery.css(elem,box+cssExpand[i],true,styles); 4099} 4100if(!isBorderBox){ 4101delta+=jQuery.css(elem,"padding"+cssExpand[i],true,styles); 4102if(box!=="padding"){ 4103delta+=jQuery.css(elem,"border"+cssExpand[i]+"Width",true,styles); 4104}else{ 4105extra+=jQuery.css(elem,"border"+cssExpand[i]+"Width",true,styles); 4106} 4107}else{ 4108if(box==="content"){ 4109delta-=jQuery.css(elem,"padding"+cssExpand[i],true,styles); 4110} 4111if(box!=="margin"){ 4112delta-=jQuery.css(elem,"border"+cssExpand[i]+"Width",true,styles); 4113} 4114} 4115} 4116if(!isBorderBox&&computedVal>=0){ 4117delta+=Math.max(0,Math.ceil( 4118elem["offset"+dimension[0].toUpperCase()+dimension.slice(1)]- 4119computedVal- 4120delta- 4121extra- 41220.5 4123))||0; 4124} 4125return delta+marginDelta; 4126} 4127function getWidthOrHeight(elem,dimension,extra){ 4128var styles=getStyles(elem), 4129boxSizingNeeded=!support.boxSizingReliable()||extra, 4130isBorderBox=boxSizingNeeded&& 4131jQuery.css(elem,"boxSizing",false,styles)==="border-box", 4132valueIsBorderBox=isBorderBox, 4133val=curCSS(elem,dimension,styles), 4134offsetProp="offset"+dimension[0].toUpperCase()+dimension.slice(1); 4135if(rnumnonpx.test(val)){ 4136if(!extra){ 4137return val; 4138} 4139val="auto"; 4140} 4141if((!support.boxSizingReliable()&&isBorderBox|| 4142!support.reliableTrDimensions()&&nodeName(elem,"tr")|| 4143val==="auto"|| 4144!parseFloat(val)&&jQuery.css(elem,"display",false,styles)==="inline")&& 4145elem.getClientRects().length){ 4146isBorderBox=jQuery.css(elem,"boxSizing",false,styles)==="border-box"; 4147valueIsBorderBox=offsetProp in elem; 4148if(valueIsBorderBox){ 4149val=elem[offsetProp]; 4150} 4151} 4152val=parseFloat(val)||0; 4153return(val+ 4154boxModelAdjustment( 4155elem, 4156dimension, 4157extra||(isBorderBox?"border":"content"), 4158valueIsBorderBox, 4159styles, 4160val 4161) 4162)+"px"; 4163} 4164jQuery.extend({ 4165cssHooks:{ 4166opacity:{ 4167get:function(elem,computed){ 4168if(computed){ 4169var ret=curCSS(elem,"opacity"); 4170return ret===""?"1":ret; 4171} 4172} 4173} 4174}, 4175cssNumber:{ 4176animationIterationCount:true, 4177aspectRatio:true, 4178borderImageSlice:true, 4179columnCount:true, 4180flexGrow:true, 4181flexShrink:true, 4182fontWeight:true, 4183gridArea:true, 4184gridColumn:true, 4185gridColumnEnd:true, 4186gridColumnStart:true, 4187gridRow:true, 4188gridRowEnd:true, 4189gridRowStart:true, 4190lineHeight:true, 4191opacity:true, 4192order:true, 4193orphans:true, 4194scale:true, 4195widows:true, 4196zIndex:true, 4197zoom:true, 4198fillOpacity:true, 4199floodOpacity:true, 4200stopOpacity:true, 4201strokeMiterlimit:true, 4202strokeOpacity:true 4203}, 4204cssProps:{}, 4205style:function(elem,name,value,extra){ 4206if(!elem||elem.nodeType===3||elem.nodeType===8||!elem.style){ 4207return; 4208} 4209var ret,type,hooks, 4210origName=camelCase(name), 4211isCustomProp=rcustomProp.test(name), 4212style=elem.style; 4213if(!isCustomProp){ 4214name=finalPropName(origName); 4215} 4216hooks=jQuery.cssHooks[name]||jQuery.cssHooks[origName]; 4217if(value!==undefined){ 4218type=typeof value; 4219if(type==="string"&&(ret=rcssNum.exec(value))&&ret[1]){ 4220value=adjustCSS(elem,name,ret); 4221type="number"; 4222} 4223if(value==null||value!==value){ 4224return; 4225} 4226if(type==="number"&&!isCustomProp){ 4227value+=ret&&ret[3]||(jQuery.cssNumber[origName]?"":"px"); 4228} 4229if(!support.clearCloneStyle&&value===""&&name.indexOf("background")===0){ 4230style[name]="inherit"; 4231} 4232if(!hooks||!("set"in hooks)|| 4233(value=hooks.set(elem,value,extra))!==undefined){ 4234if(isCustomProp){ 4235style.setProperty(name,value); 4236}else{ 4237style[name]=value; 4238} 4239} 4240}else{ 4241if(hooks&&"get"in hooks&& 4242(ret=hooks.get(elem,false,extra))!==undefined){ 4243return ret; 4244} 4245return style[name]; 4246} 4247}, 4248css:function(elem,name,extra,styles){ 4249var val,num,hooks, 4250origName=camelCase(name), 4251isCustomProp=rcustomProp.test(name); 4252if(!isCustomProp){ 4253name=finalPropName(origName); 4254} 4255hooks=jQuery.cssHooks[name]||jQuery.cssHooks[origName]; 4256if(hooks&&"get"in hooks){ 4257val=hooks.get(elem,true,extra); 4258} 4259if(val===undefined){ 4260val=curCSS(elem,name,styles); 4261} 4262if(val==="normal"&&name in cssNormalTransform){ 4263val=cssNormalTransform[name]; 4264} 4265if(extra===""||extra){ 4266num=parseFloat(val); 4267return extra===true||isFinite(num)?num||0:val; 4268} 4269return val; 4270} 4271}); 4272jQuery.each(["height","width"],function(_i,dimension){ 4273jQuery.cssHooks[dimension]={ 4274get:function(elem,computed,extra){ 4275if(computed){ 4276return rdisplayswap.test(jQuery.css(elem,"display"))&& 4277(!elem.getClientRects().length||!elem.getBoundingClientRect().width)? 4278swap(elem,cssShow,function(){ 4279return getWidthOrHeight(elem,dimension,extra); 4280}): 4281getWidthOrHeight(elem,dimension,extra); 4282} 4283}, 4284set:function(elem,value,extra){ 4285var matches, 4286styles=getStyles(elem), 4287scrollboxSizeBuggy=!support.scrollboxSize()&& 4288styles.position==="absolute", 4289boxSizingNeeded=scrollboxSizeBuggy||extra, 4290isBorderBox=boxSizingNeeded&& 4291jQuery.css(elem,"boxSizing",false,styles)==="border-box", 4292subtract=extra? 4293boxModelAdjustment( 4294elem, 4295dimension, 4296extra, 4297isBorderBox, 4298styles 4299): 43000; 4301if(isBorderBox&&scrollboxSizeBuggy){ 4302subtract-=Math.ceil( 4303elem["offset"+dimension[0].toUpperCase()+dimension.slice(1)]- 4304parseFloat(styles[dimension])- 4305boxModelAdjustment(elem,dimension,"border",false,styles)- 43060.5 4307); 4308} 4309if(subtract&&(matches=rcssNum.exec(value))&& 4310(matches[3]||"px")!=="px"){ 4311elem.style[dimension]=value; 4312value=jQuery.css(elem,dimension); 4313} 4314return setPositiveNumber(elem,value,subtract); 4315} 4316}; 4317}); 4318jQuery.cssHooks.marginLeft=addGetHookIf(support.reliableMarginLeft, 4319function(elem,computed){ 4320if(computed){ 4321return(parseFloat(curCSS(elem,"marginLeft"))|| 4322elem.getBoundingClientRect().left- 4323swap(elem,{marginLeft:0},function(){ 4324return elem.getBoundingClientRect().left; 4325}) 4326)+"px"; 4327} 4328} 4329); 4330jQuery.each({ 4331margin:"", 4332padding:"", 4333border:"Width" 4334},function(prefix,suffix){ 4335jQuery.cssHooks[prefix+suffix]={ 4336expand:function(value){ 4337var i=0, 4338expanded={}, 4339parts=typeof value==="string"?value.split(" "):[value]; 4340for(;i<4;i++){ 4341expanded[prefix+cssExpand[i]+suffix]= 4342parts[i]||parts[i-2]||parts[0]; 4343} 4344return expanded; 4345} 4346}; 4347if(prefix!=="margin"){ 4348jQuery.cssHooks[prefix+suffix].set=setPositiveNumber; 4349} 4350}); 4351jQuery.fn.extend({ 4352css:function(name,value){ 4353return access(this,function(elem,name,value){ 4354var styles,len, 4355map={}, 4356i=0; 4357if(Array.isArray(name)){ 4358styles=getStyles(elem); 4359len=name.length; 4360for(;i<len;i++){ 4361map[name[i]]=jQuery.css(elem,name[i],false,styles); 4362} 4363return map; 4364} 4365return value!==undefined? 4366jQuery.style(elem,name,value): 4367jQuery.css(elem,name); 4368},name,value,arguments.length>1); 4369} 4370}); 4371function Tween(elem,options,prop,end,easing){ 4372return new Tween.prototype.init(elem,options,prop,end,easing); 4373} 4374jQuery.Tween=Tween; 4375Tween.prototype={ 4376constructor:Tween, 4377init:function(elem,options,prop,end,easing,unit){ 4378this.elem=elem; 4379this.prop=prop; 4380this.easing=easing||jQuery.easing._default; 4381this.options=options; 4382this.start=this.now=this.cur(); 4383this.end=end; 4384this.unit=unit||(jQuery.cssNumber[prop]?"":"px"); 4385}, 4386cur:function(){ 4387var hooks=Tween.propHooks[this.prop]; 4388return hooks&&hooks.get? 4389hooks.get(this): 4390Tween.propHooks._default.get(this); 4391}, 4392run:function(percent){ 4393var eased, 4394hooks=Tween.propHooks[this.prop]; 4395if(this.options.duration){ 4396this.pos=eased=jQuery.easing[this.easing]( 4397percent,this.options.duration*percent,0,1,this.options.duration 4398); 4399}else{ 4400this.pos=eased=percent; 4401} 4402this.now=(this.end-this.start)*eased+this.start; 4403if(this.options.step){ 4404this.options.step.call(this.elem,this.now,this); 4405} 4406if(hooks&&hooks.set){ 4407hooks.set(this); 4408}else{ 4409Tween.propHooks._default.set(this); 4410} 4411return this; 4412} 4413}; 4414Tween.prototype.init.prototype=Tween.prototype; 4415Tween.propHooks={ 4416_default:{ 4417get:function(tween){ 4418var result; 4419if(tween.elem.nodeType!==1|| 4420tween.elem[tween.prop]!=null&&tween.elem.style[tween.prop]==null){ 4421return tween.elem[tween.prop]; 4422} 4423result=jQuery.css(tween.elem,tween.prop,""); 4424return!result||result==="auto"?0:result; 4425}, 4426set:function(tween){ 4427if(jQuery.fx.step[tween.prop]){ 4428jQuery.fx.step[tween.prop](tween); 4429}else if(tween.elem.nodeType===1&&( 4430jQuery.cssHooks[tween.prop]|| 4431tween.elem.style[finalPropName(tween.prop)]!=null)){ 4432jQuery.style(tween.elem,tween.prop,tween.now+tween.unit); 4433}else{ 4434tween.elem[tween.prop]=tween.now; 4435} 4436} 4437} 4438}; 4439Tween.propHooks.scrollTop=Tween.propHooks.scrollLeft={ 4440set:function(tween){ 4441if(tween.elem.nodeType&&tween.elem.parentNode){ 4442tween.elem[tween.prop]=tween.now; 4443} 4444} 4445}; 4446jQuery.easing={ 4447linear:function(p){ 4448return p; 4449}, 4450swing:function(p){ 4451return 0.5-Math.cos(p*Math.PI)/2; 4452}, 4453_default:"swing" 4454}; 4455jQuery.fx=Tween.prototype.init; 4456jQuery.fx.step={}; 4457var 4458fxNow,inProgress, 4459rfxtypes=/^(?:toggle|show|hide)$/, 4460rrun=/queueHooks$/; 4461function schedule(){ 4462if(inProgress){ 4463if(document.hidden===false&&window.requestAnimationFrame){ 4464window.requestAnimationFrame(schedule); 4465}else{ 4466window.setTimeout(schedule,jQuery.fx.interval); 4467} 4468jQuery.fx.tick(); 4469} 4470} 4471function createFxNow(){ 4472window.setTimeout(function(){ 4473fxNow=undefined; 4474}); 4475return(fxNow=Date.now()); 4476} 4477function genFx(type,includeWidth){ 4478var which, 4479i=0, 4480attrs={height:type}; 4481includeWidth=includeWidth?1:0; 4482for(;i<4;i+=2-includeWidth){ 4483which=cssExpand[i]; 4484attrs["margin"+which]=attrs["padding"+which]=type; 4485} 4486if(includeWidth){ 4487attrs.opacity=attrs.width=type; 4488} 4489return attrs; 4490} 4491function createTween(value,prop,animation){ 4492var tween, 4493collection=(Animation.tweeners[prop]||[]).concat(Animation.tweeners["*"]), 4494index=0, 4495length=collection.length; 4496for(;index<length;index++){ 4497if((tween=collection[index].call(animation,prop,value))){ 4498return tween; 4499} 4500} 4501} 4502function defaultPrefilter(elem,props,opts){ 4503var prop,value,toggle,hooks,oldfire,propTween,restoreDisplay,display, 4504isBox="width"in props||"height"in props, 4505anim=this, 4506orig={}, 4507style=elem.style, 4508hidden=elem.nodeType&&isHiddenWithinTree(elem), 4509dataShow=dataPriv.get(elem,"fxshow"); 4510if(!opts.queue){ 4511hooks=jQuery._queueHooks(elem,"fx"); 4512if(hooks.unqueued==null){ 4513hooks.unqueued=0; 4514oldfire=hooks.empty.fire; 4515hooks.empty.fire=function(){ 4516if(!hooks.unqueued){ 4517oldfire(); 4518} 4519}; 4520} 4521hooks.unqueued++; 4522anim.always(function(){ 4523anim.always(function(){ 4524hooks.unqueued--; 4525if(!jQuery.queue(elem,"fx").length){ 4526hooks.empty.fire(); 4527} 4528}); 4529}); 4530} 4531for(prop in props){ 4532value=props[prop]; 4533if(rfxtypes.test(value)){ 4534delete props[prop]; 4535toggle=toggle||value==="toggle"; 4536if(value===(hidden?"hide":"show")){ 4537if(value==="show"&&dataShow&&dataShow[prop]!==undefined){ 4538hidden=true; 4539}else{ 4540continue; 4541} 4542} 4543orig[prop]=dataShow&&dataShow[prop]||jQuery.style(elem,prop); 4544} 4545} 4546propTween=!jQuery.isEmptyObject(props); 4547if(!propTween&&jQuery.isEmptyObject(orig)){ 4548return; 4549} 4550if(isBox&&elem.nodeType===1){ 4551opts.overflow=[style.overflow,style.overflowX,style.overflowY]; 4552restoreDisplay=dataShow&&dataShow.display; 4553if(restoreDisplay==null){ 4554restoreDisplay=dataPriv.get(elem,"display"); 4555} 4556display=jQuery.css(elem,"display"); 4557if(display==="none"){ 4558if(restoreDisplay){ 4559display=restoreDisplay; 4560}else{ 4561showHide([elem],true); 4562restoreDisplay=elem.style.display||restoreDisplay; 4563display=jQuery.css(elem,"display"); 4564showHide([elem]); 4565} 4566} 4567if(display==="inline"||display==="inline-block"&&restoreDisplay!=null){ 4568if(jQuery.css(elem,"float")==="none"){ 4569if(!propTween){ 4570anim.done(function(){ 4571style.display=restoreDisplay; 4572}); 4573if(restoreDisplay==null){ 4574display=style.display; 4575restoreDisplay=display==="none"?"":display; 4576} 4577} 4578style.display="inline-block"; 4579} 4580} 4581} 4582if(opts.overflow){ 4583style.overflow="hidden"; 4584anim.always(function(){ 4585style.overflow=opts.overflow[0]; 4586style.overflowX=opts.overflow[1]; 4587style.overflowY=opts.overflow[2]; 4588}); 4589} 4590propTween=false; 4591for(prop in orig){ 4592if(!propTween){ 4593if(dataShow){ 4594if("hidden"in dataShow){ 4595hidden=dataShow.hidden; 4596} 4597}else{ 4598dataShow=dataPriv.access(elem,"fxshow",{display:restoreDisplay}); 4599} 4600if(toggle){ 4601dataShow.hidden=!hidden; 4602} 4603if(hidden){ 4604showHide([elem],true); 4605} 4606anim.done(function(){ 4607if(!hidden){ 4608showHide([elem]); 4609} 4610dataPriv.remove(elem,"fxshow"); 4611for(prop in orig){ 4612jQuery.style(elem,prop,orig[prop]); 4613} 4614}); 4615} 4616propTween=createTween(hidden?dataShow[prop]:0,prop,anim); 4617if(!(prop in dataShow)){ 4618dataShow[prop]=propTween.start; 4619if(hidden){ 4620propTween.end=propTween.start; 4621propTween.start=0; 4622} 4623} 4624} 4625} 4626function propFilter(props,specialEasing){ 4627var index,name,easing,value,hooks; 4628for(index in props){ 4629name=camelCase(index); 4630easing=specialEasing[name]; 4631value=props[index]; 4632if(Array.isArray(value)){ 4633easing=value[1]; 4634value=props[index]=value[0]; 4635} 4636if(index!==name){ 4637props[name]=value; 4638delete props[index]; 4639} 4640hooks=jQuery.cssHooks[name]; 4641if(hooks&&"expand"in hooks){ 4642value=hooks.expand(value); 4643delete props[name]; 4644for(index in value){ 4645if(!(index in props)){ 4646props[index]=value[index]; 4647specialEasing[index]=easing; 4648} 4649} 4650}else{ 4651specialEasing[name]=easing; 4652} 4653} 4654} 4655function Animation(elem,properties,options){ 4656var result, 4657stopped, 4658index=0, 4659length=Animation.prefilters.length, 4660deferred=jQuery.Deferred().always(function(){ 4661delete tick.elem; 4662}), 4663tick=function(){ 4664if(stopped){ 4665return false; 4666} 4667var currentTime=fxNow||createFxNow(), 4668remaining=Math.max(0,animation.startTime+animation.duration-currentTime), 4669temp=remaining/animation.duration||0, 4670percent=1-temp, 4671index=0, 4672length=animation.tweens.length; 4673for(;index<length;index++){ 4674animation.tweens[index].run(percent); 4675} 4676deferred.notifyWith(elem,[animation,percent,remaining]); 4677if(percent<1&&length){ 4678return remaining; 4679} 4680if(!length){ 4681deferred.notifyWith(elem,[animation,1,0]); 4682} 4683deferred.resolveWith(elem,[animation]); 4684return false; 4685}, 4686animation=deferred.promise({ 4687elem:elem, 4688props:jQuery.extend({},properties), 4689opts:jQuery.extend(true,{ 4690specialEasing:{}, 4691easing:jQuery.easing._default 4692},options), 4693originalProperties:properties, 4694originalOptions:options, 4695startTime:fxNow||createFxNow(), 4696duration:options.duration, 4697tweens:[], 4698createTween:function(prop,end){ 4699var tween=jQuery.Tween(elem,animation.opts,prop,end, 4700animation.opts.specialEasing[prop]||animation.opts.easing); 4701animation.tweens.push(tween); 4702return tween; 4703}, 4704stop:function(gotoEnd){ 4705var index=0, 4706length=gotoEnd?animation.tweens.length:0; 4707if(stopped){ 4708return this; 4709} 4710stopped=true; 4711for(;index<length;index++){ 4712animation.tweens[index].run(1); 4713} 4714if(gotoEnd){ 4715deferred.notifyWith(elem,[animation,1,0]); 4716deferred.resolveWith(elem,[animation,gotoEnd]); 4717}else{ 4718deferred.rejectWith(elem,[animation,gotoEnd]); 4719} 4720return this; 4721} 4722}), 4723props=animation.props; 4724propFilter(props,animation.opts.specialEasing); 4725for(;index<length;index++){ 4726result=Animation.prefilters[index].call(animation,elem,props,animation.opts); 4727if(result){ 4728if(isFunction(result.stop)){ 4729jQuery._queueHooks(animation.elem,animation.opts.queue).stop= 4730result.stop.bind(result); 4731} 4732return result; 4733} 4734} 4735jQuery.map(props,createTween,animation); 4736if(isFunction(animation.opts.start)){ 4737animation.opts.start.call(elem,animation); 4738} 4739animation 4740.progress(animation.opts.progress) 4741.done(animation.opts.done,animation.opts.complete) 4742.fail(animation.opts.fail) 4743.always(animation.opts.always); 4744jQuery.fx.timer( 4745jQuery.extend(tick,{ 4746elem:elem, 4747anim:animation, 4748queue:animation.opts.queue 4749}) 4750); 4751return animation; 4752} 4753jQuery.Animation=jQuery.extend(Animation,{ 4754tweeners:{ 4755"*":[function(prop,value){ 4756var tween=this.createTween(prop,value); 4757adjustCSS(tween.elem,prop,rcssNum.exec(value),tween); 4758return tween; 4759}] 4760}, 4761tweener:function(props,callback){ 4762if(isFunction(props)){ 4763callback=props; 4764props=["*"]; 4765}else{ 4766props=props.match(rnothtmlwhite); 4767} 4768var prop, 4769index=0, 4770length=props.length; 4771for(;index<length;index++){ 4772prop=props[index]; 4773Animation.tweeners[prop]=Animation.tweeners[prop]||[]; 4774Animation.tweeners[prop].unshift(callback); 4775} 4776}, 4777prefilters:[defaultPrefilter], 4778prefilter:function(callback,prepend){ 4779if(prepend){ 4780Animation.prefilters.unshift(callback); 4781}else{ 4782Animation.prefilters.push(callback); 4783} 4784} 4785}); 4786jQuery.speed=function(speed,easing,fn){ 4787var opt=speed&&typeof speed==="object"?jQuery.extend({},speed):{ 4788complete:fn||!fn&&easing|| 4789isFunction(speed)&&speed, 4790duration:speed, 4791easing:fn&&easing||easing&&!isFunction(easing)&&easing 4792}; 4793if(jQuery.fx.off){ 4794opt.duration=0; 4795}else{ 4796if(typeof opt.duration!=="number"){ 4797if(opt.duration in jQuery.fx.speeds){ 4798opt.duration=jQuery.fx.speeds[opt.duration]; 4799}else{ 4800opt.duration=jQuery.fx.speeds._default; 4801} 4802} 4803} 4804if(opt.queue==null||opt.queue===true){ 4805opt.queue="fx"; 4806} 4807opt.old=opt.complete; 4808opt.complete=function(){ 4809if(isFunction(opt.old)){ 4810opt.old.call(this); 4811} 4812if(opt.queue){ 4813jQuery.dequeue(this,opt.queue); 4814} 4815}; 4816return opt; 4817}; 4818jQuery.fn.extend({ 4819fadeTo:function(speed,to,easing,callback){ 4820return this.filter(isHiddenWithinTree).css("opacity",0).show() 4821.end().animate({opacity:to},speed,easing,callback); 4822}, 4823animate:function(prop,speed,easing,callback){ 4824var empty=jQuery.isEmptyObject(prop), 4825optall=jQuery.speed(speed,easing,callback), 4826doAnimation=function(){ 4827var anim=Animation(this,jQuery.extend({},prop),optall); 4828if(empty||dataPriv.get(this,"finish")){ 4829anim.stop(true); 4830} 4831}; 4832doAnimation.finish=doAnimation; 4833return empty||optall.queue===false? 4834this.each(doAnimation): 4835this.queue(optall.queue,doAnimation); 4836}, 4837stop:function(type,clearQueue,gotoEnd){ 4838var stopQueue=function(hooks){ 4839var stop=hooks.stop; 4840delete hooks.stop; 4841stop(gotoEnd); 4842}; 4843if(typeof type!=="string"){ 4844gotoEnd=clearQueue; 4845clearQueue=type; 4846type=undefined; 4847} 4848if(clearQueue){ 4849this.queue(type||"fx",[]); 4850} 4851return this.each(function(){ 4852var dequeue=true, 4853index=type!=null&&type+"queueHooks", 4854timers=jQuery.timers, 4855data=dataPriv.get(this); 4856if(index){ 4857if(data[index]&&data[index].stop){ 4858stopQueue(data[index]); 4859} 4860}else{ 4861for(index in data){ 4862if(data[index]&&data[index].stop&&rrun.test(index)){ 4863stopQueue(data[index]); 4864} 4865} 4866} 4867for(index=timers.length;index--;){ 4868if(timers[index].elem===this&& 4869(type==null||timers[index].queue===type)){ 4870timers[index].anim.stop(gotoEnd); 4871dequeue=false; 4872timers.splice(index,1); 4873} 4874} 4875if(dequeue||!gotoEnd){ 4876jQuery.dequeue(this,type); 4877} 4878}); 4879}, 4880finish:function(type){ 4881if(type!==false){ 4882type=type||"fx"; 4883} 4884return this.each(function(){ 4885var index, 4886data=dataPriv.get(this), 4887queue=data[type+"queue"], 4888hooks=data[type+"queueHooks"], 4889timers=jQuery.timers, 4890length=queue?queue.length:0; 4891data.finish=true; 4892jQuery.queue(this,type,[]); 4893if(hooks&&hooks.stop){ 4894hooks.stop.call(this,true); 4895} 4896for(index=timers.length;index--;){ 4897if(timers[index].elem===this&&timers[index].queue===type){ 4898timers[index].anim.stop(true); 4899timers.splice(index,1); 4900} 4901} 4902for(index=0;index<length;index++){ 4903if(queue[index]&&queue[index].finish){ 4904queue[index].finish.call(this); 4905} 4906} 4907delete data.finish; 4908}); 4909} 4910}); 4911jQuery.each(["toggle","show","hide"],function(_i,name){ 4912var cssFn=jQuery.fn[name]; 4913jQuery.fn[name]=function(speed,easing,callback){ 4914return speed==null||typeof speed==="boolean"? 4915cssFn.apply(this,arguments): 4916this.animate(genFx(name,true),speed,easing,callback); 4917}; 4918}); 4919jQuery.each({ 4920slideDown:genFx("show"), 4921slideUp:genFx("hide"), 4922slideToggle:genFx("toggle"), 4923fadeIn:{opacity:"show"}, 4924fadeOut:{opacity:"hide"}, 4925fadeToggle:{opacity:"toggle"} 4926},function(name,props){ 4927jQuery.fn[name]=function(speed,easing,callback){ 4928return this.animate(props,speed,easing,callback); 4929}; 4930}); 4931jQuery.timers=[]; 4932jQuery.fx.tick=function(){ 4933var timer, 4934i=0, 4935timers=jQuery.timers; 4936fxNow=Date.now(); 4937for(;i<timers.length;i++){ 4938timer=timers[i]; 4939if(!timer()&&timers[i]===timer){ 4940timers.splice(i--,1); 4941} 4942} 4943if(!timers.length){ 4944jQuery.fx.stop(); 4945} 4946fxNow=undefined; 4947}; 4948jQuery.fx.timer=function(timer){ 4949jQuery.timers.push(timer); 4950jQuery.fx.start(); 4951}; 4952jQuery.fx.interval=13; 4953jQuery.fx.start=function(){ 4954if(inProgress){ 4955return; 4956} 4957inProgress=true; 4958schedule(); 4959}; 4960jQuery.fx.stop=function(){ 4961inProgress=null; 4962}; 4963jQuery.fx.speeds={ 4964slow:600, 4965fast:200, 4966_default:400 4967}; 4968jQuery.fn.delay=function(time,type){ 4969time=jQuery.fx?jQuery.fx.speeds[time]||time:time; 4970type=type||"fx"; 4971return this.queue(type,function(next,hooks){ 4972var timeout=window.setTimeout(next,time); 4973hooks.stop=function(){ 4974window.clearTimeout(timeout); 4975}; 4976}); 4977}; 4978(function(){ 4979var input=document.createElement("input"), 4980select=document.createElement("select"), 4981opt=select.appendChild(document.createElement("option")); 4982input.type="checkbox"; 4983support.checkOn=input.value!==""; 4984support.optSelected=opt.selected; 4985input=document.createElement("input"); 4986input.value="t"; 4987input.type="radio"; 4988support.radioValue=input.value==="t"; 4989})(); 4990var boolHook, 4991attrHandle=jQuery.expr.attrHandle; 4992jQuery.fn.extend({ 4993attr:function(name,value){ 4994return access(this,jQuery.attr,name,value,arguments.length>1); 4995}, 4996removeAttr:function(name){ 4997return this.each(function(){ 4998jQuery.removeAttr(this,name); 4999}); 5000} 5001}); 5002jQuery.extend({ 5003attr:function(elem,name,value){ 5004var ret,hooks, 5005nType=elem.nodeType; 5006if(nType===3||nType===8||nType===2){ 5007return; 5008} 5009if(typeof elem.getAttribute==="undefined"){ 5010return jQuery.prop(elem,name,value); 5011} 5012if(nType!==1||!jQuery.isXMLDoc(elem)){ 5013hooks=jQuery.attrHooks[name.toLowerCase()]|| 5014(jQuery.expr.match.bool.test(name)?boolHook:undefined); 5015} 5016if(value!==undefined){ 5017if(value===null){ 5018jQuery.removeAttr(elem,name); 5019return; 5020} 5021if(hooks&&"set"in hooks&& 5022(ret=hooks.set(elem,value,name))!==undefined){ 5023return ret; 5024} 5025elem.setAttribute(name,value+""); 5026return value; 5027} 5028if(hooks&&"get"in hooks&&(ret=hooks.get(elem,name))!==null){ 5029return ret; 5030} 5031ret=jQuery.find.attr(elem,name); 5032return ret==null?undefined:ret; 5033}, 5034attrHooks:{ 5035type:{ 5036set:function(elem,value){ 5037if(!support.radioValue&&value==="radio"&& 5038nodeName(elem,"input")){ 5039var val=elem.value; 5040elem.setAttribute("type",value); 5041if(val){ 5042elem.value=val; 5043} 5044return value; 5045} 5046} 5047} 5048}, 5049removeAttr:function(elem,value){ 5050var name, 5051i=0, 5052attrNames=value&&value.match(rnothtmlwhite); 5053if(attrNames&&elem.nodeType===1){ 5054while((name=attrNames[i++])){ 5055elem.removeAttribute(name); 5056} 5057} 5058} 5059}); 5060boolHook={ 5061set:function(elem,value,name){ 5062if(value===false){ 5063jQuery.removeAttr(elem,name); 5064}else{ 5065elem.setAttribute(name,name); 5066} 5067return name; 5068} 5069}; 5070jQuery.each(jQuery.expr.match.bool.source.match(/\w+/g),function(_i,name){ 5071var getter=attrHandle[name]||jQuery.find.attr; 5072attrHandle[name]=function(elem,name,isXML){ 5073var ret,handle, 5074lowercaseName=name.toLowerCase(); 5075if(!isXML){ 5076handle=attrHandle[lowercaseName]; 5077attrHandle[lowercaseName]=ret; 5078ret=getter(elem,name,isXML)!=null? 5079lowercaseName: 5080null; 5081attrHandle[lowercaseName]=handle; 5082} 5083return ret; 5084}; 5085}); 5086var rfocusable=/^(?:input|select|textarea|button)$/i, 5087rclickable=/^(?:a|area)$/i; 5088jQuery.fn.extend({ 5089prop:function(name,value){ 5090return access(this,jQuery.prop,name,value,arguments.length>1); 5091}, 5092removeProp:function(name){ 5093return this.each(function(){ 5094delete this[jQuery.propFix[name]||name]; 5095}); 5096} 5097}); 5098jQuery.extend({ 5099prop:function(elem,name,value){ 5100var ret,hooks, 5101nType=elem.nodeType; 5102if(nType===3||nType===8||nType===2){ 5103return; 5104} 5105if(nType!==1||!jQuery.isXMLDoc(elem)){ 5106name=jQuery.propFix[name]||name; 5107hooks=jQuery.propHooks[name]; 5108} 5109if(value!==undefined){ 5110if(hooks&&"set"in hooks&& 5111(ret=hooks.set(elem,value,name))!==undefined){ 5112return ret; 5113} 5114return(elem[name]=value); 5115} 5116if(hooks&&"get"in hooks&&(ret=hooks.get(elem,name))!==null){ 5117return ret; 5118} 5119return elem[name]; 5120}, 5121propHooks:{ 5122tabIndex:{ 5123get:function(elem){ 5124var tabindex=jQuery.find.attr(elem,"tabindex"); 5125if(tabindex){ 5126return parseInt(tabindex,10); 5127} 5128if( 5129rfocusable.test(elem.nodeName)|| 5130rclickable.test(elem.nodeName)&& 5131elem.href 5132){ 5133return 0; 5134} 5135return-1; 5136} 5137} 5138}, 5139propFix:{ 5140"for":"htmlFor", 5141"class":"className" 5142} 5143}); 5144if(!support.optSelected){ 5145jQuery.propHooks.selected={ 5146get:function(elem){ 5147var parent=elem.parentNode; 5148if(parent&&parent.parentNode){ 5149parent.parentNode.selectedIndex; 5150} 5151return null; 5152}, 5153set:function(elem){ 5154var parent=elem.parentNode; 5155if(parent){ 5156parent.selectedIndex; 5157if(parent.parentNode){ 5158parent.parentNode.selectedIndex; 5159} 5160} 5161} 5162}; 5163} 5164jQuery.each([ 5165"tabIndex", 5166"readOnly", 5167"maxLength", 5168"cellSpacing", 5169"cellPadding", 5170"rowSpan", 5171"colSpan", 5172"useMap", 5173"frameBorder", 5174"contentEditable" 5175],function(){ 5176jQuery.propFix[this.toLowerCase()]=this; 5177}); 5178function stripAndCollapse(value){ 5179var tokens=value.match(rnothtmlwhite)||[]; 5180return tokens.join(" "); 5181} 5182function getClass(elem){ 5183return elem.getAttribute&&elem.getAttribute("class")||""; 5184} 5185function classesToArray(value){ 5186if(Array.isArray(value)){ 5187return value; 5188} 5189if(typeof value==="string"){ 5190return value.match(rnothtmlwhite)||[]; 5191} 5192return[]; 5193} 5194jQuery.fn.extend({ 5195addClass:function(value){ 5196var classNames,cur,curValue,className,i,finalValue; 5197if(isFunction(value)){ 5198return this.each(function(j){ 5199jQuery(this).addClass(value.call(this,j,getClass(this))); 5200}); 5201} 5202classNames=classesToArray(value); 5203if(classNames.length){ 5204return this.each(function(){ 5205curValue=getClass(this); 5206cur=this.nodeType===1&&(" "+stripAndCollapse(curValue)+" "); 5207if(cur){ 5208for(i=0;i<classNames.length;i++){ 5209className=classNames[i]; 5210if(cur.indexOf(" "+className+" ")<0){ 5211cur+=className+" "; 5212} 5213} 5214finalValue=stripAndCollapse(cur); 5215if(curValue!==finalValue){ 5216this.setAttribute("class",finalValue); 5217} 5218} 5219}); 5220} 5221return this; 5222}, 5223removeClass:function(value){ 5224var classNames,cur,curValue,className,i,finalValue; 5225if(isFunction(value)){ 5226return this.each(function(j){ 5227jQuery(this).removeClass(value.call(this,j,getClass(this))); 5228}); 5229} 5230if(!arguments.length){ 5231return this.attr("class",""); 5232} 5233classNames=classesToArray(value); 5234if(classNames.length){ 5235return this.each(function(){ 5236curValue=getClass(this); 5237cur=this.nodeType===1&&(" "+stripAndCollapse(curValue)+" "); 5238if(cur){ 5239for(i=0;i<classNames.length;i++){ 5240className=classNames[i]; 5241while(cur.indexOf(" "+className+" ")>-1){ 5242cur=cur.replace(" "+className+" "," "); 5243} 5244} 5245finalValue=stripAndCollapse(cur); 5246if(curValue!==finalValue){ 5247this.setAttribute("class",finalValue); 5248} 5249} 5250}); 5251} 5252return this; 5253}, 5254toggleClass:function(value,stateVal){ 5255var classNames,className,i,self, 5256type=typeof value, 5257isValidValue=type==="string"||Array.isArray(value); 5258if(isFunction(value)){ 5259return this.each(function(i){ 5260jQuery(this).toggleClass( 5261value.call(this,i,getClass(this),stateVal), 5262stateVal 5263); 5264}); 5265} 5266if(typeof stateVal==="boolean"&&isValidValue){ 5267return stateVal?this.addClass(value):this.removeClass(value); 5268} 5269classNames=classesToArray(value); 5270return this.each(function(){ 5271if(isValidValue){ 5272self=jQuery(this); 5273for(i=0;i<classNames.length;i++){ 5274className=classNames[i]; 5275if(self.hasClass(className)){ 5276self.removeClass(className); 5277}else{ 5278self.addClass(className); 5279} 5280} 5281}else if(value===undefined||type==="boolean"){ 5282className=getClass(this); 5283if(className){ 5284dataPriv.set(this,"__className__",className); 5285} 5286if(this.setAttribute){ 5287this.setAttribute("class", 5288className||value===false? 5289"": 5290dataPriv.get(this,"__className__")||"" 5291); 5292} 5293} 5294}); 5295}, 5296hasClass:function(selector){ 5297var className,elem, 5298i=0; 5299className=" "+selector+" "; 5300while((elem=this[i++])){ 5301if(elem.nodeType===1&& 5302(" "+stripAndCollapse(getClass(elem))+" ").indexOf(className)>-1){ 5303return true; 5304} 5305} 5306return false; 5307} 5308}); 5309var rreturn=/\r/g; 5310jQuery.fn.extend({ 5311val:function(value){ 5312var hooks,ret,valueIsFunction, 5313elem=this[0]; 5314if(!arguments.length){ 5315if(elem){ 5316hooks=jQuery.valHooks[elem.type]|| 5317jQuery.valHooks[elem.nodeName.toLowerCase()]; 5318if(hooks&& 5319"get"in hooks&& 5320(ret=hooks.get(elem,"value"))!==undefined 5321){ 5322return ret; 5323} 5324ret=elem.value; 5325if(typeof ret==="string"){ 5326return ret.replace(rreturn,""); 5327} 5328return ret==null?"":ret; 5329} 5330return; 5331} 5332valueIsFunction=isFunction(value); 5333return this.each(function(i){ 5334var val; 5335if(this.nodeType!==1){ 5336return; 5337} 5338if(valueIsFunction){ 5339val=value.call(this,i,jQuery(this).val()); 5340}else{ 5341val=value; 5342} 5343if(val==null){ 5344val=""; 5345}else if(typeof val==="number"){ 5346val+=""; 5347}else if(Array.isArray(val)){ 5348val=jQuery.map(val,function(value){ 5349return value==null?"":value+""; 5350}); 5351} 5352hooks=jQuery.valHooks[this.type]||jQuery.valHooks[this.nodeName.toLowerCase()]; 5353if(!hooks||!("set"in hooks)||hooks.set(this,val,"value")===undefined){ 5354this.value=val; 5355} 5356}); 5357} 5358}); 5359jQuery.extend({ 5360valHooks:{ 5361option:{ 5362get:function(elem){ 5363var val=jQuery.find.attr(elem,"value"); 5364return val!=null? 5365val: 5366stripAndCollapse(jQuery.text(elem)); 5367} 5368}, 5369select:{ 5370get:function(elem){ 5371var value,option,i, 5372options=elem.options, 5373index=elem.selectedIndex, 5374one=elem.type==="select-one", 5375values=one?null:[], 5376max=one?index+1:options.length; 5377if(index<0){ 5378i=max; 5379}else{ 5380i=one?index:0; 5381} 5382for(;i<max;i++){ 5383option=options[i]; 5384if((option.selected||i===index)&& 5385!option.disabled&& 5386(!option.parentNode.disabled|| 5387!nodeName(option.parentNode,"optgroup"))){ 5388value=jQuery(option).val(); 5389if(one){ 5390return value; 5391} 5392values.push(value); 5393} 5394} 5395return values; 5396}, 5397set:function(elem,value){ 5398var optionSet,option, 5399options=elem.options, 5400values=jQuery.makeArray(value), 5401i=options.length; 5402while(i--){ 5403option=options[i]; 5404if(option.selected= 5405jQuery.inArray(jQuery.valHooks.option.get(option),values)>-1 5406){ 5407optionSet=true; 5408} 5409} 5410if(!optionSet){ 5411elem.selectedIndex=-1; 5412} 5413return values; 5414} 5415} 5416} 5417}); 5418jQuery.each(["radio","checkbox"],function(){ 5419jQuery.valHooks[this]={ 5420set:function(elem,value){ 5421if(Array.isArray(value)){ 5422return(elem.checked=jQuery.inArray(jQuery(elem).val(),value)>-1); 5423} 5424} 5425}; 5426if(!support.checkOn){ 5427jQuery.valHooks[this].get=function(elem){ 5428return elem.getAttribute("value")===null?"on":elem.value; 5429}; 5430} 5431}); 5432var location=window.location; 5433var nonce={guid:Date.now()}; 5434var rquery=(/\?/); 5435jQuery.parseXML=function(data){ 5436var xml,parserErrorElem; 5437if(!data||typeof data!=="string"){ 5438return null; 5439} 5440try{ 5441xml=(new window.DOMParser()).parseFromString(data,"text/xml"); 5442}catch(e){} 5443parserErrorElem=xml&&xml.getElementsByTagName("parsererror")[0]; 5444if(!xml||parserErrorElem){ 5445jQuery.error("Invalid XML: "+( 5446parserErrorElem? 5447jQuery.map(parserErrorElem.childNodes,function(el){ 5448return el.textContent; 5449}).join("\n"): 5450data 5451)); 5452} 5453return xml; 5454}; 5455var rfocusMorph=/^(?:focusinfocus|focusoutblur)$/, 5456stopPropagationCallback=function(e){ 5457e.stopPropagation(); 5458}; 5459jQuery.extend(jQuery.event,{ 5460trigger:function(event,data,elem,onlyHandlers){ 5461var i,cur,tmp,bubbleType,ontype,handle,special,lastElement, 5462eventPath=[elem||document], 5463type=hasOwn.call(event,"type")?event.type:event, 5464namespaces=hasOwn.call(event,"namespace")?event.namespace.split("."):[]; 5465cur=lastElement=tmp=elem=elem||document; 5466if(elem.nodeType===3||elem.nodeType===8){ 5467return; 5468} 5469if(rfocusMorph.test(type+jQuery.event.triggered)){ 5470return; 5471} 5472if(type.indexOf(".")>-1){ 5473namespaces=type.split("."); 5474type=namespaces.shift(); 5475namespaces.sort(); 5476} 5477ontype=type.indexOf(":")<0&&"on"+type; 5478event=event[jQuery.expando]? 5479event: 5480new jQuery.Event(type,typeof event==="object"&&event); 5481event.isTrigger=onlyHandlers?2:3; 5482event.namespace=namespaces.join("."); 5483event.rnamespace=event.namespace? 5484new RegExp("(^|\\.)"+namespaces.join("\\.(?:.*\\.|)")+"(\\.|$)"): 5485null; 5486event.result=undefined; 5487if(!event.target){ 5488event.target=elem; 5489} 5490data=data==null? 5491[event]: 5492jQuery.makeArray(data,[event]); 5493special=jQuery.event.special[type]||{}; 5494if(!onlyHandlers&&special.trigger&&special.trigger.apply(elem,data)===false){ 5495return; 5496} 5497if(!onlyHandlers&&!special.noBubble&&!isWindow(elem)){ 5498bubbleType=special.delegateType||type; 5499if(!rfocusMorph.test(bubbleType+type)){ 5500cur=cur.parentNode; 5501} 5502for(;cur;cur=cur.parentNode){ 5503eventPath.push(cur); 5504tmp=cur; 5505} 5506if(tmp===(elem.ownerDocument||document)){ 5507eventPath.push(tmp.defaultView||tmp.parentWindow||window); 5508} 5509} 5510i=0; 5511while((cur=eventPath[i++])&&!event.isPropagationStopped()){ 5512lastElement=cur; 5513event.type=i>1? 5514bubbleType: 5515special.bindType||type; 5516handle=(dataPriv.get(cur,"events")||Object.create(null))[event.type]&& 5517dataPriv.get(cur,"handle"); 5518if(handle){ 5519handle.apply(cur,data); 5520} 5521handle=ontype&&cur[ontype]; 5522if(handle&&handle.apply&&acceptData(cur)){ 5523event.result=handle.apply(cur,data); 5524if(event.result===false){ 5525event.preventDefault(); 5526} 5527} 5528} 5529event.type=type; 5530if(!onlyHandlers&&!event.isDefaultPrevented()){ 5531if((!special._default|| 5532special._default.apply(eventPath.pop(),data)===false)&& 5533acceptData(elem)){ 5534if(ontype&&isFunction(elem[type])&&!isWindow(elem)){ 5535tmp=elem[ontype]; 5536if(tmp){ 5537elem[ontype]=null; 5538} 5539jQuery.event.triggered=type; 5540if(event.isPropagationStopped()){ 5541lastElement.addEventListener(type,stopPropagationCallback); 5542} 5543elem[type](); 5544if(event.isPropagationStopped()){ 5545lastElement.removeEventListener(type,stopPropagationCallback); 5546} 5547jQuery.event.triggered=undefined; 5548if(tmp){ 5549elem[ontype]=tmp; 5550} 5551} 5552} 5553} 5554return event.result; 5555}, 5556simulate:function(type,elem,event){ 5557var e=jQuery.extend( 5558new jQuery.Event(), 5559event, 5560{ 5561type:type, 5562isSimulated:true 5563} 5564); 5565jQuery.event.trigger(e,null,elem); 5566} 5567}); 5568jQuery.fn.extend({ 5569trigger:function(type,data){ 5570return this.each(function(){ 5571jQuery.event.trigger(type,data,this); 5572}); 5573}, 5574triggerHandler:function(type,data){ 5575var elem=this[0]; 5576if(elem){ 5577return jQuery.event.trigger(type,data,elem,true); 5578} 5579} 5580}); 5581var 5582rbracket=/\[\]$/, 5583rCRLF=/\r?\n/g, 5584rsubmitterTypes=/^(?:submit|button|image|reset|file)$/i, 5585rsubmittable=/^(?:input|select|textarea|keygen)/i; 5586function buildParams(prefix,obj,traditional,add){ 5587var name; 5588if(Array.isArray(obj)){ 5589jQuery.each(obj,function(i,v){ 5590if(traditional||rbracket.test(prefix)){ 5591add(prefix,v); 5592}else{ 5593buildParams( 5594prefix+"["+(typeof v==="object"&&v!=null?i:"")+"]", 5595v, 5596traditional, 5597add 5598); 5599} 5600}); 5601}else if(!traditional&&toType(obj)==="object"){ 5602for(name in obj){ 5603buildParams(prefix+"["+name+"]",obj[name],traditional,add); 5604} 5605}else{ 5606add(prefix,obj); 5607} 5608} 5609jQuery.param=function(a,traditional){ 5610var prefix, 5611s=[], 5612add=function(key,valueOrFunction){ 5613var value=isFunction(valueOrFunction)? 5614valueOrFunction(): 5615valueOrFunction; 5616s[s.length]=encodeURIComponent(key)+"="+ 5617encodeURIComponent(value==null?"":value); 5618}; 5619if(a==null){ 5620return""; 5621} 5622if(Array.isArray(a)||(a.jquery&&!jQuery.isPlainObject(a))){ 5623jQuery.each(a,function(){ 5624add(this.name,this.value); 5625}); 5626}else{ 5627for(prefix in a){ 5628buildParams(prefix,a[prefix],traditional,add); 5629} 5630} 5631return s.join("&"); 5632}; 5633jQuery.fn.extend({ 5634serialize:function(){ 5635return jQuery.param(this.serializeArray()); 5636}, 5637serializeArray:function(){ 5638return this.map(function(){ 5639var elements=jQuery.prop(this,"elements"); 5640return elements?jQuery.makeArray(elements):this; 5641}).filter(function(){ 5642var type=this.type; 5643return this.name&&!jQuery(this).is(":disabled")&& 5644rsubmittable.test(this.nodeName)&&!rsubmitterTypes.test(type)&& 5645(this.checked||!rcheckableType.test(type)); 5646}).map(function(_i,elem){ 5647var val=jQuery(this).val(); 5648if(val==null){ 5649return null; 5650} 5651if(Array.isArray(val)){ 5652return jQuery.map(val,function(val){ 5653return{name:elem.name,value:val.replace(rCRLF,"\r\n")}; 5654}); 5655} 5656return{name:elem.name,value:val.replace(rCRLF,"\r\n")}; 5657}).get(); 5658} 5659}); 5660var 5661r20=/%20/g, 5662rhash=/#.*$/, 5663rantiCache=/([?&])_=[^&]*/, 5664rheaders=/^(.*?):[ \t]*([^\r\n]*)$/mg, 5665rlocalProtocol=/^(?:about|app|app-storage|.+-extension|file|res|widget):$/, 5666rnoContent=/^(?:GET|HEAD)$/, 5667rprotocol=/^\/\//, 5668prefilters={}, 5669transports={}, 5670allTypes="*/".concat("*"), 5671originAnchor=document.createElement("a"); 5672originAnchor.href=location.href; 5673function addToPrefiltersOrTransports(structure){ 5674return function(dataTypeExpression,func){ 5675if(typeof dataTypeExpression!=="string"){ 5676func=dataTypeExpression; 5677dataTypeExpression="*"; 5678} 5679var dataType, 5680i=0, 5681dataTypes=dataTypeExpression.toLowerCase().match(rnothtmlwhite)||[]; 5682if(isFunction(func)){ 5683while((dataType=dataTypes[i++])){ 5684if(dataType[0]==="+"){ 5685dataType=dataType.slice(1)||"*"; 5686(structure[dataType]=structure[dataType]||[]).unshift(func); 5687}else{ 5688(structure[dataType]=structure[dataType]||[]).push(func); 5689} 5690} 5691} 5692}; 5693} 5694function inspectPrefiltersOrTransports(structure,options,originalOptions,jqXHR){ 5695var inspected={}, 5696seekingTransport=(structure===transports); 5697function inspect(dataType){ 5698var selected; 5699inspected[dataType]=true; 5700jQuery.each(structure[dataType]||[],function(_,prefilterOrFactory){ 5701var dataTypeOrTransport=prefilterOrFactory(options,originalOptions,jqXHR); 5702if(typeof dataTypeOrTransport==="string"&& 5703!seekingTransport&&!inspected[dataTypeOrTransport]){ 5704options.dataTypes.unshift(dataTypeOrTransport); 5705inspect(dataTypeOrTransport); 5706return false; 5707}else if(seekingTransport){ 5708return!(selected=dataTypeOrTransport); 5709} 5710}); 5711return selected; 5712} 5713return inspect(options.dataTypes[0])||!inspected["*"]&&inspect("*"); 5714} 5715function ajaxExtend(target,src){ 5716var key,deep, 5717flatOptions=jQuery.ajaxSettings.flatOptions||{}; 5718for(key in src){ 5719if(src[key]!==undefined){ 5720(flatOptions[key]?target:(deep||(deep={})))[key]=src[key]; 5721} 5722} 5723if(deep){ 5724jQuery.extend(true,target,deep); 5725} 5726return target; 5727} 5728function ajaxHandleResponses(s,jqXHR,responses){ 5729var ct,type,finalDataType,firstDataType, 5730contents=s.contents, 5731dataTypes=s.dataTypes; 5732while(dataTypes[0]==="*"){ 5733dataTypes.shift(); 5734if(ct===undefined){ 5735ct=s.mimeType||jqXHR.getResponseHeader("Content-Type"); 5736} 5737} 5738if(ct){ 5739for(type in contents){ 5740if(contents[type]&&contents[type].test(ct)){ 5741dataTypes.unshift(type); 5742break; 5743} 5744} 5745} 5746if(dataTypes[0]in responses){ 5747finalDataType=dataTypes[0]; 5748}else{ 5749for(type in responses){ 5750if(!dataTypes[0]||s.converters[type+" "+dataTypes[0]]){ 5751finalDataType=type; 5752break; 5753} 5754if(!firstDataType){ 5755firstDataType=type; 5756} 5757} 5758finalDataType=finalDataType||firstDataType; 5759} 5760if(finalDataType){ 5761if(finalDataType!==dataTypes[0]){ 5762dataTypes.unshift(finalDataType); 5763} 5764return responses[finalDataType]; 5765} 5766} 5767function ajaxConvert(s,response,jqXHR,isSuccess){ 5768var conv2,current,conv,tmp,prev, 5769converters={}, 5770dataTypes=s.dataTypes.slice(); 5771if(dataTypes[1]){ 5772for(conv in s.converters){ 5773converters[conv.toLowerCase()]=s.converters[conv]; 5774} 5775} 5776current=dataTypes.shift(); 5777while(current){ 5778if(s.responseFields[current]){ 5779jqXHR[s.responseFields[current]]=response; 5780} 5781if(!prev&&isSuccess&&s.dataFilter){ 5782response=s.dataFilter(response,s.dataType); 5783} 5784prev=current; 5785current=dataTypes.shift(); 5786if(current){ 5787if(current==="*"){ 5788current=prev; 5789}else if(prev!=="*"&&prev!==current){ 5790conv=converters[prev+" "+current]||converters["* "+current]; 5791if(!conv){ 5792for(conv2 in converters){ 5793tmp=conv2.split(" "); 5794if(tmp[1]===current){ 5795conv=converters[prev+" "+tmp[0]]|| 5796converters["* "+tmp[0]]; 5797if(conv){ 5798if(conv===true){ 5799conv=converters[conv2]; 5800}else if(converters[conv2]!==true){ 5801current=tmp[0]; 5802dataTypes.unshift(tmp[1]); 5803} 5804break; 5805} 5806} 5807} 5808} 5809if(conv!==true){ 5810if(conv&&s.throws){ 5811response=conv(response); 5812}else{ 5813try{ 5814response=conv(response); 5815}catch(e){ 5816return{ 5817state:"parsererror", 5818error:conv?e:"No conversion from "+prev+" to "+current 5819}; 5820} 5821} 5822} 5823} 5824} 5825} 5826return{state:"success",data:response}; 5827} 5828jQuery.extend({ 5829active:0, 5830lastModified:{}, 5831etag:{}, 5832ajaxSettings:{ 5833url:location.href, 5834type:"GET", 5835isLocal:rlocalProtocol.test(location.protocol), 5836global:true, 5837processData:true, 5838async:true, 5839contentType:"application/x-www-form-urlencoded; charset=UTF-8", 5840accepts:{ 5841"*":allTypes, 5842text:"text/plain", 5843html:"text/html", 5844xml:"application/xml, text/xml", 5845json:"application/json, text/javascript" 5846}, 5847contents:{ 5848xml:/\bxml\b/, 5849html:/\bhtml/, 5850json:/\bjson\b/ 5851}, 5852responseFields:{ 5853xml:"responseXML", 5854text:"responseText", 5855json:"responseJSON" 5856}, 5857converters:{ 5858"* text":String, 5859"text html":true, 5860"text json":JSON.parse, 5861"text xml":jQuery.parseXML 5862}, 5863flatOptions:{ 5864url:true, 5865context:true 5866} 5867}, 5868ajaxSetup:function(target,settings){ 5869return settings? 5870ajaxExtend(ajaxExtend(target,jQuery.ajaxSettings),settings): 5871ajaxExtend(jQuery.ajaxSettings,target); 5872}, 5873ajaxPrefilter:addToPrefiltersOrTransports(prefilters), 5874ajaxTransport:addToPrefiltersOrTransports(transports), 5875ajax:function(url,options){ 5876if(typeof url==="object"){ 5877options=url; 5878url=undefined; 5879} 5880options=options||{}; 5881var transport, 5882cacheURL, 5883responseHeadersString, 5884responseHeaders, 5885timeoutTimer, 5886urlAnchor, 5887completed, 5888fireGlobals, 5889i, 5890uncached, 5891s=jQuery.ajaxSetup({},options), 5892callbackContext=s.context||s, 5893globalEventContext=s.context&& 5894(callbackContext.nodeType||callbackContext.jquery)? 5895jQuery(callbackContext): 5896jQuery.event, 5897deferred=jQuery.Deferred(), 5898completeDeferred=jQuery.Callbacks("once memory"), 5899statusCode=s.statusCode||{}, 5900requestHeaders={}, 5901requestHeadersNames={}, 5902strAbort="canceled", 5903jqXHR={ 5904readyState:0, 5905getResponseHeader:function(key){ 5906var match; 5907if(completed){ 5908if(!responseHeaders){ 5909responseHeaders={}; 5910while((match=rheaders.exec(responseHeadersString))){ 5911responseHeaders[match[1].toLowerCase()+" "]= 5912(responseHeaders[match[1].toLowerCase()+" "]||[]) 5913.concat(match[2]); 5914} 5915} 5916match=responseHeaders[key.toLowerCase()+" "]; 5917} 5918return match==null?null:match.join(", "); 5919}, 5920getAllResponseHeaders:function(){ 5921return completed?responseHeadersString:null; 5922}, 5923setRequestHeader:function(name,value){ 5924if(completed==null){ 5925name=requestHeadersNames[name.toLowerCase()]= 5926requestHeadersNames[name.toLowerCase()]||name; 5927requestHeaders[name]=value; 5928} 5929return this; 5930}, 5931overrideMimeType:function(type){ 5932if(completed==null){ 5933s.mimeType=type; 5934} 5935return this; 5936}, 5937statusCode:function(map){ 5938var code; 5939if(map){ 5940if(completed){ 5941jqXHR.always(map[jqXHR.status]); 5942}else{ 5943for(code in map){ 5944statusCode[code]=[statusCode[code],map[code]]; 5945} 5946} 5947} 5948return this; 5949}, 5950abort:function(statusText){ 5951var finalText=statusText||strAbort; 5952if(transport){ 5953transport.abort(finalText); 5954} 5955done(0,finalText); 5956return this; 5957} 5958}; 5959deferred.promise(jqXHR); 5960s.url=((url||s.url||location.href)+"") 5961.replace(rprotocol,location.protocol+"//"); 5962s.type=options.method||options.type||s.method||s.type; 5963s.dataTypes=(s.dataType||"*").toLowerCase().match(rnothtmlwhite)||[""]; 5964if(s.crossDomain==null){ 5965urlAnchor=document.createElement("a"); 5966try{ 5967urlAnchor.href=s.url; 5968urlAnchor.href=urlAnchor.href; 5969s.crossDomain=originAnchor.protocol+"//"+originAnchor.host!== 5970urlAnchor.protocol+"//"+urlAnchor.host; 5971}catch(e){ 5972s.crossDomain=true; 5973} 5974} 5975if(s.data&&s.processData&&typeof s.data!=="string"){ 5976s.data=jQuery.param(s.data,s.traditional); 5977} 5978inspectPrefiltersOrTransports(prefilters,s,options,jqXHR); 5979if(completed){ 5980return jqXHR; 5981} 5982fireGlobals=jQuery.event&&s.global; 5983if(fireGlobals&&jQuery.active++===0){ 5984jQuery.event.trigger("ajaxStart"); 5985} 5986s.type=s.type.toUpperCase(); 5987s.hasContent=!rnoContent.test(s.type); 5988cacheURL=s.url.replace(rhash,""); 5989if(!s.hasContent){ 5990uncached=s.url.slice(cacheURL.length); 5991if(s.data&&(s.processData||typeof s.data==="string")){ 5992cacheURL+=(rquery.test(cacheURL)?"&":"?")+s.data; 5993delete s.data; 5994} 5995if(s.cache===false){ 5996cacheURL=cacheURL.replace(rantiCache,"$1"); 5997uncached=(rquery.test(cacheURL)?"&":"?")+"_="+(nonce.guid++)+ 5998uncached; 5999} 6000s.url=cacheURL+uncached; 6001}else if(s.data&&s.processData&& 6002(s.contentType||"").indexOf("application/x-www-form-urlencoded")===0){ 6003s.data=s.data.replace(r20,"+"); 6004} 6005if(s.ifModified){ 6006if(jQuery.lastModified[cacheURL]){ 6007jqXHR.setRequestHeader("If-Modified-Since",jQuery.lastModified[cacheURL]); 6008} 6009if(jQuery.etag[cacheURL]){ 6010jqXHR.setRequestHeader("If-None-Match",jQuery.etag[cacheURL]); 6011} 6012} 6013if(s.data&&s.hasContent&&s.contentType!==false||options.contentType){ 6014jqXHR.setRequestHeader("Content-Type",s.contentType); 6015} 6016jqXHR.setRequestHeader( 6017"Accept", 6018s.dataTypes[0]&&s.accepts[s.dataTypes[0]]? 6019s.accepts[s.dataTypes[0]]+ 6020(s.dataTypes[0]!=="*"?", "+allTypes+"; q=0.01":""): 6021s.accepts["*"] 6022); 6023for(i in s.headers){ 6024jqXHR.setRequestHeader(i,s.headers[i]); 6025} 6026if(s.beforeSend&& 6027(s.beforeSend.call(callbackContext,jqXHR,s)===false||completed)){ 6028return jqXHR.abort(); 6029} 6030strAbort="abort"; 6031completeDeferred.add(s.complete); 6032jqXHR.done(s.success); 6033jqXHR.fail(s.error); 6034transport=inspectPrefiltersOrTransports(transports,s,options,jqXHR); 6035if(!transport){ 6036done(-1,"No Transport"); 6037}else{ 6038jqXHR.readyState=1; 6039if(fireGlobals){ 6040globalEventContext.trigger("ajaxSend",[jqXHR,s]); 6041} 6042if(completed){ 6043return jqXHR; 6044} 6045if(s.async&&s.timeout>0){ 6046timeoutTimer=window.setTimeout(function(){ 6047jqXHR.abort("timeout"); 6048},s.timeout); 6049} 6050try{ 6051completed=false; 6052transport.send(requestHeaders,done); 6053}catch(e){ 6054if(completed){ 6055throw e; 6056} 6057done(-1,e); 6058} 6059} 6060function done(status,nativeStatusText,responses,headers){ 6061var isSuccess,success,error,response,modified, 6062statusText=nativeStatusText; 6063if(completed){ 6064return; 6065} 6066completed=true; 6067if(timeoutTimer){ 6068window.clearTimeout(timeoutTimer); 6069} 6070transport=undefined; 6071responseHeadersString=headers||""; 6072jqXHR.readyState=status>0?4:0; 6073isSuccess=status>=200&&status<300||status===304; 6074if(responses){ 6075response=ajaxHandleResponses(s,jqXHR,responses); 6076} 6077if(!isSuccess&& 6078jQuery.inArray("script",s.dataTypes)>-1&& 6079jQuery.inArray("json",s.dataTypes)<0){ 6080s.converters["text script"]=function(){}; 6081} 6082response=ajaxConvert(s,response,jqXHR,isSuccess); 6083if(isSuccess){ 6084if(s.ifModified){ 6085modified=jqXHR.getResponseHeader("Last-Modified"); 6086if(modified){ 6087jQuery.lastModified[cacheURL]=modified; 6088} 6089modified=jqXHR.getResponseHeader("etag"); 6090if(modified){ 6091jQuery.etag[cacheURL]=modified; 6092} 6093} 6094if(status===204||s.type==="HEAD"){ 6095statusText="nocontent"; 6096}else if(status===304){ 6097statusText="notmodified"; 6098}else{ 6099statusText=response.state; 6100success=response.data; 6101error=response.error; 6102isSuccess=!error; 6103} 6104}else{ 6105error=statusText; 6106if(status||!statusText){ 6107statusText="error"; 6108if(status<0){ 6109status=0; 6110} 6111} 6112} 6113jqXHR.status=status; 6114jqXHR.statusText=(nativeStatusText||statusText)+""; 6115if(isSuccess){ 6116deferred.resolveWith(callbackContext,[success,statusText,jqXHR]); 6117}else{ 6118deferred.rejectWith(callbackContext,[jqXHR,statusText,error]); 6119} 6120jqXHR.statusCode(statusCode); 6121statusCode=undefined; 6122if(fireGlobals){ 6123globalEventContext.trigger(isSuccess?"ajaxSuccess":"ajaxError", 6124[jqXHR,s,isSuccess?success:error]); 6125} 6126completeDeferred.fireWith(callbackContext,[jqXHR,statusText]); 6127if(fireGlobals){ 6128globalEventContext.trigger("ajaxComplete",[jqXHR,s]); 6129if(!(--jQuery.active)){ 6130jQuery.event.trigger("ajaxStop"); 6131} 6132} 6133} 6134return jqXHR; 6135}, 6136getJSON:function(url,data,callback){ 6137return jQuery.get(url,data,callback,"json"); 6138}, 6139getScript:function(url,callback){ 6140return jQuery.get(url,undefined,callback,"script"); 6141} 6142}); 6143jQuery.each(["get","post"],function(_i,method){ 6144jQuery[method]=function(url,data,callback,type){ 6145if(isFunction(data)){ 6146type=type||callback; 6147callback=data; 6148data=undefined; 6149} 6150return jQuery.ajax(jQuery.extend({ 6151url:url, 6152type:method, 6153dataType:type, 6154data:data, 6155success:callback 6156},jQuery.isPlainObject(url)&&url)); 6157}; 6158}); 6159jQuery.ajaxPrefilter(function(s){ 6160var i; 6161for(i in s.headers){ 6162if(i.toLowerCase()==="content-type"){ 6163s.contentType=s.headers[i]||""; 6164} 6165} 6166}); 6167jQuery._evalUrl=function(url,options,doc){ 6168return jQuery.ajax({ 6169url:url, 6170type:"GET", 6171dataType:"script", 6172cache:true, 6173async:false, 6174global:false, 6175converters:{ 6176"text script":function(){} 6177}, 6178dataFilter:function(response){ 6179jQuery.globalEval(response,options,doc); 6180} 6181}); 6182}; 6183jQuery.fn.extend({ 6184wrapAll:function(html){ 6185var wrap; 6186if(this[0]){ 6187if(isFunction(html)){ 6188html=html.call(this[0]); 6189} 6190wrap=jQuery(html,this[0].ownerDocument).eq(0).clone(true); 6191if(this[0].parentNode){ 6192wrap.insertBefore(this[0]); 6193} 6194wrap.map(function(){ 6195var elem=this; 6196while(elem.firstElementChild){ 6197elem=elem.firstElementChild; 6198} 6199return elem; 6200}).append(this); 6201} 6202return this; 6203}, 6204wrapInner:function(html){ 6205if(isFunction(html)){ 6206return this.each(function(i){ 6207jQuery(this).wrapInner(html.call(this,i)); 6208}); 6209} 6210return this.each(function(){ 6211var self=jQuery(this), 6212contents=self.contents(); 6213if(contents.length){ 6214contents.wrapAll(html); 6215}else{ 6216self.append(html); 6217} 6218}); 6219}, 6220wrap:function(html){ 6221var htmlIsFunction=isFunction(html); 6222return this.each(function(i){ 6223jQuery(this).wrapAll(htmlIsFunction?html.call(this,i):html); 6224}); 6225}, 6226unwrap:function(selector){ 6227this.parent(selector).not("body").each(function(){ 6228jQuery(this).replaceWith(this.childNodes); 6229}); 6230return this; 6231} 6232}); 6233jQuery.expr.pseudos.hidden=function(elem){ 6234return!jQuery.expr.pseudos.visible(elem); 6235}; 6236jQuery.expr.pseudos.visible=function(elem){ 6237return!!(elem.offsetWidth||elem.offsetHeight||elem.getClientRects().length); 6238}; 6239jQuery.ajaxSettings.xhr=function(){ 6240try{ 6241return new window.XMLHttpRequest(); 6242}catch(e){} 6243}; 6244var xhrSuccessStatus={ 62450:200, 62461223:204 6247}, 6248xhrSupported=jQuery.ajaxSettings.xhr(); 6249support.cors=!!xhrSupported&&("withCredentials"in xhrSupported); 6250support.ajax=xhrSupported=!!xhrSupported; 6251jQuery.ajaxTransport(function(options){ 6252var callback,errorCallback; 6253if(support.cors||xhrSupported&&!options.crossDomain){ 6254return{ 6255send:function(headers,complete){ 6256var i, 6257xhr=options.xhr(); 6258xhr.open( 6259options.type, 6260options.url, 6261options.async, 6262options.username, 6263options.password 6264); 6265if(options.xhrFields){ 6266for(i in options.xhrFields){ 6267xhr[i]=options.xhrFields[i]; 6268} 6269} 6270if(options.mimeType&&xhr.overrideMimeType){ 6271xhr.overrideMimeType(options.mimeType); 6272} 6273if(!options.crossDomain&&!headers["X-Requested-With"]){ 6274headers["X-Requested-With"]="XMLHttpRequest"; 6275} 6276for(i in headers){ 6277xhr.setRequestHeader(i,headers[i]); 6278} 6279callback=function(type){ 6280return function(){ 6281if(callback){ 6282callback=errorCallback=xhr.onload= 6283xhr.onerror=xhr.onabort=xhr.ontimeout= 6284xhr.onreadystatechange=null; 6285if(type==="abort"){ 6286xhr.abort(); 6287}else if(type==="error"){ 6288if(typeof xhr.status!=="number"){ 6289complete(0,"error"); 6290}else{ 6291complete( 6292xhr.status, 6293xhr.statusText 6294); 6295} 6296}else{ 6297complete( 6298xhrSuccessStatus[xhr.status]||xhr.status, 6299xhr.statusText, 6300(xhr.responseType||"text")!=="text"|| 6301typeof xhr.responseText!=="string"? 6302{binary:xhr.response}: 6303{text:xhr.responseText}, 6304xhr.getAllResponseHeaders() 6305); 6306} 6307} 6308}; 6309}; 6310xhr.onload=callback(); 6311errorCallback=xhr.onerror=xhr.ontimeout=callback("error"); 6312if(xhr.onabort!==undefined){ 6313xhr.onabort=errorCallback; 6314}else{ 6315xhr.onreadystatechange=function(){ 6316if(xhr.readyState===4){ 6317window.setTimeout(function(){ 6318if(callback){ 6319errorCallback(); 6320} 6321}); 6322} 6323}; 6324} 6325callback=callback("abort"); 6326try{ 6327xhr.send(options.hasContent&&options.data||null); 6328}catch(e){ 6329if(callback){ 6330throw e; 6331} 6332} 6333}, 6334abort:function(){ 6335if(callback){ 6336callback(); 6337} 6338} 6339}; 6340} 6341}); 6342jQuery.ajaxPrefilter(function(s){ 6343if(s.crossDomain){ 6344s.contents.script=false; 6345} 6346}); 6347jQuery.ajaxSetup({ 6348accepts:{ 6349script:"text/javascript, application/javascript, "+ 6350"application/ecmascript, application/x-ecmascript" 6351}, 6352contents:{ 6353script:/\b(?:java|ecma)script\b/ 6354}, 6355converters:{ 6356"text script":function(text){ 6357jQuery.globalEval(text); 6358return text; 6359} 6360} 6361}); 6362jQuery.ajaxPrefilter("script",function(s){ 6363if(s.cache===undefined){ 6364s.cache=false; 6365} 6366if(s.crossDomain){ 6367s.type="GET"; 6368} 6369}); 6370jQuery.ajaxTransport("script",function(s){ 6371if(s.crossDomain||s.scriptAttrs){ 6372var script,callback; 6373return{ 6374send:function(_,complete){ 6375script=jQuery("<script>") 6376.attr(s.scriptAttrs||{}) 6377.prop({charset:s.scriptCharset,src:s.url}) 6378.on("load error",callback=function(evt){ 6379script.remove(); 6380callback=null; 6381if(evt){ 6382complete(evt.type==="error"?404:200,evt.type); 6383} 6384}); 6385document.head.appendChild(script[0]); 6386}, 6387abort:function(){ 6388if(callback){ 6389callback(); 6390} 6391} 6392}; 6393} 6394}); 6395var oldCallbacks=[], 6396rjsonp=/(=)\?(?=&|$)|\?\?/; 6397jQuery.ajaxSetup({ 6398jsonp:"callback", 6399jsonpCallback:function(){ 6400var callback=oldCallbacks.pop()||(jQuery.expando+"_"+(nonce.guid++)); 6401this[callback]=true; 6402return callback; 6403} 6404}); 6405jQuery.ajaxPrefilter("json jsonp",function(s,originalSettings,jqXHR){ 6406var callbackName,overwritten,responseContainer, 6407jsonProp=s.jsonp!==false&&(rjsonp.test(s.url)? 6408"url": 6409typeof s.data==="string"&& 6410(s.contentType||"") 6411.indexOf("application/x-www-form-urlencoded")===0&& 6412rjsonp.test(s.data)&&"data" 6413); 6414if(jsonProp||s.dataTypes[0]==="jsonp"){ 6415callbackName=s.jsonpCallback=isFunction(s.jsonpCallback)? 6416s.jsonpCallback(): 6417s.jsonpCallback; 6418if(jsonProp){ 6419s[jsonProp]=s[jsonProp].replace(rjsonp,"$1"+callbackName); 6420}else if(s.jsonp!==false){ 6421s.url+=(rquery.test(s.url)?"&":"?")+s.jsonp+"="+callbackName; 6422} 6423s.converters["script json"]=function(){ 6424if(!responseContainer){ 6425jQuery.error(callbackName+" was not called"); 6426} 6427return responseContainer[0]; 6428}; 6429s.dataTypes[0]="json"; 6430overwritten=window[callbackName]; 6431window[callbackName]=function(){ 6432responseContainer=arguments; 6433}; 6434jqXHR.always(function(){ 6435if(overwritten===undefined){ 6436jQuery(window).removeProp(callbackName); 6437}else{ 6438window[callbackName]=overwritten; 6439} 6440if(s[callbackName]){ 6441s.jsonpCallback=originalSettings.jsonpCallback; 6442oldCallbacks.push(callbackName); 6443} 6444if(responseContainer&&isFunction(overwritten)){ 6445overwritten(responseContainer[0]); 6446} 6447responseContainer=overwritten=undefined; 6448}); 6449return"script"; 6450} 6451}); 6452support.createHTMLDocument=(function(){ 6453var body=document.implementation.createHTMLDocument("").body; 6454body.innerHTML="<form></form><form></form>"; 6455return body.childNodes.length===2; 6456})(); 6457jQuery.parseHTML=function(data,context,keepScripts){ 6458if(typeof data!=="string"){ 6459return[]; 6460} 6461if(typeof context==="boolean"){ 6462keepScripts=context; 6463context=false; 6464} 6465var base,parsed,scripts; 6466if(!context){ 6467if(support.createHTMLDocument){ 6468context=document.implementation.createHTMLDocument(""); 6469base=context.createElement("base"); 6470base.href=document.location.href; 6471context.head.appendChild(base); 6472}else{ 6473context=document; 6474} 6475} 6476parsed=rsingleTag.exec(data); 6477scripts=!keepScripts&&[]; 6478if(parsed){ 6479return[context.createElement(parsed[1])]; 6480} 6481parsed=buildFragment([data],context,scripts); 6482if(scripts&&scripts.length){ 6483jQuery(scripts).remove(); 6484} 6485return jQuery.merge([],parsed.childNodes); 6486}; 6487jQuery.fn.load=function(url,params,callback){ 6488var selector,type,response, 6489self=this, 6490off=url.indexOf(" "); 6491if(off>-1){ 6492selector=stripAndCollapse(url.slice(off)); 6493url=url.slice(0,off); 6494} 6495if(isFunction(params)){ 6496callback=params; 6497params=undefined; 6498}else if(params&&typeof params==="object"){ 6499type="POST"; 6500} 6501if(self.length>0){ 6502jQuery.ajax({ 6503url:url, 6504type:type||"GET", 6505dataType:"html", 6506data:params 6507}).done(function(responseText){ 6508response=arguments; 6509self.html(selector? 6510jQuery("<div>").append(jQuery.parseHTML(responseText)).find(selector): 6511responseText); 6512}).always(callback&&function(jqXHR,status){ 6513self.each(function(){ 6514callback.apply(this,response||[jqXHR.responseText,status,jqXHR]); 6515}); 6516}); 6517} 6518return this; 6519}; 6520jQuery.expr.pseudos.animated=function(elem){ 6521return jQuery.grep(jQuery.timers,function(fn){ 6522return elem===fn.elem; 6523}).length; 6524}; 6525jQuery.offset={ 6526setOffset:function(elem,options,i){ 6527var curPosition,curLeft,curCSSTop,curTop,curOffset,curCSSLeft,calculatePosition, 6528position=jQuery.css(elem,"position"), 6529curElem=jQuery(elem), 6530props={}; 6531if(position==="static"){ 6532elem.style.position="relative"; 6533} 6534curOffset=curElem.offset(); 6535curCSSTop=jQuery.css(elem,"top"); 6536curCSSLeft=jQuery.css(elem,"left"); 6537calculatePosition=(position==="absolute"||position==="fixed")&& 6538(curCSSTop+curCSSLeft).indexOf("auto")>-1; 6539if(calculatePosition){ 6540curPosition=curElem.position(); 6541curTop=curPosition.top; 6542curLeft=curPosition.left; 6543}else{ 6544curTop=parseFloat(curCSSTop)||0; 6545curLeft=parseFloat(curCSSLeft)||0; 6546} 6547if(isFunction(options)){ 6548options=options.call(elem,i,jQuery.extend({},curOffset)); 6549} 6550if(options.top!=null){ 6551props.top=(options.top-curOffset.top)+curTop; 6552} 6553if(options.left!=null){ 6554props.left=(options.left-curOffset.left)+curLeft; 6555} 6556if("using"in options){ 6557options.using.call(elem,props); 6558}else{ 6559curElem.css(props); 6560} 6561} 6562}; 6563jQuery.fn.extend({ 6564offset:function(options){ 6565if(arguments.length){ 6566return options===undefined? 6567this: 6568this.each(function(i){ 6569jQuery.offset.setOffset(this,options,i); 6570}); 6571} 6572var rect,win, 6573elem=this[0]; 6574if(!elem){ 6575return; 6576} 6577if(!elem.getClientRects().length){ 6578return{top:0,left:0}; 6579} 6580rect=elem.getBoundingClientRect(); 6581win=elem.ownerDocument.defaultView; 6582return{ 6583top:rect.top+win.pageYOffset, 6584left:rect.left+win.pageXOffset 6585}; 6586}, 6587position:function(){ 6588if(!this[0]){ 6589return; 6590} 6591var offsetParent,offset,doc, 6592elem=this[0], 6593parentOffset={top:0,left:0}; 6594if(jQuery.css(elem,"position")==="fixed"){ 6595offset=elem.getBoundingClientRect(); 6596}else{ 6597offset=this.offset(); 6598doc=elem.ownerDocument; 6599offsetParent=elem.offsetParent||doc.documentElement; 6600while(offsetParent&& 6601(offsetParent===doc.body||offsetParent===doc.documentElement)&& 6602jQuery.css(offsetParent,"position")==="static"){ 6603offsetParent=offsetParent.parentNode; 6604} 6605if(offsetParent&&offsetParent!==elem&&offsetParent.nodeType===1){ 6606parentOffset=jQuery(offsetParent).offset(); 6607parentOffset.top+=jQuery.css(offsetParent,"borderTopWidth",true); 6608parentOffset.left+=jQuery.css(offsetParent,"borderLeftWidth",true); 6609} 6610} 6611return{ 6612top:offset.top-parentOffset.top-jQuery.css(elem,"marginTop",true), 6613left:offset.left-parentOffset.left-jQuery.css(elem,"marginLeft",true) 6614}; 6615}, 6616offsetParent:function(){ 6617return this.map(function(){ 6618var offsetParent=this.offsetParent; 6619while(offsetParent&&jQuery.css(offsetParent,"position")==="static"){ 6620offsetParent=offsetParent.offsetParent; 6621} 6622return offsetParent||documentElement; 6623}); 6624} 6625}); 6626jQuery.each({scrollLeft:"pageXOffset",scrollTop:"pageYOffset"},function(method,prop){ 6627var top="pageYOffset"===prop; 6628jQuery.fn[method]=function(val){ 6629return access(this,function(elem,method,val){ 6630var win; 6631if(isWindow(elem)){ 6632win=elem; 6633}else if(elem.nodeType===9){ 6634win=elem.defaultView; 6635} 6636if(val===undefined){ 6637return win?win[prop]:elem[method]; 6638} 6639if(win){ 6640win.scrollTo( 6641!top?val:win.pageXOffset, 6642top?val:win.pageYOffset 6643); 6644}else{ 6645elem[method]=val; 6646} 6647},method,val,arguments.length); 6648}; 6649});
6650jQuery.each(["top","left"],function(_i,prop){ 6651jQuery.cssHooks[prop]=addGetHookIf(support.pixelPosition, 6652function(elem,computed){ 6653if(computed){ 6654computed=curCSS(elem,prop); 6655return rnumnonpx.test(computed)? 6656jQuery(elem).position()[prop]+"px": 6657computed; 6658} 6659} 6660); 6661}); 6662jQuery.each({Height:"height",Width:"width"},function(name,type){ 6663jQuery.each({ 6664padding:"inner"+name, 6665content:type, 6666"":"outer"+name 6667},function(defaultExtra,funcName){ 6668jQuery.fn[funcName]=function(margin,value){ 6669var chainable=arguments.length&&(defaultExtra||typeof margin!=="boolean"), 6670extra=defaultExtra||(margin===true||value===true?"margin":"border"); 6671return access(this,function(elem,type,value){ 6672var doc; 6673if(isWindow(elem)){ 6674return funcName.indexOf("outer")===0? 6675elem["inner"+name]: 6676elem.document.documentElement["client"+name]; 6677} 6678if(elem.nodeType===9){ 6679doc=elem.documentElement; 6680return Math.max( 6681elem.body["scroll"+name],doc["scroll"+name], 6682elem.body["offset"+name],doc["offset"+name], 6683doc["client"+name] 6684); 6685} 6686return value===undefined? 6687jQuery.css(elem,type,extra): 6688jQuery.style(elem,type,value,extra); 6689},type,chainable?margin:undefined,chainable); 6690}; 6691}); 6692}); 6693jQuery.each([ 6694"ajaxStart", 6695"ajaxStop", 6696"ajaxComplete", 6697"ajaxError", 6698"ajaxSuccess", 6699"ajaxSend" 6700],function(_i,type){ 6701jQuery.fn[type]=function(fn){ 6702return this.on(type,fn); 6703}; 6704}); 6705jQuery.fn.extend({ 6706bind:function(types,data,fn){ 6707return this.on(types,null,data,fn); 6708}, 6709unbind:function(types,fn){ 6710return this.off(types,null,fn); 6711}, 6712delegate:function(selector,types,data,fn){ 6713return this.on(types,selector,data,fn); 6714}, 6715undelegate:function(selector,types,fn){ 6716return arguments.length===1? 6717this.off(selector,"**"): 6718this.off(types,selector||"**",fn); 6719}, 6720hover:function(fnOver,fnOut){ 6721return this 6722.on("mouseenter",fnOver) 6723.on("mouseleave",fnOut||fnOver); 6724} 6725}); 6726jQuery.each( 6727("blur focus focusin focusout resize scroll click dblclick "+ 6728"mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave "+ 6729"change select submit keydown keypress keyup contextmenu").split(" "), 6730function(_i,name){ 6731jQuery.fn[name]=function(data,fn){ 6732return arguments.length>0? 6733this.on(name,null,data,fn): 6734this.trigger(name); 6735}; 6736} 6737); 6738var rtrim=/^[\s\uFEFF\xA0]+|([^\s\uFEFF\xA0])[\s\uFEFF\xA0]+$/g; 6739jQuery.proxy=function(fn,context){ 6740var tmp,args,proxy; 6741if(typeof context==="string"){ 6742tmp=fn[context]; 6743context=fn; 6744fn=tmp; 6745} 6746if(!isFunction(fn)){ 6747return undefined; 6748} 6749args=slice.call(arguments,2); 6750proxy=function(){ 6751return fn.apply(context||this,args.concat(slice.call(arguments))); 6752}; 6753proxy.guid=fn.guid=fn.guid||jQuery.guid++; 6754return proxy; 6755}; 6756jQuery.holdReady=function(hold){ 6757if(hold){ 6758jQuery.readyWait++; 6759}else{ 6760jQuery.ready(true); 6761} 6762}; 6763jQuery.isArray=Array.isArray; 6764jQuery.parseJSON=JSON.parse; 6765jQuery.nodeName=nodeName; 6766jQuery.isFunction=isFunction; 6767jQuery.isWindow=isWindow; 6768jQuery.camelCase=camelCase; 6769jQuery.type=toType; 6770jQuery.now=Date.now; 6771jQuery.isNumeric=function(obj){ 6772var type=jQuery.type(obj); 6773return(type==="number"||type==="string")&& 6774!isNaN(obj-parseFloat(obj)); 6775}; 6776jQuery.trim=function(text){ 6777return text==null? 6778"": 6779(text+"").replace(rtrim,"$1"); 6780}; 6781if(typeof define==="function"&&define.amd){ 6782define("jquery",[],function(){ 6783return jQuery; 6784}); 6785} 6786var 6787_jQuery=window.jQuery, 6788_$=window.$; 6789jQuery.noConflict=function(deep){ 6790if(window.$===jQuery){ 6791window.$=_$; 6792} 6793if(deep&&window.jQuery===jQuery){ 6794window.jQuery=_jQuery; 6795} 6796return jQuery; 6797}; 6798if(typeof noGlobal==="undefined"){ 6799window.jQuery=window.$=jQuery; 6800} 6801return jQuery; 6802}); 6803 6804 6805/* prive/javascript/jquery.form.js?1788356716 */ 6806 6807(function(factory){ 6808if(typeof define==='function'&&define.amd){ 6809define(['jquery'],factory); 6810}else if(typeof module==='object'&&module.exports){ 6811module.exports=function(root,jQuery){ 6812if(typeof jQuery==='undefined'){ 6813if(typeof window!=='undefined'){ 6814jQuery=require('jquery'); 6815} 6816else{ 6817jQuery=require('jquery')(root); 6818} 6819} 6820factory(jQuery); 6821return jQuery; 6822}; 6823}else{ 6824factory(jQuery); 6825} 6826}(function($){ 6827'use strict'; 6828var rCRLF=/\r?\n/g; 6829var feature={}; 6830feature.fileapi=$('<input type="file">').get(0).files!==undefined; 6831feature.formdata=(typeof window.FormData!=='undefined'); 6832var hasProp=!!$.fn.prop; 6833$.fn.attr2=function(){ 6834if(!hasProp){ 6835return this.attr.apply(this,arguments); 6836} 6837var val=this.prop.apply(this,arguments); 6838if((val&&val.jquery)||typeof val==='string'){ 6839return val; 6840} 6841return this.attr.apply(this,arguments); 6842}; 6843$.fn.ajaxSubmit=function(options,data,dataType,onSuccess){ 6844if(!this.length){
6845log('ajaxSubmit: skipping submit process - no element selected'); 6846return this; 6847} 6848var method,action,url,isMsie,iframeSrc,$form=this; 6849if(typeof options==='function'){ 6850options={success:options}; 6851}else if(typeof options==='string'||(options===false&&arguments.length>0)){ 6852options={ 6853'url':options, 6854'data':data, 6855'dataType':dataType 6856}; 6857if(typeof onSuccess==='function'){ 6858options.success=onSuccess; 6859} 6860}else if(typeof options==='undefined'){ 6861options={}; 6862} 6863method=options.method||options.type||this.attr2('method'); 6864action=options.url||this.attr2('action'); 6865url=(typeof action==='string')?$.trim(action):''; 6866url=url||window.location.href||''; 6867if(url){ 6868url=(url.match(/^([^#]+)/)||[])[1]; 6869} 6870isMsie=/(MSIE|Trident)/.test(navigator.userAgent||''); 6871iframeSrc=(isMsie&&/^https/i.test(window.location.href||''))?'javascript:false':'about:blank'; 6872options=$.extend(true,{ 6873url:url, 6874success:$.ajaxSettings.success, 6875type:method||$.ajaxSettings.type, 6876iframeSrc:iframeSrc 6877},options); 6878var veto={}; 6879this.trigger('form-pre-serialize',[this,options,veto]); 6880if(veto.veto){ 6881log('ajaxSubmit: submit vetoed via form-pre-serialize trigger'); 6882return this; 6883} 6884if(options.beforeSerialize&&options.beforeSerialize(this,options)===false){ 6885log('ajaxSubmit: submit aborted via beforeSerialize callback'); 6886return this; 6887} 6888var traditional=options.traditional; 6889if(typeof traditional==='undefined'){ 6890traditional=$.ajaxSettings.traditional; 6891} 6892var elements=[]; 6893var qx,a=this.formToArray(options.semantic,elements,options.filtering); 6894if(options.data){ 6895var optionsData=$.isFunction(options.data)?options.data(a):options.data; 6896options.extraData=optionsData; 6897qx=$.param(optionsData,traditional); 6898} 6899if(options.beforeSubmit&&options.beforeSubmit(a,this,options)===false){ 6900log('ajaxSubmit: submit aborted via beforeSubmit callback'); 6901return this; 6902} 6903this.trigger('form-submit-validate',[a,this,options,veto]); 6904if(veto.veto){ 6905log('ajaxSubmit: submit vetoed via form-submit-validate trigger'); 6906return this; 6907} 6908var q=$.param(a,traditional); 6909if(qx){ 6910q=(q?(q+'&'+qx):qx); 6911} 6912if(options.type.toUpperCase()==='GET'){ 6913options.url+=(options.url.indexOf('?')>=0?'&':'?')+q; 6914options.data=null; 6915}else{ 6916options.data=q; 6917} 6918var callbacks=[]; 6919if(options.resetForm){ 6920callbacks.push(function(){ 6921$form.resetForm(); 6922}); 6923} 6924if(options.clearForm){ 6925callbacks.push(function(){ 6926$form.clearForm(options.includeHidden); 6927}); 6928} 6929if(!options.dataType&&options.target){ 6930var oldSuccess=options.success||function(){}; 6931callbacks.push(function(data,textStatus,jqXHR){ 6932var successArguments=arguments, 6933fn=options.replaceTarget?'replaceWith':'html'; 6934if(fn=='html'){ 6935data=$.parseHTML($("<div>").text(data).html()) 6936}; 6937$(options.target)[fn](data).each(function(){ 6938oldSuccess.apply(this,successArguments); 6939}); 6940}); 6941}else if(options.success){ 6942if($.isArray(options.success)){ 6943$.merge(callbacks,options.success); 6944}else{ 6945callbacks.push(options.success); 6946} 6947} 6948options.success=function(data,status,xhr){ 6949var context=options.context||this; 6950for(var i=0,max=callbacks.length;i<max;i++){ 6951callbacks[i].apply(context,[data,status,xhr||$form,$form]); 6952} 6953}; 6954if(options.error){ 6955var oldError=options.error; 6956options.error=function(xhr,status,error){ 6957var context=options.context||this; 6958oldError.apply(context,[xhr,status,error,$form]); 6959}; 6960} 6961if(options.complete){ 6962var oldComplete=options.complete; 6963options.complete=function(xhr,status){ 6964var context=options.context||this; 6965oldComplete.apply(context,[xhr,status,$form]); 6966}; 6967} 6968var fileInputs=$('input[type=file]:enabled',this).filter(function(){ 6969return $(this).val()!==''; 6970}); 6971var hasFileInputs=fileInputs.length>0; 6972var mp='multipart/form-data'; 6973var multipart=($form.attr('enctype')===mp||$form.attr('encoding')===mp); 6974var fileAPI=feature.fileapi&&feature.formdata; 6975log('fileAPI :'+fileAPI); 6976var shouldUseFrame=(hasFileInputs||multipart)&&!fileAPI; 6977var jqxhr; 6978if(options.iframe!==false&&(options.iframe||shouldUseFrame)){ 6979if(options.closeKeepAlive){ 6980$.get(options.closeKeepAlive,function(){ 6981jqxhr=fileUploadIframe(a); 6982}); 6983}else{ 6984jqxhr=fileUploadIframe(a); 6985} 6986}else if((hasFileInputs||multipart)&&fileAPI){ 6987jqxhr=fileUploadXhr(a); 6988}else{ 6989jqxhr=$.ajax(options); 6990} 6991$form.removeData('jqxhr').data('jqxhr',jqxhr); 6992for(var k=0;k<elements.length;k++){ 6993elements[k]=null; 6994} 6995this.trigger('form-submit-notify',[this,options]); 6996return this; 6997function deepSerialize(extraData){ 6998var serialized=$.param(extraData,options.traditional).split('&'); 6999var len=serialized.length; 7000var result=[]; 7001var i,part; 7002for(i=0;i<len;i++){ 7003serialized[i]=serialized[i].replace(/\+/g,' '); 7004part=serialized[i].split('='); 7005result.push([decodeURIComponent(part[0]),decodeURIComponent(part[1])]); 7006} 7007return result; 7008} 7009function fileUploadXhr(a){ 7010var formdata=new FormData(); 7011for(var i=0;i<a.length;i++){ 7012formdata.append(a[i].name,a[i].value); 7013} 7014if(options.extraData){ 7015var serializedData=deepSerialize(options.extraData); 7016for(i=0;i<serializedData.length;i++){ 7017if(serializedData[i]){ 7018formdata.append(serializedData[i][0],serializedData[i][1]); 7019} 7020} 7021} 7022options.data=null; 7023var s=$.extend(true,{},$.ajaxSettings,options,{ 7024contentType:false, 7025processData:false, 7026cache:false, 7027type:method||'POST' 7028}); 7029if(options.uploadProgress){ 7030s.xhr=function(){ 7031var xhr=$.ajaxSettings.xhr(); 7032if(xhr.upload){ 7033xhr.upload.addEventListener('progress',function(event){ 7034var percent=0; 7035var position=event.loaded||event.position; 7036var total=event.total; 7037if(event.lengthComputable){ 7038percent=Math.ceil(position/total*100); 7039} 7040options.uploadProgress(event,position,total,percent); 7041},false); 7042} 7043return xhr; 7044}; 7045} 7046s.data=null; 7047var beforeSend=s.beforeSend; 7048s.beforeSend=function(xhr,o){ 7049if(options.formData){ 7050o.data=options.formData; 7051}else{ 7052o.data=formdata; 7053} 7054if(beforeSend){
7055beforeSend.call(this,xhr,o); 7056} 7057}; 7058return $.ajax(s); 7059} 7060function fileUploadIframe(a){ 7061var form=$form[0],el,i,s,g,id,$io,io,xhr,sub,n,timedOut,timeoutHandle; 7062var deferred=$.Deferred(); 7063deferred.abort=function(status){ 7064xhr.abort(status); 7065}; 7066if(a){ 7067for(i=0;i<elements.length;i++){ 7068el=$(elements[i]); 7069if(hasProp){ 7070el.prop('disabled',false); 7071}else{ 7072el.removeAttr('disabled'); 7073} 7074} 7075} 7076s=$.extend(true,{},$.ajaxSettings,options); 7077s.context=s.context||s; 7078id='jqFormIO'+new Date().getTime(); 7079var ownerDocument=form.ownerDocument; 7080var $body=$form.closest('body'); 7081if(s.iframeTarget){ 7082$io=$(s.iframeTarget,ownerDocument); 7083n=$io.attr2('name'); 7084if(!n){ 7085$io.attr2('name',id); 7086}else{ 7087id=n; 7088} 7089}else{ 7090$io=$('<iframe name="'+id+'" src="'+s.iframeSrc+'">',ownerDocument); 7091$io.css({position:'absolute',top:'-1000px',left:'-1000px'}); 7092} 7093io=$io[0]; 7094xhr={ 7095aborted:0, 7096responseText:null, 7097responseXML:null, 7098status:0, 7099statusText:'n/a', 7100getAllResponseHeaders:function(){}, 7101getResponseHeader:function(){}, 7102setRequestHeader:function(){}, 7103abort:function(status){ 7104var e=(status==='timeout'?'timeout':'aborted'); 7105log('aborting upload... '+e); 7106this.aborted=1; 7107try{ 7108if(io.contentWindow.document.execCommand){ 7109io.contentWindow.document.execCommand('Stop'); 7110} 7111}catch(ignore){} 7112$io.attr('src',s.iframeSrc); 7113xhr.error=e; 7114if(s.error){ 7115s.error.call(s.context,xhr,e,status); 7116} 7117if(g){ 7118$.event.trigger('ajaxError',[xhr,s,e]); 7119} 7120if(s.complete){ 7121s.complete.call(s.context,xhr,e); 7122} 7123} 7124}; 7125g=s.global; 7126if(g&&$.active++===0){ 7127$.event.trigger('ajaxStart'); 7128} 7129if(g){ 7130$.event.trigger('ajaxSend',[xhr,s]); 7131} 7132if(s.beforeSend&&s.beforeSend.call(s.context,xhr,s)===false){ 7133if(s.global){ 7134$.active--; 7135} 7136deferred.reject(); 7137return deferred; 7138} 7139if(xhr.aborted){ 7140deferred.reject(); 7141return deferred; 7142} 7143sub=form.clk; 7144if(sub){ 7145n=sub.name; 7146if(n&&!sub.disabled){ 7147s.extraData=s.extraData||{}; 7148s.extraData[n]=sub.value; 7149if(sub.type==='image'){ 7150s.extraData[n+'.x']=form.clk_x; 7151s.extraData[n+'.y']=form.clk_y; 7152} 7153} 7154} 7155var CLIENT_TIMEOUT_ABORT=1; 7156var SERVER_ABORT=2; 7157function getDoc(frame){ 7158var doc=null; 7159try{ 7160if(frame.contentWindow){ 7161doc=frame.contentWindow.document; 7162} 7163}catch(err){ 7164log('cannot get iframe.contentWindow document: '+err); 7165} 7166if(doc){ 7167return doc; 7168} 7169try{ 7170doc=frame.contentDocument?frame.contentDocument:frame.document; 7171}catch(err){ 7172log('cannot get iframe.contentDocument: '+err); 7173doc=frame.document; 7174} 7175return doc; 7176} 7177var csrf_token=$('meta[name=csrf-token]').attr('content'); 7178var csrf_param=$('meta[name=csrf-param]').attr('content'); 7179if(csrf_param&&csrf_token){ 7180s.extraData=s.extraData||{}; 7181s.extraData[csrf_param]=csrf_token; 7182} 7183function doSubmit(){ 7184var t=$form.attr2('target'), 7185a=$form.attr2('action'), 7186mp='multipart/form-data', 7187et=$form.attr('enctype')||$form.attr('encoding')||mp; 7188form.setAttribute('target',id); 7189if(!method||/post/i.test(method)){ 7190form.setAttribute('method','POST'); 7191} 7192if(a!==s.url){ 7193form.setAttribute('action',s.url); 7194} 7195if(!s.skipEncodingOverride&&(!method||/post/i.test(method))){ 7196$form.attr({ 7197encoding:'multipart/form-data', 7198enctype:'multipart/form-data' 7199}); 7200} 7201if(s.timeout){ 7202timeoutHandle=setTimeout(function(){ 7203timedOut=true;cb(CLIENT_TIMEOUT_ABORT); 7204},s.timeout); 7205} 7206function checkState(){ 7207try{ 7208var state=getDoc(io).readyState; 7209log('state = '+state); 7210if(state&&state.toLowerCase()==='uninitialized'){ 7211setTimeout(checkState,50); 7212} 7213}catch(e){ 7214log('Server abort: ',e,' (',e.name,')'); 7215cb(SERVER_ABORT); 7216if(timeoutHandle){ 7217clearTimeout(timeoutHandle); 7218} 7219timeoutHandle=undefined; 7220} 7221} 7222var extraInputs=[]; 7223try{ 7224if(s.extraData){ 7225for(var n in s.extraData){ 7226if(s.extraData.hasOwnProperty(n)){ 7227if($.isPlainObject(s.extraData[n])&&s.extraData[n].hasOwnProperty('name')&&s.extraData[n].hasOwnProperty('value')){ 7228extraInputs.push( 7229$('<input type="hidden" name="'+s.extraData[n].name+'">',ownerDocument).val(s.extraData[n].value) 7230.appendTo(form)[0]); 7231}else{ 7232extraInputs.push( 7233$('<input type="hidden" name="'+n+'">',ownerDocument).val(s.extraData[n]) 7234.appendTo(form)[0]); 7235} 7236} 7237} 7238} 7239if(!s.iframeTarget){ 7240$io.appendTo($body); 7241} 7242if(io.attachEvent){ 7243io.attachEvent('onload',cb); 7244}else{ 7245io.addEventListener('load',cb,false); 7246} 7247setTimeout(checkState,15); 7248try{ 7249form.submit(); 7250}catch(err){ 7251var submitFn=document.createElement('form').submit; 7252submitFn.apply(form); 7253} 7254}finally{ 7255form.setAttribute('action',a); 7256form.setAttribute('enctype',et); 7257if(t){ 7258form.setAttribute('target',t); 7259}else{ 7260$form.removeAttr('target'); 7261} 7262$(extraInputs).remove(); 7263} 7264} 7265if(s.forceSync){ 7266doSubmit(); 7267}else{ 7268setTimeout(doSubmit,10); 7269} 7270var data,doc,domCheckCount=50,callbackProcessed; 7271function cb(e){ 7272if(xhr.aborted||callbackProcessed){ 7273return; 7274} 7275doc=getDoc(io); 7276if(!doc){ 7277log('cannot access response document'); 7278e=SERVER_ABORT; 7279} 7280if(e===CLIENT_TIMEOUT_ABORT&&xhr){ 7281xhr.abort('timeout'); 7282deferred.reject(xhr,'timeout'); 7283return; 7284} 7285if(e===SERVER_ABORT&&xhr){ 7286xhr.abort('server abort'); 7287deferred.reject(xhr,'error','server abort'); 7288return; 7289} 7290if(!doc||doc.location.href===s.iframeSrc){ 7291if(!timedOut){ 7292return; 7293} 7294} 7295if(io.detachEvent){ 7296io.detachEvent('onload',cb); 7297}else{ 7298io.removeEventListener('load',cb,false); 7299} 7300var status='success',errMsg; 7301try{ 7302if(timedOut){ 7303throw'timeout'; 7304} 7305var isXml=s.dataType==='xml'||doc.XMLDocument||$.isXMLDoc(doc); 7306log('isXml='+isXml); 7307if(!isXml&&window.opera&&(doc.body===null||!doc.body.innerHTML)){ 7308if(--domCheckCount){ 7309log('requeing onLoad callback, DOM not available'); 7310setTimeout(cb,250); 7311return; 7312} 7313} 7314var docRoot=doc.body?doc.body:doc.documentElement; 7315xhr.responseText=docRoot?docRoot.innerHTML:null; 7316xhr.responseXML=doc.XMLDocument?doc.XMLDocument:doc; 7317if(isXml){ 7318s.dataType='xml'; 7319} 7320xhr.getResponseHeader=function(header){ 7321var headers={'content-type':s.dataType}; 7322return headers[header.toLowerCase()]; 7323}; 7324if(docRoot){ 7325xhr.status=Number(docRoot.getAttribute('status'))||xhr.status; 7326xhr.statusText=docRoot.getAttribute('statusText')||xhr.statusText; 7327} 7328var dt=(s.dataType||'').toLowerCase(); 7329var scr=/(json|script|text)/.test(dt); 7330if(scr||s.textarea){ 7331var ta=doc.getElementsByTagName('textarea')[0]; 7332if(ta){ 7333xhr.responseText=ta.value; 7334xhr.status=Number(ta.getAttribute('status'))||xhr.status; 7335xhr.statusText=ta.getAttribute('statusText')||xhr.statusText; 7336}else if(scr){ 7337var pre=doc.getElementsByTagName('pre')[0]; 7338var b=doc.getElementsByTagName('body')[0]; 7339if(pre){ 7340xhr.responseText=pre.textContent?pre.textContent:pre.innerText; 7341}else if(b){ 7342xhr.responseText=b.textContent?b.textContent:b.innerText; 7343} 7344} 7345}else if(dt==='xml'&&!xhr.responseXML&&xhr.responseText){ 7346xhr.responseXML=toXml(xhr.responseText); 7347} 7348try{ 7349data=httpData(xhr,dt,s); 7350}catch(err){ 7351status='parsererror'; 7352xhr.error=errMsg=(err||status); 7353} 7354}catch(err){ 7355log('error caught: ',err); 7356status='error'; 7357xhr.error=errMsg=(err||status); 7358} 7359if(xhr.aborted){ 7360log('upload aborted'); 7361status=null; 7362} 7363if(xhr.status){ 7364status=((xhr.status>=200&&xhr.status<300)||xhr.status===304)?'success':'error'; 7365} 7366if(status==='success'){ 7367if(s.success){ 7368s.success.call(s.context,data,'success',xhr); 7369} 7370deferred.resolve(xhr.responseText,'success',xhr); 7371if(g){
7372$.event.trigger('ajaxSuccess',[xhr,s]); 7373} 7374}else if(status){ 7375if(typeof errMsg==='undefined'){ 7376errMsg=xhr.statusText; 7377} 7378if(s.error){ 7379s.error.call(s.context,xhr,status,errMsg); 7380} 7381deferred.reject(xhr,'error',errMsg); 7382if(g){ 7383$.event.trigger('ajaxError',[xhr,s,errMsg]); 7384} 7385} 7386if(g){ 7387$.event.trigger('ajaxComplete',[xhr,s]); 7388} 7389if(g&&!--$.active){ 7390$.event.trigger('ajaxStop'); 7391} 7392if(s.complete){ 7393s.complete.call(s.context,xhr,status); 7394} 7395callbackProcessed=true; 7396if(s.timeout){ 7397clearTimeout(timeoutHandle); 7398} 7399setTimeout(function(){ 7400if(!s.iframeTarget){ 7401$io.remove(); 7402}else{ 7403$io.attr('src',s.iframeSrc); 7404} 7405xhr.responseXML=null; 7406},100); 7407} 7408var toXml=$.parseXML||function(s,doc){ 7409if(window.ActiveXObject){ 7410doc=new ActiveXObject('Microsoft.XMLDOM'); 7411doc.async='false'; 7412doc.loadXML(s); 7413}else{ 7414doc=(new DOMParser()).parseFromString(s,'text/xml'); 7415} 7416return(doc&&doc.documentElement&&doc.documentElement.nodeName!=='parsererror')?doc:null; 7417}; 7418var parseJSON=$.parseJSON||function(s){ 7419window.console.error('jquery.parseJSON is undefined'); 7420return null; 7421}; 7422var httpData=function(xhr,type,s){ 7423var ct=xhr.getResponseHeader('content-type')||'', 7424xml=((type==='xml'||!type)&&ct.indexOf('xml')>=0), 7425data=xml?xhr.responseXML:xhr.responseText; 7426if(xml&&data.documentElement.nodeName==='parsererror'){ 7427if($.error){ 7428$.error('parsererror'); 7429} 7430} 7431if(s&&s.dataFilter){ 7432data=s.dataFilter(data,type); 7433} 7434if(typeof data==='string'){ 7435if((type==='json'||!type)&&ct.indexOf('json')>=0){ 7436data=parseJSON(data); 7437}else if((type==='script'||!type)&&ct.indexOf('javascript')>=0){ 7438$.globalEval(data); 7439} 7440} 7441return data; 7442}; 7443return deferred; 7444} 7445}; 7446$.fn.ajaxForm=function(options,data,dataType,onSuccess){ 7447if(typeof options==='string'||(options===false&&arguments.length>0)){ 7448options={ 7449'url':options, 7450'data':data, 7451'dataType':dataType 7452}; 7453if(typeof onSuccess==='function'){ 7454options.success=onSuccess; 7455} 7456} 7457options=options||{}; 7458options.delegation=options.delegation&&$.isFunction($.fn.on); 7459if(!options.delegation&&this.length===0){ 7460var o={s:this.selector,c:this.context}; 7461if(!$.isReady&&o.s){ 7462log('DOM not ready, queuing ajaxForm'); 7463$(function(){ 7464$(o.s,o.c).ajaxForm(options); 7465}); 7466return this; 7467} 7468log('terminating; zero elements found by selector'+($.isReady?'':' (DOM not ready)')); 7469return this; 7470} 7471if(options.delegation){ 7472$(document) 7473.off('submit.form-plugin',this.selector,doAjaxSubmit) 7474.off('click.form-plugin',this.selector,captureSubmittingElement) 7475.on('submit.form-plugin',this.selector,options,doAjaxSubmit) 7476.on('click.form-plugin',this.selector,options,captureSubmittingElement); 7477return this; 7478} 7479if(options.beforeFormUnbind){ 7480options.beforeFormUnbind(this,options); 7481} 7482return this.ajaxFormUnbind() 7483.on('submit.form-plugin',options,doAjaxSubmit) 7484.on('click.form-plugin',options,captureSubmittingElement); 7485}; 7486function doAjaxSubmit(e){ 7487var options=e.data; 7488if(!e.isDefaultPrevented()){ 7489e.preventDefault(); 7490$(e.target).closest('form').ajaxSubmit(options); 7491} 7492} 7493function captureSubmittingElement(e){ 7494var target=e.target; 7495var $el=$(target); 7496if(!$el.is('[type=submit],[type=image]')){ 7497var t=$el.closest('[type=submit]'); 7498if(t.length===0){ 7499return; 7500} 7501target=t[0]; 7502} 7503var form=target.form; 7504form.clk=target; 7505if(target.type==='image'){ 7506if(typeof e.offsetX!=='undefined'){ 7507form.clk_x=e.offsetX; 7508form.clk_y=e.offsetY; 7509}else if(typeof $.fn.offset==='function'){ 7510var offset=$el.offset(); 7511form.clk_x=e.pageX-offset.left; 7512form.clk_y=e.pageY-offset.top; 7513}else{ 7514form.clk_x=e.pageX-target.offsetLeft; 7515form.clk_y=e.pageY-target.offsetTop; 7516} 7517} 7518setTimeout(function(){ 7519form.clk=form.clk_x=form.clk_y=null; 7520},100); 7521} 7522$.fn.ajaxFormUnbind=function(){ 7523return this.off('submit.form-plugin click.form-plugin'); 7524}; 7525$.fn.formToArray=function(semantic,elements,filtering){ 7526var a=[]; 7527if(this.length===0){ 7528return a; 7529} 7530var form=this[0]; 7531var formId=this.attr('id'); 7532var els=(semantic||typeof form.elements==='undefined')?form.getElementsByTagName('*'):form.elements; 7533var els2; 7534if(els){ 7535els=$.makeArray(els); 7536} 7537if(formId&&(semantic||/(Edge|Trident)\//.test(navigator.userAgent))){ 7538els2=$(':input[form="'+formId+'"]').get(); 7539if(els2.length){ 7540els=(els||[]).concat(els2); 7541} 7542} 7543if(!els||!els.length){ 7544return a; 7545}
7546if($.isFunction(filtering)){ 7547els=$.map(els,filtering); 7548} 7549var i,j,n,v,el,max,jmax; 7550for(i=0,max=els.length;i<max;i++){ 7551el=els[i]; 7552n=el.name; 7553if(!n||el.disabled){ 7554continue; 7555} 7556if(semantic&&form.clk&&el.type==='image'){ 7557if(form.clk===el){ 7558a.push({name:n,value:$(el).val(),type:el.type}); 7559a.push({name:n+'.x',value:form.clk_x},{name:n+'.y',value:form.clk_y}); 7560} 7561continue; 7562} 7563v=$.fieldValue(el,true); 7564if(v&&v.constructor===Array){ 7565if(elements){ 7566elements.push(el); 7567} 7568for(j=0,jmax=v.length;j<jmax;j++){ 7569a.push({name:n,value:v[j]}); 7570} 7571}else if(feature.fileapi&&el.type==='file'){ 7572if(elements){ 7573elements.push(el); 7574} 7575var files=el.files; 7576if(files.length){ 7577for(j=0;j<files.length;j++){ 7578a.push({name:n,value:files[j],type:el.type}); 7579} 7580}else{ 7581a.push({name:n,value:'',type:el.type}); 7582} 7583}else if(v!==null&&typeof v!=='undefined'){ 7584if(elements){ 7585elements.push(el); 7586} 7587a.push({name:n,value:v,type:el.type,required:el.required}); 7588} 7589} 7590if(!semantic&&form.clk){ 7591var $input=$(form.clk),input=$input[0]; 7592n=input.name; 7593if(n&&!input.disabled&&input.type==='image'){ 7594a.push({name:n,value:$input.val()}); 7595a.push({name:n+'.x',value:form.clk_x},{name:n+'.y',value:form.clk_y}); 7596} 7597} 7598return a; 7599}; 7600$.fn.formSerialize=function(semantic){ 7601return $.param(this.formToArray(semantic)); 7602}; 7603$.fn.fieldSerialize=function(successful){ 7604var a=[]; 7605this.each(function(){ 7606var n=this.name; 7607if(!n){ 7608return; 7609} 7610var v=$.fieldValue(this,successful); 7611if(v&&v.constructor===Array){ 7612for(var i=0,max=v.length;i<max;i++){ 7613a.push({name:n,value:v[i]}); 7614} 7615}else if(v!==null&&typeof v!=='undefined'){ 7616a.push({name:this.name,value:v}); 7617} 7618}); 7619return $.param(a); 7620}; 7621$.fn.fieldValue=function(successful){ 7622for(var val=[],i=0,max=this.length;i<max;i++){ 7623var el=this[i]; 7624var v=$.fieldValue(el,successful); 7625if(v===null||typeof v==='undefined'||(v.constructor===Array&&!v.length)){ 7626continue; 7627} 7628if(v.constructor===Array){ 7629$.merge(val,v); 7630}else{ 7631val.push(v); 7632} 7633} 7634return val; 7635}; 7636$.fieldValue=function(el,successful){ 7637var n=el.name,t=el.type,tag=el.tagName.toLowerCase(); 7638if(typeof successful==='undefined'){ 7639successful=true; 7640} 7641if(successful&&(!n||el.disabled||t==='reset'||t==='button'|| 7642(t==='checkbox'||t==='radio')&&!el.checked|| 7643(t==='submit'||t==='image')&&el.form&&el.form.clk!==el|| 7644tag==='select'&&el.selectedIndex===-1)){ 7645return null; 7646} 7647if(tag==='select'){ 7648var index=el.selectedIndex; 7649if(index<0){ 7650return null; 7651} 7652var a=[],ops=el.options; 7653var one=(t==='select-one'); 7654var max=(one?index+1:ops.length); 7655for(var i=(one?index:0);i<max;i++){ 7656var op=ops[i]; 7657if(op.selected&&!op.disabled){ 7658var v=op.value; 7659if(!v){ 7660v=(op.attributes&&op.attributes.value&&!(op.attributes.value.specified))?op.text:op.value; 7661} 7662if(one){ 7663return v; 7664} 7665a.push(v); 7666} 7667} 7668return a; 7669} 7670return $(el).val().replace(rCRLF,'\r\n'); 7671}; 7672$.fn.clearForm=function(includeHidden){ 7673return this.each(function(){ 7674$('input,select,textarea',this).clearFields(includeHidden); 7675}); 7676}; 7677$.fn.clearFields=$.fn.clearInputs=function(includeHidden){ 7678var re=/^(?:color|date|datetime|email|month|number|password|range|search|tel|text|time|url|week)$/i; 7679return this.each(function(){ 7680var t=this.type,tag=this.tagName.toLowerCase(); 7681if(re.test(t)||tag==='textarea'){ 7682this.value=''; 7683}else if(t==='checkbox'||t==='radio'){ 7684this.checked=false; 7685}else if(tag==='select'){ 7686this.selectedIndex=-1; 7687}else if(t==='file'){ 7688if(/MSIE/.test(navigator.userAgent)){ 7689$(this).replaceWith($(this).clone(true)); 7690}else{ 7691$(this).val(''); 7692} 7693}else if(includeHidden){ 7694if((includeHidden===true&&/hidden/.test(t))|| 7695(typeof includeHidden==='string'&&$(this).is(includeHidden))){ 7696this.value=''; 7697} 7698} 7699}); 7700}; 7701$.fn.resetForm=function(){ 7702return this.each(function(){ 7703var el=$(this); 7704var tag=this.tagName.toLowerCase(); 7705switch(tag){ 7706case'input': 7707this.checked=this.defaultChecked; 7708case'textarea': 7709this.value=this.defaultValue; 7710return true; 7711case'option': 7712case'optgroup': 7713var select=el.parents('select'); 7714if(select.length&&select[0].multiple){ 7715if(tag==='option'){ 7716this.selected=this.defaultSelected; 7717}else{ 7718el.find('option').resetForm(); 7719} 7720}else{ 7721select.resetForm(); 7722} 7723return true; 7724case'select': 7725el.find('option').each(function(i){ 7726this.selected=this.defaultSelected; 7727if(this.defaultSelected&&!el[0].multiple){ 7728el[0].selectedIndex=i; 7729return false;
7730} 7731}); 7732return true; 7733case'label': 7734var forEl=$(el.attr('for')); 7735var list=el.find('input,select,textarea'); 7736if(forEl[0]){ 7737list.unshift(forEl[0]); 7738} 7739list.resetForm(); 7740return true; 7741case'form': 7742if(typeof this.reset==='function'||(typeof this.reset==='object'&&!this.reset.nodeType)){ 7743this.reset(); 7744} 7745return true; 7746default: 7747el.find('form,input,label,select,textarea').resetForm(); 7748return true; 7749} 7750}); 7751}; 7752$.fn.enable=function(b){ 7753if(typeof b==='undefined'){ 7754b=true; 7755} 7756return this.each(function(){ 7757this.disabled=!b; 7758}); 7759}; 7760$.fn.selected=function(select){ 7761if(typeof select==='undefined'){ 7762select=true; 7763} 7764return this.each(function(){ 7765var t=this.type; 7766if(t==='checkbox'||t==='radio'){ 7767this.checked=select; 7768}else if(this.tagName.toLowerCase()==='option'){ 7769var $sel=$(this).parent('select'); 7770if(select&&$sel[0]&&$sel[0].type==='select-one'){ 7771$sel.find('option').selected(false); 7772} 7773this.selected=select; 7774} 7775}); 7776}; 7777$.fn.ajaxSubmit.debug=false; 7778function log(){ 7779if(!$.fn.ajaxSubmit.debug){ 7780return; 7781} 7782var msg='[jquery.form] '+Array.prototype.join.call(arguments,''); 7783if(window.console&&window.console.log){ 7784window.console.log(msg); 7785}else if(window.opera&&window.opera.postError){ 7786window.opera.postError(msg); 7787} 7788} 7789})); 7790 7791 7792/* prive/javascript/jquery.autosave.js?1788356716 */ 7793 7794(function($){ 7795$.fn.autosave=function(opt){ 7796opt=$.extend({ 7797url:window.location, 7798confirm:false, 7799confirmstring:'Sauvegarder ?' 7800},opt); 7801var save_changed=function(){ 7802$('form.autosavechanged') 7803.each(function(){ 7804if(!opt.confirm||confirm(opt.confirmstring)){ 7805var contenu=$(this).serialize(); 7806var d=new Date(); 7807contenu=contenu+"&__timestamp="+Math.round(d.getTime()/1000); 7808$.post(opt.url,{ 7809'action':'session', 7810'var':'autosave_'+$('input[name=autosave]',this).val(), 7811'val':contenu 7812}); 7813} 7814}).removeClass('autosavechanged'); 7815}; 7816$(window).on('unload',save_changed); 7817return this 7818.on('keyup',function(){ 7819$(this).addClass('autosavechanged'); 7820}) 7821.on('change',function(){ 7822$(this).addClass('autosavechanged'); 7823save_changed(); 7824}) 7825.on('submit',function(){ 7826save_changed(); 7827}); 7828}; 7829})(jQuery); 7830 7831 7832/* prive/javascript/jquery.placeholder-label.js?1788356716 */ 7833 7834(function($){
7835$.placeholderLabel={ 7836placeholder_class:null, 7837add_placeholder:function(){ 7838if($(this).val()==$(this).attr('placeholder')){ 7839$(this).val('').removeClass($.placeholderLabel.placeholder_class); 7840} 7841}, 7842remove_placeholder:function(){ 7843if($(this).val()==''){ 7844$(this).val($(this).attr('placeholder')).addClass($.placeholderLabel.placeholder_class); 7845} 7846}, 7847disable_placeholder_fields:function(){ 7848$(this).find("input[placeholder]").each(function(){ 7849if($(this).val()==$(this).attr('placeholder')){ 7850$(this).val(''); 7851} 7852}); 7853return true; 7854} 7855}; 7856$.fn.placeholderLabel=function(options){ 7857var dummy=document.createElement('input'); 7858if(dummy.placeholder!=undefined){ 7859return this; 7860} 7861var config={ 7862placeholder_class:'placeholder' 7863}; 7864if(options)$.extend(config,options); 7865$.placeholderLabel.placeholder_class=config.placeholder_class; 7866this.each(function(){ 7867var input=$(this); 7868input.focus($.placeholderLabel.add_placeholder); 7869input.blur($.placeholderLabel.remove_placeholder); 7870input.triggerHandler('focus'); 7871input.triggerHandler('blur'); 7872$(this.form).submit($.placeholderL
7872abel.disable_placeholder_fields); 7873}); 7874return this; 7875} 7876})(jQuery); 7877 7878 7879/* prive/javascript/ajaxCallback.js?1788356716 */ 7880jQuery.spip=jQuery.spip||{}; 7881jQuery.spip.log=function(){ 7882if(jQuery.spip.debug&&window.console&&window.console.log) 7883window.console.log.apply(this,arguments); 7884} 7885jQuery.spip.test_espace_prive=function(){ 7886if(typeof spipConfig.core.test_espace_prive!=undefined&&spipConfig.core.test_espace_prive){ 7887return true; 7888} 7889return false; 7890} 7891if(!jQuery.spip.load_handlers){ 7892jQuery.spip.load_handlers=new Array(); 7893function onAjaxLoad(f){ 7894jQuery.spip.load_handlers.push(f); 7895}; 7896jQuery.spip.triggerAjaxLoad=function(root){ 7897jQuery.spip.log('triggerAjaxLoad'); 7898jQuery.spip.log(root); 7899for(var i=0;i<jQuery.spip.load_handlers.length;i++) 7900jQuery.spip.load_handlers[i].apply(root); 7901}; 7902jQuery.spip.intercepted={}; 7903jQuery.spip.intercepted.load=jQuery.fn.load; 7904jQuery.fn.load=function(url,params,callback){ 7905if(typeof url!=="string"){ 7906return jQuery.spip.intercepted.load.apply(this,arguments); 7907} 7908callback=callback||function(){}; 7909if(params){ 7910if(params.constructor==Function){ 7911callback=params; 7912params=null; 7913} 7914} 7915params=jQuery.extend(params,{triggerAjaxLoad:false}); 7916var callback2=function(){jQuery.spip.log('jQuery.load');jQuery.spip.triggerAjaxLoad(this);callback.apply(this,arguments);}; 7917return jQuery.spip.intercepted.load.apply(this,[url,params,callback2]); 7918}; 7919jQuery.spip.intercepted.ajaxSubmit=jQuery.fn.ajaxSubmit; 7920jQuery.fn.ajaxSubmit=function(options){ 7921options=options||{}; 7922if(typeof options.onAjaxLoad=="undefined"||options.onAjaxLoad!=false){ 7923var me=jQuery(this).parents('div.ajax'); 7924if(me.length) 7925me=me.parent(); 7926else 7927me=document; 7928if(typeof options=='function') 7929options={success:options}; 7930var callback=options.success||function(){}; 7931options.success=function(){callback.apply(this,arguments);jQuery.spip.log('jQuery.ajaxSubmit');jQuery.spip.triggerAjaxLoad(me);} 7932} 7933return jQuery.spip.intercepted.ajaxSubmit.apply(this,[options]); 7934} 7935jQuery.spip.intercepted.ajax=jQuery.ajax; 7936jQuery.ajax=function(url,settings){ 7937if(typeof settings=='undefined'){ 7938settings={}; 7939if(typeof url=='object'){ 7940settings=url; 7941url=null; 7942} 7943} 7944if(typeof url=='string'){ 7945settings['url']=url; 7946} 7947if(settings.data&&settings.data['triggerAjaxLoad']===false){ 7948settings.data['triggerAjaxLoad']=null; 7949return jQuery.spip.intercepted.ajax(settings); 7950} 7951var s=jQuery.extend(true,{},jQuery.ajaxSettings,settings); 7952var callbackContext=s.context||s; 7953try{ 7954if(jQuery.ajax.caller==jQuery.spip.intercepted.load||jQuery.ajax.caller==jQuery.spip.intercepted.ajaxSubmit) 7955return jQuery.spip.intercepted.ajax(settings); 7956} 7957catch(err){} 7958var orig_complete=s.complete||function(){}; 7959settings.complete=function(res,status){
7960var dataType=settings.dataType; 7961var ct=(res&&(typeof res.getResponseHeader=='function')) 7962?res.getResponseHeader("content-type"):''; 7963var xml=!dataType&&ct&&ct.indexOf("xml")>=0; 7964orig_complete.call(callbackContext,res,status); 7965if((!dataType&&!xml)||dataType=="html"){ 7966jQuery.spip.log('jQuery.ajax'); 7967if(typeof s.onAjaxLoad=="undefined"||s.onAjaxLoad!=false) 7968jQuery.spip.triggerAjaxLoad(s.ajaxTarget?s.ajaxTarget:document); 7969} 7970}; 7971return jQuery.spip.intercepted.ajax(settings); 7972}; 7973} 7974jQuery.uaMatch=function(ua){ 7975ua=ua.toLowerCase(); 7976var match=/(chrome)[ \/]([\w.]+)/.exec(ua)||/(webkit)[ \/]([\w.]+)/.exec(ua)||/(opera)(?:.*version|)[ \/]([\w.]+)/.exec(ua)||/(msie) ([\w.]+)/.exec(ua)|| 7977ua.indexOf("compatible")<0&&/(mozilla)(?:.*? rv:([\w.]+)|)/.exec(ua)|| 7978[]; 7979return{ 7980browser:match[1]||"", 7981version:match[2]||"0" 7982}; 7983}; 7984if(!jQuery.browser){ 7985matched=jQuery.uaMatch(navigator.userAgent); 7986browser={}; 7987if(matched.browser){ 7988browser[matched.browser]=true; 7989browser.version=matched.version; 7990} 7991if(browser.chrome){ 7992browser.webkit=true; 7993}else if(browser.webkit){ 7994browser.safari=true; 7995} 7996jQuery.browser=browser; 7997} 7998jQuery.getScript=function(url,callback){ 7999return $.ajax({ 8000url:url, 8001dataType:"script", 8002success:callback, 8003cache:true 8004}); 8005} 8006jQuery.fn.positionner=function(force,setfocus){ 8007if(!this.length){ 8008return this; 8009} 8010var offset=jQuery(this).offset(); 8011var hauteur=parseInt(jQuery(this).css('height')); 8012var marge=jQuery.spip.positionner_marge||5; 8013var scrolltop=self['pageYOffset']|| 8014jQuery.boxModel&&document.documentElement['scrollTop']|| 8015document.body['scrollTop']; 8016var h=jQuery(window).height(); 8017var scroll=0; 8018if(force||(offset&&offset['top']-marge<=scrolltop)){ 8019scroll=offset['top']-marge; 8020} 8021else if(offset&&offset['top']+hauteur-h+marge>scrolltop){ 8022scroll=Math.min(offset['top']-marge-15,offset['top']+hauteur-h+40); 8023} 8024if(scroll) 8025jQuery('html,body') 8026.animate({scrollTop:scroll},300); 8027if(setfocus!==false) 8028jQuery(jQuery('*',this).filter('input[type=text],textarea')[0]).focus(); 8029return this; 8030} 8031jQuery.spip.virtualbuffer_id='spip_virtualbufferupdate'; 8032jQuery.spip.initReaderBuffer=function(){ 8033if(jQuery('#'+jQuery.spip.virtualbuffer_id).length)return; 8034jQuery('body').append('<div style="float:left;width:0;height:0;position:absolute;left:-5000px;top:-5000px;"><input type="hidden" name="'+jQuery.spip.virtualbuffer_id+'" id="'+jQuery.spip.virtualbuffer_id+'" value="0"></div>'); 8035} 8036jQuery.spip.updateReaderBuffer=function(){ 8037var i=jQuery('#'+jQuery.spip.virtualbuffer_id); 8038if(!i.length)return; 8039i.val(parseInt(i.val())+1); 8040} 8041jQuery.fn.formulaire_setContainer=function(){ 8042if(!this.closest('.ajax-form-container').length){ 8043this.find('script').remove(); 8044var aria=this.data('aria'); 8045var $container=jQuery('<div class="ajax-form-container"></div>'); 8046if(aria&&typeof aria==='object'){ 8047for(var i in aria){ 8048$container=$container.attr(i,aria[i]); 8049} 8050} 8051else{ 8052aria=false; 8053} 8054this.wrap($container); 8055if(aria){ 8056jQuery('form',this).not('[aria-live]').attr('aria-live','off'); 8057} 8058} 8059return this; 8060} 8061jQuery.fn.formulaire_dyn_ajax=function(target){ 8062if(this.length) 8063jQuery.spip.initReaderBuffer(); 8064return this.each(function(){ 8065var scrollwhensubmit=!jQuery(this).is('.noscroll'); 8066var cible=target||this; 8067jQuery(cible).formulaire_setContainer(); 8068jQuery('form:not(.noajax):not(.bouton_action_post)',this).each(function(){ 8069var leform=this; 8070var leclk,leclk_x,leclk_y; 8071var onError=function(xhr,status,error,$form){
8072jQuery(leform).ajaxFormUnbind().find('input[name="var_ajax"]').remove(); 8073var msg="Erreur"; 8074if(typeof(error_on_ajaxform)!=="undefined")msg=error_on_ajaxform; 8075jQuery(leform).prepend("<p class='error ajax-error none'>"+msg+"</p>").find('.ajax-error').show('fast'); 8076jQuery(cible).closest('.ajax-form-container').endLoading(true); 8077} 8078jQuery(this).prepend("<input type='hidden' name='var_ajax' value='form'>") 8079.ajaxForm({ 8080beforeSubmit:function(){ 8081leclk=leform.clk; 8082var scrollwhensubmit_button=true; 8083if(leclk){ 8084scrollwhensubmit_button=!jQuery(leclk).is('.noscroll'); 8085var n=leclk.name; 8086if(n&&!leclk.disabled&&leclk.type==="image"){ 8087leclk_x=leform.clk_x; 8088leclk_y=leform.clk_y; 8089} 8090} 8091jQuery(cible).wrap('<div />'); 8092cible=jQuery(cible).parent(); 8093jQuery(cible).closest('.ajax-form-container').animateLoading(); 8094if(scrollwhensubmit&&scrollwhensubmit_button){ 8095jQuery(cible).positionner(false,false); 8096} 8097}, 8098error:onError, 8099success:function(c,status,xhr,$form){ 8100if(c.match(/^\s*noajax\s*$/)){ 8101jQuery("input[name=var_ajax]",leform).remove(); 8102if(leclk){ 8103var n=leclk.name; 8104if(n&&!leclk.disabled){ 8105jQuery(leform).prepend("<input type='hidden' name='"+n+"' value='"+leclk.value+"'>"); 8106if(leclk.type==="image"){ 8107jQuery(leform).prepend("<input type='hidden' name='"+n+".x' value='"+leform.clk_x+"'>"); 8108jQuery(leform).prepend("<input type='hidden' name='"+n+".y' value='"+leform.clk_y+"'>"); 8109} 8110} 8111}
8112jQuery(leform).ajaxFormUnbind().closest('.formulaire_spip').addClass('resubmit-noajax'); 8113try{ 8114leform.submit(); 8115}catch(err){ 8116var submitFn=document.createElement('form').submit; 8117submitFn.apply(leform); 8118} 8119} 8120else{ 8121if(!c.length||c.indexOf("ajax-form-is-ok")==-1) 8122return onError.apply(this,[status,xhr,$form]); 8123var preloaded=jQuery.spip.preloaded_urls; 8124jQuery.spip.preloaded_urls={}; 8125jQuery(cible).html(c); 8126var a=jQuery('a:first',cible).eq(0); 8127var d=jQuery('div.ajax',cible); 8128if(!d.length){ 8129jQuery(cible).addClass('ajax'); 8130if(!scrollwhensubmit) 8131jQuery(cible).addClass('noscroll'); 8132} 8133else{ 8134d.siblings('br.bugajaxie').remove(); 8135cible=jQuery(":first",cible); 8136cible.unwrap(); 8137} 8138if(a.length 8139&&a.is('a[name=ajax_ancre]') 8140&&jQuery(a.attr('href'),cible).length){ 8141a=a.attr('href'); 8142if(jQuery(a,cible).length) 8143setTimeout(function(){ 8144jQuery(a,cible).positionner(false); 8145},10); 8146jQuery(cible).closest('.ajax-form-container').endLoading(true); 8147} 8148else{ 8149if(a.length&&a.is('a[name=ajax_redirect]')){ 8150a=a.get(0).href; 8151setTimeout(function(){ 8152var cur=window.location.href.split('#'); 8153document.location.replace(a); 8154if(cur[0]==a.split('#')[0]){ 8155window.location.reload(); 8156} 8157},10); 8158jQuery(cible).closest('.ajax-form-container').animateLoading(); 8159} 8160else{ 8161jQuery(cible).closest('.ajax-form-container').endLoading(true); 8162} 8163} 8164if(!jQuery('.reponse_formulaire_ok',cible).length) 8165jQuery.spip.preloaded_urls=preloaded; 8166jQuery.spip.updateReaderBuffer(); 8167} 8168} 8169}) 8170.addClass('noajax hasajax'); 8171}); 8172}); 8173} 8174jQuery.fn.formulaire_verifier=function(callback,champ){ 8175var erreurs={'message_erreur':'form non ajax'}; 8176var me=this; 8177if(jQuery(me).closest('.ajax-form-container').attr('aria-busy')!='true'){ 8178if(jQuery(me).is('form.hasajax')){ 8179jQuery(me).ajaxSubmit({ 8180dataType:"json", 8181data:{formulaire_action_verifier_json:true}, 8182success:function(errs){ 8183var args=[errs,champ] 8184if(jQuery(me).closest('.ajax-form-container').attr('aria-busy')!='true') 8185callback.apply(me,args); 8186} 8187}); 8188} 8189else 8190callback.apply(me,[erreurs,champ]); 8191} 8192return this; 8193} 8194jQuery.fn.formulaire_activer_verif_auto=function(callback){ 8195callback=callback||formulaire_actualiser_erreurs; 8196var me=jQuery(this).closest('.ajax-form-container'); 8197var check=function(){ 8198var name=jQuery(this).attr('name'); 8199setTimeout(function(){me.find('form').formulaire_verifier(callback,name);},50); 8200} 8201var activer=function(){ 8202if(me.find('form').attr('data-verifjson')!='on'){ 8203me 8204.find('form') 8205.attr('data-verifjson','on') 8206.find('input,select,textarea') 8207.on('change',check); 8208} 8209} 8210jQuery(activer); 8211onAjaxLoad(function(){setTimeout(activer,150);}); 8212} 8213function formulaire_actualiser_erreurs(erreurs){ 8214var parent=jQuery(this).closest('.formulaire_spip'); 8215if(!parent.length)return; 8216parent.find('.reponse_formulaire,.erreur_message').fadeOut().remove(); 8217parent.find('.erreur').removeClass('erreur'); 8218if(erreurs['message_ok']) 8219parent.find('form').before('<p class="reponse_formulaire reponse_formulaire_ok">'+erreurs['message_ok']+'</p>'); 8220if(erreurs['message_erreur']) 8221parent.find('form').before('<p class="reponse_formulaire reponse_formulaire_erreur">'+erreurs['message_erreur']+'</p>'); 8222for(var k in erreurs){ 8223var saisie=parent.find('.editer_'+k); 8224if(saisie.length){ 8225saisie.addClass('erreur'); 8226saisie.find('label').after('<span class="erreur_message">'+erreurs[k]+'</span>'); 8227} 8228} 8229} 8230var ajax_confirm=true; 8231var ajax_confirm_date=0; 8232var spip_confirm=window.confirm; 8233function _confirm(message){ 8234ajax_confirm=spip_confirm(message); 8235if(!ajax_confirm){ 8236var d=new Date(); 8237ajax_confirm_date=d.getTime(); 8238} 8239return ajax_confirm; 8240} 8241window.confirm=_confirm; 8242var ajaxbloc_selecteur; 8243jQuery.spip.preloaded_urls={}; 8244jQuery.spip.on_ajax_loaded=function(blocfrag,c,href,history){ 8245history=history||(history==null); 8246if(typeof href==undefined||href==null) 8247history=false; 8248if(history) 8249jQuery.spip.setHistoryState(blocfrag); 8250if(jQuery(blocfrag).attr('data-loaded-callback')){ 8251var callback=eval(jQuery(blocfrag).attr('data-loaded-callback')); 8252callback.call(blocfrag,c,href,history); 8253} 8254else{ 8255jQuery(blocfrag) 8256.html(c) 8257.endLoading(); 8258} 8259if(typeof href!=undefined) 8260jQuery(blocfrag).attr('data-url',href); 8261if(history){ 8262var href_history=href; 8263if(href_history.indexOf('var_nullify')!==-1){ 8264href_history=parametre_url(href_history,'var_nullify',''); 8265} 8266jQuery.spip.pushHistoryState(href_history); 8267jQuery.spip.setHistoryState(blocfrag); 8268} 8269var a=jQuery('a:first',jQuery(blocfrag)).eq(0); 8270if(a.length 8271&&a.is('a[name=ajax_ancre]') 8272&&jQuery(a.attr('href'),blocfrag).length){ 8273a=a.attr('href'); 8274jQuery(a,blocfrag).positionner(false); 8275} 8276jQuery.spip.log('on_ajax_loaded'); 8277jQuery.spip.triggerAjaxLoad(blocfrag); 8278a=jQuery(blocfrag).parents('form.hasajax') 8279if(a.length) 8280a.eq(0).removeClass('noajax').parents('div.ajax').formulaire_dyn_ajax(); 8281jQuery.spip.updateReaderBuffer(); 8282} 8283jQuery.spip.on_ajax_failed=function(blocfrag,statusCode,href,history){ 8284jQuery(blocfrag).addClass('invalid'); 8285jQuery.spip.log("Echec AJAX statusCode "+statusCode) 8286history=history||(history==null); 8287if(history){ 8288if(jQuery.spip.debug){ 8289jQuery.spip.log("On redirige sur sur "+href) 8290} 8291else{ 8292window.location.href=href; 8293} 8294} 8295} 8296jQuery.spip.stateId=0; 8297jQuery.spip.setHistoryState=function(blocfrag){ 8298if(!window.history.replaceState)return; 8299if(!blocfrag.attr('id')){ 8300while(jQuery('#ghsid'+jQuery.spip.stateId).length) 8301jQuery.spip.stateId++; 8302blocfrag.attr('id','ghsid'+jQuery.spip.stateId); 8303} 8304var href=blocfrag.attr('data-url')||blocfrag.attr('data-origin'); 8305href=jQuery("<"+"a href='"+href+"'></a>").get(0).href; 8306var state={ 8307id:blocfrag.attr('id'), 8308href:href 8309}; 8310var ajaxid=blocfrag.attr('class').match(/\bajax-id-[\w-]+\b/); 8311if(ajaxid&&ajaxid.length) 8312state["ajaxid"]=ajaxid[0]; 8313window.history.replaceState(state,window.document.title,window.document.location); 8314} 8315jQuery.spip.pushHistoryState=function(href,title){ 8316if(!window.history.pushState) 8317return false;
8318window.history.pushState({},title,href); 8319} 8320window.onpopstate=function(popState){ 8321if(popState.state&&popState.state.href){ 8322var blocfrag=false; 8323if(popState.state.id){ 8324blocfrag=jQuery('#'+popState.state.id); 8325} 8326if((!blocfrag||!blocfrag.length)&&popState.state.ajaxid){ 8327blocfrag=jQuery('.ajaxbloc.'+popState.state.ajaxid); 8328} 8329if(blocfrag&&blocfrag.length==1){ 8330jQuery.spip.ajaxClick(blocfrag,popState.state.href,{history:false}); 8331return true; 8332} 8333else{ 8334window.location.href=popState.state.href; 8335} 8336} 8337} 8338jQuery.spip.loadAjax=function(blocfrag,url,href,options){ 8339var force=options.force||false; 8340if(jQuery(blocfrag).attr('data-loading-callback')){ 8341var callback=eval(jQuery(blocfrag).attr('data-loading-callback')); 8342callback.call(blocfrag,url,href,options); 8343} 8344else{ 8345jQuery(blocfrag).animateLoading(); 8346} 8347if(jQuery.spip.preloaded_urls[url]&&!force){ 8348if(jQuery.spip.preloaded_urls[url]=="<!--loading-->"){ 8349setTimeout(function(){jQuery.spip.loadAjax(blocfrag,url,href,options);},100); 8350return; 8351} 8352jQuery.spip.on_ajax_loaded(blocfrag,jQuery.spip.preloaded_urls[url],href,options.history); 8353}else{ 8354var d=new Date(); 8355jQuery.spip.preloaded_urls[url]="<!--loading-->"; 8356jQuery.ajax({ 8357url:parametre_url(url,'var_t',d.getTime()), 8358onAjaxLoad:false, 8359success:function(c){ 8360jQuery.spip.on_ajax_loaded(blocfrag,c,href,options.history); 8361jQuery.spip.preloaded_urls[url]=c; 8362if(options.callback&&typeof options.callback=="function") 8363options.callback.apply(blocfrag); 8364}, 8365error:function(e){ 8366jQuery.spip.preloaded_urls[url]=''; 8367jQuery.spip.on_ajax_failed(blocfrag,e.status,href,options.history); 8368} 8369}); 8370} 8371} 8372jQuery.spip.makeAjaxUrl=function(href,ajax_env,origin){ 8373var url=href.split('#'); 8374url[0]=parametre_url(url[0],'var_ajax',1); 8375url[0]=parametre_url(url[0],'var_ajax_env',ajax_env); 8376if(origin){ 8377if(origin.indexOf('var_nullify')!==-1){ 8378origin=parametre_url(origin,'var_nullify',''); 8379} 8380var p=origin.indexOf('?'); 8381var nullify=[]; 8382if(p!==-1){ 8383var args=origin.substring(p+1).split('&'); 8384var val; 8385var arg; 8386for(var n=0;n<args.length;n++){ 8387arg=args[n].split('='); 8388arg=decodeURIComponent(arg[0]); 8389p=arg.indexOf('['); 8390if(p!==-1) 8391arg=arg.substring(0,p); 8392val=parametre_url(href,arg); 8393if((typeof val=="undefined"||val==null)&&nullify.indexOf(arg)===-1){ 8394nullify.push(arg); 8395} 8396} 8397if(nullify.length){ 8398url[0]=url[0]+'&'+'var_nullify='+encodeURIComponent(nullify.join('|')); 8399} 8400} 8401} 8402if(url[1]) 8403url[0]=parametre_url(url[0],'var_ajax_ancre',url[1]); 8404return url[0]; 8405} 8406jQuery.spip.ajaxReload=function(blocfrag,options){ 8407var ajax_env=blocfrag.attr('data-ajax-env'); 8408if(!ajax_env||ajax_env==undefined)return; 8409var href=options.href||blocfrag.attr('data-url')||blocfrag.attr('data-origin'); 8410if(href&&typeof href!=undefined){ 8411if(href.indexOf('var_nullify')!==-1){ 8412href=parametre_url(href,'var_nullify',''); 8413} 8414options=options||{}; 8415var callback=options.callback||null; 8416var history=options.history||false; 8417var args=options.args||{}; 8418for(var key in args){ 8419href=parametre_url(href,key,args[key]==undefined?'':args[key],'&',args[key]==undefined?false:true); 8420} 8421var url=jQuery.spip.makeAjaxUrl(href,ajax_env,blocfrag.attr('data-origin')); 8422jQuery.spip.loadAjax(blocfrag,url,href,{force:true,callback:callback,history:history}); 8423return true; 8424} 8425} 8426jQuery.spip.ajaxClick=function(blocfrag,href,options){ 8427var ajax_env=blocfrag.attr('data-ajax-env'); 8428if(!ajax_env||ajax_env==undefined)return; 8429if(!ajax_confirm){ 8430ajax_confirm=true; 8431var d=new Date(); 8432if((d.getTime()-ajax_confirm_date)<=2) 8433return false; 8434} 8435var url=jQuery.spip.makeAjaxUrl(href,ajax_env,blocfrag.attr('data-origin')); 8436jQuery.spip.loadAjax(blocfrag,url,href,options); 8437return false; 8438} 8439jQuery.fn.ajaxbloc=function(){ 8440if(this.length) 8441jQuery.spip.initReaderBuffer(); 8442if(ajaxbloc_selecteur==undefined) 8443ajaxbloc_selecteur='.pagination a,a.ajax'; 8444return this.each(function(){ 8445jQuery('div.ajaxbloc',this).ajaxbloc(); 8446var blocfrag=jQuery(this); 8447var ajax_env=blocfrag.attr('data-ajax-env'); 8448if(!ajax_env||ajax_env==undefined)return; 8449blocfrag.not('.bind-ajaxReload').on('ajaxReload',function(event,options){ 8450if(jQuery.spip.ajaxReload(blocfrag,options)) 8451event.stopPropagation(); 8452}).addClass('bind-ajaxReload'); 8453jQuery(ajaxbloc_selecteur,this).not('.noajax,.bind-ajax') 8454.click(function(){return jQuery.spip.ajaxClick(blocfrag,this.href,{force:jQuery(this).is('.nocache'),history:!(jQuery(this).is('.nohistory')||jQuery(this).closest('.box_modalbox').length)});}) 8455.addClass('bind-ajax') 8456.filter('.preload').each(function(){ 8457var href=this.href; 8458var url=jQuery.spip.makeAjaxUrl(href,ajax_env,blocfrag.attr('data-origin')); 8459if(!jQuery.spip.preloaded_urls[url]){ 8460jQuery.spip.preloaded_urls[url]='<!--loading-->'; 8461jQuery.ajax({url:url,onAjaxLoad:false,success:function(r){jQuery.spip.preloaded_urls[url]=r;},error:function(){jQuery.spip.preloaded_urls[url]='';}}); 8462} 8463}); 8464jQuery('form.bouton_action_post.ajax',this).not('.noajax,.bind-ajax').each(function(){ 8465var leform=this; 8466var url=jQuery(this).attr('action').split('#'); 8467var scrollwhensubmit=(!jQuery(this).is('.noscroll')&&!jQuery('.submit',this).is('.noscroll')); 8468jQuery(this) 8469.prepend("<input type='hidden' name='var_ajax' value='1'><input type='hidden' name='var_ajax_env' value='"+(ajax_env)+"'>"+(url[1]?"<input type='hidden' name='var_ajax_ancre' value='"+url[1]+"'>":"")) 8470.ajaxForm({ 8471beforeSubmit:function(){ 8472jQuery(blocfrag).animateLoading(); 8473if(scrollwhensubmit){ 8474jQuery(blocfrag).positionner(false); 8475} 8476}, 8477onAjaxLoad:false, 8478success:function(c){ 8479jQuery.spip.on_ajax_loaded(blocfrag,c); 8480jQuery.spip.preloaded_urls={}; 8481}, 8482error:function(e){ 8483jQuery.spip.preloaded_urls={}; 8484var href=parametre_url(url,'redirect'); 8485if(!href){ 8486href=window.location.href; 8487} 8488jQuery.spip.on_ajax_failed(blocfrag,e.status,href,e.status===400); 8489} 8490}) 8491.addClass('bind-ajax'); 8492}); 8493}); 8494}; 8495jQuery.fn.followLink=function(){ 8496$(this).click(); 8497if(!$(this).is('.bind-ajax')) 8498window.location.href=$(this).get(0).href; 8499return this; 8500} 8501function ajaxReload(ajaxid,options){ 8502jQuery('div.ajaxbloc.ajax-id-'+ajaxid).ajaxReload(options); 8503} 8504jQuery.fn.ajaxReload=function(options){ 8505options=options||{};
8506jQuery(this).trigger('ajaxReload',[options]); 8507return this; 8508} 8509jQuery.fn.animateLoading=function(){ 8510this.attr('aria-busy','true').addClass('loading').children().css('opacity',0.5); 8511if(typeof ajax_image_searching!='undefined'){ 8512var i=(this).find('.image_loading'); 8513if(i.length)i.eq(0).html(ajax_image_searching); 8514else this.prepend('<span class="image_loading">'+ajax_image_searching+'</span>'); 8515} 8516return this; 8517} 8518jQuery.fn.animeajax=jQuery.fn.animateLoading; 8519jQuery.fn.endLoading=function(hard){ 8520hard=hard||false; 8521this.attr('aria-busy','false').removeClass('loading'); 8522if(hard){ 8523this.children().css('opacity',''); 8524this.find('.image_loading').html(''); 8525} 8526return this; 8527} 8528jQuery.fn.animateRemove=function(callback){ 8529if(this.length){ 8530var me=this; 8531var color=$("<div class='remove'></div>").css('background-color'); 8532var sel=$(this); 8533if(sel.is('tr')) 8534sel=sel.add('>td',sel); 8535sel.addClass('remove').css({backgroundColor:color}).animate({opacity:"0.0"},'fast',function(){ 8536sel.removeClass('remove').css({backgroundColor:''}); 8537if(callback) 8538callback.apply(me); 8539}); 8540} 8541return this; 8542} 8543jQuery.fn.animateAppend=function(callback){ 8544if(this.length){ 8545var me=this; 8546var color=$("<div class='append'></div>").css('background-color'); 8547var origin=$(this).css('background-color')||'#ffffff'; 8548if(origin=='transparent')origin='#ffffff'; 8549var sel=$(this); 8550if(sel.is('tr')) 8551sel=sel.add('>td',sel); 8552sel.css('opacity','0.0').addClass('append').css({backgroundColor:color}).animate({opacity:"1.0"},1000,function(){ 8553sel.animate({backgroundColor:origin},3000,function(){ 8554sel.removeClass('append').css({backgroundColor:''}); 8555if(callback) 8556callback.apply(me); 8557}); 8558}); 8559} 8560return this; 8561} 8562function parametre_url(url,c,v,sep,force_vide){ 8563if(typeof(url)=='undefined'){ 8564url=''; 8565} 8566var p; 8567var ancre=''; 8568var a='./'; 8569var args=[]; 8570p=url.indexOf('#'); 8571if(p!=-1){ 8572ancre=url.substring(p); 8573url=url.substring(0,p); 8574} 8575p=url.indexOf('?'); 8576if(p!==-1){ 8577if(p>0)a=url.substring(0,p); 8578args=url.substring(p+1).split('&'); 8579} 8580else 8581a=url; 8582var regexp=new RegExp('^('+c.replace('[]','\\[\\]')+'\\[?\\]?)(=.*)?$'); 8583var ajouts=[]; 8584var u=(typeof(v)!=='object')?encodeURIComponent(v):v; 8585var na=[]; 8586var v_read=null; 8587for(var n=0;n<args.length;n++){ 8588var val=args[n]; 8589try{ 8590val=decodeURIComponent(val); 8591}catch(e){} 8592var r=val.match(regexp); 8593if(r&&r.length){ 8594if(v==null){ 8595if(r[1].substr(-2)=='[]'){ 8596if(!v_read)v_read=[]; 8597v_read.push((r.length>2&&typeof r[2]!=='undefined')?r[2].substring(1):''); 8598} 8599else{ 8600return(r.length>2&&typeof r[2]!=='undefined')?r[2].substring(1):''; 8601} 8602} 8603else if(!v.length){ 8604} 8605else if(r[1].substr(-2)!='[]'){ 8606na.push(r[1]+'='+u); 8607ajouts.push(r[1]); 8608} 8609} 8610else 8611na.push(args[n]); 8612} 8613if(v==null)return v_read; 8614if(v||v.length||force_vide){ 8615ajouts="="+ajouts.join("=")+"="; 8616var all=c.split('|'); 8617for(n=0;n<all.length;n++){ 8618if(ajouts.search("="+all[n]+"=")==-1){ 8619if(typeof(v)!=='object'){ 8620na.push(all[n]+'='+u); 8621} 8622else{ 8623var id=((all[n].substring(-2)=='[]')?all[n]:all[n]+"[]"); 8624for(p=0;p<v.length;p++) 8625na.push(id+'='+encodeURIComponent(v[p])); 8626} 8627} 8628} 8629} 8630if(na.length){ 8631if(!sep)sep='&'; 8632a=a+"?"+na.join(sep); 8633} 8634return a+ancre; 8635} 8636function spip_logo_survol_hover(){ 8637var me=jQuery(this); 8638if(me.attr('data-src-hover')){ 8639me.attr('data-src-original',me.attr('src')); 8640me.attr('src',me.attr('data-src-hover')); 8641} 8642} 8643function spip_logo_survol_out(){ 8644var me=jQuery(this); 8645if(me.attr('data-src-original')){ 8646me.attr('src',me.attr('data-src-original')); 8647} 8648} 8649function disableClickAfterFormSubmit(){ 8650if(jQuery(this).is('.processing-submitted-form')){ 8651return false; 8652} 8653jQuery(this) 8654.addClass('processing-submitted-form') 8655.find('button[type="submit"]') 8656.attr('disabled','disabled') 8657.addClass('disabled') 8658} 8659function puce_enable_survol(){ 8660jQuery('span.puce_objet_popup a',this).not('.puce-survol-enabled').click(function(){ 8661selec_statut(jQuery(this).attr('data-puce-id'),jQuery(this).attr('data-puce-type'),jQuery(this).attr('data-puce-decal'),jQuery('img',this).attr('src'),jQuery(this).attr('data-puce-action')); 8662return false; 8663}).addClass('puce-survol-enabled'); 8664jQuery('span.puce_objet',this).not('.puce-survol-enabled').mouseover(function(){ 8665if(!this.puce_loaded){ 8666this.puce_loaded=true;prepare_selec_statut(this,jQuery(this).attr('data-puce-nom'),jQuery(this).attr('data-puce-type'),jQuery(this).attr('data-puce-id'),jQuery(this).attr('data-puce-action')); 8667} 8668}).addClass('puce-survol-enabled'); 8669} 8670if(!window.var_zajax_content) 8671window.var_zajax_content='contenu'; 8672jQuery(function(){ 8673jQuery('form:not(.bouton_action_post)').parents('div.ajax') 8674.formulaire_dyn_ajax();
8675jQuery('div.ajaxbloc').ajaxbloc(); 8676jQuery("input[placeholder]:text").placeholderLabel(); 8677jQuery('.spip_logo_survol').hover(spip_logo_survol_hover,spip_logo_survol_out); 8678puce_enable_survol.apply(this); 8679jQuery('body').on('submit','form.bouton_action_post',disableClickAfterFormSubmit); 8680}); 8681onAjaxLoad(function(){ 8682if(jQuery){ 8683jQuery('form:not(.bouton_action_post)',this).parents('div.ajax') 8684.formulaire_dyn_ajax(); 8685if(jQuery(this).is('div.ajaxbloc')) 8686jQuery(this).ajaxbloc(); 8687else if(jQuery(this).closest('div.ajaxbloc').length) 8688jQuery(this).closest('div.ajaxbloc').ajaxbloc(); 8689else 8690jQuery('div.ajaxbloc',this).ajaxbloc(); 8691jQuery("input[placeholder]:text",this).placeholderLabel(); 8692jQuery('.spip_logo_survol',this).hover(spip_logo_survol_hover,spip_logo_survol_out); 8693puce_enable_survol.apply(this); 8694} 8695}); 8696 8697 8698/* prive/javascript/js.cookie.js?1788356716 */ 8699 8700; 8701(function(global,factory){ 8702typeof exports==='object'&&typeof module!=='undefined'?module.exports=factory(): 8703typeof define==='function'&&define.amd?define(factory): 8704(global=typeof globalThis!=='undefined'?globalThis:global||self,(function(){ 8705var current=global.Cookies; 8706var exports=global.Cookies=factory(); 8707exports.noConflict=function(){global.Cookies=current;return exports;}; 8708})()); 8709})(this,(function(){'use strict'; 8710function assign(target){ 8711for(var i=1;i<arguments.length;i++){ 8712var source=arguments[i]; 8713for(var key in source){ 8714target[key]=source[key]; 8715} 8716} 8717return target 8718} 8719var defaultConverter={ 8720read:function(value){ 8721if(value[0]==='"'){ 8722value=value.slice(1,-1); 8723} 8724return value.replace(/(%[\dA-F]{2})+/gi,decodeURIComponent) 8725}, 8726write:function(value){ 8727return encodeURIComponent(value).replace(/%(2[346BF]|3[AC-F]|40|5[BDE]|60|7[BCD])/g, 8728decodeURIComponent 8729) 8730} 8731}; 8732function init(converter,defaultAttributes){ 8733function set(name,value,attributes){ 8734if(typeof document==='undefined'){ 8735return 8736} 8737attributes=assign({},defaultAttributes,attributes); 8738if(typeof attributes.expires==='number'){ 8739attributes.expires=new Date(Date.now()+attributes.expires*864e5); 8740} 8741if(attributes.expires){ 8742attributes.expires=attributes.expires.toUTCString(); 8743} 8744name=encodeURIComponent(name) 8745.replace(/%(2[346B]|5E|60|7C)/g,decodeURIComponent) 8746.replace(/[()]/g,escape); 8747var stringifiedAttributes=''; 8748for(var attributeName in attributes){ 8749if(!attributes[attributeName]){ 8750continue 8751} 8752stringifiedAttributes+='; '+attributeName; 8753if(attributes[attributeName]===true){ 8754continue 8755} 8756stringifiedAttributes+='='+attributes[attributeName].split(';')[0]; 8757} 8758return(document.cookie= 8759name+'='+converter.write(value,name)+stringifiedAttributes) 8760} 8761function get(name){ 8762if(typeof document==='undefined'||(arguments.length&&!name)){ 8763return 8764} 8765var cookies=document.cookie?document.cookie.split('; '):[]; 8766var jar={}; 8767for(var i=0;i<cookies.length;i++){ 8768var parts=cookies[i].split('='); 8769var value=parts.slice(1).join('='); 8770try{ 8771var found=decodeURIComponent(parts[0]); 8772jar[found]=converter.read(value,found); 8773if(name===found){ 8774break 8775} 8776}catch(e){} 8777} 8778return name?jar[name]:jar 8779} 8780return Object.create( 8781{ 8782set, 8783get, 8784remove:function(name,attributes){ 8785set( 8786name, 8787'', 8788assign({},attributes,{ 8789expires:-1 8790}) 8791); 8792}, 8793withAttributes:function(attributes){ 8794return init(this.converter,assign({},this.attributes,attributes)) 8795}, 8796withConverter:function(converter){ 8797return init(assign({},this.converter,converter),this.attributes) 8798} 8799}, 8800{ 8801attributes:{value:Object.freeze(defaultAttributes)}, 8802converter:{value:Object.freeze(converter)} 8803} 8804) 8805} 8806var api=init(defaultConverter,{path:'/'}); 8807return api; 8808})); 8809 8810 8811/* plugins-dist/mediabox/lib/lity/lity.js?1790334664 */ 8812 8813(function(window,factory){ 8814if(typeof define==='function'&&define.amd){ 8815define(['jquery'],function($){ 8816return factory(window,$); 8817}); 8818}else if(typeof module==='object'&&typeof module.exports==='object'){ 8819module.exports=factory(window,require('jquery')); 8820}else{ 8821window.lity=factory(window,window.jQuery||window.Zepto); 8822} 8823}(typeof window!=="undefined"?window:this,function(window,$){ 8824'use strict'; 8825var document=window.document; 8826var _win=$(window); 8827var _deferred=$.Deferred; 8828var _html=$('html'); 8829var _instances=[]; 8830var _attrAriaHidden='aria-hidden'; 8831var _dataAriaHidden='lity-'+_attrAriaHidden; 8832var _focusableElementsSelector='a[href],area[href],input:not([disabled]),select:not([disabled]),textarea:not([disabled]),button:not([disabled]),iframe,object,embed,[contenteditable],[tabindex]:not
8832([tabindex^="-"])'; 8833var _defaultOptions={ 8834esc:true, 8835handler:null, 8836handlers:{ 8837image:imageHandler, 8838inline:inlineHandler, 8839iframe:iframeHandler 8840}, 8841forceFocusInside:false, 8842template:'<div class="lity" role="dialog" aria-label="Dialog Window (Press escape to close)" tabindex="-1"><div class="lity-wrap" data-lity-close role="document"><div class="lity-loader" aria-hidden="true">Loading...</div><div class="lity-container"><div class="lity-content"></div><button class="lity-close" type="button" aria-label="Close (Press escape to close)" data-lity-close>×</button></div></div></div>' 8843}; 8844var _imageRegexp=/(^data:image\/)|(\.(png|jpe?g|gif|svg|webp|bmp|ico|tiff?)(\?\S*)?$)/i; 8845var _transitionEndEvent=(function(){ 8846var el=document.createElement('div'); 8847var transEndEventNames={ 8848WebkitTransition:'webkitTransitionEnd', 8849MozTransition:'transitionend', 8850OTransition:'oTransitionEnd otransitionend', 8851transition:'transitionend' 8852}; 8853for(var name in transEndEventNames){ 8854if(el.style[name]!==undefined){ 8855return transEndEventNames[name]; 8856} 8857} 8858return false; 8859})(); 8860function transitionEnd(element){ 8861var deferred=_deferred(); 8862if(!_transitionEndEvent||!element.length){ 8863deferred.resolve(); 8864}else{ 8865element.one(_transitionEndEvent,deferred.resolve); 8866setTimeout(deferred.resolve,500); 8867} 8868return deferred.promise(); 8869} 8870function settings(currSettings,key,value){ 8871if(arguments.length===1){ 8872return $.extend({},currSettings); 8873} 8874if(typeof key==='string'){ 8875if(typeof value==='undefined'){ 8876return typeof currSettings[key]==='undefined' 8877?null 8878:currSettings[key]; 8879} 8880currSettings[key]=value; 8881}else{ 8882$.extend(currSettings,key); 8883} 8884return this; 8885} 8886function parseQueryParams(params){ 8887var pos=params.indexOf('?'); 8888if(pos>-1){ 8889params=params.substr(pos+1); 8890} 8891var pairs=decodeURI(params.split('#')[0]).split('&'); 8892var obj={},p; 8893for(var i=0,n=pairs.length;i<n;i++){ 8894if(!pairs[i]){ 8895continue; 8896} 8897p=pairs[i].split('='); 8898obj[p[0]]=p[1]; 8899} 8900return obj; 8901} 8902function appendQueryParams(url,params){ 8903if(!params){ 8904return url; 8905} 8906if('string'===$.type(params)){ 8907params=parseQueryParams(params); 8908} 8909if(url.indexOf('?')>-1){ 8910var split=url.split('?'); 8911url=split.shift(); 8912params=$.extend( 8913{}, 8914parseQueryParams(split[0]), 8915params 8916) 8917} 8918return url+'?'+$.param(params); 8919} 8920function transferHash(originalUrl,newUrl){ 8921var pos=originalUrl.indexOf('#'); 8922if(-1===pos){ 8923return newUrl; 8924} 8925if(pos>0){ 8926originalUrl=originalUrl.substr(pos); 8927} 8928return newUrl+originalUrl; 8929} 8930function iframe(iframeUrl,instance,queryParams,hashUrl){ 8931instance&&instance.element().addClass('lity-iframe'); 8932if(queryParams){ 8933iframeUrl=appendQueryParams(iframeUrl,queryParams); 8934} 8935if(hashUrl){ 8936iframeUrl=transferHash(hashUrl,iframeUrl); 8937} 8938return'<div class="lity-iframe-container"><iframe frameborder="0" allowfullscreen allow="autoplay; fullscreen" src="'+iframeUrl+'"/></div>'; 8939} 8940function error(msg){ 8941return $('<span class="lity-error"></span>').append(msg); 8942} 8943function imageHandler(target,instance){ 8944var desc=(instance.opener()&&instance.opener().data('lity-desc'))||'Image with no description'; 8945var img=$('<img src="'+target+'" alt="'+desc+'"/>'); 8946var deferred=_deferred(); 8947var failed=function(){ 8948deferred.reject(error('Failed loading image')); 8949}; 8950img 8951.on('load',function(){ 8952if(this.naturalWidth===0){ 8953return failed(); 8954} 8955deferred.resolve(img); 8956}) 8957.on('error',failed) 8958; 8959return deferred.promise(); 8960} 8961imageHandler.test=function(target){ 8962return _imageRegexp.test(target); 8963}; 8964function inlineHandler(target,instance){ 8965var el,placeholder,hasHideClass; 8966try{ 8967el=$(target); 8968}catch(e){ 8969return false; 8970} 8971if(!el.length){ 8972return false; 8973} 8974placeholder=$('<i style="display:none !important"></i>'); 8975hasHideClass=el.hasClass('lity-hide'); 8976instance 8977.element() 8978.one('lity:remove',function(){ 8979placeholder 8980.before(el) 8981.remove() 8982; 8983if(hasHideClass&&!el.closest('.lity-content').length){ 8984el.addClass('lity-hide'); 8985} 8986}) 8987; 8988return el 8989.removeClass('lity-hide') 8990.after(placeholder) 8991; 8992} 8993function iframeHandler(target,instance){ 8994return iframe(target,instance); 8995} 8996function winHeight(){ 8997return document.documentElement.clientHeight 8998?document.documentElement.clientHeight 8999:Math.round(_win.height()); 9000} 9001function keydown(e){ 9002var current=currentInstance(); 9003if(!current){ 9004return; 9005} 9006if(e.keyCode===27&&!!current.options('esc')){ 9007current.close(); 9008} 9009if(e.keyCode===9){ 9010handleTabKey(e,current); 9011} 9012} 9013function handleTabKey(e,instance){ 9014var focusableElements=instance.element().find(_focusableElementsSelector); 9015var focusedIndex=focusableElements.index(document.activeElement); 9016if(e.shiftKey&&focusedIndex<=0){ 9017focusableElements.get(focusableElements.length-1).focus(); 9018e.preventDefault(); 9019}else if(!e.shiftKey&&focusedIndex===focusableElements.length-1){ 9020focusableElements.get(0).focus(); 9021e.preventDefault(); 9022} 9023if(focusedIndex===-1&&instance.options().forceFocusInside){ 9024focusableElements.get(0).focus(); 9025e.preventDefault(); 9026} 9027} 9028function resize(){ 9029$.each(_instances,function(i,instance){ 9030instance.resize(); 9031}); 9032} 9033function registerInstance(instanceToRegister){ 9034if(1===_instances.unshift(instanceToRegister)){ 9035_html.addClass('lity-active'); 9036_win 9037.on({ 9038resize:resize, 9039keydown:keydown 9040}) 9041; 9042} 9043$('body > *').not(instanceToRegister.element()) 9044.addClass('lity-hidden') 9045.each(function(){ 9046var el=$(this); 9047if(undefined!==el.data(_dataAriaHidden)){ 9048return; 9049} 9050el.data(_dataAriaHidden,el.attr(_attrAriaHidden)||null); 9051}) 9052.attr(_attrAriaHidden,'true') 9053; 9054} 9055function removeInstance(instanceToRemove){ 9056var show; 9057instanceToRemove
9058.element() 9059.attr(_attrAriaHidden,'true') 9060; 9061if(1===_instances.length){ 9062_html.removeClass('lity-active'); 9063_win 9064.off({ 9065resize:resize, 9066keydown:keydown 9067}) 9068; 9069} 9070_instances=$.grep(_instances,function(instance){ 9071return instanceToRemove!==instance; 9072}); 9073if(!!_instances.length){ 9074show=_instances[0].element(); 9075}else{ 9076show=$('.lity-hidden'); 9077} 9078show 9079.removeClass('lity-hidden') 9080.each(function(){ 9081var el=$(this),oldAttr=el.data(_dataAriaHidden); 9082if(!oldAttr){ 9083el.removeAttr(_attrAriaHidden); 9084}else{ 9085el.attr(_attrAriaHidden,oldAttr); 9086} 9087el.removeData(_dataAriaHidden); 9088}) 9089; 9090} 9091function currentInstance(){ 9092if(0===_instances.length){ 9093return null; 9094} 9095return _instances[0]; 9096} 9097function factory(target,instance,handlers,preferredHandler){ 9098var handler='inline',content; 9099var currentHandlers=$.extend({},handlers); 9100if(preferredHandler&¤tHandlers[preferredHandler]){ 9101content=currentHandlers[preferredHandler](target,instance); 9102handler=preferredHandler; 9103}else{ 9104$.each(['inline','iframe'],function(i,name){ 9105delete currentHandlers[name]; 9106currentHandlers[name]=handlers[name]; 9107}); 9108$.each(currentHandlers,function(name,currentHandler){ 9109if(!currentHandler){ 9110return true; 9111} 9112if( 9113currentHandler.test&& 9114!currentHandler.test(target,instance) 9115){ 9116return true; 9117} 9118content=currentHandler(target,instance); 9119if(false!==content){ 9120handler=name; 9121return false; 9122} 9123}); 9124} 9125return{handler:handler,content:content||''}; 9126} 9127function Lity(target,options,opener,activeElement){ 9128var self=this; 9129var result; 9130var isReady=false; 9131var isClosed=false; 9132var element; 9133var content; 9134options=$.extend( 9135{}, 9136_defaultOptions, 9137options 9138); 9139element=$(options.template); 9140self.element=function(){ 9141return element; 9142}; 9143self.opener=function(){ 9144return opener; 9145}; 9146self.content=function(){ 9147return content; 9148}; 9149self.options=$.proxy(settings,self,options); 9150self.handlers=$.proxy(settings,self,options.handlers); 9151self.resize=function(){ 9152if(!isReady||isClosed){ 9153return; 9154} 9155content 9156.css('max-height',winHeight()+'px') 9157.trigger('lity:resize',[self]) 9158; 9159}; 9160self.close=function(){ 9161if(isClosed){ 9162return; 9163} 9164isClosed=true; 9165removeInstance(self); 9166var deferred=_deferred(); 9167if( 9168activeElement&& 9169( 9170document.activeElement===element[0]|| 9171$.contains(element[0],document.activeElement) 9172) 9173){ 9174try{ 9175activeElement.focus(); 9176}catch(e){ 9177} 9178} 9179var trigerable=(content?content:element); 9180trigerable.trigger('lity:close',[self]); 9181element 9182.removeClass('lity-opened') 9183.addClass('lity-closed') 9184; 9185transitionEnd(trigerable.add(element)) 9186.always(function(){ 9187trigerable.trigger('lity:remove',[self]); 9188element.remove(); 9189element=undefined; 9190deferred.resolve(); 9191}) 9192; 9193return deferred.promise(); 9194}; 9195result=factory(target,self,options.handlers,options.handler); 9196element 9197.attr(_attrAriaHidden,'false') 9198.addClass('lity-loading lity-opened lity-'+result.handler) 9199.appendTo('body') 9200.focus() 9201.on('click','[data-lity-close]',function(e){ 9202if($(e.target).is('[data-lity-close]')){ 9203self.close(); 9204} 9205}) 9206.trigger('lity:open',[self]) 9207; 9208registerInstance(self); 9209$.when(result.content) 9210.always(ready) 9211; 9212function ready(result){ 9213if(isClosed){ 9214return; 9215} 9216content=$(result) 9217.css('max-height',winHeight()+'px') 9218; 9219element 9220.find('.lity-loader') 9221.each(function(){ 9222var loader=$(this); 9223transitionEnd(loader) 9224.always(function(){ 9225loader.remove(); 9226}) 9227; 9228}) 9229; 9230element 9231.removeClass('lity-loading') 9232.find('.lity-content') 9233.empty() 9234.append(content) 9235; 9236isReady=true; 9237content 9238.trigger('lity:ready',[self]) 9239; 9240} 9241} 9242function lity(target,options,opener){ 9243if(!target.preventDefault){ 9244opener=$(opener); 9245}else{ 9246target.preventDefault(); 9247opener=$(this); 9248target=opener.data('lity-target')||opener.attr('href')||opener.attr('src'); 9249} 9250var instance=new Lity( 9251target, 9252$.extend( 9253{}, 9254opener.data('lity-options')||opener.data('lity'), 9255options 9256), 9257opener, 9258document.activeElement 9259); 9260if(!target.preventDefault){ 9261return instance; 9262} 9263} 9264lity.version='3.0.0-dev'; 9265lity.options=$.proxy(settings,lity,_defaultOptions); 9266lity.handlers=$.proxy(settings,lity,_defaultOptions.handlers); 9267lity.current=currentInstance; 9268lity.iframe=iframe; 9269$(document).on('click.lity','[data-lity]',lity); 9270return lity; 9271})); 9272 9273 9274/* plugins-dist/mediabox/lity/js/lity.mediabox.js?1790334664 */ 9275; 9276(function($){ 9277var litySpip={ 9278nameSpace:'mediabox', 9279config:{ 9280forceFocusInside:true, 9281}, 9282strings:{ 9283}, 9284callbacks:{ 9285onOpen:[], 9286onShow:[], 9287onClose:[] 9288}, 9289focusedItem:[], 9290isTransition:false, 9291adjustHeight:function(instance){ 9292var $content=instance.content(); 9293var $containerHeight=instance.element().find('.lity-container').height(); 9294if($containerHeight){ 9295var h=Math.round($containerHeight)+'px'; 9296$content 9297.css('max-height',h) 9298.find('[data-'+litySpip.nameSpace+'-force-max-height]') 9299.css('max-height',h); 9300} 9301}, 9302template:function(cfg,type,groupName,groupPosition,groupLength){ 9303var className=''; 9304if(!!cfg.className){ 9305className=' '+cfg.className; 9306} 9307if(cfg.transitionOnOpen){ 9308className+=' lity-transition-on-open-'+cfg.transitionOnOpen; 9309} 9310if(!!cfg.noTransition){ 9311className+=' lity-no-transition'; 9312} 9313if(!!cfg.slideShow){ 9314className+=' lity-slideshow'; 9315} 9316var styles=[]; 9317var styles_container=''; 9318var styles_content=''; 9319if(cfg.sideBar){ 9320className+=' lity-sidebar lity-sidebar-'+cfg.sideBar; 9321if(cfg.sideBar==='start'||cfg.sideBar==='end'){ 9322className+=' lity-sidebar-inline'; 9323cfg.height='100vh'; 9324cfg.maxHeight='100vh'; 9325} 9326if(cfg.sideBar==='top'||cfg.sideBar==='bottom'){ 9327className+=' lity-sidebar-block'; 9328cfg.width='100vw'; 9329cfg.maxWidth='100vw'; 9330} 9331} 9332if(cfg.maxWidth){ 9333styles.push("max-width:"+cfg.maxWidth.replace("%","vw")); 9334} 9335if(cfg.maxHeight){ 9336styles.push("max-height:"+cfg.maxHeight.replace("%","vh")); 9337} 9338if(cfg.width){ 9339styles.push("width:"+cfg.width.replace("%","vw")); 9340className+=' lity-width-set'; 9341} 9342if(cfg.height){ 9343styles.push("height:"+cfg.height.replace("%","vh")); 9344className+=' lity-height-set'; 9345if(cfg.minHeight){ 9346styles.push("min-height:"+cfg.minHeight.replace("%","vh")); 9347} 9348} 9349if(styles.length){ 9350styles_container=' style="'+styles.join(';')+'"'; 9351} 9352styles=[]; 9353var max; 9354if(cfg.minWidth){ 9355max=(cfg.maxWidth?cfg.maxWidth.replace("%","vw"):'95vw'); 9356styles.push("min-width:min("+max+","+cfg.minWidth.replace("%","vw")+')'); 9357} 9358if(cfg.minHeight&&!cfg.height){ 9359max=(cfg.maxHeight?cfg.maxHeight.replace("%","vw"):'95vh'); 9360styles.push("min-height:min("+max+","+cfg.minHeight.replace("%","vh")+')'); 9361} 9362if(styles.length){ 9363styles_content=' style="'+styles.join(';')+'"'; 9364} 9365var button_next_prev='',
9366button_start_stop='', 9367group_info_text='', 9368group_info=''; 9369if(groupName&&groupLength){ 9370if(groupLength>1){ 9371var newPosition=(groupPosition<=0?groupLength-1:groupPosition-1); 9372button_next_prev+='<button class="lity-previous" type="button" data-group-name="'+groupName+'" data-group-position="'+newPosition+'" aria-label="'+litySpip.strings.previous+'" data-lity-previous' 9373+'><b title="'+litySpip.strings.previous+'">â®</b></button>'; 9374newPosition=(groupPosition>=groupLength-1?0:groupPosition+1); 9375button_next_prev+='<button class="lity-next" type="button" data-group-name="'+groupName+'" data-group-position="'+newPosition+'" aria-label="'+litySpip.strings.next+'" data-lity-next' 9376+'><b title="'+litySpip.strings.next+'">â¯</b></button>'; 9377} 9378group_info_text=" "+litySpip.strings.current; 9379group_info_text=group_info_text.replace('{current}',(groupPosition+1)+''); 9380group_info_text=group_info_text.replace('{total}',groupLength+''); 9381button_start_stop+='<button class="lity-start-stop" type="button" data-lity-stop-start>' 9382+'<b class="lity-start" aria-label="'+litySpip.strings.slideshowStart+'" title="'+litySpip.strings.slideshowStart+'">â¶</b>' 9383+'<b class="lity-stop" aria-label="'+litySpip.strings.slideshowStop+'" title="'+litySpip.strings.slideshowStop+'">â¡</b>' 9384+'</button>'; 9385group_info='<div class="lity-group-caption">' 9386+'<span class="lity-group-start-stop">'+button_start_stop+'</span>' 9387+'<span class="lity-group-current">'+group_info_text+'</span>' 9388+'<span class="lity-group-next-prev">'+button_next_prev+'</span>' 9389+'<span class="lity-group-progress-bar"><span class="lity-group-progress-bar-status" style="width:0"></span></span>' 9390+'</div>'; 9391} 9392var close_button_aria_label=litySpip.strings.close+' ('+litySpip.strings.press_escape+')'; 9393var dialog_title=(type==='image'?litySpip.strings.dialog_title_med:litySpip.strings.dialog_title_def); 9394dialog_title+=group_info_text+' ('+litySpip.strings.press_escape+')'; 9395var t= 9396'<dialog class="box_mediabox box_modalbox lity'+className+'" role="dialog" aria-label="'+dialog_title+'" tabindex="-1">' 9397+'<div class="lity-wrap"'+(cfg.overlayClose===false?'':' data-lity-close')+' role="document">' 9398+'<div class="lity-loader" aria-hidden="true" aria-label="'+litySpip.strings.loading+'"><span class="box-loading"></span></div>' 9399+'<div class="lity-container"'+styles_container+'>' 9400+'<button class="lity-close" type="button" aria-label="'+close_button_aria_label+'" data-lity-close><b data-lity-close title="'+litySpip.strings.close+'">×</b></button>' 9401+'<div class="lity-content"'+styles_content+'></div>' 9402+group_info 9403+'</div>' 9404+'</div>' 9405+'</dialog>'; 9406return t; 9407}, 9408failHandler:function(target,instance){ 9409return'<div class="error lity-error">Failed loading content</div>'; 9410}, 9411ajaxHandler:function(target,instance){ 9412var selector, 9413off=target.indexOf(" "); 9414if(off>-1){ 9415selector=target.slice(off); 9416selector=selector.match(/[^\x20\t\r\n\f]+/g)||[]; 9417selector=selector.join(" "); 9418target=target.slice(0,off); 9419} 9420if(jQuery.spip.preloaded_urls[target]){ 9421var content=jQuery.spip.preloaded_urls[target]; 9422if(selector){ 9423content=$("<div>").append($.parseHTML(content)).find(selector); 9424} 9425return $('<div class="lity-content-inner"></div>').append(content); 9426} 9427var _deferred=$.Deferred; 9428var deferred=_deferred(); 9429var failed=function(){ 9430deferred.reject($('<span class="error lity-error"></span>').append('Failed loading ajax')); 9431}; 9432$.get(target) 9433.done(function(content){ 9434jQuery.spip.preloaded_urls[target]=content; 9435if(selector){ 9436content=$("<div>").append($.parseHTML(content)).find(selector); 9437} 9438deferred.resolve($('<div class="lity-content-inner"></div>').append(content)); 9439}) 9440.fail(failed); 9441return deferred.promise(); 9442}, 9443imageBuildContent:function(img,desc,longdesc,defaultCaptionClass){ 9444img.attr('alt',desc?desc:''); 9445desc=(longdesc?longdesc:desc); 9446if(desc){ 9447defaultCaptionClass=(defaultCaptionClass?defaultCaptionClass:'expanded'); 9448var id='lity-image-caption-'+Date.now().toString(36)+Math.random().toString(36).substr(2); 9449img.attr('aria-describedby',id); 9450img=$('<figure class="lity-image-figure"></figure>').append(img).append('<figcaption id="'+id+'" class="lity-image-caption '+defaultCaptionClass+'"><div class="lity-image-caption-text">'+desc+'</div></figcaption>'); 9451} 9452else{
9453img=$('<figure class="lity-image-figure"></figure>').append(img); 9454} 9455return img; 9456}, 9457imageHandler:function(target,instance){ 9458var _deferred=$.Deferred; 9459var desc=''; 9460var longdesc=''; 9461var defaultCaptionClass=(instance.options().defaultCaptionState==='min'?'min':'expanded'); 9462var opener=instance.opener(); 9463if(opener){ 9464desc=opener.attr('title')||$('img[alt]',opener).eq(0).attr('alt')||''; 9465var by=opener.attr('aria-describedby')||$('img[aria-describedby]',opener).eq(0).attr('aria-describedby')||''; 9466if(by){ 9467longdesc=$('#'+by).html(); 9468longdesc=longdesc.trim(); 9469} 9470if(!desc){ 9471desc=desc||instance.opener().attr('aria-label')||''; 9472} 9473desc=desc.trim(); 9474} 9475var img; 9476var cache=opener.data('lity-image-cache')||{}; 9477if(cache[target]){ 9478img=cache[target]; 9479img=litySpip.imageBuildContent(img,desc,longdesc,defaultCaptionClass); 9480return img; 9481} 9482img=$('<img src="'+target+'" class="lity-image-img" data-'+litySpip.nameSpace+'-force-max-height />'); 9483var deferred=_deferred(); 9484var failed=function(){ 9485deferred.reject($('<span class="error lity-error"></span>').append('Failed loading image')); 9486}; 9487img 9488.on('load',function(){ 9489if(this.naturalWidth===0){ 9490img.attr("style","width:25vw;"); 9491} 9492cache[target]=img; 9493opener.data('lity-image-cache',cache); 9494deferred.resolve(litySpip.imageBuildContent(img,desc,longdesc,defaultCaptionClass)); 9495}) 9496.on('error',failed) 9497; 9498return deferred.promise(); 9499}, 9500groupElements:function(groupName){ 9501return $('.lity-enabled[data-'+litySpip.nameSpace+'-group'+'='+groupName+']'); 9502}, 9503eventSet:{}, 9504setEvents:function(what){ 9505if(!litySpip.eventSet[what]){ 9506switch(what){ 9507case'opener': 9508$(document).on('click','.lity-enabled',litySpip.onClickOpener); 9509break; 9510case'listener': 9511$(document).on('click','.lity-previous,.lity-next',litySpip.onPrevNext); 9512$(document).on('click','.lity-start-stop',litySpip.onSlideShowToggle); 9513$(window).on('keyup',litySpip.onKeyUp); 9514$(document).on('click','.lity-image-caption',litySpip.onCaptionToggle); 9515break; 9516} 9517litySpip.eventSet[what]=true; 9518} 9519}, 9520onKeyUp:function(event){ 9521var c={37:"previous",39:"next"}[event.keyCode]; 9522if(c){ 9523var current=lity.current(); 9524if(current){ 9525jQuery('.lity-'+c,current.element()).trigger('click'); 9526} 9527} 9528}, 9529onCaptionToggle:function(event){ 9530var $caption=$(this); 9531$caption.toggleClass('min expanded'); 9532}, 9533openerFromPrevNext($button){ 9534var groupName=$button.data('group-name'); 9535var groupPosition=$button.data('group-position'); 9536return litySpip.groupElements(groupName).eq(groupPosition); 9537}, 9538onPrevNext:function(event){ 9539var $button=$(this); 9540var newEl=litySpip.openerFromPrevNext($button); 9541if(newEl){ 9542var element=lity.current().element(); 9543litySpip.isTransition={oldClosed:false,newOpened:true}; 9544element.addClass('lity-no-transition').css('visibility','hidden'); 9545litySpip.slideshowStop(element); 9546var options={transitionOnOpen:$button.is('.lity-next')?'slide-from-right':'slide-from-left'}; 9547if(element.is('.lity-slideshow')){ 9548options.slideShow=true; 9549} 9550lity.current().close(); 9551litySpip.elementOpener(newEl,options); 9552} 9553}, 9554slideshowStart:function(element){ 9555var $progress=element.find('.lity-group-progress-bar-status'); 9556$progress.attr('style',''); 9557$progress.css('width','100%'); 9558var delay=litySpip.config.slideshowSpeed; 9559setTimeout(function(){ 9560$progress.css('transition','width '+((delay-200)/1000)+'s linear'); 9561$progress.css('width','0'); 9562},200); 9563timer=setTimeout(function(){element.find('.lity-next').trigger('click')},delay); 9564element.data('lity-timer',timer); 9565$('.lity-start',element).attr('aria-hidden','true'); 9566$('.lity-stop',element).attr('aria-hidden','false'); 9567jQuery('.lity-start-stop',element).focus(); 9568}, 9569slideshowStop:function(element){ 9570timer=element.data('lity-timer'); 9571if(timer){ 9572clearTimeout(timer); 9573} 9574}, 9575onSlideShowToggle:function(event){ 9576var $button=$(this); 9577var element=$button.closest('.lity'); 9578var slideShowState=(element.is('.lity-slideshow')?true:false); 9579var timer; 9580if(!slideShowState){ 9581litySpip.slideshowStart(element); 9582} 9583else{ 9584litySpip.slideshowStop(element); 9585$('.lity-start',element).attr('aria-hidden','false'); 9586$('.lity-stop',element).attr('aria-hidden','true'); 9587} 9588element.toggleClass('lity-slideshow'); 9589}, 9590onClickOpener:function(event){ 9591event.preventDefault(); 9592var opener=$(this); 9593litySpip.elementOpener(opener); 9594}, 9595elementOpener:function(opener,options){ 9596var cfg=opener.data('mediabox-options'); 9597if(options){ 9598cfg=$.extend({},cfg,options); 9599} 9600var target=opener.data('href-popin')||opener.data('href')||opener.attr('href')||opener.attr('src'); 9601litySpip.lityOpener(target,cfg,opener.get(0)); 9602}, 9603lityOpener:function(target,cfg,opener){ 9604litySpip.setEvents('listener'); 9605if(!litySpip.isTransition){ 9606litySpip.callbacks.onOpen.push(cfg.onOpen||false); 9607litySpip.callbacks.onShow.push(cfg.onShow||false); 9608litySpip.callbacks.onClose.push(cfg.onClose||false); 9609litySpip.focusedItem.push($(document.activeElement)); 9610} 9611var type=cfg.type||''; 9612if(!type&&opener){ 9613type=$(opener).data(litySpip.nameSpace+'-type')||''; 9614} 9615var handlers=lity.handlers(); 9616if(type==='ajax'){ 9617handlers.ajax=litySpip.ajaxHandler; 9618} 9619handlers.image=litySpip.imageHandler; 9620if(type==='inline'){ 9621var el=[]; 9622try{ 9623el=$(target); 9624}catch(e){ 9625el=[]; 9626} 9627if(!el.length){ 9628handlers.inline=litySpip.failHandler; 9629} 9630} 9631cfg=$.extend({handlers:handlers},cfg); 9632if(type&&['image','inline','ajax','iframe'].indexOf(type)!==-1){ 9633cfg.handler=type; 9634} 9635if(opener&&typeof($.parseMediaboxOptions)!=="undefined"){
9636cfg=$.extend(cfg,$.parseMediaboxOptions(litySpip.nameSpace,opener)); 9637} 9638if(!!cfg.preloadOnly){ 9639litySpip.lityPreLoader(target,cfg,opener); 9640} 9641else{ 9642var groupPosition=0; 9643var groupLength=0; 9644if(opener){ 9645var groupName=cfg.rel||(opener?$(opener).data(litySpip.nameSpace+'-group'):''); 9646if(groupName){ 9647var elements=litySpip.groupElements(groupName); 9648groupPosition=elements.index($(opener)); 9649groupLength=elements.length; 9650} 9651} 9652cfg=$.extend({template:litySpip.template(cfg,type,groupName,groupPosition,groupLength)},cfg); 9653if(cfg.samePopin){ 9654var l=lity.current(); 9655if(l){ 9656l.close(); 9657} 9658} 9659lity(target,cfg,opener); 9660} 9661}, 9662lityPreLoader:function(target,cfg,opener){ 9663if(cfg.handler&&cfg.handlers[cfg.handler]){ 9664if(cfg.handler==='image'||cfg.handler==='ajax'){ 9665var instance={ 9666opener:function(){return $(opener);}, 9667options:function(){return cfg} 9668}; 9669var content=cfg.handlers[cfg.handler](target,instance); 9670} 9671} 9672}, 9673ajaxReloadElements:function(elements){ 9674const targets=elements 9675.split(',') 9676.map(s=>s.trim()) 9677.filter(Boolean); 9678targets.forEach(function(target){ 9679try{ 9680if(/^[.#[]/.test(target)){ 9681const $element=$(target); 9682if($element.length){ 9683$element.ajaxReload(); 9684} 9685}else{ 9686ajaxReload(target); 9687} 9688}catch(e){ 9689console.warn("Mediabox ajaxReloadElements : erreur lors du traitement de '"+target+"'.",e); 9690} 9691}); 9692} 9693} 9694jQuery.fn.extend({ 9695mediabox:function(options){ 9696var cfg=$.extend({},litySpip.config,options); 9697if(this===jQuery.fn){ 9698var href=cfg.href||""; 9699litySpip.lityOpener(href,cfg,null); 9700return this; 9701}else{ 9702if(cfg.rel){ 9703this.attr('data-'+litySpip.nameSpace+'-group',cfg.rel); 9704} 9705else{ 9706this.each(function(){ 9707var rel=$(this).attr('rel'); 9708if(rel){ 9709$(this).attr('data-'+litySpip.nameSpace+'-group',rel); 9710} 9711}); 9712} 9713litySpip.setEvents('opener'); 9714this 9715.data('mediabox-options',cfg) 9716.addClass('lity-enabled'); 9717(cfg.preload?this:this.filter('[data-'+litySpip.nameSpace+'-preload]')).each(function(){ 9718litySpip.elementOpener($(this),{preloadOnly:true}); 9719}); 9720return this; 9721} 9722}, 9723mediaboxClose:function(){ 9724var $current=lity.current(); 9725if($current){ 9726$current.close(); 9727return true; 9728} 9729return false; 9730} 9731}); 9732var initConfig=function(){ 9733var b=typeof(mediabox_settings)=='object'?mediabox_settings:{}; 9734litySpip.nameSpace=b.ns?b.ns:'mediabox'; 9735litySpip.strings.slideshowStart=b.str_ssStart; 9736litySpip.strings.slideshowStop=b.str_ssStop; 9737litySpip.strings.current=b.str_cur; 9738litySpip.strings.previous=b.str_prev; 9739litySpip.strings.next=b.str_next; 9740litySpip.strings.close=b.str_close; 9741litySpip.strings.loading=b.str_loading; 9742litySpip.strings.press_escape=b.str_petc; 9743litySpip.strings.dialog_title_def=b.str_dialTitDef; 9744litySpip.strings.dialog_title_med=b.str_dialTitMed; 9745litySpip.config.slideshowSpeed=(b.lity.slideshow_speed?b.lity.slideshow_speed:5000); 9746litySpip.config.defaultCaptionState=(b.lity.defaultCaptionState?b.lity.defaultCaptionState:'expanded'); 9747var styles={ 9748'container':'', 9749'content':'', 9750}; 9751var max; 9752if(b.lity.minWidth){ 9753max=(b.lity.maxWidth?b.lity.maxWidth.replace('%','vw'):'95vw'); 9754styles.content+="min-width:min("+max+","+b.lity.minWidth.replace('%','vw')+');'; 9755} 9756if(b.lity.maxWidth){ 9757styles.container+="max-width:"+b.lity.maxWidth.replace('%','vw')+';'; 9758} 9759if(b.lity.minHeight){ 9760max=(b.lity.maxHeight?b.lity.maxHeight.replace('%','vw'):'95vh'); 9761styles.content+="min-height:min("+max+","+b.lity.minHeight.replace('%','vh')+');'; 9762} 9763if(b.lity.maxHeight){ 9764styles.container+="max-height:"+b.lity.maxHeight.replace('%','vh')+';'; 9765} 9766var insert=''; 9767for(let key in styles){ 9768if(styles[key]){ 9769insert+='.box_mediabox .lity-'+key+'{'+styles[key]+'}'; 9770} 9771} 9772if(b.lity.opacite){ 9773insert+='.box_mediabox:before{opacity:'+b.lity.opacite+'}'; 9774} 9775if(insert){ 9776$('head').append($('<style type="text/css">'+insert+'</style>')); 9777} 9778$(document).on('lity:open',function(event,instance){ 9779if(document.fullscreenElement){ 9780document.fullscreenElement.appendChild(instance.element().get(0)); 9781} 9782if(!instance.element().is('.lity-slideshow')){ 9783jQuery('.lity-close',instance.element()).focus(); 9784} 9785if(!litySpip.isTransition){ 9786var callback=litySpip.callbacks.onOpen.pop(); 9787if(callback){ 9788callback(event,instance); 9789} 9790} 9791}); 9792$(document).on('lity:ready',function(event,instance){ 9793litySpip.adjustHeight(instance); 9794if(jQuery.spip){ 9795jQuery.spip.triggerAjaxLoad(instance.element().get(0)) 9796} 9797if(instance.element().addClass('lity-ready').is('.lity-slideshow')){ 9798litySpip.slideshowStart(instance.element()); 9799} 9800if(!litySpip.isTransition){ 9801var callback=litySpip.callbacks.onShow.pop(); 9802if(callback){
9803callback(event,instance); 9804} 9805} 9806else{ 9807litySpip.isTransition.newOpened=true; 9808if(litySpip.isTransition.oldClosed){ 9809litySpip.isTransition=false; 9810} 9811instance.content().trigger('lity:resize',[instance]); 9812} 9813var $next=instance.element().find('.lity-next'); 9814if($next.length){ 9815$next=litySpip.openerFromPrevNext($next); 9816if($next){ 9817litySpip.elementOpener($next,{preloadOnly:true}); 9818} 9819} 9820}); 9821$(document).on('lity:close',function(event,instance){ 9822if(!litySpip.isTransition){ 9823if(litySpip.callbacks.onShow.length>litySpip.callbacks.onOpen.length){ 9824litySpip.callbacks.onShow.pop(); 9825} 9826var callback=litySpip.callbacks.onClose.pop(); 9827if(callback){ 9828callback(event,instance); 9829} 9830let options=instance.options(); 9831let ajaxReloadArgs=options.ajaxReloadOnClose; 9832if(ajaxReloadArgs&&typeof(ajaxReloadArgs)==='string'){ 9833litySpip.ajaxReloadElements(ajaxReloadArgs); 9834} 9835} 9836}); 9837$(document).on('lity:remove',function(event,instance){ 9838if(!litySpip.isTransition){ 9839var focused=litySpip.focusedItem.pop(); 9840if(focused){ 9841try{ 9842focused.focus(); 9843}catch(e){ 9844} 9845} 9846} 9847else{ 9848litySpip.isTransition.oldClosed=true; 9849if(litySpip.isTransition.newOpened){ 9850litySpip.isTransition=false; 9851} 9852} 9853}); 9854$(document).on('lity:resize',function(event,instance){ 9855litySpip.adjustHeight(instance); 9856}); 9857} 9858initConfig(); 9859})(jQuery); 9860 9861 9862/* plugins-dist/mediabox/javascript/spip.mediabox.js?1790334664 */ 9863(function($){ 9864$.mediabox 9865=function(options){ 9866if(typeof(mediabox_autodetect_href)=='function' 9867&&options.href 9868&&!options.type){ 9869options.type=mediabox_autodetect_href(options.href); 9870} 9871$.fn.mediabox(options); 9872}; 9873$.modalboxload=$.modalbox=function(href,options){$.mediabox($.extend({href:href,overlayClose:true},options));}; 9874$.modalboxclose=$.mediaboxClose=$.fn.mediaboxClose; 9875$.parseMediaboxOptions=function(nameSpace,opener){ 9876var options={}; 9877var data2options={ 9878"width":"width", 9879"height":"height", 9880"min-width":"minWidth", 9881"min-height":"minHeight", 9882"max-width":"maxWidth", 9883"max-height":"maxHeight", 9884"caption-state":"defaultCaptionState", 9885"sidebar":"sideBar", 9886"class":"className", 9887"ajaxreload-on-close":"ajaxReloadOnClose", 9888}; 9889var v; 9890for(var o in data2options){ 9891v=($(opener).data(nameSpace+'-'+o)||''); 9892if(v){ 9893options[data2options[o]]=v; 9894} 9895} 9896if(!options.length){ 9897var eltclass=$(opener).prop('class'); 9898if(eltclass){ 9899if(eltclass.indexOf("boxWidth-")!==-1){ 9900var w=eltclass.match(/boxWidth-([^\s'">]*)/); 9901w=w[1].replace(/pc/,'%'); 9902options["width"]=w; 9903} 9904if(eltclass.indexOf("boxHeight-")!==-1){ 9905var h=eltclass.match(/boxHeight-([^\s'">]*)/); 9906h=h[1].replace(/pc/,'%'); 9907options["height"]=h; 9908} 9909if(eltclass.indexOf("boxIframe")!==-1){ 9910options["type"]='iframe'; 9911} 9912if(eltclass.indexOf("boxInline")!==-1){ 9913options["type"]='inline'; 9914} 9915} 9916} 9917data2options={"same-popin":"samePopin","type":"type"}; 9918for(var o in data2options){ 9919v=($(opener).data(nameSpace+'-'+o)||''); 9920if(v){ 9921options[data2options[o]]=v; 9922} 9923} 9924return options; 9925} 9926})(jQuery); 9927var mediaboxInit=function(){ 9928var b=$.extend({},mediabox_settings); 9929if(b.ns!=='box'){ 9930$('[data-box-type]').each(function(i,e){ 9931var $e=$(e); 9932var d=$e.attr('data-box-type'); 9933$e.removeAttr('data-box-type').attr('data-'+b.ns+'-type',d); 9934}); 9935} 9936if(b.auto_detect){ 9937var $popins=$('[data-href-popin],[data-'+b.ns+'-type]'+(window.var_zajax_content?',[data-var_zajax],a.popin':'')) 9938.add(b.sel_c) 9939.not(ajaxbloc_selecteur,'.ajaxbloc','.hasbox'); 9940$popins.each(function(i,e){ 9941var $e=$(e); 9942var url=$e.attr('href')||"./"; 9943var popin=$e.attr('data-href-popin'); 9944var type=$e.attr('data-'+b.ns+'-type')||''; 9945if(!popin){ 9946var env=$e.attr('data-ajax-env'); 9947if(env){ 9948url=parametre_url(parametre_url(url,'var_ajax',1),'var_ajax_env',env) 9949$e.removeAttr('data-ajax-env'); 9950type='ajax'; 9951} 9952var za=$e.attr('data-var_zajax'); 9953if(za!==undefined||$e.hasClass('popin')){ 9954if(za==='content'&&window.var_zajax_content){ 9955za=window.var_zajax_content; 9956} 9957url=parametre_url(url,'var_zajax',za||window.var_zajax_content); 9958$e.removeAttr('data-var_zajax'); 9959type='ajax'; 9960} 9961if((url!==$e.attr('href')||(!popin&&type))&&url!=="./"){ 9962$e.attr('data-href-popin',url); 9963} 9964} 9965url=popin||url; 9966if(!type){ 9967var attrs=$e.data(); 9968var types=['inline','html','iframe','image','ajax']; 9969types.some(function(e){ 9970var k=b.ns+e.charAt(0).toUpperCase()+e.slice(1); 9971if(attrs[k]){ 9972type=e; 9973return true; 9974} 9975}); 9976} 9977if(!type&&typeof(mediabox_autodetect_href)=='function'){ 9978type=mediabox_autodetect_href(url); 9979} 9980if(!type||$e.hasClass('boxIframe')){ 9981type="iframe"; 9982$e.removeClass('boxIframe'); 9983} 9984$e.attr('data-'+b.ns+'-type',type); 9985}); 9986} 9987if(b.sel_g){ 9988var $items=$(); 9989$(b.sel_g).each(function(i,e){ 9990$items=$items.add( 9991$(this).is('a[type^=\'image\']') 9992?$(this) 9993:$(this).find('a[type^=\'image\']') 9994); 9995}); 9996$items 9997.not('.hasbox') 9998.removeAttr('onclick') 9999.mediabox({rel:'galerieauto',slideshow:true,slideshowAuto:false,type:'image'}) 10000.addClass('hasbox'); 10001} 10002if(b.tt_img){ 10003$('a[type^="image"],a[href$=".png"],a[href$=".jpg"],a[href$=".jpeg"],a[href$=".svg"],a[href$=".webp"]') 10004.not('.hasbox') 10005.removeAttr('onclick') 10006.mediabox({type:'image'}) 10007.addClass('hasbox') 10008; 10009} 10010$(b.sel_c) 10011.not('.hasbox') 10012.mediabox() 10013.addClass('hasbox') 10014; 10015$('[data-href-popin]',this) 10016.not('.hasbox') 10017.click(function(){if($.modalbox)$.modalbox($(this).attr('data-href-popin'),$.parseMediaboxOptions(b.ns,this));return false;}) 10018.addClass('hasbox'); 10019}; 10020(function($){ 10021if(typeof onAjaxLoad=='function')onAjaxLoad(mediaboxInit);
10022$(mediaboxInit); 10023})(jQuery); 10024function mediabox_autodetect_href(href,options){ 10025options=$.extend({ 10026breakMode:true, 10027tests:{ 10028image:/\.(gif|png|jp(e|g|eg)|bmp|ico|webp|jxr|svg)((#|\?).*)?$/i, 10029inline:/^[#.]\w/, 10030html:/^\s*<[\w!][^<]*>/, 10031ajax:/((\?|&(amp;)?)var_z?ajax=|cache-ajaxload\/)/i, 10032iframe:/^(?:(?:https?|ftp):\/\/)(?:\S+(?::\S*)?@)?(?:(?!(?:10|127)(?:\.\d{1,3}){3})(?!(?:169\.254|192\.168)(?:\.\d{1,3}){2})(?!172\.(?:1[6-9]|2\d|3[0-1])(?:\.\d{1,3}){2})(?:[1-9]\d?|1\d\d|2[01]\d|22[0-3])(?:\.(?:1?\d{1,2}|2[0-4]\d|25[0-5])){2}(?:\.(?:[1-9]\d?|1\d\d|2[0-4]\d|25[0-4]))|(?:(?:[a-z\u00a1-\uffff0-9]-*)*[a-z\u00a1-\uffff0-9]+)(?:\.(?:[a-z\u00a1-\uffff0-9]-*)*[a-z\u00a1-\uffff0-9]+)*(?:\.(?:[a-z\u00a1-\uffff]{2,}))\.?)(?::\d{2,5})?(?:[/?#]\S*)?$/i, 10033}, 10034},options); 10035var matched=options.breakMode?false:[]; 10036$.each(options.tests,function(type,regex){ 10037if(href.match(regex)&&!href.match('/File:[^/]+(\\#|[?]|$)')){ 10038if(options.breakMode){ 10039matched=type; 10040return false; 10041}else{ 10042matched.push(type); 10043} 10044} 10045}); 10046return matched; 10047}; 10048 10049 10050/* plugins-dist/porte_plume/javascript/jquery.markitup_pour_spip.js?1788357776 */ 10051 10052;(function($){ 10053$.fn.markItUp=function(settings,extraSettings){ 10054var method,params,options,ctrlKey,shiftKey,altKey;ctrlKey=shiftKey=altKey=false; 10055markitup_prompt=false; 10056if(typeof settings=='string'){ 10057method=settings; 10058params=extraSettings; 10059} 10060options={id:'', 10061nameSpace:'', 10062root:'', 10063lang:'', 10064previewHandler:false, 10065previewInWindow:'', 10066previewInElement:'', 10067previewAutoRefresh:true, 10068previewPosition:'after', 10069previewTemplatePath:'~/templates/preview.html', 10070previewParser:false, 10071previewParserPath:'', 10072previewParserVar:'data', 10073previewParserAjaxType:'POST', 10074resizeHandle:true, 10075beforeInsert:'', 10076afterInsert:'', 10077onEnter:{}, 10078onShiftEnter:{}, 10079onCtrlEnter:{}, 10080onTab:{}, 10081markupSet:[{}] 10082}; 10083$.extend(options,settings,extraSettings); 10084if(!options.root){ 10085$('script').each(function(a,tag){ 10086var miuScript=$(tag).get(0).src.match(/(.*)jquery\.markitup(\.pack)?\.js$/); 10087if(miuScript!==null){ 10088options.root=miuScript[1]; 10089} 10090}); 10091} 10092var uaMatch=function(ua){ 10093ua=ua.toLowerCase(); 10094var match=/(chrome)[ \/]([\w.]+)/.exec(ua)||/(webkit)[ \/]([\w.]+)/.exec(ua)||/(opera)(?:.*version|)[ \/]([\w.]+)/.exec(ua)||/(msie) ([\w.]+)/.exec(ua)|| 10095ua.indexOf("compatible")<0&&/(mozilla)(?:.*? rv:([\w.]+)|)/.exec(ua)|| 10096[]; 10097return{ 10098browser:match[1]||"", 10099version:match[2]||"0" 10100}; 10101}; 10102var matched=uaMatch(navigator.userAgent); 10103var browser={}; 10104if(matched.browser){ 10105browser[matched.browser]=true; 10106browser.version=matched.version; 10107} 10108if(browser.chrome){ 10109browser.webkit=true; 10110}else if(browser.webkit){ 10111browser.safari=true; 10112} 10113return this.each(function(){ 10114var $$,textarea,levels,scrollPosition,caretPosition, 10115clicked,hash,header,footer,previewWindow,template,iFrame,abort, 10116before,after; 10117$$=$(this); 10118textarea=this; 10119levels=[]; 10120abort=false; 10121scrollPosition=caretPosition=0; 10122caretOffset=-1; 10123options.previewParserPath=localize(options.previewParserPath); 10124options.previewTemplatePath=localize(options.previewTemplatePath); 10125if(method){ 10126switch(method){ 10127case'remove': 10128remove(); 10129break; 10130case'insert': 10131markup(params); 10132break; 10133default: 10134$.error('Method '+method+' does not exist on jQuery.markItUp'); 10135} 10136return; 10137} 10138function localize(data,inText){ 10139if(inText){ 10140return data.replace(/("|')~\//g,"$1"+options.root); 10141} 10142return data.replace(/^~\//,options.root); 10143} 10144function init(){ 10145id='';nameSpace=''; 10146if(options.id){ 10147id='id="'+options.id+'"'; 10148}else if($$.attr("id")){ 10149id='id="markItUp'+($$.attr("id").substr(0,1).toUpperCase())+($$.attr("id").substr(1))+'"'; 10150} 10151if(options.nameSpace){ 10152nameSpace='class="'+options.nameSpace+'"'; 10153} 10154currentScrollPosition=$$.scrollTop(); 10155$$.wrap('<div '+nameSpace+'></div>'); 10156$$.wrap('<div '+id+' class="markItUp"></div>'); 10157$$.wrap('<div class="markItUpContainer"></div>'); 10158$$.addClass("markItUpEditor"); 10159$$.scrollTop(currentScrollPosition); 10160header=$('<div class="markItUpHeader"></div>').insertBefore($$); 10161$(dropMenus(options.markupSet)).appendTo(header); 10162$(header).find("li.markItUpDropMenu ul:empty").parent().remove(); 10163footer=$('<div class="markItUpFooter"></div>').insertAfter($$); 10164if(options.resizeHandle===true&&browser.safari!==true){ 10165resizeHandle=$('<div class="markItUpResizeHandle"></div>') 10166.insertAfter($$) 10167.on("mousedown.markItUp",function(e){ 10168var h=$$.height(),y=e.clientY,mouseMove,mouseUp; 10169mouseMove=function(e){ 10170$$.css("height",Math.max(20,e.clientY+h-y)+"px"); 10171return false;
10172}; 10173mouseUp=function(e){ 10174$("html").off("mousemove.markItUp",mouseMove).off("mouseup.markItUp",mouseUp); 10175return false; 10176}; 10177$("html").on("mousemove.markItUp",mouseMove).on("mouseup.markItUp",mouseUp); 10178}); 10179footer.append(resizeHandle); 10180} 10181$$.on('keydown.markItUp',keyPressed).on('keyup',keyPressed); 10182$$.on("insertion.markItUp",function(e,settings){ 10183if(settings.target!==false){ 10184get(); 10185} 10186if(textarea===$.markItUp.focused){ 10187markup(settings); 10188} 10189}); 10190$$.on('focus.markItUp',function(){ 10191$.markItUp.focused=this; 10192}); 10193if(options.previewInElement){ 10194refreshPreview(); 10195} 10196} 10197function dropMenus(markupSet){ 10198var ul=$('<ul></ul>'),i=0; 10199var lang=($$.attr('lang')||options.lang); 10200$('li:hover > ul',ul).css('display','block'); 10201$.each(markupSet,function(){ 10202var button=this,t='',title,li,j; 10203if((!lang||!button.lang||($.inArray(lang,button.lang)!=-1)) 10204&&(!button.lang_not||($.inArray(lang,button.lang_not)==-1))){ 10205button.title?title=(button.key)?(button.title||'')+' [Ctrl+'+button.key+']':(button.title||''):title=(button.key)?(button.name||'')+' [Ctrl+'+button.key+']':(button.name||''); 10206key=(button.key)?'accesskey="'+button.key+'"':''; 10207if(button.separator){ 10208li=$('<li class="markItUpSeparator">'+(button.separator||'')+'</li>').appendTo(ul); 10209}else{ 10210i++; 10211for(j=levels.length-1;j>=0;j--){ 10212t+=levels[j]+"-"; 10213} 10214li=$('<li class="markItUpButton markItUpButton'+t+(i)+' '+(button.className||'')+'"><a href="#" '+key+' title="'+title+'"><em>'+(button.name||'')+'</em></a></li>') 10215.on("contextmenu.markItUp",function(){ 10216return false; 10217}).on('click.markItUp',function(e){ 10218e.preventDefault(); 10219}).on("focusin.markItUp",function(){ 10220setTimeout(function(){ 10221$$.focus(); 10222},0); 10223}).on('mouseup',function(e){ 10224if(button.call){ 10225eval(button.call)(e); 10226} 10227setTimeout(function(){markup(button)},1); 10228return false; 10229}).on('mouseenter.markItUp',function(){ 10230$('> a',this).addClass('active'); 10231$('> ul',this).addClass('expanded'); 10232$(document).one('click',function(){ 10233$('ul a',header).removeClass('active'); 10234$('ul ul',header).removeClass('expanded'); 10235} 10236); 10237}).on('mouseleave.markItUp',function(){ 10238$('> a',this).removeClass('active'); 10239$('> ul',this).removeClass('expanded'); 10240}).appendTo(ul); 10241if(button.dropMenu){ 10242levels.push(i); 10243$(li).addClass('markItUpDropMenu').append(dropMenus(button.dropMenu)); 10244} 10245} 10246} 10247}); 10248levels.pop(); 10249return ul; 10250} 10251function magicMarkups(string){ 10252if(string){ 10253string=string.toString(); 10254string=string.replace(/\(\!\(([\s\S]*?)\)\!\)/g, 10255function(x,a){ 10256var b=a.split('|!|'); 10257if(altKey===true){ 10258return(b[1]!==undefined)?b[1]:b[0]; 10259}else{ 10260return(b[1]===undefined)?"":b[0]; 10261} 10262} 10263); 10264string=string.replace(/\[\!\[([\s\S]*?)\]\!\]/g, 10265function(x,a){ 10266var b=a.split(':!:'); 10267if(abort===true){ 10268return false; 10269} 10270markitup_prompt=true; 10271value=prompt(b[0],(b[1])?b[1]:''); 10272if(value===null){ 10273abort=true; 10274} 10275setTimeout(function(){markitup_prompt=false;},500); 10276return value; 10277} 10278); 10279return string; 10280} 10281return""; 10282} 10283function prepare(action){ 10284if($.isFunction(action)){ 10285action=action(hash); 10286} 10287return magicMarkups(action); 10288} 10289function build(string){ 10290var openWith=prepare(clicked.openWith); 10291var placeHolder=prepare(clicked.placeHolder); 10292var replaceWith=prepare(clicked.replaceWith); 10293var closeWith=prepare(clicked.closeWith); 10294var openBlockWith=prepare(clicked.openBlockWith); 10295var closeBlockWith=prepare(clicked.closeBlockWith); 10296var multiline=clicked.multiline; 10297if(replaceWith!==""){ 10298block=openWith+replaceWith+closeWith; 10299}else if(selection===''&&placeHolder!==''){ 10300block=openWith+placeHolder+closeWith; 10301}else if(multiline===true){ 10302string=string||selection; 10303var lines=[string],blocks=[]; 10304if(multiline===true){ 10305lines=string.split(/\r?\n/); 10306} 10307for(var l=0;l<lines.length;l++){ 10308line=lines[l]; 10309var trailingSpaces; 10310if(trailingSpaces=line.match(/ *$/)){ 10311blocks.push(openWith+line.replace(/ *$/g,'')+closeWith+trailingSpaces); 10312}else{ 10313blocks.push(openWith+line+closeWith); 10314} 10315} 10316block=blocks.join("\n"); 10317}else{ 10318block=openWith+(string||selection)+closeWith; 10319} 10320block=openBlockWith+block+closeBlockWith; 10321return{block:block, 10322openBlockWith:openBlockWith, 10323openWith:openWith, 10324replaceWith:replaceWith, 10325placeHolder:placeHolder, 10326closeWith:closeWith, 10327closeBlockWith:closeBlockWith 10328}; 10329} 10330function selectWord(){ 10331selectionBeforeAfter(/\s|[.,;:!¡?¿()]/); 10332selectionSave(); 10333} 10334function selectLine(){ 10335selectionBeforeAfter(/\r?\n/); 10336selectionSave(); 10337} 10338function selectionRemoveLast(pattern){ 10339if(!pattern)pattern=/\s/; 10340last=selection[selection.length-1]; 10341if(last&&last.match(pattern)){ 10342set(caretPosition,selection.length-1); 10343get(); 10344$.extend(hash,{caretPosition:caretPosition,scrollPosition:scrollPosition}); 10345} 10346} 10347function selectionBeforeAfter(pattern){ 10348if(!pattern)pattern=/\s/; 10349sautAvantIE=sautApresIE=0; 10350if(browser.msie){ 10351lenSelection=selection.length-fixIeBug(selection); 10352if(caretPosition){ 10353set(caretPosition-1,2); 10354sautAvantIE=fixIeBug(document.selection.createRange().text); 10355} 10356set(caretPosition,2); 10357sautApresIE=fixIeBug(document.selection.createRange().text); 10358set(0,caretPosition); 10359before=document.selection.createRange().text; 10360set(caretPosition+lenSelection,textarea.value.length);
10361after=document.selection.createRange().text; 10362set(caretPosition,lenSelection); 10363selection=document.selection.createRange().text; 10364}else{ 10365before=textarea.value.substring(0,caretPosition); 10366after=textarea.value.substring(caretPosition+selection.length-fixIeBug(selection)); 10367} 10368before=before.split(pattern); 10369after=after.split(pattern); 10370if(sautAvantIE)before.push(""); 10371if(sautApresIE)after.unshift(""); 10372} 10373function selectionSave(){ 10374nb_before=before?before[before.length-1].length:0; 10375nb_after=after?after[0].length:0; 10376nb=nb_before+selection.length+nb_after-fixIeBug(selection); 10377caretPosition=caretPosition-nb_before; 10378set(caretPosition,nb); 10379get(); 10380$.extend(hash,{selection:selection,caretPosition:caretPosition,scrollPosition:scrollPosition}); 10381} 10382function markup(button){ 10383var len,j,n,i; 10384hash=clicked=button; 10385get(); 10386$.extend(hash,{line:"", 10387root:options.root, 10388textarea:textarea, 10389selection:(selection||''), 10390caretPosition:caretPosition, 10391ctrlKey:ctrlKey, 10392shiftKey:shiftKey, 10393altKey:altKey 10394} 10395); 10396if(button.selectionType){ 10397if(button.selectionType=="word"){ 10398if(!selection){ 10399selectWord(); 10400}else{ 10401selectionRemoveLast(/\s/); 10402} 10403} 10404if(button.selectionType=="line"){ 10405selectLine(); 10406} 10407if(button.selectionType=="return"){ 10408if(!browser.msie){ 10409selectionBeforeAfter(/\r?\n/); 10410before_last=before[before.length-1]; 10411after=''; 10412if(r=before_last.match(/^-([*#]+) ?(.*)$/)){ 10413if(r[2]){ 10414button.replaceWith="\n-"+r[1]+' '; 10415before_last=''; 10416}else{ 10417button.replaceWith="\n"; 10418} 10419}else{ 10420before_last=''; 10421button.replaceWith="\n"; 10422} 10423before[before.length-1]=before_last; 10424selectionSave(); 10425} 10426} 10427} 10428prepare(options.beforeInsert); 10429prepare(clicked.beforeInsert); 10430if((ctrlKey===true&&shiftKey===true)||button.multiline===true){ 10431prepare(clicked.beforeMultiInsert); 10432} 10433$.extend(hash,{line:1}); 10434if((ctrlKey===true&&shiftKey===true)||button.forceMultiline===true){ 10435lines=selection.split(/\r?\n/); 10436for(j=0,n=lines.length,i=0;i<n;i++){ 10437if(n==1||$.trim(lines[i])!==''){ 10438$.extend(hash,{line:++j,selection:lines[i]}); 10439lines[i]=build(lines[i]).block; 10440}else{ 10441lines[i]=""; 10442} 10443} 10444string={block:lines.join('\n')}; 10445start=caretPosition; 10446len=string.block.length+((browser.opera)?n-1:0); 10447}else if(ctrlKey===true){ 10448string=build(selection); 10449start=caretPosition+string.openWith.length; 10450len=string.block.length-string.openWith.length-string.closeWith.length; 10451len=len-(string.block.match(/ $/)?1:0); 10452len-=fixIeBug(string.block); 10453}else if(shiftKey===true){ 10454string=build(selection); 10455start=caretPosition; 10456len=string.block.length; 10457len-=fixIeBug(string.block); 10458}else{ 10459string=build(selection); 10460start=caretPosition+string.block.length; 10461len=0; 10462start-=fixIeBug(string.block); 10463} 10464if((selection===''&&string.replaceWith==='')){ 10465caretOffset+=fixOperaBug(string.block); 10466start=caretPosition+string.openBlockWith.length+string.openWith.length; 10467len=string.block.length-string.openBlockWith.length-string.openWith.length-string.closeWith.length-string.closeBlockWith.length; 10468caretOffset=$$.val().substring(caretPosition,$$.val().length).length; 10469caretOffset-=fixOperaBug($$.val().substring(0,caretPosition)); 10470} 10471$.extend(hash,{caretPosition:caretPosition,scrollPosition:scrollPosition}); 10472if(string.block!==selection&&abort===false){ 10473insert(string.block); 10474set(start,len); 10475}else{ 10476caretOffset=-1; 10477} 10478get(); 10479$.extend(hash,{line:'',selection:selection}); 10480if((ctrlKey===true&&shiftKey===true)||button.multiline===true){ 10481prepare(clicked.afterMultiInsert); 10482} 10483prepare(clicked.afterInsert); 10484prepare(options.afterInsert); 10485if(previewWindow&&options.previewAutoRefresh){ 10486refreshPreview(); 10487} 10488textarea.dispatchEvent(new Event('input')); 10489shiftKey=altKey=ctrlKey=abort=false; 10490} 10491function fixOperaBug(string){ 10492if(browser.opera){ 10493return string.length-string.replace(/\n*/g,'').length; 10494} 10495return 0; 10496} 10497function fixIeBug(string){ 10498if(browser.msie){ 10499return string.length-string.replace(/\r*/g,'').length; 10500} 10501return 0; 10502} 10503function insert(block){ 10504if(document.selection){ 10505var newSelection=document.selection.createRange(); 10506newSelection.text=block; 10507}else{ 10508textarea.value=textarea.value.substring(0,caretPosition)+block+textarea.value.substring(caretPosition+selection.length,textarea.value.length); 10509} 10510} 10511function set(start,len){ 10512if(textarea.createTextRange){ 10513if(browser.opera&&browser.version>=9.5&&len==0){ 10514return false;
10515} 10516range=textarea.createTextRange(); 10517range.collapse(true); 10518range.moveStart('character',start); 10519range.moveEnd('character',len); 10520range.select(); 10521}else if(textarea.setSelectionRange){ 10522textarea.setSelectionRange(start,start+len); 10523} 10524textarea.scrollTop=scrollPosition; 10525textarea.focus(); 10526} 10527function get(){ 10528textarea.focus(); 10529scrollPosition=textarea.scrollTop; 10530if(document.selection){ 10531selection=document.selection.createRange().text; 10532if(browser.msie){ 10533var range=document.selection.createRange(),rangeCopy=range.duplicate(); 10534rangeCopy.moveToElementText(textarea); 10535caretPosition=-1; 10536while(rangeCopy.inRange(range)){ 10537rangeCopy.moveStart('character'); 10538caretPosition++; 10539} 10540}else{ 10541caretPosition=textarea.selectionStart; 10542} 10543}else{ 10544caretPosition=textarea.selectionStart; 10545selection=textarea.value.substring(caretPosition,textarea.selectionEnd); 10546} 10547return selection; 10548} 10549function preview(){ 10550if(typeof options.previewHandler==='function'){ 10551previewWindow=true; 10552}else if(options.previewInElement){ 10553previewWindow=$(options.previewInElement); 10554}else if(!previewWindow||previewWindow.closed){ 10555if(options.previewInWindow){ 10556previewWindow=window.open('','preview',options.previewInWindow); 10557$(window).unload(function(){ 10558previewWindow.close(); 10559}); 10560}else{ 10561iFrame=$('<iframe class="markItUpPreviewFrame"></iframe>'); 10562if(options.previewPosition=='after'){ 10563iFrame.insertAfter(footer); 10564}else{ 10565iFrame.insertBefore(header); 10566} 10567previewWindow=iFrame[iFrame.length-1].contentWindow||frame[iFrame.length-1]; 10568} 10569}else if(altKey===true){ 10570if(iFrame){ 10571iFrame.remove(); 10572}else{ 10573previewWindow.close(); 10574} 10575previewWindow=iFrame=false; 10576} 10577if(!options.previewAutoRefresh){ 10578refreshPreview(); 10579} 10580if(options.previewInWindow){ 10581previewWindow.focus(); 10582} 10583} 10584function refreshPreview(){ 10585renderPreview(); 10586} 10587function renderPreview(){ 10588var phtml; 10589var parsedData=$$.val(); 10590if(options.previewParser&&typeof options.previewParser==='function'){ 10591parsedData=options.previewParser(parsedData); 10592} 10593if(options.previewHandler&&typeof options.previewHandler==='function'){ 10594options.previewHandler(parsedData); 10595}else if(options.previewParserPath!==''){ 10596$.ajax({ 10597type:options.previewParserAjaxType, 10598dataType:'text', 10599global:false, 10600url:options.previewParserPath, 10601data:options.previewParserVar+'='+encodeURIComponent(parsedData), 10602success:function(data){ 10603writeInPreview(localize(data,1)); 10604} 10605}); 10606}else{ 10607if(!template){ 10608$.ajax({ 10609url:options.previewTemplatePath, 10610dataType:'text', 10611global:false, 10612success:function(data){ 10613writeInPreview(localize(data,1).replace(/<!-- content -->/g,parsedData)); 10614} 10615}); 10616} 10617} 10618return false; 10619} 10620function writeInPreview(data){ 10621if(options.previewInElement){ 10622$(options.previewInElement).html(data); 10623}else if(previewWindow&&previewWindow.document){ 10624try{ 10625sp=previewWindow.document.documentElement.scrollTop 10626}catch(e){ 10627sp=0; 10628} 10629previewWindow.document.open(); 10630previewWindow.document.write(data); 10631previewWindow.document.close(); 10632previewWindow.document.documentElement.scrollTop=sp; 10633} 10634} 10635function keyPressed(e){ 10636shiftKey=e.shiftKey; 10637altKey=e.altKey; 10638ctrlKey=(!(e.altKey&&e.ctrlKey))?(e.ctrlKey||e.metaKey):false; 10639if(e.type==='keydown'){ 10640if(ctrlKey===true){ 10641li=$('a[accesskey="'+((e.keyCode==13)?'\\n':String.fromCharCode(e.keyCode))+'"]',header).parent('li'); 10642if(li.length!==0){ 10643ctrlKey=false; 10644setTimeout(function(){ 10645li.triggerHandler('mouseup'); 10646},1); 10647return false; 10648} 10649} 10650if(!browser.opera){ 10651if(e.keyCode===13||e.keyCode===10){ 10652if(ctrlKey===true){ 10653ctrlKey=false; 10654markup(options.onCtrlEnter); 10655if(!options.onCtrlEnter.keepDefault){ 10656textarea.dispatchEvent(new Event('input')); 10657} 10658return options.onCtrlEnter.keepDefault; 10659}else if(shiftKey===true){ 10660shiftKey=false; 10661markup(options.onShiftEnter); 10662if(!options.onShiftEnter.keepDefault){ 10663textarea.dispatchEvent(new Event('input')); 10664} 10665return options.onShiftEnter.keepDefault; 10666}else{ 10667markup(options.onEnter); 10668if(!options.onEnter.keepDefault){ 10669textarea.dispatchEvent(new Event('input')); 10670} 10671return options.onEnter.keepDefault; 10672} 10673} 10674if(e.keyCode===9){ 10675if(shiftKey==true||ctrlKey==true||altKey==true){ 10676return false; 10677} 10678if(caretOffset!==-1){ 10679get(); 10680caretOffset=$$.val().length-caretOffset; 10681set(caretOffset,0); 10682caretOffset=-1; 10683return false; 10684}else{ 10685markup(options.onTab); 10686return options.onTab.keepDefault; 10687} 10688} 10689} 10690} 10691} 10692function remove(){ 10693$$.off(".markItUp").removeClass('markItUpEditor'); 10694$$.parent('div').parent('div.markItUp').parent('div').replaceWith($$); 10695var relativeRef=$$.parent('div').parent('div.markItUp').parent('div'); 10696if(relativeRef.length){ 10697relativeRef.replaceWith($$); 10698} 10699$$.data('markItUp',null); 10700} 10701init(); 10702}); 10703}; 10704$.fn.markItUpRemove=function(){ 10705return this.each(function(){ 10706$(this).markItUp('remove'); 10707} 10708); 10709}; 10710$.markItUp=function(settings){ 10711var options={target:false}; 10712$.extend(options,settings); 10713if(options.target){ 10714return $(options.target).each(function(){ 10715$(this).focus(); 10716$(this).trigger('insertion',[options]); 10717}); 10718}else{ 10719$('textarea').trigger('insertion',[options]); 10720} 10721}; 10722})(jQuery); 10723 10724 10725/* plugins-dist/porte_plume/javascript/jquery.previsu_spip.js?1788357776 */ 10726;(function($){ 10727$.fn.previsu_spip=function(settings){ 10728var options; 10729options={ 10730previewParserPath:'', 10731previewParserVar:'data', 10732textEditer:'Editer', 10733textVoir:'Voir', 10734textFullScreen:'Plein écran' 10735}; 10736$.extend(options,settings); 10737return this.each(function(){ 10738var $$,textarea,tabs,preview; 10739$$=$(this); 10740textarea=this;
10741function init(){ 10742$$.addClass("pp_previsualisation"); 10743if(!$$.parent().has('.markItUpContainer').length){ 10744$$.barre_outils('vide'); 10745} 10746var mark=$$.parent(); 10747tabs=$('<div class="markItUpTabs"></div>').prependTo(mark); 10748$(tabs).append( 10749'<a href="#fullscreen" class="fullscreen">'+options.textFullScreen+'</a>'+ 10750'<a href="#previsuVoir" class="previsuVoir">'+options.textVoir+'</a>'+ 10751'<a href="#previsuEditer" class="previsuEditer on">'+options.textEditer+'</a>' 10752); 10753preview=$('<div class="markItUpPreview"></div>').insertAfter(mark.find('.markItUpHeader')); 10754preview.hide(); 10755var is_full_screen=false; 10756var objet=mark.parents('.formulaire_spip')[0].className.match(/formulaire_editer_(\w+)/); 10757objet=(objet?objet[1]:''); 10758var champ=mark.parents('.editer')[0].className.match(/editer_(\w+)/); 10759champ=(champ?champ[1].toUpperCase():''); 10760var textarea=mark.find('textarea.pp_previsualisation'); 10761var preview=mark.find('.markItUpPreview'); 10762var dir=textarea.attr('dir'); 10763if(dir){ 10764preview.attr('dir',dir); 10765} 10766tabs.find('.fullscreen').click(function(){ 10767if(!mark.is('.fullscreen')){ 10768textarea.data('height-origin',textarea.css('height')); 10769} 10770mark.toggleClass('fullscreen'); 10771if(mark.is('.fullscreen')){ 10772$('body').addClass('markitup-fullscreen'); 10773is_full_screen=true; 10774mark.find('.markItUpHeader a').show(); 10775if(!mark.is('.livepreview')){ 10776var original_texte=""; 10777function refresh_preview(){ 10778var texte=textarea.val(); 10779if(original_texte==texte){ 10780return; 10781} 10782renderPreview(preview.addClass('ajaxLoad'),texte,champ,objet); 10783original_texte=texte; 10784} 10785var timerPreview=null; 10786mark.addClass('livepreview').find('.markItUpEditor').on('keyup click change focus refreshpreview',function(e){ 10787if(is_full_screen){ 10788if(timerPreview)clearTimeout(timerPreview); 10789timerPreview=setTimeout(refresh_preview,500); 10790} 10791}); 10792$(window).on('keyup',function(e){ 10793if(is_full_screen){ 10794if(e.type=='keyup'&&e.keyCode==27&&!markitup_prompt){ 10795mark.removeClass('fullscreen'); 10796$('body').removeClass('markitup-fullscreen'); 10797textarea.css('height',textarea.data('height-origin')); 10798is_full_screen=false; 10799} 10800} 10801}); 10802} 10803mark.find('.markItUpEditor').trigger('refreshpreview'); 10804} 10805else{ 10806$('body').removeClass('markitup-fullscreen'); 10807textarea.css('height',textarea.data('height-origin')); 10808if($(this).next().hasClass('on')){ 10809mark.find('.markItUpHeader a').hide(); 10810} 10811is_full_screen=false; 10812} 10813return false; 10814}); 10815tabs.find('.previsuVoir').click(function(){ 10816preview.height( 10817mark.find('.markItUpEditor').height() 10818+mark.find('.markItUpFooter').height() 10819); 10820mark.find('.markItUpHeader a,.markItUpEditor,.markItUpFooter').hide(); 10821$(this).addClass('on').next().removeClass('on'); 10822renderPreview( 10823preview.show().addClass('ajaxLoad'), 10824mark.find('textarea.pp_previsualisation').val(), 10825champ, 10826objet, 10827false 10828); 10829return false; 10830}); 10831tabs.find('.previsuEditer').click(function(){ 10832mark.find('.markItUpPreview').hide(); 10833mark.find('.markItUpHeader a,.markItUpEditor,.markItUpFooter').show(); 10834$(this).addClass('on').prev().removeClass('on'); 10835return false; 10836}); 10837} 10838function renderPreview(node,val,champ,objet,async){ 10839if(options.previewParserPath!==''){ 10840$.ajax({ 10841type:'POST', 10842async:typeof(async)=="undefined"?true:async, 10843url:options.previewParserPath, 10844data:'champ='+champ 10845+'&objet='+objet 10846+'&'+options.previewParserVar+'='+encodeURIComponent(val), 10847success:function(data){ 10848node.html(data).removeClass('ajaxLoad'); 10849$("a",node).attr("target","blank"); 10850$(":input",node).attr("disabled","disabled"); 10851} 10852}); 10853} 10854} 10855init(); 10856}); 10857}; 10858})(jQuery); 10859 10860 10861/* local/cache-js/jsdyn-javascript_porte_plume_start_js-0cf7508e.js?1790523125 */ 10862 10863barre_outils_edition={ 10864"nameSpace":"edition", 10865"previewAutoRefresh":false, 10866"onEnter":{ 10867"keepDefault":false, 10868"selectionType":"return", 10869"replaceWith":"\n" 10870}, 10871"onShiftEnter":{ 10872"keepDefault":false, 10873"replaceWith":"\n_ " 10874}, 10875"onCtrlEnter":{ 10876"keepDefault":false, 10877"replaceWith":"\n\n" 10878}, 10879"markupSet":[ 10880{ 10881"name":"Transformer en {{{intertitre}}}", 10882"key":"H", 10883"className":"outil_header1", 10884"openWith":"\n{{{", 10885"closeWith":"}}}\n", 10886"selectionType":"line" 10887}, 10888{ 10889"name":"Mettre en {{gras}}", 10890"key":"B", 10891"className":"outil_bold", 10892"replaceWith":function(h){return espace_si_accolade(h,'{{','}}');}, 10893"selectionType":"word" 10894}, 10895{ 10896"name":"Mettre en {italique}", 10897"key":"I", 10898"className":"outil_italic", 10899"replaceWith":function(h){return espace_si_accolade(h,'{','}');}, 10900"selectionType":"word" 10901}, 10902{ 10903"name":"Mettre en liste", 10904"className":"outil_liste_ul separateur_avant", 10905"replaceWith":function(h){return outil_liste(h,'*');}, 10906"selectionType":"line", 10907"forceMultiline":true, 10908"dropMenu":[ 10909{ 10910"id":"liste_ol", 10911"name":"Mettre en liste num\u00e9rot\u00e9e", 10912"className":"outil_liste_ol", 10913"replaceWith":function(h){return outil_liste(h,'#');}, 10914"display":true, 10915"selectionType":"line", 10916"forceMultiline":true 10917}, 10918{ 10919"id":"desindenter", 10920"name":"D\u00e9sindenter une liste", 10921"className":"outil_desindenter", 10922"replaceWith":function(h){return outil_desindenter(h);}, 10923"display":true, 10924"selectionType":"line", 10925"forceMultiline":true 10926}, 10927{ 10928"id":"indenter", 10929"name":"Indenter une liste", 10930"className":"outil_indenter", 10931"replaceWith":function(h){return outil_indenter(h);}, 10932"display":true, 10933"selectionType":"line", 10934"forceMultiline":true 10935} 10936] 10937}, 10938{ 10939"name":"Transformer en [lien hypertexte->http:\/\/...]", 10940"key":"L", 10941"className":"outil_link separateur separateur_apres sepLink", 10942"openWith":"[", 10943"closeWith":"->[![Veuillez indiquer l\u2019adresse de votre lien (vous pouvez indiquer une adresse Internet sous la forme http:\/\/www.monsite.com, une adresse courriel, ou simplement indiquer le num\u00e9ro d\u2019un article de ce site.]!]]" 10944}, 10945{ 10946"name":"Transformer en [[Note de bas de page]]", 10947"className":"outil_notes separateur_avant", 10948"openWith":"[[", 10949"closeWith":"]]", 10950"selectionType":"word" 10951}, 10952{ 10953"name":"<quote>Citer un message<\/quote>", 10954"key":"Q", 10955"className":"outil_quote separateur separateur_apres sepGuillemets", 10956"openWith":"\n<quote>", 10957"closeWith":"<\/quote>\n", 10958"selectionType":"word", 10959"dropMenu":[ 10960{ 10961"id":"barre_poesie", 10962"name":"Mettre en forme comme une <poesie>po\u00e9sie<\/poesie>", 10963"className":"outil_poesie", 10964"openWith":"\n<poesie>", 10965"closeWith":"<\/poesie>\n", 10966"display":true, 10967"selectionType":"line" 10968} 10969] 10970}, 10971{
10972"name":"Entourer de \u00ab\u00a0guillemets\u00a0\u00bb", 10973"className":"outil_guillemets", 10974"openWith":"«", 10975"closeWith":"»", 10976"lang":[ 10977"fr", 10978"eo", 10979"cpf", 10980"ar", 10981"es" 10982], 10983"selectionType":"word", 10984"dropMenu":[ 10985{ 10986"id":"guillemets_simples", 10987"name":"Entourer de \u201cguillemets de second niveau\u201d", 10988"className":"outil_guillemets_simples", 10989"openWith":"â", 10990"closeWith":"â", 10991"display":true, 10992"lang":[ 10993"fr", 10994"eo", 10995"cpf", 10996"ar", 10997"es" 10998], 10999"selectionType":"word" 11000} 11001] 11002}, 11003{ 11004"name":"Entourer de \u00ab\u00a0guillemets\u00a0\u00bb", 11005"className":"outil_guillemets_de", 11006"openWith":"â", 11007"closeWith":"â", 11008"lang":[ 11009"bg", 11010"de", 11011"pl", 11012"hr", 11013"src" 11014], 11015"selectionType":"word", 11016"dropMenu":[ 11017{ 11018"id":"guillemets_de_simples", 11019"name":"Entourer de \u201cguillemets de second niveau\u201d", 11020"className":"outil_guillemets_de_simples", 11021"openWith":"‚", 11022"closeWith":"â", 11023"display":true, 11024"lang":[ 11025"bg", 11026"de", 11027"pl", 11028"hr", 11029"src" 11030], 11031"selectionType":"word" 11032} 11033] 11034}, 11035{ 11036"name":"Entourer de \u00ab\u00a0guillemets\u00a0\u00bb", 11037"className":"outil_guillemets_simples separateur_avant", 11038"openWith":"â", 11039"closeWith":"â", 11040"lang_not":[ 11041"fr", 11042"eo", 11043"cpf", 11044"ar", 11045"es", 11046"bg", 11047"de", 11048"pl", 11049"hr", 11050"src" 11051], 11052"selectionType":"word", 11053"dropMenu":[ 11054{ 11055"id":"guillemets_autres_simples", 11056"name":"Entourer de \u201cguillemets de second niveau\u201d", 11057"className":"outil_guillemets_uniques", 11058"openWith":"â", 11059"closeWith":"â", 11060"display":true, 11061"lang_not":[ 11062"fr", 11063"eo", 11064"cpf", 11065"ar", 11066"es", 11067"bg", 11068"de", 11069"pl", 11070"hr", 11071"src" 11072], 11073"selectionType":"word" 11074} 11075] 11076}, 11077{ 11078"name":"Ins\u00e9rer des caract\u00e8res sp\u00e9cifiques", 11079"className":"outil_caracteres separateur separateur_apres sepCaracteres", 11080"dropMenu":[ 11081{ 11082"id":"A_grave", 11083"name":"Ins\u00e9rer un \u00c0", 11084"className":"outil_a_maj_grave", 11085"replaceWith":"Ã", 11086"display":true, 11087"lang":[ 11088"fr", 11089"eo", 11090"cpf" 11091] 11092}, 11093{ 11094"id":"E_aigu", 11095"name":"Ins\u00e9rer un \u00c9", 11096"className":"outil_e_maj_aigu", 11097"replaceWith":"Ã", 11098"display":true, 11099"lang":[ 11100"fr", 11101"eo", 11102"cpf" 11103] 11104}, 11105{ 11106"id":"E_grave", 11107"name":"Ins\u00e9rer un \u00c8", 11108"className":"outil_e_maj_grave", 11109"replaceWith":"Ã", 11110"display":true, 11111"lang":[ 11112"fr", 11113"eo", 11114"cpf" 11115] 11116}, 11117{ 11118"id":"aelig", 11119"name":"Ins\u00e9rer un \u00e6", 11120"className":"outil_aelig", 11121"replaceWith":"æ", 11122"display":true, 11123"lang":[ 11124"fr", 11125"eo", 11126"cpf" 11127] 11128}, 11129{ 11130"id":"AElig", 11131"name":"Ins\u00e9rer un \u00c6", 11132"className":"outil_aelig_maj", 11133"replaceWith":"Ã", 11134"display":true, 11135"lang":[ 11136"fr", 11137"eo", 11138"cpf" 11139] 11140}, 11141{ 11142"id":"oe", 11143"name":"Ins\u00e9rer un \u0153", 11144"className":"outil_oe", 11145"replaceWith":"Å", 11146"display":true, 11147"lang":[ 11148"fr" 11149] 11150}, 11151{ 11152"id":"OE", 11153"name":"Ins\u00e9rer un \u0152", 11154"className":"outil_oe_maj", 11155"replaceWith":"Å", 11156"display":true, 11157"lang":[ 11158"fr" 11159] 11160}, 11161{ 11162"id":"Ccedil", 11163"name":"Ins\u00e9rer un \u00c7", 11164"className":"outil_ccedil_maj", 11165"replaceWith":"Ã", 11166"display":true, 11167"lang":[ 11168"fr", 11169"eo", 11170"cpf" 11171] 11172}, 11173{ 11174"id":"uppercase", 11175"name":"Passer en majuscules", 11176"className":"outil_uppercase", 11177"replaceWith":function(markitup){return markitup.selection.toUpperCase()}, 11178"display":true, 11179"lang":[ 11180"fr", 11181"en" 11182] 11183}, 11184{ 11185"id":"lowercase", 11186"name":"Passer en minuscules", 11187"className":"outil_lowercase", 11188"replaceWith":function(markitup){return markitup.selection.toLowerCase()}, 11189"display":true, 11190"lang":[ 11191"fr", 11192"en" 11193] 11194} 11195] 11196}, 11197{ 11198"name":"TarteAuCitron", 11199"className":"tac_drop separateur_avant", 11200"replaceWith":"", 11201"dropMenu":[ 11202{ 11203"id":"facebook_video", 11204"name":"facebook_video", 11205"className":"tac_facebook_video", 11206"openWith":"<tac_facebook_video", 11207"closeWith":">", 11208"display":true 11209}, 11210{ 11211"id":"youtube", 11212"name":"youtube", 11213"className":"tac_youtube", 11214"openWith":"<tac_youtube", 11215"closeWith":">", 11216"display":true 11217} 11218] 11219}, 11220{ 11221"name":"Ins\u00e9rer un code informatique (`)", 11222"className":"outil_code separateur separateur_apres sepCode", 11223"openWith":"`", 11224"closeWith":"`", 11225"dropMenu":[ 11226{ 11227"id":"cadre", 11228"name":"Ins\u00e9rer un code pr\u00e9format\u00e9 (```)", 11229"className":"outil_cadre", 11230"openWith":"```\n", 11231"closeWith":"\n```", 11232"display":true 11233} 11234] 11235} 11236] 11237} 11238function outil_liste(h,c){ 11239if((s=h.selection)&&(r=s.match(/^-([*#]+) (.*)$/))){ 11240r[1]=r[1].replace(/[#*]/g,c); 11241s='-'+r[1]+' '+r[2]; 11242}else{ 11243s='-'+c+' '+s; 11244} 11245return s; 11246} 11247function outil_indenter(h){ 11248if(s=h.selection){ 11249if(s.substr(0,2)=='-*'){ 11250s='-**'+s.substr(2); 11251}else if(s.substr(0,2)=='-#'){ 11252s='-##'+s.substr(2); 11253}else{ 11254s='-* '+s; 11255} 11256} 11257return s; 11258} 11259function outil_desindenter(h){ 11260if(s=h.selection){ 11261if(s.substr(0,3)=='-**'){ 11262s='-*'+s.substr(3); 11263}else if(s.substr(0,3)=='-* '){ 11264s=s.substr(3); 11265}else if(s.substr(0,3)=='-##'){ 11266s='-#'+s.substr(3); 11267}else if(s.substr(0,3)=='-# '){ 11268s=s.substr(3); 11269} 11270} 11271return s; 11272} 11273function espace_si_accolade(h,openWith,closeWith){ 11274if(s=h.selection){ 11275if(s.charAt(0)=='{'){ 11276return openWith+' '+s+' '+closeWith; 11277} 11278else if(c=h.textarea.selectionStart){ 11279if(h.textarea.value.charAt(c-1)=='{'){ 11280return' '+openWith+s+closeWith+' '; 11281} 11282} 11283} 11284return openWith+s+closeWith; 11285} 11286barre_outils_forum={ 11287"nameSpace":"forum", 11288"previewAutoRefresh":false, 11289"onEnter":{ 11290"keepDefault":false, 11291"selectionType":"return", 11292"replaceWith":"\n" 11293}, 11294"onShiftEnter":{ 11295"keepDefault":false, 11296"replaceWith":"\n_ " 11297}, 11298"onCtrlEnter":{ 11299"keepDefault":false, 11300"replaceWith":"\n\n" 11301}, 11302"markupSet":[ 11303{ 11304"name":"Mettre en {{gras}}", 11305"key":"B", 11306"className":"outil_bold", 11307"replaceWith":function(h){return espace_si_accolade(h,'{{','}}');}, 11308"selectionType":"word" 11309}, 11310{ 11311"name":"Mettre en {italique}", 11312"key":"I", 11313"className":"outil_italic separateur_avant", 11314"replaceWith":function(h){return espace_si_accolade(h,'{','}');}, 11315"selectionType":"word" 11316}, 11317{ 11318"name":"Transformer en [lien hypertexte->http:\/\/...]", 11319"key":"L", 11320"className":"outil_link separateur separateur_apres sepLink separateur_avant", 11321"openWith":"[", 11322"closeWith":"->[![Veuillez indiquer l\u2019adresse de votre lien (vous pouvez indiquer une adresse Internet sous la forme http:\/\/www.monsite.com, une adresse courriel, ou simplement indiquer le num\u00e9ro d\u2019un article de ce site.]!]]" 11323}, 11324{ 11325"name":"<quote>Citer un message<\/quote>", 11326"key":"Q", 11327"className":"outil_quote separateur separateur_apres sepGuillemets", 11328"openWith":"\n<quote>", 11329"closeWith":"<\/quote>\n", 11330"selectionType":"word" 11331}, 11332{
11333"name":"Entourer de \u00ab\u00a0guillemets\u00a0\u00bb", 11334"className":"outil_guillemets", 11335"openWith":"«", 11336"closeWith":"»", 11337"lang":[ 11338"fr", 11339"eo", 11340"cpf", 11341"ar", 11342"es" 11343], 11344"selectionType":"word", 11345"dropMenu":[ 11346{ 11347"id":"guillemets_simples", 11348"name":"Entourer de \u201cguillemets de second niveau\u201d", 11349"className":"outil_guillemets_simples", 11350"openWith":"â", 11351"closeWith":"â", 11352"display":true, 11353"lang":[ 11354"fr", 11355"eo", 11356"cpf", 11357"ar", 11358"es" 11359], 11360"selectionType":"word" 11361} 11362] 11363}, 11364{ 11365"name":"Entourer de \u00ab\u00a0guillemets\u00a0\u00bb", 11366"className":"outil_guillemets_de", 11367"openWith":"â", 11368"closeWith":"â", 11369"lang":[ 11370"bg", 11371"de", 11372"pl", 11373"hr", 11374"src" 11375], 11376"selectionType":"word", 11377"dropMenu":[ 11378{ 11379"id":"guillemets_de_simples", 11380"name":"Entourer de \u201cguillemets de second niveau\u201d", 11381"className":"outil_guillemets_de_simples", 11382"openWith":"‚", 11383"closeWith":"â", 11384"display":true, 11385"lang":[ 11386"bg", 11387"de", 11388"pl", 11389"hr", 11390"src" 11391], 11392"selectionType":"word" 11393} 11394] 11395}, 11396{ 11397"name":"Entourer de \u00ab\u00a0guillemets\u00a0\u00bb", 11398"className":"outil_guillemets_simples separateur_avant", 11399"openWith":"â", 11400"closeWith":"â", 11401"lang_not":[ 11402"fr", 11403"eo", 11404"cpf", 11405"ar", 11406"es", 11407"bg", 11408"de", 11409"pl", 11410"hr", 11411"src" 11412], 11413"selectionType":"word", 11414"dropMenu":[ 11415{ 11416"id":"guillemets_autres_simples", 11417"name":"Entourer de \u201cguillemets de second niveau\u201d", 11418"className":"outil_guillemets_uniques", 11419"openWith":"â", 11420"closeWith":"â", 11421"display":true, 11422"lang_not":[ 11423"fr", 11424"eo", 11425"cpf", 11426"ar", 11427"es", 11428"bg", 11429"de", 11430"pl", 11431"hr", 11432"src" 11433], 11434"selectionType":"word" 11435} 11436] 11437} 11438] 11439} 11440function outil_liste(h,c){ 11441if((s=h.selection)&&(r=s.match(/^-([*#]+) (.*)$/))){ 11442r[1]=r[1].replace(/[#*]/g,c); 11443s='-'+r[1]+' '+r[2]; 11444}else{ 11445s='-'+c+' '+s; 11446} 11447return s; 11448} 11449function outil_indenter(h){ 11450if(s=h.selection){ 11451if(s.substr(0,2)=='-*'){ 11452s='-**'+s.substr(2); 11453}else if(s.substr(0,2)=='-#'){ 11454s='-##'+s.substr(2); 11455}else{ 11456s='-* '+s; 11457} 11458} 11459return s; 11460} 11461function outil_desindenter(h){ 11462if(s=h.selection){ 11463if(s.substr(0,3)=='-**'){ 11464s='-*'+s.substr(3); 11465}else if(s.substr(0,3)=='-* '){ 11466s=s.substr(3); 11467}else if(s.substr(0,3)=='-##'){ 11468s='-#'+s.substr(3); 11469}else if(s.substr(0,3)=='-# '){ 11470s=s.substr(3); 11471} 11472} 11473return s; 11474} 11475function espace_si_accolade(h,openWith,closeWith){ 11476if(s=h.selection){ 11477if(s.charAt(0)=='{'){ 11478return openWith+' '+s+' '+closeWith; 11479} 11480else if(c=h.textarea.selectionStart){ 11481if(h.textarea.value.charAt(c-1)=='{'){ 11482return' '+openWith+s+closeWith+' '; 11483} 11484} 11485} 11486return openWith+s+closeWith; 11487} 11488barre_outils_vide={ 11489"nameSpace":"vide", 11490"previewAutoRefresh":false, 11491"markupSet":[] 11492} 11493;(function($){ 11494$.fn.barre_outils=function(nom,settings){ 11495options={ 11496lang:'fr' 11497}; 11498$.extend(options,settings); 11499return $(this) 11500.not('.markItUpEditor, .no_barre') 11501.markItUp(eval('barre_outils_'+nom),{lang:options.lang}) 11502.trigger('markItUpEditor.loaded') 11503.parent().find('.markItUpButton a').attr('tabindex',-1) 11504.end(); 11505}; 11506$.fn.barre_previsualisation=function(settings){ 11507options={ 11508previewParserPath:"index.php?action=porte_plume_previsu", 11509textEditer:"Modifier", 11510textVoir:"Voir" 11511}; 11512$.extend(options,settings); 11513return $(this) 11514.not('.pp_previsualisation, .no_previsualisation') 11515.previsu_spip(options) 11516.trigger('markItUpPreview.loaded') 11517.parent().find('.markItUpTabs a').attr('tabindex',-1) 11518.end(); 11519}; 11520$(window).on('load',function(){ 11521function barrebouilles(){ 11522$('.formulaire_spip textarea.inserer_barre_forum').barre_outils('forum'); 11523$('.formulaire_spip textarea.inserer_barre_edition').barre_outils('edition'); 11524$('.formulaire_spip textarea.inserer_previsualisation').barre_previsualisation(); 11525$('textarea.textarea_forum').barre_outils('forum'); 11526$('.formulaire_forum textarea[name=texte]').barre_outils('forum'); 11527$('.formulaire_spip textarea[name=texte]') 11528.barre_outils('edition').end() 11529.barre_previsualisation(); 11530} 11531barrebouilles(); 11532onAjaxLoad(barrebouilles); 11533}); 11534})(jQuery); 11535 11536 11537/* plugins/auto/boutonstexte/v3.1.0/javascript/boutonstexte.js?1720198672 */ 11538 11539if(typeof jQuery=='function') 11540(function($){ 11541$(function(){ 11542var boutonstexte=new boutonsTexte(boutonstexte_options); 11543var boutons=$('<span class="boutonstexte"></span>'); 11544if(!$(".textsizeup").length&&boutonstexte.txtSizeUp){ 11545$('<a href="#" class="textsizeup auto"><img src="'+boutonstexte.imgPath+'fontsizeup.svg" alt="'+boutonstexte.txtSizeUp+'" /></a>') 11546.appendTo(boutons); 11547} 11548if(!$(".textsizedown").length&&boutonstexte.txtSizeDown){ 11549$('<a href="#" class="textsizedown auto"><img src="'+boutonstexte.imgPath+'fontsizedown.svg" alt="'+boutonstexte.txtSizeDown+'" /></a>') 11550.appendTo(boutons); 11551} 11552if(!$(".textonly").length&&boutonstexte.txtOnly){ 11553$('<a href="#" class="textonly auto"><img src="'+boutonstexte.imgPath+'textonly.svg" alt="'+boutonstexte.txtOnly+'" /></a>') 11554.appendTo(boutons); 11555} 11556if(boutons.html()){ 11557$(boutonstexte.selector).before(boutons); 11558} 11559$("img.textsizeup,a.textsizeup,button.textsizeup") 11560.click(function(e){ 11561boutonstexte.fontBigger($(this).is('.auto')?this:null); 11562e.stopPropagation(); 11563return false;
11564}) 11565.attr({'title':boutonstexte.txtSizeUp}); 11566$("img.textsizedown,a.textsizedown,button.textsizedown") 11567.click(function(e){ 11568boutonstexte.fontSmaller($(this).is('.auto')?this:null); 11569e.stopPropagation(); 11570return false; 11571}) 11572.attr({'title':boutonstexte.txtSizeDown}); 11573$("img.textonly,a.textonly,button.textonly") 11574.click(function(e){ 11575boutonstexte.texteOnly($(this).is('.auto')?this:null); 11576e.stopPropagation(); 11577return false; 11578}) 11579.attr({'title':boutonstexte.txtOnly}); 11580}); 11581})(jQuery); 11582function boutonsTexte(options) 11583{ 11584this.rate=1.2; 11585this.selector="#contenu .texte"; 11586for(opt in options){ 11587this[opt]=options[opt]; 11588} 11589} 11590boutonsTexte.prototype.texteOnly=function(elt) 11591{ 11592var that=this; 11593var texte=jQuery(elt).parent().next(); 11594jQuery("body").toggleClass('onlytext_wrapper'); 11595if(this['backTextOnly']){ 11596texte.removeClass("onlytext"); 11597jQuery(elt).attr({'title':that.txtOnly}). 11598parent().insertBefore(jQuery("#marktextonly")).after(texte); 11599jQuery("#marktextonly").remove(); 11600jQuery('body').children().removeClass('onlytext_hide'); 11601this.backTextOnly=false; 11602return; 11603} 11604texte.addClass("onlytext"); 11605jQuery(texte[texte.length-1]).after('<div id="marktextonly">marktextonly</div>'); 11606$('body>*').addClass('onlytext_hide'); 11607jQuery(elt).attr({'title':that.txtBackSpip}). 11608parent().prependTo("body").after(texte); 11609this.backTextOnly=true; 11610} 11611boutonsTexte.prototype.fontBigger=function(elt) 11612{ 11613var that=this; 11614var work=elt?jQuery(elt).parent().next():jQuery(this.selector); 11615work.each(function(){ 11616wrap=jQuery(this); 11617if(jQuery.browser.msie){ 11618var wrap=jQuery(this).children('.fontwrap'); 11619if(!wrap.length){ 11620jQuery(this).html("<span class='fontwrap' style='font-size:100%'>" 11621+jQuery(this).html()+"</span>"); 11622var wrap=jQuery(this).children('.fontwrap'); 11623} 11624} 11625var m=wrap.css('fontSize').match(/(\d+(?:\.\d+)?)(.*)/); 11626wrap.css('fontSize',(that.rate*parseFloat(m[1]))+m[2]); 11627}); 11628} 11629boutonsTexte.prototype.fontSmaller=function(elt) 11630{ 11631var that=this; 11632var work=elt?jQuery(elt).parent().next():jQuery(this.selector); 11633work.each(function(){ 11634wrap=jQuery(this); 11635if(jQuery.browser.msie){ 11636var wrap=jQuery(this).children('.fontwrap'); 11637if(!wrap.length){ 11638jQuery(this).html("<span class='fontwrap' style='font-size:100%'>" 11639+jQuery(this).html()+"</span>"); 11640var wrap=jQuery(this).children('.fontwrap'); 11641} 11642} 11643var m=wrap.css('fontSize').match(/(\d+(?:\.\d+)?)(.*)/); 11644wrap.css('fontSize',(parseFloat(m[1])/that.rate)+m[2]); 11645}); 11646} 11647function dump(elt) 11648{var txt='';for(var prop in elt){txt+=prop+'='+elt[prop]+'/';}alert(txt);} 11649 11650 11651/* plugins/auto/sjcycle/v3.6.0/lib/cycle2/jquery.cycle2.js?1720198658 */ 11652 11653;(function($){ 11654"use strict"; 11655var version='2.1.6'; 11656$.fn.cycle=function(options){ 11657var o; 11658if(this.length===0&&!$.isReady){ 11659o={s:this.selector,c:this.context}; 11660$.fn.cycle.log('requeuing slideshow (dom not ready)'); 11661$(function(){ 11662$(o.s,o.c).cycle(options); 11663}); 11664return this; 11665} 11666return this.each(function(){ 11667var data,opts,shortName,val; 11668var container=$(this); 11669var log=$.fn.cycle.log; 11670if(container.data('cycle.opts')) 11671return; 11672if(container.data('cycle-log')===false|| 11673(options&&options.log===false)|| 11674(opts&&opts.log===false)){ 11675log=$.noop; 11676} 11677log('--c2 init--'); 11678data=container.data(); 11679for(var p in data){ 11680if(data.hasOwnProperty(p)&&/^cycle[A-Z]+/.test(p)){ 11681val=data[p]; 11682shortName=p.match(/^cycle(.*)/)[1].replace(/^[A-Z]/,lowerCase); 11683log(shortName+':',val,'('+typeof val+')'); 11684data[shortName]=val; 11685} 11686} 11687opts=$.extend({},$.fn.cycle.defaults,data,options||{}); 11688opts.timeoutId=0; 11689opts.paused=opts.paused||false; 11690opts.container=container; 11691opts._maxZ=opts.maxZ; 11692opts.API=$.extend({_container:container},$.fn.cycle.API); 11693opts.API.log=log; 11694opts.API.trigger=function(eventName,args){ 11695opts.container.trigger(eventName,args); 11696return opts.API; 11697}; 11698container.data('cycle.opts',opts); 11699container.data('cycle.API',opts.API); 11700opts.API.trigger('cycle-bootstrap',[opts,opts.API]); 11701opts.API.addInitialSlides(); 11702opts.API.preInitSlideshow(); 11703if(opts.slides.length) 11704opts.API.initSlideshow(); 11705}); 11706}; 11707$.fn.cycle.API={ 11708opts:function(){ 11709return this._container.data('cycle.opts'); 11710}, 11711addInitialSlides:function(){ 11712var opts=this.opts(); 11713var slides=opts.slides; 11714opts.slideCount=0; 11715opts.slides=$(); 11716slides=slides.jquery?slides:opts.container.find(slides); 11717if(opts.random){ 11718slides.sort(function(){return Math.random()-0.5;}); 11719} 11720opts.API.add(slides); 11721}, 11722preInitSlideshow:function(){ 11723var opts=this.opts(); 11724opts.API.trigger('cycle-pre-initialize',[opts]); 11725var tx=$.fn.cycle.transitions[opts.fx]; 11726if(tx&&$.isFunction(tx.preInit)) 11727tx.preInit(opts); 11728opts._preInitialized=true; 11729}, 11730postInitSlideshow:function(){ 11731var opts=this.opts(); 11732opts.API.trigger('cycle-post-initialize',[opts]); 11733var tx=$.fn.cycle.transitions[opts.fx]; 11734if(tx&&$.isFunction(tx.postInit)) 11735tx.postInit(opts); 11736}, 11737initSlideshow:function(){ 11738var opts=this.opts(); 11739var pauseObj=opts.container; 11740var slideOpts; 11741opts.API.calcFirstSlide(); 11742if(opts.container.css('position')=='static') 11743opts.container.css('position','relative'); 11744$(opts.slides[opts.currSlide]).css({ 11745opacity:1, 11746display:'block', 11747visibility:'visible' 11748}); 11749opts.API.stackSlides(opts.slides[opts.currSlide],opts.slides[opts.nextSlide],!opts.reverse); 11750if(opts.pauseOnHover){ 11751if(opts.pauseOnHover!==true) 11752pauseObj=$(opts.pauseOnHover); 11753pauseObj.hover( 11754function(){opts.API.pause(true);}, 11755function(){opts.API.resume(true);} 11756); 11757}
11758if(opts.timeout){ 11759slideOpts=opts.API.getSlideOpts(opts.currSlide); 11760opts.API.queueTransition(slideOpts,slideOpts.timeout+opts.delay); 11761} 11762opts._initialized=true; 11763opts.API.updateView(true); 11764opts.API.trigger('cycle-initialized',[opts]); 11765opts.API.postInitSlideshow(); 11766}, 11767pause:function(hover){ 11768var opts=this.opts(), 11769slideOpts=opts.API.getSlideOpts(), 11770alreadyPaused=opts.hoverPaused||opts.paused; 11771if(hover) 11772opts.hoverPaused=true; 11773else 11774opts.paused=true; 11775if(!alreadyPaused){ 11776opts.container.addClass('cycle-paused'); 11777opts.API.trigger('cycle-paused',[opts]).log('cycle-paused'); 11778if(slideOpts.timeout){ 11779clearTimeout(opts.timeoutId); 11780opts.timeoutId=0; 11781opts._remainingTimeout-=($.now()-opts._lastQueue); 11782if(opts._remainingTimeout<0||isNaN(opts._remainingTimeout)) 11783opts._remainingTimeout=undefined; 11784} 11785} 11786}, 11787resume:function(hover){ 11788var opts=this.opts(), 11789alreadyResumed=!opts.hoverPaused&&!opts.paused, 11790remaining; 11791if(hover) 11792opts.hoverPaused=false; 11793else 11794opts.paused=false; 11795if(!alreadyResumed){ 11796opts.container.removeClass('cycle-paused'); 11797if(opts.slides.filter(':animated').length===0) 11798opts.API.queueTransition(opts.API.getSlideOpts(),opts._remainingTimeout); 11799opts.API.trigger('cycle-resumed',[opts,opts._remainingTimeout]).log('cycle-resumed'); 11800} 11801}, 11802add:function(slides,prepend){ 11803var opts=this.opts(); 11804var oldSlideCount=opts.slideCount; 11805var startSlideshow=false; 11806var len; 11807if($.type(slides)=='string') 11808slides=$.trim(slides); 11809$(slides).each(function(i){ 11810var slideOpts; 11811var slide=$(this); 11812if(prepend) 11813opts.container.prepend(slide); 11814else 11815opts.container.append(slide); 11816opts.slideCount++; 11817slideOpts=opts.API.buildSlideOpts(slide); 11818if(prepend) 11819opts.slides=$(slide).add(opts.slides); 11820else 11821opts.slides=opts.slides.add(slide); 11822opts.API.initSlide(slideOpts,slide,--opts._maxZ); 11823slide.data('cycle.opts',slideOpts); 11824opts.API.trigger('cycle-slide-added',[opts,slideOpts,slide]); 11825}); 11826opts.API.updateView(true); 11827startSlideshow=opts._preInitialized&&(oldSlideCount<2&&opts.slideCount>=1); 11828if(startSlideshow){ 11829if(!opts._initialized) 11830opts.API.initSlideshow(); 11831else if(opts.timeout){ 11832len=opts.slides.length; 11833opts.nextSlide=opts.reverse?len-1:1; 11834if(!opts.timeoutId){ 11835opts.API.queueTransition(opts); 11836} 11837} 11838} 11839}, 11840calcFirstSlide:function(){ 11841var opts=this.opts(); 11842var firstSlideIndex; 11843firstSlideIndex=parseInt(opts.startingSlide||0,10); 11844if(firstSlideIndex>=opts.slides.length||firstSlideIndex<0) 11845firstSlideIndex=0; 11846opts.currSlide=firstSlideIndex; 11847if(opts.reverse){ 11848opts.nextSlide=firstSlideIndex-1; 11849if(opts.nextSlide<0) 11850opts.nextSlide=opts.slides.length-1; 11851} 11852else{ 11853opts.nextSlide=firstSlideIndex+1; 11854if(opts.nextSlide==opts.slides.length) 11855opts.nextSlide=0; 11856} 11857}, 11858calcNextSlide:function(){ 11859var opts=this.opts(); 11860var roll; 11861if(opts.reverse){ 11862roll=(opts.nextSlide-1)<0; 11863opts.nextSlide=roll?opts.slideCount-1:opts.nextSlide-1; 11864opts.currSlide=roll?0:opts.nextSlide+1; 11865} 11866else{ 11867roll=(opts.nextSlide+1)==opts.slides.length; 11868opts.nextSlide=roll?0:opts.nextSlide+1; 11869opts.currSlide=roll?opts.slides.length-1:opts.nextSlide-1; 11870} 11871}, 11872calcTx:function(slideOpts,manual){ 11873var opts=slideOpts; 11874var tx; 11875if(opts._tempFx) 11876tx=$.fn.cycle.transitions[opts._tempFx]; 11877else if(manual&&opts.manualFx) 11878tx=$.fn.cycle.transitions[opts.manualFx]; 11879if(!tx) 11880tx=$.fn.cycle.transitions[opts.fx]; 11881opts._tempFx=null; 11882this.opts()._tempFx=null; 11883if(!tx){ 11884tx=$.fn.cycle.transitions.fade; 11885opts.API.log('Transition "'+opts.fx+'" not found. Using fade.'); 11886} 11887return tx; 11888}, 11889prepareTx:function(manual,fwd){ 11890var opts=this.opts(); 11891var after,curr,next,slideOpts,tx; 11892if(opts.slideCount<2){ 11893opts.timeoutId=0; 11894return; 11895} 11896if(manual&&(!opts.busy||opts.manualTrump)){ 11897opts.API.stopTransition(); 11898opts.busy=false; 11899clearTimeout(opts.timeoutId); 11900opts.timeoutId=0; 11901} 11902if(opts.busy) 11903return; 11904if(opts.timeoutId===0&&!manual) 11905return; 11906curr=opts.slides[opts.currSlide]; 11907next=opts.slides[opts.nextSlide]; 11908slideOpts=opts.API.getSlideOpts(opts.nextSlide); 11909tx=opts.API.calcTx(slideOpts,manual); 11910opts._tx=tx; 11911if(manual&&slideOpts.manualSpeed!==undefined) 11912slideOpts.speed=slideOpts.manualSpeed; 11913if(opts.nextSlide!=opts.currSlide&& 11914(manual||(!opts.paused&&!opts.hoverPaused&&opts.timeout))){ 11915opts.API.trigger('cycle-before',[slideOpts,curr,next,fwd]); 11916if(tx.before) 11917tx.before(slideOpts,curr,next,fwd); 11918after=function(){ 11919opts.busy=false; 11920if(!opts.container.data('cycle.opts')) 11921return; 11922if(tx.after) 11923tx.after(slideOpts,curr,next,fwd); 11924opts.API.trigger('cycle-after',[slideOpts,curr,next,fwd]); 11925opts.API.queueTransition(slideOpts); 11926opts.API.updateView(true); 11927}; 11928opts.busy=true; 11929if(tx.transition) 11930tx.transition(slideOpts,curr,next,fwd,after); 11931else 11932opts.API.doTransition(slideOpts,curr,next,fwd,after); 11933opts.API.calcNextSlide(); 11934opts.API.updateView(); 11935}else{ 11936opts.API.queueTransition(slideOpts); 11937} 11938}, 11939doTransition:function(slideOpts,currEl,nextEl,fwd,callback){ 11940var opts=slideOpts; 11941var curr=$(currEl),next=$(nextEl); 11942var fn=function(){ 11943next.animate(opts.animIn||{opacity:1},opts.speed,opts.easeIn||opts.easing,callback); 11944}; 11945next.css(opts.cssBefore||{}); 11946curr.animate(opts.animOut||{},opts.speed,opts.easeOut||opts.easing,function(){ 11947curr.css(opts.cssAfter||{}); 11948if(!opts.sync){ 11949fn(); 11950} 11951}); 11952if(opts.sync){ 11953fn(); 11954} 11955}, 11956queueTransition:function(slideOpts,specificTimeout){ 11957var opts=this.opts(); 11958var timeout=specificTimeout!==undefined?specificTimeout:slideOpts.timeout; 11959if(opts.nextSlide===0&&--opts.loop===0){ 11960opts.API.log('terminating; loop=0'); 11961opts.timeout=0; 11962if(timeout){ 11963setTimeout(function(){ 11964opts.API.trigger('cycle-finished',[opts]); 11965},timeout); 11966} 11967else{ 11968opts.API.trigger('cycle-finished',[opts]); 11969} 11970opts.nextSlide=opts.currSlide; 11971return; 11972}
11973if(opts.continueAuto!==undefined){ 11974if(opts.continueAuto===false|| 11975($.isFunction(opts.continueAuto)&&opts.continueAuto()===false)){ 11976opts.API.log('terminating automatic transitions'); 11977opts.timeout=0; 11978if(opts.timeoutId) 11979clearTimeout(opts.timeoutId); 11980return; 11981} 11982} 11983if(timeout){ 11984opts._lastQueue=$.now(); 11985if(specificTimeout===undefined) 11986opts._remainingTimeout=slideOpts.timeout; 11987if(!opts.paused&&!opts.hoverPaused){ 11988opts.timeoutId=setTimeout(function(){ 11989opts.API.prepareTx(false,!opts.reverse); 11990},timeout); 11991} 11992} 11993}, 11994stopTransition:function(){ 11995var opts=this.opts(); 11996if(opts.slides.filter(':animated').length){ 11997opts.slides.stop(false,true); 11998opts.API.trigger('cycle-transition-stopped',[opts]); 11999} 12000if(opts._tx&&opts._tx.stopTransition) 12001opts._tx.stopTransition(opts); 12002}, 12003advanceSlide:function(val){ 12004var opts=this.opts(); 12005clearTimeout(opts.timeoutId); 12006opts.timeoutId=0; 12007opts.nextSlide=opts.currSlide+val; 12008if(opts.nextSlide<0) 12009opts.nextSlide=opts.slides.length-1; 12010else if(opts.nextSlide>=opts.slides.length) 12011opts.nextSlide=0; 12012opts.API.prepareTx(true,val>=0); 12013return false; 12014}, 12015buildSlideOpts:function(slide){ 12016var opts=this.opts(); 12017var val,shortName; 12018var slideOpts=slide.data()||{}; 12019for(var p in slideOpts){ 12020if(slideOpts.hasOwnProperty(p)&&/^cycle[A-Z]+/.test(p)){ 12021val=slideOpts[p]; 12022shortName=p.match(/^cycle(.*)/)[1].replace(/^[A-Z]/,lowerCase); 12023opts.API.log('['+(opts.slideCount-1)+']',shortName+':',val,'('+typeof val+')'); 12024slideOpts[shortName]=val; 12025} 12026} 12027slideOpts=$.extend({},$.fn.cycle.defaults,opts,slideOpts); 12028slideOpts.slideNum=opts.slideCount; 12029try{ 12030delete slideOpts.API; 12031delete slideOpts.slideCount; 12032delete slideOpts.currSlide; 12033delete slideOpts.nextSlide; 12034delete slideOpts.slides; 12035}catch(e){ 12036} 12037return slideOpts; 12038}, 12039getSlideOpts:function(index){ 12040var opts=this.opts(); 12041if(index===undefined) 12042index=opts.currSlide; 12043var slide=opts.slides[index]; 12044var slideOpts=$(slide).data('cycle.opts'); 12045return $.extend({},opts,slideOpts); 12046}, 12047initSlide:function(slideOpts,slide,suggestedZindex){ 12048var opts=this.opts(); 12049slide.css(slideOpts.slideCss||{}); 12050if(suggestedZindex>0) 12051slide.css('zIndex',suggestedZindex); 12052if(isNaN(slideOpts.speed)) 12053slideOpts.speed=$.fx.speeds[slideOpts.speed]||$.fx.speeds._default; 12054if(!slideOpts.sync) 12055slideOpts.speed=slideOpts.speed/2; 12056slide.addClass(opts.slideClass); 12057}, 12058updateView:function(isAfter,isDuring,forceEvent){ 12059var opts=this.opts(); 12060if(!opts._initialized) 12061return; 12062var slideOpts=opts.API.getSlideOpts(); 12063var currSlide=opts.slides[opts.currSlide]; 12064if(!isAfter&&isDuring!==true){ 12065opts.API.trigger('cycle-update-view-before',[opts,slideOpts,currSlide]); 12066if(opts.updateView<0) 12067return; 12068} 12069if(opts.slideActiveClass){ 12070opts.slides.removeClass(opts.slideActiveClass) 12071.eq(opts.currSlide).addClass(opts.slideActiveClass); 12072} 12073if(isAfter&&opts.hideNonActive) 12074opts.slides.filter(':not(.'+opts.slideActiveClass+')').css('visibility','hidden'); 12075if(opts.updateView===0){ 12076setTimeout(function(){ 12077opts.API.trigger('cycle-update-view',[opts,slideOpts,currSlide,isAfter]); 12078},slideOpts.speed/(opts.sync?2:1)); 12079} 12080if(opts.updateView!==0) 12081opts.API.trigger('cycle-update-view',[opts,slideOpts,currSlide,isAfter]); 12082if(isAfter) 12083opts.API.trigger('cycle-update-view-after',[opts,slideOpts,currSlide]); 12084}, 12085getComponent:function(name){ 12086var opts=this.opts(); 12087var selector=opts[name]; 12088if(typeof selector==='string'){ 12089return(/^\s*[\>|\+|~]/).test(selector)?opts.container.find(selector):$(selector); 12090} 12091if(selector.jquery) 12092return selector; 12093return $(selector); 12094}, 12095stackSlides:function(curr,next,fwd){ 12096var opts=this.opts(); 12097if(!curr){ 12098curr=opts.slides[opts.currSlide]; 12099next=opts.slides[opts.nextSlide]; 12100fwd=!opts.reverse; 12101} 12102$(curr).css('zIndex',opts.maxZ); 12103var i; 12104var z=opts.maxZ-2; 12105var len=opts.slideCount; 12106if(fwd){ 12107for(i=opts.currSlide+1;i<len;i++) 12108$(opts.slides[i]).css('zIndex',z--); 12109for(i=0;i<opts.currSlide;i++) 12110$(opts.slides[i]).css('zIndex',z--); 12111} 12112else{ 12113for(i=opts.currSlide-1;i>=0;i--) 12114$(opts.slides[i]).css('zIndex',z--); 12115for(i=len-1;i>opts.currSlide;i--) 12116$(opts.slides[i]).css('zIndex',z--); 12117} 12118$(next).css('zIndex',opts.maxZ-1); 12119}, 12120getSlideIndex:function(el){ 12121return this.opts().slides.index(el); 12122} 12123}; 12124$.fn.cycle.log=function log(){ 12125if(window.console&&console.log) 12126console.log('[cycle2] '+Array.prototype.join.call(arguments,' ')); 12127}; 12128$.fn.cycle.version=function(){return'Cycle2: '+version;}; 12129function lowerCase(s){ 12130return(s||'').toLowerCase(); 12131} 12132$.fn.cycle.transitions={ 12133custom:{ 12134}, 12135none:{ 12136before:function(opts,curr,next,fwd){ 12137opts.API.stackSlides(next,curr,fwd); 12138opts.cssBefore={opacity:1,visibility:'visible',display:'block'}; 12139} 12140}, 12141fade:{ 12142before:function(opts,curr,next,fwd){
12143var css=opts.API.getSlideOpts(opts.nextSlide).slideCss||{}; 12144opts.API.stackSlides(curr,next,fwd); 12145opts.cssBefore=$.extend(css,{opacity:0,visibility:'visible',display:'block'}); 12146opts.animIn={opacity:1}; 12147opts.animOut={opacity:0}; 12148} 12149}, 12150fadeout:{ 12151before:function(opts,curr,next,fwd){ 12152var css=opts.API.getSlideOpts(opts.nextSlide).slideCss||{}; 12153opts.API.stackSlides(curr,next,fwd); 12154opts.cssBefore=$.extend(css,{opacity:1,visibility:'visible',display:'block'}); 12155opts.animOut={opacity:0}; 12156} 12157}, 12158scrollHorz:{ 12159before:function(opts,curr,next,fwd){ 12160opts.API.stackSlides(curr,next,fwd); 12161var w=opts.container.css('overflow','hidden').width(); 12162opts.cssBefore={left:fwd?w:-w,top:0,opacity:1,visibility:'visible',display:'block'}; 12163opts.cssAfter={zIndex:opts._maxZ-2,left:0}; 12164opts.animIn={left:0}; 12165opts.animOut={left:fwd?-w:w}; 12166} 12167} 12168}; 12169$.fn.cycle.defaults={ 12170allowWrap:true, 12171autoSelector:'.cycle-slideshow[data-cycle-auto-init!=false]', 12172delay:0, 12173easing:null, 12174fx:'fade', 12175hideNonActive:true, 12176loop:0, 12177manualFx:undefined, 12178manualSpeed:undefined, 12179manualTrump:true, 12180maxZ:100, 12181pauseOnHover:false, 12182reverse:false, 12183slideActiveClass:'cycle-slide-active', 12184slideClass:'cycle-slide', 12185slideCss:{position:'absolute',top:0,left:0}, 12186slides:'> img', 12187speed:500, 12188startingSlide:0, 12189sync:true, 12190timeout:4000, 12191updateView:0 12192}; 12193$(document).ready(function(){ 12194$($.fn.cycle.defaults.autoSelector).cycle(); 12195}); 12196})(jQuery); 12197(function($){ 12198"use strict"; 12199$.extend($.fn.cycle.defaults,{ 12200autoHeight:0, 12201autoHeightSpeed:250, 12202autoHeightEasing:null 12203}); 12204$(document).on('cycle-initialized',function(e,opts){ 12205var autoHeight=opts.autoHeight; 12206var t=$.type(autoHeight); 12207var resizeThrottle=null; 12208var ratio; 12209if(t!=='string'&&t!=='number') 12210return; 12211opts.container.on('cycle-slide-added cycle-slide-removed',initAutoHeight); 12212opts.container.on('cycle-destroyed',onDestroy); 12213if(autoHeight=='container'){ 12214opts.container.on('cycle-before',onBefore); 12215} 12216else if(t==='string'&&/\d+\:\d+/.test(autoHeight)){ 12217ratio=autoHeight.match(/(\d+)\:(\d+)/); 12218ratio=ratio[1]/ratio[2]; 12219opts._autoHeightRatio=ratio; 12220} 12221if(t!=='number'){ 12222opts._autoHeightOnResize=function(){ 12223clearTimeout(resizeThrottle); 12224resizeThrottle=setTimeout(onResize,50); 12225}; 12226$(window).on('resize orientationchange',opts._autoHeightOnResize); 12227} 12228setTimeout(onResize,30); 12229function onResize(){ 12230initAutoHeight(e,opts); 12231} 12232}); 12233function initAutoHeight(e,opts){ 12234var clone,height,sentinelIndex; 12235var autoHeight=opts.autoHeight; 12236if(autoHeight=='container'){ 12237height=$(opts.slides[opts.currSlide]).outerHeight(); 12238opts.container.height(height); 12239} 12240else if(opts._autoHeightRatio){ 12241opts.container.height(opts.container.width()/opts._autoHeightRatio); 12242} 12243else if(autoHeight==='calc'||($.type(autoHeight)=='number'&&autoHeight>=0)){ 12244if(autoHeight==='calc') 12245sentinelIndex=calcSentinelIndex(e,opts); 12246else if(autoHeight>=opts.slides.length) 12247sentinelIndex=0; 12248else 12249sentinelIndex=autoHeight; 12250if(sentinelIndex==opts._sentinelIndex) 12251return; 12252opts._sentinelIndex=sentinelIndex; 12253if(opts._sentinel) 12254opts._sentinel.remove(); 12255clone=$(opts.slides[sentinelIndex].cloneNode(true)); 12256clone.removeAttr('id name rel').find('[id],[name],[rel]').removeAttr('id name rel'); 12257clone.css({ 12258position:'static', 12259visibility:'hidden', 12260display:'block' 12261}).prependTo(opts.container).addClass('cycle-sentinel cycle-slide').removeClass('cycle-slide-active'); 12262clone.find('*').css('visibility','hidden'); 12263opts._sentinel=clone; 12264} 12265} 12266function calcSentinelIndex(e,opts){ 12267var index=0,max=-1; 12268opts.slides.each(function(i){ 12269var h=$(this).height(); 12270if(h>max){ 12271max=h; 12272index=i; 12273} 12274}); 12275return index; 12276} 12277function onBefore(e,opts,outgoing,incoming,forward){ 12278var h=$(incoming).outerHeight(); 12279opts.container.animate({height:h},opts.autoHeightSpeed,opts.autoHeightEasing); 12280} 12281function onDestroy(e,opts){ 12282if(opts._autoHeightOnResize){ 12283$(window).off('resize orientationchange',opts._autoHeightOnResize); 12284opts._autoHeightOnResize=null; 12285} 12286opts.container.off('cycle-slide-added cycle-slide-removed',initAutoHeight); 12287opts.container.off('cycle-destroyed',onDestroy); 12288opts.container.off('cycle-before',onBefore); 12289if(opts._sentinel){ 12290opts._sentinel.remove(); 12291opts._sentinel=null; 12292} 12293} 12294})(jQuery); 12295(function($){ 12296"use strict"; 12297$.extend($.fn.cycle.defaults,{ 12298caption:'> .cycle-caption', 12299captionTemplate:'{{slideNum}} / {{slideCount}}', 12300overlay:'> .cycle-overlay', 12301overlayTemplate:'<div>{{title}}</div><div>{{desc}}</div>', 12302captionModule:'caption' 12303}); 12304$(document).on('cycle-update-view',function(e,opts,slideOpts,currSlide){ 12305if(opts.captionModule!=='caption') 12306return; 12307var el; 12308$.each(['caption','overlay'],function(){ 12309var name=this; 12310var template=slideOpts[name+'Template']; 12311var el=opts.API.getComponent(name); 12312if(el.length&&template){ 12313el.html(opts.API.tmpl(template,slideOpts,opts,currSlide)); 12314el.show(); 12315} 12316else{ 12317el.hide(); 12318} 12319}); 12320}); 12321$(document).on('cycle-destroyed',function(e,opts){ 12322var el; 12323$.each(['caption','overlay'],function(){ 12324var name=this,template=opts[name+'Template']; 12325if(opts[name]&&template){ 12326el=opts.API.getComponent('caption'); 12327el.empty(); 12328} 12329}); 12330}); 12331})(jQuery); 12332(function($){ 12333"use strict"; 12334var c2=$.fn.cycle; 12335$.fn.cycle=function(options){ 12336var cmd,cmdFn,opts; 12337var args=$.makeArray(arguments); 12338if($.type(options)=='number'){ 12339return this.cycle('goto',options); 12340} 12341if($.type(options)=='string'){ 12342return this.each(function(){ 12343var cmdArgs; 12344cmd=options; 12345opts=$(this).data('cycle.opts'); 12346if(opts===undefined){ 12347c2.log('slideshow must be initialized before sending commands; "'+cmd+'" ignored'); 12348return; 12349} 12350else{ 12351cmd=cmd=='goto'?'jump':cmd; 12352cmdFn=opts.API[cmd]; 12353if($.isFunction(cmdFn)){ 12354cmdArgs=$.makeArray(args); 12355cmdArgs.shift(); 12356return cmdFn.apply(opts.API,cmdArgs); 12357} 12358else{ 12359c2.log('unknown command: ',cmd); 12360} 12361} 12362}); 12363} 12364else{ 12365return c2.apply(this,arguments); 12366} 12367}; 12368$.extend($.fn.cycle,c2); 12369$.extend(c2.API,{ 12370next:function(){ 12371var opts=this.opts(); 12372if(opts.busy&&!opts.manualTrump) 12373return; 12374var count=opts.reverse?-1:1; 12375if(opts.allowWrap===false&&(opts.currSlide+count)>=opts.slideCount) 12376return; 12377opts.API.advanceSlide(count); 12378opts.API.trigger('cycle-next',[opts]).log('cycle-next'); 12379}, 12380prev:function(){ 12381var opts=this.opts(); 12382if(opts.busy&&!opts.manualTrump) 12383return; 12384var count=opts.reverse?1:-1; 12385if(opts.allowWrap===false&&(opts.currSlide+count)<0) 12386return; 12387opts.API.advanceSlide(count); 12388opts.API.trigger('cycle-prev',[opts]).log('cycle-prev'); 12389}, 12390destroy:function(){ 12391this.stop(); 12392var opts=this.opts(); 12393var clean=$.isFunction($._data)?$._data:$.noop; 12394clearTimeout(opts.timeoutId); 12395opts.timeoutId=0; 12396opts.API.stop(); 12397opts.API.trigger('cycle-destroyed',[opts]).log('cycle-destroyed'); 12398opts.container.removeData(); 12399clean(opts.container[0],'parsedAttrs',false); 12400if(!opts.retainStylesOnDestroy){ 12401opts.container.removeAttr('style'); 12402opts.slides.removeAttr('style'); 12403opts.slides.removeClass(opts.slideActiveClass); 12404} 12405opts.slides.each(function(){ 12406var slide=$(this); 12407slide.removeData(); 12408slide.removeClass(opts.slideClass); 12409clean(this,'parsedAttrs',false); 12410}); 12411}, 12412jump:function(index,fx){ 12413var fwd; 12414var opts=this.opts(); 12415if(opts.busy&&!opts.manualTrump) 12416return; 12417var num=parseInt(index,10); 12418if(isNaN(num)||num<0||num>=opts.slides.length){
12419opts.API.log('goto: invalid slide index: '+num); 12420return; 12421} 12422if(num==opts.currSlide){ 12423opts.API.log('goto: skipping, already on slide',num); 12424return; 12425} 12426opts.nextSlide=num; 12427clearTimeout(opts.timeoutId); 12428opts.timeoutId=0; 12429opts.API.log('goto: ',num,' (zero-index)'); 12430fwd=opts.currSlide<opts.nextSlide; 12431opts._tempFx=fx; 12432opts.API.prepareTx(true,fwd); 12433}, 12434stop:function(){ 12435var opts=this.opts(); 12436var pauseObj=opts.container; 12437clearTimeout(opts.timeoutId); 12438opts.timeoutId=0; 12439opts.API.stopTransition(); 12440if(opts.pauseOnHover){ 12441if(opts.pauseOnHover!==true) 12442pauseObj=$(opts.pauseOnHover); 12443pauseObj.off('mouseenter mouseleave'); 12444} 12445opts.API.trigger('cycle-stopped',[opts]).log('cycle-stopped'); 12446}, 12447reinit:function(){ 12448var opts=this.opts(); 12449opts.API.destroy(); 12450opts.container.cycle(); 12451}, 12452remove:function(index){ 12453var opts=this.opts(); 12454var slide,slideToRemove,slides=[],slideNum=1; 12455for(var i=0;i<opts.slides.length;i++){ 12456slide=opts.slides[i]; 12457if(i==index){ 12458slideToRemove=slide; 12459} 12460else{ 12461slides.push(slide); 12462$(slide).data('cycle.opts').slideNum=slideNum; 12463slideNum++; 12464} 12465} 12466if(slideToRemove){ 12467opts.slides=$(slides); 12468opts.slideCount--; 12469$(slideToRemove).remove(); 12470if(index==opts.currSlide) 12471opts.API.advanceSlide(1); 12472else if(index<opts.currSlide) 12473opts.currSlide--; 12474else 12475opts.currSlide++; 12476opts.API.trigger('cycle-slide-removed',[opts,index,slideToRemove]).log('cycle-slide-removed'); 12477opts.API.updateView(); 12478} 12479} 12480}); 12481$(document).on('click.cycle','[data-cycle-cmd]',function(e){ 12482e.preventDefault(); 12483var el=$(this); 12484var command=el.data('cycle-cmd'); 12485var context=el.data('cycle-context')||'.cycle-slideshow'; 12486$(context).cycle(command,el.data('cycle-arg')); 12487}); 12488})(jQuery); 12489(function($){ 12490"use strict"; 12491$(document).on('cycle-pre-initialize',function(e,opts){ 12492onHashChange(opts,true); 12493opts._onHashChange=function(){ 12494onHashChange(opts,false); 12495}; 12496$(window).on('hashchange',opts._onHashChange); 12497}); 12498$(document).on('cycle-update-view',function(e,opts,slideOpts){ 12499if(slideOpts.hash&&('#'+slideOpts.hash)!=window.location.hash){ 12500opts._hashFence=true; 12501window.location.hash=slideOpts.hash; 12502} 12503}); 12504$(document).on('cycle-destroyed',function(e,opts){ 12505if(opts._onHashChange){ 12506$(window).off('hashchange',opts._onHashChange); 12507} 12508}); 12509function onHashChange(opts,setStartingSlide){ 12510var hash; 12511if(opts._hashFence){ 12512opts._hashFence=false; 12513return; 12514} 12515hash=window.location.hash.substring(1); 12516opts.slides.each(function(i){ 12517if($(this).data('cycle-hash')==hash){ 12518if(setStartingSlide===true){ 12519opts.startingSlide=i; 12520} 12521else{ 12522var fwd=opts.currSlide<i; 12523opts.nextSlide=i; 12524opts.API.prepareTx(true,fwd); 12525} 12526return false; 12527} 12528}); 12529} 12530})(jQuery); 12531(function($){ 12532"use strict"; 12533$.extend($.fn.cycle.defaults,{ 12534loader:false 12535}); 12536$(document).on('cycle-bootstrap',function(e,opts){ 12537var addFn; 12538if(!opts.loader) 12539return; 12540addFn=opts.API.add; 12541opts.API.add=add; 12542function add(slides,prepend){ 12543var slideArr=[]; 12544if($.type(slides)=='string') 12545slides=$.trim(slides); 12546else if($.type(slides)==='array'){ 12547for(var i=0;i<slides.length;i++) 12548slides[i]=$(slides[i])[0]; 12549} 12550slides=$(slides); 12551var slideCount=slides.length; 12552if(!slideCount) 12553return; 12554slides.css('visibility','hidden').appendTo('body').each(function(i){ 12555var count=0; 12556var slide=$(this); 12557var images=slide.is('img')?slide:slide.find('img'); 12558slide.data('index',i); 12559images=images.filter(':not(.cycle-loader-ignore)').filter(':not([src=""])'); 12560if(!images.length){ 12561--slideCount; 12562slideArr.push(slide); 12563return; 12564} 12565count=images.length; 12566images.each(function(){ 12567if(this.complete){ 12568imageLoaded(); 12569} 12570else{ 12571$(this).load(function(){ 12572imageLoaded(); 12573}).on("error",function(){ 12574if(--count===0){ 12575opts.API.log('slide skipped; img not loaded:',this.src); 12576if(--slideCount===0&&opts.loader=='wait'){ 12577addFn.apply(opts.API,[slideArr,prepend]); 12578} 12579} 12580}); 12581} 12582}); 12583function imageLoaded(){ 12584if(--count===0){ 12585--slideCount; 12586addSlide(slide); 12587} 12588} 12589}); 12590if(slideCount) 12591opts.container.addClass('cycle-loading'); 12592function addSlide(slide){ 12593var curr; 12594if(opts.loader=='wait'){ 12595slideArr.push(slide); 12596if(slideCount===0){ 12597slideArr.sort(sorter); 12598addFn.apply(opts.API,[slideArr,prepend]); 12599opts.container.removeClass('cycle-loading'); 12600} 12601} 12602else{ 12603curr=$(opts.slides[opts.currSlide]); 12604addFn.apply(opts.API,[slide,prepend]); 12605curr.show(); 12606opts.container.removeClass('cycle-loading'); 12607} 12608} 12609function sorter(a,b){ 12610return a.data('index')-b.data('index'); 12611} 12612} 12613}); 12614})(jQuery); 12615(function($){ 12616"use strict"; 12617$.extend($.fn.cycle.defaults,{ 12618pager:'> .cycle-pager',
12619pagerActiveClass:'cycle-pager-active', 12620pagerEvent:'click.cycle', 12621pagerEventBubble:undefined, 12622pagerTemplate:'<span>•</span>' 12623}); 12624$(document).on('cycle-bootstrap',function(e,opts,API){ 12625API.buildPagerLink=buildPagerLink; 12626}); 12627$(document).on('cycle-slide-added',function(e,opts,slideOpts,slideAdded){ 12628if(opts.pager){ 12629opts.API.buildPagerLink(opts,slideOpts,slideAdded); 12630opts.API.page=page; 12631} 12632}); 12633$(document).on('cycle-slide-removed',function(e,opts,index,slideRemoved){ 12634if(opts.pager){ 12635var pagers=opts.API.getComponent('pager'); 12636pagers.each(function(){ 12637var pager=$(this); 12638$(pager.children()[index]).remove(); 12639}); 12640} 12641}); 12642$(document).on('cycle-update-view',function(e,opts,slideOpts){ 12643var pagers; 12644if(opts.pager){ 12645pagers=opts.API.getComponent('pager'); 12646pagers.each(function(){ 12647$(this).children().removeClass(opts.pagerActiveClass) 12648.eq(opts.currSlide).addClass(opts.pagerActiveClass); 12649}); 12650} 12651}); 12652$(document).on('cycle-destroyed',function(e,opts){ 12653var pager=opts.API.getComponent('pager'); 12654if(pager){ 12655pager.children().off(opts.pagerEvent); 12656if(opts.pagerTemplate) 12657pager.empty(); 12658} 12659}); 12660function buildPagerLink(opts,slideOpts,slide){ 12661var pagerLink; 12662var pagers=opts.API.getComponent('pager'); 12663pagers.each(function(){ 12664var pager=$(this); 12665if(slideOpts.pagerTemplate){ 12666var markup=opts.API.tmpl(slideOpts.pagerTemplate,slideOpts,opts,slide[0]); 12667pagerLink=$(markup).appendTo(pager); 12668} 12669else{ 12670pagerLink=pager.children().eq(opts.slideCount-1); 12671} 12672pagerLink.on(opts.pagerEvent,function(e){ 12673if(!opts.pagerEventBubble) 12674e.preventDefault(); 12675opts.API.page(pager,e.currentTarget); 12676}); 12677}); 12678} 12679function page(pager,target){ 12680var opts=this.opts(); 12681if(opts.busy&&!opts.manualTrump) 12682return; 12683var index=pager.children().index(target); 12684var nextSlide=index; 12685var fwd=opts.currSlide<nextSlide; 12686if(opts.currSlide==nextSlide){ 12687return; 12688} 12689opts.nextSlide=nextSlide; 12690opts._tempFx=opts.pagerFx; 12691opts.API.prepareTx(true,fwd); 12692opts.API.trigger('cycle-pager-activated',[opts,pager,target]); 12693} 12694})(jQuery); 12695(function($){ 12696"use strict"; 12697$.extend($.fn.cycle.defaults,{ 12698next:'> .cycle-next', 12699nextEvent:'click.cycle', 12700disabledClass:'disabled', 12701prev:'> .cycle-prev', 12702prevEvent:'click.cycle', 12703swipe:false 12704}); 12705$(document).on('cycle-initialized',function(e,opts){ 12706opts.API.getComponent('next').on(opts.nextEvent,function(e){ 12707e.preventDefault(); 12708opts.API.next(); 12709}); 12710opts.API.getComponent('prev').on(opts.prevEvent,function(e){ 12711e.preventDefault(); 12712opts.API.prev(); 12713}); 12714if(opts.swipe){ 12715var nextEvent=opts.swipeVert?'swipeUp.cycle':'swipeLeft.cycle swipeleft.cycle'; 12716var prevEvent=opts.swipeVert?'swipeDown.cycle':'swipeRight.cycle swiperight.cycle'; 12717opts.container.on(nextEvent,function(e){ 12718opts._tempFx=opts.swipeFx; 12719opts.API.next(); 12720}); 12721opts.container.on(prevEvent,function(){ 12722opts._tempFx=opts.swipeFx; 12723opts.API.prev(); 12724}); 12725} 12726}); 12727$(document).on('cycle-update-view',function(e,opts,slideOpts,currSlide){ 12728if(opts.allowWrap) 12729return; 12730var cls=opts.disabledClass; 12731var next=opts.API.getComponent('next'); 12732var prev=opts.API.getComponent('prev'); 12733var prevBoundry=opts._prevBoundry||0; 12734var nextBoundry=(opts._nextBoundry!==undefined)?opts._nextBoundry:opts.slideCount-1; 12735if(opts.currSlide==nextBoundry) 12736next.addClass(cls).prop('disabled',true); 12737else 12738next.removeClass(cls).prop('disabled',false); 12739if(opts.currSlide===prevBoundry) 12740prev.addClass(cls).prop('disabled',true); 12741else 12742prev.removeClass(cls).prop('disabled',false); 12743}); 12744$(document).on('cycle-destroyed',function(e,opts){ 12745opts.API.getComponent('prev').off(opts.nextEvent); 12746opts.API.getComponent('next').off(opts.prevEvent); 12747opts.container.off('swipeleft.cycle swiperight.cycle swipeLeft.cycle swipeRight.cycle swipeUp.cycle swipeDown.cycle'); 12748}); 12749})(jQuery); 12750(function($){ 12751"use strict"; 12752$.extend($.fn.cycle.defaults,{ 12753progressive:false 12754}); 12755$(document).on('cycle-pre-initialize',function(e,opts){ 12756if(!opts.progressive) 12757return; 12758var API=opts.API; 12759var nextFn=API.next; 12760var prevFn=API.prev; 12761var prepareTxFn=API.prepareTx; 12762var type=$.type(opts.progressive); 12763var slides,scriptEl; 12764if(type=='array'){ 12765slides=opts.progressive; 12766} 12767else if($.isFunction(opts.progressive)){ 12768slides=opts.progressive(opts); 12769} 12770else if(type=='string'){ 12771scriptEl=$(opts.progressive); 12772slides=$.trim(scriptEl.html()); 12773if(!slides) 12774return; 12775if(/^(\[)/.test(slides)){ 12776try{ 12777slides=$.parseJSON(slides); 12778} 12779catch(err){ 12780API.log('error parsing progressive slides',err); 12781return; 12782} 12783} 12784else{ 12785slides=slides.split(new RegExp(scriptEl.data('cycle-split')||'\n')); 12786if(!slides[slides.length-1]) 12787slides.pop(); 12788} 12789} 12790if(prepareTxFn){ 12791API.prepareTx=function(manual,fwd){ 12792var index,slide; 12793if(manual||slides.length===0){ 12794prepareTxFn.apply(opts.API,[manual,fwd]); 12795return; 12796} 12797if(fwd&&opts.currSlide==(opts.slideCount-1)){ 12798slide=slides[0]; 12799slides=slides.slice(1); 12800opts.container.one('cycle-slide-added',function(e,opts){ 12801setTimeout(function(){ 12802opts.API.advanceSlide(1); 12803},50); 12804}); 12805opts.API.add(slide); 12806} 12807else if(!fwd&&opts.currSlide===0){
12808index=slides.length-1; 12809slide=slides[index]; 12810slides=slides.slice(0,index); 12811opts.container.one('cycle-slide-added',function(e,opts){ 12812setTimeout(function(){ 12813opts.currSlide=1; 12814opts.API.advanceSlide(-1); 12815},50); 12816}); 12817opts.API.add(slide,true); 12818} 12819else{ 12820prepareTxFn.apply(opts.API,[manual,fwd]); 12821} 12822}; 12823} 12824if(nextFn){ 12825API.next=function(){ 12826var opts=this.opts(); 12827if(slides.length&&opts.currSlide==(opts.slideCount-1)){ 12828var slide=slides[0]; 12829slides=slides.slice(1); 12830opts.container.one('cycle-slide-added',function(e,opts){ 12831nextFn.apply(opts.API); 12832opts.container.removeClass('cycle-loading'); 12833}); 12834opts.container.addClass('cycle-loading'); 12835opts.API.add(slide); 12836} 12837else{ 12838nextFn.apply(opts.API); 12839} 12840}; 12841} 12842if(prevFn){ 12843API.prev=function(){ 12844var opts=this.opts(); 12845if(slides.length&&opts.currSlide===0){ 12846var index=slides.length-1; 12847var slide=slides[index]; 12848slides=slides.slice(0,index); 12849opts.container.one('cycle-slide-added',function(e,opts){ 12850opts.currSlide=1; 12851opts.API.advanceSlide(-1); 12852opts.container.removeClass('cycle-loading'); 12853}); 12854opts.container.addClass('cycle-loading'); 12855opts.API.add(slide,true); 12856} 12857else{ 12858prevFn.apply(opts.API); 12859} 12860}; 12861} 12862}); 12863})(jQuery); 12864(function($){ 12865"use strict"; 12866$.extend($.fn.cycle.defaults,{ 12867tmplRegex:'{{((.)?.*?)}}' 12868}); 12869$.extend($.fn.cycle.API,{ 12870tmpl:function(str,opts){ 12871var regex=new RegExp(opts.tmplRegex||$.fn.cycle.defaults.tmplRegex,'g'); 12872var args=$.makeArray(arguments); 12873args.shift(); 12874return str.replace(regex,function(_,str){ 12875var i,j,obj,prop,names=str.split('.'); 12876for(i=0;i<args.length;i++){ 12877obj=args[i]; 12878if(!obj) 12879continue; 12880if(names.length>1){ 12881prop=obj; 12882for(j=0;j<names.length;j++){ 12883obj=prop; 12884prop=prop[names[j]]||str; 12885} 12886}else{ 12887prop=obj[str]; 12888} 12889if($.isFunction(prop)) 12890return prop.apply(obj,args); 12891if(prop!==undefined&&prop!==null&&prop!=str) 12892return prop; 12893} 12894return str; 12895}); 12896} 12897}); 12898})(jQuery); 12899 12900 12901/* plugins/auto/sjcycle/v3.6.0/lib/cycle2/jquery.cycle2.flip.js?1720198658 */ 12902 12903(function($){ 12904"use strict"; 12905var backface, 12906style=document.createElement('div').style, 12907tx=$.fn.cycle.transitions, 12908supported=style.transform!==undefined|| 12909style.MozTransform!==undefined|| 12910style.webkitTransform!==undefined|| 12911style.oTransform!==undefined|| 12912style.msTransform!==undefined; 12913if(supported&&style.msTransform!==undefined){ 12914style.msTransform='rotateY(0deg)'; 12915if(!style.msTransform) 12916supported=false; 12917} 12918if(supported){ 12919tx.flipHorz=getTransition(getRotate('Y')); 12920tx.flipVert=getTransition(getRotate('X')); 12921backface={ 12922'-webkit-backface-visibility':'hidden', 12923'-moz-backface-visibility':'hidden', 12924'-o-backface-visibility':'hidden', 12925'backface-visibility':'hidden' 12926}; 12927} 12928else{ 12929tx.flipHorz=tx.scrollHorz; 12930tx.flipVert=tx.scrollVert||tx.scrollHorz; 12931} 12932function getTransition(rotateFn){ 12933return{ 12934preInit:function(opts){ 12935opts.slides.css(backface); 12936}, 12937transition:function(slideOpts,currEl,nextEl,fwd,callback){ 12938var opts=slideOpts, 12939curr=$(currEl), 12940next=$(nextEl), 12941speed=opts.speed/2; 12942rotateFn.call(next,-90); 12943next.css({ 12944'display':'block', 12945'visibility':'visible', 12946'background-position':'-90px', 12947'opacity':1 12948}); 12949curr.css('background-position','0px'); 12950curr.animate({backgroundPosition:90},{ 12951step:rotateFn, 12952duration:speed, 12953easing:opts.easeOut||opts.easing, 12954complete:function(){ 12955slideOpts.API.updateView(false,true); 12956next.animate({backgroundPosition:0},{ 12957step:rotateFn, 12958duration:speed, 12959easing:opts.easeIn||opts.easing, 12960complete:callback 12961}); 12962} 12963}); 12964} 12965}; 12966} 12967function getRotate(dir){ 12968return function(degrees){ 12969var el=$(this); 12970el.css({ 12971'-webkit-transform':'rotate'+dir+'('+degrees+'deg)', 12972'-moz-transform':'rotate'+dir+'('+degrees+'deg)', 12973'-ms-transform':'rotate'+dir+'('+degrees+'deg)', 12974'-o-transform':'rotate'+dir+'('+degrees+'deg)', 12975'transform':'rotate'+dir+'('+degrees+'deg)' 12976}); 12977}; 12978} 12979})(jQuery); 12980 12981 12982/* plugins/auto/sjcycle/v3.6.0/lib/cycle2/jquery.cycle2.carousel.js?1720198658 */ 12983 12984(function($){ 12985"use strict"; 12986$(document).on('cycle-bootstrap',function(e,opts,API){ 12987if(opts.fx!=='carousel') 12988return; 12989API.getSlideIndex=function(el){ 12990var slides=this.opts()._carouselWrap.children(); 12991var i=slides.index(el); 12992return i%slides.length; 12993}; 12994API.next=function(){ 12995var count=opts.reverse?-1:1; 12996if(opts.allowWrap===false&&(opts.currSlide+count)>opts.slideCount-opts.carouselVisible) 12997return; 12998opts.API.advanceSlide(count); 12999opts.API.trigger('cycle-next',[opts]).log('cycle-next'); 13000}; 13001}); 13002$.fn.cycle.transitions.carousel={ 13003preInit:function(opts){ 13004opts.hideNonActive=false; 13005opts.container.on('cycle-destroyed',$.proxy(this.onDestroy,opts.API)); 13006opts.API.stopTransition=this.stopTransition; 13007for(var i=0;i<opts.startingSlide;i++){ 13008opts.container.append(opts.slides[0]); 13009} 13010}, 13011postInit:function(opts){ 13012var i,j,slide,pagerCutoffIndex,wrap; 13013var vert=opts.carouselVertical; 13014if(opts.carouselVisible&&opts.carouselVisible>opts.slideCount) 13015opts.carouselVisible=opts.slideCount-1; 13016var visCount=opts.carouselVisible||opts.slides.length; 13017var slideCSS={display:vert?'block':'inline-block',position:'static'}; 13018opts.container.css({position:'relative',overflow:'hidden'}); 13019opts.slides.css(slideCSS); 13020opts._currSlide=opts.currSlide;
13021wrap=$('<div class="cycle-carousel-wrap"></div>') 13022.prependTo(opts.container) 13023.css({margin:0,padding:0,top:0,left:0,position:'absolute'}) 13024.append(opts.slides); 13025opts._carouselWrap=wrap; 13026if(!vert) 13027wrap.css('white-space','nowrap'); 13028if(opts.allowWrap!==false){ 13029for(j=0;j<(opts.carouselVisible===undefined?2:1);j++){ 13030for(i=0;i<opts.slideCount;i++){ 13031wrap.append(opts.slides[i].cloneNode(true)); 13032} 13033i=opts.slideCount; 13034while(i--){ 13035wrap.prepend(opts.slides[i].cloneNode(true)); 13036} 13037} 13038wrap.find('.cycle-slide-active').removeClass('cycle-slide-active'); 13039opts.slides.eq(opts.startingSlide).addClass('cycle-slide-active'); 13040} 13041if(opts.pager&&opts.allowWrap===false){ 13042pagerCutoffIndex=opts.slideCount-visCount; 13043$(opts.pager).children().filter(':gt('+pagerCutoffIndex+')').hide(); 13044} 13045opts._nextBoundry=opts.slideCount-opts.carouselVisible; 13046this.prepareDimensions(opts); 13047}, 13048prepareDimensions:function(opts){ 13049var dim,offset,pagerCutoffIndex,tmp; 13050var vert=opts.carouselVertical; 13051var visCount=opts.carouselVisible||opts.slides.length; 13052if(opts.carouselFluid&&opts.carouselVisible){ 13053if(!opts._carouselResizeThrottle){ 13054this.fluidSlides(opts); 13055} 13056} 13057else if(opts.carouselVisible&&opts.carouselSlideDimension){ 13058dim=visCount*opts.carouselSlideDimension; 13059opts.container[vert?'height':'width'](dim); 13060} 13061else if(opts.carouselVisible){ 13062dim=visCount*$(opts.slides[0])[vert?'outerHeight':'outerWidth'](true); 13063opts.container[vert?'height':'width'](dim); 13064} 13065offset=(opts.carouselOffset||0); 13066if(opts.allowWrap!==false){ 13067if(opts.carouselSlideDimension){ 13068offset-=((opts.slideCount+opts.currSlide)*opts.carouselSlideDimension); 13069} 13070else{ 13071tmp=opts._carouselWrap.children(); 13072for(var j=0;j<(opts.slideCount+opts.currSlide);j++){ 13073offset-=$(tmp[j])[vert?'outerHeight':'outerWidth'](true); 13074} 13075} 13076} 13077opts._carouselWrap.css(vert?'top':'left',offset); 13078}, 13079fluidSlides:function(opts){ 13080var timeout; 13081var slide=opts.slides.eq(0); 13082var adjustment=slide.outerWidth()-slide.width(); 13083var prepareDimensions=this.prepareDimensions; 13084$(window).on('resize',resizeThrottle); 13085opts._carouselResizeThrottle=resizeThrottle; 13086onResize(); 13087function resizeThrottle(){ 13088clearTimeout(timeout); 13089timeout=setTimeout(onResize,20); 13090} 13091function onResize(){ 13092opts._carouselWrap.stop(false,true); 13093var slideWidth=opts.container.width()/opts.carouselVisible; 13094slideWidth=Math.ceil(slideWidth-adjustment); 13095opts._carouselWrap.children().width(slideWidth); 13096if(opts._sentinel) 13097opts._sentinel.width(slideWidth); 13098prepareDimensions(opts); 13099} 13100}, 13101transition:function(opts,curr,next,fwd,callback){ 13102var moveBy,props={}; 13103var hops=opts.nextSlide-opts.currSlide; 13104var vert=opts.carouselVertical; 13105var speed=opts.speed; 13106if(opts.allowWrap===false){ 13107fwd=hops>0; 13108var currSlide=opts._currSlide; 13109var maxCurr=opts.slideCount-opts.carouselVisible; 13110if(hops>0&&opts.nextSlide>maxCurr&&currSlide==maxCurr){ 13111hops=0; 13112} 13113else if(hops>0&&opts.nextSlide>maxCurr){ 13114hops=opts.nextSlide-currSlide-(opts.nextSlide-maxCurr); 13115} 13116else if(hops<0&&opts.currSlide>maxCurr&&opts.nextSlide>maxCurr){ 13117hops=0; 13118} 13119else if(hops<0&&opts.currSlide>maxCurr){ 13120hops+=opts.currSlide-maxCurr; 13121} 13122else 13123currSlide=opts.currSlide; 13124moveBy=this.getScroll(opts,vert,currSlide,hops); 13125opts.API.opts()._currSlide=opts.nextSlide>maxCurr?maxCurr:opts.nextSlide; 13126} 13127else{ 13128if(fwd&&opts.nextSlide===0){ 13129moveBy=this.getDim(opts,opts.currSlide,vert); 13130callback=this.genCallback(opts,fwd,vert,callback); 13131} 13132else if(!fwd&&opts.nextSlide==opts.slideCount-1){ 13133moveBy=this.getDim(opts,opts.currSlide,vert); 13134callback=this.genCallback(opts,fwd,vert,callback); 13135} 13136else{ 13137moveBy=this.getScroll(opts,vert,opts.currSlide,hops); 13138} 13139} 13140props[vert?'top':'left']=fwd?("-="+moveBy):("+="+moveBy); 13141if(opts.throttleSpeed) 13142speed=(moveBy/$(opts.slides[0])[vert?'height':'width']())*opts.speed; 13143opts._carouselWrap.animate(props,speed,opts.easing,callback); 13144}, 13145getDim:function(opts,index,vert){ 13146var slide=$(opts.slides[index]); 13147return slide[vert?'outerHeight':'outerWidth'](true); 13148}, 13149getScroll:function(opts,vert,currSlide,hops){ 13150var i,moveBy=0; 13151if(hops>0){ 13152for(i=currSlide;i<currSlide+hops;i++) 13153moveBy+=this.getDim(opts,i,vert); 13154} 13155else{ 13156for(i=currSlide;i>currSlide+hops;i--) 13157moveBy+=this.getDim(opts,i,vert); 13158} 13159return moveBy; 13160}, 13161genCallback:function(opts,fwd,vert,callback){ 13162return function(){ 13163var pos=$(opts.slides[opts.nextSlide]).position();
13164var offset=0-pos[vert?'top':'left']+(opts.carouselOffset||0); 13165opts._carouselWrap.css(opts.carouselVertical?'top':'left',offset); 13166callback(); 13167}; 13168}, 13169stopTransition:function(){ 13170var opts=this.opts(); 13171opts.slides.stop(false,true); 13172opts._carouselWrap.stop(false,true); 13173}, 13174onDestroy:function(e){ 13175var opts=this.opts(); 13176if(opts._carouselResizeThrottle) 13177$(window).off('resize',opts._carouselResizeThrottle); 13178opts.slides.prependTo(opts.container); 13179opts._carouselWrap.remove(); 13180} 13181}; 13182})(jQuery); 13183 13184 13185/* plugins/auto/sjcycle/v3.6.0/lib/cycle2/jquery.cycle2.scrollVert.js?1720198658 */ 13186 13187(function($){ 13188"use strict"; 13189$.fn.cycle.transitions.scrollVert={ 13190before:function(opts,curr,next,fwd){ 13191opts.API.stackSlides(opts,curr,next,fwd); 13192var height=opts.container.css('overflow','hidden').height(); 13193opts.cssBefore={top:fwd?-height:height,left:0,opacity:1,display:'block',visibility:'visible'}; 13194opts.animIn={top:0}; 13195opts.animOut={top:fwd?height:-height}; 13196} 13197}; 13198})(jQuery); 13199 13200 13201/* plugins/auto/sjcycle/v3.6.0/lib/cycle2/jquery.cycle2.shuffle.js?1720198658 */ 13202 13203(function($){ 13204"use strict"; 13205$.fn.cycle.transitions.shuffle={ 13206transition:function(opts,currEl,nextEl,fwd,callback){ 13207$(nextEl).css({ 13208display:'block', 13209visibility:'visible' 13210}); 13211var width=opts.container.css('overflow','visible').width(); 13212var speed=opts.speed/2; 13213var element=fwd?currEl:nextEl; 13214opts=opts.API.getSlideOpts(fwd?opts.currSlide:opts.nextSlide); 13215var props1={left:-width,top:15}; 13216var props2=opts.slideCss||{left:0,top:0}; 13217if(opts.shuffleLeft!==undefined){ 13218props1.left=props1.left+parseInt(opts.shuffleLeft,10)||0; 13219} 13220else if(opts.shuffleRight!==undefined){ 13221props1.left=width+parseInt(opts.shuffleRight,10)||0; 13222} 13223if(opts.shuffleTop){ 13224props1.top=opts.shuffleTop; 13225} 13226$(element) 13227.animate(props1,speed,opts.easeIn||opts.easing) 13228.queue('fx',$.proxy(reIndex,this)) 13229.animate(props2,speed,opts.easeOut||opts.easing,callback); 13230function reIndex(nextFn){ 13231this.stack(opts,currEl,nextEl,fwd); 13232nextFn(); 13233} 13234}, 13235stack:function(opts,currEl,nextEl,fwd){ 13236var i,z; 13237if(fwd){ 13238opts.API.stackSlides(nextEl,currEl,fwd); 13239$(currEl).css('zIndex',1); 13240} 13241else{ 13242z=1; 13243for(i=opts.nextSlide-1;i>=0;i--){ 13244$(opts.slides[i]).css('zIndex',z++); 13245} 13246for(i=opts.slideCount-1;i>opts.nextSlide;i--){ 13247$(opts.slides[i]).css('zIndex',z++); 13248} 13249$(nextEl).css('zIndex',opts.maxZ); 13250$(currEl).css('zIndex',opts.maxZ-1); 13251} 13252} 13253}; 13254})(jQuery); 13255 13256 13257/* plugins/auto/sjcycle/v3.6.0/lib/cycle2/jquery.cycle2.tile.js?1720198658 */ 13258 13259(function($){ 13260"use strict"; 13261$.fn.cycle.transitions.tileSlide= 13262$.fn.cycle.transitions.tileBlind={ 13263before:function(opts,curr,next,fwd){ 13264opts.API.stackSlides(curr,next,fwd); 13265$(curr).css({ 13266display:'block', 13267visibility:'visible' 13268}); 13269opts.container.css('overflow','hidden'); 13270opts.tileDelay=opts.tileDelay||opts.fx=='tileSlide'?100:125; 13271opts.tileCount=opts.tileCount||7; 13272opts.tileVertical=opts.tileVertical!==false; 13273if(!opts.container.data('cycleTileInitialized')){ 13274opts.container.on('cycle-destroyed',$.proxy(this.onDestroy,opts.API)); 13275opts.container.data('cycleTileInitialized',true); 13276} 13277}, 13278transition:function(opts,curr,next,fwd,callback){ 13279opts.slides.not(curr).not(next).css('visibility','hidden'); 13280var tiles=$(); 13281var $curr=$(curr),$next=$(next); 13282var tile,tileWidth,tileHeight,lastTileWidth,lastTileHeight, 13283num=opts.tileCount, 13284vert=opts.tileVertical, 13285height=opts.container.height(), 13286width=opts.container.width(); 13287if(vert){ 13288tileWidth=Math.floor(width/num); 13289lastTileWidth=width-(tileWidth*(num-1)); 13290tileHeight=lastTileHeight=height; 13291} 13292else{ 13293tileWidth=lastTileWidth=width; 13294tileHeight=Math.floor(height/num); 13295lastTileHeight=height-(tileHeight*(num-1)); 13296} 13297opts.container.find('.cycle-tiles-container').remove(); 13298var animCSS; 13299var tileCSS={left:0,top:0,overflow:'hidden',position:'absolute',margin:0,padding:0}; 13300if(vert){ 13301animCSS=opts.fx=='tileSlide'?{top:height}:{width:0}; 13302} 13303else{ 13304animCSS=opts.fx=='tileSlide'?{left:width}:{height:0}; 13305} 13306var tilesContainer=$('<div class="cycle-tiles-container"></div>'); 13307tilesContainer.css({ 13308zIndex:$curr.css('z-index'), 13309overflow:'visible', 13310position:'absolute', 13311top:0, 13312left:0,
13313direction:'ltr' 13314}); 13315tilesContainer.insertBefore(next); 13316for(var i=0;i<num;i++){ 13317tile=$('<div></div>') 13318.css(tileCSS) 13319.css({ 13320width:((num-1===i)?lastTileWidth:tileWidth), 13321height:((num-1===i)?lastTileHeight:tileHeight), 13322marginLeft:vert?((i*tileWidth)):0, 13323marginTop:vert?0:(i*tileHeight) 13324}) 13325.append($curr.clone().css({ 13326position:'relative', 13327maxWidth:'none', 13328width:$curr.width(), 13329margin:0,padding:0, 13330marginLeft:vert?-(i*tileWidth):0, 13331marginTop:vert?0:-(i*tileHeight) 13332})); 13333tiles=tiles.add(tile); 13334} 13335tilesContainer.append(tiles); 13336$curr.css('visibility','hidden'); 13337$next.css({ 13338opacity:1, 13339display:'block', 13340visibility:'visible' 13341}); 13342animateTile(fwd?0:num-1); 13343opts._tileAniCallback=function(){ 13344$next.css({ 13345display:'block', 13346visibility:'visible' 13347}); 13348$curr.css('visibility','hidden'); 13349tilesContainer.remove(); 13350callback(); 13351}; 13352function animateTile(i){ 13353tiles.eq(i).animate(animCSS,{ 13354duration:opts.speed, 13355easing:opts.easing, 13356complete:function(){ 13357if(fwd?(num-1===i):(0===i)){ 13358opts._tileAniCallback(); 13359} 13360} 13361}); 13362setTimeout(function(){ 13363if(fwd?(num-1!==i):(0!==i)){ 13364animateTile(fwd?(i+1):(i-1)); 13365} 13366},opts.tileDelay); 13367} 13368}, 13369stopTransition:function(opts){ 13370opts.container.find('*').stop(true,true); 13371if(opts._tileAniCallback) 13372opts._tileAniCallback(); 13373}, 13374onDestroy:function(e){ 13375var opts=this.opts(); 13376opts.container.find('.cycle-tiles-container').remove(); 13377} 13378}; 13379})(jQuery); 13380 13381 13382/* plugins/auto/bootstrap4/v4.7.2/bootstrap/js/bootstrap-util.js */ 13383 13384(function(global,factory){ 13385typeof exports==='object'&&typeof module!=='undefined'?module.exports=factory(require('jquery')): 13386typeof define==='function'&&define.amd?define(['jquery'],factory): 13387(global=typeof globalThis!=='undefined'?globalThis:global||self,global.Util=factory(global.jQuery)); 13388})(this,(function($){'use strict'; 13389function _interopDefaultLegacy(e){return e&&typeof e==='object'&&'default'in e?e:{'default':e};} 13390var $__default=_interopDefaultLegacy($); 13391var TRANSITION_END='transitionend'; 13392var MAX_UID=1000000; 13393var MILLISECONDS_MULTIPLIER=1000; 13394function toType(obj){ 13395if(obj===null||typeof obj==='undefined'){ 13396return""+obj; 13397} 13398return{}.toString.call(obj).match(/\s([a-z]+)/i)[1].toLowerCase(); 13399} 13400function getSpecialTransitionEndEvent(){ 13401return{ 13402bindType:TRANSITION_END, 13403delegateType:TRANSITION_END, 13404handle:function handle(event){ 13405if($__default["default"](event.target).is(this)){ 13406return event.handleObj.handler.apply(this,arguments); 13407} 13408return undefined; 13409} 13410}; 13411} 13412function transitionEndEmulator(duration){ 13413var _this=this; 13414var called=false; 13415$__default["default"](this).one(Util.TRANSITION_END,function(){ 13416called=true; 13417}); 13418setTimeout(function(){ 13419if(!called){ 13420Util.triggerTransitionEnd(_this); 13421} 13422},duration); 13423return this; 13424} 13425function setTransitionEndSupport(){ 13426$__default["default"].fn.emulateTransitionEnd=transitionEndEmulator; 13427$__default["default"].event.special[Util.TRANSITION_END]=getSpecialTransitionEndEvent(); 13428} 13429var Util={ 13430TRANSITION_END:'bsTransitionEnd', 13431getUID:function getUID(prefix){ 13432do{ 13433prefix+=~~(Math.random()*MAX_UID); 13434}while(document.getElementById(prefix)); 13435return prefix; 13436}, 13437getSelectorFromElement:function getSelectorFromElement(element){ 13438var selector=element.getAttribute('data-target'); 13439if(!selector||selector==='#'){ 13440var hrefAttr=element.getAttribute('href'); 13441selector=hrefAttr&&hrefAttr!=='#'?hrefAttr.trim():''; 13442} 13443try{ 13444return document.querySelector(selector)?selector:null; 13445}catch(_){ 13446return null; 13447} 13448}, 13449getTransitionDurationFromElement:function getTransitionDurationFromElement(element){ 13450if(!element){ 13451return 0; 13452} 13453var transitionDuration=$__default["default"](element).css('transition-duration'); 13454var transitionDelay=$__default["default"](element).css('transition-delay'); 13455var floatTransitionDuration=parseFloat(transitionDuration); 13456var floatTransitionDelay=parseFloat(transitionDelay); 13457if(!floatTransitionDuration&&!floatTransitionDelay){ 13458return 0; 13459} 13460transitionDuration=transitionDuration.split(',')[0]; 13461transitionDelay=transitionDelay.split(',')[0]; 13462return(parseFloat(transitionDuration)+parseFloat(transitionDelay))*MILLISECONDS_MULTIPLIER; 13463}, 13464reflow:function reflow(element){ 13465return element.offsetHeight; 13466}, 13467triggerTransitionEnd:function triggerTransitionEnd(element){ 13468$__default["default"](element).trigger(TRANSITION_END); 13469}, 13470supportsTransitionEnd:function supportsTransitionEnd(){ 13471return Boolean(TRANSITION_END); 13472}, 13473isElement:function isElement(obj){ 13474return(obj[0]||obj).nodeType; 13475}, 13476typeCheckConfig:function typeCheckConfig(componentName,config,configTypes){ 13477for(var property in configTypes){ 13478if(Object.prototype.hasOwnProperty.call(configTypes,property)){ 13479var expectedTypes=configTypes[property]; 13480var value=config[property]; 13481var valueType=value&&Util.isElement(value)?'element':toType(value); 13482if(!new RegExp(expectedTypes).test(valueType)){ 13483throw new Error(componentName.toUpperCase()+": "+("Option \""+property+"\" provided type \""+valueType+"\" ")+("but expected type \""+expectedTypes+"\".")); 13484} 13485} 13486} 13487}, 13488findShadowRoot:function findShadowRoot(element){ 13489if(!document.documentElement.attachShadow){ 13490return null; 13491} 13492if(typeof element.getRootNode==='function'){ 13493var root=element.getRootNode(); 13494return root instanceof ShadowRoot?root:null; 13495} 13496if(element instanceof ShadowRoot){ 13497return element; 13498} 13499if(!element.parentNode){ 13500return null; 13501} 13502return Util.findShadowRoot(element.parentNode); 13503}, 13504jQueryDetection:function jQueryDetection(){ 13505if(typeof $__default["default"]==='undefined'){ 13506throw new TypeError('Bootstrap\'s JavaScript requires jQuery. jQuery must be included before Bootstrap\'s JavaScript.'); 13507} 13508var version=$__default["default"].fn.jquery.split(' ')[0].split('.'); 13509var minMajor=1; 13510var ltMajor=2; 13511var minMinor=9; 13512var minPatch=1; 13513var maxMajor=4; 13514if(version[0]<ltMajor&&version[1]<minMinor||version[0]===minMajor&&version[1]===minMinor&&version[2]<minPatch||version[0]>=maxMajor){ 13515throw new Error('Bootstrap\'s JavaScript requires at least jQuery v1.9.1 but less than v4.0.0'); 13516} 13517} 13518}; 13519Util.jQueryDetection(); 13520setTransitionEndSupport(); 13521return Util; 13522})); 13523 13524 13525/* plugins/auto/bootstrap4/v4.7.2/bootstrap/js/bootstrap-button.js */ 13526 13527(function(global,factory){ 13528typeof exports==='object'&&typeof module!=='undefined'?module.exports=factory(require('jquery')): 13529typeof define==='function'&&define.amd?define(['jquery'],factory): 13530(global=typeof globalThis!=='undefined'?globalThis:global||self,global.Button=factory(global.jQuery)); 13531})(this,(function($){'use strict'; 13532function _interopDefaultLegacy(e){return e&&typeof e==='object'&&'default'in e?e:{'default':e};} 13533var $__default=_interopDefaultLegacy($); 13534function _defineProperties(target,props){ 13535for(var i=0;i<props.length;i++){ 13536var descriptor=props[i]; 13537descriptor.enumerable=descriptor.enumerable||false; 13538descriptor.configurable=true; 13539if("value"in descriptor)descriptor.writable=true; 13540Object.defineProperty(target,descriptor.key,descriptor); 13541} 13542} 13543function _createClass(Constructor,protoProps,staticProps){ 13544if(protoProps)_defineProperties(Constructor.prototype,protoProps); 13545if(staticProps)_defineProperties(Constructor,staticProps); 13546Object.defineProperty(Constructor,"prototype",{ 13547writable:false 13548}); 13549return Constructor; 13550} 13551var NAME='button'; 13552var VERSION='4.6.2'; 13553var DATA_KEY='bs.button'; 13554var EVENT_KEY="."+DATA_KEY; 13555var DATA_API_KEY='.data-api'; 13556var JQUERY_NO_CONFLICT=$__default["default"].fn[NAME]; 13557var CLASS_NAME_ACTIVE='active'; 13558var CLASS_NAME_BUTTON='btn'; 13559var CLASS_NAME_FOCUS='focus'; 13560var EVENT_CLICK_DATA_API="click"+EVENT_KEY+DATA_API_KEY; 13561var EVENT_FOCUS_BLUR_DATA_API="focus"+EVENT_KEY+DATA_API_KEY+" "+("blur"+EVENT_KEY+DATA_API_KEY); 13562var EVENT_LOAD_DATA_API="load"+EVENT_KEY+DATA_API_KEY; 13563var SELECTOR_DATA_TOGGLE_CARROT='[data-toggle^="button"]'; 13564var SELECTOR_DATA_TOGGLES='[data-toggle="buttons"]'; 13565var SELECTOR_DATA_TOGGLE='[data-toggle="button"]'; 13566var SELECTOR_DATA_TOGGLES_BUTTONS='[data-toggle="buttons"] .btn'; 13567var SELECTOR_INPUT='input:not([type="hidden"])'; 13568var SELECTOR_ACTIVE='.active'; 13569var SELECTOR_BUTTON='.btn'; 13570var Button=function(){ 13571function Button(element){ 13572this._element=element; 13573this.shouldAvoidTriggerChange=false; 13574} 13575var _proto=Button.prototype;
vendor: 5,576 bytes, lines 13576-13746
13576_proto.toggle=function toggle(){ 13577var triggerChangeEvent=true; 13578var addAriaPressed=true; 13579var rootElement=$__default["default"](this._element).closest(SELECTOR_DATA_TOGGLES)[0]; 13580if(rootElement){ 13581var input=this._element.querySelector(SELECTOR_INPUT); 13582if(input){ 13583if(input.type==='radio'){ 13584if(input.checked&&this._element.classList.contains(CLASS_NAME_ACTIVE)){ 13585triggerChangeEvent=false; 13586}else{ 13587var activeElement=rootElement.querySelector(SELECTOR_ACTIVE); 13588if(activeElement){ 13589$__default["default"](activeElement).removeClass(CLASS_NAME_ACTIVE); 13590} 13591} 13592} 13593if(triggerChangeEvent){ 13594if(input.type==='checkbox'||input.type==='radio'){ 13595input.checked=!this._element.classList.contains(CLASS_NAME_ACTIVE); 13596} 13597if(!this.shouldAvoidTriggerChange){ 13598$__default["default"](input).trigger('change'); 13599} 13600} 13601input.focus(); 13602addAriaPressed=false; 13603} 13604} 13605if(!(this._element.hasAttribute('disabled')||this._element.classList.contains('disabled'))){ 13606if(addAriaPressed){ 13607this._element.setAttribute('aria-pressed',!this._element.classList.contains(CLASS_NAME_ACTIVE)); 13608} 13609if(triggerChangeEvent){ 13610$__default["default"](this._element).toggleClass(CLASS_NAME_ACTIVE); 13611} 13612} 13613}; 13614_proto.dispose=function dispose(){ 13615$__default["default"].removeData(this._element,DATA_KEY); 13616this._element=null; 13617} 13618; 13619Button._jQueryInterface=function _jQueryInterface(config,avoidTriggerChange){ 13620return this.each(function(){ 13621var $element=$__default["default"](this); 13622var data=$element.data(DATA_KEY); 13623if(!data){ 13624data=new Button(this); 13625$element.data(DATA_KEY,data); 13626} 13627data.shouldAvoidTriggerChange=avoidTriggerChange; 13628if(config==='toggle'){ 13629data[config](); 13630} 13631}); 13632}; 13633_createClass(Button,null,[{ 13634key:"VERSION", 13635get:function get(){ 13636return VERSION; 13637} 13638}]); 13639return Button; 13640}(); 13641$__default["default"](document).on(EVENT_CLICK_DATA_API,SELECTOR_DATA_TOGGLE_CARROT,function(event){ 13642var button=event.target; 13643var initialButton=button; 13644if(!$__default["default"](button).hasClass(CLASS_NAME_BUTTON)){ 13645button=$__default["default"](button).closest(SELECTOR_BUTTON)[0]; 13646} 13647if(!button||button.hasAttribute('disabled')||button.classList.contains('disabled')){ 13648event.preventDefault(); 13649}else{ 13650var inputBtn=button.querySelector(SELECTOR_INPUT); 13651if(inputBtn&&(inputBtn.hasAttribute('disabled')||inputBtn.classList.contains('disabled'))){ 13652event.preventDefault(); 13653return; 13654} 13655if(initialButton.tagName==='INPUT'||button.tagName!=='LABEL'){ 13656Button._jQueryInterface.call($__default["default"](button),'toggle',initialButton.tagName==='INPUT'); 13657} 13658} 13659}).on(EVENT_FOCUS_BLUR_DATA_API,SELECTOR_DATA_TOGGLE_CARROT,function(event){ 13660var button=$__default["default"](event.target).closest(SELECTOR_BUTTON)[0]; 13661$__default["default"](button).toggleClass(CLASS_NAME_FOCUS,/^focus(in)?$/.test(event.type)); 13662}); 13663$__default["default"](window).on(EVENT_LOAD_DATA_API,function(){ 13664var buttons=[].slice.call(document.querySelectorAll(SELECTOR_DATA_TOGGLES_BUTTONS)); 13665for(var i=0,len=buttons.length;i<len;i++){ 13666var button=buttons[i]; 13667var input=button.querySelector(SELECTOR_INPUT); 13668if(input.checked||input.hasAttribute('checked')){ 13669button.classList.add(CLASS_NAME_ACTIVE); 13670}else{ 13671button.classList.remove(CLASS_NAME_ACTIVE); 13672} 13673} 13674buttons=[].slice.call(document.querySelectorAll(SELECTOR_DATA_TOGGLE)); 13675for(var _i=0,_len=buttons.length;_i<_len;_i++){ 13676var _button=buttons[_i]; 13677if(_button.getAttribute('aria-pressed')==='true'){ 13678_button.classList.add(CLASS_NAME_ACTIVE); 13679}else{ 13680_button.classList.remove(CLASS_NAME_ACTIVE); 13681} 13682} 13683}); 13684$__default["default"].fn[NAME]=Button._jQueryInterface; 13685$__default["default"].fn[NAME].Constructor=Button; 13686$__default["default"].fn[NAME].noConflict=function(){ 13687$__default["default"].fn[NAME]=JQUERY_NO_CONFLICT; 13688return Button._jQueryInterface; 13689}; 13690return Button; 13691})); 13692 13693 13694/* plugins/auto/bootstrap4/v4.7.2/bootstrap/js/bootstrap-collapse.js */ 13695 13696(function(global,factory){ 13697typeof exports==='object'&&typeof module!=='undefined'?module.exports=factory(require('jquery'),require('./util.js')): 13698typeof define==='function'&&define.amd?define(['jquery','./util'],factory): 13699(global=typeof globalThis!=='undefined'?globalThis:global||self,global.Collapse=factory(global.jQuery,global.Util)); 13700})(this,(function($,Util){'use strict'; 13701function _interopDefaultLegacy(e){return e&&typeof e==='object'&&'default'in e?e:{'default':e};} 13702var $__default=_interopDefaultLegacy($); 13703var Util__default=_interopDefaultLegacy(Util); 13704function _defineProperties(target,props){ 13705for(var i=0;i<props.length;i++){ 13706var descriptor=props[i]; 13707descriptor.enumerable=descriptor.enumerable||false; 13708descriptor.configurable=true; 13709if("value"in descriptor)descriptor.writable=true; 13710Object.defineProperty(target,descriptor.key,descriptor); 13711} 13712} 13713function _createClass(Constructor,protoProps,staticProps){ 13714if(protoProps)_defineProperties(Constructor.prototype,protoProps); 13715if(staticProps)_defineProperties(Constructor,staticProps); 13716Object.defineProperty(Constructor,"prototype",{ 13717writable:false 13718}); 13719return Constructor; 13720} 13721function _extends(){ 13722_extends=Object.assign?Object.assign.bind():function(target){ 13723for(var i=1;i<arguments.length;i++){ 13724var source=arguments[i]; 13725for(var key in source){ 13726if(Object.prototype.hasOwnProperty.call(source,key)){ 13727target[key]=source[key]; 13728} 13729} 13730} 13731return target; 13732}; 13733return _extends.apply(this,arguments); 13734} 13735var NAME='collapse'; 13736var VERSION='4.6.2'; 13737var DATA_KEY='bs.collapse'; 13738var EVENT_KEY="."+DATA_KEY; 13739var DATA_API_KEY='.data-api'; 13740var JQUERY_NO_CONFLICT=$__default["default"].fn[NAME]; 13741var CLASS_NAME_SHOW='show'; 13742var CLASS_NAME_COLLAPSE='collapse'; 13743var CLASS_NAME_COLLAPSING='collapsing'; 13744var CLASS_NAME_COLLAPSED='collapsed'; 13745var DIMENSION_WIDTH='width'; 13746var DIMENSION_HEIGHT='height';
vendor: 5,532 bytes, lines 13747-13899
13747var EVENT_SHOW="show"+EVENT_KEY; 13748var EVENT_SHOWN="shown"+EVENT_KEY; 13749var EVENT_HIDE="hide"+EVENT_KEY; 13750var EVENT_HIDDEN="hidden"+EVENT_KEY; 13751var EVENT_CLICK_DATA_API="click"+EVENT_KEY+DATA_API_KEY; 13752var SELECTOR_ACTIVES='.show, .collapsing'; 13753var SELECTOR_DATA_TOGGLE='[data-toggle="collapse"]'; 13754var Default={ 13755toggle:true, 13756parent:'' 13757}; 13758var DefaultType={ 13759toggle:'boolean', 13760parent:'(string|element)' 13761}; 13762var Collapse=function(){ 13763function Collapse(element,config){ 13764this._isTransitioning=false; 13765this._element=element; 13766this._config=this._getConfig(config); 13767this._triggerArray=[].slice.call(document.querySelectorAll("[data-toggle=\"collapse\"][href=\"#"+element.id+"\"],"+("[data-toggle=\"collapse\"][data-target=\"#"+element.id+"\"]"))); 13768var toggleList=[].slice.call(document.querySelectorAll(SELECTOR_DATA_TOGGLE)); 13769for(var i=0,len=toggleList.length;i<len;i++){ 13770var elem=toggleList[i]; 13771var selector=Util__default["default"].getSelectorFromElement(elem); 13772var filterElement=[].slice.call(document.querySelectorAll(selector)).filter(function(foundElem){ 13773return foundElem===element; 13774}); 13775if(selector!==null&&filterElement.length>0){ 13776this._selector=selector; 13777this._triggerArray.push(elem); 13778} 13779} 13780this._parent=this._config.parent?this._getParent():null; 13781if(!this._config.parent){ 13782this._addAriaAndCollapsedClass(this._element,this._triggerArray); 13783} 13784if(this._config.toggle){ 13785this.toggle(); 13786} 13787} 13788var _proto=Collapse.prototype; 13789_proto.toggle=function toggle(){ 13790if($__default["default"](this._element).hasClass(CLASS_NAME_SHOW)){ 13791this.hide(); 13792}else{ 13793this.show(); 13794} 13795}; 13796_proto.show=function show(){ 13797var _this=this; 13798if(this._isTransitioning||$__default["default"](this._element).hasClass(CLASS_NAME_SHOW)){ 13799return; 13800} 13801var actives; 13802var activesData; 13803if(this._parent){ 13804actives=[].slice.call(this._parent.querySelectorAll(SELECTOR_ACTIVES)).filter(function(elem){ 13805if(typeof _this._config.parent==='string'){ 13806return elem.getAttribute('data-parent')===_this._config.parent; 13807} 13808return elem.classList.contains(CLASS_NAME_COLLAPSE); 13809}); 13810if(actives.length===0){ 13811actives=null; 13812} 13813} 13814if(actives){ 13815activesData=$__default["default"](actives).not(this._selector).data(DATA_KEY); 13816if(activesData&&activesData._isTransitioning){ 13817return; 13818} 13819} 13820var startEvent=$__default["default"].Event(EVENT_SHOW); 13821$__default["default"](this._element).trigger(startEvent); 13822if(startEvent.isDefaultPrevented()){ 13823return; 13824} 13825if(actives){ 13826Collapse._jQueryInterface.call($__default["default"](actives).not(this._selector),'hide'); 13827if(!activesData){ 13828$__default["default"](actives).data(DATA_KEY,null); 13829} 13830} 13831var dimension=this._getDimension(); 13832$__default["default"](this._element).removeClass(CLASS_NAME_COLLAPSE).addClass(CLASS_NAME_COLLAPSING); 13833this._element.style[dimension]=0; 13834if(this._triggerArray.length){ 13835$__default["default"](this._triggerArray).removeClass(CLASS_NAME_COLLAPSED).attr('aria-expanded',true); 13836} 13837this.setTransitioning(true); 13838var complete=function complete(){ 13839$__default["default"](_this._element).removeClass(CLASS_NAME_COLLAPSING).addClass(CLASS_NAME_COLLAPSE+" "+CLASS_NAME_SHOW); 13840_this._element.style[dimension]=''; 13841_this.setTransitioning(false); 13842$__default["default"](_this._element).trigger(EVENT_SHOWN); 13843}; 13844var capitalizedDimension=dimension[0].toUpperCase()+dimension.slice(1); 13845var scrollSize="scroll"+capitalizedDimension; 13846var transitionDuration=Util__default["default"].getTransitionDurationFromElement(this._element); 13847$__default["default"](this._element).one(Util__default["default"].TRANSITION_END,complete).emulateTransitionEnd(transitionDuration); 13848this._element.style[dimension]=this._element[scrollSize]+"px"; 13849}; 13850_proto.hide=function hide(){ 13851var _this2=this; 13852if(this._isTransitioning||!$__default["default"](this._element).hasClass(CLASS_NAME_SHOW)){ 13853return; 13854} 13855var startEvent=$__default["default"].Event(EVENT_HIDE); 13856$__default["default"](this._element).trigger(startEvent); 13857if(startEvent.isDefaultPrevented()){ 13858return; 13859} 13860var dimension=this._getDimension(); 13861this._element.style[dimension]=this._element.getBoundingClientRect()[dimension]+"px"; 13862Util__default["default"].reflow(this._element); 13863$__default["default"](this._element).addClass(CLASS_NAME_COLLAPSING).removeClass(CLASS_NAME_COLLAPSE+" "+CLASS_NAME_SHOW); 13864var triggerArrayLength=this._triggerArray.length; 13865if(triggerArrayLength>0){ 13866for(var i=0;i<triggerArrayLength;i++){ 13867var trigger=this._triggerArray[i]; 13868var selector=Util__default["default"].getSelectorFromElement(trigger); 13869if(selector!==null){ 13870var $elem=$__default["default"]([].slice.call(document.querySelectorAll(selector))); 13871if(!$elem.hasClass(CLASS_NAME_SHOW)){ 13872$__default["default"](trigger).addClass(CLASS_NAME_COLLAPSED).attr('aria-expanded',false); 13873} 13874} 13875} 13876} 13877this.setTransitioning(true); 13878var complete=function complete(){ 13879_this2.setTransitioning(false); 13880$__default["default"](_this2._element).removeClass(CLASS_NAME_COLLAPSING).addClass(CLASS_NAME_COLLAPSE).trigger(EVENT_HIDDEN); 13881}; 13882this._element.style[dimension]=''; 13883var transitionDuration=Util__default["default"].getTransitionDurationFromElement(this._element); 13884$__default["default"](this._element).one(Util__default["default"].TRANSITION_END,complete).emulateTransitionEnd(transitionDuration); 13885}; 13886_proto.setTransitioning=function setTransitioning(isTransitioning){ 13887this._isTransitioning=isTransitioning; 13888}; 13889_proto.dispose=function dispose(){ 13890$__default["default"].removeData(this._element,DATA_KEY); 13891this._config=null; 13892this._parent=null; 13893this._element=null; 13894this._triggerArray=null; 13895this._isTransitioning=null; 13896} 13897; 13898_proto._getConfig=function _getConfig(config){ 13899config=_extends({},Default,config);
vendor: 5,243 bytes, lines 13900-14056
13900config.toggle=Boolean(config.toggle); 13901Util__default["default"].typeCheckConfig(NAME,config,DefaultType); 13902return config; 13903}; 13904_proto._getDimension=function _getDimension(){ 13905var hasWidth=$__default["default"](this._element).hasClass(DIMENSION_WIDTH); 13906return hasWidth?DIMENSION_WIDTH:DIMENSION_HEIGHT; 13907}; 13908_proto._getParent=function _getParent(){ 13909var _this3=this; 13910var parent; 13911if(Util__default["default"].isElement(this._config.parent)){ 13912parent=this._config.parent; 13913if(typeof this._config.parent.jquery!=='undefined'){ 13914parent=this._config.parent[0]; 13915} 13916}else{ 13917parent=document.querySelector(this._config.parent); 13918} 13919var selector="[data-toggle=\"collapse\"][data-parent=\""+this._config.parent+"\"]"; 13920var children=[].slice.call(parent.querySelectorAll(selector)); 13921$__default["default"](children).each(function(i,element){ 13922_this3._addAriaAndCollapsedClass(Collapse._getTargetFromElement(element),[element]); 13923}); 13924return parent; 13925}; 13926_proto._addAriaAndCollapsedClass=function _addAriaAndCollapsedClass(element,triggerArray){ 13927var isOpen=$__default["default"](element).hasClass(CLASS_NAME_SHOW); 13928if(triggerArray.length){ 13929$__default["default"](triggerArray).toggleClass(CLASS_NAME_COLLAPSED,!isOpen).attr('aria-expanded',isOpen); 13930} 13931} 13932; 13933Collapse._getTargetFromElement=function _getTargetFromElement(element){ 13934var selector=Util__default["default"].getSelectorFromElement(element); 13935return selector?document.querySelector(selector):null; 13936}; 13937Collapse._jQueryInterface=function _jQueryInterface(config){ 13938return this.each(function(){ 13939var $element=$__default["default"](this); 13940var data=$element.data(DATA_KEY); 13941var _config=_extends({},Default,$element.data(),typeof config==='object'&&config?config:{}); 13942if(!data&&_config.toggle&&typeof config==='string'&&/show|hide/.test(config)){ 13943_config.toggle=false; 13944} 13945if(!data){ 13946data=new Collapse(this,_config); 13947$element.data(DATA_KEY,data); 13948} 13949if(typeof config==='string'){ 13950if(typeof data[config]==='undefined'){ 13951throw new TypeError("No method named \""+config+"\""); 13952} 13953data[config](); 13954} 13955}); 13956}; 13957_createClass(Collapse,null,[{ 13958key:"VERSION", 13959get:function get(){ 13960return VERSION; 13961} 13962},{ 13963key:"Default", 13964get:function get(){ 13965return Default; 13966} 13967}]); 13968return Collapse; 13969}(); 13970$__default["default"](document).on(EVENT_CLICK_DATA_API,SELECTOR_DATA_TOGGLE,function(event){ 13971if(event.currentTarget.tagName==='A'){ 13972event.preventDefault(); 13973} 13974var $trigger=$__default["default"](this); 13975var selector=Util__default["default"].getSelectorFromElement(this); 13976var selectors=[].slice.call(document.querySelectorAll(selector)); 13977$__default["default"](selectors).each(function(){ 13978var $target=$__default["default"](this); 13979var data=$target.data(DATA_KEY); 13980var config=data?'toggle':$trigger.data(); 13981Collapse._jQueryInterface.call($target,config); 13982}); 13983}); 13984$__default["default"].fn[NAME]=Collapse._jQueryInterface; 13985$__default["default"].fn[NAME].Constructor=Collapse; 13986$__default["default"].fn[NAME].noConflict=function(){ 13987$__default["default"].fn[NAME]=JQUERY_NO_CONFLICT; 13988return Collapse._jQueryInterface; 13989}; 13990return Collapse; 13991})); 13992 13993 13994/* plugins/auto/bootstrap4/v4.7.2/bootstrap/js/bootstrap-carousel.js */ 13995 13996(function(global,factory){ 13997typeof exports==='object'&&typeof module!=='undefined'?module.exports=factory(require('jquery'),require('./util.js')): 13998typeof define==='function'&&define.amd?define(['jquery','./util'],factory): 13999(global=typeof globalThis!=='undefined'?globalThis:global||self,global.Carousel=factory(global.jQuery,global.Util)); 14000})(this,(function($,Util){'use strict'; 14001function _interopDefaultLegacy(e){return e&&typeof e==='object'&&'default'in e?e:{'default':e};} 14002var $__default=_interopDefaultLegacy($); 14003var Util__default=_interopDefaultLegacy(Util); 14004function _defineProperties(target,props){ 14005for(var i=0;i<props.length;i++){ 14006var descriptor=props[i]; 14007descriptor.enumerable=descriptor.enumerable||false; 14008descriptor.configurable=true; 14009if("value"in descriptor)descriptor.writable=true; 14010Object.defineProperty(target,descriptor.key,descriptor); 14011} 14012} 14013function _createClass(Constructor,protoProps,staticProps){ 14014if(protoProps)_defineProperties(Constructor.prototype,protoProps); 14015if(staticProps)_defineProperties(Constructor,staticProps); 14016Object.defineProperty(Constructor,"prototype",{ 14017writable:false 14018}); 14019return Constructor; 14020} 14021function _extends(){ 14022_extends=Object.assign?Object.assign.bind():function(target){ 14023for(var i=1;i<arguments.length;i++){ 14024var source=arguments[i]; 14025for(var key in source){ 14026if(Object.prototype.hasOwnProperty.call(source,key)){ 14027target[key]=source[key]; 14028} 14029} 14030} 14031return target; 14032}; 14033return _extends.apply(this,arguments); 14034} 14035var NAME='carousel'; 14036var VERSION='4.6.2'; 14037var DATA_KEY='bs.carousel'; 14038var EVENT_KEY="."+DATA_KEY; 14039var DATA_API_KEY='.data-api'; 14040var JQUERY_NO_CONFLICT=$__default["default"].fn[NAME]; 14041var ARROW_LEFT_KEYCODE=37; 14042var ARROW_RIGHT_KEYCODE=39; 14043var TOUCHEVENT_COMPAT_WAIT=500; 14044var SWIPE_THRESHOLD=40; 14045var CLASS_NAME_CAROUSEL='carousel'; 14046var CLASS_NAME_ACTIVE='active'; 14047var CLASS_NAME_SLIDE='slide'; 14048var CLASS_NAME_RIGHT='carousel-item-right'; 14049var CLASS_NAME_LEFT='carousel-item-left'; 14050var CLASS_NAME_NEXT='carousel-item-next'; 14051var CLASS_NAME_PREV='carousel-item-prev'; 14052var CLASS_NAME_POINTER_EVENT='pointer-event'; 14053var DIRECTION_NEXT='next'; 14054var DIRECTION_PREV='prev'; 14055var DIRECTION_LEFT='left'; 14056var DIRECTION_RIGHT='right';
vendor: 9,290 bytes, lines 14057-14359
14057var EVENT_SLIDE="slide"+EVENT_KEY; 14058var EVENT_SLID="slid"+EVENT_KEY; 14059var EVENT_KEYDOWN="keydown"+EVENT_KEY; 14060var EVENT_MOUSEENTER="mouseenter"+EVENT_KEY; 14061var EVENT_MOUSELEAVE="mouseleave"+EVENT_KEY; 14062var EVENT_TOUCHSTART="touchstart"+EVENT_KEY; 14063var EVENT_TOUCHMOVE="touchmove"+EVENT_KEY; 14064var EVENT_TOUCHEND="touchend"+EVENT_KEY; 14065var EVENT_POINTERDOWN="pointerdown"+EVENT_KEY; 14066var EVENT_POINTERUP="pointerup"+EVENT_KEY; 14067var EVENT_DRAG_START="dragstart"+EVENT_KEY; 14068var EVENT_LOAD_DATA_API="load"+EVENT_KEY+DATA_API_KEY; 14069var EVENT_CLICK_DATA_API="click"+EVENT_KEY+DATA_API_KEY; 14070var SELECTOR_ACTIVE='.active'; 14071var SELECTOR_ACTIVE_ITEM='.active.carousel-item'; 14072var SELECTOR_ITEM='.carousel-item'; 14073var SELECTOR_ITEM_IMG='.carousel-item img'; 14074var SELECTOR_NEXT_PREV='.carousel-item-next, .carousel-item-prev'; 14075var SELECTOR_INDICATORS='.carousel-indicators'; 14076var SELECTOR_DATA_SLIDE='[data-slide], [data-slide-to]'; 14077var SELECTOR_DATA_RIDE='[data-ride="carousel"]'; 14078var Default={ 14079interval:5000, 14080keyboard:true, 14081slide:false, 14082pause:'hover', 14083wrap:true, 14084touch:true 14085}; 14086var DefaultType={ 14087interval:'(number|boolean)', 14088keyboard:'boolean', 14089slide:'(boolean|string)', 14090pause:'(string|boolean)', 14091wrap:'boolean', 14092touch:'boolean' 14093}; 14094var PointerType={ 14095TOUCH:'touch', 14096PEN:'pen' 14097}; 14098var Carousel=function(){ 14099function Carousel(element,config){ 14100this._items=null; 14101this._interval=null; 14102this._activeElement=null; 14103this._isPaused=false; 14104this._isSliding=false; 14105this.touchTimeout=null; 14106this.touchStartX=0; 14107this.touchDeltaX=0; 14108this._config=this._getConfig(config); 14109this._element=element; 14110this._indicatorsElement=this._element.querySelector(SELECTOR_INDICATORS); 14111this._touchSupported='ontouchstart'in document.documentElement||navigator.maxTouchPoints>0; 14112this._pointerEvent=Boolean(window.PointerEvent||window.MSPointerEvent); 14113this._addEventListeners(); 14114} 14115var _proto=Carousel.prototype; 14116_proto.next=function next(){ 14117if(!this._isSliding){ 14118this._slide(DIRECTION_NEXT); 14119} 14120}; 14121_proto.nextWhenVisible=function nextWhenVisible(){ 14122var $element=$__default["default"](this._element); 14123if(!document.hidden&&$element.is(':visible')&&$element.css('visibility')!=='hidden'){ 14124this.next(); 14125} 14126}; 14127_proto.prev=function prev(){ 14128if(!this._isSliding){ 14129this._slide(DIRECTION_PREV); 14130} 14131}; 14132_proto.pause=function pause(event){ 14133if(!event){ 14134this._isPaused=true; 14135} 14136if(this._element.querySelector(SELECTOR_NEXT_PREV)){ 14137Util__default["default"].triggerTransitionEnd(this._element); 14138this.cycle(true); 14139} 14140clearInterval(this._interval); 14141this._interval=null; 14142}; 14143_proto.cycle=function cycle(event){ 14144if(!event){ 14145this._isPaused=false; 14146} 14147if(this._interval){ 14148clearInterval(this._interval); 14149this._interval=null; 14150} 14151if(this._config.interval&&!this._isPaused){ 14152this._updateInterval(); 14153this._interval=setInterval((document.visibilityState?this.nextWhenVisible:this.next).bind(this),this._config.interval); 14154} 14155}; 14156_proto.to=function to(index){ 14157var _this=this; 14158this._activeElement=this._element.querySelector(SELECTOR_ACTIVE_ITEM); 14159var activeIndex=this._getItemIndex(this._activeElement); 14160if(index>this._items.length-1||index<0){ 14161return; 14162} 14163if(this._isSliding){ 14164$__default["default"](this._element).one(EVENT_SLID,function(){ 14165return _this.to(index); 14166}); 14167return; 14168} 14169if(activeIndex===index){ 14170this.pause(); 14171this.cycle(); 14172return; 14173} 14174var direction=index>activeIndex?DIRECTION_NEXT:DIRECTION_PREV; 14175this._slide(direction,this._items[index]); 14176}; 14177_proto.dispose=function dispose(){ 14178$__default["default"](this._element).off(EVENT_KEY); 14179$__default["default"].removeData(this._element,DATA_KEY); 14180this._items=null; 14181this._config=null; 14182this._element=null; 14183this._interval=null; 14184this._isPaused=null; 14185this._isSliding=null; 14186this._activeElement=null; 14187this._indicatorsElement=null; 14188} 14189; 14190_proto._getConfig=function _getConfig(config){ 14191config=_extends({},Default,config); 14192Util__default["default"].typeCheckConfig(NAME,config,DefaultType); 14193return config; 14194}; 14195_proto._handleSwipe=function _handleSwipe(){ 14196var absDeltax=Math.abs(this.touchDeltaX); 14197if(absDeltax<=SWIPE_THRESHOLD){ 14198return; 14199} 14200var direction=absDeltax/this.touchDeltaX; 14201this.touchDeltaX=0; 14202if(direction>0){ 14203this.prev(); 14204} 14205if(direction<0){ 14206this.next(); 14207} 14208}; 14209_proto._addEventListeners=function _addEventListeners(){ 14210var _this2=this; 14211if(this._config.keyboard){ 14212$__default["default"](this._element).on(EVENT_KEYDOWN,function(event){ 14213return _this2._keydown(event); 14214}); 14215} 14216if(this._config.pause==='hover'){ 14217$__default["default"](this._element).on(EVENT_MOUSEENTER,function(event){ 14218return _this2.pause(event); 14219}).on(EVENT_MOUSELEAVE,function(event){ 14220return _this2.cycle(event); 14221}); 14222} 14223if(this._config.touch){ 14224this._addTouchEventListeners(); 14225} 14226}; 14227_proto._addTouchEventListeners=function _addTouchEventListeners(){ 14228var _this3=this; 14229if(!this._touchSupported){ 14230return; 14231} 14232var start=function start(event){ 14233if(_this3._pointerEvent&&PointerType[event.originalEvent.pointerType.toUpperCase()]){ 14234_this3.touchStartX=event.originalEvent.clientX; 14235}else if(!_this3._pointerEvent){ 14236_this3.touchStartX=event.originalEvent.touches[0].clientX; 14237} 14238}; 14239var move=function move(event){ 14240_this3.touchDeltaX=event.originalEvent.touches&&event.originalEvent.touches.length>1?0:event.originalEvent.touches[0].clientX-_this3.touchStartX; 14241}; 14242var end=function end(event){ 14243if(_this3._pointerEvent&&PointerType[event.originalEvent.pointerType.toUpperCase()]){ 14244_this3.touchDeltaX=event.originalEvent.clientX-_this3.touchStartX; 14245} 14246_this3._handleSwipe(); 14247if(_this3._config.pause==='hover'){ 14248_this3.pause(); 14249if(_this3.touchTimeout){ 14250clearTimeout(_this3.touchTimeout); 14251} 14252_this3.touchTimeout=setTimeout(function(event){ 14253return _this3.cycle(event); 14254},TOUCHEVENT_COMPAT_WAIT+_this3._config.interval); 14255} 14256}; 14257$__default["default"](this._element.querySelectorAll(SELECTOR_ITEM_IMG)).on(EVENT_DRAG_START,function(e){ 14258return e.preventDefault(); 14259}); 14260if(this._pointerEvent){ 14261$__default["default"](this._element).on(EVENT_POINTERDOWN,function(event){ 14262return start(event); 14263}); 14264$__default["default"](this._element).on(EVENT_POINTERUP,function(event){ 14265return end(event); 14266}); 14267this._element.classList.add(CLASS_NAME_POINTER_EVENT); 14268}else{ 14269$__default["default"](this._element).on(EVENT_TOUCHSTART,function(event){ 14270return start(event); 14271}); 14272$__default["default"](this._element).on(EVENT_TOUCHMOVE,function(event){ 14273return move(event); 14274}); 14275$__default["default"](this._element).on(EVENT_TOUCHEND,function(event){ 14276return end(event); 14277}); 14278} 14279}; 14280_proto._keydown=function _keydown(event){ 14281if(/input|textarea/i.test(event.target.tagName)){ 14282return; 14283} 14284switch(event.which){ 14285case ARROW_LEFT_KEYCODE: 14286event.preventDefault(); 14287this.prev(); 14288break; 14289case ARROW_RIGHT_KEYCODE: 14290event.preventDefault(); 14291this.next(); 14292break; 14293} 14294}; 14295_proto._getItemIndex=function _getItemIndex(element){ 14296this._items=element&&element.parentNode?[].slice.call(element.parentNode.querySelectorAll(SELECTOR_ITEM)):[]; 14297return this._items.indexOf(element); 14298}; 14299_proto._getItemByDirection=function _getItemByDirection(direction,activeElement){ 14300var isNextDirection=direction===DIRECTION_NEXT; 14301var isPrevDirection=direction===DIRECTION_PREV; 14302var activeIndex=this._getItemIndex(activeElement); 14303var lastItemIndex=this._items.length-1; 14304var isGoingToWrap=isPrevDirection&&activeIndex===0||isNextDirection&&activeIndex===lastItemIndex; 14305if(isGoingToWrap&&!this._config.wrap){ 14306return activeElement; 14307} 14308var delta=direction===DIRECTION_PREV?-1:1; 14309var itemIndex=(activeIndex+delta)%this._items.length; 14310return itemIndex===-1?this._items[this._items.length-1]:this._items[itemIndex]; 14311}; 14312_proto._triggerSlideEvent=function _triggerSlideEvent(relatedTarget,eventDirectionName){ 14313var targetIndex=this._getItemIndex(relatedTarget); 14314var fromIndex=this._getItemIndex(this._element.querySelector(SELECTOR_ACTIVE_ITEM)); 14315var slideEvent=$__default["default"].Event(EVENT_SLIDE,{ 14316relatedTarget:relatedTarget, 14317direction:eventDirectionName, 14318from:fromIndex, 14319to:targetIndex 14320}); 14321$__default["default"](this._element).trigger(slideEvent); 14322return slideEvent; 14323}; 14324_proto._setActiveIndicatorElement=function _setActiveIndicatorElement(element){ 14325if(this._indicatorsElement){ 14326var indicators=[].slice.call(this._indicatorsElement.querySelectorAll(SELECTOR_ACTIVE)); 14327$__default["default"](indicators).removeClass(CLASS_NAME_ACTIVE); 14328var nextIndicator=this._indicatorsElement.children[this._getItemIndex(element)]; 14329if(nextIndicator){ 14330$__default["default"](nextIndicator).addClass(CLASS_NAME_ACTIVE); 14331} 14332} 14333}; 14334_proto._updateInterval=function _updateInterval(){ 14335var element=this._activeElement||this._element.querySelector(SELECTOR_ACTIVE_ITEM); 14336if(!element){ 14337return; 14338} 14339var elementInterval=parseInt(element.getAttribute('data-interval'),10); 14340if(elementInterval){ 14341this._config.defaultInterval=this._config.defaultInterval||this._config.interval; 14342this._config.interval=elementInterval; 14343}else{ 14344this._config.interval=this._config.defaultInterval||this._config.interval; 14345} 14346}; 14347_proto._slide=function _slide(direction,element){ 14348var _this4=this; 14349var activeElement=this._element.querySelector(SELECTOR_ACTIVE_ITEM); 14350var activeElementIndex=this._getItemIndex(activeElement); 14351var nextElement=element||activeElement&&this._getItemByDirection(direction,activeElement); 14352var nextElementIndex=this._getItemIndex(nextElement); 14353var isCycling=Boolean(this._interval); 14354var directionalClassName; 14355var orderClassName; 14356var eventDirectionName; 14357if(direction===DIRECTION_NEXT){ 14358directionalClassName=CLASS_NAME_LEFT; 14359orderClassName=CLASS_NAME_NEXT;
vendor: 7,792 bytes, lines 14360-14596
14360eventDirectionName=DIRECTION_LEFT; 14361}else{ 14362directionalClassName=CLASS_NAME_RIGHT; 14363orderClassName=CLASS_NAME_PREV; 14364eventDirectionName=DIRECTION_RIGHT; 14365} 14366if(nextElement&&$__default["default"](nextElement).hasClass(CLASS_NAME_ACTIVE)){ 14367this._isSliding=false; 14368return; 14369} 14370var slideEvent=this._triggerSlideEvent(nextElement,eventDirectionName); 14371if(slideEvent.isDefaultPrevented()){ 14372return; 14373} 14374if(!activeElement||!nextElement){ 14375return; 14376} 14377this._isSliding=true; 14378if(isCycling){ 14379this.pause(); 14380} 14381this._setActiveIndicatorElement(nextElement); 14382this._activeElement=nextElement; 14383var slidEvent=$__default["default"].Event(EVENT_SLID,{ 14384relatedTarget:nextElement, 14385direction:eventDirectionName, 14386from:activeElementIndex, 14387to:nextElementIndex 14388}); 14389if($__default["default"](this._element).hasClass(CLASS_NAME_SLIDE)){ 14390$__default["default"](nextElement).addClass(orderClassName); 14391Util__default["default"].reflow(nextElement); 14392$__default["default"](activeElement).addClass(directionalClassName); 14393$__default["default"](nextElement).addClass(directionalClassName); 14394var transitionDuration=Util__default["default"].getTransitionDurationFromElement(activeElement); 14395$__default["default"](activeElement).one(Util__default["default"].TRANSITION_END,function(){ 14396$__default["default"](nextElement).removeClass(directionalClassName+" "+orderClassName).addClass(CLASS_NAME_ACTIVE); 14397$__default["default"](activeElement).removeClass(CLASS_NAME_ACTIVE+" "+orderClassName+" "+directionalClassName); 14398_this4._isSliding=false; 14399setTimeout(function(){ 14400return $__default["default"](_this4._element).trigger(slidEvent); 14401},0); 14402}).emulateTransitionEnd(transitionDuration); 14403}else{ 14404$__default["default"](activeElement).removeClass(CLASS_NAME_ACTIVE); 14405$__default["default"](nextElement).addClass(CLASS_NAME_ACTIVE); 14406this._isSliding=false; 14407$__default["default"](this._element).trigger(slidEvent); 14408} 14409if(isCycling){ 14410this.cycle(); 14411} 14412} 14413; 14414Carousel._jQueryInterface=function _jQueryInterface(config){ 14415return this.each(function(){ 14416var data=$__default["default"](this).data(DATA_KEY); 14417var _config=_extends({},Default,$__default["default"](this).data()); 14418if(typeof config==='object'){ 14419_config=_extends({},_config,config); 14420} 14421var action=typeof config==='string'?config:_config.slide; 14422if(!data){ 14423data=new Carousel(this,_config); 14424$__default["default"](this).data(DATA_KEY,data); 14425} 14426if(typeof config==='number'){ 14427data.to(config); 14428}else if(typeof action==='string'){ 14429if(typeof data[action]==='undefined'){ 14430throw new TypeError("No method named \""+action+"\""); 14431} 14432data[action](); 14433}else if(_config.interval&&_config.ride){ 14434data.pause(); 14435data.cycle(); 14436} 14437}); 14438}; 14439Carousel._dataApiClickHandler=function _dataApiClickHandler(event){ 14440var selector=Util__default["default"].getSelectorFromElement(this); 14441if(!selector){ 14442return; 14443} 14444var target=$__default["default"](selector)[0]; 14445if(!target||!$__default["default"](target).hasClass(CLASS_NAME_CAROUSEL)){ 14446return; 14447} 14448var config=_extends({},$__default["default"](target).data(),$__default["default"](this).data()); 14449var slideIndex=this.getAttribute('data-slide-to'); 14450if(slideIndex){ 14451config.interval=false; 14452} 14453Carousel._jQueryInterface.call($__default["default"](target),config); 14454if(slideIndex){ 14455$__default["default"](target).data(DATA_KEY).to(slideIndex); 14456} 14457event.preventDefault(); 14458}; 14459_createClass(Carousel,null,[{ 14460key:"VERSION", 14461get:function get(){ 14462return VERSION; 14463} 14464},{ 14465key:"Default", 14466get:function get(){ 14467return Default; 14468} 14469}]); 14470return Carousel; 14471}(); 14472$__default["default"](document).on(EVENT_CLICK_DATA_API,SELECTOR_DATA_SLIDE,Carousel._dataApiClickHandler); 14473$__default["default"](window).on(EVENT_LOAD_DATA_API,function(){ 14474var carousels=[].slice.call(document.querySelectorAll(SELECTOR_DATA_RIDE)); 14475for(var i=0,len=carousels.length;i<len;i++){ 14476var $carousel=$__default["default"](carousels[i]); 14477Carousel._jQueryInterface.call($carousel,$carousel.data()); 14478} 14479}); 14480$__default["default"].fn[NAME]=Carousel._jQueryInterface; 14481$__default["default"].fn[NAME].Constructor=Carousel; 14482$__default["default"].fn[NAME].noConflict=function(){ 14483$__default["default"].fn[NAME]=JQUERY_NO_CONFLICT; 14484return Carousel._jQueryInterface; 14485}; 14486return Carousel; 14487})); 14488 14489 14490/* plugins/auto/bootstrap4/v4.7.2/bootstrap/js/bootstrap-dropdown.js */ 14491 14492(function(global,factory){ 14493typeof exports==='object'&&typeof module!=='undefined'?module.exports=factory(require('jquery'),require('popper.js'),require('./util.js')): 14494typeof define==='function'&&define.amd?define(['jquery','popper.js','./util'],factory): 14495(global=typeof globalThis!=='undefined'?globalThis:global||self,global.Dropdown=factory(global.jQuery,global.Popper,global.Util)); 14496})(this,(function($,Popper,Util){'use strict'; 14497function _interopDefaultLegacy(e){return e&&typeof e==='object'&&'default'in e?e:{'default':e};} 14498var $__default=_interopDefaultLegacy($); 14499var Popper__default=_interopDefaultLegacy(Popper); 14500var Util__default=_interopDefaultLegacy(Util); 14501function _defineProperties(target,props){ 14502for(var i=0;i<props.length;i++){ 14503var descriptor=props[i]; 14504descriptor.enumerable=descriptor.enumerable||false; 14505descriptor.configurable=true; 14506if("value"in descriptor)descriptor.writable=true; 14507Object.defineProperty(target,descriptor.key,descriptor); 14508} 14509} 14510function _createClass(Constructor,protoProps,staticProps){ 14511if(protoProps)_defineProperties(Constructor.prototype,protoProps); 14512if(staticProps)_defineProperties(Constructor,staticProps); 14513Object.defineProperty(Constructor,"prototype",{ 14514writable:false 14515}); 14516return Constructor; 14517} 14518function _extends(){ 14519_extends=Object.assign?Object.assign.bind():function(target){ 14520for(var i=1;i<arguments.length;i++){ 14521var source=arguments[i]; 14522for(var key in source){ 14523if(Object.prototype.hasOwnProperty.call(source,key)){ 14524target[key]=source[key]; 14525} 14526} 14527} 14528return target; 14529}; 14530return _extends.apply(this,arguments); 14531} 14532var NAME='dropdown'; 14533var VERSION='4.6.2'; 14534var DATA_KEY='bs.dropdown'; 14535var EVENT_KEY="."+DATA_KEY; 14536var DATA_API_KEY='.data-api'; 14537var JQUERY_NO_CONFLICT=$__default["default"].fn[NAME]; 14538var ESCAPE_KEYCODE=27; 14539var SPACE_KEYCODE=32; 14540var TAB_KEYCODE=9; 14541var ARROW_UP_KEYCODE=38; 14542var ARROW_DOWN_KEYCODE=40; 14543var RIGHT_MOUSE_BUTTON_WHICH=3; 14544var REGEXP_KEYDOWN=new RegExp(ARROW_UP_KEYCODE+"|"+ARROW_DOWN_KEYCODE+"|"+ESCAPE_KEYCODE); 14545var CLASS_NAME_DISABLED='disabled'; 14546var CLASS_NAME_SHOW='show'; 14547var CLASS_NAME_DROPUP='dropup'; 14548var CLASS_NAME_DROPRIGHT='dropright'; 14549var CLASS_NAME_DROPLEFT='dropleft'; 14550var CLASS_NAME_MENURIGHT='dropdown-menu-right'; 14551var CLASS_NAME_POSITION_STATIC='position-static'; 14552var EVENT_HIDE="hide"+EVENT_KEY; 14553var EVENT_HIDDEN="hidden"+EVENT_KEY; 14554var EVENT_SHOW="show"+EVENT_KEY; 14555var EVENT_SHOWN="shown"+EVENT_KEY; 14556var EVENT_CLICK="click"+EVENT_KEY; 14557var EVENT_CLICK_DATA_API="click"+EVENT_KEY+DATA_API_KEY; 14558var EVENT_KEYDOWN_DATA_API="keydown"+EVENT_KEY+DATA_API_KEY; 14559var EVENT_KEYUP_DATA_API="keyup"+EVENT_KEY+DATA_API_KEY; 14560var SELECTOR_DATA_TOGGLE='[data-toggle="dropdown"]'; 14561var SELECTOR_FORM_CHILD='.dropdown form'; 14562var SELECTOR_MENU='.dropdown-menu'; 14563var SELECTOR_NAVBAR_NAV='.navbar-nav'; 14564var SELECTOR_VISIBLE_ITEMS='.dropdown-menu .dropdown-item:not(.disabled):not(:disabled)'; 14565var PLACEMENT_TOP='top-start'; 14566var PLACEMENT_TOPEND='top-end'; 14567var PLACEMENT_BOTTOM='bottom-start'; 14568var PLACEMENT_BOTTOMEND='bottom-end'; 14569var PLACEMENT_RIGHT='right-start'; 14570var PLACEMENT_LEFT='left-start'; 14571var Default={ 14572offset:0, 14573flip:true, 14574boundary:'scrollParent', 14575reference:'toggle', 14576display:'dynamic', 14577popperConfig:null 14578}; 14579var DefaultType={ 14580offset:'(number|string|function)', 14581flip:'boolean', 14582boundary:'(string|element)', 14583reference:'(string|element)', 14584display:'string', 14585popperConfig:'(null|object)' 14586}; 14587var Dropdown=function(){ 14588function Dropdown(element,config){ 14589this._element=element; 14590this._popper=null; 14591this._config=this._getConfig(config); 14592this._menu=this._getMenuElement(); 14593this._inNavbar=this._detectNavbar(); 14594this._addEventListeners(); 14595} 14596var _proto=Dropdown.prototype;
vendor: 4,988 bytes, lines 14597-14746
14597_proto.toggle=function toggle(){ 14598if(this._element.disabled||$__default["default"](this._element).hasClass(CLASS_NAME_DISABLED)){ 14599return; 14600} 14601var isActive=$__default["default"](this._menu).hasClass(CLASS_NAME_SHOW); 14602Dropdown._clearMenus(); 14603if(isActive){ 14604return; 14605} 14606this.show(true); 14607}; 14608_proto.show=function show(usePopper){ 14609if(usePopper===void 0){ 14610usePopper=false; 14611} 14612if(this._element.disabled||$__default["default"](this._element).hasClass(CLASS_NAME_DISABLED)||$__default["default"](this._menu).hasClass(CLASS_NAME_SHOW)){ 14613return; 14614} 14615var relatedTarget={ 14616relatedTarget:this._element 14617}; 14618var showEvent=$__default["default"].Event(EVENT_SHOW,relatedTarget); 14619var parent=Dropdown._getParentFromElement(this._element); 14620$__default["default"](parent).trigger(showEvent); 14621if(showEvent.isDefaultPrevented()){ 14622return; 14623} 14624if(!this._inNavbar&&usePopper){ 14625if(typeof Popper__default["default"]==='undefined'){ 14626throw new TypeError('Bootstrap\'s dropdowns require Popper (https://popper.js.org)'); 14627} 14628var referenceElement=this._element; 14629if(this._config.reference==='parent'){ 14630referenceElement=parent; 14631}else if(Util__default["default"].isElement(this._config.reference)){ 14632referenceElement=this._config.reference; 14633if(typeof this._config.reference.jquery!=='undefined'){ 14634referenceElement=this._config.reference[0]; 14635} 14636} 14637if(this._config.boundary!=='scrollParent'){ 14638$__default["default"](parent).addClass(CLASS_NAME_POSITION_STATIC); 14639} 14640this._popper=new Popper__default["default"](referenceElement,this._menu,this._getPopperConfig()); 14641} 14642if('ontouchstart'in document.documentElement&&$__default["default"](parent).closest(SELECTOR_NAVBAR_NAV).length===0){ 14643$__default["default"](document.body).children().on('mouseover',null,$__default["default"].noop); 14644} 14645this._element.focus(); 14646this._element.setAttribute('aria-expanded',true); 14647$__default["default"](this._menu).toggleClass(CLASS_NAME_SHOW); 14648$__default["default"](parent).toggleClass(CLASS_NAME_SHOW).trigger($__default["default"].Event(EVENT_SHOWN,relatedTarget)); 14649}; 14650_proto.hide=function hide(){ 14651if(this._element.disabled||$__default["default"](this._element).hasClass(CLASS_NAME_DISABLED)||!$__default["default"](this._menu).hasClass(CLASS_NAME_SHOW)){ 14652return; 14653} 14654var relatedTarget={ 14655relatedTarget:this._element 14656}; 14657var hideEvent=$__default["default"].Event(EVENT_HIDE,relatedTarget); 14658var parent=Dropdown._getParentFromElement(this._element); 14659$__default["default"](parent).trigger(hideEvent); 14660if(hideEvent.isDefaultPrevented()){ 14661return; 14662} 14663if(this._popper){ 14664this._popper.destroy(); 14665} 14666$__default["default"](this._menu).toggleClass(CLASS_NAME_SHOW); 14667$__default["default"](parent).toggleClass(CLASS_NAME_SHOW).trigger($__default["default"].Event(EVENT_HIDDEN,relatedTarget)); 14668}; 14669_proto.dispose=function dispose(){ 14670$__default["default"].removeData(this._element,DATA_KEY); 14671$__default["default"](this._element).off(EVENT_KEY); 14672this._element=null; 14673this._menu=null; 14674if(this._popper!==null){ 14675this._popper.destroy(); 14676this._popper=null; 14677} 14678}; 14679_proto.update=function update(){ 14680this._inNavbar=this._detectNavbar(); 14681if(this._popper!==null){ 14682this._popper.scheduleUpdate(); 14683} 14684} 14685; 14686_proto._addEventListeners=function _addEventListeners(){ 14687var _this=this; 14688$__default["default"](this._element).on(EVENT_CLICK,function(event){ 14689event.preventDefault(); 14690event.stopPropagation(); 14691_this.toggle(); 14692}); 14693}; 14694_proto._getConfig=function _getConfig(config){ 14695config=_extends({},this.constructor.Default,$__default["default"](this._element).data(),config); 14696Util__default["default"].typeCheckConfig(NAME,config,this.constructor.DefaultType); 14697return config; 14698}; 14699_proto._getMenuElement=function _getMenuElement(){ 14700if(!this._menu){ 14701var parent=Dropdown._getParentFromElement(this._element); 14702if(parent){ 14703this._menu=parent.querySelector(SELECTOR_MENU); 14704} 14705} 14706return this._menu; 14707}; 14708_proto._getPlacement=function _getPlacement(){ 14709var $parentDropdown=$__default["default"](this._element.parentNode); 14710var placement=PLACEMENT_BOTTOM; 14711if($parentDropdown.hasClass(CLASS_NAME_DROPUP)){ 14712placement=$__default["default"](this._menu).hasClass(CLASS_NAME_MENURIGHT)?PLACEMENT_TOPEND:PLACEMENT_TOP; 14713}else if($parentDropdown.hasClass(CLASS_NAME_DROPRIGHT)){ 14714placement=PLACEMENT_RIGHT; 14715}else if($parentDropdown.hasClass(CLASS_NAME_DROPLEFT)){ 14716placement=PLACEMENT_LEFT; 14717}else if($__default["default"](this._menu).hasClass(CLASS_NAME_MENURIGHT)){ 14718placement=PLACEMENT_BOTTOMEND; 14719} 14720return placement; 14721}; 14722_proto._detectNavbar=function _detectNavbar(){ 14723return $__default["default"](this._element).closest('.navbar').length>0; 14724}; 14725_proto._getOffset=function _getOffset(){ 14726var _this2=this; 14727var offset={}; 14728if(typeof this._config.offset==='function'){ 14729offset.fn=function(data){ 14730data.offsets=_extends({},data.offsets,_this2._config.offset(data.offsets,_this2._element)); 14731return data; 14732}; 14733}else{ 14734offset.offset=this._config.offset; 14735} 14736return offset; 14737}; 14738_proto._getPopperConfig=function _getPopperConfig(){ 14739var popperConfig={ 14740placement:this._getPlacement(), 14741modifiers:{ 14742offset:this._getOffset(), 14743flip:{ 14744enabled:this._config.flip 14745}, 14746preventOverflow:{
vendor: 21,188 bytes, lines 14747-15369
14747boundariesElement:this._config.boundary 14748} 14749} 14750}; 14751if(this._config.display==='static'){ 14752popperConfig.modifiers.applyStyle={ 14753enabled:false 14754}; 14755} 14756return _extends({},popperConfig,this._config.popperConfig); 14757} 14758; 14759Dropdown._jQueryInterface=function _jQueryInterface(config){ 14760return this.each(function(){ 14761var data=$__default["default"](this).data(DATA_KEY); 14762var _config=typeof config==='object'?config:null; 14763if(!data){ 14764data=new Dropdown(this,_config); 14765$__default["default"](this).data(DATA_KEY,data); 14766} 14767if(typeof config==='string'){ 14768if(typeof data[config]==='undefined'){ 14769throw new TypeError("No method named \""+config+"\""); 14770} 14771data[config](); 14772} 14773}); 14774}; 14775Dropdown._clearMenus=function _clearMenus(event){ 14776if(event&&(event.which===RIGHT_MOUSE_BUTTON_WHICH||event.type==='keyup'&&event.which!==TAB_KEYCODE)){ 14777return; 14778} 14779var toggles=[].slice.call(document.querySelectorAll(SELECTOR_DATA_TOGGLE)); 14780for(var i=0,len=toggles.length;i<len;i++){ 14781var parent=Dropdown._getParentFromElement(toggles[i]); 14782var context=$__default["default"](toggles[i]).data(DATA_KEY); 14783var relatedTarget={ 14784relatedTarget:toggles[i] 14785}; 14786if(event&&event.type==='click'){ 14787relatedTarget.clickEvent=event; 14788} 14789if(!context){ 14790continue; 14791} 14792var dropdownMenu=context._menu; 14793if(!$__default["default"](parent).hasClass(CLASS_NAME_SHOW)){ 14794continue; 14795} 14796if(event&&(event.type==='click'&&/input|textarea/i.test(event.target.tagName)||event.type==='keyup'&&event.which===TAB_KEYCODE)&&$__default["default"].contains(parent,event.target)){ 14797continue; 14798} 14799var hideEvent=$__default["default"].Event(EVENT_HIDE,relatedTarget); 14800$__default["default"](parent).trigger(hideEvent); 14801if(hideEvent.isDefaultPrevented()){ 14802continue; 14803} 14804if('ontouchstart'in document.documentElement){ 14805$__default["default"](document.body).children().off('mouseover',null,$__default["default"].noop); 14806} 14807toggles[i].setAttribute('aria-expanded','false'); 14808if(context._popper){ 14809context._popper.destroy(); 14810} 14811$__default["default"](dropdownMenu).removeClass(CLASS_NAME_SHOW); 14812$__default["default"](parent).removeClass(CLASS_NAME_SHOW).trigger($__default["default"].Event(EVENT_HIDDEN,relatedTarget)); 14813} 14814}; 14815Dropdown._getParentFromElement=function _getParentFromElement(element){ 14816var parent; 14817var selector=Util__default["default"].getSelectorFromElement(element); 14818if(selector){ 14819parent=document.querySelector(selector); 14820} 14821return parent||element.parentNode; 14822} 14823; 14824Dropdown._dataApiKeydownHandler=function _dataApiKeydownHandler(event){ 14825if(/input|textarea/i.test(event.target.tagName)?event.which===SPACE_KEYCODE||event.which!==ESCAPE_KEYCODE&&(event.which!==ARROW_DOWN_KEYCODE&&event.which!==ARROW_UP_KEYCODE||$__default["default"](event.target).closest(SELECTOR_MENU).length):!REGEXP_KEYDOWN.test(event.which)){ 14826return; 14827} 14828if(this.disabled||$__default["default"](this).hasClass(CLASS_NAME_DISABLED)){ 14829return; 14830} 14831var parent=Dropdown._getParentFromElement(this); 14832var isActive=$__default["default"](parent).hasClass(CLASS_NAME_SHOW); 14833if(!isActive&&event.which===ESCAPE_KEYCODE){ 14834return; 14835} 14836event.preventDefault(); 14837event.stopPropagation(); 14838if(!isActive||event.which===ESCAPE_KEYCODE||event.which===SPACE_KEYCODE){ 14839if(event.which===ESCAPE_KEYCODE){ 14840$__default["default"](parent.querySelector(SELECTOR_DATA_TOGGLE)).trigger('focus'); 14841} 14842$__default["default"](this).trigger('click'); 14843return; 14844} 14845var items=[].slice.call(parent.querySelectorAll(SELECTOR_VISIBLE_ITEMS)).filter(function(item){ 14846return $__default["default"](item).is(':visible'); 14847}); 14848if(items.length===0){ 14849return; 14850} 14851var index=items.indexOf(event.target); 14852if(event.which===ARROW_UP_KEYCODE&&index>0){ 14853index--; 14854} 14855if(event.which===ARROW_DOWN_KEYCODE&&index<items.length-1){ 14856index++; 14857} 14858if(index<0){ 14859index=0; 14860} 14861items[index].focus(); 14862}; 14863_createClass(Dropdown,null,[{ 14864key:"VERSION", 14865get:function get(){ 14866return VERSION; 14867} 14868},{ 14869key:"Default", 14870get:function get(){ 14871return Default; 14872} 14873},{ 14874key:"DefaultType", 14875get:function get(){ 14876return DefaultType; 14877} 14878}]); 14879return Dropdown; 14880}(); 14881$__default["default"](document).on(EVENT_KEYDOWN_DATA_API,SELECTOR_DATA_TOGGLE,Dropdown._dataApiKeydownHandler).on(EVENT_KEYDOWN_DATA_API,SELECTOR_MENU,Dropdown._dataApiKeydownHandler).on(EVENT_CLICK_DATA_API+" "+EVENT_KEYUP_DATA_API,Dropdown._clearMenus).on(EVENT_CLICK_DATA_API,SELECTOR_DATA_TOGGLE,function(event){ 14882event.preventDefault(); 14883event.stopPropagation(); 14884Dropdown._jQueryInterface.call($__default["default"](this),'toggle'); 14885}).on(EVENT_CLICK_DATA_API,SELECTOR_FORM_CHILD,function(e){ 14886e.stopPropagation(); 14887}); 14888$__default["default"].fn[NAME]=Dropdown._jQueryInterface; 14889$__default["default"].fn[NAME].Constructor=Dropdown; 14890$__default["default"].fn[NAME].noConflict=function(){ 14891$__default["default"].fn[NAME]=JQUERY_NO_CONFLICT; 14892return Dropdown._jQueryInterface; 14893}; 14894return Dropdown; 14895})); 14896 14897 14898/* plugins/auto/bootstrap4/v4.7.2/bootstrap/js/bootstrap-modal.js */ 14899 14900(function(global,factory){ 14901typeof exports==='object'&&typeof module!=='undefined'?module.exports=factory(require('jquery'),require('./util.js')): 14902typeof define==='function'&&define.amd?define(['jquery','./util'],factory): 14903(global=typeof globalThis!=='undefined'?globalThis:global||self,global.Modal=factory(global.jQuery,global.Util)); 14904})(this,(function($,Util){'use strict'; 14905function _interopDefaultLegacy(e){return e&&typeof e==='object'&&'default'in e?e:{'default':e};} 14906var $__default=_interopDefaultLegacy($); 14907var Util__default=_interopDefaultLegacy(Util); 14908function _defineProperties(target,props){ 14909for(var i=0;i<props.length;i++){ 14910var descriptor=props[i]; 14911descriptor.enumerable=descriptor.enumerable||false; 14912descriptor.configurable=true; 14913if("value"in descriptor)descriptor.writable=true; 14914Object.defineProperty(target,descriptor.key,descriptor); 14915} 14916} 14917function _createClass(Constructor,protoProps,staticProps){ 14918if(protoProps)_defineProperties(Constructor.prototype,protoProps); 14919if(staticProps)_defineProperties(Constructor,staticProps); 14920Object.defineProperty(Constructor,"prototype",{ 14921writable:false 14922}); 14923return Constructor; 14924} 14925function _extends(){ 14926_extends=Object.assign?Object.assign.bind():function(target){ 14927for(var i=1;i<arguments.length;i++){ 14928var source=arguments[i]; 14929for(var key in source){ 14930if(Object.prototype.hasOwnProperty.call(source,key)){ 14931target[key]=source[key]; 14932} 14933} 14934} 14935return target; 14936}; 14937return _extends.apply(this,arguments); 14938} 14939var NAME='modal'; 14940var VERSION='4.6.2'; 14941var DATA_KEY='bs.modal'; 14942var EVENT_KEY="."+DATA_KEY; 14943var DATA_API_KEY='.data-api'; 14944var JQUERY_NO_CONFLICT=$__default["default"].fn[NAME]; 14945var ESCAPE_KEYCODE=27; 14946var CLASS_NAME_SCROLLABLE='modal-dialog-scrollable'; 14947var CLASS_NAME_SCROLLBAR_MEASURER='modal-scrollbar-measure'; 14948var CLASS_NAME_BACKDROP='modal-backdrop'; 14949var CLASS_NAME_OPEN='modal-open'; 14950var CLASS_NAME_FADE='fade'; 14951var CLASS_NAME_SHOW='show'; 14952var CLASS_NAME_STATIC='modal-static'; 14953var EVENT_HIDE="hide"+EVENT_KEY; 14954var EVENT_HIDE_PREVENTED="hidePrevented"+EVENT_KEY; 14955var EVENT_HIDDEN="hidden"+EVENT_KEY; 14956var EVENT_SHOW="show"+EVENT_KEY; 14957var EVENT_SHOWN="shown"+EVENT_KEY; 14958var EVENT_FOCUSIN="focusin"+EVENT_KEY; 14959var EVENT_RESIZE="resize"+EVENT_KEY; 14960var EVENT_CLICK_DISMISS="click.dismiss"+EVENT_KEY; 14961var EVENT_KEYDOWN_DISMISS="keydown.dismiss"+EVENT_KEY; 14962var EVENT_MOUSEUP_DISMISS="mouseup.dismiss"+EVENT_KEY; 14963var EVENT_MOUSEDOWN_DISMISS="mousedown.dismiss"+EVENT_KEY; 14964var EVENT_CLICK_DATA_API="click"+EVENT_KEY+DATA_API_KEY; 14965var SELECTOR_DIALOG='.modal-dialog'; 14966var SELECTOR_MODAL_BODY='.modal-body'; 14967var SELECTOR_DATA_TOGGLE='[data-toggle="modal"]'; 14968var SELECTOR_DATA_DISMISS='[data-dismiss="modal"]'; 14969var SELECTOR_FIXED_CONTENT='.fixed-top, .fixed-bottom, .is-fixed, .sticky-top'; 14970var SELECTOR_STICKY_CONTENT='.sticky-top'; 14971var Default={ 14972backdrop:true, 14973keyboard:true, 14974focus:true, 14975show:true 14976}; 14977var DefaultType={ 14978backdrop:'(boolean|string)', 14979keyboard:'boolean', 14980focus:'boolean', 14981show:'boolean' 14982}; 14983var Modal=function(){ 14984function Modal(element,config){ 14985this._config=this._getConfig(config); 14986this._element=element; 14987this._dialog=element.querySelector(SELECTOR_DIALOG); 14988this._backdrop=null; 14989this._isShown=false; 14990this._isBodyOverflowing=false; 14991this._ignoreBackdropClick=false; 14992this._isTransitioning=false; 14993this._scrollbarWidth=0; 14994} 14995var _proto=Modal.prototype; 14996_proto.toggle=function toggle(relatedTarget){ 14997return this._isShown?this.hide():this.show(relatedTarget); 14998}; 14999_proto.show=function show(relatedTarget){ 15000var _this=this; 15001if(this._isShown||this._isTransitioning){ 15002return; 15003} 15004var showEvent=$__default["default"].Event(EVENT_SHOW,{ 15005relatedTarget:relatedTarget 15006}); 15007$__default["default"](this._element).trigger(showEvent); 15008if(showEvent.isDefaultPrevented()){ 15009return; 15010} 15011this._isShown=true; 15012if($__default["default"](this._element).hasClass(CLASS_NAME_FADE)){ 15013this._isTransitioning=true; 15014} 15015this._checkScrollbar(); 15016this._setScrollbar(); 15017this._adjustDialog(); 15018this._setEscapeEvent(); 15019this._setResizeEvent(); 15020$__default["default"](this._element).on(EVENT_CLICK_DISMISS,SELECTOR_DATA_DISMISS,function(event){ 15021return _this.hide(event); 15022}); 15023$__default["default"](this._dialog).on(EVENT_MOUSEDOWN_DISMISS,function(){ 15024$__default["default"](_this._element).one(EVENT_MOUSEUP_DISMISS,function(event){ 15025if($__default["default"](event.target).is(_this._element)){ 15026_this._ignoreBackdropClick=true; 15027} 15028}); 15029}); 15030this._showBackdrop(function(){ 15031return _this._showElement(relatedTarget); 15032}); 15033}; 15034_proto.hide=function hide(event){ 15035var _this2=this; 15036if(event){ 15037event.preventDefault(); 15038} 15039if(!this._isShown||this._isTransitioning){ 15040return; 15041} 15042var hideEvent=$__default["default"].Event(EVENT_HIDE); 15043$__default["default"](this._element).trigger(hideEvent); 15044if(!this._isShown||hideEvent.isDefaultPrevented()){ 15045return; 15046} 15047this._isShown=false; 15048var transition=$__default["default"](this._element).hasClass(CLASS_NAME_FADE); 15049if(transition){ 15050this._isTransitioning=true; 15051} 15052this._setEscapeEvent(); 15053this._setResizeEvent(); 15054$__default["default"](document).off(EVENT_FOCUSIN); 15055$__default["default"](this._element).removeClass(CLASS_NAME_SHOW); 15056$__default["default"](this._element).off(EVENT_CLICK_DISMISS); 15057$__default["default"](this._dialog).off(EVENT_MOUSEDOWN_DISMISS); 15058if(transition){ 15059var transitionDuration=Util__default["default"].getTransitionDurationFromElement(this._element); 15060$__default["default"](this._element).one(Util__default["default"].TRANSITION_END,function(event){ 15061return _this2._hideModal(event); 15062}).emulateTransitionEnd(transitionDuration); 15063}else{ 15064this._hideModal(); 15065} 15066}; 15067_proto.dispose=function dispose(){ 15068[window,this._element,this._dialog].forEach(function(htmlElement){ 15069return $__default["default"](htmlElement).off(EVENT_KEY); 15070}); 15071$__default["default"](document).off(EVENT_FOCUSIN); 15072$__default["default"].removeData(this._element,DATA_KEY); 15073this._config=null; 15074this._element=null; 15075this._dialog=null; 15076this._backdrop=null; 15077this._isShown=null; 15078this._isBodyOverflowing=null; 15079this._ignoreBackdropClick=null; 15080this._isTransitioning=null; 15081this._scrollbarWidth=null; 15082}; 15083_proto.handleUpdate=function handleUpdate(){ 15084this._adjustDialog(); 15085} 15086; 15087_proto._getConfig=function _getConfig(config){ 15088config=_extends({},Default,config); 15089Util__default["default"].typeCheckConfig(NAME,config,DefaultType); 15090return config; 15091}; 15092_proto._triggerBackdropTransition=function _triggerBackdropTransition(){ 15093var _this3=this; 15094var hideEventPrevented=$__default["default"].Event(EVENT_HIDE_PREVENTED); 15095$__default["default"](this._element).trigger(hideEventPrevented); 15096if(hideEventPrevented.isDefaultPrevented()){ 15097return; 15098} 15099var isModalOverflowing=this._element.scrollHeight>document.documentElement.clientHeight; 15100if(!isModalOverflowing){ 15101this._element.style.overflowY='hidden'; 15102} 15103this._element.classList.add(CLASS_NAME_STATIC); 15104var modalTransitionDuration=Util__default["default"].getTransitionDurationFromElement(this._dialog); 15105$__default["default"](this._element).off(Util__default["default"].TRANSITION_END); 15106$__default["default"](this._element).one(Util__default["default"].TRANSITION_END,function(){ 15107_this3._element.classList.remove(CLASS_NAME_STATIC); 15108if(!isModalOverflowing){ 15109$__default["default"](_this3._element).one(Util__default["default"].TRANSITION_END,function(){ 15110_this3._element.style.overflowY=''; 15111}).emulateTransitionEnd(_this3._element,modalTransitionDuration); 15112} 15113}).emulateTransitionEnd(modalTransitionDuration); 15114this._element.focus(); 15115}; 15116_proto._showElement=function _showElement(relatedTarget){ 15117var _this4=this; 15118var transition=$__default["default"](this._element).hasClass(CLASS_NAME_FADE); 15119var modalBody=this._dialog?this._dialog.querySelector(SELECTOR_MODAL_BODY):null; 15120if(!this._element.parentNode||this._element.parentNode.nodeType!==Node.ELEMENT_NODE){ 15121document.body.appendChild(this._element); 15122} 15123this._element.style.display='block'; 15124this._element.removeAttribute('aria-hidden'); 15125this._element.setAttribute('aria-modal',true); 15126this._element.setAttribute('role','dialog'); 15127if($__default["default"](this._dialog).hasClass(CLASS_NAME_SCROLLABLE)&&modalBody){ 15128modalBody.scrollTop=0; 15129}else{ 15130this._element.scrollTop=0; 15131} 15132if(transition){ 15133Util__default["default"].reflow(this._element); 15134} 15135$__default["default"](this._element).addClass(CLASS_NAME_SHOW); 15136if(this._config.focus){ 15137this._enforceFocus(); 15138} 15139var shownEvent=$__default["default"].Event(EVENT_SHOWN,{ 15140relatedTarget:relatedTarget 15141}); 15142var transitionComplete=function transitionComplete(){ 15143if(_this4._config.focus){ 15144_this4._element.focus(); 15145} 15146_this4._isTransitioning=false; 15147$__default["default"](_this4._element).trigger(shownEvent); 15148}; 15149if(transition){ 15150var transitionDuration=Util__default["default"].getTransitionDurationFromElement(this._dialog); 15151$__default["default"](this._dialog).one(Util__default["default"].TRANSITION_END,transitionComplete).emulateTransitionEnd(transitionDuration); 15152}else{ 15153transitionComplete(); 15154} 15155}; 15156_proto._enforceFocus=function _enforceFocus(){ 15157var _this5=this; 15158$__default["default"](document).off(EVENT_FOCUSIN) 15159.on(EVENT_FOCUSIN,function(event){ 15160if(document!==event.target&&_this5._element!==event.target&&$__default["default"](_this5._element).has(event.target).length===0){ 15161_this5._element.focus(); 15162} 15163}); 15164}; 15165_proto._setEscapeEvent=function _setEscapeEvent(){ 15166var _this6=this; 15167if(this._isShown){ 15168$__default["default"](this._element).on(EVENT_KEYDOWN_DISMISS,function(event){ 15169if(_this6._config.keyboard&&event.which===ESCAPE_KEYCODE){ 15170event.preventDefault(); 15171_this6.hide(); 15172}else if(!_this6._config.keyboard&&event.which===ESCAPE_KEYCODE){ 15173_this6._triggerBackdropTransition(); 15174} 15175}); 15176}else if(!this._isShown){ 15177$__default["default"](this._element).off(EVENT_KEYDOWN_DISMISS); 15178} 15179}; 15180_proto._setResizeEvent=function _setResizeEvent(){ 15181var _this7=this; 15182if(this._isShown){ 15183$__default["default"](window).on(EVENT_RESIZE,function(event){ 15184return _this7.handleUpdate(event); 15185}); 15186}else{ 15187$__default["default"](window).off(EVENT_RESIZE); 15188} 15189}; 15190_proto._hideModal=function _hideModal(){ 15191var _this8=this; 15192this._element.style.display='none'; 15193this._element.setAttribute('aria-hidden',true); 15194this._element.removeAttribute('aria-modal'); 15195this._element.removeAttribute('role'); 15196this._isTransitioning=false; 15197this._showBackdrop(function(){ 15198$__default["default"](document.body).removeClass(CLASS_NAME_OPEN); 15199_this8._resetAdjustments(); 15200_this8._resetScrollbar(); 15201$__default["default"](_this8._element).trigger(EVENT_HIDDEN); 15202}); 15203}; 15204_proto._removeBackdrop=function _removeBackdrop(){ 15205if(this._backdrop){ 15206$__default["default"](this._backdrop).remove(); 15207this._backdrop=null; 15208} 15209}; 15210_proto._showBackdrop=function _showBackdrop(callback){ 15211var _this9=this; 15212var animate=$__default["default"](this._element).hasClass(CLASS_NAME_FADE)?CLASS_NAME_FADE:''; 15213if(this._isShown&&this._config.backdrop){ 15214this._backdrop=document.createElement('div'); 15215this._backdrop.className=CLASS_NAME_BACKDROP; 15216if(animate){ 15217this._backdrop.classList.add(animate); 15218} 15219$__default["default"](this._backdrop).appendTo(document.body); 15220$__default["default"](this._element).on(EVENT_CLICK_DISMISS,function(event){ 15221if(_this9._ignoreBackdropClick){ 15222_this9._ignoreBackdropClick=false; 15223return; 15224} 15225if(event.target!==event.currentTarget){ 15226return; 15227} 15228if(_this9._config.backdrop==='static'){ 15229_this9._triggerBackdropTransition(); 15230}else{ 15231_this9.hide(); 15232} 15233}); 15234if(animate){ 15235Util__default["default"].reflow(this._backdrop); 15236} 15237$__default["default"](this._backdrop).addClass(CLASS_NAME_SHOW); 15238if(!callback){ 15239return; 15240} 15241if(!animate){ 15242callback(); 15243return; 15244} 15245var backdropTransitionDuration=Util__default["default"].getTransitionDurationFromElement(this._backdrop); 15246$__default["default"](this._backdrop).one(Util__default["default"].TRANSITION_END,callback).emulateTransitionEnd(backdropTransitionDuration); 15247}else if(!this._isShown&&this._backdrop){ 15248$__default["default"](this._backdrop).removeClass(CLASS_NAME_SHOW); 15249var callbackRemove=function callbackRemove(){ 15250_this9._removeBackdrop(); 15251if(callback){ 15252callback(); 15253} 15254}; 15255if($__default["default"](this._element).hasClass(CLASS_NAME_FADE)){ 15256var _backdropTransitionDuration=Util__default["default"].getTransitionDurationFromElement(this._backdrop); 15257$__default["default"](this._backdrop).one(Util__default["default"].TRANSITION_END,callbackRemove).emulateTransitionEnd(_backdropTransitionDuration); 15258}else{ 15259callbackRemove(); 15260} 15261}else if(callback){ 15262callback(); 15263} 15264} 15265; 15266_proto._adjustDialog=function _adjustDialog(){ 15267var isModalOverflowing=this._element.scrollHeight>document.documentElement.clientHeight; 15268if(!this._isBodyOverflowing&&isModalOverflowing){ 15269this._element.style.paddingLeft=this._scrollbarWidth+"px"; 15270} 15271if(this._isBodyOverflowing&&!isModalOverflowing){ 15272this._element.style.paddingRight=this._scrollbarWidth+"px"; 15273} 15274}; 15275_proto._resetAdjustments=function _resetAdjustments(){ 15276this._element.style.paddingLeft=''; 15277this._element.style.paddingRight=''; 15278}; 15279_proto._checkScrollbar=function _checkScrollbar(){ 15280var rect=document.body.getBoundingClientRect(); 15281this._isBodyOverflowing=Math.round(rect.left+rect.right)<window.innerWidth; 15282this._scrollbarWidth=this._getScrollbarWidth(); 15283}; 15284_proto._setScrollbar=function _setScrollbar(){ 15285var _this10=this; 15286if(this._isBodyOverflowing){ 15287var fixedContent=[].slice.call(document.querySelectorAll(SELECTOR_FIXED_CONTENT)); 15288var stickyContent=[].slice.call(document.querySelectorAll(SELECTOR_STICKY_CONTENT)); 15289$__default["default"](fixedContent).each(function(index,element){ 15290var actualPadding=element.style.paddingRight; 15291var calculatedPadding=$__default["default"](element).css('padding-right'); 15292$__default["default"](element).data('padding-right',actualPadding).css('padding-right',parseFloat(calculatedPadding)+_this10._scrollbarWidth+"px"); 15293}); 15294$__default["default"](stickyContent).each(function(index,element){ 15295var actualMargin=element.style.marginRight; 15296var calculatedMargin=$__default["default"](element).css('margin-right'); 15297$__default["default"](element).data('margin-right',actualMargin).css('margin-right',parseFloat(calculatedMargin)-_this10._scrollbarWidth+"px"); 15298}); 15299var actualPadding=document.body.style.paddingRight; 15300var calculatedPadding=$__default["default"](document.body).css('padding-right'); 15301$__default["default"](document.body).data('padding-right',actualPadding).css('padding-right',parseFloat(calculatedPadding)+this._scrollbarWidth+"px"); 15302} 15303$__default["default"](document.body).addClass(CLASS_NAME_OPEN); 15304}; 15305_proto._resetScrollbar=function _resetScrollbar(){ 15306var fixedContent=[].slice.call(document.querySelectorAll(SELECTOR_FIXED_CONTENT)); 15307$__default["default"](fixedContent).each(function(index,element){ 15308var padding=$__default["default"](element).data('padding-right'); 15309$__default["default"](element).removeData('padding-right'); 15310element.style.paddingRight=padding?padding:''; 15311}); 15312var elements=[].slice.call(document.querySelectorAll(""+SELECTOR_STICKY_CONTENT)); 15313$__default["default"](elements).each(function(index,element){ 15314var margin=$__default["default"](element).data('margin-right'); 15315if(typeof margin!=='undefined'){ 15316$__default["default"](element).css('margin-right',margin).removeData('margin-right'); 15317} 15318}); 15319var padding=$__default["default"](document.body).data('padding-right'); 15320$__default["default"](document.body).removeData('padding-right'); 15321document.body.style.paddingRight=padding?padding:''; 15322}; 15323_proto._getScrollbarWidth=function _getScrollbarWidth(){ 15324var scrollDiv=document.createElement('div'); 15325scrollDiv.className=CLASS_NAME_SCROLLBAR_MEASURER; 15326document.body.appendChild(scrollDiv); 15327var scrollbarWidth=scrollDiv.getBoundingClientRect().width-scrollDiv.clientWidth; 15328document.body.removeChild(scrollDiv); 15329return scrollbarWidth; 15330} 15331; 15332Modal._jQueryInterface=function _jQueryInterface(config,relatedTarget){ 15333return this.each(function(){ 15334var data=$__default["default"](this).data(DATA_KEY); 15335var _config=_extends({},Default,$__default["default"](this).data(),typeof config==='object'&&config?config:{}); 15336if(!data){ 15337data=new Modal(this,_config); 15338$__default["default"](this).data(DATA_KEY,data); 15339} 15340if(typeof config==='string'){ 15341if(typeof data[config]==='undefined'){ 15342throw new TypeError("No method named \""+config+"\""); 15343} 15344data[config](relatedTarget); 15345}else if(_config.show){ 15346data.show(relatedTarget); 15347} 15348}); 15349}; 15350_createClass(Modal,null,[{ 15351key:"VERSION", 15352get:function get(){ 15353return VERSION; 15354} 15355},{ 15356key:"Default", 15357get:function get(){ 15358return Default; 15359} 15360}]); 15361return Modal; 15362}(); 15363$__default["default"](document).on(EVENT_CLICK_DATA_API,SELECTOR_DATA_TOGGLE,function(event){ 15364var _this11=this; 15365var target; 15366var selector=Util__default["default"].getSelectorFromElement(this); 15367if(selector){ 15368target=document.querySelector(selector); 15369}
vendor: 4,441 bytes, lines 15370-15497
15370var config=$__default["default"](target).data(DATA_KEY)?'toggle':_extends({},$__default["default"](target).data(),$__default["default"](this).data()); 15371if(this.tagName==='A'||this.tagName==='AREA'){ 15372event.preventDefault(); 15373} 15374var $target=$__default["default"](target).one(EVENT_SHOW,function(showEvent){ 15375if(showEvent.isDefaultPrevented()){ 15376return; 15377} 15378$target.one(EVENT_HIDDEN,function(){ 15379if($__default["default"](_this11).is(':visible')){ 15380_this11.focus(); 15381} 15382}); 15383}); 15384Modal._jQueryInterface.call($__default["default"](target),config,this); 15385}); 15386$__default["default"].fn[NAME]=Modal._jQueryInterface; 15387$__default["default"].fn[NAME].Constructor=Modal; 15388$__default["default"].fn[NAME].noConflict=function(){ 15389$__default["default"].fn[NAME]=JQUERY_NO_CONFLICT; 15390return Modal._jQueryInterface; 15391}; 15392return Modal; 15393})); 15394 15395 15396/* plugins/auto/bootstrap4/v4.7.2/bootstrap/js/bootstrap-scrollspy.js */ 15397 15398(function(global,factory){ 15399typeof exports==='object'&&typeof module!=='undefined'?module.exports=factory(require('jquery'),require('./util.js')): 15400typeof define==='function'&&define.amd?define(['jquery','./util'],factory): 15401(global=typeof globalThis!=='undefined'?globalThis:global||self,global.ScrollSpy=factory(global.jQuery,global.Util)); 15402})(this,(function($,Util){'use strict'; 15403function _interopDefaultLegacy(e){return e&&typeof e==='object'&&'default'in e?e:{'default':e};} 15404var $__default=_interopDefaultLegacy($); 15405var Util__default=_interopDefaultLegacy(Util); 15406function _defineProperties(target,props){ 15407for(var i=0;i<props.length;i++){ 15408var descriptor=props[i]; 15409descriptor.enumerable=descriptor.enumerable||false; 15410descriptor.configurable=true; 15411if("value"in descriptor)descriptor.writable=true; 15412Object.defineProperty(target,descriptor.key,descriptor); 15413} 15414} 15415function _createClass(Constructor,protoProps,staticProps){ 15416if(protoProps)_defineProperties(Constructor.prototype,protoProps); 15417if(staticProps)_defineProperties(Constructor,staticProps); 15418Object.defineProperty(Constructor,"prototype",{ 15419writable:false 15420}); 15421return Constructor; 15422} 15423function _extends(){ 15424_extends=Object.assign?Object.assign.bind():function(target){ 15425for(var i=1;i<arguments.length;i++){ 15426var source=arguments[i]; 15427for(var key in source){ 15428if(Object.prototype.hasOwnProperty.call(source,key)){ 15429target[key]=source[key]; 15430} 15431} 15432} 15433return target; 15434}; 15435return _extends.apply(this,arguments); 15436} 15437var NAME='scrollspy'; 15438var VERSION='4.6.2'; 15439var DATA_KEY='bs.scrollspy'; 15440var EVENT_KEY="."+DATA_KEY; 15441var DATA_API_KEY='.data-api'; 15442var JQUERY_NO_CONFLICT=$__default["default"].fn[NAME]; 15443var CLASS_NAME_DROPDOWN_ITEM='dropdown-item'; 15444var CLASS_NAME_ACTIVE='active'; 15445var EVENT_ACTIVATE="activate"+EVENT_KEY; 15446var EVENT_SCROLL="scroll"+EVENT_KEY; 15447var EVENT_LOAD_DATA_API="load"+EVENT_KEY+DATA_API_KEY; 15448var METHOD_OFFSET='offset'; 15449var METHOD_POSITION='position'; 15450var SELECTOR_DATA_SPY='[data-spy="scroll"]'; 15451var SELECTOR_NAV_LIST_GROUP='.nav, .list-group'; 15452var SELECTOR_NAV_LINKS='.nav-link'; 15453var SELECTOR_NAV_ITEMS='.nav-item'; 15454var SELECTOR_LIST_ITEMS='.list-group-item'; 15455var SELECTOR_DROPDOWN='.dropdown'; 15456var SELECTOR_DROPDOWN_ITEMS='.dropdown-item'; 15457var SELECTOR_DROPDOWN_TOGGLE='.dropdown-toggle'; 15458var Default={ 15459offset:10, 15460method:'auto', 15461target:'' 15462}; 15463var DefaultType={ 15464offset:'number', 15465method:'string', 15466target:'(string|element)' 15467}; 15468var ScrollSpy=function(){ 15469function ScrollSpy(element,config){ 15470var _this=this; 15471this._element=element; 15472this._scrollElement=element.tagName==='BODY'?window:element; 15473this._config=this._getConfig(config); 15474this._selector=this._config.target+" "+SELECTOR_NAV_LINKS+","+(this._config.target+" "+SELECTOR_LIST_ITEMS+",")+(this._config.target+" "+SELECTOR_DROPDOWN_ITEMS); 15475this._offsets=[]; 15476this._targets=[]; 15477this._activeTarget=null; 15478this._scrollHeight=0; 15479$__default["default"](this._scrollElement).on(EVENT_SCROLL,function(event){ 15480return _this._process(event); 15481}); 15482this.refresh(); 15483this._process(); 15484} 15485var _proto=ScrollSpy.prototype; 15486_proto.refresh=function refresh(){ 15487var _this2=this; 15488var autoMethod=this._scrollElement===this._scrollElement.window?METHOD_OFFSET:METHOD_POSITION; 15489var offsetMethod=this._config.method==='auto'?autoMethod:this._config.method; 15490var offsetBase=offsetMethod===METHOD_POSITION?this._getScrollTop():0; 15491this._offsets=[]; 15492this._targets=[]; 15493this._scrollHeight=this._getScrollHeight(); 15494var targets=[].slice.call(document.querySelectorAll(this._selector)); 15495targets.map(function(element){ 15496var target; 15497var targetSelector=Util__default["default"].getSelectorFromElement(element);
vendor: 11,131 bytes, lines 15498-15817
15498if(targetSelector){ 15499target=document.querySelector(targetSelector); 15500} 15501if(target){ 15502var targetBCR=target.getBoundingClientRect(); 15503if(targetBCR.width||targetBCR.height){ 15504return[$__default["default"](target)[offsetMethod]().top+offsetBase,targetSelector]; 15505} 15506} 15507return null; 15508}).filter(Boolean).sort(function(a,b){ 15509return a[0]-b[0]; 15510}).forEach(function(item){ 15511_this2._offsets.push(item[0]); 15512_this2._targets.push(item[1]); 15513}); 15514}; 15515_proto.dispose=function dispose(){ 15516$__default["default"].removeData(this._element,DATA_KEY); 15517$__default["default"](this._scrollElement).off(EVENT_KEY); 15518this._element=null; 15519this._scrollElement=null; 15520this._config=null; 15521this._selector=null; 15522this._offsets=null; 15523this._targets=null; 15524this._activeTarget=null; 15525this._scrollHeight=null; 15526} 15527; 15528_proto._getConfig=function _getConfig(config){ 15529config=_extends({},Default,typeof config==='object'&&config?config:{}); 15530if(typeof config.target!=='string'&&Util__default["default"].isElement(config.target)){ 15531var id=$__default["default"](config.target).attr('id'); 15532if(!id){ 15533id=Util__default["default"].getUID(NAME); 15534$__default["default"](config.target).attr('id',id); 15535} 15536config.target="#"+id; 15537} 15538Util__default["default"].typeCheckConfig(NAME,config,DefaultType); 15539return config; 15540}; 15541_proto._getScrollTop=function _getScrollTop(){ 15542return this._scrollElement===window?this._scrollElement.pageYOffset:this._scrollElement.scrollTop; 15543}; 15544_proto._getScrollHeight=function _getScrollHeight(){ 15545return this._scrollElement.scrollHeight||Math.max(document.body.scrollHeight,document.documentElement.scrollHeight); 15546}; 15547_proto._getOffsetHeight=function _getOffsetHeight(){ 15548return this._scrollElement===window?window.innerHeight:this._scrollElement.getBoundingClientRect().height; 15549}; 15550_proto._process=function _process(){ 15551var scrollTop=this._getScrollTop()+this._config.offset; 15552var scrollHeight=this._getScrollHeight(); 15553var maxScroll=this._config.offset+scrollHeight-this._getOffsetHeight(); 15554if(this._scrollHeight!==scrollHeight){ 15555this.refresh(); 15556} 15557if(scrollTop>=maxScroll){ 15558var target=this._targets[this._targets.length-1]; 15559if(this._activeTarget!==target){ 15560this._activate(target); 15561} 15562return; 15563} 15564if(this._activeTarget&&scrollTop<this._offsets[0]&&this._offsets[0]>0){ 15565this._activeTarget=null; 15566this._clear(); 15567return; 15568} 15569for(var i=this._offsets.length;i--;){ 15570var isActiveTarget=this._activeTarget!==this._targets[i]&&scrollTop>=this._offsets[i]&&(typeof this._offsets[i+1]==='undefined'||scrollTop<this._offsets[i+1]); 15571if(isActiveTarget){ 15572this._activate(this._targets[i]); 15573} 15574} 15575}; 15576_proto._activate=function _activate(target){ 15577this._activeTarget=target; 15578this._clear(); 15579var queries=this._selector.split(',').map(function(selector){ 15580return selector+"[data-target=\""+target+"\"],"+selector+"[href=\""+target+"\"]"; 15581}); 15582var $link=$__default["default"]([].slice.call(document.querySelectorAll(queries.join(',')))); 15583if($link.hasClass(CLASS_NAME_DROPDOWN_ITEM)){ 15584$link.closest(SELECTOR_DROPDOWN).find(SELECTOR_DROPDOWN_TOGGLE).addClass(CLASS_NAME_ACTIVE); 15585$link.addClass(CLASS_NAME_ACTIVE); 15586}else{ 15587$link.addClass(CLASS_NAME_ACTIVE); 15588$link.parents(SELECTOR_NAV_LIST_GROUP).prev(SELECTOR_NAV_LINKS+", "+SELECTOR_LIST_ITEMS).addClass(CLASS_NAME_ACTIVE); 15589$link.parents(SELECTOR_NAV_LIST_GROUP).prev(SELECTOR_NAV_ITEMS).children(SELECTOR_NAV_LINKS).addClass(CLASS_NAME_ACTIVE); 15590} 15591$__default["default"](this._scrollElement).trigger(EVENT_ACTIVATE,{ 15592relatedTarget:target 15593}); 15594}; 15595_proto._clear=function _clear(){ 15596[].slice.call(document.querySelectorAll(this._selector)).filter(function(node){ 15597return node.classList.contains(CLASS_NAME_ACTIVE); 15598}).forEach(function(node){ 15599return node.classList.remove(CLASS_NAME_ACTIVE); 15600}); 15601} 15602; 15603ScrollSpy._jQueryInterface=function _jQueryInterface(config){ 15604return this.each(function(){ 15605var data=$__default["default"](this).data(DATA_KEY); 15606var _config=typeof config==='object'&&config; 15607if(!data){ 15608data=new ScrollSpy(this,_config); 15609$__default["default"](this).data(DATA_KEY,data); 15610} 15611if(typeof config==='string'){ 15612if(typeof data[config]==='undefined'){ 15613throw new TypeError("No method named \""+config+"\""); 15614} 15615data[config](); 15616} 15617}); 15618}; 15619_createClass(ScrollSpy,null,[{ 15620key:"VERSION", 15621get:function get(){ 15622return VERSION; 15623} 15624},{ 15625key:"Default", 15626get:function get(){ 15627return Default; 15628} 15629}]); 15630return ScrollSpy; 15631}(); 15632$__default["default"](window).on(EVENT_LOAD_DATA_API,function(){ 15633var scrollSpys=[].slice.call(document.querySelectorAll(SELECTOR_DATA_SPY)); 15634var scrollSpysLength=scrollSpys.length; 15635for(var i=scrollSpysLength;i--;){ 15636var $spy=$__default["default"](scrollSpys[i]); 15637ScrollSpy._jQueryInterface.call($spy,$spy.data()); 15638} 15639}); 15640$__default["default"].fn[NAME]=ScrollSpy._jQueryInterface; 15641$__default["default"].fn[NAME].Constructor=ScrollSpy; 15642$__default["default"].fn[NAME].noConflict=function(){ 15643$__default["default"].fn[NAME]=JQUERY_NO_CONFLICT; 15644return ScrollSpy._jQueryInterface; 15645}; 15646return ScrollSpy; 15647})); 15648 15649 15650/* plugins/auto/bootstrap4/v4.7.2/bootstrap/js/bootstrap-tab.js */ 15651 15652(function(global,factory){ 15653typeof exports==='object'&&typeof module!=='undefined'?module.exports=factory(require('jquery'),require('./util.js')): 15654typeof define==='function'&&define.amd?define(['jquery','./util'],factory): 15655(global=typeof globalThis!=='undefined'?globalThis:global||self,global.Tab=factory(global.jQuery,global.Util)); 15656})(this,(function($,Util){'use strict'; 15657function _interopDefaultLegacy(e){return e&&typeof e==='object'&&'default'in e?e:{'default':e};} 15658var $__default=_interopDefaultLegacy($); 15659var Util__default=_interopDefaultLegacy(Util); 15660function _defineProperties(target,props){ 15661for(var i=0;i<props.length;i++){ 15662var descriptor=props[i]; 15663descriptor.enumerable=descriptor.enumerable||false; 15664descriptor.configurable=true; 15665if("value"in descriptor)descriptor.writable=true; 15666Object.defineProperty(target,descriptor.key,descriptor); 15667} 15668} 15669function _createClass(Constructor,protoProps,staticProps){ 15670if(protoProps)_defineProperties(Constructor.prototype,protoProps); 15671if(staticProps)_defineProperties(Constructor,staticProps); 15672Object.defineProperty(Constructor,"prototype",{ 15673writable:false 15674}); 15675return Constructor; 15676} 15677var NAME='tab'; 15678var VERSION='4.6.2'; 15679var DATA_KEY='bs.tab'; 15680var EVENT_KEY="."+DATA_KEY; 15681var DATA_API_KEY='.data-api'; 15682var JQUERY_NO_CONFLICT=$__default["default"].fn[NAME]; 15683var CLASS_NAME_DROPDOWN_MENU='dropdown-menu'; 15684var CLASS_NAME_ACTIVE='active'; 15685var CLASS_NAME_DISABLED='disabled'; 15686var CLASS_NAME_FADE='fade'; 15687var CLASS_NAME_SHOW='show'; 15688var EVENT_HIDE="hide"+EVENT_KEY; 15689var EVENT_HIDDEN="hidden"+EVENT_KEY; 15690var EVENT_SHOW="show"+EVENT_KEY; 15691var EVENT_SHOWN="shown"+EVENT_KEY; 15692var EVENT_CLICK_DATA_API="click"+EVENT_KEY+DATA_API_KEY; 15693var SELECTOR_DROPDOWN='.dropdown'; 15694var SELECTOR_NAV_LIST_GROUP='.nav, .list-group'; 15695var SELECTOR_ACTIVE='.active'; 15696var SELECTOR_ACTIVE_UL='> li > .active'; 15697var SELECTOR_DATA_TOGGLE='[data-toggle="tab"], [data-toggle="pill"], [data-toggle="list"]'; 15698var SELECTOR_DROPDOWN_TOGGLE='.dropdown-toggle'; 15699var SELECTOR_DROPDOWN_ACTIVE_CHILD='> .dropdown-menu .active'; 15700var Tab=function(){ 15701function Tab(element){ 15702this._element=element; 15703} 15704var _proto=Tab.prototype; 15705_proto.show=function show(){ 15706var _this=this; 15707if(this._element.parentNode&&this._element.parentNode.nodeType===Node.ELEMENT_NODE&&$__default["default"](this._element).hasClass(CLASS_NAME_ACTIVE)||$__default["default"](this._element).hasClass(CLASS_NAME_DISABLED)||this._element.hasAttribute('disabled')){ 15708return; 15709} 15710var target; 15711var previous; 15712var listElement=$__default["default"](this._element).closest(SELECTOR_NAV_LIST_GROUP)[0]; 15713var selector=Util__default["default"].getSelectorFromElement(this._element); 15714if(listElement){ 15715var itemSelector=listElement.nodeName==='UL'||listElement.nodeName==='OL'?SELECTOR_ACTIVE_UL:SELECTOR_ACTIVE; 15716previous=$__default["default"].makeArray($__default["default"](listElement).find(itemSelector)); 15717previous=previous[previous.length-1]; 15718} 15719var hideEvent=$__default["default"].Event(EVENT_HIDE,{ 15720relatedTarget:this._element 15721}); 15722var showEvent=$__default["default"].Event(EVENT_SHOW,{ 15723relatedTarget:previous 15724}); 15725if(previous){ 15726$__default["default"](previous).trigger(hideEvent); 15727} 15728$__default["default"](this._element).trigger(showEvent); 15729if(showEvent.isDefaultPrevented()||hideEvent.isDefaultPrevented()){ 15730return; 15731} 15732if(selector){ 15733target=document.querySelector(selector); 15734} 15735this._activate(this._element,listElement); 15736var complete=function complete(){ 15737var hiddenEvent=$__default["default"].Event(EVENT_HIDDEN,{ 15738relatedTarget:_this._element 15739}); 15740var shownEvent=$__default["default"].Event(EVENT_SHOWN,{ 15741relatedTarget:previous 15742}); 15743$__default["default"](previous).trigger(hiddenEvent); 15744$__default["default"](_this._element).trigger(shownEvent); 15745}; 15746if(target){ 15747this._activate(target,target.parentNode,complete); 15748}else{ 15749complete(); 15750} 15751}; 15752_proto.dispose=function dispose(){ 15753$__default["default"].removeData(this._element,DATA_KEY); 15754this._element=null; 15755} 15756; 15757_proto._activate=function _activate(element,container,callback){ 15758var _this2=this; 15759var activeElements=container&&(container.nodeName==='UL'||container.nodeName==='OL')?$__default["default"](container).find(SELECTOR_ACTIVE_UL):$__default["default"](container).children(SELECTOR_ACTIVE); 15760var active=activeElements[0]; 15761var isTransitioning=callback&&active&&$__default["default"](active).hasClass(CLASS_NAME_FADE); 15762var complete=function complete(){ 15763return _this2._transitionComplete(element,active,callback); 15764}; 15765if(active&&isTransitioning){ 15766var transitionDuration=Util__default["default"].getTransitionDurationFromElement(active); 15767$__default["default"](active).removeClass(CLASS_NAME_SHOW).one(Util__default["default"].TRANSITION_END,complete).emulateTransitionEnd(transitionDuration); 15768}else{ 15769complete(); 15770} 15771}; 15772_proto._transitionComplete=function _transitionComplete(element,active,callback){ 15773if(active){ 15774$__default["default"](active).removeClass(CLASS_NAME_ACTIVE); 15775var dropdownChild=$__default["default"](active.parentNode).find(SELECTOR_DROPDOWN_ACTIVE_CHILD)[0]; 15776if(dropdownChild){ 15777$__default["default"](dropdownChild).removeClass(CLASS_NAME_ACTIVE); 15778} 15779if(active.getAttribute('role')==='tab'){ 15780active.setAttribute('aria-selected',false); 15781} 15782} 15783$__default["default"](element).addClass(CLASS_NAME_ACTIVE); 15784if(element.getAttribute('role')==='tab'){ 15785element.setAttribute('aria-selected',true); 15786} 15787Util__default["default"].reflow(element); 15788if(element.classList.contains(CLASS_NAME_FADE)){ 15789element.classList.add(CLASS_NAME_SHOW); 15790} 15791var parent=element.parentNode; 15792if(parent&&parent.nodeName==='LI'){ 15793parent=parent.parentNode; 15794} 15795if(parent&&$__default["default"](parent).hasClass(CLASS_NAME_DROPDOWN_MENU)){ 15796var dropdownElement=$__default["default"](element).closest(SELECTOR_DROPDOWN)[0]; 15797if(dropdownElement){ 15798var dropdownToggleList=[].slice.call(dropdownElement.querySelectorAll(SELECTOR_DROPDOWN_TOGGLE)); 15799$__default["default"](dropdownToggleList).addClass(CLASS_NAME_ACTIVE); 15800} 15801element.setAttribute('aria-expanded',true); 15802} 15803if(callback){ 15804callback(); 15805} 15806} 15807; 15808Tab._jQueryInterface=function _jQueryInterface(config){ 15809return this.each(function(){ 15810var $this=$__default["default"](this); 15811var data=$this.data(DATA_KEY); 15812if(!data){ 15813data=new Tab(this); 15814$this.data(DATA_KEY,data); 15815} 15816if(typeof config==='string'){ 15817if(typeof data[config]==='undefined'){
vendor: 11,750 bytes, lines 15818-16226
15818throw new TypeError("No method named \""+config+"\""); 15819} 15820data[config](); 15821} 15822}); 15823}; 15824_createClass(Tab,null,[{ 15825key:"VERSION", 15826get:function get(){ 15827return VERSION; 15828} 15829}]); 15830return Tab; 15831}(); 15832$__default["default"](document).on(EVENT_CLICK_DATA_API,SELECTOR_DATA_TOGGLE,function(event){ 15833event.preventDefault(); 15834Tab._jQueryInterface.call($__default["default"](this),'show'); 15835}); 15836$__default["default"].fn[NAME]=Tab._jQueryInterface; 15837$__default["default"].fn[NAME].Constructor=Tab; 15838$__default["default"].fn[NAME].noConflict=function(){ 15839$__default["default"].fn[NAME]=JQUERY_NO_CONFLICT; 15840return Tab._jQueryInterface; 15841}; 15842return Tab; 15843})); 15844 15845 15846/* plugins/auto/bootstrap4/v4.7.2/bootstrap/js/bootstrap-toast.js */ 15847 15848(function(global,factory){ 15849typeof exports==='object'&&typeof module!=='undefined'?module.exports=factory(require('jquery'),require('./util.js')): 15850typeof define==='function'&&define.amd?define(['jquery','./util'],factory): 15851(global=typeof globalThis!=='undefined'?globalThis:global||self,global.Toast=factory(global.jQuery,global.Util)); 15852})(this,(function($,Util){'use strict'; 15853function _interopDefaultLegacy(e){return e&&typeof e==='object'&&'default'in e?e:{'default':e};} 15854var $__default=_interopDefaultLegacy($); 15855var Util__default=_interopDefaultLegacy(Util); 15856function _defineProperties(target,props){ 15857for(var i=0;i<props.length;i++){ 15858var descriptor=props[i]; 15859descriptor.enumerable=descriptor.enumerable||false; 15860descriptor.configurable=true; 15861if("value"in descriptor)descriptor.writable=true; 15862Object.defineProperty(target,descriptor.key,descriptor); 15863} 15864} 15865function _createClass(Constructor,protoProps,staticProps){ 15866if(protoProps)_defineProperties(Constructor.prototype,protoProps); 15867if(staticProps)_defineProperties(Constructor,staticProps); 15868Object.defineProperty(Constructor,"prototype",{ 15869writable:false 15870}); 15871return Constructor; 15872} 15873function _extends(){ 15874_extends=Object.assign?Object.assign.bind():function(target){ 15875for(var i=1;i<arguments.length;i++){ 15876var source=arguments[i]; 15877for(var key in source){ 15878if(Object.prototype.hasOwnProperty.call(source,key)){ 15879target[key]=source[key]; 15880} 15881} 15882} 15883return target; 15884}; 15885return _extends.apply(this,arguments); 15886} 15887var NAME='toast'; 15888var VERSION='4.6.2'; 15889var DATA_KEY='bs.toast'; 15890var EVENT_KEY="."+DATA_KEY; 15891var JQUERY_NO_CONFLICT=$__default["default"].fn[NAME]; 15892var CLASS_NAME_FADE='fade'; 15893var CLASS_NAME_HIDE='hide'; 15894var CLASS_NAME_SHOW='show'; 15895var CLASS_NAME_SHOWING='showing'; 15896var EVENT_CLICK_DISMISS="click.dismiss"+EVENT_KEY; 15897var EVENT_HIDE="hide"+EVENT_KEY; 15898var EVENT_HIDDEN="hidden"+EVENT_KEY; 15899var EVENT_SHOW="show"+EVENT_KEY; 15900var EVENT_SHOWN="shown"+EVENT_KEY; 15901var SELECTOR_DATA_DISMISS='[data-dismiss="toast"]'; 15902var Default={ 15903animation:true, 15904autohide:true, 15905delay:500 15906}; 15907var DefaultType={ 15908animation:'boolean', 15909autohide:'boolean', 15910delay:'number' 15911}; 15912var Toast=function(){ 15913function Toast(element,config){ 15914this._element=element; 15915this._config=this._getConfig(config); 15916this._timeout=null; 15917this._setListeners(); 15918} 15919var _proto=Toast.prototype; 15920_proto.show=function show(){ 15921var _this=this; 15922var showEvent=$__default["default"].Event(EVENT_SHOW); 15923$__default["default"](this._element).trigger(showEvent); 15924if(showEvent.isDefaultPrevented()){ 15925return; 15926} 15927this._clearTimeout(); 15928if(this._config.animation){ 15929this._element.classList.add(CLASS_NAME_FADE); 15930} 15931var complete=function complete(){ 15932_this._element.classList.remove(CLASS_NAME_SHOWING); 15933_this._element.classList.add(CLASS_NAME_SHOW); 15934$__default["default"](_this._element).trigger(EVENT_SHOWN); 15935if(_this._config.autohide){ 15936_this._timeout=setTimeout(function(){ 15937_this.hide(); 15938},_this._config.delay); 15939} 15940}; 15941this._element.classList.remove(CLASS_NAME_HIDE); 15942Util__default["default"].reflow(this._element); 15943this._element.classList.add(CLASS_NAME_SHOWING); 15944if(this._config.animation){ 15945var transitionDuration=Util__default["default"].getTransitionDurationFromElement(this._element); 15946$__default["default"](this._element).one(Util__default["default"].TRANSITION_END,complete).emulateTransitionEnd(transitionDuration); 15947}else{ 15948complete(); 15949} 15950}; 15951_proto.hide=function hide(){ 15952if(!this._element.classList.contains(CLASS_NAME_SHOW)){ 15953return; 15954} 15955var hideEvent=$__default["default"].Event(EVENT_HIDE); 15956$__default["default"](this._element).trigger(hideEvent); 15957if(hideEvent.isDefaultPrevented()){ 15958return; 15959} 15960this._close(); 15961}; 15962_proto.dispose=function dispose(){ 15963this._clearTimeout(); 15964if(this._element.classList.contains(CLASS_NAME_SHOW)){ 15965this._element.classList.remove(CLASS_NAME_SHOW); 15966} 15967$__default["default"](this._element).off(EVENT_CLICK_DISMISS); 15968$__default["default"].removeData(this._element,DATA_KEY); 15969this._element=null; 15970this._config=null; 15971} 15972; 15973_proto._getConfig=function _getConfig(config){ 15974config=_extends({},Default,$__default["default"](this._element).data(),typeof config==='object'&&config?config:{}); 15975Util__default["default"].typeCheckConfig(NAME,config,this.constructor.DefaultType); 15976return config; 15977}; 15978_proto._setListeners=function _setListeners(){ 15979var _this2=this; 15980$__default["default"](this._element).on(EVENT_CLICK_DISMISS,SELECTOR_DATA_DISMISS,function(){ 15981return _this2.hide(); 15982}); 15983}; 15984_proto._close=function _close(){ 15985var _this3=this; 15986var complete=function complete(){ 15987_this3._element.classList.add(CLASS_NAME_HIDE); 15988$__default["default"](_this3._element).trigger(EVENT_HIDDEN); 15989}; 15990this._element.classList.remove(CLASS_NAME_SHOW); 15991if(this._config.animation){ 15992var transitionDuration=Util__default["default"].getTransitionDurationFromElement(this._element); 15993$__default["default"](this._element).one(Util__default["default"].TRANSITION_END,complete).emulateTransitionEnd(transitionDuration); 15994}else{ 15995complete(); 15996} 15997}; 15998_proto._clearTimeout=function _clearTimeout(){ 15999clearTimeout(this._timeout); 16000this._timeout=null; 16001} 16002; 16003Toast._jQueryInterface=function _jQueryInterface(config){ 16004return this.each(function(){ 16005var $element=$__default["default"](this); 16006var data=$element.data(DATA_KEY); 16007var _config=typeof config==='object'&&config; 16008if(!data){ 16009data=new Toast(this,_config); 16010$element.data(DATA_KEY,data); 16011} 16012if(typeof config==='string'){ 16013if(typeof data[config]==='undefined'){ 16014throw new TypeError("No method named \""+config+"\""); 16015} 16016data[config](this); 16017} 16018}); 16019}; 16020_createClass(Toast,null,[{ 16021key:"VERSION", 16022get:function get(){ 16023return VERSION; 16024} 16025},{ 16026key:"DefaultType", 16027get:function get(){ 16028return DefaultType; 16029} 16030},{ 16031key:"Default", 16032get:function get(){ 16033return Default; 16034} 16035}]); 16036return Toast; 16037}(); 16038$__default["default"].fn[NAME]=Toast._jQueryInterface; 16039$__default["default"].fn[NAME].Constructor=Toast; 16040$__default["default"].fn[NAME].noConflict=function(){ 16041$__default["default"].fn[NAME]=JQUERY_NO_CONFLICT; 16042return Toast._jQueryInterface; 16043}; 16044return Toast; 16045})); 16046 16047 16048/* plugins/auto/bootstrap4/v4.7.2/bootstrap/js/bootstrap-tooltip.js */ 16049 16050(function(global,factory){ 16051typeof exports==='object'&&typeof module!=='undefined'?module.exports=factory(require('jquery'),require('popper.js'),require('./util.js')): 16052typeof define==='function'&&define.amd?define(['jquery','popper.js','./util'],factory): 16053(global=typeof globalThis!=='undefined'?globalThis:global||self,global.Tooltip=factory(global.jQuery,global.Popper,global.Util)); 16054})(this,(function($,Popper,Util){'use strict'; 16055function _interopDefaultLegacy(e){return e&&typeof e==='object'&&'default'in e?e:{'default':e};} 16056var $__default=_interopDefaultLegacy($); 16057var Popper__default=_interopDefaultLegacy(Popper); 16058var Util__default=_interopDefaultLegacy(Util); 16059function _defineProperties(target,props){ 16060for(var i=0;i<props.length;i++){ 16061var descriptor=props[i]; 16062descriptor.enumerable=descriptor.enumerable||false; 16063descriptor.configurable=true; 16064if("value"in descriptor)descriptor.writable=true; 16065Object.defineProperty(target,descriptor.key,descriptor); 16066} 16067} 16068function _createClass(Constructor,protoProps,staticProps){ 16069if(protoProps)_defineProperties(Constructor.prototype,protoProps); 16070if(staticProps)_defineProperties(Constructor,staticProps); 16071Object.defineProperty(Constructor,"prototype",{ 16072writable:false 16073}); 16074return Constructor; 16075} 16076function _extends(){ 16077_extends=Object.assign?Object.assign.bind():function(target){ 16078for(var i=1;i<arguments.length;i++){ 16079var source=arguments[i]; 16080for(var key in source){ 16081if(Object.prototype.hasOwnProperty.call(source,key)){ 16082target[key]=source[key]; 16083} 16084} 16085} 16086return target; 16087}; 16088return _extends.apply(this,arguments); 16089} 16090var uriAttrs=['background','cite','href','itemtype','longdesc','poster','src','xlink:href']; 16091var ARIA_ATTRIBUTE_PATTERN=/^aria-[\w-]*$/i; 16092var DefaultWhitelist={ 16093'*':['class','dir','id','lang','role',ARIA_ATTRIBUTE_PATTERN], 16094a:['target','href','title','rel'], 16095area:[], 16096b:[], 16097br:[], 16098col:[], 16099code:[], 16100div:[], 16101em:[], 16102hr:[], 16103h1:[], 16104h2:[], 16105h3:[], 16106h4:[], 16107h5:[], 16108h6:[], 16109i:[], 16110img:['src','srcset','alt','title','width','height'], 16111li:[], 16112ol:[], 16113p:[], 16114pre:[], 16115s:[], 16116small:[], 16117span:[], 16118sub:[], 16119sup:[], 16120strong:[], 16121u:[], 16122ul:[] 16123}; 16124var SAFE_URL_PATTERN=/^(?:(?:https?|mailto|ftp|tel|file|sms):|[^#&/:?]*(?:[#/?]|$))/i; 16125var DATA_URL_PATTERN=/^data:(?:image\/(?:bmp|gif|jpeg|jpg|png|tiff|webp)|video\/(?:mpeg|mp4|ogg|webm)|audio\/(?:mp3|oga|ogg|opus));base64,[\d+/a-z]+=*$/i; 16126function allowedAttribute(attr,allowedAttributeList){ 16127var attrName=attr.nodeName.toLowerCase(); 16128if(allowedAttributeList.indexOf(attrName)!==-1){ 16129if(uriAttrs.indexOf(attrName)!==-1){ 16130return Boolean(SAFE_URL_PATTERN.test(attr.nodeValue)||DATA_URL_PATTERN.test(attr.nodeValue)); 16131} 16132return true; 16133} 16134var regExp=allowedAttributeList.filter(function(attrRegex){ 16135return attrRegex instanceof RegExp; 16136}); 16137for(var i=0,len=regExp.length;i<len;i++){ 16138if(regExp[i].test(attrName)){ 16139return true; 16140} 16141} 16142return false; 16143} 16144function sanitizeHtml(unsafeHtml,whiteList,sanitizeFn){ 16145if(unsafeHtml.length===0){ 16146return unsafeHtml; 16147} 16148if(sanitizeFn&&typeof sanitizeFn==='function'){ 16149return sanitizeFn(unsafeHtml); 16150} 16151var domParser=new window.DOMParser(); 16152var createdDocument=domParser.parseFromString(unsafeHtml,'text/html'); 16153var whitelistKeys=Object.keys(whiteList); 16154var elements=[].slice.call(createdDocument.body.querySelectorAll('*')); 16155var _loop=function _loop(i,len){ 16156var el=elements[i]; 16157var elName=el.nodeName.toLowerCase(); 16158if(whitelistKeys.indexOf(el.nodeName.toLowerCase())===-1){ 16159el.parentNode.removeChild(el); 16160return"continue"; 16161} 16162var attributeList=[].slice.call(el.attributes); 16163var whitelistedAttributes=[].concat(whiteList['*']||[],whiteList[elName]||[]); 16164attributeList.forEach(function(attr){ 16165if(!allowedAttribute(attr,whitelistedAttributes)){ 16166el.removeAttribute(attr.nodeName); 16167} 16168}); 16169}; 16170for(var i=0,len=elements.length;i<len;i++){ 16171var _ret=_loop(i); 16172if(_ret==="continue")continue; 16173} 16174return createdDocument.body.innerHTML; 16175} 16176var NAME='tooltip'; 16177var VERSION='4.6.2'; 16178var DATA_KEY='bs.tooltip'; 16179var EVENT_KEY="."+DATA_KEY; 16180var JQUERY_NO_CONFLICT=$__default["default"].fn[NAME]; 16181var CLASS_PREFIX='bs-tooltip'; 16182var BSCLS_PREFIX_REGEX=new RegExp("(^|\\s)"+CLASS_PREFIX+"\\S+",'g'); 16183var DISALLOWED_ATTRIBUTES=['sanitize','whiteList','sanitizeFn']; 16184var CLASS_NAME_FADE='fade'; 16185var CLASS_NAME_SHOW='show'; 16186var HOVER_STATE_SHOW='show'; 16187var HOVER_STATE_OUT='out'; 16188var SELECTOR_TOOLTIP_INNER='.tooltip-inner'; 16189var SELECTOR_ARROW='.arrow'; 16190var TRIGGER_HOVER='hover'; 16191var TRIGGER_FOCUS='focus'; 16192var TRIGGER_CLICK='click'; 16193var TRIGGER_MANUAL='manual'; 16194var AttachmentMap={ 16195AUTO:'auto', 16196TOP:'top', 16197RIGHT:'right', 16198BOTTOM:'bottom', 16199LEFT:'left' 16200}; 16201var Default={ 16202animation:true, 16203template:'<div class="tooltip" role="tooltip">'+'<div class="arrow"></div>'+'<div class="tooltip-inner"></div></div>', 16204trigger:'hover focus', 16205title:'', 16206delay:0, 16207html:false, 16208selector:false, 16209placement:'top', 16210offset:0, 16211container:false, 16212fallbackPlacement:'flip', 16213boundary:'scrollParent', 16214customClass:'', 16215sanitize:true, 16216sanitizeFn:null, 16217whiteList:DefaultWhitelist, 16218popperConfig:null 16219}; 16220var DefaultType={ 16221animation:'boolean', 16222template:'string', 16223title:'(string|element|function)', 16224trigger:'string', 16225delay:'(number|object)', 16226html:'boolean',
vendor: 4,268 bytes, lines 16227-16356
16227selector:'(string|boolean)', 16228placement:'(string|function)', 16229offset:'(number|string|function)', 16230container:'(string|element|boolean)', 16231fallbackPlacement:'(string|array)', 16232boundary:'(string|element)', 16233customClass:'(string|function)', 16234sanitize:'boolean', 16235sanitizeFn:'(null|function)', 16236whiteList:'object', 16237popperConfig:'(null|object)' 16238}; 16239var Event={ 16240HIDE:"hide"+EVENT_KEY, 16241HIDDEN:"hidden"+EVENT_KEY, 16242SHOW:"show"+EVENT_KEY, 16243SHOWN:"shown"+EVENT_KEY, 16244INSERTED:"inserted"+EVENT_KEY, 16245CLICK:"click"+EVENT_KEY, 16246FOCUSIN:"focusin"+EVENT_KEY, 16247FOCUSOUT:"focusout"+EVENT_KEY, 16248MOUSEENTER:"mouseenter"+EVENT_KEY, 16249MOUSELEAVE:"mouseleave"+EVENT_KEY 16250}; 16251var Tooltip=function(){ 16252function Tooltip(element,config){ 16253if(typeof Popper__default["default"]==='undefined'){ 16254throw new TypeError('Bootstrap\'s tooltips require Popper (https://popper.js.org)'); 16255} 16256this._isEnabled=true; 16257this._timeout=0; 16258this._hoverState=''; 16259this._activeTrigger={}; 16260this._popper=null; 16261this.element=element; 16262this.config=this._getConfig(config); 16263this.tip=null; 16264this._setListeners(); 16265} 16266var _proto=Tooltip.prototype; 16267_proto.enable=function enable(){ 16268this._isEnabled=true; 16269}; 16270_proto.disable=function disable(){ 16271this._isEnabled=false; 16272}; 16273_proto.toggleEnabled=function toggleEnabled(){ 16274this._isEnabled=!this._isEnabled; 16275}; 16276_proto.toggle=function toggle(event){ 16277if(!this._isEnabled){ 16278return; 16279} 16280if(event){ 16281var dataKey=this.constructor.DATA_KEY; 16282var context=$__default["default"](event.currentTarget).data(dataKey); 16283if(!context){ 16284context=new this.constructor(event.currentTarget,this._getDelegateConfig()); 16285$__default["default"](event.currentTarget).data(dataKey,context); 16286} 16287context._activeTrigger.click=!context._activeTrigger.click; 16288if(context._isWithActiveTrigger()){ 16289context._enter(null,context); 16290}else{ 16291context._leave(null,context); 16292} 16293}else{ 16294if($__default["default"](this.getTipElement()).hasClass(CLASS_NAME_SHOW)){ 16295this._leave(null,this); 16296return; 16297} 16298this._enter(null,this); 16299} 16300}; 16301_proto.dispose=function dispose(){ 16302clearTimeout(this._timeout); 16303$__default["default"].removeData(this.element,this.constructor.DATA_KEY); 16304$__default["default"](this.element).off(this.constructor.EVENT_KEY); 16305$__default["default"](this.element).closest('.modal').off('hide.bs.modal',this._hideModalHandler); 16306if(this.tip){ 16307$__default["default"](this.tip).remove(); 16308} 16309this._isEnabled=null; 16310this._timeout=null; 16311this._hoverState=null; 16312this._activeTrigger=null; 16313if(this._popper){ 16314this._popper.destroy(); 16315} 16316this._popper=null; 16317this.element=null; 16318this.config=null; 16319this.tip=null; 16320}; 16321_proto.show=function show(){ 16322var _this=this; 16323if($__default["default"](this.element).css('display')==='none'){ 16324throw new Error('Please use show on visible elements'); 16325} 16326var showEvent=$__default["default"].Event(this.constructor.Event.SHOW); 16327if(this.isWithContent()&&this._isEnabled){ 16328$__default["default"](this.element).trigger(showEvent); 16329var shadowRoot=Util__default["default"].findShadowRoot(this.element); 16330var isInTheDom=$__default["default"].contains(shadowRoot!==null?shadowRoot:this.element.ownerDocument.documentElement,this.element); 16331if(showEvent.isDefaultPrevented()||!isInTheDom){ 16332return; 16333} 16334var tip=this.getTipElement(); 16335var tipId=Util__default["default"].getUID(this.constructor.NAME); 16336tip.setAttribute('id',tipId); 16337this.element.setAttribute('aria-describedby',tipId); 16338this.setContent(); 16339if(this.config.animation){ 16340$__default["default"](tip).addClass(CLASS_NAME_FADE); 16341} 16342var placement=typeof this.config.placement==='function'?this.config.placement.call(this,tip,this.element):this.config.placement; 16343var attachment=this._getAttachment(placement); 16344this.addAttachmentClass(attachment); 16345var container=this._getContainer(); 16346$__default["default"](tip).data(this.constructor.DATA_KEY,this); 16347if(!$__default["default"].contains(this.element.ownerDocument.documentElement,this.tip)){ 16348$__default["default"](tip).appendTo(container); 16349} 16350$__default["default"](this.element).trigger(this.constructor.Event.INSERTED); 16351this._popper=new Popper__default["default"](this.element,tip,this._getPopperConfig(attachment)); 16352$__default["default"](tip).addClass(CLASS_NAME_SHOW); 16353$__default["default"](tip).addClass(this.config.customClass); 16354if('ontouchstart'in document.documentElement){ 16355$__default["default"](document.body).children().on('mouseover',null,$__default["default"].noop); 16356}
vendor: 10,059 bytes, lines 16357-16688
16357var complete=function complete(){ 16358if(_this.config.animation){ 16359_this._fixTransition(); 16360} 16361var prevHoverState=_this._hoverState; 16362_this._hoverState=null; 16363$__default["default"](_this.element).trigger(_this.constructor.Event.SHOWN); 16364if(prevHoverState===HOVER_STATE_OUT){ 16365_this._leave(null,_this); 16366} 16367}; 16368if($__default["default"](this.tip).hasClass(CLASS_NAME_FADE)){ 16369var transitionDuration=Util__default["default"].getTransitionDurationFromElement(this.tip); 16370$__default["default"](this.tip).one(Util__default["default"].TRANSITION_END,complete).emulateTransitionEnd(transitionDuration); 16371}else{ 16372complete(); 16373} 16374} 16375}; 16376_proto.hide=function hide(callback){ 16377var _this2=this; 16378var tip=this.getTipElement(); 16379var hideEvent=$__default["default"].Event(this.constructor.Event.HIDE); 16380var complete=function complete(){ 16381if(_this2._hoverState!==HOVER_STATE_SHOW&&tip.parentNode){ 16382tip.parentNode.removeChild(tip); 16383} 16384_this2._cleanTipClass(); 16385_this2.element.removeAttribute('aria-describedby'); 16386$__default["default"](_this2.element).trigger(_this2.constructor.Event.HIDDEN); 16387if(_this2._popper!==null){ 16388_this2._popper.destroy(); 16389} 16390if(callback){ 16391callback(); 16392} 16393}; 16394$__default["default"](this.element).trigger(hideEvent); 16395if(hideEvent.isDefaultPrevented()){ 16396return; 16397} 16398$__default["default"](tip).removeClass(CLASS_NAME_SHOW); 16399if('ontouchstart'in document.documentElement){ 16400$__default["default"](document.body).children().off('mouseover',null,$__default["default"].noop); 16401} 16402this._activeTrigger[TRIGGER_CLICK]=false; 16403this._activeTrigger[TRIGGER_FOCUS]=false; 16404this._activeTrigger[TRIGGER_HOVER]=false; 16405if($__default["default"](this.tip).hasClass(CLASS_NAME_FADE)){ 16406var transitionDuration=Util__default["default"].getTransitionDurationFromElement(tip); 16407$__default["default"](tip).one(Util__default["default"].TRANSITION_END,complete).emulateTransitionEnd(transitionDuration); 16408}else{ 16409complete(); 16410} 16411this._hoverState=''; 16412}; 16413_proto.update=function update(){ 16414if(this._popper!==null){ 16415this._popper.scheduleUpdate(); 16416} 16417} 16418; 16419_proto.isWithContent=function isWithContent(){ 16420return Boolean(this.getTitle()); 16421}; 16422_proto.addAttachmentClass=function addAttachmentClass(attachment){ 16423$__default["default"](this.getTipElement()).addClass(CLASS_PREFIX+"-"+attachment); 16424}; 16425_proto.getTipElement=function getTipElement(){ 16426this.tip=this.tip||$__default["default"](this.config.template)[0]; 16427return this.tip; 16428}; 16429_proto.setContent=function setContent(){ 16430var tip=this.getTipElement(); 16431this.setElementContent($__default["default"](tip.querySelectorAll(SELECTOR_TOOLTIP_INNER)),this.getTitle()); 16432$__default["default"](tip).removeClass(CLASS_NAME_FADE+" "+CLASS_NAME_SHOW); 16433}; 16434_proto.setElementContent=function setElementContent($element,content){ 16435if(typeof content==='object'&&(content.nodeType||content.jquery)){ 16436if(this.config.html){ 16437if(!$__default["default"](content).parent().is($element)){ 16438$element.empty().append(content); 16439} 16440}else{ 16441$element.text($__default["default"](content).text()); 16442} 16443return; 16444} 16445if(this.config.html){ 16446if(this.config.sanitize){ 16447content=sanitizeHtml(content,this.config.whiteList,this.config.sanitizeFn); 16448} 16449$element.html(content); 16450}else{ 16451$element.text(content); 16452} 16453}; 16454_proto.getTitle=function getTitle(){ 16455var title=this.element.getAttribute('data-original-title'); 16456if(!title){ 16457title=typeof this.config.title==='function'?this.config.title.call(this.element):this.config.title; 16458} 16459return title; 16460} 16461; 16462_proto._getPopperConfig=function _getPopperConfig(attachment){ 16463var _this3=this; 16464var defaultBsConfig={ 16465placement:attachment, 16466modifiers:{ 16467offset:this._getOffset(), 16468flip:{ 16469behavior:this.config.fallbackPlacement 16470}, 16471arrow:{ 16472element:SELECTOR_ARROW 16473}, 16474preventOverflow:{ 16475boundariesElement:this.config.boundary 16476} 16477}, 16478onCreate:function onCreate(data){ 16479if(data.originalPlacement!==data.placement){ 16480_this3._handlePopperPlacementChange(data); 16481} 16482}, 16483onUpdate:function onUpdate(data){ 16484return _this3._handlePopperPlacementChange(data); 16485} 16486}; 16487return _extends({},defaultBsConfig,this.config.popperConfig); 16488}; 16489_proto._getOffset=function _getOffset(){ 16490var _this4=this; 16491var offset={}; 16492if(typeof this.config.offset==='function'){ 16493offset.fn=function(data){ 16494data.offsets=_extends({},data.offsets,_this4.config.offset(data.offsets,_this4.element)); 16495return data; 16496}; 16497}else{ 16498offset.offset=this.config.offset; 16499} 16500return offset; 16501}; 16502_proto._getContainer=function _getContainer(){ 16503if(this.config.container===false){ 16504return document.body; 16505} 16506if(Util__default["default"].isElement(this.config.container)){ 16507return $__default["default"](this.config.container); 16508} 16509return $__default["default"](document).find(this.config.container); 16510}; 16511_proto._getAttachment=function _getAttachment(placement){ 16512return AttachmentMap[placement.toUpperCase()]; 16513}; 16514_proto._setListeners=function _setListeners(){ 16515var _this5=this; 16516var triggers=this.config.trigger.split(' '); 16517triggers.forEach(function(trigger){ 16518if(trigger==='click'){ 16519$__default["default"](_this5.element).on(_this5.constructor.Event.CLICK,_this5.config.selector,function(event){ 16520return _this5.toggle(event); 16521}); 16522}else if(trigger!==TRIGGER_MANUAL){ 16523var eventIn=trigger===TRIGGER_HOVER?_this5.constructor.Event.MOUSEENTER:_this5.constructor.Event.FOCUSIN; 16524var eventOut=trigger===TRIGGER_HOVER?_this5.constructor.Event.MOUSELEAVE:_this5.constructor.Event.FOCUSOUT; 16525$__default["default"](_this5.element).on(eventIn,_this5.config.selector,function(event){ 16526return _this5._enter(event); 16527}).on(eventOut,_this5.config.selector,function(event){ 16528return _this5._leave(event); 16529}); 16530} 16531}); 16532this._hideModalHandler=function(){ 16533if(_this5.element){ 16534_this5.hide(); 16535} 16536}; 16537$__default["default"](this.element).closest('.modal').on('hide.bs.modal',this._hideModalHandler); 16538if(this.config.selector){ 16539this.config=_extends({},this.config,{ 16540trigger:'manual', 16541selector:'' 16542}); 16543}else{ 16544this._fixTitle(); 16545} 16546}; 16547_proto._fixTitle=function _fixTitle(){ 16548var titleType=typeof this.element.getAttribute('data-original-title'); 16549if(this.element.getAttribute('title')||titleType!=='string'){ 16550this.element.setAttribute('data-original-title',this.element.getAttribute('title')||''); 16551this.element.setAttribute('title',''); 16552} 16553}; 16554_proto._enter=function _enter(event,context){ 16555var dataKey=this.constructor.DATA_KEY; 16556context=context||$__default["default"](event.currentTarget).data(dataKey); 16557if(!context){ 16558context=new this.constructor(event.currentTarget,this._getDelegateConfig()); 16559$__default["default"](event.currentTarget).data(dataKey,context); 16560} 16561if(event){ 16562context._activeTrigger[event.type==='focusin'?TRIGGER_FOCUS:TRIGGER_HOVER]=true; 16563} 16564if($__default["default"](context.getTipElement()).hasClass(CLASS_NAME_SHOW)||context._hoverState===HOVER_STATE_SHOW){ 16565context._hoverState=HOVER_STATE_SHOW; 16566return; 16567} 16568clearTimeout(context._timeout); 16569context._hoverState=HOVER_STATE_SHOW; 16570if(!context.config.delay||!context.config.delay.show){ 16571context.show(); 16572return; 16573} 16574context._timeout=setTimeout(function(){ 16575if(context._hoverState===HOVER_STATE_SHOW){ 16576context.show(); 16577} 16578},context.config.delay.show); 16579}; 16580_proto._leave=function _leave(event,context){ 16581var dataKey=this.constructor.DATA_KEY; 16582context=context||$__default["default"](event.currentTarget).data(dataKey); 16583if(!context){ 16584context=new this.constructor(event.currentTarget,this._getDelegateConfig()); 16585$__default["default"](event.currentTarget).data(dataKey,context); 16586} 16587if(event){ 16588context._activeTrigger[event.type==='focusout'?TRIGGER_FOCUS:TRIGGER_HOVER]=false; 16589} 16590if(context._isWithActiveTrigger()){ 16591return; 16592} 16593clearTimeout(context._timeout); 16594context._hoverState=HOVER_STATE_OUT; 16595if(!context.config.delay||!context.config.delay.hide){ 16596context.hide(); 16597return; 16598} 16599context._timeout=setTimeout(function(){ 16600if(context._hoverState===HOVER_STATE_OUT){ 16601context.hide(); 16602} 16603},context.config.delay.hide); 16604}; 16605_proto._isWithActiveTrigger=function _isWithActiveTrigger(){ 16606for(var trigger in this._activeTrigger){ 16607if(this._activeTrigger[trigger]){ 16608return true; 16609} 16610} 16611return false; 16612}; 16613_proto._getConfig=function _getConfig(config){ 16614var dataAttributes=$__default["default"](this.element).data(); 16615Object.keys(dataAttributes).forEach(function(dataAttr){ 16616if(DISALLOWED_ATTRIBUTES.indexOf(dataAttr)!==-1){ 16617delete dataAttributes[dataAttr]; 16618} 16619}); 16620config=_extends({},this.constructor.Default,dataAttributes,typeof config==='object'&&config?config:{}); 16621if(typeof config.delay==='number'){ 16622config.delay={ 16623show:config.delay, 16624hide:config.delay 16625}; 16626} 16627if(typeof config.title==='number'){ 16628config.title=config.title.toString(); 16629} 16630if(typeof config.content==='number'){ 16631config.content=config.content.toString(); 16632} 16633Util__default["default"].typeCheckConfig(NAME,config,this.constructor.DefaultType); 16634if(config.sanitize){ 16635config.template=sanitizeHtml(config.template,config.whiteList,config.sanitizeFn); 16636} 16637return config; 16638}; 16639_proto._getDelegateConfig=function _getDelegateConfig(){ 16640var config={}; 16641if(this.config){ 16642for(var key in this.config){ 16643if(this.constructor.Default[key]!==this.config[key]){ 16644config[key]=this.config[key]; 16645} 16646} 16647} 16648return config; 16649}; 16650_proto._cleanTipClass=function _cleanTipClass(){ 16651var $tip=$__default["default"](this.getTipElement()); 16652var tabClass=$tip.attr('class').match(BSCLS_PREFIX_REGEX); 16653if(tabClass!==null&&tabClass.length){ 16654$tip.removeClass(tabClass.join('')); 16655} 16656}; 16657_proto._handlePopperPlacementChange=function _handlePopperPlacementChange(popperData){ 16658this.tip=popperData.instance.popper; 16659this._cleanTipClass(); 16660this.addAttachmentClass(this._getAttachment(popperData.placement)); 16661}; 16662_proto._fixTransition=function _fixTransition(){ 16663var tip=this.getTipElement(); 16664var initConfigAnimation=this.config.animation; 16665if(tip.getAttribute('x-placement')!==null){ 16666return; 16667} 16668$__default["default"](tip).removeClass(CLASS_NAME_FADE); 16669this.config.animation=false; 16670this.hide(); 16671this.show(); 16672this.config.animation=initConfigAnimation; 16673} 16674; 16675Tooltip._jQueryInterface=function _jQueryInterface(config){ 16676return this.each(function(){ 16677var $element=$__default["default"](this); 16678var data=$element.data(DATA_KEY); 16679var _config=typeof config==='object'&&config; 16680if(!data&&/dispose|hide/.test(config)){ 16681return; 16682} 16683if(!data){ 16684data=new Tooltip(this,_config); 16685$element.data(DATA_KEY,data); 16686} 16687if(typeof config==='string'){ 16688if(typeof data[config]==='undefined'){
vendor: 5,467 bytes, lines 16689-16878
16689throw new TypeError("No method named \""+config+"\""); 16690} 16691data[config](); 16692} 16693}); 16694}; 16695_createClass(Tooltip,null,[{ 16696key:"VERSION", 16697get:function get(){ 16698return VERSION; 16699} 16700},{ 16701key:"Default", 16702get:function get(){ 16703return Default; 16704} 16705},{ 16706key:"NAME", 16707get:function get(){ 16708return NAME; 16709} 16710},{ 16711key:"DATA_KEY", 16712get:function get(){ 16713return DATA_KEY; 16714} 16715},{ 16716key:"Event", 16717get:function get(){ 16718return Event; 16719} 16720},{ 16721key:"EVENT_KEY", 16722get:function get(){ 16723return EVENT_KEY; 16724} 16725},{ 16726key:"DefaultType", 16727get:function get(){ 16728return DefaultType; 16729} 16730}]); 16731return Tooltip; 16732}(); 16733$__default["default"].fn[NAME]=Tooltip._jQueryInterface; 16734$__default["default"].fn[NAME].Constructor=Tooltip; 16735$__default["default"].fn[NAME].noConflict=function(){ 16736$__default["default"].fn[NAME]=JQUERY_NO_CONFLICT; 16737return Tooltip._jQueryInterface; 16738}; 16739return Tooltip; 16740})); 16741 16742 16743/* plugins/auto/bootstrap4/v4.7.2/bootstrap/js/bootstrap-popover.js */ 16744 16745(function(global,factory){ 16746typeof exports==='object'&&typeof module!=='undefined'?module.exports=factory(require('jquery'),require('./tooltip.js')): 16747typeof define==='function'&&define.amd?define(['jquery','./tooltip'],factory): 16748(global=typeof globalThis!=='undefined'?globalThis:global||self,global.Popover=factory(global.jQuery,global.Tooltip)); 16749})(this,(function($,Tooltip){'use strict'; 16750function _interopDefaultLegacy(e){return e&&typeof e==='object'&&'default'in e?e:{'default':e};} 16751var $__default=_interopDefaultLegacy($); 16752var Tooltip__default=_interopDefaultLegacy(Tooltip); 16753function _defineProperties(target,props){ 16754for(var i=0;i<props.length;i++){ 16755var descriptor=props[i]; 16756descriptor.enumerable=descriptor.enumerable||false; 16757descriptor.configurable=true; 16758if("value"in descriptor)descriptor.writable=true; 16759Object.defineProperty(target,descriptor.key,descriptor); 16760} 16761} 16762function _createClass(Constructor,protoProps,staticProps){ 16763if(protoProps)_defineProperties(Constructor.prototype,protoProps); 16764if(staticProps)_defineProperties(Constructor,staticProps); 16765Object.defineProperty(Constructor,"prototype",{ 16766writable:false 16767}); 16768return Constructor; 16769} 16770function _extends(){ 16771_extends=Object.assign?Object.assign.bind():function(target){ 16772for(var i=1;i<arguments.length;i++){ 16773var source=arguments[i]; 16774for(var key in source){ 16775if(Object.prototype.hasOwnProperty.call(source,key)){ 16776target[key]=source[key]; 16777} 16778} 16779} 16780return target; 16781}; 16782return _extends.apply(this,arguments); 16783} 16784function _inheritsLoose(subClass,superClass){ 16785subClass.prototype=Object.create(superClass.prototype); 16786subClass.prototype.constructor=subClass; 16787_setPrototypeOf(subClass,superClass); 16788} 16789function _setPrototypeOf(o,p){ 16790_setPrototypeOf=Object.setPrototypeOf?Object.setPrototypeOf.bind():function _setPrototypeOf(o,p){ 16791o.__proto__=p; 16792return o; 16793}; 16794return _setPrototypeOf(o,p); 16795} 16796var NAME='popover'; 16797var VERSION='4.6.2'; 16798var DATA_KEY='bs.popover'; 16799var EVENT_KEY="."+DATA_KEY; 16800var JQUERY_NO_CONFLICT=$__default["default"].fn[NAME]; 16801var CLASS_PREFIX='bs-popover'; 16802var BSCLS_PREFIX_REGEX=new RegExp("(^|\\s)"+CLASS_PREFIX+"\\S+",'g'); 16803var CLASS_NAME_FADE='fade'; 16804var CLASS_NAME_SHOW='show'; 16805var SELECTOR_TITLE='.popover-header'; 16806var SELECTOR_CONTENT='.popover-body'; 16807var Default=_extends({},Tooltip__default["default"].Default,{ 16808placement:'right', 16809trigger:'click', 16810content:'', 16811template:'<div class="popover" role="tooltip">'+'<div class="arrow"></div>'+'<h3 class="popover-header"></h3>'+'<div class="popover-body"></div></div>' 16812}); 16813var DefaultType=_extends({},Tooltip__default["default"].DefaultType,{ 16814content:'(string|element|function)' 16815}); 16816var Event={ 16817HIDE:"hide"+EVENT_KEY, 16818HIDDEN:"hidden"+EVENT_KEY, 16819SHOW:"show"+EVENT_KEY, 16820SHOWN:"shown"+EVENT_KEY, 16821INSERTED:"inserted"+EVENT_KEY, 16822CLICK:"click"+EVENT_KEY, 16823FOCUSIN:"focusin"+EVENT_KEY, 16824FOCUSOUT:"focusout"+EVENT_KEY, 16825MOUSEENTER:"mouseenter"+EVENT_KEY, 16826MOUSELEAVE:"mouseleave"+EVENT_KEY 16827}; 16828var Popover=function(_Tooltip){ 16829_inheritsLoose(Popover,_Tooltip); 16830function Popover(){ 16831return _Tooltip.apply(this,arguments)||this; 16832} 16833var _proto=Popover.prototype; 16834_proto.isWithContent=function isWithContent(){ 16835return this.getTitle()||this._getContent(); 16836}; 16837_proto.addAttachmentClass=function addAttachmentClass(attachment){ 16838$__default["default"](this.getTipElement()).addClass(CLASS_PREFIX+"-"+attachment); 16839}; 16840_proto.getTipElement=function getTipElement(){ 16841this.tip=this.tip||$__default["default"](this.config.template)[0]; 16842return this.tip; 16843}; 16844_proto.setContent=function setContent(){ 16845var $tip=$__default["default"](this.getTipElement()); 16846this.setElementContent($tip.find(SELECTOR_TITLE),this.getTitle()); 16847var content=this._getContent(); 16848if(typeof content==='function'){ 16849content=content.call(this.element); 16850} 16851this.setElementContent($tip.find(SELECTOR_CONTENT),content); 16852$tip.removeClass(CLASS_NAME_FADE+" "+CLASS_NAME_SHOW); 16853} 16854; 16855_proto._getContent=function _getContent(){ 16856return this.element.getAttribute('data-content')||this.config.content; 16857}; 16858_proto._cleanTipClass=function _cleanTipClass(){ 16859var $tip=$__default["default"](this.getTipElement()); 16860var tabClass=$tip.attr('class').match(BSCLS_PREFIX_REGEX); 16861if(tabClass!==null&&tabClass.length>0){ 16862$tip.removeClass(tabClass.join('')); 16863} 16864} 16865; 16866Popover._jQueryInterface=function _jQueryInterface(config){ 16867return this.each(function(){ 16868var data=$__default["default"](this).data(DATA_KEY); 16869var _config=typeof config==='object'?config:null; 16870if(!data&&/dispose|hide/.test(config)){ 16871return; 16872} 16873if(!data){ 16874data=new Popover(this,_config); 16875$__default["default"](this).data(DATA_KEY,data); 16876} 16877if(typeof config==='string'){ 16878if(typeof data[config]==='undefined'){
vendor: 837 bytes, lines 16879-16933
16879throw new TypeError("No method named \""+config+"\""); 16880} 16881data[config](); 16882} 16883}); 16884}; 16885_createClass(Popover,null,[{ 16886key:"VERSION", 16887get: 16888function get(){ 16889return VERSION; 16890} 16891},{ 16892key:"Default", 16893get:function get(){ 16894return Default; 16895} 16896},{ 16897key:"NAME", 16898get:function get(){ 16899return NAME; 16900} 16901},{ 16902key:"DATA_KEY", 16903get:function get(){ 16904return DATA_KEY; 16905} 16906},{ 16907key:"Event", 16908get:function get(){ 16909return Event; 16910} 16911},{ 16912key:"EVENT_KEY", 16913get:function get(){ 16914return EVENT_KEY; 16915} 16916},{ 16917key:"DefaultType", 16918get:function get(){ 16919return DefaultType; 16920} 16921}]); 16922return Popover; 16923}(Tooltip__default["default"]); 16924$__default["default"].fn[NAME]=Popover._jQueryInterface; 16925$__default["default"].fn[NAME].Constructor=Popover; 16926$__default["default"].fn[NAME].noConflict=function(){ 16927$__default["default"].fn[NAME]=JQUERY_NO_CONFLICT; 16928return Popover._jQueryInterface; 16929}; 16930return Popover; 16931})); 16932 16933
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.