import{$ as t}from"./jquery-0QR8vrPd.js";import{a as c}from"./js.cookie-Cz0CWeBA.js";import{i as _}from"./svg_injector-A7CA9m4w.js";import"./_commonjsHelpers-B3tUAs5q.js";/**
  reframe.js - Reframe.js: responsive iframes for embedded content
  @version v4.0.2
  @link https://github.com/yowainwright/reframe.ts#readme
  @author Jeff Wainwright <yowainwright@gmail.com> (http://jeffry.in)
  @license MIT
**/function b(o,i){var n,l,a=document.querySelectorAll(o),m="js-reframe";"length"in a||(a=[a]);for(var d=0;d<a.length;d+=1){var e=a[d],v=e.className.split(" ").indexOf(m)!==-1;if(v||e.style.width.indexOf("%")>-1)return;var u=e.getAttribute("height")||e.offsetHeight,p=e.getAttribute("width")||e.offsetWidth,w=typeof u=="string"?parseInt(u):u,g=typeof p=="string"?parseInt(p):p,k=w/g*100,s=document.createElement("div");s.className=m;var f=s.style;f.position="relative",f.width="100%",f.paddingTop="".concat(k,"%");var r=e.style;r.position="absolute",r.width="100%",r.height="100%",r.left="0",r.top="0",(n=e.parentNode)===null||n===void 0||n.insertBefore(s,e),(l=e.parentNode)===null||l===void 0||l.removeChild(e),s.appendChild(e)}}window.$=t;document.documentElement.setAttribute("data-browser",navigator.userAgent);window.edit_mode||b('.body iframe:not([width="100%"])');_();t.expr[":"].external=function(o){return(o.hostname!=location.hostname||o.href.match(/\/documents\//))&&!o.href.match(/^mailto\:/)&&!o.href.match(/^javascript\:/)&&!o.href.match(/^$/)};t(".navigation a:external").attr("target","_blank").attr("rel","noopener");t("#back-to-top").length&&(t(window).scroll(function(){t(window).scrollTop()>150?t("#back-to-top").fadeIn():t("#back-to-top").fadeOut()}),t(document).ready(function(){t("#back-to-top").click(function(o){return o.preventDefault(),t("html, body").animate({scrollTop:0},"fast"),!1})}));t(document).ready(function(){!window.show_editor_login_form&&!window.edit_mode&&setTimeout(function(){t.ajax({url:window.page_path+"/sendVisitInfoAndRefreshCsrfToken()",type:"post",dataType:"json",data:{url:window.location.href,referer_url:document.referrer},success:function(o){t('meta[name="csrf-token"]').attr("content",o.token),t('input[name="_token"]').val(o.token),console.debug("Set CSRF token to "+o.token)},error:function(o,i,n){console.error(n)}})},500),c.get("jumpToScrollPosition")&&(console.debug("Setting scroll position to "+c.get("jumpToScrollPosition")),t(function(){window.scrollTo(0,c.get("jumpToScrollPosition")),c.remove("jumpToScrollPosition")}))});t.event.special.touchstart={setup:function(o,i,n){this.addEventListener("touchstart",n,{passive:!i.includes("noPreventDefault")})}};t.event.special.touchmove={setup:function(o,i,n){this.addEventListener("touchmove",n,{passive:!i.includes("noPreventDefault")})}};t("[data-link-menu]").change(function(){window.location.href=t(this).val()});window.relativeLink=function(o=null){location.href=window.page_path+(o?"/"+o:"")};const h=t("#modal");h.on("hidden.bs.modal",function(){h.find(".modal-content").empty()});
