PageSourceSearch

https://www.lm.gov.lv/sites/default/files/js/js_kejriutNRGpQViz3pJ…OVoNq8R8kfOByTijO8216PcMp1E12IanICvwLhRE9Xw

js lm.gov.lv collected 2026-09-24 09:24:44 UTC 527,803 bytes, 75 lines download raw bytes

1/* @license GPL-2.0-or-later https://www.drupal.org/licensing/faq */
2Drupal.debounce=function(func,wait,immediate){let timeout;let result;return function(...args){const context=this;const later=function(){timeout=null;if(!immediate)result=func.apply(context,args);};const callNow=immediate&&!timeout;clearTimeout(timeout);timeout=setTimeout(later,wait);if(callNow)result=func.apply(context,args);return result;};};;
3(function($,Drupal,debounce){const cache={right:0,left:0,bottom:0,top:0};const cssVarPrefix='--drupal-displace-offset';const documentStyle=document.documentElement.style;const offsetKeys=Object.keys(cache);const offsetProps={};offsetKeys.forEach((edge)=>{offsetProps[edge]={enumerable:true,get(){return cache[edge];},set(value){if(value!==cache[edge])documentStyle.setProperty(`${cssVarPrefix}-${edge}`,`${value}px`);cache[edge]=value;}};});const offsets=Object.seal(Object.defineProperties({},offsetProps));function getRawOffset(el,edge){const $el=$(el);const documentElement=document.documentElement;let displacement=0;const horizontal=edge==='left'||edge==='right';let placement=$el.offset()[horizontal?'left':'top'];placement-=window[`scroll${horizontal?'X':'Y'}`]||document.documentElement[`scroll${horizontal?'Left':'Top'}`]||0;switch(edge){case 'top':displacement=placement+$el.outerHeight();break;case 'left':displacement=placement+$el.outerWidth();break;case 'bottom':displacement=documentElement.clientHeight-placement;break;case 'right':displacement=documentElement.clientWidth-placement;break;default:displacement=0;}return displacement;}function calculateOffset(edge){let edgeOffset=0;const displacingElements=document.querySelectorAll(`[data-offset-${edge}]`);const n=displacingElements.length;for(let i=0;i<n;i++){const el=displacingElements[i];if(el.style.display==='none')continue;let displacement=parseInt(el.getAttribute(`data-offset-${edge}`),10);if(isNaN(displacement))displacement=getRawOffset(el,edge);edgeOffset=Math.max(edgeOffset,displacement);}return edgeOffset;}function displace(broadcast=true){const newOffsets={};offsetKeys.forEach((edge)=>{newOffsets[edge]=calculateOffset(edge);});offsetKeys.forEach((edge)=>{offsets[edge]=newOffsets[edge];});if(broadcast)$(document).trigger('drupalViewportOffsetChange',offsets);return offsets;}Drupal.behaviors.drupalDisplace={attach(){if(this.displaceProcessed)return;this.displaceProcessed=true;$(window).on('resize.drupalDisplace',debounce(displace,200));}};Drupal.displace=displace;Object.defineProperty(Drupal.displace,'offsets',{value:offsets,writable:false});Drupal.displace.calculateOffset=calculateOffset;})(jQuery,Drupal,Drupal.debounce);;
4(($,Drupal,{isTabbable})=>{$.extend($.expr[':'],{tabbable(element){Drupal.deprecationError({message:'The :tabbable selector is deprecated in Drupal 9.2.0 and will be removed in Drupal 11.0.0. Use the core/tabbable library instead. See https://www.drupal.org/node/3183730'});return isTabbable(element);}});})(jQuery,Drupal,window.tabbable);;
5(($)=>{let cachedScrollbarWidth=null;const {max,abs}=Math;const regexHorizontal=/left|center|right/;const regexVertical=/top|center|bottom/;const regexOffset=/[+-]\d+(\.[\d]+)?%?/;const regexPosition=/^\w+/;const _position=$.fn.position;function getOffsets(offsets,width,height){return [parseFloat(offsets[0])*(typeof offsets[0]==='string'&&offsets[0].endsWith('%')?width/100:1),parseFloat(offsets[1])*(typeof offsets[1]==='string'&&offsets[1].endsWith('%')?height/100:1)];}function parseCss(element,property){return parseInt(window.getComputedStyle(element)[property],10)||0;}function getDimensions(elem){const raw=elem[0];if(raw.nodeType===9)return {width:elem.width(),height:elem.height(),offset:{top:0,left:0}};if(!!raw&&raw===raw.window)return {width:elem.width(),height:elem.height(),offset:{top:elem.scrollTop(),left:elem.scrollLeft()}};if(raw.preventDefault)return {width:0,height:0,offset:{top:raw.pageY,left:raw.pageX}};return {width:elem.outerWidth(),height:elem.outerHeight(),offset:elem.offset()};}const collisions={fit:{left(position,data){const {within}=data;const withinOffset=within.isWindow?within.scrollLeft:within.offset.left;const outerWidth=within.width;const collisionPosLeft=position.left-data.collisionPosition.marginLeft;const overLeft=withinOffset-collisionPosLeft;const overRight=collisionPosLeft+data.collisionWidth-outerWidth-withinOffset;let newOverRight;if(data.collisionWidth>outerWidth)if(overLeft>0&&overRight<=0){newOverRight=position.left+overLeft+data.collisionWidth-outerWidth-withinOffset;position.left+=overLeft-newOverRight;}else if(overRight>
50&&overLeft<=0)position.left=withinOffset;else if(overLeft>overRight)position.left=withinOffset+outerWidth-data.collisionWidth;else position.left=withinOffset;else if(overLeft>0)position.left+=overLeft;else if(overRight>0)position.left-=overRight;else position.left=max(position.left-collisionPosLeft,position.left);},top(position,data){const {within}=data;const withinOffset=within.isWindow?within.scrollTop:within.offset.top;const outerHeight=data.within.height;const collisionPosTop=position.top-data.collisionPosition.marginTop;const overTop=withinOffset-collisionPosTop;const overBottom=collisionPosTop+data.collisionHeight-outerHeight-withinOffset;let newOverBottom;if(data.collisionHeight>outerHeight)if(overTop>0&&overBottom<=0){newOverBottom=position.top+overTop+data.collisionHeight-outerHeight-withinOffset;position.top+=overTop-newOverBottom;}else if(overBottom>0&&overTop<=0)position.top=withinOffset;else if(overTop>overBottom)position.top=withinOffset+outerHeight-data.collisionHeight;else position.top=withinOffset;else if(overTop>0)position.top+=overTop;else if(overBottom>0)position.top-=overBottom;else position.top=max(position.top-collisionPosTop,position.top);}},flip:{left(position,data){const {within}=data;const withinOffset=within.offset.left+within.scrollLeft;const outerWidth=within.width;const offsetLeft=within.isWindow?within.scrollLeft:within.offset.left;const collisionPosLeft=position.left-data.collisionPosition.marginLeft;const overLeft=collisionPosLeft-offsetLeft;const overRight=collisionPosLeft+data.collisionWidth-outerWidth-offsetLeft;const myOffset=data.my[0]==='left'?-data.elemWidth:data.my[0]==='right'?data.elemWidth:0;const atOffset=data.at[0]==='left'?data.targetWidth:data.at[0]==='right'?-data.targetWidth:0;const offset=-2*data.offset[0];let newOverRight;let newOverLeft;if(overLeft<0){newOverRight=position.left+myOffset+atOffset+offset+data.collisionWidth-outerWidth-withinOffset;if(newOverRight<0||newOverRight<abs(overLeft))position.left+=myOffset+atOffset+offset;}else{if(overRight>0){newOverLeft=position.left-data.collisionPosition.marginLeft+myOffset+atOffset+offset-offsetLeft;if(newOverLeft>0||abs(newOverLeft)<overRight)position.left+=myOffset+atOffset+offset;}}},top(position,data){const {within}=data;const withinOffset=within.offset.top+within.scrollTop;const outerHeight=within.height;const offsetTop=within.isWindow?within.scrollTop:within.offset.top;const collisionPosTop=position.top-data.collisionPosition.marginTop;const overTop=collisionPosTop-offsetTop;const overBottom=collisionPosTop+data.collisionHeight-outerHeight-offsetTop;const top=data.my[1]==='top';const myOffset=top?-data.elemHeight:data.my[1]==='bottom'?data.elemHeight:0;const atOffset=data.at[1]==='top'?data.targetHeight:data.at[1]==='bottom'?-data.targetHeight:0;const offset=-2*data.offset[1];let newOverTop;let newOverBottom;if(overTop<0){newOverBottom=position.top+myOffset+atOffset+offset+data.collisionHeight-outerHeight-withinOffset;if(newOverBottom<0||newOverBottom<abs(overTop))position.top+=myOffset+atOffset+offset;}else{if(overBottom>0){newOverTop=position.top-data.collisionPosition.marginTop+myOffset+atOffset+offset-offsetTop;if(newOverTop>0||abs(newOverTop)<overBottom)position.top+=myOffset+atOffset+offset;}}}},flipfit:{left(...args){collisions.flip.left.apply(this,args);collisions.fit.left.apply(this,args);},top(...args){collisions.flip.top.apply(this,args);collisions.fit.top.apply(this,args);}}};$.position={scrollbarWidth(){if(cachedScrollbarWidth!==undefined)return cachedScrollbarWidth;const div=$('<div '+"style='display:block;position:absolute;width:50px;height:50px;overflow:hidden;'>"+"<div style='height:100px;width:auto;'></div></div>");const innerDiv=div.children()[0];$('body').append(div);const w1=innerDiv.offsetWidth;div[0].style.overflow='scroll';let w2=innerDiv.offsetWidth;if(w1===w2)w2=div[0].clientWidth;div.remove();cachedScrollbarWidth=w1-w2;return cachedScrollbarWidth;},getScrollInfo(within){const overflowX=within.isWindow||within.isDocument?'':window.getComputedStyle(within.element[0])['overflow-x'];const overflowY=within.isWindow||within.isDocument?'':window.getComputedStyle(within.element[0])['overflow-y'];const hasOverflowX=overflowX==='scroll'||(overflowX==='auto'&&within.width<within.element[0].scrollWidth);const hasOverflowY=overflowY==='scroll'||(overflowY==='auto'&&within.height<within.element[0].scrollHeight);return {width:hasOverflowY?$.position.scrollbarWidth():0,height:hasOverflowX?$.position.scrollbarWidth():0};},getWithinInfo(element){const withinElement=$(element||window);const isWindow=!!withinElement[0]&&withinElement[0]===withinElement[0].window;const isDocument=!!withinElement[0]&&withinElement[0].nodeType===9;const hasOffset=!isWindow&&!isDocument;return {element:withinElement,isWindow,isDocument,offset:hasOffset?$(element).offset():{left:0,top:0},scrollLeft:withinElement.scrollLeft(),scrollTop:withinElement.scrollTop(),width:withinElement.outerWidth(),height:withinElement.outerHeight()};}};$.fn.position=function(options){if(!options||!options.of)return _position.apply(this,arguments);options=$.extend({},options);const within=$.position.getWithinInfo(options.within);const scrollInfo=$.position.getScrollInfo(within);const collision=(options.collision||'flip').split(' ');const offsets={};const target=typeof options.of==='string'?$(document).find(options.of):$(options.of);const dimensions=getDimensions(target);const targetWidth=dimensions.width;const targetHeight=dimensions.height;const targetOffset=dimensions.offset;if(target[0].preventDefault)options.at='left top';const basePosition=$.extend({},targetOffset);$.each(['my','at'],function(){let pos=(options[this]||'').split(' ');
5if(pos.length===1)pos=regexHorizontal.test(pos[0])?pos.concat(['center']):regexVertical.test(pos[0])?['center'].concat(pos):['center','center'];pos[0]=regexHorizontal.test(pos[0])?pos[0]:'center';pos[1]=regexVertical.test(pos[1])?pos[1]:'center';const horizontalOffset=regexOffset.exec(pos[0]);const verticalOffset=regexOffset.exec(pos[1]);offsets[this]=[horizontalOffset?horizontalOffset[0]:0,verticalOffset?verticalOffset[0]:0];options[this]=[regexPosition.exec(pos[0])[0],regexPosition.exec(pos[1])[0]];});if(collision.length===1)collision[1]=collision[0];if(options.at[0]==='right')basePosition.left+=targetWidth;else{if(options.at[0]==='center')basePosition.left+=targetWidth/2;}if(options.at[1]==='bottom')basePosition.top+=targetHeight;else{if(options.at[1]==='center')basePosition.top+=targetHeight/2;}const atOffset=getOffsets(offsets.at,targetWidth,targetHeight);basePosition.left+=atOffset[0];basePosition.top+=atOffset[1];return this.each(function(){let using;const elem=$(this);const elemWidth=elem.outerWidth();const elemHeight=elem.outerHeight();const marginLeft=parseCss(this,'marginLeft');const marginTop=parseCss(this,'marginTop');const collisionWidth=elemWidth+marginLeft+parseCss(this,'marginRight')+scrollInfo.width;const collisionHeight=elemHeight+marginTop+parseCss(this,'marginBottom')+scrollInfo.height;const position=$.extend({},basePosition);const myOffset=getOffsets(offsets.my,elem.outerWidth(),elem.outerHeight());if(options.my[0]==='right')position.left-=elemWidth;else{if(options.my[0]==='center')position.left-=elemWidth/2;}if(options.my[1]==='bottom')position.top-=elemHeight;else{if(options.my[1]==='center')position.top-=elemHeight/2;}position.left+=myOffset[0];position.top+=myOffset[1];const collisionPosition={marginLeft,marginTop};$.each(['left','top'],function(i,dir){if(collisions[collision[i]])collisions[collision[i]][dir](position,{targetWidth,targetHeight,elemWidth,elemHeight,collisionPosition,collisionWidth,collisionHeight,offset:[atOffset[0]+myOffset[0],atOffset[1]+myOffset[1]],my:options.my,at:options.at,within,elem});});if(options.using)using=function(props){const left=targetOffset.left-position.left;const right=left+targetWidth-elemWidth;const top=targetOffset.top-position.top;const bottom=top+targetHeight-elemHeight;const feedback={target:{element:target,left:targetOffset.left,top:targetOffset.top,width:targetWidth,height:targetHeight},element:{element:elem,left:position.left,top:position.top,width:elemWidth,height:elemHeight},horizontal:right<0?'left':left>0?'right':'center',vertical:bottom<0?'top':top>0?'bottom':'middle'};if(targetWidth<elemWidth&&abs(left+right)<targetWidth)feedback.horizontal='center';if(targetHeight<elemHeight&&abs(top+bottom)<targetHeight)feedback.vertical='middle';if(max(abs(left),abs(right))>max(abs(top),abs(bottom)))feedback.important='horizontal';else feedback.important='vertical';options.using.call(this,props,feedback);};elem.offset($.extend(position,{using}));});};if(!$.hasOwnProperty('ui'))$.ui={};$.ui.position=collisions;})(jQuery);;
6(function($,Drupal,once){if(once('drupal-dialog-deprecation-listener','html').length){const eventSpecial={handle($event){const $element=$($event.target);const event=$event.originalEvent;const dialog=event.dialog;const dialogArguments=[$event,dialog,$element,event?.settings];$event.handleObj.handler.apply(this,dialogArguments);}};$.event.special['dialog:beforecreate']=eventSpecial;$.event.special['dialog:aftercreate']=eventSpecial;$.event.special['dialog:beforeclose']=eventSpecial;$.event.special['dialog:afterclose']=eventSpecial;const listenDialogEvent=(event)=>{const windowEvents=$._data(window,'events');const isWindowHasDialogListener=windowEvents[event.type];if(isWindowHasDialogListener)Drupal.deprecationError({message:`jQuery event ${event.type} is deprecated in 10.3.0 and is removed from Drupal:12.0.0. See https://www.drupal.org/node/3422670`});};['dialog:beforecreate','dialog:aftercreate','dialog:beforeclose','dialog:afterclose'].forEach((e)=>window.addEventListener(e,listenDialogEvent));}})(jQuery,Drupal,once);;
7class DrupalDialogEvent extends Event{constructor(type,dialog,settings=null){super(`dialog:${type}`,{bubbles:true});this.dialog=dialog;this.settings=settings;}}(function($,Drupal,drupalSettings,bodyScrollLock){drupalSettings.dialog={autoOpen:true,dialogClass:'',buttonClass:'button',buttonPrimaryClass:'button--primary',close(event){Drupal.dialog(event.target).close();Drupal.detachBehaviors(event.target,null,'unload');}};Drupal.dialog=function(element,options){let undef;const $element=$(element);const domElement=$element.get(0);const dialog={open:false,returnValue:undef};function openDialog(settings){settings=$.extend({},drupalSettings.dialog,options,settings);const event=new DrupalDialogEvent('beforecreate',dialog,settings);domElement.dispatchEvent(event);$element.dialog(event.settings);dialog.open=true;if(event.settings.modal)bodyScrollLock.lock(domElement);domElement.dispatchEvent(new DrupalDialogEvent('aftercreate',dialog,event.settings));}function closeDialog(value){domElement.dispatchEvent(new DrupalDialogEvent('beforeclose',dialog));bodyScrollLock.clearBodyLocks();$element.dialog('close');dialog.returnValue=value;dialog.open=false;domElement.dispatchEvent(new DrupalDialogEvent('afterclose',dialog));}dialog.show=()=>{openDialog({modal:false});};dialog.showModal=()=>{openDialog({modal:true});};dialog.close=closeDialog;return dialog;};})(jQuery,Drupal,drupalSettings,bodyScrollLock);;
8(function($,Drupal,drupalSettings,debounce,displace){drupalSettings.dialog=$.extend({autoResize:true,maxHeight:'95%'},drupalSettings.dialog);function resetPosition(options){const offsets=displace.offsets;const left=offsets.left-offsets.right;const top=offsets.top-offsets.bottom;const leftString=`${(left>0?'+':'-')+Math.abs(Math.round(left/2))}px`;const topString=`${(top>0?'+':'-')+Math.abs(Math.round(top/2))}px`;options.position={my:`center${left!==0?leftString:''} center${top!==0?topString:''}`,of:window};return options;}function resetSize(event){const positionOptions=['width','height','minWidth','minHeight','maxHeight','maxWidth','position'];let adjustedOptions={};let windowHeight=$(window).height();let option;let optionValue;let adjustedValue;for(let n=0;n<positionOptions.length;n++){option=positionOptions[n];optionValue=event.data.settings[option];if(optionValue)if(typeof optionValue==='string'&&optionValue.endsWith('%')&&/height/i.test(option)){windowHeight-=displace.offsets.top+displace.offsets.bottom;adjustedValue=parseInt(0.01*parseInt(optionValue,10)*windowHeight,10);if(option==='height'&&Math.round(event.data.$element.parent().outerHeight())<adjustedValue)adjustedValue='auto';adjustedOptions[option]=adjustedValue;}}if(!event.data.settings.modal)adjustedOptions=resetPosition(adjustedOptions);event.data.$element.dialog('option',adjustedOptions);event.data.$element?.get(0)?.dispatchEvent(new CustomEvent('dialogContentResize',{bubbles:true}));}window.addEventListener('dialog:aftercreate',(e)=>{const autoResize=debounce(resetSize,20);const $element=$(e.target);const {settings}=e;const eventData={settings,$element};if(settings.autoResize===true||settings.autoResize==='true'){const uiDialog=$element.dialog('option',{resizable:false,draggable:false}).dialog('widget');uiDialog[0].style.position='fixed';$(window).on('resize.dialogResize scroll.dialogResize',eventData,autoResize).trigger('resize.dialogResize');$(document).on('drupalViewportOffsetChange.dialogResize',eventData,autoResize);}});window.addEventListener('dialog:beforeclose',()=>{$(window).off('.dialogResize');$(document).off('.dialogResize');});})(jQuery,Drupal,drupalSettings,Drupal.debounce,Drupal.displace);;
9(function($,{tabbable,isTabbable}){$.widget('ui.dialog',$.ui.dialog,{options:{buttonClass:'button',buttonPrimaryClass:'button--primary'},_createButtons(){const opts=this.options;let primaryIndex;let index;const il=opts.buttons.length;for(index=0;index<il;index++)if(opts.buttons[index].primary&&opts.buttons[index].primary===true){primaryIndex=index;delete opts.buttons[index].primary;break;}this._super();const $buttons=this.uiButtonSet.children().addClass(opts.buttonClass);if(typeof primaryIndex!=='undefined')$buttons.eq(index).addClass(opts.buttonPrimaryClass);},_focusTabbable(){let hasFocus=this._focusedElement?this._focusedElement.get(0):null;if(!hasFocus)hasFocus=this.element.find('[autofocus]').get(0);if(!hasFocus){const $elements=[this.element,this.uiDialogButtonPane];for(let i=0;i<$elements.length;i++){const element=$elements[i].get(0);if(element){const elementTabbable=tabbable(element);hasFocus=elementTabbable.length?elementTabbable[0]:null;}if(hasFocus)break;}}if(!hasFocus){const closeBtn=this.uiDialogTitlebarClose.get(0);hasFocus=closeBtn&&isTabbable(closeBtn)?closeBtn:null;}if(!hasFocus)hasFocus=this.uiDialog.get(0);$(hasFocus).eq(0).trigger('focus');}});})(jQuery,window.tabbable);;
10(($)=>{$.widget('ui.dialog',$.ui.dialog,{_allowInteraction(event){if(event.target.classList===undefined)return this._super(event);return event.target.classList.contains('ck')||this._super(event);}});})(jQuery);;
11(function($,Drupal,drupalSettings){var WHITELIST_CACHE_KEY='external_link_whitelist';var WHITELIST_CACHE_TTL=60*60*1000;var whitelistPromise=null;function getWhitelist(){if(whitelistPromise)return whitelistPromise;try{var cached=sessionStorage.getItem(WHITELIST_CACHE_KEY);if(cached){var parsed=JSON.parse(cached);if(parsed.expires>Date.now())return Promise.resolve(parsed.data);sessionStorage.removeItem(WHITELIST_CACHE_KEY);}}catch(e){}whitelistPromise=fetch(Drupal.url('whitelist')).then(function(response){if(!response.ok)throw new Error('HTTP '+response.status);return response.json();}).then(function(data){if(data.status==='success'){try{sessionStorage.setItem(WHITELIST_CACHE_KEY,JSON.stringify({data:data.whitelist,expires:Date.now()+WHITELIST_CACHE_TTL}));}catch(e){}return data.whitelist;}else throw new Error(data.error);}).catch(function(error){console.error('Whitelist fetch error:',error);whitelistPromise=null;return [];});return whitelistPromise;}function isUrlWhitelisted(href,whitelist){for(var i=0;i<whitelist.length;i++){var item=whitelist[i];switch(item.type){case 'full_url':if(item.url===href)return true;try{var whitelistUrl=new URL(item.url);var linkUrl=new URL(href);if(whitelistUrl.hostname.replace('www.','')===linkUrl.hostname.replace('www.',''))if(linkUrl.pathname.startsWith(whitelistUrl.pathname))return true;}catch(e){}break;case 'domain':try{var url=new URL(href);var linkDomain=url.hostname.replace('www.','');var whitelistDomain=item.url.replace('www.','');if(linkDomain===whitelistDomain)return true;}catch(e){}break;case 'pattern':break;}}return false;}function processExternalLinks(context){var $links=$('a[data-external-link="TRUE"]:not(.whitelist-processed)',context);if($links.length===0)return;getWhitelist().then(function(whitelist){$links.each(function(){var $link=$(this);var href=$link.attr('href');if(!href)return;$link.addClass('whitelist-processed');if(isUrlWhitelisted(href,whitelist)){$link.attr('data-external-link','FALSE');$link.attr('target','_blank');}});});}Drupal.behaviors.externalLinkPopup={attach:function(context){var self=this;processExternalLinks(context);$(once('external-link-popup','body',context)).on('click','a[data-external-link="TRUE"], li[data-external-link="TRUE"] a, div[data-external-link="TRUE"] a',function(e){e.preventDefault();self.processLink(this,self);});$(once('external-link-popup-footer','footer .c_tooltip-text__content',context)).on('click','a[data-external-link="TRUE"], li[data-external-link="TRUE"] a, div[data-external-link="TRUE"] a',function(e){e.preventDefault();self.processLink(this,self);});$(once('external-link-popup-header','header',context)).on('click','.c_tooltip-text__content a[data-external-link="TRUE"], .c_tooltip-text__content li[data-external-link="TRUE"] a, .c_tooltip-text__content div[data-external-link="TRUE"] a',function(e){e.preventDefault();self.processLink(this,self);});},processLink:function(el,self){var currentLink;if($(el).children('a').length)currentLink=$(el).children('a').attr("href");else currentLink=$(el).attr("href");if($(el).data('external-link-url'))return self.openDialog(currentLink,$(el).data('external-link-url'));return self.openDialog(currentLink,currentLink);},openDialog:function(linkHref,linkVisual){var dialog,body=document.createElement('div'),content=document.createElement('div'),options={title:drupalSettings.popup_settings.title,width:'50%',buttons:[{text:Drupal.t('Continue'),class:"btn btn-primary",click:function(){$(this).dialog('close');var target=window.open(linkHref,'_blank');
11target.focus();}},{text:Drupal.t('Close'),class:"close-button",click:function(){$(this).dialog('close');}}],create:function(){$(this).parent().addClass('external-link-popup');$('body').addClass('has-external-link-popup');$(this).parent().find('.ui-dialog-buttonset button').removeClass('button');},close:function(){var $element=$(this);dialog&&dialog.open&&dialog.close();$element.dialog('destroy');$('body').removeClass('has-external-link-popup');}};content.className='external-link-popup-content';body.innerHTML=drupalSettings.popup_settings.body.replace('[%external_link%]',linkVisual);body.className='external-link-popup-body';content.appendChild(body);dialog=Drupal.dialog(content,options);dialog.showModal();}};})(jQuery,Drupal,drupalSettings);;
12!function(t,s){"object"==typeof exports&&"undefined"!=typeof module?module.exports=s():"function"==typeof define&&define.amd?define(s):(t="undefined"!=typeof globalThis?globalThis:t||self).proj4=s()}(this,(function(){"use strict";var t=6378137,s=.0066943799901413165,i=484813681109536e-20,a=Math.PI/2,e=1e-10,h=.017453292519943295,r=57.29577951308232,n=Math.PI/4,o=2*Math.PI,l=3.14159265359,c={greenwich:0,lisbon:-9.131906111111,paris:2.337229166667,bogota:-74.080916666667,madrid:-3.687938888889,rome:12.452333333333,bern:7.439583333333,jakarta:106.807719444444,ferro:-17.666666666667,brussels:4.367975,stockholm:18.058277777778,athens:23.7163375,oslo:10.722916666667},u={mm:{to_meter:.001},cm:{to_meter:.01},ft:{to_meter:.3048},"us-ft":{to_meter:1200/3937},fath:{to_meter:1.8288},kmi:{to_meter:1852},"us-ch":{to_meter:20.1168402336805},"us-mi":{to_meter:1609.34721869444},km:{to_meter:1e3},"ind-ft":{to_meter:.30479841},"ind-yd":{to_meter:.91439523},mi:{to_meter:1609.344},yd:{to_meter:.9144},ch:{to_meter:20.1168},link:{to_meter:.201168},dm:{to_meter:.1},in:{to_meter:.0254},"ind-ch":{to_meter:20.11669506},"us-in":{to_meter:.025400050800101},"us-yd":{to_meter:.914401828803658}},_=/[\s_\-\/\(\)]/g;function M(t,s){if(t[s])return t[s];for(var i,a=Object.keys(t),e=s.toLowerCase().replace(_,""),h=-1;++h<a.length;)if((i=a[h]).toLowerCase().replace(_,"")===e)return t[i]}function f(t){var s,i,a,e={},r=t.split("+").map((function(t){return t.trim()})).filter((function(t){return t})).reduce((function(t,s){var i=s.split("=");return i.push(!0),t[i[0].toLowerCase()]=i[1],t}),{}),n={proj:"projName",datum:"datumCode",rf:function(t){e.rf=parseFloat(t)},lat_0:function(t){e.lat0=t*h},lat_1:function(t){e.lat1=t*h},lat_2:function(t){e.lat2=t*h},lat_ts:function(t){e.lat_ts=t*h},lon_0:function(t){e.long0=t*h},lon_1:function(t){e.long1=t*h},lon_2:function(t){e.long2=t*h},alpha:function(t){e.alpha=parseFloat(t)*h},gamma:function(t){e.rectified_grid_angle=parseFloat(t)*h},lonc:function(t){e.longc=t*h},x_0:function(t){e.x0=parseFloat(t)},y_0:function(t){e.y0=parseFloat(t)},k_0:function(t){e.k0=parseFloat(t)},k:function(t){e.k0=parseFloat(t)},a:function(t){e.a=parseFloat(t)},b:function(t){e.b=parseFloat(t)},r:function(t){e.a=e.b=parseFloat(t)},r_a:function(){e.R_A=!0},zone:function(t){e.zone=parseInt(t,10)},south:function(){e.utmSouth=!0},towgs84:function(t){e.datum_params=t.split(",").map((function(t){return parseFloat(t)}))},to_meter:function(t){e.to_meter=parseFloat(t)},units:function(t){e.units=t;var s=M(u,t);s&&(e.to_meter=s.to_meter)},from_greenwich:function(t){e.from_greenwich=t*h},pm:function(t){var s=M(c,t);e.from_greenwich=(s||parseFloat(t))*h},nadgrids:function(t){"@null"===t?e.datumCode="none":e.nadgrids=t},axis:function(t){var s="ewnsud";3===t.length&&-1!==s.indexOf(t.substr(0,1))&&-1!==s.indexOf(t.substr(1,1))&&-1!==s.indexOf(t.substr(2,1))&&(e.axis=t)},approx:function(){e.approx=!0},over:function(){e.over=!0}};for(s in r)i=r[s],s in n?"function"==typeof(a=n[s])?a(i):e[a]=i:e[s]=i;return"string"==typeof e.datumCode&&"WGS84"!==e.datumCode&&(e.datumCode=e.datumCode.toLowerCase()),e.projStr=t,e}class d{static getId(t){const s=t.find((t=>Array.isArray(t)&&"ID"===t[0]));return s&&s.length>=3?{authority:s[1],code:parseInt(s[2],10)}:null}static convertUnit(t,s="unit"){if(!t||t.length<3)return{type:s,name:"unknown",conversion_factor:null};const i=t[1],a=parseFloat(t[2])||null,e=t.find((t=>Array.isArray(t)&&"ID"===t[0]));return{type:s,name:i,conversion_factor:a,id:e?{authority:e[1],code:parseInt(e[2],10)}:null}}static convertAxis(t){const s=t[1]||"Unknown";let i;const a=s.match(/^\((.)\)$/);if(a){const t=a[1].toUpperCase();if("E"===t)i="east";else if("N"===t)i="north";else{if("U"!==t)throw new Error(`Unknown axis abbreviation: ${t}`);i="up"}}else i=t[2]?.toLowerCase()||"unknown";const e=t.find((t=>Array.isArray(t)&&"ORDER"===t[0])),h=e?parseInt(e[1],10):null,r=t.find((t=>Array.isArray(t)&&("LENGTHUNIT"===t[0]||"ANGLEUNIT"===t[0]||"SCALEUNIT"===t[0])));return{name:s,direction:i,unit:this.convertUnit(r),order:h}}static extractAxes(t){return t.filter((t=>Array.isArray(t)&&"AXIS"===t[0])).map((t=>this.convertAxis(t))).sort(((t,s)=>(t.order||0)-(s.order||0)))}static convert(t,s={}){switch(t[0]){case"PROJCRS":s.type="ProjectedCRS",s.name=t[1],s.base_crs=t.find((t=>Array.isArray(t)&&"BASEGEOGCRS"===t[0]))?this.convert(t.find((t=>
12Array.isArray(t)&&"BASEGEOGCRS"===t[0]))):null,s.conversion=t.find((t=>Array.isArray(t)&&"CONVERSION"===t[0]))?this.convert(t.find((t=>Array.isArray(t)&&"CONVERSION"===t[0]))):null;const i=t.find((t=>Array.isArray(t)&&"CS"===t[0]));i&&(s.coordinate_system={type:i[1],axis:this.extractAxes(t)});const a=t.find((t=>Array.isArray(t)&&"LENGTHUNIT"===t[0]));if(a){const t=this.convertUnit(a);s.coordinate_system.unit=t}s.id=this.getId(t);break;case"BASEGEOGCRS":case"GEOGCRS":s.type="GeographicCRS",s.name=t[1];const e=t.find((t=>Array.isArray(t)&&("DATUM"===t[0]||"ENSEMBLE"===t[0])));if(e){const i=this.convert(e);"ENSEMBLE"===e[0]?s.datum_ensemble=i:s.datum=i;const a=t.find((t=>Array.isArray(t)&&"PRIMEM"===t[0]));a&&"Greenwich"!==a[1]&&(i.prime_meridian={name:a[1],longitude:parseFloat(a[2])})}s.coordinate_system={type:"ellipsoidal",axis:this.extractAxes(t)},s.id=this.getId(t);break;case"DATUM":s.type="GeodeticReferenceFrame",s.name=t[1],s.ellipsoid=t.find((t=>Array.isArray(t)&&"ELLIPSOID"===t[0]))?this.convert(t.find((t=>Array.isArray(t)&&"ELLIPSOID"===t[0]))):null;break;case"ENSEMBLE":s.type="DatumEnsemble",s.name=t[1],s.members=t.filter((t=>Array.isArray(t)&&"MEMBER"===t[0])).map((t=>({type:"DatumEnsembleMember",name:t[1],id:this.getId(t)})));const h=t.find((t=>Array.isArray(t)&&"ENSEMBLEACCURACY"===t[0]));h&&(s.accuracy=parseFloat(h[1]));const r=t.find((t=>Array.isArray(t)&&"ELLIPSOID"===t[0]));r&&(s.ellipsoid=this.convert(r)),s.id=this.getId(t);break;case"ELLIPSOID":s.type="Ellipsoid",s.name=t[1],s.semi_major_axis=parseFloat(t[2]),s.inverse_flattening=parseFloat(t[3]),t.find((t=>Array.isArray(t)&&"LENGTHUNIT"===t[0]))&&this.convert(t.find((t=>Array.isArray(t)&&"LENGTHUNIT"===t[0])),s);break;case"CONVERSION":s.type="Conversion",s.name=t[1],s.method=t.find((t=>Array.isArray(t)&&"METHOD"===t[0]))?this.convert(t.find((t=>Array.isArray(t)&&"METHOD"===t[0]))):null,s.parameters=t.filter((t=>Array.isArray(t)&&"PARAMETER"===t[0])).map((t=>this.convert(t)));break;case"METHOD":s.type="Method",s.name=t[1],s.id=this.getId(t);break;case"PARAMETER":s.type="Parameter",s.name=t[1],s.value=parseFloat(t[2]),s.unit=this.convertUnit(t.find((t=>Array.isArray(t)&&("LENGTHUNIT"===t[0]||"ANGLEUNIT"===t[0]||"SCALEUNIT"===t[0])))),s.id=this.getId(t);break;case"BOUNDCRS":s.type="BoundCRS";const n=t.find((t=>Array.isArray(t)&&"SOURCECRS"===t[0]));if(n){const t=n.find((t=>Array.isArray(t)));s.source_crs=t?this.convert(t):null}const o=t.find((t=>Array.isArray(t)&&"TARGETCRS"===t[0]));if(o){const t=o.find((t=>Array.isArray(t)));s.target_crs=t?this.convert(t):null}const l=t.find((t=>Array.isArray(t)&&"ABRIDGEDTRANSFORMATION"===t[0]));s.transformation=l?this.convert(l):null;break;case"ABRIDGEDTRANSFORMATION":if(s.type="Transformation",s.name=t[1],s.method=t.find((t=>Array.isArray(t)&&"METHOD"===t[0]))?this.convert(t.find((t=>Array.isArray(t)&&"METHOD"===t[0]))):null,s.parameters=t.filter((t=>Array.isArray(t)&&("PARAMETER"===t[0]||"PARAMETERFILE"===t[0]))).map((t=>"PARAMETER"===t[0]?this.convert(t):"PARAMETERFILE"===t[0]?{name:t[1],value:t[2],id:{authority:"EPSG",code:8656}}:void 0)),7===s.parameters.length){const t=s.parameters[6];"Scale difference"===t.name&&(t.value=Math.round(1e12*(t.value-1))/1e6)}s.id=this.getId(t);break;case"AXIS":s.coordinate_system||(s.coordinate_system={type:"unspecified",axis:[]}),s.coordinate_system.axis.push(this.convertAxis(t));break;case"LENGTHUNIT":const c=this.convertUnit(t,"LinearUnit");s.coordinate_system&&s.coordinate_system.axis&&s.coordinate_system.axis.forEach((t=>{t.unit||(t.unit=c)})),c.conversion_factor&&1!==c.conversion_factor&&s.semi_major_axis&&(s.semi_major_axis={value:s.semi_major_axis,unit:c});break;default:s.keyword=t[0]}return s}}class g extends d{static convert(t,s={}){return super.convert(t,s),"Cartesian"===s.coordinate_system?.subtype&&delete s.coordinate_system,s.usage&&delete s.usage,s}}class m extends d{static convert(t,s={}){super.convert(t,s);const i=t.find((t=>Array.isArray(t)&&"CS"===t[0]));i&&(s.coordinate_system={subtype:i[1],axis:this.extractAxes(t)});const a=t.find((t=>Array.isArray(t)&&"USAGE"===t[0]));return a&&(s.usage={scope:a.find((t=>Array.isArray(t)&&"SCOPE"===t[0]))?.[1],area:a.find((t=>Array.isArray(t)&&"AREA"===t[0]))?.[1],bbox:a.find((t=>Array.isArray(t)&&"BBOX"===t[0]))?.slice(1)}),s}}function p(t){const s=function(t){return t.find((t=>
12Array.isArray(t)&&"USAGE"===t[0]))?"2019":(t.find((t=>Array.isArray(t)&&"CS"===t[0]))||"BOUNDCRS"===t[0]||"PROJCRS"===t[0]||t[0],"2015")}(t);return("2019"===s?m:g).convert(t)}var y=/\s/,w=/[A-Za-z]/,v=/[A-Za-z84_]/,E=/[,\]]/,x=/[\d\.E\-\+]/;function S(t){if("string"!=typeof t)throw new Error("not a string");this.text=t.trim(),this.level=0,this.place=0,this.root=null,this.stack=[],this.currentObject=null,this.state=1}function G(t,s,i){Array.isArray(s)&&(i.unshift(s),s=null);var a=s?{}:t,e=i.reduce((function(t,s){return P(s,t),t}),a);s&&(t[s]=e)}function P(t,s){if(Array.isArray(t)){var i=t.shift();if("PARAMETER"===i&&(i=t.shift()),1===t.length)return Array.isArray(t[0])?(s[i]={},void P(t[0],s[i])):void(s[i]=t[0]);if(t.length)if("TOWGS84"!==i){if("AXIS"===i)return i in s||(s[i]=[]),void s[i].push(t);var a;switch(Array.isArray(i)||(s[i]={}),i){case"UNIT":case"PRIMEM":case"VERT_DATUM":return s[i]={name:t[0].toLowerCase(),convert:t[1]},void(3===t.length&&P(t[2],s[i]));case"SPHEROID":case"ELLIPSOID":return s[i]={name:t[0],a:t[1],rf:t[2]},void(4===t.length&&P(t[3],s[i]));case"EDATUM":case"ENGINEERINGDATUM":case"LOCAL_DATUM":case"DATUM":case"VERT_CS":case"VERTCRS":case"VERTICALCRS":return t[0]=["name",t[0]],void G(s,i,t);case"COMPD_CS":case"COMPOUNDCRS":case"FITTED_CS":case"PROJECTEDCRS":case"PROJCRS":case"GEOGCS":case"GEOCCS":case"PROJCS":case"LOCAL_CS":case"GEODCRS":case"GEODETICCRS":case"GEODETICDATUM":case"ENGCRS":case"ENGINEERINGCRS":return t[0]=["name",t[0]],G(s,i,t),void(s[i].type=i);default:for(a=-1;++a<t.length;)if(!Array.isArray(t[a]))return P(t,s[i]);return G(s,i,t)}}else s[i]=t;else s[i]=!0}else s[t]=!0}S.prototype.readCharicter=function(){var t=this.text[this.place++];if(4!==this.state)for(;y.test(t);){if(this.place>=this.text.length)return;t=this.text[this.place++]}switch(this.state){case 1:return this.neutral(t);case 2:return this.keyword(t);case 4:return this.quoted(t);case 5:return this.afterquote(t);case 3:return this.number(t);case-1:return}},S.prototype.afterquote=function(t){if('"'===t)return this.word+='"',void(this.state=4);if(E.test(t))return this.word=this.word.trim(),void this.afterItem(t);throw new Error("havn't handled \""+t+'" in afterquote yet, index '+this.place)},S.prototype.afterItem=function(t){return","===t?(null!==this.word&&this.currentObject.push(this.word),this.word=null,void(this.state=1)):"]"===t?(this.level--,null!==this.word&&(this.currentObject.push(this.word),this.word=null),this.state=1,this.currentObject=this.stack.pop(),void(this.currentObject||(this.state=-1))):void 0},S.prototype.number=function(t){if(!x.test(t)){if(E.test(t))return this.word=parseFloat(this.word),void this.afterItem(t);throw new Error("havn't handled \""+t+'" in number yet, index '+this.place)}this.word+=t},S.prototype.quoted=function(t){'"'!==t?this.word+=t:this.state=5},S.prototype.keyword=function(t){if(v.test(t))this.word+=t;else{if("["===t){var s=[];return s.push(this.word),this.level++,null===this.root?this.root=s:this.currentObject.push(s),this.stack.push(this.currentObject),this.currentObject=s,void(this.state=1)}if(!E.test(t))throw new Error("havn't handled \""+t+'" in keyword yet, index '+this.place);this.afterItem(t)}},S.prototype.neutral=function(t){if(w.test(t))return this.word=t,void(this.state=2);if('"'===t)return this.word="",void(this.state=4);if(x.test(t))return this.word=t,void(this.state=3);if(!E.test(t))throw new Error("havn't handled \""+t+'" in neutral yet, index '+this.place);this.afterItem(t)},S.prototype.output=function(){for(;this.place<this.text.length;)this.readCharicter();if(-1===this.state)return this.root;throw new Error('unable to parse string "'+this.text+'". State is '+this.state)};function b(t){return.017453292519943295*t}function N(t){const s=(t.projName||"").toLowerCase().replace(/_/g," ");t.long0||!t.longc||"albers conic equal area"!==s&&"lambert azimuthal equal area"!==s||(t.long0=t.longc),t.lat_ts||!t.lat1||"stereographic south pole"!==s&&"polar stereographic (variant b)"!==s?t.lat_ts||!t.lat0||"polar stereographic"!==s&&"polar stereographic (variant a)"!==s||(t.lat_ts=t.lat0,t.lat0=b(t.lat0>0?90:-90),delete t.lat1):(t.lat0=b(t.lat1>0?90:-90),t.lat_ts=t.lat1,delete t.lat1)}function A(t){let s={units:null,to_meter:void 0};return"string"==typeof t?(s.units=t.toLowerCase(),"metre"===s.units&&(s.units="meter"),"meter"===s.units&&(s.to_meter=1)):t?.name&&(s.units=t.name.toLowerCase(),"metre"===s.units&&(s.units="meter"),s.to_meter=t.conversion_factor),s}function I(t){return"object"==typeof t?t.value*t.unit.conversion_factor:t}function C(t,s){t.ellipsoid.radius?(s.a=t.ellipsoid.radius,s.rf=0):(s.a=I(t.ellipsoid.semi_major_axis),void 0!==t.ellipsoid.inverse_flattening?s.rf=t.ellipsoid.inverse_flattening:void 0!==t.ellipsoid.semi_major_axis&&void 0!==t.ellipsoid.semi_minor_axis&&(s.rf=s.a/(s.a-I(t.ellipsoid.semi_minor_axis))))}function k(t,s={}){return t&&"object"==typeof t?"BoundCRS"===t.type?(k(t.source_crs,s),t.transformation&&("NTv2"===t.transformation.method?.name?s.nadgrids=t.transformation.parameters[0].value:s.datum_params=t.transformation.parameters.map((t=>t.value))),s):(Object.keys(t).forEach((i=>{const a=t[i];if(null!==a)switch(i){case"name":if(s.srsCode)break;s.name=a,s.srsCode=a;break;case"type":"GeographicCRS"===a?s.projName="longlat":"ProjectedCRS"===a&&(s.projName=t.conversion?.method?.name);break;case"datum":case"datum_ensemble":a.ellipsoid&&(s.ellps=a.ellipsoid.name,C(a,s)
12),a.prime_meridian&&(s.from_greenwich=a.prime_meridian.longitude*Math.PI/180);break;case"ellipsoid":s.ellps=a.name,C(a,s);break;case"prime_meridian":s.long0=(a.longitude||0)*Math.PI/180;break;case"coordinate_system":if(a.axis)if(s.axis=a.axis.map((t=>{const s=t.direction;if("east"===s)return"e";if("north"===s)return"n";if("west"===s)return"w";if("south"===s)return"s";throw new Error(`Unknown axis direction: ${s}`)})).join("")+"u",a.unit){const{units:t,to_meter:i}=A(a.unit);s.units=t,s.to_meter=i}else if(a.axis[0]?.unit){const{units:t,to_meter:i}=A(a.axis[0].unit);s.units=t,s.to_meter=i}break;case"id":a.authority&&a.code&&(s.title=a.authority+":"+a.code);break;case"conversion":a.method&&a.method.name&&(s.projName=a.method.name),a.parameters&&a.parameters.forEach((t=>{const i=t.name.toLowerCase().replace(/\s+/g,"_"),a=t.value;t.unit&&t.unit.conversion_factor?s[i]=a*t.unit.conversion_factor:"degree"===t.unit?s[i]=a*Math.PI/180:s[i]=a}));break;case"unit":a.name&&(s.units=a.name.toLowerCase(),"metre"===s.units&&(s.units="meter")),a.conversion_factor&&(s.to_meter=a.conversion_factor);break;case"base_crs":k(a,s),s.datumCode=a.id?a.id.authority+"_"+a.id.code:a.name}})),void 0!==s.latitude_of_false_origin&&(s.lat0=s.latitude_of_false_origin),void 0!==s.longitude_of_false_origin&&(s.long0=s.longitude_of_false_origin),void 0!==s.latitude_of_standard_parallel&&(s.lat0=s.latitude_of_standard_parallel,s.lat1=s.latitude_of_standard_parallel),void 0!==s.latitude_of_1st_standard_parallel&&(s.lat1=s.latitude_of_1st_standard_parallel),void 0!==s.latitude_of_2nd_standard_parallel&&(s.lat2=s.latitude_of_2nd_standard_parallel),void 0!==s.latitude_of_projection_centre&&(s.lat0=s.latitude_of_projection_centre),void 0!==s.longitude_of_projection_centre&&(s.longc=s.longitude_of_projection_centre),void 0!==s.easting_at_false_origin&&(s.x0=s.easting_at_false_origin),void 0!==s.northing_at_false_origin&&(s.y0=s.northing_at_false_origin),void 0!==s.latitude_of_natural_origin&&(s.lat0=s.latitude_of_natural_origin),void 0!==s.longitude_of_natural_origin&&(s.long0=s.longitude_of_natural_origin),void 0!==s.longitude_of_origin&&(s.long0=s.longitude_of_origin),void 0!==s.false_easting&&(s.x0=s.false_easting),s.easting_at_projection_centre&&(s.x0=s.easting_at_projection_centre),void 0!==s.false_northing&&(s.y0=s.false_northing),s.northing_at_projection_centre&&(s.y0=s.northing_at_projection_centre),void 0!==s.standard_parallel_1&&(s.lat1=s.standard_parallel_1),void 0!==s.standard_parallel_2&&(s.lat2=s.standard_parallel_2),void 0!==s.scale_factor_at_natural_origin&&(s.k0=s.scale_factor_at_natural_origin),void 0!==s.scale_factor_at_projection_centre&&(s.k0=s.scale_factor_at_projection_centre),void 0!==s.scale_factor_on_pseudo_standard_parallel&&(s.k0=s.scale_factor_on_pseudo_standard_parallel),void 0!==s.azimuth&&(s.alpha=s.azimuth),void 0!==s.azimuth_at_projection_centre&&(s.alpha=s.azimuth_at_projection_centre),s.angle_from_rectified_to_skew_grid&&(s.rectified_grid_angle=s.angle_from_rectified_to_skew_grid),N(s),s):t}var O=["PROJECTEDCRS","PROJCRS","GEOGCS","GEOCCS","PROJCS","LOCAL_CS","GEODCRS","GEODETICCRS","GEODETICDATUM","ENGCRS","ENGINEERINGCRS"];function R(t){for(var s=Object.keys(t),i=0,a=s.length;i<a;++i){var e=s[i];-1!==O.indexOf(e)&&j(t[e]),"object"==typeof t[e]&&R(t[e])}}function j(t){if(t.AUTHORITY){var s=Object.keys(t.AUTHORITY)[0];s&&s in t.AUTHORITY&&(t.title=s+":"+t.AUTHORITY[s])}if("GEOGCS"===t.type?t.projName="longlat":"LOCAL_CS"===t.type?(t.projName="identity",t.local=!0):"object"==typeof t.PROJECTION?t.projName=Object.keys(t.PROJECTION)[0]:t.projName=t.PROJECTION,t.AXIS){for(var i="",a=0,e=t.AXIS.length;a<e;++a){var h=[t.AXIS[a][0].toLowerCase(),t.AXIS[a][1].toLowerCase()];-1!==h[0].indexOf("north")||("y"===h[0]||"lat"===h[0])&&"north"===h[1]?i+="n":-1!==h[0].indexOf("south")||("y"===h[0]||"lat"===h[0])&&"south"===h[1]?i+="s":-1!==h[0].indexOf("east")||("x"===h[0]||"lon"===h[0])&&"east"===h[1]?i+="e":-1===h[0].indexOf("west")&&("x"!==h[0]&&"lon"!==h[0]||"west"!==h[1])||(i+="w")}2===i.length&&(i+="u"),3===i.length&&(t.axis=i)}t.UNIT&&(t.units=t.UNIT.name.toLowerCase(),"metre"===t.units&&(t.units="meter"),t.UNIT.convert&&("GEOGCS"===t.type?t.DATUM&&t.DATUM.SPHEROID&&(t.to_meter=t.UNIT.convert*t.DATUM.SPHEROID.a):t.to_meter=t.UNIT.convert));var r=t.GEOGCS;function n(s){return s*(t.to_meter||1)}"GEOGCS"===t.type&&(r=t),r&&(r.DATUM?t.datumCode=r.DATUM.name.toLowerCase():t.datumCode=r.name.toLowerCase(),"d_"===t.datumCode.slice(0,2)&&(t.datumCode=t.datumCode.slice(2)),"new_zealand_1949"===t.datumCode&&(t.datumCode="nzgd49"),"wgs_1984"!==t.datumCode&&"world_geodetic_system_1984"!==t.datumCode||("Mercator_Auxiliary_Sphere"===t.PROJECTION&&(t.sphere=!0),t.datumCode="wgs84"),"belge_1972"===t.datumCode&&(t.datumCode="rnb72"),r.DATUM&&r.DATUM.SPHEROID&&(t.ellps=r.DATUM.SPHEROID.name.replace("_19","").replace(/[Cc]larke\_18/,"clrk"),"international"===t.ellps.toLowerCase().slice(0,13)&&(t.ellps="intl"),t.a=r.DATUM.SPHEROID.a,t.rf=parseFloat(r.DATUM.SPHEROID.rf,10)),r.DATUM&&r.DATUM.TOWGS84&&(t.datum_params=r.DATUM.TOWGS84),~t.datumCode.indexOf("osgb_1936")&&(t.datumCode="osgb36"),~t.datumCode.indexOf("osni_1952")&&(t.datumCode="osni52"),(~t.datumCode.indexOf("tm
1265")||~t.datumCode.indexOf("geodetic_datum_of_1965"))&&(t.datumCode="ire65"),"ch1903+"===t.datumCode&&(t.datumCode="ch1903"),~t.datumCode.indexOf("israel")&&(t.datumCode="isr93")),t.b&&!isFinite(t.b)&&(t.b=t.a),t.rectified_grid_angle&&(t.rectified_grid_angle=b(t.rectified_grid_angle));[["standard_parallel_1","Standard_Parallel_1"],["standard_parallel_1","Latitude of 1st standard parallel"],["standard_parallel_2","Standard_Parallel_2"],["standard_parallel_2","Latitude of 2nd standard parallel"],["false_easting","False_Easting"],["false_easting","False easting"],["false-easting","Easting at false origin"],["false_northing","False_Northing"],["false_northing","False northing"],["false_northing","Northing at false origin"],["central_meridian","Central_Meridian"],["central_meridian","Longitude of natural origin"],["central_meridian","Longitude of false origin"],["latitude_of_origin","Latitude_Of_Origin"],["latitude_of_origin","Central_Parallel"],["latitude_of_origin","Latitude of natural origin"],["latitude_of_origin","Latitude of false origin"],["scale_factor","Scale_Factor"],["k0","scale_factor"],["latitude_of_center","Latitude_Of_Center"],["latitude_of_center","Latitude_of_center"],["lat0","latitude_of_center",b],["longitude_of_center","Longitude_Of_Center"],["longitude_of_center","Longitude_of_center"],["longc","longitude_of_center",b],["x0","false_easting",n],["y0","false_northing",n],["long0","central_meridian",b],["lat0","latitude_of_origin",b],["lat0","standard_parallel_1",b],["lat1","standard_parallel_1",b],["lat2","standard_parallel_2",b],["azimuth","Azimuth"],["alpha","azimuth",b],["srsCode","name"]].forEach((function(s){return function(t,s){var i=s[0],a=s[1];!(i in t)&&a in t&&(t[i]=t[a],3===s.length&&(t[i]=s[2](t[i])))}(t,s)})),N(t)}function q(t){if("object"==typeof t)return k(t);const s=function(t){const s=t.toUpperCase();return s.includes("PROJCRS")||s.includes("GEOGCRS")||s.includes("BOUNDCRS")||s.includes("VERTCRS")||s.includes("LENGTHUNIT")||s.includes("ANGLEUNIT")||s.includes("SCALEUNIT")?"WKT2":(s.includes("PROJCS")||s.includes("GEOGCS")||s.includes("LOCAL_CS")||s.includes("VERT_CS")||s.includes("UNIT"),"WKT1")}(t);var i=new S(t).output();if("WKT2"===s){return k(p(i))}var a=i[0],e={};return P(i,e),R(e),e[a]}function T(t){var s=this;if(2===arguments.length){var i=arguments[1];"string"==typeof i?"+"===i.charAt(0)?T[t]=f(arguments[1]):T[t]=q(arguments[1]):i&&"object"==typeof i&&!("projName"in i)?T[t]=q(arguments[1]):(T[t]=i,i||delete T[t])}else if(1===arguments.length){if(Array.isArray(t))return t.map((function(t){return Array.isArray(t)?T.apply(s,t):T(t)}));if("string"==typeof t){if(t in T)return T[t]}else"EPSG"in t?T["EPSG:"+t.EPSG]=t:"ESRI"in t?T["ESRI:"+t.ESRI]=t:"IAU2000"in t?T["IAU2000:"+t.IAU2000]=t:console.log(t);return}}!function(t){t("EPSG:4326","+title=WGS 84 (long/lat) +proj=longlat +ellps=WGS84 +datum=WGS84 +units=degrees"),t("EPSG:4269","+title=NAD83 (long/lat) +proj=longlat +a=6378137.0 +b=6356752.31414036 +ellps=GRS80 +datum=NAD83 +units=degrees"),t("EPSG:3857","+title=WGS 84 / Pseudo-Mercator +proj=merc +a=6378137 +b=6378137 +lat_ts=0.0 +lon_0=0.0 +x_0=0.0 +y_0=0 +k=1.0 +units=m +nadgrids=@null +no_defs");for(var s=1;s<=60;++s)t("EPSG:"+(32600+s),"+proj=utm +zone="+s+" +datum=WGS84 +units=m"),t("EPSG:"+(32700+s),"+proj=utm +zone="+s+" +south +datum=WGS84 +units=m");t("EPSG:5041","+title=WGS 84 / UPS North (E,N) +proj=stere +lat_0=90 +lon_0=0 +k=0.994 +x_0=2000000 +y_0=2000000 +datum=WGS84 +units=m"),t("EPSG:5042","+title=WGS 84 / UPS South (E,N) +proj=stere +lat_0=-90 +lon_0=0 +k=0.994 +x_0=2000000 +y_0=2000000 +datum=WGS84 +units=m"),t.WGS84=t["EPSG:4326"],t["EPSG:3785"]=t["EPSG:3857"],t.GOOGLE=t["EPSG:3857"],t["EPSG:900913"]=t["EPSG:3857"],t["EPSG:102113"]=t["EPSG:3857"]}(T);var L=["3857","900913","3785","102113"];function F(t){if(!function(t){return"string"==typeof t}(t))return"projName"in t?t:q(t);if(function(t){return t in T}(t))return T[t];if(function(t){return 0!==t.indexOf("+")&&-1!==t.indexOf("[")||"object"==typeof t&&!("srsCode"in t)}(t)){var s=q(t);if(function(t){var s=M(t,"authority");if(s){var i=M(s,"epsg");return i&&L.indexOf(i)>-1}}(s))return T["EPSG:3857"];var i=function(t){var s=M(t,"extension");if(s)return M(s,"proj4")}(s);return i?f(i):s}return function(t){return"+"===t[0]}(t)?f(t):void 0}function U(t,s){var i,a;if(t=t||{},!s)return t;for(a in s)void 0!==(i=s[a])&&(t[a]=i);return t}function B(t,s,i){var a=t*s;return i/Math.sqrt(1-a*a)}function D(t){return t<0?-1:1}function z(t,s){return s||Math.abs(t)<=l?t:t-D(t)*o}function W(t,s,i){var e=t*i,h=.5*t;return e=Math.pow((1-e)/(1+e),h),Math.tan(.5*(a-s))/e}function H(t,s){for(var i,e,h=.5*t,r=a-2*Math.atan(s),n=0;n<=15;n++)if(i=t*Math.sin(r),r+=e=a-2*Math.atan(s*Math.pow((1-i)/(1+i),h))-r,Math.abs(e)<=1e-10)return r;return-9999}function Q(t){return t}var X=["longlat","identity"],V=[{init:function(){var t=this.b/this.a;this.es=1-t*t,"x0"in this||(this.x0=0),"y0"in this||(this.y0=0),this.e=Math.sqrt(this.es),this.lat_ts?this.sphere?this.k0=Math.cos(this.lat_ts):this.k0=B(this.e,Math.sin(this.lat_ts),Math.cos(this.lat_ts)):this.k0||(this.k?this.k0=this.k:this.k0=1)},forward:function(t){var s,i,h=t.x,o=t.y;if(o*r>90&&o*r<-90&&h*r>180&&h*r<-180)return null;if(Math.abs(Math.abs(o)-a)<=e)return null;if(this.sphere)s=this.x0+this.a*this.k0*z(h-this.long0,this.over),i=this.y0+this.a*this.k0*Math.log(Math.tan(n+.5*o));else{var l=Math.sin(o),c=W(this.e,o,l);s=this.x0+this.a*this.k0*z(h-this.long0,this.over),i=this.y0-this.a*this.k0*Math.log(c)}return t.x=s,t.y=i,t},inverse:function(t){var s,i,e=t.x-this.x0,h=t.y-this.y0;if(this.sphere)i=a-2*Math.atan(Math.exp(-h/(this.a*this.k0)));else{var r=Math.exp(-h/(this.a*this.k0));if(-9999===(i=H(this.e,r)))return null}return s=z(this.long0+e/(this.a*this.k0),this.over),t.x=s,t.y=i,t},names:["Mercator","Popular Visualisation Pseudo Mercator","Mercator_1SP","Mercator_Auxiliary_Sphere","Mercator_Variant_A","merc"]},{init:function(){},forward:Q,inverse:Q,names:X}],J={},K=[];function Z(t,s){var i=K.length;
12return t.names?(K[i]=t,t.names.forEach((function(t){J[t.toLowerCase()]=i})),this):(console.log(s),!0)}function Y(t){return t.replace(/[-\(\)\s]+/g," ").trim().replace(/ /g,"_")}var $={start:function(){V.forEach(Z)},add:Z,get:function(t){if(!t)return!1;var s=t.toLowerCase();return void 0!==J[s]&&K[J[s]]||(s=Y(s))in J&&K[J[s]]?K[J[s]]:void 0}},tt={MERIT:{a:6378137,rf:298.257,ellipseName:"MERIT 1983"},SGS85:{a:6378136,rf:298.257,ellipseName:"Soviet Geodetic System 85"},GRS80:{a:6378137,rf:298.257222101,ellipseName:"GRS 1980(IUGG, 1980)"},IAU76:{a:6378140,rf:298.257,ellipseName:"IAU 1976"},airy:{a:6377563.396,b:6356256.91,ellipseName:"Airy 1830"},APL4:{a:6378137,rf:298.25,ellipseName:"Appl. Physics. 1965"},NWL9D:{a:6378145,rf:298.25,ellipseName:"Naval Weapons Lab., 1965"},mod_airy:{a:6377340.189,b:6356034.446,ellipseName:"Modified Airy"},andrae:{a:6377104.43,rf:300,ellipseName:"Andrae 1876 (Den., Iclnd.)"},aust_SA:{a:6378160,rf:298.25,ellipseName:"Australian Natl & S. Amer. 1969"},GRS67:{a:6378160,rf:298.247167427,ellipseName:"GRS 67(IUGG 1967)"},bessel:{a:6377397.155,rf:299.1528128,ellipseName:"Bessel 1841"},bess_nam:{a:6377483.865,rf:299.1528128,ellipseName:"Bessel 1841 (Namibia)"},clrk66:{a:6378206.4,b:6356583.8,ellipseName:"Clarke 1866"},clrk80:{a:6378249.145,rf:293.4663,ellipseName:"Clarke 1880 mod."},clrk80ign:{a:6378249.2,b:6356515,rf:293.4660213,ellipseName:"Clarke 1880 (IGN)"},clrk58:{a:6378293.645208759,rf:294.2606763692654,ellipseName:"Clarke 1858"},CPM:{a:6375738.7,rf:334.29,ellipseName:"Comm. des Poids et Mesures 1799"},delmbr:{a:6376428,rf:311.5,ellipseName:"Delambre 1810 (Belgium)"},engelis:{a:6378136.05,rf:298.2566,ellipseName:"Engelis 1985"},evrst30:{a:6377276.345,rf:300.8017,ellipseName:"Everest 1830"},evrst48:{a:6377304.063,rf:300.8017,ellipseName:"Everest 1948"},evrst56:{a:6377301.243,rf:300.8017,ellipseName:"Everest 1956"},evrst69:{a:6377295.664,rf:300.8017,ellipseName:"Everest 1969"},evrstSS:{a:6377298.556,rf:300.8017,ellipseName:"Everest (Sabah & Sarawak)"},fschr60:{a:6378166,rf:298.3,ellipseName:"Fischer (Mercury Datum) 1960"},fschr60m:{a:6378155,rf:298.3,ellipseName:"Fischer 1960"},fschr68:{a:6378150,rf:298.3,ellipseName:"Fischer 1968"},helmert:{a:6378200,rf:298.3,ellipseName:"Helmert 1906"},hough:{a:6378270,rf:297,ellipseName:"Hough"},intl:{a:6378388,rf:297,ellipseName:"International 1909 (Hayford)"},kaula:{a:6378163,rf:298.24,ellipseName:"Kaula 1961"},lerch:{a:6378139,rf:298.257,ellipseName:"Lerch 1979"},mprts:{a:6397300,rf:191,ellipseName:"Maupertius 1738"},new_intl:{a:6378157.5,b:6356772.2,ellipseName:"New International 1967"},plessis:{a:6376523,rf:6355863,ellipseName:"Plessis 1817 (France)"},krass:{a:6378245,rf:298.3,ellipseName:"Krassovsky, 1942"},SEasia:{a:6378155,b:6356773.3205,ellipseName:"Southeast Asia"},walbeck:{a:6376896,b:6355834.8467,ellipseName:"Walbeck"},WGS60:{a:6378165,rf:298.3,ellipseName:"WGS 60"},WGS66:{a:6378145,rf:298.25,ellipseName:"WGS 66"},WGS7:{a:6378135,rf:298.26,ellipseName:"WGS 72"},WGS84:{a:6378137,rf:298.257223563,ellipseName:"WGS 84"},sphere:{a:6370997,b:6370997,ellipseName:"Normal Sphere (r=6370997)"}};const st=tt.WGS84;var it={wgs84:{towgs84:"0,0,0",ellipse:"WGS84",datumName:"WGS84"},ch1903:{towgs84:"674.374,15.056,405.346",ellipse:"bessel",datumName:"swiss"},ggrs87:{towgs84:"-199.87,74.79,246.62",ellipse:"GRS80",datumName:"Greek_Geodetic_Reference_System_1987"},nad83:{towgs84:"0,0,0",ellipse:"GRS80",datumName:"North_American_Datum_1983"},nad27:{nadgrids:"@conus,@alaska,@ntv2_0.gsb,@ntv1_can.dat",ellipse:"clrk66",datumName:"North_American_Datum_1927"},potsdam:{towgs84:"598.1,73.7,418.2,0.202,0.045,-2.455,6.7",ellipse:"bessel",datumName:"Potsdam Rauenberg 1950 DHDN"},carthage:{towgs84:"-263.0,6.0,431.0",ellipse:"clark80",datumName:"Carthage 1934 Tunisia"},hermannskogel:{towgs84:"577.326,90.129,463.919,5.137,1.474,5.297,2.4232",ellipse:"bessel",datumName:"Hermannskogel"},mgi:{towgs84:"577.326,90.129,463.919,5.137,1.474,5.297,2.4232",ellipse:"bessel",datumName:"Militar-Geographische Institut"},osni52:{towgs84:"482.530,-130.596,564.557,-1.042,-0.214,-0.631,8.15",ellipse:"airy",datumName:"Irish National"},ire65:{towgs84:"482.530,-130.596,564.557,-1.042,-0.214,-0.631,8.15",ellipse:"mod_airy",datumName:"Ireland 1965"},rassadiran:{towgs84:"-133.63,-157.5,-158.62",ellipse:"intl",datumName:"Rassadiran"},nzgd49:{towgs84:"59.47,-5.04,187.44,0.47,-0.1,1.024,-4.5993",ellipse:"intl",datumName:"New Zealand Geodetic Datum 1949"},osgb36:{towgs84:"446.448,-125.157,542.060,0.1502,0.2470,0.8421,-20.4894",ellipse:"airy",datumName:"Ordnance Survey of Great Britain 1936"},s_jtsk:{towgs84:"589,76,480",ellipse:"bessel",datumName:"S-JTSK (Ferro)"},beduaram:{towgs84:"-106,-87,188",ellipse:"clrk80",datumName:"Beduaram"},gunung_segara:{towgs84:"-403,684,41",ellipse:"bessel",datumName:"Gunung Segara Jakarta"},rnb72:{towgs84:"106.869,-52.2978,103.724,-0.33657,0.456955,-1.84218,1",ellipse:"intl",datumName:"Reseau National Belge 1972"},EPSG_5451:{towgs84:"6.41,-49.05,-11.28,1.5657,0.5242,6.9718,-5.7649"},IGNF_LURESG:{towgs84:"-192.986,13.673,-39.309,-0.4099,-2.9332,2.6881,0.43"},EPSG_4614:{towgs84:"-119.4248,-303.65872,-11.00061,1.164298,0.174458,1.096259,3.657065"},EPSG_4615:{towgs84:"-494.088,-312.129,279.877,-1.423,-1.013,1.59,-0.748"},ESRI_37241:{towgs84:"-76.822,257.457,-12.817,2.136,-0.033,-2.392,-0.031"},ESRI_37249:{towgs84:"-440.296,58.548,296.265,1.128,10.202,4.559,-0.438"},ESRI_37245:{towgs84:"-511.151,-181.269,139.609,1.05,2.703,1.798,3.071"},EPSG_4178:{towgs84:"24.9,-126.4,-93.2,-0.063,-0.247,-0.041,1.01"},EPSG_4622:{towgs84:"-472.29,-5.63,-304.12,0.4362,-0.8374,0.2563,1.8984"},EPSG_4625:{towgs84:"126.93,547.94,130.41,-2.7867,5.1612,-0.8584,13.8227"},EPSG_5252:{towgs84:"0.023,0.036,-0.068,0.00176,0.00912,-0.01136,0.00439"},EPSG_4314:{towgs84:"597.1,71.4,412.1,0.894,0.068,-1.563,7.58"},EPSG_4282:{towgs84:"-178.3,-316.7,-131.5,5.278,6.077,10.979,19.166"},EPSG_4231:{towgs84:"-83.11,-97.38,-117.22,0.0276,-0.2167,0.2147,0.1218"},EPSG_4274:{towgs84:"-230.994,102.591,25.199,0.633,-0.239,0.9,1.95"},EPSG_4134:{towgs84:"-180.624,-225.516,173.919,-0.81,-1.898,8.336,16.71006"},EPSG_4254:{towgs84:"18.38,192.45,96.82,0.056,-0.142,-0.2,-0.0013"},EPSG_4159:{towgs84:"-194.513,-63.978,-25.759,-3.4027,3.756,-3.352,-0.9175"},EPSG_4687:{towgs84:"0.072,-0.507,-0.245,0.0183,-0.0003,0.007,-0.0093"},EPSG_4227:{towgs84:"-83.58,-397.54,458.78,-17.595,-2.847,4.256,3.225"},EPSG_4746:{towgs84:"599.4,72.4,419.2,-0.062,-0.022,-2.723,6.46"},EPSG_4745:{towgs84:"612.4,77,440.2,-0.054,0.057,-2.797,2.55"},EPSG_6311:{towgs84:"8.846,-4.394,-1.122,-0.00237,-0.146528,0.130428,0.783926"},EPSG_4289:{towgs84:"565.7381,50.4018,465.2904,-1.91514,1.60363,-9.09546,4.07244"}
12,EPSG_4230:{towgs84:"-68.863,-134.888,-111.49,-0.53,-0.14,0.57,-3.4"},EPSG_4154:{towgs84:"-123.02,-158.95,-168.47"},EPSG_4156:{towgs84:"570.8,85.7,462.8,4.998,1.587,5.261,3.56"},EPSG_4299:{towgs84:"482.5,-130.6,564.6,-1.042,-0.214,-0.631,8.15"},EPSG_4179:{towgs84:"33.4,-146.6,-76.3,-0.359,-0.053,0.844,-0.84"},EPSG_4313:{towgs84:"-106.8686,52.2978,-103.7239,0.3366,-0.457,1.8422,-1.2747"},EPSG_4194:{towgs84:"163.511,127.533,-159.789"},EPSG_4195:{towgs84:"105,326,-102.5"},EPSG_4196:{towgs84:"-45,417,-3.5"},EPSG_4611:{towgs84:"-162.619,-276.959,-161.764,0.067753,-2.243649,-1.158827,-1.094246"},EPSG_4633:{towgs84:"137.092,131.66,91.475,-1.9436,-11.5993,-4.3321,-7.4824"},EPSG_4641:{towgs84:"-408.809,366.856,-412.987,1.8842,-0.5308,2.1655,-121.0993"},EPSG_4643:{towgs84:"-480.26,-438.32,-643.429,16.3119,20.1721,-4.0349,-111.7002"},EPSG_4300:{towgs84:"482.5,-130.6,564.6,-1.042,-0.214,-0.631,8.15"},EPSG_4188:{towgs84:"482.5,-130.6,564.6,-1.042,-0.214,-0.631,8.15"},EPSG_4660:{towgs84:"982.6087,552.753,-540.873,32.39344,-153.25684,-96.2266,16.805"},EPSG_4662:{towgs84:"97.295,-263.247,310.882,-1.5999,0.8386,3.1409,13.3259"},EPSG_3906:{towgs84:"577.88891,165.22205,391.18289,4.9145,-0.94729,-13.05098,7.78664"},EPSG_4307:{towgs84:"-209.3622,-87.8162,404.6198,0.0046,3.4784,0.5805,-1.4547"},EPSG_6892:{towgs84:"-76.269,-16.683,68.562,-6.275,10.536,-4.286,-13.686"},EPSG_4690:{towgs84:"221.597,152.441,176.523,2.403,1.3893,0.884,11.4648"},EPSG_4691:{towgs84:"218.769,150.75,176.75,3.5231,2.0037,1.288,10.9817"},EPSG_4629:{towgs84:"72.51,345.411,79.241,-1.5862,-0.8826,-0.5495,1.3653"},EPSG_4630:{towgs84:"165.804,216.213,180.26,-0.6251,-0.4515,-0.0721,7.4111"},EPSG_4692:{towgs84:"217.109,86.452,23.711,0.0183,-0.0003,0.007,-0.0093"},EPSG_9333:{towgs84:"0,0,0,-8.393,0.749,-10.276,0"},EPSG_9059:{towgs84:"0,0,0"},EPSG_4312:{towgs84:"601.705,84.263,485.227,4.7354,1.3145,5.393,-2.3887"},EPSG_4123:{towgs84:"-96.062,-82.428,-121.753,4.801,0.345,-1.376,1.496"},EPSG_4309:{towgs84:"-124.45,183.74,44.64,-0.4384,0.5446,-0.9706,-2.1365"},ESRI_104106:{towgs84:"-283.088,-70.693,117.445,-1.157,0.059,-0.652,-4.058"}
12,EPSG_4281:{towgs84:"-219.247,-73.802,269.529"},EPSG_4322:{towgs84:"0,0,4.5"},EPSG_4324:{towgs84:"0,0,1.9"},EPSG_4284:{towgs84:"43.822,-108.842,-119.585,1.455,-0.761,0.737,0.549"},EPSG_4277:{towgs84:"446.448,-125.157,542.06,0.15,0.247,0.842,-20.489"},EPSG_4207:{towgs84:"-282.1,-72.2,120,-1.529,0.145,-0.89,-4.46"},EPSG_4688:{towgs84:"347.175,1077.618,2623.677,33.9058,-70.6776,9.4013,186.0647"},EPSG_4689:{towgs84:"410.793,54.542,80.501,-2.5596,-2.3517,-0.6594,17.3218"},EPSG_4720:{towgs84:"0,0,4.5"},EPSG_4273:{towgs84:"278.3,93,474.5,7.889,0.05,-6.61,6.21"},EPSG_4240:{towgs84:"204.64,834.74,293.8"},EPSG_4817:{towgs84:"278.3,93,474.5,7.889,0.05,-6.61,6.21"},ESRI_104131:{towgs84:"426.62,142.62,460.09,4.98,4.49,-12.42,-17.1"},EPSG_4265:{towgs84:"-104.1,-49.1,-9.9,0.971,-2.917,0.714,-11.68"},EPSG_4263:{towgs84:"-111.92,-87.85,114.5,1.875,0.202,0.219,0.032"},EPSG_4298:{towgs84:"-689.5937,623.84046,-65.93566,-0.02331,1.17094,-0.80054,5.88536"},EPSG_4270:{towgs84:"-253.4392,-148.452,386.5267,0.15605,0.43,-0.1013,-0.0424"},EPSG_4229:{towgs84:"-121.8,98.1,-10.7"},EPSG_4220:{towgs84:"-55.5,-348,-229.2"},EPSG_4214:{towgs84:"12.646,-155.176,-80.863"},EPSG_4232:{towgs84:"-345,3,223"},EPSG_4238:{towgs84:"-1.977,-13.06,-9.993,0.364,0.254,0.689,-1.037"},EPSG_4168:{towgs84:"-170,33,326"},EPSG_4131:{towgs84:"199,931,318.9"},EPSG_4152:{towgs84:"-0.9102,2.0141,0.5602,0.029039,0.010065,0.010101,0"},EPSG_5228:{towgs84:"572.213,85.334,461.94,4.9732,1.529,5.2484,3.5378"},EPSG_8351:{towgs84:"485.021,169.465,483.839,7.786342,4.397554,4.102655,0"},EPSG_4683:{towgs84:"-127.62,-67.24,-47.04,-3.068,4.903,1.578,-1.06"},EPSG_4133:{towgs84:"0,0,0"},EPSG_7373:{towgs84:"0.819,-0.5762,-1.6446,-0.00378,-0.03317,0.00318,0.0693"},EPSG_9075:{towgs84:"-0.9102,2.0141,0.5602,0.029039,0.010065,0.010101,0"},EPSG_9072:{towgs84:"-0.9102,2.0141,0.5602,0.029039,0.010065,0.010101,0"},EPSG_9294:{towgs84:"1.16835,-1.42001,-2.24431,-0.00822,-0.05508,0.01818,0.23388"},EPSG_4212:{towgs84:"-267.434,173.496,181.814,-13.4704,8.7154,7.3926,14.7492"},EPSG_4191:{towgs84:"-44.183,-0.58,-38.489,2.3867,2.7072,-3.5196,-8.2703"},EPSG_4237:{towgs84:"52.684,-71.194,-13.975,-0.312,-0.1063,-0.3729,1.0191"},EPSG_4740:{towgs84:"-1.08,-0.27,-0.9"},EPSG_4124:{towgs84:"419.3836,99.3335,591.3451,0.850389,1.817277,-7.862238,-0.99496"},EPSG_5681:{towgs84:"584.9636,107.7175,413.8067,1.1155,0.2824,-3.1384,7.9922"},EPSG_4141:{towgs84:"23.772,17.49,17.859,-0.3132,-1.85274,1.67299,-5.4262"},EPSG_4204:{towgs84:"-85.645,-273.077,-79.708,2.289,-1.421,2.532,3.194"},EPSG_4319:{towgs84:"226.702,-193.337,-35.371,-2.229,-4.391,9.238,0.9798"},EPSG_4200:{towgs84:"24.82,-131.21,-82.66"},EPSG_4130:{towgs84:"0,0,0"},EPSG_4127:{towgs84:"-82.875,-57.097,-156.768,-2.158,1.524,-0.982,-0.359"},EPSG_4149:{towgs84:"674.374,15.056,405.346"},EPSG_4617:{towgs84:"-0.991,1.9072,0.5129,1.25033e-7,4.6785e-8,5.6529e-8,0"},EPSG_4663:{towgs84:"-210.502,-66.902,-48.476,2.094,-15.067,-5.817,0.485"},EPSG_4664:{towgs84:"-211.939,137.626,58.3,-0.089,0.251,0.079,0.384"},EPSG_4665:{towgs84:"-105.854,165.589,-38.312,-0.003,-0.026,0.024,-0.048"},EPSG_4666:{towgs84:"631.392,-66.551,481.442,1.09,-4.445,-4.487,-4.43"},EPSG_4756:{towgs84:"-192.873,-39.382,-111.202,-0.00205,-0.0005,0.00335,0.0188"},EPSG_4723:{towgs84:"-179.483,-69.379,-27.584,-7.862,8.163,6.042,-13.925"},EPSG_4726:{towgs84:"8.853,-52.644,180.304,-0.393,-2.323,2.96,-24.081"},EPSG_4267:{towgs84:"-8.0,160.0,176.0"},EPSG_5365:{towgs84:"-0.16959,0.35312,0.51846,0.03385,-0.16325,0.03446,0.03693"},EPSG_4218:{towgs84:"304.5,306.5,-318.1"},EPSG_4242:{towgs84:"-33.722,153.789,94.959,-8.581,-4.478,4.54,8.95"},EPSG_4216:{towgs84:"-292.295,248.758,429.447,4.9971,2.99,6.6906,1.0289"},ESRI_104105:{towgs84:"631.392,-66.551,481.442,1.09,-4.445,-4.487,-4.43"},ESRI_104129:{towgs84:"0,0,0"},EPSG_4673:{towgs84:"174.05,-25.49,112.57"},EPSG_4202:{towgs84:"-124,-60,154"},EPSG_4203:{towgs84:"-117.763,-51.51,139.061,0.292,0.443,0.277,-0.191"},EPSG_3819:{towgs84:"595.48,121.69,515.35,4.115,-2.9383,0.853,-3.408"},EPSG_8694:{towgs84:"-93.799,-132.737,-219.073,-1.844,0.648,-6.37,-0.169"},EPSG_4145:{towgs84:"275.57,676.78,229.6"},EPSG_4283:{towgs84:"61.55,-10.87,-40.19,39.4924,32.7221,32.8979,-9.994"},EPSG_4317:{towgs84:"2.3287,-147.0425,-92.0802,-0.3092483,0.32482185,0.49729934,5.68906266"},EPSG_4272:{towgs84:"59.47,-5.04,187.44,0.47,-0.1,1.024,-4.5993"},EPSG_4248:{towgs84:"-307.7,265.3,-363.5"},EPSG_5561:{towgs84:"24,-121,-76"},EPSG_5233:{towgs84:"-0.293,766.95,87.713,0.195704,1.695068,3.473016,-0.039338"},ESRI_104130:{towgs84:"-86,-98,-119"}
12,ESRI_104102:{towgs84:"682,-203,480"},ESRI_37207:{towgs84:"7,-10,-26"},EPSG_4675:{towgs84:"59.935,118.4,-10.871"},ESRI_104109:{towgs84:"-89.121,-348.182,260.871"},ESRI_104112:{towgs84:"-185.583,-230.096,281.361"},ESRI_104113:{towgs84:"25.1,-275.6,222.6"},IGNF_WGS72G:{towgs84:"0,12,6"},IGNF_NTFG:{towgs84:"-168,-60,320"},IGNF_EFATE57G:{towgs84:"-127,-769,472"},IGNF_PGP50G:{towgs84:"324.8,153.6,172.1"},IGNF_REUN47G:{towgs84:"94,-948,-1262"},IGNF_CSG67G:{towgs84:"-186,230,110"},IGNF_GUAD48G:{towgs84:"-467,-16,-300"},IGNF_TAHI51G:{towgs84:"162,117,154"},IGNF_TAHAAG:{towgs84:"65,342,77"},IGNF_NUKU72G:{towgs84:"84,274,65"},IGNF_PETRELS72G:{towgs84:"365,194,166"},IGNF_WALL78G:{towgs84:"253,-133,-127"},IGNF_MAYO50G:{towgs84:"-382,-59,-262"},IGNF_TANNAG:{towgs84:"-139,-967,436"},IGNF_IGN72G:{towgs84:"-13,-348,292"},IGNF_ATIGG:{towgs84:"1118,23,66"},IGNF_FANGA84G:{towgs84:"150.57,158.33,118.32"},IGNF_RUSAT84G:{towgs84:"202.13,174.6,-15.74"},IGNF_KAUE70G:{towgs84:"126.74,300.1,-75.49"},IGNF_MOP90G:{towgs84:"-10.8,-1.8,12.77"},IGNF_MHPF67G:{towgs84:"338.08,212.58,-296.17"},IGNF_TAHI79G:{towgs84:"160.61,116.05,153.69"},IGNF_ANAA92G:{towgs84:"1.5,3.84,4.81"},IGNF_MARQUI72G:{towgs84:"330.91,-13.92,58.56"},IGNF_APAT86G:{towgs84:"143.6,197.82,74.05"},IGNF_TUBU69G:{towgs84:"237.17,171.61,-77.84"},IGNF_STPM50G:{towgs84:"11.363,424.148,373.13"},EPSG_4150:{towgs84:"674.374,15.056,405.346"},EPSG_4754:{towgs84:"-208.4058,-109.8777,-2.5764"},ESRI_104101:{towgs84:"374,150,588"},EPSG_4693:{towgs84:"0,-0.15,0.68"},EPSG_6207:{towgs84:"293.17,726.18,245.36"},EPSG_4153:{towgs84:"-133.63,-157.5,-158.62"},EPSG_4132:{towgs84:"-241.54,-163.64,396.06"},EPSG_4221:{towgs84:"-154.5,150.7,100.4"},EPSG_4266:{towgs84:"-80.7,-132.5,41.1"},EPSG_4193:{towgs84:"-70.9,-151.8,-41.4"},EPSG_5340:{towgs84:"-0.41,0.46,-0.35"},EPSG_4246:{towgs84:"-294.7,-200.1,525.5"},EPSG_4318:{towgs84:"-3.2,-5.7,2.8"},EPSG_4121:{towgs84:"-199.87,74.79,246.62"},EPSG_4223:{towgs84:"-260.1,5.5,432.2"},EPSG_4158:{towgs84:"-0.465,372.095,171.736"},EPSG_4285:{towgs84:"-128.16,-282.42,21.93"},EPSG_4613:{towgs84:"-404.78,685.68,45.47"},EPSG_4607:{towgs84:"195.671,332.517,274.607"},EPSG_4475:{towgs84:"-381.788,-57.501,-256.673"},EPSG_4208:{towgs84:"-157.84,308.54,-146.6"},EPSG_4743:{towgs84:"70.995,-335.916,262.898"},EPSG_4710:{towgs84:"-323.65,551.39,-491.22"},EPSG_7881:{towgs84:"-0.077,0.079,0.086"},EPSG_4682:{towgs84:"283.729,735.942,261.143"},EPSG_4739:{towgs84:"-156,-271,-189"},EPSG_4679:{towgs84:"-80.01,253.26,291.19"},EPSG_4750:{towgs84:"-56.263,16.136,-22.856"},EPSG_4644:{towgs84:"-10.18,-350.43,291.37"},EPSG_4695:{towgs84:"-103.746,-9.614,-255.95"},EPSG_4292:{towgs84:"-355,21,72"},EPSG_4302:{towgs84:"-61.702,284.488,472.052"},EPSG_4143:{towgs84:"-124.76,53,466.79"},EPSG_4606:{towgs84:"-153,153,307"},EPSG_4699:{towgs84:"-770.1,158.4,-498.2"},EPSG_4247:{towgs84:"-273.5,110.6,-357.9"},EPSG_4160:{towgs84:"8.88,184.86,106.69"},EPSG_4161:{towgs84:"-233.43,6.65,173.64"},EPSG_9251:{towgs84:"-9.5,122.9,138.2"},EPSG_9253:{towgs84:"-78.1,101.6,133.3"},EPSG_4297:{towgs84:"-198.383,-240.517,-107.909"},EPSG_4269:{towgs84:"0,0,0"},EPSG_4301:{towgs84:"-147,506,687"},EPSG_4618:{towgs84:"-59,-11,-52"},EPSG_4612:{towgs84:"0,0,0"},EPSG_4678:{towgs84:"44.585,-131.212,-39.544"},EPSG_4250:{towgs84:"-130,29,364"},EPSG_4144:{towgs84:"214,804,268"},EPSG_4147:{towgs84:"-17.51,-108.32,-62.39"},EPSG_4259:{towgs84:"-254.1,-5.36,-100.29"},EPSG_4164:{towgs84:"-76,-138,67"},EPSG_4211:{towgs84:"-378.873,676.002,-46.255"},EPSG_4182:{towgs84:"-422.651,-172.995,84.02"},EPSG_4224:{towgs84:"-143.87,243.37,-33.52"},EPSG_4225:{towgs84:"-205.57,168.77,-4.12"},EPSG_5527:{towgs84:"-67.35,3.88,-38.22"},EPSG_4752:{towgs84:"98,390,-22"},EPSG_4310:{towgs84:"-30,190,89"},EPSG_9248:{towgs84:"-192.26,65.72,132.08"},EPSG_4680:{towgs84:"124.5,-63.5,-281"},EPSG_4701:{towgs84:"-79.9,-158,-168.9"},EPSG_4706:{towgs84:"-146.21,112.63,4.05"},EPSG_4805:{towgs84:"682,-203,480"},EPSG_4201:{towgs84:"-165,-11,206"},EPSG_4210:{towgs84:"-157,-2,-299"},EPSG_4183:{towgs84:"-104,167,-38"},EPSG_4139:{towgs84:"11,72,-101"},EPSG_4668:{towgs84:"-86,-98,-119"},EPSG_4717:{towgs84:"-2,151,181"},EPSG_4732:{towgs84:"102,52,-38"},EPSG_4280:{towgs84:"-377,681,-50"},EPSG_4209:{towgs84:"-138,-105,-289"},EPSG_4261:{towgs84:"31,146,47"},EPSG_4658:{towgs84:"-73,46,-86"},EPSG_4721:{towgs84:"265.025,384.929,-194.046"},EPSG_4222:{towgs84:"-136,-108,-292"},EPSG_4601:{towgs84:"-255,-15,71"},EPSG_4602:{towgs84:"725,685,536"},EPSG_4603:{towgs84:"72,213.7,93"},EPSG_4605:{towgs84:"9,183,236"},EPSG_4621:{towgs84:"137,248,-430"},EPSG_4657:{towgs84:"-28,199,5"},EPSG_4316:{towgs84:"103.25,-100.4,-307.19"}
12,EPSG_4642:{towgs84:"-13,-348,292"},EPSG_4698:{towgs84:"145,-187,103"},EPSG_4192:{towgs84:"-206.1,-174.7,-87.7"},EPSG_4311:{towgs84:"-265,120,-358"},EPSG_4135:{towgs84:"58,-283,-182"},ESRI_104138:{towgs84:"198,-226,-347"},EPSG_4245:{towgs84:"-11,851,5"},EPSG_4142:{towgs84:"-125,53,467"},EPSG_4213:{towgs84:"-106,-87,188"},EPSG_4253:{towgs84:"-133,-77,-51"},EPSG_4129:{towgs84:"-132,-110,-335"},EPSG_4713:{towgs84:"-77,-128,142"},EPSG_4239:{towgs84:"217,823,299"},EPSG_4146:{towgs84:"295,736,257"},EPSG_4155:{towgs84:"-83,37,124"},EPSG_4165:{towgs84:"-173,253,27"},EPSG_4672:{towgs84:"175,-38,113"},EPSG_4236:{towgs84:"-637,-549,-203"},EPSG_4251:{towgs84:"-90,40,88"},EPSG_4271:{towgs84:"-2,374,172"},EPSG_4175:{towgs84:"-88,4,101"},EPSG_4716:{towgs84:"298,-304,-375"},EPSG_4315:{towgs84:"-23,259,-9"},EPSG_4744:{towgs84:"-242.2,-144.9,370.3"},EPSG_4244:{towgs84:"-97,787,86"},EPSG_4293:{towgs84:"616,97,-251"},EPSG_4714:{towgs84:"-127,-769,472"},EPSG_4736:{towgs84:"260,12,-147"},EPSG_6883:{towgs84:"-235,-110,393"},EPSG_6894:{towgs84:"-63,176,185"},EPSG_4205:{towgs84:"-43,-163,45"},EPSG_4256:{towgs84:"41,-220,-134"},EPSG_4262:{towgs84:"639,405,60"},EPSG_4604:{towgs84:"174,359,365"},EPSG_4169:{towgs84:"-115,118,426"},EPSG_4620:{towgs84:"-106,-129,165"},EPSG_4184:{towgs84:"-203,141,53"},EPSG_4616:{towgs84:"-289,-124,60"},EPSG_9403:{towgs84:"-307,-92,127"},EPSG_4684:{towgs84:"-133,-321,50"},EPSG_4708:{towgs84:"-491,-22,435"},EPSG_4707:{towgs84:"114,-116,-333"},EPSG_4709:{towgs84:"145,75,-272"},EPSG_4712:{towgs84:"-205,107,53"},EPSG_4711:{towgs84:"124,-234,-25"},EPSG_4718:{towgs84:"230,-199,-752"},EPSG_4719:{towgs84:"211,147,111"},EPSG_4724:{towgs84:"208,-435,-229"},EPSG_4725:{towgs84:"189,-79,-202"},EPSG_4735:{towgs84:"647,1777,-1124"},EPSG_4722:{towgs84:"-794,119,-298"},EPSG_4728:{towgs84:"-307,-92,127"},EPSG_4734:{towgs84:"-632,438,-609"},EPSG_4727:{towgs84:"912,-58,1227"},EPSG_4729:{towgs84:"185,165,42"},EPSG_4730:{towgs84:"170,42,84"},EPSG_4733:{towgs84:"276,-57,149"},ESRI_37218:{towgs84:"230,-199,-752"},ESRI_37240:{towgs84:"-7,215,225"},ESRI_37221:{towgs84:"252,-209,-751"},ESRI_4305:{towgs84:"-123,-206,219"},ESRI_104139:{towgs84:"-73,-247,227"},EPSG_4748:{towgs84:"51,391,-36"},EPSG_4219:{towgs84:"-384,664,-48"},EPSG_4255:{towgs84:"-333,-222,114"},EPSG_4257:{towgs84:"-587.8,519.75,145.76"},EPSG_4646:{towgs84:"-963,510,-359"},EPSG_6881:{towgs84:"-24,-203,268"},EPSG_6882:{towgs84:"-183,-15,273"},EPSG_4715:{towgs84:"-104,-129,239"},IGNF_RGF93GDD:{towgs84:"0,0,0"},IGNF_RGM04GDD:{towgs84:"0,0,0"},IGNF_RGSPM06GDD:{towgs84:"0,0,0"},IGNF_RGTAAF07GDD:{towgs84:"0,0,0"},IGNF_RGFG95GDD:{towgs84:"0,0,0"},IGNF_RGNCG:{towgs84:"0,0,0"},IGNF_RGPFGDD:{towgs84:"0,0,0"},IGNF_ETRS89G:{towgs84:"0,0,0"},IGNF_RGR92GDD:{towgs84:"0,0,0"},EPSG_4173:{towgs84:"0,0,0"},EPSG_4180:{towgs84:"0,0,0"},EPSG_4619:{towgs84:"0,0,0"},EPSG_4667:{towgs84:"0,0,0"},EPSG_4075:{towgs84:"0,0,0"},EPSG_6706:{towgs84:"0,0,0"},EPSG_7798:{towgs84:"0,0,0"},EPSG_4661:{towgs84:"0,0,0"},EPSG_4669:{towgs84:"0,0,0"},EPSG_8685:{towgs84:"0,0,0"},EPSG_4151:{towgs84:"0,0,0"},EPSG_9702:{towgs84:"0,0,0"},EPSG_4758:{towgs84:"0,0,0"},EPSG_4761:{towgs84:"0,0,0"},EPSG_4765:{towgs84:"0,0,0"},EPSG_8997:{towgs84:"0,0,0"},EPSG_4023:{towgs84:"0,0,0"},EPSG_4670:{towgs84:"0,0,0"},EPSG_4694:{towgs84:"0,0,0"},EPSG_4148:{towgs84:"0,0,0"},EPSG_4163:{towgs84:"0,0,0"},EPSG_4167:{towgs84:"0,0,0"},EPSG_4189:{towgs84:"0,0,0"},EPSG_4190:{towgs84:"0,0,0"},EPSG_4176:{towgs84:"0,0,0"},EPSG_4659:{towgs84:"0,0,0"},EPSG_3824:{towgs84:"0,0,0"},EPSG_3889:{towgs84:"0,0,0"},EPSG_4046:{towgs84:"0,0,0"},EPSG_4081:{towgs84:"0,0,0"},EPSG_4558:{towgs84:"0,0,0"},EPSG_4483:{towgs84:"0,0,0"},EPSG_5013:{towgs84:"0,0,0"},EPSG_5264:{towgs84:"0,0,0"},EPSG_5324:{towgs84:"0,0,0"},EPSG_5354:{towgs84:"0,0,0"},EPSG_5371:{towgs84:"0,0,0"},EPSG_5373:{towgs84:"0,0,0"},EPSG_5381:{towgs84:"0,0,0"},EPSG_5393:{towgs84:"0,0,0"},EPSG_5489:{towgs84:"0,0,0"},EPSG_5593:{towgs84:"0,0,0"},EPSG_6135:{towgs84:"0,0,0"},EPSG_6365:{towgs84:"0,0,0"},EPSG_5246:{towgs84:"0,0,0"},EPSG_7886:{towgs84:"0,0,0"},EPSG_8431:{towgs84:"0,0,0"},EPSG_8427:{towgs84:"0,0,0"},EPSG_8699:{towgs84:"0,0,0"},EPSG_8818:{towgs84:"0,0,0"},EPSG_4757:{towgs84:"0,0,0"},EPSG_9140:{towgs84:"0,0,0"},EPSG_8086:{towgs84:"0,0,0"},EPSG_4686:{towgs84:"0,0,0"},EPSG_4737:{towgs84:"0,0,0"},EPSG_4702:{towgs84:"0,0,0"},EPSG_4747:{towgs84:"0,0,0"},EPSG_4749:{towgs84:"0,0,0"},EPSG_4674:{towgs84:"0,0,0"},EPSG_4755:{towgs84:"0,0,0"},EPSG_4759:{towgs84:"0,0,0"},EPSG_4762:{towgs84:"0,0,0"},EPSG_4763:{towgs84:"0,0,0"},EPSG_4764:{towgs84:"0,0,0"},EPSG_4166:{towgs84:"0,0,0"},EPSG_4170:{towgs84:"0,0,0"},EPSG_5546:{towgs84:"0,0,0"},EPSG_7844:{towgs84:"0,0,0"},EPSG_4818:{towgs84:"589,76,480"}};for(var at in it){var et=it[at];et.datumName&&(it[et.datumName]=et)}var ht={};async function rt(t,s){for(var i=[],a=await s.getImageCount(),e=a-1;e>=0;e--){var h=await s.getImage(e),r=await h.readRasters(),n=[h.getWidth(),h.getHeight()],o=h.getBoundingBox().map(ot),l=[h.fileDirectory.ModelPixelScale[0],h.fileDirectory.ModelPixelScale[1]].map(ot),c=o[0]+(n[0]-1)*l[0],u=o[3]-(n[1]-1)*l[1],_=r[0],M=r[1],f=[];for(let t=n[1]-1;t>=0;t--)for(let s=n[0]-1;s>=0;s--){var d=t*n[0]+s;f.push([-lt(M[d]),lt(_[d])])}i.push({del:l,lim:n,ll:[-c,u],cvs:f})}var g={header:{nSubgrids:a},subgrids:i};return ht[t]=g,g}function nt(t){if(0===t.length)return null;var s="@"===t[0];return s&&(t=t.slice(1)),"null"===t?{name:"null",mandatory:!s,grid:null,isNull:!0}:{name:t,mandatory:!s,grid:ht[t]||null,isNull:!1}}function ot(t){return t*Math.PI/180}function lt(t){return t/3600*Math.PI/180}function ct(t,s,i){return String.fromCharCode.apply(null,new Uint8Array(t.buffer.slice(s,i)))}function ut(t){return t.map((function(t){return[lt(t.longitudeShift),lt(t.latitudeShift)]}))}function _t(t,s,i){return{name:ct(t,s+8,s+16).trim(),parent:ct(t,s+24,s+24+8).trim(),lowerLatitude:t.getFloat64(s+72,i),upperLatitude:t.getFloat64(s+88,i),lowerLongitude:t.getFloat64(s+104,i),upperLongitude:t.getFloat64(s+120,i),latitudeInterval:t.getFloat64(s+136,i),longitudeInterval:t.getFloat64(s+152,i),gridNodeCount:t.getInt32(s+168,i)}}function Mt(t,s,i,a,e){var h=s+176,r=16;!1===e&&(r=8);for(var n=[],o=0;o<i.gridNodeCount;o++){var l={latitudeShift:t.getFloat32(h+o*r,a),longitudeShift:t.getFloat32(h+o*r+4,a)};!1!==e&&(l.latitudeAccuracy=t.getFloat32(h+o*r+8,a),l.longitudeAccuracy=t.getFloat32(h+o*r+12,a)),n.push(l)}return n}function ft(t,s){if(!(this instanceof ft))return new ft(t);this.forward=null,this.inverse=null,this.init=null,this.name,this.names=null,this.title,s=s||function(t){if(t)throw t};var a=F(t);if("object"==typeof a){var h=ft.projections.get(a.projName);if(h){if(a.datumCode&&"none"!==a.datumCode){var r=M(it,a.datumCode);r&&(a.datum_params=a.datum_params||(r.towgs84?r.towgs84.split(","):null),a.ellps=r.ellipse,a.datumName=r.datumName?r.datumName:a.datumCode)}a.k0=a.k0||1,a.axis=a.axis||"enu",a.ellps=a.ellps||"wgs84",a.lat1=a.lat1||a.lat0;var n,o,l,c,u,_,f,d=function(t,s,i,a,h){if(!t){var r=M(tt,a);r||(r=st),t=r.a,s=r.b,i=r.rf}return i&&!s&&(s=(1-1/i)*t),(0===i||Math.abs(t-s)<e)&&(h=!0,s=t),{a:t,b:s,rf:i,sphere:h}}(a.a,a.b,a.rf,a.ellps,a.sphere),g=(n=d.a,o=d.b,d.rf,l=a.R_A,_=((c=n*n)-(u=o*o))/c,f=0,l?(c=(n*=1-_*(.16666666666666666+_*(.04722222222222222+.022156084656084655
12*_)))*n,_=0):f=Math.sqrt(_),{es:_,e:f,ep2:(c-u)/u}),m=function(t){return void 0===t?null:t.split(",").map(nt)}(a.nadgrids),p=a.datum||function(t,s,a,e,h,r,n){var o={};return o.datum_type=void 0===t||"none"===t?5:4,s&&(o.datum_params=s.map(parseFloat),0===o.datum_params[0]&&0===o.datum_params[1]&&0===o.datum_params[2]||(o.datum_type=1),o.datum_params.length>3&&(0===o.datum_params[3]&&0===o.datum_params[4]&&0===o.datum_params[5]&&0===o.datum_params[6]||(o.datum_type=2,o.datum_params[3]*=i,o.datum_params[4]*=i,o.datum_params[5]*=i,o.datum_params[6]=o.datum_params[6]/1e6+1))),n&&(o.datum_type=3,o.grids=n),o.a=a,o.b=e,o.es=h,o.ep2=r,o}(a.datumCode,a.datum_params,d.a,d.b,g.es,g.ep2,m);U(this,a),U(this,h),this.a=d.a,this.b=d.b,this.rf=d.rf,this.sphere=d.sphere,this.es=g.es,this.e=g.e,this.ep2=g.ep2,this.datum=p,"init"in this&&"function"==typeof this.init&&this.init(),s(null,this)}else s("Could not get projection name from: "+t)}else s("Could not parse to valid json: "+t)}function dt(t,s,i){var e,h,r,n,o=t.x,l=t.y,c=t.z?t.z:0;if(l<-a&&l>-1.001*a)l=-a;else if(l>a&&l<1.001*a)l=a;else{if(l<-a)return{x:-1/0,y:-1/0,z:t.z};if(l>a)return{x:1/0,y:1/0,z:t.z}}return o>Math.PI&&(o-=2*Math.PI),h=Math.sin(l),n=Math.cos(l),r=h*h,{x:((e=i/Math.sqrt(1-s*r))+c)*n*Math.cos(o),y:(e+c)*n*Math.sin(o),z:(e*(1-s)+c)*h}}function gt(t,s,i,a){var e,h,r,n,o,l,c,u,_,M,f,d,g,m,p,y=1e-12,w=t.x,v=t.y,E=t.z?t.z:0;if(e=Math.sqrt(w*w+v*v),h=Math.sqrt(w*w+v*v+E*E),e/i<y){if(m=0,h/i<y)return p=-a,{x:t.x,y:t.y,z:t.z}}else m=Math.atan2(v,w);r=E/h,u=(n=e/h)*(1-s)*(o=1/Math.sqrt(1-s*(2-s)*n*n)),_=r*o,g=0;do{g++,l=s*(c=i/Math.sqrt(1-s*_*_))/(c+(p=e*u+E*_-c*(1-s*_*_))),d=(f=r*(o=1/Math.sqrt(1-l*(2-l)*n*n)))*u-(M=n*(1-l)*o)*_,u=M,_=f}while(d*d>1e-24&&g<30);return{x:m,y:Math.atan(f/Math.abs(M)),z:p}}function mt(t){return 1===t||2===t}function pt(i,a,e){if(function(t,s){return t.datum_type===s.datum_type&&!(t.a!==s.a||Math.abs(t.es-s.es)>5e-11)&&(1===t.datum_type?t.datum_params[0]===s.datum_params[0]&&t.datum_params[1]===s.datum_params[1]&&t.datum_params[2]===s.datum_params[2]:2!==t.datum_type||t.datum_params[0]===s.datum_params[0]&&t.datum_params[1]===s.datum_params[1]&&t.datum_params[2]===s.datum_params[2]&&t.datum_params[3]===s.datum_params[3]&&t.datum_params[4]===s.datum_params[4]&&t.datum_params[5]===s.datum_params[5]&&t.datum_params[6]===s.datum_params[6])}(i,a))return e;if(5===i.datum_type||5===a.datum_type)return e;var h=i.a,r=i.es;if(3===i.datum_type){if(0!==yt(i,!1,e))return;h=t,r=s}var n=a.a,o=a.b,l=a.es;if(3===a.datum_type&&(n=t,o=6356752.314,l=s),r===l&&h===n&&!mt(i.datum_type)&&!mt(a.datum_type))return e;if((e=dt(e,r,h),mt(i.datum_type)&&(e=function(t,s,i){if(1===s)return{x:t.x+i[0],y:t.y+i[1],z:t.z+i[2]};if(2===s){var a=i[0],e=i[1],h=i[2],r=i[3],n=i[4],o=i[5],l=i[6];return{x:l*(t.x-o*t.y+n*t.z)+a,y:l*(o*t.x+t.y-r*t.z)+e,z:l*(-n*t.x+r*t.y+t.z)+h}}}(e,i.datum_type,i.datum_params)),mt(a.datum_type)&&(e=function(t,s,i){if(1===s)return{x:t.x-i[0],y:t.y-i[1],z:t.z-i[2]};if(2===s){var a=i[0],e=i[1],h=i[2],r=i[3],n=i[4],o=i[5],l=i[6],c=(t.x-a)/l,u=(t.y-e)/l,_=(t.z-h)/l;return{x:c+o*u-n*_,y:-o*c+u+r*_,z:n*c-r*u+_}}}(e,a.datum_type,a.datum_params)),e=gt(e,l,n,o),3===a.datum_type)&&0!==yt(a,!0,e))return;return e}function yt(t,s,i){if(null===t.grids||0===t.grids.length)return console.log("Grid shift grids not found"),-1;var a={x:-i.x,y:i.y},e={x:Number.NaN,y:Number.NaN},h=[];t:for(var n=0;n<t.grids.length;n++){var o=t.grids[n];if(h.push(o.name),o.isNull){e=a;break}if(null!==o.grid)for(var l=o.grid.subgrids,c=0,u=l.length;c<u;c++){var _=l[c],M=(Math.abs(_.del[1])+Math.abs(_.del[0]))/1e4,f=_.ll[0]-M,d=_.ll[1]-M,g=_.ll[0]+(_.lim[0]-1)*_.del[0]+M,m=_.ll[1]+(_.lim[1]-1)*_.del[1]+M;if(!(d>a.y||f>a.x||m<a.y||g<a.x)&&(e=wt(a,s,_),!isNaN(e.x)))break t}else if(o.mandatory)return console.log("Unable to find mandatory grid '"+o.name+"'"),-1}return isNaN(e.x)?(console.log("Failed to find a grid shift table for location '"+-a.x*r+" "+a.y*r+" tried: '"+h+"'"),-1):(i.x=-e.x,i.y=e.y,0)}function wt(t,s,i){var a={x:Number.NaN,y:Number.NaN};if(isNaN(t.x))return a;var e={x:t.x,y:t.y};e.x-=i.ll[0],e.y-=i.ll[1],e.x=z(e.x-Math.PI)+Math.PI;
12var h=vt(e,i);if(s){if(isNaN(h.x))return a;h.x=e.x-h.x,h.y=e.y-h.y;var r,n,o=9;do{if(n=vt(h,i),isNaN(n.x)){console.log("Inverse grid shift iteration failed, presumably at grid edge.  Using first approximation.");break}r={x:e.x-(n.x+h.x),y:e.y-(n.y+h.y)},h.x+=r.x,h.y+=r.y}while(o--&&Math.abs(r.x)>1e-12&&Math.abs(r.y)>1e-12);if(o<0)return console.log("Inverse grid shift iterator failed to converge."),a;a.x=z(h.x+i.ll[0]),a.y=h.y+i.ll[1]}else isNaN(h.x)||(a.x=t.x+h.x,a.y=t.y+h.y);return a}function vt(t,s){var i,a={x:t.x/s.del[0],y:t.y/s.del[1]},e=Math.floor(a.x),h=Math.floor(a.y),r=a.x-1*e,n=a.y-1*h,o={x:Number.NaN,y:Number.NaN};if(e<0||e>=s.lim[0])return o;if(h<0||h>=s.lim[1])return o;i=h*s.lim[0]+e;var l=s.cvs[i][0],c=s.cvs[i][1];i++;var u=s.cvs[i][0],_=s.cvs[i][1];i+=s.lim[0];var M=s.cvs[i][0],f=s.cvs[i][1];i--;var d=s.cvs[i][0],g=s.cvs[i][1],m=r*n,p=r*(1-n),y=(1-r)*(1-n),w=(1-r)*n;return o.x=y*l+p*u+w*d+m*M,o.y=y*c+p*_+w*g+m*f,o}function Et(t,s,i){var a,e,h,r=i.x,n=i.y,o=i.z||0,l={};for(h=0;h<3;h++)if(!s||2!==h||void 0!==i.z)switch(0===h?(a=r,e=-1!=="ew".indexOf(t.axis[h])?"x":"y"):1===h?(a=n,e=-1!=="ns".indexOf(t.axis[h])?"y":"x"):(a=o,e="z"),t.axis[h]){case"e":case"n":l[e]=a;break;case"w":case"s":l[e]=-a;break;case"u":void 0!==i[e]&&(l.z=a);break;case"d":void 0!==i[e]&&(l.z=-a);break;default:return null}return l}function xt(t){var s={x:t[0],y:t[1]};return t.length>2&&(s.z=t[2]),t.length>3&&(s.m=t[3]),s}function St(t){if("function"==typeof Number.isFinite){if(Number.isFinite(t))return;throw new TypeError("coordinates must be finite numbers")}if("number"!=typeof t||t!=t||!isFinite(t))throw new TypeError("coordinates must be finite numbers")}function Gt(t,s,i,a){var e,n=void 0!==(i=Array.isArray(i)?xt(i):{x:i.x,y:i.y,z:i.z,m:i.m}).z;if(function(t){St(t.x),St(t.y)}(i),t.datum&&s.datum&&function(t,s){return(1===t.datum.datum_type||2===t.datum.datum_type||3===t.datum.datum_type)&&"WGS84"!==s.datumCode||(1===s.datum.datum_type||2===s.datum.datum_type||3===s.datum.datum_type)&&"WGS84"!==t.datumCode}(t,s)&&(i=Gt(t,e=new ft("WGS84"),i,a),t=e),a&&"enu"!==t.axis&&(i=Et(t,!1,i)),"longlat"===t.projName)i={x:i.x*h,y:i.y*h,z:i.z||0};else if(t.to_meter&&(i={x:i.x*t.to_meter,y:i.y*t.to_meter,z:i.z||0}),!(i=t.inverse(i)))return;if(t.from_greenwich&&(i.x+=t.from_greenwich),i=pt(t.datum,s.datum,i))return s.from_greenwich&&(i={x:i.x-s.from_greenwich,y:i.y,z:i.z||0}),"longlat"===s.projName?i={x:i.x*r,y:i.y*r,z:i.z||0}:(i=s.forward(i),s.to_meter&&(i={x:i.x/s.to_meter,y:i.y/s.to_meter,z:i.z||0})),a&&"enu"!==s.axis?Et(s,!0,i):(i&&!n&&delete i.z,i)}ft.projections=$,ft.projections.start();var Pt=ft("WGS84");function bt(t,s,i,a){var e,h,r;return Array.isArray(i)?(e=Gt(t,s,i,a)||{x:NaN,y:NaN},i.length>2?void 0!==t.name&&"geocent"===t.name||void 0!==s.name&&"geocent"===s.name?"number"==typeof e.z?[e.x,e.y,e.z].concat(i.slice(3)):[e.x,e.y,i[2]].concat(i.slice(3)):[e.x,e.y].concat(i.slice(2)):[e.x,e.y]):(h=Gt(t,s,i,a),2===(r=Object.keys(i)).length||r.forEach((function(a){if(void 0!==t.name&&"geocent"===t.name||void 0!==s.name&&"geocent"===s.name){if("x"===a||"y"===a||"z"===a)return}else if("x"===a||"y"===a)return;h[a]=i[a]})),h)}function Nt(t){return t instanceof ft?t:"object"==typeof t&&"oProj"in t?t.oProj:ft(t)}var At="AJSAJS",It="AFAFAF",Ct=65,kt=73,Ot=79,Rt=86,jt=90,qt={forward:Tt,inverse:function(t){var s=Bt(Wt(t.toUpperCase()));if(s.lat&&s.lon)return[s.lon,s.lat,s.lon,s.lat];return[s.left,s.bottom,s.right,s.top]},toPoint:Lt};function Tt(t,s){return s=s||5,function(t,s){var i="00000"+t.easting,a="00000"+t.northing;return t.zoneNumber+t.zoneLetter+(M=t.easting,f=t.northing,d=t.zoneNumber,g=zt(d),m=Math.floor(M/1e5),p=Math.floor(f/1e5)%20,e=m,h=p,r=g,n=r-1,o=At.charCodeAt(n),l=It.charCodeAt(n),c=o+e-1,u=l+h,_=!1,c>jt&&(c=c-jt+Ct-1,_=!0),(c===kt||o<kt&&c>kt||(c>kt||o<kt)&&_)&&c++,(c===Ot||o<Ot&&c>Ot||(c>Ot||o<Ot)&&_)&&++c===kt&&c++,c>jt&&(c=c-jt+Ct-1),u>Rt?(u=u-Rt+Ct-1,_=!0):_=!1,(u===kt||l<kt&&u>kt||(u>kt||l<kt)&&_)&&u++,(u===Ot||l<Ot&&u>Ot||(u>Ot||l<Ot)&&_)&&++u===kt&&u++,u>Rt&&(u=u-Rt+Ct-1),String.fromCharCode(c)+String.fromCharCode(u))+i.substr(i.length-5,s)+a.substr(a.length-5,s);var e,h,r,n,o,l,c,u,_;var M,f,d,g,m,p}(function(t){var s,i,a,e,h,r,n,o,l=t.lat,c=t.lon,u=6378137,_=.00669438,M=.9996,f=Ft(l),d=Ft(c);o=Math.floor((c+180)/6)+1,180===c&&(o=60);l>=56&&l<64&&c>=3&&c<12&&(o=32);l>=72&&l<84&&(c>=0&&c<9?o=31:c>=9&&c<21?o=33:c>=21&&c<33?o=35:c>=33&&c<42&&(o=37));
12n=Ft(6*(o-1)-180+3),s=_/(1-_),i=u/Math.sqrt(1-_*Math.sin(f)*Math.sin(f)),a=Math.tan(f)*Math.tan(f),e=s*Math.cos(f)*Math.cos(f),h=Math.cos(f)*(d-n),r=u*((1-_/4-3*_*_/64-5*_*_*_/256)*f-(3*_/8+3*_*_/32+45*_*_*_/1024)*Math.sin(2*f)+(15*_*_/256+45*_*_*_/1024)*Math.sin(4*f)-35*_*_*_/3072*Math.sin(6*f));var g=M*i*(h+(1-a+e)*h*h*h/6+(5-18*a+a*a+72*e-58*s)*h*h*h*h*h/120)+5e5,m=M*(r+i*Math.tan(f)*(h*h/2+(5-a+9*e+4*e*e)*h*h*h*h/24+(61-58*a+a*a+600*e-330*s)*h*h*h*h*h*h/720));l<0&&(m+=1e7);return{northing:Math.round(m),easting:Math.round(g),zoneNumber:o,zoneLetter:Dt(l)}}({lat:t[1],lon:t[0]}),s)}function Lt(t){var s=Bt(Wt(t.toUpperCase()));return s.lat&&s.lon?[s.lon,s.lat]:[(s.left+s.right)/2,(s.top+s.bottom)/2]}function Ft(t){return t*(Math.PI/180)}function Ut(t){return t/Math.PI*180}function Bt(t){var s=t.northing,i=t.easting,a=t.zoneLetter,e=t.zoneNumber;if(e<0||e>60)return null;var h,r,n,o,l,c,u,_,M,f=.9996,d=6378137,g=.00669438,m=(1-Math.sqrt(.99330562))/(1+Math.sqrt(.99330562)),p=i-5e5,y=s;a<"N"&&(y-=1e7),u=6*(e-1)-180+3,h=.006739496752268451,M=(_=y/f/6367449.145945056)+(3*m/2-27*m*m*m/32)*Math.sin(2*_)+(21*m*m/16-55*m*m*m*m/32)*Math.sin(4*_)+151*m*m*m/96*Math.sin(6*_),r=d/Math.sqrt(1-g*Math.sin(M)*Math.sin(M)),n=Math.tan(M)*Math.tan(M),o=h*Math.cos(M)*Math.cos(M),l=.99330562*d/Math.pow(1-g*Math.sin(M)*Math.sin(M),1.5),c=p/(r*f);var w=M-r*Math.tan(M)/l*(c*c/2-(5+3*n+10*o-4*o*o-9*h)*c*c*c*c/24+(61+90*n+298*o+45*n*n-1.6983531815716497-3*o*o)*c*c*c*c*c*c/720);w=Ut(w);var v,E=(c-(1+2*n+o)*c*c*c/6+(5-2*o+28*n-3*o*o+8*h+24*n*n)*c*c*c*c*c/120)/Math.cos(M);if(E=u+Ut(E),t.accuracy){var x=Bt({northing:t.northing+t.accuracy,easting:t.easting+t.accuracy,zoneLetter:t.zoneLetter,zoneNumber:t.zoneNumber});v={top:x.lat,right:x.lon,bottom:w,left:E}}else v={lat:w,lon:E};return v}function Dt(t){var s="Z";return 84>=t&&t>=72?s="X":72>t&&t>=64?s="W":64>t&&t>=56?s="V":56>t&&t>=48?s="U":48>t&&t>=40?s="T":40>t&&t>=32?s="S":32>t&&t>=24?s="R":24>t&&t>=16?s="Q":16>t&&t>=8?s="P":8>t&&t>=0?s="N":0>t&&t>=-8?s="M":-8>t&&t>=-16?s="L":-16>t&&t>=-24?s="K":-24>t&&t>=-32?s="J":-32>t&&t>=-40?s="H":-40>t&&t>=-48?s="G":-48>t&&t>=-56?s="F":-56>t&&t>=-64?s="E":-64>t&&t>=-72?s="D":-72>t&&t>=-80&&(s="C"),s}function zt(t){var s=t%6;return 0===s&&(s=6),s}function Wt(t){if(t&&0===t.length)throw"MGRSPoint coverting from nothing";for(var s,i=t.length,a=null,e="",h=0;!/[A-Z]/.test(s=t.charAt(h));){if(h>=2)throw"MGRSPoint bad conversion from: "+t;e+=s,h++}var r=parseInt(e,10);if(0===h||h+3>i)throw"MGRSPoint bad conversion from: "+t;var n=t.charAt(h++);if(n<="A"||"B"===n||"Y"===n||n>="Z"||"I"===n||"O"===n)throw"MGRSPoint zone letter "+n+" not handled: "+t;a=t.substring(h,h+=2);for(var o=zt(r),l=function(t,s){var i=At.charCodeAt(s-1),a=1e5,e=!1;for(;i!==t.charCodeAt(0);){if(++i===kt&&i++,i===Ot&&i++,i>jt){if(e)throw"Bad character: "+t;i=Ct,e=!0}a+=1e5}return a}(a.charAt(0),o),c=function(t,s){if(t>"V")throw"MGRSPoint given invalid Northing "+t;var i=It.charCodeAt(s-1),a=0,e=!1;for(;i!==t.charCodeAt(0);){if(++i===kt&&i++,i===Ot&&i++,i>Rt){if(e)throw"Bad character: "+t;i=Ct,e=!0}a+=1e5}return a}(a.charAt(1),o);c<Ht(n);)c+=2e6;var u=i-h;if(u%2!=0)throw"MGRSPoint has to have an even number \nof digits after the zone letter and two 100km letters - front \nhalf for easting meters, second half for \nnorthing meters"+t;var _,M,f,d=u/2,g=0,m=0;return d>0&&(_=1e5/Math.pow(10,d),M=t.substring(h,h+d),g=parseFloat(M)*_,f=t.substring(h+d),m=parseFloat(f)*_),{easting:g+l,northing:m+c,zoneLetter:n,zoneNumber:r,accuracy:_}}function Ht(t){var s;switch(t){case"C":s=11e5;break;case"D":s=2e6;break;case"E":s=28e5;break;case"F":s=37e5;break;case"G":s=46e5;break;case"H":s=55e5;break;case"J":s=64e5;break;case"K":s=73e5;break;case"L":s=82e5;break;case"M":s=91e5;break;case"N":s=0;break;case"P":s=8e5;break;case"Q":s=17e5;break;case"R":s=26e5;break;case"S":s=35e5;break;case"T":s=44e5;break;case"U":s=53e5;break;case"V":s=62e5;break;case"W":s=7e6;break;case"X":s=79e5;break;default:s=-1}if(s>=0)return s;throw"Invalid zone letter: "+t}function Qt(t,s,i){if(!(this instanceof Qt))return new Qt(t,s,i);if(Array.isArray(t))this.x=t[0],this.y=t[1],this.z=t[2]||0;else if("object"==typeof t)this.x=t.x,this.y=t.y,this.z=t.z||0;else if("string"==typeof t&&void 0===s){var a=t.split(",");this.x=parseFloat(a[0]),this.y=parseFloat(a[1]),this.z=parseFloat(a[2])||0}else this.x=t,this.y=s,this.z=i||0;console.warn("proj4.Point will be removed in version 3, use proj4.toPoint")}Qt.fromMGRS=function(t){return new Qt(Lt(t))},Qt.prototype.toMGRS=function(t){return Tt([this.x,this.y],t)};var Xt=.046875,Vt=.01953125,Jt=.01068115234375;function Kt(t){var s=[];s[0]=1-t*(.25+t*(Xt+t*(Vt+t*Jt))),s[1]=t*(.75-t*(Xt+t*(Vt+t*Jt)));var i=t*t;return s[2]=i*(.46875-t*(.013020833333333334+.007120768229166667*t)),i*=t,s[3]=i*(.3645833333333333-.005696614583333333*t),s[4]=i*t*.3076171875,s}function Zt(t,s,i,a){return i*=s,s*=s,a[0]*t-i*(a[1]+s*(a[2]+s*(a[3]+s*a[4])))}function Yt(t,s,i){for(var a=1/(1-s),h=t,r=20;r;--r){var n=Math.sin(h),o=1-s*n*n;if(h-=o=(Zt(h,n,Math.cos(h),i)-t)*(o*Math.sqrt(o))*a,Math.abs(o)<e)return h}return h}var $t={init:function(){this.x0=void 0!==this.x0?this.x0:0,this.y0=void 0!==this.y0?this.y0:0,this.long0=void 0!==this.long0?this.long0:0,this.lat0=void 0!==this.lat0?this.lat0:0,this.es&&(this.en=Kt(this.es),this.ml0=Zt(this.lat0,Math.sin(this.lat0),Math.cos(this.lat0),this.en))},forward:function(t){var s,i,a,h=t.x,r=t.y,n=z(h-this.long0,this.over),o=Math.sin(r),l=Math.cos(r);if(this.es){var c=l*n,u=Math.pow(c,2),_=this.ep2*Math.pow(l,2),M=Math.pow(_,2),f=Math.abs(l)>e?Math.tan(r):0,d=Math.pow(f,2),g=Math.pow(d,2);s=1-this.es*Math.pow(o,2),c/=Math.sqrt(s);var m=Zt(r,o,l,this.en);i=this.a*(this.k0*c*(1+u/6*(1-d+_+u/20*(5-18*d+g+14*_-58*d*_+u/42*(61+179*g-g*d-479*d)
12))))+this.x0,a=this.a*(this.k0*(m-this.ml0+o*n*c/2*(1+u/12*(5-d+9*_+4*M+u/30*(61+g-58*d+270*_-330*d*_+u/56*(1385+543*g-g*d-3111*d))))))+this.y0}else{var p=l*Math.sin(n);if(Math.abs(Math.abs(p)-1)<e)return 93;if(i=.5*this.a*this.k0*Math.log((1+p)/(1-p))+this.x0,a=l*Math.cos(n)/Math.sqrt(1-Math.pow(p,2)),(p=Math.abs(a))>=1){if(p-1>e)return 93;a=0}else a=Math.acos(a);r<0&&(a=-a),a=this.a*this.k0*(a-this.lat0)+this.y0}return t.x=i,t.y=a,t},inverse:function(t){var s,i,h,r,n=(t.x-this.x0)*(1/this.a),o=(t.y-this.y0)*(1/this.a);if(this.es)if(i=Yt(s=this.ml0+o/this.k0,this.es,this.en),Math.abs(i)<a){var l=Math.sin(i),c=Math.cos(i),u=Math.abs(c)>e?Math.tan(i):0,_=this.ep2*Math.pow(c,2),M=Math.pow(_,2),f=Math.pow(u,2),d=Math.pow(f,2);s=1-this.es*Math.pow(l,2);var g=n*Math.sqrt(s)/this.k0,m=Math.pow(g,2);h=i-(s*=u)*m/(1-this.es)*.5*(1-m/12*(5+3*f-9*_*f+_-4*M-m/30*(61+90*f-252*_*f+45*d+46*_-m/56*(1385+3633*f+4095*d+1574*d*f)))),r=z(this.long0+g*(1-m/6*(1+2*f+_-m/20*(5+28*f+24*d+8*_*f+6*_-m/42*(61+662*f+1320*d+720*d*f))))/c,this.over)}else h=a*D(o),r=0;else{var p=Math.exp(n/this.k0),y=.5*(p-1/p),w=this.lat0+o/this.k0,v=Math.cos(w);s=Math.sqrt((1-Math.pow(v,2))/(1+Math.pow(y,2))),h=Math.asin(s),o<0&&(h=-h),r=0===y&&0===v?0:z(Math.atan2(y,v)+this.long0,this.over)}return t.x=r,t.y=h,t},names:["Fast_Transverse_Mercator","Fast Transverse Mercator"]};function ts(t){var s=Math.exp(t);return s=(s-1/s)/2}function ss(t,s){t=Math.abs(t),s=Math.abs(s);var i=Math.max(t,s),a=Math.min(t,s)/(i||1);return i*Math.sqrt(1+Math.pow(a,2))}function is(t){var s=Math.abs(t);return s=function(t){var s=1+t,i=s-1;return 0===i?t:t*Math.log(s)/i}(s*(1+s/(ss(1,s)+1))),t<0?-s:s}function as(t,s){for(var i,a=2*Math.cos(2*s),e=t.length-1,h=t[e],r=0;--e>=0;)i=a*h-r+t[e],r=h,h=i;return s+i*Math.sin(2*s)}function es(t,s,i){for(var a,e,h=Math.sin(s),r=Math.cos(s),n=ts(i),o=function(t){var s=Math.exp(t);return(s+1/s)/2}(i),l=2*r*o,c=-2*h*n,u=t.length-1,_=t[u],M=0,f=0,d=0;--u>=0;)a=f,e=M,_=l*(f=_)-a-c*(M=d)+t[u],d=c*f-e+l*M;return[(l=h*o)*_-(c=r*n)*d,l*d+c*_]}var hs={init:function(){if(!this.approx&&(isNaN(this.es)||this.es<=0))throw new Error('Incorrect elliptical usage. Try using the +approx option in the proj string, or PROJECTION["Fast_Transverse_Mercator"] in the WKT.');this.approx&&($t.init.apply(this),this.forward=$t.forward,this.inverse=$t.inverse),this.x0=void 0!==this.x0?this.x0:0,this.y0=void 0!==this.y0?this.y0:0,this.long0=void 0!==this.long0?this.long0:0,this.lat0=void 0!==this.lat0?this.lat0:0,this.cgb=[],this.cbg=[],this.utg=[],this.gtu=[];var t=this.es/(1+Math.sqrt(1-this.es)),s=t/(2-t),i=s;this.cgb[0]=s*(2+s*(-2/3+s*(s*(116/45+s*(26/45+s*(-2854/675)))-2))),this.cbg[0]=s*(s*(2/3+s*(4/3+s*(-82/45+s*(32/45+s*(4642/4725)))))-2),i*=s,this.cgb[1]=i*(7/3+s*(s*(-227/45+s*(2704/315+s*(2323/945)))-1.6)),this.cbg[1]=i*(5/3+s*(-16/15+s*(-13/9+s*(904/315+s*(-1522/945))))),i*=s,this.cgb[2]=i*(56/15+s*(-136/35+s*(-1262/105+s*(73814/2835)))),this.cbg[2]=i*(-26/15+s*(34/21+s*(1.6+s*(-12686/2835)))),i*=s,this.cgb[3]=i*(4279/630+s*(-332/35+s*(-399572/14175))),this.cbg[3]=i*(1237/630+s*(s*(-24832/14175)-2.4)),i*=s,this.cgb[4]=i*(4174/315+s*(-144838/6237)),this.cbg[4]=i*(-734/315+s*(109598/31185)),i*=s,this.cgb[5]=i*(601676/22275),this.cbg[5]=i*(444337/155925),i=Math.pow(s,2),this.Qn=this.k0/(1+s)*(1+i*(1/4+i*(1/64+i/256))),this.utg[0]=s*(s*(2/3+s*(-37/96+s*(1/360+s*(81/512+s*(-96199/604800)))))-.5),this.gtu[0]=s*(.5+s*(-2/3+s*(5/16+s*(41/180+s*(-127/288+s*(7891/37800)))))),this.utg[1]=i*(-1/48+s*(-1/15+s*(437/1440+s*(-46/105+s*(1118711/3870720))))),this.gtu[1]=i*(13/48+s*(s*(557/1440+s*(281/630+s*(-1983433/1935360)))-.6)),i*=s,this.utg[2]=i*(-17/480+s*(37/840+s*(209/4480+s*(-5569/90720)))),this.gtu[2]=i*(61/240+s*(-103/140+s*(15061/26880+s*(167603/181440)))),i*=s,this.utg[3]=i*(-4397/161280+s*(11/504+s*(830251/7257600))),this.gtu[3]=i*(49561/161280+s*(-179/168+s*(6601661/7257600))),i*=s,this.utg[4]=i*(-4583/161280+s*(108847/3991680)),this.gtu[4]=i*(34729/80640+s*(-3418889/1995840)),i*=s,this.utg[5]=i*(-20648693/638668800),this.gtu[5]=.6650675310896665*i;var a=as(this.cbg,this.lat0);this.Zb=-this.Qn*(a+function(t,s){for(var i,a=2*Math.cos(s),e=t.length-1,h=t[e],r=0;--e>=0;)i=a*h-r+t[e],r=h,h=i;return Math.sin(s)*i}(this.gtu,2*a))},forward:function(t){var s=z(t.x-this.long0,this.over),i=t.y;i=as(this.cbg,i);var a=Math.sin(i),e=Math.cos(i),h=Math.sin(s),r=Math.cos(s);i=Math.atan2(a,r*e),s=Math.atan2(h*e,ss(a,e*r)),s=is(Math.tan(s));var n,o,l=es(this.gtu,2*i,2*s);return i+=l[0],s+=l[1],Math.abs(s)<=2.623395162778?(n=this.a*(this.Qn*s)+this.x0,o=this.a*(this.Qn*i+this.Zb)+this.y0):(n=1/0,o=1/0),t.x=n,t.y=o,t},inverse:function(t){var s,i,a=(t.x-this.x0)*(1/this.a),e=(t.y-this.y0)*(1/this.a);if(e=(e-this.Zb)/this.Qn,a/=this.Qn,Math.abs(a)<=2.623395162778){var h=es(this.utg,2*e,2*a);e+=h[0],a+=h[1],a=Math.atan(ts(a));var r=Math.sin(e),n=Math.cos(e),o=Math.sin(a),l=Math.cos(a);e=Math.atan2(r*l,ss(o,l*n)),s=z((a=Math.atan2(o,l*n))+this.long0,this.over),i=as(this.cgb,e)}else s=1/0,i=1/0;return t.x=s,t.y=i,t},names:["Extended_Transverse_Mercator","Extended Transverse Mercator","etmerc","Transverse_Mercator","Transverse Mercator","Gauss Kruger","Gauss_Kruger","tmerc"]};var rs={init:function(){var t=function(t,s){if(void 0===t){if((t=Math.floor(30*(z(s)+Math.PI)/Math.PI)+1)<0)return 0;if(t>60)return 60}return t}(this.zone,this.long0);if(void 0===t)throw new Error("unknown utm zone");this.lat0=0,this.long0=(6*Math.abs(t)-183)*h,this.x0=5e5,this.y0=this.utmSouth?1e7:0,this.k0=.9996,hs.init.apply(this),this.forward=hs.forward,this.inverse=hs.inverse},names:["Universal Transverse Mercator System","utm"],dependsOn:"etmerc"};function ns(t,s){return Math.pow((1-t)/(1+t),s)}var os={init:function(){var t=Math.sin(this.lat0),s=Math.cos(this.lat0);s*=s,this.rc=Math.sqrt(1-this.es)/(1-this.es*t*t),this.C=Math.sqrt(1+this.es*s*s/(1-this.es)),this.phic0=Math.asin(t/this.C),this.ratexp=.5*this.C*this.e,this.K=Math.tan(.5*this.phic0+n)/(Math.pow(Math.tan(.5*this.lat0+n),this.C)*ns(this.e*t,this.ratexp))},forward:function(t){var s=t.x,i=t.y;return t.y=2*Math.atan(this.K*Math.pow(Math.tan(.5*i+n),this.C)*ns(this.e*Math.sin(i),this.ratexp))-a,t.x=this.C*s,t},inverse:function(t){for(var s=t.x/this.C,i=t.y,e=Math.pow(Math.tan(.5*i+n)/this.K,1/this.C),h=20;h>0&&(i=2*Math.atan(e*ns(this.e*Math.sin(t.y),-.5*this.e))-a,!(Math.abs(i-t.y)<1e-14));--h)t.y=i;return h?(t.x=s,t.y=i,t):null}};var ls={init:function(){os.init.apply(this),this.rc&&(this.sinc0=Math.sin(this.phic0),this.cosc0=Math.cos(this.phic0),this.R2=2*this.rc,this.title||(this.title="Oblique Stereographic Alternative"))},forward:function(t){var s,i,a,e;return t.x=z(t.x-this.long0,this.over),os.forward.apply(this,[t]),s=Math.sin(t.y),i=Math.cos(t.y),a=Math.cos(t.x),e=this.k0*this.R2/(1+this.sinc0*s+this.cosc0*i*a),t.x=e*i*Math.sin(t.x),t.y=e*(this.cosc0*s-this.sinc0*i*a),t.x=this.a*t.x+this.x0,t.y=this.a*t.y+this.y0,t},inverse:function(t){var s,i,a,e,h;if(t.x=(t.x-this.x0)/this.a,t.y=(t.y-this.y0)/this.a,t.x/=this.k0,t.y/=this.k0,h=ss(t.x,t.y)){var r=2*Math.atan2(h,this.R2);s=Math.sin(r),i=Math.cos(r),e=Math.asin(i*this.sinc0+t.y*s*this.cosc0/h),a=Math.atan2(t.x*s,h*this.cosc0*i-t.y*this.sinc0*s)}else e=this.phic0,a=0;return t.x=a,t.y=e,os.inverse.apply(this,[t]),t.x=z(t.x+this.long0,this.over),t}
12,names:["Stereographic_North_Pole","Oblique_Stereographic","sterea","Oblique Stereographic Alternative","Double_Stereographic"]};function cs(t,s,i){return s*=i,Math.tan(.5*(a+t))*Math.pow((1-s)/(1+s),.5*i)}var us={init:function(){this.x0=this.x0||0,this.y0=this.y0||0,this.lat0=this.lat0||0,this.long0=this.long0||0,this.coslat0=Math.cos(this.lat0),this.sinlat0=Math.sin(this.lat0),this.sphere?1===this.k0&&!isNaN(this.lat_ts)&&Math.abs(this.coslat0)<=e&&(this.k0=.5*(1+D(this.lat0)*Math.sin(this.lat_ts))):(Math.abs(this.coslat0)<=e&&(this.lat0>0?this.con=1:this.con=-1),this.cons=Math.sqrt(Math.pow(1+this.e,1+this.e)*Math.pow(1-this.e,1-this.e)),1===this.k0&&!isNaN(this.lat_ts)&&Math.abs(this.coslat0)<=e&&Math.abs(Math.cos(this.lat_ts))>e&&(this.k0=.5*this.cons*B(this.e,Math.sin(this.lat_ts),Math.cos(this.lat_ts))/W(this.e,this.con*this.lat_ts,this.con*Math.sin(this.lat_ts))),this.ms1=B(this.e,this.sinlat0,this.coslat0),this.X0=2*Math.atan(cs(this.lat0,this.sinlat0,this.e))-a,this.cosX0=Math.cos(this.X0),this.sinX0=Math.sin(this.X0))},forward:function(t){var s,i,h,r,n,o,l=t.x,c=t.y,u=Math.sin(c),_=Math.cos(c),M=z(l-this.long0,this.over);return Math.abs(Math.abs(l-this.long0)-Math.PI)<=e&&Math.abs(c+this.lat0)<=e?(t.x=NaN,t.y=NaN,t):this.sphere?(s=2*this.k0/(1+this.sinlat0*u+this.coslat0*_*Math.cos(M)),t.x=this.a*s*_*Math.sin(M)+this.x0,t.y=this.a*s*(this.coslat0*u-this.sinlat0*_*Math.cos(M))+this.y0,t):(i=2*Math.atan(cs(c,u,this.e))-a,r=Math.cos(i),h=Math.sin(i),Math.abs(this.coslat0)<=e?(n=W(this.e,c*this.con,this.con*u),o=2*this.a*this.k0*n/this.cons,t.x=this.x0+o*Math.sin(l-this.long0),t.y=this.y0-this.con*o*Math.cos(l-this.long0),t):(Math.abs(this.sinlat0)<e?(s=2*this.a*this.k0/(1+r*Math.cos(M)),t.y=s*h):(s=2*this.a*this.k0*this.ms1/(this.cosX0*(1+this.sinX0*h+this.cosX0*r*Math.cos(M))),t.y=s*(this.cosX0*h-this.sinX0*r*Math.cos(M))+this.y0),t.x=s*r*Math.sin(M)+this.x0,t))},inverse:function(t){var s,i,h,r,n;t.x-=this.x0,t.y-=this.y0;var o=Math.sqrt(t.x*t.x+t.y*t.y);if(this.sphere){var l=2*Math.atan(o/(2*this.a*this.k0));return s=this.long0,i=this.lat0,o<=e?(t.x=s,t.y=i,t):(i=Math.asin(Math.cos(l)*this.sinlat0+t.y*Math.sin(l)*this.coslat0/o),s=Math.abs(this.coslat0)<e?this.lat0>0?z(this.long0+Math.atan2(t.x,-1*t.y),this.over):z(this.long0+Math.atan2(t.x,t.y),this.over):z(this.long0+Math.atan2(t.x*Math.sin(l),o*this.coslat0*Math.cos(l)-t.y*this.sinlat0*Math.sin(l)),this.over),t.x=s,t.y=i,t)}if(Math.abs(this.coslat0)<=e){if(o<=e)return i=this.lat0,s=this.long0,t.x=s,t.y=i,t;t.x*=this.con,t.y*=this.con,h=o*this.cons/(2*this.a*this.k0),i=this.con*H(this.e,h),s=this.con*z(this.con*this.long0+Math.atan2(t.x,-1*t.y),this.over)}else r=2*Math.atan(o*this.cosX0/(2*this.a*this.k0*this.ms1)),s=this.long0,o<=e?n=this.X0:(n=Math.asin(Math.cos(r)*this.sinX0+t.y*Math.sin(r)*this.cosX0/o),s=z(this.long0+Math.atan2(t.x*Math.sin(r),o*this.cosX0*Math.cos(r)-t.y*this.sinX0*Math.sin(r)),this.over)),i=-1*H(this.e,Math.tan(.5*(a+n)));return t.x=s,t.y=i,t},names:["stere","Stereographic_South_Pole","Polar_Stereographic_variant_A","Polar_Stereographic_variant_B","Polar_Stereographic"],ssfn_:cs};var _s={init:function(){var t=this.lat0;this.lambda0=this.long0;var s=Math.sin(t),i=this.a,a=1/this.rf,e=2*a-Math.pow(a,2),h=this.e=Math.sqrt(e);this.R=this.k0*i*Math.sqrt(1-e)/(1-e*Math.pow(s,2)),this.alpha=Math.sqrt(1+e/(1-e)*Math.pow(Math.cos(t),4)),this.b0=Math.asin(s/this.alpha);var r=Math.log(Math.tan(Math.PI/4+this.b0/2)),n=Math.log(Math.tan(Math.PI/4+t/2)),o=Math.log((1+h*s)/(1-h*s));this.K=r-this.alpha*n+this.alpha*h/2*o},forward:function(t){var s=Math.log(Math.tan(Math.PI/4-t.y/2)),i=this.e/2*Math.log((1+this.e*Math.sin(t.y))/(1-this.e*Math.sin(t.y))),a=-this.alpha*(s+i)+this.K,e=2*(Math.atan(Math.exp(a))-Math.PI/4),h=this.alpha*(t.x-this.lambda0),r=Math.atan(Math.sin(h)/(Math.sin(this.b0)*Math.tan(e)+Math.cos(this.b0)*Math.cos(h))),n=Math.asin(Math.cos(this.b0)*Math.sin(e)-Math.sin(this.b0)*Math.cos(e)*Math.cos(h));return t.y=this.R/2*Math.log((1+Math.sin(n))/(1-Math.sin(n)))+this.y0,t.x=this.R*r+this.x0,t},inverse:function(t){for(var s=t.x-this.x0,i=t.y-this.y0,a=s/this.R,e=2*(Math.atan(Math.exp(i/this.R))-Math.PI/4),h=Math.asin(Math.cos(this.b0)*Math.sin(e)+Math.sin(this.b0)*Math.cos(e)*Math.cos(a)),r=Math.atan(Math.sin(a)/(Math.cos(this.b0)*Math.cos(a)-Math.sin(this.b0)*Math.tan(e))),n=this.lambda0+r/this.alpha,o=0,l=h,c=-1e3,u=0;Math.abs(l-c)>1e-7;){if(++u>20)return;o=1/this.alpha*(Math.log(Math.tan(Math.PI/4+h/2))-this.K)+this.e*Math.log(Math.tan(Math.PI/4+Math.asin(this.e*Math.sin(l))/2)),c=l,l=2*Math.atan(Math.exp(o))-Math.PI/2}return t.x=n,t.y=l,t},names:["somerc"]},Ms=1e-7;var fs={init:function(){var t,s,i,h,r,l,c,u,_,M,f,d,g,m,p=0,y=0,w=0,v=0,E=0,x=0,S=0;this.no_off=(g=["Hotine_Oblique_Mercator","Hotine_Oblique_Mercator_variant_A","Hotine_Oblique_Mercator_Azimuth_Natural_Origin"],m="object"==typeof(d=this).projName?Object.keys(d.projName)[0]:d.projName,"no_uoff"in d||"no_off"in d||-1!==g.indexOf(m)||-1!==g.indexOf(Y(m))),this.no_rot="no_rot"in this;var G=!1;"alpha"in this&&(G=!0);var P=!1;
12if("rectified_grid_angle"in this&&(P=!0),G&&(S=this.alpha),P&&(p=this.rectified_grid_angle),G||P)y=this.longc;else if(w=this.long1,E=this.lat1,v=this.long2,x=this.lat2,Math.abs(E-x)<=Ms||(t=Math.abs(E))<=Ms||Math.abs(t-a)<=Ms||Math.abs(Math.abs(this.lat0)-a)<=Ms||Math.abs(Math.abs(x)-a)<=Ms)throw new Error;var b=1-this.es;s=Math.sqrt(b),Math.abs(this.lat0)>e?(u=Math.sin(this.lat0),i=Math.cos(this.lat0),t=1-this.es*u*u,this.B=i*i,this.B=Math.sqrt(1+this.es*this.B*this.B/b),this.A=this.B*this.k0*s/t,(r=(h=this.B*s/(i*Math.sqrt(t)))*h-1)<=0?r=0:(r=Math.sqrt(r),this.lat0<0&&(r=-r)),this.E=r+=h,this.E*=Math.pow(W(this.e,this.lat0,u),this.B)):(this.B=1/s,this.A=this.k0,this.E=h=r=1),G||P?(G?(f=Math.asin(Math.sin(S)/h),P||(p=S)):(f=p,S=Math.asin(h*Math.sin(f))),this.lam0=y-Math.asin(.5*(r-1/r)*Math.tan(f))/this.B):(l=Math.pow(W(this.e,E,Math.sin(E)),this.B),c=Math.pow(W(this.e,x,Math.sin(x)),this.B),r=this.E/l,_=(c-l)/(c+l),M=((M=this.E*this.E)-c*l)/(M+c*l),(t=w-v)<-Math.PI?v-=o:t>Math.PI&&(v+=o),this.lam0=z(.5*(w+v)-Math.atan(M*Math.tan(.5*this.B*(w-v))/_)/this.B,this.over),f=Math.atan(2*Math.sin(this.B*z(w-this.lam0,this.over))/(r-1/r)),p=S=Math.asin(h*Math.sin(f))),this.singam=Math.sin(f),this.cosgam=Math.cos(f),this.sinrot=Math.sin(p),this.cosrot=Math.cos(p),this.rB=1/this.B,this.ArB=this.A*this.rB,this.BrA=1/this.ArB,this.no_off?this.u_0=0:(this.u_0=Math.abs(this.ArB*Math.atan(Math.sqrt(h*h-1)/Math.cos(S))),this.lat0<0&&(this.u_0=-this.u_0)),r=.5*f,this.v_pole_n=this.ArB*Math.log(Math.tan(n-r)),this.v_pole_s=this.ArB*Math.log(Math.tan(n+r))},forward:function(t){var s,i,h,r,n,o,l,c,u={};if(t.x=t.x-this.lam0,Math.abs(Math.abs(t.y)-a)>e){if(s=.5*((n=this.E/Math.pow(W(this.e,t.y,Math.sin(t.y)),this.B))-(o=1/n)),i=.5*(n+o),r=Math.sin(this.B*t.x),h=(s*this.singam-r*this.cosgam)/i,Math.abs(Math.abs(h)-1)<e)throw new Error;c=.5*this.ArB*Math.log((1-h)/(1+h)),o=Math.cos(this.B*t.x),l=Math.abs(o)<Ms?this.A*t.x:this.ArB*Math.atan2(s*this.cosgam+r*this.singam,o)}else c=t.y>0?this.v_pole_n:this.v_pole_s,l=this.ArB*t.y;return this.no_rot?(u.x=l,u.y=c):(l-=this.u_0,u.x=c*this.cosrot+l*this.sinrot,u.y=l*this.cosrot-c*this.sinrot),u.x=this.a*u.x+this.x0,u.y=this.a*u.y+this.y0,u},inverse:function(t){var s,i,h,r,n,o,l,c={};if(t.x=(t.x-this.x0)*(1/this.a),t.y=(t.y-this.y0)*(1/this.a),this.no_rot?(i=t.y,s=t.x):(i=t.x*this.cosrot-t.y*this.sinrot,s=t.y*this.cosrot+t.x*this.sinrot+this.u_0),r=.5*((h=Math.exp(-this.BrA*i))-1/h),n=.5*(h+1/h),l=((o=Math.sin(this.BrA*s))*this.cosgam+r*this.singam)/n,Math.abs(Math.abs(l)-1)<e)c.x=0,c.y=l<0?-a:a;else{if(c.y=this.E/Math.sqrt((1+l)/(1-l)),c.y=H(this.e,Math.pow(c.y,1/this.B)),c.y===1/0)throw new Error;c.x=-this.rB*Math.atan2(r*this.cosgam-o*this.singam,Math.cos(this.BrA*s))}return c.x+=this.lam0,c},names:["Hotine_Oblique_Mercator","Hotine Oblique Mercator","Hotine_Oblique_Mercator_variant_A","Hotine_Oblique_Mercator_Variant_B","Hotine_Oblique_Mercator_Azimuth_Natural_Origin","Hotine_Oblique_Mercator_Two_Point_Natural_Origin","Hotine_Oblique_Mercator_Azimuth_Center","Oblique_Mercator","omerc"]};var ds={init:function(){if(this.lat2||(this.lat2=this.lat1),this.k0||(this.k0=1),this.x0=this.x0||0,this.y0=this.y0||0,!(Math.abs(this.lat1+this.lat2)<e)){var t=this.b/this.a;this.e=Math.sqrt(1-t*t);var s=Math.sin(this.lat1),i=Math.cos(this.lat1),h=B(this.e,s,i),r=W(this.e,this.lat1,s),n=Math.sin(this.lat2),o=Math.cos(this.lat2),l=B(this.e,n,o),c=W(this.e,this.lat2,n),u=Math.abs(Math.abs(this.lat0)-a)<e?0:W(this.e,this.lat0,Math.sin(this.lat0));Math.abs(this.lat1-this.lat2)>e?this.ns=Math.log(h/l)/Math.log(r/c):this.ns=s,isNaN(this.ns)&&(this.ns=s),this.f0=h/(this.ns*Math.pow(r,this.ns)),this.rh=this.a*this.f0*Math.pow(u,this.ns),this.title||(this.title="Lambert Conformal Conic")}},forward:function(t){var s=t.x,i=t.y;Math.abs(2*Math.abs(i)-Math.PI)<=e&&(i=D(i)*(a-2e-10));var h,r,n=Math.abs(Math.abs(i)-a);if(n>e)h=W(this.e,i,Math.sin(i)),r=this.a*this.f0*Math.pow(h,this.ns);else{if((n=i*this.ns)<=0)return null;r=0}var o=this.ns*z(s-this.long0,this.over);return t.x=this.k0*(r*Math.sin(o))+this.x0,t.y=this.k0*(this.rh-r*Math.cos(o))+this.y0,t},inverse:function(t){var s,i,e,h,r,n=(t.x-this.x0)/this.k0,o=this.rh-(t.y-this.y0)/this.k0;this.ns>0?(s=Math.sqrt(n*n+o*o),i=1):(s=-Math.sqrt(n*n+o*o),i=-1);var l=0;if(0!==s&&(l=Math.atan2(i*n,i*o)),0!==s||this.ns>
120){if(i=1/this.ns,e=Math.pow(s/(this.a*this.f0),i),-9999===(h=H(this.e,e)))return null}else h=-a;return r=z(l/this.ns+this.long0,this.over),t.x=r,t.y=h,t},names:["Lambert Tangential Conformal Conic Projection","Lambert_Conformal_Conic","Lambert_Conformal_Conic_1SP","Lambert_Conformal_Conic_2SP","lcc","Lambert Conic Conformal (1SP)","Lambert Conic Conformal (2SP)"]};var gs={init:function(){this.a=6377397.155,this.es=.006674372230614,this.e=Math.sqrt(this.es),this.lat0||(this.lat0=.863937979737193),this.long0||(this.long0=.4334234309119251),this.k0||(this.k0=.9999),this.s45=.785398163397448,this.s90=2*this.s45,this.fi0=this.lat0,this.e2=this.es,this.e=Math.sqrt(this.e2),this.alfa=Math.sqrt(1+this.e2*Math.pow(Math.cos(this.fi0),4)/(1-this.e2)),this.uq=1.04216856380474,this.u0=Math.asin(Math.sin(this.fi0)/this.alfa),this.g=Math.pow((1+this.e*Math.sin(this.fi0))/(1-this.e*Math.sin(this.fi0)),this.alfa*this.e/2),this.k=Math.tan(this.u0/2+this.s45)/Math.pow(Math.tan(this.fi0/2+this.s45),this.alfa)*this.g,this.k1=this.k0,this.n0=this.a*Math.sqrt(1-this.e2)/(1-this.e2*Math.pow(Math.sin(this.fi0),2)),this.s0=1.37008346281555,this.n=Math.sin(this.s0),this.ro0=this.k1*this.n0/Math.tan(this.s0),this.ad=this.s90-this.uq},forward:function(t){var s,i,a,e,h,r,n,o=t.x,l=t.y,c=z(o-this.long0,this.over);return s=Math.pow((1+this.e*Math.sin(l))/(1-this.e*Math.sin(l)),this.alfa*this.e/2),i=2*(Math.atan(this.k*Math.pow(Math.tan(l/2+this.s45),this.alfa)/s)-this.s45),a=-c*this.alfa,e=Math.asin(Math.cos(this.ad)*Math.sin(i)+Math.sin(this.ad)*Math.cos(i)*Math.cos(a)),h=Math.asin(Math.cos(i)*Math.sin(a)/Math.cos(e)),r=this.n*h,n=this.ro0*Math.pow(Math.tan(this.s0/2+this.s45),this.n)/Math.pow(Math.tan(e/2+this.s45),this.n),t.y=n*Math.cos(r)/1,t.x=n*Math.sin(r)/1,this.czech||(t.y*=-1,t.x*=-1),t},inverse:function(t){var s,i,a,e,h,r,n,o=t.x;t.x=t.y,t.y=o,this.czech||(t.y*=-1,t.x*=-1),h=Math.sqrt(t.x*t.x+t.y*t.y),e=Math.atan2(t.y,t.x)/Math.sin(this.s0),a=2*(Math.atan(Math.pow(this.ro0/h,1/this.n)*Math.tan(this.s0/2+this.s45))-this.s45),s=Math.asin(Math.cos(this.ad)*Math.sin(a)-Math.sin(this.ad)*Math.cos(a)*Math.cos(e)),i=Math.asin(Math.cos(a)*Math.sin(e)/Math.cos(s)),t.x=this.long0-i/this.alfa,r=s,n=0;var l=0;do{t.y=2*(Math.atan(Math.pow(this.k,-1/this.alfa)*Math.pow(Math.tan(s/2+this.s45),1/this.alfa)*Math.pow((1+this.e*Math.sin(r))/(1-this.e*Math.sin(r)),this.e/2))-this.s45),Math.abs(r-t.y)<1e-10&&(n=1),r=t.y,l+=1}while(0===n&&l<15);return l>=15?null:t},names:["Krovak","krovak"]};function ms(t,s,i,a,e){return t*e-s*Math.sin(2*e)+i*Math.sin(4*e)-a*Math.sin(6*e)}function ps(t){return 1-.25*t*(1+t/16*(3+1.25*t))}function ys(t){return.375*t*(1+.25*t*(1+.46875*t))}function ws(t){return.05859375*t*t*(1+.75*t)}function vs(t){return t*t*t*(35/3072)}function Es(t,s,i){var a=s*i;return t/Math.sqrt(1-a*a)}function xs(t){return Math.abs(t)<a?t:t-D(t)*Math.PI}function Ss(t,s,i,a,e){var h,r;h=t/s;for(var n=0;n<15;n++)if(h+=r=(t-(s*h-i*Math.sin(2*h)+a*Math.sin(4*h)-e*Math.sin(6*h)))/(s-2*i*Math.cos(2*h)+4*a*Math.cos(4*h)-6*e*Math.cos(6*h)),Math.abs(r)<=1e-10)return h;return NaN}var Gs={init:function(){this.sphere||(this.e0=ps(this.es),this.e1=ys(this.es),this.e2=ws(this.es),this.e3=vs(this.es),this.ml0=this.a*ms(this.e0,this.e1,this.e2,this.e3,this.lat0))},forward:function(t){var s,i,a=t.x,e=t.y;if(a=z(a-this.long0,this.over),this.sphere)s=this.a*Math.asin(Math.cos(e)*Math.sin(a)),i=this.a*(Math.atan2(Math.tan(e),Math.cos(a))-this.lat0);else{var h=Math.sin(e),r=Math.cos(e),n=Es(this.a,this.e,h),o=Math.tan(e)*Math.tan(e),l=a*Math.cos(e),c=l*l,u=this.es*r*r/(1-this.es);s=n*l*(1-c*o*(1/6-(8-o+8*u)*c/120)),i=this.a*ms(this.e0,this.e1,this.e2,this.e3,e)-this.ml0+n*h/r*c*(.5+(5-o+6*u)*c/24)}return t.x=s+this.x0,t.y=i+this.y0,t},inverse:function(t){t.x-=this.x0,t.y-=this.y0;var s,i,h=t.x/this.a,r=t.y/this.a;if(this.sphere){var n=r+this.lat0;s=Math.asin(Math.sin(n)*Math.cos(h)),i=Math.atan2(Math.tan(h),Math.cos(n))}else{var o=Ss(this.ml0/this.a+r,this.e0,this.e1,this.e2,this.e3);if(Math.abs(Math.abs(o)-a)<=e)return t.x=this.long0,t.y=a,r<0&&(t.y*=-1),t;var l=Es(this.a,this.e,Math.sin(o)),c=l*l*l/this.a/this.a*(1-this.es),u=Math.pow(Math.tan(o),2),_=h*this.a/l,M=_*_;s=o-l*Math.tan(o)/c*_*_*(.5-(1+3*u)*_*_/24),i=_*(1-M*(u/3+(1+3*u)*u*M/15))/Math.cos(o)}return t.x=z(i+this.long0,this.over),t.y=xs(s),t},names:["Cassini","Cassini_Soldner","cass"]};
12function Ps(t,s){var i;return t>1e-7?(1-t*t)*(s/(1-(i=t*s)*i)-.5/t*Math.log((1-i)/(1+i))):2*s}var bs=.3333333333333333,Ns=.17222222222222222,As=.10257936507936508,Is=.06388888888888888,Cs=.0664021164021164,ks=.016415012942191543;var Os={init:function(){var t,s=Math.abs(this.lat0);if(Math.abs(s-a)<e?this.mode=this.lat0<0?1:2:Math.abs(s)<e?this.mode=3:this.mode=4,this.es>0)switch(this.qp=Ps(this.e,1),this.mmf=.5/(1-this.es),this.apa=function(t){var s,i=[];return i[0]=t*bs,s=t*t,i[0]+=s*Ns,i[1]=s*Is,s*=t,i[0]+=s*As,i[1]+=s*Cs,i[2]=s*ks,i}(this.es),this.mode){case 2:case 1:this.dd=1;break;case 3:this.rq=Math.sqrt(.5*this.qp),this.dd=1/this.rq,this.xmf=1,this.ymf=.5*this.qp;break;case 4:this.rq=Math.sqrt(.5*this.qp),t=Math.sin(this.lat0),this.sinb1=Ps(this.e,t)/this.qp,this.cosb1=Math.sqrt(1-this.sinb1*this.sinb1),this.dd=Math.cos(this.lat0)/(Math.sqrt(1-this.es*t*t)*this.rq*this.cosb1),this.ymf=(this.xmf=this.rq)/this.dd,this.xmf*=this.dd}else 4===this.mode&&(this.sinph0=Math.sin(this.lat0),this.cosph0=Math.cos(this.lat0))},forward:function(t){var s,i,h,r,o,l,c,u,_,M,f=t.x,d=t.y;if(f=z(f-this.long0,this.over),this.sphere){if(o=Math.sin(d),M=Math.cos(d),h=Math.cos(f),this.mode===this.OBLIQ||this.mode===this.EQUIT){if((i=this.mode===this.EQUIT?1+M
12*h:1+this.sinph0*o+this.cosph0*M*h)<=e)return null;s=(i=Math.sqrt(2/i))*M*Math.sin(f),i*=this.mode===this.EQUIT?o:this.cosph0*o-this.sinph0*M*h}else if(this.mode===this.N_POLE||this.mode===this.S_POLE){if(this.mode===this.N_POLE&&(h=-h),Math.abs(d+this.lat0)<e)return null;i=n-.5*d,s=(i=2*(this.mode===this.S_POLE?Math.cos(i):Math.sin(i)))*Math.sin(f),i*=h}}else{switch(c=0,u=0,_=0,h=Math.cos(f),r=Math.sin(f),o=Math.sin(d),l=Ps(this.e,o),this.mode!==this.OBLIQ&&this.mode!==this.EQUIT||(c=l/this.qp,u=Math.sqrt(1-c*c)),this.mode){case this.OBLIQ:_=1+this.sinb1*c+this.cosb1*u*h;break;case this.EQUIT:_=1+u*h;break;case this.N_POLE:_=a+d,l=this.qp-l;break;case this.S_POLE:_=d-a,l=this.qp+l}if(Math.abs(_)<e)return null;switch(this.mode){case this.OBLIQ:case this.EQUIT:_=Math.sqrt(2/_),i=this.mode===this.OBLIQ?this.ymf*_*(this.cosb1*c-this.sinb1*u*h):(_=Math.sqrt(2/(1+u*h)))*c*this.ymf,s=this.xmf*_*u*r;break;case this.N_POLE:case this.S_POLE:l>=0?(s=(_=Math.sqrt(l))*r,i=h*(this.mode===this.S_POLE?_:-_)):s=i=0}}return t.x=this.a*s+this.x0,t.y=this.a*i+this.y0,t},inverse:function(t){t.x-=this.x0,t.y-=this.y0;var s,i,h,r,n,o,l,c,u,_,M=t.x/this.a,f=t.y/this.a;if(this.sphere){var d,g=0,m=0;if((i=.5*(d=Math.sqrt(M*M+f*f)))>1)return null;switch(i=2*Math.asin(i),this.mode!==this.OBLIQ&&this.mode!==this.EQUIT||(m=Math.sin(i),g=Math.cos(i)),this.mode){case this.EQUIT:i=Math.abs(d)<=e?0:Math.asin(f*m/d),M*=m,f=g*d;break;case this.OBLIQ:i=Math.abs(d)<=e?this.lat0:Math.asin(g*this.sinph0+f*m*this.cosph0/d),M*=m*this.cosph0,f=(g-Math.sin(i)*this.sinph0)*d;break;case this.N_POLE:f=-f,i=a-i;break;case this.S_POLE:i-=a}s=0!==f||this.mode!==this.EQUIT&&this.mode!==this.OBLIQ?Math.atan2(M,f):0}else{if(l=0,this.mode===this.OBLIQ||this.mode===this.EQUIT){if(M/=this.dd,f*=this.dd,(o=Math.sqrt(M*M+f*f))<e)return t.x=this.long0,t.y=this.lat0,t;r=2*Math.asin(.5*o/this.rq),h=Math.cos(r),M*=r=Math.sin(r),this.mode===this.OBLIQ?(l=h*this.sinb1+f*r*this.cosb1/o,n=this.qp*l,f=o*this.cosb1*h-f*this.sinb1*r):(l=f*r/o,n=this.qp*l,f=o*h)}else if(this.mode===this.N_POLE||this.mode===this.S_POLE){if(this.mode===this.N_POLE&&(f=-f),!(n=M*M+f*f))return t.x=this.long0,t.y=this.lat0,t;l=1-n/this.qp,this.mode===this.S_POLE&&(l=-l)}s=Math.atan2(M,f),c=Math.asin(l),u=this.apa,_=c+c,i=c+u[0]*Math.sin(_)+u[1]*Math.sin(_+_)+u[2]*Math.sin(_+_+_)}return t.x=z(this.long0+s,this.over),t.y=i,t},names:["Lambert Azimuthal Equal Area","Lambert_Azimuthal_Equal_Area","laea"],S_POLE:1,N_POLE:2,EQUIT:3,OBLIQ:4};function Rs(t){return Math.abs(t)>1&&(t=t>1?1:-1),Math.asin(t)}var js={init:function(){Math.abs(this.lat1+this.lat2)<e||(this.temp=this.b/this.a,this.es=1-Math.pow(this.temp,2),this.e3=Math.sqrt(this.es),this.sin_po=Math.sin(this.lat1),this.cos_po=Math.cos(this.lat1),this.t1=this.sin_po,this.con=this.sin_po,this.ms1=B(this.e3,this.sin_po,this.cos_po),this.qs1=Ps(this.e3,this.sin_po),this.sin_po=Math.sin(this.lat2),this.cos_po=Math.cos(this.lat2),this.t2=this.sin_po,this.ms2=B(this.e3,this.sin_po,this.cos_po),this.qs2=Ps(this.e3,this.sin_po),this.sin_po=Math.sin(this.lat0),this.cos_po=Math.cos(this.lat0),this.t3=this.sin_po,this.qs0=Ps(this.e3,this.sin_po),Math.abs(this.lat1-this.lat2)>e?this.ns0=(this.ms1*this.ms1-this.ms2*this.ms2)/(this.qs2-this.qs1):this.ns0=this.con,this.c=this.ms1*this.ms1+this.ns0*this.qs1,this.rh=this.a*Math.sqrt(this.c-this.ns0*this.qs0)/this.ns0)},forward:function(t){var s=t.x,i=t.y;this.sin_phi=Math.sin(i),this.cos_phi=Math.cos(i);var a=Ps(this.e3,this.sin_phi),e=this.a*Math.sqrt(this.c-this.ns0*a)/this.ns0,h=this.ns0*z(s-this.long0,this.over),r=e*Math.sin(h)+this.x0,n=this.rh-e*Math.cos(h)+this.y0;return t.x=r,t.y=n,t},inverse:function(t){var s,i,a,e,h,r;return t.x-=this.x0,t.y=this.rh-t.y+this.y0,this.ns0>=0?(s=Math.sqrt(t.x*t.x+t.y*t.y),a=1):(s=-Math.sqrt(t.x*t.x+t.y*t.y),a=-1),e=0,0!==s&&(e=Math.atan2(a*t.x,a*t.y)),a=s*this.ns0/this.a,this.sphere?r=Math.asin((this.c-a*a)/(2*this.ns0)):(i=(this.c-a*a)/this.ns0,r=this.phi1z(this.e3,i)),h=z(e/this.ns0+this.long0,this.over),t.x=h,t.y=r,t},names:["Albers_Conic_Equal_Area","Albers_Equal_Area","Albers","aea"],phi1z:function(t,s){var i,a,h,r,n=Rs(.5*s);if(t<e)return n;for(var o=t*t,l=1;l<=25;l++)if(n+=r=.5*(h=1-(a=t*(i=Math.sin(n)))*a)*h/Math.cos(n)*(s/(1-o)-i/h+.5/t*Math.log((1-a)/(1+a))),Math.abs(r)<=1e-7)return n;return null}};var qs={init:function(){this.sin_p14=Math.sin(this.lat0),this.cos_p14=Math.cos(this.lat0),this.infinity_dist=1e3*this.a,this.rc=1},forward:function(t){var s,i,a,h,r,n,o,l=t.x,c=t.y;
12return a=z(l-this.long0,this.over),s=Math.sin(c),i=Math.cos(c),h=Math.cos(a),(r=this.sin_p14*s+this.cos_p14*i*h)>0||Math.abs(r)<=e?(n=this.x0+1*this.a*i*Math.sin(a)/r,o=this.y0+1*this.a*(this.cos_p14*s-this.sin_p14*i*h)/r):(n=this.x0+this.infinity_dist*i*Math.sin(a),o=this.y0+this.infinity_dist*(this.cos_p14*s-this.sin_p14*i*h)),t.x=n,t.y=o,t},inverse:function(t){var s,i,a,e,h,r;return t.x=(t.x-this.x0)/this.a,t.y=(t.y-this.y0)/this.a,t.x/=this.k0,t.y/=this.k0,(s=Math.sqrt(t.x*t.x+t.y*t.y))?(e=Math.atan2(s,this.rc),i=Math.sin(e),r=Rs((a=Math.cos(e))*this.sin_p14+t.y*i*this.cos_p14/s),h=Math.atan2(t.x*i,s*this.cos_p14*a-t.y*this.sin_p14*i),h=z(this.long0+h,this.over)):(r=this.phic0,h=0),t.x=h,t.y=r,t},names:["gnom"]};var Ts={init:function(){this.sphere||(this.k0=B(this.e,Math.sin(this.lat_ts),Math.cos(this.lat_ts)))},forward:function(t){var s,i,a=t.x,e=t.y,h=z(a-this.long0,this.over);if(this.sphere)s=this.x0+this.a*h*Math.cos(this.lat_ts),i=this.y0+this.a*Math.sin(e)/Math.cos(this.lat_ts);else{var r=Ps(this.e,Math.sin(e));s=this.x0+this.a*this.k0*h,i=this.y0+this.a*r*.5/this.k0}return t.x=s,t.y=i,t},inverse:function(t){var s,i;return t.x-=this.x0,t.y-=this.y0,this.sphere?(s=z(this.long0+t.x/this.a/Math.cos(this.lat_ts),this.over),i=Math.asin(t.y/this.a*Math.cos(this.lat_ts))):(i=function(t,s){var i=1-(1-t*t)/(2*t)*Math.log((1-t)/(1+t));if(Math.abs(Math.abs(s)-i)<1e-6)return s<0?-1*a:a;for(var e,h,r,n,o=Math.asin(.5*s),l=0;l<30;l++)if(h=Math.sin(o),r=Math.cos(o),n=t*h,o+=e=Math.pow(1-n*n,2)/(2*r)*(s/(1-t*t)-h/(1-n*n)+.5/t*Math.log((1-n)/(1+n))),Math.abs(e)<=1e-10)return o;return NaN}(this.e,2*t.y*this.k0/this.a),s=z(this.long0+t.x/(this.a*this.k0),this.over)),t.x=s,t.y=i,t},names:["cea"]};var Ls={init:function(){this.x0=this.x0||0,this.y0=this.y0||0,this.lat0=this.lat0||0,this.long0=this.long0||0,this.lat_ts=this.lat_ts||0,this.title=this.title||"Equidistant Cylindrical (Plate Carre)",this.rc=Math.cos(this.lat_ts)},forward:function(t){var s=t.x,i=t.y,a=z(s-this.long0,this.over),e=xs(i-this.lat0);return t.x=this.x0+this.a*a*this.rc,t.y=this.y0+this.a*e,t},inverse:function(t){var s=t.x,i=t.y;return t.x=z(this.long0+(s-this.x0)/(this.a*this.rc),this.over),t.y=xs(this.lat0+(i-this.y0)/this.a),t},names:["Equirectangular","Equidistant_Cylindrical","Equidistant_Cylindrical_Spherical","eqc"]};var Fs={init:function(){this.temp=this.b/this.a,this.es=1-Math.pow(this.temp,2),this.e=Math.sqrt(this.es),this.e0=ps(this.es),this.e1=ys(this.es),this.e2=ws(this.es),this.e3=vs(this.es),this.ml0=this.a*ms(this.e0,this.e1,this.e2,this.e3,this.lat0)},forward:function(t){var s,i,a,h=t.x,r=t.y,n=z(h-this.long0,this.over);if(a=n*Math.sin(r),this.sphere)Math.abs(r)<=e?(s=this.a*n,i=-1*this.a*this.lat0):(s=this.a*Math.sin(a)/Math.tan(r),i=this.a*(xs(r-this.lat0)+(1-Math.cos(a))/Math.tan(r)));else if(Math.abs(r)<=e)s=this.a*n,i=-1*this.ml0;else{var o=Es(this.a,this.e,Math.sin(r))/Math.tan(r);s=o*Math.sin(a),i=this.a*ms(this.e0,this.e1,this.e2,this.e3,r)-this.ml0+o*(1-Math.cos(a))}return t.x=s+this.x0,t.y=i+this.y0,t},inverse:function(t){var s,i,a,h,r,n,o,l,c;if(a=t.x-this.x0,h=t.y-this.y0,this.sphere)if(Math.abs(h+this.a*this.lat0)<=e)s=z(a/this.a+this.long0,this.over),i=0;else{var u;for(n=this.lat0+h/this.a,o=a*a/this.a/this.a+n*n,l=n,r=20;r;--r)if(l+=c=-1*(n*(l*(u=Math.tan(l))+1)-l-.5*(l*l+o)*u)/((l-n)/u-1),Math.abs(c)<=e){i=l;break}s=z(this.long0+Math.asin(a*Math.tan(l)/this.a)/Math.sin(i),this.over)}else if(Math.abs(h+this.ml0)<=e)i=0,s=z(this.long0+a/this.a,this.over);else{var _,M,f,d,g;for(n=(this.ml0+h)/this.a,o=a*a/this.a/this.a+n*n,l=n,r=20;r;--r)if(g=this.e*Math.sin(l),_=Math.sqrt(1-g*g)*Math.tan(l),M=this.a*ms(this.e0,this.e1,this.e2,this.e3,l),f=this.e0-2*this.e1*Math.cos(2*l)+4*this.e2*Math.cos(4*l)-6*this.e3*Math.cos(6*l),l-=c=(n*(_*(d=M/this.a)+1)-d-.5*_*(d*d+o))/(this.es*Math.sin(2*l)*(d*d+o-2*n*d)/(4*_)+(n-d)*(_*f-2/Math.sin(2*l))-f),Math.abs(c)<=e){i=l;break}_=Math.sqrt(1-this.es*Math.pow(Math.sin(i),2))*Math.tan(i),s=z(this.long0+Math.asin(a*_/this.a)/Math.sin(i),this.over)}return t.x=s,t.y=i,t},names:["Polyconic","American_Polyconic","poly"]};var Us={init:function(){this.A=[],this.A[1]=.6399175073,this.A[2]=-.1358797613,this.A[3]=.063294409,this.A[4]=-.02526853,this.A[5]=.0117879,this.A[6]=-.0055161,this.A[7]=.0026906,this.A[8]=-.001333,this.A[9]=67e-5,this.A[10]=-34e-5,this.B_re=[],this.B_im=[],this.B_re[1]=.7557853228,this.B_im[1]=0,this.B_re[2]=.249204646,this.B_im[2]=.003371507,this.B_re[3]=-.001541739,this.B_im[3]=.04105856,this.B_re[4]=-.10162907,this.B_im[4]=.01727609,this.B_re[5]=-.26623489,this.B_im[5]=-.36249218,this.B_re[6]=-.6870983,this.B_im[6]=-1.1651967,this.C_re=[],this.C_im=[],this.C_re[1]=1.3231270439,this.C_im[1]=0,this.C_re[2]=-.577245789,this.C_im[2]=-.007809598,this.C_re[3]=.508307513,this.C_im[3]=-.112208952,this.C_re[4]=-.15094762,this.C_im[4]=.18200602,this.C_re[5]=1.01418179,this.C_im[5]=1.64497696,this.C_re[6]=1.9660549,this.C_im[6]=2.5127645,this.D=[],this.D[1]=1.5627014243,this.D[2]=.5185406398,this.D[3]=-.03333098,this.D[4]=-.1052906,this.D[5]=-.0368594,this.D[6]=.007317,this.D[7]=.0122,this.D[8]=.00394,this.D[9]=-.0013},forward:function(t){var s,a=t.x,e=t.y-this.lat0,h=a-this.long0,r=e/i*1e-5,n=h,o=1,l=0;for(s=1;s<=10;s++)o*=r,l+=this.A[s]*o;var c,u=l,_=n,M=1,f=0,d=0,g=0;for(s=1;s<=6;s++)c=f*u+M*_,M=M*u-f*_,f=c,d=d+this.B_re[s]*M-this.B_im[s]*f,g=g+this.B_im[s]*M+this.B_re[s]*f;return t.x=g*this.a+this.x0,t.y=d*this.a+this.y0,t}
12,inverse:function(t){var s,a,e=t.x,h=t.y,r=e-this.x0,n=(h-this.y0)/this.a,o=r/this.a,l=1,c=0,u=0,_=0;for(s=1;s<=6;s++)a=c*n+l*o,l=l*n-c*o,c=a,u=u+this.C_re[s]*l-this.C_im[s]*c,_=_+this.C_im[s]*l+this.C_re[s]*c;for(var M=0;M<this.iterations;M++){var f,d=u,g=_,m=n,p=o;for(s=2;s<=6;s++)f=g*u+d*_,d=d*u-g*_,g=f,m+=(s-1)*(this.B_re[s]*d-this.B_im[s]*g),p+=(s-1)*(this.B_im[s]*d+this.B_re[s]*g);d=1,g=0;var y=this.B_re[1],w=this.B_im[1];for(s=2;s<=6;s++)f=g*u+d*_,d=d*u-g*_,g=f,y+=s*(this.B_re[s]*d-this.B_im[s]*g),w+=s*(this.B_im[s]*d+this.B_re[s]*g);var v=y*y+w*w;u=(m*y+p*w)/v,_=(p*y-m*w)/v}var E=u,x=_,S=1,G=0;for(s=1;s<=9;s++)S*=E,G+=this.D[s]*S;var P=this.lat0+G*i*1e5,b=this.long0+x;return t.x=b,t.y=P,t},names:["New_Zealand_Map_Grid","nzmg"]};var Bs={init:function(){},forward:function(t){var s=t.x,i=t.y,a=z(s-this.long0,this.over),e=this.x0+this.a*a,h=this.y0+this.a*Math.log(Math.tan(Math.PI/4+i/2.5))*1.25;return t.x=e,t.y=h,t},inverse:function(t){t.x-=this.x0,t.y-=this.y0;var s=z(this.long0+t.x/this.a,this.over),i=2.5*(Math.atan(Math.exp(.8*t.y/this.a))-Math.PI/4);return t.x=s,t.y=i,t},names:["Miller_Cylindrical","mill"]};var Ds={init:function(){this.sphere?(this.n=1,this.m=0,this.es=0,this.C_y=Math.sqrt((this.m+1)/this.n),this.C_x=this.C_y/(this.m+1)):this.en=Kt(this.es)},forward:function(t){var s,i,a=t.x,h=t.y;if(a=z(a-this.long0,this.over),this.sphere){if(this.m)for(var r=this.n*Math.sin(h),n=20;n;--n){var o=(this.m*h+Math.sin(h)-r)/(this.m+Math.cos(h));if(h-=o,Math.abs(o)<e)break}else h=1!==this.n?Math.asin(this.n*Math.sin(h)):h;s=this.a*this.C_x*a*(this.m+Math.cos(h)),i=this.a*this.C_y*h}else{var l=Math.sin(h),c=Math.cos(h);i=this.a*Zt(h,l,c,this.en),s=this.a*a*c/Math.sqrt(1-this.es*l*l)}return t.x=s,t.y=i,t},inverse:function(t){var s,i,h;return t.x-=this.x0,i=t.x/this.a,t.y-=this.y0,s=t.y/this.a,this.sphere?(s/=this.C_y,i/=this.C_x*(this.m+Math.cos(s)),this.m?s=Rs((this.m*s+Math.sin(s))/this.n):1!==this.n&&(s=Rs(Math.sin(s)/this.n)),i=z(i+this.long0,this.over),s=xs(s)):(s=Yt(t.y/this.a,this.es,this.en),(h=Math.abs(s))<a?(h=Math.sin(s),i=z(this.long0+t.x*Math.sqrt(1-this.es*h*h)/(this.a*Math.cos(s)),this.over)):h-e<a&&(i=this.long0)),t.x=i,t.y=s,t},names:["Sinusoidal","sinu"]};var zs={init:function(){this.x0=void 0!==this.x0?this.x0:0,this.y0=void 0!==this.y0?this.y0:0,this.long0=void 0!==this.long0?this.long0:0},forward:function(t){for(var s=t.x,i=t.y,a=z(s-this.long0,this.over),h=i,r=Math.PI*Math.sin(i);;){var n=-(h+Math.sin(h)-r)/(1+Math.cos(h));if(h+=n,Math.abs(n)<e)break}h/=2,Math.PI/2-Math.abs(i)<e&&(a=0);var o=.900316316158*this.a*a*Math.cos(h)+this.x0,l=1.4142135623731*this.a*Math.sin(h)+this.y0;return t.x=o,t.y=l,t},inverse:function(t){var s,i;t.x-=this.x0,t.y-=this.y0,i=t.y/(1.4142135623731*this.a),Math.abs(i)>.999999999999&&(i=.999999999999),s=Math.asin(i);var a=z(this.long0+t.x/(.900316316158*this.a*Math.cos(s)),this.over);a<-Math.PI&&(a=-Math.PI),a>Math.PI&&(a=Math.PI),i=(2*s+Math.sin(2*s))/Math.PI,Math.abs(i)>1&&(i=1);var e=Math.asin(i);return t.x=a,t.y=e,t},names:["Mollweide","moll"]};var Ws={init:function(){Math.abs(this.lat1+this.lat2)<e||(this.lat2=this.lat2||this.lat1,this.temp=this.b/this.a,this.es=1-Math.pow(this.temp,2),this.e=Math.sqrt(this.es),this.e0=ps(this.es),this.e1=ys(this.es),this.e2=ws(this.es),this.e3=vs(this.es),this.sin_phi=Math.sin(this.lat1),this.cos_phi=Math.cos(this.lat1),this.ms1=B(this.e,this.sin_phi,this.cos_phi),this.ml1=ms(this.e0,this.e1,this.e2,this.e3,this.lat1),Math.abs(this.lat1-this.lat2)<e?this.ns=this.sin_phi:(this.sin_phi=Math.sin(this.lat2),this.cos_phi=Math.cos(this.lat2),this.ms2=B(this.e,this.sin_phi,this.cos_phi),this.ml2=ms(this.e0,this.e1,this.e2,this.e3,this.lat2),this.ns=(this.ms1-this.ms2)/(this.ml2-this.ml1)),this.g=this.ml1+this.ms1/this.ns,this.ml0=ms(this.e0,this.e1,this.e2,this.e3,this.lat0),this.rh=this.a*(this.g-this.ml0))},forward:function(t){var s,i=t.x,a=t.y;if(this.sphere)s=this.a*(this.g-a);else{var e=ms(this.e0,this.e1,this.e2,this.e3,a);s=this.a*(this.g-e)}var h=this.ns*z(i-this.long0,this.over),r=this.x0+s*Math.sin(h),n=this.y0+this.rh-s*Math.cos(h);return t.x=r,t.y=n,t},inverse:function(t){var s,i,a,e;t.x-=this.x0,t.y=this.rh-t.y+this.y0,this.ns>=0?(i=Math.sqrt(t.x*t.x+t.y*t.y),s=1):(i=-Math.sqrt(t.x*t.x+t.y*t.y),s=-1);var h=0;
12return 0!==i&&(h=Math.atan2(s*t.x,s*t.y)),this.sphere?(e=z(this.long0+h/this.ns,this.over),a=xs(this.g-i/this.a),t.x=e,t.y=a,t):(a=Ss(this.g-i/this.a,this.e0,this.e1,this.e2,this.e3),e=z(this.long0+h/this.ns,this.over),t.x=e,t.y=a,t)},names:["Equidistant_Conic","eqdc"]};var Hs={init:function(){this.R=this.a},forward:function(t){var s,i,h=t.x,r=t.y,n=z(h-this.long0,this.over);Math.abs(r)<=e&&(s=this.x0+this.R*n,i=this.y0);var o=Rs(2*Math.abs(r/Math.PI));(Math.abs(n)<=e||Math.abs(Math.abs(r)-a)<=e)&&(s=this.x0,i=r>=0?this.y0+Math.PI*this.R*Math.tan(.5*o):this.y0+Math.PI*this.R*-Math.tan(.5*o));var l=.5*Math.abs(Math.PI/n-n/Math.PI),c=l*l,u=Math.sin(o),_=Math.cos(o),M=_/(u+_-1),f=M*M,d=M*(2/u-1),g=d*d,m=Math.PI*this.R*(l*(M-g)+Math.sqrt(c*(M-g)*(M-g)-(g+c)*(f-g)))/(g+c);n<0&&(m=-m),s=this.x0+m;var p=c+M;return m=Math.PI*this.R*(d*p-l*Math.sqrt((g+c)*(c+1)-p*p))/(g+c),i=r>=0?this.y0+m:this.y0-m,t.x=s,t.y=i,t},inverse:function(t){var s,i,a,h,r,n,o,l,c,u,_,M;return t.x-=this.x0,t.y-=this.y0,_=Math.PI*this.R,r=(a=t.x/_)*a+(h=t.y/_)*h,_=3*(h*h/(l=-2*(n=-Math.abs(h)*(1+r))+1+2*h*h+r*r)+(2*(o=n-2*h*h+a*a)*o*o/l/l/l-9*n*o/l/l)/27)/(c=(n-o*o/3/l)/l)/(u=2*Math.sqrt(-c/3)),Math.abs(_)>1&&(_=_>=0?1:-1),M=Math.acos(_)/3,i=t.y>=0?(-u*Math.cos(M+Math.PI/3)-o/3/l)*Math.PI:-(-u*Math.cos(M+Math.PI/3)-o/3/l)*Math.PI,s=Math.abs(a)<e?this.long0:z(this.long0+Math.PI*(r-1+Math.sqrt(1+2*(a*a-h*h)+r*r))/2/a,this.over),t.x=s,t.y=i,t},names:["Van_der_Grinten_I","VanDerGrinten","Van_der_Grinten","vandg"]};var Qs={init:function(){this.sin_p12=Math.sin(this.lat0),this.cos_p12=Math.cos(this.lat0),this.f=this.es/(1+Math.sqrt(1-this.es))},forward:function(t){var s,i,h,r,n,o,l,c,u,_,M,f=t.x,d=t.y,g=Math.sin(t.y),m=Math.cos(t.y),p=z(f-this.long0,this.over);return this.sphere?Math.abs(this.sin_p12-1)<=e?(t.x=this.x0+this.a*(a-d)*Math.sin(p),t.y=this.y0-this.a*(a-d)*Math.cos(p),t):Math.abs(this.sin_p12+1)<=e?(t.x=this.x0+this.a*(a+d)*Math.sin(p),t.y=this.y0+this.a*(a+d)*Math.cos(p),t):(u=this.sin_p12*g+this.cos_p12*m*Math.cos(p),c=(l=Math.acos(u))?l/Math.sin(l):1,t.x=this.x0+this.a*c*m*Math.sin(p),t.y=this.y0+this.a*c*(this.cos_p12*g-this.sin_p12*m*Math.cos(p)),t):(s=ps(this.es),i=ys(this.es),h=ws(this.es),r=vs(this.es),Math.abs(this.sin_p12-1)<=e?(n=this.a*ms(s,i,h,r,a),o=this.a*ms(s,i,h,r,d),t.x=this.x0+(n-o)*Math.sin(p),t.y=this.y0-(n-o)*Math.cos(p),t):Math.abs(this.sin_p12+1)<=e?(n=this.a*ms(s,i,h,r,a),o=this.a*ms(s,i,h,r,d),t.x=this.x0+(n+o)*Math.sin(p),t.y=this.y0+(n+o)*Math.cos(p),t):Math.abs(f)<e&&Math.abs(d-this.lat0)<e?(t.x=t.y=0,t):(_=function(t,s,i,a,e,h){const r=a-s,n=Math.atan((1-h)*Math.tan(t)),o=Math.atan((1-h)*Math.tan(i)),l=Math.sin(n),c=Math.cos(n),u=Math.sin(o),_=Math.cos(o);let M,f,d,g,m,p,y,w,v,E,x,S,G,P,b,N=r,A=100;do{if(f=Math.sin(N),d=Math.cos(N),g=Math.sqrt(_*f*(_*f)+(c*u-l*_*d)*(c*u-l*_*d)),0===g)return{azi1:0,s12:0};m=l*u+c*_*d,p=Math.atan2(g,m),y=c*_*f/g,w=1-y*y,v=0!==w?m-2*l*u/w:0,E=h/16*w*(4+h*(4-3*w)),M=N,N=r+(1-E)*h*y*(p+E*g*(v+E*m*(2*v*v-1)))}while(Math.abs(N-M)>1e-12&&--A>0);return 0===A?{azi1:NaN,s12:NaN}:(x=w*(e*e-e*(1-h)*(e*(1-h)))/(e*(1-h)*(e*(1-h))),S=1+x/16384*(4096+x*(x*(320-175*x)-768)),G=x/1024*(256+x*(x*(74-47*x)-128)),P=G*g*(v+G/4*(m*(2*v*v-1)-G/6*v*(4*g*g-3)*(4*v*v-3))),b=e*(1-h)*S*(p-P),{azi1:Math.atan2(_*f,c*u-l*_*d),s12:b})}(this.lat0,this.long0,d,f,this.a,this.f),M=_.azi1,t.x=_.s12*Math.sin(M),t.y=_.s12*Math.cos(M),t))},inverse:function(t){var s,i,h,r,n,o,l,c,u,_,M,f,d,g,m;if(t.x-=this.x0,t.y-=this.y0,this.sphere){if((s=Math.sqrt(t.x*t.x+t.y*t.y))>2*a*this.a)return;return i=s/this.a,h=Math.sin(i),r=Math.cos(i),n=this.long0,Math.abs(s)<=e?o=this.lat0:(o=Rs(r*this.sin_p12+t.y*h*this.cos_p12/s),l=Math.abs(this.lat0)-a,n=Math.abs(l)<=e?this.lat0>=0?z(this.long0+Math.atan2(t.x,-t.y),this.over):z(this.long0-Math.atan2(-t.x,t.y),this.over):z(this.long0+Math.atan2(t.x*h,s*this.cos_p12*r-t.y*this.sin_p12*h),this.over)),t.x=n,t.y=o,t}return c=ps(this.es),u=ys(this.es),_=ws(this.es),M=vs(this.es),Math.abs(this.sin_p12-1)<=e?(o=Ss(((f=this.a*ms(c,u,_,M,a))-(s=Math.sqrt(t.x*t.x+t.y*t.y)))/this.a,c,u,_,M),n=z(this.long0+Math.atan2(t.x,-1*t.y),this.over),t.x=n,t.y=o,t):Math.abs(this.sin_p12+1)<=e?(f=this.a*ms(c,u,_,M,a),o=Ss(((s=Math.sqrt(t.x*t.x+t.y*t.y))-f)/this.a,c,u,_,M),n=z(this.long0+Math.atan2(t.x,t.y),this.over),t.x=n,t.y=o,t):(d=Math.atan2(t.x,t.y),g=Math.sqrt(t.x*t.x+t.y*t.y),m=function(t,s,i,a,e,h){const r=Math.atan((1-h)*Math.tan(t)),n=Math.sin(r),o=Math.cos(r),l=Math.sin(i),c=Math.cos(i),u=Math.atan2(n,o*c),_=o*l,M=1-_*_,f=M*(e*e-e*(1-h)*(e*(1-h)))/(e*(1-h)*(e*(1-h))),d=1+f/16384*(4096+f*(f*(320-175*f)-768)),g=f/1024*(256+f*(f*(74-47*f)-128));let m,p,y,w,v,E=a/(e*(1-h)*d),x=100;do{p=Math.cos(2*u+E),y=Math.sin(E),w=Math.cos(E),v=g*y*(p+g/4*(w*(2*p*p-1)-g/6*p*(4*y*y-3)*(4*p*p-3))),m=E,E=a/(e*(1-h)*d)+v}while(Math.abs(E-m)>1e-12&&--x>0);if(0===x)return{lat2:NaN,lon2:NaN};const S=n*y-o*w*c,G=h/16*M*(4+h*(4-3*M));return{lat2:Math.atan2(n*w+o*y*c,(1-h)*Math.sqrt(_*_+S*S)),lon2:s+(Math.atan2(y*l,o*w-n*y*c)-(1-G)*h*_*(E+G*y*(p+G*w*(2*p*p-1))))}}(this.lat0,this.long0,d,g,this.a,this.f),t.x=m.lon2,t.y=m.lat2,t)},names:["Azimuthal_Equidistant","aeqd"]};var Xs={init:function(){this.sin_p14=Math.sin(this.lat0),this.cos_p14=Math.cos(this.lat0)},forward:function(t){var s,i,a,h,r,n,o,l=t.x,c=t.y;
12return a=z(l-this.long0,this.over),s=Math.sin(c),i=Math.cos(c),h=Math.cos(a),((r=this.sin_p14*s+this.cos_p14*i*h)>0||Math.abs(r)<=e)&&(n=1*this.a*i*Math.sin(a),o=this.y0+1*this.a*(this.cos_p14*s-this.sin_p14*i*h)),t.x=n,t.y=o,t},inverse:function(t){var s,i,h,r,n,o,l;return t.x-=this.x0,t.y-=this.y0,i=Rs((s=Math.sqrt(t.x*t.x+t.y*t.y))/this.a),h=Math.sin(i),r=Math.cos(i),o=this.long0,Math.abs(s)<=e?(l=this.lat0,t.x=o,t.y=l,t):(l=Rs(r*this.sin_p14+t.y*h*this.cos_p14/s),n=Math.abs(this.lat0)-a,Math.abs(n)<=e?(o=this.lat0>=0?z(this.long0+Math.atan2(t.x,-t.y),this.over):z(this.long0-Math.atan2(-t.x,t.y),this.over),t.x=o,t.y=l,t):(o=z(this.long0+Math.atan2(t.x*h,s*this.cos_p14*r-t.y*this.sin_p14*h),this.over),t.x=o,t.y=l,t))},names:["ortho"]},Vs=1,Js=2,Ks=3,Zs=4,Ys=5,$s=6,ti=1,si=2,ii=3,ai=4;function ei(t,s,i,h){var r;return t<e?(h.value=ti,r=0):(r=Math.atan2(s,i),Math.abs(r)<=n?h.value=ti:r>n&&r<=a+n?(h.value=si,r-=a):r>a+n||r<=-(a+n)?(h.value=ii,r=r>=0?r-l:r+l):(h.value=ai,r+=a)),r}function hi(t,s){var i=t+s;return i<-3.14159265359?i+=o:i>3.14159265359&&(i-=o),i}var ri={init:function(){this.x0=this.x0||0,this.y0=this.y0||0,this.lat0=this.lat0||0,this.long0=this.long0||0,this.lat_ts=this.lat_ts||0,this.title=this.title||"Quadrilateralized Spherical Cube",this.lat0>=a-n/2?this.face=Ys:this.lat0<=-(a-n/2)?this.face=$s:Math.abs(this.long0)<=n?this.face=Vs:Math.abs(this.long0)<=a+n?this.face=this.long0>0?Js:Zs:this.face=Ks,0!==this.es&&(this.one_minus_f=1-(this.a-this.b)/this.a,this.one_minus_f_squared=this.one_minus_f*this.one_minus_f)},forward:function(t){var s,i,e,h,r,o,c={x:0,y:0},u={value:0};if(t.x-=this.long0,s=0!==this.es?Math.atan(this.one_minus_f_squared*Math.tan(t.y)):t.y,i=t.x,this.face===Ys)h=a-s,i>=n&&i<=a+n?(u.value=ti,e=i-a):i>a+n||i<=-(a+n)?(u.value=si,e=i>0?i-l:i+l):i>-(a+n)&&i<=-n?(u.value=ii,e=i+a):(u.value=ai,e=i);else if(this.face===$s)h=a+s,i>=n&&i<=a+n?(u.value=ti,e=-i+a):i<n&&i>=-n?(u.value=si,e=-i):i<-n&&i>=-(a+n)?(u.value=ii,e=-i-a):(u.value=ai,e=i>0?-i+l:-i-l);else{var _,M,f,d,g,m;this.face===Js?i=hi(i,+a):this.face===Ks?i=hi(i,3.14159265359):this.face===Zs&&(i=hi(i,-a)),d=Math.sin(s),g=Math.cos(s),m=Math.sin(i),_=g*Math.cos(i),M=g*m,f=d,this.face===Vs?e=ei(h=Math.acos(_),f,M,u):this.face===Js?e=ei(h=Math.acos(M),f,-_,u):this.face===Ks?e=ei(h=Math.acos(-_),f,-M,u):this.face===Zs?e=ei(h=Math.acos(-M),f,_,u):(h=e=0,u.value=ti)}return o=Math.atan(12/l*(e+Math.acos(Math.sin(e)*Math.cos(n))-a)),r=Math.sqrt((1-Math.cos(h))/(Math.cos(o)*Math.cos(o))/(1-Math.cos(Math.atan(1/Math.cos(e))))),u.value===si?o+=a:u.value===ii?o+=l:u.value===ai&&(o+=1.5*l),c.x=r*Math.cos(o),c.y=r*Math.sin(o),c.x=c.x*this.a+this.x0,c.y=c.y*this.a+this.y0,t.x=c.x,t.y=c.y,t},inverse:function(t){var s,i,e,h,r,n,o,c,u,_,M,f,d={lam:0,phi:0},g={value:0};if(t.x=(t.x-this.x0)/this.a,t.y=(t.y-this.y0)/this.a,i=Math.atan(Math.sqrt(t.x*t.x+t.y*t.y)),s=Math.atan2(t.y,t.x),t.x>=0&&t.x>=Math.abs(t.y)?g.value=ti:t.y>=0&&t.y>=Math.abs(t.x)?(g.value=si,s-=a):t.x<0&&-t.x>=Math.abs(t.y)?(g.value=ii,s=s<0?s+l:s-l):(g.value=ai,s+=a),u=l/12*Math.tan(s),r=Math.sin(u)/(Math.cos(u)-1/Math.sqrt(2)),n=Math.atan(r),(o=1-(e=Math.cos(s))*e*(h=Math.tan(i))*h*(1-Math.cos(Math.atan(1/Math.cos(n)))))<-1?o=-1:o>1&&(o=1),this.face===Ys)c=Math.acos(o),d.phi=a-c,g.value===ti?d.lam=n+a:g.value===si?d.lam=n<0?n+l:n-l:g.value===ii?d.lam=n-a:d.lam=n;else if(this.face===$s)c=Math.acos(o),d.phi=c-a,g.value===ti?d.lam=-n+a:g.value===si?d.lam=-n:g.value===ii?d.lam=-n-a:d.lam=n<0?-n-l:-n+l;else{var m,p,y;u=(m=o)*m,p=(u+=(y=u>=1?0:Math.sqrt(1-u)*Math.sin(n))*y)>=1?0:Math.sqrt(1-u),g.value===si?(u=p,p=-y,y=u):g.value===ii?(p=-p,y=-y):g.value===ai&&(u=p,p=y,y=-u),this.face===Js?(u=m,m=-p,p=u):this.face===Ks?(m=-m,p=-p):this.face===Zs&&(u=m,m=p,p=-u),d.phi=Math.acos(-y)-a,d.lam=Math.atan2(p,m),this.face===Js?d.lam=hi(d.lam,-a):this.face===Ks?d.lam=hi(d.lam,-3.14159265359):this.face===Zs&&(d.lam=hi(d.lam,+a))}return 0!==this.es&&(_=d.phi<0?1:0,M=Math.tan(d.phi),f=this.b/Math.sqrt(M*M+this.one_minus_f_squared),d.phi=Math.atan(Math.sqrt(this.a*this.a-f*f)/(this.one_minus_f*f)),_&&(d.phi=-d.phi)),d.lam+=this.long0,t.x=d.lam,t.y=d.phi,t},names:["Quadrilateralized Spherical Cube","Quadrilateralized_Spherical_Cube","qsc"]},ni=[[1,22199e-21,-715515e-10,31103e-10],[.9986,-482243e-9,-24897e-9,-13309e-10],[.9954,-83103e-8,-448605e-10,-9.86701e-7],[.99,-.00135364,-59661e-9,36777e-10],[.9822,-.00167442,-449547e-11,-572411e-11],[.973,-.00214868,-903571e-10,1.8736e-8],[.96,-.00305085,-900761e-10,164917e-11],[.9427,-.00382792,-653386e-10,-26154e-10],[.9216,-.00467746,-10457e-8,481243e-11],[.8962,-.00536223,-323831e-10,-543432e-11],[.8679,-.00609363,-113898e-9,332484e-11],[.835,-.00698325,-640253e-10,9.34959e-7],[.7986,-.00755338,-500009e-10,9.35324e-7],[.7597,-.00
12798324,-35971e-9,-227626e-11],[.7186,-.00851367,-701149e-10,-86303e-10],[.6732,-.00986209,-199569e-9,191974e-10],[.6213,-.010418,883923e-10,624051e-11],[.5722,-.00906601,182e-6,624051e-11],[.5322,-.00677797,275608e-9,624051e-11]],oi=[[-520417e-23,.0124,121431e-23,-845284e-16],[.062,.0124,-1.26793e-9,4.22642e-10],[.124,.0124,5.07171e-9,-1.60604e-9],[.186,.0123999,-1.90189e-8,6.00152e-9],[.248,.0124002,7.10039e-8,-2.24e-8],[.31,.0123992,-2.64997e-7,8.35986e-8],[.372,.0124029,9.88983e-7,-3.11994e-7],[.434,.0123893,-369093e-11,-4.35621e-7],[.4958,.0123198,-102252e-10,-3.45523e-7],[.5571,.0121916,-154081e-10,-5.82288e-7],[.6176,.0119938,-241424e-10,-5.25327e-7],[.6769,.011713,-320223e-10,-5.16405e-7],[.7346,.0113541,-397684e-10,-6.09052e-7],[.7903,.0109107,-489042e-10,-104739e-11],[.8435,.0103431,-64615e-9,-1.40374e-9],[.8936,.00969686,-64636e-9,-8547e-9],[.9394,.00840947,-192841e-9,-42106e-10],[.9761,.00616527,-256e-6,-42106e-10],[1,.00328947,-319159e-9,-42106e-10]],li=.8487,ci=1.3523,ui=r/5,_i=1/ui,Mi=18,fi=function(t,s){return t[0]+s*(t[1]+s*(t[2]+s*t[3]))};var di={init:function(){this.x0=this.x0||0,this.y0=this.y0||0,this.long0=this.long0||0,this.es=0,this.title=this.title||"Robinson"},forward:function(t){var s=z(t.x-this.long0,this.over),i=Math.abs(t.y),a=Math.floor(i*ui);a<0?a=0:a>=Mi&&(a=17);var e={x:fi(ni[a],i=r*(i-_i*a))*s,y:fi(oi[a],i)};return t.y<0&&(e.y=-e.y),e.x=e.x*this.a*li+this.x0,e.y=e.y*this.a*ci+this.y0,e},inverse:function(t){var s={x:(t.x-this.x0)/(this.a*li),y:Math.abs(t.y-this.y0)/(this.a*ci)};if(s.y>=1)s.x/=ni[18][0],s.y=t.y<0?-a:a;else{var i=Math.floor(s.y*Mi);for(i<0?i=0:i>=Mi&&(i=17);;)if(oi[i][0]>s.y)--i;else{if(!(oi[i+1][0]<=s.y))break;++i}var r=oi[i],n=5*(s.y-r[0])/(oi[i+1][0]-r[0]);n=function(t,s,i,a){for(var e=s;a;--a){var h=t(e);if(e-=h,Math.abs(h)<i)break}return e}((function(t){return(fi(r,t)-s.y)/function(t,s){return t[1]+s*(2*t[2]+3*s*t[3])}(r,t)}),n,e,100),s.x/=fi(ni[i],n),s.y=(5*i+n)*h,t.y<0&&(s.y=-s.y)}return s.x=z(s.x+this.long0,this.over),s},names:["Robinson","robin"]};var gi={init:function(){this.name="geocent"},forward:function(t){return dt(t,this.es,this.a)},inverse:function(t){return gt(t,this.es,this.a,this.b)},names:["Geocentric","geocentric","geocent","Geocent"]},mi=0,pi=1,yi=2,wi=3,vi={h:{def:1e5,num:!0},azi:{def:0,num:!0,degrees:!0},tilt:{def:0,num:!0,degrees:!0},long0:{def:0,num:!0},lat0:{def:0,num:!0}};var Ei={init:function(){if(Object.keys(vi).forEach(function(t){if(void 0===this[t])this[t]=vi[t].def;else{if(vi[t].num&&isNaN(this[t]))throw new Error("Invalid parameter value, must be numeric "+t+" = "+this[t]);vi[t].num&&(this[t]=parseFloat(this[t]))}vi[t].degrees&&(this[t]=this[t]*h)}.bind(this)),Math.abs(Math.abs(this.lat0)-a)<e?this.mode=this.lat0<0?pi:mi:Math.abs(this.lat0)<e?this.mode=yi:(this.mode=wi,this.sinph0=Math.sin(this.lat0),this.cosph0=Math.cos(this.lat0)),this.pn1=this.h/this.a,this.pn1<=0||this.pn1>1e10)throw new Error("Invalid height");this.p=1+this.pn1,this.rp=1/this.p,this.h1=1/this.pn1,this.pfact=(this.p+1)*this.h1,this.es=0;var t=this.tilt,s=this.azi;this.cg=Math.cos(s),this.sg=Math.sin(s),this.cw=Math.cos(t),this.sw=Math.sin(t)},forward:function(t){t.x-=this.long0;var s,i,a,e,h=Math.sin(t.y),r=Math.cos(t.y),n=Math.cos(t.x);switch(this.mode){case wi:i=this.sinph0*h+this.cosph0*r*n;break;case yi:i=r*n;break;case pi:i=-h;break;case mi:i=h}switch(s=(i=this.pn1/(this.p-i))*r*Math.sin(t.x),this.mode){case wi:i*=this.cosph0*h-this.sinph0*r*n;break;case yi:i*=h;break;case mi:i*=-r*n;break;case pi:i*=r*n}return e=1/((a=i*this.cg+s*this.sg)*this.sw*this.h1+this.cw),s=(s*this.cg-i*this.sg)*this.cw*e,i=a*e,t.x=s*this.a,t.y=i*this.a,t},inverse:function(t){t.x/=this.a,t.y/=this.a;var s,i,a,h={x:t.x,y:t.y};a=1/(this.pn1-t.y*this.sw),s=this.pn1*t.x*a,i=this.pn1*t.y*this.cw*a,t.x=s*this.cg+i*this.sg,t.y=i*this.cg-s*this.sg;var r=ss(t.x,t.y);if(Math.abs(r)<e)h.x=0,h.y=t.y;else{var n,o;switch(o=1-r*r*this.pfact,o=(this.p-Math.sqrt(o))/(this.pn1/r+r/this.pn1),n=Math.sqrt(1-o*o),this.mode){case wi:h.y=Math.asin(n*this.sinph0+t.y*o*this.cosph0/r),t.y=(n-this.sinph0*Math.sin(h.y))*r,t.x*=o*this.cosph0;break;case yi:h.y=Math.asin(t.y*o/r),t.y=n*r,t.x*=o;break;case mi:h.y=Math.asin(n),t.y=-t.y;break;case pi:h.y=-Math.asin(n)}h.x=Math.atan2(t.x,t.y)}return t.x=h.x+this.long0,t.y=h.y,t},names:["Tilted_Perspective","tpers"]};var xi={init:function(){if(this.flip_axis="x"===this.sweep?1:0,this.h=Number(this.h),this.radius_g_1=this.h/this.a,this.radius_g_1<=0||this.radius_g_1>1e10)throw new Error;if(this.radius_g=1+this.radius_g_1,this.C=this.radius_g*this.radius_g-1,0!==this.es){var t=1-this.es,s=1/t;this.radius_p=Math.sqrt(t),this.radius_p2=t,this.radius_p_inv2=s,this.shape="ellipse"}else this.radius_p=1,this.radius_p2=1,this.radius_p_inv2=1,this.shape="sphere";this.title||(this.title="Geostationary Satellite View")},forward:function(t){var s,i,a,e,h=t.x,r=t.y;if(h-=this.long0,"ellipse"===this.shape){r=Math.atan(this.radius_p2*Math.tan(r));var n=this.radius_p/ss(this.radius_p*Math.cos(r),Math.sin(r));if(i=n*Math.cos(h)*Math.cos(r),a=n*Math.sin(h)*Math.cos(r),e=n*Math.sin(r),(this.radius_g-i)*i-a*a-e*e*this.radius_p_inv2<0)return t.x=Number.NaN,t.y=Number.NaN,t;s=this.radius_g-i,this.flip_axis?(t.x=this.radius_g_1*Math.atan(a/ss(e,s)),t.y=this.radius_g_1*Math.atan(e/s)):(t.x=this.radius_g_1*Math.atan(a/s),t.y=this.radius_g_1*Math.atan(e/ss(a,s)))}else"sphere"===this.shape&&(s=Math.cos(r),i=Math.cos(h)*s,a=Math.sin(h)*s,e=Math.sin(r),s=this.radius_g-i,this.flip_axis?(t.x=this.radius_g_1*Math.atan(a/ss(e,s)),t.y=this.radius_g_1*Math.atan(e/s)):(t.x=this.radius_g_1*Math.atan(a/s),t.y=this.radius_g_1*Math.atan(e/ss(a,s))));return t.x=t.x*this.a,t.y=t.y*this.a,t},inverse:function(t){var s,i,a,e,h=-1,r=0,n=0;if(t.x=t.x/this.a,t.y=t.y/this.a,"ellipse"===this.shape){this.flip_axis?(n=Math.tan(t.y/this.radius_g_1),r=Math.tan(t.x/this.radius_g_1)*ss(1,n)):(r=Math.tan(t.x/this.radius_g_1),n=Math.tan(t.y/this.radius_g_1)*ss(1,r));var o=n/this.radius_p;if(s=r*r+o*o+h*h,(a=(i=2*this.radius_g*h)*i-4*s*this.C)<0)return t.x=Number.NaN,t.y=Number.NaN,t;e=(-i-Math.sqrt(a))/(2*s),h=this.radius_g+e*h,r*=e,n*=e,t.x=Math.atan2(r,h),t.y=Math.atan(n*Math.cos(t.x)/h),t.y=Math.atan(this.radius_p_inv2*Math.tan(t.y))}else if("sphere"===this.shape){if(this.flip_axis?(n=Math.tan(t.y/this.radius_g_1),r=Math.tan(t.x/this.radius_g_1)*Math.sqrt(1+n*n)):(r=Math.tan(t.x/this.radius_g_1),n=Math.tan(t.y/this.radius_g_1)*Math.sqrt(1+r*r)),s=r*r+n*n+h*h,(a=(i=2*this.radius_g*h)*i-4*s*this.C)<0)return t.x=Number.NaN,t.y=Number.NaN,t;e=(-i-Math.sqrt(a))/(2*s),h=this.radius_g+e*h,r*=e,n*=e,t.x=Math.atan2(r,h),t.y=Math.atan(n*Math.cos(t.x)/h)}return t.x=t.x+this.long0,t},names:["Geostationary Satellite View","Geostationary_Satellite","geos"]},Si=1.340264,Gi=-.081106,Pi=893e-6,bi=.003796,Ni=Math.sqrt(3)/2;var Ai={init:function(){this.es=0,this.long0=void 0!==this.long0?this.long0:0,this.x0=void 0!==this.x0?this.x0:0,this.y0=void 0!==this.y0?this.y0:0},forward:function(t){var s=z(t.x-this.long0,this.over),i=t.y,a=Math.asin(Ni*Math.sin(i)),e=a*a,h=e*e*e;
12return t.x=s*Math.cos(a)/(Ni*(Si+3*Gi*e+h*(7*Pi+9*bi*e))),t.y=a*(Si+Gi*e+h*(Pi+bi*e)),t.x=this.a*t.x+this.x0,t.y=this.a*t.y+this.y0,t},inverse:function(t){t.x=(t.x-this.x0)/this.a,t.y=(t.y-this.y0)/this.a;var s,i,a,e,h=t.y;for(e=0;e<12&&(h-=a=(h*(Si+Gi*(s=h*h)+(i=s*s*s)*(Pi+bi*s))-t.y)/(Si+3*Gi*s+i*(7*Pi+9*bi*s)),!(Math.abs(a)<1e-9));++e);return i=(s=h*h)*s*s,t.x=Ni*t.x*(Si+3*Gi*s+i*(7*Pi+9*bi*s))/Math.cos(h),t.y=Math.asin(Math.sin(h)/Ni),t.x=z(t.x+this.long0,this.over),t},names:["eqearth","Equal Earth","Equal_Earth"]},Ii=1e-10;function Ci(t){var s,i,a,e=z(t.x-(this.long0||0),this.over),h=t.y;return s=this.am1+this.m1-Zt(h,i=Math.sin(h),a=Math.cos(h),this.en),i=a*e/(s*Math.sqrt(1-this.es*i*i)),t.x=s*Math.sin(i),t.y=this.am1-s*Math.cos(i),t.x=this.a*t.x+(this.x0||0),t.y=this.a*t.y+(this.y0||0),t}function ki(t){var s,i,e,h;if(t.x=(t.x-(this.x0||0))/this.a,t.y=(t.y-(this.y0||0))/this.a,i=ss(t.x,t.y=this.am1-t.y),h=Yt(this.am1+this.m1-i,this.es,this.en),(s=Math.abs(h))<a)s=Math.sin(h),e=i*Math.atan2(t.x,t.y)*Math.sqrt(1-this.es*s*s)/Math.cos(h);else{if(!(Math.abs(s-a)<=Ii))throw new Error;e=0}return t.x=z(e+(this.long0||0),this.over),t.y=xs(h),t}function Oi(t){var s,i,a=z(t.x-(this.long0||0),this.over),e=t.y;return i=this.cphi1+this.phi1-e,Math.abs(i)>Ii?(t.x=i*Math.sin(s=a*Math.cos(e)/i),t.y=this.cphi1-i*Math.cos(s)):t.x=t.y=0,t.x=this.a*t.x+(this.x0||0),t.y=this.a*t.y+(this.y0||0),t}function Ri(t){var s,i;t.x=(t.x-(this.x0||0))/this.a,t.y=(t.y-(this.y0||0))/this.a;var e=ss(t.x,t.y=this.cphi1-t.y);if(i=this.cphi1+this.phi1-e,Math.abs(i)>a)throw new Error;return s=Math.abs(Math.abs(i)-a)<=Ii?0:e*Math.atan2(t.x,t.y)/Math.cos(i),t.x=z(s+(this.long0||0),this.over),t.y=xs(i),t}var ji={init:function(){var t;if(this.phi1=this.lat1,Math.abs(this.phi1)<Ii)throw new Error;this.es?(this.en=Kt(this.es),this.m1=Zt(this.phi1,this.am1=Math.sin(this.phi1),t=Math.cos(this.phi1),this.en),this.am1=t/(Math.sqrt(1-this.es*this.am1*this.am1)*this.am1),this.inverse=ki,this.forward=Ci):(Math.abs(this.phi1)+Ii>=a?this.cphi1=0:this.cphi1=1/Math.tan(this.phi1),this.inverse=Ri,this.forward=Oi)},names:["bonne","Bonne (Werner lat_1=90)"]};const qi={OBLIQUE:{forward:function(t,s){let{x:i,y:a}=s;i+=t.long0;const e=Math.cos(i),h=Math.sin(a),n=Math.cos(a);s.x=z(Math.atan2(n*Math.sin(i),t.sphip*n*e+t.cphip*h)+t.lamp),s.y=Math.asin(t.sphip*h-t.cphip*n*e);const o=t.obliqueProjection.forward(s);t.isIdentity&&(o.x*=r,o.y*=r);return o},inverse:function(t,s){t.isIdentity&&(s.x*=h,s.y*=h);const i=t.obliqueProjection.inverse(s);let{x:a,y:e}=i;if(a<Number.MAX_VALUE){a-=t.lamp;const i=Math.cos(a),h=Math.sin(e),r=Math.cos(e);s.x=Math.atan2(r*Math.sin(a),t.sphip*r*i-t.cphip*h),s.y=Math.asin(t.sphip*h+t.cphip*r*i)}return s.x=z(s.x+t.long0),s}},TRANSVERSE:{forward:function(t,s){let{x:i,y:a}=s;i+=t.long0;const e=Math.cos(a),h=Math.cos(i);s.x=z(Math.atan2(e*Math.sin(i),Math.sin(a))+t.lamp),s.y=Math.asin(-1*e*h);const n=t.obliqueProjection.forward(s);t.isIdentity&&(n.x*=r,n.y*=r);return n},inverse:function(t,s){t.isIdentity&&(s.x*=h,s.y*=h);const i=t.obliqueProjection.inverse(s);let{x:a,y:e}=i;if(a<Number.MAX_VALUE){const i=Math.cos(e);a-=t.lamp,s.x=Math.atan2(i*Math.sin(a),-1*Math.sin(e)),s.y=Math.asin(i*Math.cos(a))}return s.x=z(s.x+t.long0),s}}},Ti={ROTATE:{o_alpha:"oAlpha",o_lon_c:"oLongC",o_lat_c:"oLatC"},NEW_POLE:{o_lat_p:"oLatP",o_lon_p:"oLongP"},NEW_EQUATOR:{o_lon_1:"oLong1",o_lat_1:"oLat1",o_lon_2:"oLong2",o_lat_2:"oLat2"}};var Li={init:function(){if(this.x0=this.x0||0,this.y0=this.y0||0,this.long0=this.long0||0,this.title=this.title||"General Oblique Transformation",this.isIdentity=X.includes(this.o_proj),!this.o_proj)throw new Error("Missing parameter: o_proj");if("ob_tran"===this.o_proj)throw new Error("Invalid value for o_proj: "+this.o_proj);const t=ft(this.projStr.replace("+proj=ob_tran","").replace("+o_proj=","+proj=").trim());if(!t)throw new Error("Invalid parameter: o_proj. Unknown projection "+this.o_proj);let s;t.long0=0,this.obliqueProjection=t;const i=Object.keys(Ti),r=t=>{if(void 0===this[t])return;const s=parseFloat(this[t])*h;if(isNaN(s))throw new Error("Invalid value for "+t+": "+this[t]);return s};for(let t=0;t<i.length;t++){const a=i[t],e=Ti[a],h=Object.entries(e);if(h.some((([t])=>void 0!==this[t]))){s=e;for(let t=0;t<h.length;t++){const[s,i]=h[t],a=r(s);if(void 0===a)throw new Error("Missing parameter: "+s+".");this[i]=a}break}}if(!s)throw new Error("No valid parameters provided for ob_tran projection.");const{lamp:n,phip:o}=function(t,s){let i,h;if(s===Ti.ROTATE){let s=t.oLongC,r=t.oLatC,n=t.oAlpha;if(Math.abs(Math.abs(r)-a)<=e)throw new Error("Invalid value for o_lat_c: "+t.o_lat_c+" should be < 90°");h=s+Math.atan2(-1*Math.cos(n),-1*Math.sin(n)*Math.sin(r)),i=Math.asin(Math.cos(r)*Math.sin(n))}else if(s===Ti.NEW_POLE)h=t.oLongP,i=t.oLatP;
12else{let s=t.oLong1,r=t.oLat1,n=t.oLong2,o=t.oLat2,l=Math.abs(r);if(Math.abs(r)>a-e)throw new Error("Invalid value for o_lat_1: "+t.o_lat_1+" should be < 90°");if(Math.abs(o)>a-e)throw new Error("Invalid value for o_lat_2: "+t.o_lat_2+" should be < 90°");if(Math.abs(r-o)<e)throw new Error("Invalid value for o_lat_1 and o_lat_2: o_lat_1 should be different from o_lat_2");if(l<e)throw new Error("Invalid value for o_lat_1: o_lat_1 should be different from zero");h=Math.atan2(Math.cos(r)*Math.sin(o)*Math.cos(s)-Math.sin(r)*Math.cos(o)*Math.cos(n),Math.sin(r)*Math.cos(o)*Math.sin(n)-Math.cos(r)*Math.sin(o)*Math.sin(s)),i=Math.atan(-1*Math.cos(h-s)/Math.tan(r))}return{lamp:h,phip:i}}(this,s);this.lamp=n,Math.abs(o)>e?(this.cphip=Math.cos(o),this.sphip=Math.sin(o),this.projectionType=qi.OBLIQUE):this.projectionType=qi.TRANSVERSE},forward:function(t){return this.projectionType.forward(this,t)},inverse:function(t){return this.projectionType.inverse(this,t)},names:["General Oblique Transformation","General_Oblique_Transformation","ob_tran"]};const Fi=Object.assign((function(t,s,i){var a,e,h,r=!1;return void 0===s?(e=Nt(t),a=Pt,r=!0):(void 0!==s.x||Array.isArray(s))&&(i=s,e=Nt(t),a=Pt,r=!0),a||(a=Nt(t)),e||(e=Nt(s)),i?bt(a,e,i):(h={forward:function(t,s){return bt(a,e,t,s)},inverse:function(t,s){return bt(e,a,t,s)}},r&&(h.oProj=e),h)}),{defaultDatum:"WGS84",Proj:ft,WGS84:new ft("WGS84"),Point:Qt,toPoint:xt,defs:T,nadgrid:function(t,s,i){return s instanceof ArrayBuffer?function(t,s,i){var a=!0;void 0!==i&&!1===i.includeErrorFields&&(a=!1);var e=new DataView(s),h=function(t){var s=t.getInt32(8,!1);if(11===s)return!1;s=t.getInt32(8,!0),11!==s&&console.warn("Failed to detect nadgrid endian-ness, defaulting to little-endian");return!0}(e),r=function(t,s){return{nFields:t.getInt32(8,s),nSubgridFields:t.getInt32(24,s),nSubgrids:t.getInt32(40,s),shiftType:ct(t,56,64).trim(),fromSemiMajorAxis:t.getFloat64(120,s),fromSemiMinorAxis:t.getFloat64(136,s),toSemiMajorAxis:t.getFloat64(152,s),toSemiMinorAxis:t.getFloat64(168,s)}}(e,h),n=function(t,s,i,a){for(var e=176,h=[],r=0;r<s.nSubgrids;r++){var n=_t(t,e,i),o=Mt(t,e,n,i,a),l=Math.round(1+(n.upperLongitude-n.lowerLongitude)/n.longitudeInterval),c=Math.round(1+(n.upperLatitude-n.lowerLatitude)/n.latitudeInterval);h.push({ll:[lt(n.lowerLongitude),lt(n.lowerLatitude)],del:[lt(n.longitudeInterval),lt(n.latitudeInterval)],lim:[l,c],count:n.gridNodeCount,cvs:ut(o)});var u=16;!1===a&&(u=8),e+=176+n.gridNodeCount*u}return h}(e,r,h,a),o={header:r,subgrids:n};return ht[t]=o,o}(t,s,i):{ready:rt(t,s)}},transform:Gt,mgrs:qt,version:"2.20.2"});return function(t){t.Proj.projections.add($t),t.Proj.projections.add(hs),t.Proj.projections.add(rs),t.Proj.projections.add(ls),t.Proj.projections.add(us),t.Proj.projections.add(_s),t.Proj.projections.add(fs),t.Proj.projections.add(ds),t.Proj.projections.add(gs),t.Proj.projections.add(Gs),t.Proj.projections.add(Os),t.Proj.projections.add(js),t.Proj.projections.add(qs),t.Proj.projections.add(Ts),t.Proj.projections.add(Ls),t.Proj.projections.add(Fs),t.Proj.projections.add(Us),t.Proj.projections.add(Bs),t.Proj.projections.add(Ds),t.Proj.projections.add(zs),t.Proj.projections.add(Ws),t.Proj.projections.add(Hs),t.Proj.projections.add(Qs),t.Proj.projections.add(Xs),t.Proj.projections.add(ri),t.Proj.projections.add(di),t.Proj.projections.add(gi),t.Proj.projections.add(Ei),t.Proj.projections.add(xi),t.Proj.projections.add(Ai),t.Proj.projections.add(ji),t.Proj.projections.add(Li)}(Fi),Fi}));
13;
14(function($,Drupal){Drupal.behaviors.geofieldLatvijaFormatter={getMobileOperatingSystem:function(){var userAgent=navigator.userAgent||navigator.vendor||window.opera;if(/windows phone/i.test(userAgent))return "Windows Phone";if(/android/i.test(userAgent))return "Android";if(/iPad|iPhone|iPod/.test(userAgent)&&!window.MSStream)return "iOS";return "unknown";},deg2rad:function(angle){return (angle/180)*Math.PI;},LatLonToLKS:function(lat,lon){LKS_UTM_SCALE_FACTOR=0.9996;var lat=this.deg2rad(lat);var lon=this.deg2rad(lon);var sm_a=6378137.0;var sm_b=6356752.314140;var xy=[];var phi=lat;var lambda_=lon;var lambda0=this.deg2rad(24);var ep2=(sm_a*sm_a-sm_b*sm_b)/sm_b/sm_b;
14var nu2=ep2*Math.cos(phi)*Math.cos(phi);var N=sm_a*sm_a/(sm_b*Math.sqrt(1+nu2));var t=Math.tan(phi);var t2=t*t;var l=lambda_-lambda0;var l3coef=1.0-t2+nu2;var l4coef=5.0-t2+9*nu2+4.0*(nu2*nu2);var l5coef=5.0-18.0*t2+(t2*t2)+14.0*nu2-58.0*t2*nu2;var l6coef=61.0-58.0*t2+(t2*t2)+270.0*nu2-330.0*t2*nu2;var l7coef=61.0-479.0*t2+179.0*(t2*t2)-(t2*t2*t2);var l8coef=1385.0-3111.0*t2+543.0*(t2*t2)-(t2*t2*t2);var x=N*Math.cos(phi)*l+(N/6.0*Math.pow(Math.cos(phi),3.0)*l3coef*Math.pow(l,3.0))+(N/120.0*Math.pow(Math.cos(phi),5.0)*l5coef*Math.pow(l,5.0))+(N/5040.0*Math.pow(Math.cos(phi),7.0)*l7coef*Math.pow(l,7.0));var y=this.lks_arc_length_of_meridian(phi)+(t/2.0*N*Math.pow(Math.cos(phi),2.0)*Math.pow(l,2.0))+(t/24.0*N*Math.pow(Math.cos(phi),4.0)*l4coef*Math.pow(l,4.0))+(t/720.0*N*Math.pow(Math.cos(phi),6.0)*l6coef*Math.pow(l,6.0))+(t/40320.0*N*Math.pow(Math.cos(phi),8.0)*l8coef*Math.pow(l,8.0));var x=x*LKS_UTM_SCALE_FACTOR+500000.0;var y=y*LKS_UTM_SCALE_FACTOR-6000000.0;if(y<0.0)y=y+10000000.0;return [x,y];},lks_arc_length_of_meridian:function(phi){var sm_a=6378137.0;var sm_b=6356752.314140;var n=(sm_a-sm_b)/(sm_a+sm_b);var alpha=((sm_a+sm_b)/2.0)*(1.0+(Math.pow(n,2.0)/4.0)+(Math.pow(n,4.0)/64.0));var beta=(-3.0*n/2.0)+(9.0*Math.pow(n,3.0)/16.0)+(-3.0*Math.pow(n,5.0)/32.0);var gamma=(15.0*Math.pow(n,2.0)/16.0)+(-15.0*Math.pow(n,4.0)/32.0);var delta=(-35.0*Math.pow(n,3.0)/48.0)+(105.0*Math.pow(n,5.0)/256.0);var epsilon=(315.0*Math.pow(n,4.0)/512.0);var result=alpha*(phi+(beta*Math.sin(2.0*phi))+(gamma*Math.sin(4.0*phi))+(delta*Math.sin(6.0*phi))+(epsilon*Math.sin(8.0*phi)));return result;}};})(jQuery,Drupal);;
15(function($,Drupal){Drupal.behaviors.geoUrlFormatter={attach:function(context,settings){function generateUrlOutput(longitude,latitude){var mobileOS=Drupal.behaviors.geofieldLatvijaFormatter.getMobileOperatingSystem();if(mobileOS=='Android')url='geo:'+latitude+','+longitude+'?z=12';else url='https://www.google.com/maps/search/?api=1&query='+latitude+','+longitude;return url;}function generateUrl(){proj4.defs('EPSG:3059','+proj=tmerc +lat_0=0 +lon_0=24 +k=0.9996 +x_0=500000 +y_0=-6000000 +ellps=GRS80 +units=m +no_defs');var urls=$('.geo-location-url:not(.has-generated-url)',context).each(function(index,item){var $item=$(item);var lonLat=proj4('EPSG:3059','EPSG:4326',[parseFloat($item.data('longitude')),parseFloat($item.data('latitude'))]);generateUrlOutput(lonLat[0],lonLat[1]);$item.attr('href',url).addClass('has-generated-url');var addressText=$item.text().trim();if(addressText)$item.attr('aria-label',Drupal.t('Address')+': '+addressText);});}generateUrl();}};})(jQuery,Drupal);;
16(function($,Drupal){var cookieName='maintenance_message';Drupal.behaviors.message={attach:function(context,settings){$(once('messageInit','body',context)).each(function(){if(typeof Cookies.get(cookieName)==='undefined'||Cookies.get(cookieName)!='1')$.ajax({type:'GET',url:drupalSettings.message_ajax_url,success:function(data){$('#notifications').prepend($('<div class="notifications-wrapper maintenance-message"></div>').append($(data.html)));$('body').addClass('maintenance-message-visible');Drupal.behaviors.CookiesFunctions.recalculateHeader();}});});$('body',context).on('click','.maintenance-message .close',function(){$('.maintenance-message',context).hide();$('body').removeClass('maintenance-message-visible');Drupal.behaviors.CookiesFunctions.recalculateHeader();document.cookie=cookieName+"=1; expires=0";});}};})(jQuery,Drupal);;
17(function($,Drupal){Drupal.behaviors.menuCustom={attach:function(context,settings){if($("#cookieConsent").length)$(".dialog-off-canvas-main-canvas *, #skip *").attr("tabindex","-1").attr("aria-hidden","true");$(once('js--explain-trigger','html',context)).each(function(){var moblieBrakepint=768;var tabletBrakepoint=1200;var menuMobile=(window.innerWidth<moblieBrakepint);var menuTablet=(window.innerWidth>=moblieBrakepint&&window.innerWidth<=tabletBrakepoint);var mainMenuElementFull=$('#nav-initial');var clickHistory=[];var triggerElements=$('#user-tools-region, #block-menucustomblock .navbar .navbar-toggler, #block-menucustomblock .navbar .navbar-toggler-text');var openStates={mobileNav:false,tabletNav:false,desktopNav:false};var windowClosers={desktopNav:function(){$('#menu-full-sublevel-outer-wrapper').removeClass('opened');$('#menu-tree-full ul.main-nav li.has-children').removeClass('active').children('a').attr('aria-expanded','false');$('.menu-full-close').removeClass('focused');$('body').css('overflow','scroll');clearSublevel();},settings:function(){$('.access-container').css('display','none');$('#user-tools-accessibility .search-link').removeClass('active');},search:function(){$('#header-search').collapse('hide');},language:function(){$("#block-valoduparsledzejs .lang-options").removeClass('active');}};function leaveActiveWindow(active){for(var key in windowClosers)if(key!=active)windowClosers[key]();}function clearSublevel(){$('.level-1.scrollbar-inner').scrollTop(0);$('#menu-full-sublevel-outer-wrapper').removeClass('opened');$('body').removeClass('menucustom-opened');level1Element.html('');level2Element.html('');level3Element.html('');sublevelInfoTitleElement.html('');sublevelReadMoreElement.html('');contactsElement.html('');contactsElement.css('display','none');$('#menu-tree-full ul.main-nav li.active').removeClass('active').children('a').attr('aria-expanded','false');$('#menu-full-sublevel .sublevel-container .level-2').css('display','none');$('.block-menu-custom .scrollbar-inner').scrollbar('destroy');}function buildHistoryTree(){var historyTree=$('#menu-tree-mobile .history-tree');var closer='';var hisrotyTreeHtml='';for(var i=0;i<clickHistory.length;i++){historyItem=$('#menu-tree-mobile #nav-initial a[data-uuid="'+clickHistory[i]+'"]');var historyTitle=historyItem.text();var showExternal=historyItem.attr('data-external');var externalAttribute='';if(showExternal)externalAttribute='data-external-link="TRUE"';if(i==0){var historyUrl=historyItem.attr('href');$('#menu-tree-main #menu-tree-mobile .menu-mobile-current-title .menu-title').html("<a href='"+historyUrl+"' "+externalAttribute+">"+historyTitle+"</a>");}else{href='';var uuid=clickHistory[i];if(jQuery('a[data-uuid="'+uuid+'"]').attr('href')){var path=jQuery('a[data-uuid="'+uuid+'"]').attr('href');var href='href="'+path+'"';}hisrotyTreeHtml+='<div class=""><a '+(i==clickHistory.length-1?href:'')+' class="history-link '+(i==clickHistory.length-1?'current':'')+'" level-index="'+i+'" return-uuid="'+uuid+'" '+externalAttribute+'>'+historyTitle+'</a>';closer+='</div>';}}historyTree.html((hisrotyTreeHtml+closer));}function populateMenuSublevel(parentElement,levelToPopulate){if(parentElement.children('.contacts-nav').length>0){var contactsNav=parentElement.children('.contacts-nav').clone();$('.sublevel-container').css('display','none');$('.sublevel-info-container').css('display','none');contactsElement.html(contactsNav);contactsElement.css('display','flex');$(contactsElement.closest('.scrollbar-inner')).scrollbar();}else{var childNav=parentElement.children('ul.child-nav').clone();var itemTitle=$(parentElement).children('a').children('.item-title').html();var itemDesc=$(parentElement).children('a').children('.item-desc').html();var itemAnchorUrl=$(parentElement).children('a').attr('href');var showExternal=$(parentElement).children('a').attr('data-external');var itemBlank=$(parentElement).children('a').attr('target')==='_blank'?'target=_blank':'';var externalClass='';var externalAttribute='';if(showExternal){externalClass='external-url';externalAttribute='data-external-link="TRUE"';}var hasChildren=$(parentElement).hasClass('has-children');
17$('.sublevel-container').css('display','flex');$('.sublevel-info-container').css('display','block');var videoContent='';if($(parentElement).children('a').children('.item-title').attr('data-video-content')=='true')var videoContent='with-video-content';sublevelInfoTitleElement.html("<h2 class="+videoContent+">"+itemTitle+"</h2>");if(typeof itemDesc!=='undefined'&&itemDesc!=='')sublevelInfoDescElement.html(itemDesc).css('display','block');else sublevelInfoDescElement.html('').css('display','none');sublevelReadMoreElement.html("<a href='"+itemAnchorUrl+"' "+itemBlank+" aria-label='"+Drupal.t('Read more')+" "+itemTitle+"' class='btn menu-readmore "+externalClass+"' "+externalAttribute+">"+Drupal.t('Read more')+"</a>");if(childNav&&hasChildren){if(levelToPopulate==1){level1Element.html(childNav);level2Element.html('');level3Element.html('');}else if(levelToPopulate==2){$('#menu-full-sublevel .sublevel-container .level-2').css('display','flex');level2Element.html(childNav);level3Element.html('');}else{var childExternalLinks=childNav.find('a[data-external]');if(childExternalLinks.length)childExternalLinks.attr('data-external-link','TRUE');level3Element.html(childNav);}childNav.css('display','flex');}else if(levelToPopulate!=3){level2Element.html('');$('#menu-full-sublevel .sublevel-container .level-2').css('display','none');level3Element.html('');$('#menu-full-sublevel .sublevel-container .level-3').css('display','none');}else{level3Element.html('');$('#menu-full-sublevel .sublevel-container .level-3').css('display','none');}$('.scrollbar-inner').scrollbar();}}var level1Element=$('#menu-full-sublevel .sublevel-container .level-1');var level2Element=$('#menu-full-sublevel .sublevel-container .level-2');var level3Element=$('#menu-full-sublevel .sublevel-info-container .level-3');var sublevelInfoTitleElement=$('#menu-full-sublevel .sublevel-info-container .sublevel-content .title');var sublevelInfoDescElement=$('#menu-full-sublevel .sublevel-info-container .sublevel-content .description');var sublevelReadMoreElement=$('#menu-full-sublevel .sublevel-info-container .sublevel-content .read-more-url');var contactsElement=$('#menu-full-sublevel .sublevel-contacts');function clearMenu(){if(menuTablet||menuMobile){$('#menu-tree-mobile ul.main-nav').html(mainMenuElementFull.html());$('.menu-mobile-current-title').css('display','none');$('#menu-tree-mobile .back-menu').addClass('display-none');$('#menu-tree-mobile').off('keydown.focustrap');clickHistory=[];buildHistoryTree();}}
17function tabletMenuFocusTrap(targetUuid=null){if(!menuTablet)return;setTimeout(function(){const $menu=$('#menu-tree-mobile');const $focusable=$menu.find('.main-nav > .nav-item > .nav-link, .close-menu, .menu-mobile-current-title a, .back-menu').filter(':visible');if(!$focusable.length)return;const $first=$focusable[0];const $last=$focusable[$focusable.length-1];const $target=targetUuid?$focusable.filter(`.main-nav > .nav-item > .nav-link[data-uuid="${targetUuid}"]`):null;($target?.length?$target[0]:$first).focus();$menu.off('keydown.focustrap').on('keydown.focustrap',function(e){if(e.key!=="Tab")return;if(e.shiftKey){if(document.activeElement===$first){e.preventDefault();$last.focus();}}else{if(document.activeElement===$last){e.preventDefault();$first.focus();}}});},50);}$(once('menu-custom-init','body',context)).each(function(){if($('#menu-tree-main').hasClass('menu-tree-always-collapse'))if(!$('#menu-tree-mobile ul.main-nav li').length)$('#menu-tree-mobile ul.main-nav').html(mainMenuElementFull.html());$('#block-menucustomblock .navbar .navbar-toggler',context).on('click',function(){leaveActiveWindow();if($('body').hasClass('menucustom-opened')){openStates.tabletNav=false;openStates.mobileNav=false;$('body').css('overflow','scroll');$('body').removeClass('menucustom-opened');}else{$('body').css('overflow','hidden');if($('html').hasClass('font-size-1-25x')||$('html').hasClass('font-size-1-50x')&&!openStates.mobileNav)openStates.tabletNav=true;else{openStates.tabletNav=menuTablet;openStates.mobileNav=menuMobile;}$('body').addClass('menucustom-opened');tabletMenuFocusTrap();}});if($('html').hasClass('font-size-1-25x')||$('html').hasClass('font-size-1-50x'))$('#menu-tree-mobile ul.main-nav').html(mainMenuElementFull.html());$('.font-size-block button[data-size="font-size-1-25x"], .font-size-block button[data-size="font-size-1-50x"]',context).on('click',function(){if(!$('#menu-tree-mobile ul.main-nav li').length)$('#menu-tree-mobile ul.main-nav').html(mainMenuElementFull.html());});$('#menu-tree-main .close-menu',context).on('click',function(){openStates.tabletNav=false;$('body').css('overflow','scroll');$('body').removeClass('menucustom-opened');clearMenu();});$('#menu-tree-main .close-menu-bottom',context).on('click',function(){openStates.mobileNav=false;$('body').css('overflow','scroll');$('body').removeClass('menucustom-opened');$('#menu-tree-mobile .sidebar-bottom').removeClass('hidden-sidebar-bottom');clearMenu();});$(document).delegate('#menu-tree-mobile .back-menu','click',function(event){var targetUuid=null;if(clickHistory.length>0)targetUuid=clickHistory[clickHistory.length-1];if(clickHistory.length==1)clearMenu();else{var mainMenuElement=$('#menu-tree-mobile ul.main-nav');var selectedSubMenu=$('#nav-initial ul.child-nav[data-uuid="'+clickHistory[clickHistory.length-2]+'"]').html();$(mainMenuElement).html(selectedSubMenu);clickHistory=clickHistory.slice(0,clickHistory.length-1);buildHistoryTree();}tabletMenuFocusTrap(targetUuid);});$('.search-overlay .full-close').keydown(function(e){if(e.keyCode==9)$('.skip-link.jump-to-main-navigation').focus();});});var menuTabElement='#block-menucustomblock .navbar .menu-mobile-tab';var languageTabElement='#user-tools-lang .lang-switcher';var accessibilityTabElement='#user-tools-accessibility .search-link';var mobileNavEvents={triggerElements:{selector:'#block-menucustomblock .navbar .navbar-toggler, #block-menucustomblock .navbar .close-menu, #menu-tree-main .close-menu-bottom, .universal-menu-toggler',action:function(event){if(triggerElements.hasClass('triggered')){triggerElements.removeClass('triggered');$('#block-menucustomblock .navbar .menu-mobile-tab').css('display','none');openStates.mobileNav=false;}else{triggerElements.addClass('triggered');openStates.mobileNav=true;fixMobMenuAfterResizing();}$(menuTabElement).removeClass('tab-active');$(languageTabElement).removeClass('tab-active');$(accessibilityTabElement).removeClass('tab-active');$('.placeholder-user-tools-settings').html('');$('.placeholder-user-tools-language').html('');$('#menu-tree-main #menu-tree-mobile .menu-mobile-current-title').css('display','none');$('#menu-tree-main #menu-tree-mobile ul.main-nav').html('');}},openTrigger:{selector:'#block-menucustomblock .navbar .navbar-toggler',action:function(event){openStates.mobileNav=true;$('#block-menucustomblock .navbar .menu-mobile-tab').css('display','block');$('#menu-tree-main #menu-tree-mobile ul.main-nav').html(mainMenuElementFull.html());$(menuTabElement).addClass('tab-active');if(window.innerWidth<moblieBrakepint&&!$('#user-tools-region').hasClass('triggered')){$('#user-tools-region').addClass('triggered');$('button.navbar-toggler').addClass('triggered');}$('#menu-tree-main #menu-tree-mobile ul.main-nav').css('paddingBottom','100px');}},userTools:{selector:'#user-tools-lang .lang-switcher, #user-tools-accessibility .search-link',action:function(event){event.preventDefault();if(!$('#block-menucustomblock .navbar .navbar-toggler').hasClass('triggered')){$('#mobileMenuElement').collapse('show');triggerElements.addClass('triggered');$('#block-menucustomblock .navbar .menu-mobile-tab').css('display','block');$('#menu-tree-main #menu-tree-mobile ul.main-nav').css('paddingBottom','');}$('#menu-tree-mobile .sidebar-bottom').addClass('hidden-sidebar-bottom');}},languageTabElement:{selector:languageTabElement,action:function(event){event.preventDefault();openStates.mobileNav=true;if(window.innerWidth<moblieBrakepint)$(languageTabElement).addClass('tab-active');$(menuTabElement).removeClass('tab-active');$(accessibilityTabElement).removeClass('tab-active');var takeElement=$('#block-valoduparsledzejs .lang-options');var replaceElement=$('.placeholder-user-tools-language');replaceElement.html(takeElement.html());$('#menu-tree-main #menu-tree-mobile .menu-mobile-current-title').css('display','none');$('#menu-tree-main #menu-tree-mobile ul.main-nav').html('');$('.placeholder-user-tools-settings').html('');$('#menu-tree-main #menu-tree-mobile ul.main-nav').css('paddingBottom','');$('#menu-tree-mobile .sidebar-bottom').addClass('hidden-sidebar-bottom');clickHistory=[];}},menuTabElement:{selector:menuTabElement,action:function(event){$(menuTabElement).addClass('tab-active');$(languageTabElement).removeClass('tab-active');$(accessibilityTabElement).removeClass('tab-active');$('.placeholder-user-tools-language').html('');$('.placeholder-user-tools-settings').html('');$('#menu-tree-main #menu-tree-mobile .menu-mobile-current-title').css('display','none');$('#menu-tree-main #menu-tree-mobile ul.main-nav').html(mainMenuElementFull.html());$('#menu-tree-main #menu-tree-mobile ul.main-nav').css('paddingBottom','100px');$('#menu-tree-mobile .sidebar-bottom').removeClass('hidden-sidebar-bottom');}},accessibilityTabElement:{selector:accessibilityTabElement,action:function(event){openStates.mobileNav=true;if(window.innerWidth<tabletBrakepoint)$(accessibilityTabElement).addClass('tab-active');$(languageTabElement).removeClass('tab-active');$(menuTabElement).removeClass('tab-active');var takeElement=$('#user-tools-accessibility .access-container');var replaceElement=$('.placeholder-user-tools-settings');$(replaceElement).html($(takeElement).html());
17takeElement.css('display','none');$('.placeholder-user-tools-language').html('');$('#menu-tree-main #menu-tree-mobile .menu-mobile-current-title').css('display','none');$('#menu-tree-main #menu-tree-mobile ul.main-nav').html('');$('#menu-tree-main #menu-tree-mobile ul.main-nav').css('paddingBottom','');clickHistory=[];var size=localStorage.getItem('font-size');Drupal.behaviors.accessibilityHeaderBlock.adjustSize(size);}},closeOnClickOut:{selector:'.mobile-nav-overlay',event:'click',action:function(e){if(e.target==e.currentTarget)$('#menu-tree-main .close-menu-bottom',context).click();}}};function setUpMobileNav(){clickHistory=[];if(window.innerWidth<moblieBrakepint)for(var key in mobileNavEvents){$('body').off('click',mobileNavEvents[key].selector,mobileNavEvents[key].action);$('body').on('click',mobileNavEvents[key].selector,mobileNavEvents[key].action);}else for(var key in mobileNavEvents){$('body').off('click',mobileNavEvents[key].selector,mobileNavEvents[key].action);$('#user-tools-lang .lang-switcher').removeClass('tab-active');$('#user-tools-accessibility .search-link').removeClass('tab-active');}}setUpMobileNav();mobileNavAndTabletEvents={navLiHasChildrenClick:{selector:'#menu-tree-mobile li.has-children > a',event:'click',action:function(event){event.stopPropagation();event.preventDefault();$(this).attr('aria-expanded','true');setTimeout(()=>{$('#menu-tree-mobile .back-menu').removeClass('display-none');var mainMenuElement=$('#menu-tree-mobile ul.main-nav');$('.menu-mobile-current-title').css('display','flex');var selectedUUID=$(this).data('uuid');if(selectedUUID){clickHistory.push(selectedUUID);var mainMenuElement=$('#menu-tree-mobile ul.main-nav');var selectedSubMenu=$('#menu-tree-mobile ul.child-nav[data-uuid="'+selectedUUID+'"]').html();buildHistoryTree();$(mainMenuElement).html(selectedSubMenu);$('#menu-tree-mobile').scrollTop(0);}tabletMenuFocusTrap();},100);}},historyLinkClick:{selector:'#menu-tree-mobile .menu-mobile-current-title .history-link:not(.current)',event:'click',action:function(event){targetUuid=$(event.target).attr('return-uuid');var mainMenuElement=$('#menu-tree-mobile ul.main-nav');var selectedSubMenu=$('#nav-initial ul.child-nav[data-uuid="'+targetUuid+'"]').html();$(mainMenuElement).html(selectedSubMenu);clickHistory=clickHistory.slice(0,clickHistory.length-(parseInt($(event.target).attr('level-index'))+1));buildHistoryTree();}}};function setUpMobileAndTAbletNav(){if(menuMobile||menuTablet)for(var key in mobileNavAndTabletEvents){$('body').off('click',mobileNavAndTabletEvents[key].selector,mobileNavAndTabletEvents[key].action);$('body').on('click',mobileNavAndTabletEvents[key].selector,mobileNavAndTabletEvents[key].action);}else for(var key in mobileNavAndTabletEvents)$('body').off('click',mobileNavAndTabletEvents[key].selector,mobileNavAndTabletEvents[key].action);}tabletNavEvents={navClose:{selector:'#menu-tree-main',event:'click',action:function(e){if(e.target===e.currentTarget)$('#menu-tree-main .close-menu',context).click();}}};function setUpTabletNav(){if(menuTablet)for(var key in tabletNavEvents){$('body').off(tabletNavEvents[key].event,tabletNavEvents[key].selector,tabletNavEvents[key].action);$('body').on(tabletNavEvents[key].event,tabletNavEvents[key].selector,tabletNavEvents[key].action);}else for(var key in tabletNavEvents)$('body').off(tabletNavEvents[key].event,tabletNavEvents[key].selector,tabletNavEvents[key].action);}setUpTabletNav();desktopNavAndTabletEvents={sitteSettingsPopup:{selector:'#user-tools-accessibility .search-link',event:'click',action:function(e){e.preventDefault();leaveActiveWindow('settings');$(this).toggleClass('active');var settingsEl='.accessibility-header-container .access-container';var isVisible=$(settingsEl).is(":visible");$(settingsEl).toggle();if(!$(this).hasClass('active')&&($(settingsEl).is(":visible"))){$(settingsEl).hide();$(this).attr('aria-expanded','false');}else if($(settingsEl).is(":visible"))$(this).attr('aria-expanded','true');else $(this).attr('aria-expanded','false');}},sitteSettinsClose:{selector:'.dialog-off-canvas-main-canvas',event:'click',action:function(e){if($(e.target).parents('#user-tools-region, #block-menucustomblock, #header-search .search-container').length){}else if($('#user-tools-accessibility .search-link').hasClass('active'))leaveActiveWindow();else{if($('.language-switcher-language-url #lang-options').hasClass('active'))leaveActiveWindow();}}},langSelect:{selector:'#block-valoduparsledzejs .lang-switcher',event:'click',action:function(e){e.preventDefault();leaveActiveWindow('language');var lang_ul=$("#block-valoduparsledzejs .lang-options");var lang_button=$(this);if(lang_ul.hasClass('active')){lang_ul.removeClass('active');lang_button.attr('aria-expanded','false');}else{lang_ul.addClass('active');lang_button.attr('aria-expanded','true');}}},openTrigger:{selector:'#block-menucustomblock .navbar .navbar-toggler',action:function(event){if($('#cookie-element-wrap .eu-cookie-compliance-banner').length){var cookieSize=$('#cookie-element-wrap').outerHeight()||0;$('.navbar-collapse #menu-tree-main').css('min-height','calc(100% - '+cookieSize+'px)');}}}};function setUpDesktopAndTAbletNav(){if(!menuMobile)for(var key in desktopNavAndTabletEvents){$('body').off('click',desktopNavAndTabletEvents[key].selector,desktopNavAndTabletEvents[key].action);$('body').on('click',desktopNavAndTabletEvents[key].selector,desktopNavAndTabletEvents[key].action);}else{for(var key in desktopNavAndTabletEvents)$('body').off('click',desktopNavAndTabletEvents[key].selector,desktopNavAndTabletEvents[key].action);fixMobMenuAfterResizing();}}setUpDesktopAndTAbletNav();
17desktopNavEvents={navItemHasChildren:{selector:'#menu-tree-full ul.main-nav li.has-children',event:'click',action:function(e){e.preventDefault();leaveActiveWindow();openStates.desktopNav=true;var difference=70;if($('#cookie-element-wrap #sliding-popup').length||$('header .top-navigation').length)difference=$('.header-wrapper').outerHeight();if($('#toolbar-bar').length)difference=difference+52;if(difference>70)$('#menu-full-sublevel-outer-wrapper').css("top",difference+'px');$('body').css('overflow','hidden');clearSublevel();$('body').addClass('menucustom-opened');if($('#menu-full-sublevel-outer-wrapper').hasClass('opened'))$('#menu-full-sublevel-outer-wrapper').removeClass('opened');else $('#menu-full-sublevel-outer-wrapper').addClass('opened');if($(this).hasClass('active'))$(this).removeClass('active').children('a').attr('aria-expanded','false');else $(this).addClass('active').children('a').attr('aria-expanded','true');populateMenuSublevel($(this),1);}},sublevelLiClick:{selector:'#menu-full-sublevel .sublevel-container ul.child-nav li',event:'click',action:function(e){e.stopPropagation();e.preventDefault();if($(this).hasClass('nav-list-item')){const navItemUrl=$(this).children('a:not([data-external-link="TRUE"])');if(navItemUrl.length){window.location.href=navItemUrl.attr('href');return;}}$(this).siblings('li.active').removeClass('active').children('a').attr('aria-expanded','false');$(this).addClass('active').children('a').attr('aria-expanded','true');var childParent=$(this).parent('ul').parent('div');if($(this).hasClass('has-children'))if(childParent.hasClass('level-1'))populateMenuSublevel($(this),2);else{if(childParent.hasClass('level-2'))populateMenuSublevel($(this),3);}else{if(childParent.hasClass('level-1')){level2Element.html('');$('#menu-full-sublevel .sublevel-container .level-2').css('display','none');level3Element.html('');}else{if(childParent.hasClass('level-2'))level3Element.html('');}var itemTitle=$(this).children('a').children('.item-title').html();var itemDesc=$(this).children('a').children('.item-desc').html();var itemHref=$(this).children('a').attr('href');var itemBlank=$(this).children('a').attr('target')==='_blank'?'target=_blank':'';var showExternal=$(this).children('a').attr('data-external');var externalClass='';var externalAttribute='';if(showExternal){externalClass='external-url';externalAttribute='data-external-link="TRUE"';}var externalLabel='';if(externalClass==='external-url')externalLabel=' - '+Drupal.t('External link');var videoContent='';if($(this).children('a').children('.item-title').attr('data-video-content')=='true')var videoContent='with-video-content';sublevelInfoTitleElement.html("<h2 class="+videoContent+">"+itemTitle+"</h2>");if(typeof itemDesc!=='undefined'&&itemDesc!=='')sublevelInfoDescElement.html(itemDesc).css('display','block');
17else sublevelInfoDescElement.html('').css('display','none');sublevelReadMoreElement.html("<a href='"+itemHref+"' "+itemBlank+" aria-label='"+Drupal.t('Read more')+" "+itemTitle+externalLabel+"' class='btn menu-readmore "+externalClass+"' "+externalAttribute+">"+Drupal.t('Read more')+"</a>");}}},menuStopPropagation:{selector:'#menu-full-sublevel-inner-wrapper',event:'click',action:function(event){event.stopPropagation();}},clearMenu:{selector:'.menu-full-close, #menu-full-sublevel-outer-wrapper, #block-searchheaderblock #user-tools-search',event:'click',action:function(e){openStates.desktopNav=false;leaveActiveWindow();clearSublevel();setTimeout(()=>$('#header-search .input-wrap input[type="search"]').focus(),100);}},enterKeyPress:{selector:'#block-menucustomblock',event:'keydown',action:function(e){var $focusElement=$(':focus');var childParent=$($focusElement).parent();var hasChildren=$($focusElement).parent().hasClass('has-children');var levelElement=$(childParent).parent().parent('div');var clickLevel;if($(levelElement).hasClass('level-0')&&$focusElement.siblings('ul.contacts-nav').length<=0)clickLevel=0;else if($(levelElement).hasClass('level-1'))clickLevel=1;else if($(levelElement).hasClass('level-2'))clickLevel=2;else if($(levelElement).hasClass('level-3'))clickLevel=3;else if($($focusElement).parent().hasClass('read-more-url')&&!$($focusElement).hasClass('menu-full-close')&&$focusElement.siblings('ul.contacts-nav').length<=0)clickLevel='read-more';else if($focusElement.siblings('ul.contacts-nav').length>0)clickLevel='contacts';else if($($focusElement).hasClass('menu-full-close'))clickLevel='close-menu';else if($('ul.contacts-nav').children('li').last().children('a').is(':focus'))clickLevel='contacts-close';else clickLevel=null;var _focus=function(elSelector){if(elSelector=='.menu-full-close')$(elSelector).addClass('focused');else $('.menu-full-close').removeClass('focused');setTimeout(function(){$(elSelector).focus();},10);};var setFocus=function(contacts){var getNextLevel=clickLevel+1;if(!contacts)if(hasChildren)setTimeout(function(){populateMenuSublevel($(childParent),getNextLevel);_focus($('#menu-full-sublevel .sublevel-info-container .sublevel-content .read-more-url').children('a').first());},10);else{if(getNextLevel!=4)if(!$(childParent).hasClass('read-more-url'))setTimeout(function(){populateMenuSublevel($(childParent),getNextLevel);_focus($('#menu-full-sublevel .sublevel-info-container .sublevel-content .read-more-url').children('a').first());},10);}else setTimeout(function(){_focus($('#menu-full-sublevel .sublevel-contacts ul.contacts-nav').children('li').first().children('span.item-title').children('a'));},10);};if(e.which===13)if(clickLevel!='contacts'){$('.menu-full-close').removeClass('contacts-close');if((clickLevel===0&&!hasChildren)||$.inArray(clickLevel,[0,1,2,3,4,'close-menu'])<0)return true;else if(clickLevel=='close-menu'){var activeElement=$('#menu-tree-full ul.main-nav li.active').data('menu-link');$($focusElement).click();_focus('#menu-tree-full ul.main-nav li[data-menu-link="'+activeElement+'"] a');}else{$(childParent).addClass('active').children('a').attr('aria-expanded','true');$(childParent).siblings('li.active').removeClass('active').children('a').attr('aria-expanded','false');setFocus(false);}}else{$('.menu-full-close').addClass('contacts-close');$(childParent).addClass('active').children('a').attr('aria-expanded','true');$(childParent).siblings('li.active').removeClass('active').children('a').attr('aria-expanded','false');setFocus(true);}if(e.which===9&&(!e.shiftKey)){var getLevel2Active=$('#menu-full-sublevel .sublevel-container .level-2 ul li.active');if(clickLevel===3||($(childParent).hasClass('read-more-url')&&!$(getLevel2Active).hasClass('has-children'))){if($(childParent).next().length===0){var isLevel2LastActive=$('#menu-full-sublevel .sublevel-container .level-2').children('ul').children('li').last().hasClass('active');var isLevel1LastActive=$('#menu-full-sublevel .sublevel-container .level-1').children('ul').children('li').last().hasClass('active');var getLevel1Active=$('#menu-full-sublevel .sublevel-container .level-1 ul li.active');var getLevel2Active=$('#menu-full-sublevel .sublevel-container .level-2 ul li.active');if(isLevel2LastActive)_focus($('#menu-full-sublevel .sublevel-container .level-1').children('ul').children('li.active').next().children('a'));else if(clickLevel=='read-more')if(getLevel1Active.length<=0&&getLevel2Active.length<=0)_focus($('#menu-full-sublevel .sublevel-container .level-1').children('ul').children('li').first().children('a'));else if(getLevel1Active.length>0&&level2Element.children('ul').children('li').length>0&&getLevel2Active.length<=0)_focus($('#menu-full-sublevel .sublevel-container .level-2').children('ul').children('li').first().children('a'));else if(getLevel1Active.length>0&&level2Element.children('ul').children('li').length<=0)_focus($('#menu-full-sublevel .sublevel-container .level-1').children('ul').children('li.active').next().children('a'));else if(getLevel2Active.length>0&&!isLevel2LastActive)_focus($('#menu-full-sublevel .sublevel-container .level-2').children('ul').children('li.active').next().children('a'));else{if(isLevel2LastActive)_focus('.menu-full-close');}else if($('#menu-full-sublevel .sublevel-container .level-2').children('ul').children('li.active').length===0&&$('#menu-full-sublevel .sublevel-container .level-1').children('ul').children('li.active').length>0)_focus($('#menu-full-sublevel .sublevel-container .level-1').children('ul').children('li.active').children('a'));else if($('#menu-full-sublevel .sublevel-container .level-1').children('ul').children('li.active').length===0)if($('#menu-tree-main #menu-tree-full.level-0').children('ul').children('li').last().hasClass('active'))_focus($('#block-searchheaderblock').children('div').children('a'));else _focus($('#menu-tree-main #menu-tree-full.level-0').children('ul').children('li').next().children('a'));else _focus($('#menu-full-sublevel .sublevel-container .level-2').children('ul').children('li.active').children('a'));if(isLevel1LastActive&&level2Element.children('ul').children('li').length<=0)_focus('.menu-full-close');else{if(isLevel1LastActive&&isLevel2LastActive&&clickLevel!=1)_focus('.menu-full-close');}if($('#menu-full-sublevel .sublevel-container .level-2').children('ul').children('li').last().children('a').is(':focus'))_focus('.menu-full-close');}}else if(clickLevel===1){if($('#menu-full-sublevel .sublevel-container .level-1').children('ul').children('li').last().children('a').is(':focus'))_focus('.menu-full-close');}else if(clickLevel===2){if($('#menu-full-sublevel .sublevel-container .level-2').children('ul').children('li').last().children('a').is(':focus'))if($('#menu-full-sublevel .sublevel-container .level-1').children('ul').children('li').last().hasClass('active'))_focus('.menu-full-close');else _focus($('#menu-full-sublevel .sublevel-container .level-1').children('ul').children('li.active').next().children('a'));}else if(clickLevel=='close-menu'&&!$('.menu-full-close').hasClass('contacts-close'))_focus($('#menu-full-sublevel .sublevel-container .level-1').children('ul').children('li').first().children('a'));else if(clickLevel=='contacts-close')_focus('.menu-full-close');else{if(clickLevel=='close-menu'&&$('.menu-full-close').hasClass('contacts-close'))setFocus(true);}}}}};
17function setUpDesktopNav(){if(!menuMobile&&!menuTablet)for(var key in desktopNavEvents){$('body').off(desktopNavEvents[key].event,desktopNavEvents[key].selector,desktopNavEvents[key].action);$('body').on(desktopNavEvents[key].event,desktopNavEvents[key].selector,desktopNavEvents[key].action);}else for(var key in desktopNavEvents)$('body').off(desktopNavEvents[key].event,desktopNavEvents[key].selector,desktopNavEvents[key].action);}setUpDesktopNav();function mobileMediaSetup(match){menuTablet=false;if(match.matches){setUpMobileAndTAbletNav();setUpDesktopAndTAbletNav();setUpTabletNav();leaveActiveWindow();$('.access-container').css('display','none');if(openStates.tabletNav){$('#menu-tree-main .close-menu').click();menuMobile=true;setUpMobileNav();setTimeout(function(){$('#block-menucustomblock .navbar .navbar-toggler').click();},150);}else menuMobile=true;}setUpMobileNav();}function tabletMediaSetup(match){if(match.matches){menuMobile=false;menuTablet=true;$('#menu-tree-main #menu-tree-mobile ul.main-nav').html(mainMenuElementFull.html());if(openStates.mobileNav){$('#menu-tree-main .close-menu-bottom').click();setUpMobileNav();setTimeout(function(){$('#menu-tree-main #menu-tree-mobile ul.main-nav').html(mainMenuElementFull.html());$('#block-menucustomblock .navbar .navbar-toggler').click();},150);}if(openStates.desktopNav){$('.menu-full-close').click();$('#block-menucustomblock .navbar .navbar-toggler').click();setUpDesktopNav();}}setUpTabletNav();setUpMobileAndTAbletNav();setUpDesktopAndTAbletNav();}function desktopMediaSetup(match){if(match.matches){menuMobile=false;menuTablet=false;if($('html').hasClass('font-size-1-25x')||$('html').hasClass('font-size-1-50x'))menuTablet=true;setUpMobileAndTAbletNav();setUpTabletNav();if(openStates.tabletNav)$('#menu-tree-main .close-menu').click();}setUpDesktopAndTAbletNav();setUpDesktopNav();}var mobileMedia=window.matchMedia('(max-width: '+(moblieBrakepint-1)+'px)');mobileMediaSetup(mobileMedia);mobileMedia.addListener(mobileMediaSetup);var tabletSelector='(min-width: '+moblieBrakepint+'px) and (max-width: '+tabletBrakepoint+'px)';var alwaysCollapse=false;if($('#menu-tree-main').hasClass('menu-tree-always-collapse')){tabletSelector='(min-width: '+moblieBrakepint+'px)';var alwaysCollapse=true;}var tabletMedia=window.matchMedia(tabletSelector);tabletMediaSetup(tabletMedia);tabletMedia.addListener(tabletMediaSetup);if(!alwaysCollapse){var desktopMedia=window.matchMedia('(min-width: '+tabletBrakepoint+'px)');desktopMediaSetup(desktopMedia);desktopMedia.addListener(desktopMediaSetup);}if(!$('#menu-tree-main').hasClass('menu-tree-always-collapse'))$(window).on('resize',function(){if(window.innerWidth>tabletBrakepoint)$('.navbar-collapse').removeClass('show');});function fixMobMenuAfterResizing(){if($('#user-tools-region').hasClass('triggered')&&$('.navbar-toggler').hasClass('triggered')&&!$('#mobileMenuElement').hasClass('show')){$('#user-tools-region').removeClass('triggered');$('button.navbar-toggler').removeClass('triggered');$('.menu-mobile-tab').css('display','none');}}});}};})(jQuery,Drupal);;
18(function($,Drupal){Drupal.behaviors.cTooltip={attach:function(context){$(once('cTooltip','header, body, footer',context)).each(function(){const $container=$(this);const $document=$(document);function closeTooltip(){const $tooltip=$('.c_tooltip.open',$container);if($tooltip.length){const $span=$tooltip.closest('span[data-was-link]');if($span.length){const $link=$('<a>');$.each($span[0].attributes,function(){$link.attr(this.name,this.value);});$link.removeAttr('data-was-link');$link.html($span.html());$span.replaceWith($link);$link.find('.c_tooltip.open').removeClass('open').find('.c_tooltip-text').attr("hidden","").end().find('.c_tooltip-btn').attr("aria-expanded","false");return;}$tooltip.removeClass('open').find('.c_tooltip-text').attr("hidden","").end().find('.c_tooltip-btn').attr("aria-expanded","false");if($tooltip.data('trigger')){$tooltip.data('trigger').focus();$tooltip.removeData('trigger');}}}function toggleTooltip($btn){const $tooltip=$btn.parent();const isOpen=$tooltip.hasClass('open');closeTooltip();if(!isOpen){$tooltip.addClass('open');$btn.attr("aria-expanded","true");$tooltip.find('.c_tooltip-text').removeAttr("hidden");$tooltip.data('trigger',$btn);const $parentLink=$tooltip.closest('a[href]');if($parentLink.length){const $span=$('<span>');$.each($parentLink[0].attributes,function(){$span.attr(this.name,this.value);});$span.attr('data-was-link','true');$span.html($parentLink.html());$parentLink.replaceWith($span);}const $closeBtn=$tooltip.find('.close-tooltip');if($closeBtn.length)$closeBtn.focus();}}$container.on('click keydown','.c_tooltip .c_tooltip-btn',function(e){if(e.type==='click'||(e.type==='keydown'&&(e.key==='Enter'||e.key===' '))){e.preventDefault();e.stopPropagation();toggleTooltip($(this));}});$container.on('click keydown','.close-tooltip',function(e){if(e.type==='click'||(e.type==='keydown'&&(e.key==='Enter'||e.key===' '))){e.preventDefault();e.stopPropagation();closeTooltip();}});if($('#layout-builder').length){$container.on('mousedown','#layout-builder .c_tooltip .c_tooltip-btn',function(e){e.preventDefault();e.stopPropagation();toggleTooltip($(this));});$container.on('mousedown','#layout-builder .close-tooltip',function(e){e.preventDefault();e.stopPropagation();closeTooltip();});}$container.on('focusin',function(e){const $openTooltip=$('.c_tooltip.open');if(!$(e.target).closest('.c_tooltip, .c_tooltip-btn').length)if($openTooltip.length&&!$(e.target).find('.c_tooltip.open').length){e.preventDefault();e.stopPropagation();closeTooltip();}});$container.on('click',function(e){if(!$(e.target).closest('.c_tooltip').length)closeTooltip();});$container.on('click','.c_tooltip-text',function(e){e.stopPropagation();e.preventDefault();});$document.on('keydown',function(e){if(e.key==="Escape"&&$('.c_tooltip.open',$container).length){closeTooltip();e.preventDefault();}});});$(once('tooltipSelectstart','.c_tooltip-text',context)).each(function(){$(this).on('selectstart',function(e){e.stopPropagation();});});$(once('tooltipInline','.title-with-tooltip',context)).each(function(){var $wrapper=$(this);var $target=$wrapper.find('h2 > a, h3 > a, h4 > a, button.btn-link').first();var $tooltip=$wrapper.find('.tooltip-wrapper');if(!$target.length||!$tooltip.length)return;$tooltip.detach();$target.append($tooltip);});function positionTooltip(tooltip){var rect=tooltip.getBoundingClientRect();var spaceRight=window.innerWidth-rect.right;var spaceLeft=rect.left;var $tooltipText=$(tooltip).find('.c_tooltip-text');var isTop=(spaceRight<185&&(spaceLeft<185||spaceRight>=80));$tooltipText.toggleClass('c_tooltip-top',isTop);$tooltipText.toggleClass('c_tooltip-left',!isTop&&spaceRight<80);}$(once('tooltipPositionFix','.c_tooltip',context)).each(function(){positionTooltip(this);});$(window).off('resize.tooltipPositionFix').on('resize.tooltipPositionFix',Drupal.debounce(function(){$('.c_tooltip').each(function(){positionTooltip(this);});},150));}};})(jQuery,Drupal);;
19(function($,Drupal){Drupal.addEmailAriaLabel=function($link){var email=$link.text().trim();if(email&&!$link.attr('aria-label'))$link.attr('aria-label',Drupal.t('E-mail: @email',{'@email':email}));};})(jQuery,Drupal);;
20(()=>{var t,e={52:function(t,e,n){var i,o,r;function a(t){return a="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;},a(t);}r=function(){"use strict";function t(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t;}function e(t,e){return t(e={exports:{}},e.exports),e.exports;}"undefined"!=typeof window?window:void 0!==n.g?n.g:"undefined"!=typeof self&&self;var i=e((function(t,e){!function(t){function e(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function");}
20Object.defineProperty(t,"__esModule",{value:!0});var n=function(){function t(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value" in i&&(i.writable=!0),Object.defineProperty(t,i.key,i);}}return function(e,n,i){return n&&t(e.prototype,n),i&&t(e,i),e;};}(),i=function(){var t=".stickySidebar",i={topSpacing:0,bottomSpacing:0,containerSelector:!1,innerWrapperSelector:".inner-wrapper-sticky",stickyClass:"is-affixed",resizeSensor:!0,minWidth:!1},o=function(){function o(t){var n=this,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(e(this,o),this.options=o.extend(i,r),this.sidebar="string"==typeof t?document.querySelector(t):t,void 0===this.sidebar)throw new Error("There is no specific sidebar element.");this.sidebarInner=!1,this.container=this.sidebar.parentElement,this.affixedType="STATIC",this.direction="down",this.support={transform:!1,transform3d:!1},this._initialized=!1,this._reStyle=!1,this._breakpoint=!1,this.dimensions={translateY:0,maxTranslateY:0,topSpacing:0,lastTopSpacing:0,bottomSpacing:0,lastBottomSpacing:0,sidebarHeight:0,sidebarWidth:0,containerTop:0,containerHeight:0,viewportHeight:0,viewportTop:0,lastViewportTop:0},["handleEvent"].forEach((function(t){n[t]=n[t].bind(n);})),this.initialize();}return n(o,[{key:"initialize",value:function(){var t=this;if(this._setSupportFeatures(),this.options.innerWrapperSelector&&(this.sidebarInner=this.sidebar.querySelector(this.options.innerWrapperSelector),null===this.sidebarInner&&(this.sidebarInner=!1)),!this.sidebarInner){var e=document.createElement("div");for(e.setAttribute("class","inner-wrapper-sticky"),this.sidebar.appendChild(e);this.sidebar.firstChild!=e;)e.appendChild(this.sidebar.firstChild);this.sidebarInner=this.sidebar.querySelector(".inner-wrapper-sticky");}if(this.options.containerSelector){var n=document.querySelectorAll(this.options.containerSelector);if((n=Array.prototype.slice.call(n)).forEach((function(e,n){e.contains(t.sidebar)&&(t.container=e);})),!n.length)throw new Error("The container does not contains on the sidebar.");}"function"!=typeof this.options.topSpacing&&(this.options.topSpacing=parseInt(this.options.topSpacing)||0),"function"!=typeof this.options.bottomSpacing&&(this.options.bottomSpacing=parseInt(this.options.bottomSpacing)||0),this._widthBreakpoint(),this.calcDimensions(),this.stickyPosition(),this.bindEvents(),this._initialized=!0;}},{key:"bindEvents",value:function(){window.addEventListener("resize",this,{passive:!0,capture:!1}),window.addEventListener("scroll",this,{passive:!0,capture:!1}),this.sidebar.addEventListener("update"+t,this),this.options.resizeSensor&&"undefined"!=typeof ResizeSensor&&(new ResizeSensor(this.sidebarInner,this.handleEvent),new ResizeSensor(this.container,this.handleEvent));}},{key:"handleEvent",value:function(t){this.updateSticky(t);}},{key:"calcDimensions",value:function(){if(!this._breakpoint){var t=this.dimensions;t.containerTop=o.offsetRelative(this.container).top,t.containerHeight=this.container.clientHeight,t.containerBottom=t.containerTop+t.containerHeight,t.sidebarHeight=this.sidebarInner.offsetHeight,t.sidebarWidth=this.sidebarInner.offsetWidth,t.viewportHeight=window.innerHeight,t.maxTranslateY=t.containerHeight-t.sidebarHeight,this._calcDimensionsWithScroll();}}},{key:"_calcDimensionsWithScroll",value:function(){var t=this.dimensions;t.sidebarLeft=o.offsetRelative(this.sidebar).left,t.viewportTop=document.documentElement.scrollTop||document.body.scrollTop,t.viewportBottom=t.viewportTop+t.viewportHeight,t.viewportLeft=document.documentElement.scrollLeft||document.body.scrollLeft,t.topSpacing=this.options.topSpacing,t.bottomSpacing=this.options.bottomSpacing,"function"==typeof t.topSpacing&&(t.topSpacing=parseInt(t.topSpacing(this.sidebar))||0),"function"==typeof t.bottomSpacing&&(t.bottomSpacing=parseInt(t.bottomSpacing(this.sidebar))||0),"VIEWPORT-TOP"===this.affixedType?t.topSpacing<t.lastTopSpacing&&(t.translateY+=t.lastTopSpacing-t.topSpacing,this._reStyle=!0):"VIEWPORT-BOTTOM"===this.affixedType&&t.bottomSpacing<t.lastBottomSpacing&&(t.translateY+=t.lastBottomSpacing-t.bottomSpacing,this._reStyle=!0),t.lastTopSpacing=t.topSpacing,t.lastBottomSpacing=t.bottomSpacing;}},{key:"isSidebarFitsViewport",value:function(){var t=this.dimensions,e="down"===this.scrollDirection?t.lastBottomSpacing:t.lastTopSpacing;return this.dimensions.sidebarHeight+e<this.dimensions.viewportHe
20ight;}},{key:"observeScrollDir",value:function(){var t=this.dimensions;if(t.lastViewportTop!==t.viewportTop){var e="down"===this.direction?Math.min:Math.max;t.viewportTop===e(t.viewportTop,t.lastViewportTop)&&(this.direction="down"===this.direction?"up":"down");}}},{key:"getAffixType",value:function(){this._calcDimensionsWithScroll();var t=this.dimensions,e=t.viewportTop+t.topSpacing,n=this.affixedType;return e<=t.containerTop||t.containerHeight<=t.sidebarHeight?(t.translateY=0,n="STATIC"):n="up"===this.direction?this._getAffixTypeScrollingUp():this._getAffixTypeScrollingDown(),t.translateY=Math.max(0,t.translateY),t.translateY=Math.min(t.containerHeight,t.translateY),t.translateY=Math.round(t.translateY),t.lastViewportTop=t.viewportTop,n;}},{key:"_getAffixTypeScrollingDown",value:function(){var t=this.dimensions,e=t.sidebarHeight+t.containerTop,n=t.viewportTop+t.topSpacing,i=t.viewportBottom-t.bottomSpacing,o=this.affixedType;return this.isSidebarFitsViewport()?t.sidebarHeight+n>=t.containerBottom?(t.translateY=t.containerBottom-e,o="CONTAINER-BOTTOM"):n>=t.containerTop&&(t.translateY=n-t.containerTop,o="VIEWPORT-TOP"):t.containerBottom<=i?(t.translateY=t.containerBottom-e,o="CONTAINER-BOTTOM"):e+t.translateY<=i?(t.translateY=i-e,o="VIEWPORT-BOTTOM"):t.containerTop+t.translateY<=n&&0!==t.translateY&&t.maxTranslateY!==t.translateY&&(o="VIEWPORT-UNBOTTOM"),o;}},{key:"_getAffixTypeScrollingUp",value:function(){var t=this.dimensions,e=t.sidebarHeight+t.containerTop,n=t.viewportTop+t.topSpacing,i=t.viewportBottom-t.bottomSpacing,o=this.affixedType;return n<=t.translateY+t.containerTop?(t.translateY=n-t.containerTop,o="VIEWPORT-TOP"):t.containerBottom<=i?(t.translateY=t.containerBottom-e,o="CONTAINER-BOTTOM"):this.isSidebarFitsViewport()||t.containerTop<=n&&0!==t.translateY&&t.maxTranslateY!==t.translateY&&(o="VIEWPORT-UNBOTTOM"),o;}},{key:"_getStyle",value:function(t){if(void 0!==t){var e={inner:{},outer:{}},n=this.dimensions;switch(t){case "VIEWPORT-TOP":e.inner={position:"fixed",top:n.topSpacing,left:n.sidebarLeft-n.viewportLeft,width:n.sidebarWidth};break;case "VIEWPORT-BOTTOM":e.inner={position:"fixed",top:"auto",left:n.sidebarLeft,bottom:n.bottomSpacing,width:n.sidebarWidth};break;case "CONTAINER-BOTTOM":case "VIEWPORT-UNBOTTOM":var i=this._getTranslate(0,n.translateY+"px");e.inner=i?{transform:i}:{position:"absolute",top:n.translateY,width:n.sidebarWidth};}switch(t){case "VIEWPORT-TOP":case "VIEWPORT-BOTTOM":case "VIEWPORT-UNBOTTOM":case "CONTAINER-BOTTOM":e.outer={height:n.sidebarHeight,position:"relative"};}return e.outer=o.extend({height:"",position:""},e.outer),e.inner=o.extend({position:"relative",top:"",left:"",bottom:"",width:"",transform:""},e.inner),e;}}},{key:"stickyPosition",value:function(e){if(!this._breakpoint){e=this._reStyle||e||!1,this.options.topSpacing,this.options.bottomSpacing;var n=this.getAffixType(),i=this._getStyle(n);if((this.affixedType!=n||e)&&n){var r="affix."+n.toLowerCase().replace("viewport-","")+t;for(var a in o.eventTrigger(this.sidebar,r),"STATIC"===n?o.removeClass(this.sidebar,this.options.stickyClass):o.addClass(this.sidebar,this.options.stickyClass),i.outer){var s="number"==typeof i.outer[a]?"px":"";this.sidebar.style[a]=i.outer[a]+s;}for(var l in i.inner){var u="number"==typeof i.inner[l]?"px":"";this.sidebarInner.style[l]=i.inner[l]+u;}var c="affixed."+n.toLowerCase().replace("viewport-","")+t;o.eventTrigger(this.sidebar,c);}else this._initialized&&(this.sidebarInner.style.left=i.inner.left);this.affixedType=n;}}},{key:"_widthBreakpoint",value:function(){window.innerWidth<=this.options.minWidth?(this._breakpoint=!0,this.affixedType="STATIC",this.sidebar.removeAttribute("style"),o.removeClass(this.sidebar,this.options.stickyClass),this.sidebarInner.removeAttribute("style")):this._breakpoint=!1;}},{key:"updateSticky",value:function(){var t,e=this,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this._running||(this._running=!0,t=n.type,requestAnimationFrame((function(){"scroll"===t?(e._calcDimensionsWithScroll(),e.observeScrollDir(),e.stickyPosition()):(e._widthBreakpoint(),e.calcDimensions(),e.stickyPosition(!0)),e._running=!1;})));}},{key:"_setSupportFeatures",value:function(){var t=this.support;t.transform=o.supportTransform(),t.transform3d=o.supportTransform(!0);}},{key:"_getTranslate",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;return this.support.transform3d?"translate3d("+t+", "+e+", "+n+")":!!this.support.translate&&"translate("+t+", "+e+")";}},{key:"destroy",value:function(){window.removeEventListener("resize",this,{capture:!1}),window.removeEventListener("scroll",this,{capture:!1}),this.sidebar.classList.remove(this.options.stickyClass),this.sidebar.style.minHeight="",this.sidebar.removeEventListener("update"+t,this);var e={inner:{position:"",top:"",left:"",bottom:"",width:"",transform:""},outer:{height:"",position:""}};for(var n in e.outer)this.sidebar.style[n]=e.outer[n];for(var i in e.inner)this.sidebarInner.style[i]=e.inner[i];this.options.resizeSensor&&"undefined"!=typeof ResizeSensor&&(ResizeSensor.detach(this.sidebarInner,this.handleEvent),ResizeSensor.detach(this.container,this.handleEvent));}}],[{key:"supportTransform",value:function(t){var e=!1,n=t?"perspective":"transform",i=n.charAt(0).toUpperCase()+n.slice(1),o=["Webkit","Moz","O","ms"],r=document.createElement("support").style;return (n+" "+o.join(i+" ")+i).split(" ").forEach((function(t,n){if(void 0!==r[t])return e=t,!1;})),e;}},{key:"eventTrigger",value:function(t,e,n){try{var i=new CustomEvent(e,{detail:n});}catch(t){(i=document.createEvent("CustomEvent")).initCustomEvent(e,!0,!0,n);}t.dispatchEvent(i);}},{key:"extend",value:function(t,e){var n={};for(var i in t)void 0!==e[i]?n[i]=e[i]:n[i]=t[i];return n;}},{key:"offsetRelative",value:function(t){var e={left:0,top:0};do{var n=t.offsetTop,i=t.offsetLeft;isNaN(n)||(e.top+=n),isNaN(i)||(e.left+=i),t="BODY"===t.tagName?t.parentElement:t.offsetParent;}while(t);return e;}},{key:"addClass",value:function(t,e){o.hasClass(t,e)||(t.classList?t.classList.add(e):t.className+=" "+e);}},{key:"removeClass",value:function(t,e){o.hasClass(t,e)&&(t.classList?t.classList.remove(e):t.className=t.className.replace(new RegExp("(^|\\b)"+e.split(" ").join("|")+"(\\b|$)","gi")," "));}},{key:"hasClass",value:function(t,e){return t.classList?t.classList.contains(e):new RegExp("(^| )"+e+"( |$)","gi").test(t.className);}},{key:"defaults",get:function(){return i;}}]),o;}();return o;}();t.default=i,window.StickySidebar=i;}(e);}));return t(i),t(e((function(t,e){!function(t){var e=n(t);function n(t){return t&&t.__esModule?t:{default:t};}!function(){if("undefined"!=typeof window){var t=window.$||window.jQuery||window.Zepto,n="stickySidebar";if(t){var i=function(i){return this.each((function(){var o=t(this),r=t(this).data(n);if(r||(r=new e.default(this,"object"==a(i)&&i),o.data(n,r)),"string"==typeof i){if(void 0===r[i]&&-1===["destroy","updateSticky"].indexOf(i))throw new Error('No method n
20amed "'+i+'"');r[i]();}}));};t.fn.stickySidebar=i,t.fn.stickySidebar.Constructor=e.default;var o=t.fn.stickySidebar;t.fn.stickySidebar.noConflict=function(){return t.fn.stickySidebar=o,this;};}}}();}(i);})));},"object"===a(e)?t.exports=r():void 0===(o="function"==typeof (i=r)?i.call(e,n,e,t):i)||(t.exports=o);},536:()=>{},669:(t)=>{"use strict";t.exports=jQuery;},754:function(t,e,n){!function(t,e,n){"use strict";function i(t){return t&&"object"==typeof t&&"default" in t?t:{default:t};}var o=i(e),r=i(n);function a(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value" in i&&(i.writable=!0),Object.defineProperty(t,i.key,i);}}function s(t,e,n){return e&&a(t.prototype,e),n&&a(t,n),Object.defineProperty(t,"prototype",{writable:!1}),t;}function l(){return l=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(t[i]=n[i]);}return t;},l.apply(this,arguments);}function u(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t,c(t,e);}function c(t,e){return c=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t;},c(t,e);}var f="transitionend",d=1e6,h=1e3;function p(t){return null==t?""+t:{}.toString.call(t).match(/\s([a-z]+)/i)[1].toLowerCase();}function m(){return {bindType:f,delegateType:f,handle:function(t){if(o.default(t.target).is(this))return t.handleObj.handler.apply(this,arguments);}};}function g(t){var e=this,n=!1;return o.default(this).one(_.TRANSITION_END,(function(){n=!0;})),setTimeout((function(){n||_.triggerTransitionEnd(e);}),t),this;}function v(){o.default.fn.emulateTransitionEnd=g,o.default.event.special[_.TRANSITION_END]=m();}var _={TRANSITION_END:"bsTransitionEnd",getUID:function(t){do t+=~~(Math.random()*d);while(document.getElementById(t));return t;},getSelectorFromElement:function(t){var e=t.getAttribute("data-target");if(!e||"#"===e){var n=t.getAttribute("href");e=n&&"#"!==n?n.trim():"";}try{return document.querySelector(e)?e:null;}catch(t){return null;}},getTransitionDurationFromElement:function(t){if(!t)return 0;var e=o.default(t).css("transition-duration"),n=o.default(t).css("transition-delay"),i=parseFloat(e),r=parseFloat(n);return i||r?(e=e.split(",")[0],n=n.split(",")[0],(parseFloat(e)+parseFloat(n))*h):0;},reflow:function(t){return t.offsetHeight;},triggerTransitionEnd:function(t){o.default(t).trigger(f);},supportsTransitionEnd:function(){return Boolean(f);},isElement:function(t){return (t[0]||t).nodeType;},typeCheckConfig:function(t,e,n){for(var i in n)if(Object.prototype.hasOwnProperty.call(n,i)){var o=n[i],r=e[i],a=r&&_.isElement(r)?"element":p(r);if(!new RegExp(o).test(a))throw new Error(t.toUpperCase()+': Option "'+i+'" provided type "'+a+'" but expected type "'+o+'".');}},findShadowRoot:function(t){if(!document.documentElement.attachShadow)return null;if("function"==typeof t.getRootNode){var e=t.getRootNode();return e instanceof ShadowRoot?e:null;}return t instanceof ShadowRoot?t:t.parentNode?_.findShadowRoot(t.parentNode):null;},jQueryDetection:function(){if(void 0===o.default)throw new TypeError("Bootstrap's JavaScript requires jQuery. jQuery must be included before Bootstrap's JavaScript.");var t=o.default.fn.jquery.split(" ")[0].split("."),e=1,n=2,i=9,r=1,a=4;if(t[0]<n&&t[1]<i||t[0]===e&&t[1]===i&&t[2]<r||t[0]>=a)throw new Error("Bootstrap's JavaScript requires at least jQuery v1.9.1 but less than v4.0.0");}};_.jQueryDetection(),v();var b="alert",y="4.6.2",w="bs.alert",E="."+w,T=".data-api",C=o.default.fn[b],S="alert",k="fade",x="show",O="close"+E,N="closed"+E,A="click"+E+T,I='[data-dismiss="alert"]',D=function(){function t(t){this._element=t;}var e=t.prototype;return e.close=function(t){var e=this._element;t&&(e=this._getRootElement(t)),this._triggerCloseEvent(e).isDefaultPrevented()||this._removeElement(e);},e.dispose=function(){o.default.removeData(this._element,w),this._element=null;},e._getRootElement=function(t){var e=_.getSelectorFromElement(t),n=!1;return e&&(n=document.querySelector(e)),n||(n=o.default(t).closest("."+S)[0]),n;},e._triggerCloseEvent=function(t){var e=o.default.Event(O);return o.default(t).trigger(e),e;},e._removeElement=function(t){var e=this;if(o.default(t).removeClass(x),o.default(t).hasClass(k)){var n=_.getTransitionDurationFromElement(t);o.default(t).one(_.TRANSITION_END,(function(n){return e._destroyElement(t,n);})).emulateTransitionEnd(n);}else this._destroyElement(t);},e._destroyElement=function(t){o.default(t).detach().trigger(N).remove();},t._jQueryInterface=function(e){return this.each((function(){var n=o.default(this),i=n.data(w);i||(i=new t(this),n.data(w,i)),"close"===e&&i[e](this);}));},t._handleDismiss=function(t){return function(e){e&&e.preventDefault(),t.close(this);};},s(t,null,[{key:"VERSION",get:function(){return y;}}]),t;}();o.default(document).on(A,I,D._handleDismiss(new D())),o.default.fn[b]=D._jQueryInterface,o.default.fn[b].Constructor=D,o.default.fn[b].noConflict=function(){return o.default.fn[b]=C,D._jQueryInterface;};var j="button",L="4.6.2",P="bs.button",R="."+P,B=".data-api",F=o.default.fn[j],M="active",H="btn",Q="focus",W="click"+R+B,q="focus"+R+B+" blur"+R+B,U="load"+R+B,Y='[data-toggle^="button"]',V='[data-toggle="buttons"]',z='[data-toggle="button"]',K='[data-toggle="buttons"] .btn',X='input:not([type="hidden"])',$=".active",G=".btn",J=function(){function t(t){this._element=t,this.shouldAvoidTriggerChange=!1;}var e=t.prototype;return e.toggle=function(){var t=!0,e=!0,n=o.default(this._element).closest(V)[0];if(n){var i=this._element.querySelector(X);if(i){if("radio"===i.type)if(i.checked&&this._element.classList.contains(M)
20)t=!1;else{var r=n.querySelector($);r&&o.default(r).removeClass(M);}t&&("checkbox"!==i.type&&"radio"!==i.type||(i.checked=!this._element.classList.contains(M)),this.shouldAvoidTriggerChange||o.default(i).trigger("change")),i.focus(),e=!1;}}this._element.hasAttribute("disabled")||this._element.classList.contains("disabled")||(e&&this._element.setAttribute("aria-pressed",!this._element.classList.contains(M)),t&&o.default(this._element).toggleClass(M));},e.dispose=function(){o.default.removeData(this._element,P),this._element=null;},t._jQueryInterface=function(e,n){return this.each((function(){var i=o.default(this),r=i.data(P);r||(r=new t(this),i.data(P,r)),r.shouldAvoidTriggerChange=n,"toggle"===e&&r[e]();}));},s(t,null,[{key:"VERSION",get:function(){return L;}}]),t;}();o.default(document).on(W,Y,(function(t){var e=t.target,n=e;if(o.default(e).hasClass(H)||(e=o.default(e).closest(G)[0]),!e||e.hasAttribute("disabled")||e.classList.contains("disabled"))t.preventDefault();else{var i=e.querySelector(X);if(i&&(i.hasAttribute("disabled")||i.classList.contains("disabled")))return void t.preventDefault();"INPUT"!==n.tagName&&"LABEL"===e.tagName||J._jQueryInterface.call(o.default(e),"toggle","INPUT"===n.tagName);}})).on(q,Y,(function(t){var e=o.default(t.target).closest(G)[0];o.default(e).toggleClass(Q,/^focus(in)?$/.test(t.type));})),o.default(window).on(U,(function(){for(var t=[].slice.call(document.querySelectorAll(K)),e=0,n=t.length;e<n;e++){var i=t[e],o=i.querySelector(X);o.checked||o.hasAttribute("checked")?i.classList.add(M):i.classList.remove(M);}for(var r=0,a=(t=[].slice.call(document.querySelectorAll(z))).length;r<a;r++){var s=t[r];"true"===s.getAttribute("aria-pressed")?s.classList.add(M):s.classList.remove(M);}})),o.default.fn[j]=J._jQueryInterface,o.default.fn[j].Constructor=J,o.default.fn[j].noConflict=function(){return o.default.fn[j]=F,J._jQueryInterface;};var Z="carousel",tt="4.6.2",et="bs.carousel",nt="."+et,it=".data-api",ot=o.default.fn[Z],rt=37,at=39,st=500,lt=40,ut="carousel",ct="active",ft="slide",dt="carousel-item-right",ht="carousel-item-left",pt="carousel-item-next",mt="carousel-item-prev",gt="pointer-event",vt="next",_t="prev",bt="left",yt="right",wt="slide"+nt,Et="slid"+nt,Tt="keydown"+nt,Ct="mouseenter"+nt,St="mouseleave"+nt,kt="touchstart"+nt,xt="touchmove"+nt,Ot="touchend"+nt,Nt="pointerdown"+nt,At="pointerup"+nt,It="dragstart"+nt,Dt="load"+nt+it,jt="click"+nt+it,Lt=".active",Pt=".active.carousel-item",Rt=".carousel-item",Bt=".carousel-item img",Ft=".carousel-item-next, .carousel-item-prev",Mt=".carousel-indicators",Ht="[data-slide], [data-slide-to]",Qt='[data-ride="carousel"]',Wt={interval:5e3,keyboard:!0,slide:!1,pause:"hover",wrap:!0,touch:!0},qt={interval:"(number|boolean)",keyboard:"boolean",slide:"(boolean|string)",pause:"(string|boolean)",wrap:"boolean",touch:"boolean"},Ut={TOUCH:"touch",PEN:"pen"},Yt=function(){function t(t,e){this._items=null,this._interval=null,this._activeElement=null,this._isPaused=!1,this._isSliding=!1,this.touchTimeout=null,this.touchStartX=0,this.touchDeltaX=0,this._config=this._getConfig(e),this._element=t,this._indicatorsElement=this._element.querySelector(Mt),this._touchSupported="ontouchstart" in document.documentElement||navigator.maxTouchPoints>0,this._pointerEvent=Boolean(window.PointerEvent||window.MSPointerEvent),this._addEventListeners();}var e=t.prototype;return e.next=function(){this._isSliding||this._slide(vt);},e.nextWhenVisible=function(){var t=o.default(this._element);!document.hidden&&t.is(":visible")&&"hidden"!==t.css("visibility")&&this.next();},e.prev=function(){this._isSliding||this._slide(_t);},e.pause=function(t){t||(this._isPaused=!0),this._element.querySelector(Ft)&&(_.triggerTransitionEnd(this._element),this.cycle(!0)),clearInterval(this._interval),this._interval=null;},e.cycle=function(t){t||(this._isPaused=!1),this._interval&&(clearInterval(this._interval),this._interval=null),this._config.interval&&!this._isPaused&&(this._updateInterval(),this._interval=setInterval((document.visibilityState?this.nextWhenVisible:this.next).bind(this),this._config.interval));},e.to=function(t){var e=this;this._activeElement=this._element.querySelector(Pt);var n=this._getItemIndex(this._activeElement);if(!(t>this._items.length-1||t<0))if(this._isSliding)o.default(this._element).one(Et,(function(){return e.to(t);}));else{if(n===t)return this.pause(),void this.cycle();var i=t>n?vt:_t;this._slide(i,this._items[t]);}},e.dispose=function(){o.default(this._element).off(nt),o.default.removeData(this._element,et),this._items=null,this._config=null,this._element=null,this._interval=null,this._isPaused=null,this._isSliding=null,this._activeElement=null,this._indicatorsElement=null;},e._getConfig=function(t){return t=l({},Wt,t),_.typeCheckConfig(Z,t,qt),t;},e._handleSwipe=function(){var t=Math.abs(this.touchDeltaX);if(!(t<=lt)){var e=t/this.touchDeltaX;this.touchDeltaX=0,e>0&&this.prev(),e<0&&this.next();}},e._addEventListeners=function(){var t=this;this._config.keyboard&&o.default(this._element).on(Tt,(function(e){return t._keydown(e);})),"hover"===this._config.pause&&o.default(this._element).on(Ct,(function(e){return t.pause(e);})).on(St,(function(e){return t.cycle(e);})),this._config.touch&&this._addTouchEventListeners();},e._addTouchEventListeners=function(){var t=this;if(this._touchSupported){var e=function(e){t._pointerEvent&&Ut[e.originalEvent.pointerType.toUpperCase()]?t.touchStartX=e.originalEvent.clientX:t._pointerEvent||(t.touchStartX=e.originalEvent.touches[0].clientX);},n=function(e){t.touchDeltaX=e.originalEvent.touches&&e.originalEvent.touches.length>1?0:e.originalEvent.touches[0].clientX-t.touchStartX;},i=function(e){t._pointerEvent&&Ut[e.originalEvent.pointerType.toUpperCase()]&&(t.touchDeltaX=e.originalEvent.clientX-t.touchStartX),t._handleSwipe(),"hover"===t._config.pause&&(t.pause(),t.touchTimeout&&clearTimeout(t.touchTimeout),t.touchTimeout=setTimeout((function(e){return t.cycle(e);}),st+t._config.interval));};o.default(this._element.querySelectorAll(Bt)).on(It,(function(t){return t.preventDefault();})),this._pointerEvent?(o.default(this._element).on(Nt,(function(t){return e(t);})),o.default(this._element).on(At,(function(t){return i(t);})),this._element.classList.add(gt)):(o.default(this._element).on(kt,(function(t){return e(t);})),o.default(this._element).on(xt,(function(t){return n(t);})),o.default(this._element).on(Ot,(function(t){return i(t);})));}},e._keydown=function(t){if(!/input|textarea/i.test(t.target.tagName))switch(t.which){case rt:t.preventDefault(),this.prev();break;case at:t.preventDefault(),this.next();}},e._getItemIndex=function(t){return this._items=t&&t.parentNode?[].slice.call(t.parentNode.querySelectorAll(Rt)):[],this._items.indexOf(t);},e._getItemByDirection=function(t,e){var n=t===vt,i=t===_t,o=this._getItemIndex(e),r=this._items.length-1;if((i&&0===o||n&&o===r)&&!this._config.wrap)return e;var a=(o+(t===_t?-1:1))%this._items.length;return -1===a?this._items[this._items.length-1]:this._items[a];},e._triggerSlideEvent=function(t,e){var n=this._getItemIndex(t),i=this._getItemIndex(this._element.querySelector(Pt)),r=o.default.Event(wt,{relatedTarget:t,direction:e,from:i,to:n});return o.default(this._element).trigger(r),r;},e._setActiveIndicatorElement=function(t){if(this._indicatorsElement){var e=[].slice.call(this._indicatorsElement.querySelectorAll(Lt));o.default(e).removeClass(ct);var n=this._indicatorsElement.children[this._getItemIndex(t)];n&&o.default(n).addClass(ct);}},e._updateInterval=function(){var t=this._activeElement||this._element.querySelector(Pt);if(t){var e=parseInt(t.getAttribute("data-interval"),10);e?(this._config.defaultInterval=this._config.defaultInterval||this._config.interval,this._config.interval=e):this._config.interval=this._config.defaultInterval||this._config.interval;}},e._slide=function(t,e){var n,i,r,a=this,s=this._element.querySelector(Pt),l=this._getItemIndex(s),u=e||s&&this._getItemByDirection(t,s),c=this._getItemIndex(u),f=B
20oolean(this._interval);if(t===vt?(n=ht,i=pt,r=bt):(n=dt,i=mt,r=yt),u&&o.default(u).hasClass(ct))this._isSliding=!1;else{if(!this._triggerSlideEvent(u,r).isDefaultPrevented()&&s&&u){this._isSliding=!0,f&&this.pause(),this._setActiveIndicatorElement(u),this._activeElement=u;var d=o.default.Event(Et,{relatedTarget:u,direction:r,from:l,to:c});if(o.default(this._element).hasClass(ft)){o.default(u).addClass(i),_.reflow(u),o.default(s).addClass(n),o.default(u).addClass(n);var h=_.getTransitionDurationFromElement(s);o.default(s).one(_.TRANSITION_END,(function(){o.default(u).removeClass(n+" "+i).addClass(ct),o.default(s).removeClass(ct+" "+i+" "+n),a._isSliding=!1,setTimeout((function(){return o.default(a._element).trigger(d);}),0);})).emulateTransitionEnd(h);}else o.default(s).removeClass(ct),o.default(u).addClass(ct),this._isSliding=!1,o.default(this._element).trigger(d);f&&this.cycle();}}},t._jQueryInterface=function(e){return this.each((function(){var n=o.default(this).data(et),i=l({},Wt,o.default(this).data());"object"==typeof e&&(i=l({},i,e));var r="string"==typeof e?e:i.slide;if(n||(n=new t(this,i),o.default(this).data(et,n)),"number"==typeof e)n.to(e);else if("string"==typeof r){if(void 0===n[r])throw new TypeError('No method named "'+r+'"');n[r]();}else i.interval&&i.ride&&(n.pause(),n.cycle());}));},t._dataApiClickHandler=function(e){var n=_.getSelectorFromElement(this);if(n){var i=o.default(n)[0];if(i&&o.default(i).hasClass(ut)){var r=l({},o.default(i).data(),o.default(this).data()),a=this.getAttribute("data-slide-to");a&&(r.interval=!1),t._jQueryInterface.call(o.default(i),r),a&&o.default(i).data(et).to(a),e.preventDefault();}}},s(t,null,[{key:"VERSION",get:function(){return tt;}},{key:"Default",get:function(){return Wt;}}]),t;}();o.default(document).on(jt,Ht,Yt._dataApiClickHandler),o.default(window).on(Dt,(function(){for(var t=[].slice.call(document.querySelectorAll(Qt)),e=0,n=t.length;e<n;e++){var i=o.default(t[e]);Yt._jQueryInterface.call(i,i.data());}})),o.default.fn[Z]=Yt._jQueryInterface,o.default.fn[Z].Constructor=Yt,o.default.fn[Z].noConflict=function(){return o.default.fn[Z]=ot,Yt._jQueryInterface;};var Vt="collapse",zt="4.6.2",Kt="bs.collapse",Xt="."+Kt,$t=".data-api",Gt=o.default.fn[Vt],Jt="show",Zt="collapse",te="collapsing",ee="collapsed",ne="width",ie="height",oe="show"+Xt,re="shown"+Xt,ae="hide"+Xt,se="hidden"+Xt,le="click"+Xt+$t,ue=".show, .collapsing",ce='[data-toggle="collapse"]',fe={toggle:!0,parent:""},de={toggle:"boolean",parent:"(string|element)"},he=function(){function t(t,e){this._isTransitioning=!1,this._element=t,this._config=this._getConfig(e),this._triggerArray=[].slice.call(document.querySelectorAll('[data-toggle="collapse"][href="#'+t.id+'"],[data-toggle="collapse"][data-target="#'+t.id+'"]'));for(var n=[].slice.call(document.querySelectorAll(ce)),i=0,o=n.length;i<o;i++){var r=n[i],a=_.getSelectorFromElement(r),s=[].slice.call(document.querySelectorAll(a)).filter((function(e){return e===t;}));null!==a&&s.length>0&&(this._selector=a,this._triggerArray.push(r));}this._parent=this._config.parent?this._getParent():null,this._config.parent||this._addAriaAndCollapsedClass(this._element,this._triggerArray),this._config.toggle&&this.toggle();}var e=t.prototype;return e.toggle=function(){o.default(this._element).hasClass(Jt)?this.hide():this.show();},e.show=function(){var e,n,i=this;if(!(this._isTransitioning||o.default(this._element).hasClass(Jt)||(this._parent&&0===(e=[].slice.call(this._parent.querySelectorAll(ue)).filter((function(t){return "string"==typeof i._config.parent?t.getAttribute("data-parent")===i._config.parent:t.classList.contains(Zt);}))).length&&(e=null),e&&(n=o.default(e).not(this._selector).data(Kt))&&n._isTransitioning))){var r=o.default.Event(oe);if(o.default(this._element).trigger(r),!r.isDefaultPrevented()){e&&(t._jQueryInterface.call(o.default(e).not(this._selector),"hide"),n||o.default(e).data(Kt,null));var a=this._getDimension();o.default(this._element).removeClass(Zt).addClass(te),this._element.style[a]=0,this._triggerArray.length&&o.default(this._triggerArray).removeClass(ee).attr("aria-expanded",!0),this.setTransitioning(!0);var s=function(){o.default(i._element).removeClass(te).addClass(Zt+" "+Jt),i._element.style[a]="",i.setTransitioning(!1),o.default(i._element).trigger(re);},l="scroll"+(a[0].toUpperCase()+a.slice(1)),u=_.getTransitionDurationFromElement(this._element);o.default(this._element).one(_.TRANSITION_END,s).emulateTransitionEnd(u),this._element.style[a]=this._element[l]+"px";}}},e.hide=function(){var t=this;if(!this._isTransitioning&&o.default(this._element).hasClass(Jt)){var e=o.default.Event(ae);
20if(o.default(this._element).trigger(e),!e.isDefaultPrevented()){var n=this._getDimension();this._element.style[n]=this._element.getBoundingClientRect()[n]+"px",_.reflow(this._element),o.default(this._element).addClass(te).removeClass(Zt+" "+Jt);var i=this._triggerArray.length;if(i>0)for(var r=0;r<i;r++){var a=this._triggerArray[r],s=_.getSelectorFromElement(a);null!==s&&(o.default([].slice.call(document.querySelectorAll(s))).hasClass(Jt)||o.default(a).addClass(ee).attr("aria-expanded",!1));}this.setTransitioning(!0);var l=function(){t.setTransitioning(!1),o.default(t._element).removeClass(te).addClass(Zt).trigger(se);};this._element.style[n]="";var u=_.getTransitionDurationFromElement(this._element);o.default(this._element).one(_.TRANSITION_END,l).emulateTransitionEnd(u);}}},e.setTransitioning=function(t){this._isTransitioning=t;},e.dispose=function(){o.default.removeData(this._element,Kt),this._config=null,this._parent=null,this._element=null,this._triggerArray=null,this._isTransitioning=null;},e._getConfig=function(t){return (t=l({},fe,t)).toggle=Boolean(t.toggle),_.typeCheckConfig(Vt,t,de),t;},e._getDimension=function(){return o.default(this._element).hasClass(ne)?ne:ie;},e._getParent=function(){var e,n=this;_.isElement(this._config.parent)?(e=this._config.parent,void 0!==this._config.parent.jquery&&(e=this._config.parent[0])):e=document.querySelector(this._config.parent);var i='[data-toggle="collapse"][data-parent="'+this._config.parent+'"]',r=[].slice.call(e.querySelectorAll(i));return o.default(r).each((function(e,i){n._addAriaAndCollapsedClass(t._getTargetFromElement(i),[i]);})),e;},e._addAriaAndCollapsedClass=function(t,e){var n=o.default(t).hasClass(Jt);e.length&&o.default(e).toggleClass(ee,!n).attr("aria-expanded",n);},t._getTargetFromElement=function(t){var e=_.getSelectorFromElement(t);return e?document.querySelector(e):null;},t._jQueryInterface=function(e){return this.each((function(){var n=o.default(this),i=n.data(Kt),r=l({},fe,n.data(),"object"==typeof e&&e?e:{});if(!i&&r.toggle&&"string"==typeof e&&/show|hide/.test(e)&&(r.toggle=!1),i||(i=new t(this,r),n.data(Kt,i)),"string"==typeof e){if(void 0===i[e])throw new TypeError('No method named "'+e+'"');i[e]();}}));},s(t,null,[{key:"VERSION",get:function(){return zt;}},{key:"Default",get:function(){return fe;}}]),t;}();o.default(document).on(le,ce,(function(t){"A"===t.currentTarget.tagName&&t.preventDefault();var e=o.default(this),n=_.getSelectorFromElement(this),i=[].slice.call(document.querySelectorAll(n));o.default(i).each((function(){var t=o.default(this),n=t.data(Kt)?"toggle":e.data();he._jQueryInterface.call(t,n);}));})),o.default.fn[Vt]=he._jQueryInterface,o.default.fn[Vt].Constructor=he,o.default.fn[Vt].noConflict=function(){return o.default.fn[Vt]=Gt,he._jQueryInterface;};var pe="dropdown",me="4.6.2",ge="bs.dropdown",ve="."+ge,_e=".data-api",be=o.default.fn[pe],ye=27,we=32,Ee=9,Te=38,Ce=40,Se=3,ke=new RegExp(Te+"|"+Ce+"|"+ye),xe="disabled",Oe="show",Ne="dropup",Ae="dropright",Ie="dropleft",De="dropdown-menu-right",je="position-static",Le="hide"+ve,Pe="hidden"+ve,Re="show"+ve,Be="shown"+ve,Fe="click"+ve,Me="click"+ve+_e,He="keydown"+ve+_e,Qe="keyup"+ve+_e,We='[data-toggle="dropdown"]',qe=".dropdown form",Ue=".dropdown-menu",Ye=".navbar-nav",Ve=".dropdown-menu .dropdown-item:not(.disabled):not(:disabled)",ze="top-start",Ke="top-end",Xe="bottom-start",$e="bottom-end",Ge="right-start",Je="left-start",Ze={offset:0,flip:!0,boundary:"scrollParent",reference:"toggle",display:"dynamic",popperConfig:null},tn={offset:"(number|string|function)",flip:"boolean",boundary:"(string|element)",reference:"(string|element)",display:"string",popperConfig:"(null|object)"},en=function(){function t(t,e){this._element=t,this._popper=null,this._config=this._getConfig(e),this._menu=this._getMenuElement(),this._inNavbar=this._detectNavbar(),this._addEventListeners();}var e=t.prototype;return e.toggle=function(){if(!this._element.disabled&&!o.default(this._element).hasClass(xe)){var e=o.default(this._menu).hasClass(Oe);t._clearMenus(),e||this.show(!0);}},e.show=function(e){if(void 0===e&&(e=!1),!(this._element.disabled||o.default(this._element).hasClass(xe)||o.default(this._menu).hasClass(Oe))){var n={relatedTarget:this._element},i=o.default.Event(Re,n),a=t._getParentFromElement(this._element);
20if(o.default(a).trigger(i),!i.isDefaultPrevented()){if(!this._inNavbar&&e){if(void 0===r.default)throw new TypeError("Bootstrap's dropdowns require Popper (https://popper.js.org)");var s=this._element;"parent"===this._config.reference?s=a:_.isElement(this._config.reference)&&(s=this._config.reference,void 0!==this._config.reference.jquery&&(s=this._config.reference[0])),"scrollParent"!==this._config.boundary&&o.default(a).addClass(je),this._popper=new r.default(s,this._menu,this._getPopperConfig());}"ontouchstart" in document.documentElement&&0===o.default(a).closest(Ye).length&&o.default(document.body).children().on("mouseover",null,o.default.noop),this._element.focus(),this._element.setAttribute("aria-expanded",!0),o.default(this._menu).toggleClass(Oe),o.default(a).toggleClass(Oe).trigger(o.default.Event(Be,n));}}},e.hide=function(){if(!this._element.disabled&&!o.default(this._element).hasClass(xe)&&o.default(this._menu).hasClass(Oe)){var e={relatedTarget:this._element},n=o.default.Event(Le,e),i=t._getParentFromElement(this._element);o.default(i).trigger(n),n.isDefaultPrevented()||(this._popper&&this._popper.destroy(),o.default(this._menu).toggleClass(Oe),o.default(i).toggleClass(Oe).trigger(o.default.Event(Pe,e)));}},e.dispose=function(){o.default.removeData(this._element,ge),o.default(this._element).off(ve),this._element=null,this._menu=null,null!==this._popper&&(this._popper.destroy(),this._popper=null);},e.update=function(){this._inNavbar=this._detectNavbar(),null!==this._popper&&this._popper.scheduleUpdate();},e._addEventListeners=function(){var t=this;o.default(this._element).on(Fe,(function(e){e.preventDefault(),e.stopPropagation(),t.toggle();}));},e._getConfig=function(t){return t=l({},this.constructor.Default,o.default(this._element).data(),t),_.typeCheckConfig(pe,t,this.constructor.DefaultType),t;},e._getMenuElement=function(){if(!this._menu){var e=t._getParentFromElement(this._element);e&&(this._menu=e.querySelector(Ue));}return this._menu;},e._getPlacement=function(){var t=o.default(this._element.parentNode),e=Xe;return t.hasClass(Ne)?e=o.default(this._menu).hasClass(De)?Ke:ze:t.hasClass(Ae)?e=Ge:t.hasClass(Ie)?e=Je:o.default(this._menu).hasClass(De)&&(e=$e),e;},e._detectNavbar=function(){return o.default(this._element).closest(".navbar").length>0;},e._getOffset=function(){var t=this,e={};return "function"==typeof this._config.offset?e.fn=function(e){return e.offsets=l({},e.offsets,t._config.offset(e.offsets,t._element)),e;}:e.offset=this._config.offset,e;},e._getPopperConfig=function(){var t={placement:this._getPlacement(),modifiers:{offset:this._getOffset(),flip:{enabled:this._config.flip},preventOverflow:{boundariesElement:this._config.boundary}}};return "static"===this._config.display&&(t.modifiers.applyStyle={enabled:!1}),l({},t,this._config.popperConfig);},t._jQueryInterface=function(e){return this.each((function(){var n=o.default(this).data(ge);if(n||(n=new t(this,"object"==typeof e?e:null),o.default(this).data(ge,n)),"string"==typeof e){if(void 0===n[e])throw new TypeError('No method named "'+e+'"');n[e]();}}));},t._clearMenus=function(e){if(!e||e.which!==Se&&("keyup"!==e.type||e.which===Ee))for(var n=[].slice.call(document.querySelectorAll(We)),i=0,r=n.length;i<r;i++){var a=t._getParentFromElement(n[i]),s=o.default(n[i]).data(ge),l={relatedTarget:n[i]};if(e&&"click"===e.type&&(l.clickEvent=e),s){var u=s._menu;if(o.default(a).hasClass(Oe)&&!(e&&("click"===e.type&&/input|textarea/i.test(e.target.tagName)||"keyup"===e.type&&e.which===Ee)&&o.default.contains(a,e.target))){var c=o.default.Event(Le,l);o.default(a).trigger(c),c.isDefaultPrevented()||("ontouchstart" in document.documentElement&&o.default(document.body).children().off("mouseover",null,o.default.noop),n[i].setAttribute("aria-expanded","false"),s._popper&&s._popper.destroy(),o.default(u).removeClass(Oe),o.default(a).removeClass(Oe).trigger(o.default.Event(Pe,l)));}}}},t._getParentFromElement=function(t){var e,n=_.getSelectorFromElement(t);return n&&(e=document.querySelector(n)),e||t.parentNode;},t._dataApiKeydownHandler=function(e){if(!(/input|textarea/i.test(e.target.tagName)?e.which===we||e.
20which!==ye&&(e.which!==Ce&&e.which!==Te||o.default(e.target).closest(Ue).length):!ke.test(e.which))&&!this.disabled&&!o.default(this).hasClass(xe)){var n=t._getParentFromElement(this),i=o.default(n).hasClass(Oe);if(i||e.which!==ye){if(e.preventDefault(),e.stopPropagation(),!i||e.which===ye||e.which===we)return e.which===ye&&o.default(n.querySelector(We)).trigger("focus"),void o.default(this).trigger("click");var r=[].slice.call(n.querySelectorAll(Ve)).filter((function(t){return o.default(t).is(":visible");}));if(0!==r.length){var a=r.indexOf(e.target);e.which===Te&&a>0&&a--,e.which===Ce&&a<r.length-1&&a++,a<0&&(a=0),r[a].focus();}}}},s(t,null,[{key:"VERSION",get:function(){return me;}},{key:"Default",get:function(){return Ze;}},{key:"DefaultType",get:function(){return tn;}}]),t;}();o.default(document).on(He,We,en._dataApiKeydownHandler).on(He,Ue,en._dataApiKeydownHandler).on(Me+" "+Qe,en._clearMenus).on(Me,We,(function(t){t.preventDefault(),t.stopPropagation(),en._jQueryInterface.call(o.default(this),"toggle");})).on(Me,qe,(function(t){t.stopPropagation();})),o.default.fn[pe]=en._jQueryInterface,o.default.fn[pe].Constructor=en,o.default.fn[pe].noConflict=function(){return o.default.fn[pe]=be,en._jQueryInterface;};var nn="modal",on="4.6.2",rn="bs.modal",an="."+rn,sn=".data-api",ln=o.default.fn[nn],un=27,cn="modal-dialog-scrollable",fn="modal-scrollbar-measure",dn="modal-backdrop",hn="modal-open",pn="fade",mn="show",gn="modal-static",vn="hide"+an,_n="hidePrevented"+an,bn="hidden"+an,yn="show"+an,wn="shown"+an,En="focusin"+an,Tn="resize"+an,Cn="click.dismiss"+an,Sn="keydown.dismiss"+an,kn="mouseup.dismiss"+an,xn="mousedown.dismiss"+an,On="click"+an+sn,Nn=".modal-dialog",An=".modal-body",In='[data-toggle="modal"]',Dn='[data-dismiss="modal"]',jn=".fixed-top, .fixed-bottom, .is-fixed, .sticky-top",Ln=".sticky-top",Pn={backdrop:!0,keyboard:!0,focus:!0,show:!0},Rn={backdrop:"(boolean|string)",keyboard:"boolean",focus:"boolean",show:"boolean"},Bn=function(){function t(t,e){this._config=this._getConfig(e),this._element=t,this._dialog=t.querySelector(Nn),this._backdrop=null,this._isShown=!1,this._isBodyOverflowing=!1,this._ignoreBackdropClick=!1,this._isTransitioning=!1,this._scrollbarWidth=0;}var e=t.prototype;return e.toggle=function(t){return this._isShown?this.hide():this.show(t);},e.show=function(t){var e=this;if(!this._isShown&&!this._isTransitioning){var n=o.default.Event(yn,{relatedTarget:t});o.default(this._element).trigger(n),n.isDefaultPrevented()||(this._isShown=!0,o.default(this._element).hasClass(pn)&&(this._isTransitioning=!0),this._checkScrollbar(),this._setScrollbar(),this._adjustDialog(),this._setEscapeEvent(),this._setResizeEvent(),o.default(this._element).on(Cn,Dn,(function(t){return e.hide(t);})),o.default(this._dialog).on(xn,(function(){o.default(e._element).one(kn,(function(t){o.default(t.target).is(e._element)&&(e._ignoreBackdropClick=!0);}));})),this._showBackdrop((function(){return e._showElement(t);})));}},e.hide=function(t){var e=this;if(t&&t.preventDefault(),this._isShown&&!this._isTransitioning){var n=o.default.Event(vn);if(o.default(this._element).trigger(n),this._isShown&&!n.isDefaultPrevented()){this._isShown=!1;var i=o.default(this._element).hasClass(pn);if(i&&(this._isTransitioning=!0),this._setEscapeEvent(),this._setResizeEvent(),o.default(document).off(En),o.default(this._element).removeClass(mn),o.default(this._element).off(Cn),o.default(this._dialog).off(xn),i){var r=_.getTransitionDurationFromElement(this._element);o.default(this._element).one(_.TRANSITION_END,(function(t){return e._hideModal(t);})).emulateTransitionEnd(r);}else this._hideModal();}}},e.dispose=function(){[window,this._element,this._dialog].forEach((function(t){return o.default(t).off(an);})),o.default(document).off(En),o.default.removeData(this._element,rn),this._config=null,this._element=null,this._dialog=null,this._backdrop=null,this._isShown=null,this._isBodyOverflowing=null,this._ignoreBackdropClick=null,this._isTransitioning=null,this._scrollbarWidth=null;},e.handleUpdate=function(){this._adjustDialog();},e._getConfig=function(t){return t=l({},Pn,t),_.typeCheckConfig(nn,t,Rn),t;},e._triggerBackdropTransition=function(){var t=this,e=o.default.Event(_n);if(o.default(this._element).trigger(e),!e.isDefaultPrevented()){var n=this._element.scrollHeight>document.documentElement.clientHeight;n||(this._element.style.overflowY="hidden"),this._element.classList.add(gn);var i=_.getTransitionDurationFromElement(this._dialog);o.default(this._element).off(_.TRANSITION_END),o.default(this._element).one(_.TRANSITION_END,(function(){t._element.classList.remove(gn),n||o.default(t._element).one(_.TRANSITION_END,(function(){t._element.style.overflowY="";})).emulateTransitionEnd(t._element,i);})).emulateTransitionEnd(i),this._element.focus();}},e._showElement=function(t){var e=this,n=o.default(this._element).hasClass(pn),i=this._dialog?this._dialog.querySelector(An):null;this._element.parentNode&&this._element.parentNode.nodeType===Node.ELEMENT_NODE||document.body.appendChild(this._element),this._element.style.display="block",this._element.removeAttribute("aria-hidden"),this._element.setAttribute("aria-modal",!0),this._element.setAttribute("role","dialog"),o.default(this._dialog).hasClass(cn)&&i?i.scrollTop=0:this._element.scrollTop=0,n&&_.reflow(this._element),o.default(this._element).addClass(mn),this._config.focus&&this._enforceFocus();var r=o.default.Event(wn,{relatedTarget:t}),a=function(){e._config.focus&&e._element.focus(),e._isTransitioning=!1,o.default(e._element).trigger(r);};if(n){var s=_.getTransitionDurationFromElement(this._dialog);o.default(this._dialog).one(_.TRANSITION_END,a).emulateTransitionEnd(s);}else a();},e._enforceFocus=function(){var t=this;o.default(document).off(En).on(En,(function(e){document!==e.target&&t._element!==e.target&&0===o.default(t._element).has(e.target).length&&t._element.focus();}));},e._setEscapeEvent=function(){var t=this;this._isShown?o.default(this._element).on(Sn,(function(e){t._config.keyboard&&e.which===un?(e.preventDefault(),t.hide()):t._config.keyboard||e.which!==un||t._triggerBackdropTransition();})):this._isShown||o.default(this._element).off(Sn);},e._setResizeEvent=function(){var t=this;this._isShown?o.default(window).on(Tn,(function(e){return t.handleUpdate(e);}
20)):o.default(window).off(Tn);},e._hideModal=function(){var t=this;this._element.style.display="none",this._element.setAttribute("aria-hidden",!0),this._element.removeAttribute("aria-modal"),this._element.removeAttribute("role"),this._isTransitioning=!1,this._showBackdrop((function(){o.default(document.body).removeClass(hn),t._resetAdjustments(),t._resetScrollbar(),o.default(t._element).trigger(bn);}));},e._removeBackdrop=function(){this._backdrop&&(o.default(this._backdrop).remove(),this._backdrop=null);},e._showBackdrop=function(t){var e=this,n=o.default(this._element).hasClass(pn)?pn:"";if(this._isShown&&this._config.backdrop){if(this._backdrop=document.createElement("div"),this._backdrop.className=dn,n&&this._backdrop.classList.add(n),o.default(this._backdrop).appendTo(document.body),o.default(this._element).on(Cn,(function(t){e._ignoreBackdropClick?e._ignoreBackdropClick=!1:t.target===t.currentTarget&&("static"===e._config.backdrop?e._triggerBackdropTransition():e.hide());})),n&&_.reflow(this._backdrop),o.default(this._backdrop).addClass(mn),!t)return;if(!n)return void t();var i=_.getTransitionDurationFromElement(this._backdrop);o.default(this._backdrop).one(_.TRANSITION_END,t).emulateTransitionEnd(i);}else if(!this._isShown&&this._backdrop){o.default(this._backdrop).removeClass(mn);var r=function(){e._removeBackdrop(),t&&t();};if(o.default(this._element).hasClass(pn)){var a=_.getTransitionDurationFromElement(this._backdrop);o.default(this._backdrop).one(_.TRANSITION_END,r).emulateTransitionEnd(a);}else r();}else t&&t();},e._adjustDialog=function(){var t=this._element.scrollHeight>document.documentElement.clientHeight;!this._isBodyOverflowing&&t&&(this._element.style.paddingLeft=this._scrollbarWidth+"px"),this._isBodyOverflowing&&!t&&(this._element.style.paddingRight=this._scrollbarWidth+"px");},e._resetAdjustments=function(){this._element.style.paddingLeft="",this._element.style.paddingRight="";},e._checkScrollbar=function(){var t=document.body.getBoundingClientRect();this._isBodyOverflowing=Math.round(t.left+t.right)<window.innerWidth,this._scrollbarWidth=this._getScrollbarWidth();},e._setScrollbar=function(){var t=this;if(this._isBodyOverflowing){var e=[].slice.call(document.querySelectorAll(jn)),n=[].slice.call(document.querySelectorAll(Ln));o.default(e).each((function(e,n){var i=n.style.paddingRight,r=o.default(n).css("padding-right");o.default(n).data("padding-right",i).css("padding-right",parseFloat(r)+t._scrollbarWidth+"px");})),o.default(n).each((function(e,n){var i=n.style.marginRight,r=o.default(n).css("margin-right");o.default(n).data("margin-right",i).css("margin-right",parseFloat(r)-t._scrollbarWidth+"px");}));var i=document.body.style.paddingRight,r=o.default(document.body).css("padding-right");o.default(document.body).data("padding-right",i).css("padding-right",parseFloat(r)+this._scrollbarWidth+"px");}o.default(document.body).addClass(hn);},e._resetScrollbar=function(){var t=[].slice.call(document.querySelectorAll(jn));o.default(t).each((function(t,e){var n=o.default(e).data("padding-right");o.default(e).removeData("padding-right"),e.style.paddingRight=n||"";}));var e=[].slice.call(document.querySelectorAll(""+Ln));o.default(e).each((function(t,e){var n=o.default(e).data("margin-right");void 0!==n&&o.default(e).css("margin-right",n).removeData("margin-right");}));var n=o.default(document.body).data("padding-right");o.default(document.body).removeData("padding-right"),document.body.style.paddingRight=n||"";},e._getScrollbarWidth=function(){var t=document.createElement("div");t.className=fn,document.body.appendChild(t);var e=t.getBoundingClientRect().width-t.clientWidth;return document.body.removeChild(t),e;},t._jQueryInterface=function(e,n){return this.each((function(){var i=o.default(this).data(rn),r=l({},Pn,o.default(this).data(),"object"==typeof e&&e?e:{});if(i||(i=new t(this,r),o.default(this).data(rn,i)),"string"==typeof e){if(void 0===i[e])throw new TypeError('No method named "'+e+'"');i[e](n);}else r.show&&i.show(n);}));},s(t,null,[{key:"VERSION",get:function(){return on;}},{key:"Default",get:function(){return Pn;}}]),t;}();o.default(document).on(On,In,(function(t){var e,n=this,i=_.getSelectorFromElement(this);i&&(e=document.querySelector(i));var r=o.default(e).data(rn)?"toggle":l({},o.default(e).data(),o.default(this).data());"A"!==this.tagName&&"AREA"!==this.tagName||t.preventDefault();var a=o.default(e).one(yn,(function(t){t.isDefaultPrevented()||a.one(bn,(function(){o.default(n).is(":visible")&&n.focus();}));}));Bn._jQueryInterface.call(o.default(e),r,this);})),o.default.fn[nn]=Bn._jQueryInterface,o.default.fn[nn].Constructor=Bn,o.default.fn[nn].noConflict=function(){return o.default.fn[nn]=ln,Bn._jQueryInterface;};var Fn=["background","cite","href","itemtype","longdesc","poster","src","xlink:href"],Mn={"*":["class","dir","id","lang","role",/^aria-[\w-]*$/i],a:["target","href","title","rel"],area:[],b:[],br:[],col:[],code:[],div:[],em:[],hr:[],h1:[],h2:[],h3:[],h4:[],h5:[],h6:[],i:[],img:["src","srcset","alt","title","width","height"],li:[],ol:[],p:[],pre:[],s:[],small:[],span:[],sub:[],sup:[],strong:[],u:[],ul:[]},Hn=/^(?:(?:https?|mailto|ftp|tel|file|sms):|[^#&/:?]*(?:[#/?]|$))/i,Qn=/^data:(?:image\/(?:bmp|gif|jpeg|jpg|png|tiff|webp)|video\/(?:mpeg|mp4|ogg|webm)|audio\/(?:mp3|oga|ogg|opus));base64,[\d+/a-z]+=*$/i;function Wn(t,e){var n=t.nodeName.toLowerCase();if(-1!==e.indexOf(n))return -1===Fn.indexOf(n)||Boolean(Hn.test(t.no
20deValue)||Qn.test(t.nodeValue));for(var i=e.filter((function(t){return t instanceof RegExp;})),o=0,r=i.length;o<r;o++)if(i[o].test(n))return !0;return !1;}function qn(t,e,n){if(0===t.length)return t;if(n&&"function"==typeof n)return n(t);for(var i=(new window.DOMParser()).parseFromString(t,"text/html"),o=Object.keys(e),r=[].slice.call(i.body.querySelectorAll("*")),a=function(t,n){var i=r[t],a=i.nodeName.toLowerCase();if(-1===o.indexOf(i.nodeName.toLowerCase()))return i.parentNode.removeChild(i),"continue";var s=[].slice.call(i.attributes),l=[].concat(e["*"]||[],e[a]||[]);s.forEach((function(t){Wn(t,l)||i.removeAttribute(t.nodeName);}));},s=0,l=r.length;s<l;s++)a(s);return i.body.innerHTML;}var Un="tooltip",Yn="4.6.2",Vn="bs.tooltip",zn="."+Vn,Kn=o.default.fn[Un],Xn="bs-tooltip",$n=new RegExp("(^|\\s)"+Xn+"\\S+","g"),Gn=["sanitize","whiteList","sanitizeFn"],Jn="fade",Zn="show",ti="show",ei="out",ni=".tooltip-inner",ii=".arrow",oi="hover",ri="focus",ai="click",si="manual",li={AUTO:"auto",TOP:"top",RIGHT:"right",BOTTOM:"bottom",LEFT:"left"},ui={animation:!0,template:'<div class="tooltip" role="tooltip"><div class="arrow"></div><div class="tooltip-inner"></div></div>',trigger:"hover focus",title:"",delay:0,html:!1,selector:!1,placement:"top",offset:0,container:!1,fallbackPlacement:"flip",boundary:"scrollParent",customClass:"",sanitize:!0,sanitizeFn:null,whiteList:Mn,popperConfig:null},ci={animation:"boolean",template:"string",title:"(string|element|function)",trigger:"string",delay:"(number|object)",html:"boolean",selector:"(string|boolean)",placement:"(string|function)",offset:"(number|string|function)",container:"(string|element|boolean)",fallbackPlacement:"(string|array)",boundary:"(string|element)",customClass:"(string|function)",sanitize:"boolean",sanitizeFn:"(null|function)",whiteList:"object",popperConfig:"(null|object)"},fi={HIDE:"hide"+zn,HIDDEN:"hidden"+zn,SHOW:"show"+zn,SHOWN:"shown"+zn,INSERTED:"inserted"+zn,CLICK:"click"+zn,FOCUSIN:"focusin"+zn,FOCUSOUT:"focusout"+zn,MOUSEENTER:"mouseenter"+zn,MOUSELEAVE:"mouseleave"+zn},di=function(){function t(t,e){if(void 0===r.default)throw new TypeError("Bootstrap's tooltips require Popper (https://popper.js.org)");this._isEnabled=!0,this._timeout=0,this._hoverState="",this._activeTrigger={},this._popper=null,this.element=t,this.config=this._getConfig(e),this.tip=null,this._setListeners();}var e=t.prototype;return e.enable=function(){this._isEnabled=!0;},e.disable=function(){this._isEnabled=!1;},e.toggleEnabled=function(){this._isEnabled=!this._isEnabled;},e.toggle=function(t){if(this._isEnabled)if(t){var e=this.constructor.DATA_KEY,n=o.default(t.currentTarget).data(e);n||(n=new this.constructor(t.currentTarget,this._getDelegateConfig()),o.default(t.currentTarget).data(e,n)),n._activeTrigger.click=!n._activeTrigger.click,n._isWithActiveTrigger()?n._enter(null,n):n._leave(null,n);}else{if(o.default(this.getTipElement()).hasClass(Zn))return void this._leave(null,this);this._enter(null,this);}},e.dispose=function(){clearTimeout(this._timeout),o.default.removeData(this.element,this.constructor.DATA_KEY),o.default(this.element).off(this.constructor.EVENT_KEY),o.default(this.element).closest(".modal").off("hide.bs.modal",this._hideModalHandler),this.tip&&o.default(this.tip).remove(),this._isEnabled=null,this._timeout=null,this._hoverState=null,this._activeTrigger=null,this._popper&&this._popper.destroy(),this._popper=null,this.element=null,this.config=null,this.tip=null;},e.show=function(){var t=this;if("none"===o.default(this.element).css("display"))throw new Error("Please use show on visible elements");var e=o.default.Event(this.constructor.Event.SHOW);if(this.isWithContent()&&this._isEnabled){o.default(this.element).trigger(e);var n=_.findShadowRoot(this.element),i=o.default.contains(null!==n?n:this.element.ownerDocument.documentElement,this.element);if(e.isDefaultPrevented()||!i)return;var a=this.getTipElement(),s=_.getUID(this.constructor.NAME);a.setAttribute("id",s),this.element.setAttribute("aria-describedby",s),this.setContent(),this.config.animation&&o.default(a).addClass(Jn);var l="function"==typeof this.config.placement?this.config.placement.call(this,a,this.element):this.config.placement,u=this._getAttachment(l);this.addAttachmentClass(u);var c=this._getContainer();o.default(a).data(this.constructor.DATA_KEY,this),o.default.contains(this.element.ownerDocument.documentElement,this.tip)||o.default(a).appendTo(c),o.default(this.element).trigger(this.constructor.Event.INSERTED),this._popper=new r.default(this.element,a,this._getPopperConfig(u)),o.default(a).addClass(Zn),o.default(a).addClass(this.config.customClass),"ontouchstart" in document.documentElement&&o.default(document.body).children().on("mouseover",null,o.default.noop);var f=function(){t.config.animation&&t._fixTransition();var e=t._hoverState;t._hoverState=null,o.default(t.element).trigger(t.constructor.Event.SHOWN),e===ei&&t._leave(null,t);};if(o.default(this.tip).hasClass(Jn)){var d=_.getTransitionDurationFromElement(this.tip);o.default(this.tip).one(_.TRANSITION_END,f).emulateTransitionEnd(d);}else f();}},e.hide=function(t){var e=this,n=this.getTipElement(),i=o.default.Event(this.constructor.Event.HIDE),r=function(){e._hoverState!==ti&&n.parentNode&&n.parentNode.removeChild(n),e._cleanTipClass(),e.element.removeAttribute("aria-describedby"),o.default(e.element).trigger(e.constructor.Event.HIDDEN),null!==e._popper&&e._popper.destroy(),t&&t();};if(o.default(this.element).trigger(i),!i.isDefaultPrevented()){if
20(o.default(n).removeClass(Zn),"ontouchstart" in document.documentElement&&o.default(document.body).children().off("mouseover",null,o.default.noop),this._activeTrigger[ai]=!1,this._activeTrigger[ri]=!1,this._activeTrigger[oi]=!1,o.default(this.tip).hasClass(Jn)){var a=_.getTransitionDurationFromElement(n);o.default(n).one(_.TRANSITION_END,r).emulateTransitionEnd(a);}else r();this._hoverState="";}},e.update=function(){null!==this._popper&&this._popper.scheduleUpdate();},e.isWithContent=function(){return Boolean(this.getTitle());},e.addAttachmentClass=function(t){o.default(this.getTipElement()).addClass(Xn+"-"+t);},e.getTipElement=function(){return this.tip=this.tip||o.default(this.config.template)[0],this.tip;},e.setContent=function(){var t=this.getTipElement();this.setElementContent(o.default(t.querySelectorAll(ni)),this.getTitle()),o.default(t).removeClass(Jn+" "+Zn);},e.setElementContent=function(t,e){"object"!=typeof e||!e.nodeType&&!e.jquery?this.config.html?(this.config.sanitize&&(e=qn(e,this.config.whiteList,this.config.sanitizeFn)),t.html(e)):t.text(e):this.config.html?o.default(e).parent().is(t)||t.empty().append(e):t.text(o.default(e).text());},e.getTitle=function(){var t=this.element.getAttribute("data-original-title");return t||(t="function"==typeof this.config.title?this.config.title.call(this.element):this.config.title),t;},e._getPopperConfig=function(t){var e=this;return l({},{placement:t,modifiers:{offset:this._getOffset(),flip:{behavior:this.config.fallbackPlacement},arrow:{element:ii},preventOverflow:{boundariesElement:this.config.boundary}},onCreate:function(t){t.originalPlacement!==t.placement&&e._handlePopperPlacementChange(t);},onUpdate:function(t){return e._handlePopperPlacementChange(t);}},this.config.popperConfig);},e._getOffset=function(){var t=this,e={};return "function"==typeof this.config.offset?e.fn=function(e){return e.offsets=l({},e.offsets,t.config.offset(e.offsets,t.element)),e;}:e.offset=this.config.offset,e;},e._getContainer=function(){return !1===this.config.container?document.body:_.isElement(this.config.container)?o.default(this.config.container):o.default(document).find(this.config.container);},e._getAttachment=function(t){return li[t.toUpperCase()];},e._setListeners=function(){var t=this;this.config.trigger.split(" ").forEach((function(e){if("click"===e)o.default(t.element).on(t.constructor.Event.CLICK,t.config.selector,(function(e){return t.toggle(e);}));else{if(e!==si){var n=e===oi?t.constructor.Event.MOUSEENTER:t.constructor.Event.FOCUSIN,i=e===oi?t.constructor.Event.MOUSELEAVE:t.constructor.Event.FOCUSOUT;o.default(t.element).on(n,t.config.selector,(function(e){return t._enter(e);})).on(i,t.config.selector,(function(e){return t._leave(e);}));}}})),this._hideModalHandler=function(){t.element&&t.hide();},o.default(this.element).closest(".modal").on("hide.bs.modal",this._hideModalHandler),this.config.selector?this.config=l({},this.config,{trigger:"manual",selector:""}):this._fixTitle();},e._fixTitle=function(){var t=typeof this.element.getAttribute("data-original-title");(this.element.getAttribute("title")||"string"!==t)&&(this.element.setAttribute("data-original-title",this.element.getAttribute("title")||""),this.element.setAttribute("title",""));},e._enter=function(t,e){var n=this.constructor.DATA_KEY;(e=e||o.default(t.currentTarget).data(n))||(e=new this.constructor(t.currentTarget,this._getDelegateConfig()),o.default(t.currentTarget).data(n,e)),t&&(e._activeTrigger["focusin"===t.type?ri:oi]=!0),o.default(e.getTipElement()).hasClass(Zn)||e._hoverState===ti?e._hoverState=ti:(clearTimeout(e._timeout),e._hoverState=ti,e.config.delay&&e.config.delay.show?e._timeout=setTimeout((function(){e._hoverState===ti&&e.show();}),e.config.delay.show):e.show());},e._leave=function(t,e){var n=this.constructor.DATA_KEY;(e=e||o.default(t.currentTarget).data(n))||(e=new this.constructor(t.currentTarget,this._getDelegateConfig()),o.default(t.currentTarget).data(n,e)),t&&(e._activeTrigger["focusout"===t.type?ri:oi]=!1),e._isWithActiveTrigger()||(clearTimeout(e._timeout),e._hoverState=ei,e.config.delay&&e.config.delay.hide?e._timeout=setTimeout((function(){e._hoverState===ei&&e.hide();}),e.config.delay.hide):e.hide());},e._isWithActiveTrigger=function(){for(var t in this._activeTrigger)if(this._activeTrigger[t])return !0;return !1;},e._getConfig=function(t){var e=o.default(this.element).data();return Object.keys(e).forEach((function(t){-1!==Gn.indexOf(t)&&delete e[t];})),"number"==typeof (t=l({},this.constructor.Default,e,"object"==typeof t&&t?t:{})).delay&&(t.delay={show:t.delay,hide:t.delay}),"number"==typeof t.title&&(t.title=t.title.toString()),"number"==typeof t.content&&(t.content=t.content.toString()),_.typeCheckConfig(Un,t,this.constructor.DefaultType),t.sanitize&&(t.template=qn(t.template,t.whiteList,t.sanitizeFn)),t;},e._getDelegateConfig=function(){var t={};if(this.config)for(var e in this.config)this.constructor.Default[e]!==this.config[e]&&(t[e]=this.config[e]);return t;},e._cleanTipClass=function(){var t=o.default(this.getTipElement()),e=t.attr("class").match($n);null!==e&&e.length&&t.removeClass(e.join(""));},e._handlePopperPlacementChange=function(t){this.tip=t.instance.popper,this._cleanTipClass(),this.addAttachmentClass(this._getAttachment(t.placement));},e._fixTransition=function(){var t=this.getTipElement(),e=this.config.animation;null===t.getAttribute("x-placement")&&(o.default(t).removeClass(Jn),this.config.animation=!1,this.hide(),this.show(),this.config.animation=e);},t._jQueryInterface=function(e){return this.each((function(){var n=o.default(this),i=n.data(Vn),r="object"==typeof e&&e;if((i||!/dispose|hide/.test(e))&&(i||(i=new t(this,r),n.data(Vn,i)),"string"==typeof e)){if(void 0===i[e])throw new TypeError('No method n
20amed "'+e+'"');i[e]();}}));},s(t,null,[{key:"VERSION",get:function(){return Yn;}},{key:"Default",get:function(){return ui;}},{key:"NAME",get:function(){return Un;}},{key:"DATA_KEY",get:function(){return Vn;}},{key:"Event",get:function(){return fi;}},{key:"EVENT_KEY",get:function(){return zn;}},{key:"DefaultType",get:function(){return ci;}}]),t;}();o.default.fn[Un]=di._jQueryInterface,o.default.fn[Un].Constructor=di,o.default.fn[Un].noConflict=function(){return o.default.fn[Un]=Kn,di._jQueryInterface;};var hi="popover",pi="4.6.2",mi="bs.popover",gi="."+mi,vi=o.default.fn[hi],_i="bs-popover",bi=new RegExp("(^|\\s)"+_i+"\\S+","g"),yi="fade",wi="show",Ei=".popover-header",Ti=".popover-body",Ci=l({},di.Default,{placement:"right",trigger:"click",content:"",template:'<div class="popover" role="tooltip"><div class="arrow"></div><h3 class="popover-header"></h3><div class="popover-body"></div></div>'}),Si=l({},di.DefaultType,{content:"(string|element|function)"}),ki={HIDE:"hide"+gi,HIDDEN:"hidden"+gi,SHOW:"show"+gi,SHOWN:"shown"+gi,INSERTED:"inserted"+gi,CLICK:"click"+gi,FOCUSIN:"focusin"+gi,FOCUSOUT:"focusout"+gi,MOUSEENTER:"mouseenter"+gi,MOUSELEAVE:"mouseleave"+gi},xi=function(t){function e(){return t.apply(this,arguments)||this;}u(e,t);var n=e.prototype;return n.isWithContent=function(){return this.getTitle()||this._getContent();},n.addAttachmentClass=function(t){o.default(this.getTipElement()).addClass(_i+"-"+t);},n.getTipElement=function(){return this.tip=this.tip||o.default(this.config.template)[0],this.tip;},n.setContent=function(){var t=o.default(this.getTipElement());this.setElementContent(t.find(Ei),this.getTitle());var e=this._getContent();"function"==typeof e&&(e=e.call(this.element)),this.setElementContent(t.find(Ti),e),t.removeClass(yi+" "+wi);},n._getContent=function(){return this.element.getAttribute("data-content")||this.config.content;},n._cleanTipClass=function(){var t=o.default(this.getTipElement()),e=t.attr("class").match(bi);null!==e&&e.length>0&&t.removeClass(e.join(""));},e._jQueryInterface=function(t){return this.each((function(){var n=o.default(this).data(mi),i="object"==typeof t?t:null;if((n||!/dispose|hide/.test(t))&&(n||(n=new e(this,i),o.default(this).data(mi,n)),"string"==typeof t)){if(void 0===n[t])throw new TypeError('No method named "'+t+'"');n[t]();}}));},s(e,null,[{key:"VERSION",get:function(){return pi;}},{key:"Default",get:function(){return Ci;}},{key:"NAME",get:function(){return hi;}},{key:"DATA_KEY",get:function(){return mi;}},{key:"Event",get:function(){return ki;}},{key:"EVENT_KEY",get:function(){return gi;}},{key:"DefaultType",get:function(){return Si;}}]),e;}(di);o.default.fn[hi]=xi._jQueryInterface,o.default.fn[hi].Constructor=xi,o.default.fn[hi].noConflict=function(){return o.default.fn[hi]=vi,xi._jQueryInterface;};var Oi="scrollspy",Ni="4.6.2",Ai="bs.scrollspy",Ii="."+Ai,Di=".data-api",ji=o.default.fn[Oi],Li="dropdown-item",Pi="active",Ri="activate"+Ii,Bi="scroll"+Ii,Fi="load"+Ii+Di,Mi="offset",Hi="position",Qi='[data-spy="scroll"]',Wi=".nav, .list-group",qi=".nav-link",Ui=".nav-item",Yi=".list-group-item",Vi=".dropdown",zi=".dropdown-item",Ki=".dropdown-toggle",Xi={offset:10,method:"auto",target:""},$i={offset:"number",method:"string",target:"(string|element)"},Gi=function(){function t(t,e){var n=this;this._element=t,this._scrollElement="BODY"===t.tagName?window:t,this._config=this._getConfig(e),this._selector=this._config.target+" "+qi+","+this._config.target+" "+Yi+","+this._config.target+" "+zi,this._offsets=[],this._targets=[],this._activeTarget=null,this._scrollHeight=0,o.default(this._scrollElement).on(Bi,(function(t){return n._process(t);})),this.refresh(),this._process();}var e=t.prototype;return e.refresh=function(){var t=this,e=this._scrollElement===this._scrollElement.window?Mi:Hi,n="auto"===this._config.method?e:this._config.method,i=n===Hi?this._getScrollTop():0;this._offsets=[],this._targets=[],this._scrollHeight=this._getScrollHeight(),[].slice.call(document.querySelectorAll(this._selector)).map((function(t){var e,r=_.getSelectorFromElement(t);if(r&&(e=document.querySelector(r)),e){var a=e.getBoundingClientRect();if(a.width||a.height)return [o.default(e)[n]().top+i,r];}return null;}
20)).filter(Boolean).sort((function(t,e){return t[0]-e[0];})).forEach((function(e){t._offsets.push(e[0]),t._targets.push(e[1]);}));},e.dispose=function(){o.default.removeData(this._element,Ai),o.default(this._scrollElement).off(Ii),this._element=null,this._scrollElement=null,this._config=null,this._selector=null,this._offsets=null,this._targets=null,this._activeTarget=null,this._scrollHeight=null;},e._getConfig=function(t){if("string"!=typeof (t=l({},Xi,"object"==typeof t&&t?t:{})).target&&_.isElement(t.target)){var e=o.default(t.target).attr("id");e||(e=_.getUID(Oi),o.default(t.target).attr("id",e)),t.target="#"+e;}return _.typeCheckConfig(Oi,t,$i),t;},e._getScrollTop=function(){return this._scrollElement===window?this._scrollElement.pageYOffset:this._scrollElement.scrollTop;},e._getScrollHeight=function(){return this._scrollElement.scrollHeight||Math.max(document.body.scrollHeight,document.documentElement.scrollHeight);},e._getOffsetHeight=function(){return this._scrollElement===window?window.innerHeight:this._scrollElement.getBoundingClientRect().height;},e._process=function(){var t=this._getScrollTop()+this._config.offset,e=this._getScrollHeight(),n=this._config.offset+e-this._getOffsetHeight();if(this._scrollHeight!==e&&this.refresh(),t>=n){var i=this._targets[this._targets.length-1];this._activeTarget!==i&&this._activate(i);}else{if(this._activeTarget&&t<this._offsets[0]&&this._offsets[0]>0)return this._activeTarget=null,void this._clear();for(var o=this._offsets.length;o--;)this._activeTarget!==this._targets[o]&&t>=this._offsets[o]&&(void 0===this._offsets[o+1]||t<this._offsets[o+1])&&this._activate(this._targets[o]);}},e._activate=function(t){this._activeTarget=t,this._clear();var e=this._selector.split(",").map((function(e){return e+'[data-target="'+t+'"],'+e+'[href="'+t+'"]';})),n=o.default([].slice.call(document.querySelectorAll(e.join(","))));n.hasClass(Li)?(n.closest(Vi).find(Ki).addClass(Pi),n.addClass(Pi)):(n.addClass(Pi),n.parents(Wi).prev(qi+", "+Yi).addClass(Pi),n.parents(Wi).prev(Ui).children(qi).addClass(Pi)),o.default(this._scrollElement).trigger(Ri,{relatedTarget:t});},e._clear=function(){[].slice.call(document.querySelectorAll(this._selector)).filter((function(t){return t.classList.contains(Pi);})).forEach((function(t){return t.classList.remove(Pi);}));},t._jQueryInterface=function(e){return this.each((function(){var n=o.default(this).data(Ai);if(n||(n=new t(this,"object"==typeof e&&e),o.default(this).data(Ai,n)),"string"==typeof e){if(void 0===n[e])throw new TypeError('No method named "'+e+'"');n[e]();}}));},s(t,null,[{key:"VERSION",get:function(){return Ni;}},{key:"Default",get:function(){return Xi;}}]),t;}();o.default(window).on(Fi,(function(){for(var t=[].slice.call(document.querySelectorAll(Qi)),e=t.length;e--;){var n=o.default(t[e]);Gi._jQueryInterface.call(n,n.data());}})),o.default.fn[Oi]=Gi._jQueryInterface,o.default.fn[Oi].Constructor=Gi,o.default.fn[Oi].noConflict=function(){return o.default.fn[Oi]=ji,Gi._jQueryInterface;};var Ji="tab",Zi="4.6.2",to="bs.tab",eo="."+to,no=".data-api",io=o.default.fn[Ji],oo="dropdown-menu",ro="active",ao="disabled",so="fade",lo="show",uo="hide"+eo,co="hidden"+eo,fo="show"+eo,ho="shown"+eo,po="click"+eo+no,mo=".dropdown",go=".nav, .list-group",vo=".active",_o="> li > .active",bo='[data-toggle="tab"], [data-toggle="pill"], [data-toggle="list"]',yo=".dropdown-toggle",wo="> .dropdown-menu .active",Eo=function(){function t(t){this._element=t;}var e=t.prototype;return e.show=function(){var t=this;if(!(this._element.parentNode&&this._element.parentNode.nodeType===Node.ELEMENT_NODE&&o.default(this._element).hasClass(ro)||o.default(this._element).hasClass(ao)||this._element.hasAttribute("disabled"))){var e,n,i=o.default(this._element).closest(go)[0],r=_.getSelectorFromElement(this._element);if(i){var a="UL"===i.nodeName||"OL"===i.nodeName?_o:vo;n=(n=o.default.makeArray(o.default(i).find(a)))[n.length-1];}var s=o.default.Event(uo,{relatedTarget:this._element}),l=o.default.Event(fo,{relatedTarget:n});if(n&&o.default(n).trigger(s),o.default(this._element).trigger(l),!l.isDefaultPrevented()&&!s.isDefaultPrevented()){r&&(e=document.querySelector(r)),this._activate(this._element,i);var u=function(){var e=o.default.Event(co,{relatedTarget:t._element}),i=o.default.Event(ho,{relatedTarget:n});o.default(n).trigger(e),o.default(t._element).trigger(i);};e?this._activate(e,e.parentNode,u):u();}}},e.dispose=function(){o.default.removeData(this._element,to),this._element=null;},e._activate=function(t,e,n){var i=this,r=(!e||"UL"!==e.nodeName&&"OL"!==e.nodeName?o.default(e).children(vo):o.default(e).find(_o))[0],a=n&&r&&o.default(r).hasClass(so),s=function(){return i._transitionComplete(t,r,n);};if(r&&a){var l=_.getTransitionDurationFromElement(r);o.default(r).removeClass(lo).one(_.TRANSITION_END,s).emulateTransitionEnd(l);}else s();},e._transitionComplete=function(t,e,n){if(e){o.default(e).removeClass(ro);var i=o.default(e.parentNode).find(wo)[0];i&&o.default(i).removeClass(ro),"tab"===e.getAttribute("role")&&e.setAttribute("aria-selected",!1);}o.default(t).addClass(ro),"tab"===t.getAttribute("role")&&t.setAttribute("aria-selected",!0),_.reflow(t),t.classList.contains(so)&&t.classList.add(lo);var r=t.parentNode;if(r&&"LI"===r.nodeName&&(r=r.parentNode),r&&o.default(r).hasClass(oo)){var a=o.default(t).closest(mo)[0];if(a){var s=[].slice.call(a.querySelectorAll(yo));o.default(s).addClass(ro);}t.setAttribute("aria-expanded",!0);}n&&n();},t._jQueryInterface=function(e){return this.each((function(){var n=o.default(this),i=n.data(to);if(i||(i=new t(this),n.data(to,i)),"string"==typeof e){if(void 0===i[e])throw new TypeError('No method n
20amed "'+e+'"');i[e]();}}));},s(t,null,[{key:"VERSION",get:function(){return Zi;}}]),t;}();o.default(document).on(po,bo,(function(t){t.preventDefault(),Eo._jQueryInterface.call(o.default(this),"show");})),o.default.fn[Ji]=Eo._jQueryInterface,o.default.fn[Ji].Constructor=Eo,o.default.fn[Ji].noConflict=function(){return o.default.fn[Ji]=io,Eo._jQueryInterface;};var To="toast",Co="4.6.2",So="bs.toast",ko="."+So,xo=o.default.fn[To],Oo="fade",No="hide",Ao="show",Io="showing",Do="click.dismiss"+ko,jo="hide"+ko,Lo="hidden"+ko,Po="show"+ko,Ro="shown"+ko,Bo='[data-dismiss="toast"]',Fo={animation:!0,autohide:!0,delay:500},Mo={animation:"boolean",autohide:"boolean",delay:"number"},Ho=function(){function t(t,e){this._element=t,this._config=this._getConfig(e),this._timeout=null,this._setListeners();}var e=t.prototype;return e.show=function(){var t=this,e=o.default.Event(Po);if(o.default(this._element).trigger(e),!e.isDefaultPrevented()){this._clearTimeout(),this._config.animation&&this._element.classList.add(Oo);var n=function(){t._element.classList.remove(Io),t._element.classList.add(Ao),o.default(t._element).trigger(Ro),t._config.autohide&&(t._timeout=setTimeout((function(){t.hide();}),t._config.delay));};if(this._element.classList.remove(No),_.reflow(this._element),this._element.classList.add(Io),this._config.animation){var i=_.getTransitionDurationFromElement(this._element);o.default(this._element).one(_.TRANSITION_END,n).emulateTransitionEnd(i);}else n();}},e.hide=function(){if(this._element.classList.contains(Ao)){var t=o.default.Event(jo);o.default(this._element).trigger(t),t.isDefaultPrevented()||this._close();}},e.dispose=function(){this._clearTimeout(),this._element.classList.contains(Ao)&&this._element.classList.remove(Ao),o.default(this._element).off(Do),o.default.removeData(this._element,So),this._element=null,this._config=null;},e._getConfig=function(t){return t=l({},Fo,o.default(this._element).data(),"object"==typeof t&&t?t:{}),_.typeCheckConfig(To,t,this.constructor.DefaultType),t;},e._setListeners=function(){var t=this;o.default(this._element).on(Do,Bo,(function(){return t.hide();}));},e._close=function(){var t=this,e=function(){t._element.classList.add(No),o.default(t._element).trigger(Lo);};if(this._element.classList.remove(Ao),this._config.animation){var n=_.getTransitionDurationFromElement(this._element);o.default(this._element).one(_.TRANSITION_END,e).emulateTransitionEnd(n);}else e();},e._clearTimeout=function(){clearTimeout(this._timeout),this._timeout=null;},t._jQueryInterface=function(e){return this.each((function(){var n=o.default(this),i=n.data(So);if(i||(i=new t(this,"object"==typeof e&&e),n.data(So,i)),"string"==typeof e){if(void 0===i[e])throw new TypeError('No method named "'+e+'"');i[e](this);}}));},s(t,null,[{key:"VERSION",get:function(){return Co;}},{key:"DefaultType",get:function(){return Mo;}},{key:"Default",get:function(){return Fo;}}]),t;}();o.default.fn[To]=Ho._jQueryInterface,o.default.fn[To].Constructor=Ho,o.default.fn[To].noConflict=function(){return o.default.fn[To]=xo,Ho._jQueryInterface;},t.Alert=D,t.Button=J,t.Carousel=Yt,t.Collapse=he,t.Dropdown=en,t.Modal=Bn,t.Popover=xi,t.Scrollspy=Gi,t.Tab=Eo,t.Toast=Ho,t.Tooltip=di,t.Util=_,Object.defineProperty(t,"__esModule",{value:!0});}(e,n(669),n(851));},847:()=>{},851:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>at});var i="undefined"!=typeof window&&"undefined"!=typeof document&&"undefined"!=typeof navigator,o=function(){for(var t=["Edge","Trident","Firefox"],e=0;e<t.length;e+=1)if(i&&navigator.userAgent.indexOf(t[e])>=0)return 1;return 0;}();var r=i&&window.Promise?function(t){var e=!1;return function(){e||(e=!0,window.Promise.resolve().then((function(){e=!1,t();})));};}:function(t){var e=!1;return function(){e||(e=!0,setTimeout((function(){e=!1,t();}),o));};};function a(t){return t&&"[object Function]"==={}.toString.call(t);}function s(t,e){if(1!==t.nodeType)return [];var n=t.ownerDocument.defaultView.getComputedStyle(t,null);return e?n[e]:n;}function l(t){return "HTML"===t.nodeName?t:t.parentNode||t.host;}function u(t){if(!t)return document.body;switch(t.nodeName){case "HTML":case "BODY":return t.ownerDocument.body;case "#document":return t.body;}var e=s(t),n=e.overflow,i=e.overflowX,o=e.overflowY;return /(auto|scroll|overlay)/.test(n+o+i)?t:u(l(t));}function c(t){return t&&t.referenceNode?t.referenceNode:t;}var f=i&&!(!window.MSInputMethodContext||!document.documentMode),d=i&&/MSIE 10/.test(navigator.userAgent);function h(t){return 11===t?f:10===t?d:f||d;}function p(t){if(!t)return document.documentElement;for(var e=h(10)?document.body:null,n=t.offsetParent||null;n===e&&t.nextElementSibling;)n=(t=t.nextElementSibling).offsetParent;var i=n&&n.nodeName;return i&&"BODY"!==i&&"HTML"!==i?-1!==["TH","TD","TABLE"].indexOf(n.nodeName)&&"static"===s(n,"position")?p(n):n:t?t.ownerDocument.documentElement:document.documentElement;}function m(t){return null!==t.parentNode?m(t.parentNode):t;}function g(t,e){if(!(t&&t.nodeType&&e&&e.nodeType))return document.documentElement;var n=t.compareDocumentPosition(e)&Node.DOCUMENT_POSITION_FOLLOWING,i=n?t:e,o=n?e:t,r=document.createRange();r.setStart(i,0),r.setEnd(o,0);var a,s,l=r.commonAncestorContainer;if(t!==l&&e!==l||i.contains(o))return "BODY"===(s=(a=l).nodeName)||"HTML"!==s&&p(a.firstElementChild)!==a?p(l):l;var u=m(t);return u.host?g(u.host,e):g(t,m(e).host);}function v(t){var e="top"===(arguments.length>1&&void 0!==arguments[1]?arguments[1]:"top")?"scrollTop":"scrollLeft",n=t.nodeName;if("BODY"===n||"HTML"===n){var i=t.ownerDocument.documentElement;return (t.ownerDocument.scrollingElement||i)[e];}return t[e];}function _(t,e){var n="x"===e?"Left":"Top",i="Left"===n?"Right":"Bottom";return parseFloat(t["border"+n+"Width"])+parseFloat(t["border"+i+"Width"]);}function b(t,e,n,i){return Math.max(e["offset"+t],e["scroll"+t],n["client"+t],n["offset"+t],n["scroll"+t],h(10)?parseInt(n["offset"+t])+parseInt(i["margin"+("Height"===t?"Top":"Left")])+parseInt(i["margin"+("Height"===t?"Bottom":"Right")]):0);}function y(t){var e=t.body,n=t.documentElement,i=h(10)&&getComputedStyle(n);return {height:b("Height",e,n,i),width:b("Width",e,n,i)};}var w=function(){function t(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value" in i&&(i.writable=!0),Object.defineProperty(t,i.key,i);}}return function(e,n,i){return n&&t(e.prototype,n),i&&t(e,i),e;};}(),E=function(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t;},T=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(t[i]=n[i]);}return t;};function C(t){return T({},t,{right:t.left+t.width,bottom:t.top+t.height});}function S(t){var e={};try{if(h(10)){e=t.getBoundingClientRect();var n=v(t,"top"),i=v(t,"left");e.top+=n,e.left+=i,e.bottom+=n,e.right+=i;}else e=t.getBoundingClientRect();}catch(t){}var o={left:e.left,top:e.top,width:e.right-e.left,height:e.bottom-e.top},r="HTML"===t.nodeName?y(t.ownerDocument):{},a=r.width||t.clientWidth||o.width,l=r.height||t.clientHeight||o.height,u=t.offsetWidth-a,c=t.offsetHeight-l;if(u||c){var f=s(t);u-=_(f,"x"),c-=_(f,"y"),o.width-=u,o.height-=c;}return C(o);}function k(t,e){var n=arguments.length>
202&&void 0!==arguments[2]&&arguments[2],i=h(10),o="HTML"===e.nodeName,r=S(t),a=S(e),l=u(t),c=s(e),f=parseFloat(c.borderTopWidth),d=parseFloat(c.borderLeftWidth);n&&o&&(a.top=Math.max(a.top,0),a.left=Math.max(a.left,0));var p=C({top:r.top-a.top-f,left:r.left-a.left-d,width:r.width,height:r.height});if(p.marginTop=0,p.marginLeft=0,!i&&o){var m=parseFloat(c.marginTop),g=parseFloat(c.marginLeft);p.top-=f-m,p.bottom-=f-m,p.left-=d-g,p.right-=d-g,p.marginTop=m,p.marginLeft=g;}return (i&&!n?e.contains(l):e===l&&"BODY"!==l.nodeName)&&(p=function(t,e){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],i=v(e,"top"),o=v(e,"left"),r=n?-1:1;return t.top+=i*r,t.bottom+=i*r,t.left+=o*r,t.right+=o*r,t;}(p,e)),p;}function x(t){var e=t.nodeName;if("BODY"===e||"HTML"===e)return !1;if("fixed"===s(t,"position"))return !0;var n=l(t);return !!n&&x(n);}function O(t){if(!t||!t.parentElement||h())return document.documentElement;for(var e=t.parentElement;e&&"none"===s(e,"transform");)e=e.parentElement;return e||document.documentElement;}function N(t,e,n,i){var o=arguments.length>4&&void 0!==arguments[4]&&arguments[4],r={top:0,left:0},a=o?O(t):g(t,c(e));if("viewport"===i)r=function(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=t.ownerDocument.documentElement,i=k(t,n),o=Math.max(n.clientWidth,window.innerWidth||0),r=Math.max(n.clientHeight,window.innerHeight||0),a=e?0:v(n),s=e?0:v(n,"left");return C({top:a-i.top+i.marginTop,left:s-i.left+i.marginLeft,width:o,height:r});}(a,o);else{var s=void 0;"scrollParent"===i?"BODY"===(s=u(l(e))).nodeName&&(s=t.ownerDocument.documentElement):s="window"===i?t.ownerDocument.documentElement:i;var f=k(s,a,o);if("HTML"!==s.nodeName||x(a))r=f;else{var d=y(t.ownerDocument),h=d.height,p=d.width;r.top+=f.top-f.marginTop,r.bottom=h+f.top,r.left+=f.left-f.marginLeft,r.right=p+f.left;}}var m="number"==typeof (n=n||0);return r.left+=m?n:n.left||0,r.top+=m?n:n.top||0,r.right-=m?n:n.right||0,r.bottom-=m?n:n.bottom||0,r;}function A(t,e,n,i,o){var r=arguments.length>5&&void 0!==arguments[5]?arguments[5]:0;if(-1===t.indexOf("auto"))return t;var a=N(n,i,r,o),s={top:{width:a.width,height:e.top-a.top},right:{width:a.right-e.right,height:a.height},bottom:{width:a.width,height:a.bottom-e.bottom},left:{width:e.left-a.left,height:a.height}},l=Object.keys(s).map((function(t){return T({key:t},s[t],{area:(e=s[t],e.width*e.height)});var e;})).sort((function(t,e){return e.area-t.area;})),u=l.filter((function(t){var e=t.width,i=t.height;return e>=n.clientWidth&&i>=n.clientHeight;})),c=u.length>0?u[0].key:l[0].key,f=t.split("-")[1];return c+(f?"-"+f:"");}function I(t,e,n){var i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null;return k(n,i?O(e):g(e,c(n)),i);}function D(t){var e=t.ownerDocument.defaultView.getComputedStyle(t),n=parseFloat(e.marginTop||0)+parseFloat(e.marginBottom||0),i=parseFloat(e.marginLeft||0)+parseFloat(e.marginRight||0);return {width:t.offsetWidth+i,height:t.offsetHeight+n};}function j(t){var e={left:"right",right:"left",bottom:"top",top:"bottom"};return t.replace(/left|right|bottom|top/g,(function(t){return e[t];}));}function L(t,e,n){n=n.split("-")[0];var i=D(t),o={width:i.width,height:i.height},r=-1!==["right","left"].indexOf(n),a=r?"top":"left",s=r?"left":"top",l=r?"height":"width",u=r?"width":"height";return o[a]=e[a]+e[l]/2-i[l]/2,o[s]=n===s?e[s]-i[u]:e[j(s)],o;}function P(t,e){return Array.prototype.find?t.find(e):t.filter(e)[0];}function R(t,e,n){return (void 0===n?t:t.slice(0,function(t,e,n){if(Array.prototype.findIndex)return t.findIndex((function(t){return t[e]===n;}));var i=P(t,(function(t){return t[e]===n;}));return t.indexOf(i);}(t,"name",n))).forEach((function(t){t.function&&console.warn("`modifier.function` is deprecated, use `modifier.fn`!");var n=t.function||t.fn;t.enabled&&a(n)&&(e.offsets.popper=C(e.offsets.popper),e.offsets.reference=C(e.offsets.reference),e=n(e,t));})),e;}function B(){if(!this.state.isDestroyed){var t={instance:this,styles:{},arrowStyles:{},attributes:{},flipped:!1,offsets:{}};t.offsets.reference=I(this.state,this.popper,this.reference,this.options.positionFixed),t.placement=A(this.options.placement,t.offsets.reference,this.popper,this.reference,this.options.modifiers.flip.boundariesElement,this.options.modifiers.flip.padding),t.originalPlacement=t.placement,t.positionFixed=this.options.positionFixed,t.offsets.popper=L(this.popper,t.offsets.reference,t.placement),t.offsets.popper.position=this.options.positionFixed?"fixed":"absolute",t=R(this.modifiers,t),this.state.isCreated?this.options.onUpdate(t):(this.state.isCreated=!0,this.options.onCreate(t));}}function F(t,e){return t.some((function(t){var n=t.name;return t.enabled&&n===e;}));}function M(t){for(var e=[!1,"ms","Webkit","Moz","O"],n=t.charAt(0).toUpperCase()+t.slice(1),i=0;i<e.length;i++){var o=e[i],r=o?""+o+n:t;if(void 0!==document.body.style[r])return r;}return null;}function H(){return this.state.isDestroyed=!0,F(this.modifiers,"applyStyle")&&(this.popper.removeAttribute("x-placement"),this.popper.style.position="",this.popper.style.top="",this.popper.style.left="",this.popper.style.right="",this.popper.style.bottom="",this.popper.style.willChange="",this.popper.style[M("transform")]=""),this.disableEventListeners(),this.options.removeOnDestroy&&this.popper.parentNode.removeChild(this.popper),this;}function Q(t){var e=t.ownerDocument;return e?e.defaultView:window;}function W(t,e,n,i){var o="BODY"===t.nodeName,r=o?t.ownerDocument.defaultView:t;r.addEventListener(e,n,{passive:!0}),o||W(u(r.parentNode),e,n,i),i.push(r);}function q(t,e,n,i){n.updateBound=i,Q(t).addEventListener("resize",n.updateBound,{passive:!0});var o=u(t);return W(o,"scroll",n.updateBound,n.scrollParents),n.scrollElement=o,n.eventsEnabled=!0,n;}function U(){this.state.eventsEnabled||(this.state=q(this.reference,this.options,this.state,this.scheduleUpdate));}function Y(){var t,e;this.state.eventsEnabled&&(cancelAnimationFrame(this.scheduleUpdate),this.state=(t=this.reference,e=this.state,Q(t).removeEventListener("resize",e.updateBound),e.scrollParents.forEac
20h((function(t){t.removeEventListener("scroll",e.updateBound);})),e.updateBound=null,e.scrollParents=[],e.scrollElement=null,e.eventsEnabled=!1,e));}function V(t){return ""!==t&&!isNaN(parseFloat(t))&&isFinite(t);}function z(t,e){Object.keys(e).forEach((function(n){var i="";-1!==["width","height","top","right","bottom","left"].indexOf(n)&&V(e[n])&&(i="px"),t.style[n]=e[n]+i;}));}var K=i&&/Firefox/i.test(navigator.userAgent);function X(t,e,n){var i=P(t,(function(t){return t.name===e;})),o=!!i&&t.some((function(t){return t.name===n&&t.enabled&&t.order<i.order;}));if(!o){var r="`"+e+"`",a="`"+n+"`";console.warn(a+" modifier is required by "+r+" modifier in order to work, be sure to include it before "+r+"!");}return o;}var $=["auto-start","auto","auto-end","top-start","top","top-end","right-start","right","right-end","bottom-end","bottom","bottom-start","left-end","left","left-start"],G=$.slice(3);function J(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=G.indexOf(t),i=G.slice(n+1).concat(G.slice(0,n));return e?i.reverse():i;}var Z="flip",tt="clockwise",et="counterclockwise";function nt(t,e,n,i){var o=[0,0],r=-1!==["right","left"].indexOf(i),a=t.split(/(\+|\-)/).map((function(t){return t.trim();})),s=a.indexOf(P(a,(function(t){return -1!==t.search(/,|\s/);})));a[s]&&-1===a[s].indexOf(",")&&console.warn("Offsets separated by white space(s) are deprecated, use a comma (,) instead.");var l=/\s*,\s*|\s+/,u=-1!==s?[a.slice(0,s).concat([a[s].split(l)[0]]),[a[s].split(l)[1]].concat(a.slice(s+1))]:[a];return u=u.map((function(t,i){var o=(1===i?!r:r)?"height":"width",a=!1;return t.reduce((function(t,e){return ""===t[t.length-1]&&-1!==["+","-"].indexOf(e)?(t[t.length-1]=e,a=!0,t):a?(t[t.length-1]+=e,a=!1,t):t.concat(e);}),[]).map((function(t){return function(t,e,n,i){var o=t.match(/((?:\-|\+)?\d*\.?\d*)(.*)/),r=+o[1],a=o[2];if(!r)return t;if(0===a.indexOf("%"))return C("%p"===a?n:i)[e]/100*r;if("vh"===a||"vw"===a)return ("vh"===a?Math.max(document.documentElement.clientHeight,window.innerHeight||0):Math.max(document.documentElement.clientWidth,window.innerWidth||0))/100*r;return r;}(t,o,e,n);}));})),u.forEach((function(t,e){t.forEach((function(n,i){V(n)&&(o[e]+=n*("-"===t[i-1]?-1:1));}));})),o;}var it={shift:{order:100,enabled:!0,fn:function(t){var e=t.placement,n=e.split("-")[0],i=e.split("-")[1];if(i){var o=t.offsets,r=o.reference,a=o.popper,s=-1!==["bottom","top"].indexOf(n),l=s?"left":"top",u=s?"width":"height",c={start:E({},l,r[l]),end:E({},l,r[l]+r[u]-a[u])};t.offsets.popper=T({},a,c[i]);}return t;}},offset:{order:200,enabled:!0,fn:function(t,e){var n=e.offset,i=t.placement,o=t.offsets,r=o.popper,a=o.reference,s=i.split("-")[0],l=void 0;return l=V(+n)?[+n,0]:nt(n,r,a,s),"left"===s?(r.top+=l[0],r.left-=l[1]):"right"===s?(r.top+=l[0],r.left+=l[1]):"top"===s?(r.left+=l[0],r.top-=l[1]):"bottom"===s&&(r.left+=l[0],r.top+=l[1]),t.popper=r,t;},offset:0},preventOverflow:{order:300,enabled:!0,fn:function(t,e){var n=e.boundariesElement||p(t.instance.popper);t.instance.reference===n&&(n=p(n));var i=M("transform"),o=t.instance.popper.style,r=o.top,a=o.left,s=o[i];o.top="",o.left="",o[i]="";var l=N(t.instance.popper,t.instance.reference,e.padding,n,t.positionFixed);o.top=r,o.left=a,o[i]=s,e.boundaries=l;var u=e.priority,c=t.offsets.popper,f={primary:function(t){var n=c[t];return c[t]<l[t]&&!e.escapeWithReference&&(n=Math.max(c[t],l[t])),E({},t,n);},secondary:function(t){var n="right"===t?"left":"top",i=c[n];return c[t]>l[t]&&!e.escapeWithReference&&(i=Math.min(c[n],l[t]-("right"===t?c.width:c.height))),E({},n,i);}};return u.forEach((function(t){var e=-1!==["left","top"].indexOf(t)?"primary":"secondary";c=T({},c,f[e](t));})),t.offsets.popper=c,t;},priority:["left","right","top","bottom"],padding:5,boundariesElement:"scrollParent"},keepTogether:{order:400,enabled:!0,fn:function(t){var e=t.offsets,n=e.popper,i=e.reference,o=t.placement.split("-")[0],r=Math.floor,a=-1!==["top","bottom"].indexOf(o),s=a?"right":"bottom",l=a?"left":"top",u=a?"width":"height";return n[s]<r(i[l])&&(t.offsets.popper[l]=r(i[l])-n[u]),n[l]>r(i[s])&&(t.offsets.popper[l]=r(i[s])),t;}},arrow:{order:500,enabled:!0,fn:function(t,e){var n;if(!X(t.instance.modifiers,"arrow","keepTogether"))return t;var i=e.element;if("string"==typeof i){if(!(i=t.instance.popper.querySelector(i)))return t;}else{if(!t.instance.popper.contains(i))return console.warn("WARNING: `arrow.element` must be child of its popper element!"),t;}var o=t.placement.split("-")[0],r=t.offsets,a=r.popper,l=r.reference,u=-1!==["left","right"].indexOf(o),c=u?"height":"width",f=u?"Top":"Left",d=f.toLowerCase(),h=u?"left"
vendor: 4,258 bytes, line 20
20:"top",p=u?"bottom":"right",m=D(i)[c];l[p]-m<a[d]&&(t.offsets.popper[d]-=a[d]-(l[p]-m)),l[d]+m>a[p]&&(t.offsets.popper[d]+=l[d]+m-a[p]),t.offsets.popper=C(t.offsets.popper);var g=l[d]+l[c]/2-m/2,v=s(t.instance.popper),_=parseFloat(v["margin"+f]),b=parseFloat(v["border"+f+"Width"]),y=g-t.offsets.popper[d]-_-b;return y=Math.max(Math.min(a[c]-m,y),0),t.arrowElement=i,t.offsets.arrow=(E(n={},d,Math.round(y)),E(n,h,""),n),t;},element:"[x-arrow]"},flip:{order:600,enabled:!0,fn:function(t,e){if(F(t.instance.modifiers,"inner"))return t;if(t.flipped&&t.placement===t.originalPlacement)return t;var n=N(t.instance.popper,t.instance.reference,e.padding,e.boundariesElement,t.positionFixed),i=t.placement.split("-")[0],o=j(i),r=t.placement.split("-")[1]||"",a=[];switch(e.behavior){case Z:a=[i,o];break;case tt:a=J(i);break;case et:a=J(i,!0);break;default:a=e.behavior;}return a.forEach((function(s,l){if(i!==s||a.length===l+1)return t;i=t.placement.split("-")[0],o=j(i);var u=t.offsets.popper,c=t.offsets.reference,f=Math.floor,d="left"===i&&f(u.right)>f(c.left)||"right"===i&&f(u.left)<f(c.right)||"top"===i&&f(u.bottom)>f(c.top)||"bottom"===i&&f(u.top)<f(c.bottom),h=f(u.left)<f(n.left),p=f(u.right)>f(n.right),m=f(u.top)<f(n.top),g=f(u.bottom)>f(n.bottom),v="left"===i&&h||"right"===i&&p||"top"===i&&m||"bottom"===i&&g,_=-1!==["top","bottom"].indexOf(i),b=!!e.flipVariations&&(_&&"start"===r&&h||_&&"end"===r&&p||!_&&"start"===r&&m||!_&&"end"===r&&g),y=!!e.flipVariationsByContent&&(_&&"start"===r&&p||_&&"end"===r&&h||!_&&"start"===r&&g||!_&&"end"===r&&m),w=b||y;(d||v||w)&&(t.flipped=!0,(d||v)&&(i=a[l+1]),w&&(r=function(t){return "end"===t?"start":"start"===t?"end":t;}(r)),t.placement=i+(r?"-"+r:""),t.offsets.popper=T({},t.offsets.popper,L(t.instance.popper,t.offsets.reference,t.placement)),t=R(t.instance.modifiers,t,"flip"));})),t;},behavior:"flip",padding:5,boundariesElement:"viewport",flipVariations:!1,flipVariationsByContent:!1},inner:{order:700,enabled:!1,fn:function(t){var e=t.placement,n=e.split("-")[0],i=t.offsets,o=i.popper,r=i.reference,a=-1!==["left","right"].indexOf(n),s=-1===["top","left"].indexOf(n);return o[a?"left":"top"]=r[n]-(s?o[a?"width":"height"]:0),t.placement=j(e),t.offsets.popper=C(o),t;}},hide:{order:800,enabled:!0,fn:function(t){if(!X(t.instance.modifiers,"hide","preventOverflow"))return t;var e=t.offsets.reference,n=P(t.instance.modifiers,(function(t){return "preventOverflow"===t.name;})).boundaries;if(e.bottom<n.top||e.left>n.right||e.top>n.bottom||e.right<n.left){if(!0===t.hide)return t;t.hide=!0,t.attributes["x-out-of-boundaries"]="";}else{if(!1===t.hide)return t;t.hide=!1,t.attributes["x-out-of-boundaries"]=!1;}return t;}},computeStyle:{order:850,enabled:!0,fn:function(t,e){var n=e.x,i=e.y,o=t.offsets.popper,r=P(t.instance.modifiers,(function(t){return "applyStyle"===t.name;})).gpuAcceleration;void 0!==r&&console.warn("WARNING: `gpuAcceleration` option moved to `computeStyle` modifier and will not be supported in future versions of Popper.js!");var a=void 0!==r?r:e.gpuAcceleration,s=p(t.instance.popper),l=S(s),u={position:o.position},c=function(t,e){var n=t.offsets,i=n.popper,o=n.reference,r=Math.round,a=Math.floor,s=function(t){return t;},l=r(o.width),u=r(i.width),c=-1!==["left","right"].indexOf(t.placement),f=-1!==t.placement.indexOf("-"),d=e?c||f||l%2==u%2?r:a:s,h=e?r:s;return {left:d(l%2==1&&u%2==1&&!f&&e?i.left-1:i.left),top:h(i.top),bottom:h(i.bottom),right:d(i.right)};}(t,window.devicePixelRatio<2||!K),f="bottom"===n?"top":"bottom",d="right"===i?"left":"right",h=M("transform"),m=void 0,g=void 0;if(g="bottom"===f?"HTML"===s.nodeName?-s.clientHeight+c.bottom:-l.height+c.bottom:c.top,m="right"===d?"HTML"===s.nodeName?-s.clientWidth+c.right:-l.width+c.right:c.left,a&&h)u[h]="translate3d("+m+"px, "+g+"px, 0)",u[f]=0,u[d]=0,u.willChange="transform";else{var v="bottom"===f?-1:1,_="right"===d?-1:1;u[f]=g*v,u[d]=m*_,u.willChange=f+", "+d;}var b={"x-placement":t.placement};return t.attributes=T({},b,t.attributes),t.styles=T({},u,t.styles),t.arrowStyles=T({},t.offsets.arrow,t.arrowStyles),t;},gpuAcceleration:!0,x:"bottom",y:"right"},applyStyle:{order:900,enabled:!0,fn:function(t){var e,n;return z(t.instance.popper,t.styles),e=t.instance.popper,n=t.attributes,Object.keys(n).forEac
20h((function(t){!1!==n[t]?e.setAttribute(t,n[t]):e.removeAttribute(t);})),t.arrowElement&&Object.keys(t.arrowStyles).length&&z(t.arrowElement,t.arrowStyles),t;},onLoad:function(t,e,n,i,o){var r=I(o,e,t,n.positionFixed),a=A(n.placement,r,e,t,n.modifiers.flip.boundariesElement,n.modifiers.flip.padding);return e.setAttribute("x-placement",a),z(e,{position:n.positionFixed?"fixed":"absolute"}),n;},gpuAcceleration:void 0}},ot={placement:"bottom",positionFixed:!1,eventsEnabled:!0,removeOnDestroy:!1,onCreate:function(){},onUpdate:function(){},modifiers:it},rt=function(){function t(e,n){var i=this,o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function");}(this,t),this.scheduleUpdate=function(){return requestAnimationFrame(i.update);},this.update=r(this.update.bind(this)),this.options=T({},t.Defaults,o),this.state={isDestroyed:!1,isCreated:!1,scrollParents:[]},this.reference=e&&e.jquery?e[0]:e,this.popper=n&&n.jquery?n[0]:n,this.options.modifiers={},Object.keys(T({},t.Defaults.modifiers,o.modifiers)).forEach((function(e){i.options.modifiers[e]=T({},t.Defaults.modifiers[e]||{},o.modifiers?o.modifiers[e]:{});})),this.modifiers=Object.keys(this.options.modifiers).map((function(t){return T({name:t},i.options.modifiers[t]);})).sort((function(t,e){return t.order-e.order;})),this.modifiers.forEach((function(t){t.enabled&&a(t.onLoad)&&t.onLoad(i.reference,i.popper,i.options,t,i.state);})),this.update();var s=this.options.eventsEnabled;s&&this.enableEventListeners(),this.state.eventsEnabled=s;}return w(t,[{key:"update",value:function(){return B.call(this);}},{key:"destroy",value:function(){return H.call(this);}},{key:"enableEventListeners",value:function(){return U.call(this);}},{key:"disableEventListeners",value:function(){return Y.call(this);}}]),t;}();rt.Utils=("undefined"!=typeof window?window:n.g).PopperUtils,rt.placements=$,rt.Defaults=ot;const at=rt;},860:(t,e,n)=>{"use strict";n(754),n(52);function i(t){return i="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;},i(t);}function o(t){return function(t){if(Array.isArray(t))return r(t);}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t);}(t)||function(t,e){if(t){if("string"==typeof t)return r(t,e);var n={}.toString.call(t).slice(8,-1);return "Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?r(t,e):void 0;}}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");}();}function r(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,i=Array(e);n<e;n++)i[n]=t[n];return i;}var a=document.getElementsByTagName("html")[0];window.MSInputMethodContext&&document.documentMode?(document.write('
20<script src="/themes/custom/ministry/src/js/ie11CustomProperties/ie11CustomProperties.js"><\/script>'),window.addEventListener("load",(function(){a.classList.remove("hidden");}))):a.classList.remove("hidden"),document.addEventListener("DOMContentLoaded",(function(){document.querySelectorAll(".c_tooltip-text, .c_tooltip-text__content").forEach((function(t){t.style.setProperty("font-family","RobustaTLPro-Regular","important"),t.style.setProperty("font-size","0.75rem","important"),t.style.setProperty("font-weight","400","important"),t.style.setProperty("text-transform","none","important"),t.style.setProperty("letter-spacing","normal","important");}));})),function(t,e){e.behaviors.frontPageHeaderLogo={attach:function(e){t(once("front-page-header-logo","body",e)).each((function(){!t("body").hasClass("front-page")||t("body").hasClass("fill-branding-bg")||t("body").hasClass("front-show-logo")||t(document).ready((function(){setInterval((function(){t(window).scrollTop()>=135?(t("#block-ministry-branding").addClass("exposed"),t("#block-ministry-branding .site-logo").attr("tabindex",0)):(t("#block-ministry-branding").removeClass("exposed"),t("#block-ministry-branding .site-logo").attr("tabindex",-1));}),250);}));}));}},e.behaviors.viewsAutosubmitFixes={attach:function(t){once("views-autosubmit-fixes",".views-exposed-form[data-bef-auto-submit]",t).forEach((function(t){t.querySelectorAll('input[type="text"]').forEach((function(t){t.addEventListener("change",(function(t){t.stopImmediatePropagation();}),!0);})),t.querySelector(".form-checkboxes")&&t.addEventListener("keyup",(function(t){"Enter"===t.key&&t.target.matches('input[type="checkbox"] + label.option')&&(t.stopImmediatePropagation(),t.target.click(),t.target.focus());}),!0),t.querySelector(".form-type-date-range")&&t.addEventListener("keyup",(function(e){if(e.target.matches("input.date-range-input")){var n=o(t.querySelectorAll("input.date-range-input")),i=n.every((function(t){return t.value&&!t.value.includes("-");})),r=n.every((function(t){return "--.--.----"===t.value;}));i||r||e.stopImmediatePropagation();}}),!0);}));}},e.behaviors.customBreadcrumb={attach:function(){t("#breadcrumb-scroll .breadcrumb").scrollbar();}},e.behaviors.customFilters={attach:function(e){t(document).on("keypress",(function(e){13==e.which&&"edit-was-this-information-helpful-n"==t("label:focus").attr("for")&&t("label:focus").trigger("click");}));var n=!0,i=!0,o={"+":function(t,e){return t+e;},"-":function(t,e){return t-e;}};function r(e,n){return t("#toolbar-bar").length&&(e=o[n](e,39),t("body").hasClass("toolbar-tray-open")&&t("body").hasClass("toolbar-horizontal")&&(e=o[n](e,39))),e;}var a=".popup-content-div";function s(e,i){var o=t("html").hasClass("font-size-1-50x")?2:t("html").hasClass("font-size-1-25x")?1.25:1;n="font-size-1-50x"!=localStorage.getItem("font-size");var a=148*o,s=t("#main").offset().top-a;s=r(s,"-");var l=t(".notification-message").outerHeight()||0;s-=l;var u=t(".maintenance-message").outerHeight()||0;s-=u;var c=t(".top-navigation").outerHeight()||0;s-=c;var f=t("#cookie-element-wrap").outerHeight()||0;s-=f,e.map((function(e){var i=t(e);if(t(window).outerWidth()>991?i.css("margin-top","-"+s+"px"):(i.css("margin-top","0px"),n=!1),n&&t(e+" .fix-for-slider").length){var o=20;o=r(o,"+");var a=new StickySidebar(e+" .fix-for-slider",{innerWrapperSelector:".sidebar-content",topSpacing:t("#header").height()+o});setTimeout((function(){t(e).css({visibility:"visible"});})),t("#site-filter, #extra-filters").on("shown.bs.collapse",(function(){a.updateSticky();})),t(".tabs-list .tab-link").click((function(){a.updateSticky();}));}else t(e+" .fix-for-slider").stickySidebar("destroy");}));}function l(e){jQuery(".responsive-view-filters .mobile-filter-dropdown-button.open-filters").length||t(".view-custom-main-filter").not(e).each((function(){t(this).find(".toggle-is-opened").toggleClass("toggle-is-opened"),t(this).find(".filter-toggle-is-opened").toggleClass("filter-toggle-is-opened");}));}document.addEventListener("focusin",(function(){var e=document.activeElement;if(e){var n=t(a),i=null,o=null;if(n.length>0&&n.is(":visible")&&(i=n,o=a),i&&o&&e!==i[0]&&!e.closest(o)){var r=(s=i)&&0!==s.length?s.find('a[href]:not([disabled]), button:not([disabled]), textarea:not([disabled]), input:not([disabled]), select:not([disabled]), details:not([disabled]), [tabindex]:not
20([tabindex="-1"])').filter(":visible").first():null;r&&r.length&&r.focus();}else var s;}})),setTimeout((function(){s(["#sidebar-left","#sidebar-right"]);})),t(once("checkbox_check","body",e)).each((function(){t(".js-form-type-checkbox input[type=checkbox]").on("click",(function(){t(this).is(":checked")||t(this).next().blur();}));})),t(once("news-language-checkbox","body",e)).each((function(){t(".select-news-language-checkbox .js-form-type-checkbox:not(.with-tabindex)").each((function(){jQuery(t(this)).attr("tabindex","0").addClass("with-tabindex");})),t(".select-news-language-checkbox.card .js-form-type-checkbox.with-tabindex",e).keyup((function(e){if(13===e.which){e.preventDefault();var n=".select-news-language-checkbox #"+t("label",this).attr("for");t(n).length&&t(n).click();}}));})),t(once("cardsAccordion","body",e)).each((function(){t(document).find(".view-custom-main-filter:not(.items-per-page-buttons .view-custom-main-filter)").on("click",".card-header",(function(e){t(e.target).closest(".remove-filter").length||(t(this).parent().toggleClass("toggle-is-opened"),t(this).toggleClass("filter-toggle-is-opened"),t(".js-form-type-checkbox",t(this).parent().parent()).length&&(t(".js-form-type-checkbox:not(.with-tabindex)",t(this).parent().parent()).each((function(){jQuery(t("label",this)).attr("tabindex","0").addClass("with-tabindex");})),i=!0,jQuery('.toggle-is-opened:not(.checked) label[tabindex="0"]').keyup((function(t){13===t.which&&(jQuery(this).click(),jQuery(this).closest(".toggle-is-opened").addClass("checked"),i=!1);})),jQuery('.view-custom-main-filter[tabindex="0"]').keyup((function(t){13===t.which&&(i=!0);})),t("body").on("keydown",(function(e){"Escape"===e.key&&(t(this).find(".toggle-is-opened").toggleClass("toggle-is-opened"),t(this).find(".filter-toggle-is-opened").toggleClass("filter-toggle-is-opened"));}))),l(t(this).parent().parent()));})),t(document).on("click.cardsAccordion",(function(e){t(e.target).closest(".view-custom-main-filter").length||(t(".toggle-is-opened").removeClass("toggle-is-opened"),t(".filter-toggle-is-opened").removeClass("filter-toggle-is-opened"));}));})),document.addEventListener("focusin",(function(){if(document.activeElement.classList.contains("view-custom-main-filter")){var t=document.activeElement.className;document.getElementsByClassName(t)[0].click(),l(t);}})),jQuery("#footer .webform-submission-website-rating-form .webfom-right-div").length&&jQuery("#footer .webform-submission-website-rating-form .webfom-right-div").each((function(){jQuery(jQuery("label",this)).attr("tabindex","0"),jQuery(jQuery('input:not([type="submit"])',this)).attr("tabindex","-1").attr("aria-hidden","true");})),t("#footer .webform-submission-website-rating-form .webfom-left-div h3").attr("id","website-rating-question-label"),t("#footer .webform-submission-website-rating-form .webfom-right-div .form-radios").attr("role","radiogroup").attr("aria-labelledby","website-rating-question-label"),t("#footer .webform-submission-website-rating-form .webfom-right-div label").attr("role","radio").attr("aria-checked","false"),t('#footer .webform-submission-website-rating-form input[type="radio"]').on("change",(function(){t(this).closest(".webfom-right-div").parent().find("label").attr("aria-checked","false"),t(this).is(":checked")&&t('label[for="'+t(this).attr("id")+'"]').attr("aria-checked","true");})),t('#footer .webform-submission-website-rating-form input[type="radio"]:checked').each((function(){t('label[for="'+t(this).attr("id")+'"]').attr("aria-checked","true");})),t(document).mouseup((function(e){if(!t(".responsive-view-filters .mobile-filter-dropdown-button.open-filters").length){var n=t(".view-custom-main-filter");n.is(e.target)||0!==n.has(e.target).length||(n.find(".toggle-is-opened").toggleClass("toggle-is-opened"),n.find(".filter-toggle-is-opened").toggleClass("filter-toggle-is-opened"));}})),t("input.form-autocomplete").on("click",(function(){t(".view-custom-main-filter").not(this).each((function(){t(this).find(".toggle-is-opened").toggleClass("toggle-is-opened"),t(this).find(".filter-toggle-is-opened").toggleClass("filter-toggle-is-opened");}));})),jQuery(".view-custom-main-filter .scrollbar-inner").length&&(jQuery(".view-custom-main-filter .scrollbar-inner").scrollbar(),jQuery(".card-header","fieldset",e).on("click",(function(e){if(!jQuery(e.target).closest(".theme-list_badge").length){var n=jQuery(this).parent("fieldset");if(n.hasClass("toggle-is-opened")&&"0px"!=n.find(".scrollbar-inner").css("height"))n.find(".scrollbar-inner").css({"max-height":"0px",height:"0px"});else{var i=jQuery(".autocomplete-wrap",jQuery(this).parent("fieldset").not('fieldset[id^="edit-structures--"]')).height(),o=jQuery(".form-checkboxes > .form-item:lt(5), .form-checkboxes > ul li:lt(5)",jQuery(this).parent("fieldset"));o.each((function(t,e){i+=jQuery(e).height();})),jQuery(this).parents('.responsive-view-filters fieldset[id^="edit-structures--"]').length&&t(".responsive-view-filters .mobile-filter-dropdown-button.open-filters").length&&(i=jQuery(".autocomplete-wrap",jQuery(this).parent("fieldset")).height(),(o=jQuery(".form-checkboxes > .form-check:lt(5)",jQuery(this).parent("fieldset"))).each((function(t,e){i+=jQuery(e).outerHeight();})),i+=5),jQuery(this).parents(".responsive-view-filters .structures-filter-toggle").length&&t(window).width()>=768&&(i=450),jQuery(this).parent("fieldset").find(".scrollbar-inner").css({"max-height":i+"px",height:i+"px"});}}}))),jQuery(".banners-slider .item-list").length&&jQuery(".banners-slider").addClass("image-banner-contains-content"),t(window).resize((function(){s(["#sidebar-left","#sidebar-right"]);})),jQuery('*[tabindex="0"]:not(label)').keyup((function(t){13===t.which&&(jQuery(this).click(),jQuery(".card-header",this).length&&1==i&&jQuery(".card-header",this).click());})),t("#header.node--gallery").length&&(jQuery("#header.node--gallery *").attr("tabindex","-1"),t(".remote_video__media-oembed-vi
20deo").length&&jQuery(".remote_video__media-oembed-video *").attr("tabindex","-1")),jQuery("body",e).on("keyup",".maintenance-message .close",(function(){13===event.which&&jQuery(this).click();}));}},e.behaviors.closePopup={attach:function(e){function n(){t("body").removeClass("modal-popup-overlay-opened"),t(".modal-popup-overlay .modal-popup-content").html(""),t(".modal-popup-overlay").hasClass("transparent-popup-modal")&&jQuery(".modal-popup-overlay").removeClass("transparent-popup-modal"),t("body").data("modalTrigger").focus();}t(".modal-popup-overlay .close",e).click((function(){n();})),t(".modal-popup-overlay .modal-popup-close").click((function(){n();})),t("body",e).keyup((function(e){27===e.keyCode&&t(this).hasClass("modal-popup-overlay-opened")&&n();}));}},e.behaviors.popupPageScrollDisable={attach:function(){t("a.webform-dialog").click((function(){t("body").css("overflow","hidden"),t("body").addClass("webform-dialog-opened");}));}},e.behaviors.popupPageScrollEnable={attach:function(){t(document).on("click",".ui-dialog-titlebar-close",(function(){t("body").css("overflow","scroll"),t("body").removeClass("webform-dialog-opened");}));}},e.behaviors.tooltip={attach:function(e){t(once("accessible-tooltips",'.file-info, a[href^="tel:"]',e)).each((function(){var e=t(this),n=e.attr("aria-describedby"),i=t("#"+n);i.length&&(e.on("click",(function(){i.hasClass("visually-hidden")?i.removeClass("visually-hidden").addClass("tooltip-visible"):i.removeClass("tooltip-visible").addClass("visually-hidden");})),t(document).on("click.accessible-tooltips",(function(t){e.is(t.target)||i.is(t.target)||0!==i.has(t.target).length||i.removeClass("tooltip-visible").addClass("visually-hidden");})),e.on("keydown",(function(t){"Enter"!==t.key&&" "!==t.key||(t.preventDefault(),i.hasClass("visually-hidden")?i.removeClass("visually-hidden").addClass("tooltip-visible"):i.removeClass("tooltip-visible").addClass("visually-hidden")),"Escape"===t.key&&(i.removeClass("tooltip-visible").addClass("visually-hidden"),e.blur());})));})),t('.tooltip-wrapp, [data-toggle="tooltip"]',e).not(".file-info").each((function(){var e=t(this),n=e.data("placement");n||(n="top");var i={trigger:"manual",position:{my:"center-1",at:n+="left"===n?"-40":"top"===n?"-13":"bottom"===n?"+20":"+40"},html:!0};e.hasClass("file-info")?i.template='<div class="tooltip file-tooltip" role="tooltip"><div class="arrow"></div><div class="tooltip-inner"></div></div>':e.hasClass("file-large-info")&&(i.template='<div class="tooltip file-tooltip file-large-tooltip" role="tooltip"><div class="arrow"></div><div class="tooltip-inner"></div></div>'),e.tooltip(i);var o=null,r=function(){clearTimeout(o),o=setTimeout((function(){e.tooltip("hide");}),150);};e.on("mouseenter focus",(function(){clearTimeout(o),o=null,e.tooltip("show");})),e.on("mouseleave blur",r),e.one("shown.bs.tooltip",(function(){var n=e.attr("aria-describedby");if(n){var i=t("#"+n);i.on("mouseenter",(function(){clearTimeout(o),o=null;})),i.on("mouseleave",r);}}));}));}},e.behaviors.floatLabel={attach:function(e){for(var n=t('input[type="email"], input[type="number"], input[type="password"], input[type="search"], input[type="tel"], input[type="text"], input[type="url"], textarea'),i=0;i<n.length;i++)null!=t(n[i]).val()&&""!=t(n[i]).val()&&t(n[i]).addClass("is-floating");n.on("focus blur change focusout",(function(e){null!=t(this).val()&&""!=t(this).val()?t(this).addClass("is-floating"):t(this).removeClass("is-floating");}));}},e.behaviors.numberInputFix={attach:function(){t("input[type=number]").on("keypress",(function(t){(8!=t.which&&0!=t.which&&t.which<48||t.which>57)&&t.preventDefault();}));}},e.behaviors.focusFix={attach:function(){t("body").addClass("no-focus"),t(window).on("keyup",(function(e){void 0!==e.originalEvent&&9==e.originalEvent.which&&t("body").removeClass("no-focus");})),t(window).on("mousedown",(function(e){t("body").addClass("no-focus");}));}},e.behaviors.fixVboCount={attach:function(e,n){once("fix-vbo-count",".vbo-multipage-selector",e).forEach((function(e){var n=t(e),i=(n.find("summary span").first(),n.find(".vbo-info-list-wrapper")),o=i.text().trim();("Nav vienumu"===o||"No items"===o||i.is(":empty"))&&n.hide();var r=t('.vbo-table thead input[type="checkbox"]');0===t('.vbo-table tbody input[type="checkbox"]').filter(":checked").length&&(r.prop("checked",!1),r.prop("indeterminate",!1));}));}},e.behaviors.socialIconAltText={attach:function(e){t("footer .social-icon a img").each((function(){var e=t(this).attr("alt"),n=e.charAt(0).toUpperCase()+e.slice(1);t(this).attr({title:n});}));}},e.behaviors.iframeResponsivnes={attach:function(){t("iframe").not(".arka-survey-iframe").not(".paragraph--type--embed iframe").not(".html_or_javascript__html-or-javascript-content iframe").each((function(){t(this).hasClass("media-oembed-content")?t(this).attr("ratio",t(this).height()/t(this).width()).removeAttr("width").removeAttr("height"):(t(this).removeAttr("style"),"undefined"!==i(t(this).attr("width"))&&t(this).css({"max-width":t
20(this).attr("width")+"px"}),"undefined"!==i(t(this).attr("height"))&&(t(this).css({height:t(this).attr("height")+"px"}),t(this).css({position:"static"}),t(this).parent().css({padding:0})));}));}},e.behaviors.addtoanyKeyboardFix={attach:function(e){t(document).off("keydown.a2aFix").on("keydown.a2aFix",".a2a_button_facebook, .a2a_button_twitter, .a2a_button_linkedin, .a2a_button_threads",(function(e){if(32===e.which||13===e.which){e.preventDefault(),e.stopPropagation();var n=t(this).attr("href");n&&"#"!==n?window.open(n,"_blank","width=600,height=400"):this.click();}})),t(document).on("DOMNodeInserted",(function(){t(".a2a_button_facebook, .a2a_button_twitter, .a2a_button_linkedin, .a2a_button_threads").attr("tabindex","0");}));}},e.behaviors.closeMessage={attach:function(){t(".messages .close").click((function(){t(this).parent().remove();}));}},e.behaviors.emailSpam={attach:function(){t.each(["institution_contacts__institution-main-email","email","department_contacts__department-contacts-email","employee_contacts__employee-contacts-email","branch_contacts__branch-email"],(function(e,n){t("."+n).addAriaLabel();}));}},e.behaviors.bannerHoverPause={attach:function(e){t(once("banner-hover",".banners-slider",e)).hover((function(){t(this).addClass("paused");}),(function(){t(this).removeClass("paused");}));}},e.behaviors.emailAccessibility={attach:function(n,i){(t(once("email-aria","a.spamspan",n)).each((function(){e.addEmailAriaLabel(t(this));})),n===document)&&new MutationObserver((function(n){n.forEach((function(n){t(n.addedNodes).find("a.spamspan").addBack("a.spamspan").each((function(){t(this).attr("aria-label")||e.addEmailAriaLabel(t(this));}));}));})).observe(document.body,{childList:!0,subtree:!0});}},t.fn.addAriaLabel=function(){t(this).each((function(n,i){new MutationObserver((function(n){var o=t(i).children("a");o.attr("aria-label",e.t("Email")+" "+o.text());})).observe(i,{attributes:!0,childList:!0,characterData:!0});}));};document.addEventListener("hashchange",(function(){location.hash&&"#content-area"==location.hash&&scrollBy(0,-50);})),t(".cke_editable ol[start]").each((function(){t(this).addClass("ol-with-start");var e=t(this).attr("start");t(this).css("--start",e);}));}(jQuery,Drupal);}},n={};function i(t){var o=n[t];if(void 0!==o)return o.exports;var r=n[t]={exports:{}};return e[t].call(r.exports,r,r.exports,i),r.exports;}i.m=e,t=[],i.O=(e,n,o,r)=>{if(!n){var a=1/0;for(c=0;c<t.length;c++){for(var [n,o,r]=t[c],s=!0,l=0;l<n.length;l++)(!1&r||a>=r)&&Object.keys(i.O).every(((t)=>i.O[t](n[l])))?n.splice(l--,1):(s=!1,r<a&&(a=r));if(s){t.splice(c--,1);var u=o();void 0!==u&&(e=u);}}return e;}r=r||0;for(var c=t.length;c>0&&t[c-1][2]>r;c--)t[c]=t[c-1];t[c]=[n,o,r];},i.n=(t)=>{var e=t&&t.__esModule?()=>t.default:()=>t;return i.d(e,{a:e}),e;},i.d=(t,e)=>{for(var n in e)i.o(e,n)&&!i.o(t,n)&&Object.defineProperty(t,n,{enumerable:!0,get:e[n]});},i.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")();}catch(t){if("object"==typeof window)return window;}}(),i.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e),i.r=(t)=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0});},(()=>{var t={628:0,889:0,364:0};i.O.j=(e)=>0===t[e];var e=(e,n)=>{var o,r,[a,s,l]=n,u=0;if(a.some(((e)=>0!==t[e]))){for(o in s)i.o(s,o)&&(i.m[o]=s[o]);if(l)var c=l(i);}for(e&&e(n);u<a.length;u++)r=a[u],i.o(t,r)&&t[r]&&t[r][0](),t[r]=0;return i.O(c);},n=self.webpackChunkministry=self.webpackChunkministry||[];n.forEach(e.bind(null,0)),n.push=e.bind(null,n.push.bind(n));})(),i.O(void 0,[889,364],(()=>i(860))),i.O(void 0,[889,364],(()=>i(847)));var o=i.O(void 0,[889,364],(()=>i(536)));o=i.O(o);})();;
21/* @license GPL-2.0-or-later https://raw.githubusercontent.com/jquery-form/form/master/LICENSE */
22(function(factory){if(typeof define==='function'&&define.amd)define(['jquery'],factory);else if(typeof module==='object'&&module.exports)module.exports=function(root,jQuery){if(typeof jQuery==='undefined')if(typeof window!=='undefined')jQuery=require('jquery');else jQuery=require('jquery')(root);factory(jQuery);return jQuery;};else factory(jQuery);}(function($){'use strict';var rCRLF=/\r?\n/g;var feature={};feature.fileapi=$('<input type="file">').get(0).files!==undefined;feature.formdata=(typeof window.FormData!=='undefined');var hasProp=!!$.fn.prop;$.fn.attr2=function(){if(!hasProp)return this.attr.apply(this,arguments);var val=this.prop.apply(this,arguments);if((val&&val.jquery)||typeof val==='string')return val;return this.attr.apply(this,arguments);};$.fn.ajaxSubmit=function(options,data,dataType,onSuccess){if(!this.length){log('ajaxSubmit: ski
22pping submit process - no element selected');return this;}var method,action,url,isMsie,iframeSrc,$form=this;if(typeof options==='function')options={success:options};else if(typeof options==='string'||(options===false&&arguments.length>0)){options={'url':options,'data':data,'dataType':dataType};if(typeof onSuccess==='function')options.success=onSuccess;}else{if(typeof options==='undefined')options={};}method=options.method||options.type||this.attr2('method');action=options.url||this.attr2('action');url=(typeof action==='string')?action.trim():'';url=url||window.location.href||'';if(url)url=(url.match(/^([^#]+)/)||[])[1];isMsie=/(MSIE|Trident)/.test(navigator.userAgent||'');iframeSrc=(isMsie&&/^https/i.test(window.location.href||''))?'javascript:false':'about:blank';options=$.extend(true,{url,success:$.ajaxSettings.success,type:method||$.ajaxSettings.type,iframeSrc},options);var veto={};this.trigger('form-pre-serialize',[this,options,veto]);if(veto.veto){log('ajaxSubmit: submit vetoed via form-pre-serialize trigger');return this;}if(options.beforeSerialize&&options.beforeSerialize(this,options)===false){log('ajaxSubmit: submit aborted via beforeSerialize callback');return this;}var traditional=options.traditional;if(typeof traditional==='undefined')traditional=$.ajaxSettings.traditional;var elements=[];var qx,a=this.formToArray(options.semantic,elements,options.filtering);if(options.data){var optionsData=typeof (options.data)==="function"?options.data(a):options.data;options.extraData=optionsData;qx=$.param(optionsData,traditional);}if(options.beforeSubmit&&options.beforeSubmit(a,this,options)===false){log('ajaxSubmit: submit aborted via beforeSubmit callback');return this;}this.trigger('form-submit-validate',[a,this,options,veto]);if(veto.veto){log('ajaxSubmit: submit vetoed via form-submit-validate trigger');return this;}var q=$.param(a,traditional);if(qx)q=(q?(q+'&'+qx):qx);if(options.type.toUpperCase()==='GET'){options.url+=(options.url.indexOf('?')>=0?'&':'?')+q;options.data=null;}else options.data=q;var callbacks=[];if(options.resetForm)callbacks.push(function(){$form.resetForm();});if(options.clearForm)callbacks.push(function(){$form.clearForm(options.includeHidden);});if(!options.dataType&&options.target){var oldSuccess=options.success||function(){};callbacks.push(function(data,textStatus,jqXHR){var successArguments=arguments,fn=options.replaceTarget?'replaceWith':'html';$(options.target)[fn](data).each(function(){oldSuccess.apply(this,successArguments);});});}else{if(options.success)if(Array.isArray(options.success))callbacks=callbacks.concat(options.success);else callbacks.push(options.success);}options.success=function(data,status,xhr){var context=options.context||this;for(var i=0,max=callbacks.length;i<max;i++)callbacks[i].apply(context,[data,status,xhr||$form,$form]);};if(options.error){var oldError=options.error;options.error=function(xhr,status,error){var context=options.context||this;oldError.apply(context,[xhr,status,error,$form]);};}if(options.complete){var oldComplete=options.complete;options.complete=function(xhr,status){var context=options.context||this;oldComplete.apply(context,[xhr,status,$form]);};}var fileInputs=$('input[type=file]:enabled',this).filter(function(){return $(this).val()!=='';});var hasFileInputs=fileInputs.length>0;var mp='multipart/form-data';var multipart=($form.attr('enctype')===mp||$form.attr('encoding')===mp);var fileAPI=feature.fileapi&&feature.formdata;log('fileAPI :'+fileAPI);var shouldUseFrame=(hasFileInputs||multipart)&&!fileAPI;var jqxhr;if(options.iframe!==false&&(options.iframe||shouldUseFrame))if(options.closeKeepAlive)$.get(options.closeKeepAlive,function(){jqxhr=fileUploadIframe(a);});else jqxhr=fileUploadIframe(a);else if((hasFileInputs||multipart)&&fileAPI)jqxhr=fileUploadXhr(a);else jqxhr=$.ajax(options);$form.removeData('jqxhr').data('jqxhr',jqxhr);for(var k=0;k<elements.length;k++)elements[k]=null;this.trigger('form-submit-notify',[this,options]);return this;function deepSerialize(extraData){var serialized=$.param(extraData,options.traditional).split('&');var len=serialized.length;var result=[];var i,part;for(i=0;i<len;i++){serialized[i]=serialized[i].replace(/\+/g,' ');part=serialized[i].split('=');result.push([decodeURIComponent(part[0]),decodeURIComponent(part[1])]);}return result;}function fileUploadXhr(a){var formdata=new FormData();for(var i=0;i<a.length;i++)formdata.append(a[i].name,a[i].value);if(options.extraData){var serializedData=deepSerialize(options.extraData);for(i=0;i<serializedData.length;i++)if(serializedData[i])formdata.append(serializedData[i][0],serializedData[i][1]);}options.data=null;var s=$.extend(true,{},$.ajaxSettings,options,{contentType:false,processData:false,cache:false,type:method||'POST'});if(options.uploadProgress)s.xhr=function(){var xhr=$.ajaxSettings.xhr();if(xhr.upload)xhr.upload.addEventListener('progress',function(event){var percent=0;var position=event.loaded||event.position;var total=event.total;if(event.lengthComputable)percent=Math.ceil(position/total*100);options.uploadProgress(event,position,total,percent);},false);return xhr;};s.data=null;var beforeSend=s.beforeSend;s.beforeSend=function(xhr,o){if(options.formData)o.data=options.formData;else o.data=formdata;
22if(beforeSend)beforeSend.call(this,xhr,o);};return $.ajax(s);}function fileUploadIframe(a){var form=$form[0],el,i,s,g,id,$io,io,xhr,sub,n,timedOut,timeoutHandle;var deferred=$.Deferred();deferred.abort=function(status){xhr.abort(status);};if(a)for(i=0;i<elements.length;i++){el=$(elements[i]);if(hasProp)el.prop('disabled',false);else el.removeAttr('disabled');}s=$.extend(true,{},$.ajaxSettings,options);s.context=s.context||s;id='jqFormIO'+new Date().getTime();var ownerDocument=form.ownerDocument;var $body=$form.closest('body');if(s.iframeTarget){$io=$(s.iframeTarget,ownerDocument);n=$io.attr2('name');if(!n)$io.attr2('name',id);else id=n;}else{$io=$('<iframe name="'+id+'" src="'+s.iframeSrc+'" />',ownerDocument);$io.css({position:'absolute',top:'-1000px',left:'-1000px'});}io=$io[0];xhr={aborted:0,responseText:null,responseXML:null,status:0,statusText:'n/a',getAllResponseHeaders:function(){},getResponseHeader:function(){},setRequestHeader:function(){},abort:function(status){var e=(status==='timeout'?'timeout':'aborted');log('aborting upload... '+e);this.aborted=1;try{if(io.contentWindow.document.execCommand)io.contentWindow.document.execCommand('Stop');}catch(ignore){}$io.attr('src',s.iframeSrc);xhr.error=e;if(s.error)s.error.call(s.context,xhr,e,status);if(g)$.event.trigger('ajaxError',[xhr,s,e]);if(s.complete)s.complete.call(s.context,xhr,e);}};g=s.global;if(g&&$.active++===0)$.event.trigger('ajaxStart');if(g)$.event.trigger('ajaxSend',[xhr,s]);if(s.beforeSend&&s.beforeSend.call(s.context,xhr,s)===false){if(s.global)$.active--;deferred.reject();return deferred;}if(xhr.aborted){deferred.reject();return deferred;}sub=form.clk;if(sub){n=sub.name;if(n&&!sub.disabled){s.extraData=s.extraData||{};s.extraData[n]=sub.value;if(sub.type==='image'){s.extraData[n+'.x']=form.clk_x;s.extraData[n+'.y']=form.clk_y;}}}var CLIENT_TIMEOUT_ABORT=1;var SERVER_ABORT=2;function getDoc(frame){var doc=null;try{if(frame.contentWindow)doc=frame.contentWindow.document;}catch(err){log('cannot get iframe.contentWindow document: '+err);}if(doc)return doc;try{doc=frame.contentDocument?frame.contentDocument:frame.document;}catch(err){log('cannot get iframe.contentDocument: '+err);doc=frame.document;}return doc;}var csrf_token=$('meta[name=csrf-token]').attr('content');var csrf_param=$('meta[name=csrf-param]').attr('content');if(csrf_param&&csrf_token){s.extraData=s.extraData||{};s.extraData[csrf_param]=csrf_token;}function doSubmit(){var t=$form.attr2('target'),a=$form.attr2('action'),mp='multipart/form-data',et=$form.attr('enctype')||$form.attr('encoding')||mp;form.setAttribute('target',id);if(!method||/post/i.test(method))form.setAttribute('method','POST');if(a!==s.url)form.setAttribute('action',s.url);if(!s.skipEncodingOverride&&(!method||/post/i.test(method)))$form.attr({encoding:'multipart/form-data',enctype:'multipart/form-data'});if(s.timeout)timeoutHandle=setTimeout(function(){timedOut=true;cb(CLIENT_TIMEOUT_ABORT);},s.timeout);function checkState(){try{var state=getDoc(io).readyState;log('state = '+state);if(state&&state.toLowerCase()==='uninitialized')setTimeout(checkState,50);}catch(e){log('Server abort: ',e,' (',e.name,')');cb(SERVER_ABORT);if(timeoutHandle)clearTimeout(timeoutHandle);timeoutHandle=undefined;}}var extraInputs=[];try{if(s.extraData)for(var n in s.extraData)if(s.extraData.hasOwnProperty(n))if($.isPlainObject(s.extraData[n])&&s.extraData[n].hasOwnProperty('name')&&s.extraData[n].hasOwnProperty('value'))extraInputs.push($('<input type="hidden" name="'+s.extraData[n].name+'">',ownerDocument).val(s.extraData[n].value).appendTo(form)[0]);else extraInputs.push($('<input type="hidden" name="'+n+'">',ownerDocument).val(s.extraData[n]).appendTo(form)[0]);if(!s.iframeTarget)$io.appendTo($body);if(io.attachEvent)io.attachEvent('onload',cb);else io.addEventListener('load',cb,false);setTimeout(checkState,15);try{form.submit();}catch(err){var submitFn=document.createElement('form').submit;submitFn.apply(form);}}finally{form.setAttribute('action',a);form.setAttribute('enctype',et);if(t)form.setAttribute('target',t);else $form.removeAttr('target');$(extraInputs).remove();}}if(s.forceSync)doSubmit();else setTimeout(doSubmit,10);var data,doc,domCheckCount=50,callbackProcessed;function cb(e){if(xhr.aborted||callbackProcessed)return;doc=getDoc(io);if(!doc){log('cannot access response document');e=SERVER_ABORT;}if(e===CLIENT_TIMEOUT_ABORT&&xhr){xhr.abort('timeout');deferred.reject(xhr,'timeout');return;}if(e===SERVER_ABORT&&xhr){xhr.abort('server abort');deferred.reject(xhr,'error','server abort');return;}if(!doc||doc.location.href===s.iframeSrc)if(!timedOut)return;if(io.detachEvent)io.detachEvent('onload',cb);else io.removeEventListener('load',cb,false);var status='success',errMsg;
22try{if(timedOut)throw 'timeout';var isXml=s.dataType==='xml'||doc.XMLDocument||$.isXMLDoc(doc);log('isXml='+isXml);if(!isXml&&window.opera&&(doc.body===null||!doc.body.innerHTML))if(--domCheckCount){log('requeing onLoad callback, DOM not available');setTimeout(cb,250);return;}var docRoot=doc.body?doc.body:doc.documentElement;xhr.responseText=docRoot?docRoot.innerHTML:null;xhr.responseXML=doc.XMLDocument?doc.XMLDocument:doc;if(isXml)s.dataType='xml';xhr.getResponseHeader=function(header){var headers={'content-type':s.dataType};return headers[header.toLowerCase()];};if(docRoot){xhr.status=Number(docRoot.getAttribute('status'))||xhr.status;xhr.statusText=docRoot.getAttribute('statusText')||xhr.statusText;}var dt=(s.dataType||'').toLowerCase();var scr=/(json|script|text)/.test(dt);if(scr||s.textarea){var ta=doc.getElementsByTagName('textarea')[0];if(ta){xhr.responseText=ta.value;xhr.status=Number(ta.getAttribute('status'))||xhr.status;xhr.statusText=ta.getAttribute('statusText')||xhr.statusText;}else{if(scr){var pre=doc.getElementsByTagName('pre')[0];var b=doc.getElementsByTagName('body')[0];if(pre)xhr.responseText=pre.textContent?pre.textContent:pre.innerText;else{if(b)xhr.responseText=b.textContent?b.textContent:b.innerText;}}}}else{if(dt==='xml'&&!xhr.responseXML&&xhr.responseText)xhr.responseXML=toXml(xhr.responseText);}try{data=httpData(xhr,dt,s);}catch(err){status='parsererror';xhr.error=errMsg=(err||status);}}catch(err){log('error caught: ',err);status='error';xhr.error=errMsg=(err||status);}if(xhr.aborted){log('upload aborted');status=null;}if(xhr.status)status=((xhr.status>=200&&xhr.status<300)||xhr.status===304)?'success':'error';if(status==='success'){if(s.success)s.success.call(s.context,data,'success',xhr);deferred.resolve(xhr.responseText,'success',xhr);if(g)$.event.trigger('ajaxSuccess',[xhr,s]);}else{if(status){if(typeof errMsg==='undefined')errMsg=xhr.statusText;if(s.error)s.error.call(s.context,xhr,status,errMsg);deferred.reject(xhr,'error',errMsg);if(g)$.event.trigger('ajaxError',[xhr,s,errMsg]);}}if(g)$.event.trigger('ajaxComplete',[xhr,s]);if(g&&!--$.active)$.event.trigger('ajaxStop');if(s.complete)s.complete.call(s.context,xhr,status);callbackProcessed=true;if(s.timeout)clearTimeout(timeoutHandle);setTimeout(function(){if(!s.iframeTarget)$io.remove();else $io.attr('src',s.iframeSrc);xhr.responseXML=null;},100);}var toXml=$.parseXML||function(s,doc){if(window.ActiveXObject){doc=new ActiveXObject('Microsoft.XMLDOM');doc.async='false';doc.loadXML(s);}else doc=(new DOMParser()).parseFromString(s,'text/xml');return (doc&&doc.documentElement&&doc.documentElement.nodeName!=='parsererror')?doc:null;};var parseJSON=$.parseJSON||function(s){return window['eval']('('+s+')');};var httpData=function(xhr,type,s){var ct=xhr.getResponseHeader('content-type')||'',xml=((type==='xml'||!type)&&ct.indexOf('xml')>=0),data=xml?xhr.responseXML:xhr.responseText;if(xml&&data.documentElement.nodeName==='parsererror')if($.error)$.error('parsererror');if(s&&s.dataFilter)data=s.dataFilter(data,type);if(typeof data==='string')if((type==='json'||!type)&&ct.indexOf('json')>=0)data=parseJSON(data);else{if((type==='script'||!type)&&ct.indexOf('javascript')>=0)$.globalEval(data);}return data;};return deferred;}};$.fn.ajaxForm=function(options,data,dataType,onSuccess){if(typeof options==='string'||(options===false&&arguments.length>0)){options={'url':options,'data':data,'dataType':dataType};if(typeof onSuccess==='function')options.success=onSuccess;}options=options||{};options.delegation=options.delegation&&typeof $.fn.on==='function';if(!options.delegation&&this.length===0){var o={s:this.selector,c:this.context};if(!$.isReady&&o.s){log('DOM not ready, queuing ajaxForm');$(function(){$(o.s,o.c).ajaxForm(options);});return this;}log('terminating; zero elements found by selector'+($.isReady?'':' (DOM not ready)'));return this;}if(options.delegation){$(document).off('submit.form-plugin',this.selector,doAjaxSubmit).off('click.form-plugin',this.selector,captureSubmittingElement).on('submit.form-plugin',this.selector,options,doAjaxSubmit).on('click.form-plugin',this.selector,options,captureSubmittingElement);return this;}if(options.beforeFormUnbind)options.beforeFormUnbind(this,options);return this.ajaxFormUnbind().on('submit.form-plugin',options,doAjaxSubmit).on('click.form-plugin',options,captureSubmittingElement);};function doAjaxSubmit(e){var options=e.data;if(!e.isDefaultPrevented()){e.preventDefault();$(e.target).closest('form').ajaxSubmit(options);}}function captureSubmittingElement(e){var target=e.target;var $el=$(target);if(!$el.is('[type=submit],[type=image]')){var t=$el.closest('[type=submit]');if(t.length===0)return;target=t[0];}var form=target.form;form.clk=target;if(target.type==='image')if(typeof e.offsetX!=='undefined'){form.clk_x=e.offsetX;form.clk_y=e.offsetY;}else if(typeof $.fn.offset==='function'){var offset=$el.offset();form.clk_x=e.pageX-offset.left;form.clk_y=e.pageY-offset.top;}else{form.clk_x=e.pageX-target.offsetLeft;form.clk_y=e.pageY-target.offsetTop;}setTimeout(function(){form.clk=form.clk_x=form.clk_y=null;},100);}$.fn.ajaxFormUnbind=function(){return this.off('submit.form-plugin click.form-plugin');};$.fn.formToArray=function(semantic,elements,filtering){var a=[];if(this.length===0)return a;var form=this[0];var formId=this.attr('id');var els=(semantic||typeof form.elements==='undefined')?form.getElementsByTagName('*'):form.elements;var els2;if(els)els=$.makeArray(els);if(formId&&(semantic||/(Edge|Trident)\//.test(navigator.userAgent))){els2=$(':input[form="'+formId+'"]').get();if(els2.length)els=(els||[]).concat(els2);}if(!els||!els.length)return a;
22if(typeof (filtering)==="function")els=$.map(els,filtering);var i,j,n,v,el,max,jmax;for(i=0,max=els.length;i<max;i++){el=els[i];n=el.name;if(!n||el.disabled)continue;if(semantic&&form.clk&&el.type==='image'){if(form.clk===el){a.push({name:n,value:$(el).val(),type:el.type});a.push({name:n+'.x',value:form.clk_x},{name:n+'.y',value:form.clk_y});}continue;}v=$.fieldValue(el,true);if(v&&v.constructor===Array){if(elements)elements.push(el);for(j=0,jmax=v.length;j<jmax;j++)a.push({name:n,value:v[j]});}else if(feature.fileapi&&el.type==='file'){if(elements)elements.push(el);var files=el.files;if(files.length)for(j=0;j<files.length;j++)a.push({name:n,value:files[j],type:el.type});else a.push({name:n,value:'',type:el.type});}else{if(v!==null&&typeof v!=='undefined'){if(elements)elements.push(el);a.push({name:n,value:v,type:el.type,required:el.required});}}}if(!semantic&&form.clk){var $input=$(form.clk),input=$input[0];n=input.name;if(n&&!input.disabled&&input.type==='image'){a.push({name:n,value:$input.val()});a.push({name:n+'.x',value:form.clk_x},{name:n+'.y',value:form.clk_y});}}return a;};$.fn.formSerialize=function(semantic){return $.param(this.formToArray(semantic));};$.fn.fieldSerialize=function(successful){var a=[];this.each(function(){var n=this.name;if(!n)return;var v=$.fieldValue(this,successful);if(v&&v.constructor===Array)for(var i=0,max=v.length;i<max;i++)a.push({name:n,value:v[i]});else{if(v!==null&&typeof v!=='undefined')a.push({name:this.name,value:v});}});return $.param(a);};$.fn.fieldValue=function(successful){for(var val=[],i=0,max=this.length;i<max;i++){var el=this[i];var v=$.fieldValue(el,successful);if(v===null||typeof v==='undefined'||(v.constructor===Array&&!v.length))continue;if(Array.isArray(v))val=val.concat(v);else val.push(v);}return val;};$.fieldValue=function(el,successful){var n=el.name,t=el.type,tag=el.tagName.toLowerCase();if(typeof successful==='undefined')successful=true;if(successful&&(!n||el.disabled||t==='reset'||t==='button'||(t==='checkbox'||t==='radio')&&!el.checked||(t==='submit'||t==='image')&&el.form&&el.form.clk!==el||tag==='select'&&el.selectedIndex===-1))return null;if(tag==='select'){var index=el.selectedIndex;if(index<0)return null;var a=[],ops=el.options;var one=(t==='select-one');var max=(one?index+1:ops.length);for(var i=(one?index:0);i<max;i++){var op=ops[i];if(op.selected&&!op.disabled){var v=op.value;if(!v)v=(op.attributes&&op.attributes.value&&!(op.attributes.value.specified))?op.text:op.value;if(one)return v;a.push(v);}}return a;}return $(el).val().replace(rCRLF,'\r\n');};$.fn.clearForm=function(includeHidden){return this.each(function(){$('input,select,textarea',this).clearFields(includeHidden);});};$.fn.clearFields=$.fn.clearInputs=function(includeHidden){var re=/^(?:color|date|datetime|email|month|number|password|range|search|tel|text|time|url|week)$/i;return this.each(function(){var t=this.type,tag=this.tagName.toLowerCase();if(re.test(t)||tag==='textarea')this.value='';else if(t==='checkbox'||t==='radio')this.checked=false;else if(tag==='select')this.selectedIndex=-1;else if(t==='file')if(/MSIE/.test(navigator.userAgent))$(this).replaceWith($(this).clone(true));else $(this).val('');else{if(includeHidden)if((includeHidden===true&&/hidden/.test(t))||(typeof includeHidden==='string'&&$(this).is(includeHidden)))this.value='';}});};$.fn.resetForm=function(){return this.each(function(){var el=$(this);var tag=this.tagName.toLowerCase();switch(tag){case 'input':this.checked=this.defaultChecked;case 'textarea':this.value=this.defaultValue;return true;case 'option':case 'optgroup':var select=el.parents('select');if(select.length&&select[0].multiple)if(tag==='option')this.selected=this.defaultSelected;else el.find('option').resetForm();else select.resetForm();return true;case 'select':el.find('option').each(function(i){this.selected=this.defaultSelected;if(this.defaultSelected&&!el[0].multiple){el[0].selectedIndex=i;return false;}});return true;case 'label':var forEl=$(el.attr('for'));var list=el.find('input,select,textarea');if(forEl[0])list.unshift(forEl[0]);list.resetForm();return true;case 'form':if(typeof this.reset==='function'||(typeof this.reset==='object'&&!this.reset.nodeType))this.reset();return true;default:el.find('form,input,label,select,textarea').resetForm();return true;}}
22);};$.fn.enable=function(b){if(typeof b==='undefined')b=true;return this.each(function(){this.disabled=!b;});};$.fn.selected=function(select){if(typeof select==='undefined')select=true;return this.each(function(){var t=this.type;if(t==='checkbox'||t==='radio')this.checked=select;else{if(this.tagName.toLowerCase()==='option'){var $sel=$(this).parent('select');if(select&&$sel[0]&&$sel[0].type==='select-one')$sel.find('option').selected(false);this.selected=select;}}});};$.fn.ajaxSubmit.debug=false;function log(){if(!$.fn.ajaxSubmit.debug)return;var msg='[jquery.form] '+Array.prototype.join.call(arguments,'');if(window.console&&window.console.log)window.console.log(msg);else{if(window.opera&&window.opera.postError)window.opera.postError(msg);}}}));;
23/* @license GPL-2.0-or-later https://www.drupal.org/licensing/faq */
24(function($,Drupal){Drupal.theme.progressBar=function(id){const escapedId=Drupal.checkPlain(id);return (`<div id="${escapedId}" class="progress" aria-live="polite">`+'<div class="progress__label">&nbsp;</div>'+'<div class="progress__track"><div class="progress__bar"></div></div>'+'<div class="progress__percentage"></div>'+'<div class="progress__description">&nbsp;</div>'+'</div>');};Drupal.ProgressBar=function(id,updateCallback,method,errorCallback){this.id=id;this.method=method||'GET';this.updateCallback=updateCallback;this.errorCallback=errorCallback;this.element=$(Drupal.theme('progressBar',id));};$.extend(Drupal.ProgressBar.prototype,{setProgress(percentage,message,label){if(percentage>=0&&percentage<=100){$(this.element).find('div.progress__bar').each(function(){this.style.width=`${percentage}%`;});$(this.element).find('div.progress__percentage').html(`${percentage}%`);}$('div.progress__description',this.element).html(message);$('div.progress__label',this.element).html(label);if(this.updateCallback)this.updateCallback(percentage,message,this);},startMonitoring(uri,delay){this.delay=delay;this.uri=uri;this.sendPing();},stopMonitoring(){clearTimeout(this.timer);this.uri=null;},sendPing(){if(this.timer)clearTimeout(this.timer);if(this.uri){const pb=this;let uri=this.uri;if(!uri.includes('?'))uri+='?';else uri+='&';uri+='_format=json';$.ajax({type:this.method,url:uri,data:'',dataType:'json',success(progress){if(progress.status===0){pb.displayError(progress.data);return;}pb.setProgress(progress.percentage,progress.message,progress.label);pb.timer=setTimeout(()=>{pb.sendPing();},pb.delay);},error(xmlhttp){const e=new Drupal.AjaxError(xmlhttp,pb.uri);pb.displayError(`<pre>${e.message}</pre>`);}});}},displayError(string){const error=$('<div class="messages messages--error"></div>').html(string);$(this.element).before(error).hide();if(this.errorCallback)this.errorCallback(this);}});})(jQuery,Drupal);;
25/* @license MIT https://raw.githubusercontent.com/muicss/loadjs/4.3.0/LICENSE.txt */
26loadjs=function(){var h=function(){},o={},c={},f={};function u(e,n){if(e){var t=f[e];if(c[e]=n,t)for(;t.length;)t[0](e,n),t.splice(0,1)}}function l(e,n){e.call&&(e={success:e}),n.length?(e.error||h)(n):(e.success||h)(e)}function p(t,r,i,s){var o,e,u,n=document,c=i.async,f=(i.numRetries||0)+1,l=i.before||h,a=t.replace(/[\?|#].*$/,""),d=t.replace(/^(css|img|module|nomodule)!/,"");if(s=s||0,/(^css!|\.css$)/.test(a))(u=n.createElement("link")).rel="stylesheet",u.href=d,(o="hideFocus"in u)&&u.relList&&(o=0,u.rel="preload",u.as="style");else if(/(^img!|\.(png|gif|jpg|svg|webp)$)/.test(a))(u=n.createElement("img")).src=d;else if((u=n.createElement("script")).src=d,u.async=void 0===c||c,e="noModule"in u,/^module!/.test(a)){if(!e)return r(t,"l");u.type="module"}else if(/^nomodule!/.test(a)&&e)return r(t,"l");!(u.onload=u.onerror=u.onbeforeload=function(e){var n=e.type[0];if(o)try{u.sheet.cssText.length||(n="e")}catch(e){18!=e.code&&(n="e")}if("e"==n){if((s+=1)<f)return p(t,r,i,s)}else if("preload"==u.rel&&"style"==u.as)return u.rel="stylesheet";r(t,n,e.defaultPrevented)})!==l(t,u)&&n.head.appendChild(u)}function t(e,n,t){var r,i;if(n&&n.trim&&(r=n),i=(r?t:n)||{},r){if(r in o)throw"LoadJS";o[r]=!0}function s(n,t){!function(e,r,n){var t,i,s=(e=e.push?e:[e]).length,o=s,u=[];for(t=function(e,n,t){if("e"==n&&u.push(e),"b"==n){if(!t)return;u.push(e)}--s||r(u)},i=0;i<o;i++)p(e[i],t,n)}(e,function(e){l(i,e),n&&l({success:n,error:t},e),u(r,e)},i)}if(i.returnPromise)return new Promise(s);s()}return t.ready=function(e,n){return function(e,t){e=e.push?e:[e];var n,r,i,s=[],o=e.length,u=o;
26for(n=function(e,n){n.length&&s.push(e),--u||t(s)};o--;)r=e[o],(i=c[r])?n(r,i):(f[r]=f[r]||[]).push(n)}(e,function(e){l(n,e)}),t},t.done=function(e){u(e,[])},t.reset=function(){o={},c={},f={}},t.isDefined=function(e){return e in o},t}();;
27/* @license GPL-2.0-or-later https://www.drupal.org/licensing/faq */
28(function(Drupal,debounce){let liveElement;const announcements=[];Drupal.behaviors.drupalAnnounce={attach(context){if(!liveElement){liveElement=document.createElement('div');liveElement.id='drupal-live-announce';liveElement.className='visually-hidden';liveElement.setAttribute('aria-live','polite');liveElement.setAttribute('aria-busy','false');document.body.appendChild(liveElement);}}};function announce(){const text=[];let priority='polite';let announcement;const il=announcements.length;for(let i=0;i<il;i++){announcement=announcements.pop();text.unshift(announcement.text);if(announcement.priority==='assertive')priority='assertive';}if(text.length){liveElement.innerHTML='';liveElement.setAttribute('aria-busy','true');liveElement.setAttribute('aria-live',priority);liveElement.innerHTML=text.join('\n');liveElement.setAttribute('aria-busy','false');}}Drupal.announce=function(text,priority){announcements.push({text,priority});return debounce(announce,200)();};})(Drupal,Drupal.debounce);;
29((Drupal)=>{Drupal.Message=class{constructor(messageWrapper=null){if(!messageWrapper)this.messageWrapper=Drupal.Message.defaultWrapper();else this.messageWrapper=messageWrapper;}static defaultWrapper(){let wrapper=document.querySelector('[data-drupal-messages]')||document.querySelector('[data-drupal-messages-fallback]');if(!wrapper){wrapper=document.createElement('div');document.body.appendChild(wrapper);}if(wrapper.hasAttribute('data-drupal-messages-fallback')){wrapper.removeAttribute('data-drupal-messages-fallback');wrapper.classList.remove('hidden');}wrapper.setAttribute('data-drupal-messages','');return wrapper.innerHTML===''?Drupal.Message.messageInternalWrapper(wrapper):wrapper.firstElementChild;}static getMessageTypeLabels(){return {status:Drupal.t('Status message'),error:Drupal.t('Error message'),warning:Drupal.t('Warning message')};}add(message,options={}){if(!options.hasOwnProperty('type'))options.type='status';if(typeof message!=='string')throw new Error('Message must be a string.');Drupal.Message.announce(message,options);options.id=options.id?String(options.id):`${options.type}-${Math.random().toFixed(15).replace('0.','')}`;if(!Drupal.Message.getMessageTypeLabels().hasOwnProperty(options.type)){const {type}=options;throw new Error(`The message type, ${type}, is not present in Drupal.Message.getMessageTypeLabels().`);}this.messageWrapper.appendChild(Drupal.theme('message',{text:message},options));return options.id;}select(id){return this.messageWrapper.querySelector(`[data-drupal-message-id^="${id}"]`);}remove(id){return this.messageWrapper.removeChild(this.select(id));}clear(){Array.prototype.forEach.call(this.messageWrapper.querySelectorAll('[data-drupal-message-id]'),(message)=>{this.messageWrapper.removeChild(message);});}static announce(message,options){if(!options.priority&&(options.type==='warning'||options.type==='error'))options.priority='assertive';if(options.announce!=='')Drupal.announce(options.announce||message,options.priority);}static messageInternalWrapper(messageWrapper){const innerWrapper=document.createElement('div');innerWrapper.setAttribute('class','messages__wrapper');messageWrapper.insertAdjacentElement('afterbegin',innerWrapper);return innerWrapper;}};Drupal.theme.message=({text},{type,id})=>{const messagesTypes=Drupal.Message.getMessageTypeLabels();const messageWrapper=document.createElement('div');messageWrapper.setAttribute('class',`messages messages--${type}`);messageWrapper.setAttribute('role',type==='error'||type==='warning'?'alert':'status');messageWrapper.setAttribute('data-drupal-message-id',id);messageWrapper.setAttribute('data-drupal-message-type',type);messageWrapper.setAttribute('aria-label',messagesTypes[type]);messageWrapper.innerHTML=`${text}`;return messageWrapper;};})(Drupal);;
30(function($,window,Drupal,drupalSettings,loadjs,{isFocusable,tabbable}){Drupal.behaviors.AJAX={attach(context,settings){function loadAjaxBehavior(base){const elementSettings=settings.ajax[base];if(typeof elementSettings.selector==='undefined')elementSettings.selector=`#${base}`;
30once('drupal-ajax',$(elementSettings.selector)).forEach((el)=>{elementSettings.element=el;elementSettings.base=base;Drupal.ajax(elementSettings);});}Object.keys(settings.ajax||{}).forEach(loadAjaxBehavior);Drupal.ajax.bindAjaxLinks(document.body);once('ajax','.use-ajax-submit').forEach((el)=>{const elementSettings={};elementSettings.url=$(el.form).attr('action');elementSettings.setClick=true;elementSettings.event='click';elementSettings.progress={type:'throbber'};elementSettings.base=el.id;elementSettings.element=el;Drupal.ajax(elementSettings);});},detach(context,settings,trigger){if(trigger==='unload')Drupal.ajax.expired().forEach((instance)=>{Drupal.ajax.instances[instance.instanceIndex]=null;});}};Drupal.AjaxError=function(xmlhttp,uri,customMessage){let statusCode;let statusText;let responseText;if(xmlhttp.status)statusCode=`\n${Drupal.t('An AJAX HTTP error occurred.')}\n${Drupal.t('HTTP Result Code: !status',{'!status':xmlhttp.status})}`;else statusCode=`\n${Drupal.t('An AJAX HTTP request terminated abnormally.')}`;statusCode+=`\n${Drupal.t('Debugging information follows.')}`;const pathText=`\n${Drupal.t('Path: !uri',{'!uri':uri})}`;statusText='';try{statusText=`\n${Drupal.t('StatusText: !statusText',{'!statusText':xmlhttp.statusText.trim()})}`;}catch(e){}responseText='';try{responseText=`\n${Drupal.t('ResponseText: !responseText',{'!responseText':xmlhttp.responseText.trim()})}`;}catch(e){}responseText=responseText.replace(/<("[^"]*"|'[^']*'|[^'">])*>/gi,'');responseText=responseText.replace(/[\n]+\s+/g,'\n');const readyStateText=xmlhttp.status===0?`\n${Drupal.t('ReadyState: !readyState',{'!readyState':xmlhttp.readyState})}`:'';customMessage=customMessage?`\n${Drupal.t('CustomMessage: !customMessage',{'!customMessage':customMessage})}`:'';this.message=statusCode+pathText+statusText+customMessage+responseText+readyStateText;this.name='AjaxError';if(!Drupal.AjaxError.messages)Drupal.AjaxError.messages=new Drupal.Message();Drupal.AjaxError.messages.add(Drupal.t("Oops, something went wrong. Check your browser's developer console for more details."),{type:'error'});};Drupal.AjaxError.prototype=new Error();Drupal.AjaxError.prototype.constructor=Drupal.AjaxError;Drupal.ajax=function(settings){if(arguments.length!==1)throw new Error('Drupal.ajax() function must be called with one configuration object only');const base=settings.base||false;const element=settings.element||false;delete settings.base;delete settings.element;if(!settings.progress&&!element)settings.progress=false;const ajax=new Drupal.Ajax(base,element,settings);ajax.instanceIndex=Drupal.ajax.instances.length;Drupal.ajax.instances.push(ajax);return ajax;};Drupal.ajax.instances=[];Drupal.ajax.expired=function(){return Drupal.ajax.instances.filter((instance)=>instance&&instance.element!==false&&!document.body.contains(instance.element));};Drupal.ajax.bindAjaxLinks=(element)=>{once('ajax','.use-ajax',element).forEach((ajaxLink)=>{const $linkElement=$(ajaxLink);const elementSettings={progress:{type:'throbber'},dialogType:$linkElement.data('dialog-type'),dialog:$linkElement.data('dialog-options'),dialogRenderer:$linkElement.data('dialog-renderer'),base:$linkElement.attr('id'),element:ajaxLink};const href=$linkElement.attr('href');if(href){elementSettings.url=href;elementSettings.event='click';}const httpMethod=$linkElement.data('ajax-http-method');if(httpMethod)elementSettings.httpMethod=httpMethod;Drupal.ajax(elementSettings);});};Drupal.Ajax=function(base,element,elementSettings){const defaults={httpMethod:'POST',event:element?'mousedown':null,keypress:true,selector:base?`#${base}`:null,effect:'none',speed:'none',method:'replaceWith',progress:{type:'throbber',message:Drupal.t('Processing...')},submit:{js:true}};$.extend(this,defaults,elementSettings);this.commands=new Drupal.AjaxCommands();this.instanceIndex=false;if(this.wrapper)this.wrapper=`#${this.wrapper}`;this.element=element;this.preCommandsFocusedElementSelector=null;this.elementSettings=elementSettings;if(this.element&&this.element.form)this.$form=$(this.element.form);if(!this.url){const $element=$(this.element);if(this.element.tagName==='A')this.url=$element.attr('href');else{if(this.element&&element.form)this.url=this.$form.attr('action');}}const originalUrl=this.url;this.url=this.url.replace(/\/nojs(\/|$|\?|#)/,'/ajax$1');if(drupalSettings.ajaxTrustedUrl[originalUrl])drupalSettings.ajaxTrustedUrl[this.url]=true;const ajax=this;ajax.options={url:ajax.url,data:ajax.submit,isInProgress(){return ajax.ajaxing;},beforeSerialize(elementSettings,options){return ajax.beforeSerialize(elementSettings,options);},beforeSubmit(formValues,elementSettings,options){ajax.ajaxing=true;ajax.preCommandsFocusedElementSelector=null;return ajax.beforeSubmit(formValues,elementSettings,options);},beforeSend(xmlhttprequest,options){ajax.ajaxing=true;return ajax.beforeSend(xmlhttprequest,options);},success(response,status,xmlhttprequest){ajax.preCommandsFocusedElementSelector=document.activeElement.getAttribute('data-drupal-selector');if(typeof response==='string')response=$.parseJSON(response);if(response!==null&&!drupalSettings.ajaxTrustedUrl[ajax.url])if(xmlhttprequest.getResponseHeader('X-Drupal-Ajax-Token')!=='1'){const customMessage=Drupal.t('The response failed verification so will not be processed.');return ajax.error(xmlhttprequest,ajax.url,customMessage);}return (Promise.resolve(ajax.success(response,status)).then(()=>{ajax.ajaxing=false;
30$(document).trigger('ajaxSuccess',[xmlhttprequest,this]);$(document).trigger('ajaxComplete',[xmlhttprequest,this]);if(--$.active===0)$(document).trigger('ajaxStop');}));},error(xmlhttprequest,status,error){ajax.ajaxing=false;},complete(xmlhttprequest,status){if(status==='error'||status==='parsererror')return ajax.error(xmlhttprequest,ajax.url);},dataType:'json',jsonp:false,method:ajax.httpMethod};if(elementSettings.dialog)ajax.options.data.dialogOptions=elementSettings.dialog;if(!ajax.options.url.includes('?'))ajax.options.url+='?';else ajax.options.url+='&';let wrapper=`drupal_${elementSettings.dialogType||'ajax'}`;if(elementSettings.dialogRenderer)wrapper+=`.${elementSettings.dialogRenderer}`;ajax.options.url+=`${Drupal.ajax.WRAPPER_FORMAT}=${wrapper}`;$(ajax.element).on(elementSettings.event,function(event){if(!drupalSettings.ajaxTrustedUrl[ajax.url]&&!Drupal.url.isLocal(ajax.url))throw new Error(Drupal.t('The callback URL is not local and not trusted: !url',{'!url':ajax.url}));return ajax.eventResponse(this,event);});if(elementSettings.keypress)$(ajax.element).on('keypress',function(event){return ajax.keypressResponse(this,event);});if(elementSettings.prevent)$(ajax.element).on(elementSettings.prevent,false);};Drupal.ajax.WRAPPER_FORMAT='_wrapper_format';Drupal.Ajax.AJAX_REQUEST_PARAMETER='_drupal_ajax';Drupal.Ajax.prototype.execute=function(){if(this.ajaxing)return;try{this.beforeSerialize(this.element,this.options);return $.ajax(this.options);}catch(e){this.ajaxing=false;window.alert(`An error occurred while attempting to process ${this.options.url}: ${e.message}`);return $.Deferred().reject();}};Drupal.Ajax.prototype.keypressResponse=function(element,event){const ajax=this;if(event.which===13||(event.which===32&&element.type!=='text'&&element.type!=='textarea'&&element.type!=='tel'&&element.type!=='number')){event.preventDefault();event.stopPropagation();$(element).trigger(ajax.elementSettings.event);}};Drupal.Ajax.prototype.eventResponse=function(element,event){event.preventDefault();event.stopPropagation();const ajax=this;if(ajax.ajaxing)return;try{if(ajax.$form){if(ajax.setClick)element.form.clk=element;ajax.$form.ajaxSubmit(ajax.options);}else{ajax.beforeSerialize(ajax.element,ajax.options);$.ajax(ajax.options);}}catch(e){ajax.ajaxing=false;window.alert(`An error occurred while attempting to process ${ajax.options.url}: ${e.message}`);}};Drupal.Ajax.prototype.beforeSerialize=function(element,options){if(this.$form&&document.body.contains(this.$form.get(0))){const settings=this.settings||drupalSettings;Drupal.detachBehaviors(this.$form.get(0),settings,'serialize');}options.data[Drupal.Ajax.AJAX_REQUEST_PARAMETER]=1;const pageState=drupalSettings.ajaxPageState;options.data['ajax_page_state[theme]']=pageState.theme;options.data['ajax_page_state[theme_token]']=pageState.theme_token;options.data['ajax_page_state[libraries]']=pageState.libraries;};Drupal.Ajax.prototype.beforeSubmit=function(formValues,element,options){};Drupal.Ajax.prototype.beforeSend=function(xmlhttprequest,options){if(this.$form){options.extraData=options.extraData||{};options.extraData.ajax_iframe_upload='1';const v=$.fieldValue(this.element);if(v!==null)options.extraData[this.element.name]=v;}$(this.element).prop('disabled',true);if(!this.progress||!this.progress.type)return;const progressIndicatorMethod=`setProgressIndicator${this.progress.type.slice(0,1).toUpperCase()}${this.progress.type.slice(1).toLowerCase()}`;if(progressIndicatorMethod in this&&typeof this[progressIndicatorMethod]==='function')this[progressIndicatorMethod].call(this);};Drupal.theme.ajaxProgressThrobber=(message)=>{const messageMarkup=typeof message==='string'?Drupal.theme('ajaxProgressMessage',message):'';const throbber='<div class="throbber">&nbsp;</div>';return `<div class="ajax-progress ajax-progress-throbber">${throbber}${messageMarkup}</div>`;};Drupal.theme.ajaxProgressIndicatorFullscreen=()=>'<div class="ajax-progress ajax-progress-fullscreen">&nbsp;</div>';Drupal.theme.ajaxProgressMessage=(message)=>`<div class="message">${message}</div>`;Drupal.theme.ajaxProgressBar=($element)=>$('<div class="ajax-progress ajax-progress-bar"></div>').append($element);Drupal.Ajax.prototype.setProgressIndicatorBar=function(){const progressBar=new Drupal.ProgressBar(`ajax-progress-${this.element.i
30d}`,$.noop,this.progress.method,$.noop);if(this.progress.message)progressBar.setProgress(-1,this.progress.message);if(this.progress.url)progressBar.startMonitoring(this.progress.url,this.progress.interval||1500);this.progress.element=$(Drupal.theme('ajaxProgressBar',progressBar.element));this.progress.object=progressBar;$(this.element).after(this.progress.element);};Drupal.Ajax.prototype.setProgressIndicatorThrobber=function(){this.progress.element=$(Drupal.theme('ajaxProgressThrobber',this.progress.message));if($(this.element).closest('[data-drupal-ajax-container]').length)$(this.element).closest('[data-drupal-ajax-container]').after(this.progress.element);else $(this.element).after(this.progress.element);};Drupal.Ajax.prototype.setProgressIndicatorFullscreen=function(){this.progress.element=$(Drupal.theme('ajaxProgressIndicatorFullscreen'));$('body').append(this.progress.element);};Drupal.Ajax.prototype.commandExecutionQueue=function(response,status){const ajaxCommands=this.commands;return Object.keys(response||{}).reduce((executionQueue,key)=>executionQueue.then(()=>{const {command}=response[key];if(command&&ajaxCommands[command])return ajaxCommands[command](this,response[key],status);}),Promise.resolve());};Drupal.Ajax.prototype.success=function(response,status){if(this.progress.element)$(this.progress.element).remove();if(this.progress.object)this.progress.object.stopMonitoring();$(this.element).prop('disabled',false);const elementParents=$(this.element).parents('[data-drupal-selector]').addBack().toArray();const focusChanged=Object.keys(response||{}).some((key)=>{const {command,method}=response[key];return (command==='focusFirst'||command==='openDialog'||(command==='invoke'&&method==='focus'));});return (this.commandExecutionQueue(response,status).then(()=>{if(!focusChanged){let target=false;if(this.element){if($(this.element).data('refocus-blur')&&this.preCommandsFocusedElementSelector)target=document.querySelector(`[data-drupal-selector="${this.preCommandsFocusedElementSelector}"]`);if(!target&&!$(this.element).data('disable-refocus')){for(let n=elementParents.length-1;!target&&n>=0;n--)target=document.querySelector(`[data-drupal-selector="${elementParents[n].getAttribute('data-drupal-selector')}"]`);}}if(target)$(target).trigger('focus');}if(this.$form&&document.body.contains(this.$form.get(0))){const settings=this.settings||drupalSettings;Drupal.attachBehaviors(this.$form.get(0),settings);}this.settings=null;}).catch((error)=>console.error(Drupal.t('An error occurred during the execution of the Ajax response: !error',{'!error':error}))));};Drupal.Ajax.prototype.getEffect=function(response){const type=response.effect||this.effect;const speed=response.speed||this.speed;const effect={};if(type==='none'){effect.showEffect='show';effect.hideEffect='hide';effect.showSpeed='';}else if(type==='fade'){effect.showEffect='fadeIn';effect.hideEffect='fadeOut';effect.showSpeed=speed;}else{effect.showEffect=`${type}Toggle`;effect.hideEffect=`${type}Toggle`;effect.showSpeed=speed;}return effect;};Drupal.Ajax.prototype.error=function(xmlhttprequest,uri,customMessage){if(this.progress.element)$(this.progress.element).remove();if(this.progress.object)this.progress.object.stopMonitoring();$(this.wrapper).show();$(this.element).prop('disabled',false);if(this.$form&&document.body.contains(this.$form.get(0))){const settings=this.settings||drupalSettings;Drupal.attachBehaviors(this.$form.get(0),settings);}throw new Drupal.AjaxError(xmlhttprequest,uri,customMessage);};Drupal.theme.ajaxWrapperNewContent=($newContent,ajax,response)=>(response.effect||ajax.effect)!=='none'&&$newContent.filter((i)=>!(($newContent[i].nodeName==='#comment'||($newContent[i].nodeName==='#text'&&/^(\s|\n|\r)*$/.test($newContent[i].textContent))))).length>1?Drupal.theme('ajaxWrapperMultipleRootElements',$newContent):$newContent;Drupal.theme.ajaxWrapperMultipleRootElements=($elements)=>$('<div></div>').append($elements);Drupal.AjaxCommands=function(){};Drupal.AjaxCommands.prototype={insert(ajax,response){const $wrapper=response.selector?$(response.selector):$(ajax.wrapper);const method=response.method||ajax.method;const effect=ajax.getEffect(response);const settings=response.settings||ajax.settings||drupalSettings;const parseHTML=(htmlString)=>{const fragment=document.createDocumentFragment();const template=fragment.appendChild(document.createElement('template'));template.innerHTML=htmlString;return template.content.childNodes;};let $newContent=$(parseHTML(response.data));
30$newContent=Drupal.theme('ajaxWrapperNewContent',$newContent,ajax,response);switch(method){case 'html':case 'replaceWith':case 'replaceAll':case 'empty':case 'remove':Drupal.detachBehaviors($wrapper.get(0),settings);break;default:break;}$wrapper[method]($newContent);if(effect.showEffect!=='show')$newContent.hide();const $ajaxNewContent=$newContent.find('.ajax-new-content');if($ajaxNewContent.length){$ajaxNewContent.hide();$newContent.show();$ajaxNewContent[effect.showEffect](effect.showSpeed);}else{if(effect.showEffect!=='show')$newContent[effect.showEffect](effect.showSpeed);}$newContent.each((index,element)=>{if(element.nodeType===Node.ELEMENT_NODE&&document.documentElement.contains(element))Drupal.attachBehaviors(element,settings);});},remove(ajax,response,status){const settings=response.settings||ajax.settings||drupalSettings;$(response.selector).each(function(){Drupal.detachBehaviors(this,settings);}).remove();},changed(ajax,response,status){const $element=$(response.selector);if(!$element.hasClass('ajax-changed')){$element.addClass('ajax-changed');if(response.asterisk)$element.find(response.asterisk).append(` <abbr class="ajax-changed" title="${Drupal.t('Changed')}">*</abbr> `);}},alert(ajax,response,status){window.alert(response.text);},announce(ajax,response){if(response.priority)Drupal.announce(response.text,response.priority);else Drupal.announce(response.text);},redirect(ajax,response,status){window.location=response.url;},css(ajax,response,status){$(response.selector).css(response.argument);},settings(ajax,response,status){const ajaxSettings=drupalSettings.ajax;if(ajaxSettings)Drupal.ajax.expired().forEach((instance)=>{if(instance.selector){const selector=instance.selector.replace('#','');if(selector in ajaxSettings)delete ajaxSettings[selector];}});if(response.merge)$.extend(true,drupalSettings,response.settings);else ajax.settings=response.settings;},data(ajax,response,status){$(response.selector).data(response.name,response.value);},focusFirst(ajax,response,status){let focusChanged=false;const container=document.querySelector(response.selector);if(container){const tabbableElements=tabbable(container);if(tabbableElements.length){tabbableElements[0].focus();focusChanged=true;}else{if(isFocusable(container)){container.focus();focusChanged=true;}}}if(ajax.hasOwnProperty('element')&&!focusChanged)ajax.element.focus();},invoke(ajax,response,status){const $element=$(response.selector);$element[response.method](...response.args);},restripe(ajax,response,status){$(response.selector).find('> tbody > tr:visible, > tr:visible').removeClass('odd even').filter(':even').addClass('odd').end().filter(':odd').addClass('even');},update_build_id(ajax,response,status){document.querySelectorAll(`input[name="form_build_id"][value="${response.old}"]`).forEach((item)=>{item.value=response.new;});},add_css(ajax,response,status){if(typeof response.data==='string'){Drupal.deprecationError({message:'Passing a string to the Drupal.ajax.add_css() method is deprecated in 10.1.0 and is removed from drupal:11.0.0. See https://www.drupal.org/node/3154948.'});$('head').prepend(response.data);return;}const allUniqueBundleIds=response.data.map(function(style){const uniqueBundleId=style.href;if(!loadjs.isDefined(uniqueBundleId))loadjs(`css!${style.href}`,uniqueBundleId,{before(path,styleEl){Object.keys(style).forEach((attributeKey)=>{styleEl.setAttribute(attributeKey,style[attributeKey]);});}});return uniqueBundleId;});return new Promise((resolve,reject)=>{loadjs.ready(allUniqueBundleIds,{success(){resolve();},error(depsNotFound){const message=Drupal.t(`The following files could not be loaded: @dependencies`,{'@dependencies':depsNotFound.join(', ')});reject(message);}});});},message(ajax,response){const messages=new Drupal.Message(document.querySelector(response.messageWrapperQuerySelector));if(response.clearPrevious)messages.clear();messages.add(response.message,response.messageOptions);},add_js(ajax,response,status){const parentEl=document.querySelector(response.selector||'body');const settings=ajax.settings||drupalSettings;const allUniqueBundleIds=response.data.map((script)=>{const uniqueBundleId=script.src;
30if(!loadjs.isDefined(uniqueBundleId))loadjs(script.src,uniqueBundleId,{async:false,before(path,scriptEl){Object.keys(script).forEach((attributeKey)=>{scriptEl.setAttribute(attributeKey,script[attributeKey]);});parentEl.appendChild(scriptEl);return false;}});return uniqueBundleId;});return new Promise((resolve,reject)=>{loadjs.ready(allUniqueBundleIds,{success(){Drupal.attachBehaviors(parentEl,settings);resolve();},error(depsNotFound){const message=Drupal.t(`The following files could not be loaded: @dependencies`,{'@dependencies':depsNotFound.join(', ')});reject(message);}});});},scrollTop(ajax,response){document.querySelector(response.selector)?.scrollIntoView();}};const stopEvent=(xhr,settings)=>{return (xhr.getResponseHeader('X-Drupal-Ajax-Token')==='1'&&settings.isInProgress&&settings.isInProgress());};$.extend(true,$.event.special,{ajaxSuccess:{trigger(event,xhr,settings){if(stopEvent(xhr,settings))return false;}},ajaxComplete:{trigger(event,xhr,settings){if(stopEvent(xhr,settings)){$.active++;return false;}}}});})(jQuery,window,Drupal,drupalSettings,loadjs,window.tabbable);;
31(function($,Drupal,drupalSettings){Drupal.Views={};Drupal.Views.parseQueryString=function(query){const args={};if(query.includes('?'))query=query.substring(query.indexOf('?')+1);let pair;const pairs=query.split('&');for(let i=0;i<pairs.length;i++){pair=pairs[i].split('=');if(pair[0]!=='q')if(pair[1])args[decodeURIComponent(pair[0].replace(/\+/g,' '))]=decodeURIComponent(pair[1].replace(/\+/g,' '));else args[decodeURIComponent(pair[0].replace(/\+/g,' '))]='';}return args;};Drupal.Views.parseViewArgs=function(href,viewPath){const returnObj={};const path=Drupal.Views.getPath(href);const viewHref=Drupal.url(viewPath).substring(drupalSettings.path.baseUrl.length);if(viewHref&&path.startsWith(`${viewHref}/`)){returnObj.view_args=decodeURIComponent(path.substring(viewHref.length+1,path.length));returnObj.view_path=path;}return returnObj;};Drupal.Views.pathPortion=function(href){const protocol=window.location.protocol;if(href.startsWith(protocol))href=href.substring(href.indexOf('/',protocol.length+2));return href;};Drupal.Views.getPath=function(href){href=Drupal.Views.pathPortion(href);href=href.substring(drupalSettings.path.baseUrl.length,href.length);if(href.startsWith('?q='))href=href.substring(3,href.length);const chars=['#','?','&'];for(let i=0;i<chars.length;i++)if(href.includes(chars[i]))href=href.substring(0,href.indexOf(chars[i]));return href;};})(jQuery,Drupal,drupalSettings);;
32(function($,Drupal,drupalSettings){Drupal.behaviors.ViewsAjaxView={};Drupal.behaviors.ViewsAjaxView.attach=function(context,settings){if(settings&&settings.views&&settings.views.ajaxViews){const {views:{ajaxViews}}=settings;Object.keys(ajaxViews||{}).forEach((i)=>{Drupal.views.instances[i]=new Drupal.views.ajaxView(ajaxViews[i]);});}};Drupal.behaviors.ViewsAjaxView.detach=(context,settings,trigger)=>{if(trigger==='unload')if(settings&&settings.views&&settings.views.ajaxViews){const {views:{ajaxViews}}=settings;Object.keys(ajaxViews||{}).forEach((i)=>{const selector=`.js-view-dom-id-${ajaxViews[i].view_dom_id}`;if($(selector,context).length){delete Drupal.views.instances[i];delete settings.views.ajaxViews[i];}});}};Drupal.views={};Drupal.views.instances={};Drupal.views.ajaxView=function(settings){const selector=`.js-view-dom-id-${settings.view_dom_id}`;this.$view=$(selector);let ajaxPath=drupalSettings.views.ajax_path;if(ajaxPath.constructor.toString().includes('Array'))ajaxPath=ajaxPath[0];let queryString=window.location.search||'';if(queryString!==''){queryString=queryString.slice(1).replace(/q=[^&]+&?|page=[^&]+&?|&?render=[^&]+/,'');if(queryString!=='')queryString=(/\?/.test(ajaxPath)?'&':'?')+queryString;}this.element_settings={url:ajaxPath+queryString,submit:settings,httpMethod:'GET',setClick:true,event:'click',selector,progress:{type:'fullscreen'}};this.settings=settings;this.$exposed_form=$(`form#views-exposed-form-${settings.view_name.replace(/_/g,'-')}-${settings.view_display_id.replace(/_/g,'-')}`);once('exposed-form',this.$exposed_form).forEach(this.attachExposedFormAjax.bind(this));
32once('ajax-pager',this.$view.filter(this.filterNestedViews.bind(this))).forEach(this.attachPagerAjax.bind(this));const selfSettings=$.extend({},this.element_settings,{event:'RefreshView',base:this.selector,httpMethod:'GET',element:this.$view.get(0)});this.refreshViewAjax=Drupal.ajax(selfSettings);};Drupal.views.ajaxView.prototype.attachExposedFormAjax=function(){const that=this;this.exposedFormAjax=[];$('input[type=submit], button[type=submit], input[type=image]',this.$exposed_form).not('[data-drupal-selector=edit-reset]').each(function(index){const selfSettings=$.extend({},that.element_settings,{base:$(this).attr('id'),element:this});that.exposedFormAjax[index]=Drupal.ajax(selfSettings);});};Drupal.views.ajaxView.prototype.filterNestedViews=function(){return !this.$view.parents('.view').length;};Drupal.views.ajaxView.prototype.attachPagerAjax=function(){this.$view.find('.js-pager__items a, th.views-field a, .attachment .views-summary a').each(this.attachPagerLinkAjax.bind(this));};Drupal.views.ajaxView.prototype.attachPagerLinkAjax=function(id,link){const $link=$(link);const viewData={};const href=$link.attr('href');$.extend(viewData,this.settings,Drupal.Views.parseQueryString(href),Drupal.Views.parseViewArgs(href,this.settings.view_base_path));const selfSettings=$.extend({},this.element_settings,{submit:viewData,base:false,element:link,httpMethod:'GET'});this.pagerAjax=Drupal.ajax(selfSettings);};Drupal.AjaxCommands.prototype.viewsScrollTop=function(ajax,response){Drupal.AjaxCommands.prototype.scrollTop(ajax,response);};})(jQuery,Drupal,drupalSettings);;
33(function($,Drupal){'use strict';Drupal.AjaxCommands.prototype.scrollTop=function(ajax,response){const $target=$(response.selector);if(!$target.length)return;const adminBar=$('.gin-secondary-toolbar').outerHeight()||0;const header=$('.header-wrapper').outerHeight()||70;const padding=20;const offset=$target.offset().top-header-adminBar-padding;$('html, body').animate({scrollTop:offset},400,'swing');};})(jQuery,Drupal);;
34(function($,Drupal,drupalSettings){Drupal.behaviors.multiSiteExtraAutologoutTimer={attach:function(context,settings){$(once('multi-site-extra-alter','body',context)).each(function(){$('body',context).on('dialogcreate',function(event,ui){var confirmDialog=$('#autologout-confirm');if(confirmDialog.length>0){var timerTime=new Date(drupalSettings.autologout.timeout_padding);var m=timerTime.getMinutes();var s=addZero(timerTime.getSeconds());confirmDialog.append(' '+Drupal.t('Time left:')+' <span id="autoclose-timer">'+m+':'+s+'</span>');startTimer();}});});function startTimer(){var confirmTimer=$('#autoclose-timer');if(confirmTimer.length>0){var presentTime=confirmTimer.text();var timeArray=presentTime.split(/[:]+/);var m=timeArray[0];var s=checkSecond((timeArray[1]-1));if(s==59)m=m-1;confirmTimer.text(m+":"+s);setTimeout(startTimer,1000);}}function checkSecond(sec){if(sec<10&&sec>=0)sec="0"+sec;;if(sec<0)sec="59";;return sec;}function addZero(i){if(i<10)i="0"+i;return i;}}};}(jQuery,Drupal,drupalSettings));;
35(function(Drupal,$,window,drupalSettings){Drupal.tableScrollRequired=function(that){if(that.width()<that.find('tbody').width())return true;return false;};Drupal.resizeTable=function(that){caption=that.find('caption');scrolled_ratio=that.attr('scrolled_ratio');if(scrolled_ratio){left_distance=(that.find('tbody').width()-that.width())*scrolled_ratio;that.scrollLeft(left_distance);caption.css('left',left_distance);}scrollbar=$('.table-scroll-handle[handle-id='+that.attr('handle-id')+']').parent();if(Drupal.tableScrollRequired(that)){scrollbar.removeClass('hidden');tbw=that.find('tbody').width();shw=scrollbar.width();scrollbar.find('.table-scroll-handle').css('width',shw*(shw/tbw)+'px');}else scrollbar.addClass('hidden');};}(Drupal,jQuery,this,drupalSettings));;
36(function(Drupal,$,window,drupalSettings){Drupal.behaviors.table={attach:function(context){var table=this;$(once('tableSrollSetup','.cke_editable table',context)).each(function(key){var tableWidth=$(this).parent().width();if(tableWidth==0)tableWidth='780';var rowMaxWidth=0;var maxWidthArray=[];$(this).find('tr').each(function(){$(this).find('>td, >
36th').each(function(index){if(typeof maxWidthArray[index]=='undefined')maxWidthArray[index]=0;var cellWidth=0;if(typeof $(this).attr('width')!='undefined')cellWidth=parseInt($(this).attr('width'));if($(this).css('min-width')||$(this).css('max-width')){$(this).css('min-width','');$(this).css('max-width','');}if($(this).css('width'))if($(this)[0].style.width.indexOf('%')!=-1)cellWidth=parseInt($(this)[0].style.width);else{if($(this)[0].style.width.indexOf('px')!=-1)$(this).css({'min-width':$(this)[0].style.width});}if(maxWidthArray[index]<cellWidth)maxWidthArray[index]=cellWidth;});});for(let i=0;i<maxWidthArray.length;i++)rowMaxWidth+=maxWidthArray[i];var tableWrap='<div class="table-wrap scrollbar-inner"></div>';if($(this).hasClass('dataTable')){$(this).closest('.dataTables_scroll').wrap(tableWrap);var tableParent=$(this).closest('.dataTables_scroll').parent();}else{$(this).wrap(tableWrap);var tableParent=$(this).parent();}tableParent.scrollbar();tableParent.on('scroll',function(event){$(this).find('caption').css('left',$(this).scrollLeft());});if($(this).find('caption').length&&tableParent.hasClass('scroll-scrollx_visible')){tableParent.parent().addClass('has-caption');$(this).find('caption').width(tableParent.width()-2);}tableParent.attr('data-table-wrap-id',key).addClass('custom-table-wrap');if(tableParent.hasClass('scroll-scrollx_visible'))var infoClass='visible';else var infoClass='hide';$('<span class="table-scroll-info '+infoClass+'" data-info-id="'+key+'">'+Drupal.t('The table can be moved!')+'</span>').insertBefore(tableParent.parent());if(tableParent.hasClass('scroll-scrollx_visible')&&$(this).find('caption').length==0)tableParent.parent().addClass('no-caption-scroll');});$(window).on('resize',function(){$('.cke_editable .has-caption table caption').each(function(){$(this).width($(this).parent().parent().width()-1);});$('.cke_editable .table-wrap.scroll-scrollx_visible').each(function(){$(this).parent().addClass('no-caption-scroll');});$('.cke_editable .table-wrap.no-caption-scroll').each(function(){if($(this).find('.scroll-scrollx_visible').length==0)$(this).removeClass('no-caption-scroll');});$('.cke_editable .custom-table-wrap[data-table-wrap-id]').each(function(){var elementId=$(this).attr('data-table-wrap-id');if(elementId){var selector='.table-scroll-info[data-info-id="'+elementId+'"]';if($(this).hasClass('scroll-scrollx_visible')){if($(selector).length&&$(selector).hasClass('hide'))$(selector).removeClass('hide').addClass('visible');}else{if($(selector).length&&$(selector).hasClass('visible'))$(selector).removeClass('visible').addClass('hide');}}});});$(once('tableStickyHeaderSetup','.table-wrap.scroll-content',context)).each(function(){var that=$(this);var thisTable=that.find('table.table-with-thead');var id=thisTable.data('header-id');if(!$('table[data-header-id="'+id+'"] thead.header-fixed').length)table.createStickyHeader(that,thisTable,id,'.table-wrap','default',context);});},createStickyHeader:function(that,thisTable,id,tableClass,type,context){var size=localStorage.getItem('font-size');if(size=='font-size-1-25x')var pageSelectedSize='1.25';else if(size=='font-size-1-50x')var pageSelectedSize='2';else var pageSelectedSize='1';var menuHeight=50*pageSelectedSize;if($('.role--authenticated').length)menuHeight=menuHeight+52;if(jQuery(window).width()<768)var menuHeight=0;var tableWidth=that.parent(tableClass).width();if(tableWidth==0)tableWidth='780';var fixedHeaderSelector='.header-fixed[data-fixed-header-id="'+id+'"]';if(!$(fixedHeaderSelector).length>0){$(thisTable).append('<thead class="header-fixed" data-fixed-header-id="'+id+'"></thead>');$(fixedHeaderSelector).hide();}that.parent(tableClass).attr('data-table-id',id);if($(tableClass+'[data-table-id="'+id+'"] > .scroll-element.scroll-x.scroll-scrollx_visible').length>0){var stickyScroll=new StickySidebar(tableClass+'[data-table-id="'+id+'"] > .scroll-element.scroll-x.scroll-scrollx_visible',{topSpacing:menuHeight+(25*pageSelectedSize)});updateTablesStickyHeader(stickyScroll,tableClass,id);}else $(fixedHeaderSelector).addClass('without-scrollbar');$(fixedHeaderSelector).css('width',tableWidth);$(window).on('resize',function(){tableWidth=$(that).parent(tableClass).width();$(fixedHeaderSelector).css('width',tableWidth);});if(type=='default'){var collumnWidth=[];var $header=thisTable.find('thead tr').clone();var firstRow=thisTable.find('thead:not(.header-fixed) tr th, thead:not(.header-fixed) tr td');firstRow.each(function(i){if($(this).css("width")!='0px')if(navigator.userAgent.indexOf("Firefox")>0){var leftwidth=parseInt($(this).css('borderLeftWidth'),10);var rightwidth=parseInt($(this).css('borderRightWidth'),10);var innerwidth=$(this).innerWidth();var elWidth=leftwidth+rightwidth+innerwidth;collumnWidth[i]=elWidth;}else collumnWidth[i]=$(this).css("width");});var $fixedHeader=jQuery(fixedHeaderSelector).hide().append($header);if($fixedHeader.find('th').length>0&&$fixedHeader.find('th').length==collumnWidth.length)$fixedHeader.find('th').each(function(i){$(this).css("width",collumnWidth[i]).css("min-width",collumnWidth[i]);});}jQuery(window).on("scroll",function(event){if(jQuery(thisTable).length){var elementTop=(jQuery(thisTable).offset().top)-(menuHeight+(35*pageSelectedSize));var elementBottom=(elementTop+$(thisTable).outerHeight())-(menuHeight+(35*pageSelectedSize));var screenTop=jQuery(this).scrollTop();var screenBottom=screenTop+$(this).innerHeight();if(type=='default')var element=$fixedHeader;else{if(type=='interactive')var element=$(fixedHeaderSelector);}var extra='20';if($(tableClass+'[data-table-id="'+id+'"] .scroll-element.scroll-x.scroll-scrollx_visible').length>0){var extra='1';if(jQuery(window).width()<768)var extra='5';}if(screenTop>=elementTop+(extra*pageSelectedSize)&&$(element).is(":hidden")&&!(elementBottom<screenBottom&&elementBottom+menuHe
36ight+(60*pageSelectedSize)<screenTop))if(type=='default'){$(element).show();var accordionTableWrap='.accordion .table-wrap[data-table-id="'+id+'"]';if($(accordionTableWrap+' .scroll-element.scroll-x.scroll-scrollx_visible').length>0&&!($(accordionTableWrap+' .accordion-scroll-sticky').length)){$(fixedHeaderSelector).removeClass('without-scrollbar');var accordionScroll=new StickySidebar('.table-wrap[data-table-id="'+id+'"] .scroll-element.scroll-x.scroll-scrollx_visible',{topSpacing:menuHeight+(10*pageSelectedSize),stickyClass:'accordion-scroll-sticky'});$('.card-header').on('click',function(e){setTimeout(function(){accordionScroll.updateSticky();},100);});}}else{if(type=='interactive'&&jQuery(window).width()>767){setStickyThead(fixedHeaderSelector,thisTable);if($('fieldset .select-body.is-opened').length>0){$('fieldset .select-body').removeClass('is-opened');if($('table.opened-table-dropdown').length>0)$('table').removeClass('opened-table-dropdown');};}}else{if(screenTop<elementTop+(extra*pageSelectedSize)||(elementBottom<screenBottom&&elementBottom+menuHeight+(60*pageSelectedSize)<screenTop))if(type=='interactive'){if(jQuery(window).width()>767){if($(element).is(":visible")&&$(fixedHeaderSelector).hasClass('active-sticky-header'))unsetStickyThead(fixedHeaderSelector,thisTable);$(element).hide();}}else $(element).hide();}}});jQuery(that).on('scroll',function(event){$(fixedHeaderSelector).prop("scrollLeft",this.scrollLeft);});function setStickyThead(fixedHeaderSelector,thisTable){var collumnWidth=[];var fixedHeader=thisTable.find('thead tr').appendTo(fixedHeaderSelector);thisTable.find('thead').append(fixedHeader).removeClass('active-thead');$(fixedHeaderSelector).prepend('<tr id="table-row-styling"><td></td></tr>');var firstRow=thisTable.find('tbody > tr:nth-child(1)');firstRow.find('td').each(function(i){collumnWidth[i]=$(this).css("width");});if($(fixedHeaderSelector).find('th').length>0&&$(fixedHeaderSelector).find('th').length==collumnWidth.length)$(fixedHeaderSelector).find('th').each(function(i){$(this).css("width",collumnWidth[i]).css("min-width",collumnWidth[i]).css("max-width",collumnWidth[i]);});;$(fixedHeaderSelector).addClass('active-sticky-header').addClass('active-thead').show();}function unsetStickyThead(fixedHeaderSelector,thisTable){$('#table-row-styling').remove();var movingHeader=$(fixedHeaderSelector+' tr');var mainHeader=thisTable.find('thead:not(.header-fixed)');thisTable.find('thead:not(.header-fixed) tr').remove();movingHeader.appendTo(mainHeader);mainHeader.addClass('active-thead');$(fixedHeaderSelector).removeClass('active-sticky-header').removeClass('active-thead');}function updateTablesStickyHeader(stickyScroll,tableClass,id){if(jQuery('.paragraph--type--interactive-tables').length>0){var waitForEl=function(selector,callback){if(jQuery(selector).length)callback();else setTimeout(function(){waitForEl(selector,callback);},750);};waitForEl('.paragraph--type--interactive-tables table',function(){setTimeout(function(){stickyScroll.updateSticky();},750);});jQuery('.interactive-table-actions .option').on('click',function(){setTimeout(function(){stickyScroll.updateSticky();},750);});}if(jQuery('.accordion .table-wrap table').length>0)$('.card-header').on('click',function(e){setTimeout(function(){stickyScroll.updateSticky();},750);});$('.font-size-block button').on('click',function(){setTimeout(function(){stickyScroll.updateSticky();$(tableClass+'[data-table-id="'+id+'"]').addClass('updated-page-fontsize');});});}}};}(Drupal,jQuery,this,drupalSettings));;
37((Drupal,$)=>{Drupal.behaviors.spamspan={attach:(context)=>{$("span.spamspan",context).each(function(){if($("span.o",this).length)$("span.o",this).replaceWith(".");const _mail=`${$("span.u",this).text()}@${$("span.d",this).text()}`.replace(/\s+/g,"");let _mailto=`mailto:${_mail}`;if($("span.h",this).length){const _headerText=$("span.h",this).text().replace(/^ ?\((.*)\) ?$/,"$1");const _headers=$.map(_headerText.split(/, /),(n)=>n.replace(/: /,"="));const _headerString=_headers.join("&");if(_headerString)_mailto+=`?${_headerString}`;}let _anchorContent=$("span.t",this).html();if(_anchorContent){_anchorContent=_anchorContent.replace(/^ ?\(([^]*)\) ?$/,"$1");
37_anchorContent=_anchorContent.replaceAll("[at]","@").replaceAll("[dot]",".");}let _attributes='';$.each(this.attributes,function(){if(this.specified&&this.name.startsWith("data-spamspan-")){const sanitizedValue=Drupal.checkPlain(this.value);_attributes+=`${this.name.substring("data-spamspan-".length)}="${sanitizedValue}" `;}});let _tag="<a></a>";if(_attributes){_attributes=_attributes.replace(/on\w+=".*?"/g,'');_tag=`<a ${_attributes}></a>`;}$(this).after($(_tag).attr("href",_mailto).html(_anchorContent||_mail).addClass("spamspan")).remove();});}};})(Drupal,jQuery);;
38(function($,Drupal){Drupal.behaviors.accessibilityHeaderBlock={attach:function(context,settings){var that=this;$(once('accessibility-header-block-init','body',context)).each(function(){var defaultFontSize=localStorage.getItem('font-size');if(defaultFontSize){$('html').addClass(defaultFontSize);$('.font-size-block .block-btn[data-size="'+defaultFontSize+'"]').addClass('active');}else $('.font-size-block .block-btn[data-size="font-size-1-00x"]').addClass('active');that.adjustSize(defaultFontSize);var defaultContrast=localStorage.getItem('contrast');if(defaultContrast){$('body').addClass(defaultContrast);$('.contrast-block .block-btn[data-contrast="'+defaultContrast+'"]').addClass('active');}else $('.contrast-block .block-btn[data-contrast="contrast-1"]').addClass('active');let isMobile=(screen.width<768);if(isMobile)$('.accessibility-header-container .search-link',context).on('click',function(e){e.preventDefault();var parent=$(this).parent('.accessibility-header-container');if(parent.hasClass('active'))parent.removeClass('active');else parent.addClass('active');});that.setEvents(context,settings);$('body, #menu-tree-main, .access-container-overlay').on('click','.reset-link-block a',function(e){that.adjustSize();e.preventDefault();$('html').removeClass('font-size-1-00x').removeClass('font-size-1-25x').removeClass('font-size-1-50x');$('body').removeClass('contrast-1').removeClass('contrast-2').removeClass('contrast-3').removeClass('contrast-4');$('.font-size-block .block-btn',context).removeClass('active');$('.contrast-block .block-btn',context).removeClass('active');$('.font-size-block .block-btn[data-size="font-size-1-00x"]',context).addClass('active');$('.access-container .contrast-block .block-btn[data-contrast="contrast-1"]',context).addClass('active');localStorage.setItem('font-size','font-size-1-00x');localStorage.setItem('contrast','contrast-1');});$('.access-container').click(function(e){if(e.target==e.currentTarget)$('.access-container').css('display','none');});$('.settings-full-close').click(function(){$('.access-container').css('display','none');});$('.access-container').on('focusout',function(e){if(!e.relatedTarget||!this.contains(e.relatedTarget)){$(this).css('display','none');$('.search-link.accessibility-link').removeClass('active');}});$('#lang-options').on('focusout',function(e){if(!e.relatedTarget||!this.contains(e.relatedTarget))$(this).removeClass('active');});});},removeClasses:function(cookie_context){if(!cookie_context)cookie_context='#user-tools-accessibility';$('*',cookie_context).removeClass(function(index,className){return (className.match(/(^|\s)col-md-.*\S+/g)||[]).join(' ');});},adjustSize:function(size){this.removeClasses();switch(size){case 'font-size-1-25x':$('.accessible-content-block > div','.placeholder-user-tools-settings, #siteCookieApproval').removeClass('col-12');$('.accessible-content-block > div, .reset-link-block','#user-tools-accessibility').addClass('col-md-6');$('.font-size-block .row > div','#user-tools-accessibility').addClass('col-md-4');$('.contrast-block .row > div','#user-tools-accessibility').addClass('col-md-6');break;case 'font-size-1-50x':$('.accessible-content-block > div','.placeholder-user-tools-settings, #siteCookieApproval').addClass('col-12');$('.reset-link-block','#user-tools-accessibility').addClass('col-md-6');$('.font-size-block .row > div','#user-tools-accessibility').addClass('col-md-4');$('.contrast-block .row > div','#user-tools-accessibility').addClass('col-md-3');break;case 'font-size-1-00x':$('.accessible-content-block > div','.placeholder-user-tools-settings, #siteCookieApproval').removeClass('col-12');$('.accessible-content-block > div, .reset-link-block','#user-tools-accessibility').addClass('col-md-6');$('.font-size-block .row > div','#user-tools-accessibility').addClass('col-md-4');break;}},initTextMagnifier:function(context){let isMobile=(screen.width<768);let magnifierEnabled=sessionStorage.getItem('text-magnifier')==='true';if(isMobile||!magnifierEnabled)return;const $tooltip=$('<div id="text-magnifier-tooltip"></div>').css({position:'absolute',maxWidth:'500px',background:'rgba(0, 0, 0, 0.7)',color:'#fff',padding:'10px 15px',fontSize:'42px',borderRadius:'6px',zIndex:100000,display:'none',pointerEvents:'none',lineHeight:'1',whiteSpace:'normal',boxSizing:'border-box',wordWrap:'break-word'}).appendTo('body');function showTooltip(text,e){if(!text.trim()){$tooltip.hide();return;}$tooltip.text(text).show();const headerHeight=70;const padding=10;let top;const tooltipWidth=$tooltip.outerWidth();const tooltipHeight=$tooltip.outerHeight();let left=e.pageX-tooltipWidth/2;const maxLeft=window.innerWidth-tooltipWidth-padding;const spaceAbove=e.clientY-headerHeight;const spaceBelow=window.innerHeight-e.clientY;
38if(left<padding)left=padding;if(left>maxLeft)left=maxLeft;if(spaceAbove>=(tooltipHeight+20))top=e.pageY-tooltipHeight-20;else if(spaceBelow>=(tooltipHeight+20))top=e.pageY+20;else if(spaceBelow>=spaceAbove)top=e.pageY+20;else top=Math.max(padding,e.pageY-tooltipHeight-20);$tooltip.css({top,left});}let magnifierDebounceTimer=null;Drupal.behaviors.accessibilityHeaderBlock._magnifierHandler=function(e){clearTimeout(magnifierDebounceTimer);magnifierDebounceTimer=setTimeout(function(){let range=null;if(document.caretPositionFromPoint){const caretPos=document.caretPositionFromPoint(e.clientX,e.clientY);if(caretPos&&caretPos.offsetNode){range=document.createRange();range.setStart(caretPos.offsetNode,caretPos.offset);}}else{if(document.caretRangeFromPoint){const caretRange=document.caretRangeFromPoint(e.clientX,e.clientY);if(caretRange&&caretRange.startContainer)range=caretRange;}}if(range&&range.startContainer&&range.startContainer.nodeType===Node.TEXT_NODE){const node=range.startContainer;const offset=range.startOffset;const text=node.textContent||'';const start=Math.max(0,offset-75);const end=Math.min(text.length,offset+75);const excerpt=text.substring(start,end).trim();showTooltip(excerpt,e);}else{const $target=$(e.target);if($target.is('img')){const altText=$target.attr('alt');showTooltip(altText,e);}else if($target.is('input')){const value=$target.attr('value');showTooltip(value,e);}else $tooltip.hide();}},200);};$(document).on('mousemove.magnifier',Drupal.behaviors.accessibilityHeaderBlock._magnifierHandler);},closeFocusBarMask:function(){sessionStorage.setItem('focus-bar-mask','false');sessionStorage.setItem('focus-bar-first-interaction','true');$(document).off('.focusBar');$(window).off('.focusBar');$('.focus-bar-mask-class').remove();$('.mask-overlay').remove();$('.focus-bar').remove();$('.access-container .focus-bar-mask').removeClass('active');$('.accessibility .focus-bar-mask').removeClass('active');$('#menu-tree-main .focus-bar-mask').removeClass('active');},initFocusBarMask:function(){const isMobile=screen.width<768;const minHeight=20;const maxHeight=200;let barHeight=60;let firstInteraction=sessionStorage.getItem('focus-bar-first-interaction')!=='false';$('.focus-bar-mask-class').remove();const $mask=$(`
39        <div class="focus-bar-mask-class position-fixed w-100 h-100">
40          <div class="mask-overlay position-absolute w-100 h-100"></div>
41          <div class="focus-bar position-fixed" style="height: ${barHeight}px;">
42            <div class="bar-controls position-absolute d-flex">
43              <button class="btn-minus position-relative" title="${Drupal.t('Decrease mask area')}" aria-label="${Drupal.t('Decrease mask area')}">‒</button>
44              <button class="btn-plus position-relative" title="${Drupal.t('Increase mask area')}" aria-label="${Drupal.t('Increase mask area')}">+</button>
45              <button class="btn-close icon-times-circle d-flex align-self-center" title="${Drupal.t('Disable page mask')}" aria-label="${Drupal.t('Disable page mask')}"></button>
46            </div>
47          </div>
48        </div>
49      `).appendTo('body');const $focusBar=$mask.find('.focus-bar');let positionY=window.innerHeight/2-barHeight/2;function updateBarPosition(y){let clampedY=Math.max(0,Math.min(window.innerHeight-barHeight,y-barHeight/2));positionY=clampedY;const bottomY=clampedY+barHeight;$focusBar.css('top',`${clampedY}px`);$mask.find('.mask-overlay').css('clip-path',`
50          polygon(
51            0 0, 100% 0, 100% ${clampedY}px, 0 ${clampedY}px,
52            0 ${bottomY}px, 100% ${bottomY}px, 100% 100%, 0 100%
53          )
54        `);if(clampedY+barHeight>window.innerHeight){clampedY=window.innerHeight-barHeight;$focusBar.css('top',`${clampedY}px`);}}function updateHeight(delta){barHeight=Math.max(minHeight,Math.min(maxHeight,barHeight+delta));const newTop=positionY-(barHeight/2);$focusBar.css({height:`${barHeight}px`,top:`${newTop}px`});updateBarPosition(positionY);}$mask.find('.btn-plus').on('click',(e)=>{e.preventDefault();positionY=e.clientY;updateHeight(10);});$mask.find('.btn-minus').on('click',(e)=>{e.preventDefault();positionY=e.clientY;updateHeight(-10);});$mask.find('.btn-close').on('click',(e)=>{e.preventDefault();Drupal.behaviors.accessibilityHeaderBlock.closeFocusBarMask();});$(document).on('keydown.focusBar',(e)=>{if(e.key==='Escape')Drupal.behaviors.accessibilityHeaderBlock.closeFocusBarMask();});if(!isMobile){let initialY=(typeof event!=='undefined'&&event.clientY)?event.clientY:(window.innerHeight/2);updateBarPosition(initialY);
54$(document).on('mousemove.focusBar',(e)=>updateBarPosition(e.clientY));}else{const initialMobileY=window.scrollY+window.innerHeight/2;updateBarPosition(initialMobileY);let touchStartY=null;let touchMoved=false;$(document).on('touchstart.focusBar',(e)=>{touchMoved=false;if(e.originalEvent?.touches?.length)touchStartY=e.originalEvent.touches[0].clientY;});$(document).on('touchmove.focusBar',(e)=>{if(e.originalEvent?.touches?.length){const currentY=e.originalEvent.touches[0].clientY;if(Math.abs(currentY-touchStartY)>10)touchMoved=true;}});$(document).on('touchend.focusBar click.focusBar',(e)=>{let y;if(e.type==='touchend'&&touchMoved)return;if(firstInteraction){y=window.innerHeight/2;sessionStorage.setItem('focus-bar-first-interaction','false');firstInteraction=false;}else if(e.type==='touchend'&&e.originalEvent?.changedTouches?.length)y=e.originalEvent.changedTouches[0].clientY;else{if(e.type==='click')y=e.clientY;}updateBarPosition(y);});}},setEvents:function(context,settings){var that=this;const isMobile=screen.width<768;$('#header-region, #siteCookieApproval, .accessibility.privacy-policy-node').on('click','.font-size-block .block-btn',function(e){if(!$(this).hasClass('active')){var size=$(this).data('size');$('html').removeClass('font-size-1-00x').removeClass('font-size-1-25x').removeClass('font-size-1-50x').addClass(size);$('.font-size-block .block-btn').removeClass('active');$(this).addClass('active');$('.accessibility .font-size-block .block-btn[data-size="'+size+'"]').addClass('active');localStorage.setItem('font-size',size);that.adjustSize(size);$(document).trigger('fontSizeChanged');$('#user-tools-region .access-container .font-size-block .block-btn').removeClass('active');$('#user-tools-region .access-container .font-size-block .block-btn[data-size="'+size+'"]').addClass('active');}});$('#menu-tree-main, .access-container-overlay').on('click','.contrast-block .block-btn',function(e){if(!$(this).hasClass('active')){var contrast=$(this).data('contrast');$('body').removeClass('contrast-1').removeClass('contrast-2').removeClass('contrast-3').removeClass('contrast-4').addClass(contrast);$('.contrast-block .block-btn').removeClass('active');$(this).addClass('active');$('.accessibility .contrast-block .block-btn[data-contrast="'+contrast+'"]').addClass('active');localStorage.setItem('contrast',contrast);if(Drupal.behaviors.chart)Drupal.behaviors.chart.update(context);}});if(isMobile)$('.toggle-magnifier',context).hide();else $('.access-container, .accessibility',context).on('click','.toggle-magnifier',function(e){e.preventDefault();const magnifierEnabled=sessionStorage.getItem('text-magnifier')==='true';if(magnifierEnabled){sessionStorage.setItem('text-magnifier','false');$('#text-magnifier-tooltip').remove();$('.access-container .toggle-magnifier').removeClass('active');$('.accessibility .toggle-magnifier').removeClass('active');}else{sessionStorage.setItem('text-magnifier','true');Drupal.behaviors.accessibilityHeaderBlock.initTextMagnifier(context);$('.access-container .toggle-magnifier').addClass('active');$('.accessibility .toggle-magnifier').addClass('active');}});$('.access-container, .accessibility, #menu-tree-main',context).on('click touchstart','.focus-bar-mask',function(e){e.preventDefault();let isFocusBarActive=sessionStorage.getItem('focus-bar-mask')==='true';if(isFocusBarActive){sessionStorage.setItem('focus-bar-mask','false');Drupal.behaviors.accessibilityHeaderBlock.closeFocusBarMask();$('.access-container .focus-bar-mask').removeClass('active');$('.accessibility .focus-bar-mask').removeClass('active');$('#menu-tree-main .focus-bar-mask').removeClass('active');}else{sessionStorage.setItem('focus-bar-mask','true');Drupal.behaviors.accessibilityHeaderBlock.initFocusBarMask();$('.access-container .focus-bar-mask').addClass('active');$('.accessibility .focus-bar-mask').addClass('active');$('#menu-tree-main .focus-bar-mask').addClass('active');}});$(document).ready(function(){const isFocusBarActive=sessionStorage.getItem('focus-bar-mask')==='true';const magnifierEnabled=sessionStorage.getItem('text-magnifier')==='true';if(magnifierEnabled){Drupal.behaviors.accessibilityHeaderBlock.initTextMagnifier(context);$('.access-container .toggle-magnifier').addClass('active');$('.accessibility .toggle-magnifier').addClass('active');}else $('#text-magnifier-tooltip').remove();if(isFocusBarActive){Drupal.behaviors.accessibilityHeaderBlock.initFocusBarMask();$('.access-container .focus-bar-mask').addClass('active');
54$('.accessibility .focus-bar-mask').addClass('active');$('#menu-tree-main .focus-bar-mask').addClass('active');}else Drupal.behaviors.accessibilityHeaderBlock.closeFocusBarMask();});}};})(jQuery,Drupal);;
55(function($,Drupal){Drupal.behaviors.subscribeList={attach:function(context,settings){$(once('subscribeList','.subscribe-form .themes-list',context)).each(function(){const themesList=$(this).find('input[type="checkbox"]');const fieldsetLegend=$(this).find('span.fieldset-legend');const selectAll=$('input[name^="themes[default"]');const fieldsetLegendLabel=fieldsetLegend.find('label').clone();function addBadge(id,label){fieldsetLegend.append(`
56            <div id="theme-${id}" class="theme-list_badge">
57              <span class="filter-cleaner-badge">${label}</span>
58              <button type="button" class="remove-filter" aria-label="${Drupal.t('Remove')} ${label}" data-remove="theme-${id}"></button>
59            </div>
60          `);}themesList.on('change',function(){const id=$(this).val();const isDefault=id.startsWith('default');const isChecked=$(this).is(':checked');if(isDefault)if(isChecked){themesList.prop('checked',false);$(this).prop('checked',true);fieldsetLegend.empty();const label=$(this).next('label').text();addBadge(id,label);}else fieldsetLegend.empty().append(fieldsetLegendLabel.clone());else{if(selectAll.is(":checked")){selectAll.prop('checked',false);fieldsetLegend.empty();themesList.each(function(){if($(this).is(":checked")){const newId=$(this).val();const newLabel=$(this).next('label').text();addBadge(newId,newLabel);}});}else if(isChecked){if(fieldsetLegend.has('label').length)fieldsetLegend.empty();const label=$(this).next('label').text();addBadge(id,label);}else fieldsetLegend.find('#theme-'+id).remove();if(!fieldsetLegend.children().length)fieldsetLegend.append(fieldsetLegendLabel.clone());}});selectAll.change(function(){themesList.prop('checked',$(this).is(':checked'));});});$(once('remove-theme-filter','.subscribe-form',context)).on('click','.theme-list_badge .remove-filter',function(e){e.stopPropagation();const id=$(this).data('remove');$('#'+id).remove();const themeKey=id.replace('theme-','');const checkbox=$('.subscribe-form input[type="checkbox"][value="'+themeKey+'"]');checkbox.prop('checked',false).trigger('change');});$(once('emailInput','.subscribe-form input[type="email"]',context)).on('focus',function(){var filter=$('.subscribe-form .view-custom-main-filter');if(filter.length){filter.find('.toggle-is-opened').removeClass('toggle-is-opened');filter.find('.filter-toggle-is-opened').removeClass('filter-toggle-is-opened');}});}};})(jQuery,Drupal);;
61(function($,Drupal){Drupal.behaviors.virtualAssistant={attach:function(context,settings){$(once('virtual_assistant_init','body',context)).each(function(){if(settings.assistant_id){var assistantId=settings.assistant_id;var createBot=function(){var params={};BotChat.Intro({options:params},document.getElementById("webchat-app-bot"));};var loadChat=function(){var script=document.createElement("script"),link=document.createElement("link");script.src="https://"+assistantId+".azurewebsites.net/botchat.min.js";link.href="https://"+assistantId+".azurewebsites.net/botchat.min.css";link.rel="stylesheet";script.onload=createBot;script.charset="utf-8";document.head.appendChild(link);document.head.appendChild(script);};window.addEventListener?window.addEventListener("load",loadChat,false):window.attachEvent("onload",loadChat);}else{var onChatOptionsScript=document.createElement("script");var brandColor=getComputedStyle(document.documentElement).getPropertyValue('--brand-color');var ScriptContent=document.createTextNode("function onChatOptions() { return { params : { mainColor: '"+brandColor+"'} , style : {  } }; };");onChatOptionsScript.appendChild(ScriptContent);document.head.appendChild(onChatOptionsScript);var loadChat=function(){var script=document.createElement("script");script.src="https://va.hugo.lv/scontent/kbottvpva0/chat/botchat.min.js";document.head.appendChild(script);};window.addEventListener?window.addEventListener("load",loadChat,false):window.attachEvent("onload",loadChat);}});}};})(jQuery,Drupal);;
62(function($,Drupal,{focusable}){Drupal.behaviors.dialog={attach(context,settings){const $context=$(context);if(!$('#drupal-modal').length)$('<div id="drupal-modal" class="ui-front"></div>').hide().appendTo('body');const $dialog=$context.closest('.ui-dialog-content');if($dialog.length){if($dialog.dialog('option','drupalAutoButtons'))$dialog.trigger('dialogButtonsChange');setTimeout(function(){if(!$dialog[0].contains(document.activeElement)){const $focusedElement=$dialog.dialog('instance')._focusedElement;if($focusedElement.hasClass('field--type-image')&&$focusedElement.hasClass('paragraph-top')&&$focusedElement.hasClass('form-item--multiple'))$dialog.dialog('instance')._focusedElement=null;$dialog.dialog('instance')._focusTabbable();}},0);}const originalClose=settings.dialog.close;settings.dialog.close=function(event,...args){originalClose.apply(settings.dialog,[event,...args]);const $element=$(event.target);const ajaxContainer=$element.data('uiDialog')?$element.data('uiDialog').opener.closest('[data-drupal-ajax-container]'):[];if(ajaxContainer.length&&(document.activeElement===document.body||$(document.activeElement).not(':visible'))){const focusableChildren=focusable(ajaxContainer[0]);if(focusableChildren.length>0)setTimeout(()=>{focusableChildren[0].focus();}
62,0);}$(event.target).remove();};},prepareDialogButtons($dialog){const buttons=[];const $buttons=$dialog.find('.form-actions input[type=submit], .form-actions a.button, .form-actions a.action-link');$buttons.each(function(){const $originalButton=$(this);this.style.display='none';buttons.push({text:$originalButton.html()||$originalButton.attr('value'),class:$originalButton.attr('class'),'data-once':$originalButton.data('once'),click(e){if($originalButton[0].tagName==='A')$originalButton[0].click();else $originalButton.trigger('mousedown').trigger('mouseup').trigger('click');e.preventDefault();}});});return buttons;}};Drupal.AjaxCommands.prototype.openDialog=function(ajax,response,status){if(!response.selector)return false;let $dialog=$(response.selector);if(!$dialog.length)$dialog=$(`<div id="${response.selector.replace(/^#/,'')}" class="ui-front"></div>`).appendTo('body');if(!ajax.wrapper)ajax.wrapper=$dialog.attr('id');response.command='insert';response.method='html';ajax.commands.insert(ajax,response,status);response.dialogOptions=response.dialogOptions||{};if(typeof response.dialogOptions.drupalAutoButtons==='undefined')response.dialogOptions.drupalAutoButtons=true;else if(response.dialogOptions.drupalAutoButtons==='false')response.dialogOptions.drupalAutoButtons=false;else response.dialogOptions.drupalAutoButtons=!!response.dialogOptions.drupalAutoButtons;if(!response.dialogOptions.buttons&&response.dialogOptions.drupalAutoButtons)response.dialogOptions.buttons=Drupal.behaviors.dialog.prepareDialogButtons($dialog);$dialog.on('dialogButtonsChange',()=>{const buttons=Drupal.behaviors.dialog.prepareDialogButtons($dialog);$dialog.dialog('option','buttons',buttons);});response.dialogOptions=response.dialogOptions||{};const dialog=Drupal.dialog($dialog.get(0),response.dialogOptions);if(response.dialogOptions.modal)dialog.showModal();else dialog.show();$dialog.parent().find('.ui-dialog-buttonset').addClass('form-actions');};Drupal.AjaxCommands.prototype.closeDialog=function(ajax,response,status){const $dialog=$(response.selector);if($dialog.length){Drupal.dialog($dialog.get(0)).close();if(!response.persist)$dialog.remove();}$dialog.off('dialogButtonsChange');};Drupal.AjaxCommands.prototype.setDialogOption=function(ajax,response,status){const $dialog=$(response.selector);if($dialog.length)$dialog.dialog('option',response.optionName,response.optionValue);};window.addEventListener('dialog:aftercreate',(event)=>{const $element=$(event.target);const dialog=event.dialog;$element.on('click.dialog','.dialog-cancel',(e)=>{dialog.close('cancel');e.preventDefault();e.stopPropagation();});});window.addEventListener('dialog:beforeclose',(e)=>{const $element=$(e.target);$element.off('.dialog');});Drupal.AjaxCommands.prototype.openModalDialogWithUrl=function(ajax,response){const dialogOptions=response.dialogOptions||{};const elementSettings={progress:{type:'throbber'},dialogType:'modal',dialog:dialogOptions,url:response.url,httpMethod:'GET'};Drupal.ajax(elementSettings).execute();};})(jQuery,Drupal,window.tabbable);;
63(function($,Drupal,once){'use strict';if($.ui&&$.ui.dialog&&$.ui.dialog.prototype._allowInteraction){var _allowInteraction=$.ui.dialog.prototype._allowInteraction;$.ui.dialog.prototype._allowInteraction=function(event){if($(event.target).closest('.cke_dialog').length)return true;return _allowInteraction.apply(this,arguments);};}Drupal.behaviors.webformDialogEvents={attach:function(){if(once('webform-dialog','html').length)$(window).on({'dialog:aftercreate':function(event,dialog,$element,settings){setTimeout(function(){var hasFocus=$element.find('[autofocus]:tabbable');if(!hasFocus.length)hasFocus=$element.find(':input:tabbable:not(:button)');if(!hasFocus.length)hasFocus=$element.parent().find('.ui-dialog-titlebar-close');hasFocus.eq(0).trigger('focus');});}});}};})(jQuery,Drupal,once);;
64(function($,Drupal,drupalSettings,once){'use strict';Drupal.webform=Drupal.webform||{};Drupal.webform.dialog=Drupal.webform.dialog||{};Drupal.webform.dialog.options=Drupal.webform.dialog.options||{};Drupal.webformOpenDialog=function(url,type){var $div=$('<div><a href="'+url+'" class="webform-dialog '+type+'"></a></div>');Drupal.behaviors.webformDialog.attach($div.get(0));$div.find('a').trigger('click');};Drupal.behaviors.webformDialog={attach:function(context){$(once('webform-dialog','a.webform-dialog',context)).each(function(){var $a=$(this);var options=$.extend({},Drupal.webform.dialog.options);if($a.attr('class').match(/webform-dialog-([a-z0-9_]+)/)){var dialogOptionsName=RegExp.$1;if(drupalSettings.webform.dialog.options[dialogOptionsName]){options=drupalSettings.webform.dialog.options[dialogOptionsName];delete options.title;}}if($(this).data('dialog-options'))$.extend(options,$(this).data('dialog-options'));var href=$a.attr('href');if(href.indexOf('?source_entity_type=ENTITY_TYPE&source_entity_id=ENTITY_ID')!==-1){if(drupalSettings.webform.dialog.entity_type&&drupalSettings.webform.dialog.entity_id){href=href.replace('ENTITY_TYPE',encodeURIComponent(drupalSettings.webform.dialog.entity_type));href=href.replace('ENTITY_ID',encodeURIComponent(drupalSettings.webform.dialog.entity_id));}else href=href.replace('?source_entity_type=ENTITY_TYPE&source_entity_id=ENTITY_ID','');$a.attr('href',href);}href+=(href.indexOf('?')===-1?'?':'&')+'_webform_dialog=1';var element_settings={};element_settings.progress={type:'fullscreen'};element_settings.url=href;element_settings.event='touchstart click';element_settings.dialogType=$a.data('dialog-type')||'modal';element_settings.dialog=options;element_settings.element=this;element_settings.error=function error(xmlhttp,uri){if(xmlhttp.status===403)window.location.replace(href.split('?')[0]);};Drupal.ajax(element_settings);});}};})(jQuery,Drupal,drupalSettings,once);;
65/* @license MIT https://github.com/select2/select2/blob/master/LICENSE.md */
66/*! Select2 4.0.13 | https://github.com/select2/select2/blob/master/LICENSE.md */
67!function(n){"function"==typeof define&&define.amd?define(["jquery"],n):"object"==typeof module&&module.exports?module.exports=function(e,t){return void 0===t&&(t="undefined"!=typeof window?require("jquery"):require("jquery")(e)),n(t),t}:n(jQuery)}(function(u){var e=function(){if(u&&u.fn&&u.fn.select2&&u.fn.select2.amd)var e=u.fn.select2.amd;var t,n,r,h,o,s,f,g,m,v,y,_,i,a,b;function w(e,t){return i.call(e,t)}function l(e,t){var n,r,i,o,s,a,l,c,u,d,p,h=t&&t.split("/"),f=y.map,g=f&&f["*"]||{};if(e){for(s=(e=e.split("/")).length-1,y.nodeIdCompat&&b.test(e[s])&&(e[s]=e[s].replace(b,"")),"."===e[0].charAt(0)&&h&&(e=h.slice(0,h.length-1).concat(e)),u=0;u<e.length;u++)if("."===(p=e[u]))e.splice(u,1),--u;else if(".."===p){if(0===u||1===u&&".."===e[2]||".."===e[u-1])continue;0<u&&(e.splice(u-1,2),u-=2)}e=e.join("/")}if((h||g)&&f){for(u=(n=e.split("/")).length;0<u;--u){if(r=n.slice(0,u).join("/"),h)for(d=h.length;0<d;--d)if(i=(i=f[h.slice(0,d).join("/")])&&i[r]){o=i,a=u;break}if(o)break;!l&&g&&g[r]&&(l=g[r],c=u)}!o&&l&&(o=l,a=c),o&&(n.splice(0,a,o),e=n.join("/"))}return e}function A(t,n){return function(){var e=a.call(arguments,0);return"string"!=typeof e[0]&&1===e.length&&e.push(null),s.apply(h,e.concat([t,n]))}}function x(t){return function(e){m[t]=e}}function D(e){if(w(v,e)){var t=v[e];delete v[e],_[e]=!0,o.apply(h,t)}if(!w(m,e)&&!w(_,e))throw new Error("No "+e);return m[e]}function c(e){var t,n=e?e.indexOf("!"):-1;return-1<n&&(t=e.substring(0,n),e=e.substring(n+1,e.length)),[t,e]}function S(e){return e?c(e):[]}return e&&e.requirejs||(e?n=e:e={},m={},v={},y={},_={},i=Object.prototype.hasOwnProperty,a=[].slice,b=/\.js$/,f=function(e,t){var n,r,i=c(e),o=i[0],s=t[1];return e=i[1],o&&(n=D(o=l(o,s))),o?e=n&&n.normalize?n.normalize(e,(r=s,function(e){return l(e,r)})):l(e,s):(o=(i=c(e=l(e,s)))[0],e=i[1],o&&(n=D(o))),{f:o?o+"!"+e:e,n:e,pr:o,p:n}},g={require:function(e){return A(e)},exports:function(e){var t=m[e];return void 0!==t?t:m[e]={}},module:function(e){return{id:e,uri:"",exports:m[e],config:(t=e,function(){return y&&y.config&&y.c
67onfig[t]||{}})};var t}},o=function(e,t,n,r){var i,o,s,a,l,c,u,d=[],p=typeof n;if(c=S(r=r||e),"undefined"==p||"function"==p){for(t=!t.length&&n.length?["require","exports","module"]:t,l=0;l<t.length;l+=1)if("require"===(o=(a=f(t[l],c)).f))d[l]=g.require(e);else if("exports"===o)d[l]=g.exports(e),u=!0;else if("module"===o)i=d[l]=g.module(e);else if(w(m,o)||w(v,o)||w(_,o))d[l]=D(o);else{if(!a.p)throw new Error(e+" missing "+o);a.p.load(a.n,A(r,!0),x(o),{}),d[l]=m[o]}s=n?n.apply(m[e],d):void 0,e&&(i&&i.exports!==h&&i.exports!==m[e]?m[e]=i.exports:s===h&&u||(m[e]=s))}else e&&(m[e]=n)},t=n=s=function(e,t,n,r,i){if("string"==typeof e)return g[e]?g[e](t):D(f(e,S(t)).f);if(!e.splice){if((y=e).deps&&s(y.deps,y.callback),!t)return;t.splice?(e=t,t=n,n=null):e=h}return t=t||function(){},"function"==typeof n&&(n=r,r=i),r?o(h,e,t,n):setTimeout(function(){o(h,e,t,n)},4),s},s.config=function(e){return s(e)},t._defined=m,(r=function(e,t,n){if("string"!=typeof e)throw new Error("See almond README: incorrect module build, no module name");t.splice||(n=t,t=[]),w(m,e)||w(v,e)||(v[e]=[e,t,n])}).amd={jQuery:!0},e.requirejs=t,e.require=n,e.define=r),e.define("almond",function(){}),e.define("jquery",[],function(){var e=u||$;return null==e&&console&&console.error&&console.error("Select2: An instance of jQuery or a jQuery-compatible library was not found. Make sure that you are including jQuery before Select2 on your web page."),e}),e.define("select2/utils",["jquery"],function(o){var i={};function u(e){var t=e.prototype,n=[];for(var r in t){"function"==typeof t[r]&&"constructor"!==r&&n.push(r)}return n}i.Extend=function(e,t){var n={}.hasOwnProperty;function r(){this.constructor=e}for(var i in t)n.call(t,i)&&(e[i]=t[i]);return r.prototype=t.prototype,e.prototype=new r,e.__super__=t.prototype,e},i.Decorate=function(r,i){var e=u(i),t=u(r);function o(){var e=Array.prototype.unshift,t=i.prototype.constructor.length,n=r.prototype.constructor;0<t&&(e.call(arguments,r.prototype.constructor),n=i.prototype.constructor),n.apply(this,arguments)}i.displayName=r.displayName,o.prototype=new function(){this.constructor=o};for(var n=0;n<t.length;n++){var s=t[n];o.prototype[s]=r.prototype[s]}function a(e){var t=function(){};e in o.prototype&&(t=o.prototype[e]);var n=i.prototype[e];return function(){return Array.prototype.unshift.call(arguments,t),n.apply(this,arguments)}}for(var l=0;l<e.length;l++){var c=e[l];o.prototype[c]=a(c)}return o};function e(){this.listeners={}}e.prototype.on=function(e,t){this.listeners=this.listeners||{},e in this.listeners?this.listeners[e].push(t):this.listeners[e]=[t]},e.prototype.trigger=function(e){var t=Array.prototype.slice,n=t.call(arguments,1);this.listeners=this.listeners||{},null==n&&(n=[]),0===n.length&&n.push({}),(n[0]._type=e)in this.listeners&&this.invoke(this.listeners[e],t.call(arguments,1)),"*"in this.listeners&&this.invoke(this.listeners["*"],arguments)},e.prototype.invoke=function(e,t){for(var n=0,r=e.length;n<r;n++)e[n].apply(this,t)},i.Observable=e,i.generateChars=function(e){for(var t="",n=0;n<e;n++){t+=Math.floor(36*Math.random()).toString(36)}return t},i.bind=function(e,t){return function(){e.apply(t,arguments)}},i._convertData=function(e){for(var t in e){var n=t.split("-"),r=e;if(1!==n.length){for(var i=0;i<n.length;i++){var o=n[i];(o=o.substring(0,1).toLowerCase()+o.substring(1))in r||(r[o]={}),i==n.length-1&&(r[o]=e[t]),r=r[o]}delete e[t]}}return e},i.hasScroll=function(e,t){var n=o(t),r=t.style.overflowX,i=t.style.overflowY;return(r!==i||"hidden"!==i&&"visible"!==i)&&("scroll"===r||"scroll"===i||(n.innerHeight()<t.scrollHeight||n.innerWidth()<t.scrollWidth))},i.escapeMarkup=function(e){var t={"\\":"&#92;","&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;","/":"&#47;"};return"string"!=typeof e?e:String(e).replace(/[&<>"'\/\\]/g,function(e){return t[e]})},i.appendMany=function(e,t){if("1.7"===o.fn.jquery.substr(0,3)){var n=o();o.map(t,function(e){n=n.add(e)}),t=n}e.append(t)},i.__cache={};var n=0;return i.GetUniqueElementId=function(e){var t=e.getAttribute("data-select2-id");return null==t&&(e.id?(t=e.id,e.setAttribute("data-select2-id",t)):(e.setAttribute("data-select2-id",++n),t=n.toString())),t},i.StoreData=function(e,t,n){var r=i.GetUniqueElementId(e);i.__cache[r]||(i.__cache[r]={}),i.__cache[r][t]=n},i.GetData=function(e,t){var n=i.GetUniqueElementId(e);
67return t?i.__cache[n]&&null!=i.__cache[n][t]?i.__cache[n][t]:o(e).data(t):i.__cache[n]},i.RemoveData=function(e){var t=i.GetUniqueElementId(e);null!=i.__cache[t]&&delete i.__cache[t],e.removeAttribute("data-select2-id")},i}),e.define("select2/results",["jquery","./utils"],function(h,f){function r(e,t,n){this.$element=e,this.data=n,this.options=t,r.__super__.constructor.call(this)}return f.Extend(r,f.Observable),r.prototype.render=function(){var e=h('<ul class="select2-results__options" role="listbox"></ul>');return this.options.get("multiple")&&e.attr("aria-multiselectable","true"),this.$results=e},r.prototype.clear=function(){this.$results.empty()},r.prototype.displayMessage=function(e){var t=this.options.get("escapeMarkup");this.clear(),this.hideLoading();var n=h('<li role="alert" aria-live="assertive" class="select2-results__option"></li>'),r=this.options.get("translations").get(e.message);n.append(t(r(e.args))),n[0].className+=" select2-results__message",this.$results.append(n)},r.prototype.hideMessages=function(){this.$results.find(".select2-results__message").remove()},r.prototype.append=function(e){this.hideLoading();var t=[];if(null!=e.results&&0!==e.results.length){e.results=this.sort(e.results);for(var n=0;n<e.results.length;n++){var r=e.results[n],i=this.option(r);t.push(i)}this.$results.append(t)}else 0===this.$results.children().length&&this.trigger("results:message",{message:"noResults"})},r.prototype.position=function(e,t){t.find(".select2-results").append(e)},r.prototype.sort=function(e){return this.options.get("sorter")(e)},r.prototype.highlightFirstItem=function(){var e=this.$results.find(".select2-results__option[aria-selected]"),t=e.filter("[aria-selected=true]");0<t.length?t.first().trigger("mouseenter"):e.first().trigger("mouseenter"),this.ensureHighlightVisible()},r.prototype.setClasses=function(){var t=this;this.data.current(function(e){var r=h.map(e,function(e){return e.id.toString()});t.$results.find(".select2-results__option[aria-selected]").each(function(){var e=h(this),t=f.GetData(this,"data"),n=""+t.id;null!=t.element&&t.element.selected||null==t.element&&-1<h.inArray(n,r)?e.attr("aria-selected","true"):e.attr("aria-selected","false")})})},r.prototype.showLoading=function(e){this.hideLoading();var t={disabled:!0,loading:!0,text:this.options.get("translations").get("searching")(e)},n=this.option(t);n.className+=" loading-results",this.$results.prepend(n)},r.prototype.hideLoading=function(){this.$results.find(".loading-results").remove()},r.prototype.option=function(e){var t=document.createElement("li");t.className="select2-results__option";var n={role:"option","aria-selected":"false"},r=window.Element.prototype.matches||window.Element.prototype.msMatchesSelector||window.Element.prototype.webkitMatchesSelector;for(var i in(null!=e.element&&r.call(e.element,":disabled")||null==e.element&&e.disabled)&&(delete n["aria-selected"],n["aria-disabled"]="true"),null==e.id&&delete n["aria-selected"],null!=e._resultId&&(t.id=e._resultId),e.title&&(t.title=e.title),e.children&&(n.role="group",n["aria-label"]=e.text,delete n["aria-selected"]),n){var o=n[i];t.setAttribute(i,o)}if(e.children){var s=h(t),a=document.createElement("strong");a.className="select2-results__group";h(a);this.template(e,a);for(var l=[],c=0;c<e.children.length;c++){var u=e.children[c],d=this.option(u);l.push(d)}var p=h("<ul></ul>",{class:"select2-results__options select2-results__options--nested"});p.append(l),s.append(a),s.append(p)}else this.template(e,t);return f.StoreData(t,"data",e),t},r.prototype.bind=function(t,e){var l=this,n=t.id+"-results";this.$results.attr("id",n),t.on("results:all",function(e){l.clear(),l.append(e.data),t.isOpen()&&(l.setClasses(),l.highlightFirstItem())}),t.on("results:append",function(e){l.append(e.data),t.isOpen()&&l.setClasses()}),t.on("query",function(e){l.hideMessages(),l.showLoading(e)}),t.on("select",function(){t.isOpen()&&(l.setClasses(),l.options.get("scrollAfterSelect")&&l.highlightFirstItem())}),t.on("unselect",function(){t.isOpen()&&(l.setClasses(),l.options.get("scrollAfterSelect")&&l.highlightFirstItem())}),t.on("open",function(){l.$results.attr("aria-expanded","true"),l.$results.attr("aria-hidden","false"),l.setClasses(),l.ensureHighlightVisible()}
67),t.on("close",function(){l.$results.attr("aria-expanded","false"),l.$results.attr("aria-hidden","true"),l.$results.removeAttr("aria-activedescendant")}),t.on("results:toggle",function(){var e=l.getHighlightedResults();0!==e.length&&e.trigger("mouseup")}),t.on("results:select",function(){var e=l.getHighlightedResults();if(0!==e.length){var t=f.GetData(e[0],"data");"true"==e.attr("aria-selected")?l.trigger("close",{}):l.trigger("select",{data:t})}}),t.on("results:previous",function(){var e=l.getHighlightedResults(),t=l.$results.find("[aria-selected]"),n=t.index(e);if(!(n<=0)){var r=n-1;0===e.length&&(r=0);var i=t.eq(r);i.trigger("mouseenter");var o=l.$results.offset().top,s=i.offset().top,a=l.$results.scrollTop()+(s-o);0===r?l.$results.scrollTop(0):s-o<0&&l.$results.scrollTop(a)}}),t.on("results:next",function(){var e=l.getHighlightedResults(),t=l.$results.find("[aria-selected]"),n=t.index(e)+1;if(!(n>=t.length)){var r=t.eq(n);r.trigger("mouseenter");var i=l.$results.offset().top+l.$results.outerHeight(!1),o=r.offset().top+r.outerHeight(!1),s=l.$results.scrollTop()+o-i;0===n?l.$results.scrollTop(0):i<o&&l.$results.scrollTop(s)}}),t.on("results:focus",function(e){e.element.addClass("select2-results__option--highlighted")}),t.on("results:message",function(e){l.displayMessage(e)}),h.fn.mousewheel&&this.$results.on("mousewheel",function(e){var t=l.$results.scrollTop(),n=l.$results.get(0).scrollHeight-t+e.deltaY,r=0<e.deltaY&&t-e.deltaY<=0,i=e.deltaY<0&&n<=l.$results.height();r?(l.$results.scrollTop(0),e.preventDefault(),e.stopPropagation()):i&&(l.$results.scrollTop(l.$results.get(0).scrollHeight-l.$results.height()),e.preventDefault(),e.stopPropagation())}),this.$results.on("mouseup",".select2-results__option[aria-selected]",function(e){var t=h(this),n=f.GetData(this,"data");"true"!==t.attr("aria-selected")?l.trigger("select",{originalEvent:e,data:n}):l.options.get("multiple")?l.trigger("unselect",{originalEvent:e,data:n}):l.trigger("close",{})}),this.$results.on("mouseenter",".select2-results__option[aria-selected]",function(e){var t=f.GetData(this,"data");l.getHighlightedResults().removeClass("select2-results__option--highlighted"),l.trigger("results:focus",{data:t,element:h(this)})})},r.prototype.getHighlightedResults=function(){return this.$results.find(".select2-results__option--highlighted")},r.prototype.destroy=function(){this.$results.remove()},r.prototype.ensureHighlightVisible=function(){var e=this.getHighlightedResults();if(0!==e.length){var t=this.$results.find("[aria-selected]").index(e),n=this.$results.offset().top,r=e.offset().top,i=this.$results.scrollTop()+(r-n),o=r-n;i-=2*e.outerHeight(!1),t<=2?this.$results.scrollTop(0):(o>this.$results.outerHeight()||o<0)&&this.$results.scrollTop(i)}},r.prototype.template=function(e,t){var n=this.options.get("templateResult"),r=this.options.get("escapeMarkup"),i=n(e,t);null==i?t.style.display="none":"string"==typeof i?t.innerHTML=r(i):h(t).append(i)},r}),e.define("select2/keys",[],function(){return{BACKSPACE:8,TAB:9,ENTER:13,SHIFT:16,CTRL:17,ALT:18,ESC:27,SPACE:32,PAGE_UP:33,PAGE_DOWN:34,END:35,HOME:36,LEFT:37,UP:38,RIGHT:39,DOWN:40,DELETE:46}}),e.define("select2/selection/base",["jquery","../utils","../keys"],function(n,r,i){function o(e,t){this.$element=e,this.options=t,o.__super__.constructor.call(this)}return r.Extend(o,r.Observable),o.prototype.render=function(){var e=n('<span class="select2-selection" role="combobox"  aria-haspopup="true" aria-expanded="false"></span>');return this._tabindex=0,null!=r.GetData(this.$element[0],"old-tabindex")?this._tabindex=r.GetData(this.$element[0],"old-tabindex"):null!=this.$element.attr("tabindex")&&(this._tabindex=this.$element.attr("tabindex")),e.attr("title",this.$element.attr("title")),e.attr("tabindex",this._tabindex),e.attr("aria-disabled","false"),this.$selection=e},o.prototype.bind=function(e,t){var n=this,r=e.id+"-results";this.container=e,this.$selection.on("focus",function(e){n.trigger("focus",e)}),this.$selection.on("blur",function(e){n._handleBlur(e)}),this.$selection.on("keydown",function(e){n.trigger("keypress",e),e.which===i.SPACE&&e.preventDefault()}),e.on("results:focus",function(e){n.$selection.attr("aria-activedescendant",e.data._resultId)}),e.on("selection:update",function(e){n.update(e.data)}),e.on("open",function(){n.$selection.attr("aria-expanded","true"),n.$selection.attr("aria-owns",r),n._attachCloseHandler(e)}),e.on("close",function(){n.$selection.attr("aria-expanded","fal
67se"),n.$selection.removeAttr("aria-activedescendant"),n.$selection.removeAttr("aria-owns"),n.$selection.trigger("focus"),n._detachCloseHandler(e)}),e.on("enable",function(){n.$selection.attr("tabindex",n._tabindex),n.$selection.attr("aria-disabled","false")}),e.on("disable",function(){n.$selection.attr("tabindex","-1"),n.$selection.attr("aria-disabled","true")})},o.prototype._handleBlur=function(e){var t=this;window.setTimeout(function(){document.activeElement==t.$selection[0]||n.contains(t.$selection[0],document.activeElement)||t.trigger("blur",e)},1)},o.prototype._attachCloseHandler=function(e){n(document.body).on("mousedown.select2."+e.id,function(e){var t=n(e.target).closest(".select2");n(".select2.select2-container--open").each(function(){this!=t[0]&&r.GetData(this,"element").select2("close")})})},o.prototype._detachCloseHandler=function(e){n(document.body).off("mousedown.select2."+e.id)},o.prototype.position=function(e,t){t.find(".selection").append(e)},o.prototype.destroy=function(){this._detachCloseHandler(this.container)},o.prototype.update=function(e){throw new Error("The `update` method must be defined in child classes.")},o.prototype.isEnabled=function(){return!this.isDisabled()},o.prototype.isDisabled=function(){return this.options.get("disabled")},o}),e.define("select2/selection/single",["jquery","./base","../utils","../keys"],function(e,t,n,r){function i(){i.__super__.constructor.apply(this,arguments)}return n.Extend(i,t),i.prototype.render=function(){var e=i.__super__.render.call(this);return e.addClass("select2-selection--single"),e.html('<span class="select2-selection__rendered"></span><span class="select2-selection__arrow" role="presentation"><b role="presentation"></b></span>'),e},i.prototype.bind=function(t,e){var n=this;i.__super__.bind.apply(this,arguments);var r=t.id+"-container";this.$selection.find(".select2-selection__rendered").attr("id",r).attr("role","textbox").attr("aria-readonly","true"),this.$selection.attr("aria-labelledby",r),this.$selection.on("mousedown",function(e){1===e.which&&n.trigger("toggle",{originalEvent:e})}),this.$selection.on("focus",function(e){}),this.$selection.on("blur",function(e){}),t.on("focus",function(e){t.isOpen()||n.$selection.trigger("focus")})},i.prototype.clear=function(){var e=this.$selection.find(".select2-selection__rendered");e.empty(),e.removeAttr("title")},i.prototype.display=function(e,t){var n=this.options.get("templateSelection");return this.options.get("escapeMarkup")(n(e,t))},i.prototype.selectionContainer=function(){return e("<span></span>")},i.prototype.update=function(e){if(0!==e.length){var t=e[0],n=this.$selection.find(".select2-selection__rendered"),r=this.display(t,n);n.empty().append(r);var i=t.title||t.text;i?n.attr("title",i):n.removeAttr("title")}else this.clear()},i}),e.define("select2/selection/multiple",["jquery","./base","../utils"],function(i,e,l){function n(e,t){n.__super__.constructor.apply(this,arguments)}return l.Extend(n,e),n.prototype.render=function(){var e=n.__super__.render.call(this);return e.addClass("select2-selection--multiple"),e.html('<ul class="select2-selection__rendered"></ul>'),e},n.prototype.bind=function(e,t){var r=this;n.__super__.bind.apply(this,arguments),this.$selection.on("click",function(e){r.trigger("toggle",{originalEvent:e})}),this.$selection.on("click",".select2-selection__choice__remove",function(e){if(!r.isDisabled()){var t=i(this).parent(),n=l.GetData(t[0],"data");r.trigger("unselect",{originalEvent:e,data:n})}})},n.prototype.clear=function(){var e=this.$selection.find(".select2-selection__rendered");e.empty(),e.removeAttr("title")},n.prototype.display=function(e,t){var n=this.options.get("templateSelection");return this.options.get("escapeMarkup")(n(e,t))},n.prototype.selectionContainer=function(){return i('<li class="select2-selection__choice"><span class="select2-selection__choice__remove" role="presentation">&times;</span></li>')},n.prototype.update=function(e){if(this.clear(),0!==e.length){for(var t=[],n=0;n<e.length;n++){var r=e[n],i=this.selectionContainer(),o=this.display(r,i);i.append(o);var s=r.title||r.text;
67s&&i.attr("title",s),l.StoreData(i[0],"data",r),t.push(i)}var a=this.$selection.find(".select2-selection__rendered");l.appendMany(a,t)}},n}),e.define("select2/selection/placeholder",["../utils"],function(e){function t(e,t,n){this.placeholder=this.normalizePlaceholder(n.get("placeholder")),e.call(this,t,n)}return t.prototype.normalizePlaceholder=function(e,t){return"string"==typeof t&&(t={id:"",text:t}),t},t.prototype.createPlaceholder=function(e,t){var n=this.selectionContainer();return n.html(this.display(t)),n.addClass("select2-selection__placeholder").removeClass("select2-selection__choice"),n},t.prototype.update=function(e,t){var n=1==t.length&&t[0].id!=this.placeholder.id;if(1<t.length||n)return e.call(this,t);this.clear();var r=this.createPlaceholder(this.placeholder);this.$selection.find(".select2-selection__rendered").append(r)},t}),e.define("select2/selection/allowClear",["jquery","../keys","../utils"],function(i,r,a){function e(){}return e.prototype.bind=function(e,t,n){var r=this;e.call(this,t,n),null==this.placeholder&&this.options.get("debug")&&window.console&&console.error&&console.error("Select2: The `allowClear` option should be used in combination with the `placeholder` option."),this.$selection.on("mousedown",".select2-selection__clear",function(e){r._handleClear(e)}),t.on("keypress",function(e){r._handleKeyboardClear(e,t)})},e.prototype._handleClear=function(e,t){if(!this.isDisabled()){var n=this.$selection.find(".select2-selection__clear");if(0!==n.length){t.stopPropagation();var r=a.GetData(n[0],"data"),i=this.$element.val();this.$element.val(this.placeholder.id);var o={data:r};if(this.trigger("clear",o),o.prevented)this.$element.val(i);else{for(var s=0;s<r.length;s++)if(o={data:r[s]},this.trigger("unselect",o),o.prevented)return void this.$element.val(i);this.$element.trigger("input").trigger("change"),this.trigger("toggle",{})}}}},e.prototype._handleKeyboardClear=function(e,t,n){n.isOpen()||t.which!=r.DELETE&&t.which!=r.BACKSPACE||this._handleClear(t)},e.prototype.update=function(e,t){if(e.call(this,t),!(0<this.$selection.find(".select2-selection__placeholder").length||0===t.length)){var n=this.options.get("translations").get("removeAllItems"),r=i('<span class="select2-selection__clear" title="'+n()+'">&times;</span>');a.StoreData(r[0],"data",t),this.$selection.find(".select2-selection__rendered").prepend(r)}},e}),e.define("select2/selection/search",["jquery","../utils","../keys"],function(r,a,l){function e(e,t,n){e.call(this,t,n)}return e.prototype.render=function(e){var t=r('<li class="select2-search select2-search--inline"><input class="select2-search__field" type="search" tabindex="-1" autocomplete="off" autocorrect="off" autocapitalize="none" spellcheck="false" role="searchbox" aria-autocomplete="list" /></li>');this.$searchContainer=t,this.$search=t.find("input");var n=e.call(this);return this._transferTabIndex(),n},e.prototype.bind=function(e,t,n){var r=this,i=t.id+"-results";e.call(this,t,n),t.on("open",function(){r.$search.attr("aria-controls",i),r.$search.trigger("focus")}),t.on("close",function(){r.$search.val(""),r.$search.removeAttr("aria-controls"),r.$search.removeAttr("aria-activedescendant"),r.$search.trigger("focus")}),t.on("enable",function(){r.$search.prop("disabled",!1),r._transferTabIndex()}),t.on("disable",function(){r.$search.prop("disabled",!0)}),t.on("focus",function(e){r.$search.trigger("focus")}),t.on("results:focus",function(e){e.data._resultId?r.$search.attr("aria-activedescendant",e.data._resultId):r.$search.removeAttr("aria-activedescendant")}),this.$selection.on("focusin",".select2-search--inline",function(e){r.trigger("focus",e)}),this.$selection.on("focusout",".select2-search--inline",function(e){r._handleBlur(e)}),this.$selection.on("keydown",".select2-search--inline",function(e){if(e.stopPropagation(),r.trigger("keypress",e),r._keyUpPrevented=e.isDefaultPrevented(),e.which===l.BACKSPACE&&""===r.$search.val()){var t=r.$searchContainer.prev(".select2-selection__choice");if(0<t.length){var n=a.GetData(t[0],"data");r.searchRemoveChoice(n),e.preventDefault()}}}),this.$selection.on("click",".select2-search--inline",function(e){r.$search.val()&&e.stopPropagation()});var o=document.documentMode,s=o&&o<=11;this.$selection.on("input.searchcheck",".select2-search--inline",function(e){s?r.$selection.off("input.search input.searchcheck"):r.$selection.off("keyup.search")}),this.$selection.on("keyup.search input.search",".select2-search--inline",function(e){if(s&&"input"===e.type)r.$selection.off("input.search input.searchcheck");else{var t=e.which;t!=l.SHIFT&&t!=l.CTRL&&t!=l.ALT&&t!=l.TAB&&r.handleSearch(e)}})},e.prototype._transferTabIndex=function(e){this.$search.attr("tabindex",this.$selection.attr("tabindex")),this.$selection.attr("tabindex","-1")},e.prototype.createPlaceholder=function(e,t){this.$search.attr("placeholder",t.text)},e.prototype.update=function(e,t){var n=this.$search[0]==document.activeElement;this.$search.attr("placeholder",""),e.call(this,t),this.$selection.find(".select2-selection__rendered").append(this.$searchContainer),this.resizeSearch(),n&&this.$search.trigger("focus")},e.prototype.handleSearch=function(){if(this.resizeSearch(),!this._keyUpPrevented){var e=this.$search.val();this.trigger("query",{term:e})}this._keyUpPrevented=!1},e.prototype.searchRemoveChoice=function(e,t){this.trigger("unselect",{data:t}),this.$search.val(t.text),this.handleSearch()},e.prototype.resizeSearch=function(){this.$search.css("width","25px");var e="";""!==this.$search.attr("placeholder")?e=this.$selection.find(".select2-selection__rendered").width():e=.75*(this.$search.val().length+1)+"em";this.$search.css("width",e)},e}),e.define("select2/selection/eventRelay",["jquery"],function(s){function e(){}return e.prototype.bind=function(e,t,n){var r=this,i=["open","opening","close","closing","select","selecting","unselect","unselecting","clear","clearing"],o=["opening","closing","selecting","unselecting","clearing"];e.call(this,t,n),t.on("*",function(e,t){if(-1!==s.inArray(e,i)){t=t||{};var n=s.Event("select2:"+e,{params:t});r.$element.trigger(n),-1!==s.inArray(e,o)&&(t.prevented=n.isDefaultPrevented())}})},e}),e.define("select2/translation",["jquery","require"],function(t,n){function r(e){this.dict=e||{}}return r.prototype.all=function(){return this.dict},r.prototype.get=function(e){return this.dict[e]},r.prototype.extend=function(e){this.dict=t.extend({},e.all(),this.dict)},r._cache={},r.loadPath=function(e){if(!(e in r._cache)){var t=n(e);r._cache[e]=t}return new r(r._cache[e])},r}),e.define("select2/diacritics",[],function(){return{"Ⓐ":"A","A":"A","À":"A","Á":"A","Â":"A","Ầ":"A","Ấ":"A","Ẫ":"A","Ẩ":"A","Ã":"A","Ā":"A","Ă":"A","Ằ":"A","Ắ":"A","Ẵ":"A","Ẳ":"A","Ȧ":"A","Ǡ":"A","Ä":"A","Ǟ":"A","Ả":"A","Å":"A","Ǻ":"A","Ǎ":"A","Ȁ":"A","Ȃ":"A","Ạ":"A","Ậ":"A","Ặ":"A","Ḁ":"A","Ą":"A","Ⱥ":"A","Ɐ":"A","Ꜳ":"AA","Æ":"AE","Ǽ":"AE","Ǣ":"AE","Ꜵ":"AO","Ꜷ":"AU","Ꜹ":"AV","Ꜻ":"AV","Ꜽ":"AY","Ⓑ":"B","B":"B","Ḃ":"B","Ḅ":"B","Ḇ":"B","Ƀ":"B","Ƃ":"B","Ɓ":"B","Ⓒ":"C","C":"C","Ć":"C","Ĉ":"C","Ċ":"C","Č":"C","Ç":"C","Ḉ":"C","Ƈ":"C","Ȼ":"C","Ꜿ":"C","Ⓓ":"D","D":"D","Ḋ":"D","Ď":"D","Ḍ":"D","Ḑ":"D","Ḓ":"D","Ḏ":"D","Đ":"D","Ƌ":"D","Ɗ":"D","Ɖ":"D","Ꝺ":"D","DZ":"DZ","DŽ":"DZ","Dz":"Dz","Dž":"Dz","Ⓔ":"E","E":"E","È":"E","É":"E","Ê":"E","Ề":"E","Ế":"E","Ễ":"E","Ể":"E","Ẽ":"E","Ē":"E","Ḕ":"E","Ḗ":"E","Ĕ":"E","Ė":"E","Ë":"E","Ẻ":"E","Ě":"E","Ȅ":"E","Ȇ":"E","Ẹ":"E","Ệ":"E","Ȩ":"E","Ḝ":"E","Ę":"E","Ḙ":"E","Ḛ":"E","Ɛ":"E","Ǝ":"E","Ⓕ":"F","F":"F","Ḟ":"F","Ƒ":"F","Ꝼ":"F","Ⓖ":"G","G":"G","Ǵ":"G","Ĝ":"G","Ḡ":"G","Ğ":"G","Ġ":"G","Ǧ":"G","Ģ":"G","Ǥ":"G","Ɠ":"G","Ꞡ":"G","Ᵹ":"G","Ꝿ":"G","Ⓗ":"H","H":"H","Ĥ":"H","Ḣ":"H","Ḧ":"H","Ȟ":"H","Ḥ":"H","Ḩ":"H","Ḫ":"H","Ħ":"H","Ⱨ":"H","Ⱶ":"H","Ɥ":"H","Ⓘ":"I","I":"I","Ì":"I","Í":"I","Î":"I","Ĩ":"I","Ī":"I","Ĭ":"I","İ":"I","Ï":"I","Ḯ":"I","Ỉ":"I","Ǐ":"I","Ȉ":"I","Ȋ":"I","Ị":"I","Į":"I","Ḭ":"I","Ɨ":"I","Ⓙ":"J","J":"J","Ĵ":"J","Ɉ":"J","Ⓚ":"K","K":"K","Ḱ":"K","Ǩ":"K","Ḳ":"K","Ķ":"K","Ḵ":"K","Ƙ":"K","Ⱪ":"K","Ꝁ":"K","Ꝃ":"K","Ꝅ":"K","Ꞣ":"K","Ⓛ":"L","L":"L","Ŀ":"L","Ĺ":"L","Ľ":"L","Ḷ":"L","Ḹ":"L","Ļ":"L","Ḽ":"L","Ḻ":"L","Ł":"L","Ƚ":"L","Ɫ":"L","Ⱡ":"L","Ꝉ":"L","Ꝇ":"L","Ꞁ":"L","LJ":"LJ","Lj":"Lj","Ⓜ":"M","M":"M","Ḿ":"M","Ṁ":"M","Ṃ":"M","Ɱ":"M","Ɯ":"M","Ⓝ":"N","N":"N","Ǹ":"N","Ń":"N","Ñ":"N","Ṅ":"N","Ň":"N","Ṇ":"N","Ņ":"N","Ṋ":"N","Ṉ":"N","Ƞ":"N","Ɲ":"N","Ꞑ":"N","Ꞥ":"N","NJ":"NJ","Nj":"Nj","Ⓞ":"O","O":"O","Ò":"O","Ó":"O","Ô":"O","Ồ":"O","Ố":"O","Ỗ":"O","Ổ":"O","Õ":"O","Ṍ":"O","Ȭ":"O","Ṏ":"O","Ō":"O","Ṑ":"O","Ṓ":"O","Ŏ":"O","Ȯ":"O","Ȱ":"O","Ö":"O","Ȫ":"O","Ỏ":"O","Ő":"O","Ǒ":"O","Ȍ":"O","Ȏ":"O","Ơ":"O","Ờ":"O","Ớ":"O","Ỡ":"O","Ở":"O","Ợ":"O","Ọ":"O","Ộ":"O","Ǫ":"O","Ǭ":"O","Ø":"O","Ǿ":"O","Ɔ":"O","Ɵ":"O","Ꝋ":"O","Ꝍ":"O","Œ":"OE","Ƣ":"OI","Ꝏ":"OO","Ȣ":"OU","Ⓟ":"P","P":"P","Ṕ":"P","Ṗ":"P","Ƥ":"P","Ᵽ":"P","Ꝑ":"P","Ꝓ":"P","Ꝕ":"P","Ⓠ":"Q","Q":"Q","Ꝗ":"Q","Ꝙ":"Q","Ɋ":"Q","Ⓡ":"R","R":"R","Ŕ":"R","Ṙ":"R","Ř":"R","Ȑ":"R","Ȓ":"R","Ṛ":"R","Ṝ":"R","Ŗ":"R","Ṟ":"R","Ɍ":"R","Ɽ":"R","Ꝛ":"R","Ꞧ":"R","Ꞃ":"R","Ⓢ":"S","S":"S","ẞ":"S","Ś":"S","Ṥ":"S","Ŝ":"S","Ṡ":"S","Š":"S","Ṧ":"S","Ṣ":"S","Ṩ":"S","Ș":"S","Ş":"S","Ȿ":"S","Ꞩ":"S","Ꞅ":"S","Ⓣ":"T","T":"T","Ṫ":"T","Ť":"T","Ṭ":"T","Ț":"T","Ţ":"T","Ṱ":"T","Ṯ":"T","Ŧ":"T","Ƭ":"T","Ʈ":"T","Ⱦ":"T","Ꞇ":"T","Ꜩ":"TZ","Ⓤ":"U","U":"U","Ù":"U","Ú":"U","Û":"U","Ũ":"U","Ṹ":"U","Ū":"U","Ṻ":"U","Ŭ":"U","Ü":"U","Ǜ":"U","Ǘ":"U","Ǖ":"U","Ǚ":"U","Ủ":"U","Ů":"U","Ű":"U","Ǔ":"U","Ȕ":"U","Ȗ":"U","Ư":"U","Ừ":"U","Ứ":"U","Ữ":"U","Ử":"U","Ự":"U","Ụ":"U","Ṳ":"U","Ų":"U","Ṷ":"U","Ṵ":"U","Ʉ":"U","Ⓥ":"V","V":"V","Ṽ":"V","Ṿ":"V","Ʋ":"
67V","Ꝟ":"V","Ʌ":"V","Ꝡ":"VY","Ⓦ":"W","W":"W","Ẁ":"W","Ẃ":"W","Ŵ":"W","Ẇ":"W","Ẅ":"W","Ẉ":"W","Ⱳ":"W","Ⓧ":"X","X":"X","Ẋ":"X","Ẍ":"X","Ⓨ":"Y","Y":"Y","Ỳ":"Y","Ý":"Y","Ŷ":"Y","Ỹ":"Y","Ȳ":"Y","Ẏ":"Y","Ÿ":"Y","Ỷ":"Y","Ỵ":"Y","Ƴ":"Y","Ɏ":"Y","Ỿ":"Y","Ⓩ":"Z","Z":"Z","Ź":"Z","Ẑ":"Z","Ż":"Z","Ž":"Z","Ẓ":"Z","Ẕ":"Z","Ƶ":"Z","Ȥ":"Z","Ɀ":"Z","Ⱬ":"Z","Ꝣ":"Z","ⓐ":"a","a":"a","ẚ":"a","à":"a","á":"a","â":"a","ầ":"a","ấ":"a","ẫ":"a","ẩ":"a","ã":"a","ā":"a","ă":"a","ằ":"a","ắ":"a","ẵ":"a","ẳ":"a","ȧ":"a","ǡ":"a","ä":"a","ǟ":"a","ả":"a","å":"a","ǻ":"a","ǎ":"a","ȁ":"a","ȃ":"a","ạ":"a","ậ":"a","ặ":"a","ḁ":"a","ą":"a","ⱥ":"a","ɐ":"a","ꜳ":"aa","æ":"ae","ǽ":"ae","ǣ":"ae","ꜵ":"ao","ꜷ":"au","ꜹ":"av","ꜻ":"av","ꜽ":"ay","ⓑ":"b","b":"b","ḃ":"b","ḅ":"b","ḇ":"b","ƀ":"b","ƃ":"b","ɓ":"b","ⓒ":"c","c":"c","ć":"c","ĉ":"c","ċ":"c","č":"c","ç":"c","ḉ":"c","ƈ":"c","ȼ":"c","ꜿ":"c","ↄ":"c","ⓓ":"d","d":"d","ḋ":"d","ď":"d","ḍ":"d","ḑ":"d","ḓ":"d","ḏ":"d","đ":"d","ƌ":"d","ɖ":"d","ɗ":"d","ꝺ":"d","dz":"dz","dž":"dz","ⓔ":"e","e":"e","è":"e","é":"e","ê":"e","ề":"e","ế":"e","ễ":"e","ể":"e","ẽ":"e","ē":"e","ḕ":"e","ḗ":"e","ĕ":"e","ė":"e","ë":"e","ẻ":"e","ě":"e","ȅ":"e","ȇ":"e","ẹ":"e","ệ":"e","ȩ":"e","ḝ":"e","ę":"e","ḙ":"e","ḛ":"e","ɇ":"e","ɛ":"e","ǝ":"e","ⓕ":"f","f":"f","ḟ":"f","ƒ":"f","ꝼ":"f","ⓖ":"g","g":"g","ǵ":"g","ĝ":"g","ḡ":"g","ğ":"g","ġ":"g","ǧ":"g","ģ":"g","ǥ":"g","ɠ":"g","ꞡ":"g","ᵹ":"g","ꝿ":"g","ⓗ":"h","h":"h","ĥ":"h","ḣ":"h","ḧ":"h","ȟ":"h","ḥ":"h","ḩ":"h","ḫ":"h","ẖ":"h","ħ":"h","ⱨ":"h","ⱶ":"h","ɥ":"h","ƕ":"hv","ⓘ":"i","i":"i","ì":"i","í":"i","î":"i","ĩ":"i","ī":"i","ĭ":"i","ï":"i","ḯ":"i","ỉ":"i","ǐ":"i","ȉ":"i","ȋ":"i","ị":"i","į":"i","ḭ":"i","ɨ":"i","ı":"i","ⓙ":"j","j":"j","ĵ":"j","ǰ":"j","ɉ":"j","ⓚ":"k","k":"k","ḱ":"k","ǩ":"k","ḳ":"k","ķ":"k","ḵ":"k","ƙ":"k","ⱪ":"k","ꝁ":"k","ꝃ":"k","ꝅ":"k","ꞣ":"k","ⓛ":"l","l":"l","ŀ":"l","ĺ":"l","ľ":"l","ḷ":"l","ḹ":"l","ļ":"l","ḽ":"l","ḻ":"l","ſ":"l","ł":"l","ƚ":"l","ɫ":"l","ⱡ":"l","ꝉ":"l","ꞁ":"l","ꝇ":"l","lj":"lj","ⓜ":"m","m":"m","ḿ":"m","ṁ":"m","ṃ":"m","ɱ":"m","ɯ":"m","ⓝ":"n","n":"n","ǹ":"n","ń":"n","ñ":"n","ṅ":"n","ň":"n","ṇ":"n","ņ":"n","ṋ":"n","ṉ":"n","ƞ":"n","ɲ":"n","ʼn":"n","ꞑ":"n","ꞥ":"n","nj":"nj","ⓞ":"o","o":"o","ò":"o","ó":"o","ô":"o","ồ":"o","ố":"o","ỗ":"o","ổ":"o","õ":"o","ṍ":"o","ȭ":"o","ṏ":"o","ō":"o","ṑ":"o","ṓ":"o","ŏ":"o","ȯ":"o","ȱ":"o","ö":"o","ȫ":"o","ỏ":"o","ő":"o","ǒ":"o","ȍ":"o","ȏ":"o","ơ":"o","ờ":"o","ớ":"o","ỡ":"o","ở":"o","ợ":"o","ọ":"o","ộ":"o","ǫ":"o","ǭ":"o","ø":"o","ǿ":"o","ɔ":"o","ꝋ":"o","ꝍ":"o","ɵ":"o","œ":"oe","ƣ":"oi","ȣ":"ou","ꝏ":"oo","ⓟ":"p","p":"p","ṕ":"p","ṗ":"p","ƥ":"p","ᵽ":"p","ꝑ":"p","ꝓ":"p","ꝕ":"p","ⓠ":"q","q":"q","ɋ":"q","ꝗ":"q","ꝙ":"q","ⓡ":"r","r":"r","ŕ":"r","ṙ":"r","ř":"r","ȑ":"r","ȓ":"r","ṛ":"r","ṝ":"r","ŗ":"r","ṟ":"r","ɍ":"r","ɽ":"r","ꝛ":"r","ꞧ":"r","ꞃ":"r","ⓢ":"s","s":"s","ß":"s","ś":"s","ṥ":"s","ŝ":"s","ṡ":"s","š":"s","ṧ":"s","ṣ":"s","ṩ":"s","ș":"s","ş":"s","ȿ":"s","ꞩ":"s","ꞅ":"s","ẛ":"s","ⓣ":"t","t":"t","ṫ":"t","ẗ":"t","ť":"t","ṭ":"t","ț":"t","ţ":"t","ṱ":"t","ṯ":"t","ŧ":"t","ƭ":"t","ʈ":"t","ⱦ":"t","ꞇ":"t","ꜩ":"tz","ⓤ":"u","u":"u","ù":"u","ú":"u","û":"u","ũ":"u","ṹ":"u","ū":"u","ṻ":"u","ŭ":"u","ü":"u","ǜ":"u","ǘ":"u","ǖ":"u","ǚ":"u","ủ":"u","ů":"u","ű":"u","ǔ":"u","ȕ":"u","ȗ":"u","ư":"u","ừ":"u","ứ":"u","ữ":"u","ử":"u","ự":"u","ụ":"u","ṳ":"u","ų":"u","ṷ":"u","ṵ":"u","ʉ":"u","ⓥ":"v","v":"v","ṽ":"v","ṿ":"v","ʋ":"v","ꝟ":"v","ʌ":"v","ꝡ":"vy","ⓦ":"w","w":"w","ẁ":"w","ẃ":"w","ŵ":"w","ẇ":"w","ẅ":"w","ẘ":"w","ẉ":"w","ⱳ":"w","ⓧ":"x","x":"x","ẋ":"x","ẍ":"x","ⓨ":"y","y":"y","ỳ":"y","ý":"y","ŷ":"y","ỹ":"y","ȳ":"y","ẏ":"y","ÿ":"y","ỷ":"y","ẙ":"y","ỵ":"y","ƴ":"y","ɏ":"y","ỿ":"y","ⓩ":"z","z":"z","ź":"z","ẑ":"z","ż":"z","ž":"z","ẓ":"z","ẕ":"z","ƶ":"z","ȥ":"z","ɀ":"z","ⱬ":"z","ꝣ":"z","Ά":"Α","Έ":"Ε","Ή":"Η","Ί":"Ι","Ϊ":"Ι","Ό":"Ο","Ύ":"Υ","Ϋ":"Υ","Ώ":"Ω","ά":"α","έ":"ε","ή":"η","ί":"ι","ϊ":"ι","ΐ":"ι","ό":"ο","ύ":"υ","ϋ":"υ","ΰ":"υ","ώ":"ω","ς":"σ","’":"'"}}),e.define("select2/data/base",["../utils"],function(r){function n(e,t){n.__super__.constructor.call(this)}return r.Extend(n,r.Observable),n.prototype.current=function(e){throw new Error("The `current` method must be defined in child classes.")},n.prototype.query=function(e,t){throw new Error("The `query` method must be defined in child classes.")},n.prototype.bind=function(e,t){},n.prototype.destroy=function(){},n.prototype.generateResultId=function(e,t){var n=e.id+"-result-";return n+=r.generateChars(4),null!=t.id?n+="-"+t.id.toString():n+="-"+r.generateChars(4),n},n}),e.define("select2/data/select",["./base","../utils","jquery"],function(e,a,l){function n(e,t){this.$element=e,this.options=t,n.__super__.constructor.call(this)}return a.Extend(n,e),n.prototype.current=function(e){var n=[],r=this;this.$element.find(":selected").each(function(){var e=l(this),t=r.item(e);n.push(t)}),e(n)},n.prototype.select=function(i){var o=this;if(i.selected=!0,l(i.element).is("option"))return i.element.selected=!0,void this.$element.trigger("input").trigger("change");if(this.$element.prop("multiple"))this.current(function(e){var t=[];(i=[i]).push.apply(i,e);for(var n=0;n<i.length;n++){var r=i[n].id;-1===l.inArray(r,t)&&t.push(r)}o.$element.val(t),o.$element.trigger("input").trigger("change")});else{var e=i.id;this.$element.val(e),this.$element.trigger("input").trigger("change")}},n.prototype.unselect=function(i){var o=this;if(this.$element.prop("multiple")){if(i.selected=!1,l(i.element).is("option"))return i.element.selected=!1,void this.$element.trigger("input").trigger("change");this.current(function(e){for(var t=[],n=0;n<e.length;n++){var r=e[n].id;r!==i.id&&-1===l.inArray(r,t)&&t.push(r)}o.$element.val(t),o.$element.trigger("input").trigger("change")})}},n.prototype.bind=function(e,t){var n=this;(this.container=e).on("select",function(e){n.select(e.data)}),e.on("unselect",function(e){n.unselect(e.data)})},n.prototype.destroy=function(){this.$element.find("*").each(function(){a.RemoveData(this)})},n.prototype.query=function(r,e){var i=[],o=this;this.$element.children().each(function(){var e=l(this);if(e.is("option")||e.is("optgroup")){var t=o.item(e),n=o.matches(r,t);null!==n&&i.push(n)}}),e({results:i})},n.prototype.addOptions=function(e){a.appendMany(this.$element,e)},n.prototype.option=function(e){var t;e.children?(t=document.createElement("optgroup")).label=e.text:void 0!==(t=document.createElement("option")).textContent?t.textContent=e.text:t.innerText=e.text,void 0!==e.id&&(t.value=e.id),e.disabled&&(t.disabled=!0),e.selected&&(t.selected=!0),e.title&&(t.title=e.title);var n=l(t),r=this._normalizeItem(e);return r.element=t,a.StoreData(t,"data",r),n},n.prototype.item=function(e){var t={};if(null!=(t=a.GetData(e[0],"data")))return t;if(e.is("option"))t={id:e.val(),text:e.text(),disabled:e.prop("disabled"),selected:e.prop("selected"),title:e.prop("title")};else if(e.is("optgroup")){t={text:e.prop("label"),children:[],title:e.prop("title")};for(var n=e.children("option"),r=[],i=0;i<n.length;i++){var o=l(n[i]),s=this.item(o);r.push(s)}t.children=r}return(t=this._normalizeItem(t)).element=e[0],a.StoreData(e[0],"data",t),t},n.prototype._normalizeItem=function(e){e!==Object(e)&&(e={id:e,text:e});return null!=(e=l.extend({},{text:""},e)).id&&(e.id=e.id.toString()),null!=e.text&&(e.text=e.text.toString()),null==e._resultId&&e.id&&null!=this.container&&(e._resultId=this.generateResultId(this.container,e)),l.extend({},{selected:!1,disabled:!1},e)},n.prototype.matches=function(e,t){return this.options.get("matcher")(e,t)},n}),e.define("select2/data/array",["./select","../utils","jquery"],function(e,f,g){function r(e,t){this._dataToConvert=t.get("data")||[],r.__super__.constructor.call(this,e,t)}return f.Extend(r,e),r.prototype.bind=function(e,t){r.__super__.bind.call(this,e,t),this.addOptions(this.convertToOptions(this._dataToConvert))},r.prototype.select=function(n){var e=this.$element.find("option").filter(function(e,t){return t.value==n.id.toString()});0===e.length&&(e=this.option(n),this.addOptions(e)),r.__super__.select.call(this,n)},r.prototype.convertToOptions=function(e){var t=this,n=this.$element.find("option"),r=n.map(function(){return t.item(g(this)).id}).get(),i=[];function o(e){return function(){return g(this).val()==e.id}}for(var s=0;s<e.length;s++){var a=this._normalizeItem(e[s]);if(0<=g.inArray(a.id,r)){var l=n.filter(o(a)),c=this.item(l),u=g.extend(!0,{},a,c),d=this.option(u);l.replaceWith(d)}else{var p=this.option(a);if(a.children){var h=this.convertToOptions(a.children);f.appendMany(p,h)}i.push(p)}}return i},r}),e.define("select2/data/ajax",["./array","../utils","jquery"],function(e,t,o){function n(e,t){this.ajaxOptions=this._applyDefaults(t.get("ajax")),null!=this.ajaxOptions.processResults&&(this.processResults=this.ajaxOptions.processResults),n.__super__.constructor.call(this,e,t)}return t.Extend(n,e),n.prototype._applyDefaults=function(e){var t={data:function(e){return o.extend({},e,{q:e.term})},transport:function(e,t,n){var r=o.ajax(e);return r.then(t),r.fail(n),r}};return o.extend({},t,e,!0)},n.prototype.processResults=function(e){return e},n.prototype.query=function(n,r){var i=this;null!=this._request&&(o.isFunction(this._request.abort)&&this._request.abort(),this._request=null);var t=o.extend({type:"GET"},this.ajaxOptions);function e(){var e=t.transport(t,function(e){var t=i.processResults(e,n);i.options.get("debug")&&window.console&&console.error&&(t&&t.results&&o.isArray(t.results)||console.error("Select2: The AJAX results did not return an array in the `results` key of the response.")),r(t)},function(){"status"in e&&(0===e.status||"0"===e.status)||i.trigger("results:message",{message:"errorLoading"})});i._request=e}"function"==typeof t.url&&(t.url=t.url.call(this.$element,n)),"function"==typeof t.data&&(t.data=t.data.call(this.$element,n)),this.ajaxOptions.delay&&null!=n.term?(this._queryTimeout&&window.clearTimeout(this._queryTimeout),this._queryTimeout=window.setTimeout(e,this.ajaxOptions.delay)):e()},n}),e.define("select2/data/tags",["jquery"],function(u){function e(e,t,n){var r=n.get("tags"),i=n.get("createTag");void 0!==i&&(this.createTag=i);var o=n.get("insertTag");if(void 0!==o&&(this.insertTag=o),e.call(this,t,n),u.isArray(r))for(var s=0;s<r.length;
67s++){var a=r[s],l=this._normalizeItem(a),c=this.option(l);this.$element.append(c)}}return e.prototype.query=function(e,c,u){var d=this;this._removeOldTags(),null!=c.term&&null==c.page?e.call(this,c,function e(t,n){for(var r=t.results,i=0;i<r.length;i++){var o=r[i],s=null!=o.children&&!e({results:o.children},!0);if((o.text||"").toUpperCase()===(c.term||"").toUpperCase()||s)return!n&&(t.data=r,void u(t))}if(n)return!0;var a=d.createTag(c);if(null!=a){var l=d.option(a);l.attr("data-select2-tag",!0),d.addOptions([l]),d.insertTag(r,a)}t.results=r,u(t)}):e.call(this,c,u)},e.prototype.createTag=function(e,t){var n=u.trim(t.term);return""===n?null:{id:n,text:n}},e.prototype.insertTag=function(e,t,n){t.unshift(n)},e.prototype._removeOldTags=function(e){this.$element.find("option[data-select2-tag]").each(function(){this.selected||u(this).remove()})},e}),e.define("select2/data/tokenizer",["jquery"],function(d){function e(e,t,n){var r=n.get("tokenizer");void 0!==r&&(this.tokenizer=r),e.call(this,t,n)}return e.prototype.bind=function(e,t,n){e.call(this,t,n),this.$search=t.dropdown.$search||t.selection.$search||n.find(".select2-search__field")},e.prototype.query=function(e,t,n){var i=this;t.term=t.term||"";var r=this.tokenizer(t,this.options,function(e){var t,n=i._normalizeItem(e);if(!i.$element.find("option").filter(function(){return d(this).val()===n.id}).length){var r=i.option(n);r.attr("data-select2-tag",!0),i._removeOldTags(),i.addOptions([r])}t=n,i.trigger("select",{data:t})});r.term!==t.term&&(this.$search.length&&(this.$search.val(r.term),this.$search.trigger("focus")),t.term=r.term),e.call(this,t,n)},e.prototype.tokenizer=function(e,t,n,r){for(var i=n.get("tokenSeparators")||[],o=t.term,s=0,a=this.createTag||function(e){return{id:e.term,text:e.term}};s<o.length;){var l=o[s];if(-1!==d.inArray(l,i)){var c=o.substr(0,s),u=a(d.extend({},t,{term:c}));null!=u?(r(u),o=o.substr(s+1)||"",s=0):s++}else s++}return{term:o}},e}),e.define("select2/data/minimumInputLength",[],function(){function e(e,t,n){this.minimumInputLength=n.get("minimumInputLength"),e.call(this,t,n)}return e.prototype.query=function(e,t,n){t.term=t.term||"",t.term.length<this.minimumInputLength?this.trigger("results:message",{message:"inputTooShort",args:{minimum:this.minimumInputLength,input:t.term,params:t}}):e.call(this,t,n)},e}),e.define("select2/data/maximumInputLength",[],function(){function e(e,t,n){this.maximumInputLength=n.get("maximumInputLength"),e.call(this,t,n)}return e.prototype.query=function(e,t,n){t.term=t.term||"",0<this.maximumInputLength&&t.term.length>this.maximumInputLength?this.trigger("results:message",{message:"inputTooLong",args:{maximum:this.maximumInputLength,input:t.term,params:t}}):e.call(this,t,n)},e}),e.define("select2/data/maximumSelectionLength",[],function(){function e(e,t,n){this.maximumSelectionLength=n.get("maximumSelectionLength"),e.call(this,t,n)}return e.prototype.bind=function(e,t,n){var r=this;e.call(this,t,n),t.on("select",function(){r._checkIfMaximumSelected()})},e.prototype.query=function(e,t,n){var r=this;this._checkIfMaximumSelected(function(){e.call(r,t,n)})},e.prototype._checkIfMaximumSelected=function(e,n){var r=this;this.current(function(e){var t=null!=e?e.length:0;0<r.maximumSelectionLength&&t>=r.maximumSelectionLength?r.trigger("results:message",{message:"maximumSelected",args:{maximum:r.maximumSelectionLength}}):n&&n()})},e}),e.define("select2/dropdown",["jquery","./utils"],function(t,e){function n(e,t){this.$element=e,this.options=t,n.__super__.constructor.call(this)}return e.Extend(n,e.Observable),n.prototype.render=function(){var e=t('<span class="select2-dropdown"><span class="select2-results"></span></span>');return e.attr("dir",this.options.get("dir")),this.$dropdown=e},n.prototype.bind=function(){},n.prototype.position=function(e,t){},n.prototype.destroy=function(){this.$dropdown.remove()},n}),e.define("select2/dropdown/search",["jquery","../utils"],function(o,e){function t(){}return t.prototype.render=function(e){var t=e.call(this),n=o('<span class="select2-search select2-search--dropdown"><input class="select2-search__field" type="search" tabindex="-1" autocomplete="off" autocorrect="off" autocapitalize="none" spellcheck="false" role="searchbox" aria-autocomplete="list" /></span>');return this.$searchContainer=n,this.$search=n.find("input"),t.prepend(n),t},t.prototype.bind=function(e,t,n){var r=this,i=t.id+"-results";e.call(this,t,n),this.$search.on("keydown",function(e){r.trigger("keypress",e),r._keyUpPrevented=e.isDefaultPrevented()}),this.$search.on("input",function(e){o(this).off("keyup")}),this.$search.on("keyup input",function(e){r.handleSearch(e)}),t.on("open",function(){r.$search.attr("tabindex",0),r.$search.attr("aria-controls",i),r.$search.trigger("focus"),window.setTimeout(function(){r.$search.trigger("focus")},0)}),t.on("close",function(){r.$search.attr("tabindex",-1),r.$search.removeAttr("aria-controls"),r.$search.removeAttr("aria-activedescendant"),r.$search.val(""),r.$search.trigger("blur")}),t.on("focus",function(){t.isOpen()||r.$search.trigger("focus")}),t.on("results:all",function(e){null!=e.query.term&&""!==e.query.term||(r.showSearch(e)?r.$searchContainer.removeClass("select2-search--hide"):r.$searchContainer.addClass("select2-search--hide"))}),t.on("results:focus",function(e){e.data._resultId?r.$search.attr("aria-activedescendant",e.data._resultId):r.$search.removeAttr("aria-activedescendant")})},t.prototype.handleSearch=function(e){if(!this._keyUpPrevented){var t=this.$search.val();this.trigger("query",{term:t})}this._keyUpPrevented=!1},t.prototype.showSearch=function(e,t){return!0},t}),e.define("select2/dropdown/hidePlaceholder",[],function(){function e(e,t,n,r){this.placeholder=this.normalizePlaceholder(n.get("placeholder")),e.call(this,t,n,r)}return e.prototype.append=function(e,t){t.results=this.removePlaceholder(t.results),e.call(this,t)},e.prototype.normalizePlaceholder=function(e,t){return"string"==typeof t&&(t={id:"",text:t}),t},e.prototype.removePlaceholder=function(e,t){for(var n=t.slice(0),r=t.length-1;0<=r;r--){var i=t[r];this.placeholder.id===i.id&&n.splice(r,1)}return n},e}),e.define("select2/dropdown/infiniteScroll",["jquery"],function(n){function e(e,t,n,r){this.lastParams={},e.call(this,t,n,r),this.$loadingMore=this.createLoadingMore(),this.loading=!1}return e.prototype.append=function(e,t){this.$loadingMore.remove(),this.loading=!1,e.call(this,t),this.showLoadingMore(t)&&(this.$results.append(this.$loadingMore),this.loadMoreIfNeeded())},e.prototype.bind=function(e,t,n){var r=this;e.call(this,t,n),t.on("query",function(e){r.lastParams=e,r.loading=!0}),t.on("query:append",function(e){r.lastParams=e,r.loading=!0}),this.$results.on("scroll",this.loadMoreIfNeeded.bind(this))},e.prototype.loadMoreIfNeeded=function(){var e=n.contains(document.documentElement,this.$loadingMore[0]);if(!this.loading&&e){var t=this.$results.offset().top+this.$results.outerHeight(!1);this.$loadingMore.offset().top+this.$loadingMore.outerHeight(!1)<=t+50&&this.loadMore()}},e.prototype.loadMore=function(){this.loading=!0;var e=n.extend({},{page:1},this.lastParams);e.page++,this.trigger("query:append",e)},e.prototype.showLoadingMore=function(e,t){return t.pagination&&t.pagination.more},e.prototype.createLoadingMore=function(){var e=n('<li class="select2-results__option select2-results__option--load-more"role="option" aria-disabled="true"></li>'),t=this.options.get("translations").get("loadingMore");return e.html(t(this.lastParams)),e},e}),e.define("select2/dropdown/attachBody",["jquery","../utils"],function(f,a){function e(e,t,n){this.$dropdownParent=f(n.get("dropdownParent")||document.body),e.call(this,t,n)}return e.prototype.bind=function(e,t,n){var r=this;e.call(this,t,n),t.on("open",function(){r._showDropdown(),r._attachPositioningHandler(t),r._bindContainerResultHandlers(t)}),t.on("close",function(){r._hideDropdown(),r._detachPositioningHandler(t)}),this.$dropdownContainer.on("mousedown",function(e){e.stopPropagation()})},e.prototype.destroy=function(e){e.call(this),this.$dropdownContainer.remove()},e.prototype.position=function(e,t,n){t.attr("class",n.attr("class")),t.removeClass("select2"),t.addClass("select2-container--open"),t.css({position:"absolute",top:-999999}),this.$container=n},e.prototype.render=function(e){var t=f("<span></span>"),n=e.call(this);return t.append(n),this.$dropdownContainer=t},e.prototype._hideDropdown=function(e){this.$dropdownContainer.detach()},e.prototype._bindContainerResultHandlers=function(e,t){if(!this._containerResultsHandlersBound){var n=this;t.on("results:all",function(){n._positionDropdown(),n._resizeDropdown()}),t.on("results:append",function(){n._positionDropdown(),n._resizeDropdown()}),t.on("results:message",function(){n._positionDropdown(),n._resizeDropdown()}),t.on("select",function(){n._positionDropdown(),n._resizeDropdown()}),t.on("unselect",function(){n._positionDropdown(),n._resizeDropdown()}),this._containerResultsHandlersBound=!0}},e.prototype._attachPositioningHandler=function(e,t){var n=this,r="scroll.
67select2."+t.id,i="resize.select2."+t.id,o="orientationchange.select2."+t.id,s=this.$container.parents().filter(a.hasScroll);s.each(function(){a.StoreData(this,"select2-scroll-position",{x:f(this).scrollLeft(),y:f(this).scrollTop()})}),s.on(r,function(e){var t=a.GetData(this,"select2-scroll-position");f(this).scrollTop(t.y)}),f(window).on(r+" "+i+" "+o,function(e){n._positionDropdown(),n._resizeDropdown()})},e.prototype._detachPositioningHandler=function(e,t){var n="scroll.select2."+t.id,r="resize.select2."+t.id,i="orientationchange.select2."+t.id;this.$container.parents().filter(a.hasScroll).off(n),f(window).off(n+" "+r+" "+i)},e.prototype._positionDropdown=function(){var e=f(window),t=this.$dropdown.hasClass("select2-dropdown--above"),n=this.$dropdown.hasClass("select2-dropdown--below"),r=null,i=this.$container.offset();i.bottom=i.top+this.$container.outerHeight(!1);var o={height:this.$container.outerHeight(!1)};o.top=i.top,o.bottom=i.top+o.height;var s=this.$dropdown.outerHeight(!1),a=e.scrollTop(),l=e.scrollTop()+e.height(),c=a<i.top-s,u=l>i.bottom+s,d={left:i.left,top:o.bottom},p=this.$dropdownParent;"static"===p.css("position")&&(p=p.offsetParent());var h={top:0,left:0};(f.contains(document.body,p[0])||p[0].isConnected)&&(h=p.offset()),d.top-=h.top,d.left-=h.left,t||n||(r="below"),u||!c||t?!c&&u&&t&&(r="below"):r="above",("above"==r||t&&"below"!==r)&&(d.top=o.top-h.top-s),null!=r&&(this.$dropdown.removeClass("select2-dropdown--below select2-dropdown--above").addClass("select2-dropdown--"+r),this.$container.removeClass("select2-container--below select2-container--above").addClass("select2-container--"+r)),this.$dropdownContainer.css(d)},e.prototype._resizeDropdown=function(){var e={width:this.$container.outerWidth(!1)+"px"};this.options.get("dropdownAutoWidth")&&(e.minWidth=e.width,e.position="relative",e.width="auto"),this.$dropdown.css(e)},e.prototype._showDropdown=function(e){this.$dropdownContainer.appendTo(this.$dropdownParent),this._positionDropdown(),this._resizeDropdown()},e}),e.define("select2/dropdown/minimumResultsForSearch",[],function(){function e(e,t,n,r){this.minimumResultsForSearch=n.get("minimumResultsForSearch"),this.minimumResultsForSearch<0&&(this.minimumResultsForSearch=1/0),e.call(this,t,n,r)}return e.prototype.showSearch=function(e,t){return!(function e(t){for(var n=0,r=0;r<t.length;r++){var i=t[r];i.children?n+=e(i.children):n++}return n}(t.data.results)<this.minimumResultsForSearch)&&e.call(this,t)},e}),e.define("select2/dropdown/selectOnClose",["../utils"],function(o){function e(){}return e.prototype.bind=function(e,t,n){var r=this;e.call(this,t,n),t.on("close",function(e){r._handleSelectOnClose(e)})},e.prototype._handleSelectOnClose=function(e,t){if(t&&null!=t.originalSelect2Event){var n=t.originalSelect2Event;if("select"===n._type||"unselect"===n._type)return}var r=this.getHighlightedResults();if(!(r.length<1)){var i=o.GetData(r[0],"data");null!=i.element&&i.element.selected||null==i.element&&i.selected||this.trigger("select",{data:i})}},e}),e.define("select2/dropdown/closeOnSelect",[],function(){function e(){}return e.prototype.bind=function(e,t,n){var r=this;e.call(this,t,n),t.on("select",function(e){r._selectTriggered(e)}),t.on("unselect",function(e){r._selectTriggered(e)})},e.prototype._selectTriggered=function(e,t){var n=t.originalEvent;n&&(n.ctrlKey||n.metaKey)||this.trigger("close",{originalEvent:n,originalSelect2Event:t})},e}),e.define("select2/i18n/en",[],function(){return{errorLoading:function(){return"The results could not be loaded."},inputTooLong:function(e){var t=e.input.length-e.maximum,n="Please delete "+t+" character";return 1!=t&&(n+="s"),n},inputTooShort:function(e){return"Please enter "+(e.minimum-e.input.length)+" or more characters"},loadingMore:function(){return"Loading more results…"},maximumSelected:function(e){var t="You can only select "+e.maximum+" item";return 1!=e.maximum&&(t+="s"),t},noResults:function(){return"No results found"},searching:function(){return"Searching…"},removeAllItems:function(){return"Remove all items"}}}),e.define("select2/defaults",["jquery","require","./results","./selection/single","./selection/multiple","./selection/placeholder","./selection/allowClear","./selection/search","./selection/eventRelay","./utils","./translation","./diacritics","./data/select","./data/array","./data/ajax","./data/tags","./data/tokenizer","./data/minimumInputLength","./data/maximumInputLength","./data/maximumSelectionLength","./dropdown","./dropdown/search","./dropdown/hidePlaceholder","./dropdown/infiniteScroll","./dropdown/attachBody","./dropdown/minimumResultsForSearch","./dropdown/selectOnClose","./dropdown/closeOnSelect","./i18n/en"],function(c,u,d,p,h,f,g,m,v,y,s,t,_,$,b,w,A,x,D,S,E,C,O,T,q,L,I,j,e){function n(){this.reset()}return n.prototype.apply=function(e){if(null==(e=c.extend(!0,{},this.defaults,e)).dataAdapter){if(null!=e.ajax?e.dataAdapter=b:null!=e.data?e.dataAdapter=$:e.dataAdapter=_,0<e.minimumInputLength&&(e.dataAdapter=y.Decorate(e.dataAdapter,x)),0<e.maximumInputLength&&(e.dataAdapter=y.Decorate(e.dataAdapter,D)),0<e.maximumSelectionLength&&(e.dataAdapter=y.Decorate(e.dataAdapter,S)),e.tags&&(e.dataAdapter=y.Decorate(e.dataAdapter,w)),null==e.tokenSeparators&&null==e.tokenizer||(e.dataAdapter=y.Decorate(e.dataAdapter,A)),null!=e.query){var t=u(e.amdBase+"compat/query");e.dataAdapter=y.Decorate(e.dataAdapter,t)}if(null!=e.initSelection){var n=u(e.amdBase+"compat/initSelection");e.dataAdapter=y.Decorate(e.dataAdapter,n)}}if(null==e.resultsAdapter&&(e.resultsAdapter=d,null!=e.ajax&&(e.resultsAdapter=y.Decorate(e.resultsAdapter,T)),null!=e.placeholder&&(e.resultsAdapter=y.Decorate(e.resultsAdapter,O)),e.selectOnClose&&(e.resultsAdapter=y.Decorate(e.resultsAdapter,I))),null==e.dropdownAdapter){if(e.multiple)e.dropdownAdapter=E;else{var r=y.Decorate(E,C);e.dropdownAdapter=r}if(0!==e.minimumResultsForSearch&&(e.dropdownAdapter=y.Decorate(e.dropdownAdapter,L)),e.closeOnSelect&&(e.dropdownAdapter=y.Decorate(e.dropdownAdapter,j)),null!=e.dropdownCssClass||null!=e.dropdownCss||null!=e.adaptDropdownCssClass){var i=u(e.amdBase+"compat/dropdownCss");e.dropdownAdapter=y.Decorate(e.dropdownAdapter,i)}e.dropdownAdapter=y.Decorate(e.dropdownAdapter,q)}if(null==e.selectionAdapter){if(e.multiple?e.selectionAdapter=h:e.selectionAdapter=p,null!=e.placeholder&&(e.selectionAdapter=y.Decorate(e.selectionAdapter,f)),e.allowClear&&(e.selectionAdapter=y.Decorate(e.selectionAdapter,g)),e.multiple&&(e.selectionAdapter=y.Decorate(e.selectionAdapter,m)),null!=e.containerCssClass||null!=e.containerCss||null!=e.adaptC
67ontainerCssClass){var o=u(e.amdBase+"compat/containerCss");e.selectionAdapter=y.Decorate(e.selectionAdapter,o)}e.selectionAdapter=y.Decorate(e.selectionAdapter,v)}e.language=this._resolveLanguage(e.language),e.language.push("en");for(var s=[],a=0;a<e.language.length;a++){var l=e.language[a];-1===s.indexOf(l)&&s.push(l)}return e.language=s,e.translations=this._processTranslations(e.language,e.debug),e},n.prototype.reset=function(){function a(e){return e.replace(/[^\u0000-\u007E]/g,function(e){return t[e]||e})}this.defaults={amdBase:"./",amdLanguageBase:"./i18n/",closeOnSelect:!0,debug:!1,dropdownAutoWidth:!1,escapeMarkup:y.escapeMarkup,language:{},matcher:function e(t,n){if(""===c.trim(t.term))return n;if(n.children&&0<n.children.length){for(var r=c.extend(!0,{},n),i=n.children.length-1;0<=i;i--)null==e(t,n.children[i])&&r.children.splice(i,1);return 0<r.children.length?r:e(t,r)}var o=a(n.text).toUpperCase(),s=a(t.term).toUpperCase();return-1<o.indexOf(s)?n:null},minimumInputLength:0,maximumInputLength:0,maximumSelectionLength:0,minimumResultsForSearch:0,selectOnClose:!1,scrollAfterSelect:!1,sorter:function(e){return e},templateResult:function(e){return e.text},templateSelection:function(e){return e.text},theme:"default",width:"resolve"}},n.prototype.applyFromElement=function(e,t){var n=e.language,r=this.defaults.language,i=t.prop("lang"),o=t.closest("[lang]").prop("lang"),s=Array.prototype.concat.call(this._resolveLanguage(i),this._resolveLanguage(n),this._resolveLanguage(r),this._resolveLanguage(o));return e.language=s,e},n.prototype._resolveLanguage=function(e){if(!e)return[];if(c.isEmptyObject(e))return[];if(c.isPlainObject(e))return[e];var t;t=c.isArray(e)?e:[e];for(var n=[],r=0;r<t.length;r++)if(n.push(t[r]),"string"==typeof t[r]&&0<t[r].indexOf("-")){var i=t[r].split("-")[0];n.push(i)}return n},n.prototype._processTranslations=function(e,t){for(var n=new s,r=0;r<e.length;r++){var i=new s,o=e[r];if("string"==typeof o)try{i=s.loadPath(o)}catch(e){try{o=this.defaults.amdLanguageBase+o,i=s.loadPath(o)}catch(e){t&&window.console&&console.warn&&console.warn('Select2: The language file for "'+o+'" could not be automatically loaded. A fallback will be used instead.')}}else i=c.isPlainObject(o)?new s(o):o;n.extend(i)}return n},n.prototype.set=function(e,t){var n={};n[c.camelCase(e)]=t;var r=y._convertData(n);c.extend(!0,this.defaults,r)},new n}),e.define("select2/options",["require","jquery","./defaults","./utils"],function(r,d,i,p){function e(e,t){if(this.options=e,null!=t&&this.fromElement(t),null!=t&&(this.options=i.applyFromElement(this.options,t)),this.options=i.apply(this.options),t&&t.is("input")){var n=r(this.get("amdBase")+"compat/inputData");this.options.dataAdapter=p.Decorate(this.options.dataAdapter,n)}}return e.prototype.fromElement=function(e){var t=["select2"];null==this.options.multiple&&(this.options.multiple=e.prop("multiple")),null==this.options.disabled&&(this.options.disabled=e.prop("disabled")),null==this.options.dir&&(e.prop("dir")?this.options.dir=e.prop("dir"):e.closest("[dir]").prop("dir")?this.options.dir=e.closest("[dir]").prop("dir"):this.options.dir="ltr"),e.prop("disabled",this.options.disabled),e.prop("multiple",this.options.multiple),p.GetData(e[0],"select2Tags")&&(this.options.debug&&window.console&&console.warn&&console.warn('Select2: The `data-select2-tags` attribute has been changed to use the `data-data` and `data-tags="true"` attributes and will be removed in future versions of Select2.'),p.StoreData(e[0],"data",p.GetData(e[0],"select2Tags")),p.StoreData(e[0],"tags",!0)),p.GetData(e[0],"ajaxUrl")&&(this.options.debug&&window.console&&console.warn&&console.warn("Select2: The `data-ajax-url` attribute has been changed to `data-ajax--url` and support for the old attribute will be removed in future versions of Select2."),e.attr("ajax--url",p.GetData(e[0],"ajaxUrl")),p.StoreData(e[0],"ajax-Url",p.GetData(e[0],"ajaxUrl")));var n={};function r(e,t){return t.toUpperCase()}for(var i=0;i<e[0].attributes.length;i++){var o=e[0].attributes[i].name,s="data-";if(o.substr(0,s.length)==s){var a=o.substring(s.length),l=p.GetData(e[0],a);n[a.replace(/-([a-z])/g,r)]=l}}
67d.fn.jquery&&"1."==d.fn.jquery.substr(0,2)&&e[0].dataset&&(n=d.extend(!0,{},e[0].dataset,n));var c=d.extend(!0,{},p.GetData(e[0]),n);for(var u in c=p._convertData(c))-1<d.inArray(u,t)||(d.isPlainObject(this.options[u])?d.extend(this.options[u],c[u]):this.options[u]=c[u]);return this},e.prototype.get=function(e){return this.options[e]},e.prototype.set=function(e,t){this.options[e]=t},e}),e.define("select2/core",["jquery","./options","./utils","./keys"],function(o,c,u,r){var d=function(e,t){null!=u.GetData(e[0],"select2")&&u.GetData(e[0],"select2").destroy(),this.$element=e,this.id=this._generateId(e),t=t||{},this.options=new c(t,e),d.__super__.constructor.call(this);var n=e.attr("tabindex")||0;u.StoreData(e[0],"old-tabindex",n),e.attr("tabindex","-1");var r=this.options.get("dataAdapter");this.dataAdapter=new r(e,this.options);var i=this.render();this._placeContainer(i);var o=this.options.get("selectionAdapter");this.selection=new o(e,this.options),this.$selection=this.selection.render(),this.selection.position(this.$selection,i);var s=this.options.get("dropdownAdapter");this.dropdown=new s(e,this.options),this.$dropdown=this.dropdown.render(),this.dropdown.position(this.$dropdown,i);var a=this.options.get("resultsAdapter");this.results=new a(e,this.options,this.dataAdapter),this.$results=this.results.render(),this.results.position(this.$results,this.$dropdown);var l=this;this._bindAdapters(),this._registerDomEvents(),this._registerDataEvents(),this._registerSelectionEvents(),this._registerDropdownEvents(),this._registerResultsEvents(),this._registerEvents(),this.dataAdapter.current(function(e){l.trigger("selection:update",{data:e})}),e.addClass("select2-hidden-accessible"),e.attr("aria-hidden","true"),this._syncAttributes(),u.StoreData(e[0],"select2",this),e.data("select2",this)};return u.Extend(d,u.Observable),d.prototype._generateId=function(e){return"select2-"+(null!=e.attr("id")?e.attr("id"):null!=e.attr("name")?e.attr("name")+"-"+u.generateChars(2):u.generateChars(4)).replace(/(:|\.|\[|\]|,)/g,"")},d.prototype._placeContainer=function(e){e.insertAfter(this.$element);var t=this._resolveWidth(this.$element,this.options.get("width"));null!=t&&e.css("width",t)},d.prototype._resolveWidth=function(e,t){var n=/^width:(([-+]?([0-9]*\.)?[0-9]+)(px|em|ex|%|in|cm|mm|pt|pc))/i;if("resolve"==t){var r=this._resolveWidth(e,"style");return null!=r?r:this._resolveWidth(e,"element")}if("element"==t){var i=e.outerWidth(!1);return i<=0?"auto":i+"px"}if("style"!=t)return"computedstyle"!=t?t:window.getComputedStyle(e[0]).width;var o=e.attr("style");if("string"!=typeof o)return null;for(var s=o.split(";"),a=0,l=s.length;a<l;a+=1){var c=s[a].replace(/\s/g,"").match(n);if(null!==c&&1<=c.length)return c[1]}return null},d.prototype._bindAdapters=function(){this.dataAdapter.bind(this,this.$container),this.selection.bind(this,this.$container),this.dropdown.bind(this,this.$container),this.results.bind(this,this.$container)},d.prototype._registerDomEvents=function(){var t=this;this.$element.on("change.select2",function(){t.dataAdapter.current(function(e){t.trigger("selection:update",{data:e})})}),this.$element.on("focus.select2",function(e){t.trigger("focus",e)}),this._syncA=u.bind(this._syncAttributes,this),this._syncS=u.bind(this._syncSubtree,this),this.$element[0].attachEvent&&this.$element[0].attachEvent("onpropertychange",this._syncA);var e=window.MutationObserver||window.WebKitMutationObserver||window.MozMutationObserver;null!=e?(this._observer=new e(function(e){t._syncA(),t._syncS(null,e)}),this._observer.observe(this.$element[0],{attributes:!0,childList:!0,subtree:!1})):this.$element[0].addEventListener&&(this.$element[0].addEventListener("DOMAttrModified",t._syncA,!1),this.$element[0].addEventListener("DOMNodeInserted",t._syncS,!1),this.$element[0].addEventListener("DOMNodeRemoved",t._syncS,!1))},d.prototype._registerDataEvents=function(){var n=this;this.dataAdapter.on("*",function(e,t){n.trigger(e,t)})},d.prototype._registerSelectionEvents=function(){var n=this,r=["toggle","focus"];this.selection.on("toggle",function(){n.toggleDropdown()}),this.selection.on("focus",function(e){n.focus(e)}),this.selection.on("*",function(e,t){-1===o.inArray(e,r)&&n.trigger(e,t)})},d.prototype._registerDropdownEvents=function(){var n=this;this.dropdown.on("*",function(e,t){n.trigger(e,t)})},d.prototype._registerResultsEvents=function(){var n=this;this.results.on("*",function(e,t){n.trigger(e,t)})},d.prototype._registerEvents=function(){var n=this;this.on("open",function(){n.$container.addClass("select2-container--open")}),this.on("close",function(){n.$container.removeClass("select2-container--open")}),this.on("enable",function(){n.$container.removeClass("select2-container--disabled")}),this.on("disable",function(){n.$container.addClass("select2-container--disabled")}),this.on("blur",function(){n.$container.removeClass("select2-container--focus")}),this.on("query",function(t){n.isOpen()||n.trigger("open",{}),this.dataAdapter.query(t,function(e){n.trigger("results:all",{data:e,query:t})})}),this.on("query:append",function(t){this.dataAdapter.query(t,function(e){n.trigger("results:append",{data:e,query:t})})}),this.on("keypress",function(e){var t=e.which;n.isOpen()?t===r.ESC||t===r.TAB||t===r.UP&&e.altKey?(n.close(e),e.preventDefault()):t===r.ENTER?(n.trigger("results:select",{}),e.preventDefault()):t===r.SPACE&&e.ctrlKey?(n.trigger("results:toggle",{}),e.preventDefault()):t===r.UP?(n.trigger("results:previous",{}),e.preventDefault()):t===r.DOWN&&(n.trigger("results:next",{}),e.preventDefault()):(t===r.ENTER||t===r.SPACE||t===r.DOWN&&e.altKey)&&(n.open(),e.preventDefault())})},d.prototype._syncAttributes=function(){this.options.set("disabled",this.$element.prop("disabled")),this.isDisabled()?(this.isOpen()&&this.close(),this.trigger("disable",{})):this.trigger("enable",{})},d.prototype._isChangeMutation=function(e,t){var n=!1,r=this;if(!e||!e.target||"OPTION"===e.target.nodeName||"OPTGROUP"===e.target.nodeName){if(t)if(t.addedNodes&&0<t.addedNodes.length)for(var i=0;i<t.addedNodes.length;i++){t.addedNodes[i].selected&&(n=!0)}else t.removedNodes&&0<t.removedNodes.length?n=!0:o.isArray(t)&&o.each(t,function(e,t){if(r._isChangeMutation(e,t))return!(n=!0)});else n=!0;return n}},d.prototype._syncSubtree=function(e,t){var n=this._isChangeMutation(e,t),r=this;n&&this.dataAdapter.current(function(e){r.trigger("selection:update",{data:e})})},d.prototype.trigger=function(e,t){var n=d.__super__.trigger,r={open:"opening",close:"closing",select:"selecting",unselect:"unselecting",clear:"clearing"};if(void 0===t&&(t={}),e in r){var i=r[e],o={prevented:!1,name:e,args:t};if(n.call(this,i,o),o.prevented)return void(t.prevented=!0)}n.call(this,e,t)},d.prototype.toggleDropdown=function(){this.isDisabled()||(this.isOpen()?this.close():this.open())},d.prototype.open=function(){this.isOpen()||this.isDisabled()||this.trigger("query",{})},d.prototype.close=function(e){this.isOpen()&&this.trigger("close",{originalEvent:e})},d.prototype.isEnabled=function(){return!this.isDisabled()},d.prototype.isDisabled=function(){return this.options.get("disabled")},d.prototype.isOpen=function(){return this.$container.hasClass("select2-container--open")},d.prototype.hasFocus=function(){return this.$container.hasClass("select2-container--focus")}
67,d.prototype.focus=function(e){this.hasFocus()||(this.$container.addClass("select2-container--focus"),this.trigger("focus",{}))},d.prototype.enable=function(e){this.options.get("debug")&&window.console&&console.warn&&console.warn('Select2: The `select2("enable")` method has been deprecated and will be removed in later Select2 versions. Use $element.prop("disabled") instead.'),null!=e&&0!==e.length||(e=[!0]);var t=!e[0];this.$element.prop("disabled",t)},d.prototype.data=function(){this.options.get("debug")&&0<arguments.length&&window.console&&console.warn&&console.warn('Select2: Data can no longer be set using `select2("data")`. You should consider setting the value instead using `$element.val()`.');var t=[];return this.dataAdapter.current(function(e){t=e}),t},d.prototype.val=function(e){if(this.options.get("debug")&&window.console&&console.warn&&console.warn('Select2: The `select2("val")` method has been deprecated and will be removed in later Select2 versions. Use $element.val() instead.'),null==e||0===e.length)return this.$element.val();var t=e[0];o.isArray(t)&&(t=o.map(t,function(e){return e.toString()})),this.$element.val(t).trigger("input").trigger("change")},d.prototype.destroy=function(){this.$container.remove(),this.$element[0].detachEvent&&this.$element[0].detachEvent("onpropertychange",this._syncA),null!=this._observer?(this._observer.disconnect(),this._observer=null):this.$element[0].removeEventListener&&(this.$element[0].removeEventListener("DOMAttrModified",this._syncA,!1),this.$element[0].removeEventListener("DOMNodeInserted",this._syncS,!1),this.$element[0].removeEventListener("DOMNodeRemoved",this._syncS,!1)),this._syncA=null,this._syncS=null,this.$element.off(".select2"),this.$element.attr("tabindex",u.GetData(this.$element[0],"old-tabindex")),this.$element.removeClass("select2-hidden-accessible"),this.$element.attr("aria-hidden","false"),u.RemoveData(this.$element[0]),this.$element.removeData("select2"),this.dataAdapter.destroy(),this.selection.destroy(),this.dropdown.destroy(),this.results.destroy(),this.dataAdapter=null,this.selection=null,this.dropdown=null,this.results=null},d.prototype.render=function(){var e=o('<span class="select2 select2-container"><span class="selection"></span><span class="dropdown-wrapper" aria-hidden="true"></span></span>');return e.attr("dir",this.options.get("dir")),this.$container=e,this.$container.addClass("select2-container--"+this.options.get("theme")),u.StoreData(e[0],"element",this.$element),e},d}),e.define("jquery-mousewheel",["jquery"],function(e){return e}),e.define("jquery.select2",["jquery","jquery-mousewheel","./select2/core","./select2/defaults","./select2/utils"],function(i,e,o,t,s){if(null==i.fn.select2){var a=["open","close","destroy"];i.fn.select2=function(t){if("object"==typeof(t=t||{}))return this.each(function(){var e=i.extend(!0,{},t);new o(i(this),e)}),this;if("string"!=typeof t)throw new Error("Invalid arguments for Select2: "+t);var n,r=Array.prototype.slice.call(arguments,1);return this.each(function(){var e=s.GetData(this,"select2");null==e&&window.console&&console.error&&console.error("The select2('"+t+"') method was called on an element that is not using Select2."),n=e[t].apply(e,r)}),-1<i.inArray(t,a)?this:n}}return null==i.fn.select2.defaults&&(i.fn.select2.defaults=t),o}),{define:e.define,require:e.require}}(),t=e.require("jquery.select2");return u.fn.select2.amd=e,t});;
68/* @license MIT https://raw.githubusercontent.com/SortableJS/Sortable/1.15.6/LICENSE */
69/*! Sortable 1.15.6 - MIT | git://github.com/SortableJS/Sortable.git */
70!function(t,e){"object"==typeof exports&&"undefined"!=typeof module?module.exports=e():"function"==typeof define&&define.amd?define(e):(t=t||self).Sortable=e()}(this,function(){"use strict";function e(e,t){var n,o=Object.keys(e);return Object.getOwnPropertySymbols&&(n=Object.getOwnPropertySymbols(e),t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),o.push.apply(o,n)),o}function I(o){for(var t=1;t<arguments.length;t++){var i=null!=arguments[t]?arguments[t]:{};
vendor: 45,816 bytes, lines 70-72
70t%2?e(Object(i),!0).forEach(function(t){var e,n;e=o,t=i[n=t],n in e?Object.defineProperty(e,n,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[n]=t}):Object.getOwnPropertyDescriptors?Object.defineProperties(o,Object.getOwnPropertyDescriptors(i)):e(Object(i)).forEach(function(t){Object.defineProperty(o,t,Object.getOwnPropertyDescriptor(i,t))})}return o}function o(t){return(o="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 a(){return(a=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n,o=arguments[e];for(n in o)Object.prototype.hasOwnProperty.call(o,n)&&(t[n]=o[n])}return t}).apply(this,arguments)}function i(t,e){if(null==t)return{};var n,o=function(t,e){if(null==t)return{};for(var n,o={},i=Object.keys(t),r=0;r<i.length;r++)n=i[r],0<=e.indexOf(n)||(o[n]=t[n]);return o}(t,e);if(Object.getOwnPropertySymbols)for(var i=Object.getOwnPropertySymbols(t),r=0;r<i.length;r++)n=i[r],0<=e.indexOf(n)||Object.prototype.propertyIsEnumerable.call(t,n)&&(o[n]=t[n]);return o}function r(t){return function(t){if(Array.isArray(t))return l(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||function(t,e){if(t){if("string"==typeof t)return l(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Map"===(n="Object"===n&&t.constructor?t.constructor.name:n)||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?l(t,e):void 0}}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function l(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,o=new Array(e);n<e;n++)o[n]=t[n];return o}function t(t){if("undefined"!=typeof window&&window.navigator)return!!navigator.userAgent.match(t)}var y=t(/(?:Trident.*rv[ :]?11\.|msie|iemobile|Windows Phone)/i),w=t(/Edge/i),s=t(/firefox/i),u=t(/safari/i)&&!t(/chrome/i)&&!t(/android/i),c=t(/iP(ad|od|hone)/i),n=t(/chrome/i)&&t(/android/i),d={capture:!1,passive:!1};function h(t,e,n){t.addEventListener(e,n,!y&&d)}function p(t,e,n){t.removeEventListener(e,n,!y&&d)}function f(t,e){if(e&&(">"===e[0]&&(e=e.substring(1)),t))try{if(t.matches)return t.matches(e);if(t.msMatchesSelector)return t.msMatchesSelector(e);if(t.webkitMatchesSelector)return t.webkitMatchesSelector(e)}catch(t){return}}function g(t){return t.host&&t!==document&&t.host.nodeType?t.host:t.parentNode}function P(t,e,n,o){if(t){n=n||document;do{if(null!=e&&(">"!==e[0]||t.parentNode===n)&&f(t,e)||o&&t===n)return t}while(t!==n&&(t=g(t)))}return null}var m,v=/\s+/g;function k(t,e,n){var o;t&&e&&(t.classList?t.classList[n?"add":"remove"](e):(o=(" "+t.className+" ").replace(v," ").replace(" "+e+" "," "),t.className=(o+(n?" "+e:"")).replace(v," ")))}function R(t,e,n){var o=t&&t.style;if(o){if(void 0===n)return document.defaultView&&document.defaultView.getComputedStyle?n=document.defaultView.getComputedStyle(t,""):t.currentStyle&&(n=t.currentStyle),void 0===e?n:n[e];o[e=!(e in o||-1!==e.indexOf("webkit"))?"-webkit-"+e:e]=n+("string"==typeof n?"":"px")}}function b(t,e){var n="";if("string"==typeof t)n=t;else do{var o=R(t,"transform")}while(o&&"none"!==o&&(n=o+" "+n),!e&&(t=t.parentNode));var i=window.DOMMatrix||window.WebKitCSSMatrix||window.CSSMatrix||window.MSCSSMatrix;return i&&new i(n)}function D(t,e,n){if(t){var o=t.getElementsByTagName(e),i=0,r=o.length;if(n)for(;i<r;i++)n(o[i],i);return o}return[]}function O(){var t=document.scrollingElement;return t||document.documentElement}function X(t,e,n,o,i){if(t.getBoundingClientRect||t===window){var r,a,l,s,c,u,d=t!==window&&t.parentNode&&t!==O()?(a=(r=t.getBoundingClientRect()).top,l=r.left,s=r.bottom,c=r.right,u=r.height,r.width):(l=a=0,s=window.innerHeight,c=window.innerWidth,u=window.innerHeight,window.innerWidth);if((e||n)&&t!==window&&(i=i||t.parentNode,!y))do{if(i&&i.getBoundingClientRect&&("none"!==R(i,"transform")||n&&"static"!==R(i,"position"))){var h=i.getBoundingClientRect();a-=h.top+parseInt(R(i,"border-top-width")),l-=h.left+parseInt(R(i,"border-left-width")),s=a+r.height,c=l+r.width;break}}while(i=i.parentNode);return o&&t!==window&&(o=(e=b(i||t))&&e.a,t=e&&e.d,e&&(s=(a/=t)+(u/=t),c=(l/=o)+(d/=o))),{top:a,left:l,bottom:s,right:c,width:d,height:u}}}function Y(t,e,n){for(var o=M(t,!0),i=X(t)[e];o;){var r=X(o)[n];if(!("top"===n||"left"===n?r<=i:i<=r))return o;if(o===O())break;o=M(o,!1)}return!1}function B(t,e,n,o){for(var i=0,r=0,a=t.children;r<a.length;){if("none"!==a[r].style.display&&a[r]!==jt.ghost&&(o||a[r]!==jt.dragged)&&P(a[r],n.draggable,t,!1)){if(i===e)return a[r];i++}r++}return null}function F(t,e){for(var n=t.lastElementChild;n&&(n===jt.ghost||"none"===R(n,"display")||e&&!f(n,e));)n=n.previousElementSibling;return n||null}function j(t,e){var n=0;if(!t||!t.parentNode)return-1;for(;t=t.previousElementSibling;)"TEMPLATE"===t.nodeName.toUpperCase()||t===jt.clone||e&&!f(t,e)||n++;return n}function E(t){var e=0,n=0,o=O();if(t)do{var i=b(t),r=i.a,i=i.d}while(e+=t.scrollLeft*r,n+=t.scrollTop*i,t!==o&&(t=t.parentNode));return[e,n]}function M(t,e){if(!t||!t.getBoundingClientRect)return O();var n=t,o=!1;do{if(n.clientWidth<n.scrollWidth||n.clientHeight<n.scrollHeight){var i=R(n);if(n.clientWidth<n.scrollWidth&&("auto"==i.overflowX||"scroll"==i.overflowX)||n.clientHeight<n.scrollHeight&&("auto"==i.overflowY||"scroll"==i.overflowY)){if(!n.getBoundingClientRect||n===document.body)return O();if(o||e)return n;o=!0}}}while(n=n.parentNode);return O()}function S(t,e){return Math.round(t.top)===Math.round(e.top)&&Math.round(t.left)===Math.round(e.left)&&Math.round(t.height)===Math.round(e.height)&&Math.round(t.width)===Math.round(e.width)}function _(e,n){return function(){var t;m||(1===(t=arguments).length?e.call(this,t[0]):e.apply(this,t),m=setTimeout(function(){m=void 0},n))}}function H(t,e,n){t.scrollLeft+=e,t.scrollTop+=n}function C(t){var e=window.Polymer,n=window.jQuery||window.Zepto;return e&&e.dom?e.dom(t).cloneNode(!0):n?n(t).clone(!0)[0]:t.cloneNode(!0)}function T(t,e){R(t,"position","absolute"),R(t,"top",e.top),R(t,"left",e.left),R(t,"width",e.width),R(t,"height",e.height)}function x(t){R(t,"position",""),R(t,"top",""),R(t,"left",""),R(t,"width",""),R(t,"height","")}function L(n,o,i){var r={};return Array.from(n.children).forEach(function(t){var e;P(t,o.draggable,n,!1)&&!t.animated&&t!==i&&(e=X(t),r.left=Math.min(null!==(t=r.left)&&void 0!==t?t:1/0,e.left),r.top=Math.min(null!==(t=r.top)&&void 0!==t?t:1/0,e.top),r.right=Math.max(null!==(t=r.right)&&void 0!==t?t:-1/0,e.right),r.bottom=Math.max(null!==(t=r.bottom)&&void 0!==t?t:-1/0,e.bottom))}),r.width=r.right-r.left,r.height=r.bottom-r.top,r.x=r.left,r.y=r.top,r}var K="Sortable"+(new Date).getTime();function A(){var e,o=[];return{captureAnimationState:function(){o=[],this.options.animation&&[].slice.call(this.el.children).forEach(function(t){var e,n;"none"!==R(t,"display")&&t!==jt.ghost&&(o.push({target:t,rect:X(t)}),e=I({},o[o.length-1].rect),!t.thisAnimationDuration||(n=b(t,!0))&&(e.top-=n.f,e.left-=n.e),t.fromRect=e)})},addAnimationState:function(t){o.push(t)},removeAnimationState:function(t){o.splice(function(t,e){for(var n in t)if(t.hasOwnProperty(n))for(var o in e)if(e.hasOwnProperty(o)&&e[o]===t[n][o])return Number(n);return-1}(o,{target:t}),1)},animateAll:function(t){var c=this;if(!this.options.animation)return clearTimeout(e),void("function"==typeof t&&t());var u=!1,d=0;o.forEach(function(t){var e=0,n=t.target,o=n.fromRect,i=X(n),r=n.prevFromRect,a=n.prevToRect,l=t.rect,s=b(n,!0);s&&(i.top-=s.f,i.left-=s.e),n.toRect=i,n.thisAnimationDuration&&S(r,i)&&!S(o,i)&&(l.top-i.top)/(l.left-i.left)==(o.top-i.top)/(o.left-i.left)&&(t=l,s=r,r=a,a=c.options,e=Math.sqrt(Math.pow(s.top-t.top,2)+Math.pow(s.left-t.left,2))/Math.sqrt(Math.pow(s.top-r.top,2)+Math.pow(s.left-r.left,2))*a.animation),S(i,o)||(n.prevFromRect=o,n.prevToRect=i,e=e||c.options.animation,c.animate(n,l,i,e)),e&&(u=!0,d=Math.max(d,e),clearTimeout(n.animationResetTimer),n.animationResetTimer=setTimeout(function(){n.animationTime=0,n.prevFromRect=null,n.fromRect=null,n.prevToRect=null,n.thisAnimationDuration=null},e),n.thisAnimationDuration=e)}),clearTimeout(e),u?e=setTimeout(function(){"function"==typeof t&&t()},d):"function"==typeof t&&t(),o=[]},animate:function(t,e,n,o){var i,r;o&&(R(t,"transition",""),R(t,"transform",""),i=(r=b(this.el))&&r.a,r=r&&r.d,i=(e.left-n.left)/(i||1),r=(e.top-n.top)/(r||1),t.animatingX=!!i,t.animatingY=!!r,R(t,"transform","translate3d("+i+"px,"+r+"px,0)"),this.forRepaintDummy=t.offsetWidth,R(t,"transition","transform "+o+"ms"+(this.options.easing?" "+this.options.easing:"")),R(t,"transform","translate3d(0,0,0)"),"number"==typeof t.animated&&clearTimeout(t.animated),t.animated=setTimeout(function(){R(t,"transition",""),R(t,"transform",""),t.animated=!1,t.animatingX=!1,t.animatingY=!1},o))}}}var N=[],W={initializeByDefault:!0},z={mount:function(e){for(var t in W)!W.hasOwnProperty(t)||t in e||(e[t]=W[t]);N.forEach(function(t){if(t.pluginName===e.pluginName)throw"Sortable: Cannot mount plugin ".concat(e.pluginName," more than once")}),N.push(e)},pluginEvent:function(e,n,o){var t=this;this.eventCanceled=!1,o.cancel=function(){t.eventCanceled=!0};var i=e+"Global";N.forEach(function(t){n[t.pluginName]&&(n[t.pluginName][i]&&n[t.pluginName][i](I({sortable:n},o)),n.options[t.pluginName]&&n[t.pluginName][e]&&n[t.pluginName][e](I({sortable:n},o)))})},initializePlugins:function(n,o,i,t){for(var e in N.forEach(function(t){var e=t.pluginName;(n.options[e]||t.initializeByDefault)&&((t=new t(n,o,n.options)).sortable=n,t.options=n.options,n[e]=t,a(i,t.defaults))}),n.options){var r;n.options.hasOwnProperty(e)&&(void 0!==(r=this.modifyOption(n,e,n.options[e]))&&(n.options[e]=r))}},getEventProperties:function(e,n){var o={};return N.forEach(function(t){"function"==typeof t.eventProperties&&a(o,t.eventProperties.call(n[t.pluginName],e))}),o},modifyOption:function(e,n,o){var i;return N.forEach(function(t){e[t.pluginName]&&t.optionListeners&&"function"==typeof t.optionListeners[n]&&(i=t.optionListeners[n].call(e[t.pluginName],o))}),i}};function G(t){var e=t.sortable,n=t.rootEl,o=t.name,i=t.targetEl,r=t.cloneEl,a=t.toEl,l=t.fromEl,s=t.oldIndex,c=t.newIndex,u=t.oldDraggableIndex,d=t.newDraggableIndex,h=t.originalEvent,p=t.putSortable,f=t.extraEventProperties;if(e=e||n&&n[K]){var g,m=e.options,t="on"+o.charAt(0).toUpperCase()+o.substr(1);!window.CustomEvent||y||w?(g=document.createEvent("Event")).initEvent(o,!0,!0):g=new CustomEvent(o,{bubbles:!0,cancelable:!0}),g.to=a||n,g.from=l||n,g.item=i||n,g.clone=r,g.oldIndex=s,g.newIndex=c,g.oldDraggableIndex=u,g.newDraggableIndex=d,g.originalEvent=h,g.pullMode=p?p.lastPutMode:void 0;var v,b=I(I({},f),z.getEventProperties(o,e));for(v in b)g[v]=b[v];n&&n.dispatchEvent(g),m[t]&&m[t].call(e,g)}}function U(t,e){var n=(o=2<arguments.length&&void 0!==arguments[2]?arguments[2]:{}).evt,o=i(o,q);z.pluginEvent.bind(jt)(t,e,I({dragEl:Z,parentEl:$,ghostEl:Q,rootEl:J,nextEl:tt,lastDownEl:et,cloneEl:nt,cloneHidden:ot,dragStarted:mt,putSortable:ct,activeSortable:jt.active,originalEvent:n,oldIndex:it,oldDraggableIndex:at,newIndex:rt,newDraggableIndex:lt,hideGhostForTarget:Xt,unhideGhostForTarget:Yt,cloneNowHidden:function(){ot=!0},cloneNowShown:function(){ot=!1},dispatchSortableEvent:function(t){V({sortable:e,name:t,originalEvent:n})}},o))}var q=["evt"];function V(t){G(I({putSortable:ct,cloneEl:nt,targetEl:Z,rootEl:J,oldIndex:it,oldDraggableIndex:at,newIndex:rt,newDraggableIndex:lt},t))}var Z,$,Q,J,tt,et,nt,ot,it,rt,at,lt,st,ct,ut,dt,ht,pt,ft,gt,mt,vt,bt,yt,wt,Dt=!1,Et=!1,St=[],_t=!1,Ct=!1,Tt=[],xt=!1,Ot=[],Mt="undefined"!=typeof document,At=c,Nt=w||y?"cssFloat":"float",It=Mt&&!n&&!c&&"draggable"in document.createElement("div"),Pt=function(){if(Mt){if(y)return!1;var t=document.createElement("x");return t.style.cssText="pointer-events:auto","auto"===t.style.pointerEvents}}(),kt=function(t,e){var n=R(t),o=parseInt(n.width)-parseInt(n.paddingLeft)-parseInt(n.paddingRight)-parseInt(n.borderLeftWidth)-parseInt(n.borderRightWidth),i=B(t,0,e),r=B(t,1,e),a=i&&R(i),l=r&&R(r),s=a&&parseInt(a.marginLeft)+parseInt(a.marginRight)+X(i).width,t=l&&parseInt(l.marginLeft)+parseInt(l.marginRight)+X(r).width;if("flex"===n.display)return"column"===n.flexDirection||"column-reverse"===n.flexDirection?"vertical":"horizontal";if("grid"===n.display)return n.gridTemplateColumns.split(" ").length<=1?"vertical":"horizontal";if(i&&a.float&&"none"!==a.float){e="left"===a.float?"left":"right";return!r||"both"!==l.clear&&l.clear!==e?"horizontal":"vertical"}return i&&("block"===a.display||"flex"===a.display||"table"===a.display||"grid"===a.display||o<=s&&"none"===n[Nt]||r&&"none"===n[Nt]&&o<s+t)?"vertical":"horizontal"},Rt=function(t){function l(r,a){return function(t,e,n,o){var i=t.options.group.name&&e.options.group.name&&t.options.group.name===e.options.group.name;if(null==r&&(a||i))return!0;if(null==r||!1===r)return!1;if(a&&"clone"===r)return r;if("function"==typeof r)return l(r(t,e,n,o),a)(t,e,n,o);e=(a?t:e).options.group.name;return!0===r||"string"==typeof r&&r===e||r.join&&-1<r.indexOf(e)}}var e={},n=t.group;n&&"object"==o(n)||(n={name:n}),e.name=n.name,e.checkPull=l(n.pull,!0),e.checkPut=l(n.put),e.revertClone=n.revertClone,t.group=e},Xt=function(){!Pt&&Q&&R(Q,"display","none")},Yt=function(){!Pt&&Q&&R(Q,"display","")};Mt&&!n&&document.addEventListener("click",function(t){if(Et)return t.preventDefault(),t.stopPropagation&&t.stopPropagation(),t.stopImmediatePropagation&&t.stopImmediatePropagation(),Et=!1},!0);function Bt(t){if(Z){t=t.touches?t.touches[0]:t;var e=(i=t.clientX,r=t.clientY,St.some(function(t){var e=t[K].options.emptyInsertThreshold;if(e&&!F(t)){var n=X(t),o=i>=n.left-e&&i<=n.right+e,e=r>=n.top-e&&r<=n.bottom+e;return o&&e?a=t:void 0}}),a);if(e){var n,o={};for(n in t)t.hasOwnProperty(n)&&(o[n]=t[n]);o.target=o.rootEl=e,o.preventDefault=void 0,o.stopPropagation=void 0,e[K]._onDragOver(o)}}var i,r,a}function Ft(t){Z&&Z.parentNode[K]._isOutsideThisEl(t.target)}function jt(t,e){if(!t||!t.nodeType||1!==t.nodeType)throw"Sortable: `el` must be an HTMLElement, not ".concat({}.toString.call(t));this.el=t,this.options=e=a({},e),t[K]=this;var n,o,i={group:null,sort:!0,disabled:!1,store:null,handle:null,draggable:/^[uo]l$/i.test(t.nodeName)?">li":">*",swapThreshold:1,invertSwap:!1,invertedSwapThreshold:null,removeCloneOnHide:!0,direction:function(){return kt(t,this.options)},ghostClass:"sortable-ghost",chosenClass:"sortable-chosen",dragClass:"sortable-drag",ignore:"a, img",filter:null,preventOnFilter:!0,animation:0,easing:null,setData:function(t,e){t.setData("Text",e.textContent)},dropBubble:!1,dragoverBubble:!1,dataIdAttr:"data-id",delay:0,delayOnTouchOnly:!1,touchStartThreshold:(Number.parseInt?Number:window).parseInt(window.devicePixelRatio,10)||1,forceFallback:!1,fallbackClass:"sortable-fallback",fallbackOnBody:!1,fallbackTolerance:0,fallbackOffset:{x:0,y:0},supportPointer:!1!==jt.supportPointer&&"PointerEvent"in window&&(!u||c),emptyInsertThreshold:5};for(n in z.initializePlugins(this,t,i),i)n in e||(e[n]=i[n]);for(o in Rt(e),this)"_"===o.charAt(0)&&"function"==typeof this[o]&&(this[o]=this[o].bind(this));this.nativeDraggable=!e.forceFallback&&It,this.nativeDraggable&&(this.options.touchStartThreshold=1),e.supportPointer?h(t,"pointerdown",this._onTapStart):(h(t,"mousedown",this._onTapStart),h(t,"touchstart",this._onTapStart)),this.nativeDraggable&&(h(t,"dragover",this),h(t,"dragenter",this)),St.push(this.el),e.store&&e.store.get&&this.sort(e.store.get(this)||[]),a(this,A())}function Ht(t,e,n,o,i,r,a,l){var s,c,u=t[K],d=u.options.onMove;return!window.CustomEvent||y||w?(s=document.createEvent("Event")).initEvent("move",!0,!0):s=new CustomEvent("move",{bubbles:!0,cancelable:!0}),s.to=e,s.from=t,s.dragged=n,s.draggedRect=o,s.related=i||e,s.relatedRect=r||X(e),s.willInsertAfter=l,s.originalEvent=a,t.dispatchEvent(s),c=d?d.call(u,s,a):c}function Lt(t){t.draggable=!1}function Kt(){xt=!1}function Wt(t){return setTimeout(t,0)}function zt(t){return clearTimeout(t)}jt.prototype={constructor:jt,_isOutsideThisEl:function(t){this.el.contains(t)||t===this.el||(vt=null)},_getDirection:function(t,e){return"function"==typeof this.options.direction?this.options.direction.call(this,t,e,Z):this.options.direction},_onTapStart:function(e){if(e.cancelable){var n=this,o=this.el,t=this.options,i=t.preventOnFilter,r=e.type,a=e.touches&&e.touches[0]||e.pointerType&&"touch"===e.pointerType&&e,l=(a||e).target,s=e.target.shadowRoot&&(e.path&&e.path[0]||e.composedPath&&e.composedPath()[0])||l,c=t.filter;if(!function(t){Ot.length=0;var e=t.getElementsByTagName("input"),n=e.length;for(;n--;){var o=e[n];o.checked&&Ot.push(o)}}(o),!Z&&!(/mousedown|pointerdown/.test(r)&&0!==e.button||t.disabled)&&!s.isContentEditable&&(this.nativeDraggable||!u||!l||"SELECT"!==l.tagName.toUpperCase())&&!((l=P(l,t.draggable,o,!1))&&l.animated||et===l)){if(it=j(l),at=j(l,t.draggable),"function"==typeof c){if(c.call(this,e,l,this))return V({sortable:n,rootEl:s,name:"filter",targetEl:l,toEl:o,fromEl:o}),U("filter",n,{evt:e}),void(i&&e.preventDefault())}else if(c=c&&c.split(",").some(function(t){if(t=P(s,t.trim(),o,!1))return V({sortable:n,rootEl:t,name:"filter",targetEl:l,fromEl:o,toEl:o}),U("filter",n,{evt:e}),!0}))return void(i&&e.preventDefault());t.handle&&!P(s,t.handle,o,!1)||this._prepareDragStart(e,a,l)}}},_prepareDragStart:function(t,e,n){var o,i=this,r=i.el,a=i.options,l=r.ownerDocument;n&&!Z&&n.parentNode===r&&(o=X(n),J=r,$=(Z=n).parentNode,tt=Z.nextSibling,et=n,st=a.group,ut={target:jt.dragged=Z,clientX:(e||t).clientX,clientY:(e||t).clientY},ft=ut.clientX-o.left,gt=ut.clientY-o.top,this._lastX=(e||t).clientX,this._lastY=(e||t).clientY,Z.style["will-change"]="all",o=function(){U("delayEnded",i,{evt:t}),jt.eventCanceled?i._onDrop():(i._disableDelayedDragEvents(),!s&&i.nativeDraggable&&(Z.draggable=!0),i._triggerDragStart(t,e),V({sortable:i,name:"choose",originalEvent:t}),k(Z,a.chosenClass,!0))},a.ignore.split(",").forEach(function(t){D(Z,t.trim(),Lt)}),h(l,"dragover",Bt),h(l,"mousemove",Bt),h(l,"touchmove",Bt),a.supportPointer?(h(l,"pointerup",i._onDrop),this.nativeDraggable||h(l,"pointercancel",i._onDrop)):(h(l,"mouseup",i._onDrop),h(l,"touchend",i._onDrop),h(l,"touchcancel",i._onDrop)),s&&this.nativeDraggable&&(this.options.touchStartThreshold=4,Z.draggable=!0),U("delayStart",this,{evt:t}),!a.delay||a.delayOnTouchOnly&&!e||this.nativeDraggable&&(w||y)?o():jt.eventCanceled?this._onDrop():(a.supportPointer?(h(l,"pointerup",i._disableDelayedDrag),h(l,"pointercancel",i._disableDelayedDrag)):(h(l,"mouseup",i._disableDelayedDrag),h(l,"touchend",i._disableDelayedDrag),h(l,"touchcancel",i._disableDelayedDrag)),h(l,"mousemove",i._delayedDragTouchMoveHandler),h(l,"touchmove",i._delayedDragTouchMoveHandler),a.supportPointer&&h(l,"pointermove",i._delayedDragTouchMoveHandler),i._dragStartTimer=setTimeout(o,a.delay)))},_delayedDragTouchMoveHandler:function(t){t=t.touches?t.touches[0]:t;Math.max(Math.abs(t.clientX-this._lastX),Math.abs(t.clientY-this._lastY))>=Math.floor(this.options.touchStartThreshold/(this.nativeDraggable&&window.devicePixelRatio||1))&&this._disableDelayedDrag()},_disableDelayedDrag:function(){Z&&Lt(Z),clearTimeout(this._dragStartTimer),this._disableDelayedDragEvents()},_disableDelayedDragEvents:function(){var t=this.el.ownerDocument;p(t,"mouseup",this._disableDelayedDrag),p(t,"touchend",this._disableDelayedDrag),p(t,"touchcancel",this._disableDelayedDrag),p(t,"pointerup",this._disableDelayedDrag),p(t,"pointercancel",this._disableDelayedDrag),p(t,"mousemove",this._delayedDragTouchMoveHandler),p(t,"touchmove",this._delayedDragTouchMoveHandler),p(t,"pointermove",this._delayedDragTouchMoveHandler)},_triggerDragStart:function(t,e){e=e||"touch"==t.pointerType&&t,!this.nativeDraggable||e?this.options.supportPointer?h(document,"pointermove",this._onTouchMove):h(document,e?"touchmove":"mousemove",this._onTouchMove):(h(Z,"dragend",this),h(J,"dragstart",this._onDragStart));try{document.selection?Wt(function(){document.selection.empty()}):window.getSelection().removeAllRanges()}catch(t){}},_dragStarted:function(t,e){var n;Dt=!1,J&&Z?(U("dragStarted",this,{evt:e}),this.nativeDraggable&&h(document,"dragover",Ft),n=this.options,t||k(Z,n.dragClass,!1),k(Z,n.ghostClass,!0),jt.active=this,t&&this._appendGhost(),V({sortable:this,name:"start",originalEvent:e})):this._nulling()},_emulateDragOver:function(){if(dt){this._lastX=dt.clientX,this._lastY=dt.clientY,Xt();for(var t=document.elementFromPoint(dt.clientX,dt.clientY),e=t;t&&t.shadowRoot&&(t=t.shadowRoot.elementFromPoint(dt.clientX,dt.clientY))!==e;)e=t;if(Z.parentNode[K]._isOutsideThisEl(t),e)do{if(e[K])if(e[K]._onDragOver({clientX:dt.clientX,clientY:dt.clientY,target:t,rootEl:e})&&!this.options.dragoverBubble)break}while(e=g(t=e));Yt()}},_onTouchMove:function(t){if(ut){var e=this.options,n=e.fallbackTolerance,o=e.fallbackOffset,i=t.touches?t.touches[0]:t,r=Q&&b(Q,!0),a=Q&&r&&r.a,l=Q&&r&&r.d,e=At&&wt&&E(wt),a=(i.clientX-ut.clientX+o.x)/(a||1)+(e?e[0]-Tt[0]:0)/(a||1),l=(i.clientY-ut.clientY+o.y)/(l||1)+(e?e[1]-Tt[1]:0)/(l||1);if(!jt.active&&!Dt){if(n&&Math.max(Math.abs(i.clientX-this._lastX),Math.abs(i.clientY-this._lastY))<n)return;this._onDragStart(t,!0)}Q&&(r?(r.e+=a-(ht||0),r.f+=l-(pt||0)):r={a:1,b:0,c:0,d:1,e:a,f:l},r="matrix(".concat(r.a,",").concat(r.b,",").concat(r.c,",").concat(r.d,",").concat(r.e,",").concat(r.f,")"),R(Q,"webkitTransform",r),R(Q,"mozTransform",r),R(Q,"msTransform",r),R(Q,"transform",r),ht=a,pt=l,dt=i),t.cancelable&&t.preventDefault()}},_appendGhost:function(){if(!Q){var t=this.options.fallbackOnBody?document.body:J,e=X(Z,!0,At,!0,t),n=this.options;if(At){for(wt=t;"static"===R(wt,"position")&&"none"===R(wt,"transform")&&wt!==document;)wt=wt.parentNode;wt!==document.body&&wt!==document.documentElement?(wt===document&&(wt=O()),e.top+=wt.scrollTop,e.left+=wt.scrollLeft):wt=O(),Tt=E(wt)}k(Q=Z.cloneNode(!0),n.ghostClass,!1),k(Q,n.fallbackClass,!0),k(Q,n.dragClass,!0),R(Q,"transition",""),R(Q,"transform",""),R(Q,"box-sizing","border-box"),R(Q,"margin",0),R(Q,"top",e.top),R(Q,"left",e.left),R(Q,"width",e.width),R(Q,"height",e.height),R(Q,"opacity","0.8"),R(Q,"position",At?"absolute":"fixed"),R(Q,"zIndex","100000"),R(Q,"pointerEvents","none"),jt.ghost=Q,t.appendChild(Q),R(Q,"transform-origin",ft/parseInt(Q.style.width)*100+"% "+gt/parseInt(Q.style.height)*100+"%")}},_onDragStart:function(t,e){var n=this,o=t.dataTransfer,i=n.options;U("dragStart",this,{evt:t}),jt.eventCanceled?this._onDrop():(U("setupClone",this),jt.eventCanceled||((nt=C(Z)).removeAttribute("id"),nt.draggable=!1,nt.style["will-change"]="",this._hideClone(),k(nt,this.options.chosenClass,!1),jt.clone=nt),n.cloneId=Wt(function(){U("clone",n),jt.eventCanceled||(n.options.removeCloneOnHide||J.insertBefore(nt,Z),n._hideClone(),V({sortable:n,name:"clone"}))}),e||k(Z,i.dragClass,!0),e?(Et=!0,n._loopId=setInterval(n._emulateDragOver,50)):(p(document,"mouseup",n._onDrop),p(document,"touchend",n._onDrop),p(document,"touchcancel",n._onDrop),o&&(o.effectAllowed="move",i.setData&&i.setData.call(n,o,Z)),h(document,"drop",n),R(Z,"transform","translateZ(0)")),Dt=!0,n._dragStartId=Wt(n._dragStarted.bind(n,e,t)),h(document,"selectstart",n),mt=!0,window.getSelection().removeAllRanges(),u&&R(document.body,"user-select","none"))},_onDragOver:function(n){var o,i,r,t,e,a=this.el,l=n.target,s=this.options,c=s.group,u=jt.active,d=st===c,h=s.sort,p=ct||u,f=this,g=!1;if(!xt){if(void 0!==n.preventDefault&&n.cancelable&&n.preventDefault(),l=P(l,s.draggable,a,!0),O("dragOver"),jt.eventCanceled)return g;if(Z.contains(n.target)||l.animated&&l.animatingX&&l.animatingY||f._ignoreWhileAnimating===l)return A(!1);if(Et=!1,u&&!s.disabled&&(d?h||(i=$!==J):ct===this||(this.lastPutMode=st.checkPull(this,u,Z,n))&&c.checkPut(this,u,Z,n))){if(r="vertical"===this._getDirection(n,l),o=X(Z),O("dragOverValid"),jt.eventCanceled)return g;if(i)return $=J,M(),this._hideClone(),O("revert"),jt.eventCanceled||(tt?J.insertBefore(Z,tt):J.appendChild(Z)),A(!0);var m=F(a,s.draggable);if(m&&(S=n,c=r,x=X(F((E=this).el,E.options.draggable)),E=L(E.el,E.options,Q),!(c?S.clientX>E.right+10||S.clientY>x.bottom&&S.clientX>x.left:S.clientY>E.bottom+10||S.clientX>x.right&&S.clientY>x.top)||m.animated)){if(m&&(t=n,e=r,C=X(B((_=this).el,0,_.options,!0)),_=L(_.el,_.options,Q),e?t.clientX<_.left-10||t.clientY<C.top&&t.clientX<C.right:t.clientY<_.top-10||t.clientY<C.bottom&&t.clientX<C.left)){var v=B(a,0,s,!0);if(v===Z)return A(!1);if(D=X(l=v),!1!==Ht(J,a,Z,o,l,D,n,!1))return M(),a.insertBefore(Z,v),$=a,N(),A(!0)}else if(l.parentNode===a){var b,y,w,D=X(l),E=Z.parentNode!==a,S=(S=Z.animated&&Z.toRect||o,x=l.animated&&l.toRect||D,_=(e=r)?S.left:S.top,t=e?S.right:S.bottom,C=e?S.width:S.height,v=e?x.left:x.top,S=e?x.right:x.bottom,x=e?x.width:x.height,!(_===v||t===S||_+C/2===v+x/2)),_=r?"top":"left",C=Y(l,"top","top")||Y(Z,"top","top"),v=C?C.scrollTop:void 0;if(vt!==l&&(y=D[_],_t=!1,Ct=!S&&s.invertSwap||E),0!==(b=function(t,e,n,o,i,r,a,l){var s=o?t.clientY:t.clientX,c=o?n.height:n.width,t=o?n.top:n.left,o=o?n.bottom:n.right,n=!1;if(!a)if(l&&yt<c*i){if(_t=!_t&&(1===bt?t+c*r/2<s:s<o-c*r/2)?!0:_t)n=!0;else if(1===bt?s<t+yt:o-yt<s)return-bt}else if(t+c*(1-i)/2<s&&s<o-c*(1-i)/2)return function(t){return j(Z)<j(t)?1:-1}(e);if((n=n||a)&&(s<t+c*r/2||o-c*r/2<s))return t+c/2<s?1:-1;return 0}(n,l,D,r,S?1:s.swapThreshold,null==s.invertedSwapThreshold?s.swapThreshold:s.invertedSwapThreshold,Ct,vt===l)))for(var T=j(Z);(w=$.children[T-=b])&&("none"===R(w,"display")||w===Q););if(0===b||w===l)return A(!1);bt=b;var x=(vt=l).nextElementSibling,E=!1,S=Ht(J,a,Z,o,l,D,n,E=1===b);if(!1!==S)return 1!==S&&-1!==S||(E=1===S),xt=!0,setTimeout(Kt,30),M(),E&&!x?a.appendChild(Z):l.parentNode.insertBefore(Z,E?x:l),C&&H(C,0,v-C.scrollTop),$=Z.parentNode,void 0===y||Ct||(yt=Math.abs(y-X(l)[_])),N(),A(!0)}}else{if(m===Z)return A(!1);if((l=m&&a===n.target?m:l)&&(D=X(l)),!1!==Ht(J,a,Z,o,l,D,n,!!l))return M(),m&&m.nextSibling?a.insertBefore(Z,m.nextSibling):a.appendChild(Z),$=a,N(),A(!0)}if(a.contains(Z))return A(!1)}return!1}function O(t,e){U(t,f,I({evt:n,isOwner:d,axis:r?"vertical":"horizontal",revert:i,dragRect:o,targetRect:D,canSort:h,fromSortable:p,target:l,completed:A,onMove:function(t,e){return Ht(J,a,Z,o,t,X(t),n,e)},changed:N},e))}function M(){O("dragOverAnimationCapture"),f.captureAnimationState(),f!==p&&p.captureAnimationState()}function A(t){return O("dragOverCompleted",{insertion:t}),t&&(d?u._hideClone():u._showClone(f),f!==p&&(k(Z,(ct||u).options.ghostClass,!1),k(Z,s.ghostClass,!0)),ct!==f&&f!==jt.active?ct=f:f===jt.active&&ct&&(ct=null),p===f&&(f._ignoreWhileAnimating=l),f.animateAll(function(){O("dragOverAnimationComplete"),f._ignoreWhileAnimating=null}),f!==p&&(p.animateAll(),p._ignoreWhileAnimating=null)),(l===Z&&!Z.animated||l===a&&!l.animated)&&(vt=null),s.dragoverBubble||n.rootEl||l===document||(Z.parentNode[K]._isOutsideThisEl(n.target),t||Bt(n)),!s.dragoverBubble&&n.stopPropagation&&n.stopPropagation(),g=!0}function N(){rt=j(Z),lt=j(Z,s.draggable),V({sortable:f,name:"change",toEl:a,newIndex:rt,newDraggableIndex:lt,originalEvent:n})}},_ignoreWhileAnimating:null,_offMoveEvents:function(){p(document,"mousemove",this._onTouchMove),p(document,"touchmove",this._onTouchMove),p(document,"pointermove",this._onTouchMove),p(document,"dragover",Bt),p(document,"mousemove",Bt),p(document,"touchmove",Bt)},_offUpEvents:function(){var t=this.el.ownerDocument;p(t,"mouseup",this._onDrop),p(t,"touchend",this._onDrop),p(t,"pointerup",this._onDrop),p(t,"pointercancel",this._onDrop),p(t,"touchcancel",this._onDrop),p(document,"selectstart",this)},_onDrop:function(t){var e=this.el,n=this.options;rt=j(Z),lt=j(Z,n.draggable),U("drop",this,{evt:t}),$=Z&&Z.parentNode,rt=j(Z),lt=j(Z,n.draggable),jt.eventCanceled||(_t=Ct=Dt=!1,clearInterval(this._loopId),clearTimeout(this._dragStartTimer),zt(this.cloneId),zt(this._dragStartId),this.nativeDraggable&&(p(document,"drop",this),p(e,"dragstart",this._onDragStart)),this._offMoveEvents(),this._offUpEvents(),u&&R(document.body,"user-select",""),R(Z,"transform",""),t&&(mt&&(t.cancelable&&t.preventDefault(),n.dropBubble||t.stopPropagation()),Q&&Q.parentNode&&Q.parentNode.removeChild(Q),(J===$||ct&&"clone"!==ct.lastPutMode)&&nt&&nt.parentNode&&nt.parentNode.removeChild(nt),Z&&(this.nativeDraggable&&p(Z,"dragend",this),Lt(Z),Z.style["will-change"]="",mt&&!Dt&&k(Z,(ct||this).options.ghostClass,!1),k(Z,this.options.chosenClass,!1),V({sortable:this,name:"unchoose",toEl:$,newIndex:null,newDraggableIndex:null,originalEvent:t}),J!==$?(0<=rt&&(V({rootEl:$,name:"add",toEl:$,fromEl:J,originalEvent:t}),V({sortable:this,name:"remove",toEl:$,originalEvent:t}),V({rootEl:$,name:"sort",toEl:$,fromEl:J,originalEvent:t}),V({sortable:this,name:"sort",toEl:$,originalEvent:t})),ct&&ct.save()):rt!==it&&0<=rt&&(V({sortable:this,name:"update",toEl:$,originalEvent:t}),V({sortable:this,name:"sort",toEl:$,originalEvent:t})),jt.active&&(null!=rt&&-1!==rt||(rt=it,lt=at),V({sortable:this,name:"end",toEl:$,originalEvent:t}),this.save())))),this._nulling()},_nulling:function(){U("nulling",this),J=Z=$=Q=tt=nt=et=ot=ut=dt=mt=rt=lt=it=at=vt=bt=ct=st=jt.dragged=jt.ghost=jt.clone=jt.active=null,Ot.forEach(function(t){t.checked=!0}),Ot.length=ht=pt=0},handleEvent:function(t){switch(t.type){case"drop":case"dragend":this._onDrop(t);break;case"dragenter":case"dragover":Z&&(this._onDragOver(t),function(t){t.dataTransfer&&(t.dataTransfer.dropEffect="move");t.cancelable&&t.preventDefault()}(t));break;case"selectstart":t.preventDefault()}},toArray:function(){for(var t,e=[],n=this.el.children,o=0,i=n.length,r=this.options;o<i;o++)P(t=n[o],r.draggable,this.el,!1)&&e.push(t.getAttribute(r.dataIdAttr)||function(t){var e=t.tagName+t.className+t.src+t.href+t.textContent,n=e.length,o=0;for(;n--;)o+=e.charCodeAt(n);return o.toString(36)}(t));return e},sort:function(t,e){var n={},o=this.el;this.toArray().forEach(function(t,e){e=o.children[e];P(e,this.options.draggable,o,!1)&&(n[t]=e)},this),e&&this.captureAnimationState(),t.forEach(function(t){n[t]&&(o.removeChild(n[t]),o.appendChild(n[t]))}),e&&this.animateAll()},save:function(){var t=this.options.store;t&&t.set&&t.set(this)},closest:function(t,e){return P(t,e||this.options.draggable,this.el,!1)},option:function(t,e){var n=this.options;if(void 0===e)return n[t];var o=z.modifyOption(this,t,e);n[t]=void 0!==o?o:e,"group"===t&&Rt(n)},destroy:function(){U("destroy",this);var t=this.el;t[K]=null,p(t,"mousedown",this._onTapStart),p(t,"touchstart",this._onTapStart),p(t,"pointerdown",this._onTapStart),this.nativeDraggable&&(p(t,"dragover",this),p(t,"dragenter",this)),Array.prototype.forEach.call(t.querySelectorAll("[draggable]"),function(t){t.removeAttribute("draggable")}),this._onDrop(),this._disableDelayedDragEvents(),St.splice(St.indexOf(this.el),1),this.el=t=null},_hideClone:function(){ot||(U("hideClone",this),jt.eventCanceled||(R(nt,"display","none"),this.options.removeCloneOnHide&&nt.parentNode&&nt.parentNode.removeChild(nt),ot=!0))},_showClone:function(t){"clone"===t.lastPutMode?ot&&(U("showClone",this),jt.eventCanceled||(Z.parentNode!=J||this.options.group.revertClone?tt?J.insertBefore(nt,tt):J.appendChild(nt):J.insertBefore(nt,Z),this.options.group.revertClone&&this.animate(Z,nt),R(nt,"display",""),ot=!1)):this._hideClone()}},Mt&&h(document,"touchmove",function(t){(jt.active||Dt)&&t.cancelable&&t.preventDefault()}),jt.utils={on:h,off:p,css:R,find:D,is:function(t,e){return!!P(t,e,t,!1)},extend:function(t,e){if(t&&e)for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n]);return t},throttle:_,closest:P,toggleClass:k,clone:C,index:j,nextTick:Wt,cancelNextTick:zt,detectDirection:kt,getChild:B,expando:K},jt.get=function(t){return t[K]},jt.mount=function(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];(e=e[0].constructor===Array?e[0]:e).forEach(function(t){if(!t.prototype||!t.prototype.constructor)throw"Sortable: Mounted plugin must be a constructor function, not ".concat({}.toString.call(t));t.utils&&(jt.utils=I(I({},jt.utils),t.utils)),z.mount(t)})},jt.create=function(t,e){return new jt(t,e)};var Gt,Ut,qt,Vt,Zt,$t,Qt=[],Jt=!(jt.version="1.15.6");function te(){Qt.forEach(function(t){clearInterval(t.pid)}),Qt=[]}function ee(){clearInterval($t)}var ne,oe=_(function(n,t,e,o){if(t.scroll){var i,r=(n.touches?n.touches[0]:n).clientX,a=(n.touches?n.touches[0]:n).clientY,l=t.scrollSensitivity,s=t.scrollSpeed,c=O(),u=!1;Ut!==e&&(Ut=e,te(),Gt=t.scroll,i=t.scrollFn,!0===Gt&&(Gt=M(e,!0)));var d=0,h=Gt;do{var p=h,f=X(p),g=f.top,m=f.bottom,v=f.left,b=f.right,y=f.width,w=f.height,D=void 0,E=void 0,S=p.scrollWidth,_=p.scrollHeight,C=R(p),T=p.scrollLeft,f=p.scrollTop,E=p===c?(D=y<S&&("auto"===C.overflowX||"scroll"===C.overflowX||"visible"===C.overflowX),w<_&&("auto"===C.overflowY||"scroll"===C.overflowY||"visible"===C.overflowY)):(D=y<S&&("auto"===C.overflowX||"scroll"===C.overflowX),w<_&&("auto"===C.overflowY||"scroll"===C.overflowY)),T=D&&(Math.abs(b-r)<=l&&T+y<S)-(Math.abs(v-r)<=l&&!!T),f=E&&(Math.abs(m-a)<=l&&f+w<_)-(Math.abs(g-a)<=l&&!!f);if(!Qt[d])for(var x=0;x<=d;x++)Qt[x]||(Qt[x]={});Qt[d].vx==T&&Qt[d].vy==f&&Qt[d].el===p||(Qt[d].el=p,Qt[d].vx=T,Qt[d].vy=f,clearInterval(Qt[d].pid),0==T&&0==f||(u=!0,Qt[d].pid=setInterval(function(){o&&0===this.layer&&jt.active._onTouchMove(Zt);var t=Qt[this.layer].vy?Qt[this.layer].vy*s:0,e=Qt[this.layer].vx?Qt[this.layer].vx*s:0;"function"==typeof i&&"continue"!==i.call(jt.dragged.parentNode[K],e,t,n,Zt,Qt[this.layer].el)||H(Qt[this.layer].el,e,t)}.bind({layer:d}),24))),d++}while(t.bubbleScroll&&h!==c&&(h=M(h,!1)));Jt=u}},30),n=function(t){var e=t.originalEvent,n=t.putSortable,o=t.dragEl,i=t.activeSortable,r=t.dispatchSortableEvent,a=t.hideGhostForTarget,t=t.unhideGhostForTarget;e&&(i=n||i,a(),e=e.changedTouches&&e.changedTouches.length?e.changedTouches[0]:e,e=document.elementFromPoint(e.clientX,e.clientY),t(),i&&!i.el.contains(e)&&(r("spill"),this.onSpill({dragEl:o,putSortable:n})))};function ie(){}function re(){}ie.prototype={startIndex:null,dragStart:function(t){t=t.oldDraggableIndex;this.startIndex=t},onSpill:function(t){var e=t.dragEl,n=t.putSortable;this.sortable.captureAnimationState(),n&&n.captureAnimationState();t=B(this.sortable.el,this.startIndex,this.options);t?this.sortable.el.insertBefore(e,t):this.sortable.el.appendChild(e),this.sortable.animateAll(),n&&n.animateAll()},drop:n},a(ie,{pluginName:"revertOnSpill"}),re.prototype={onSpill:function(t){var e=t.dragEl,t=t.putSortable||this.sortable;t.captureAnimationState(),e.parentNode&&e.parentNode.removeChild(e),t.animateAll()},drop:n},a(re,{pluginName:"removeOnSpill"});var ae,le,se,ce,ue,de=[],he=[],pe=!1,fe=!1,ge=!1;function me(n,o){he.forEach(function(t,e){e=o.children[t.sortableIndex+(n?Number(e):0)];e?o.insertBefore(t,e):o.appendChild(t)})}function ve(){de.forEach(function(t){t!==se&&t.parentNode&&t.parentNode.removeChild(t)})}return jt.mount(new function(){function t(){for(var t in this.defaults={scroll:!0,forceAutoScrollFallback:!1,scrollSensitivity:30,scrollSpeed:10,bubbleScroll:!0},this)"_"===t.charAt(0)&&"function"==typeof this[t]&&(this[t]=this[t].bind(this))}return t.prototype={dragStarted:function(t){t=t.originalEvent;this.sortable.nativeDraggable?h(document,"dragover",this._handleAutoScroll):this.options.supportPointer?h(document,"pointermove",this._handleFallbackAutoScroll):t.touches?h(document,"touchmove",this._handleFallbackAutoScroll):h(document,"mousemove",this._handleFallbackAutoScroll)},dragOverCompleted:function(t){t=t.originalEvent;this.options.dragOverBubble||t.rootEl||this._handleAutoScroll(t)},drop:function(){this.sortable.nativeDraggable?p(document,"dragover",this._handleAutoScroll):(p(document,"pointermove",this._handleFallbackAutoScroll),p(document,"touchmove",this._handleFallbackAutoScroll),p(document,"mousemove",this._handleFallbackAutoScroll)),ee(),te(),clearTimeout(m),m=void 0},nulling:function(){Zt=Ut=Gt=Jt=$t=qt=Vt=null,Qt.length=0},_handleFallbackAutoScroll:function(t){this._handleAutoScroll(t,!0)},_handleAutoScroll:function(e,n){var o,i=this,r=(e.touches?e.touches[0]:e).clientX,a=(e.touches?e.touches[0]:e).clientY,t=document.elementFromPoint(r,a);Zt=e,n||this.options.forceAutoScrollFallback||w||y||u?(oe(e,this.options,t,n),o=M(t,!0),!Jt||$t&&r===qt&&a===Vt||($t&&ee(),$t=setInterval(function(){var t=M(document.elementFromPoint(r,a),!0);t!==o&&(o=t,te()),oe(e,i.options,t,n)},10),qt=r,Vt=a)):this.options.bubbleScroll&&M(t,!0)!==O()?oe(e,this.options,M(t,!1),!1):te()}},a(t,{pluginName:"scroll",initializeByDefault:!0})}),jt.mount(re,ie),jt.mount(new function(){function t(){this.defaults={swapClass:"sortable-swap-highlight"}}return t.prototype={dragStart:function(t){t=t.dragEl;ne=t},dragOverValid:function(t){var e=t.completed,n=t.target,o=t.onMove,i=t.activeSortable,r=t.changed,a=t.cancel;i.options.swap&&(t=this.sortable.el,i=this.options,n&&n!==t&&(t=ne,ne=!1!==o(n)?(k(n,i.swapClass,!0),n):null,t&&t!==ne&&k(t,i.swapClass,!1)),r(),e(!0),a())},drop:function(t){var e,n,o=t.activeSortable,i=t.putSortable,r=t.dragEl,a=i||this.sortable,l=this.options;ne&&k(ne,l.swapClass,!1),ne&&(l.swap||i&&i.options.swap)&&r!==ne&&(a.captureAnimationState(),a!==o&&o.captureAnimationState(),n=ne,t=(e=r).parentNode,l=n.parentNode,t&&l&&!t.isEqualNode(n)&&!l.isEqualNode(e)&&(i=j(e),r=j(n),t.isEqualNode(l)&&i<r&&r++,t.insertBefore(n,t.children[i]),l.insertBefore(e,l.children[r])),a.animateAll(),a!==o&&o.animateAll())},nulling:function(){ne=null}},a(t,{pluginName:"swap",eventProperties:function(){return{swapItem:ne}}})}),jt.mount(new function(){function t(o){for(var t in this)"_"===t.charAt(0)&&"function"==typeof this[t]&&(this[t]=this[t].bind(this));o.options.avoidImplicitDeselect||(o.options.supportPointer?h(document,"pointerup",this._deselectMultiDrag):(h(document,"mouseup",this._deselectMultiDrag),h(document,"touchend",this._deselectMultiDrag))),h(document,"keydown",this._checkKeyDown),h(document,"keyup",this._checkKeyUp),this.defaults={selectedClass:"sortable-selected",multiDragKey:null,avoidImplicitDeselect:!1,setData:function(t,e){var n="";de.length&&le===o?de.forEach(function(t,e){n+=(e?", ":"")+t.textContent}):n=e.textContent,t.setData("Text",n)}}}return t.prototype={multiDragKeyDown:!1,isMultiDrag:!1,delayStartGlobal:function(t){t=t.dragEl;se=t},delayEnded:function(){this.isMultiDrag=~de.indexOf(se)},setupClone:function(t){var e=t.sortable,t=t.cancel;if(this.isMultiDrag){for(var n=0;n<de.length;n++)he.push(C(de[n])),he[n].sortableIndex=de[n].sortableIndex,he[n].draggable=!1,he[n].style["will-change"]="",k(he[n],this.options.selectedClass,!1),de[n]===se&&k(he[n],this.options.chosenClass,!1);e._hideClone(),t()}},clone:function(t){var e=t.sortable,n=t.rootEl,o=t.dispatchSortableEvent,t=t.cancel;this.isMultiDrag&&(this.options.removeCloneOnHide||de.length&&le===e&&(me(!0,n),o("clone"),t()))},showClone:function(t){var e=t.cloneNowShown,n=t.rootEl,t=t.cancel;this.isMultiDrag&&(me(!1,n),he.forEach(function(t){R(t,"display","")}),e(),ue=!1,t())},hideClone:function(t){var e=this,n=(t.sortable,t.cloneNowHidden),t=t.cancel;this.isMultiDrag&&(he.forEach(function(t){R(t,"display","none"),e.options.removeCloneOnHide&&t.parentNode&&t.parentNode.removeChild(t)}),n(),ue=!0,t())},dragStartGlobal:function(t){t.sortable;!this.isMultiDrag&&le&&le.multiDrag._deselectMultiDrag(),de.forEach(function(t){t.sortableIndex=j(t)}),de=de.sort(function(t,e){return t.sortableIndex-e.sortableIndex}),ge=!0},dragStarted:function(t){var e,n=this,t=t.sortable;this.isMultiDrag&&(this.options.sort&&(t.captureAnimationState(),this.options.animation&&(de.forEach(function(t){t!==se&&R(t,"position","absolute")}),e=X(se,!1,!0,!0),de.forEach(function(t){t!==se&&T(t,e)}),pe=fe=!0)),t.animateAll(function(){pe=fe=!1,n.options.animation&&de.forEach(function(t){x(t)}),n.options.sort&&ve()}))},dragOver:function(t){var e=t.target,n=t.completed,t=t.cancel;fe&&~de.indexOf(e)&&(n(!1),t())},revert:function(t){var n,o,e=t.fromSortable,i=t.rootEl,r=t.sortable,a=t.dragRect;1<de.length&&(de.forEach(function(t){r.addAnimationState({target:t,rect:fe?X(t):a}),x(t),t.fromRect=a,e.removeAnimationState(t)}),fe=!1,n=!this.options.removeCloneOnHide,o=i,de.forEach(function(t,e){e=o.children[t.sortableIndex+(n?Number(e):0)];e?o.insertBefore(t,e):o.appendChild(t)}))},dragOverCompleted:function(t){var e,n=t.sortable,o=t.isOwner,i=t.insertion,r=t.activeSortable,a=t.parentEl,l=t.putSortable,t=this.options;i&&(o&&r._hideClone(),pe=!1,t.animation&&1<de.length&&(fe||!o&&!r.options.sort&&!l)&&(e=X(se,!1,!0,!0),de.forEach(function(t){t!==se&&(T(t,e),a.appendChild(t))}),fe=!0),o||(fe||ve(),1<de.length?(o=ue,r._showClone(n),r.options.animation&&!ue&&o&&he.forEach(function(t){r.addAnimationState({target:t,rect:ce}),t.fromRect=ce,t.thisAnimationDuration=null})):r._showClone(n)))},dragOverAnimationCapture:function(t){var e=t.dragRect,n=t.isOwner,t=t.activeSortable;de.forEach(function(t){t.thisAnimationDuration=null}),t.options.animation&&!n&&t.multiDrag.isMultiDrag&&(ce=a({},e),e=b(se,!0),ce.top-=e.f,ce.left-=e.e)},dragOverAnimationComplete:function(){fe&&(fe=!1,ve())},drop:function(t){var o,i,r,a,n,e,l,s=t.originalEvent,c=t.rootEl,u=t.parentEl,d=t.sortable,h=t.dispatchSortableEvent,p=t.oldIndex,t=t.putSortable,f=t||this.sortable;s&&(o=this.options,i=u.children,ge||(o.multiDragKey&&!this.multiDragKeyDown&&this._deselectMultiDrag(),k(se,o.selectedClass,!~de.indexOf(se)),~de.indexOf(se)?(de.splice(de.indexOf(se),1),ae=null,G({sortable:d,rootEl:c,name:"deselect",targetEl:se,originalEvent:s})):(de.push(se),G({sortable:d,rootEl:c,name:"select",targetEl:se,originalEvent:s}),s.shiftKey&&ae&&d.el.contains(ae)?(r=j(ae),a=j(se),~r&&~a&&r!==a&&function(){for(var e,t=r<a?(e=r,a):(e=a,r+1),n=o.filter;e<t;e++)~de.indexOf(i[e])||P(i[e],o.draggable,u,!1)&&(n&&("function"==typeof n?n.call(d,s,i[e],d):n.split(",").some(function(t){return P(i[e],t.trim(),u,!1)}))||(k(i[e],o.selectedClass,!0),de.push(i[e]),G({sortable:d,rootEl:c,name:"select",targetEl:i[e],originalEvent:s})))}()):ae=se,le=f)),ge&&this.isMultiDrag&&(fe=!1,(u[K].options.sort||u!==c)&&1<de.length&&(n=X(se),e=j(se,":not(."+this.options.selectedClass+")"),!pe&&o.animation&&(se.thisAnimationDuration=null),f.captureAnimationState(),pe||(o.animation&&(se.fromRect=n,de.forEach(function(t){var e;t.thisAnimationDuration=null,t!==se&&(e=fe?X(t):n,t.fromRect=e,f.addAnimationState({target:t,rect:e}))})),ve(),de.forEach(function(t){i[e]?u.insertBefore(t,i[e]):u.appendChild(t),e++}),p===j(se)&&(l=!1,de.forEach(function(t){t.sortableIndex!==j(t)&&(l=!0)}),l&&(h("update"),h("sort")))),de.forEach(function(t){x(t)}),f.animateAll()),le=f),(c===u||t&&"clone"!==t.lastPutMode)&&he.forEach(function(t){t.parentNode&&t.parentNode.removeChild(t)}))},nullingGlobal:function(){this.isMultiDrag=ge=!1,he.length=0},destroyGlobal:function(){this._deselectMultiDrag(),p(document,"pointerup",this._deselectMultiDrag),p(document,"mouseup",this._deselectMultiDrag),p(document,"touchend",this._deselectMultiDrag),p(document,"keydown",this._checkKeyDown),p(document,"keyup",this._checkKeyUp)},_deselectMultiDrag:function(t){if(!(void 0!==ge&&ge||le!==this.sortable||t&&P(t.target,this.options.draggable,this.sortable.el,!1)||t&&0!==t.button))for(;de.length;){var e=de[0];k(e,this.options.selectedClass,!1),de.shift(),G({sortable:this.sortable,rootEl:this.sortable.el,name:"deselect",targetEl:e,originalEvent:t})}},_checkKeyDown:function(t){t.key===this.options.multiDragKey&&(this.multiDragKeyDown=!0)},_checkKeyUp:function(t){t.key===this.options.multiDragKey&&(this.multiDragKeyDown=!1)}},a(t,{pluginName:"multiDrag",utils:{select:function(t){var e=t.parentNode[K];e&&e.options.multiDrag&&!~de.indexOf(t)&&(le&&le!==e&&(le.multiDrag._deselectMultiDrag(),le=e),k(t,e.options.selectedClass,!0),de.push(t))},deselect:function(t){var e=t.parentNode[K],n=de.indexOf(t);e&&e.options.multiDrag&&~n&&(k(t,e.options.selectedClass,!1),de.splice(n,1))}},eventProperties:function(){var n=this,o=[],i=[];return de.forEach(function(t){var e;o.push({multiDragElement:t,index:t.sortableIndex}),e=fe&&t!==se?-1:fe?j(t,":not(."+n.options.selectedClass+")"):j(t),i.push({multiDragElement:t,index:e})}),{items:r(de),clones:[].concat(he),oldIndicies:o,newIndicies:i}},optionListeners:{multiDragKey:function(t){return"ctrl"===(t=t.toLowerCase())?t="Control":1<t.length&&(t=t.charAt(0).toUpperCase()+t.substr(1)),t}}})}),jt});;
71/* @license GPL-2.0-or-later https://www.drupal.org/licensing/faq */
72(function($,drupalSettings,Sortable,once){'use strict';Drupal.behaviors.select2={attach:function(context){$(once('select2-init','.select2-widget',context)).each(function(){var config=$(this).data('select2-config');config.createTag=function(params){var term=params.term.trim();if(term==='')return null;return {id:'$ID:'+term,text:term};};config.templateSelection=function(option,container){if('element' in option&&'value' in option.element)$(container).data('optionValue',option.element.value);return option.text;};if(Object.prototype.hasOwnProperty.call(config,'ajax'))config.ajax.data=function(params){var selected=[];if(Array.isArray($(this).val()))selected=$(this).val();else{if($(this).val()!=='')selected=[$(this).val()];}return $.extend({},params,{q:params.term,selected:selected.filter(function(selected){return !selected.startsWith('$ID:');})});};$(this).data('select2-config',config);$(this).trigger('select2-init');config=$(this).data('select2-config');if(Object.prototype.hasOwnProperty.call(config,'dropdownParent'))config.dropdownParent=$(config.dropdownParent);$(this).select2(config);if(config.multiple){var $select=$(this);var $list=$select.next('.select2-container').find('ul.select2-selection__rendered');
72Sortable.create($list[0],{draggable:'li:not(.select2-search)',onEnd:function(event){if(event.newIndex!=event.oldIndex)$($list.find('.select2-selection__choice').get().reverse()).each(function(){$select.prepend($select.find('option[value="'+$(this).data('optionValue')+'"]').first());});}});}});}};})(jQuery,drupalSettings,Sortable,once);;
73(function($,Drupal,once){'use strict';Drupal.webform=Drupal.webform||{};Drupal.webform.select2=Drupal.webform.select2||{};Drupal.webform.select2.options=Drupal.webform.select2.options||{};Drupal.webform.select2.options.width=Drupal.webform.select2.options.width||'100%';Drupal.webform.select2.options.widthInline=Drupal.webform.select2.options.widthInline||'50%';Drupal.behaviors.webformSelect2={attach:function(context){if(!$.fn.select2)return;$(once('webform-select2','select.js-webform-select2, .js-webform-select2 select',context)).each(function(){var $select=$(this);var options={};if($select.parents('.webform-element--title-inline').length)options.width=Drupal.webform.select2.options.widthInline;options=$.extend(options,Drupal.webform.select2.options);if($select.data('placeholder')){options.placeholder=$select.data('placeholder');if(!$select.prop('multiple'))options.allowClear=true;}if($select.data('limit'))options.maximumSelectionLength=$select.data('limit');if(window.navigator.userAgent.indexOf('Trident/')!==-1&&$select.attr('multiple')&&$select.attr('required'))$select.removeAttr('required');$select.select2(options);});}};$(function(){if($.fn.select2)$(document).on('state:visible state:visible-slide',function(e){$('select.select2-hidden-accessible').select2('close');});if($.ui&&$.ui.dialog&&$.ui.dialog.prototype._allowInteraction){var ui_dialog_interaction=$.ui.dialog.prototype._allowInteraction;$.ui.dialog.prototype._allowInteraction=function(e){if($(e.target).closest('.select2-dropdown').length)return true;return ui_dialog_interaction.apply(this,arguments);};}});})(jQuery,Drupal,once);;
74(function($,Drupal){Drupal.behaviors.dialogCatch={attach:function(context,settings){$(context).on('select2:open',function(e){$('ul.select2-results__options').scrollbar();$('div.select2-results__options').addClass('scrollbar-inner');});var submitObserve;$(once('dialogCatch','html',context)).each(function(){if($('body').hasClass('glb-body'))return;MutationObserver=window.MutationObserver||window.WebKitMutationObserver;var observer=new MutationObserver(function(mutations,observer){for(var j=0;j<mutations.length;j++){var mutation=mutations[j];for(var i=0;i<mutation.addedNodes.length;i++)if($(mutation.addedNodes[i]).hasClass('ui-dialog')){$('body').addClass('popup-form-opened');$('.ui-dialog').find('.ui-dialog-titlebar-close').attr('aria-label',Drupal.t('Close'));$(mutation.addedNodes[i]).find('.webform-button--submit').removeClass('button button--primary');$('.ui-dialog').on('mousedown','.ui-dialog-titlebar-close, .js-form-submit',function(){$('body').removeClass('popup-form-opened');});var dialog=mutation.addedNodes[i];if(dialog.scrollHeight>$(dialog).height()+10){var newDiv=document.createElement('div');$(newDiv).addClass('popup-conten-wrap');$(dialog).children().appendTo($(newDiv));$(newDiv).appendTo($(dialog));$(newDiv).addClass('scrollbar-inner').scrollbar();$(dialog).find("[data-toggle='tooltip']").first().tooltip('hide');}else{$(dialog).css('overflow','hidden');var dialogObserve=new MutationObserver(function(m,o){if(dialog.scrollHeight>$(dialog).height()+25)$(dialog).css('overflow','scroll');else $(dialog).css('overflow','hidden');});dialogObserve.observe(dialog,{childList:true,attributes:true,subtree:true});$(dialog).on('mousedown','.ui-dialog-titlebar-close, .js-form-submit',function(){dialogObserve.disconnect();});}if(typeof submitObserve=='object')submitObserve.disconnect();submitObserve=new MutationObserver(function(mutations,o){for(var j=0;j<mutations.length;j++){m=mutations[j];for(var i=0;m.addedNodes.length>i;i++){if(i==0)$('body').addClass('popup-form-opened');if($(m.addedNodes[i]).hasClass('ui-dialog-buttonpane'))if($('.popup-conten-wrap.scrollbar-inner:not(.scroll-wrapper)').length)$(m.addedNodes[i]).appendTo($('.popup-conten-wrap.scrollbar-inner:not(.scroll-wrapper)'));}}});submitObserve.observe(dialog,{childList:true});}}});observer.observe($('body')[0],{childList:true});});}};})(jQuery,Drupal);;
75(function($,Drupal,once){'use strict';Drupal.behaviors.feedbackModal={attach:function(context,settings){once('email-toggle','.form-item-submitters-email',context).forEach(function(emailWrap){var emailInput=emailWrap.querySelector('input[type="email"]');var emailHasError=emailWrap.classList.contains('form-item--error')||(emailInput&&emailInput.classList.contains('error'));if((emailInput&&emailInput.value)||emailHasError){var existingWrap=emailWrap.parentNode.querySelector('.email-toggle-wrap');if(existingWrap)existingWrap.remove();emailWrap.style.display='';return;}emailWrap.style.display='none';var btn=document.createElement('button');btn.type='button';btn.className='email-toggle-btn btn btn-secondary';
75btn.textContent=Drupal.t('I would like to leave my email for communication');btn.addEventListener('click',function(){emailWrap.style.display='';btn.style.display='none';if(emailInput)emailInput.focus();});var btnWrap=document.createElement('div');btnWrap.className='email-toggle-wrap';btnWrap.appendChild(btn);emailWrap.parentNode.insertBefore(btnWrap,emailWrap);});once('captcha-error-assoc','.captcha',context).forEach(function(captcha){var form=captcha.closest('form');if(!form)return;var errorBox=form.querySelector('.messages--error [role="alert"]');if(!errorBox)return;var captchaError='';var listItems=errorBox.querySelectorAll('.item-list__comma-list li, ul li');if(listItems.length)listItems.forEach(function(li){if(!li.querySelector('a'))captchaError=li.textContent.trim();});else{var clone=errorBox.cloneNode(true);var heading=clone.querySelector('h2');if(heading)heading.remove();captchaError=clone.textContent.trim();}if(!captchaError)return;var actions=form.querySelector('.form-actions');var msgId='captcha-error-message';if(actions&&!form.querySelector('#'+msgId)){var msg=document.createElement('div');msg.className='form-item--error-message captcha-error-above-actions';msg.id=msgId;msg.setAttribute('role','alert');msg.textContent=captchaError;actions.parentNode.insertBefore(msg,actions);}captcha.classList.add('error','form-item--error');var input=captcha.querySelector('.g-recaptcha-response')||captcha.querySelector('textarea, input:not([type="hidden"])');if(input){input.setAttribute('aria-invalid','true');input.setAttribute('aria-describedby',msgId);}});once('radio-label-keyup','.form-item-was-this-information-helpful label.option',context).forEach(function(label){label.addEventListener('keyup',function(e){if(e.which===13){var forAttr=label.getAttribute('for');if(forAttr){var input=document.querySelector('.form-item-was-this-information-helpful input#'+forAttr);if(input)input.click();}}});});once('recaptcha-label','.g-recaptcha-response',context).forEach(function(textarea){if(!textarea.getAttribute('aria-label'))textarea.setAttribute('aria-label',Drupal.t('reCAPTCHA response'));});}};$(document).on('ajaxComplete',function(e,xhr,settings){if(!settings.url||settings.url.indexOf('website-rating')===-1)return;var $dlg=$('.ui-dialog:has(.webform-submission-website-rating-form)');var $element=$('#drupal-modal');$element.find('input[type="submit"], button.webform-button--submit').each(function(){this.classList.remove('button','button--primary');});$dlg.find('.ui-dialog-buttonpane button').each(function(){this.classList.remove('button','button--primary');});injectCancelButton($dlg,$element);});$(window).on('dialog:aftercreate',function(e,dialog,$element){if(!$element.find('.webform-submission-website-rating-form').length)return;var $dlg=$element.closest('.ui-dialog');var $buttonPane=$element.closest('.ui-dialog').find('.ui-dialog-buttonpane');var $paneSubmit=$buttonPane.find('button[type="button"].webform-button--submit');var $formActions=$element.find('.form-actions');if($paneSubmit.length&&$formActions.length){$formActions.append($paneSubmit);$buttonPane.hide();}$element.find('input[type="submit"]').each(function(){this.classList.remove('button','button--primary');});$dlg.find('.ui-dialog-buttonpane button').each(function(){this.classList.remove('button','button--primary');});document.documentElement.style.overflow='hidden';document.body.style.overflow='hidden';var title=$dlg.find('.ui-dialog-title')[0];if(title)title.classList.add('visually-hidden');$dlg[0].addEventListener('keydown',function(e){if(e.key==='Escape')dialog.close();});var firstError=$element[0].querySelector('.captcha.form-item--error .g-recaptcha-response, '+'.form-item--error input, .form-item--error textarea, '+'.form-item--error select, input.error');if(firstError)firstError.focus();setTimeout(function(){injectCancelButton($dlg,$element);},0);});$(window).on('dialog:beforeclose',function(e,dialog,$element){if(!$element.find('.webform-submission-website-rating-form').length)return;document.documentElement.style.overflow='';document.body.style.overflow='';var trigger=document.querySelector('.feedback-trigger-btn');if(trigger)trigger.focus();});function injectCancelButton($dlg,$element){if(!$dlg||!$dlg.length)return;var $buttonPane=$dlg.find('.ui-dialog-buttonpane');var $buttonSet=$buttonPane.find('.ui-dialog-buttonset');if(!$buttonSet.length)return;if($element){var $submit=$element.find('button.webform-button--submit');
75if($submit.length&&!$buttonSet.find('.webform-button--submit').length)$buttonSet.append($submit);}if(!$buttonSet.find('.feedback-cancel-btn').length){var cancelBtn=document.createElement('button');cancelBtn.type='button';cancelBtn.className='feedback-cancel-btn btn btn-secondary';cancelBtn.textContent=Drupal.t('Cancel');cancelBtn.addEventListener('click',function(){var modal=document.querySelector('#drupal-modal');if(modal)Drupal.dialog(modal).close();});$buttonSet[0].insertBefore(cancelBtn,$buttonSet[0].firstChild);}$buttonPane.show();}}(jQuery,Drupal,once));;

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.