").append(ot.parseHTML(t)).find(i):t)}).complete(n&&function(t,e){r.each(n,o||[t.responseText,e,t])}),this},ot.each(["ajaxStart","ajaxStop","ajaxComplete","ajaxError","ajaxSuccess","ajaxSend"],function(t,e){ot.fn[e]=function(t){return this.on(e,t)}}),ot.expr.filters.animated=function(t){return ot.grep(ot.timers,function(e){return t===e.elem}).length};var on=t.document.documentElement;ot.offset={setOffset:function(t,e,n){var i,o,a,r,s,l,c,u=ot.css(t,"position"),d=ot(t),h={};"static"===u&&(t.style.position="relative"),s=d.offset(),a=ot.css(t,"top"),l=ot.css(t,"left"),c=("absolute"===u||"fixed"===u)&&ot.inArray("auto",[a,l])>-1,c?(i=d.position(),r=i.top,o=i.left):(r=parseFloat(a)||0,o=parseFloat(l)||0),ot.isFunction(e)&&(e=e.call(t,n,s)),null!=e.top&&(h.top=e.top-s.top+r),null!=e.left&&(h.left=e.left-s.left+o),"using"in e?e.using.call(t,h):d.css(h)}},ot.fn.extend({offset:function(t){if(arguments.length)return void 0===t?this:this.each(function(e){ot.offset.setOffset(this,t,e)});var e,n,i={top:0,left:0},o=this[0],a=o&&o.ownerDocument;return a?(e=a.documentElement,ot.contains(e,o)?(typeof o.getBoundingClientRect!==St&&(i=o.getBoundingClientRect()),n=Y(a),{top:i.top+(n.pageYOffset||e.scrollTop)-(e.clientTop||0),left:i.left+(n.pageXOffset||e.scrollLeft)-(e.clientLeft||0)}):i):void 0},position:function(){if(this[0]){var t,e,n={top:0,left:0},i=this[0];return"fixed"===ot.css(i,"position")?e=i.getBoundingClientRect():(t=this.offsetParent(),e=this.offset(),ot.nodeName(t[0],"html")||(n=t.offset()),n.top+=ot.css(t[0],"borderTopWidth",!0),n.left+=ot.css(t[0],"borderLeftWidth",!0)),{top:e.top-n.top-ot.css(i,"marginTop",!0),left:e.left-n.left-ot.css(i,"marginLeft",!0)}}},offsetParent:function(){return this.map(function(){for(var t=this.offsetParent||on;t&&!ot.nodeName(t,"html")&&"static"===ot.css(t,"position");)t=t.offsetParent;return t||on})}}),ot.each({scrollLeft:"pageXOffset",scrollTop:"pageYOffset"},function(t,e){var n=/Y/.test(e);ot.fn[t]=function(i){return Ot(this,function(t,i,o){var a=Y(t);return void 0===o?a?e in a?a[e]:a.document.documentElement[i]:t[i]:void(a?a.scrollTo(n?ot(a).scrollLeft():o,n?o:ot(a).scrollTop()):t[i]=o)},t,i,arguments.length,null)}}),ot.each(["top","left"],function(t,e){ot.cssHooks[e]=k(nt.pixelPosition,function(t,n){return n?(n=ee(t,e),ie.test(n)?ot(t).position()[e]+"px":n):void 0})}),ot.each({Height:"height",Width:"width"},function(t,e){ot.each({padding:"inner"+t,content:e,"":"outer"+t},function(n,i){ot.fn[i]=function(i,o){var a=arguments.length&&(n||"boolean"!=typeof i),r=n||(i===!0||o===!0?"margin":"border");
-return Ot(this,function(e,n,i){var o;return ot.isWindow(e)?e.document.documentElement["client"+t]:9===e.nodeType?(o=e.documentElement,Math.max(e.body["scroll"+t],o["scroll"+t],e.body["offset"+t],o["offset"+t],o["client"+t])):void 0===i?ot.css(e,n,r):ot.style(e,n,i,r)},e,a?i:void 0,a,null)}})}),ot.fn.size=function(){return this.length},ot.fn.andSelf=ot.fn.addBack,"function"==typeof define&&define.amd&&define("jquery",[],function(){return ot});var an=t.jQuery,rn=t.$;return ot.noConflict=function(e){return t.$===ot&&(t.$=rn),e&&t.jQuery===ot&&(t.jQuery=an),ot},typeof e===St&&(t.jQuery=t.$=ot),ot});define("app/init",["jquery"],function(t){"use strict";var e={path:{img:"public/img/",getCaptcha:"api/user/getCaptcha",getServerStatus:"api/user/getEveServerStatus",getCookieCharacterData:"api/user/getCookieCharacter",logIn:"api/user/logIn",logout:"api/user/logout",deleteLog:"api/user/deleteLog",saveUserConfig:"api/user/saveAccount",deleteAccount:"api/user/deleteAccount",searchAccess:"api/access/search",initMap:"api/map/init",updateMapData:"api/map/updateData",updateUserData:"api/map/updateUserData",saveMap:"api/map/save",deleteMap:"api/map/delete",importMap:"api/map/import",searchSystem:"api/system/search",saveSystem:"api/system/save",deleteSystem:"api/system/delete",getSystemGraphData:"api/system/graphData",getConstellationData:"api/system/constellationData",setDestination:"api/system/setDestination",saveConnection:"api/connection/save",deleteConnection:"api/connection/delete",getSignatures:"api/signature/getAll",saveSignatureData:"api/signature/save",deleteSignatureData:"api/signature/delete",searchRoute:"api/route/search",gitHubReleases:"api/github/releases"},url:{ccpImageServer:"https://image.eveonline.com/",zKillboard:"https://zkillboard.com/api/"},animationSpeed:{splashOverlay:300,headerLink:100,mapOverlay:200,mapMoveSystem:300,mapDeleteSystem:200,mapModule:200,dialogEvents:180},mapIcons:[{"class":"fa-desktop",label:"desktop",unicode:""},{"class":"fa-bookmark",label:"bookmark",unicode:""},{"class":"fa-cube",label:"cube",unicode:""},{"class":"fa-plane",label:"plane",unicode:""},{"class":"fa-globe",label:"globe",unicode:""},{"class":"fa-rocket",label:"rocket",unicode:""},{"class":"fa-life-ring",label:"life ring",unicode:""},{"class":"fa-heart",label:"heart",unicode:""}],classes:{logTypes:{info:{"class":"pf-log-info",label:"info"},warning:{"class":"pf-log-warning",label:"warning"},error:{"class":"pf-log-error",label:"error"}},systemEffects:{effect:{"class":"pf-system-effect",name:"no effect"},magnetar:{"class":"pf-system-effect-magnetar",name:"magnetar"},redGiant:{"class":"pf-system-effect-redgiant",name:"red giant"},pulsar:{"class":"pf-system-effect-pulsar",name:"pulsar"},wolfRayet:{"class":"pf-system-effect-wolfrayet",name:"wolf rayet"},cataclysmic:{"class":"pf-system-effect-cataclysmic",name:"cytaclysmic"},blackHole:{"class":"pf-system-effect-blackhole",name:"black hole"}},systemSecurity:{security:{"class":"pf-system-sec"},SH:{"class":"pf-system-sec-unknown"},H:{"class":"pf-system-sec-highSec"},L:{"class":"pf-system-sec-lowSec"},"0.0":{"class":"pf-system-sec-nullSec"},C6:{"class":"pf-system-sec-high"},C5:{"class":"pf-system-sec-high"},C4:{"class":"pf-system-sec-mid"},C3:{"class":"pf-system-sec-mid"},C2:{"class":"pf-system-sec-low"},C1:{"class":"pf-system-sec-low"}},trueSec:{"0.0":{"class":"pf-system-security-0-0"},.1:{"class":"pf-system-security-0-1"},.2:{"class":"pf-system-security-0-2"},.3:{"class":"pf-system-security-0-3"},.4:{"class":"pf-system-security-0-4"},.5:{"class":"pf-system-security-0-5"},.6:{"class":"pf-system-security-0-6"},.7:{"class":"pf-system-security-0-7"},.8:{"class":"pf-system-security-0-8"},.9:{"class":"pf-system-security-0-9"},"1.0":{"class":"pf-system-security-1-0"}},systemInfo:{rally:{"class":"pf-system-info-rally",label:"rally point"}},pieChart:{"class":"pf-pie-chart",pieChartMapCounterClass:"pf-pie-chart-map-timer"}},defaultMapScope:"wh",connectionTypes:{jumpbridge:{cssClass:"pf-map-connection-jumpbridge",paintStyle:{dashstyle:"4 2 1 2"}},stargate:{cssClass:"pf-map-connection-stargate",paintStyle:{dashstyle:"0"}},wh_eol:{cssClass:"pf-map-connection-wh-eol",paintStyle:{dashstyle:"0"}},wh_fresh:{cssClass:"pf-map-connection-wh-fresh",paintStyle:{dashstyle:"0"}},wh_reduced:{cssClass:"pf-map-connection-wh-reduced",paintStyle:{dashstyle:"0"}},wh_critical:{cssClass:"pf-map-connection-wh-critical",paintStyle:{dashstyle:"0"}},frigate:{cssClass:"pf-map-connection-frig",paintStyle:{dashstyle:"0.99"},overlays:[["Label",{label:"frig",cssClass:["pf-map-connection-overlay","frig"].join(" ")}]]},preserve_mass:{cssClass:"pf-map-connection-preserve-mass",overlays:[["Label",{label:'
save mass',cssClass:["pf-map-connection-overlay","mass"].join(" "),width:50,length:30,location:.5}]]}},signatureGroups:{1:{name:"combat site",label:"Combat"},2:{name:"relic site",label:"Relic"},3:{name:"data site",label:"Data"},4:{name:"gas site",label:"Gas"},5:{name:"wormhole",label:"Wormhole"},6:{name:"ore site",label:"Ore"},7:{name:"ghost",label:"Ghost"}},frigateWormholes:{1:{1:"E004 - C1",2:"L005 - C2",3:"Z006 - C3",4:"M001 - C4",5:"C008 - C5",6:"G008 - C6",7:"Q003 - 0.0",8:"A009 - (shattered)"},2:{1:"E004 - C1",2:"L005 - C2",3:"Z006 - C3",4:"M001 - C4",5:"C008 - C5",6:"G008 - C6",7:"Q003 - 0.0",8:"A009 - (shattered)"},3:{1:"E004 - C1",2:"L005 - C2",3:"Z006 - C3",4:"M001 - C4",5:"C008 - C5",6:"G008 - C6",7:"Q003 - 0.0",8:"A009 - (shattered)"},4:{1:"E004 - C1",2:"L005 - C2",3:"Z006 - C3",4:"M001 - C4",5:"C008 - C5",6:"G008 - C6",7:"Q003 - 0.0",8:"A009 - (shattered)"},5:{1:"E004 - C1",2:"L005 - C2",3:"Z006 - C3",4:"M001 - C4",5:"C008 - C5",6:"G008 - C6",7:"Q003 - 0.0",8:"A009 - (shattered)"},6:{1:"E004 - C1",2:"L005 - C2",3:"Z006 - C3",4:"M001 - C4",5:"C008 - C5",6:"G008 - C6",7:"Q003 - 0.0",8:"A009 - (shattered)"},13:{1:"E004 - C1",2:"L005 - C2",3:"Z006 - C3",4:"M001 - C4",5:"C008 - C5",6:"G008 - C6",7:"Q003 - 0.0",8:"A009 - (shattered)"}},incomingWormholes:{1:"K162 - C1/2/3 (unknown)",2:"K162 - C4/5 (dangerous)",3:"K162 - C6 (deadly)",4:"K162 - HS",5:"K162 - LS",6:"K162 - 0.0"}};return e});define("config/system_effect",[],function(){"use strict";var t={wh:{magnetar:{1:[{effect:"Damage",value:"+30%"},{effect:"Missile explosion radius",value:"+15%"},{effect:"Drone Tracking",value:"-15%"},{effect:"Targeting Range",value:"-15%"},{effect:"Tracking Speed",value:"-15%"},{effect:"Target Painter Strength",value:"-15%"}],2:[{effect:"Damage",value:"+44%"},{effect:"Missile explosion radius",value:"+22%"},{effect:"Drone Tracking",value:"-22%"},{effect:"Targeting Range",value:"-22%"},{effect:"Tracking Speed",value:"-22%"},{effect:"Target Painter Strength",value:"-22%"}],3:[{effect:"Damage",value:"+58%"},{effect:"Missile explosion radius",value:"+29%"},{effect:"Drone Tracking",value:"-29%"},{effect:"Targeting Range",value:"-29%"},{effect:"Tracking Speed",value:"-29%"},{effect:"Target Painter Strength",value:"-29%"}],4:[{effect:"Damage",value:"+72%"},{effect:"Missile explosion radius",value:"+36%"},{effect:"Drone Tracking",value:"-36%"},{effect:"Targeting Range",value:"-36%"},{effect:"Tracking Speed",value:"-36%"},{effect:"Target Painter Strength",value:"-36%"}],5:[{effect:"Damage",value:"+86%"},{effect:"Missile explosion radius",value:"+43%"},{effect:"Drone Tracking",value:"-43%"},{effect:"Targeting Range",value:"-43%"},{effect:"Tracking Speed",value:"-43%"},{effect:"Target Painter Strength",value:"-43%"}],6:[{effect:"Damage",value:"+100%"},{effect:"Missile explosion radius",value:"+50%"},{effect:"Drone Tracking",value:"-50%"},{effect:"Targeting Range",value:"-50%"},{effect:"Tracking Speed",value:"-50%"},{effect:"Target Painter Strength",value:"-50%"}]},redGiant:{1:[{effect:"Heat Damage",value:"+15%"},{effect:"Overload Bonus",value:"+30%"},{effect:"Smart Bomb Range",value:"+30%"},{effect:"Smart Bomb Damage",value:"+30%"},{effect:"Bomb Damage",value:"+30%"}],2:[{effect:"Heat Damage",value:"+22%"},{effect:"Overload Bonus",value:"+44%"},{effect:"Smart Bomb Range",value:"+44%"},{effect:"Smart Bomb Damage",value:"+44%"},{effect:"Bomb Damage",value:"+44%"}],3:[{effect:"Heat Damage",value:"+29%"},{effect:"Overload Bonus",value:"+58%"},{effect:"Smart Bomb Range",value:"+58%"},{effect:"Smart Bomb Damage",value:"+58%"},{effect:"Bomb Damage",value:"+58%"}],4:[{effect:"Heat Damage",value:"+36%"},{effect:"Overload Bonus",value:"+72%"},{effect:"Smart Bomb Range",value:"+72%"},{effect:"Smart Bomb Damage",value:"+72%"},{effect:"Bomb Damage",value:"+72%"}],5:[{effect:"Heat Damage",value:"+43%"},{effect:"Overload Bonus",value:"+86%"},{effect:"Smart Bomb Range",value:"+86%"},{effect:"Smart Bomb Damage",value:"+86%"},{effect:"Bomb Damage",value:"+86%"}],6:[{effect:"Heat Damage",value:"+50%"},{effect:"Overload Bonus",value:"+100%"},{effect:"Smart Bomb Range",value:"+100%"},{effect:"Smart Bomb Damage",value:"+100%"},{effect:"Bomb Damage",value:"+100%"}]},pulsar:{1:[{effect:"Shield HP",value:"+30%"},{effect:"Armor Resists",value:"-15%"},{effect:"Capacitor recharge",value:"-15%"},{effect:"Signature",value:"+30%"},{effect:"NOS / Neut Drain Amount",value:"+30%"}],2:[{effect:"Shield HP",value:"+44%"},{effect:"Armor Resists",value:"-22%"},{effect:"Capacitor recharge",value:"-22%"},{effect:"Signature",value:"+44%"},{effect:"NOS / Neut Drain Amount",value:"+44%"}],3:[{effect:"Shield HP",value:"+58%"},{effect:"Armor Resists",value:"-29%"},{effect:"Capacitor recharge",value:"-29%"},{effect:"Signature",value:"+58%"},{effect:"NOS / Neut Drain Amount",value:"+58%"}],4:[{effect:"Shield HP",value:"+72%"},{effect:"Armor Resists",value:"-36%"},{effect:"Capacitor recharge",value:"-36%"},{effect:"Signature",value:"+72%"},{effect:"NOS / Neut Drain Amount",value:"+72%"}],5:[{effect:"Shield HP",value:"+86%"},{effect:"Armor Resists",value:"-43%"},{effect:"Capacitor recharge",value:"-43%"},{effect:"Signature",value:"+86%"},{effect:"NOS / Neut Drain Amount",value:"+86%"}],6:[{effect:"Shield HP",value:"+100%"},{effect:"Armor Resists",value:"-50%"},{effect:"Capacitor recharge",value:"-50%"},{effect:"Signature",value:"+100%"},{effect:"NOS / Neut Drain Amount",value:"+100%"}]},wolfRayet:{1:[{effect:"Armor HP",value:"+30%"},{effect:"Shield Resist",value:"-15%"},{effect:"Small Weapon Damage",value:"+60%"},{effect:"Signature Size",value:"-15%"}],2:[{effect:"Armor HP",value:"+44%"},{effect:"Shield Resist",value:"-22%"},{effect:"Small Weapon Damage",value:"+88%"},{effect:"Signature Size",value:"-22%"}],3:[{effect:"Armor HP",value:"+58%"},{effect:"Shield Resist",value:"-29%"},{effect:"Small Weapon Damage",value:"+116%"},{effect:"Signature Size",value:"-29%"}],4:[{effect:"Armor HP",value:"+72%"},{effect:"Shield Resist",value:"-36%"},{effect:"Small Weapon Damage",value:"+144%"},{effect:"Signature Size",value:"-36%"}],5:[{effect:"Armor HP",value:"+86%"},{effect:"Shield Resist",value:"-43%"},{effect:"Small Weapon Damage",value:"+172%"},{effect:"Signature Size",value:"-43%"}],6:[{effect:"Armor HP",value:"+100%"},{effect:"Shield Resist",value:"-50%"},{effect:"Small Weapon Damage",value:"+200%"},{effect:"Signature Size",value:"-50%"}]},cataclysmic:{1:[{effect:"Local armor repair amount",value:"-15%"},{effect:"Local shield boost amount",value:"-15%"},{effect:"Shield transfer amount",value:"+30%"},{effect:"Remote repair amount",value:"+30%"},{effect:"Capacitor capacity",value:"+30%"},{effect:"Capacitor recharge time",value:"+15%"},{effect:"Remote Capacitor Transmitter amount",value:"-15%"}],2:[{effect:"Local armor repair amount",value:"-22%"},{effect:"Local shield boost amount",value:"-22%"},{effect:"Shield transfer amount",value:"+44%"},{effect:"Remote repair amount",value:"+44%"},{effect:"Capacitor capacity",value:"+44%"},{effect:"Capacitor recharge time",value:"+22%"},{effect:"Remote Capacitor Transmitter amount",value:"-22%"}],3:[{effect:"Local armor repair amount",value:"-29%"},{effect:"Local shield boost amount",value:"-29%"},{effect:"Shield transfer amount",value:"+58%"},{effect:"Remote repair amount",value:"+58%"},{effect:"Capacitor capacity",value:"+58%"},{effect:"Capacitor recharge time",value:"+29%"},{effect:"Remote Capacitor Transmitter amount",value:"-29%"}],4:[{effect:"Local armor repair amount",value:"-36%"},{effect:"Local shield boost amount",value:"-36%"},{effect:"Shield transfer amount",value:"+72%"},{effect:"Remote repair amount",value:"+72%"},{effect:"Capacitor capacity",value:"+72%"},{effect:"Capacitor recharge time",value:"+36%"},{effect:"Remote Capacitor Transmitter amount",value:"-36%"}],5:[{effect:"Local armor repair amount",value:"-43%"},{effect:"Local shield boost amount",value:"-43%"},{effect:"Shield transfer amount",value:"+86%"},{effect:"Remote repair amount",value:"+86%"},{effect:"Capacitor capacity",value:"+86%"},{effect:"Capacitor recharge time",value:"+43%"},{effect:"Remote Capacitor Transmitter amount",value:"-43%"}],6:[{effect:"Local armor repair amount",value:"-50%"},{effect:"Local shield boost amount",value:"-50%"},{effect:"Shield transfer amount",value:"+100%"},{effect:"Remote repair amount",value:"+100%"},{effect:"Capacitor capacity",value:"+100%"},{effect:"Capacitor recharge time",value:"+50%"},{effect:"Remote Capacitor Transmitter amount",value:"-50%"}]},blackHole:{1:[{effect:"Missile velocity",value:"+15%"},{effect:"Missile Explosion Velocity",value:"+30%"},{effect:"Ship velocity",value:"+30%"},{effect:"Stasis Webifier Strength",value:"-15%"},{effect:"Inertia",value:"+15%"},{effect:"Targeting range",value:"+30%"}],2:[{effect:"Missile velocity",value:"+22%"},{effect:"Missile Explosion Velocity",value:"+44%"},{effect:"Ship velocity",value:"+44%"},{effect:"Stasis Webifier Strength",value:"-22%"},{effect:"Inertia",value:"+22%"},{effect:"Targeting range",value:"+44%"}],3:[{effect:"Missile velocity",value:"+29%"},{effect:"Missile Explosion Velocity",value:"+58%"},{effect:"Ship velocity",value:"+58%"},{effect:"Stasis Webifier Strength",value:"-29%"},{effect:"Inertia",value:"+29%"},{effect:"Targeting range",value:"+58%"}],4:[{effect:"Missile velocity",value:"+36%"},{effect:"Missile Explosion Velocity",value:"+72%"},{effect:"Ship velocity",value:"+72%"},{effect:"Stasis Webifier Strength",value:"-36%"},{effect:"Inertia",value:"+36%"},{effect:"Targeting range",value:"+72%"}],5:[{effect:"Missile velocity",value:"+43%"},{effect:"Missile Explosion Velocity",value:"+86%"},{effect:"Ship velocity",value:"+86%"},{effect:"Stasis Webifier Strength",value:"-43%"},{effect:"Inertia",value:"+43%"},{effect:"Targeting range",value:"+86%"}],6:[{effect:"Missile velocity",value:"+50%"},{effect:"Missile Explosion Velocity",value:"+100%"},{effect:"Ship velocity",value:"+100%"},{effect:"Stasis Webifier Strength",value:"-50%"},{effect:"Inertia",value:"+50%"},{effect:"Targeting range",value:"+100%"}]}}};return t});define("config/signature_type",["jquery"],function(t){"use strict";var e={10:"Ruined Angel Crystal Quarry",11:"Ruined Angel Monument Site",12:"Ruined Angel Science Outpost",13:"Ruined Angel Temple Site",14:"Ruined Blood Raider Crystal Quarry",15:"Ruined Blood Raider Monument Site",16:"Ruined Blood Raider Science Outpost",17:"Ruined Blood Raider Temple Site",18:"Ruined Guristas Crystal Quarry",19:"Ruined Guristas Monument Site",20:"Ruined Guristas Science Outpost",21:"Ruined Guristas Temple Site",22:"Ruined Sansha Crystal Quarry",23:"Ruined Sansha Monument Site",24:"Ruined Sansha Science Outpost",25:"Ruined Sansha Temple Site",26:"Ruined Serpentis Crystal Quarry",27:"Ruined Serpentis Monument Site",28:"Ruined Serpentis Science Outpost",29:"Ruined Serpentis Temple Site"},n={10:"Abandoned Research Complex DA005",11:"Abandoned Research Complex DA015",12:"Abandoned Research Complex DC007",13:"Abandoned Research Complex DC021",14:"Abandoned Research Complex DC035",15:"Abandoned Research Complex DG003",16:"Central Angel Command Center",17:"Central Angel Data Mining Site",18:"Central Angel Sparking Transmitter",19:"Central Angel Survey Site",20:"Central Blood Raider Command Center",21:"Central Blood Raider Data Mining Site",22:"Central Blood Raider Sparking Transmitter",23:"Central Blood Raider Survey Site",24:"Central Guristas Command Center",25:"Central Guristas Data Mining Center",26:"Central Guristas Sparking Transmitter",27:"Central Guristas Survey Site",28:"Central Sansha Command Center",29:"Central Sansha Data Mining Site",30:"Central Sansha Sparking Transmitter",31:"Central Sansha Survey Site",32:"Central Serpentis Command Center",33:"Central Serpentis Data Mining Site",34:"Central Serpentis Sparking Transmitter",35:"Central Serpentis Survey Site"},i={1:{1:{1:{1:"Perimeter Ambush Point",2:"Perimeter Camp",3:"Phase Catalyst Node",4:"The Line"},2:t.extend({},e,{1:"Forgotten Perimeter Coronation Platform",2:"Forgotten Perimeter Power Array"}),3:t.extend({},n,{1:"Unsecured Perimeter Amplifier",2:"Unsecured Perimeter Information Center"}),4:{1:"Barren Perimeter Reservoir",2:"Token Perimeter Reservoir",3:"Minor Perimeter Reservoir",4:"Sizeable Perimeter Reservoir",5:"Ordinary Perimeter Reservoir"},5:{1:"H121 - C1",2:"C125 - C2",3:"O883 - C3",4:"M609 - C4",5:"L614 - C5",6:"S804 - C6",7:"F135 - Thera"},6:{1:"Ordinary Perimeter Deposit",2:"Common Perimeter Deposit",3:"Unexceptional Frontier Deposit",4:"Average Frontier Deposit",5:"Isolated Core Deposit",6:"Uncommon Core Deposit"},7:{}},2:{1:{1:"Perimeter Checkpoint",2:"Perimeter Hangar",3:"The Ruins of Enclave Cohort 27",4:"Sleeper Data Sanctuary"},2:t.extend({},e,{1:"Forgotten Perimeter Gateway",2:"Forgotten Perimeter Habitation Coils"}),3:t.extend({},n,{1:"Unsecured Perimeter Comms Relay",2:"Unsecured Perimeter Transponder Farm"}),4:{1:"Barren Perimeter Reservoir",2:"Token Perimeter Reservoir",3:"Minor Perimeter Reservoir",4:"Sizeable Perimeter Reservoir",5:"Ordinary Perimeter Reservoir"},5:{1:"F135 - Thera"},6:{1:"Ordinary Perimeter Deposit",2:"Common Perimeter Deposit",3:"Unexceptional Frontier Deposit",4:"Average Frontier Deposit",5:"Isolated Core Deposit",6:"Uncommon Core Deposit"},7:{}},3:{1:{1:"Fortification Frontier Stronghold",2:"Outpost Frontier Stronghold",3:"Solar Cell",4:"The Oruze Construct"},2:t.extend({},e,{1:"Forgotten Frontier Quarantine Outpost",2:"Forgotten Frontier Recursive Depot"}),3:t.extend({},n,{1:"Unsecured Frontier Database",2:"Unsecured Frontier Receiver"}),4:{1:"Barren Perimeter Reservoir",2:"Token Perimeter Reservoir",3:"Minor Perimeter Reservoir",4:"Sizeable Perimeter Reservoir",5:"Ordinary Perimeter Reservoir",6:"Bountiful Frontier Reservoir",7:"Vast Frontier Reservoir"},5:{1:"V301 - C1",2:"I182 - C2",3:"N968 - C3",4:"T405 - C4",5:"N770 - C5",6:"A982 - C6",7:"F135 - Thera"},6:{1:"Ordinary Perimeter Deposit",2:"Common Perimeter Deposit",3:"Unexceptional Frontier Deposit",4:"Average Frontier Deposit",5:"Infrequent Core Deposit",6:"Unusual Core Deposit"},7:{}},4:{1:{1:"Frontier Barracks",2:"Frontier Command Post",3:"Integrated Terminus",4:"Sleeper Information Sanctum"},2:{1:"Forgotten Frontier Conversion Module",2:"Forgotten Frontier Evacuation Center"},3:{1:"Unsecured Frontier Digital Nexus",2:"Unsecured Frontier Trinary Hub"},4:{1:"Barren Perimeter Reservoir",2:"Token Perimeter Reservoir",3:"Minor Perimeter Reservoir",4:"Sizeable Perimeter Reservoir",5:"Ordinary Perimeter Reservoir",6:"Vast Frontier Reservoir"},5:{},6:{1:"Ordinary Perimeter Deposit",2:"Common Perimeter Deposit",3:"Unexceptional Frontier Deposit",4:"Average Frontier Deposit",5:"Unusual Core Deposit"},7:{}},5:{1:{1:"Core Garrison",2:"Core Stronghold",3:"Oruze Osobnyk",4:"Quarantine Area"},2:{1:"Forgotten Core Data Field",2:"Forgotten Core Information Pen"},3:{1:"Unsecured Frontier Enclave Relay",2:"Unsecured Frontier Server Bank"},4:{1:"Barren Perimeter Reservoir",2:"Minor Perimeter Reservoir",3:"Ordinary Perimeter Reservoir",4:"Sizeable Perimeter Reservoir",5:"Token Perimeter Reservoir",6:"Bountiful Frontier Reservoir",7:"Vast Frontier Reservoir",8:"Instrumental Core Reservoir",9:"Vital Core Reservoir"},5:{1:"D792 - HS",2:"C140 - LS",3:"Z142 - 0.0",4:"F135 - Thera"},6:{1:"Average Frontier Deposit",2:"Unexceptional Frontier Deposit",3:"Uncommon Core Deposit",4:"Ordinary Perimeter Deposit",5:"Common Perimeter Deposit",6:"Exceptional Core Deposit",7:"Infrequent Core Deposit",8:"Unusual Core Deposit",9:"Rarified Core Deposit",10:"Isolated Core Deposit"},7:{}},6:{1:{1:"Core Citadel",2:"Core Bastion",3:"Strange Energy Readings",4:"The Mirror"},2:{1:"Forgotten Core Assembly Hall",2:"Forgotten Core Circuitry Disassembler"},3:{1:"Unsecured Core Backup Array",2:"Unsecured Core Emergence"},4:{1:"Barren Perimeter Reservoir",2:"Minor Perimeter Reservoir",3:"Ordinary Perimeter Reservoir",4:"Sizeable Perimeter Reservoir",5:"Token Perimeter Reservoir",6:"Bountiful Frontier Reservoir",7:"Vast Frontier Reservoir",8:"Instrumental Core Reservoir",9:"Vital Core Reservoir"},5:{1:"D792 - HS",2:"C391 - LS",3:"Z142 - 0.0",4:"F135 - Thera"},6:{1:"Ordinary Perimeter Deposit",2:"Common Perimeter Deposit",3:"Unexceptional Frontier Deposit",4:"Average Frontier Deposit",5:"Rarified Core Deposit"},7:{1:"Superior Blood Raider Covert Research Facility"}},13:{5:{1:"P060 - C1",2:"Z647 - C1",3:"D382 - C2",4:"L005 - C2",5:"N766 - C2",6:"C247 - C3",7:"K346 - C3",8:"M267 - C3",9:"O477 - C3",10:"X877 - C4",11:"Y683 - C4",12:"H296 - C5",13:"H900 - C5",14:"H296 - C5",15:"N062 - C5",16:"V911 - C5",17:"U574 - C6",18:"V753 - C6",19:"W237 - C6",20:"B274 - HS",21:"D792 - HS",22:"D845 - HS",23:"N110 - HS",24:"A239 - LS",25:"C391 - LS",26:"J244 - LS",27:"U201 - LS",28:"U210 - LS",29:"C248 - 0.0",30:"E545 - 0.0",31:"K346 - 0.0",32:"Z060 - 0.0"}}},2:{10:{5:{1:"Z971 - C1",2:"R943 - C2",3:"X702 - C3",4:"M555 - C5",5:"B041 - C6",6:"A641 - HS",7:"R051 - LS",8:"V283 - 0.0",9:"T458 - Thera"}},11:{5:{1:"Z971 - C1",2:"R943 - C2",3:"X702 - C3",4:"N432 - C5",5:"U319 - C6",6:"B449 - HS",7:"N944 - LS",8:"S199 - 0.0",9:"M164 - Thera"}},12:{5:{1:"Z971 - C1",2:"R943 - C2",3:"X702 - C3",4:"N432 - C5",5:"U319 - C6",6:"B449 - HS",7:"N944 - LS",8:"S199 - 0.0",9:"L031 - Thera"}}}};return i});if("undefined"==typeof jQuery)throw new Error("Bootstrap's JavaScript requires jQuery");+function(t){var e=t.fn.jquery.split(" ")[0].split(".");if(e[0]<2&&e[1]<9||1==e[0]&&9==e[1]&&e[2]<1)throw new Error("Bootstrap's JavaScript requires jQuery version 1.9.1 or higher")}(jQuery),+function(t){"use strict";function e(){var t=document.createElement("bootstrap"),e={WebkitTransition:"webkitTransitionEnd",MozTransition:"transitionend",OTransition:"oTransitionEnd otransitionend",transition:"transitionend"};for(var n in e)if(void 0!==t.style[n])return{end:e[n]};return!1}t.fn.emulateTransitionEnd=function(e){var n=!1,i=this;t(this).one("bsTransitionEnd",function(){n=!0});var o=function(){n||t(i).trigger(t.support.transition.end)};return setTimeout(o,e),this},t(function(){t.support.transition=e(),t.support.transition&&(t.event.special.bsTransitionEnd={bindType:t.support.transition.end,delegateType:t.support.transition.end,handle:function(e){return t(e.target).is(this)?e.handleObj.handler.apply(this,arguments):void 0}})})}(jQuery),+function(t){"use strict";function e(e){return this.each(function(){var n=t(this),o=n.data("bs.alert");o||n.data("bs.alert",o=new i(this)),"string"==typeof e&&o[e].call(n)})}var n='[data-dismiss="alert"]',i=function(e){t(e).on("click",n,this.close)};i.VERSION="3.3.0",i.TRANSITION_DURATION=150,i.prototype.close=function(e){function n(){r.detach().trigger("closed.bs.alert").remove()}var o=t(this),a=o.attr("data-target");a||(a=o.attr("href"),a=a&&a.replace(/.*(?=#[^\s]*$)/,""));var r=t(a);e&&e.preventDefault(),r.length||(r=o.closest(".alert")),r.trigger(e=t.Event("close.bs.alert")),e.isDefaultPrevented()||(r.removeClass("in"),t.support.transition&&r.hasClass("fade")?r.one("bsTransitionEnd",n).emulateTransitionEnd(i.TRANSITION_DURATION):n())};var o=t.fn.alert;t.fn.alert=e,t.fn.alert.Constructor=i,t.fn.alert.noConflict=function(){return t.fn.alert=o,this},t(document).on("click.bs.alert.data-api",n,i.prototype.close)}(jQuery),+function(t){"use strict";function e(e){return this.each(function(){var i=t(this),o=i.data("bs.button"),a="object"==typeof e&&e;o||i.data("bs.button",o=new n(this,a)),"toggle"==e?o.toggle():e&&o.setState(e)})}var n=function(e,i){this.$element=t(e),this.options=t.extend({},n.DEFAULTS,i),this.isLoading=!1};n.VERSION="3.3.0",n.DEFAULTS={loadingText:"loading..."},n.prototype.setState=function(e){var n="disabled",i=this.$element,o=i.is("input")?"val":"html",a=i.data();e+="Text",null==a.resetText&&i.data("resetText",i[o]()),setTimeout(t.proxy(function(){i[o](null==a[e]?this.options[e]:a[e]),"loadingText"==e?(this.isLoading=!0,i.addClass(n).attr(n,n)):this.isLoading&&(this.isLoading=!1,i.removeClass(n).removeAttr(n))},this),0)},n.prototype.toggle=function(){var t=!0,e=this.$element.closest('[data-toggle="buttons"]');if(e.length){var n=this.$element.find("input");"radio"==n.prop("type")&&(n.prop("checked")&&this.$element.hasClass("active")?t=!1:e.find(".active").removeClass("active")),t&&n.prop("checked",!this.$element.hasClass("active")).trigger("change")}else this.$element.attr("aria-pressed",!this.$element.hasClass("active"));t&&this.$element.toggleClass("active")};var i=t.fn.button;t.fn.button=e,t.fn.button.Constructor=n,t.fn.button.noConflict=function(){return t.fn.button=i,this},t(document).on("click.bs.button.data-api",'[data-toggle^="button"]',function(n){var i=t(n.target);i.hasClass("btn")||(i=i.closest(".btn")),e.call(i,"toggle"),n.preventDefault()}).on("focus.bs.button.data-api blur.bs.button.data-api",'[data-toggle^="button"]',function(e){t(e.target).closest(".btn").toggleClass("focus","focus"==e.type)})}(jQuery),+function(t){"use strict";function e(e){return this.each(function(){var i=t(this),o=i.data("bs.carousel"),a=t.extend({},n.DEFAULTS,i.data(),"object"==typeof e&&e),r="string"==typeof e?e:a.slide;o||i.data("bs.carousel",o=new n(this,a)),"number"==typeof e?o.to(e):r?o[r]():a.interval&&o.pause().cycle()})}var n=function(e,n){this.$element=t(e),this.$indicators=this.$element.find(".carousel-indicators"),this.options=n,this.paused=this.sliding=this.interval=this.$active=this.$items=null,this.options.keyboard&&this.$element.on("keydown.bs.carousel",t.proxy(this.keydown,this)),"hover"==this.options.pause&&!("ontouchstart"in document.documentElement)&&this.$element.on("mouseenter.bs.carousel",t.proxy(this.pause,this)).on("mouseleave.bs.carousel",t.proxy(this.cycle,this))};n.VERSION="3.3.0",n.TRANSITION_DURATION=600,n.DEFAULTS={interval:5e3,pause:"hover",wrap:!0,keyboard:!0},n.prototype.keydown=function(t){switch(t.which){case 37:this.prev();break;case 39:this.next();break;default:return}t.preventDefault()},n.prototype.cycle=function(e){return e||(this.paused=!1),this.interval&&clearInterval(this.interval),this.options.interval&&!this.paused&&(this.interval=setInterval(t.proxy(this.next,this),this.options.interval)),this},n.prototype.getItemIndex=function(t){return this.$items=t.parent().children(".item"),this.$items.index(t||this.$active)},n.prototype.getItemForDirection=function(t,e){var n="prev"==t?-1:1,i=this.getItemIndex(e),o=(i+n)%this.$items.length;return this.$items.eq(o)},n.prototype.to=function(t){var e=this,n=this.getItemIndex(this.$active=this.$element.find(".item.active"));return t>this.$items.length-1||0>t?void 0:this.sliding?this.$element.one("slid.bs.carousel",function(){e.to(t)}):n==t?this.pause().cycle():this.slide(t>n?"next":"prev",this.$items.eq(t))},n.prototype.pause=function(e){return e||(this.paused=!0),this.$element.find(".next, .prev").length&&t.support.transition&&(this.$element.trigger(t.support.transition.end),this.cycle(!0)),this.interval=clearInterval(this.interval),this},n.prototype.next=function(){return this.sliding?void 0:this.slide("next")},n.prototype.prev=function(){return this.sliding?void 0:this.slide("prev")},n.prototype.slide=function(e,i){var o=this.$element.find(".item.active"),a=i||this.getItemForDirection(e,o),r=this.interval,s="next"==e?"left":"right",l="next"==e?"first":"last",c=this;if(!a.length){if(!this.options.wrap)return;a=this.$element.find(".item")[l]()}if(a.hasClass("active"))return this.sliding=!1;var u=a[0],d=t.Event("slide.bs.carousel",{relatedTarget:u,direction:s});if(this.$element.trigger(d),!d.isDefaultPrevented()){if(this.sliding=!0,r&&this.pause(),this.$indicators.length){this.$indicators.find(".active").removeClass("active");var h=t(this.$indicators.children()[this.getItemIndex(a)]);h&&h.addClass("active")}var f=t.Event("slid.bs.carousel",{relatedTarget:u,direction:s});return t.support.transition&&this.$element.hasClass("slide")?(a.addClass(e),a[0].offsetWidth,o.addClass(s),a.addClass(s),o.one("bsTransitionEnd",function(){a.removeClass([e,s].join(" ")).addClass("active"),o.removeClass(["active",s].join(" ")),c.sliding=!1,setTimeout(function(){c.$element.trigger(f)},0)}).emulateTransitionEnd(n.TRANSITION_DURATION)):(o.removeClass("active"),a.addClass("active"),this.sliding=!1,this.$element.trigger(f)),r&&this.cycle(),this}};var i=t.fn.carousel;t.fn.carousel=e,t.fn.carousel.Constructor=n,t.fn.carousel.noConflict=function(){return t.fn.carousel=i,this};var o=function(n){var i,o=t(this),a=t(o.attr("data-target")||(i=o.attr("href"))&&i.replace(/.*(?=#[^\s]+$)/,""));if(a.hasClass("carousel")){var r=t.extend({},a.data(),o.data()),s=o.attr("data-slide-to");s&&(r.interval=!1),e.call(a,r),s&&a.data("bs.carousel").to(s),n.preventDefault()}};t(document).on("click.bs.carousel.data-api","[data-slide]",o).on("click.bs.carousel.data-api","[data-slide-to]",o),t(window).on("load",function(){t('[data-ride="carousel"]').each(function(){var n=t(this);e.call(n,n.data())})})}(jQuery),+function(t){"use strict";function e(e){var n,i=e.attr("data-target")||(n=e.attr("href"))&&n.replace(/.*(?=#[^\s]+$)/,"");return t(i)}function n(e){return this.each(function(){var n=t(this),o=n.data("bs.collapse"),a=t.extend({},i.DEFAULTS,n.data(),"object"==typeof e&&e);!o&&a.toggle&&"show"==e&&(a.toggle=!1),o||n.data("bs.collapse",o=new i(this,a)),"string"==typeof e&&o[e]()})}var i=function(e,n){this.$element=t(e),this.options=t.extend({},i.DEFAULTS,n),this.$trigger=t(this.options.trigger).filter('[href="#'+e.id+'"], [data-target="#'+e.id+'"]'),this.transitioning=null,this.options.parent?this.$parent=this.getParent():this.addAriaAndCollapsedClass(this.$element,this.$trigger),this.options.toggle&&this.toggle()};i.VERSION="3.3.0",i.TRANSITION_DURATION=350,i.DEFAULTS={toggle:!0,trigger:'[data-toggle="collapse"]'},i.prototype.dimension=function(){var t=this.$element.hasClass("width");return t?"width":"height"},i.prototype.show=function(){if(!this.transitioning&&!this.$element.hasClass("in")){var e,o=this.$parent&&this.$parent.find("> .panel").children(".in, .collapsing");if(!(o&&o.length&&(e=o.data("bs.collapse"),e&&e.transitioning))){var a=t.Event("show.bs.collapse");if(this.$element.trigger(a),!a.isDefaultPrevented()){o&&o.length&&(n.call(o,"hide"),e||o.data("bs.collapse",null));var r=this.dimension();this.$element.removeClass("collapse").addClass("collapsing")[r](0).attr("aria-expanded",!0),this.$trigger.removeClass("collapsed").attr("aria-expanded",!0),this.transitioning=1;var s=function(){this.$element.removeClass("collapsing").addClass("collapse in")[r](""),this.transitioning=0,this.$element.trigger("shown.bs.collapse")};if(!t.support.transition)return s.call(this);var l=t.camelCase(["scroll",r].join("-"));this.$element.one("bsTransitionEnd",t.proxy(s,this)).emulateTransitionEnd(i.TRANSITION_DURATION)[r](this.$element[0][l])}}}},i.prototype.hide=function(){if(!this.transitioning&&this.$element.hasClass("in")){var e=t.Event("hide.bs.collapse");if(this.$element.trigger(e),!e.isDefaultPrevented()){var n=this.dimension();this.$element[n](this.$element[n]())[0].offsetHeight,this.$element.addClass("collapsing").removeClass("collapse in").attr("aria-expanded",!1),this.$trigger.addClass("collapsed").attr("aria-expanded",!1),this.transitioning=1;var o=function(){this.transitioning=0,this.$element.removeClass("collapsing").addClass("collapse").trigger("hidden.bs.collapse");
-};return t.support.transition?void this.$element[n](0).one("bsTransitionEnd",t.proxy(o,this)).emulateTransitionEnd(i.TRANSITION_DURATION):o.call(this)}}},i.prototype.toggle=function(){this[this.$element.hasClass("in")?"hide":"show"]()},i.prototype.getParent=function(){return t(this.options.parent).find('[data-toggle="collapse"][data-parent="'+this.options.parent+'"]').each(t.proxy(function(n,i){var o=t(i);this.addAriaAndCollapsedClass(e(o),o)},this)).end()},i.prototype.addAriaAndCollapsedClass=function(t,e){var n=t.hasClass("in");t.attr("aria-expanded",n),e.toggleClass("collapsed",!n).attr("aria-expanded",n)};var o=t.fn.collapse;t.fn.collapse=n,t.fn.collapse.Constructor=i,t.fn.collapse.noConflict=function(){return t.fn.collapse=o,this},t(document).on("click.bs.collapse.data-api",'[data-toggle="collapse"]',function(i){var o=t(this);o.attr("data-target")||i.preventDefault();var a=e(o),r=a.data("bs.collapse"),s=r?"toggle":t.extend({},o.data(),{trigger:this});n.call(a,s)})}(jQuery),+function(t){"use strict";function e(e){e&&3===e.which||(t(o).remove(),t(a).each(function(){var i=t(this),o=n(i),a={relatedTarget:this};o.hasClass("open")&&(o.trigger(e=t.Event("hide.bs.dropdown",a)),e.isDefaultPrevented()||(i.attr("aria-expanded","false"),o.removeClass("open").trigger("hidden.bs.dropdown",a)))}))}function n(e){var n=e.attr("data-target");n||(n=e.attr("href"),n=n&&/#[A-Za-z]/.test(n)&&n.replace(/.*(?=#[^\s]*$)/,""));var i=n&&t(n);return i&&i.length?i:e.parent()}function i(e){return this.each(function(){var n=t(this),i=n.data("bs.dropdown");i||n.data("bs.dropdown",i=new r(this)),"string"==typeof e&&i[e].call(n)})}var o=".dropdown-backdrop",a='[data-toggle="dropdown"]',r=function(e){t(e).on("click.bs.dropdown",this.toggle)};r.VERSION="3.3.0",r.prototype.toggle=function(i){var o=t(this);if(!o.is(".disabled, :disabled")){var a=n(o),r=a.hasClass("open");if(e(),!r){"ontouchstart"in document.documentElement&&!a.closest(".navbar-nav").length&&t('
').insertAfter(t(this)).on("click",e);var s={relatedTarget:this};if(a.trigger(i=t.Event("show.bs.dropdown",s)),i.isDefaultPrevented())return;o.trigger("focus").attr("aria-expanded","true"),a.toggleClass("open").trigger("shown.bs.dropdown",s)}return!1}},r.prototype.keydown=function(e){if(/(38|40|27|32)/.test(e.which)){var i=t(this);if(e.preventDefault(),e.stopPropagation(),!i.is(".disabled, :disabled")){var o=n(i),r=o.hasClass("open");if(!r&&27!=e.which||r&&27==e.which)return 27==e.which&&o.find(a).trigger("focus"),i.trigger("click");var s=" li:not(.divider):visible a",l=o.find('[role="menu"]'+s+', [role="listbox"]'+s);if(l.length){var c=l.index(e.target);38==e.which&&c>0&&c--,40==e.which&&c
').prependTo(this.$element).on("click.dismiss.bs.modal",t.proxy(function(t){t.target===t.currentTarget&&("static"==this.options.backdrop?this.$element[0].focus.call(this.$element[0]):this.hide.call(this))},this)),a&&this.$backdrop[0].offsetWidth,this.$backdrop.addClass("in"),!e)return;a?this.$backdrop.one("bsTransitionEnd",e).emulateTransitionEnd(n.BACKDROP_TRANSITION_DURATION):e()}else if(!this.isShown&&this.$backdrop){this.$backdrop.removeClass("in");var r=function(){i.removeBackdrop(),e&&e()};t.support.transition&&this.$element.hasClass("fade")?this.$backdrop.one("bsTransitionEnd",r).emulateTransitionEnd(n.BACKDROP_TRANSITION_DURATION):r()}else e&&e()},n.prototype.checkScrollbar=function(){this.scrollbarWidth=this.measureScrollbar()},n.prototype.setScrollbar=function(){var t=parseInt(this.$body.css("padding-right")||0,10);this.scrollbarWidth&&this.$body.css("padding-right",t+this.scrollbarWidth)},n.prototype.resetScrollbar=function(){this.$body.css("padding-right","")},n.prototype.measureScrollbar=function(){if(document.body.clientWidth>=window.innerWidth)return 0;var t=document.createElement("div");t.className="modal-scrollbar-measure",this.$body.append(t);var e=t.offsetWidth-t.clientWidth;return this.$body[0].removeChild(t),e};var i=t.fn.modal;t.fn.modal=e,t.fn.modal.Constructor=n,t.fn.modal.noConflict=function(){return t.fn.modal=i,this},t(document).on("click.bs.modal.data-api",'[data-toggle="modal"]',function(n){var i=t(this),o=i.attr("href"),a=t(i.attr("data-target")||o&&o.replace(/.*(?=#[^\s]+$)/,"")),r=a.data("bs.modal")?"toggle":t.extend({remote:!/#/.test(o)&&o},a.data(),i.data());i.is("a")&&n.preventDefault(),a.one("show.bs.modal",function(t){t.isDefaultPrevented()||a.one("hidden.bs.modal",function(){i.is(":visible")&&i.trigger("focus")})}),e.call(a,r,this)})}(jQuery),+function(t){"use strict";function e(e){return this.each(function(){var i=t(this),o=i.data("bs.tooltip"),a="object"==typeof e&&e,r=a&&a.selector;(o||"destroy"!=e)&&(r?(o||i.data("bs.tooltip",o={}),o[r]||(o[r]=new n(this,a))):o||i.data("bs.tooltip",o=new n(this,a)),"string"==typeof e&&o[e]())})}var n=function(t,e){this.type=this.options=this.enabled=this.timeout=this.hoverState=this.$element=null,this.init("tooltip",t,e)};n.VERSION="3.3.0",n.TRANSITION_DURATION=150,n.DEFAULTS={animation:!0,placement:"top",selector:!1,template:'
',trigger:"hover focus",title:"",delay:0,html:!1,container:!1,viewport:{selector:"body",padding:0}},n.prototype.init=function(e,n,i){this.enabled=!0,this.type=e,this.$element=t(n),this.options=this.getOptions(i),this.$viewport=this.options.viewport&&t(this.options.viewport.selector||this.options.viewport);for(var o=this.options.trigger.split(" "),a=o.length;a--;){var r=o[a];if("click"==r)this.$element.on("click."+this.type,this.options.selector,t.proxy(this.toggle,this));else if("manual"!=r){var s="hover"==r?"mouseenter":"focusin",l="hover"==r?"mouseleave":"focusout";this.$element.on(s+"."+this.type,this.options.selector,t.proxy(this.enter,this)),this.$element.on(l+"."+this.type,this.options.selector,t.proxy(this.leave,this))}}this.options.selector?this._options=t.extend({},this.options,{trigger:"manual",selector:""}):this.fixTitle()},n.prototype.getDefaults=function(){return n.DEFAULTS},n.prototype.getOptions=function(e){return e=t.extend({},this.getDefaults(),this.$element.data(),e),e.delay&&"number"==typeof e.delay&&(e.delay={show:e.delay,hide:e.delay}),e},n.prototype.getDelegateOptions=function(){var e={},n=this.getDefaults();return this._options&&t.each(this._options,function(t,i){n[t]!=i&&(e[t]=i)}),e},n.prototype.enter=function(e){var n=e instanceof this.constructor?e:t(e.currentTarget).data("bs."+this.type);return n&&n.$tip&&n.$tip.is(":visible")?void(n.hoverState="in"):(n||(n=new this.constructor(e.currentTarget,this.getDelegateOptions()),t(e.currentTarget).data("bs."+this.type,n)),clearTimeout(n.timeout),n.hoverState="in",n.options.delay&&n.options.delay.show?void(n.timeout=setTimeout(function(){"in"==n.hoverState&&n.show()},n.options.delay.show)):n.show())},n.prototype.leave=function(e){var n=e instanceof this.constructor?e:t(e.currentTarget).data("bs."+this.type);return n||(n=new this.constructor(e.currentTarget,this.getDelegateOptions()),t(e.currentTarget).data("bs."+this.type,n)),clearTimeout(n.timeout),n.hoverState="out",n.options.delay&&n.options.delay.hide?void(n.timeout=setTimeout(function(){"out"==n.hoverState&&n.hide()},n.options.delay.hide)):n.hide()},n.prototype.show=function(){var e=t.Event("show.bs."+this.type);if(this.hasContent()&&this.enabled){this.$element.trigger(e);var i=t.contains(this.$element[0].ownerDocument.documentElement,this.$element[0]);if(e.isDefaultPrevented()||!i)return;var o=this,a=this.tip(),r=this.getUID(this.type);this.setContent(),a.attr("id",r),this.$element.attr("aria-describedby",r),this.options.animation&&a.addClass("fade");var s="function"==typeof this.options.placement?this.options.placement.call(this,a[0],this.$element[0]):this.options.placement,l=/\s?auto?\s?/i,c=l.test(s);c&&(s=s.replace(l,"")||"top"),a.detach().css({top:0,left:0,display:"block"}).addClass(s).data("bs."+this.type,this),this.options.container?a.appendTo(this.options.container):a.insertAfter(this.$element);var u=this.getPosition(),d=a[0].offsetWidth,h=a[0].offsetHeight;if(c){var f=s,p=this.options.container?t(this.options.container):this.$element.parent(),m=this.getPosition(p);s="bottom"==s&&u.bottom+h>m.bottom?"top":"top"==s&&u.top-h
m.width?"left":"left"==s&&u.left-dr.top+r.height&&(o.top=r.top+r.height-l)}else{var c=e.left-a,u=e.left+a+n;cr.width&&(o.left=r.left+r.width-u)}return o},n.prototype.getTitle=function(){var t,e=this.$element,n=this.options;return t=e.attr("data-original-title")||("function"==typeof n.title?n.title.call(e[0]):n.title)},n.prototype.getUID=function(t){do t+=~~(1e6*Math.random());while(document.getElementById(t));return t},n.prototype.tip=function(){return this.$tip=this.$tip||t(this.options.template)},n.prototype.arrow=function(){return this.$arrow=this.$arrow||this.tip().find(".tooltip-arrow")},n.prototype.enable=function(){this.enabled=!0},n.prototype.disable=function(){this.enabled=!1},n.prototype.toggleEnabled=function(){this.enabled=!this.enabled},n.prototype.toggle=function(e){var n=this;e&&(n=t(e.currentTarget).data("bs."+this.type),n||(n=new this.constructor(e.currentTarget,this.getDelegateOptions()),t(e.currentTarget).data("bs."+this.type,n))),n.tip().hasClass("in")?n.leave(n):n.enter(n)},n.prototype.destroy=function(){var t=this;clearTimeout(this.timeout),this.hide(function(){t.$element.off("."+t.type).removeData("bs."+t.type)})};var i=t.fn.tooltip;t.fn.tooltip=e,t.fn.tooltip.Constructor=n,t.fn.tooltip.noConflict=function(){return t.fn.tooltip=i,this}}(jQuery),+function(t){"use strict";function e(e){return this.each(function(){var i=t(this),o=i.data("bs.popover"),a="object"==typeof e&&e,r=a&&a.selector;(o||"destroy"!=e)&&(r?(o||i.data("bs.popover",o={}),o[r]||(o[r]=new n(this,a))):o||i.data("bs.popover",o=new n(this,a)),"string"==typeof e&&o[e]())})}var n=function(t,e){this.init("popover",t,e)};if(!t.fn.tooltip)throw new Error("Popover requires tooltip.js");n.VERSION="3.3.0",n.DEFAULTS=t.extend({},t.fn.tooltip.Constructor.DEFAULTS,{placement:"right",trigger:"click",content:"",template:''}),n.prototype=t.extend({},t.fn.tooltip.Constructor.prototype),n.prototype.constructor=n,n.prototype.getDefaults=function(){return n.DEFAULTS},n.prototype.setContent=function(){var t=this.tip(),e=this.getTitle(),n=this.getContent();t.find(".popover-title")[this.options.html?"html":"text"](e),t.find(".popover-content").children().detach().end()[this.options.html?"string"==typeof n?"html":"append":"text"](n),t.removeClass("fade top bottom left right in"),t.find(".popover-title").html()||t.find(".popover-title").hide()},n.prototype.hasContent=function(){return this.getTitle()||this.getContent()},n.prototype.getContent=function(){var t=this.$element,e=this.options;return t.attr("data-content")||("function"==typeof e.content?e.content.call(t[0]):e.content)},n.prototype.arrow=function(){return this.$arrow=this.$arrow||this.tip().find(".arrow")},n.prototype.tip=function(){return this.$tip||(this.$tip=t(this.options.template)),this.$tip};var i=t.fn.popover;t.fn.popover=e,t.fn.popover.Constructor=n,t.fn.popover.noConflict=function(){return t.fn.popover=i,this}}(jQuery),+function(t){"use strict";function e(n,i){var o=t.proxy(this.process,this);this.$body=t("body"),this.$scrollElement=t(t(n).is("body")?window:n),this.options=t.extend({},e.DEFAULTS,i),this.selector=(this.options.target||"")+" .nav li > a",this.offsets=[],this.targets=[],this.activeTarget=null,this.scrollHeight=0,this.$scrollElement.on("scroll.bs.scrollspy",o),this.refresh(),this.process()}function n(n){return this.each(function(){var i=t(this),o=i.data("bs.scrollspy"),a="object"==typeof n&&n;o||i.data("bs.scrollspy",o=new e(this,a)),"string"==typeof n&&o[n]()})}e.VERSION="3.3.0",e.DEFAULTS={offset:10},e.prototype.getScrollHeight=function(){return this.$scrollElement[0].scrollHeight||Math.max(this.$body[0].scrollHeight,document.documentElement.scrollHeight)},e.prototype.refresh=function(){var e="offset",n=0;t.isWindow(this.$scrollElement[0])||(e="position",n=this.$scrollElement.scrollTop()),this.offsets=[],this.targets=[],this.scrollHeight=this.getScrollHeight();var i=this;this.$body.find(this.selector).map(function(){var i=t(this),o=i.data("target")||i.attr("href"),a=/^#./.test(o)&&t(o);return a&&a.length&&a.is(":visible")&&[[a[e]().top+n,o]]||null}).sort(function(t,e){return t[0]-e[0]}).each(function(){i.offsets.push(this[0]),i.targets.push(this[1])})},e.prototype.process=function(){var t,e=this.$scrollElement.scrollTop()+this.options.offset,n=this.getScrollHeight(),i=this.options.offset+n-this.$scrollElement.height(),o=this.offsets,a=this.targets,r=this.activeTarget;if(this.scrollHeight!=n&&this.refresh(),e>=i)return r!=(t=a[a.length-1])&&this.activate(t);if(r&&e=o[t]&&(!o[t+1]||e<=o[t+1])&&this.activate(a[t])},e.prototype.activate=function(e){this.activeTarget=e,this.clear();var n=this.selector+'[data-target="'+e+'"],'+this.selector+'[href="'+e+'"]',i=t(n).parents("li").addClass("active");i.parent(".dropdown-menu").length&&(i=i.closest("li.dropdown").addClass("active")),i.trigger("activate.bs.scrollspy")},e.prototype.clear=function(){t(this.selector).parentsUntil(this.options.target,".active").removeClass("active")};var i=t.fn.scrollspy;t.fn.scrollspy=n,t.fn.scrollspy.Constructor=e,t.fn.scrollspy.noConflict=function(){return t.fn.scrollspy=i,this},t(window).on("load.bs.scrollspy.data-api",function(){t('[data-spy="scroll"]').each(function(){var e=t(this);n.call(e,e.data())})})}(jQuery),+function(t){"use strict";function e(e){return this.each(function(){var i=t(this),o=i.data("bs.tab");o||i.data("bs.tab",o=new n(this)),"string"==typeof e&&o[e]()})}var n=function(e){this.element=t(e)};n.VERSION="3.3.0",n.TRANSITION_DURATION=150,n.prototype.show=function(){var e=this.element,n=e.closest("ul:not(.dropdown-menu)"),i=e.data("target");if(i||(i=e.attr("href"),i=i&&i.replace(/.*(?=#[^\s]*$)/,"")),!e.parent("li").hasClass("active")){var o=n.find(".active:last a"),a=t.Event("hide.bs.tab",{relatedTarget:e[0]}),r=t.Event("show.bs.tab",{relatedTarget:o[0]});if(o.trigger(a),e.trigger(r),!r.isDefaultPrevented()&&!a.isDefaultPrevented()){var s=t(i);this.activate(e.closest("li"),n),this.activate(s,s.parent(),function(){o.trigger({type:"hidden.bs.tab",relatedTarget:e[0]}),e.trigger({type:"shown.bs.tab",relatedTarget:o[0]})})}}},n.prototype.activate=function(e,i,o){function a(){r.removeClass("active").find("> .dropdown-menu > .active").removeClass("active").end().find('[data-toggle="tab"]').attr("aria-expanded",!1),e.addClass("active").find('[data-toggle="tab"]').attr("aria-expanded",!0),s?(e[0].offsetWidth,e.addClass("in")):e.removeClass("fade"),e.parent(".dropdown-menu")&&e.closest("li.dropdown").addClass("active").end().find('[data-toggle="tab"]').attr("aria-expanded",!0),o&&o()}var r=i.find("> .active"),s=o&&t.support.transition&&(r.length&&r.hasClass("fade")||!!i.find("> .fade").length);r.length&&s?r.one("bsTransitionEnd",a).emulateTransitionEnd(n.TRANSITION_DURATION):a(),r.removeClass("in")};var i=t.fn.tab;t.fn.tab=e,t.fn.tab.Constructor=n,t.fn.tab.noConflict=function(){return t.fn.tab=i,this};var o=function(n){n.preventDefault(),e.call(t(this),"show")};t(document).on("click.bs.tab.data-api",'[data-toggle="tab"]',o).on("click.bs.tab.data-api",'[data-toggle="pill"]',o)}(jQuery),+function(t){"use strict";function e(e){return this.each(function(){var i=t(this),o=i.data("bs.affix"),a="object"==typeof e&&e;o||i.data("bs.affix",o=new n(this,a)),"string"==typeof e&&o[e]()})}var n=function(e,i){this.options=t.extend({},n.DEFAULTS,i),this.$target=t(this.options.target).on("scroll.bs.affix.data-api",t.proxy(this.checkPosition,this)).on("click.bs.affix.data-api",t.proxy(this.checkPositionWithEventLoop,this)),this.$element=t(e),this.affixed=this.unpin=this.pinnedOffset=null,this.checkPosition()};n.VERSION="3.3.0",n.RESET="affix affix-top affix-bottom",n.DEFAULTS={offset:0,target:window},n.prototype.getState=function(t,e,n,i){var o=this.$target.scrollTop(),a=this.$element.offset(),r=this.$target.height();if(null!=n&&"top"==this.affixed)return n>o?"top":!1;if("bottom"==this.affixed)return null!=n?o+this.unpin<=a.top?!1:"bottom":t-i>=o+r?!1:"bottom";var s=null==this.affixed,l=s?o:a.top,c=s?r:e;return null!=n&&n>=l?"top":null!=i&&l+c>=t-i?"bottom":!1},n.prototype.getPinnedOffset=function(){if(this.pinnedOffset)return this.pinnedOffset;this.$element.removeClass(n.RESET).addClass("affix");var t=this.$target.scrollTop(),e=this.$element.offset();return this.pinnedOffset=e.top-t},n.prototype.checkPositionWithEventLoop=function(){setTimeout(t.proxy(this.checkPosition,this),1)},n.prototype.checkPosition=function(){if(this.$element.is(":visible")){var e=this.$element.height(),i=this.options.offset,o=i.top,a=i.bottom,r=t("body").height();"object"!=typeof i&&(a=o=i),"function"==typeof o&&(o=i.top(this.$element)),"function"==typeof a&&(a=i.bottom(this.$element));var s=this.getState(r,e,o,a);if(this.affixed!=s){null!=this.unpin&&this.$element.css("top","");var l="affix"+(s?"-"+s:""),c=t.Event(l+".bs.affix");if(this.$element.trigger(c),c.isDefaultPrevented())return;this.affixed=s,this.unpin="bottom"==s?this.getPinnedOffset():null,this.$element.removeClass(n.RESET).addClass(l).trigger(l.replace("affix","affixed")+".bs.affix")}"bottom"==s&&this.$element.offset({top:r-e-a})}};var i=t.fn.affix;t.fn.affix=e,t.fn.affix.Constructor=n,t.fn.affix.noConflict=function(){return t.fn.affix=i,this},t(window).on("load",function(){t('[data-spy="affix"]').each(function(){var n=t(this),i=n.data();i.offset=i.offset||{},null!=i.offsetBottom&&(i.offset.bottom=i.offsetBottom),null!=i.offsetTop&&(i.offset.top=i.offsetTop),e.call(n,i)})})}(jQuery);define("bootstrap",["jquery"],function(){});!function(t,e){"use strict";"function"==typeof define&&define.amd?define("bootbox",["jquery"],e):"object"==typeof exports?module.exports=e(require("jquery")):t.bootbox=e(t.jQuery)}(this,function t(e,n){"use strict";function i(t){var e=g[p.locale];return e?e[t]:g.en[t]}function o(t,n,i){t.stopPropagation(),t.preventDefault();var o=e.isFunction(i)&&i.call(n,t)===!1;o||n.modal("hide")}function a(t){var e,n=0;for(e in t)n++;return n}function r(t,n){var i=0;e.each(t,function(t,e){n(t,e,i++)})}function s(t){var n,i;if("object"!=typeof t)throw new Error("Please supply an object of options");if(!t.message)throw new Error("Please specify a message");return t=e.extend({},p,t),t.buttons||(t.buttons={}),n=t.buttons,i=a(n),r(n,function(t,o,a){if(e.isFunction(o)&&(o=n[t]={callback:o}),"object"!==e.type(o))throw new Error("button with key "+t+" must be an object");o.label||(o.label=t),o.className||(o.className=2>=i&&a===i-1?"btn-primary":"btn-default")}),t}function l(t,e){var n=t.length,i={};if(1>n||n>2)throw new Error("Invalid argument length");return 2===n||"string"==typeof t[0]?(i[e[0]]=t[0],i[e[1]]=t[1]):i=t[0],i}function c(t,n,i){return e.extend(!0,{},t,l(n,i))}function u(t,e,n,i){var o={className:"bootbox-"+t,buttons:d.apply(null,e)};return h(c(o,i,n),e)}function d(){for(var t={},e=0,n=arguments.length;n>e;e++){var o=arguments[e],a=o.toLowerCase(),r=o.toUpperCase();t[a]={label:i(r)}}return t}function h(t,e){var i={};return r(e,function(t,e){i[e]=!0}),r(t.buttons,function(t){if(i[t]===n)throw new Error("button key "+t+" is not allowed (options are "+e.join("\n")+")")}),t}var f={dialog:"",header:"",footer:"",closeButton:"",form:"",inputs:{text:"",textarea:"",email:"",select:"",checkbox:"",date:"",time:"",number:"",password:""}},p={locale:"en",backdrop:"static",animate:!0,className:null,closeButton:!0,show:!0,container:"body"},m={};m.alert=function(){var t;if(t=u("alert",["ok"],["message","callback"],arguments),t.callback&&!e.isFunction(t.callback))throw new Error("alert requires callback property to be a function when provided");return t.buttons.ok.callback=t.onEscape=function(){return e.isFunction(t.callback)?t.callback.call(this):!0},m.dialog(t)},m.confirm=function(){var t;if(t=u("confirm",["cancel","confirm"],["message","callback"],arguments),t.buttons.cancel.callback=t.onEscape=function(){return t.callback.call(this,!1)},t.buttons.confirm.callback=function(){return t.callback.call(this,!0)},!e.isFunction(t.callback))throw new Error("confirm requires a callback");return m.dialog(t)},m.prompt=function(){var t,i,o,a,s,l,u;if(a=e(f.form),i={className:"bootbox-prompt",buttons:d("cancel","confirm"),value:"",inputType:"text"},t=h(c(i,arguments,["title","callback"]),["cancel","confirm"]),l=t.show===n?!0:t.show,t.message=a,t.buttons.cancel.callback=t.onEscape=function(){return t.callback.call(this,null)},t.buttons.confirm.callback=function(){var n;switch(t.inputType){case"text":case"textarea":case"email":case"select":case"date":case"time":case"number":case"password":n=s.val();break;case"checkbox":var i=s.find("input:checked");n=[],r(i,function(t,i){n.push(e(i).val())})}return t.callback.call(this,n)},t.show=!1,!t.title)throw new Error("prompt requires a title");if(!e.isFunction(t.callback))throw new Error("prompt requires a callback");if(!f.inputs[t.inputType])throw new Error("invalid prompt type");switch(s=e(f.inputs[t.inputType]),t.inputType){case"text":case"textarea":case"email":case"date":case"time":case"number":case"password":s.val(t.value);break;case"select":var p={};if(u=t.inputOptions||[],!e.isArray(u))throw new Error("Please pass an array of input options");if(!u.length)throw new Error("prompt with select requires options");r(u,function(t,i){var o=s;if(i.value===n||i.text===n)throw new Error("given options in wrong format");i.group&&(p[i.group]||(p[i.group]=e("").attr("label",i.group)),o=p[i.group]),o.append("")}),r(p,function(t,e){s.append(e)}),s.val(t.value);break;case"checkbox":var g=e.isArray(t.value)?t.value:[t.value];if(u=t.inputOptions||[],!u.length)throw new Error("prompt with checkbox requires options");if(!u[0].value||!u[0].text)throw new Error("given options in wrong format");s=e(""),r(u,function(n,i){var o=e(f.inputs[t.inputType]);o.find("input").attr("value",i.value),o.find("label").append(i.text),r(g,function(t,e){e===i.value&&o.find("input").prop("checked",!0)}),s.append(o)})}return t.placeholder&&s.attr("placeholder",t.placeholder),t.pattern&&s.attr("pattern",t.pattern),t.maxlength&&s.attr("maxlength",t.maxlength),a.append(s),a.on("submit",function(t){t.preventDefault(),t.stopPropagation(),o.find(".btn-primary").click()}),o=m.dialog(t),o.off("shown.bs.modal"),o.on("shown.bs.modal",function(){s.focus()}),l===!0&&o.modal("show"),o},m.dialog=function(t){t=s(t);var i=e(f.dialog),a=i.find(".modal-dialog"),l=i.find(".modal-body"),c=t.buttons,u="",d={onEscape:t.onEscape};if(e.fn.modal===n)throw new Error("$.fn.modal is not defined; please double check you have included the Bootstrap JavaScript library. See http://getbootstrap.com/javascript/ for more details.");if(r(c,function(t,e){u+="",d[t]=e.callback}),l.find(".bootbox-body").html(t.message),t.animate===!0&&i.addClass("fade"),t.className&&i.addClass(t.className),"large"===t.size?a.addClass("modal-lg"):"small"===t.size&&a.addClass("modal-sm"),t.title&&l.before(f.header),t.closeButton){var h=e(f.closeButton);t.title?i.find(".modal-header").prepend(h):h.css("margin-top","-10px").prependTo(l)}return t.title&&i.find(".modal-title").html(t.title),u.length&&(l.after(f.footer),i.find(".modal-footer").html(u)),i.on("hidden.bs.modal",function(t){t.target===this&&i.remove()}),i.on("shown.bs.modal",function(){i.find(".btn-primary:first").focus()}),"static"!==t.backdrop&&i.on("click.dismiss.bs.modal",function(t){i.children(".modal-backdrop").length&&(t.currentTarget=i.children(".modal-backdrop").get(0)),t.target===t.currentTarget&&i.trigger("escape.close.bb")}),i.on("escape.close.bb",function(t){d.onEscape&&o(t,i,d.onEscape)}),i.on("click",".modal-footer button",function(t){var n=e(this).data("bb-handler");o(t,i,d[n]);
-}),i.on("click",".bootbox-close-button",function(t){o(t,i,d.onEscape)}),i.on("keyup",function(t){27===t.which&&i.trigger("escape.close.bb")}),e(t.container).append(i),i.modal({backdrop:t.backdrop?"static":!1,keyboard:!1,show:!1}),t.show&&i.modal("show"),i},m.setDefaults=function(){var t={};2===arguments.length?t[arguments[0]]=arguments[1]:t=arguments[0],e.extend(p,t)},m.hideAll=function(){return e(".bootbox").modal("hide"),m};var g={bg_BG:{OK:"Ок",CANCEL:"Отказ",CONFIRM:"Потвърждавам"},br:{OK:"OK",CANCEL:"Cancelar",CONFIRM:"Sim"},cs:{OK:"OK",CANCEL:"Zrušit",CONFIRM:"Potvrdit"},da:{OK:"OK",CANCEL:"Annuller",CONFIRM:"Accepter"},de:{OK:"OK",CANCEL:"Abbrechen",CONFIRM:"Akzeptieren"},el:{OK:"Εντάξει",CANCEL:"Ακύρωση",CONFIRM:"Επιβεβαίωση"},en:{OK:"OK",CANCEL:"Cancel",CONFIRM:"OK"},es:{OK:"OK",CANCEL:"Cancelar",CONFIRM:"Aceptar"},et:{OK:"OK",CANCEL:"Katkesta",CONFIRM:"OK"},fa:{OK:"قبول",CANCEL:"لغو",CONFIRM:"تایید"},fi:{OK:"OK",CANCEL:"Peruuta",CONFIRM:"OK"},fr:{OK:"OK",CANCEL:"Annuler",CONFIRM:"D'accord"},he:{OK:"אישור",CANCEL:"ביטול",CONFIRM:"אישור"},hu:{OK:"OK",CANCEL:"Mégsem",CONFIRM:"Megerősít"},hr:{OK:"OK",CANCEL:"Odustani",CONFIRM:"Potvrdi"},id:{OK:"OK",CANCEL:"Batal",CONFIRM:"OK"},it:{OK:"OK",CANCEL:"Annulla",CONFIRM:"Conferma"},ja:{OK:"OK",CANCEL:"キャンセル",CONFIRM:"確認"},lt:{OK:"Gerai",CANCEL:"Atšaukti",CONFIRM:"Patvirtinti"},lv:{OK:"Labi",CANCEL:"Atcelt",CONFIRM:"Apstiprināt"},nl:{OK:"OK",CANCEL:"Annuleren",CONFIRM:"Accepteren"},no:{OK:"OK",CANCEL:"Avbryt",CONFIRM:"OK"},pl:{OK:"OK",CANCEL:"Anuluj",CONFIRM:"Potwierdź"},pt:{OK:"OK",CANCEL:"Cancelar",CONFIRM:"Confirmar"},ru:{OK:"OK",CANCEL:"Отмена",CONFIRM:"Применить"},sq:{OK:"OK",CANCEL:"Anulo",CONFIRM:"Prano"},sv:{OK:"OK",CANCEL:"Avbryt",CONFIRM:"OK"},th:{OK:"ตกลง",CANCEL:"ยกเลิก",CONFIRM:"ยืนยัน"},tr:{OK:"Tamam",CANCEL:"İptal",CONFIRM:"Onayla"},zh_CN:{OK:"OK",CANCEL:"取消",CONFIRM:"确认"},zh_TW:{OK:"OK",CANCEL:"取消",CONFIRM:"確認"}};return m.addLocale=function(t,n){return e.each(["OK","CANCEL","CONFIRM"],function(t,e){if(!n[e])throw new Error("Please supply a translation for '"+e+"'")}),g[t]={OK:n.OK,CANCEL:n.CANCEL,CONFIRM:n.CONFIRM},m},m.removeLocale=function(t){return delete g[t],m},m.setLocale=function(t){return m.setDefaults("locale",t)},m.init=function(n){return t(n||e)},m});!function(t){if("object"==typeof exports&&"undefined"!=typeof module)module.exports=t();else if("function"==typeof define&&define.amd)define("localForage",[],t);else{var e;e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:this,e.localforage=t()}}(function(){return function t(e,n,i){function o(r,s){if(!n[r]){if(!e[r]){var l="function"==typeof require&&require;if(!s&&l)return l(r,!0);if(a)return a(r,!0);var c=new Error("Cannot find module '"+r+"'");throw c.code="MODULE_NOT_FOUND",c}var u=n[r]={exports:{}};e[r][0].call(u.exports,function(t){var n=e[r][1][t];return o(n?n:t)},u,u.exports,t,e,n,i)}return n[r].exports}for(var a="function"==typeof require&&require,r=0;ro;o++)i[o]=t.charCodeAt(o);return n}function d(t){return new lt(function(e){var n=l([""]);t.objectStore(ct).put(n,"key"),t.onabort=function(t){t.preventDefault(),t.stopPropagation(),e(!1)},t.oncomplete=function(){var t=navigator.userAgent.match(/Chrome\/(\d+)/),n=navigator.userAgent.match(/Edge\//);e(n||!t||parseInt(t[1],10)>=43)}})["catch"](function(){return!1})}function h(t){return"boolean"==typeof rt?lt.resolve(rt):d(t).then(function(t){return rt=t})}function f(t){var e=st[t.name],n={};n.promise=new lt(function(t){n.resolve=t}),e.deferredOperations.push(n),e.dbReady?e.dbReady=e.dbReady.then(function(){return n.promise}):e.dbReady=n.promise}function p(t){var e=st[t.name],n=e.deferredOperations.pop();n&&n.resolve()}function m(t,e){return new lt(function(n,i){if(t.db){if(!e)return n(t.db);f(t),t.db.close()}var o=[t.name];e&&o.push(t.version);var a=at.open.apply(at,o);e&&(a.onupgradeneeded=function(e){var n=a.result;try{n.createObjectStore(t.storeName),e.oldVersion<=1&&n.createObjectStore(ct)}catch(i){if("ConstraintError"!==i.name)throw i}}),a.onerror=function(){i(a.error)},a.onsuccess=function(){n(a.result),p(t)}})}function g(t){return m(t,!1)}function v(t){return m(t,!0)}function y(t,e){if(!t.db)return!0;var n=!t.db.objectStoreNames.contains(t.storeName),i=t.versiont.db.version;if(i&&(t.version!==e&&void 0,t.version=t.db.version),o||n){if(n){var a=t.db.version+1;a>t.version&&(t.version=a)}return!0}return!1}function b(t){return new lt(function(e,n){var i=new FileReader;i.onerror=n,i.onloadend=function(n){var i=btoa(n.target.result||"");e({__local_forage_encoded_blob:!0,data:i,type:t.type})},i.readAsBinaryString(t)})}function w(t){var e=u(atob(t.data));return l([e],{type:t.type})}function C(t){return t&&t.__local_forage_encoded_blob}function x(t){var e=this,n=e._initReady().then(function(){var t=st[e._dbInfo.name];return t&&t.dbReady?t.dbReady:void 0});return n.then(t,t),n}function S(t){function e(){return lt.resolve()}var n=this,i={db:null};if(t)for(var o in t)i[o]=t[o];st||(st={});var a=st[i.name];a||(a={forages:[],db:null,dbReady:null,deferredOperations:[]},st[i.name]=a),a.forages.push(n),n._initReady||(n._initReady=n.ready,n.ready=x);for(var r=[],s=0;st?void e(null):void n.ready().then(function(){var o=n._dbInfo,a=o.db.transaction(o.storeName,"readonly").objectStore(o.storeName),r=!1,s=a.openCursor();s.onsuccess=function(){var n=s.result;return n?void(0===t?e(n.key):r?e(n.key):(r=!0,n.advance(t))):void e(null)},s.onerror=function(){i(s.error)}})["catch"](i)});return c(i,e),i}function I(t){var e=this,n=new lt(function(t,n){e.ready().then(function(){var i=e._dbInfo,o=i.db.transaction(i.storeName,"readonly").objectStore(i.storeName),a=o.openCursor(),r=[];a.onsuccess=function(){var e=a.result;return e?(r.push(e.key),void e["continue"]()):void t(r)},a.onerror=function(){n(a.error)}})["catch"](n)});return c(n,t),n}function P(t){var e,n,i,o,a,r=.75*t.length,s=t.length,l=0;"="===t[t.length-1]&&(r--,"="===t[t.length-2]&&r--);var c=new ArrayBuffer(r),u=new Uint8Array(c);for(e=0;s>e;e+=4)n=dt.indexOf(t[e]),i=dt.indexOf(t[e+1]),o=dt.indexOf(t[e+2]),a=dt.indexOf(t[e+3]),u[l++]=n<<2|i>>4,u[l++]=(15&i)<<4|o>>2,u[l++]=(3&o)<<6|63&a;return c}function N(t){var e,n=new Uint8Array(t),i="";for(e=0;e>2],i+=dt[(3&n[e])<<4|n[e+1]>>4],i+=dt[(15&n[e+1])<<2|n[e+2]>>6],i+=dt[63&n[e+2]];return n.length%3===2?i=i.substring(0,i.length-1)+"=":n.length%3===1&&(i=i.substring(0,i.length-2)+"=="),i}function M(t,e){var n="";if(t&&(n=t.toString()),t&&("[object ArrayBuffer]"===t.toString()||t.buffer&&"[object ArrayBuffer]"===t.buffer.toString())){var i,o=pt;t instanceof ArrayBuffer?(i=t,o+=gt):(i=t.buffer,"[object Int8Array]"===n?o+=yt:"[object Uint8Array]"===n?o+=bt:"[object Uint8ClampedArray]"===n?o+=wt:"[object Int16Array]"===n?o+=Ct:"[object Uint16Array]"===n?o+=St:"[object Int32Array]"===n?o+=xt:"[object Uint32Array]"===n?o+=Tt:"[object Float32Array]"===n?o+=_t:"[object Float64Array]"===n?o+=kt:e(new Error("Failed to get type for BinaryArray"))),e(o+N(i))}else if("[object Blob]"===n){var a=new FileReader;a.onload=function(){var n=ht+t.type+"~"+N(this.result);e(pt+vt+n)},a.readAsArrayBuffer(t)}else try{e(JSON.stringify(t))}catch(r){e(null,r)}}function $(t){if(t.substring(0,mt)!==pt)return JSON.parse(t);var e,n=t.substring(Dt),i=t.substring(mt,Dt);if(i===vt&&ft.test(n)){var o=n.match(ft);e=o[1],n=n.substring(o[0].length)}var a=P(n);switch(i){case gt:return a;case vt:return l([a],{type:e});case yt:return new Int8Array(a);case bt:return new Uint8Array(a);case wt:return new Uint8ClampedArray(a);case Ct:return new Int16Array(a);case St:return new Uint16Array(a);case xt:return new Int32Array(a);case Tt:return new Uint32Array(a);case _t:return new Float32Array(a);case kt:return new Float64Array(a);default:throw new Error("Unkown type: "+i)}}function R(t){var e=this,n={db:null};if(t)for(var i in t)n[i]="string"!=typeof t[i]?t[i].toString():t[i];var o=new lt(function(t,i){try{n.db=openDatabase(n.name,String(n.version),n.description,n.size)}catch(o){return i(o)}n.db.transaction(function(o){o.executeSql("CREATE TABLE IF NOT EXISTS "+n.storeName+" (id INTEGER PRIMARY KEY, key unique, value)",[],function(){e._dbInfo=n,t()},function(t,e){i(e)})})});return n.serializer=Et,o}function L(t,e){var n=this;"string"!=typeof t&&(t=String(t));var i=new lt(function(e,i){n.ready().then(function(){var o=n._dbInfo;o.db.transaction(function(n){n.executeSql("SELECT * FROM "+o.storeName+" WHERE key = ? LIMIT 1",[t],function(t,n){var i=n.rows.length?n.rows.item(0).value:null;i&&(i=o.serializer.deserialize(i)),e(i)},function(t,e){i(e)})})})["catch"](i)});return c(i,e),i}function j(t,e){var n=this,i=new lt(function(e,i){n.ready().then(function(){var o=n._dbInfo;o.db.transaction(function(n){n.executeSql("SELECT * FROM "+o.storeName,[],function(n,i){for(var a=i.rows,r=a.length,s=0;r>s;s++){var l=a.item(s),c=l.value;if(c&&(c=o.serializer.deserialize(c)),c=t(c,l.key,s+1),void 0!==c)return void e(c)}e()},function(t,e){i(e)})})})["catch"](i)});return c(i,e),i}function F(t,e,n){var i=this;"string"!=typeof t&&(t=String(t));var o=new lt(function(n,o){i.ready().then(function(){void 0===e&&(e=null);var a=e,r=i._dbInfo;r.serializer.serialize(e,function(e,i){i?o(i):r.db.transaction(function(i){i.executeSql("INSERT OR REPLACE INTO "+r.storeName+" (key, value) VALUES (?, ?)",[t,e],function(){n(a)},function(t,e){o(e)})},function(t){t.code===t.QUOTA_ERR&&o(t)})})})["catch"](o)});return c(o,n),o}function B(t,e){var n=this;"string"!=typeof t&&(t=String(t));var i=new lt(function(e,i){n.ready().then(function(){var o=n._dbInfo;o.db.transaction(function(n){n.executeSql("DELETE FROM "+o.storeName+" WHERE key = ?",[t],function(){e()},function(t,e){i(e)})})})["catch"](i)});return c(i,e),i}function U(t){var e=this,n=new lt(function(t,n){e.ready().then(function(){var i=e._dbInfo;i.db.transaction(function(e){e.executeSql("DELETE FROM "+i.storeName,[],function(){t()},function(t,e){n(e)})})})["catch"](n)});return c(n,t),n}function H(t){var e=this,n=new lt(function(t,n){e.ready().then(function(){var i=e._dbInfo;i.db.transaction(function(e){e.executeSql("SELECT COUNT(key) as c FROM "+i.storeName,[],function(e,n){var i=n.rows.item(0).c;t(i)},function(t,e){n(e)})})})["catch"](n)});return c(n,t),n}function z(t,e){var n=this,i=new lt(function(e,i){n.ready().then(function(){var o=n._dbInfo;o.db.transaction(function(n){n.executeSql("SELECT key FROM "+o.storeName+" WHERE id = ? LIMIT 1",[t+1],function(t,n){var i=n.rows.length?n.rows.item(0).key:null;e(i)},function(t,e){i(e)})})})["catch"](i)});return c(i,e),i}function W(t){var e=this,n=new lt(function(t,n){e.ready().then(function(){var i=e._dbInfo;i.db.transaction(function(e){e.executeSql("SELECT key FROM "+i.storeName,[],function(e,n){for(var i=[],o=0;o=0;n--){var i=localStorage.key(n);0===i.indexOf(t)&&localStorage.removeItem(i)}});return c(n,t),n}function Y(t,e){var n=this;"string"!=typeof t&&(t=String(t));var i=n.ready().then(function(){var e=n._dbInfo,i=localStorage.getItem(e.keyPrefix+t);return i&&(i=e.serializer.deserialize(i)),i});return c(i,e),i}function X(t,e){var n=this,i=n.ready().then(function(){for(var e=n._dbInfo,i=e.keyPrefix,o=i.length,a=localStorage.length,r=1,s=0;a>s;s++){var l=localStorage.key(s);if(0===l.indexOf(i)){var c=localStorage.getItem(l);if(c&&(c=e.serializer.deserialize(c)),c=t(c,l.substring(o),r++),void 0!==c)return c}}});return c(i,e),i}function Q(t,e){var n=this,i=n.ready().then(function(){var e,i=n._dbInfo;try{e=localStorage.key(t)}catch(o){e=null}return e&&(e=e.substring(i.keyPrefix.length)),e});return c(i,e),i}function K(t){var e=this,n=e.ready().then(function(){for(var t=e._dbInfo,n=localStorage.length,i=[],o=0;n>o;o++)0===localStorage.key(o).indexOf(t.keyPrefix)&&i.push(localStorage.key(o).substring(t.keyPrefix.length));return i});return c(n,t),n}function G(t){var e=this,n=e.keys().then(function(t){return t.length});return c(n,t),n}function Z(t,e){var n=this;"string"!=typeof t&&(t=String(t));var i=n.ready().then(function(){var e=n._dbInfo;localStorage.removeItem(e.keyPrefix+t)});return c(i,e),i}function J(t,e,n){var i=this;"string"!=typeof t&&(t=String(t));var o=i.ready().then(function(){void 0===e&&(e=null);var n=e;return new lt(function(o,a){var r=i._dbInfo;r.serializer.serialize(e,function(e,i){if(i)a(i);else try{localStorage.setItem(r.keyPrefix+t,e),o(n)}catch(s){"QuotaExceededError"!==s.name&&"NS_ERROR_DOM_QUOTA_REACHED"!==s.name||a(s),a(s)}})})});return c(o,n),o}function tt(t,e,n){"function"==typeof e&&t.then(e),"function"==typeof n&&t["catch"](n)}function et(t,e){t[e]=function(){var n=arguments;return t.ready().then(function(){return t[e].apply(t,n)})}}function nt(){for(var t=1;tn;n++){var o=t[n];this.supports(o)&&e.push(o)}return e},t.prototype._wrapLibraryMethodsWithReady=function(){for(var t=0;t0&&e-1 in t}if(!t.jQuery){var n=function(t,e){return new n.fn.init(t,e)};n.isWindow=function(t){return null!=t&&t==t.window},n.type=function(t){return null==t?t+"":"object"==typeof t||"function"==typeof t?o[r.call(t)]||"object":typeof t},n.isArray=Array.isArray||function(t){return"array"===n.type(t)},n.isPlainObject=function(t){var e;if(!t||"object"!==n.type(t)||t.nodeType||n.isWindow(t))return!1;try{if(t.constructor&&!a.call(t,"constructor")&&!a.call(t.constructor.prototype,"isPrototypeOf"))return!1}catch(i){return!1}for(e in t);return void 0===e||a.call(t,e)},n.each=function(t,n,i){var o,a=0,r=t.length,s=e(t);if(i){if(s)for(;r>a&&(o=n.apply(t[a],i),o!==!1);a++);else for(a in t)if(o=n.apply(t[a],i),o===!1)break}else if(s)for(;r>a&&(o=n.call(t[a],a,t[a]),o!==!1);a++);else for(a in t)if(o=n.call(t[a],a,t[a]),o===!1)break;return t},n.data=function(t,e,o){if(void 0===o){var a=t[n.expando],r=a&&i[a];if(void 0===e)return r;if(r&&e in r)return r[e]}else if(void 0!==e){var a=t[n.expando]||(t[n.expando]=++n.uuid);return i[a]=i[a]||{},i[a][e]=o,o}},n.removeData=function(t,e){var o=t[n.expando],a=o&&i[o];a&&n.each(e,function(t,e){delete a[e]})},n.extend=function(){var t,e,i,o,a,r,s=arguments[0]||{},l=1,c=arguments.length,u=!1;for("boolean"==typeof s&&(u=s,s=arguments[l]||{},l++),"object"!=typeof s&&"function"!==n.type(s)&&(s={}),l===c&&(s=this,l--);c>l;l++)if(null!=(a=arguments[l]))for(o in a)t=s[o],i=a[o],s!==i&&(u&&i&&(n.isPlainObject(i)||(e=n.isArray(i)))?(e?(e=!1,r=t&&n.isArray(t)?t:[]):r=t&&n.isPlainObject(t)?t:{},s[o]=n.extend(u,r,i)):void 0!==i&&(s[o]=i));return s},n.queue=function(t,i,o){function a(t,n){var i=n||[];return null!=t&&(e(Object(t))?!function(t,e){for(var n=+e.length,i=0,o=t.length;n>i;)t[o++]=e[i++];if(n!==n)for(;void 0!==e[i];)t[o++]=e[i++];return t.length=o,t}(i,"string"==typeof t?[t]:t):[].push.call(i,t)),i}if(t){i=(i||"fx")+"queue";var r=n.data(t,i);return o?(!r||n.isArray(o)?r=n.data(t,i,a(o)):r.push(o),r):r||[]}},n.dequeue=function(t,e){n.each(t.nodeType?[t]:t,function(t,i){e=e||"fx";var o=n.queue(i,e),a=o.shift();"inprogress"===a&&(a=o.shift()),a&&("fx"===e&&o.unshift("inprogress"),a.call(i,function(){n.dequeue(i,e)}))})},n.fn=n.prototype={init:function(t){if(t.nodeType)return this[0]=t,this;throw new Error("Not a DOM node.")},offset:function(){var e=this[0].getBoundingClientRect?this[0].getBoundingClientRect():{top:0,left:0};return{top:e.top+(t.pageYOffset||document.scrollTop||0)-(document.clientTop||0),left:e.left+(t.pageXOffset||document.scrollLeft||0)-(document.clientLeft||0)}},position:function(){function t(){for(var t=this.offsetParent||document;t&&"html"===!t.nodeType.toLowerCase&&"static"===t.style.position;)t=t.offsetParent;return t||document}var e=this[0],t=t.apply(e),i=this.offset(),o=/^(?:body|html)$/i.test(t.nodeName)?{top:0,left:0}:n(t).offset();return i.top-=parseFloat(e.style.marginTop)||0,i.left-=parseFloat(e.style.marginLeft)||0,t.style&&(o.top+=parseFloat(t.style.borderTopWidth)||0,o.left+=parseFloat(t.style.borderLeftWidth)||0),{top:i.top-o.top,left:i.left-o.left}}};var i={};n.expando="velocity"+(new Date).getTime(),n.uuid=0;for(var o={},a=o.hasOwnProperty,r=o.toString,s="Boolean Number String Function Array Date RegExp Object Error".split(" "),l=0;lo;++o){var a=c(n,t,i);if(0===a)return n;var r=l(n,t,i)-e;n-=r/a}return n}function d(){for(var e=0;b>e;++e)S[e]=l(e*w,t,i)}function h(e,n,o){var a,r,s=0;do r=n+(o-n)/2,a=l(r,t,i)-e,a>0?o=r:n=r;while(Math.abs(a)>v&&++s=g?u(e,s):0==l?s:h(e,n,n+w)}function p(){T=!0,(t!=n||i!=o)&&d()}var m=4,g=.001,v=1e-7,y=10,b=11,w=1/(b-1),C="Float32Array"in e;if(4!==arguments.length)return!1;for(var x=0;4>x;++x)if("number"!=typeof arguments[x]||isNaN(arguments[x])||!isFinite(arguments[x]))return!1;t=Math.min(t,1),i=Math.min(i,1),t=Math.max(t,0),i=Math.max(i,0);var S=C?new Float32Array(b):new Array(b),T=!1,_=function(e){return T||p(),t===n&&i===o?e:0===e?0:1===e?1:l(f(e),n,o)};_.getControlPoints=function(){return[{x:t,y:n},{x:i,y:o}]};var k="generateBezier("+[t,n,i,o]+")";return _.toString=function(){return k},_}function c(t,e){var n=t;return m.isString(t)?b.Easings[t]||(n=!1):n=m.isArray(t)&&1===t.length?s.apply(null,t):m.isArray(t)&&2===t.length?w.apply(null,t.concat([e])):m.isArray(t)&&4===t.length?l.apply(null,t):!1,n===!1&&(n=b.Easings[b.defaults.easing]?b.defaults.easing:y),n}function u(t){if(t){var e=(new Date).getTime(),n=b.State.calls.length;
-n>1e4&&(b.State.calls=o(b.State.calls));for(var a=0;n>a;a++)if(b.State.calls[a]){var s=b.State.calls[a],l=s[0],c=s[2],f=s[3],p=!!f,g=null;f||(f=b.State.calls[a][3]=e-16);for(var v=Math.min((e-f)/c.duration,1),y=0,w=l.length;w>y;y++){var x=l[y],T=x.element;if(r(T)){var _=!1;if(c.display!==i&&null!==c.display&&"none"!==c.display){if("flex"===c.display){var k=["-webkit-box","-moz-box","-ms-flexbox","-webkit-flex"];h.each(k,function(t,e){C.setPropertyValue(T,"display",e)})}C.setPropertyValue(T,"display",c.display)}c.visibility!==i&&"hidden"!==c.visibility&&C.setPropertyValue(T,"visibility",c.visibility);for(var D in x)if("element"!==D){var E,O=x[D],A=m.isString(O.easing)?b.Easings[O.easing]:O.easing;if(1===v)E=O.endValue;else{var I=O.endValue-O.startValue;if(E=O.startValue+I*A(v,c,I),!p&&E===O.currentValue)continue}if(O.currentValue=E,"tween"===D)g=E;else{if(C.Hooks.registered[D]){var P=C.Hooks.getRoot(D),N=r(T).rootPropertyValueCache[P];N&&(O.rootPropertyValue=N)}var M=C.setPropertyValue(T,D,O.currentValue+(0===parseFloat(E)?"":O.unitType),O.rootPropertyValue,O.scrollData);C.Hooks.registered[D]&&(r(T).rootPropertyValueCache[P]=C.Normalizations.registered[P]?C.Normalizations.registered[P]("extract",null,M[1]):M[1]),"transform"===M[0]&&(_=!0)}}c.mobileHA&&r(T).transformCache.translate3d===i&&(r(T).transformCache.translate3d="(0px, 0px, 0px)",_=!0),_&&C.flushTransformCache(T)}}c.display!==i&&"none"!==c.display&&(b.State.calls[a][2].display=!1),c.visibility!==i&&"hidden"!==c.visibility&&(b.State.calls[a][2].visibility=!1),c.progress&&c.progress.call(s[1],s[1],v,Math.max(0,f+c.duration-e),f,g),1===v&&d(a)}}b.State.isTicking&&S(u)}function d(t,e){if(!b.State.calls[t])return!1;for(var n=b.State.calls[t][0],o=b.State.calls[t][1],a=b.State.calls[t][2],s=b.State.calls[t][4],l=!1,c=0,u=n.length;u>c;c++){var d=n[c].element;if(e||a.loop||("none"===a.display&&C.setPropertyValue(d,"display",a.display),"hidden"===a.visibility&&C.setPropertyValue(d,"visibility",a.visibility)),a.loop!==!0&&(h.queue(d)[1]===i||!/\.velocityQueueEntryFlag/i.test(h.queue(d)[1]))&&r(d)){r(d).isAnimating=!1,r(d).rootPropertyValueCache={};var f=!1;h.each(C.Lists.transforms3D,function(t,e){var n=/^scale/.test(e)?1:0,o=r(d).transformCache[e];r(d).transformCache[e]!==i&&new RegExp("^\\("+n+"[^.]").test(o)&&(f=!0,delete r(d).transformCache[e])}),a.mobileHA&&(f=!0,delete r(d).transformCache.translate3d),f&&C.flushTransformCache(d),C.Values.removeClass(d,"velocity-animating")}if(!e&&a.complete&&!a.loop&&c===u-1)try{a.complete.call(o,o)}catch(p){setTimeout(function(){throw p},1)}s&&a.loop!==!0&&s(o),r(d)&&a.loop===!0&&!e&&(h.each(r(d).tweensContainer,function(t,e){/^rotate/.test(t)&&360===parseFloat(e.endValue)&&(e.endValue=0,e.startValue=360),/^backgroundPosition/.test(t)&&100===parseFloat(e.endValue)&&"%"===e.unitType&&(e.endValue=0,e.startValue=100)}),b(d,"reverse",{loop:!0,delay:a.delay})),a.queue!==!1&&h.dequeue(d,a.queue)}b.State.calls[t]=!1;for(var m=0,g=b.State.calls.length;g>m;m++)if(b.State.calls[m]!==!1){l=!0;break}l===!1&&(b.State.isTicking=!1,delete b.State.calls,b.State.calls=[])}var h,f=function(){if(n.documentMode)return n.documentMode;for(var t=7;t>4;t--){var e=n.createElement("div");if(e.innerHTML="",e.getElementsByTagName("span").length)return e=null,t}return i}(),p=function(){var t=0;return e.webkitRequestAnimationFrame||e.mozRequestAnimationFrame||function(e){var n,i=(new Date).getTime();return n=Math.max(0,16-(i-t)),t=i+n,setTimeout(function(){e(i+n)},n)}}(),m={isString:function(t){return"string"==typeof t},isArray:Array.isArray||function(t){return"[object Array]"===Object.prototype.toString.call(t)},isFunction:function(t){return"[object Function]"===Object.prototype.toString.call(t)},isNode:function(t){return t&&t.nodeType},isNodeList:function(t){return"object"==typeof t&&/^\[object (HTMLCollection|NodeList|Object)\]$/.test(Object.prototype.toString.call(t))&&t.length!==i&&(0===t.length||"object"==typeof t[0]&&t[0].nodeType>0)},isWrapped:function(t){return t&&(t.jquery||e.Zepto&&e.Zepto.zepto.isZ(t))},isSVG:function(t){return e.SVGElement&&t instanceof e.SVGElement},isEmptyObject:function(t){for(var e in t)return!1;return!0}},g=!1;if(t.fn&&t.fn.jquery?(h=t,g=!0):h=e.Velocity.Utilities,8>=f&&!g)throw new Error("Velocity: IE8 and below require jQuery to be loaded before Velocity.");if(7>=f)return void(jQuery.fn.velocity=jQuery.fn.animate);var v=400,y="swing",b={State:{isMobile:/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent),isAndroid:/Android/i.test(navigator.userAgent),isGingerbread:/Android 2\.3\.[3-7]/i.test(navigator.userAgent),isChrome:e.chrome,isFirefox:/Firefox/i.test(navigator.userAgent),prefixElement:n.createElement("div"),prefixMatches:{},scrollAnchor:null,scrollPropertyLeft:null,scrollPropertyTop:null,isTicking:!1,calls:[]},CSS:{},Utilities:h,Redirects:{},Easings:{},Promise:e.Promise,defaults:{queue:"",duration:v,easing:y,begin:i,complete:i,progress:i,display:i,visibility:i,loop:!1,delay:!1,mobileHA:!0,_cacheValues:!0},init:function(t){h.data(t,"velocity",{isSVG:m.isSVG(t),isAnimating:!1,computedStyle:null,tweensContainer:null,rootPropertyValueCache:{},transformCache:{}})},hook:null,mock:!1,version:{major:1,minor:2,patch:2},debug:!1};e.pageYOffset!==i?(b.State.scrollAnchor=e,b.State.scrollPropertyLeft="pageXOffset",b.State.scrollPropertyTop="pageYOffset"):(b.State.scrollAnchor=n.documentElement||n.body.parentNode||n.body,b.State.scrollPropertyLeft="scrollLeft",b.State.scrollPropertyTop="scrollTop");var w=function(){function t(t){return-t.tension*t.x-t.friction*t.v}function e(e,n,i){var o={x:e.x+i.dx*n,v:e.v+i.dv*n,tension:e.tension,friction:e.friction};return{dx:o.v,dv:t(o)}}function n(n,i){var o={dx:n.v,dv:t(n)},a=e(n,.5*i,o),r=e(n,.5*i,a),s=e(n,i,r),l=1/6*(o.dx+2*(a.dx+r.dx)+s.dx),c=1/6*(o.dv+2*(a.dv+r.dv)+s.dv);return n.x=n.x+l*i,n.v=n.v+c*i,n}return function i(t,e,o){var a,r,s,l={x:-1,v:0,tension:null,friction:null},c=[0],u=0,d=1e-4,h=.016;for(t=parseFloat(t)||500,e=parseFloat(e)||20,o=o||null,l.tension=t,l.friction=e,a=null!==o,a?(u=i(t,e),r=u/o*h):r=h;s=n(s||l,r),c.push(1+s.x),u+=16,Math.abs(s.x)>d&&Math.abs(s.v)>d;);return a?function(t){return c[t*(c.length-1)|0]}:u}}();b.Easings={linear:function(t){return t},swing:function(t){return.5-Math.cos(t*Math.PI)/2},spring:function(t){return 1-Math.cos(4.5*t*Math.PI)*Math.exp(6*-t)}},h.each([["ease",[.25,.1,.25,1]],["ease-in",[.42,0,1,1]],["ease-out",[0,0,.58,1]],["ease-in-out",[.42,0,.58,1]],["easeInSine",[.47,0,.745,.715]],["easeOutSine",[.39,.575,.565,1]],["easeInOutSine",[.445,.05,.55,.95]],["easeInQuad",[.55,.085,.68,.53]],["easeOutQuad",[.25,.46,.45,.94]],["easeInOutQuad",[.455,.03,.515,.955]],["easeInCubic",[.55,.055,.675,.19]],["easeOutCubic",[.215,.61,.355,1]],["easeInOutCubic",[.645,.045,.355,1]],["easeInQuart",[.895,.03,.685,.22]],["easeOutQuart",[.165,.84,.44,1]],["easeInOutQuart",[.77,0,.175,1]],["easeInQuint",[.755,.05,.855,.06]],["easeOutQuint",[.23,1,.32,1]],["easeInOutQuint",[.86,0,.07,1]],["easeInExpo",[.95,.05,.795,.035]],["easeOutExpo",[.19,1,.22,1]],["easeInOutExpo",[1,0,0,1]],["easeInCirc",[.6,.04,.98,.335]],["easeOutCirc",[.075,.82,.165,1]],["easeInOutCirc",[.785,.135,.15,.86]]],function(t,e){b.Easings[e[0]]=l.apply(null,e[1])});var C=b.CSS={RegEx:{isHex:/^#([A-f\d]{3}){1,2}$/i,valueUnwrap:/^[A-z]+\((.*)\)$/i,wrappedValueAlreadyExtracted:/[0-9.]+ [0-9.]+ [0-9.]+( [0-9.]+)?/,valueSplit:/([A-z]+\(.+\))|(([A-z0-9#-.]+?)(?=\s|$))/gi},Lists:{colors:["fill","stroke","stopColor","color","backgroundColor","borderColor","borderTopColor","borderRightColor","borderBottomColor","borderLeftColor","outlineColor"],transformsBase:["translateX","translateY","scale","scaleX","scaleY","skewX","skewY","rotateZ"],transforms3D:["transformPerspective","translateZ","scaleZ","rotateX","rotateY"]},Hooks:{templates:{textShadow:["Color X Y Blur","black 0px 0px 0px"],boxShadow:["Color X Y Blur Spread","black 0px 0px 0px 0px"],clip:["Top Right Bottom Left","0px 0px 0px 0px"],backgroundPosition:["X Y","0% 0%"],transformOrigin:["X Y Z","50% 50% 0px"],perspectiveOrigin:["X Y","50% 50%"]},registered:{},register:function(){for(var t=0;t=f)switch(t){case"name":return"filter";case"extract":var i=n.toString().match(/alpha\(opacity=(.*)\)/i);return n=i?i[1]/100:1;case"inject":return e.style.zoom=1,parseFloat(n)>=1?"":"alpha(opacity="+parseInt(100*parseFloat(n),10)+")"}else switch(t){case"name":return"opacity";case"extract":return n;case"inject":return n}}},register:function(){9>=f||b.State.isGingerbread||(C.Lists.transformsBase=C.Lists.transformsBase.concat(C.Lists.transforms3D));for(var t=0;to&&(o=1),a=!/(\d)$/i.test(o);break;case"skew":a=!/(deg|\d)$/i.test(o);break;case"rotate":a=!/(deg|\d)$/i.test(o)}return a||(r(n).transformCache[e]="("+o+")"),r(n).transformCache[e]}}}();for(var t=0;t=f||3!==a.split(" ").length||(a+=" 1"),a;case"inject":return 8>=f?4===o.split(" ").length&&(o=o.split(/\s+/).slice(0,3).join(" ")):3===o.split(" ").length&&(o+=" 1"),(8>=f?"rgb":"rgba")+"("+o.replace(/\s+/g,",").replace(/\.(\d)+(?=,)/g,"")+")"}}}()}},Names:{camelCase:function(t){return t.replace(/-(\w)/g,function(t,e){return e.toUpperCase()})},SVGAttribute:function(t){var e="width|height|x|y|cx|cy|r|rx|ry|x1|x2|y1|y2";return(f||b.State.isAndroid&&!b.State.isChrome)&&(e+="|transform"),new RegExp("^("+e+")$","i").test(t)},prefixCheck:function(t){if(b.State.prefixMatches[t])return[b.State.prefixMatches[t],!0];for(var e=["","Webkit","Moz","ms","O"],n=0,i=e.length;i>n;n++){var o;if(o=0===n?t:e[n]+t.replace(/^\w/,function(t){return t.toUpperCase()}),m.isString(b.State.prefixElement.style[o]))return b.State.prefixMatches[t]=o,[o,!0]}return[t,!1]}},Values:{hexToRgb:function(t){var e,n=/^#?([a-f\d])([a-f\d])([a-f\d])$/i,i=/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i;return t=t.replace(n,function(t,e,n,i){return e+e+n+n+i+i}),e=i.exec(t),e?[parseInt(e[1],16),parseInt(e[2],16),parseInt(e[3],16)]:[0,0,0]},isCSSNullValue:function(t){return 0==t||/^(none|auto|transparent|(rgba\(0, ?0, ?0, ?0\)))$/i.test(t)},getUnitType:function(t){return/^(rotate|skew)/i.test(t)?"deg":/(^(scale|scaleX|scaleY|scaleZ|alpha|flexGrow|flexHeight|zIndex|fontWeight)$)|((opacity|red|green|blue|alpha)$)/i.test(t)?"":"px"},getDisplayType:function(t){var e=t&&t.tagName.toString().toLowerCase();return/^(b|big|i|small|tt|abbr|acronym|cite|code|dfn|em|kbd|strong|samp|var|a|bdo|br|img|map|object|q|script|span|sub|sup|button|input|label|select|textarea)$/i.test(e)?"inline":/^(li)$/i.test(e)?"list-item":/^(tr)$/i.test(e)?"table-row":/^(table)$/i.test(e)?"table":/^(tbody)$/i.test(e)?"table-row-group":"block"},addClass:function(t,e){t.classList?t.classList.add(e):t.className+=(t.className.length?" ":"")+e},removeClass:function(t,e){t.classList?t.classList.remove(e):t.className=t.className.toString().replace(new RegExp("(^|\\s)"+e.split(" ").join("|")+"(\\s|$)","gi")," ")}},getPropertyValue:function(t,n,o,a){function s(t,n){function o(){c&&C.setPropertyValue(t,"display","none")}var l=0;if(8>=f)l=h.css(t,n);else{var c=!1;if(/^(width|height)$/.test(n)&&0===C.getPropertyValue(t,"display")&&(c=!0,C.setPropertyValue(t,"display",C.Values.getDisplayType(t))),!a){if("height"===n&&"border-box"!==C.getPropertyValue(t,"boxSizing").toString().toLowerCase()){var u=t.offsetHeight-(parseFloat(C.getPropertyValue(t,"borderTopWidth"))||0)-(parseFloat(C.getPropertyValue(t,"borderBottomWidth"))||0)-(parseFloat(C.getPropertyValue(t,"paddingTop"))||0)-(parseFloat(C.getPropertyValue(t,"paddingBottom"))||0);return o(),u}if("width"===n&&"border-box"!==C.getPropertyValue(t,"boxSizing").toString().toLowerCase()){var d=t.offsetWidth-(parseFloat(C.getPropertyValue(t,"borderLeftWidth"))||0)-(parseFloat(C.getPropertyValue(t,"borderRightWidth"))||0)-(parseFloat(C.getPropertyValue(t,"paddingLeft"))||0)-(parseFloat(C.getPropertyValue(t,"paddingRight"))||0);return o(),d}}var p;p=r(t)===i?e.getComputedStyle(t,null):r(t).computedStyle?r(t).computedStyle:r(t).computedStyle=e.getComputedStyle(t,null),"borderColor"===n&&(n="borderTopColor"),l=9===f&&"filter"===n?p.getPropertyValue(n):p[n],(""===l||null===l)&&(l=t.style[n]),o()}if("auto"===l&&/^(top|right|bottom|left)$/i.test(n)){var m=s(t,"position");("fixed"===m||"absolute"===m&&/top|left/i.test(n))&&(l=h(t).position()[n]+"px")}return l}var l;if(C.Hooks.registered[n]){var c=n,u=C.Hooks.getRoot(c);o===i&&(o=C.getPropertyValue(t,C.Names.prefixCheck(u)[0])),C.Normalizations.registered[u]&&(o=C.Normalizations.registered[u]("extract",t,o)),l=C.Hooks.extractValue(c,o)}else if(C.Normalizations.registered[n]){var d,p;d=C.Normalizations.registered[n]("name",t),"transform"!==d&&(p=s(t,C.Names.prefixCheck(d)[0]),C.Values.isCSSNullValue(p)&&C.Hooks.templates[n]&&(p=C.Hooks.templates[n][1])),l=C.Normalizations.registered[n]("extract",t,p)}if(!/^[\d-]/.test(l))if(r(t)&&r(t).isSVG&&C.Names.SVGAttribute(n))if(/^(height|width)$/i.test(n))try{l=t.getBBox()[n]}catch(m){l=0}else l=t.getAttribute(n);else l=s(t,C.Names.prefixCheck(n)[0]);return C.Values.isCSSNullValue(l)&&(l=0),b.debug>=2&&void 0,l},setPropertyValue:function(t,n,i,o,a){var s=n;if("scroll"===n)a.container?a.container["scroll"+a.direction]=i:"Left"===a.direction?e.scrollTo(i,a.alternateValue):e.scrollTo(a.alternateValue,i);else if(C.Normalizations.registered[n]&&"transform"===C.Normalizations.registered[n]("name",t))C.Normalizations.registered[n]("inject",t,i),s="transform",i=r(t).transformCache[n];else{if(C.Hooks.registered[n]){var l=n,c=C.Hooks.getRoot(n);o=o||C.getPropertyValue(t,c),i=C.Hooks.injectValue(l,i,o),n=c}if(C.Normalizations.registered[n]&&(i=C.Normalizations.registered[n]("inject",t,i),n=C.Normalizations.registered[n]("name",t)),s=C.Names.prefixCheck(n)[0],8>=f)try{t.style[s]=i}catch(u){b.debug&&void 0}else r(t)&&r(t).isSVG&&C.Names.SVGAttribute(n)?t.setAttribute(n,i):t.style[s]=i;b.debug>=2&&void 0}return[s,i]},flushTransformCache:function(t){function e(e){return parseFloat(C.getPropertyValue(t,e))}var n="";if((f||b.State.isAndroid&&!b.State.isChrome)&&r(t).isSVG){var i={translate:[e("translateX"),e("translateY")],skewX:[e("skewX")],skewY:[e("skewY")],scale:1!==e("scale")?[e("scale"),e("scale")]:[e("scaleX"),e("scaleY")],rotate:[e("rotateZ"),0,0]};h.each(r(t).transformCache,function(t){/^translate/i.test(t)?t="translate":/^scale/i.test(t)?t="scale":/^rotate/i.test(t)&&(t="rotate"),i[t]&&(n+=t+"("+i[t].join(" ")+") ",delete i[t])})}else{var o,a;h.each(r(t).transformCache,function(e){return o=r(t).transformCache[e],"transformPerspective"===e?(a=o,!0):(9===f&&"rotateZ"===e&&(e="rotate"),void(n+=e+o+" "))}),a&&(n="perspective"+a+" "+n)}C.setPropertyValue(t,"transform",n)}};C.Hooks.register(),C.Normalizations.register(),b.hook=function(t,e,n){var o=i;return t=a(t),h.each(t,function(t,a){if(r(a)===i&&b.init(a),n===i)o===i&&(o=b.CSS.getPropertyValue(a,e));else{var s=b.CSS.setPropertyValue(a,e,n);"transform"===s[0]&&b.CSS.flushTransformCache(a),o=s}}),o};var x=function(){function t(){return s?D.promise||null:l}function o(){function t(){function t(t,e){var n=i,o=i,r=i;return m.isArray(t)?(n=t[0],!m.isArray(t[1])&&/^[\d-]/.test(t[1])||m.isFunction(t[1])||C.RegEx.isHex.test(t[1])?r=t[1]:(m.isString(t[1])&&!C.RegEx.isHex.test(t[1])||m.isArray(t[1]))&&(o=e?t[1]:c(t[1],s.duration),t[2]!==i&&(r=t[2]))):n=t,e||(o=o||s.easing),m.isFunction(n)&&(n=n.call(a,T,S)),m.isFunction(r)&&(r=r.call(a,T,S)),[n||0,o,r]}function d(t,e){var n,i;return i=(e||"0").toString().toLowerCase().replace(/[%A-z]+$/,function(t){return n=t,""}),n||(n=C.Values.getUnitType(t)),[i,n]}function f(){var t={myParent:a.parentNode||n.body,position:C.getPropertyValue(a,"position"),fontSize:C.getPropertyValue(a,"fontSize")},i=t.position===M.lastPosition&&t.myParent===M.lastParent,o=t.fontSize===M.lastFontSize;M.lastParent=t.myParent,M.lastPosition=t.position,M.lastFontSize=t.fontSize;var s=100,l={};if(o&&i)l.emToPx=M.lastEmToPx,l.percentToPxWidth=M.lastPercentToPxWidth,l.percentToPxHeight=M.lastPercentToPxHeight;else{var c=r(a).isSVG?n.createElementNS("http://www.w3.org/2000/svg","rect"):n.createElement("div");b.init(c),t.myParent.appendChild(c),h.each(["overflow","overflowX","overflowY"],function(t,e){b.CSS.setPropertyValue(c,e,"hidden")}),b.CSS.setPropertyValue(c,"position",t.position),b.CSS.setPropertyValue(c,"fontSize",t.fontSize),b.CSS.setPropertyValue(c,"boxSizing","content-box"),h.each(["minWidth","maxWidth","width","minHeight","maxHeight","height"],function(t,e){b.CSS.setPropertyValue(c,e,s+"%")}),b.CSS.setPropertyValue(c,"paddingLeft",s+"em"),l.percentToPxWidth=M.lastPercentToPxWidth=(parseFloat(C.getPropertyValue(c,"width",null,!0))||1)/s,l.percentToPxHeight=M.lastPercentToPxHeight=(parseFloat(C.getPropertyValue(c,"height",null,!0))||1)/s,l.emToPx=M.lastEmToPx=(parseFloat(C.getPropertyValue(c,"paddingLeft"))||1)/s,t.myParent.removeChild(c)}return null===M.remToPx&&(M.remToPx=parseFloat(C.getPropertyValue(n.body,"fontSize"))||16),null===M.vwToPx&&(M.vwToPx=parseFloat(e.innerWidth)/100,M.vhToPx=parseFloat(e.innerHeight)/100),l.remToPx=M.remToPx,l.vwToPx=M.vwToPx,l.vhToPx=M.vhToPx,b.debug>=1&&void 0,l}if(s.begin&&0===T)try{s.begin.call(p,p)}catch(v){setTimeout(function(){throw v},1)}if("scroll"===E){var w,x,_,k=/^x$/i.test(s.axis)?"Left":"Top",O=parseFloat(s.offset)||0;s.container?m.isWrapped(s.container)||m.isNode(s.container)?(s.container=s.container[0]||s.container,w=s.container["scroll"+k],_=w+h(a).position()[k.toLowerCase()]+O):s.container=null:(w=b.State.scrollAnchor[b.State["scrollProperty"+k]],x=b.State.scrollAnchor[b.State["scrollProperty"+("Left"===k?"Top":"Left")]],_=h(a).offset()[k.toLowerCase()]+O),l={scroll:{rootPropertyValue:!1,startValue:w,currentValue:w,endValue:_,unitType:"",easing:s.easing,scrollData:{container:s.container,direction:k,alternateValue:x}},element:a},b.debug&&void 0}else if("reverse"===E){if(!r(a).tweensContainer)return void h.dequeue(a,s.queue);"none"===r(a).opts.display&&(r(a).opts.display="auto"),"hidden"===r(a).opts.visibility&&(r(a).opts.visibility="visible"),r(a).opts.loop=!1,r(a).opts.begin=null,r(a).opts.complete=null,y.easing||delete s.easing,y.duration||delete s.duration,s=h.extend({},r(a).opts,s);var A=h.extend(!0,{},r(a).tweensContainer);for(var I in A)if("element"!==I){var P=A[I].startValue;A[I].startValue=A[I].currentValue=A[I].endValue,A[I].endValue=P,m.isEmptyObject(y)||(A[I].easing=s.easing),b.debug&&void 0}l=A}else if("start"===E){var A;r(a).tweensContainer&&r(a).isAnimating===!0&&(A=r(a).tweensContainer),h.each(g,function(e,n){if(RegExp("^"+C.Lists.colors.join("$|^")+"$").test(e)){var o=t(n,!0),a=o[0],r=o[1],s=o[2];if(C.RegEx.isHex.test(a)){for(var l=["Red","Green","Blue"],c=C.Values.hexToRgb(a),u=s?C.Values.hexToRgb(s):i,d=0;dL;L++){var j={delay:A.delay,progress:A.progress};L===R-1&&(j.display=A.display,j.visibility=A.visibility,j.complete=A.complete),x(p,"reverse",j)}return t()}};b=h.extend(x,b),b.animate=x;var S=e.requestAnimationFrame||p;return b.State.isMobile||n.hidden===i||n.addEventListener("visibilitychange",function(){n.hidden?(S=function(t){return setTimeout(function(){t(!0)},16)},u()):S=e.requestAnimationFrame||p}),t.Velocity=b,t!==e&&(t.fn.velocity=x,t.fn.velocity.defaults=b.defaults),h.each(["Down","Up"],function(t,e){b.Redirects["slide"+e]=function(t,n,o,a,r,s){var l=h.extend({},n),c=l.begin,u=l.complete,d={height:"",marginTop:"",marginBottom:"",paddingTop:"",paddingBottom:""},f={};l.display===i&&(l.display="Down"===e?"inline"===b.CSS.Values.getDisplayType(t)?"inline-block":"block":"none"),l.begin=function(){c&&c.call(r,r);for(var n in d){f[n]=t.style[n];var i=b.CSS.getPropertyValue(t,n);d[n]="Down"===e?[i,0]:[0,i]}f.overflow=t.style.overflow,t.style.overflow="hidden"},l.complete=function(){for(var e in f)t.style[e]=f[e];u&&u.call(r,r),s&&s.resolver(r)},b(t,d,l)}}),h.each(["In","Out"],function(t,e){b.Redirects["fade"+e]=function(t,n,o,a,r,s){var l=h.extend({},n),c={opacity:"In"===e?1:0},u=l.complete;l.complete=o!==a-1?l.begin=null:function(){u&&u.call(r,r),s&&s.resolver(r)},l.display===i&&(l.display="In"===e?"auto":"none"),b(this,c,l)}}),b}(window.jQuery||window.Zepto||window,window,document)});!function(t){"function"==typeof require&&"object"==typeof exports?module.exports=t():"function"==typeof define&&define.amd?define("velocityUI",["velocity"],t):t()}(function(){return function(t,e,n,i){function o(t,e){var n=[];return t&&e?(r.each([t,e],function(t,e){var i=[];r.each(e,function(t,e){for(;e.toString().length<5;)e="0"+e;i.push(e)}),n.push(i.join(""))}),parseFloat(n[0])>parseFloat(n[1])):!1}if(!t.Velocity||!t.Velocity.Utilities)return void(e.console&&void 0);var a=t.Velocity,r=a.Utilities,s=a.version,l={major:1,minor:1,patch:0};if(o(l,s)){var c="Velocity UI Pack: You need to update Velocity (jquery.velocity.js) to a newer version. Visit http://github.com/julianshapiro/velocity.";throw alert(c),new Error(c)}a.RegisterEffect=a.RegisterUI=function(t,e){function n(t,e,n,i){var o,s=0;r.each(t.nodeType?[t]:t,function(t,e){i&&(n+=t*i),o=e.parentNode,r.each(["height","paddingTop","paddingBottom","marginTop","marginBottom"],function(t,n){s+=parseFloat(a.CSS.getPropertyValue(e,n))})}),a.animate(o,{height:("In"===e?"+":"-")+"="+s},{queue:!1,easing:"ease-in-out",duration:n*("In"===e?.6:1)})}return a.Redirects[t]=function(o,s,l,c,u,d){function h(){s.display!==i&&"none"!==s.display||!/Out$/.test(t)||r.each(u.nodeType?[u]:u,function(t,e){a.CSS.setPropertyValue(e,"display","none")}),s.complete&&s.complete.call(u,u),d&&d.resolver(u||o)}var f=l===c-1;e.defaultDuration="function"==typeof e.defaultDuration?e.defaultDuration.call(u,u):parseFloat(e.defaultDuration);for(var p=0;p1&&(r.each(e.reverse(),function(t,n){var i=e[t+1];if(i){var o=n.o||n.options,s=i.o||i.options,l=o&&o.sequenceQueue===!1?"begin":"complete",c=s&&s[l],u={};u[l]=function(){var t=i.e||i.elements,e=t.nodeType?[t]:t;c&&c.call(e,e),a(n)},i.o?i.o=r.extend({},s,u):i.options=r.extend({},s,u)}}),e.reverse()),a(e[0])}}(window.jQuery||window.Zepto||window,window,document)});!function(t){"function"==typeof define&&define.amd?define("customScrollbar",["jquery"],t):"object"==typeof exports?module.exports=t:t(jQuery)}(function(t){function e(e){var r=e||window.event,s=l.call(arguments,1),c=0,d=0,h=0,f=0,p=0,m=0;if(e=t.event.fix(r),e.type="mousewheel","detail"in r&&(h=-1*r.detail),"wheelDelta"in r&&(h=r.wheelDelta),"wheelDeltaY"in r&&(h=r.wheelDeltaY),"wheelDeltaX"in r&&(d=-1*r.wheelDeltaX),"axis"in r&&r.axis===r.HORIZONTAL_AXIS&&(d=-1*h,h=0),c=0===h?d:h,"deltaY"in r&&(h=-1*r.deltaY,c=h),"deltaX"in r&&(d=r.deltaX,0===h&&(c=-1*d)),0!==h||0!==d){if(1===r.deltaMode){var g=t.data(this,"mousewheel-line-height");c*=g,h*=g,d*=g}else if(2===r.deltaMode){var v=t.data(this,"mousewheel-page-height");c*=v,h*=v,d*=v}if(f=Math.max(Math.abs(h),Math.abs(d)),(!a||a>f)&&(a=f,i(r,f)&&(a/=40)),i(r,f)&&(c/=40,d/=40,h/=40),c=Math[c>=1?"floor":"ceil"](c/a),d=Math[d>=1?"floor":"ceil"](d/a),h=Math[h>=1?"floor":"ceil"](h/a),u.settings.normalizeOffset&&this.getBoundingClientRect){var y=this.getBoundingClientRect();p=e.clientX-y.left,m=e.clientY-y.top}return e.deltaX=d,e.deltaY=h,e.deltaFactor=a,e.offsetX=p,e.offsetY=m,e.deltaMode=0,s.unshift(e,c,d,h),o&&clearTimeout(o),o=setTimeout(n,200),(t.event.dispatch||t.event.handle).apply(this,s)}}function n(){a=null}function i(t,e){return u.settings.adjustOldDeltas&&"mousewheel"===t.type&&e%120===0}var o,a,r=["wheel","mousewheel","DOMMouseScroll","MozMousePixelScroll"],s="onwheel"in document||document.documentMode>=9?["wheel"]:["mousewheel","DomMouseScroll","MozMousePixelScroll"],l=Array.prototype.slice;if(t.event.fixHooks)for(var c=r.length;c;)t.event.fixHooks[r[--c]]=t.event.mouseHooks;var u=t.event.special.mousewheel={version:"3.1.12",setup:function(){if(this.addEventListener)for(var n=s.length;n;)this.addEventListener(s[--n],e,!1);else this.onmousewheel=e;t.data(this,"mousewheel-line-height",u.getLineHeight(this)),t.data(this,"mousewheel-page-height",u.getPageHeight(this))},teardown:function(){if(this.removeEventListener)for(var n=s.length;n;)this.removeEventListener(s[--n],e,!1);else this.onmousewheel=null;t.removeData(this,"mousewheel-line-height"),t.removeData(this,"mousewheel-page-height")},getLineHeight:function(e){var n=t(e),i=n["offsetParent"in t.fn?"offsetParent":"parent"]();return i.length||(i=t("body")),parseInt(i.css("fontSize"),10)||parseInt(n.css("fontSize"),10)||16},getPageHeight:function(e){return t(e).height()},settings:{adjustOldDeltas:!0,normalizeOffset:!0}};t.fn.extend({mousewheel:function(t){return t?this.bind("mousewheel",t):this.trigger("mousewheel")},unmousewheel:function(t){return this.unbind("mousewheel",t)}})});!function(t){"undefined"!=typeof module&&module.exports?module.exports=t:t(jQuery,window,document)}(function(t){!function(e){var n="function"==typeof define&&define.amd,i="undefined"!=typeof module&&module.exports,o="https:"==document.location.protocol?"https:":"http:",a="cdnjs.cloudflare.com/ajax/libs/jquery-mousewheel/3.1.13/jquery.mousewheel.min.js";n||(i?require("jquery-mousewheel")(t):t.event.special.mousewheel||t("head").append(decodeURI("%3Cscript src="+o+"//"+a+"%3E%3C/script%3E"))),e()}(function(){var e,n="mCustomScrollbar",i="mCS",o=".mCustomScrollbar",a={setTop:0,setLeft:0,axis:"y",scrollbarPosition:"inside",scrollInertia:950,autoDraggerLength:!0,alwaysShowScrollbar:0,snapOffset:0,mouseWheel:{enable:!0,scrollAmount:"auto",axis:"y",deltaFactor:"auto",disableOver:["select","option","keygen","datalist","textarea"]},scrollButtons:{scrollType:"stepless",scrollAmount:"auto"},keyboard:{enable:!0,scrollType:"stepless",scrollAmount:"auto"},contentTouchScroll:25,documentTouchScroll:!0,advanced:{autoScrollOnFocus:"input,textarea,select,button,datalist,keygen,a[tabindex],area,object,[contenteditable='true']",updateOnContentResize:!0,updateOnImageLoad:"auto",autoUpdateTimeout:60},theme:"light",callbacks:{onTotalScrollOffset:0,onTotalScrollBackOffset:0,alwaysTriggerOffsets:!0}},r=0,s={},l=window.attachEvent&&!window.addEventListener?1:0,c=!1,u=["mCSB_dragger_onDrag","mCSB_scrollTools_onDrag","mCS_img_loaded","mCS_disabled","mCS_destroyed","mCS_no_scrollbar","mCS-autoHide","mCS-dir-rtl","mCS_no_scrollbar_y","mCS_no_scrollbar_x","mCS_y_hidden","mCS_x_hidden","mCSB_draggerContainer","mCSB_buttonUp","mCSB_buttonDown","mCSB_buttonLeft","mCSB_buttonRight"],d={init:function(e){var e=t.extend(!0,{},a,e),n=h.call(this);if(e.live){var l=e.liveSelector||this.selector||o,c=t(l);if("off"===e.live)return void p(l);s[l]=setTimeout(function(){c.mCustomScrollbar(e),"once"===e.live&&c.length&&p(l)},500)}else p(l);return e.setWidth=e.set_width?e.set_width:e.setWidth,e.setHeight=e.set_height?e.set_height:e.setHeight,e.axis=e.horizontalScroll?"x":m(e.axis),e.scrollInertia=e.scrollInertia>0&&e.scrollInertia<17?17:e.scrollInertia,"object"!=typeof e.mouseWheel&&1==e.mouseWheel&&(e.mouseWheel={enable:!0,scrollAmount:"auto",axis:"y",preventDefault:!1,deltaFactor:"auto",normalizeDelta:!1,invert:!1}),e.mouseWheel.scrollAmount=e.mouseWheelPixels?e.mouseWheelPixels:e.mouseWheel.scrollAmount,e.mouseWheel.normalizeDelta=e.advanced.normalizeMouseWheelDelta?e.advanced.normalizeMouseWheelDelta:e.mouseWheel.normalizeDelta,e.scrollButtons.scrollType=g(e.scrollButtons.scrollType),f(e),t(n).each(function(){var n=t(this);if(!n.data(i)){n.data(i,{idx:++r,opt:e,scrollRatio:{y:null,x:null},overflowed:null,contentReset:{y:null,x:null},bindEvents:!1,tweenRunning:!1,sequential:{},langDir:n.css("direction"),cbOffsets:null,trigger:null,poll:{size:{o:0,n:0},img:{o:0,n:0},change:{o:0,n:0}}});var o=n.data(i),a=o.opt,s=n.data("mcs-axis"),l=n.data("mcs-scrollbar-position"),c=n.data("mcs-theme");s&&(a.axis=s),l&&(a.scrollbarPosition=l),c&&(a.theme=c,f(a)),v.call(this),o&&a.callbacks.onCreate&&"function"==typeof a.callbacks.onCreate&&a.callbacks.onCreate.call(this),t("#mCSB_"+o.idx+"_container img:not(."+u[2]+")").addClass(u[2]),d.update.call(null,n)}})},update:function(e,n){var o=e||h.call(this);return t(o).each(function(){var e=t(this);if(e.data(i)){var o=e.data(i),a=o.opt,r=t("#mCSB_"+o.idx+"_container"),s=t("#mCSB_"+o.idx),l=[t("#mCSB_"+o.idx+"_dragger_vertical"),t("#mCSB_"+o.idx+"_dragger_horizontal")];if(!r.length)return;o.tweenRunning&&q(e),n&&o&&a.callbacks.onBeforeUpdate&&"function"==typeof a.callbacks.onBeforeUpdate&&a.callbacks.onBeforeUpdate.call(this),e.hasClass(u[3])&&e.removeClass(u[3]),e.hasClass(u[4])&&e.removeClass(u[4]),s.css("max-height","none"),s.height()!==e.height()&&s.css("max-height",e.height()),b.call(this),"y"===a.axis||a.advanced.autoExpandHorizontalScroll||r.css("width",y(r)),o.overflowed=T.call(this),E.call(this),a.autoDraggerLength&&C.call(this),x.call(this),k.call(this);var c=[Math.abs(r[0].offsetTop),Math.abs(r[0].offsetLeft)];"x"!==a.axis&&(o.overflowed[0]?l[0].height()>l[0].parent().height()?_.call(this):(Y(e,c[0].toString(),{dir:"y",dur:0,overwrite:"none"}),o.contentReset.y=null):(_.call(this),"y"===a.axis?D.call(this):"yx"===a.axis&&o.overflowed[1]&&Y(e,c[1].toString(),{dir:"x",dur:0,overwrite:"none"}))),"y"!==a.axis&&(o.overflowed[1]?l[1].width()>l[1].parent().width()?_.call(this):(Y(e,c[1].toString(),{dir:"x",dur:0,overwrite:"none"}),o.contentReset.x=null):(_.call(this),"x"===a.axis?D.call(this):"yx"===a.axis&&o.overflowed[0]&&Y(e,c[0].toString(),{dir:"y",dur:0,overwrite:"none"}))),n&&o&&(2===n&&a.callbacks.onImageLoad&&"function"==typeof a.callbacks.onImageLoad?a.callbacks.onImageLoad.call(this):3===n&&a.callbacks.onSelectorChange&&"function"==typeof a.callbacks.onSelectorChange?a.callbacks.onSelectorChange.call(this):a.callbacks.onUpdate&&"function"==typeof a.callbacks.onUpdate&&a.callbacks.onUpdate.call(this)),W.call(this)}})},scrollTo:function(e,n){if("undefined"!=typeof e&&null!=e){var o=h.call(this);return t(o).each(function(){var o=t(this);if(o.data(i)){var a=o.data(i),r=a.opt,s={trigger:"external",scrollInertia:r.scrollInertia,scrollEasing:"mcsEaseInOut",moveDragger:!1,timeout:60,callbacks:!0,onStart:!0,onUpdate:!0,onComplete:!0},l=t.extend(!0,{},s,n),c=H.call(this,e),u=l.scrollInertia>0&&l.scrollInertia<17?17:l.scrollInertia;c[0]=z.call(this,c[0],"y"),c[1]=z.call(this,c[1],"x"),l.moveDragger&&(c[0]*=a.scrollRatio.y,c[1]*=a.scrollRatio.x),l.dur=nt()?0:u,setTimeout(function(){null!==c[0]&&"undefined"!=typeof c[0]&&"x"!==r.axis&&a.overflowed[0]&&(l.dir="y",l.overwrite="all",Y(o,c[0].toString(),l)),null!==c[1]&&"undefined"!=typeof c[1]&&"y"!==r.axis&&a.overflowed[1]&&(l.dir="x",l.overwrite="none",Y(o,c[1].toString(),l))},l.timeout)}})}},stop:function(){var e=h.call(this);return t(e).each(function(){var e=t(this);e.data(i)&&q(e)})},disable:function(e){var n=h.call(this);return t(n).each(function(){var n=t(this);if(n.data(i)){n.data(i);W.call(this,"remove"),D.call(this),e&&_.call(this),E.call(this,!0),n.addClass(u[3])}})},destroy:function(){var e=h.call(this);return t(e).each(function(){var o=t(this);if(o.data(i)){var a=o.data(i),r=a.opt,s=t("#mCSB_"+a.idx),l=t("#mCSB_"+a.idx+"_container"),c=t(".mCSB_"+a.idx+"_scrollbar");r.live&&p(r.liveSelector||t(e).selector),W.call(this,"remove"),D.call(this),_.call(this),o.removeData(i),G(this,"mcs"),c.remove(),l.find("img."+u[2]).removeClass(u[2]),s.replaceWith(l.contents()),o.removeClass(n+" _"+i+"_"+a.idx+" "+u[6]+" "+u[7]+" "+u[5]+" "+u[3]).addClass(u[4])}})}},h=function(){return"object"!=typeof t(this)||t(this).length<1?o:this},f=function(e){var n=["rounded","rounded-dark","rounded-dots","rounded-dots-dark"],i=["rounded-dots","rounded-dots-dark","3d","3d-dark","3d-thick","3d-thick-dark","inset","inset-dark","inset-2","inset-2-dark","inset-3","inset-3-dark"],o=["minimal","minimal-dark"],a=["minimal","minimal-dark"],r=["minimal","minimal-dark"];e.autoDraggerLength=t.inArray(e.theme,n)>-1?!1:e.autoDraggerLength,e.autoExpandScrollbar=t.inArray(e.theme,i)>-1?!1:e.autoExpandScrollbar,e.scrollButtons.enable=t.inArray(e.theme,o)>-1?!1:e.scrollButtons.enable,e.autoHideScrollbar=t.inArray(e.theme,a)>-1?!0:e.autoHideScrollbar,e.scrollbarPosition=t.inArray(e.theme,r)>-1?"outside":e.scrollbarPosition},p=function(t){s[t]&&(clearTimeout(s[t]),G(s,t))},m=function(t){return"yx"===t||"xy"===t||"auto"===t?"yx":"x"===t||"horizontal"===t?"x":"y"},g=function(t){return"stepped"===t||"pixels"===t||"step"===t||"click"===t?"stepped":"stepless"},v=function(){var e=t(this),o=e.data(i),a=o.opt,r=a.autoExpandScrollbar?" "+u[1]+"_expand":"",s=["",""],l="yx"===a.axis?"mCSB_vertical_horizontal":"x"===a.axis?"mCSB_horizontal":"mCSB_vertical",c="yx"===a.axis?s[0]+s[1]:"x"===a.axis?s[1]:s[0],d="yx"===a.axis?"":"",h=a.autoHideScrollbar?" "+u[6]:"",f="x"!==a.axis&&"rtl"===o.langDir?" "+u[7]:"";a.setWidth&&e.css("width",a.setWidth),a.setHeight&&e.css("height",a.setHeight),a.setLeft="y"!==a.axis&&"rtl"===o.langDir?"989999px":a.setLeft,e.addClass(n+" _"+i+"_"+o.idx+h+f).wrapInner("");var p=t("#mCSB_"+o.idx),m=t("#mCSB_"+o.idx+"_container");"y"===a.axis||a.advanced.autoExpandHorizontalScroll||m.css("width",y(m)),"outside"===a.scrollbarPosition?("static"===e.css("position")&&e.css("position","relative"),e.css("overflow","visible"),p.addClass("mCSB_outside").after(c)):(p.addClass("mCSB_inside").append(c),m.wrap(d)),w.call(this);var g=[t("#mCSB_"+o.idx+"_dragger_vertical"),t("#mCSB_"+o.idx+"_dragger_horizontal")];g[0].css("min-height",g[0].height()),g[1].css("min-width",g[1].width())},y=function(e){var n=[e[0].scrollWidth,Math.max.apply(Math,e.children().map(function(){return t(this).outerWidth(!0)}).get())],i=e.parent().width();return n[0]>i?n[0]:n[1]>i?n[1]:"100%"},b=function(){var e=t(this),n=e.data(i),o=n.opt,a=t("#mCSB_"+n.idx+"_container");if(o.advanced.autoExpandHorizontalScroll&&"y"!==o.axis){a.css({width:"auto","min-width":0,"overflow-x":"scroll"});var r=Math.ceil(a[0].scrollWidth);3===o.advanced.autoExpandHorizontalScroll||2!==o.advanced.autoExpandHorizontalScroll&&r>a.parent().width()?a.css({width:r,"min-width":"100%","overflow-x":"inherit"}):a.css({"overflow-x":"inherit",position:"absolute"}).wrap("").css({width:Math.ceil(a[0].getBoundingClientRect().right+.4)-Math.floor(a[0].getBoundingClientRect().left),"min-width":"100%",position:"relative"}).unwrap()}},w=function(){var e=t(this),n=e.data(i),o=n.opt,a=t(".mCSB_"+n.idx+"_scrollbar:first"),r=tt(o.scrollButtons.tabindex)?"tabindex='"+o.scrollButtons.tabindex+"'":"",s=["","","",""],l=["x"===o.axis?s[2]:s[0],"x"===o.axis?s[3]:s[1],s[2],s[3]];o.scrollButtons.enable&&a.prepend(l[0]).append(l[1]).next(".mCSB_scrollTools").prepend(l[2]).append(l[3])},C=function(){var e=t(this),n=e.data(i),o=t("#mCSB_"+n.idx),a=t("#mCSB_"+n.idx+"_container"),r=[t("#mCSB_"+n.idx+"_dragger_vertical"),t("#mCSB_"+n.idx+"_dragger_horizontal")],s=[o.height()/a.outerHeight(!1),o.width()/a.outerWidth(!1)],c=[parseInt(r[0].css("min-height")),Math.round(s[0]*r[0].parent().height()),parseInt(r[1].css("min-width")),Math.round(s[1]*r[1].parent().width())],u=l&&c[1]r&&(r=l),c>s&&(s=c),[r>o.height(),s>o.width()]},_=function(){var e=t(this),n=e.data(i),o=n.opt,a=t("#mCSB_"+n.idx),r=t("#mCSB_"+n.idx+"_container"),s=[t("#mCSB_"+n.idx+"_dragger_vertical"),t("#mCSB_"+n.idx+"_dragger_horizontal")];if(q(e),("x"!==o.axis&&!n.overflowed[0]||"y"===o.axis&&n.overflowed[0])&&(s[0].add(r).css("top",0),Y(e,"_resetY")),"y"!==o.axis&&!n.overflowed[1]||"x"===o.axis&&n.overflowed[1]){var l=dx=0;"rtl"===n.langDir&&(l=a.width()-r.outerWidth(!1),dx=Math.abs(l/n.scrollRatio.x)),r.css("left",l),s[1].css("left",dx),Y(e,"_resetX")}},k=function(){function e(){r=setTimeout(function(){t.event.special.mousewheel?(clearTimeout(r),N.call(n[0])):e()},100)}var n=t(this),o=n.data(i),a=o.opt;if(!o.bindEvents){if(A.call(this),a.contentTouchScroll&&I.call(this),P.call(this),a.mouseWheel.enable){var r;e()}R.call(this),j.call(this),a.advanced.autoScrollOnFocus&&L.call(this),a.scrollButtons.enable&&F.call(this),a.keyboard.enable&&B.call(this),o.bindEvents=!0}},D=function(){var e=t(this),n=e.data(i),o=n.opt,a=i+"_"+n.idx,r=".mCSB_"+n.idx+"_scrollbar",s=t("#mCSB_"+n.idx+",#mCSB_"+n.idx+"_container,#mCSB_"+n.idx+"_container_wrapper,"+r+" ."+u[12]+",#mCSB_"+n.idx+"_dragger_vertical,#mCSB_"+n.idx+"_dragger_horizontal,"+r+">a"),l=t("#mCSB_"+n.idx+"_container");o.advanced.releaseDraggableSelectors&&s.add(t(o.advanced.releaseDraggableSelectors)),o.advanced.extraDraggableSelectors&&s.add(t(o.advanced.extraDraggableSelectors)),n.bindEvents&&(t(document).add(t(!M()||top.document)).unbind("."+a),s.each(function(){t(this).unbind("."+a)}),clearTimeout(e[0]._focusTimeout),G(e[0],"_focusTimeout"),clearTimeout(n.sequential.step),G(n.sequential,"step"),clearTimeout(l[0].onCompleteTimeout),G(l[0],"onCompleteTimeout"),n.bindEvents=!1)},E=function(e){var n=t(this),o=n.data(i),a=o.opt,r=t("#mCSB_"+o.idx+"_container_wrapper"),s=r.length?r:t("#mCSB_"+o.idx+"_container"),l=[t("#mCSB_"+o.idx+"_scrollbar_vertical"),t("#mCSB_"+o.idx+"_scrollbar_horizontal")],c=[l[0].find(".mCSB_dragger"),l[1].find(".mCSB_dragger")];"x"!==a.axis&&(o.overflowed[0]&&!e?(l[0].add(c[0]).add(l[0].children("a")).css("display","block"),s.removeClass(u[8]+" "+u[10])):(a.alwaysShowScrollbar?(2!==a.alwaysShowScrollbar&&c[0].css("display","none"),s.removeClass(u[10])):(l[0].css("display","none"),s.addClass(u[10])),s.addClass(u[8]))),"y"!==a.axis&&(o.overflowed[1]&&!e?(l[1].add(c[1]).add(l[1].children("a")).css("display","block"),s.removeClass(u[9]+" "+u[11])):(a.alwaysShowScrollbar?(2!==a.alwaysShowScrollbar&&c[1].css("display","none"),s.removeClass(u[11])):(l[1].css("display","none"),s.addClass(u[11])),s.addClass(u[9]))),o.overflowed[0]||o.overflowed[1]?n.removeClass(u[5]):n.addClass(u[5])},O=function(e){var n=e.type,i=e.target.ownerDocument!==document?[t(frameElement).offset().top,t(frameElement).offset().left]:null,o=M()&&e.target.ownerDocument!==top.document?[t(e.view.frameElement).offset().top,t(e.view.frameElement).offset().left]:[0,0];switch(n){case"pointerdown":case"MSPointerDown":case"pointermove":case"MSPointerMove":case"pointerup":case"MSPointerUp":return i?[e.originalEvent.pageY-i[0]+o[0],e.originalEvent.pageX-i[1]+o[1],!1]:[e.originalEvent.pageY,e.originalEvent.pageX,!1];case"touchstart":case"touchmove":case"touchend":var a=e.originalEvent.touches[0]||e.originalEvent.changedTouches[0],r=e.originalEvent.touches.length||e.originalEvent.changedTouches.length;return e.target.ownerDocument!==document?[a.screenY,a.screenX,r>1]:[a.pageY,a.pageX,r>1];default:return i?[e.pageY-i[0]+o[0],e.pageX-i[1]+o[1],!1]:[e.pageY,e.pageX,!1]}},A=function(){function e(t){var e=p.find("iframe");if(e.length){var n=t?"auto":"none";e.css("pointer-events",n)}}function n(t,e,n,i){if(p[0].idleTimer=d.scrollInertia<233?250:0,o.attr("id")===f[1])var a="x",r=(o[0].offsetLeft-e+i)*u.scrollRatio.x;else var a="y",r=(o[0].offsetTop-t+n)*u.scrollRatio.y;Y(s,r.toString(),{dir:a,drag:!0})}var o,a,r,s=t(this),u=s.data(i),d=u.opt,h=i+"_"+u.idx,f=["mCSB_"+u.idx+"_dragger_vertical","mCSB_"+u.idx+"_dragger_horizontal"],p=t("#mCSB_"+u.idx+"_container"),m=t("#"+f[0]+",#"+f[1]),g=d.advanced.releaseDraggableSelectors?m.add(t(d.advanced.releaseDraggableSelectors)):m,v=d.advanced.extraDraggableSelectors?t(!M()||top.document).add(t(d.advanced.extraDraggableSelectors)):t(!M()||top.document);m.bind("mousedown."+h+" touchstart."+h+" pointerdown."+h+" MSPointerDown."+h,function(n){if(n.stopImmediatePropagation(),n.preventDefault(),Z(n)){c=!0,l&&(document.onselectstart=function(){return!1}),e(!1),q(s),o=t(this);var i=o.offset(),u=O(n)[0]-i.top,h=O(n)[1]-i.left,f=o.height()+i.top,p=o.width()+i.left;f>u&&u>0&&p>h&&h>0&&(a=u,r=h),S(o,"active",d.autoExpandScrollbar)}}).bind("touchmove."+h,function(t){t.stopImmediatePropagation(),t.preventDefault();var e=o.offset(),i=O(t)[0]-e.top,s=O(t)[1]-e.left;n(a,r,i,s)}),t(document).add(v).bind("mousemove."+h+" pointermove."+h+" MSPointerMove."+h,function(t){if(o){var e=o.offset(),i=O(t)[0]-e.top,s=O(t)[1]-e.left;if(a===i&&r===s)return;n(a,r,i,s)}}).add(g).bind("mouseup."+h+" touchend."+h+" pointerup."+h+" MSPointerUp."+h,function(t){o&&(S(o,"active",d.autoExpandScrollbar),o=null),c=!1,l&&(document.onselectstart=null),e(!0)})},I=function(){function n(t){if(!J(t)||c||O(t)[2])return void(e=0);e=1,x=0,S=0,u=1,T.removeClass("mCS_touch_action");var n=A.offset();d=O(t)[0]-n.top,h=O(t)[1]-n.left,L=[O(t)[0],O(t)[1]]}function o(t){if(J(t)&&!c&&!O(t)[2]&&(k.documentTouchScroll||t.preventDefault(),t.stopImmediatePropagation(),(!S||x)&&u)){g=Q();var e=E.offset(),n=O(t)[0]-e.top,i=O(t)[1]-e.left,o="mcsLinearOut";if(P.push(n),N.push(i),L[2]=Math.abs(O(t)[0]-L[0]),L[3]=Math.abs(O(t)[1]-L[1]),_.overflowed[0])var a=I[0].parent().height()-I[0].height(),r=d-n>0&&n-d>-(a*_.scrollRatio.y)&&(2*L[3]0&&i-h>-(s*_.scrollRatio.x)&&(2*L[2]30)){b=1e3/(v-m);var o="mcsEaseOut",a=2.5>b,r=a?[P[P.length-2],N[N.length-2]]:[0,0];y=a?[n-r[0],i-r[1]]:[n-f,i-p];var d=[Math.abs(y[0]),Math.abs(y[1])];b=a?[Math.abs(y[0]/4),Math.abs(y[1]/4)]:[b,b];var h=[Math.abs(A[0].offsetTop)-y[0]*s(d[0]/b[0],b[0]),Math.abs(A[0].offsetLeft)-y[1]*s(d[1]/b[1],b[1])];w="yx"===k.axis?[h[0],h[1]]:"x"===k.axis?[null,h[1]]:[h[0],null],C=[4*d[0]+k.scrollInertia,4*d[1]+k.scrollInertia];
-var T=parseInt(k.contentTouchScroll)||0;w[0]=d[0]>T?w[0]:0,w[1]=d[1]>T?w[1]:0,_.overflowed[0]&&l(w[0],C[0],o,"y",R,!1),_.overflowed[1]&&l(w[1],C[1],o,"x",R,!1)}}}function s(t,e){var n=[1.5*e,2*e,e/1.5,e/2];return t>90?e>4?n[0]:n[3]:t>60?e>3?n[3]:n[2]:t>30?e>8?n[1]:e>6?n[0]:e>4?e:n[2]:e>8?e:n[3]}function l(t,e,n,i,o,a){t&&Y(T,t.toString(),{dur:e,scrollEasing:n,dir:i,overwrite:o,drag:a})}var u,d,h,f,p,m,g,v,y,b,w,C,x,S,T=t(this),_=T.data(i),k=_.opt,D=i+"_"+_.idx,E=t("#mCSB_"+_.idx),A=t("#mCSB_"+_.idx+"_container"),I=[t("#mCSB_"+_.idx+"_dragger_vertical"),t("#mCSB_"+_.idx+"_dragger_horizontal")],P=[],N=[],$=0,R="yx"===k.axis?"none":"all",L=[],j=A.find("iframe"),F=["touchstart."+D+" pointerdown."+D+" MSPointerDown."+D,"touchmove."+D+" pointermove."+D+" MSPointerMove."+D,"touchend."+D+" pointerup."+D+" MSPointerUp."+D],B=void 0!==document.body.style.touchAction;A.bind(F[0],function(t){n(t)}).bind(F[1],function(t){o(t)}),E.bind(F[0],function(t){a(t)}).bind(F[2],function(t){r(t)}),j.length&&j.each(function(){t(this).load(function(){M(this)&&t(this.contentDocument||this.contentWindow.document).bind(F[0],function(t){n(t),a(t)}).bind(F[1],function(t){o(t)}).bind(F[2],function(t){r(t)})})})},P=function(){function n(){return window.getSelection?window.getSelection().toString():document.selection&&"Control"!=document.selection.type?document.selection.createRange().text:0}function o(t,e,n){u.type=n&&a?"stepped":"stepless",u.scrollAmount=10,U(r,t,e,"mcsLinearOut",n?60:null)}var a,r=t(this),s=r.data(i),l=s.opt,u=s.sequential,d=i+"_"+s.idx,h=t("#mCSB_"+s.idx+"_container"),f=h.parent();h.bind("mousedown."+d,function(t){e||a||(a=1,c=!0)}).add(document).bind("mousemove."+d,function(t){if(!e&&a&&n()){var i=h.offset(),r=O(t)[0]-i.top+h[0].offsetTop,c=O(t)[1]-i.left+h[0].offsetLeft;r>0&&r0&&cr?o("on",38):r>f.height()&&o("on",40)),"y"!==l.axis&&s.overflowed[1]&&(0>c?o("on",37):c>f.width()&&o("on",39)))}}).bind("mouseup."+d+" dragend."+d,function(t){e||(a&&(a=0,o("off",null)),c=!1)})},N=function(){function e(e,i){if(q(n),!$(n,e.target)){var r="auto"!==a.mouseWheel.deltaFactor?parseInt(a.mouseWheel.deltaFactor):l&&e.deltaFactor<100?100:e.deltaFactor||100,u=a.scrollInertia;if("x"===a.axis||"x"===a.mouseWheel.axis)var d="x",h=[Math.round(r*o.scrollRatio.x),parseInt(a.mouseWheel.scrollAmount)],f="auto"!==a.mouseWheel.scrollAmount?h[1]:h[0]>=s.width()?.9*s.width():h[0],p=Math.abs(t("#mCSB_"+o.idx+"_container")[0].offsetLeft),m=c[1][0].offsetLeft,g=c[1].parent().width()-c[1].width(),v=e.deltaX||e.deltaY||i;else var d="y",h=[Math.round(r*o.scrollRatio.y),parseInt(a.mouseWheel.scrollAmount)],f="auto"!==a.mouseWheel.scrollAmount?h[1]:h[0]>=s.height()?.9*s.height():h[0],p=Math.abs(t("#mCSB_"+o.idx+"_container")[0].offsetTop),m=c[0][0].offsetTop,g=c[0].parent().height()-c[0].height(),v=e.deltaY||i;"y"===d&&!o.overflowed[0]||"x"===d&&!o.overflowed[1]||((a.mouseWheel.invert||e.webkitDirectionInvertedFromDevice)&&(v=-v),a.mouseWheel.normalizeDelta&&(v=0>v?-1:1),(v>0&&0!==m||0>v&&m!==g||a.mouseWheel.preventDefault)&&(e.stopImmediatePropagation(),e.preventDefault()),e.deltaFactor<2&&!a.mouseWheel.normalizeDelta&&(f=e.deltaFactor,u=17),Y(n,(p-v*f).toString(),{dir:d,dur:u}))}}if(t(this).data(i)){var n=t(this),o=n.data(i),a=o.opt,r=i+"_"+o.idx,s=t("#mCSB_"+o.idx),c=[t("#mCSB_"+o.idx+"_dragger_vertical"),t("#mCSB_"+o.idx+"_dragger_horizontal")],u=t("#mCSB_"+o.idx+"_container").find("iframe");u.length&&u.each(function(){t(this).load(function(){M(this)&&t(this.contentDocument||this.contentWindow.document).bind("mousewheel."+r,function(t,n){e(t,n)})})}),s.bind("mousewheel."+r,function(t,n){e(t,n)})}},M=function(t){var e=null;if(t){try{var n=t.contentDocument||t.contentWindow.document;e=n.body.innerHTML}catch(i){}return null!==e}try{var n=top.document;e=n.body.innerHTML}catch(i){}return null!==e},$=function(e,n){var o=n.nodeName.toLowerCase(),a=e.data(i).opt.mouseWheel.disableOver,r=["select","textarea"];return t.inArray(o,a)>-1&&!(t.inArray(o,r)>-1&&!t(n).is(":focus"))},R=function(){var e,n=t(this),o=n.data(i),a=i+"_"+o.idx,r=t("#mCSB_"+o.idx+"_container"),s=r.parent(),l=t(".mCSB_"+o.idx+"_scrollbar ."+u[12]);l.bind("mousedown."+a+" touchstart."+a+" pointerdown."+a+" MSPointerDown."+a,function(n){c=!0,t(n.target).hasClass("mCSB_dragger")||(e=1)}).bind("touchend."+a+" pointerup."+a+" MSPointerUp."+a,function(t){c=!1}).bind("click."+a,function(i){if(e&&(e=0,t(i.target).hasClass(u[12])||t(i.target).hasClass("mCSB_draggerRail"))){q(n);var a=t(this),l=a.find(".mCSB_dragger");if(a.parent(".mCSB_scrollTools_horizontal").length>0){if(!o.overflowed[1])return;var c="x",d=i.pageX>l.offset().left?-1:1,h=Math.abs(r[0].offsetLeft)-.9*d*s.width()}else{if(!o.overflowed[0])return;var c="y",d=i.pageY>l.offset().top?-1:1,h=Math.abs(r[0].offsetTop)-.9*d*s.height()}Y(n,h.toString(),{dir:c,scrollEasing:"mcsEaseInOut"})}})},L=function(){var e=t(this),n=e.data(i),o=n.opt,a=i+"_"+n.idx,r=t("#mCSB_"+n.idx+"_container"),s=r.parent();r.bind("focusin."+a,function(n){var i=t(document.activeElement),a=r.find(".mCustomScrollBox").length,l=0;i.is(o.advanced.autoScrollOnFocus)&&(q(e),clearTimeout(e[0]._focusTimeout),e[0]._focusTimer=a?(l+17)*a:0,e[0]._focusTimeout=setTimeout(function(){var t=[et(i)[0],et(i)[1]],n=[r[0].offsetTop,r[0].offsetLeft],a=[n[0]+t[0]>=0&&n[0]+t[0]=0&&n[0]+t[1]a");l.bind("mousedown."+r+" touchstart."+r+" pointerdown."+r+" MSPointerDown."+r+" mouseup."+r+" touchend."+r+" pointerup."+r+" MSPointerUp."+r+" mouseout."+r+" pointerout."+r+" MSPointerOut."+r+" click."+r,function(i){function r(t,n){a.scrollAmount=o.scrollButtons.scrollAmount,U(e,t,n)}if(i.preventDefault(),Z(i)){var s=t(this).attr("class");switch(a.type=o.scrollButtons.scrollType,i.type){case"mousedown":case"touchstart":case"pointerdown":case"MSPointerDown":if("stepped"===a.type)return;c=!0,n.tweenRunning=!1,r("on",s);break;case"mouseup":case"touchend":case"pointerup":case"MSPointerUp":case"mouseout":case"pointerout":case"MSPointerOut":if("stepped"===a.type)return;c=!1,a.dir&&r("off",s);break;case"click":if("stepped"!==a.type||n.tweenRunning)return;r("on",s)}}})},B=function(){function e(e){function i(t,e){r.type=a.keyboard.scrollType,r.scrollAmount=a.keyboard.scrollAmount,"stepped"===r.type&&o.tweenRunning||U(n,t,e)}switch(e.type){case"blur":o.tweenRunning&&r.dir&&i("off",null);break;case"keydown":case"keyup":var s=e.keyCode?e.keyCode:e.which,l="on";if("x"!==a.axis&&(38===s||40===s)||"y"!==a.axis&&(37===s||39===s)){if((38===s||40===s)&&!o.overflowed[0]||(37===s||39===s)&&!o.overflowed[1])return;"keyup"===e.type&&(l="off"),t(document.activeElement).is(d)||(e.preventDefault(),e.stopImmediatePropagation(),i(l,s))}else if(33===s||34===s){if((o.overflowed[0]||o.overflowed[1])&&(e.preventDefault(),e.stopImmediatePropagation()),"keyup"===e.type){q(n);var h=34===s?-1:1;if("x"===a.axis||"yx"===a.axis&&o.overflowed[1]&&!o.overflowed[0])var f="x",p=Math.abs(c[0].offsetLeft)-.9*h*u.width();else var f="y",p=Math.abs(c[0].offsetTop)-.9*h*u.height();Y(n,p.toString(),{dir:f,scrollEasing:"mcsEaseInOut"})}}else if((35===s||36===s)&&!t(document.activeElement).is(d)&&((o.overflowed[0]||o.overflowed[1])&&(e.preventDefault(),e.stopImmediatePropagation()),"keyup"===e.type)){if("x"===a.axis||"yx"===a.axis&&o.overflowed[1]&&!o.overflowed[0])var f="x",p=35===s?Math.abs(u.width()-c.outerWidth(!1)):0;else var f="y",p=35===s?Math.abs(u.height()-c.outerHeight(!1)):0;Y(n,p.toString(),{dir:f,scrollEasing:"mcsEaseInOut"})}}}var n=t(this),o=n.data(i),a=o.opt,r=o.sequential,s=i+"_"+o.idx,l=t("#mCSB_"+o.idx),c=t("#mCSB_"+o.idx+"_container"),u=c.parent(),d="input,textarea,select,datalist,keygen,[contenteditable='true']",h=c.find("iframe"),f=["blur."+s+" keydown."+s+" keyup."+s];h.length&&h.each(function(){t(this).load(function(){M(this)&&t(this.contentDocument||this.contentWindow.document).bind(f[0],function(t){e(t)})})}),l.attr("tabindex","0").bind(f[0],function(t){e(t)})},U=function(e,n,o,a,r){function s(t){d.snapAmount&&(h.scrollAmount=d.snapAmount instanceof Array?"x"===h.dir[0]?d.snapAmount[1]:d.snapAmount[0]:d.snapAmount);var n="stepped"!==h.type,i=r?r:t?n?m/1.5:g:1e3/60,o=t?n?7.5:40:2.5,l=[Math.abs(f[0].offsetTop),Math.abs(f[0].offsetLeft)],u=[c.scrollRatio.y>10?10:c.scrollRatio.y,c.scrollRatio.x>10?10:c.scrollRatio.x],p="x"===h.dir[0]?l[1]+h.dir[1]*u[1]*o:l[0]+h.dir[1]*u[0]*o,v="x"===h.dir[0]?l[1]+h.dir[1]*parseInt(h.scrollAmount):l[0]+h.dir[1]*parseInt(h.scrollAmount),y="auto"!==h.scrollAmount?v:p,b=a?a:t?n?"mcsLinearOut":"mcsEaseInOut":"mcsLinear",w=t?!0:!1;return t&&17>i&&(y="x"===h.dir[0]?l[1]:l[0]),Y(e,y.toString(),{dir:h.dir[0],scrollEasing:b,dur:i,onComplete:w}),t?void(h.dir=!1):(clearTimeout(h.step),void(h.step=setTimeout(function(){s()},i)))}function l(){clearTimeout(h.step),G(h,"step"),q(e)}var c=e.data(i),d=c.opt,h=c.sequential,f=t("#mCSB_"+c.idx+"_container"),p="stepped"===h.type?!0:!1,m=d.scrollInertia<26?26:d.scrollInertia,g=d.scrollInertia<1?17:d.scrollInertia;switch(n){case"on":if(h.dir=[o===u[16]||o===u[15]||39===o||37===o?"x":"y",o===u[13]||o===u[15]||38===o||37===o?-1:1],q(e),tt(o)&&"stepped"===h.type)return;s(p);break;case"off":l(),(p||c.tweenRunning&&h.dir)&&s(!0)}},H=function(e){var n=t(this).data(i).opt,o=[];return"function"==typeof e&&(e=e()),e instanceof Array?o=e.length>1?[e[0],e[1]]:"x"===n.axis?[null,e[0]]:[e[0],null]:(o[0]=e.y?e.y:e.x||"x"===n.axis?null:e,o[1]=e.x?e.x:e.y||"y"===n.axis?null:e),"function"==typeof o[0]&&(o[0]=o[0]()),"function"==typeof o[1]&&(o[1]=o[1]()),o},z=function(e,n){if(null!=e&&"undefined"!=typeof e){var o=t(this),a=o.data(i),r=a.opt,s=t("#mCSB_"+a.idx+"_container"),l=s.parent(),c=typeof e;n||(n="x"===r.axis?"x":"y");var u="x"===n?s.outerWidth(!1):s.outerHeight(!1),h="x"===n?s[0].offsetLeft:s[0].offsetTop,f="x"===n?"left":"top";switch(c){case"function":return e();case"object":var p=e.jquery?e:t(e);if(!p.length)return;return"x"===n?et(p)[1]:et(p)[0];case"string":case"number":if(tt(e))return Math.abs(e);if(-1!==e.indexOf("%"))return Math.abs(u*parseInt(e)/100);if(-1!==e.indexOf("-="))return Math.abs(h-parseInt(e.split("-=")[1]));if(-1!==e.indexOf("+=")){var m=h+parseInt(e.split("+=")[1]);return m>=0?0:Math.abs(m)}if(-1!==e.indexOf("px")&&tt(e.split("px")[0]))return Math.abs(e.split("px")[0]);if("top"===e||"left"===e)return 0;if("bottom"===e)return Math.abs(l.height()-s.outerHeight(!1));if("right"===e)return Math.abs(l.width()-s.outerWidth(!1));if("first"===e||"last"===e){var p=s.find(":"+e);return"x"===n?et(p)[1]:et(p)[0]}return t(e).length?"x"===n?et(t(e))[1]:et(t(e))[0]:(s.css(f,e),void d.update.call(null,o[0]))}}},W=function(e){function n(){return clearTimeout(h[0].autoUpdate),0===s.parents("html").length?void(s=null):void(h[0].autoUpdate=setTimeout(function(){return c.advanced.updateOnSelectorChange&&(l.poll.change.n=a(),l.poll.change.n!==l.poll.change.o)?(l.poll.change.o=l.poll.change.n,void r(3)):c.advanced.updateOnContentResize&&(l.poll.size.n=s[0].scrollHeight+s[0].scrollWidth+h[0].offsetHeight+s[0].offsetHeight+s[0].offsetWidth,l.poll.size.n!==l.poll.size.o)?(l.poll.size.o=l.poll.size.n,void r(1)):!c.advanced.updateOnImageLoad||"auto"===c.advanced.updateOnImageLoad&&"y"===c.axis||(l.poll.img.n=h.find("img").length,l.poll.img.n===l.poll.img.o)?void((c.advanced.updateOnSelectorChange||c.advanced.updateOnContentResize||c.advanced.updateOnImageLoad)&&n()):(l.poll.img.o=l.poll.img.n,void h.find("img").each(function(){o(this)}))},c.advanced.autoUpdateTimeout))}function o(e){function n(t,e){return function(){return e.apply(t,arguments)}}function i(){this.onload=null,t(e).addClass(u[2]),r(2)}if(t(e).hasClass(u[2]))return void r();var o=new Image;o.onload=n(o,i),o.src=e.src}function a(){c.advanced.updateOnSelectorChange===!0&&(c.advanced.updateOnSelectorChange="*");var t=0,e=h.find(c.advanced.updateOnSelectorChange);return c.advanced.updateOnSelectorChange&&e.length>0&&e.each(function(){t+=this.offsetHeight+this.offsetWidth}),t}function r(t){clearTimeout(h[0].autoUpdate),d.update.call(null,s[0],t)}var s=t(this),l=s.data(i),c=l.opt,h=t("#mCSB_"+l.idx+"_container");return e?(clearTimeout(h[0].autoUpdate),void G(h[0],"autoUpdate")):void n()},V=function(t,e,n){return Math.round(t/e)*e-n},q=function(e){var n=e.data(i),o=t("#mCSB_"+n.idx+"_container,#mCSB_"+n.idx+"_container_wrapper,#mCSB_"+n.idx+"_dragger_vertical,#mCSB_"+n.idx+"_dragger_horizontal");o.each(function(){K.call(this)})},Y=function(e,n,o){function a(t){return l&&c.callbacks[t]&&"function"==typeof c.callbacks[t]}function r(){return[c.callbacks.alwaysTriggerOffsets||w>=C[0]+T,c.callbacks.alwaysTriggerOffsets||-_>=w]}function s(){var t=[f[0].offsetTop,f[0].offsetLeft],n=[y[0].offsetTop,y[0].offsetLeft],i=[f.outerHeight(!1),f.outerWidth(!1)],a=[h.height(),h.width()];e[0].mcs={content:f,top:t[0],left:t[1],draggerTop:n[0],draggerLeft:n[1],topPct:Math.round(100*Math.abs(t[0])/(Math.abs(i[0])-a[0])),leftPct:Math.round(100*Math.abs(t[1])/(Math.abs(i[1])-a[1])),direction:o.dir}}var l=e.data(i),c=l.opt,u={trigger:"internal",dir:"y",scrollEasing:"mcsEaseOut",drag:!1,dur:c.scrollInertia,overwrite:"all",callbacks:!0,onStart:!0,onUpdate:!0,onComplete:!0},o=t.extend(u,o),d=[o.dur,o.drag?0:o.dur],h=t("#mCSB_"+l.idx),f=t("#mCSB_"+l.idx+"_container"),p=f.parent(),m=c.callbacks.onTotalScrollOffset?H.call(e,c.callbacks.onTotalScrollOffset):[0,0],g=c.callbacks.onTotalScrollBackOffset?H.call(e,c.callbacks.onTotalScrollBackOffset):[0,0];if(l.trigger=o.trigger,(0!==p.scrollTop()||0!==p.scrollLeft())&&(t(".mCSB_"+l.idx+"_scrollbar").css("visibility","visible"),p.scrollTop(0).scrollLeft(0)),"_resetY"!==n||l.contentReset.y||(a("onOverflowYNone")&&c.callbacks.onOverflowYNone.call(e[0]),l.contentReset.y=1),"_resetX"!==n||l.contentReset.x||(a("onOverflowXNone")&&c.callbacks.onOverflowXNone.call(e[0]),l.contentReset.x=1),"_resetY"!==n&&"_resetX"!==n){if(!l.contentReset.y&&e[0].mcs||!l.overflowed[0]||(a("onOverflowY")&&c.callbacks.onOverflowY.call(e[0]),l.contentReset.x=null),!l.contentReset.x&&e[0].mcs||!l.overflowed[1]||(a("onOverflowX")&&c.callbacks.onOverflowX.call(e[0]),l.contentReset.x=null),c.snapAmount){var v=c.snapAmount instanceof Array?"x"===o.dir?c.snapAmount[1]:c.snapAmount[0]:c.snapAmount;n=V(n,v,c.snapOffset)}switch(o.dir){case"x":var y=t("#mCSB_"+l.idx+"_dragger_horizontal"),b="left",w=f[0].offsetLeft,C=[h.width()-f.outerWidth(!1),y.parent().width()-y.width()],x=[n,0===n?0:n/l.scrollRatio.x],T=m[1],_=g[1],k=T>0?T/l.scrollRatio.x:0,D=_>0?_/l.scrollRatio.x:0;break;case"y":var y=t("#mCSB_"+l.idx+"_dragger_vertical"),b="top",w=f[0].offsetTop,C=[h.height()-f.outerHeight(!1),y.parent().height()-y.height()],x=[n,0===n?0:n/l.scrollRatio.y],T=m[0],_=g[0],k=T>0?T/l.scrollRatio.y:0,D=_>0?_/l.scrollRatio.y:0}x[1]<0||0===x[0]&&0===x[1]?x=[0,0]:x[1]>=C[1]?x=[C[0],C[1]]:x[0]=-x[0],e[0].mcs||(s(),a("onInit")&&c.callbacks.onInit.call(e[0])),clearTimeout(f[0].onCompleteTimeout),X(y[0],b,Math.round(x[1]),d[1],o.scrollEasing),(l.tweenRunning||!(0===w&&x[0]>=0||w===C[0]&&x[0]<=C[0]))&&X(f[0],b,Math.round(x[0]),d[0],o.scrollEasing,o.overwrite,{onStart:function(){o.callbacks&&o.onStart&&!l.tweenRunning&&(a("onScrollStart")&&(s(),c.callbacks.onScrollStart.call(e[0])),l.tweenRunning=!0,S(y),l.cbOffsets=r())},onUpdate:function(){o.callbacks&&o.onUpdate&&a("whileScrolling")&&(s(),c.callbacks.whileScrolling.call(e[0]))},onComplete:function(){if(o.callbacks&&o.onComplete){"yx"===c.axis&&clearTimeout(f[0].onCompleteTimeout);var t=f[0].idleTimer||0;f[0].onCompleteTimeout=setTimeout(function(){a("onScroll")&&(s(),c.callbacks.onScroll.call(e[0])),a("onTotalScroll")&&x[1]>=C[1]-k&&l.cbOffsets[0]&&(s(),c.callbacks.onTotalScroll.call(e[0])),a("onTotalScrollBack")&&x[1]<=D&&l.cbOffsets[1]&&(s(),c.callbacks.onTotalScrollBack.call(e[0])),l.tweenRunning=!1,f[0].idleTimer=0,S(y,"hide")},t)}}})}},X=function(t,e,n,i,o,a,r){function s(){C.stop||(y||p.call(),y=Q()-v,l(),y>=C.time&&(C.time=y>C.time?y+h-(y-C.time):y+h-1,C.time0?(C.currVal=d(C.time,b,x,i,o),w[e]=Math.round(C.currVal)+"px"):w[e]=n+"px",m.call()}function c(){h=1e3/60,C.time=y+h,f=window.requestAnimationFrame?window.requestAnimationFrame:function(t){return l(),setTimeout(t,.01)},C.id=f(s)}function u(){null!=C.id&&(window.requestAnimationFrame?window.cancelAnimationFrame(C.id):clearTimeout(C.id),C.id=null)}function d(t,e,n,i,o){switch(o){case"linear":case"mcsLinear":return n*t/i+e;case"mcsLinearOut":return t/=i,t--,n*Math.sqrt(1-t*t)+e;case"easeInOutSmooth":return t/=i/2,1>t?n/2*t*t+e:(t--,-n/2*(t*(t-2)-1)+e);case"easeInOutStrong":return t/=i/2,1>t?n/2*Math.pow(2,10*(t-1))+e:(t--,n/2*(-Math.pow(2,-10*t)+2)+e);case"easeInOut":case"mcsEaseInOut":return t/=i/2,1>t?n/2*t*t*t+e:(t-=2,n/2*(t*t*t+2)+e);case"easeOutSmooth":return t/=i,t--,-n*(t*t*t*t-1)+e;case"easeOutStrong":return n*(-Math.pow(2,-10*t/i)+1)+e;case"easeOut":case"mcsEaseOut":default:var a=(t/=i)*t,r=a*t;return e+n*(.499999999999997*r*a+-2.5*a*a+5.5*r+-6.5*a+4*t)}}t._mTween||(t._mTween={top:{},left:{}});var h,f,r=r||{},p=r.onStart||function(){},m=r.onUpdate||function(){},g=r.onComplete||function(){},v=Q(),y=0,b=t.offsetTop,w=t.style,C=t._mTween[e];"left"===e&&(b=t.offsetLeft);var x=n-b;C.stop=0,"none"!==a&&u(),c()},Q=function(){return window.performance&&window.performance.now?window.performance.now():window.performance&&window.performance.webkitNow?window.performance.webkitNow():Date.now?Date.now():(new Date).getTime()},K=function(){var t=this;t._mTween||(t._mTween={top:{},left:{}});for(var e=["top","left"],n=0;n=0&&i[0]+et(o)[0]=0&&i[1]+et(o)[1]=e}},i.prototype.onInput=function(e){var n=this,i=t(e.target),o="focusout"!==e.type;this.validateInput(i,o).done(function(){n.toggleSubmit()})},i.prototype.validateInput=function(n,i){var o=e(n),a=n.data("bs.validator.previous"),r=n.data("bs.validator.errors");if(a===o)return t.Deferred().resolve();n.data("bs.validator.previous",o),n.is('[type="radio"]')&&(n=this.$element.find('input[name="'+n.attr("name")+'"]'));var s=t.Event("validate.bs.validator",{relatedTarget:n[0]});if(this.$element.trigger(s),!s.isDefaultPrevented()){var l=this;return this.runValidators(n).done(function(e){n.data("bs.validator.errors",e),e.length?i?l.defer(n,l.showErrors):l.showErrors(n):l.clearErrors(n),r&&e.toString()===r.toString()||(s=e.length?t.Event("invalid.bs.validator",{relatedTarget:n[0],detail:e}):t.Event("valid.bs.validator",{relatedTarget:n[0],detail:r}),l.$element.trigger(s)),l.toggleSubmit(),l.$element.trigger(t.Event("validated.bs.validator",{relatedTarget:n[0]}))})}},i.prototype.runValidators=function(n){function o(t){return n.data(t+"-error")||n.data("error")||"native"==t&&n[0].validationMessage||s.errors[t]}var a=[],r=t.Deferred(),s=this.options;return n.data("bs.validator.deferred")&&n.data("bs.validator.deferred").reject(),n.data("bs.validator.deferred",r),t.each(i.VALIDATORS,t.proxy(function(t,i){if((e(n)||n.attr("required"))&&(n.data(t)||"native"==t)&&!i.call(this,n)){var r=o(t);!~a.indexOf(r)&&a.push(r)}},this)),!a.length&&e(n)&&n.data("remote")?this.defer(n,function(){var i={};i[n.attr("name")]=e(n),t.get(n.data("remote"),i).fail(function(t,e,n){a.push(o("remote")||n)}).always(function(){r.resolve(a)})}):r.resolve(a),r.promise()},i.prototype.validate=function(){var e=this;return t.when(this.$inputs.map(function(){return e.validateInput(t(this),!1)})).then(function(){e.toggleSubmit(),e.$btn.hasClass("disabled")&&e.focusError()}),this},i.prototype.focusError=function(){if(this.options.focus){var e=t(".has-error:first :input");t(document.body).animate({scrollTop:e.offset().top-i.FOCUS_OFFSET},250),e.focus()}},i.prototype.showErrors=function(e){var n=this.options.html?"html":"text",i=e.data("bs.validator.errors"),o=e.closest(".form-group"),a=o.find(".help-block.with-errors"),r=o.find(".form-control-feedback");i.length&&(i=t("").addClass("list-unstyled").append(t.map(i,function(e){return t("")[n](e)})),void 0===a.data("bs.validator.originalContent")&&a.data("bs.validator.originalContent",a.html()),a.empty().append(i),o.addClass("has-error has-danger"),o.hasClass("has-feedback")&&r.removeClass(this.options.feedback.success)&&r.addClass(this.options.feedback.error)&&o.removeClass("has-success"))},i.prototype.clearErrors=function(t){var n=t.closest(".form-group"),i=n.find(".help-block.with-errors"),o=n.find(".form-control-feedback");i.html(i.data("bs.validator.originalContent")),n.removeClass("has-error has-danger"),n.hasClass("has-feedback")&&o.removeClass(this.options.feedback.error)&&e(t)&&o.addClass(this.options.feedback.success)&&n.addClass("has-success")},i.prototype.hasErrors=function(){function e(){return!!(t(this).data("bs.validator.errors")||[]).length}return!!this.$inputs.filter(e).length},i.prototype.isIncomplete=function(){function n(){return!e(t(this))}return!!this.$inputs.filter("[required]").filter(n).length},i.prototype.onSubmit=function(t){this.validate(),this.$btn.hasClass("disabled")&&t.preventDefault()},i.prototype.toggleSubmit=function(){this.options.disable&&this.$btn.toggleClass("disabled",this.isIncomplete()||this.hasErrors())},i.prototype.defer=function(e,n){return n=t.proxy(n,this,e),this.options.delay?(window.clearTimeout(e.data("bs.validator.timeout")),void e.data("bs.validator.timeout",window.setTimeout(n,this.options.delay))):n()},i.prototype.destroy=function(){return this.$element.removeAttr("novalidate").removeData("bs.validator").off(".bs.validator").find(".form-control-feedback").removeClass([this.options.feedback.error,this.options.feedback.success].join(" ")),this.$inputs.off(".bs.validator").removeData(["bs.validator.errors","bs.validator.deferred","bs.validator.previous"]).each(function(){var e=t(this),n=e.data("bs.validator.timeout");window.clearTimeout(n)&&e.removeData("bs.validator.timeout")}),this.$element.find(".help-block.with-errors").each(function(){var e=t(this),n=e.data("bs.validator.originalContent");e.removeData("bs.validator.originalContent").html(n)}),this.$element.find('input[type="submit"], button[type="submit"]').removeClass("disabled"),this.$element.find(".has-error, .has-danger").removeClass("has-error has-danger"),this};var o=t.fn.validator;t.fn.validator=n,t.fn.validator.Constructor=i,t.fn.validator.noConflict=function(){return t.fn.validator=o,this},t(window).on("load",function(){t('form[data-toggle="validator"]').each(function(){var e=t(this);n.call(e,e.data())})})}(jQuery);define("validator",["jquery","bootstrap"],function(){});!function(t){"use strict";var e=function(e,n){this.options=t.extend({},t.fn.editableform.defaults,n),this.$div=t(e),this.options.scope||(this.options.scope=this)};e.prototype={constructor:e,initInput:function(){this.input=this.options.input,this.value=this.input.str2value(this.options.value),this.input.prerender()},initTemplate:function(){this.$form=t(t.fn.editableform.template)},initButtons:function(){var e=this.$form.find(".editable-buttons");e.append(t.fn.editableform.buttons),"bottom"===this.options.showbuttons&&e.addClass("editable-buttons-bottom")},render:function(){this.$loading=t(t.fn.editableform.loading),this.$div.empty().append(this.$loading),this.initTemplate(),this.options.showbuttons?this.initButtons():this.$form.find(".editable-buttons").remove(),this.showLoading(),this.isSaving=!1,this.$div.triggerHandler("rendering"),this.initInput(),this.$form.find("div.editable-input").append(this.input.$tpl),this.$div.append(this.$form),t.when(this.input.render()).then(t.proxy(function(){if(this.options.showbuttons||this.input.autosubmit(),this.$form.find(".editable-cancel").click(t.proxy(this.cancel,this)),this.input.error)this.error(this.input.error),this.$form.find(".editable-submit").attr("disabled",!0),this.input.$input.attr("disabled",!0),this.$form.submit(function(t){t.preventDefault()});else{this.error(!1),this.input.$input.removeAttr("disabled"),this.$form.find(".editable-submit").removeAttr("disabled");var e=null===this.value||void 0===this.value||""===this.value?this.options.defaultValue:this.value;this.input.value2input(e),this.$form.submit(t.proxy(this.submit,this))}this.$div.triggerHandler("rendered"),this.showForm(),this.input.postrender&&this.input.postrender()},this))},cancel:function(){this.$div.triggerHandler("cancel")},showLoading:function(){var t,e;this.$form?(t=this.$form.outerWidth(),e=this.$form.outerHeight(),t&&this.$loading.width(t),e&&this.$loading.height(e),this.$form.hide()):(t=this.$loading.parent().width(),t&&this.$loading.width(t)),this.$loading.show()},showForm:function(t){this.$loading.hide(),this.$form.show(),t!==!1&&this.input.activate(),this.$div.triggerHandler("show")},error:function(e){var n,i=this.$form.find(".control-group"),o=this.$form.find(".editable-error-block");if(e===!1)i.removeClass(t.fn.editableform.errorGroupClass),o.removeClass(t.fn.editableform.errorBlockClass).empty().hide();else{if(e){n=(""+e).split("\n");for(var a=0;a").text(n[a]).html();e=n.join("
")}i.addClass(t.fn.editableform.errorGroupClass),o.addClass(t.fn.editableform.errorBlockClass).html(e).show()}},submit:function(e){e.stopPropagation(),e.preventDefault();var n=this.input.input2value(),i=this.validate(n);if("object"===t.type(i)&&void 0!==i.newValue){if(n=i.newValue,this.input.value2input(n),"string"==typeof i.msg)return this.error(i.msg),void this.showForm()}else if(i)return this.error(i),void this.showForm();if(!this.options.savenochange&&this.input.value2str(n)==this.input.value2str(this.value))return void this.$div.triggerHandler("nochange");var o=this.input.value2submit(n);this.isSaving=!0,t.when(this.save(o)).done(t.proxy(function(t){this.isSaving=!1;var e="function"==typeof this.options.success?this.options.success.call(this.options.scope,t,n):null;return e===!1?(this.error(!1),void this.showForm(!1)):"string"==typeof e?(this.error(e),void this.showForm()):(e&&"object"==typeof e&&e.hasOwnProperty("newValue")&&(n=e.newValue),this.error(!1),this.value=n,void this.$div.triggerHandler("save",{newValue:n,submitValue:o,response:t}))},this)).fail(t.proxy(function(t){this.isSaving=!1;var e;e="function"==typeof this.options.error?this.options.error.call(this.options.scope,t,n):"string"==typeof t?t:t.responseText||t.statusText||"Unknown error!",this.error(e),this.showForm()},this))},save:function(e){this.options.pk=t.fn.editableutils.tryParseJson(this.options.pk,!0);var n,i="function"==typeof this.options.pk?this.options.pk.call(this.options.scope):this.options.pk,o=!!("function"==typeof this.options.url||this.options.url&&("always"===this.options.send||"auto"===this.options.send&&null!==i&&void 0!==i));return o?(this.showLoading(),n={name:this.options.name||"",value:e,pk:i},"function"==typeof this.options.params?n=this.options.params.call(this.options.scope,n):(this.options.params=t.fn.editableutils.tryParseJson(this.options.params,!0),t.extend(n,this.options.params)),"function"==typeof this.options.url?this.options.url.call(this.options.scope,n):t.ajax(t.extend({url:this.options.url,data:n,type:"POST"},this.options.ajaxOptions))):void 0},validate:function(t){return void 0===t&&(t=this.value),"function"==typeof this.options.validate?this.options.validate.call(this.options.scope,t):void 0},option:function(t,e){t in this.options&&(this.options[t]=e),"value"===t&&this.setValue(e)},setValue:function(t,e){this.value=e?this.input.str2value(t):t,this.$form&&this.$form.is(":visible")&&this.input.value2input(this.value)}},t.fn.editableform=function(n){var i=arguments;return this.each(function(){var o=t(this),a=o.data("editableform"),r="object"==typeof n&&n;a||o.data("editableform",a=new e(this,r)),"string"==typeof n&&a[n].apply(a,Array.prototype.slice.call(i,1))})},t.fn.editableform.Constructor=e,t.fn.editableform.defaults={type:"text",url:null,params:null,name:null,pk:null,value:null,defaultValue:null,send:"auto",validate:null,success:null,error:null,ajaxOptions:null,showbuttons:!0,scope:null,savenochange:!1},t.fn.editableform.template='',
-t.fn.editableform.loading='',t.fn.editableform.buttons='',t.fn.editableform.errorGroupClass=null,t.fn.editableform.errorBlockClass="editable-error",t.fn.editableform.engine="jquery"}(window.jQuery),function(t){"use strict";t.fn.editableutils={inherit:function(t,e){var n=function(){};n.prototype=e.prototype,t.prototype=new n,t.prototype.constructor=t,t.superclass=e.prototype},setCursorPosition:function(t,e){if(t.setSelectionRange)t.setSelectionRange(e,e);else if(t.createTextRange){var n=t.createTextRange();n.collapse(!0),n.moveEnd("character",e),n.moveStart("character",e),n.select()}},tryParseJson:function(t,e){if("string"==typeof t&&t.length&&t.match(/^[\{\[].*[\}\]]$/))if(e)try{t=new Function("return "+t)()}catch(n){}finally{return t}else t=new Function("return "+t)();return t},sliceObj:function(e,n,i){var o,a,r={};if(!t.isArray(n)||!n.length)return r;for(var s=0;s").text(e).html()},itemsByValue:function(e,n,i){if(!n||null===e)return[];if("function"!=typeof i){var o=i||"value";i=function(t){return t[o]}}var a=t.isArray(e),r=[],s=this;return t.each(n,function(n,o){if(o.children)r=r.concat(s.itemsByValue(e,o.children,i));else if(a)t.grep(e,function(t){return t==(o&&"object"==typeof o?i(o):o)}).length&&r.push(o);else{var l=o&&"object"==typeof o?i(o):o;e==l&&r.push(o)}}),r},createInput:function(e){var n,i,o,a=e.type;return"date"===a&&("inline"===e.mode?t.fn.editabletypes.datefield?a="datefield":t.fn.editabletypes.dateuifield&&(a="dateuifield"):t.fn.editabletypes.date?a="date":t.fn.editabletypes.dateui&&(a="dateui"),"date"!==a||t.fn.editabletypes.date||(a="combodate")),"datetime"===a&&"inline"===e.mode&&(a="datetimefield"),"wysihtml5"!==a||t.fn.editabletypes[a]||(a="textarea"),"function"==typeof t.fn.editabletypes[a]?(n=t.fn.editabletypes[a],i=this.sliceObj(e,this.objectKeys(n.defaults)),o=new n(i)):(t.error("Unknown type: "+a),!1)},supportsTransitions:function(){var t=document.body||document.documentElement,e=t.style,n="transition",i=["Moz","Webkit","Khtml","O","ms"];if("string"==typeof e[n])return!0;n=n.charAt(0).toUpperCase()+n.substr(1);for(var o=0;o"),this.tip().is(this.innerCss)?this.tip().append(this.$form):this.tip().find(this.innerCss).append(this.$form),this.renderForm()},hide:function(t){if(this.tip()&&this.tip().is(":visible")&&this.$element.hasClass("editable-open")){if(this.$form.data("editableform").isSaving)return void(this.delayedHide={reason:t});this.delayedHide=!1,this.$element.removeClass("editable-open"),this.innerHide(),this.$element.triggerHandler("hidden",t||"manual")}},innerShow:function(){},innerHide:function(){},toggle:function(t){this.container()&&this.tip()&&this.tip().is(":visible")?this.hide():this.show(t)},setPosition:function(){},save:function(t,e){this.$element.triggerHandler("save",e),this.hide("save")},option:function(t,e){this.options[t]=e,t in this.containerOptions?(this.containerOptions[t]=e,this.setContainerOption(t,e)):(this.formOptions[t]=e,this.$form&&this.$form.editableform("option",t,e))},setContainerOption:function(t,e){this.call("option",t,e)},destroy:function(){this.hide(),this.innerDestroy(),this.$element.off("destroyed"),this.$element.removeData("editableContainer")},innerDestroy:function(){},closeOthers:function(e){t(".editable-open").each(function(n,i){if(i!==e&&!t(i).find(e).length){var o=t(i),a=o.data("editableContainer");a&&("cancel"===a.options.onblur?o.data("editableContainer").hide("onblur"):"submit"===a.options.onblur&&o.data("editableContainer").tip().find("form").submit())}})},activate:function(){this.tip&&this.tip().is(":visible")&&this.$form&&this.$form.data("editableform").input.activate()}},t.fn.editableContainer=function(i){var o=arguments;return this.each(function(){var a=t(this),r="editableContainer",s=a.data(r),l="object"==typeof i&&i,c="inline"===l.mode?n:e;s||a.data(r,s=new c(this,l)),"string"==typeof i&&s[i].apply(s,Array.prototype.slice.call(o,1))})},t.fn.editableContainer.Popup=e,t.fn.editableContainer.Inline=n,t.fn.editableContainer.defaults={value:null,placement:"top",autohide:!0,onblur:"cancel",anim:!1,mode:"popup"},jQuery.event.special.destroyed={remove:function(t){t.handler&&t.handler()}}}(window.jQuery),function(t){"use strict";t.extend(t.fn.editableContainer.Inline.prototype,t.fn.editableContainer.Popup.prototype,{containerName:"editableform",innerCss:".editable-inline",containerClass:"editable-container editable-inline",initContainer:function(){this.$tip=t(""),this.options.anim||(this.options.anim=0)},splitOptions:function(){this.containerOptions={},this.formOptions=this.options},tip:function(){return this.$tip},innerShow:function(){this.$element.hide(),this.tip().insertAfter(this.$element).show()},innerHide:function(){this.$tip.hide(this.options.anim,t.proxy(function(){this.$element.show(),this.innerDestroy()},this))},innerDestroy:function(){this.tip()&&this.tip().empty().remove()}})}(window.jQuery),function(t){"use strict";var e=function(e,n){this.$element=t(e),this.options=t.extend({},t.fn.editable.defaults,n,t.fn.editableutils.getConfigData(this.$element)),this.options.selector?this.initLive():this.init(),this.options.highlight&&!t.fn.editableutils.supportsTransitions()&&(this.options.highlight=!1)};e.prototype={constructor:e,init:function(){var e,n=!1;if(this.options.name=this.options.name||this.$element.attr("id"),this.options.scope=this.$element[0],this.input=t.fn.editableutils.createInput(this.options),this.input){switch(void 0===this.options.value||null===this.options.value?(this.value=this.input.html2value(t.trim(this.$element.html())),n=!0):(this.options.value=t.fn.editableutils.tryParseJson(this.options.value,!0),this.value="string"==typeof this.options.value?this.input.str2value(this.options.value):this.options.value),this.$element.addClass("editable"),"textarea"===this.input.type&&this.$element.addClass("editable-pre-wrapped"),"manual"!==this.options.toggle?(this.$element.addClass("editable-click"),this.$element.on(this.options.toggle+".editable",t.proxy(function(t){if(this.options.disabled||t.preventDefault(),"mouseenter"===this.options.toggle)this.show();else{var e="click"!==this.options.toggle;this.toggle(e)}},this))):this.$element.attr("tabindex",-1),"function"==typeof this.options.display&&(this.options.autotext="always"),this.options.autotext){case"always":e=!0;break;case"auto":e=!t.trim(this.$element.text()).length&&null!==this.value&&void 0!==this.value&&!n;break;default:e=!1}t.when(e?this.render():!0).then(t.proxy(function(){this.options.disabled?this.disable():this.enable(),this.$element.triggerHandler("init",this)},this))}},initLive:function(){var e=this.options.selector;this.options.selector=!1,this.options.autotext="never",this.$element.on(this.options.toggle+".editable",e,t.proxy(function(e){var n=t(e.target);n.data("editable")||(n.hasClass(this.options.emptyclass)&&n.empty(),n.editable(this.options).trigger(e))},this))},render:function(t){return this.options.display!==!1?this.input.value2htmlFinal?this.input.value2html(this.value,this.$element[0],this.options.display,t):"function"==typeof this.options.display?this.options.display.call(this.$element[0],this.value,t):this.input.value2html(this.value,this.$element[0]):void 0},enable:function(){this.options.disabled=!1,this.$element.removeClass("editable-disabled"),this.handleEmpty(this.isEmpty),"manual"!==this.options.toggle&&"-1"===this.$element.attr("tabindex")&&this.$element.removeAttr("tabindex")},disable:function(){this.options.disabled=!0,this.hide(),this.$element.addClass("editable-disabled"),this.handleEmpty(this.isEmpty),this.$element.attr("tabindex",-1)},toggleDisabled:function(){this.options.disabled?this.enable():this.disable()},option:function(e,n){return e&&"object"==typeof e?void t.each(e,t.proxy(function(e,n){this.option(t.trim(e),n)},this)):(this.options[e]=n,"disabled"===e?n?this.disable():this.enable():("value"===e&&this.setValue(n),this.container&&this.container.option(e,n),void(this.input.option&&this.input.option(e,n))))},handleEmpty:function(e){this.options.display!==!1&&(this.isEmpty=void 0!==e?e:"function"==typeof this.input.isEmpty?this.input.isEmpty(this.$element):""===t.trim(this.$element.html()),this.options.disabled?this.isEmpty&&(this.$element.empty(),this.options.emptyclass&&this.$element.removeClass(this.options.emptyclass)):this.isEmpty?(this.$element.html(this.options.emptytext),this.options.emptyclass&&this.$element.addClass(this.options.emptyclass)):this.options.emptyclass&&this.$element.removeClass(this.options.emptyclass))},show:function(e){if(!this.options.disabled){if(this.container){if(this.container.tip().is(":visible"))return}else{var n=t.extend({},this.options,{value:this.value,input:this.input});this.$element.editableContainer(n),this.$element.on("save.internal",t.proxy(this.save,this)),this.container=this.$element.data("editableContainer")}this.container.show(e)}},hide:function(){this.container&&this.container.hide()},toggle:function(t){this.container&&this.container.tip().is(":visible")?this.hide():this.show(t)},save:function(t,e){if(this.options.unsavedclass){var n=!1;n=n||"function"==typeof this.options.url,n=n||this.options.display===!1,n=n||void 0!==e.response,n=n||this.options.savenochange&&this.input.value2str(this.value)!==this.input.value2str(e.newValue),n?this.$element.removeClass(this.options.unsavedclass):this.$element.addClass(this.options.unsavedclass)}if(this.options.highlight){var i=this.$element,o=i.css("background-color");i.css("background-color",this.options.highlight),setTimeout(function(){"transparent"===o&&(o=""),i.css("background-color",o),i.addClass("editable-bg-transition"),setTimeout(function(){i.removeClass("editable-bg-transition")},1700)},10)}this.setValue(e.newValue,!1,e.response)},validate:function(){return"function"==typeof this.options.validate?this.options.validate.call(this,this.value):void 0},setValue:function(e,n,i){this.value=n?this.input.str2value(e):e,this.container&&this.container.option("value",this.value),t.when(this.render(i)).then(t.proxy(function(){this.handleEmpty()},this))},activate:function(){this.container&&this.container.activate()},destroy:function(){this.disable(),this.container&&this.container.destroy(),this.input.destroy(),"manual"!==this.options.toggle&&(this.$element.removeClass("editable-click"),this.$element.off(this.options.toggle+".editable")),this.$element.off("save.internal"),this.$element.removeClass("editable editable-open editable-disabled"),this.$element.removeData("editable")}},t.fn.editable=function(n){var i={},o=arguments,a="editable";switch(n){case"validate":return this.each(function(){var e,n=t(this),o=n.data(a);o&&(e=o.validate())&&(i[o.options.name]=e)}),i;case"getValue":return 2===arguments.length&&arguments[1]===!0?i=this.eq(0).data(a).value:this.each(function(){var e=t(this),n=e.data(a);n&&void 0!==n.value&&null!==n.value&&(i[n.options.name]=n.input.value2submit(n.value))}),i;case"submit":var r=arguments[1]||{},s=this,l=this.editable("validate");if(t.isEmptyObject(l)){var c={};if(1===s.length){var u=s.data("editable"),d={name:u.options.name||"",value:u.input.value2submit(u.value),pk:"function"==typeof u.options.pk?u.options.pk.call(u.options.scope):u.options.pk};"function"==typeof u.options.params?d=u.options.params.call(u.options.scope,d):(u.options.params=t.fn.editableutils.tryParseJson(u.options.params,!0),t.extend(d,u.options.params)),c={url:u.options.url,data:d,type:"POST"},r.success=r.success||u.options.success,r.error=r.error||u.options.error}else{var h=this.editable("getValue");c={url:r.url,data:h,type:"POST"}}c.success="function"==typeof r.success?function(t){r.success.call(s,t,r)}:t.noop,c.error="function"==typeof r.error?function(){r.error.apply(s,arguments)}:t.noop,r.ajaxOptions&&t.extend(c,r.ajaxOptions),r.data&&t.extend(c.data,r.data),t.ajax(c)}else"function"==typeof r.error&&r.error.call(s,l);return this}return this.each(function(){var i=t(this),r=i.data(a),s="object"==typeof n&&n;return s&&s.selector?void(r=new e(this,s)):(r||i.data(a,r=new e(this,s)),void("string"==typeof n&&r[n].apply(r,Array.prototype.slice.call(o,1))))})},t.fn.editable.defaults={type:"text",disabled:!1,toggle:"click",emptytext:"Empty",autotext:"auto",value:null,display:null,emptyclass:"editable-empty",unsavedclass:"editable-unsaved",selector:null,highlight:"#FFFF80"}}(window.jQuery),function(t){"use strict";t.fn.editabletypes={};var e=function(){};e.prototype={init:function(e,n,i){this.type=e,this.options=t.extend({},i,n)},prerender:function(){this.$tpl=t(this.options.tpl),this.$input=this.$tpl,this.$clear=null,this.error=null},render:function(){},value2html:function(e,n){t(n)[this.options.escape?"text":"html"](t.trim(e))},html2value:function(e){return t("").html(e).text()},value2str:function(t){return t},str2value:function(t){return t},value2submit:function(t){return t},value2input:function(t){this.$input.val(t)},input2value:function(){return this.$input.val()},activate:function(){this.$input.is(":visible")&&this.$input.focus()},clear:function(){this.$input.val(null)},escape:function(e){return t("
").text(e).html()},autosubmit:function(){},destroy:function(){},setClass:function(){this.options.inputclass&&this.$input.addClass(this.options.inputclass)},setAttr:function(t){void 0!==this.options[t]&&null!==this.options[t]&&this.$input.attr(t,this.options[t])},option:function(t,e){this.options[t]=e}},e.defaults={tpl:"",inputclass:null,escape:!0,scope:null,showbuttons:!0},t.extend(t.fn.editabletypes,{abstractinput:e})}(window.jQuery),function(t){"use strict";var e=function(){};t.fn.editableutils.inherit(e,t.fn.editabletypes.abstractinput),t.extend(e.prototype,{render:function(){var e=t.Deferred();return this.error=null,this.onSourceReady(function(){this.renderList(),e.resolve()},function(){this.error=this.options.sourceError,e.resolve()}),e.promise()},html2value:function(){return null},value2html:function(e,n,i,o){var a=t.Deferred(),r=function(){"function"==typeof i?i.call(n,e,this.sourceData,o):this.value2htmlFinal(e,n),a.resolve()};return null===e?r.call(this):this.onSourceReady(r,function(){a.resolve()}),a.promise()},onSourceReady:function(e,n){var i;if(t.isFunction(this.options.source)?(i=this.options.source.call(this.options.scope),this.sourceData=null):i=this.options.source,this.options.sourceCache&&t.isArray(this.sourceData))return void e.call(this);try{i=t.fn.editableutils.tryParseJson(i,!1)}catch(o){return void n.call(this)}if("string"==typeof i){if(this.options.sourceCache){var a,r=i;if(t(document).data(r)||t(document).data(r,{}),a=t(document).data(r),a.loading===!1&&a.sourceData)return this.sourceData=a.sourceData,this.doPrepend(),void e.call(this);if(a.loading===!0)return a.callbacks.push(t.proxy(function(){this.sourceData=a.sourceData,this.doPrepend(),e.call(this)},this)),void a.err_callbacks.push(t.proxy(n,this));a.loading=!0,a.callbacks=[],a.err_callbacks=[]}var s=t.extend({url:i,type:"get",cache:!1,dataType:"json",success:t.proxy(function(i){a&&(a.loading=!1),this.sourceData=this.makeArray(i),t.isArray(this.sourceData)?(a&&(a.sourceData=this.sourceData,t.each(a.callbacks,function(){this.call()})),this.doPrepend(),e.call(this)):(n.call(this),a&&t.each(a.err_callbacks,function(){this.call()}))},this),error:t.proxy(function(){n.call(this),a&&(a.loading=!1,t.each(a.err_callbacks,function(){this.call()}))},this)},this.options.sourceOptions);t.ajax(s)}else this.sourceData=this.makeArray(i),t.isArray(this.sourceData)?(this.doPrepend(),e.call(this)):n.call(this)},doPrepend:function(){null!==this.options.prepend&&void 0!==this.options.prepend&&(t.isArray(this.prependData)||(t.isFunction(this.options.prepend)&&(this.options.prepend=this.options.prepend.call(this.options.scope)),this.options.prepend=t.fn.editableutils.tryParseJson(this.options.prepend,!0),"string"==typeof this.options.prepend&&(this.options.prepend={"":this.options.prepend}),this.prependData=this.makeArray(this.options.prepend)),t.isArray(this.prependData)&&t.isArray(this.sourceData)&&(this.sourceData=this.prependData.concat(this.sourceData)))},renderList:function(){},value2htmlFinal:function(){},makeArray:function(e){var n,i,o,a,r=[];if(!e||"string"==typeof e)return null;if(t.isArray(e)){a=function(t,e){return i={value:t,text:e},n++>=2?!1:void 0};for(var s=0;s
1&&(o.children&&(o.children=this.makeArray(o.children)),r.push(o))):r.push({value:o,text:o})}else t.each(e,function(t,e){r.push({value:t,text:e})});return r},option:function(t,e){this.options[t]=e,"source"===t&&(this.sourceData=null),"prepend"===t&&(this.prependData=null)}}),e.defaults=t.extend({},t.fn.editabletypes.abstractinput.defaults,{source:null,prepend:!1,sourceError:"Error when loading list",sourceCache:!0,sourceOptions:null}),t.fn.editabletypes.list=e}(window.jQuery),function(t){"use strict";var e=function(t){this.init("text",t,e.defaults)};t.fn.editableutils.inherit(e,t.fn.editabletypes.abstractinput),t.extend(e.prototype,{render:function(){this.renderClear(),this.setClass(),this.setAttr("placeholder")},activate:function(){this.$input.is(":visible")&&(this.$input.focus(),t.fn.editableutils.setCursorPosition(this.$input.get(0),this.$input.val().length),this.toggleClear&&this.toggleClear())},renderClear:function(){this.options.clear&&(this.$clear=t(''),this.$input.after(this.$clear).css("padding-right",24).keyup(t.proxy(function(e){if(!~t.inArray(e.keyCode,[40,38,9,13,27])){clearTimeout(this.t);var n=this;this.t=setTimeout(function(){n.toggleClear(e)},100)}},this)).parent().css("position","relative"),this.$clear.click(t.proxy(this.clear,this)))},postrender:function(){},toggleClear:function(){if(this.$clear){var t=this.$input.val().length,e=this.$clear.is(":visible");t&&!e&&this.$clear.show(),!t&&e&&this.$clear.hide()}},clear:function(){this.$clear.hide(),this.$input.val("").focus()}}),e.defaults=t.extend({},t.fn.editabletypes.abstractinput.defaults,{tpl:'',placeholder:null,clear:!0}),t.fn.editabletypes.text=e}(window.jQuery),function(t){"use strict";var e=function(t){this.init("textarea",t,e.defaults)};t.fn.editableutils.inherit(e,t.fn.editabletypes.abstractinput),t.extend(e.prototype,{render:function(){this.setClass(),this.setAttr("placeholder"),this.setAttr("rows"),this.$input.keydown(function(e){e.ctrlKey&&13===e.which&&t(this).closest("form").submit()})},activate:function(){t.fn.editabletypes.text.prototype.activate.call(this)}}),e.defaults=t.extend({},t.fn.editabletypes.abstractinput.defaults,{tpl:"",inputclass:"input-large",placeholder:null,rows:7}),t.fn.editabletypes.textarea=e}(window.jQuery),function(t){"use strict";var e=function(t){this.init("select",t,e.defaults)};t.fn.editableutils.inherit(e,t.fn.editabletypes.list),t.extend(e.prototype,{renderList:function(){this.$input.empty();var e=function(n,i){var o;if(t.isArray(i))for(var a=0;a",o),i[a].children))):(o.value=i[a].value,i[a].disabled&&(o.disabled=!0),n.append(t("