(()=>{"use strict";const e=(e,t)=>{let o=null;return function(){window.clearTimeout(o),o=window.setTimeout((()=>{e.apply(this,arguments)}),t)}},t=async(e=0)=>{await new Promise((function(t){setTimeout((()=>{t()}),e)}))},o='[data-header-menu-ui="header"]',r='[data-header-menu-ui="menu"]',n='[data-header-menu-ui="header-bureau"]',a='[data-header-menu-ui="header-bureau-s-top"]',s='[data-header-menu-ui="header-bureau-inner"]',i='[data-header-layout="special"]',d='[data-header-bureau-layout="special"]',c='[data-header-layout="template-ag"]',l="pc",u="tablet",h="sp",m=521,y=961,f=window.matchMedia(`screen and (min-width: ${m}px)`),w=window.matchMedia(`screen and (min-width: ${y}px)`);let b;const g=()=>{b=w.matches?l:f.matches?u:h};g(),w.addEventListener("change",g),f.addEventListener("change",g);const p=()=>b,k=()=>{const e=document.querySelector(o),t=document.querySelector(n),r=document.querySelector(a),s=p();return s===h||s===u?e.offsetHeight+r.offsetHeight:t.offsetHeight},A=()=>!!document.querySelector(i)&&!!document.querySelector(d),L=()=>!!document.querySelector(c)&&!!document.querySelector(c);let S;const v=()=>{const e=k();document.body.style.setProperty("--metrotokyo-header-js-height",e+"px")},E=()=>{document.body.style.setProperty("--metrotokyo-header-js-inner-height",document.querySelector(s).offsetHeight+"px")},M=()=>{S=A()||L(),v(),S&&E(),(()=>{const t=document.querySelector(o),r=document.querySelector(n),a=e(S?()=>{v(),E()}:()=>{v()},200),s=new ResizeObserver(a);s.observe(t),s.observe(r)})()},T="FIXED",q="ABSOLUTE",C="SHOW",x="HIDE";let $,I,D,P,R,O,H=q,N=C;const _=e=>{if(window.MetroTokyo.Module.Scroll.isLock)return;const t=p(),o=t===h||t===u,r=window.scrollY;if("open"===R.dataset.headerMenuState)return;if("open"===O.dataset.headerMenuState)return;const n=k();if(H===q&&r>n?(H=T,O.dataset.headerPosition="fixed",P.dataset.headerPosition=o?"fixed":"absolute"):H===T&&r<=n&&(H=q,O.dataset.headerPosition="absolute",o&&(P.dataset.headerPosition="absolute")),r>$)N===C&&(N=x,O.removeAttribute("data-header-is-show"),o&&P.removeAttribute("data-header-is-show"));else{const e=2*n;N===x&&r>e?(N=C,O.setAttribute("data-header-is-show",""),o&&P.setAttribute("data-header-is-show","")):N===C&&r<e&&(N=x,O.removeAttribute("data-header-is-show"),o&&P.removeAttribute("data-header-is-show",""))}$=r},U=e=>{if(window.MetroTokyo.Module.Scroll.isLock)return;const t=p(),o=t===h||t===u,r=window.scrollY;if("open"===O.dataset.headerMenuState)return;const n=k();if(H===q&&r>n?(H=T,O.dataset.headerPosition="fixed",P.dataset.headerPosition="fixed"):H===T&&r<=n&&(H=q,O.dataset.headerPosition="absolute",P.dataset.headerPosition="absolute"),r>$)N===C&&(N=x,P.removeAttribute("data-header-is-show",""),O.removeAttribute("data-header-is-show"),o&&P.removeAttribute("data-header-is-show"));else{const e=2*n;N===x&&r>e?(N=C,O.setAttribute("data-header-is-show",""),P.setAttribute("data-header-is-show","")):N===C&&r<e&&(N=x,P.removeAttribute("data-header-is-show",""),O.removeAttribute("data-header-is-show",""))}$=r},B=()=>{P=document.querySelector(o),R=document.querySelector(r),O=document.querySelector(n),I=A(),D=L(),I||D?window.addEventListener("scroll",U,{passive:!0}):window.addEventListener("scroll",_,{passive:!0})},j=async e=>{document.body.querySelectorAll(`[data-accordion-trigger][aria-controls="${e}"]`).forEach((e=>{e.setAttribute("aria-expanded","true")}));const o=document.getElementById(e);o.hidden=!1;const r=o.scrollHeight;o.style.height="0px",await t(0),o.style.height=`${r}px`,o.dataset.accordionState="open"},W=async e=>{document.body.querySelectorAll(`[data-accordion-trigger][aria-controls="${e}"]`).forEach((e=>{e.setAttribute("aria-expanded","false")}));const o=document.getElementById(e);o.style.height=`${o.offsetHeight}px`,o.dataset.accordionState="close",await t(0),o.style.height="0px"},G=async e=>{document.body.querySelectorAll(`[data-accordion-trigger][data-accordion-group-id="${e}"]`).forEach((e=>{if("true"===e.getAttribute("aria-expanded"))return;const t=e.getAttribute("aria-controls");j(t)}))},K=async e=>{document.body.querySelectorAll(`[data-accordion-trigger][data-accordion-group-id="${e}"]`).forEach((e=>{if("false"===e.getAttribute("aria-expanded"))return;const t=e.getAttribute("aria-controls");W(t)}))},V=e=>{const t=e.target.closest("[data-accordion-trigger]"),o=e.target.closest("[data-accordion-close]");if(!t&&!o)return;if(o){const e=o.getAttribute("aria-controls");return void W(e)}const r=t.getAttribute("aria-controls");"false"===t.getAttribute("aria-expanded")?j(r):W(r)},Y=e=>{const t=e.target;"height"===e.propertyName&&t.dataset.accordionState&&("close"===t.dataset.accordionState&&(t.hidden=!0),t.style.height="")},z=()=>{document.body.addEventListener("click",V),document.body.addEventListener("transitionend",Y)},X=document.body&&document.body.classList&&document.body.classList.contains("has-edit-mode-menu"),F=(e(),'[data-tab-menu-ui="container"]'),J='[data-tab-menu-ui="track"]',Q='[data-tab-menu-ui="control"]',Z='[data-tab-menu-ui="prev"]',ee='[data-tab-menu-ui="next"]',te='[data-tab-menu-ui="tab"]',oe=e=>{const t=p();return Number(t===h||t===u?e.dataset.tabMenuScrollAmountS:e.dataset.tabMenuScrollAmountLg)},re=e=>{const t=e.querySelector(J),o=e.querySelector(Z),r=e.querySelector(ee);let n,a;(window.MetroTokyo.Config.MachineTranslationDirRtlLangList||[]).includes((()=>{const e=window.MetroTokyo.Config.MachineTranslationUserCode||"";return(new window.MetroTokyo.Class.CookieUtility).getValue(`${e}_TLANG`)})())?(n=Math.abs(Math.abs(t.scrollLeft)+t.clientWidth-t.scrollWidth)<=1,a=Math.abs(t.scrollLeft)<=1):(n=0===t.scrollLeft,a=Math.abs(t.scrollLeft+t.clientWidth-t.scrollWidth)<=1),n?n&&(o.disabled=!0):o.disabled=!1,a?a&&(r.disabled=!0):r.disabled=!1},ne=e=>{const t=e.querySelector(Q),o=e.querySelector(J),r=p();"sp"!==r&&"tablet"!==r?o.clientWidth===o.scrollWidth?t.hidden=!0:(t.hidden=!1,re(e)):t.hidden=!0},ae=e=>{if(X)return;const t=e.target.closest(J);t&&((e,t,o)=>{const{key:r}=e,n=t.querySelectorAll(o),a=[...n],s=o.map((e=>e+":focus")),i=t.querySelector(s),d=a.indexOf(i);"ArrowRight"!==r&&"Right"!==r||(e.preventDefault(),d===n.length-1?n[0].focus():n[d+1].focus()),"ArrowLeft"!==r&&"Left"!==r||(e.preventDefault(),0===d?n[n.length-1].focus():n[d-1].focus())})(e,t,[te])},se=e=>{const t=e.target.closest(Z),o=e.target.closest(ee);t&&(e=>{const t=e.target.closest(F).querySelector(J);t.scrollLeft=t.scrollLeft-oe(t)})(e),o&&(e=>{const t=e.target.closest(F).querySelector(J);t.scrollLeft=t.scrollLeft+oe(t)})(e)},ie=()=>{document.body.querySelectorAll(F).forEach((t=>{(t=>{const o=e(ne,200),r=new ResizeObserver((()=>{o(t)})),n=t.querySelector(J);r.observe(n)})(t),ne(t)})),document.body.addEventListener("click",se),document.body.addEventListener("keydown",ae),document.body.querySelectorAll(J).forEach((t=>{const o=t.closest(F),r=e(re,200);t.addEventListener("scroll",(()=>{r(o)}))}))},de=document.body&&document.body.classList&&document.body.classList.contains("has-edit-mode-menu"),ce='[data-tab-menu-justify-ui="track"]',le='[data-tab-menu-justify-ui="tab"]',ue=e=>{if(de)return;const t=e.target.closest(ce);t&&((e,t,o)=>{const{key:r}=e,n=t.querySelectorAll(o),a=[...n],s=o.map((e=>e+":focus")),i=t.querySelector(s),d=a.indexOf(i);"ArrowRight"!==r&&"Right"!==r||(e.preventDefault(),d===n.length-1?n[0].focus():n[d+1].focus()),"ArrowLeft"!==r&&"Left"!==r||(e.preventDefault(),0===d?n[n.length-1].focus():n[d-1].focus())})(e,t,[le])},he=()=>{document.body.addEventListener("keydown",ue)},me=document.body&&document.body.classList&&document.body.classList.contains("has-edit-mode-menu"),ye='[data-tablist-ui="container"]',fe='[data-tablist-ui="tablist"]',we='[data-tablist-ui="tab"]',be='[data-tablist-ui="tabpanel"]',ge=e=>{const t=e.querySelectorAll(be),o=e.querySelectorAll(we);t.forEach((e=>{e.hidden=!0})),o.forEach((e=>{if("true"===e.getAttribute("aria-selected")){const t=e.getAttribute("aria-controls");document.getElementById(t).hidden=!1}}))},pe=e=>{if(me)return;const t=e.target.closest(fe);t&&((e,t,o)=>{const{key:r}=e,n=t.querySelectorAll(o),a=[...n],s=o.map((e=>e+":focus")),i=t.querySelector(s),d=a.indexOf(i);"ArrowRight"!==r&&"Right"!==r||(e.preventDefault(),d===n.length-1?n[0].focus():n[d+1].focus()),"ArrowLeft"!==r&&"Left"!==r||(e.preventDefault(),0===d?n[n.length-1].focus():n[d-1].focus())})(e,t,[we])},ke=e=>{const t=e.target.closest(we);t&&(e=>{const t=e.closest(ye).querySelectorAll(we),o=e.closest(ye);t.forEach((e=>{e.setAttribute("aria-selected","false"),e.setAttribute("aria-expanded","false"),e.tabIndex=-1})),e.setAttribute("aria-selected","true"),e.setAttribute("aria-expanded","true"),e.tabIndex=0,ge(o)})(t)},Ae=()=>{document.body.querySelectorAll(ye).forEach((e=>{ge(e)})),document.body.addEventListener("click",ke),document.body.addEventListener("keydown",pe)},Le={isLock:!1,lockedElementIds:[],LOCK_CLASS_NAME:"scroll-lock",lock:function(e){if(!e)return this.isLock;return-1!==this.lockedElementIds.findIndex((t=>t===e))||(this.lockedElementIds.push(e),this.isLock=!!this.lockedElementIds.length,document.documentElement.classList.add(this.LOCK_CLASS_NAME)),this.isLock},unlock:function(e){if(!e)return this.isLock;const t=this.lockedElementIds.findIndex((t=>t===e));return-1!==t&&this.lockedElementIds.splice(t,1),this.isLock=!!this.lockedElementIds.length,this.isLock||document.documentElement.classList.remove(this.LOCK_CLASS_NAME),this.isLock},goTo:async function(e){return new Promise((t=>{const o=(e,t)=>{Math.abs(window.scrollY-t)<=1||window.innerHeight+window.scrollY>=document.body.offsetHeight?e():requestAnimationFrame((()=>o(e,t)))};try{const r=(()=>{if("number"==typeof e)return e;if("string"==typeof e){const t=document.getElementById(e);if(t)return t.offsetTop;throw new Error("Element with the specified ID was not found.")}if(e instanceof HTMLElement)return e.offsetTop;throw new Error("Invalid target specified for scrolling.")})();window.scrollTo({top:0===r?-9999:r,behavior:"smooth"}),o(t,r)}catch(e){t()}}))},init:function(){this.lockedElements=[],document.body.classList.remove(this.LOCK_CLASS_NAME),this.isLock=!!this.lockedElementIds.length}},Se=async e=>{const t=e.target.closest("main a");if(!t)return;if(t.origin!==window.location.origin)return;if(t.pathname!==window.location.pathname)return;if(t.search!==window.location.search)return;if(""===t.hash)return;const o=document.querySelector(t.hash);o&&(e.preventDefault(),window.scrollTo({top:o.getBoundingClientRect().top+window.scrollY,behavior:"smooth"}))},ve=e=>{const t=e.target.closest("[data-form-select-has-value]");if(!t)return;const o=t.value;t.dataset.formSelectHasValue=o?"true":"false"},Ee="data-metrotokyo-chain-link",Me=e=>{if(e.target.hasAttribute(`${Ee}`))return;const t=e.target.closest(`[${Ee}-root]`);if(!t)return;const o=t.dataset.metrotokyoChainLinkRoot;let r=""===o?(e=>{const t=e.querySelectorAll(`[${Ee}]`);return 1===t.length&&t[0]})(t):t.querySelector(`[${Ee}="${o}"]`);if(!r)return;"true"===r.getAttribute("aria-disabled")||(e.ctrlKey||e.metaKey?r.href&&window.open(r.href,"_blank"):r.click())},Te=()=>{document.body.addEventListener("click",Me,{passive:!1})};let qe;const Ce={attributes:!0,childList:!1,subtree:!1},xe=()=>{const e=document.querySelector("#wrapper"),t=e.getBoundingClientRect(),o=window.getComputedStyle(e).getPropertyValue("padding-left");document.body.style.setProperty("--metrotokyo-liferay-wrapper-view-top",`${t.top}px`),document.body.style.setProperty("--metrotokyo-liferay-wrapper-view-left",`${o}`)},$e=()=>{p()===l&&xe()},Ie=(e,t)=>{"class"===e[0].attributeName&&(clearTimeout(qe),qe=setTimeout((()=>{xe()}),1e3))},De=".j-server.com",Pe=["ar","ur","he","fa","ps","sd","ug","yi","dv","pr"],Re={rtl:"rtl",ltr:"ltr"},Oe=()=>{const e=(()=>{const e=window.MetroTokyo.Config.MachineTranslationUserCode||"";return(new window.MetroTokyo.Class.CookieUtility).getValue(`${e}_TLANG`)})();e&&(Pe.includes(e)?document.dir="rtl":document.dir="ltr")},He=()=>{const e=document.querySelectorAll("use"),t=(()=>{const e=document.getElementById("kdsoriginal");return e.origin||`${e.protocol}//${e.hostname}${e.port?":"+e.port:""}`})();e.forEach((e=>{const o=e.getAttribute("xlink:href");if(/https/.test(o))return;const[,r,n]=o.match("^([^#]*)(#[^]*)$");e.setAttribute("xlink:href",`https://${window.location.hostname}/${window.MetroTokyo.Config.MachineTranslationUserCode}/ns/tl.cgi/${t}${r}?SLANG=ja&TLANG=ur&XMODE=0&XCHARSET=UTF-8&XJSID=0${n}`)}))},Ne=()=>{const e=document.querySelectorAll("use"),t=(()=>{const e=document.querySelector("head > base").href||"";if(""===e)return"";const t=new URL(e);return`https%3a//${t.hostname}${t.port?"%3a"+t.port:""}`})(),o=window.location.href.match(/https:(\/\/[^/]*\/[^/]*\/[^/]*)/)[1]||"";e.forEach((e=>{const r=e.getAttribute("xlink:href");/https/.test(r)||e.setAttribute("xlink:href",`${o}/${t}${r}`)}))},_e=class{constructor(){const e={};document.cookie.split("; ").forEach((t=>{const[o,r]=t.split("=");e[o]=decodeURIComponent(r)})),this.cookies=e}getValue(e){return this.cookies[e]}};window.MetroTokyo=window.MetroTokyo||{},window.MetroTokyo.Module=window.MetroTokyo.Module||{},window.MetroTokyo.Class=window.MetroTokyo.Class||{},window.MetroTokyo.Config=window.MetroTokyo.Config||{},window.MetroTokyo.Common=window.MetroTokyo.Common||{},window.MetroTokyo.Page=window.MetroTokyo.Page||{};(()=>{window.MetroTokyo.Module.Accordion={open:j,close:W,openGroup:G,closeGroup:K},window.MetroTokyo.Module.Scroll=Le,window.MetroTokyo.Config.MachineTranslationDirRtlLangList=Pe,window.MetroTokyo.Config.MachineTranslationDomain=De,window.MetroTokyo.Config.MachineTranslationDirList=Re,window.MetroTokyo.Class.CookieUtility=_e;document.body&&document.body.classList.contains("has-edit-mode-menu")&&Ue()})();const Ue=()=>{const e=document.body&&document.body.classList.contains("has-edit-mode-menu");z(),ie(),he(),Ae(),e||(M(),B(),Te()),e&&(setTimeout((()=>{M(),B(),xe()}),2e3),(()=>{const e=document.body.querySelector("#wrapper");if(!e)return;window.addEventListener("resize",$e,{passive:!0}),new MutationObserver(Ie).observe(e,Ce)})()),document.body.addEventListener("click",Se,{passive:!1}),document.body.addEventListener("change",ve),(()=>{const e=document.querySelectorAll("section.portlet");e.length&&e.forEach((e=>{e.setAttribute("role","none")}))})(),(()=>{const e=document.querySelector("#main-content.layout-content.portlet-layout");e&&e.removeAttribute("role")})(),window.location.hostname.includes(De)&&(Oe(),document.documentElement.dataset.metrotokyoTranslated="true",He()),window.location.hostname.includes("zoomsight-sv2.jp")&&Ne()};window.addEventListener("DOMContentLoaded",Ue,{passive:!1,once:!0});const handlePublishButtonClick=()=>{const publishButton=document.querySelector("#_com_liferay_layout_content_page_editor_web_internal_portlet_ContentPageEditorPortlet_pageEditorToolbar > div > ul.end.navbar-nav > li:nth-child(5) > form > button");if(publishButton){publishButton.addEventListener("click",()=>{const bodyTag=document.querySelector("body");bodyTag.style.pointerEvents="none";bodyTag.oncontextmenu=()=>!1;bodyTag.onselectstart=()=>!1;bodyTag.onmousedown=()=>!1})}};window.addEventListener("load",()=>{handlePublishButtonClick()})})();(()=>{"use strict";let e=["body.has-control-menu.has-edit-mode-menu ul.end.navbar-nav li.nav-item .form-group.mb-0","body.has-control-menu.has-edit-mode-menu ul.navbar-nav.start li.nav-item button.btn.btn-monospaced.btn-sm.btn-secondary"],t=e.join(","),n=()=>document.body&&document.body.classList.contains("has-control-menu")&&document.body.classList.contains("has-edit-mode-menu"),o=()=>{if(!n())return;let e=document.querySelectorAll(t);e.length&&e.forEach(e=>{"none"!==e.style.display&&e.style.setProperty("display","none","important")})};o(),requestAnimationFrame(o),"loading"===document.readyState&&document.addEventListener("DOMContentLoaded",o,{once:!0});let a=!1,s=()=>{a||(a=!0,requestAnimationFrame(()=>{a=!1,o()}))};new MutationObserver(s).observe(document.documentElement,{childList:!0,subtree:!0});let r=()=>{if(!document.body){requestAnimationFrame(r);return}new MutationObserver(s).observe(document.body,{attributes:!0,attributeFilter:["class"]})};r()})();