function _typeof(t){return(_typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function scrollact(t,e,i){i=i||function(){},0<$(t).size()&&(e||0==e||(e=5),e=$(window).height()*e*.1,$(window).scrollTop()+e+0>=$(t).offset().top&&($(t).hasClass("showd")||($(t).addClass("showd"),i())))}function tabdiv(i,n,o,s,r,a){o=o||"click",s=s||1,r=r||300,a=function(){},"object"!=_typeof(i)&&(i=$(i)),"object"!=_typeof(n)&&(n=$(n)),n.each(function(t,e){$(this).attr("idx",t)}),i.each(function(t,e){$(this).bind(o,function(){i.removeClass("now"),$(this).addClass("now"),1==s&&n.filter("[idx!='"+t+"']").stop(!0,!0).hide(),2==s&&n.filter("[idx!='"+t+"']").stop(!0,!0).fadeOut(r),3==s&&(n.filter("[idx!='"+t+"']").removeClass("act"),n.filter("[idx='"+t+"']").addClass("act")),3!=s&&(n.filter("[idx='"+t+"']").stop(!0,!0).fadeIn(r,function(){}),a($(this)))})}),(0==i.parent().find(".now").size()?i.eq(0):i.eq(i.parent().find(".now").index())).trigger(o)}!function n(o,s,r){function a(e,t){if(!s[e]){if(!o[e]){var i="function"==typeof require&&require;if(!t&&i)return i(e,!0);if(l)return l(e,!0);throw(i=new Error("Cannot find module '"+e+"'")).code="MODULE_NOT_FOUND",i}i=s[e]={exports:{}},o[e][0].call(i.exports,function(t){return a(o[e][1][t]||t)},i,i.exports,n,o,s,r)}return s[e].exports}for(var l="function"==typeof require&&require,t=0;ti?e.activeTargets:e.skippedTargets).push(t)})})}function d(){var t,e=0;for(u(e);s.some(function(t){return 0=l&&(p.push(x({type:"childList",target:e,addedNodes:[s],removedNodes:[s],nextSibling:s.nextSibling,previousSibling:s.previousSibling})),o--),m.b&&r.b&&y(p,s,r.b,m.f),m.a&&3===s.nodeType&&s.nodeValue!==r.a&&p.push(x({type:"characterData",target:s,oldValue:r.a})),m.g&&b(s,r)}function b(t,e){for(var i,n,o,s,r,a=t.childNodes,l=e.c,c=a.length,u=l?l.length:0,d=0,f=0,h=0;f
');var e=$(window),i=$("body"),n=$(".scrollbar-rails-x"),o=$(".scrollbar-thumb-x"),s=$(".scrollbar-rails-y"),r=$(".scrollbar-thumb-y"),a=t(),l=!1;function t(){var t={contWidth:e.width(),contHeight:e.height(),scrollWidth:i.outerWidth(!0),scrollHeight:i.outerHeight(!0),trackWidth:n.width(),trackHeight:s.height(),barWidth:0,barHeight:0,maxX:0,maxY:0,curX:i.scrollLeft(),curY:i.scrollTop()};return t.scrollWidth>t.contWidth?(t.barWidth=Math.round(t.contWidth/t.scrollWidth*t.trackWidth),t.maxX=t.scrollWidth-t.contWidth):(t.barWidth=t.trackWidth,t.maxX=0),t.scrollHeight>t.contHeight?(t.barHeight=Math.round(t.contHeight/t.scrollHeight*t.trackHeight),t.maxY=t.scrollHeight-t.contHeight):(t.barHeight=t.trackHeight,t.maxY=0),o.width(t.barWidth),r.height(t.barHeight),t.rateX=Math.min($.utils.is_number(t.curX/t.maxX)?t.curX/t.maxX:0,1),t.rateY=Math.min($.utils.is_number(t.curY/t.maxY)?t.curY/t.maxY:0,1),0$(window).height()+n?$(window).scrollTop()>n?$(e).hasClass(i)||$(e).addClass(i):$(e).hasClass(i)&&$(e).removeClass(i):o&&$(e).addClass(i),0s-$(window).height()?gsap.to(e,{duration:.2,y:s-$(window).height()-$(window).scrollTop()}):gsap.to(e,{duration:.2,y:0}))))}l.is_object(a)&&(a=[a]),l.is_array(a)&&(t(),$(window).on("load resize scroll",t))},backTop:function(t){$(t).on("click",function(){gsap.to(window,{scrollTo:0})})},htmlSize:function(e,i){function t(){var t=$(window).width()$(window).height()?$("body").removeClass("full-screen"):$("body").addClass("full-screen")}$("body").addClass("init-screen"),t(),$(window).on("load resize scroll",t)},unWinScroll:function(){$("body").addClass("lock-screen")},enWinScroll:function(){$("body").removeClass("lock-screen")},unSelect:function(t){$(t).attr("unselectable","on").css((o(t={"-moz-user-select":"-moz-none"},"-moz-user-select","none"),o(t,"-o-user-select","none"),o(t,"-khtml-user-select","none"),o(t,"-webkit-user-select","none"),o(t,"-ms-user-select","none"),o(t,"user-select","none"),t)).on("selectstart",function(){return!1})},enSelect:function(t){$(t).attr("unselectable","off").css((o(t={"-moz-user-select":"text"},"-moz-user-select","text"),o(t,"-o-user-select","text"),o(t,"-khtml-user-select","text"),o(t,"-webkit-user-select","text"),o(t,"-ms-user-select","text"),o(t,"user-select","text"),t)).off("selectstart")},init:function(t){var e=this;$(function(){e.placeholder(),e.objectFitPolyfill(),(e.is_true(t.htmlSize)||e.is_number(t.htmlSize))&&e.htmlSize(e.is_true(t.htmlSize)?750:t.htmlSize,320),e.contHeight(),e.horizontalNav(),e.getFullScreen(),e.backTop(t.backTop),e.scrollFade(t.scrollFade)})}},$.fn.xVideo=function(){var t=this,e=t.find(".video-js");if(0==t.length||0==e.length)return t;if(1'),t.control.play&&0==o.find(".audio-play").length&&(i+='
'),t.control.next&&0==o.find(".audio-next").length&&(i+='
'),$.utils.is_none(i)||0!=o.find(".audio-control").length||(e+='
'+i+"
");var n="";t.progress&&0==o.find(".audio-progress").length&&(n+='
'),i="",t.time.current&&0==o.find(".audio-current").length&&(i+='
'),t.time.duration&&0==o.find(".audio-duration").length&&(i+='
'),t.time.surplus&&0==o.find(".audio-surplus").length&&(i+='
'),$.utils.is_none(i)||0!=o.find(".audio-time").length||(n+='
'+i+"
"),$.utils.is_none(n)||(e+='
'+n+"
"),t.volume&&0==o.find(".audio-volume").length&&(e+='
'),$.utils.is_none(e)||o.addClass("ui").append(e)}(i.ui),$.utils.is_none(i.src)&&(i.src=[""],o.data("load",!0)),1==i.src.length&&o.find(".audio-next").addClass("disable"),o.find(".audio-prev").addClass("disable"),o.find(".audio-play").addClass("icon-media-buffer"),o.find(".audio-duration").text(c(0)),o.find(".audio-current").text(c(0)),o.find(".audio-surplus").text(c(0));var r=new Audio;r.autoplay=!$.utils.is_android,r.preload=i.preload,r.volume=0,r.loop=i.loop,r.src=i.src[0];var e=null;function a(){var t=r.currentTime||0;o.find(".audio-current").text(c(t)),o.find(".audio-surplus").text("-"+c(r.duration-t)),o.find(".audio-progress-bar").css("width",(t/r.duration*100||0)+"%")}function l(t){var e=[];if($.utils.is_object(t)){if($.utils.is_string(t.src))if(0==t.src.indexOf(".")){s=o.find(t.src);for(var i=0;i<$(t.src).length;i++)e.push(s.eq(i).data("src"));t.src=e}else t.src=[t.src];$.utils.is_object(t.ui)?($.utils.is_boolean(t.ui.control)&&(t.ui.control={play:t.ui.control,prev:t.ui.control,next:t.ui.control}),$.utils.is_boolean(t.ui.time)&&(t.ui.time={current:t.ui.time,duration:t.ui.time,surplus:t.ui.time})):$.utils.is_boolean(t.ui)&&(t.ui={control:{play:t.ui,prev:t.ui,next:t.ui},volume:t.ui,progress:t.ui,time:{current:t.ui,duration:t.ui,surplus:t.ui},error:t.ui})}else if($.utils.is_string(t))if(0==t.indexOf(".")){s=o.find(t);for(var n=0;n<$(t).length;n++)e.push(s.eq(n).data("src"));t={src:e}}else t={src:[t]};else $.utils.is_array(t)&&(t={src:t});return t}function c(t){var e=Math.floor(Math.round(t)/60)||0,t=Math.round(t)-60*e||0;return e+":"+(t<10?"0":"")+t}0'),$(n.appendTrack).append('
');var o=e.children(".scroll-cont"),s=$(n.appendTrack).children(".scroll-track-x"),r=s.children(".scroll-bar-x"),a=$(n.appendTrack).children(".scroll-track-y"),l=a.children(".scroll-bar-y"),c=0==r.width(),u=0==l.height(),d=null,f=!1;g();var h=m();o.on("mousewheel",function(t){n.preventDefault&&(0t.contWidth?(t.barWidth=Math.round(t.contWidth/t.scrollWidth*t.trackWidth),t.maxX=t.scrollWidth-t.contWidth):(t.barWidth=t.trackWidth,t.maxX=0),t.scrollHeight>t.contHeight?(t.barHeight=Math.round(t.contHeight/t.scrollHeight*t.trackHeight),t.maxY=t.scrollHeight-t.contHeight):(t.barHeight=t.trackHeight,t.maxY=0),c&&r.width(t.barWidth),u&&l.height(t.barHeight),t.rateX=Math.min($.utils.is_number(t.curX/t.maxX)?t.curX/t.maxX:0,1),t.rateY=Math.min($.utils.is_number(t.curY/t.maxY)?t.curY/t.maxY:0,1),0<\/script>'),"box"==o.info.type&&0==$("#mapboxapi").length&&$("body").append('