PageSourceSearch

https://www.arcadis.cn/-/media/base-themes/arcadis-com-base-themes…/optimized-min.js?t=20240828T023712Z

js arcadis.cn collected 2026-09-30 22:43:58 UTC 12,532 bytes, 1 lines download raw bytes

1XA.component.accessibility=function(n){var t={},e=function(){return n("body").find("[tabindex]")},o=function(){t.indexedElements.eq(0).attr("tabindex","0")},s=function(){var i=n(document.activeElement),t=i.closest(".initialized");return t.length?t.attr("class").split(" ")[1]:""},i=function(t){var i=n(document.activeElement);return i.closest(t)},r=function(n,t){var i=t;n=="left"&&t.prev()?(t.attr("tabindex","-1"),i=t.prev()):n=="right"&&t.next()&&(t.attr("tabindex","-1"),i=t.next());i.attr("tabindex","0").trigger("click").focus()},u=function(n,t){var r=t.closest("li.item"),i=t,u=r.next(),f=r.prev();n=="down"&&u?(t.attr("tabindex","-1"),i=u):n=="up"&&f&&(t.attr("tabindex","-1"),i=f);i.find(".toggle-header").attr("tabindex","0").focus()},h=function(n){var t=n.next().length?n.next():n.prev();n.attr("tabindex","-1");t.trigger("click").attr("tabindex","0").focus()},f={tabs:function(n){var u=i("li.active");u&&(n==t.keys.right?r("right",u):n==t.keys.left&&r("left",u))},accordion:function(n){var r=i("div.toggle-header");r&&(n==t.keys.down?u("down",r):n==t.keys.up&&u("up",r))},flip:function(n){var r=i("[class*='Side']");r&&(n==t.keys.right||n==t.keys.left)&&h(r)}},c=function(n){var t=s();f[t]&&f[t](n)};return t.keys={end:35,home:36,left:37,up:38,right:39,down:40,"delete":46,enter:13,space:32},t.indexedElements=e(),t.watchEvents=function(){n(document).on("keyup",function(n){var t=n.keyCode;c(t)})},t.initInstance=function(){t.watchEvents();o()},t.init=function(){t.initInstance()},t}(jQuery,document);XA.register("accessibility",XA.component.accessibility);XA.component.accordions=function(n){function r(t){var i=n(t),r=n(t).find("img"),u=r.attr("src");u&&(i.parents(".accordion").addClass("accordion-image"),i.css({background:"url("+u+")","background-repeat":"no-repeat","background-size":"cover","background-position":"50% 100%"}),r.hide())}function u(t){var u=n(t).width(),i=n(t).find(".item"),r=0;_.each(i,function(f){var s=n(f).find(".toggle-content"),e=n(f).find(".toggle-header"),o=u-i.length*e.outerWidth();n(f).hasClass("active")&&n(f).css({width:o});s.css({width:n(t).hasClass("accordion-image")?o+e.outerWidth():o-e.outerWidth()-parseInt(e.css("padding"))});n(f).find(".toggle-content").height()>r&&(r=n(f).find(".toggle-content").height())})}function f(n){var t=n[0].id;return n.length>0&&t!=""?t.toLocaleLowerCase():null}function e(f,e){var s="click",o=f.find(".toggle-header").filter(function(t,i){return n(i).closest(".accordion").is(f)});e.expandOnHover&&(s+=" mouseenter");o.on("mouseover",i.focus);o.on("mouseleave",i.blur);o.on("focus",i.focus);o.on("blur",i.blur);o.on("keyup",function(t){(t.keyCode==13||t.keyCode==32)&&n(this).click()});f.hasClass("accordion-horizontal")&&(n(document).ready(function(){u(f)}),_.each(o,function(n){r(n)}));o.on(s,function(){var r=n(this),i=r.closest(".item"),o=r.parents(".accordion"),u=i.find(".toggle-content:first"),f=i.siblings(),s=f.find(".toggle-content");o.hasClass("accordion-horizontal")?t.animateHorizontal.call(this,e):(e.canOpenMultiple||(f.removeClass("active"),s.stop().slideUp({duration:e.speed,easing:e.easing})),i.toggleClass("active"),e.canToggle?u.slideToggle({duration:e.speed,easing:e.easing}):u.slideDown({duration:e.speed,easing:e.easing}))})}var t={},i={focus:function(){n(this).addClass("show")},blur:function(){n(this).removeClass("show")}};return t.animateHorizontal=function(t){var r=n(this).parents(".accordion"),i=n(this).closest(".item"),s=i.find(".toggle-header"),f=i.find(".toggle-content"),h=r.find(".item"),e=i.siblings(),c=e.find(".toggle-content"),u,o;i.toggleClass("active");e.removeClass("active");e.stop(!0).animate({width:0},t.speed,t.easing,function(){c.css({display:"none"})});i.hasClass("active")?(u=r.hasClass("accordion-image")?f.outerWidth():r.width()-((h.length-1)*i.outerWidth()+2),o=r.hasClass("accordion-image")?u:u-s.outerWidth(),i.stop(!0).animate({width:u},t.speed,t.easing,function(){}),f.css({width:o,display:"block"})):i.stop(!0).animate({width:0},t.speed,t.easing,function(){f.css({display:"none"})})},t.initInstance=function(t,i){var u,h,o,r,s;if(t.find(".toggle-header").eq(0).attr("tabindex","0"),t.hasClass("toggle")&&n.extend(i,{canToggle:!0}),t.find(".toggle-content").hide(),u=XA.queryString.getQueryParam(f(t)),u!=null)for(h=u.split(","),o=t.find("ul").first().children(),r=0;r<o.length;r++)s=o[r],h.indexOf(r+"")>-1&&(n(s).addClass("active"),n(s).find(".toggle-content").show());else i.expandedByDefault&&(t.find("li:first-child").addClass("active"),t.find("li:first-child").find(".toggle-content").show());e(t,i)},t.init=function(){var i=n(".accordion:not(.initialized)");i.each(function(){var r=n(this).data("properties"),i=n(this);t.initInstance(i,r);i.addClass("initialized")})},t}(jQuery);XA.register("accordions",XA.component.accordions);XA.component.archive=function(n){var t={},i=function(t){var i=n(t.target);i.siblings("ul").toggle();i.toggleClass("opened")};return t.initInstance=function(n){var t=n.find(".group-header");t.on("click",i)},t.init=function(){for(var u=n(".sxa-archive:not(.initialized)"),i,r=0,f=u.length;r<f;r++)i=n(u[r]),t.initInstance(i),i.addClass("initialized")},t}(jQuery,_);XA.register("archive",XA.component.archive);XA.component.breadcrumb=function(n){function t(n){this.breadcrumb=n;this.hideHistory=[];this.hideHistory.elems=[];this.hideHistory.widths=[]}var i={};return t.prototype.getElements=function(n){var t=[];return n.find("li").each(function(){t.push(this)}),t},t.prototype.calculateListElementsWidth=function(t){var i=0;return t.find(">li").each(function(){i+=n(this).width()}),i},t.prototype.calculateWidth=function(){var t=this,r=n(t.breadcrumb).find("nav>ol"),o=r.width(),f=this.calculateListElementsWidth(r),i=this.getElements(r),e,u=0,h=t.hideHistory.widths[t.hideHistory.widths.length-1],s;for(o>f+h&&(s=t.hideHistory.elems.pop(),t.hideHistory.widths.pop(),n(s).removeClass("item-hide"));o<f&&i.length>2;)u=Math.round(i.length/2)-1,e=n(i[u]),t.hideHistory.elems.push(i[u]),t.hideHistory.widths.push(e.width()),e.addClass("item-hide"),f=t.calculateListElementsWidth(r),i.splice(u,1)},t.prototype.init=function(){var t=this;t.calculateWidth();n(window).resize(function(){t.calculateWidth()})},t.prototype.makeNavigation=function(){var t=n(this.breadcrumb),i=t.find("li > ol");i.length>0&&t.addClass("breadcrumb-navigation")},i.initInstance=function(i){var r=new t(i),u=n(i);u.hasClass("breadcrumb-hide")?r.init():r.makeNavigation()},i.init=function(){var t=n(".breadcrumb:not(.initialized)");t.each(function(){i.initInstance(n(this));n(this).addClass("initialized")})},i}(jQuery,document);XA.register("breadcrumb",XA.component.breadcrumb);XA.component.parallax=function(n,t){function r(){return n(window).width()<768}function u(i){function o(){if(e)return!1;var t=n(window).scrollTop();f<=t+s&&f+h>=t&&u.css("background-position","50% "+Math.round((f-t)*3/8)+"px")}var u=i.children(".component-content"),s=n(window).height(),f=u[0].offsetTop,h=u[0].offsetHeight,e=r();o();n(document).on("scroll",t.throttle(o,10));n(window).on("resize",t.throttle(function(){e=r();e?u.css("background-position","50% 0"):o()},150))}var i={};return i.initInstance=function(n){u(n)},i.init=function(){n(".parallax-background:not(.initialized)").each(function(){i.initInstance(n(this));n(this).addClass("initialized")})},i}(jQuery,_);XA.register("parallax-background",XA.component.parallax);XA.component.overlay=function(n){function o(){if(s.indexOf("sc_mode=preview")>-1)return!0;var t=n("#hdPageMode");return t.length>0&&t.attr("value")=="preview"}function y(){if(s.indexOf("sc_mode=edit")>-1)return!0;var t=n("#hdPageMode");return t.length>0&&t.attr("value")=="edit"}function p(){return n("#wrapper").hasClass("overlay-page")}function w(){return n(".overlay-source").length}function b(n){var t=n.split("?")[1],u=[],i,r;
1if(t!=undefined)for(t=t.split("&"),r=0;r<t.length;r++)i=t[r].split("="),u.push(i[1]),u[i[0]]=i[1];return u}function k(n){var t={};return n.width!==null&&(t.width=n.width),n.height!==null&&(t.height=n.height),t}function d(n){return n.indexOf(a)>-1?!0:!1}function l(t){var i=t.split("?")[0].split(".").pop();return n.inArray(i,["gif","png","jpg","jpeg"])>-1?!0:!1}function g(i,u){var f=u.find(".overlay-inner"),e=u.find(".component-content"),c=b(i),a=d(i),s=k(c),h;e.addClass("overlayFullWidth");f.removeAttr("style");a?l(i)?(f.empty().append(n("<img>",{src:i})),f.css(s),e.removeClass("overlayFullWidth"),r(u)):i.indexOf("overlaytype=iframe")>-1?(f.empty().append(n("<iframe>",{src:i,style:"width: 100%; height: 100%"})),f.css(s),r(u)):(o()&&(h="cf_overlay=1",i=i.replace("sitecore/shell/"),i+=(i.indexOf("?")==-1?"?":"&")+h),n.get(i,function(i){var o=n(i).before().first();t.resizeOverlay(f,e,{width:o.attr("data-width"),height:o.data("height"),percent:o.data("percent")});f.empty().append(i);XA.init();r(u)})):(l(i)?f.empty().append(n("<img>",{src:i})):f.empty().append(n("<iframe >",{src:i,style:"width: 100%; height: 100%"})),f.css(s),r(u))}function nt(n){n.css({opacity:1}).show()}function r(t){var u,s,r;return t.show().animate({opacity:1}),n("#wrapper").addClass("aria-hidden"),e=document.activeElement,u=t.find(".overlay-close"),setTimeout(function(){u.focus()},0),s=t.find(".overlay-inner"),s.blur(function(n){n.preventDefault();n.stopPropagation();setTimeout(function(){u.focus()},0)}),r=s.find(v),r=Array.prototype.slice.call(r),i=r[0],f=r[r.length-1],i.focus(),(o()||y())&&t.find("> .component-content").css({top:200,transform:"translate(-50%, 0)"}),t}function tt(t){n("#wrapper").removeClass("aria-hidden");var i=t.find(".overlay-inner");return t.animate({opacity:0}
1,function(){if(t.hide(),i.empty(),mejs)for(var r in mejs.players)n("#"+mejs.players[r].id).parents(".overlay").length==1&&(n("#"+mejs.players[r].id+" video").attr("src",""),mejs.players[r].remove(),mejs.players.splice(r,1))}),t}function it(){n("body").append("<div class='overlay-wrapper'><div class='overlay component'><div class='component-content' role='dialog'><div class='overlay-inner'><\/div><div class='overlay-close' role='button' aria-label='Close dialog'><\/div><\/div><\/div><\/div>")}var t={},s=window.location.href,a=location.host,h,u=!1,c=100,v='a[href], area[href], input:not([disabled]), select:not([disabled]), textarea:not([disabled]), button:not([disabled]), iframe, object, embed, [tabindex="0"], [contenteditable]',i,f,e;return t.resizeOverlay=function(t,i,r){var f="px",u={width:"",height:""},e=n(window).height();r.percent?(f="%",t.addClass("overlay-percent")):t.removeClass("overlay-percent");r.width&&(u.width=r.width+f);r.height&&(u.height=r.height+f);u["max-height"]=e-c-.1*e+"px";i.css(u)},t.initInstance=function(n,t,i){n.on("click",function(n){var f,r,u;for(n.preventDefault(),n.stopPropagation(),nt(t,i),f=this.href,g(f,t),r=this.href.split("/"),u=0;u<=r.length;u++)if(h=r.pop(),h.length!=0)break})},t.init=function(){var r,a,v,y,h,l,s,b;if(!u&&w()&&it(),p()){l=n(".overlay-page");r=l.children(".component-content");s=n("#spnOverlay");b=r.children(".overlay-inner");t.resizeOverlay(b,r,{width:r.data("width"),height:r.data("height"),percent:r.data("percent")});r.on("click",function(n){n.stopPropagation()});l.on("click",function(){o()&&(location.href=location.href.replace("sc_mode=preview","sc_mode=edit"))})}if(s=n(".overlay-wrapper > .overlay"),r=s.find(".component-content"),a=n(".overlay-source a:not(.initialized), a.overlay-source:not(.initialized)"),v=n(".overlay-inner"),y=s.find(".overlay-close"),h=function(){tt(s);v.off("blur");setTimeout(function(){e!=null&&e.focus()},0)},!u){r.on("click",function(n){n.stopPropagation()});s.on("click",function(){h()});y.on("click",function(n){n.preventDefault();h()});n("body").keydown(function(n){n.keyCode===9&&(n.shiftKey?document.activeElement===i&&(n.preventDefault(),f.focus()):document.activeElement===f&&(n.preventDefault(),i.focus()));n.keyCode===27&&(n.stopPropagation(),h())});n(window).on("resize",function(){var t=n(window).height();t=t-c-.1*t;r.css("max-height",t+"px")});u=!0}a.each(function(){t.initInstance(n(this),s,r);n(this).addClass("initialized")})},t}(jQuery);XA.register("overlay",XA.component.overlay);[].forEach.call(document.querySelectorAll(".search-results.overlay-source"),function(n){XA.dom.observeDOM(n,function(){XA.component.overlay.init()})});XA.component.snippet=function(n){var t={},i;return t.initInstance=function(){},t.init=function(){var r=n(".snippet:not(.initialized)");r.each(function(){var r=n(this).find(".snippet-inner");i=n(this);t.initInstance(i,r);n(this).addClass("initialized")})},t}(jQuery);XA.register("snippet",XA.component.snippet)

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.