ubs-helpetica.ch Open in urlscan Pro
212.71.109.234  Public Scan

Submitted URL: http://ubs-helpetica.ch/static/js/main.af565fee02e9.js
Effective URL: https://ubs-helpetica.ch/static/js/main.af565fee02e9.js
Submission: On December 16 via api from CH — Scanned from DE

Form analysis 0 forms found in the DOM

Text Content

!function(t){var e={};function n(r){if(e[r])return e[r].exports;var o=e[r]={i:r,l:!1,exports:{}};return t[r].call(o.exports,o,o.exports,n),o.l=!0,o.exports}n.m=t,n.c=e,n.d=function(t,e,r){n.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:r})},n.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},n.t=function(t,e){if(1&e&&(t=n(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var o in t)n.d(r,o,function(e){return t[e]}.bind(null,o));return r},n.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return n.d(e,"a",e),e},n.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},n.p="/static/",n(n.s=5)}([function(t,e){var n;n=function(){return this}();try{n=n||new Function("return this")()}catch(t){"object"==typeof window&&(n=window)}t.exports=n},function(t,e,n){"use strict";e.a=function(t){var e=this.constructor;return this.then((function(n){return e.resolve(t()).then((function(){return n}))}),(function(n){return e.resolve(t()).then((function(){return e.reject(n)}))}))}},function(t,e,n){"use strict";e.a=function(t){return new this((function(e,n){if(!t||void 0===t.length)return n(new TypeError(typeof t+" "+t+" is not iterable(cannot read property Symbol(Symbol.iterator))"));var r=Array.prototype.slice.call(t);if(0===r.length)return e([]);var o=r.length;function i(t,n){if(n&&("object"==typeof n||"function"==typeof n)){var s=n.then;if("function"==typeof s)return void s.call(n,(function(e){i(t,e)}),(function(n){r[t]={status:"rejected",reason:n},0==--o&&e(r)}))}r[t]={status:"fulfilled",value:n},0==--o&&e(r)}for(var s=0;s<r.length;s++)i(s,r[s])}))}},function(t,e,n){var r;
/*! Hammer.JS - v2.0.7 - 2016-04-22
 * http://hammerjs.github.io/
 *
 * Copyright (c) 2016 Jorik Tangelder;
 * Licensed under the MIT license */!function(o,i,s,a){"use strict";var c,u=["","webkit","Moz","MS","ms","o"],l=i.createElement("div"),h=Math.round,p=Math.abs,f=Date.now;function d(t,e,n){return setTimeout(w(t,n),e)}function v(t,e,n){return!!Array.isArray(t)&&(y(t,n[e],n),!0)}function y(t,e,n){var r;if(t)if(t.forEach)t.forEach(e,n);else if(void 0!==t.length)for(r=0;r<t.length;)e.call(n,t[r],r,t),r++;else for(r in t)t.hasOwnProperty(r)&&e.call(n,t[r],r,t)}function m(t,e,n){var r="DEPRECATED METHOD: "+e+"\n"+n+" AT \n";return function(){var e=new Error("get-stack-trace"),n=e&&e.stack?e.stack.replace(/^[^\(]+?[\n$]/gm,"").replace(/^\s+at\s+/gm,"").replace(/^Object.<anonymous>\s*\(/gm,"{anonymous}()@"):"Unknown Stack Trace",i=o.console&&(o.console.warn||o.console.log);return i&&i.call(o.console,r,n),t.apply(this,arguments)}}c="function"!=typeof Object.assign?function(t){if(null==t)throw new TypeError("Cannot convert undefined or null to object");for(var e=Object(t),n=1;n<arguments.length;n++){var r=arguments[n];if(null!=r)for(var o in r)r.hasOwnProperty(o)&&(e[o]=r[o])}return e}:Object.assign;var g=m((function(t,e,n){for(var r=Object.keys(e),o=0;o<r.length;)(!n||n&&void 0===t[r[o]])&&(t[r[o]]=e[r[o]]),o++;return t}),"extend","Use `assign`."),b=m((function(t,e){return g(t,e,!0)}),"merge","Use `assign`.");function _(t,e,n){var r,o=e.prototype;(r=t.prototype=Object.create(o)).constructor=t,r._super=o,n&&c(r,n)}function w(t,e){return function(){return t.apply(e,arguments)}}function E(t,e){return"function"==typeof t?t.apply(e&&e[0]||void 0,e):t}function S(t,e){return void 0===t?e:t}function T(t,e,n){y(x(e),(function(e){t.addEventListener(e,n,!1)}))}function I(t,e,n){y(x(e),(function(e){t.removeEventListener(e,n,!1)}))}function L(t,e){for(;t;){if(t==e)return!0;t=t.parentNode}return!1}function O(t,e){return t.indexOf(e)>-1}function x(t){return t.trim().split(/\s+/g)}function A(t,e,n){if(t.indexOf&&!n)return t.indexOf(e);for(var r=0;r<t.length;){if(n&&t[r][n]==e||!n&&t[r]===e)return r;r++}return-1}function C(t){return Array.prototype.slice.call(t,0)}function k(t,e,n){for(var r=[],o=[],i=0;i<t.length;){var s=e?t[i][e]:t[i];A(o,s)<0&&r.push(t[i]),o[i]=s,i++}return n&&(r=e?r.sort((function(t,n){return t[e]>n[e]})):r.sort()),r}function P(t,e){for(var n,r,o=e[0].toUpperCase()+e.slice(1),i=0;i<u.length;){if((r=(n=u[i])?n+o:e)in t)return r;i++}}var j=1;function F(t){var e=t.ownerDocument||t;return e.defaultView||e.parentWindow||o}var D="ontouchstart"in o,M=void 0!==P(o,"PointerEvent"),N=D&&/mobile|tablet|ip(ad|hone|od)|android/i.test(navigator.userAgent),q=["x","y"],R=["clientX","clientY"];function B(t,e){var n=this;this.manager=t,this.callback=e,this.element=t.element,this.target=t.options.inputTarget,this.domHandler=function(e){E(t.options.enable,[t])&&n.handler(e)},this.init()}function H(t,e,n){var r=n.pointers.length,o=n.changedPointers.length,i=1&e&&r-o==0,s=12&e&&r-o==0;n.isFirst=!!i,n.isFinal=!!s,i&&(t.session={}),n.eventType=e,function(t,e){var n=t.session,r=e.pointers,o=r.length;n.firstInput||(n.firstInput=U(e));o>1&&!n.firstMultiple?n.firstMultiple=U(e):1===o&&(n.firstMultiple=!1);var i=n.firstInput,s=n.firstMultiple,a=s?s.center:i.center,c=e.center=W(r);e.timeStamp=f(),e.deltaTime=e.timeStamp-i.timeStamp,e.angle=Y(a,c),e.distance=V(a,c),function(t,e){var n=e.center,r=t.offsetDelta||{},o=t.prevDelta||{},i=t.prevInput||{};1!==e.eventType&&4!==i.eventType||(o=t.prevDelta={x:i.deltaX||0,y:i.deltaY||0},r=t.offsetDelta={x:n.x,y:n.y});e.deltaX=o.x+(n.x-r.x),e.deltaY=o.y+(n.y-r.y)}(n,e),e.offsetDirection=z(e.deltaX,e.deltaY);var u=X(e.deltaTime,e.deltaX,e.deltaY);e.overallVelocityX=u.x,e.overallVelocityY=u.y,e.overallVelocity=p(u.x)>p(u.y)?u.x:u.y,e.scale=s?(l=s.pointers,h=r,V(h[0],h[1],R)/V(l[0],l[1],R)):1,e.rotation=s?function(t,e){return Y(e[1],e[0],R)+Y(t[1],t[0],R)}(s.pointers,r):0,e.maxPointers=n.prevInput?e.pointers.length>n.prevInput.maxPointers?e.pointers.length:n.prevInput.maxPointers:e.pointers.length,function(t,e){var n,r,o,i,s=t.lastInterval||e,a=e.timeStamp-s.timeStamp;if(8!=e.eventType&&(a>25||void 0===s.velocity)){var c=e.deltaX-s.deltaX,u=e.deltaY-s.deltaY,l=X(a,c,u);r=l.x,o=l.y,n=p(l.x)>p(l.y)?l.x:l.y,i=z(c,u),t.lastInterval=e}else n=s.velocity,r=s.velocityX,o=s.velocityY,i=s.direction;e.velocity=n,e.velocityX=r,e.velocityY=o,e.direction=i}(n,e);var l,h;var d=t.element;L(e.srcEvent.target,d)&&(d=e.srcEvent.target);e.target=d}(t,n),t.emit("hammer.input",n),t.recognize(n),t.session.prevInput=n}function U(t){for(var e=[],n=0;n<t.pointers.length;)e[n]={clientX:h(t.pointers[n].clientX),clientY:h(t.pointers[n].clientY)},n++;return{timeStamp:f(),pointers:e,center:W(e),deltaX:t.deltaX,deltaY:t.deltaY}}function W(t){var e=t.length;if(1===e)return{x:h(t[0].clientX),y:h(t[0].clientY)};for(var n=0,r=0,o=0;o<e;)n+=t[o].clientX,r+=t[o].clientY,o++;return{x:h(n/e),y:h(r/e)}}function X(t,e,n){return{x:e/t||0,y:n/t||0}}function z(t,e){return t===e?1:p(t)>=p(e)?t<0?2:4:e<0?8:16}function V(t,e,n){n||(n=q);var r=e[n[0]]-t[n[0]],o=e[n[1]]-t[n[1]];return Math.sqrt(r*r+o*o)}function Y(t,e,n){n||(n=q);var r=e[n[0]]-t[n[0]],o=e[n[1]]-t[n[1]];return 180*Math.atan2(o,r)/Math.PI}B.prototype={handler:function(){},init:function(){this.evEl&&T(this.element,this.evEl,this.domHandler),this.evTarget&&T(this.target,this.evTarget,this.domHandler),this.evWin&&T(F(this.element),this.evWin,this.domHandler)},destroy:function(){this.evEl&&I(this.element,this.evEl,this.domHandler),this.evTarget&&I(this.target,this.evTarget,this.domHandler),this.evWin&&I(F(this.element),this.evWin,this.domHandler)}};var G={mousedown:1,mousemove:2,mouseup:4};function K(){this.evEl="mousedown",this.evWin="mousemove mouseup",this.pressed=!1,B.apply(this,arguments)}_(K,B,{handler:function(t){var e=G[t.type];1&e&&0===t.button&&(this.pressed=!0),2&e&&1!==t.which&&(e=4),this.pressed&&(4&e&&(this.pressed=!1),this.callback(this.manager,e,{pointers:[t],changedPointers:[t],pointerType:"mouse",srcEvent:t}))}});var Q={pointerdown:1,pointermove:2,pointerup:4,pointercancel:8,pointerout:8},$={2:"touch",3:"pen",4:"mouse",5:"kinect"},J="pointerdown",Z="pointermove pointerup pointercancel";function tt(){this.evEl=J,this.evWin=Z,B.apply(this,arguments),this.store=this.manager.session.pointerEvents=[]}o.MSPointerEvent&&!o.PointerEvent&&(J="MSPointerDown",Z="MSPointerMove MSPointerUp MSPointerCancel"),_(tt,B,{handler:function(t){var e=this.store,n=!1,r=t.type.toLowerCase().replace("ms",""),o=Q[r],i=$[t.pointerType]||t.pointerType,s="touch"==i,a=A(e,t.pointerId,"pointerId");1&o&&(0===t.button||s)?a<0&&(e.push(t),a=e.length-1):12&o&&(n=!0),a<0||(e[a]=t,this.callback(this.manager,o,{pointers:e,changedPointers:[t],pointerType:i,srcEvent:t}),n&&e.splice(a,1))}});var et={touchstart:1,touchmove:2,touchend:4,touchcancel:8};function nt(){this.evTarget="touchstart",this.evWin="touchstart touchmove touchend touchcancel",this.started=!1,B.apply(this,arguments)}function rt(t,e){var n=C(t.touches),r=C(t.changedTouches);return 12&e&&(n=k(n.concat(r),"identifier",!0)),[n,r]}_(nt,B,{handler:function(t){var e=et[t.type];if(1===e&&(this.started=!0),this.started){var n=rt.call(this,t,e);12&e&&n[0].length-n[1].length==0&&(this.started=!1),this.callback(this.manager,e,{pointers:n[0],changedPointers:n[1],pointerType:"touch",srcEvent:t})}}});var ot={touchstart:1,touchmove:2,touchend:4,touchcancel:8};function it(){this.evTarget="touchstart touchmove touchend touchcancel",this.targetIds={},B.apply(this,arguments)}function st(t,e){var n=C(t.touches),r=this.targetIds;if(3&e&&1===n.length)return r[n[0].identifier]=!0,[n,n];var o,i,s=C(t.changedTouches),a=[],c=this.target;if(i=n.filter((function(t){return L(t.target,c)})),1===e)for(o=0;o<i.length;)r[i[o].identifier]=!0,o++;for(o=0;o<s.length;)r[s[o].identifier]&&a.push(s[o]),12&e&&delete r[s[o].identifier],o++;return a.length?[k(i.concat(a),"identifier",!0),a]:void 0}_(it,B,{handler:function(t){var e=ot[t.type],n=st.call(this,t,e);n&&this.callback(this.manager,e,{pointers:n[0],changedPointers:n[1],pointerType:"touch",srcEvent:t})}});function at(){B.apply(this,arguments);var t=w(this.handler,this);this.touch=new it(this.manager,t),this.mouse=new K(this.manager,t),this.primaryTouch=null,this.lastTouches=[]}function ct(t,e){1&t?(this.primaryTouch=e.changedPointers[0].identifier,ut.call(this,e)):12&t&&ut.call(this,e)}function ut(t){var e=t.changedPointers[0];if(e.identifier===this.primaryTouch){var n={x:e.clientX,y:e.clientY};this.lastTouches.push(n);var r=this.lastTouches;setTimeout((function(){var t=r.indexOf(n);t>-1&&r.splice(t,1)}),2500)}}function lt(t){for(var e=t.srcEvent.clientX,n=t.srcEvent.clientY,r=0;r<this.lastTouches.length;r++){var o=this.lastTouches[r],i=Math.abs(e-o.x),s=Math.abs(n-o.y);if(i<=25&&s<=25)return!0}return!1}_(at,B,{handler:function(t,e,n){var r="touch"==n.pointerType,o="mouse"==n.pointerType;if(!(o&&n.sourceCapabilities&&n.sourceCapabilities.firesTouchEvents)){if(r)ct.call(this,e,n);else if(o&&lt.call(this,n))return;this.callback(t,e,n)}},destroy:function(){this.touch.destroy(),this.mouse.destroy()}});var ht=P(l.style,"touchAction"),pt=void 0!==ht,ft=function(){if(!pt)return!1;var t={},e=o.CSS&&o.CSS.supports;return["auto","manipulation","pan-y","pan-x","pan-x pan-y","none"].forEach((function(n){t[n]=!e||o.CSS.supports("touch-action",n)})),t}();function dt(t,e){this.manager=t,this.set(e)}dt.prototype={set:function(t){"compute"==t&&(t=this.compute()),pt&&this.manager.element.style&&ft[t]&&(this.manager.element.style[ht]=t),this.actions=t.toLowerCase().trim()},update:function(){this.set(this.manager.options.touchAction)},compute:function(){var t=[];return y(this.manager.recognizers,(function(e){E(e.options.enable,[e])&&(t=t.concat(e.getTouchAction()))})),function(t){if(O(t,"none"))return"none";var e=O(t,"pan-x"),n=O(t,"pan-y");if(e&&n)return"none";if(e||n)return e?"pan-x":"pan-y";if(O(t,"manipulation"))return"manipulation";return"auto"}(t.join(" "))},preventDefaults:function(t){var e=t.srcEvent,n=t.offsetDirection;if(this.manager.session.prevented)e.preventDefault();else{var r=this.actions,o=O(r,"none")&&!ft.none,i=O(r,"pan-y")&&!ft["pan-y"],s=O(r,"pan-x")&&!ft["pan-x"];if(o){var a=1===t.pointers.length,c=t.distance<2,u=t.deltaTime<250;if(a&&c&&u)return}if(!s||!i)return o||i&&6&n||s&&24&n?this.preventSrc(e):void 0}},preventSrc:function(t){this.manager.session.prevented=!0,t.preventDefault()}};function vt(t){this.options=c({},this.defaults,t||{}),this.id=j++,this.manager=null,this.options.enable=S(this.options.enable,!0),this.state=1,this.simultaneous={},this.requireFail=[]}function yt(t){return 16&t?"cancel":8&t?"end":4&t?"move":2&t?"start":""}function mt(t){return 16==t?"down":8==t?"up":2==t?"left":4==t?"right":""}function gt(t,e){var n=e.manager;return n?n.get(t):t}function bt(){vt.apply(this,arguments)}function _t(){bt.apply(this,arguments),this.pX=null,this.pY=null}function wt(){bt.apply(this,arguments)}function Et(){vt.apply(this,arguments),this._timer=null,this._input=null}function St(){bt.apply(this,arguments)}function Tt(){bt.apply(this,arguments)}function It(){vt.apply(this,arguments),this.pTime=!1,this.pCenter=!1,this._timer=null,this._input=null,this.count=0}function Lt(t,e){return(e=e||{}).recognizers=S(e.recognizers,Lt.defaults.preset),new Ot(t,e)}vt.prototype={defaults:{},set:function(t){return c(this.options,t),this.manager&&this.manager.touchAction.update(),this},recognizeWith:function(t){if(v(t,"recognizeWith",this))return this;var e=this.simultaneous;return e[(t=gt(t,this)).id]||(e[t.id]=t,t.recognizeWith(this)),this},dropRecognizeWith:function(t){return v(t,"dropRecognizeWith",this)||(t=gt(t,this),delete this.simultaneous[t.id]),this},requireFailure:function(t){if(v(t,"requireFailure",this))return this;var e=this.requireFail;return-1===A(e,t=gt(t,this))&&(e.push(t),t.requireFailure(this)),this},dropRequireFailure:function(t){if(v(t,"dropRequireFailure",this))return this;t=gt(t,this);var e=A(this.requireFail,t);return e>-1&&this.requireFail.splice(e,1),this},hasRequireFailures:function(){return this.requireFail.length>0},canRecognizeWith:function(t){return!!this.simultaneous[t.id]},emit:function(t){var e=this,n=this.state;function r(n){e.manager.emit(n,t)}n<8&&r(e.options.event+yt(n)),r(e.options.event),t.additionalEvent&&r(t.additionalEvent),n>=8&&r(e.options.event+yt(n))},tryEmit:function(t){if(this.canEmit())return this.emit(t);this.state=32},canEmit:function(){for(var t=0;t<this.requireFail.length;){if(!(33&this.requireFail[t].state))return!1;t++}return!0},recognize:function(t){var e=c({},t);if(!E(this.options.enable,[this,e]))return this.reset(),void(this.state=32);56&this.state&&(this.state=1),this.state=this.process(e),30&this.state&&this.tryEmit(e)},process:function(t){},getTouchAction:function(){},reset:function(){}},_(bt,vt,{defaults:{pointers:1},attrTest:function(t){var e=this.options.pointers;return 0===e||t.pointers.length===e},process:function(t){var e=this.state,n=t.eventType,r=6&e,o=this.attrTest(t);return r&&(8&n||!o)?16|e:r||o?4&n?8|e:2&e?4|e:2:32}}),_(_t,bt,{defaults:{event:"pan",threshold:10,pointers:1,direction:30},getTouchAction:function(){var t=this.options.direction,e=[];return 6&t&&e.push("pan-y"),24&t&&e.push("pan-x"),e},directionTest:function(t){var e=this.options,n=!0,r=t.distance,o=t.direction,i=t.deltaX,s=t.deltaY;return o&e.direction||(6&e.direction?(o=0===i?1:i<0?2:4,n=i!=this.pX,r=Math.abs(t.deltaX)):(o=0===s?1:s<0?8:16,n=s!=this.pY,r=Math.abs(t.deltaY))),t.direction=o,n&&r>e.threshold&&o&e.direction},attrTest:function(t){return bt.prototype.attrTest.call(this,t)&&(2&this.state||!(2&this.state)&&this.directionTest(t))},emit:function(t){this.pX=t.deltaX,this.pY=t.deltaY;var e=mt(t.direction);e&&(t.additionalEvent=this.options.event+e),this._super.emit.call(this,t)}}),_(wt,bt,{defaults:{event:"pinch",threshold:0,pointers:2},getTouchAction:function(){return["none"]},attrTest:function(t){return this._super.attrTest.call(this,t)&&(Math.abs(t.scale-1)>this.options.threshold||2&this.state)},emit:function(t){if(1!==t.scale){var e=t.scale<1?"in":"out";t.additionalEvent=this.options.event+e}this._super.emit.call(this,t)}}),_(Et,vt,{defaults:{event:"press",pointers:1,time:251,threshold:9},getTouchAction:function(){return["auto"]},process:function(t){var e=this.options,n=t.pointers.length===e.pointers,r=t.distance<e.threshold,o=t.deltaTime>e.time;if(this._input=t,!r||!n||12&t.eventType&&!o)this.reset();else if(1&t.eventType)this.reset(),this._timer=d((function(){this.state=8,this.tryEmit()}),e.time,this);else if(4&t.eventType)return 8;return 32},reset:function(){clearTimeout(this._timer)},emit:function(t){8===this.state&&(t&&4&t.eventType?this.manager.emit(this.options.event+"up",t):(this._input.timeStamp=f(),this.manager.emit(this.options.event,this._input)))}}),_(St,bt,{defaults:{event:"rotate",threshold:0,pointers:2},getTouchAction:function(){return["none"]},attrTest:function(t){return this._super.attrTest.call(this,t)&&(Math.abs(t.rotation)>this.options.threshold||2&this.state)}}),_(Tt,bt,{defaults:{event:"swipe",threshold:10,velocity:.3,direction:30,pointers:1},getTouchAction:function(){return _t.prototype.getTouchAction.call(this)},attrTest:function(t){var e,n=this.options.direction;return 30&n?e=t.overallVelocity:6&n?e=t.overallVelocityX:24&n&&(e=t.overallVelocityY),this._super.attrTest.call(this,t)&&n&t.offsetDirection&&t.distance>this.options.threshold&&t.maxPointers==this.options.pointers&&p(e)>this.options.velocity&&4&t.eventType},emit:function(t){var e=mt(t.offsetDirection);e&&this.manager.emit(this.options.event+e,t),this.manager.emit(this.options.event,t)}}),_(It,vt,{defaults:{event:"tap",pointers:1,taps:1,interval:300,time:250,threshold:9,posThreshold:10},getTouchAction:function(){return["manipulation"]},process:function(t){var e=this.options,n=t.pointers.length===e.pointers,r=t.distance<e.threshold,o=t.deltaTime<e.time;if(this.reset(),1&t.eventType&&0===this.count)return this.failTimeout();if(r&&o&&n){if(4!=t.eventType)return this.failTimeout();var i=!this.pTime||t.timeStamp-this.pTime<e.interval,s=!this.pCenter||V(this.pCenter,t.center)<e.posThreshold;if(this.pTime=t.timeStamp,this.pCenter=t.center,s&&i?this.count+=1:this.count=1,this._input=t,0===this.count%e.taps)return this.hasRequireFailures()?(this._timer=d((function(){this.state=8,this.tryEmit()}),e.interval,this),2):8}return 32},failTimeout:function(){return this._timer=d((function(){this.state=32}),this.options.interval,this),32},reset:function(){clearTimeout(this._timer)},emit:function(){8==this.state&&(this._input.tapCount=this.count,this.manager.emit(this.options.event,this._input))}}),Lt.VERSION="2.0.7",Lt.defaults={domEvents:!1,touchAction:"compute",enable:!0,inputTarget:null,inputClass:null,preset:[[St,{enable:!1}],[wt,{enable:!1},["rotate"]],[Tt,{direction:6}],[_t,{direction:6},["swipe"]],[It],[It,{event:"doubletap",taps:2},["tap"]],[Et]],cssProps:{userSelect:"none",touchSelect:"none",touchCallout:"none",contentZooming:"none",userDrag:"none",tapHighlightColor:"rgba(0,0,0,0)"}};function Ot(t,e){var n;this.options=c({},Lt.defaults,e||{}),this.options.inputTarget=this.options.inputTarget||t,this.handlers={},this.session={},this.recognizers=[],this.oldCssProps={},this.element=t,this.input=new((n=this).options.inputClass||(M?tt:N?it:D?at:K))(n,H),this.touchAction=new dt(this,this.options.touchAction),xt(this,!0),y(this.options.recognizers,(function(t){var e=this.add(new t[0](t[1]));t[2]&&e.recognizeWith(t[2]),t[3]&&e.requireFailure(t[3])}),this)}function xt(t,e){var n,r=t.element;r.style&&(y(t.options.cssProps,(function(o,i){n=P(r.style,i),e?(t.oldCssProps[n]=r.style[n],r.style[n]=o):r.style[n]=t.oldCssProps[n]||""})),e||(t.oldCssProps={}))}Ot.prototype={set:function(t){return c(this.options,t),t.touchAction&&this.touchAction.update(),t.inputTarget&&(this.input.destroy(),this.input.target=t.inputTarget,this.input.init()),this},stop:function(t){this.session.stopped=t?2:1},recognize:function(t){var e=this.session;if(!e.stopped){var n;this.touchAction.preventDefaults(t);var r=this.recognizers,o=e.curRecognizer;(!o||o&&8&o.state)&&(o=e.curRecognizer=null);for(var i=0;i<r.length;)n=r[i],2===e.stopped||o&&n!=o&&!n.canRecognizeWith(o)?n.reset():n.recognize(t),!o&&14&n.state&&(o=e.curRecognizer=n),i++}},get:function(t){if(t instanceof vt)return t;for(var e=this.recognizers,n=0;n<e.length;n++)if(e[n].options.event==t)return e[n];return null},add:function(t){if(v(t,"add",this))return this;var e=this.get(t.options.event);return e&&this.remove(e),this.recognizers.push(t),t.manager=this,this.touchAction.update(),t},remove:function(t){if(v(t,"remove",this))return this;if(t=this.get(t)){var e=this.recognizers,n=A(e,t);-1!==n&&(e.splice(n,1),this.touchAction.update())}return this},on:function(t,e){if(void 0!==t&&void 0!==e){var n=this.handlers;return y(x(t),(function(t){n[t]=n[t]||[],n[t].push(e)})),this}},off:function(t,e){if(void 0!==t){var n=this.handlers;return y(x(t),(function(t){e?n[t]&&n[t].splice(A(n[t],e),1):delete n[t]})),this}},emit:function(t,e){this.options.domEvents&&function(t,e){var n=i.createEvent("Event");n.initEvent(t,!0,!0),n.gesture=e,e.target.dispatchEvent(n)}(t,e);var n=this.handlers[t]&&this.handlers[t].slice();if(n&&n.length){e.type=t,e.preventDefault=function(){e.srcEvent.preventDefault()};for(var r=0;r<n.length;)n[r](e),r++}},destroy:function(){this.element&&xt(this,!1),this.handlers={},this.session={},this.input.destroy(),this.element=null}},c(Lt,{INPUT_START:1,INPUT_MOVE:2,INPUT_END:4,INPUT_CANCEL:8,STATE_POSSIBLE:1,STATE_BEGAN:2,STATE_CHANGED:4,STATE_ENDED:8,STATE_RECOGNIZED:8,STATE_CANCELLED:16,STATE_FAILED:32,DIRECTION_NONE:1,DIRECTION_LEFT:2,DIRECTION_RIGHT:4,DIRECTION_UP:8,DIRECTION_DOWN:16,DIRECTION_HORIZONTAL:6,DIRECTION_VERTICAL:24,DIRECTION_ALL:30,Manager:Ot,Input:B,TouchAction:dt,TouchInput:it,MouseInput:K,PointerEventInput:tt,TouchMouseInput:at,SingleTouchInput:nt,Recognizer:vt,AttrRecognizer:bt,Tap:It,Pan:_t,Swipe:Tt,Pinch:wt,Rotate:St,Press:Et,on:T,off:I,each:y,merge:b,extend:g,assign:c,inherit:_,bindFn:w,prefixed:P}),(void 0!==o?o:"undefined"!=typeof self?self:{}).Hammer=Lt,void 0===(r=function(){return Lt}.call(e,n,e,t))||(t.exports=r)}(window,document)},function(t,e,n){"use strict";(function(t){var r=n(1),o=n(2),i=setTimeout;function s(t){return Boolean(t&&void 0!==t.length)}function a(){}function c(t){if(!(this instanceof c))throw new TypeError("Promises must be constructed via new");if("function"!=typeof t)throw new TypeError("not a function");this._state=0,this._handled=!1,this._value=void 0,this._deferreds=[],d(t,this)}function u(t,e){for(;3===t._state;)t=t._value;0!==t._state?(t._handled=!0,c._immediateFn((function(){var n=1===t._state?e.onFulfilled:e.onRejected;if(null!==n){var r;try{r=n(t._value)}catch(t){return void h(e.promise,t)}l(e.promise,r)}else(1===t._state?l:h)(e.promise,t._value)}))):t._deferreds.push(e)}function l(t,e){try{if(e===t)throw new TypeError("A promise cannot be resolved with itself.");if(e&&("object"==typeof e||"function"==typeof e)){var n=e.then;if(e instanceof c)return t._state=3,t._value=e,void p(t);if("function"==typeof n)return void d((r=n,o=e,function(){r.apply(o,arguments)}),t)}t._state=1,t._value=e,p(t)}catch(e){h(t,e)}var r,o}function h(t,e){t._state=2,t._value=e,p(t)}function p(t){2===t._state&&0===t._deferreds.length&&c._immediateFn((function(){t._handled||c._unhandledRejectionFn(t._value)}));for(var e=0,n=t._deferreds.length;e<n;e++)u(t,t._deferreds[e]);t._deferreds=null}function f(t,e,n){this.onFulfilled="function"==typeof t?t:null,this.onRejected="function"==typeof e?e:null,this.promise=n}function d(t,e){var n=!1;try{t((function(t){n||(n=!0,l(e,t))}),(function(t){n||(n=!0,h(e,t))}))}catch(t){if(n)return;n=!0,h(e,t)}}c.prototype.catch=function(t){return this.then(null,t)},c.prototype.then=function(t,e){var n=new this.constructor(a);return u(this,new f(t,e,n)),n},c.prototype.finally=r.a,c.all=function(t){return new c((function(e,n){if(!s(t))return n(new TypeError("Promise.all accepts an array"));var r=Array.prototype.slice.call(t);if(0===r.length)return e([]);var o=r.length;function i(t,s){try{if(s&&("object"==typeof s||"function"==typeof s)){var a=s.then;if("function"==typeof a)return void a.call(s,(function(e){i(t,e)}),n)}r[t]=s,0==--o&&e(r)}catch(t){n(t)}}for(var a=0;a<r.length;a++)i(a,r[a])}))},c.allSettled=o.a,c.resolve=function(t){return t&&"object"==typeof t&&t.constructor===c?t:new c((function(e){e(t)}))},c.reject=function(t){return new c((function(e,n){n(t)}))},c.race=function(t){return new c((function(e,n){if(!s(t))return n(new TypeError("Promise.race accepts an array"));for(var r=0,o=t.length;r<o;r++)c.resolve(t[r]).then(e,n)}))},c._immediateFn="function"==typeof t&&function(e){t(e)}||function(t){i(t,0)},c._unhandledRejectionFn=function(t){"undefined"!=typeof console&&console&&console.warn("Possible Unhandled Promise Rejection:",t)},e.a=c}).call(this,n(12).setImmediate)},function(t,e,n){n(28),t.exports=n(23)},function(t,e){!function(){if("undefined"!=typeof window)try{var t=new window.CustomEvent("test",{cancelable:!0});if(t.preventDefault(),!0!==t.defaultPrevented)throw new Error("Could not prevent default")}catch(t){var e=function(t,e){var n,r;return(e=e||{}).bubbles=!!e.bubbles,e.cancelable=!!e.cancelable,(n=document.createEvent("CustomEvent")).initCustomEvent(t,e.bubbles,e.cancelable,e.detail),r=n.preventDefault,n.preventDefault=function(){r.call(this);try{Object.defineProperty(this,"defaultPrevented",{get:function(){return!0}})}catch(t){this.defaultPrevented=!0}},n};e.prototype=window.Event.prototype,window.CustomEvent=e}}()},function(t,e){window.NodeList&&!NodeList.prototype.forEach&&(NodeList.prototype.forEach=function(t,e){e=e||window;for(var n=0;n<this.length;n++)t.call(e,this[n],n,this)})},function(t,e){t.exports=void(Array.prototype.findIndex||(Array.prototype.findIndex=function(t){if(null===this)throw new TypeError("Array.prototype.findIndex called on null or undefined");if("function"!=typeof t)throw new TypeError("predicate must be a function");for(var e,n=Object(this),r=n.length>>>0,o=arguments[1],i=0;i<r;i++)if(e=n[i],t.call(o,e,i,n))return i;return-1}))},function(t,e){!function(){"use strict";if("object"==typeof window)if("IntersectionObserver"in window&&"IntersectionObserverEntry"in window&&"intersectionRatio"in window.IntersectionObserverEntry.prototype)"isIntersecting"in window.IntersectionObserverEntry.prototype||Object.defineProperty(window.IntersectionObserverEntry.prototype,"isIntersecting",{get:function(){return this.intersectionRatio>0}});else{var t=function(t){for(var e=window.document,n=o(e);n;)n=o(e=n.ownerDocument);return e}(),e=[],n=null,r=null;s.prototype.THROTTLE_TIMEOUT=100,s.prototype.POLL_INTERVAL=null,s.prototype.USE_MUTATION_OBSERVER=!0,s._setupCrossOriginUpdater=function(){return n||(n=function(t,n){r=t&&n?h(t,n):{top:0,bottom:0,left:0,right:0,width:0,height:0},e.forEach((function(t){t._checkForIntersections()}))}),n},s._resetCrossOriginUpdater=function(){n=null,r=null},s.prototype.observe=function(t){if(!this._observationTargets.some((function(e){return e.element==t}))){if(!t||1!=t.nodeType)throw new Error("target must be an Element");this._registerInstance(),this._observationTargets.push({element:t,entry:null}),this._monitorIntersections(t.ownerDocument),this._checkForIntersections()}},s.prototype.unobserve=function(t){this._observationTargets=this._observationTargets.filter((function(e){return e.element!=t})),this._unmonitorIntersections(t.ownerDocument),0==this._observationTargets.length&&this._unregisterInstance()},s.prototype.disconnect=function(){this._observationTargets=[],this._unmonitorAllIntersections(),this._unregisterInstance()},s.prototype.takeRecords=function(){var t=this._queuedEntries.slice();return this._queuedEntries=[],t},s.prototype._initThresholds=function(t){var e=t||[0];return Array.isArray(e)||(e=[e]),e.sort().filter((function(t,e,n){if("number"!=typeof t||isNaN(t)||t<0||t>1)throw new Error("threshold must be a number between 0 and 1 inclusively");return t!==n[e-1]}))},s.prototype._parseRootMargin=function(t){var e=(t||"0px").split(/\s+/).map((function(t){var e=/^(-?\d*\.?\d+)(px|%)$/.exec(t);if(!e)throw new Error("rootMargin must be specified in pixels or percent");return{value:parseFloat(e[1]),unit:e[2]}}));return e[1]=e[1]||e[0],e[2]=e[2]||e[0],e[3]=e[3]||e[1],e},s.prototype._monitorIntersections=function(e){var n=e.defaultView;if(n&&-1==this._monitoringDocuments.indexOf(e)){var r=this._checkForIntersections,i=null,s=null;if(this.POLL_INTERVAL?i=n.setInterval(r,this.POLL_INTERVAL):(a(n,"resize",r,!0),a(e,"scroll",r,!0),this.USE_MUTATION_OBSERVER&&"MutationObserver"in n&&(s=new n.MutationObserver(r)).observe(e,{attributes:!0,childList:!0,characterData:!0,subtree:!0})),this._monitoringDocuments.push(e),this._monitoringUnsubscribes.push((function(){var t=e.defaultView;t&&(i&&t.clearInterval(i),c(t,"resize",r,!0)),c(e,"scroll",r,!0),s&&s.disconnect()})),e!=(this.root&&this.root.ownerDocument||t)){var u=o(e);u&&this._monitorIntersections(u.ownerDocument)}}},s.prototype._unmonitorIntersections=function(e){var n=this._monitoringDocuments.indexOf(e);if(-1!=n){var r=this.root&&this.root.ownerDocument||t;if(!this._observationTargets.some((function(t){var n=t.element.ownerDocument;if(n==e)return!0;for(;n&&n!=r;){var i=o(n);if((n=i&&i.ownerDocument)==e)return!0}return!1}))){var i=this._monitoringUnsubscribes[n];if(this._monitoringDocuments.splice(n,1),this._monitoringUnsubscribes.splice(n,1),i(),e!=r){var s=o(e);s&&this._unmonitorIntersections(s.ownerDocument)}}}},s.prototype._unmonitorAllIntersections=function(){var t=this._monitoringUnsubscribes.slice(0);this._monitoringDocuments.length=0,this._monitoringUnsubscribes.length=0;for(var e=0;e<t.length;e++)t[e]()},s.prototype._checkForIntersections=function(){if(this.root||!n||r){var t=this._rootIsInDom(),e=t?this._getRootRect():{top:0,bottom:0,left:0,right:0,width:0,height:0};this._observationTargets.forEach((function(r){var o=r.element,s=u(o),a=this._rootContainsTarget(o),c=r.entry,l=t&&a&&this._computeTargetAndRootIntersection(o,s,e),h=r.entry=new i({time:window.performance&&performance.now&&performance.now(),target:o,boundingClientRect:s,rootBounds:n&&!this.root?null:e,intersectionRect:l});c?t&&a?this._hasCrossedThreshold(c,h)&&this._queuedEntries.push(h):c&&c.isIntersecting&&this._queuedEntries.push(h):this._queuedEntries.push(h)}),this),this._queuedEntries.length&&this._callback(this.takeRecords(),this)}},s.prototype._computeTargetAndRootIntersection=function(e,o,i){if("none"!=window.getComputedStyle(e).display){for(var s,a,c,l,p,d,v,y,m=o,g=f(e),b=!1;!b&&g;){var _=null,w=1==g.nodeType?window.getComputedStyle(g):{};if("none"==w.display)return null;if(g==this.root||9==g.nodeType)if(b=!0,g==this.root||g==t)n&&!this.root?!r||0==r.width&&0==r.height?(g=null,_=null,m=null):_=r:_=i;else{var E=f(g),S=E&&u(E),T=E&&this._computeTargetAndRootIntersection(E,S,i);S&&T?(g=E,_=h(S,T)):(g=null,m=null)}else{var I=g.ownerDocument;g!=I.body&&g!=I.documentElement&&"visible"!=w.overflow&&(_=u(g))}if(_&&(s=_,a=m,c=void 0,l=void 0,p=void 0,d=void 0,v=void 0,y=void 0,c=Math.max(s.top,a.top),l=Math.min(s.bottom,a.bottom),p=Math.max(s.left,a.left),d=Math.min(s.right,a.right),y=l-c,m=(v=d-p)>=0&&y>=0&&{top:c,bottom:l,left:p,right:d,width:v,height:y}||null),!m)break;g=g&&f(g)}return m}},s.prototype._getRootRect=function(){var e;if(this.root)e=u(this.root);else{var n=t.documentElement,r=t.body;e={top:0,left:0,right:n.clientWidth||r.clientWidth,width:n.clientWidth||r.clientWidth,bottom:n.clientHeight||r.clientHeight,height:n.clientHeight||r.clientHeight}}return this._expandRectByRootMargin(e)},s.prototype._expandRectByRootMargin=function(t){var e=this._rootMarginValues.map((function(e,n){return"px"==e.unit?e.value:e.value*(n%2?t.width:t.height)/100})),n={top:t.top-e[0],right:t.right+e[1],bottom:t.bottom+e[2],left:t.left-e[3]};return n.width=n.right-n.left,n.height=n.bottom-n.top,n},s.prototype._hasCrossedThreshold=function(t,e){var n=t&&t.isIntersecting?t.intersectionRatio||0:-1,r=e.isIntersecting?e.intersectionRatio||0:-1;if(n!==r)for(var o=0;o<this.thresholds.length;o++){var i=this.thresholds[o];if(i==n||i==r||i<n!=i<r)return!0}},s.prototype._rootIsInDom=function(){return!this.root||p(t,this.root)},s.prototype._rootContainsTarget=function(e){return p(this.root||t,e)&&(!this.root||this.root.ownerDocument==e.ownerDocument)},s.prototype._registerInstance=function(){e.indexOf(this)<0&&e.push(this)},s.prototype._unregisterInstance=function(){var t=e.indexOf(this);-1!=t&&e.splice(t,1)},window.IntersectionObserver=s,window.IntersectionObserverEntry=i}function o(t){try{return t.defaultView&&t.defaultView.frameElement||null}catch(t){return null}}function i(t){this.time=t.time,this.target=t.target,this.rootBounds=l(t.rootBounds),this.boundingClientRect=l(t.boundingClientRect),this.intersectionRect=l(t.intersectionRect||{top:0,bottom:0,left:0,right:0,width:0,height:0}),this.isIntersecting=!!t.intersectionRect;var e=this.boundingClientRect,n=e.width*e.height,r=this.intersectionRect,o=r.width*r.height;this.intersectionRatio=n?Number((o/n).toFixed(4)):this.isIntersecting?1:0}function s(t,e){var n,r,o,i=e||{};if("function"!=typeof t)throw new Error("callback must be a function");if(i.root&&1!=i.root.nodeType)throw new Error("root must be an Element");this._checkForIntersections=(n=this._checkForIntersections.bind(this),r=this.THROTTLE_TIMEOUT,o=null,function(){o||(o=setTimeout((function(){n(),o=null}),r))}),this._callback=t,this._observationTargets=[],this._queuedEntries=[],this._rootMarginValues=this._parseRootMargin(i.rootMargin),this.thresholds=this._initThresholds(i.threshold),this.root=i.root||null,this.rootMargin=this._rootMarginValues.map((function(t){return t.value+t.unit})).join(" "),this._monitoringDocuments=[],this._monitoringUnsubscribes=[]}function a(t,e,n,r){"function"==typeof t.addEventListener?t.addEventListener(e,n,r||!1):"function"==typeof t.attachEvent&&t.attachEvent("on"+e,n)}function c(t,e,n,r){"function"==typeof t.removeEventListener?t.removeEventListener(e,n,r||!1):"function"==typeof t.detatchEvent&&t.detatchEvent("on"+e,n)}function u(t){var e;try{e=t.getBoundingClientRect()}catch(t){}return e?(e.width&&e.height||(e={top:e.top,right:e.right,bottom:e.bottom,left:e.left,width:e.right-e.left,height:e.bottom-e.top}),e):{top:0,bottom:0,left:0,right:0,width:0,height:0}}function l(t){return!t||"x"in t?t:{top:t.top,y:t.top,bottom:t.bottom,left:t.left,x:t.left,right:t.right,width:t.width,height:t.height}}function h(t,e){var n=e.top-t.top,r=e.left-t.left;return{top:n,left:r,height:e.height,width:e.width,bottom:n+e.height,right:r+e.width}}function p(t,e){for(var n=e;n;){if(n==t)return!0;n=f(n)}return!1}function f(e){var n=e.parentNode;return 9==e.nodeType&&e!=t?o(e):n&&11==n.nodeType&&n.host?n.host:n&&n.assignedSlot?n.assignedSlot.parentNode:n}}()},function(t,e,n){"use strict";Array.prototype.find||Object.defineProperty(Array.prototype,"find",{value:function(t){if(null==this)throw new TypeError("this is null or not defined");var e=Object(this),n=e.length>>>0;if("function"!=typeof t)throw new TypeError("predicate must be a function");for(var r=arguments[1],o=0;o<n;){var i=e[o];if(t.call(r,i,o,e))return i;o++}}})},function(t,e,n){"use strict";(function(t){var e=n(4),r=n(1),o=n(2),i=function(){if("undefined"!=typeof self)return self;if("undefined"!=typeof window)return window;if(void 0!==t)return t;throw new Error("unable to locate global object")}();"function"!=typeof i.Promise?i.Promise=e.a:i.Promise.prototype.finally?i.Promise.allSettled||(i.Promise.allSettled=o.a):i.Promise.prototype.finally=r.a}).call(this,n(0))},function(t,e,n){(function(t){var r=void 0!==t&&t||"undefined"!=typeof self&&self||window,o=Function.prototype.apply;function i(t,e){this._id=t,this._clearFn=e}e.setTimeout=function(){return new i(o.call(setTimeout,r,arguments),clearTimeout)},e.setInterval=function(){return new i(o.call(setInterval,r,arguments),clearInterval)},e.clearTimeout=e.clearInterval=function(t){t&&t.close()},i.prototype.unref=i.prototype.ref=function(){},i.prototype.close=function(){this._clearFn.call(r,this._id)},e.enroll=function(t,e){clearTimeout(t._idleTimeoutId),t._idleTimeout=e},e.unenroll=function(t){clearTimeout(t._idleTimeoutId),t._idleTimeout=-1},e._unrefActive=e.active=function(t){clearTimeout(t._idleTimeoutId);var e=t._idleTimeout;e>=0&&(t._idleTimeoutId=setTimeout((function(){t._onTimeout&&t._onTimeout()}),e))},n(13),e.setImmediate="undefined"!=typeof self&&self.setImmediate||void 0!==t&&t.setImmediate||this&&this.setImmediate,e.clearImmediate="undefined"!=typeof self&&self.clearImmediate||void 0!==t&&t.clearImmediate||this&&this.clearImmediate}).call(this,n(0))},function(t,e,n){(function(t,e){!function(t,n){"use strict";if(!t.setImmediate){var r,o,i,s,a,c=1,u={},l=!1,h=t.document,p=Object.getPrototypeOf&&Object.getPrototypeOf(t);p=p&&p.setTimeout?p:t,"[object process]"==={}.toString.call(t.process)?r=function(t){e.nextTick((function(){d(t)}))}:!function(){if(t.postMessage&&!t.importScripts){var e=!0,n=t.onmessage;return t.onmessage=function(){e=!1},t.postMessage("","*"),t.onmessage=n,e}}()?t.MessageChannel?((i=new MessageChannel).port1.onmessage=function(t){d(t.data)},r=function(t){i.port2.postMessage(t)}):h&&"onreadystatechange"in h.createElement("script")?(o=h.documentElement,r=function(t){var e=h.createElement("script");e.onreadystatechange=function(){d(t),e.onreadystatechange=null,o.removeChild(e),e=null},o.appendChild(e)}):r=function(t){setTimeout(d,0,t)}:(s="setImmediate$"+Math.random()+"$",a=function(e){e.source===t&&"string"==typeof e.data&&0===e.data.indexOf(s)&&d(+e.data.slice(s.length))},t.addEventListener?t.addEventListener("message",a,!1):t.attachEvent("onmessage",a),r=function(e){t.postMessage(s+e,"*")}),p.setImmediate=function(t){"function"!=typeof t&&(t=new Function(""+t));for(var e=new Array(arguments.length-1),n=0;n<e.length;n++)e[n]=arguments[n+1];var o={callback:t,args:e};return u[c]=o,r(c),c++},p.clearImmediate=f}function f(t){delete u[t]}function d(t){if(l)setTimeout(d,0,t);else{var e=u[t];if(e){l=!0;try{!function(t){var e=t.callback,n=t.args;switch(n.length){case 0:e();break;case 1:e(n[0]);break;case 2:e(n[0],n[1]);break;case 3:e(n[0],n[1],n[2]);break;default:e.apply(void 0,n)}}(e)}finally{f(t),l=!1}}}}}("undefined"==typeof self?void 0===t?this:t:self)}).call(this,n(0),n(14))},function(t,e){var n,r,o=t.exports={};function i(){throw new Error("setTimeout has not been defined")}function s(){throw new Error("clearTimeout has not been defined")}function a(t){if(n===setTimeout)return setTimeout(t,0);if((n===i||!n)&&setTimeout)return n=setTimeout,setTimeout(t,0);try{return n(t,0)}catch(e){try{return n.call(null,t,0)}catch(e){return n.call(this,t,0)}}}!function(){try{n="function"==typeof setTimeout?setTimeout:i}catch(t){n=i}try{r="function"==typeof clearTimeout?clearTimeout:s}catch(t){r=s}}();var c,u=[],l=!1,h=-1;function p(){l&&c&&(l=!1,c.length?u=c.concat(u):h=-1,u.length&&f())}function f(){if(!l){var t=a(p);l=!0;for(var e=u.length;e;){for(c=u,u=[];++h<e;)c&&c[h].run();h=-1,e=u.length}c=null,l=!1,function(t){if(r===clearTimeout)return clearTimeout(t);if((r===s||!r)&&clearTimeout)return r=clearTimeout,clearTimeout(t);try{r(t)}catch(e){try{return r.call(null,t)}catch(e){return r.call(this,t)}}}(t)}}function d(t,e){this.fun=t,this.array=e}function v(){}o.nextTick=function(t){var e=new Array(arguments.length-1);if(arguments.length>1)for(var n=1;n<arguments.length;n++)e[n-1]=arguments[n];u.push(new d(t,e)),1!==u.length||l||a(f)},d.prototype.run=function(){this.fun.apply(null,this.array)},o.title="browser",o.browser=!0,o.env={},o.argv=[],o.version="",o.versions={},o.on=v,o.addListener=v,o.once=v,o.off=v,o.removeListener=v,o.removeAllListeners=v,o.emit=v,o.prependListener=v,o.prependOnceListener=v,o.listeners=function(t){return[]},o.binding=function(t){throw new Error("process.binding is not supported")},o.cwd=function(){return"/"},o.chdir=function(t){throw new Error("process.chdir is not supported")},o.umask=function(){return 0}},function(t,e){
/**
 * @license
 * Copyright (c) 2016 The Polymer Project Authors. All rights reserved.
 * This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
 * The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
 * The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
 * Code distributed by Google as part of the polymer project is also
 * subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
 */
!function(){var t="undefined"==typeof HTMLTemplateElement;/Trident/.test(navigator.userAgent)&&function(){var t=Document.prototype.importNode;Document.prototype.importNode=function(){var e=t.apply(this,arguments);if(e.nodeType===Node.DOCUMENT_FRAGMENT_NODE){var n=this.createDocumentFragment();return n.appendChild(e),n}return e}}();var e=Node.prototype.cloneNode,n=Document.prototype.createElement,r=Document.prototype.importNode,o=function(){if(!t){var e=document.createElement("template"),n=document.createElement("template");n.content.appendChild(document.createElement("div")),e.content.appendChild(n);var r=e.cloneNode(!0);return 0===r.content.childNodes.length||0===r.content.firstChild.content.childNodes.length||!(document.createDocumentFragment().cloneNode()instanceof DocumentFragment)}}(),i=function(){if(!t){var e=document.createElement("template");return e.content.appendChild(document.createElement("div")),0===document.importNode(e,!0).content.childNodes.length}}(),s=function(){};if(t){var a=document.implementation.createHTMLDocument("template"),c=document.createElement("style");c.textContent="template{display:none;}";var u=document.head;u.insertBefore(c,u.firstElementChild),s.prototype=Object.create(HTMLElement.prototype);var l={__proto__:[]}instanceof Array&&!document.createElement("div").hasOwnProperty("innerHTML");s.decorate=function(t){if(!t.content){var e;for(t.content=a.createDocumentFragment();e=t.firstChild;)t.content.appendChild(e);l?t.__proto__=s.prototype:(t.cloneNode=function(t){return s._cloneNode(this,t)},d(t)),s.bootstrap(t.content)}};var h=a.createElement("div"),p=/^(.*)(<\/[a-z][^\/]*>)$/i;function f(t){for(var e=[],n=t.firstChild;n;n=n.nextSibling)if(n.nodeType===Node.ELEMENT_NODE)if("template"===n.localName||n.childNodes.length){var r=p.exec(n.cloneNode(!1).outerHTML)||["","",""];e.push(r[1],f("template"===n.localName?n.content:n),r[2])}else e.push(n.outerHTML);else h.appendChild(n.cloneNode(!1)),e.push(h.innerHTML),h.textContent="";return e.join("")}function d(t){Object.defineProperty(t,"innerHTML",{get:function(){return f(this.content)},set:function(t){var e=function(t){var e=(y.exec(t)||["",""])[1].toLowerCase();return v[e]||v._default}(t),n=a.body;for(n.innerHTML=[e[1],t,e[2]].join(""),s.bootstrap(a);this.content.firstChild;)this.content.removeChild(this.content.firstChild);for(var r=e[0];r--;)n=n.lastChild;for(;n.firstChild;)this.content.appendChild(n.firstChild)},configurable:!0})}s.getInnerHTML=f;var v={option:[1,"<select multiple='multiple'>","</select>"],thead:[1,"<table>","</table>"],col:[2,"<table><colgroup>","</colgroup></table>"],tr:[2,"<table><tbody>","</tbody></table>"],td:[3,"<table><tbody><tr>","</tr></tbody></table>"],_default:[0,"",""]};v.optgroup=v.option,v.tbody=v.tfoot=v.colgroup=v.caption=v.thead,v.th=v.td;var y=/<([a-z][^\/\0>\x20\t\r\n\f]+)/i;d(s.prototype),s.bootstrap=function(t){for(var e,n=t.querySelectorAll("template"),r=0,o=n.length;r<o&&(e=n[r]);r++)s.decorate(e)},document.addEventListener("DOMContentLoaded",(function(){s.bootstrap(document)})),Document.prototype.createElement=function(){"use strict";var t=n.apply(this,arguments);return"template"===t.localName&&s.decorate(t),t}}(t||o||i)&&(s._cloneNode=function(t,n){var r=e.call(t,!1);return this.decorate&&this.decorate(r),n&&(r.content.appendChild(e.call(t.content,!0)),this.fixClonedDom(r.content,t.content)),r},s.prototype.cloneNode=function(t){return s._cloneNode(this,t)},s.fixClonedDom=function(t,e){if(e.querySelectorAll)for(var n,r,o=e.querySelectorAll("template"),i=t.querySelectorAll("template"),s=0,a=i.length;s<a;s++)r=o[s],n=i[s],this.decorate&&this.decorate(r),n.parentNode.replaceChild(r.cloneNode(!0),n)},(t||o)&&(Node.prototype.cloneNode=function(t){var n;if(this instanceof DocumentFragment){if(!t)return this.ownerDocument.createDocumentFragment();n=this.ownerDocument.importNode(this,!0)}else n=e.call(this,t);return t&&s.fixClonedDom(n,this),n}),(t||i)&&(Document.prototype.importNode=function(t,e){if("template"===t.localName)return s._cloneNode(t,e);var n=r.call(this,t,e);return e&&s.fixClonedDom(n,t),n}),o&&(window.HTMLTemplateElement.prototype.cloneNode=function(t){return s._cloneNode(this,t)})),t&&(window.HTMLTemplateElement=s)}()},function(t,e){"undefined"!=typeof Element&&(Element.prototype.matches||(Element.prototype.matches=Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector),Element.prototype.closest||(Element.prototype.closest=function(t){var e=this;do{if(e.matches(t))return e;e=e.parentElement||e.parentNode}while(null!==e&&1===e.nodeType);return null}))},function(t,e,n){(function(t){!function(t){"use strict";var e,n=function(){try{if(t.URLSearchParams&&"bar"===new t.URLSearchParams("foo=bar").get("foo"))return t.URLSearchParams}catch(t){}return null}(),r=n&&"a=1"===new n({a:1}).toString(),o=n&&"+"===new n("s=%2B").get("s"),i=!n||((e=new n).append("s"," &"),"s=+%26"===e.toString()),s=l.prototype,a=!(!t.Symbol||!t.Symbol.iterator);if(!(n&&r&&o&&i)){var c;s.append=function(t,e){v(this.__URLSearchParams__,t,e)},s.delete=function(t){delete this.__URLSearchParams__[t]},s.get=function(t){var e=this.__URLSearchParams__;return this.has(t)?e[t][0]:null},s.getAll=function(t){var e=this.__URLSearchParams__;return this.has(t)?e[t].slice(0):[]},s.has=function(t){return m(this.__URLSearchParams__,t)},s.set=function(t,e){this.__URLSearchParams__[t]=[""+e]},s.toString=function(){var t,e,n,r,o=this.__URLSearchParams__,i=[];for(e in o)for(n=h(e),t=0,r=o[e];t<r.length;t++)i.push(n+"="+h(r[t]));return i.join("&")},!!o&&n&&!r&&t.Proxy?(c=new Proxy(n,{construct:function(t,e){return new t(new l(e[0]).toString())}})).toString=Function.prototype.toString.bind(l):c=l,Object.defineProperty(t,"URLSearchParams",{value:c});var u=t.URLSearchParams.prototype;u.polyfill=!0,u.forEach=u.forEach||function(t,e){var n=d(this.toString());Object.getOwnPropertyNames(n).forEach((function(r){n[r].forEach((function(n){t.call(e,n,r,this)}),this)}),this)},u.sort=u.sort||function(){var t,e,n,r=d(this.toString()),o=[];for(t in r)o.push(t);for(o.sort(),e=0;e<o.length;e++)this.delete(o[e]);for(e=0;e<o.length;e++){var i=o[e],s=r[i];for(n=0;n<s.length;n++)this.append(i,s[n])}},u.keys=u.keys||function(){var t=[];return this.forEach((function(e,n){t.push(n)})),f(t)},u.values=u.values||function(){var t=[];return this.forEach((function(e){t.push(e)})),f(t)},u.entries=u.entries||function(){var t=[];return this.forEach((function(e,n){t.push([n,e])})),f(t)},a&&(u[t.Symbol.iterator]=u[t.Symbol.iterator]||u.entries)}function l(t){((t=t||"")instanceof URLSearchParams||t instanceof l)&&(t=t.toString()),this.__URLSearchParams__=d(t)}function h(t){var e={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(t).replace(/[!'\(\)~]|%20|%00/g,(function(t){return e[t]}))}function p(t){return t.replace(/[ +]/g,"%20").replace(/(%[a-f0-9]{2})+/gi,(function(t){return decodeURIComponent(t)}))}function f(e){var n={next:function(){var t=e.shift();return{done:void 0===t,value:t}}};return a&&(n[t.Symbol.iterator]=function(){return n}),n}function d(t){var e={};if("object"==typeof t)if(y(t))for(var n=0;n<t.length;n++){var r=t[n];if(!y(r)||2!==r.length)throw new TypeError("Failed to construct 'URLSearchParams': Sequence initializer must only contain pair elements");v(e,r[0],r[1])}else for(var o in t)t.hasOwnProperty(o)&&v(e,o,t[o]);else{0===t.indexOf("?")&&(t=t.slice(1));for(var i=t.split("&"),s=0;s<i.length;s++){var a=i[s],c=a.indexOf("=");-1<c?v(e,p(a.slice(0,c)),p(a.slice(c+1))):a&&v(e,p(a),"")}}return e}function v(t,e,n){var r="string"==typeof n?n:null!=n&&"function"==typeof n.toString?n.toString():JSON.stringify(n);m(t,e)?t[e].push(r):t[e]=[r]}function y(t){return!!t&&"[object Array]"===Object.prototype.toString.call(t)}function m(t,e){return Object.prototype.hasOwnProperty.call(t,e)}}(void 0!==t?t:"undefined"!=typeof window?window:this)}).call(this,n(0))},function(t,e,n){(function(t){!function(){var e;function n(t){var e=0;return function(){return e<t.length?{done:!1,value:t[e++]}:{done:!0}}}var r="function"==typeof Object.defineProperties?Object.defineProperty:function(t,e,n){return t==Array.prototype||t==Object.prototype||(t[e]=n.value),t};var o,i=function(e){e=["object"==typeof globalThis&&globalThis,e,"object"==typeof window&&window,"object"==typeof self&&self,"object"==typeof t&&t];for(var n=0;n<e.length;++n){var r=e[n];if(r&&r.Math==Math)return r}throw Error("Cannot find global object")}(this);function s(t,e){if(e){for(var n=i,o=t.split("."),s=0;s<o.length-1;s++){var a=o[s];a in n||(n[a]={}),n=n[a]}(a=e(s=n[o=o[o.length-1]]))!=s&&null!=a&&r(n,o,{configurable:!0,writable:!0,value:a})}}function a(t){return(t={next:t})[Symbol.iterator]=function(){return this},t}function c(t){var e="undefined"!=typeof Symbol&&Symbol.iterator&&t[Symbol.iterator];return e?e.call(t):{next:n(t)}}if(s("Symbol",(function(t){function e(t,e){this.o=t,r(this,"description",{configurable:!0,writable:!0,value:e})}if(t)return t;e.prototype.toString=function(){return this.o};var n=0;return function t(r){if(this instanceof t)throw new TypeError("Symbol is not a constructor");return new e("jscomp_symbol_"+(r||"")+"_"+n++,r)}})),s("Symbol.iterator",(function(t){if(t)return t;t=Symbol("Symbol.iterator");for(var e="Array Int8Array Uint8Array Uint8ClampedArray Int16Array Uint16Array Int32Array Uint32Array Float32Array Float64Array".split(" "),o=0;o<e.length;o++){var s=i[e[o]];"function"==typeof s&&"function"!=typeof s.prototype[t]&&r(s.prototype,t,{configurable:!0,writable:!0,value:function(){return a(n(this))}})}return t})),"function"==typeof Object.setPrototypeOf)o=Object.setPrototypeOf;else{var u;t:{var l={};try{l.__proto__={u:!0},u=l.u;break t}catch(t){}u=!1}o=u?function(t,e){if(t.__proto__=e,t.__proto__!==e)throw new TypeError(t+" is not extensible");return t}:null}var h=o;function p(){this.h=!1,this.f=null,this.m=void 0,this.b=1,this.l=this.v=0,this.g=null}function f(t){if(t.h)throw new TypeError("Generator is already running");t.h=!0}function d(t,e){return t.b=3,{value:e}}function v(t){this.a=new p,this.B=t}function y(t,e,n,r){try{var o=e.call(t.a.f,n);if(!(o instanceof Object))throw new TypeError("Iterator result "+o+" is not an object");if(!o.done)return t.a.h=!1,o;var i=o.value}catch(e){return t.a.f=null,t.a.j(e),m(t)}return t.a.f=null,r.call(t.a,i),m(t)}function m(t){for(;t.a.b;)try{var e=t.B(t.a);if(e)return t.a.h=!1,{value:e.value,done:!1}}catch(e){t.a.m=void 0,t.a.j(e)}if(t.a.h=!1,t.a.g){if(e=t.a.g,t.a.g=null,e.A)throw e.w;return{value:e.return,done:!0}}return{value:void 0,done:!0}}function g(t){this.next=function(e){return t.i(e)},this.throw=function(e){return t.j(e)},this.return=function(e){return function(t,e){f(t.a);var n=t.a.f;return n?y(t,"return"in n?n.return:function(t){return{value:t,done:!0}},e,t.a.return):(t.a.return(e),m(t))}(t,e)},this[Symbol.iterator]=function(){return this}}function b(t,e){var n=new g(new v(e));return h&&h(n,t.prototype),n}if(p.prototype.i=function(t){this.m=t},p.prototype.j=function(t){this.g={w:t,A:!0},this.b=this.v||this.l},p.prototype.return=function(t){this.g={return:t},this.b=this.l},v.prototype.i=function(t){return f(this.a),this.a.f?y(this,this.a.f.next,t,this.a.i):(this.a.i(t),m(this))},v.prototype.j=function(t){return f(this.a),this.a.f?y(this,this.a.f.throw,t,this.a.i):(this.a.j(t),m(this))},"undefined"!=typeof Blob&&("undefined"==typeof FormData||!FormData.prototype.keys)){var _=function(t,e){for(var n=0;n<t.length;n++)e(t[n])},w=function(t,e,n){return e instanceof Blob?[String(t),e,void 0!==n?n+"":"string"==typeof e.name?e.name:"blob"]:[String(t),String(e)]},E=function(t,e){if(t.length<e)throw new TypeError(e+" argument required, but only "+t.length+" present.")},S=function(t){var e=c(t);t=e.next().value;var n=e.next().value;return e=e.next().value,n instanceof Blob&&(n=new File([n],e,{type:n.type,lastModified:n.lastModified})),[t,n]},T="object"==typeof globalThis?globalThis:"object"==typeof window?window:"object"==typeof self?self:this,I=T.FormData,L=T.XMLHttpRequest&&T.XMLHttpRequest.prototype.send,O=T.Request&&T.fetch,x=T.navigator&&T.navigator.sendBeacon,A=T.Element&&T.Element.prototype,C=T.Symbol&&Symbol.toStringTag;C&&(Blob.prototype[C]||(Blob.prototype[C]="Blob"),"File"in T&&!File.prototype[C]&&(File.prototype[C]="File"));try{new File([],"")}catch(t){T.File=function(t,e,n){return t=new Blob(t,n),n=n&&void 0!==n.lastModified?new Date(n.lastModified):new Date,Object.defineProperties(t,{name:{value:e},lastModifiedDate:{value:n},lastModified:{value:+n},toString:{value:function(){return"[object File]"}}}),C&&Object.defineProperty(t,C,{value:"File"}),t}}var k=function(t){this.c=[];var e=this;t&&_(t.elements,(function(t){if(t.name&&!t.disabled&&"submit"!==t.type&&"button"!==t.type&&!t.matches("form fieldset[disabled] *"))if("file"===t.type){var n=t.files&&t.files.length?t.files:[new File([],"",{type:"application/octet-stream"})];_(n,(function(n){e.append(t.name,n)}))}else"select-multiple"===t.type||"select-one"===t.type?_(t.options,(function(n){!n.disabled&&n.selected&&e.append(t.name,n.value)})):"checkbox"===t.type||"radio"===t.type?t.checked&&e.append(t.name,t.value):(n="textarea"===t.type?t.value.replace(/\r\n/g,"\n").replace(/\n/g,"\r\n"):t.value,e.append(t.name,n))}))};if((e=k.prototype).append=function(t,e,n){E(arguments,2),this.c.push(w(t,e,n))},e.delete=function(t){E(arguments,1);var e=[];t=String(t),_(this.c,(function(n){n[0]!==t&&e.push(n)})),this.c=e},e.entries=function t(){var e,n=this;return b(t,(function(t){if(1==t.b&&(e=0),3!=t.b)return e<n.c.length?t=d(t,S(n.c[e])):(t.b=0,t=void 0),t;e++,t.b=2}))},e.forEach=function(t,e){E(arguments,1);for(var n=c(this),r=n.next();!r.done;r=n.next()){var o=c(r.value);r=o.next().value,o=o.next().value,t.call(e,o,r,this)}},e.get=function(t){E(arguments,1);var e=this.c;t=String(t);for(var n=0;n<e.length;n++)if(e[n][0]===t)return S(e[n])[1];return null},e.getAll=function(t){E(arguments,1);var e=[];return t=String(t),_(this.c,(function(n){n[0]===t&&e.push(S(n)[1])})),e},e.has=function(t){E(arguments,1),t=String(t);for(var e=0;e<this.c.length;e++)if(this.c[e][0]===t)return!0;return!1},e.keys=function t(){var e,n,r,o,i=this;return b(t,(function(t){if(1==t.b&&(e=c(i),n=e.next()),3!=t.b)return n.done?void(t.b=0):(r=n.value,o=c(r),d(t,o.next().value));n=e.next(),t.b=2}))},e.set=function(t,e,n){E(arguments,2),t=String(t);var r=[],o=w(t,e,n),i=!0;_(this.c,(function(e){e[0]===t?i&&(i=!r.push(o)):r.push(e)})),i&&r.push(o),this.c=r},e.values=function t(){var e,n,r,o,i=this;return b(t,(function(t){if(1==t.b&&(e=c(i),n=e.next()),3!=t.b)return n.done?void(t.b=0):(r=n.value,(o=c(r)).next(),d(t,o.next().value));n=e.next(),t.b=2}))},k.prototype._asNative=function(){for(var t=new I,e=c(this),n=e.next();!n.done;n=e.next()){var r=c(n.value);n=r.next().value,r=r.next().value,t.append(n,r)}return t},k.prototype._blob=function(){for(var t="----formdata-polyfill-"+Math.random(),e=[],n=c(this),r=n.next();!r.done;r=n.next()){var o=c(r.value);r=o.next().value,o=o.next().value,e.push("--"+t+"\r\n"),o instanceof Blob?e.push('Content-Disposition: form-data; name="'+r+'"; filename="'+o.name+'"\r\nContent-Type: '+(o.type||"application/octet-stream")+"\r\n\r\n",o,"\r\n"):e.push('Content-Disposition: form-data; name="'+r+'"\r\n\r\n'+o+"\r\n")}return e.push("--"+t+"--"),new Blob(e,{type:"multipart/form-data; boundary="+t})},k.prototype[Symbol.iterator]=function(){return this.entries()},k.prototype.toString=function(){return"[object FormData]"},A&&!A.matches&&(A.matches=A.matchesSelector||A.mozMatchesSelector||A.msMatchesSelector||A.oMatchesSelector||A.webkitMatchesSelector||function(t){for(var e=(t=(this.document||this.ownerDocument).querySelectorAll(t)).length;0<=--e&&t.item(e)!==this;);return-1<e}),C&&(k.prototype[C]="FormData"),L){var P=T.XMLHttpRequest.prototype.setRequestHeader;T.XMLHttpRequest.prototype.setRequestHeader=function(t,e){P.call(this,t,e),"content-type"===t.toLowerCase()&&(this.s=!0)},T.XMLHttpRequest.prototype.send=function(t){t instanceof k?(t=t._blob(),this.s||this.setRequestHeader("Content-Type",t.type),L.call(this,t)):L.call(this,t)}}O&&(T.fetch=function(t,e){return e&&e.body&&e.body instanceof k&&(e.body=e.body._blob()),O.call(this,t,e)}),x&&(T.navigator.sendBeacon=function(t,e){return e instanceof k&&(e=e._asNative()),x.call(this,t,e)}),T.FormData=k}}()}).call(this,n(0))},function(t,e,n){(function(t){!function(t){var e=function(){try{return!!Symbol.iterator}catch(t){return!1}}(),n=function(t){var n={next:function(){var e=t.shift();return{done:void 0===e,value:e}}};return e&&(n[Symbol.iterator]=function(){return n}),n},r=function(t){return encodeURIComponent(t).replace(/%20/g,"+")},o=function(t){return decodeURIComponent(String(t).replace(/\+/g," "))};(function(){try{var e=t.URLSearchParams;return"a=1"===new e("?a=1").toString()&&"function"==typeof e.prototype.set&&"function"==typeof e.prototype.entries}catch(t){return!1}})()||function(){var o=function(t){Object.defineProperty(this,"_entries",{writable:!0,value:{}});var e=typeof t;if("undefined"===e);else if("string"===e)""!==t&&this._fromString(t);else if(t instanceof o){var n=this;t.forEach((function(t,e){n.append(e,t)}))}else{if(null===t||"object"!==e)throw new TypeError("Unsupported input's type for URLSearchParams");if("[object Array]"===Object.prototype.toString.call(t))for(var r=0;r<t.length;r++){var i=t[r];if("[object Array]"!==Object.prototype.toString.call(i)&&2===i.length)throw new TypeError("Expected [string, any] as entry at index "+r+" of URLSearchParams's input");this.append(i[0],i[1])}else for(var s in t)t.hasOwnProperty(s)&&this.append(s,t[s])}},i=o.prototype;i.append=function(t,e){t in this._entries?this._entries[t].push(String(e)):this._entries[t]=[String(e)]},i.delete=function(t){delete this._entries[t]},i.get=function(t){return t in this._entries?this._entries[t][0]:null},i.getAll=function(t){return t in this._entries?this._entries[t].slice(0):[]},i.has=function(t){return t in this._entries},i.set=function(t,e){this._entries[t]=[String(e)]},i.forEach=function(t,e){var n;for(var r in this._entries)if(this._entries.hasOwnProperty(r)){n=this._entries[r];for(var o=0;o<n.length;o++)t.call(e,n[o],r,this)}},i.keys=function(){var t=[];return this.forEach((function(e,n){t.push(n)})),n(t)},i.values=function(){var t=[];return this.forEach((function(e){t.push(e)})),n(t)},i.entries=function(){var t=[];return this.forEach((function(e,n){t.push([n,e])})),n(t)},e&&(i[Symbol.iterator]=i.entries),i.toString=function(){var t=[];return this.forEach((function(e,n){t.push(r(n)+"="+r(e))})),t.join("&")},t.URLSearchParams=o}();var i=t.URLSearchParams.prototype;"function"!=typeof i.sort&&(i.sort=function(){var t=this,e=[];this.forEach((function(n,r){e.push([r,n]),t._entries||t.delete(r)})),e.sort((function(t,e){return t[0]<e[0]?-1:t[0]>e[0]?1:0})),t._entries&&(t._entries={});for(var n=0;n<e.length;n++)this.append(e[n][0],e[n][1])}),"function"!=typeof i._fromString&&Object.defineProperty(i,"_fromString",{enumerable:!1,configurable:!1,writable:!1,value:function(t){if(this._entries)this._entries={};else{var e=[];this.forEach((function(t,n){e.push(n)}));for(var n=0;n<e.length;n++)this.delete(e[n])}var r,i=(t=t.replace(/^\?/,"")).split("&");for(n=0;n<i.length;n++)r=i[n].split("="),this.append(o(r[0]),r.length>1?o(r[1]):"")}})}(void 0!==t?t:"undefined"!=typeof window?window:"undefined"!=typeof self?self:this),function(t){if(function(){try{var e=new t.URL("b","http://a");return e.pathname="c d","http://a/c%20d"===e.href&&e.searchParams}catch(t){return!1}}()||function(){var e=t.URL,n=function(e,n){"string"!=typeof e&&(e=String(e)),n&&"string"!=typeof n&&(n=String(n));var r,o=document;if(n&&(void 0===t.location||n!==t.location.href)){n=n.toLowerCase(),(r=(o=document.implementation.createHTMLDocument("")).createElement("base")).href=n,o.head.appendChild(r);try{if(0!==r.href.indexOf(n))throw new Error(r.href)}catch(t){throw new Error("URL unable to set base "+n+" due to "+t)}}var i=o.createElement("a");i.href=e,r&&(o.body.appendChild(i),i.href=i.href);var s=o.createElement("input");if(s.type="url",s.value=e,":"===i.protocol||!/:/.test(i.href)||!s.checkValidity()&&!n)throw new TypeError("Invalid URL");Object.defineProperty(this,"_anchorElement",{value:i});var a=new t.URLSearchParams(this.search),c=!0,u=!0,l=this;["append","delete","set"].forEach((function(t){var e=a[t];a[t]=function(){e.apply(a,arguments),c&&(u=!1,l.search=a.toString(),u=!0)}})),Object.defineProperty(this,"searchParams",{value:a,enumerable:!0});var h=void 0;Object.defineProperty(this,"_updateSearchParams",{enumerable:!1,configurable:!1,writable:!1,value:function(){this.search!==h&&(h=this.search,u&&(c=!1,this.searchParams._fromString(this.search),c=!0))}})},r=n.prototype;["hash","host","hostname","port","protocol"].forEach((function(t){!function(t){Object.defineProperty(r,t,{get:function(){return this._anchorElement[t]},set:function(e){this._anchorElement[t]=e},enumerable:!0})}(t)})),Object.defineProperty(r,"search",{get:function(){return this._anchorElement.search},set:function(t){this._anchorElement.search=t,this._updateSearchParams()},enumerable:!0}),Object.defineProperties(r,{toString:{get:function(){var t=this;return function(){return t.href}}},href:{get:function(){return this._anchorElement.href.replace(/\?$/,"")},set:function(t){this._anchorElement.href=t,this._updateSearchParams()},enumerable:!0},pathname:{get:function(){return this._anchorElement.pathname.replace(/(^\/?)/,"/")},set:function(t){this._anchorElement.pathname=t},enumerable:!0},origin:{get:function(){var t={"http:":80,"https:":443,"ftp:":21}[this._anchorElement.protocol],e=this._anchorElement.port!=t&&""!==this._anchorElement.port;return this._anchorElement.protocol+"//"+this._anchorElement.hostname+(e?":"+this._anchorElement.port:"")},enumerable:!0},password:{get:function(){return""},set:function(t){},enumerable:!0},username:{get:function(){return""},set:function(t){},enumerable:!0}}),n.createObjectURL=function(t){return e.createObjectURL.apply(e,arguments)},n.revokeObjectURL=function(t){return e.revokeObjectURL.apply(e,arguments)},t.URL=n}(),void 0!==t.location&&!("origin"in t.location)){var e=function(){return t.location.protocol+"//"+t.location.hostname+(t.location.port?":"+t.location.port:"")};try{Object.defineProperty(t.location,"origin",{get:e,enumerable:!0})}catch(n){setInterval((function(){t.location.origin=e()}),100)}}}(void 0!==t?t:"undefined"!=typeof window?window:"undefined"!=typeof self?self:this)}).call(this,n(0))},function(t,e){var n,r,o;n=document.querySelector(".project_detail__description"),r=document.querySelector(".description__more"),o=document.querySelector(".description__less"),r&&r.addEventListener("click",(function(t){n.classList.add("project_detail__description--more")})),o&&o.addEventListener("click",(function(t){n.classList.remove("project_detail__description--more")}))},function(t,e){},function(t,e){for(var n=document.querySelectorAll("[name=mobile_profile_nav]"),r=function(t){n[t].addEventListener("change",(function(e){location.href=n[t].value}))},o=0;o<n.length;o++)r(o)},function(t,e,n){},,,,,function(t,e,n){"use strict";n.r(e);n(6),n(7),n(8),n(9),n(10),n(11),n(15),n(16),n(17),n(18),n(19);function r(){var t,e=this.parentNode,n=arguments.length;if(e)for(n||e.removeChild(this);n--;)"object"!=typeof(t=arguments[n])?t=this.ownerDocument.createTextNode(t):t.parentNode&&t.parentNode.removeChild(t),n?e.insertBefore(t,this.nextSibling):e.replaceChild(t,this)}Element.prototype.replaceWith||(Element.prototype.replaceWith=r),CharacterData.prototype.replaceWith||(CharacterData.prototype.replaceWith=r),DocumentType.prototype.replaceWith||(DocumentType.prototype.replaceWith=r),Array.from=Array.from||function(t,e,n){var r=[],o=[],i=0;for(window.Set&&t instanceof Set&&(t.forEach((function(t){o.push(t)})),t=o);i<t.length;i++)r[i]=e?e.call(n,t[i],i,t):t[i];return r},String.prototype.startsWith||Object.defineProperty(String.prototype,"startsWith",{value:function(t,e){var n=e>0?0|e:0;return this.substring(n,n+t.length)===t}});var o=function(){function t(t,e){this.blacklist=[],this.setScrollContainer(t),e?this.setVisibleRegion(e):this.setVisibleRegion({top:0,bottom:0})}return t.prototype.exclude=function(){for(var t,e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];(t=this.blacklist).push.apply(t,e)},t.prototype.scrollTo=function(t){if(!this.shouldIgnore(t)){var e=t.getBoundingClientRect();(e.top<this.visibleRegion.top||e.bottom>window.innerHeight-this.visibleRegion.bottom)&&this.scrollContainer.scrollTo({top:e.top+window.pageYOffset-this.visibleRegion.top})}},t.prototype.shouldIgnore=function(t){for(var e=0,n=this.blacklist;e<n.length;e++){var r=n[e];if(t.closest(r))return!0}return!1},t.prototype.setScrollContainer=function(t){this.scrollContainer=t},t.prototype.setVisibleRegion=function(t){this.visibleRegion=t},t}(),i={update:null,begin:null,loopBegin:null,changeBegin:null,change:null,changeComplete:null,loopComplete:null,complete:null,loop:1,direction:"normal",autoplay:!0,timelineOffset:0},s={duration:1e3,delay:0,endDelay:0,easing:"easeOutElastic(1, .5)",round:0},a=["translateX","translateY","translateZ","rotate","rotateX","rotateY","rotateZ","scale","scaleX","scaleY","scaleZ","skew","skewX","skewY","perspective","matrix","matrix3d"],c={CSS:{},springs:{}};function u(t,e,n){return Math.min(Math.max(t,e),n)}function l(t,e){return t.indexOf(e)>-1}function h(t,e){return t.apply(null,e)}var p={arr:function(t){return Array.isArray(t)},obj:function(t){return l(Object.prototype.toString.call(t),"Object")},pth:function(t){return p.obj(t)&&t.hasOwnProperty("totalLength")},svg:function(t){return t instanceof SVGElement},inp:function(t){return t instanceof HTMLInputElement},dom:function(t){return t.nodeType||p.svg(t)},str:function(t){return"string"==typeof t},fnc:function(t){return"function"==typeof t},und:function(t){return void 0===t},nil:function(t){return p.und(t)||null===t},hex:function(t){return/(^#[0-9A-F]{6}$)|(^#[0-9A-F]{3}$)/i.test(t)},rgb:function(t){return/^rgb/.test(t)},hsl:function(t){return/^hsl/.test(t)},col:function(t){return p.hex(t)||p.rgb(t)||p.hsl(t)},key:function(t){return!i.hasOwnProperty(t)&&!s.hasOwnProperty(t)&&"targets"!==t&&"keyframes"!==t}};function f(t){var e=/\(([^)]+)\)/.exec(t);return e?e[1].split(",").map((function(t){return parseFloat(t)})):[]}function d(t,e){var n=f(t),r=u(p.und(n[0])?1:n[0],.1,100),o=u(p.und(n[1])?100:n[1],.1,100),i=u(p.und(n[2])?10:n[2],.1,100),s=u(p.und(n[3])?0:n[3],.1,100),a=Math.sqrt(o/r),l=i/(2*Math.sqrt(o*r)),h=l<1?a*Math.sqrt(1-l*l):0,d=l<1?(l*a-s)/h:-s+a;function v(t){var n=e?e*t/1e3:t;return n=l<1?Math.exp(-n*l*a)*(1*Math.cos(h*n)+d*Math.sin(h*n)):(1+d*n)*Math.exp(-n*a),0===t||1===t?t:1-n}return e?v:function(){var e=c.springs[t];if(e)return e;for(var n=0,r=0;;)if(1===v(n+=1/6)){if(++r>=16)break}else r=0;var o=n*(1/6)*1e3;return c.springs[t]=o,o}}function v(t){return void 0===t&&(t=10),function(e){return Math.ceil(u(e,1e-6,1)*t)*(1/t)}}var y,m,g=function(){function t(t,e){return 1-3*e+3*t}function e(t,e){return 3*e-6*t}function n(t){return 3*t}function r(r,o,i){return((t(o,i)*r+e(o,i))*r+n(o))*r}function o(r,o,i){return 3*t(o,i)*r*r+2*e(o,i)*r+n(o)}return function(t,e,n,i){if(0<=t&&t<=1&&0<=n&&n<=1){var s=new Float32Array(11);if(t!==e||n!==i)for(var a=0;a<11;++a)s[a]=r(.1*a,t,n);return function(o){return t===e&&n===i||0===o||1===o?o:r(c(o),e,i)}}function c(e){for(var i=0,a=1;10!==a&&s[a]<=e;++a)i+=.1;--a;var c=i+.1*((e-s[a])/(s[a+1]-s[a])),u=o(c,t,n);return u>=.001?function(t,e,n,i){for(var s=0;s<4;++s){var a=o(e,n,i);if(0===a)return e;e-=(r(e,n,i)-t)/a}return e}(e,c,t,n):0===u?c:function(t,e,n,o,i){var s,a,c=0;do{(s=r(a=e+(n-e)/2,o,i)-t)>0?n=a:e=a}while(Math.abs(s)>1e-7&&++c<10);return a}(e,i,i+.1,t,n)}}}(),b=(y={linear:function(){return function(t){return t}}},m={Sine:function(){return function(t){return 1-Math.cos(t*Math.PI/2)}},Circ:function(){return function(t){return 1-Math.sqrt(1-t*t)}},Back:function(){return function(t){return t*t*(3*t-2)}},Bounce:function(){return function(t){for(var e,n=4;t<((e=Math.pow(2,--n))-1)/11;);return 1/Math.pow(4,3-n)-7.5625*Math.pow((3*e-2)/22-t,2)}},Elastic:function(t,e){void 0===t&&(t=1),void 0===e&&(e=.5);var n=u(t,1,10),r=u(e,.1,2);return function(t){return 0===t||1===t?t:-n*Math.pow(2,10*(t-1))*Math.sin((t-1-r/(2*Math.PI)*Math.asin(1/n))*(2*Math.PI)/r)}}},["Quad","Cubic","Quart","Quint","Expo"].forEach((function(t,e){m[t]=function(){return function(t){return Math.pow(t,e+2)}}})),Object.keys(m).forEach((function(t){var e=m[t];y["easeIn"+t]=e,y["easeOut"+t]=function(t,n){return function(r){return 1-e(t,n)(1-r)}},y["easeInOut"+t]=function(t,n){return function(r){return r<.5?e(t,n)(2*r)/2:1-e(t,n)(-2*r+2)/2}},y["easeOutIn"+t]=function(t,n){return function(r){return r<.5?(1-e(t,n)(1-2*r))/2:(e(t,n)(2*r-1)+1)/2}}})),y);function _(t,e){if(p.fnc(t))return t;var n=t.split("(")[0],r=b[n],o=f(t);switch(n){case"spring":return d(t,e);case"cubicBezier":return h(g,o);case"steps":return h(v,o);default:return h(r,o)}}function w(t){try{return document.querySelectorAll(t)}catch(t){return}}function E(t,e){for(var n=t.length,r=arguments.length>=2?arguments[1]:void 0,o=[],i=0;i<n;i++)if(i in t){var s=t[i];e.call(r,s,i,t)&&o.push(s)}return o}function S(t){return t.reduce((function(t,e){return t.concat(p.arr(e)?S(e):e)}),[])}function T(t){return p.arr(t)?t:(p.str(t)&&(t=w(t)||t),t instanceof NodeList||t instanceof HTMLCollection?[].slice.call(t):[t])}function I(t,e){return t.some((function(t){return t===e}))}function L(t){var e={};for(var n in t)e[n]=t[n];return e}function O(t,e){var n=L(t);for(var r in t)n[r]=e.hasOwnProperty(r)?e[r]:t[r];return n}function x(t,e){var n=L(t);for(var r in e)n[r]=p.und(t[r])?e[r]:t[r];return n}function A(t){return p.rgb(t)?(n=/rgb\((\d+,\s*[\d]+,\s*[\d]+)\)/g.exec(e=t))?"rgba("+n[1]+",1)":e:p.hex(t)?function(t){var e=t.replace(/^#?([a-f\d])([a-f\d])([a-f\d])$/i,(function(t,e,n,r){return e+e+n+n+r+r})),n=/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.exec(e);return"rgba("+parseInt(n[1],16)+","+parseInt(n[2],16)+","+parseInt(n[3],16)+",1)"}(t):p.hsl(t)?function(t){var e,n,r,o=/hsl\((\d+),\s*([\d.]+)%,\s*([\d.]+)%\)/g.exec(t)||/hsla\((\d+),\s*([\d.]+)%,\s*([\d.]+)%,\s*([\d.]+)\)/g.exec(t),i=parseInt(o[1],10)/360,s=parseInt(o[2],10)/100,a=parseInt(o[3],10)/100,c=o[4]||1;function u(t,e,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?t+6*(e-t)*n:n<.5?e:n<2/3?t+(e-t)*(2/3-n)*6:t}if(0==s)e=n=r=a;else{var l=a<.5?a*(1+s):a+s-a*s,h=2*a-l;e=u(h,l,i+1/3),n=u(h,l,i),r=u(h,l,i-1/3)}return"rgba("+255*e+","+255*n+","+255*r+","+c+")"}(t):void 0;var e,n}function C(t){var e=/[+-]?\d*\.?\d+(?:\.\d+)?(?:[eE][+-]?\d+)?(%|px|pt|em|rem|in|cm|mm|ex|ch|pc|vw|vh|vmin|vmax|deg|rad|turn)?$/.exec(t);if(e)return e[1]}function k(t,e){return p.fnc(t)?t(e.target,e.id,e.total):t}function P(t,e){return t.getAttribute(e)}function j(t,e,n){if(I([n,"deg","rad","turn"],C(e)))return e;var r=c.CSS[e+n];if(!p.und(r))return r;var o=document.createElement(t.tagName),i=t.parentNode&&t.parentNode!==document?t.parentNode:document.body;i.appendChild(o),o.style.position="absolute",o.style.width=100+n;var s=100/o.offsetWidth;i.removeChild(o);var a=s*parseFloat(e);return c.CSS[e+n]=a,a}function F(t,e,n){if(e in t.style){var r=e.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase(),o=t.style[e]||getComputedStyle(t).getPropertyValue(r)||"0";return n?j(t,o,n):o}}function D(t,e){return p.dom(t)&&!p.inp(t)&&(!p.nil(P(t,e))||p.svg(t)&&t[e])?"attribute":p.dom(t)&&I(a,e)?"transform":p.dom(t)&&"transform"!==e&&F(t,e)?"css":null!=t[e]?"object":void 0}function M(t){if(p.dom(t)){for(var e,n=t.style.transform||"",r=/(\w+)\(([^)]*)\)/g,o=new Map;e=r.exec(n);)o.set(e[1],e[2]);return o}}function N(t,e,n,r){var o=l(e,"scale")?1:0+function(t){return l(t,"translate")||"perspective"===t?"px":l(t,"rotate")||l(t,"skew")?"deg":void 0}(e),i=M(t).get(e)||o;return n&&(n.transforms.list.set(e,i),n.transforms.last=e),r?j(t,i,r):i}function q(t,e,n,r){switch(D(t,e)){case"transform":return N(t,e,r,n);case"css":return F(t,e,n);case"attribute":return P(t,e);default:return t[e]||0}}function R(t,e){var n=/^(\*=|\+=|-=)/.exec(t);if(!n)return t;var r=C(t)||0,o=parseFloat(e),i=parseFloat(t.replace(n[0],""));switch(n[0][0]){case"+":return o+i+r;case"-":return o-i+r;case"*":return o*i+r}}function B(t,e){if(p.col(t))return A(t);if(/\s/g.test(t))return t;var n=C(t),r=n?t.substr(0,t.length-n.length):t;return e?r+e:r}function H(t,e){return Math.sqrt(Math.pow(e.x-t.x,2)+Math.pow(e.y-t.y,2))}function U(t){for(var e,n=t.points,r=0,o=0;o<n.numberOfItems;o++){var i=n.getItem(o);o>0&&(r+=H(e,i)),e=i}return r}function W(t){if(t.getTotalLength)return t.getTotalLength();switch(t.tagName.toLowerCase()){case"circle":return function(t){return 2*Math.PI*P(t,"r")}(t);case"rect":return function(t){return 2*P(t,"width")+2*P(t,"height")}(t);case"line":return function(t){return H({x:P(t,"x1"),y:P(t,"y1")},{x:P(t,"x2"),y:P(t,"y2")})}(t);case"polyline":return U(t);case"polygon":return function(t){var e=t.points;return U(t)+H(e.getItem(e.numberOfItems-1),e.getItem(0))}(t)}}function X(t,e){var n=e||{},r=n.el||function(t){for(var e=t.parentNode;p.svg(e)&&p.svg(e.parentNode);)e=e.parentNode;return e}(t),o=r.getBoundingClientRect(),i=P(r,"viewBox"),s=o.width,a=o.height,c=n.viewBox||(i?i.split(" "):[0,0,s,a]);return{el:r,viewBox:c,x:c[0]/1,y:c[1]/1,w:s,h:a,vW:c[2],vH:c[3]}}function z(t,e,n){function r(n){void 0===n&&(n=0);var r=e+n>=1?e+n:0;return t.el.getPointAtLength(r)}var o=X(t.el,t.svg),i=r(),s=r(-1),a=r(1),c=n?1:o.w/o.vW,u=n?1:o.h/o.vH;switch(t.property){case"x":return(i.x-o.x)*c;case"y":return(i.y-o.y)*u;case"angle":return 180*Math.atan2(a.y-s.y,a.x-s.x)/Math.PI}}function V(t,e){var n=/[+-]?\d*\.?\d+(?:\.\d+)?(?:[eE][+-]?\d+)?/g,r=B(p.pth(t)?t.totalLength:t,e)+"";return{original:r,numbers:r.match(n)?r.match(n).map(Number):[0],strings:p.str(t)||e?r.split(n):[]}}function Y(t){return E(t?S(p.arr(t)?t.map(T):T(t)):[],(function(t,e,n){return n.indexOf(t)===e}))}function G(t){var e=Y(t);return e.map((function(t,n){return{target:t,id:n,total:e.length,transforms:{list:M(t)}}}))}function K(t,e){var n=L(e);if(/^spring/.test(n.easing)&&(n.duration=d(n.easing)),p.arr(t)){var r=t.length;2===r&&!p.obj(t[0])?t={value:t}:p.fnc(e.duration)||(n.duration=e.duration/r)}var o=p.arr(t)?t:[t];return o.map((function(t,n){var r=p.obj(t)&&!p.pth(t)?t:{value:t};return p.und(r.delay)&&(r.delay=n?0:e.delay),p.und(r.endDelay)&&(r.endDelay=n===o.length-1?e.endDelay:0),r})).map((function(t){return x(t,n)}))}function Q(t,e){var n=[],r=e.keyframes;for(var o in r&&(e=x(function(t){for(var e=E(S(t.map((function(t){return Object.keys(t)}))),(function(t){return p.key(t)})).reduce((function(t,e){return t.indexOf(e)<0&&t.push(e),t}),[]),n={},r=function(r){var o=e[r];n[o]=t.map((function(t){var e={};for(var n in t)p.key(n)?n==o&&(e.value=t[n]):e[n]=t[n];return e}))},o=0;o<e.length;o++)r(o);return n}(r),e)),e)p.key(o)&&n.push({name:o,tweens:K(e[o],t)});return n}function $(t,e){var n;return t.tweens.map((function(r){var o=function(t,e){var n={};for(var r in t){var o=k(t[r],e);p.arr(o)&&1===(o=o.map((function(t){return k(t,e)}))).length&&(o=o[0]),n[r]=o}return n.duration=parseFloat(n.duration),n.delay=parseFloat(n.delay),n}(r,e),i=o.value,s=p.arr(i)?i[1]:i,a=C(s),c=q(e.target,t.name,a,e),u=n?n.to.original:c,l=p.arr(i)?i[0]:u,h=C(l)||C(c),f=a||h;return p.und(s)&&(s=u),o.from=V(l,f),o.to=V(R(s,l),f),o.start=n?n.end:0,o.end=o.start+o.delay+o.duration+o.endDelay,o.easing=_(o.easing,o.duration),o.isPath=p.pth(i),o.isPathTargetInsideSVG=o.isPath&&p.svg(e.target),o.isColor=p.col(o.from.original),o.isColor&&(o.round=1),n=o,o}))}var J={css:function(t,e,n){return t.style[e]=n},attribute:function(t,e,n){return t.setAttribute(e,n)},object:function(t,e,n){return t[e]=n},transform:function(t,e,n,r,o){if(r.list.set(e,n),e===r.last||o){var i="";r.list.forEach((function(t,e){i+=e+"("+t+") "})),t.style.transform=i}}};function Z(t,e){G(t).forEach((function(t){for(var n in e){var r=k(e[n],t),o=t.target,i=C(r),s=q(o,n,i,t),a=R(B(r,i||C(s)),s),c=D(o,n);J[c](o,n,a,t.transforms,!0)}}))}function tt(t,e){return E(S(t.map((function(t){return e.map((function(e){return function(t,e){var n=D(t.target,e.name);if(n){var r=$(e,t),o=r[r.length-1];return{type:n,property:e.name,animatable:t,tweens:r,duration:o.end,delay:r[0].delay,endDelay:o.endDelay}}}(t,e)}))}))),(function(t){return!p.und(t)}))}function et(t,e){var n=t.length,r=function(t){return t.timelineOffset?t.timelineOffset:0},o={};return o.duration=n?Math.max.apply(Math,t.map((function(t){return r(t)+t.duration}))):e.duration,o.delay=n?Math.min.apply(Math,t.map((function(t){return r(t)+t.delay}))):e.delay,o.endDelay=n?o.duration-Math.max.apply(Math,t.map((function(t){return r(t)+t.duration-t.endDelay}))):e.endDelay,o}var nt=0;var rt=[],ot=function(){var t;function e(n){for(var r=rt.length,o=0;o<r;){var i=rt[o];i.paused?(rt.splice(o,1),r--):(i.tick(n),o++)}t=o>0?requestAnimationFrame(e):void 0}return"undefined"!=typeof document&&document.addEventListener("visibilitychange",(function(){st.suspendWhenDocumentHidden&&(it()?t=cancelAnimationFrame(t):(rt.forEach((function(t){return t._onDocumentVisibility()})),ot()))})),function(){t||it()&&st.suspendWhenDocumentHidden||!(rt.length>0)||(t=requestAnimationFrame(e))}}();function it(){return!!document&&document.hidden}function st(t){void 0===t&&(t={});var e,n=0,r=0,o=0,a=0,c=null;function l(t){var e=window.Promise&&new Promise((function(t){return c=t}));return t.finished=e,e}var h=function(t){var e=O(i,t),n=O(s,t),r=Q(n,t),o=G(t.targets),a=tt(o,r),c=et(a,n),u=nt;return nt++,x(e,{id:u,children:[],animatables:o,animations:a,duration:c.duration,delay:c.delay,endDelay:c.endDelay})}(t);l(h);function p(){var t=h.direction;"alternate"!==t&&(h.direction="normal"!==t?"normal":"reverse"),h.reversed=!h.reversed,e.forEach((function(t){return t.reversed=h.reversed}))}function f(t){return h.reversed?h.duration-t:t}function d(){n=0,r=f(h.currentTime)*(1/st.speed)}function v(t,e){e&&e.seek(t-e.timelineOffset)}function y(t){for(var e=0,n=h.animations,r=n.length;e<r;){var o=n[e],i=o.animatable,s=o.tweens,a=s.length-1,c=s[a];a&&(c=E(s,(function(e){return t<e.end}))[0]||c);for(var l=u(t-c.start-c.delay,0,c.duration)/c.duration,p=isNaN(l)?1:c.easing(l),f=c.to.strings,d=c.round,v=[],y=c.to.numbers.length,m=void 0,g=0;g<y;g++){var b=void 0,_=c.to.numbers[g],w=c.from.numbers[g]||0;b=c.isPath?z(c.value,p*_,c.isPathTargetInsideSVG):w+p*(_-w),d&&(c.isColor&&g>2||(b=Math.round(b*d)/d)),v.push(b)}var S=f.length;if(S){m=f[0];for(var T=0;T<S;T++){f[T];var I=f[T+1],L=v[T];isNaN(L)||(m+=I?L+I:L+" ")}}else m=v[0];J[o.type](i.target,o.property,m,i.transforms),o.currentValue=m,e++}}function m(t){h[t]&&!h.passThrough&&h[t](h)}function g(t){var i=h.duration,s=h.delay,d=i-h.endDelay,g=f(t);h.progress=u(g/i*100,0,100),h.reversePlayback=g<h.currentTime,e&&function(t){if(h.reversePlayback)for(var n=a;n--;)v(t,e[n]);else for(var r=0;r<a;r++)v(t,e[r])}(g),!h.began&&h.currentTime>0&&(h.began=!0,m("begin")),!h.loopBegan&&h.currentTime>0&&(h.loopBegan=!0,m("loopBegin")),g<=s&&0!==h.currentTime&&y(0),(g>=d&&h.currentTime!==i||!i)&&y(i),g>s&&g<d?(h.changeBegan||(h.changeBegan=!0,h.changeCompleted=!1,m("changeBegin")),m("change"),y(g)):h.changeBegan&&(h.changeCompleted=!0,h.changeBegan=!1,m("changeComplete")),h.currentTime=u(g,0,i),h.began&&m("update"),t>=i&&(r=0,h.remaining&&!0!==h.remaining&&h.remaining--,h.remaining?(n=o,m("loopComplete"),h.loopBegan=!1,"alternate"===h.direction&&p()):(h.paused=!0,h.completed||(h.completed=!0,m("loopComplete"),m("complete"),!h.passThrough&&"Promise"in window&&(c(),l(h)))))}return h.reset=function(){var t=h.direction;h.passThrough=!1,h.currentTime=0,h.progress=0,h.paused=!0,h.began=!1,h.loopBegan=!1,h.changeBegan=!1,h.completed=!1,h.changeCompleted=!1,h.reversePlayback=!1,h.reversed="reverse"===t,h.remaining=h.loop,e=h.children;for(var n=a=e.length;n--;)h.children[n].reset();(h.reversed&&!0!==h.loop||"alternate"===t&&1===h.loop)&&h.remaining++,y(h.reversed?h.duration:0)},h._onDocumentVisibility=d,h.set=function(t,e){return Z(t,e),h},h.tick=function(t){o=t,n||(n=o),g((o+(r-n))*st.speed)},h.seek=function(t){g(f(t))},h.pause=function(){h.paused=!0,d()},h.play=function(){h.paused&&(h.completed&&h.reset(),h.paused=!1,rt.push(h),d(),ot())},h.reverse=function(){p(),h.completed=!h.reversed,d()},h.restart=function(){h.reset(),h.play()},h.remove=function(t){ct(Y(t),h)},h.reset(),h.autoplay&&h.play(),h}function at(t,e){for(var n=e.length;n--;)I(t,e[n].animatable.target)&&e.splice(n,1)}function ct(t,e){var n=e.animations,r=e.children;at(t,n);for(var o=r.length;o--;){var i=r[o],s=i.animations;at(t,s),s.length||i.children.length||r.splice(o,1)}n.length||r.length||e.pause()}st.version="3.2.1",st.speed=1,st.suspendWhenDocumentHidden=!0,st.running=rt,st.remove=function(t){for(var e=Y(t),n=rt.length;n--;){ct(e,rt[n])}},st.get=q,st.set=Z,st.convertPx=j,st.path=function(t,e){var n=p.str(t)?w(t)[0]:t,r=e||100;return function(t){return{property:t,el:n,svg:X(n),totalLength:W(n)*(r/100)}}},st.setDashoffset=function(t){var e=W(t);return t.setAttribute("stroke-dasharray",e),e},st.stagger=function(t,e){void 0===e&&(e={});var n=e.direction||"normal",r=e.easing?_(e.easing):null,o=e.grid,i=e.axis,s=e.from||0,a="first"===s,c="center"===s,u="last"===s,l=p.arr(t),h=l?parseFloat(t[0]):parseFloat(t),f=l?parseFloat(t[1]):0,d=C(l?t[1]:t)||0,v=e.start||0+(l?h:0),y=[],m=0;return function(t,e,p){if(a&&(s=0),c&&(s=(p-1)/2),u&&(s=p-1),!y.length){for(var g=0;g<p;g++){if(o){var b=c?(o[0]-1)/2:s%o[0],_=c?(o[1]-1)/2:Math.floor(s/o[0]),w=b-g%o[0],E=_-Math.floor(g/o[0]),S=Math.sqrt(w*w+E*E);"x"===i&&(S=-w),"y"===i&&(S=-E),y.push(S)}else y.push(Math.abs(s-g));m=Math.max.apply(Math,y)}r&&(y=y.map((function(t){return r(t/m)*m}))),"reverse"===n&&(y=y.map((function(t){return i?t<0?-1*t:-t:Math.abs(m-t)})))}return v+(l?(f-h)/m:h)*(Math.round(100*y[e])/100)+d}},st.timeline=function(t){void 0===t&&(t={});var e=st(t);return e.duration=0,e.add=function(n,r){var o=rt.indexOf(e),i=e.children;function a(t){t.passThrough=!0}o>-1&&rt.splice(o,1);for(var c=0;c<i.length;c++)a(i[c]);var u=x(n,O(s,t));u.targets=u.targets||t.targets;var l=e.duration;u.autoplay=!1,u.direction=e.direction,u.timelineOffset=p.und(r)?l:R(r,l),a(e),e.seek(u.timelineOffset);var h=st(u);a(h),i.push(h);var f=et(i,t);return e.delay=f.delay,e.endDelay=f.endDelay,e.duration=f.duration,e.seek(0),e.reset(),e.autoplay&&e.play(),e},e},st.easing=_,st.penner=b,st.random=function(t,e){return Math.floor(Math.random()*(e-t+1))+t};var ut=st,lt=function(t){return t*(2-t)},ht=function(t){return--t*t*t+1},pt=function(){function t(t){void 0===t&&(t=null),this.lastId=-1,this.changeListeners=new Map,this._currentValue=t}return Object.defineProperty(t.prototype,"currentValue",{get:function(){return this._currentValue},enumerable:!1,configurable:!0}),t.prototype.subscribe=function(t,e){var n=this;void 0===e&&(e=!1);var r=++this.lastId,o={unsubscribe:function(){n.changeListeners.delete(r)}};return this.changeListeners.set(r,t),e||t(this._currentValue),o},t.prototype.next=function(t){var e=this;this._currentValue=t,this.changeListeners.forEach((function(t){t(e.currentValue)}))},t}(),ft=function(){function t(){this.mediaQuery=window.matchMedia("(prefers-reduced-motion: reduce)")}return t.getInstance=function(){return this.instance||(this.instance=new t),this.instance},t.prototype.shouldNotAnimate=function(){return this.mediaQuery&&this.mediaQuery.matches},t}(),dt=function(){return(dt=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var o in e=arguments[n])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t}).apply(this,arguments)},vt={disableAnimation:!1,padding:10},yt=new(function(){function t(){var t=this;this.isVisible=!1,this.alreadyMovedToElement=!1,this.onStartKeyboardNavigation=new pt,this.onFocusChange=new pt({previousTarget:null,target:null}),this.onEndKeyboardNavigation=new pt,this.createFocusIndicatorLayer(),this.createFocusIndicator(),this.focusScroller=new o(window,{top:200,bottom:100}),this.focusScroller.exclude(".header",".main-nav",".language-switch",".skip-links"),window.addEventListener("keyup",(function(e){"Tab"===e.code&&t.onTab()})),document.addEventListener("focusin",(function(){t.updateFocusedTarget(document.activeElement)})),window.addEventListener("focus",(function(){return t.startKeyboardNavigation()})),window.addEventListener("blur",(function(){return t.stopKeyboardNavigation()})),window.addEventListener("mousedown",this.stopKeyboardNavigation.bind(this)),window.addEventListener("resize",this.moveToFocusedElement.bind(this,{disableAnimation:!0})),window.addEventListener("scroll",this.moveToFocusedElement.bind(this,{disableAnimation:!0}))}return Object.defineProperty(t.prototype,"isNavigatingWithKeyboard",{get:function(){return this.isVisible},enumerable:!1,configurable:!0}),t.prototype.createFocusIndicatorLayer=function(){this.layer=document.createElement("div"),this.layer.classList.add("focus-layer"),document.body.appendChild(this.layer)},t.prototype.createFocusIndicator=function(){this.indicator=document.createElement("div"),this.indicator.classList.add("focus-indicator"),this.layer.appendChild(this.indicator)},t.prototype.onTab=function(){document.activeElement?this.startKeyboardNavigation():this.stopKeyboardNavigation()},t.prototype.updateFocusedTarget=function(t){this.previousTarget=this.currentTarget,this.currentTarget=t,this.alreadyMovedToElement=!1,this.isNavigatingWithKeyboard&&this.focusScroller.scrollTo(this.currentTarget),this.onFocusChange.next({previousTarget:this.previousTarget,target:this.currentTarget}),this.alreadyMovedToElement||this.moveToFocusedElement()},t.prototype.startKeyboardNavigation=function(){this.isVisible||(document.body.classList.add("navigating-with-keyboard"),this.layer.classList.add("focus-layer--visible"),this.isVisible=!0,this.onStartKeyboardNavigation.next())},t.prototype.stopKeyboardNavigation=function(){this.isVisible&&(document.body.classList.remove("navigating-with-keyboard"),this.layer.classList.remove("focus-layer--visible"),this.isVisible=!1,this.onEndKeyboardNavigation.next())},t.prototype.focus=function(t){t.focus(),this.updateFocusedTarget(t)},t.prototype.moveToFocusedElement=function(t){this.currentTarget&&(this.animateToElement(this.currentTarget,t),this.alreadyMovedToElement=!0)},t.prototype.showFocusAt=function(t,e){this.animateToElement(t,e),this.alreadyMovedToElement=!0},t.prototype.animateToElement=function(t,e){var n=dt(dt({},vt),e),r=t.getBoundingClientRect(),o=n.padding,i=r.width+2*o,s=r.height+2*o,a=document.documentElement.scrollLeft+r.x-o,c=document.documentElement.scrollTop+r.y-o,u=ut({targets:this.indicator,width:i,height:s,translateX:a,translateY:c,duration:300,autoplay:!1,easing:function(){return ht}});n.disableAnimation||ft.getInstance().shouldNotAnimate()?u.seek(u.duration):u.play()},t}());new(function(){function t(){var t=this;this.blacklistSelectors=[".social-media__link",".social_media__link"],window.addEventListener("load",(function(){t.getElements(),t.addHintToExternalLinks()}))}return t.prototype.getElements=function(){this.linkElements=Array.from(document.querySelectorAll("a[href]")),this.externalTextTemplate=document.getElementById("external-link-hint-template")},t.prototype.addHintToExternalLinks=function(){for(var t=0,e=this.linkElements;t<e.length;t++){var n=e[t];if(!this.isBlacklisted(n)){var r=new URL(n.href),o=window.location.host;r.host!==o&&this.appendExternalLinkHint(n)}}},t.prototype.isBlacklisted=function(t){for(var e=0,n=this.blacklistSelectors;e<n.length;e++){var r=n[e];if(t.matches(r))return!0}},t.prototype.appendExternalLinkHint=function(t){var e=document.importNode(this.externalTextTemplate.content,!0);t.appendChild(e)},t}());var mt=ut({targets:".home-intro__title",opacity:[0,1],translateY:{value:[20,0],easing:"easeInOutSine"},duration:1e3,easing:"easeInOutQuad",autoplay:!1,delay:0}),gt=ut({targets:".home-intro__content",opacity:[0,1],translateY:{value:[20,0],easing:"easeInOutSine"},duration:1e3,easing:"easeInOutQuad",autoplay:!1,delay:400}),bt=ut({targets:".home-video__title",opacity:[0,1],translateY:{value:[20,0],easing:"easeInOutSine"},duration:500,easing:"easeInOutQuad",autoplay:!1,delay:800}),_t=ut({targets:".home-video__btn",opacity:[0,1],translateY:[10,0],duration:400,easing:"easeOutQuad",autoplay:!1,delay:1e3}),wt=ut({targets:".home-intro__btn",opacity:[0,1],translateY:[20,0],duration:1e3,easing:"easeInOutQuad",autoplay:!1,delay:600}),Et=ut({targets:".home-engagement__container .home-engagement__image",translateX:{value:[-50,0],duration:200},rotate:{value:[-20,0],duration:900,easing:"easeInOutSine"},scale:{value:[.8,1],duration:1e3,easing:"easeInOutSine"},opacity:[0,1],duration:1200,easing:"easeInOutQuad",autoplay:!1,delay:ut.stagger(500,{start:100})}),St=ut({targets:".home-engagement__box",opacity:{value:[0,1]},duration:900,easing:"easeInOutQuad",autoplay:!1,delay:ut.stagger(500,{start:700})});var Tt=new IntersectionObserver((function(t,e){for(var n=0,r=t;n<r.length;n++){var o=r[n];if(o.isIntersecting&&o.target.classList.contains("scroll-container")){var i=yt.isNavigatingWithKeyboard||ft.getInstance().shouldNotAnimate();o.target.classList.contains("home-intro__inner")&&(i?(mt.seek(mt.duration),gt.seek(gt.duration),wt.seek(wt.duration)):(mt.play(),gt.play(),wt.play())),o.target.classList.contains("home-video")&&(i?(bt.seek(bt.duration),_t.seek(_t.duration)):(bt.play(),_t.play())),o.target.classList.contains("home-engagement")&&(i?(Et.seek(Et.duration),St.seek(St.duration)):(Et.play(),St.play())),Tt.unobserve(o.target)}}}),{root:null,treshold:1});document.querySelectorAll(".scroll-container").forEach((function(t){return Tt.observe(t)}));var It,Lt=function(){function t(t,e){this.host=t,this.id=e,this.wasInitialized=!1}return Object.defineProperty(t.prototype,"observedContainer",{get:function(){return this.host},enumerable:!1,configurable:!0}),t.register=function(t){xt.register({selector:t,component:this})},t.prototype.onIntersectionStateChange=function(t){},t}(),Ot=function(){function t(t){var e=this;this.observedComponents=[],this.observer=new IntersectionObserver((function(t,n){return e.observerHander(t,n)}),t)}return t.prototype.observerHander=function(t,e){var n=this;t.map((function(t){return[t,n.observedComponents.find((function(e){return t.target===e.observedContainer}))]})).forEach((function(t){var e=t[0];return t[1].onIntersectionStateChange(e)}))},t.prototype.observe=function(t){this.observedComponents.push(t),this.observer.observe(t.observedContainer)},t.prototype.unobserve=function(t){this.observedComponents.splice(this.observedComponents.findIndex((function(e){return e===t})),1),this.observer.unobserve(t.observedContainer)},t}(),xt=new(function(){function t(){var t=this;this.instances=new Map,this.componentFactories=[],new MutationObserver((function(e,n){for(var r=e.filter((function(t){return t.addedNodes&&t.addedNodes.length>0})).map((function(t){return t.addedNodes})),o=0;o<r.length;o++)for(var i=r[o],s=function(e){var n=i[e];n instanceof HTMLElement&&t.componentFactories.map((function(e){return t.findComponent(n.parentNode?n.parentNode:n,e)}))},a=0;a<i.length;a++)s(a);t.initializeNewlyCreatedComponents()})).observe(document,{childList:!0,subtree:!0})}return t.prototype.initializeNewlyCreatedComponents=function(){this.instances.forEach((function(t){t.wasInitialized||(t.onInit(),t.wasInitialized=!0)}))},t.prototype.createUID=function(t){return""+t+Math.random().toString(36).substr(2,9)},t.prototype.attach=function(t,e){if(!t.dataset.componentId){var n=this.createUID("c_");t.setAttribute("data-component-id",n);var r=new e.component(t,n);this.instances.set(n,r)}},t.prototype.findComponent=function(t,e){for(var n=t.querySelectorAll(e.selector),r=0;r<n.length;r++){var o=n[r];this.attach(o,e)}},t.prototype.register=function(t){this.componentFactories.findIndex((function(e){return e.selector===t.selector&&e.component===t.component}))<=-1?(this.componentFactories.push(t),this.findComponent(document,t)):console.error("Component factory alredy exits",t)},t.prototype.get=function(t){return this.instances.get(t)},t}()),At=(It=function(t,e){return(It=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])})(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t}It(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),Ct=function(t,e){for(var n=0,r=e.length,o=t.length;n<r;n++,o++)t[o]=e[n];return t};(function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.isOpen=!1,e}return At(e,t),e.prototype.onInit=function(){this.reloadOnReset=this.host.hasAttribute("reload-on-reset"),this.getElements(),this.registerListeners()},e.prototype.getElements=function(){this.filterControl=this.host.querySelector(".filter-control"),this.resetButton=this.host.querySelector(".filter-reset"),this.selectField=this.host.querySelector(".select-field"),this.checkboxes=this.host.querySelectorAll('input[type="checkbox"]'),this.form=this.host.querySelector(".filter-collapsible")},e.prototype.registerListeners=function(){var t=this;this.filterControl.addEventListener("click",(function(){return t.onToggle()})),this.resetButton.addEventListener("click",(function(e){return t.onReset(e)})),this.form.addEventListener("submit",(function(e){return t.applyFilter(e)}))},e.prototype.onReset=function(t){t.preventDefault(),this.reloadOnReset?location.href=location.pathname:(this.form.reset(),this.selectField.dispatchEvent(new Event("change")),this.checkboxes.forEach((function(t){return t.checked=!1})),history.pushState({},document.title,""+location.pathname),document.querySelectorAll(".project_list[data-url], .project_category[data-url]").forEach((function(t){t.dispatchEvent(new CustomEvent("filter_list"))})))},e.prototype.onToggle=function(){this.isOpen=!this.isOpen,this.host.classList.toggle("project-filters--expanded"),this.filterControl.setAttribute("aria-expanded",this.isOpen.toString())},e.prototype.applyFilter=function(t){t.preventDefault();var e=new FormData(this.form),n=Ct(Ct([],Ct([],e.getAll("filter-category")).map((function(t){return"filter-category="+t}))),Ct([],e.getAll("filter-region")).map((function(t){return"filter-region="+t}))).join("&");history.pushState({},document.title,location.pathname+"?"+n),document.querySelectorAll(".project_list[data-url], .project_category[data-url]").forEach((function(t){t.dispatchEvent(new CustomEvent("filter_list",{detail:n}))}))},e})(Lt).register(".project-filters");var kt=function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])})(e,n)};return function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),Pt=function(t,e){for(var n=0,r=e.length,o=t.length;n<r;n++,o++)t[o]=e[n];return t},jt=new Ot;(function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return kt(e,t),e.prototype.onInit=function(){var t=this;this.showAnimated=this.host.hasAttribute("data-animated"),this.host.classList.contains("project_list--loaded")||jt.observe(this),this.host.addEventListener("filter_list",(function(e){t.loadContent(e.detail)})),this.currentPage=parseInt(this.host.getAttribute("data-page"),10),this.totalPages=parseInt(this.host.getAttribute("data-pages"),10),this.loadMoreButton=this.host.nextElementSibling.querySelector(".load_more_projects"),this.loadMoreButton&&(this.loadMoreEventListener=function(e){e.preventDefault(),t.loadMore()},this.loadMoreButton.addEventListener("click",this.loadMoreEventListener)),this.checkPagination()},e.prototype.onIntersectionStateChange=function(t){t.isIntersecting&&(this.loadContent(),jt.unobserve(this))},e.prototype.checkPagination=function(){this.loadMoreButton&&(console.log(this.currentPage,this.totalPages,this.totalPages>this.currentPage),this.currentPage&&this.totalPages&&this.totalPages>this.currentPage?this.loadMoreButton.classList.add("load_more_projects--show"):this.loadMoreButton.classList.remove("load_more_projects--show"))},e.prototype.loadMore=function(){if(this.loadMoreButton.classList.contains("load_more_projects--show")){var t=new FormData(document.querySelector(".project-filters .filter-collapsible")),e=Pt(Pt(Pt([],Pt([],t.getAll("filter-category")).map((function(t){return"filter-category="+t}))),Pt([],t.getAll("filter-region")).map((function(t){return"filter-region="+t}))),["page="+(this.currentPage+1)]).join("&");this.loadContent(e)}},e.prototype.loadContent=function(t){var e=this,n=this.host.getAttribute("data-url");t&&(n+="?v=1.0&"+t);var r=new XMLHttpRequest;r.onreadystatechange=function(){if(4===r.readyState&&200===r.status){var t=(new DOMParser).parseFromString(r.responseText,"text/html").querySelector(".project_list"),n=parseInt(t.getAttribute("data-page"),10);if(n&&n>e.currentPage){for(var o=t.querySelectorAll(".project_list__item"),i=0;i<o.length;i++)e.host.appendChild(o[i]);e.currentPage=n,e.totalPages=parseInt(t.getAttribute("data-pages"),10),e.checkPagination()}else e.showAnimated&&!yt.isNavigatingWithKeyboard&&t.classList.add("project_list--animated","project_list--before-animation-start"),requestAnimationFrame((function(){e.loadMoreButton&&e.loadMoreButton.removeEventListener("click",e.loadMoreEventListener),e.host.replaceWith(t),requestAnimationFrame((function(){t.classList.remove("project_list--before-animation-start")}))}))}},r.open("GET",n,!0),r.setRequestHeader("X-Requested-With","XMLHttpRequest"),r.send()},e})(Lt).register(".project_list[data-url]");var Ft=function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])})(e,n)};return function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),Dt=function(t,e){for(var n=0,r=e.length,o=t.length;n<r;n++,o++)t[o]=e[n];return t},Mt=new Ot;(function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Ft(e,t),e.prototype.onInit=function(){var t=this;this.showAnimated=this.host.hasAttribute("data-animated"),this.host.classList.contains("project_category--loaded")||Mt.observe(this),this.host.addEventListener("filter_list",(function(e){t.loadContent(e.detail)}))},e.prototype.onIntersectionStateChange=function(t){t.isIntersecting&&(this.loadContent(),Mt.unobserve(this))},e.prototype.loadContent=function(t){var e=this;if(!t){var n=new FormData(document.querySelector(".project-filters .filter-collapsible"));t=Dt(Dt([],Dt([],n.getAll("filter-category")).map((function(t){return"filter-category="+t}))),Dt([],n.getAll("filter-region")).map((function(t){return"filter-region="+t}))).join("&")}var r=this.host.getAttribute("data-url")+"&v=1.0&"+t,o=new XMLHttpRequest;o.onreadystatechange=function(){if(4===o.readyState&&200===o.status){var t=(new DOMParser).parseFromString(o.responseText,"text/html").querySelector(".project_category");e.showAnimated&&t.classList.add("project_category--animated","project_category--before-animation-start"),requestAnimationFrame((function(){e.host.replaceWith(t),requestAnimationFrame((function(){t.classList.remove("project_category--before-animation-start")}))}))}},o.open("GET",r,!0),o.setRequestHeader("X-Requested-With","XMLHttpRequest"),o.send()},e})(Lt).register(".project_category[data-url]");var Nt=n(3),qt=function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])})(e,n)};return function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}();(function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return qt(e,t),e.prototype.onInit=function(){this.swipeContainer=this.host.querySelector(".swipe_container"),this.hammerEl=new Nt(this.swipeContainer),this.active=parseInt(this.swipeContainer.getAttribute("data-active"),0),this.total=this.host.querySelectorAll(".project_list__item").length,this.swipeContainer.setAttribute("data-active",(this.active%this.total).toString()),this.dots=this.host.querySelectorAll(".dot"),this.dots[this.active]&&this.dots[this.active].classList.add("dot--active"),this.setUpListeners()},e.prototype.setUpListeners=function(){var t=this;this.hammerEl.on("swiperight",(function(){t.active>0&&(t.active--,t.setActive())})),this.hammerEl.on("swipeleft",(function(){t.active<t.total-1&&(t.active++,t.setActive())}));for(var e=function(e){n.dots[e].addEventListener("click",(function(n){n.preventDefault,t.active=e,t.setActive()}))},n=this,r=0;r<this.dots.length;r++)e(r)},e.prototype.setActive=function(){this.swipeContainer.setAttribute("data-active",(this.active%this.total).toString());for(var t=0;t<this.dots.length;t++)this.dots[t].classList.remove("dot--active");this.dots[this.active].classList.add("dot--active")},e})(Lt).register(".swipe_wrapper");var Rt=function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])})(e,n)};return function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}();(function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Rt(e,t),e.prototype.onInit=function(){var t=this;if(!this.host.classList.contains("header--small")){var e=document.querySelector(".main-nav");this.host.addEventListener("changeSize",(function(n){window.pageYOffset>=80||e.classList.contains("main-nav--open")?t.host.classList.add("header--small"):t.host.classList.remove("header--small")})),window.addEventListener("scroll",(function(e){return t.host.dispatchEvent(new CustomEvent("changeSize"))}))}},e})(Lt).register(".header");
/*!
* tabbable 5.2.0
* @license MIT, https://github.com/focus-trap/tabbable/blob/master/LICENSE
*/
var Bt=["input","select","textarea","a[href]","button","[tabindex]","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable="false"])',"details>summary:first-of-type","details"],Ht=Bt.join(","),Ut="undefined"==typeof Element?function(){}:Element.prototype.matches||Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector,Wt=function(t,e,n){var r=Array.prototype.slice.apply(t.querySelectorAll(Ht));return e&&Ut.call(t,Ht)&&r.unshift(t),r=r.filter(n)},Xt=function(t){var e=parseInt(t.getAttribute("tabindex"),10);return isNaN(e)?function(t){return"true"===t.contentEditable}(t)?0:"AUDIO"!==t.nodeName&&"VIDEO"!==t.nodeName&&"DETAILS"!==t.nodeName||null!==t.getAttribute("tabindex")?t.tabIndex:0:e},zt=function(t,e){return t.tabIndex===e.tabIndex?t.documentOrder-e.documentOrder:t.tabIndex-e.tabIndex},Vt=function(t){return"INPUT"===t.tagName},Yt=function(t){return function(t){return Vt(t)&&"radio"===t.type}(t)&&!function(t){if(!t.name)return!0;var e,n=t.form||t.ownerDocument,r=function(t){return n.querySelectorAll('input[type="radio"][name="'+t+'"]')};if("undefined"!=typeof window&&void 0!==window.CSS&&"function"==typeof window.CSS.escape)e=r(window.CSS.escape(t.name));else try{e=r(t.name)}catch(t){return console.error("Looks like you have a radio button with a name attribute containing invalid CSS selector characters and need the CSS.escape polyfill: %s",t.message),!1}var o=function(t,e){for(var n=0;n<t.length;n++)if(t[n].checked&&t[n].form===e)return t[n]}(e,t.form);return!o||o===t}(t)},Gt=function(t,e){return!(e.disabled||function(t){return Vt(t)&&"hidden"===t.type}(e)||function(t,e){if("hidden"===getComputedStyle(t).visibility)return!0;var n=Ut.call(t,"details>summary:first-of-type")?t.parentElement:t;if(Ut.call(n,"details:not([open]) *"))return!0;if(e&&"full"!==e){if("non-zero-area"===e){var r=t.getBoundingClientRect(),o=r.width,i=r.height;return 0===o&&0===i}}else for(;t;){if("none"===getComputedStyle(t).display)return!0;t=t.parentElement}return!1}(e,t.displayCheck)||function(t){return"DETAILS"===t.tagName&&Array.prototype.slice.apply(t.children).some((function(t){return"SUMMARY"===t.tagName}))}(e))},Kt=function(t,e){return!(!Gt(t,e)||Yt(e)||Xt(e)<0)},Qt=function(t,e){var n=[],r=[];return Wt(t,(e=e||{}).includeContainer,Kt.bind(null,e)).forEach((function(t,e){var o=Xt(t);0===o?n.push(t):r.push({documentOrder:e,tabIndex:o,node:t})})),r.sort(zt).map((function(t){return t.node})).concat(n)},$t=Bt.concat("iframe").join(","),Jt=function(t,e){if(e=e||{},!t)throw new Error("No node provided");return!1!==Ut.call(t,$t)&&Gt(e,t)},Zt=function(){function t(t){var e=this;this.host=t,this.isActive=!1,this.tabbables=[],this.isOpen=!1,this.getElements(),this.tabbables=Qt(this.inner),this.navOpener.addEventListener("click",(function(){e.isActive&&(e.isOpen?e.close():e.open())})),this.navCloser.addEventListener("click",(function(){e.isActive&&e.close()})),yt.onFocusChange.subscribe((function(t){var n;e.navOpener===t.target&&yt.showFocusAt(e.navOpener,{padding:5}),(null===(n=t.target)||void 0===n?void 0:n.closest(".main-nav"))||e.close()})),this.onInit()}return t.prototype.getElements=function(){this.navOpener=this.host.querySelector(".main-nav__opener"),this.inner=this.host.querySelector(".main-nav__inner"),this.navCloser=this.inner.querySelector(".main-nav__closer")},t.prototype.onInit=function(){},t.prototype.open=function(){this.isOpen=!0},t.prototype.close=function(){this.isOpen=!1},t.prototype.activate=function(){this.isActive=!0,this.close()},t.prototype.deactivate=function(){this.isActive=!1,this.close()},t.prototype.enableLinks=function(){this.navOpener.setAttribute("aria-expanded","true"),this.tabbables.forEach((function(t){t.tabIndex=0}))},t.prototype.disableLinks=function(){this.navOpener.setAttribute("aria-expanded","false"),this.tabbables.forEach((function(t){t.tabIndex=-1}))},t}(),te=function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])})(e,n)};return function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),ee=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return te(e,t),e.prototype.getElements=function(){t.prototype.getElements.call(this),this.header=document.querySelector(".header")},e.prototype.open=function(){t.prototype.open.call(this),this.host.classList.add("main-nav--open"),this.header.dispatchEvent(new CustomEvent("changeSize")),this.enableLinks()},e.prototype.close=function(){t.prototype.close.call(this),this.host.classList.remove("main-nav--open"),this.header.dispatchEvent(new CustomEvent("changeSize")),this.disableLinks()},e}(Zt),ne=function(){function t(t){this.currentIndex=-1,t&&this.setItems(t)}return t.prototype.setItems=function(t){t.length>0&&(this.items=t)},t.prototype.next=function(){this.detectFocusedItem(),this.currentIndex=(this.currentIndex+1)%this.items.length,this.focusCurrentItem()},t.prototype.previous=function(){this.detectFocusedItem();var t=this.items.length-1,e=this.currentIndex-1;e<0&&(e=t),this.currentIndex=e,this.focusCurrentItem()},t.prototype.focusAtIndex=function(t){this.currentIndex=Math.min(Math.max(t,0),this.items.length-1),this.focusCurrentItem()},t.prototype.getCurrent=function(){return this.items.item(this.currentIndex)},t.prototype.detectFocusedItem=function(){for(var t=0;t<this.items.length;t++){if(this.items.item(t)===document.activeElement){this.currentIndex=t,this.focusCurrentItem();break}}},t.prototype.focusCurrentItem=function(){this.disableFocusOfItems();var t=this.getCurrent();t.tabIndex=0,t.focus()},t.prototype.disableFocusOfItems=function(){var t=this;this.items.forEach((function(e){return t.disableFocusOfItem(e)}))},t.prototype.disableFocusOfItem=function(t){t.tabIndex=-1},t}(),re=function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])})(e,n)};return function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),oe=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return re(e,t),e.prototype.onInit=function(){this.setupScrollListener(),this.setupArrowKeyListener()},e.prototype.setupArrowKeyListener=function(){var t=this;this.links=this.host.querySelectorAll(".nav-list__link"),this.focusNavigator=new ne(this.links),window.addEventListener("keydown",(function(e){if(t.isActive&&t.isOpen)switch(e.code){case"Escape":t.close(),t.navOpener.focus();break;case"ArrowUp":case"ArrowRight":e.preventDefault(),e.stopPropagation(),t.focusNavigator.previous();break;case"ArrowDown":case"ArrowLeft":e.preventDefault(),e.stopPropagation(),t.focusNavigator.next()}}))},e.prototype.setupScrollListener=function(){this.host.classList.contains("main-nav--collapsed")||(window.addEventListener("scroll",(function(t){})),window.addEventListener("DOMContentLoaded",(function(){})))},e.prototype.openBasedOnScrollPosition=function(){this.isActive&&(window.pageYOffset>=100||yt.isNavigatingWithKeyboard?this.close():this.open())},e.prototype.close=function(){t.prototype.close.call(this),this.host.classList.add("main-nav--collapsed"),this.disableLinks(),this.navOpener.tabIndex=0},e.prototype.open=function(){t.prototype.open.call(this),this.host.classList.remove("main-nav--collapsed"),this.enableLinks(),this.focusFirstLink(),this.navOpener.tabIndex=-1},e.prototype.focusFirstLink=function(){this.links[0].focus(),this.focusNavigator.detectFocusedItem()},e}(Zt),ie=function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])})(e,n)};return function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}();(function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.breakpoint=992,e.previousWidth=window.innerWidth,e}return ie(e,t),e.prototype.onInit=function(){this.mobileBehavior=new ee(this.host),this.desktopBehavior=new oe(this.host),this.setupResizeListener(),this.activateInitialBehavior()},e.prototype.activateInitialBehavior=function(){var t=window.innerWidth<this.breakpoint?this.mobileBehavior:this.desktopBehavior;this.activateBehavior(t),this.previousWidth=window.innerWidth},e.prototype.setupResizeListener=function(){var t=this;window.addEventListener("resize",(function(){window.innerWidth<t.breakpoint&&t.previousWidth>=t.breakpoint?t.activateBehavior(t.mobileBehavior):window.innerWidth>=t.breakpoint&&t.previousWidth<t.breakpoint&&t.activateBehavior(t.desktopBehavior),t.previousWidth=window.innerWidth}))},e.prototype.activateBehavior=function(t){var e;null===(e=this.currentBehavior)||void 0===e||e.deactivate(),this.currentBehavior=t,this.currentBehavior.activate()},e})(Lt).register(".main-nav");n(20);var se=function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])})(e,n)};return function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}();(function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return se(e,t),e.prototype.onInit=function(){this.getElements(),this.setupAriaDescribedby(),this.checkIfIsTextarea(),this.setUpListeners(),this.inputElement===document.activeElement&&this.onFocus(),this.onChange()},e.prototype.getElements=function(){this.inputElement=this.host.querySelector(".input-field__input"),this.helptextElement=this.host.querySelector(".input-field__helptext"),this.errorElement=this.host.querySelector(".form-field__error")},e.prototype.setupAriaDescribedby=function(){this.errorElement?this.linkErrorText():this.helptextElement&&this.linkHelpText()},e.prototype.linkHelpText=function(){var t="helptext_"+this.id;this.helptextElement.setAttribute("id",t),this.inputElement.setAttribute("aria-describedby",t)},e.prototype.linkErrorText=function(){var t="error_"+this.id;this.errorElement.setAttribute("id",t),this.inputElement.setAttribute("aria-describedby",t)},e.prototype.checkIfIsTextarea=function(){this.isTextArea="textarea"===this.inputElement.tagName.toLocaleLowerCase()},e.prototype.setUpListeners=function(){var t=this;this.inputElement.addEventListener("focus",(function(){return t.onFocus()})),this.inputElement.addEventListener("blur",(function(){return t.onBlur()})),this.inputElement.addEventListener("change",(function(){return t.onChange()}));var e=this.inputElement.getAttribute("maxlength"),n=this.host.parentElement.querySelector(".chars-left"),r=!(!e||!n);if(this.isTextArea&&(this.inputElement.addEventListener("input",(function(){return t.resizeTextarea()})),r)){var o=parseInt(e,10);this.inputElement.addEventListener("keyup",(function(){n.innerHTML=(o-t.inputElement.value.length).toString()})),n.innerHTML=(o-this.inputElement.value.length).toString()}yt.onFocusChange.subscribe((function(e){e.target===t.inputElement&&(t.isTextArea&&r?t.showFocusForTextAreasWithCharsLeftDisplay():t.showFocus())}))},e.prototype.onFocus=function(){this.host.classList.add("input-field--focus")},e.prototype.onBlur=function(){this.host.classList.remove("input-field--focus"),this.onChange()},e.prototype.onChange=function(){this.inputElement.value&&this.inputElement.value.length>0?this.host.classList.add("input-field--filled"):this.host.classList.remove("input-field--filled"),this.isTextArea&&this.resizeTextarea()},e.prototype.resizeTextarea=function(){this.inputElement.style.height=Math.max(this.inputElement.scrollHeight,80)+"px",this.showFocusForTextAreasWithCharsLeftDisplay()},e.prototype.showFocusForTextAreasWithCharsLeftDisplay=function(){yt.showFocusAt(this.host.parentElement,{padding:5})},e.prototype.showFocus=function(){yt.showFocusAt(this.host,{padding:4})},e})(Lt).register(".input-field");var ae=function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])})(e,n)};return function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}();(function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.isInfoOpen=!1,e}return ae(e,t),e.prototype.onInit=function(){this.input=this.host.querySelector(".category-choice__input"),this.label=this.host.querySelector(".category-choice__label"),this.visual=this.host.querySelector(".category-choice__visual"),this.infoToggle=this.host.querySelector(".category-choice__info-toggle"),this.setA11yListeners(),this.setUpListeners()},e.prototype.setA11yListeners=function(){var t=this;this.input.addEventListener("focus",(function(){return t.focus()})),this.input.addEventListener("blur",(function(){return t.blur()})),yt.onFocusChange.subscribe((function(e){e.target===t.input?t.focus():t.blur()}))},e.prototype.setUpListeners=function(){var t=this;this.infoToggle.addEventListener("click",(function(e){e.preventDefault(),t.toggleInfo()}))},e.prototype.toggleInfo=function(){this.isInfoOpen?this.closeInfo():this.openInfo()},e.prototype.openInfo=function(){this.isInfoOpen=!0,this.infoToggle.setAttribute("aria-expanded","true"),this.host.classList.add("category-choice--info-open")},e.prototype.closeInfo=function(){this.isInfoOpen=!1,this.infoToggle.setAttribute("aria-expanded","false"),this.host.classList.remove("category-choice--info-open")},e.prototype.focus=function(){this.host.classList.add("category-choice--focus"),yt.showFocusAt(this.visual)},e.prototype.blur=function(){this.host.classList.remove("category-choice--focus")},e})(Lt).register(".category-choice-field .category-choice");var ce=function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])})(e,n)};return function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}();(function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e._hasFile=!1,e}return ce(e,t),Object.defineProperty(e.prototype,"hasFile",{set:function(t){this._hasFile=t,t?this.host.classList.add("file-field--has-file"):this.host.classList.remove("file-field--has-file")},enumerable:!1,configurable:!0}),e.prototype.onInit=function(){this.inputElement=this.host.querySelector(".file-field__input"),this.labelElement=this.host.querySelector(".file-field__label"),this.labelValue=this.labelElement.innerHTML,this.setUpListeners(),this.setUpA11yListeners()},e.prototype.setUpListeners=function(){var t=this;this.inputElement.addEventListener("change",(function(e){return t.onChange(e)})),this.labelElement.addEventListener("dragover",this.onDragOver.bind(this),!1),window.addEventListener("drop",this.onDrop.bind(this),!1),window.addEventListener("dragleave",this.onDragLeave.bind(this),!1)},e.prototype.setUpA11yListeners=function(){var t=this;this.inputElement.addEventListener("focus",(function(){return t.focus()})),yt.onFocusChange.subscribe((function(e){e.target===t.inputElement&&t.focus()}))},e.prototype.focus=function(){yt.showFocusAt(this.host)},e.prototype.onDrop=function(t){t.preventDefault(),t.stopPropagation(),this.inputElement.files=t.dataTransfer.files,this.inputElement.dispatchEvent(new Event("change")),this.host.classList.remove("file-field--dragover")},e.prototype.onDragOver=function(t){t.preventDefault(),t.stopPropagation(),this.host.classList.add("file-field--dragover")},e.prototype.onDragLeave=function(t){t.preventDefault(),t.stopPropagation(),this.host.classList.remove("file-field--dragover")},e.prototype.onDelete=function(){var t=this;this.inputElement.value="",this.host.querySelectorAll(".file-field__file").forEach((function(t){return t.parentNode.removeChild(t)})),this.hasFile=!1,window.requestAnimationFrame((function(){return yt.focus(t.inputElement)}))},e.prototype.onChange=function(t){var e=this,n="";n=this.inputElement.files&&this.inputElement.files.length>1?(this.inputElement.getAttribute("data-multiple-caption")||"{count} Files").replace("{count}",String(this.inputElement.files.length)):t.target.value.split("\\").pop();var r=this.inputElement.files[0].size/1024,o=this.getFileHtml(n,r);this.host.querySelectorAll(".file-field__file").forEach((function(t){return t.parentNode.removeChild(t)})),this.host.appendChild(o),this.hasFile=!0,o.addEventListener("click",(function(){return e.onDelete()}))},e.prototype.getFileHtml=function(t,e){var n=document.createElement("div");n.classList.add("file-field__file");var r=document.getElementById("file-template"),o=document.importNode(r.content,!0);return o.querySelector(".file-field__file__name").innerHTML=t,o.querySelector(".file-field__file__size").innerHTML=this.formatFileSize(e),n.appendChild(o),n},e.prototype.formatFileSize=function(t){return t>1024?(t/1024).toFixed(2)+" MB":t.toFixed(2)+" KB"},e})(Lt).register(".file-field");var ue=function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])})(e,n)};return function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}();(function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.CHECKED_CLASS="select-option--checked",e}return ue(e,t),e.prototype.onInit=function(){var t=this;this.input=this.host.querySelector(".select-option__input"),this.checkmarkElement=this.host.querySelector(".select-option__checkmark"),this.input.addEventListener("change",(function(){t.input.checked?t.select():t.deselect()})),yt.onFocusChange.subscribe((function(e){e.target===t.input&&t.focus()}))},e.prototype.select=function(){this.input.checked=!0,this.host.classList.add(this.CHECKED_CLASS)},e.prototype.deselect=function(){this.input.checked=!1,this.host.classList.remove(this.CHECKED_CLASS)},e.prototype.focus=function(){yt.showFocusAt(this.checkmarkElement,{padding:3})},e})(Lt).register(".select-option--checkbox");var le=function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])})(e,n)};return function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}();(function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.CHECKED_CLASS="select-option--checked",e.hasFocus=!1,e}return le(e,t),e.prototype.onInit=function(){var t=this;this.input=this.host.querySelector(".select-option__input"),this.input.addEventListener("focus",this.focus.bind(this)),this.input.addEventListener("blur",this.blur.bind(this)),yt.onFocusChange.subscribe((function(e){e.target===t.input?t.focus():t.blur()}))},e.prototype.select=function(){this.input.checked=!0,this.host.classList.add(this.CHECKED_CLASS)},e.prototype.deselect=function(){this.input.checked=!1,this.host.classList.remove(this.CHECKED_CLASS)},e.prototype.focus=function(){yt.showFocusAt(this.host,{padding:1}),this.hasFocus=!0,this.host.classList.add("select-option--has-focus")},e.prototype.blur=function(){this.hasFocus=!1,this.host.classList.remove("select-option--has-focus")},e})(Lt).register(".select-option--radio");var he=function(){function t(){this.isActive=!1,this.currentInput=[],this.onChange=new pt,this.onDone=new pt,this.setupListeners()}return t.prototype.setupListeners=function(){var t=this;window.addEventListener("keydown",(function(e){var n;if(t.isActive){var r=e.key.toLowerCase();if(" "===r&&0===t.currentInput.length)return;if(1===(null===(n=r.match(/[-0-9.a-zA-ZäöüÄÖÜÉÀÈöäü]/g))||void 0===n?void 0:n.length)){t.currentInput.push(r);var o=t.currentInputToLowerCaseString();t.onChange.next(o),clearTimeout(t.timeoutId),t.timeoutId=setTimeout((function(){t.done()}),500)}}}))},t.prototype.currentInputToLowerCaseString=function(){return this.currentInput.map((function(t){return t.toLowerCase()})).join("")},t.prototype.done=function(){this.onDone.next(this.onChange.currentValue),this.onChange.next(null),this.currentInput=[]},t.prototype.activate=function(){this.isActive=!0},t.prototype.deactivate=function(){this.isActive=!1},t}(),pe=function(){function t(){this.isActive=!1,this.list=[],this.onJump=new pt,this.setupListeners()}return t.prototype.setupListeners=function(){var t=this;this.textInputLogger=new he,this.textInputLogger.onChange.subscribe((function(e){e&&t.jumpToBestMatch(e)})),this.onSearchChange=this.textInputLogger.onChange,this.onDone=this.textInputLogger.onDone},t.prototype.jumpToBestMatch=function(t){for(var e=0;e<this.list.length;e++){if(this.list[e].startsWith(t))return void this.onJump.next(e)}},t.prototype.setList=function(t){void 0===t&&(t=[]),this.list=t.map((function(t){return t.toLowerCase()}))},t.prototype.activate=function(){this.isActive=!0,this.textInputLogger.activate()},t.prototype.deactivate=function(){this.isActive=!1,this.textInputLogger.deactivate()},t}(),fe=function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])})(e,n)};return function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}();(function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.buttonHasFocus=!1,e.isOpen=!1,e.isSearching=!1,e}return fe(e,t),e.prototype.onInit=function(){var t=this;this.getElements(),this.setAriaDescribedBy(),this.focusNavigator=new ne(this.options),this.listJumper=new pe,this.listJumper.setList(this.getLabelsAsStringList()),this.setUpListeners(),this.isMultipleSelect?(this.dropdown.setAttribute("aria-multiselectable","true"),this.onChange({target:null})):this.options.forEach((function(e){e.checked&&t.onChange({target:e})}))},e.prototype.getElements=function(){this.isMultipleSelect=this.host.classList.contains("select-field--multipe"),this.button=this.host.querySelector(".select-field__button"),this.dropdown=this.host.querySelector(".select-field__dropdown-inner"),this.valueDisplay=this.host.querySelector(".select-field__values"),this.backDrop=this.host.querySelector(".select-field__backdrop"),this.options=this.host.querySelectorAll("input"),this.errorElement=this.host.querySelector(".form-field__error")},e.prototype.setAriaDescribedBy=function(){if(this.errorElement){var t="error_"+this.id;this.errorElement.setAttribute("id",t),this.button.setAttribute("aria-describedby",t)}},e.prototype.getLabelsAsStringList=function(){var t=this.host.querySelectorAll(".select-option__label");return Array.from(t).map((function(t){return t.innerText}))},e.prototype.setUpListeners=function(){var t=this;this.listJumper.onSearchChange.subscribe((function(e){e&&(t.isSearching=!0)})),this.listJumper.onJump.subscribe((function(e){t.focusNavigator.focusAtIndex(e)})),this.listJumper.onDone.subscribe((function(){t.isSearching=!1,console.log("done searching")})),this.button.addEventListener("click",(function(e){t.isOpen?t.close():t.open()})),this.host.addEventListener("change",(function(e){return t.onChange(e)})),this.host.addEventListener("reset",(function(e){return t.onReset()})),this.dropdown.addEventListener("scroll",(function(){t.isOpen&&yt.moveToFocusedElement({disableAnimation:!0})})),yt.onFocusChange.subscribe((function(e){var n;t.buttonHasFocus=e.target===t.button,t.buttonHasFocus&&yt.showFocusAt(t.button,{padding:5}),!(null===(n=e.target)||void 0===n?void 0:n.closest(".select-field"))&&t.isOpen&&t.close()})),this.backDrop.addEventListener("click",(function(e){e.stopPropagation(),t.close()})),window.addEventListener("keydown",(function(e){if(t.isOpen)if("Escape"===e.code||t.isMultipleSelect&&"Enter"===e.code)e.preventDefault(),e.stopPropagation(),t.close(),t.button.focus();else if("Space"===e.code||"Enter"===e.code)t.isSearching?(e.preventDefault(),e.stopPropagation()):t.toggleCurrentlyFocused();else switch("Tab"!==e.code&&(e.preventDefault(),e.stopPropagation()),e.code){case"ArrowUp":case"ArrowLeft":t.focusNavigator.previous();break;case"ArrowDown":case"ArrowRight":t.focusNavigator.next()}else"Space"!==e.code&&"Enter"!==e.code||!t.buttonHasFocus||(e.preventDefault(),e.stopPropagation(),t.open())}))},e.prototype.toggleCurrentlyFocused=function(){var t=this.focusNavigator.getCurrent();this.isMultipleSelect||(t.checked=!0),this.onChange({target:t}),this.isMultipleSelect||this.close()},e.prototype.open=function(){var t=this;this.isOpen=!0,this.host.classList.add("select-field--open"),this.button.setAttribute("aria-expanded","true"),this.button.tabIndex=-1,this.listJumper.activate(),window.requestAnimationFrame((function(){t.focusSelectedOrFirst()}))},e.prototype.focusSelectedOrFirst=function(){for(var t=!1,e=0;e<this.options.length;e++){var n=this.options[e];if(n.checked){n.focus(),t=!0;break}}t||this.options[0].focus();this.focusNavigator.detectFocusedItem()},e.prototype.close=function(){this.isOpen=!1,this.button.setAttribute("aria-expanded","false"),this.button.tabIndex=0,this.listJumper.deactivate(),this.host.classList.remove("select-field--open")},e.prototype.onReset=function(){this.options.forEach((function(t){t.checked=!1})),this.valueDisplay.innerHTML="&nbsp;",this.host.classList.remove("select-field--filled")},e.prototype.onChange=function(t){var e=[];this.isMultipleSelect?this.options.forEach((function(t){t.checked&&e.push(t.nextElementSibling.nextElementSibling.innerHTML)})):(e.push(t.target.nextElementSibling.innerHTML),yt.isNavigatingWithKeyboard||this.close(),this.button.focus()),e.length>0?(this.valueDisplay.innerHTML=e.join(", "),this.host.classList.add("select-field--filled")):(this.valueDisplay.innerHTML="&nbsp;",this.host.classList.remove("select-field--filled"))},e})(Lt).register(".select-field");var de=function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])})(e,n)};return function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}();(function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return de(e,t),e.prototype.onInit=function(){var t=this;this.host.addEventListener("radiochange",(function(e){var n;t.currentChoice!==e.detail.target&&(null===(n=t.currentChoice)||void 0===n||n.uncheck(),t.currentChoice=e.detail.target)}))},e})(Lt).register(".radio-boxes");var ve=function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])})(e,n)};return function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}();function ye(t,e,n,r,o){return function(t,e,n){return(n-t)*e+t}(r,me(t,n,e),o)}function me(t,e,n){return(e-t)/(n-t)}function ge(t){return function(t,e,n){return Math.max(Math.min(e,n),t)}(0,t,1)}function be(t,e,n){return void 0===n&&(n=0),Math.round((t-n)/e)*e+n}(function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return ve(e,t),e.prototype.onInit=function(){var t=this;this.display=this.host.style.display;var e=this.host.getAttribute("data-depending-field");this.dependendFieldValue=this.host.getAttribute("data-depending-value");var n=document.querySelectorAll('input[name="'+e+'"]');this.isNotMatching();for(var r=function(e){var r=n[e];o.checkForMatch(r,!1),r.addEventListener("change",(function(e){return t.checkForMatch(r)}))},o=this,i=0;i<n.length;i++)r(i)},e.prototype.checkForMatch=function(t,e){switch(void 0===e&&(e=!0),t.type){case"radio":t.checked&&t.value===this.dependendFieldValue?this.isMatching():e&&this.isNotMatching()}},e.prototype.isMatching=function(){this.host.style.display=this.display},e.prototype.isNotMatching=function(){this.host.style.display="none"},e})(Lt).register("[data-depending-field]");var _e=function(){function t(t){this.host=t,this.isDragging=!1,this.hostWidth=0,this.hostX=0,this.progress=0,this.registerListeners()}return t.prototype.registerListeners=function(){var t=this;this.host.addEventListener("mousedown",(function(e){return t.onDragStart(e.clientX)})),this.host.addEventListener("touchstart",(function(e){e.preventDefault(),t.onDragStart(e.touches[0].clientX)})),window.addEventListener("mousemove",(function(e){return t.onDragMove(e.clientX)})),window.addEventListener("touchmove",(function(e){return t.onDragMove(e.touches[0].clientX)})),window.addEventListener("mouseup",(function(){return t.onDragEnd()})),window.addEventListener("touchend",(function(){return t.onDragEnd()}))},t.prototype.onDragStart=function(t){this.isDragging=!0,this.updateHostX(),this.updateHostWidth(),this.calculateProgressFromX(t)},t.prototype.updateHostX=function(){this.hostX=this.host.getBoundingClientRect().x},t.prototype.updateHostWidth=function(){this.hostWidth=this.host.clientWidth},t.prototype.onDragMove=function(t){this.isDragging&&this.calculateProgressFromX(t)},t.prototype.calculateProgressFromX=function(t){var e,n=me(0,t-this.hostX,this.hostWidth);n=ge(n),this.progress=n,null===(e=this.onChangeCallback)||void 0===e||e.call(this,this.progress)},t.prototype.onDragEnd=function(){this.isDragging&&(this.isDragging=!1)},t.prototype.onChange=function(t){this.onChangeCallback=t},t}(),we=function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])})(e,n)};return function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}();(function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.onlyFirstAndLastBubble=!1,e.stepSize=0,e.progress=0,e.currentIndex=0,e}return we(e,t),e.prototype.onInit=function(){this.getElements(),this.determineInitialIndex(),this.determineStepSize(),this.determineIfOnlyFirstAndLastBubbleShouldBeDisplayed(),this.registerListeners()},e.prototype.getElements=function(){this.trackElement=this.host.querySelector(".radio-slider__track"),this.thumbTransformElement=this.host.querySelector(".radio-slider__thumb-transform"),this.thumbElement=this.host.querySelector(".radio-slider__thumb"),this.speechBubble=this.host.querySelector(".speech-bubble"),this.speechBubbleList=this.speechBubble.querySelector(".speech-bubble__list"),this.speechBubbleTriangle=this.speechBubble.querySelector(".speech-bubble__triangle"),this.speechBubbleItems=Array.from(this.speechBubble.querySelectorAll(".speech-bubble__item")),this.radioInputs=Array.from(this.host.querySelectorAll(".radio-slider-option__input"))},e.prototype.determineIfOnlyFirstAndLastBubbleShouldBeDisplayed=function(){this.host.hasAttribute("data-only-first-and-last-bubble")&&(this.onlyFirstAndLastBubble=!0)},e.prototype.determineStepSize=function(){this.stepSize=1/Math.max(this.radioInputs.length-1,1)},e.prototype.determineInitialIndex=function(){var t=this,e=!1;this.radioInputs.forEach((function(n,r){n.checked&&(t.updateCurrentIndex(r),e=!0)})),e||(this.radioInputs[0].checked=!0,this.updateCurrentIndex(0))},e.prototype.updateCurrentIndex=function(t){this.speechBubbleItems.length>0&&(this.speechBubbleItems[this.currentIndex].classList.remove("speech-bubble__item--active"),this.speechBubbleItems[t].classList.add("speech-bubble__item--active")),this.currentIndex=t},e.prototype.registerListeners=function(){var t=this;this.dragProgressController=new _e(this.trackElement),this.radioInputs.forEach((function(e){e.addEventListener("change",(function(){var n=t.findInputIndex(e),r=t.getProgressForIndex(n);t.updateProgress(r)}))})),this.dragProgressController.onChange((function(e){return t.updateProgress(e)})),window.addEventListener("resize",(function(){t.updateThumbPosition()}))},e.prototype.findInputIndex=function(t){return this.radioInputs.findIndex((function(e){return e.value===t.value}))},e.prototype.getProgressForIndex=function(t){return ye(0,this.radioInputs.length-1,t,0,1)},e.prototype.updateProgress=function(t){var e=this;this.progress=be(t,this.stepSize),this.selectClosestRadio(),window.requestAnimationFrame((function(){e.updateThumbPosition(),e.speechBubbleList&&e.updateSpeechBubblePosition()}))},e.prototype.updateThumbPosition=function(){var t=this.progress*this.trackElement.clientWidth;this.thumbTransformElement.style.transform="translateX("+Math.round(t)+"px)",this.speechBubbleTriangle&&(this.speechBubbleTriangle.style.transform="translateX("+Math.round(t)+"px)")},e.prototype.updateSpeechBubblePosition=function(){var t=this.trackElement.clientWidth,e=t-this.speechBubbleList.clientWidth+this.thumbElement.clientWidth,n=this.progress*t;n=ye(0,t,n,0,e),this.onlyFirstAndLastBubble&&this.handleOnlyFirstAndLastBubble(),this.speechBubbleList.style.transform="translateX("+Math.round(n)+"px)"},e.prototype.handleOnlyFirstAndLastBubble=function(){0!==this.currentIndex&&this.currentIndex!==this.speechBubbleItems.length-1?this.speechBubble.style.opacity="0":this.speechBubble.style.opacity="1"},e.prototype.selectClosestRadio=function(){var t=this.getIndexForProgress();this.updateCurrentIndex(t),this.radioInputs[t].checked=!0},e.prototype.getIndexForProgress=function(){return be(ye(0,1,this.progress,0,this.radioInputs.length-1),1)},e})(Lt).register(".radio-slider");var Ee=function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])})(e,n)};return function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}();(function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Ee(e,t),e.prototype.onInit=function(){this.getParentChoice(),this.getFormField(),this.disableFormField(),this.registerListeners()},e.prototype.getParentChoice=function(){var t=this.host.closest(".radio");this.parentChoice=xt.get(t.dataset.componentId)},e.prototype.getFormField=function(){var t=this,e=this.host.querySelector(".select-field"),n=this.host.querySelector(".input-field__input");e?(this.formField=e.querySelector(".select-field__button"),e.addEventListener("change",(function(){t.parentChoice.check()}))):n&&(this.formField=n,n.addEventListener("change",(function(){t.parentChoice.check()})))},e.prototype.registerListeners=function(){var t=this;this.parentChoice.onChecked.subscribe((function(){t.enableFormField()})),this.parentChoice.onUnchecked.subscribe((function(){t.disableFormField()}))},e.prototype.enableFormField=function(){this.formField.setAttribute("aria-hidden","false"),this.formField.tabIndex=0},e.prototype.disableFormField=function(){this.formField.setAttribute("aria-hidden","true"),this.formField.tabIndex=-1},e})(Lt).register(".radio__subfield");var Se=function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])})(e,n)};return function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}();(function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.onChecked=new pt,e.onUnchecked=new pt,e}return Se(e,t),Object.defineProperty(e.prototype,"isChecked",{get:function(){return this.radioInput.checked},enumerable:!1,configurable:!0}),e.prototype.onInit=function(){var t=this;this.radioInput=this.host.querySelector(".radio__input"),this.checkmarkElement=this.host.querySelector(".radio__checkmark"),this.radioInput.addEventListener("change",(function(){return t.check()})),this.radioInput.addEventListener("focus",(function(){return t.focus()})),this.isChecked&&this.check(),yt.onFocusChange.subscribe((function(e){t.radioInput===e.target&&t.focus()}))},e.prototype.focus=function(){this.checkmarkElement&&yt.showFocusAt(this.checkmarkElement,{padding:3})},e.prototype.check=function(){this.radioInput.checked=!0,this.onChecked.next()},e.prototype.uncheck=function(){this.radioInput.checked=!1,this.onUnchecked.next()},e})(Lt).register(".radio");var Te=function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])})(e,n)};return function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}();(function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.SELECTED_CLASS="radio-box--selected",e}return Te(e,t),Object.defineProperty(e.prototype,"isChecked",{get:function(){return this.radioInput.checked},enumerable:!1,configurable:!0}),e.prototype.onInit=function(){this.getElements(),this.textInput&&this.disableSubfield(),this.radioInput.checked&&this.check(),this.registerListeners(),this.registerA11yListeners()},e.prototype.getElements=function(){this.radioInput=this.host.querySelector(".radio__input"),this.textInput=this.host.querySelector(".input-field__input"),this.subfieldWrapper=this.host.querySelector(".radio-box__subfield")},e.prototype.registerListeners=function(){var t,e=this;null===(t=this.textInput)||void 0===t||t.addEventListener("input",(function(){return e.onTextInputChange()})),this.host.addEventListener("click",(function(){e.check()}))},e.prototype.onTextInputChange=function(){var t;(null===(t=this.textInput)||void 0===t?void 0:t.value.length)>0&&this.check()},e.prototype.registerA11yListeners=function(){var t=this;this.radioInput.addEventListener("focus",(function(){return t.focus()})),yt.onFocusChange.subscribe((function(e){e.target===t.radioInput&&t.focus()}))},e.prototype.focus=function(){yt.showFocusAt(this.host)},e.prototype.check=function(){this.host.classList.add(this.SELECTED_CLASS),this.radioInput.checked=!0,this.textInput&&this.enableSubfield(),this.host.dispatchEvent(new CustomEvent("radiochange",{bubbles:!0,detail:{target:this}}))},e.prototype.uncheck=function(){this.host.classList.remove(this.SELECTED_CLASS),this.radioInput.checked=!1,this.textInput&&this.disableSubfield()},e.prototype.enableSubfield=function(){this.textInput.tabIndex=0,this.textInput.setAttribute("aria-disabled","false"),this.subfieldWrapper.setAttribute("aria-hidden","false")},e.prototype.disableSubfield=function(){this.textInput.tabIndex=-1,this.textInput.setAttribute("aria-disabled","true"),this.subfieldWrapper.setAttribute("aria-hidden","true")},e})(Lt).register(".radio-box");var Ie=function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])})(e,n)};return function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}();(function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.radios=[],e.onChange=new pt({target:null}),e}return Ie(e,t),e.prototype.onInit=function(){this.getRadios(),this.registerListeners()},e.prototype.getRadios=function(){var t=this;this.host.querySelectorAll(".radio").forEach((function(e){var n=xt.get(e.dataset.componentId);n&&t.radios.push(n)}))},e.prototype.registerListeners=function(){var t=this;this.radios.forEach((function(e){e.isChecked&&(t.current=e),e.onChecked.subscribe((function(){var n;e!==t.current&&(null===(n=t.current)||void 0===n||n.uncheck(),t.current=e,t.onChange.next({target:t.current}))}),!0)}))},e})(Lt).register(".radio-field");var Le=function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])})(e,n)};return function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}();(function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Le(e,t),e.prototype.onInit=function(){var t=this;this.getElements(),this.input.addEventListener("focus",(function(){return t.focus()})),yt.onFocusChange.subscribe((function(e){t.input===e.target&&t.focus()}))},e.prototype.getElements=function(){this.input=this.host.querySelector(".checkbox__input"),this.checkmarkElement=this.host.querySelector(".checkbox__checkmark"),this.errorElement=this.host.querySelector(".form-field__error"),this.errorElement&&this.linkErrorText()},e.prototype.linkErrorText=function(){var t="error_"+this.id;this.errorElement.setAttribute("id",t),this.input.setAttribute("aria-describedby",t)},e.prototype.focus=function(){this.checkmarkElement&&yt.showFocusAt(this.checkmarkElement,{padding:3})},e})(Lt).register(".checkbox");var Oe=function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])})(e,n)};return function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}();(function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Oe(e,t),e.prototype.calculatePath=function(t,e,n){void 0===e&&(e=236),void 0===n&&(n=236);var r=Math.floor(t/25),o=t%25/25,i=["L"+e*o+",0","L"+e+","+n*o,"L"+(1-o)*e+","+n,"L0,"+(1-o)*n,""];return"M"+e/2+", "+n/2+" L0,0 "+["L"+e+",0","L"+e+","+n,"L0,"+n,"L0,0"].slice(0,r).join("")+" "+i[r]+" z"},e.prototype.onInit=function(){var t=this,e=this.host.getAttribute("data-id");if(e){var n=parseInt(this.host.getAttribute("data-animated"),10),r=this.host.querySelector("#time_mask_path-"+e),o=parseInt(this.host.getAttribute("data-time"),10),i=this.host.querySelector("#place_mask_path-"+e),s=parseInt(this.host.getAttribute("data-places"),10),a=this.host.querySelector(".project-progress__text");if(n){r.setAttribute("d",this.calculatePath(100)),i.setAttribute("d",this.calculatePath(100)),a.textContent="0%";var c=new IntersectionObserver((function(e,u){if(e[0].isIntersecting){var l=performance.now(),h=function(){var e=performance.now(),c=lt(Math.min((e-l)/n,1)),u=(100-o)*(1-c),p=(100-s)*(1-c);r.setAttribute("d",t.calculatePath(o+u)),i.setAttribute("d",t.calculatePath(s+p)),a.textContent=Math.round((100-s)*c)+"%",c<1&&requestAnimationFrame(h)};requestAnimationFrame(h),c.disconnect()}}),{threshold:1});c.observe(this.host)}else r.setAttribute("d",this.calculatePath(o)),i.setAttribute("d",this.calculatePath(s)),a.textContent=100-s+"%"}},e})(Lt).register(".project-progress");var xe=function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])})(e,n)};return function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}();function Ae(t,e,n){var r=new Date;r.setTime(r.getTime()+24*n*60*60*1e3);var o="expires="+r.toUTCString();document.cookie=t+"="+e+";"+o+";path=/"}function Ce(t){for(var e=t+"=",n=decodeURIComponent(document.cookie).split(";"),r=0;r<n.length;r++){for(var o=n[r];" "==o.charAt(0);)o=o.substring(1);if(0==o.indexOf(e))return o.substring(e.length,o.length)}return""}(function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.done=!1,e}return xe(e,t),e.prototype.onInit=function(){var t=this,e=document.createElement("script");e.src="https://www.youtube.com/iframe_api";var n=document.getElementsByTagName("script")[0];n.parentNode.insertBefore(e,n);var r=this.host.querySelector("#player"),o=r.getAttribute("data-video");window.onYouTubeIframeAPIReady=function(){t.player=new YT.Player(r,{height:"360",width:"240",videoId:o,playerVars:{modestbranding:1,rel:0,showinfo:0}})}},e})(Lt).register(".home-video");var ke,Pe=-1!==navigator.userAgent.indexOf("MSIE")||navigator.appVersion.indexOf("Trident/")>-1;
/*!
* focus-trap 6.5.1
* @license MIT, https://github.com/focus-trap/focus-trap/blob/master/LICENSE
*/function je(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function Fe(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var De,Me=(De=[],{activateTrap:function(t){if(De.length>0){var e=De[De.length-1];e!==t&&e.pause()}var n=De.indexOf(t);-1===n||De.splice(n,1),De.push(t)},deactivateTrap:function(t){var e=De.indexOf(t);-1!==e&&De.splice(e,1),De.length>0&&De[De.length-1].unpause()}}),Ne=function(t){return setTimeout(t,0)},qe=function(t,e){var n=-1;return t.every((function(t,r){return!e(t)||(n=r,!1)})),n},Re=function(t){for(var e=arguments.length,n=new Array(e>1?e-1:0),r=1;r<e;r++)n[r-1]=arguments[r];return"function"==typeof t?t.apply(void 0,n):t},Be=function(t,e){var n,r=document,o=function(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?je(Object(n),!0).forEach((function(e){Fe(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):je(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}({returnFocusOnDeactivate:!0,escapeDeactivates:!0,delayInitialFocus:!0},e),i={containers:[],tabbableGroups:[],nodeFocusedBeforeActivation:null,mostRecentlyFocusedNode:null,active:!1,paused:!1},s=function(t,e,n){return t&&void 0!==t[e]?t[e]:o[n||e]},a=function(t){return i.containers.some((function(e){return e.contains(t)}))},c=function(t){var e=o[t];if(!e)return null;var n=e;if("string"==typeof e&&!(n=r.querySelector(e)))throw new Error("`".concat(t,"` refers to no known node"));if("function"==typeof e&&!(n=e()))throw new Error("`".concat(t,"` did not return a node"));return n},u=function(){var t;if(null!==c("initialFocus"))t=c("initialFocus");else if(a(r.activeElement))t=r.activeElement;else{var e=i.tabbableGroups[0];t=e&&e.firstTabbableNode||c("fallbackFocus")}if(!t)throw new Error("Your focus-trap needs to have at least one focusable element");return t},l=function(){if(i.tabbableGroups=i.containers.map((function(t){var e=Qt(t);if(e.length>0)return{container:t,firstTabbableNode:e[0],lastTabbableNode:e[e.length-1]}})).filter((function(t){return!!t})),i.tabbableGroups.length<=0&&!c("fallbackFocus"))throw new Error("Your focus-trap must have at least one container with at least one tabbable node in it at all times")},h=function t(e){e!==r.activeElement&&(e&&e.focus?(e.focus({preventScroll:!!o.preventScroll}),i.mostRecentlyFocusedNode=e,function(t){return t.tagName&&"input"===t.tagName.toLowerCase()&&"function"==typeof t.select}(e)&&e.select()):t(u()))},p=function(t){var e=c("setReturnFocus");return e||t},f=function(t){a(t.target)||(Re(o.clickOutsideDeactivates,t)?n.deactivate({returnFocus:o.returnFocusOnDeactivate&&!Jt(t.target)}):Re(o.allowOutsideClick,t)||t.preventDefault())},d=function(t){var e=a(t.target);e||t.target instanceof Document?e&&(i.mostRecentlyFocusedNode=t.target):(t.stopImmediatePropagation(),h(i.mostRecentlyFocusedNode||u()))},v=function(t){if(!1!==o.escapeDeactivates&&function(t){return"Escape"===t.key||"Esc"===t.key||27===t.keyCode}(t))return t.preventDefault(),void n.deactivate();(function(t){return"Tab"===t.key||9===t.keyCode})(t)&&function(t){l();var e=null;if(i.tabbableGroups.length>0){var n=qe(i.tabbableGroups,(function(e){return e.container.contains(t.target)}));if(n<0)e=t.shiftKey?i.tabbableGroups[i.tabbableGroups.length-1].lastTabbableNode:i.tabbableGroups[0].firstTabbableNode;else if(t.shiftKey){var r=qe(i.tabbableGroups,(function(e){var n=e.firstTabbableNode;return t.target===n}));if(r<0&&i.tabbableGroups[n].container===t.target&&(r=n),r>=0){var o=0===r?i.tabbableGroups.length-1:r-1;e=i.tabbableGroups[o].lastTabbableNode}}else{var s=qe(i.tabbableGroups,(function(e){var n=e.lastTabbableNode;return t.target===n}));if(s<0&&i.tabbableGroups[n].container===t.target&&(s=n),s>=0){var a=s===i.tabbableGroups.length-1?0:s+1;e=i.tabbableGroups[a].firstTabbableNode}}}else e=c("fallbackFocus");e&&(t.preventDefault(),h(e))}(t)},y=function(t){Re(o.clickOutsideDeactivates,t)||a(t.target)||Re(o.allowOutsideClick,t)||(t.preventDefault(),t.stopImmediatePropagation())},m=function(){if(i.active)return Me.activateTrap(n),ke=o.delayInitialFocus?Ne((function(){h(u())})):h(u()),r.addEventListener("focusin",d,!0),r.addEventListener("mousedown",f,{capture:!0,passive:!1}),r.addEventListener("touchstart",f,{capture:!0,passive:!1}),r.addEventListener("click",y,{capture:!0,passive:!1}),r.addEventListener("keydown",v,{capture:!0,passive:!1}),n},g=function(){if(i.active)return r.removeEventListener("focusin",d,!0),r.removeEventListener("mousedown",f,!0),r.removeEventListener("touchstart",f,!0),r.removeEventListener("click",y,!0),r.removeEventListener("keydown",v,!0),n};return(n={activate:function(t){if(i.active)return this;var e=s(t,"onActivate"),n=s(t,"onPostActivate"),o=s(t,"checkCanFocusTrap");o||l(),i.active=!0,i.paused=!1,i.nodeFocusedBeforeActivation=r.activeElement,e&&e();var a=function(){o&&l(),m(),n&&n()};return o?(o(i.containers.concat()).then(a,a),this):(a(),this)},deactivate:function(t){if(!i.active)return this;clearTimeout(ke),g(),i.active=!1,i.paused=!1,Me.deactivateTrap(n);var e=s(t,"onDeactivate"),r=s(t,"onPostDeactivate"),o=s(t,"checkCanReturnFocus");e&&e();var a=s(t,"returnFocus","returnFocusOnDeactivate"),c=function(){Ne((function(){a&&h(p(i.nodeFocusedBeforeActivation)),r&&r()}))};return a&&o?(o(p(i.nodeFocusedBeforeActivation)).then(c,c),this):(c(),this)},pause:function(){return i.paused||!i.active||(i.paused=!0,g()),this},unpause:function(){return i.paused&&i.active?(i.paused=!1,l(),m(),this):this},updateContainerElements:function(t){var e=[].concat(t).filter(Boolean);return i.containers=e.map((function(t){return"string"==typeof t?r.querySelector(t):t})),i.active&&l(),this}}).updateContainerElements(t),n},He=function(){function t(){!function(){if("remove"in Element.prototype||(Element.prototype.remove=function(){this.parentNode&&this.parentNode.removeChild(this)}),"content"in document.createElement("template"))return!1;for(var t=document.getElementsByTagName("template"),e=t.length,n=0;n<e;++n){for(var r=t[n],o=r.childNodes,i=document.createDocumentFragment();o[0];)i.appendChild(o[0]);r.content=i}}()}return t.getInstance=function(){return t.instance||(t.instance=new t),t.instance},t.prototype._createOverlayElements=function(){if(!document.getElementById("overlay")){var t=document.getElementById("overlay-template"),e=document.importNode(t.content,!0);document.body.appendChild(e),this.overlayContent=document.querySelector("#overlay .overlay__content")}},t.prototype._loadContent=function(t,e){var n=this;this._createOverlayElements();var r=new XMLHttpRequest;r.open("GET",t),r.setRequestHeader("X-Requested-With","XMLHttpRequest"),r.onload=function(){if(200===r.status){var t=document.createElement("div");t.innerHTML=r.responseText;var o=e?t.querySelector(e):t;n.overlayContent.innerHTML=o.innerHTML,t.remove(),n._attachListeners()}},r.send()},t.prototype._attachListeners=function(){var t=this;this.focusTrap=Be(document.getElementById("overlay"),{onDeactivate:function(){document.getElementById("overlay").remove()}}),window.requestAnimationFrame((function(){t.focusTrap.activate()}));for(var e=document.querySelectorAll('[data-js="close-overlay"]'),n=this.overlayContent.querySelectorAll("form"),r=0;r<e.length;r++){e[r].addEventListener("click",(function(e){e.preventDefault(),t.focusTrap.deactivate()}))}for(r=0;r<n.length;r++){n[r].addEventListener("submit",(function(e){e.preventDefault(),t._submitOverlayForm(e.currentTarget)}))}document.querySelector("#overlay .overlay-shadow").addEventListener("click",(function(){return t.focusTrap.deactivate()}))},t.prototype._submitOverlayForm=function(t){var e=this,n=new FormData(t),r=t.getAttribute("method")||"POST",o=t.getAttribute("action"),i=new XMLHttpRequest;i.open(r,o),i.setRequestHeader("X-Requested-With","XMLHttpRequest"),i.onload=function(){if(200===i.status)if("application/json"===i.getResponseHeader("Content-Type")){var t=JSON.parse(i.response);window.location.href=t.redirect_url}else e.overlayContent.innerHTML=i.response,e._attachListeners()},i.send(n)},t.prototype.loadUrl=function(t,e){this._loadContent(t,e)},t.prototype.loadTemplate=function(t){if(document.getElementById(t)){this._createOverlayElements();for(var e=document.getElementById(t),n=document.importNode(e.content,!0),r=n.querySelectorAll("[data-component-id]"),o=0;o<r.length;o++)r[o].removeAttribute("data-component-id");this.overlayContent.appendChild(n),this._attachListeners()}},t}(),Ue=new(function(){function t(){var t=this;this.cookieName="ubs-privacy-accepted",this.wasPolicyAccepted()||document.addEventListener("DOMContentLoaded",(function(){t.createPrivacyBanner(),t.setListeners(),t.setupA11y(),t.attachPrivacyBanner(),t.showPrivayBanner()}))}return t.prototype.wasPolicyAccepted=function(){return"true"===Ce(this.cookieName)},t.prototype.createPrivacyBanner=function(){this.host=document.createElement("div");var t=document.getElementById("privacy-banner-template");if(t){var e=document.importNode(t.content,!0);this.host.appendChild(e)}},t.prototype.attachPrivacyBanner=function(){document.body.prepend(this.host)},t.prototype.setListeners=function(){var t=this;this.acceptButton=this.host.querySelector(".privacy-content__btn"),this.acceptButton.addEventListener("click",(function(){t.acceptPrivacyPolicy()})),Pe&&this.host.querySelector('[data-js="open-privacy-settings"]').addEventListener("click",(function(){He.getInstance().loadTemplate("privacy-settings-template")}))},t.prototype.setupA11y=function(){this.focusTrap=Be(this.host,{allowOutsideClick:!0}),this.focusTrap.activate()},t.prototype.acceptPrivacyPolicy=function(){var t;Ae(this.cookieName,"true",365),this.hidePrivacyBanner(),null===(t=this.focusTrap)||void 0===t||t.deactivate(),this.host.parentNode.removeChild(this.host)},t.prototype.showPrivayBanner=function(){document.body.classList.add("privacy-banner-visible")},t.prototype.hidePrivacyBanner=function(){document.body.classList.remove("privacy-banner-visible")},t}());[Element.prototype,Document.prototype,DocumentFragment.prototype].forEach((function(t){t.hasOwnProperty("prepend")||Object.defineProperty(t,"prepend",{configurable:!0,enumerable:!0,writable:!0,value:function(){var t=Array.prototype.slice.call(arguments),e=document.createDocumentFragment();t.forEach((function(t){var n=t instanceof Node;e.appendChild(n?t:document.createTextNode(String(t)))})),this.insertBefore(e,this.firstChild)}})}));var We=new(function(){function t(){}return Object.defineProperty(t.prototype,"allowStatistics",{get:function(){var t=Ce("sat_track");return t?"true"==t:(Ae("sat_track","true",365),!0)},set:function(t){var e=this.allowStatistics;Ae("sat_track",t.toString(),365),e!=t&&window.location.reload()},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"allowUserPreferences",{get:function(){var t=Ce("user_preference");return t?"true"==t:(Ae("user_preference","true",365),!0)},set:function(t){Ae("user_preference",t.toString(),365)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"allowMarketing",{get:function(){var t=Ce("allow_marketing");return t?"true"==t:(Ae("allow_marketing","true",365),!0)},set:function(t){Ae("allow_marketing",t.toString(),365)},enumerable:!1,configurable:!0}),t.prototype.satelliteTrack=function(t,e){var n=this;return this.allowStatistics&&"undefined"!=typeof _satellite?(_satellite.track(t,e||{}),!0):!(!this.allowStatistics||this.trackingLoadedInterval)&&(this.trackingLoadedInterval=setInterval((function(){"undefined"!=typeof _satellite&&(clearInterval(n.trackingLoadedInterval),n.satelliteTrack(t))}),1e3),!0)},t}());We.satelliteTrack("Site Page View");var Xe=function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])})(e,n)};return function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}();(function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Xe(e,t),e.prototype.setUpListeners=function(){var t=this;this.host.querySelector("#data-privacy__checkall").addEventListener("click",this.checkAll.bind(this)),this.host.querySelector("#data-privacy__submit").addEventListener("click",this.submit.bind(this));for(var e=this.host.querySelectorAll('.privacy-settings input[type="checkbox"]'),n=0;n<e.length;n++){e[n].addEventListener("change",(function(){t.updateRequirements()}))}},e.prototype.updateRequirements=function(){this.allowStatisticsInput.checked?this.allowMarketingInput.removeAttribute("disabled"):(this.allowMarketingInput.checked=!1,this.allowMarketingInput.setAttribute("disabled","disabled"))},e.prototype.setInitial=function(){We.allowStatistics&&this.allowStatisticsInput.setAttribute("checked","checked"),We.allowUserPreferences&&this.allowUserPreferencesInput.setAttribute("checked","checked"),We.allowMarketing&&this.allowMarketingInput.setAttribute("checked","checked"),this.updateRequirements()},e.prototype.onInit=function(){this.allowStatisticsInput=this.host.querySelector('.privacy-settings__setting input[name="privacy_statistics"]'),this.allowUserPreferencesInput=this.host.querySelector('.privacy-settings__setting input[name="privacy_user_preferences"]'),this.allowMarketingInput=this.host.querySelector('.privacy-settings__setting input[name="privacy_marketing"]'),this.setUpListeners(),this.setInitial()},e.prototype.checkAll=function(){this.allowStatisticsInput.checked=!0,this.allowUserPreferencesInput.checked=!0,this.allowMarketingInput.checked=!0,this.submit()},e.prototype.submit=function(){var t=this;We.allowStatistics=this.allowStatisticsInput.checked,We.allowUserPreferences=this.allowUserPreferencesInput.checked,We.allowMarketing=this.allowMarketingInput.checked;var e=He.getInstance();Ue.acceptPrivacyPolicy(),setTimeout((function(){e.focusTrap.deactivate(),t.alertSavedSuccessfully()}),250)},e.prototype.alertSavedSuccessfully=function(){var t=document.getElementById("privacy-settings-alert"),e=document.importNode(t.content,!0),n=document.createElement("div");n.appendChild(e);var r=document.querySelector(".alert-outlet");null==r||r.appendChild(n),setTimeout((function(){null==r||r.removeChild(n)}),1e3)},e})(Lt).register(".data-privacy"),function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Xe(e,t),e.prototype.openOverlay=function(){He.getInstance().loadTemplate("privacy-settings-template")},e.prototype.onInit=function(){this.host.addEventListener("click",this.openOverlay.bind(this))},e}(Lt).register('[data-js="open-privacy-settings"]');for(var ze=document.querySelectorAll(".btn, .nav-list__link,.footer-nav__link,.home-engagement__container"),Ve=function(t){var e=ze[t];ze[t].addEventListener("click",(function(){var t=e.textContent,n=e.querySelector("p");e.dataset.ctaName?t=e.dataset.ctaName:n&&(t=n.textContent),digitalData.CTAClick={},digitalData.CTAClick.CTAName=t,digitalData.CTAClick.CTALink=e.getAttribute("href"),We.satelliteTrack("Site CTA Click",digitalData.CTAClick)}))},Ye=0;Ye<ze.length;Ye++)Ve(Ye);var Ge=document.querySelectorAll("a[href]"),Ke=function(t){var e=Ge[t];e.addEventListener("click",(function(){var t=e.getAttribute("href");t.startsWith("/de")||t.startsWith("/fr")||t.startsWith("/it")||t.startsWith("/en")||(t.startsWith("#")?(digitalData.anchor={},digitalData.anchor.text=e.textContent,We.satelliteTrack("Site Anchor Link Click",digitalData.anchor)):t.indexOf(window.location.host)<0&&(digitalData.ExitLink={},digitalData.ExitLink.ExitURL=t,We.satelliteTrack("Site Exit Link",digitalData.ExitLink)))}))};for(Ye=0;Ye<Ge.length;Ye++)Ke(Ye);var Qe=function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])})(e,n)};return function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}();(function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.hasInteracted=!1,e}return Qe(e,t),e.prototype.logFirstInteraction=function(){this.hasInteracted||"1"!=this.formStepNumber||(this.hasInteracted=!0,We.satelliteTrack("Site Form Start",digitalData.form),We.satelliteTrack("Site Form Step View",digitalData.form))},e.prototype.onInit=function(){var t=this,e=this.host.querySelectorAll("input");if(this.formName=this.host.getAttribute("data-form-name"),this.formStepName=this.host.getAttribute("data-form-step-name"),this.formStepNumber=this.host.getAttribute("data-form-step-number")||"1",this.formName){digitalData.form={},digitalData.form.formName=this.formName,digitalData.form.formStepName=this.formStepName,"1"!=this.formStepNumber&&We.satelliteTrack("Site Form Step View",digitalData.form);for(var n=0;n<e.length;n++){var r=e[n];r.addEventListener("keydown",(function(){t.logFirstInteraction()})),r.addEventListener("click",(function(){t.logFirstInteraction()}))}}},e})(Lt).register("form");var $e=!1;window.addEventListener("scroll",(function(){if(!$e){var t=We.satelliteTrack("Site Scroll Tracking");$e=t}}));var Je=function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])})(e,n)};return function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}();(function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.isOpen=!1,e.buttonHasFocus=!1,e}return Je(e,t),e.prototype.onInit=function(){var t=this;this.iconButton=this.host.querySelector(".flyout__button"),this.contentElement=this.host.querySelector(".flyout__content"),this.iconButton.tabIndex=0,this.iconButton.setAttribute("aria-expanded","false"),this.iconButton.setAttribute("aria-controls",this.contentElement.id),this.contentElement.tabIndex=-1,this.iconButton.addEventListener("click",(function(e){t.buttonHasFocus&&(e.preventDefault(),e.stopPropagation(),t.toggle())})),this.host.addEventListener("keydown",(function(e){"Escape"===e.code&&(t.close(),t.iconButton.focus())})),this.contentElement.addEventListener("blur",(function(){t.close()})),yt.onFocusChange.subscribe((function(e){e.target===t.iconButton?t.focus():t.buttonHasFocus=!1}))},e.prototype.toggle=function(){this.isOpen?this.close():this.open()},e.prototype.open=function(){var t;this.host.classList.add("flyout--open"),this.iconButton.setAttribute("aria-expanded","true"),this.contentElement.tabIndex=0,this.contentElement.focus(),null===(t=He.getInstance().focusTrap)||void 0===t||t.pause(),this.isOpen=!0},e.prototype.close=function(){var t;this.host.classList.remove("flyout--open"),this.iconButton.setAttribute("aria-expanded","false"),this.contentElement.tabIndex=-1,null===(t=He.getInstance().focusTrap)||void 0===t||t.unpause(),this.isOpen=!1},e.prototype.focus=function(){yt.showFocusAt(this.iconButton,{padding:3}),this.buttonHasFocus=!0},e})(Lt).register(".flyout");var Ze=function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])})(e,n)};return function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}();(function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Ze(e,t),e.prototype.onInit=function(){var t=this,e=He.getInstance();this.host.addEventListener("click",(function(n){n.target===t.host&&(n.preventDefault(),e.loadTemplate("recurring_project_signup"))}))},e})(Lt).register(".recurring_project_signup_btn");var tn=function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])})(e,n)};return function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}();(function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.isPlaying=!1,e.activeIndex=0,e.total=0,e}return tn(e,t),e.prototype.onInit=function(){this.controlElement=this.host.querySelector(".hero__control"),this.sliderElement=this.host.querySelector(".hero__background-slider"),this.activeIndex=parseInt(this.sliderElement.getAttribute("data-active"),0),this.total=this.sliderElement.querySelectorAll(".hero__background").length,this.registerListeners(),ft.getInstance().shouldNotAnimate()||this.play()},e.prototype.registerListeners=function(){var t=this;this.controlElement.addEventListener("click",(function(){t.toggle()}))},e.prototype.toggle=function(){this.isPlaying?this.pause():this.play()},e.prototype.play=function(){var t=this;this.isPlaying=!0,this.host.classList.add("hero--playing"),this.interval=setInterval((function(){t.isPlaying&&t.next()}),5e3)},e.prototype.next=function(){this.activeIndex=++this.activeIndex%this.total,this.sliderElement.setAttribute("data-active",this.activeIndex.toString())},e.prototype.pause=function(){this.isPlaying=!1,this.host.classList.remove("hero--playing"),clearInterval(this.interval)},e})(Lt).register(".hero");n(21);var en=function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])})(e,n)};return function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}();(function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return en(e,t),e.prototype.onInit=function(){this.hammerEl=new Nt(this.host),this.slideIndex=1,this.prevButton=this.host.querySelector(".gallery__icon--prev"),this.nextButton=this.host.querySelector(".gallery__icon--next"),this.showSlides(this.slideIndex),this.setUpListeners()},e.prototype.showSlides=function(t){this.slides=this.host.querySelectorAll(".gallery__image"),this.totalSlides=this.slides.length;for(var e=0;e<this.totalSlides;e++)this.slides[e].classList.remove("gallery__image--active","gallery__image--prev","gallery__image--next");t<1&&(t=this.totalSlides);var n=((t-1)%this.totalSlides!=0?(t-1)%this.totalSlides:this.totalSlides)-1,r=(t%this.totalSlides!=0?t%this.totalSlides:this.totalSlides)-1,o=((t+1)%this.totalSlides!=0?(t+1)%this.totalSlides:this.totalSlides)-1;this.slides[n].classList.add("gallery__image--prev"),this.slides[o].classList.add("gallery__image--next"),this.slides[r].classList.add("gallery__image--active"),this.host.querySelector(".gallery__item__number").innerHTML=r+1+"/"+this.totalSlides},e.prototype.setUpListeners=function(){var t=this;this.prevButton.addEventListener("click",(function(e){e.preventDefault(),t.slideIndex--,t.showSlides(t.slideIndex)})),this.nextButton.addEventListener("click",(function(e){e.preventDefault(),t.slideIndex++,t.showSlides(t.slideIndex)})),this.hammerEl.on("swiperight",(function(){t.slideIndex--,t.showSlides(t.slideIndex)})),this.hammerEl.on("swipeleft",(function(){t.slideIndex++,t.showSlides(t.slideIndex)}))},e})(Lt).register(".gallery");var nn=function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])})(e,n)};return function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}();(function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return nn(e,t),e.prototype.onInit=function(){var t=this;this.targetSelector=this.host.getAttribute("data-ajax-target"),this.targetEl=document.querySelector(this.targetSelector),this.host.addEventListener("click",(function(e){e.preventDefault(),t.loadMore(e.target.getAttribute("href"))}))},e.prototype.loadMore=function(t){var e=this,n=new XMLHttpRequest;n.onload=function(){if(n.status>=200&&n.status<300){for(var t=(new DOMParser).parseFromString(n.responseText,"text/html"),r=t.querySelectorAll(e.targetSelector+" .success_story_list__item"),o=0;o<r.length;o++)e.targetEl.appendChild(r[o]);var i=t.querySelector(e.targetSelector).getAttribute("data-next-page-url");i?e.host.setAttribute("href",i):e.host.parentNode.removeChild(e.host)}},n.open("GET",t),n.setRequestHeader("X-Requested-With","XMLHttpRequest"),n.send()},e})(Lt).register("[data-ajax-load-more]");var rn=function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])})(e,n)};return function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}();(function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.isOpen=!1,e}return rn(e,t),e.prototype.onInit=function(){var t=this;this.opener=this.host.querySelector(".language-switch__opener"),this.closer=this.host.querySelector(".language-switch__closer"),this.links=this.host.querySelectorAll(".language-link"),this.focusNavigator=new ne(this.links),window.addEventListener("keydown",(function(e){if(t.isOpen)switch(e.code){case"Escape":t.close(),t.opener.focus();break;case"ArrowUp":e.preventDefault(),e.stopPropagation(),t.focusNavigator.previous();break;case"ArrowDown":e.preventDefault(),e.stopPropagation(),t.focusNavigator.next()}})),yt.onFocusChange.subscribe((function(e){var n;e.target===t.opener&&yt.showFocusAt(t.opener,{padding:5}),(null===(n=e.target)||void 0===n?void 0:n.closest(".language-switch"))||t.close()})),this.opener.addEventListener("click",(function(){t.toggle()})),this.closer.addEventListener("click",this.close.bind(this))},e.prototype.toggle=function(){this.isOpen?this.close():this.open()},e.prototype.open=function(){this.host.classList.add("language-switch--open"),this.opener.tabIndex=-1,this.opener.setAttribute("aria-expanded","true"),this.isOpen=!0,this.focusSelectedLink()},e.prototype.focusSelectedLink=function(){var t=this;this.links.forEach((function(e){"true"===e.getAttribute("aria-checked")&&(e.focus(),t.focusNavigator.detectFocusedItem())}))},e.prototype.close=function(){this.host.classList.remove("language-switch--open"),this.opener.tabIndex=0,this.opener.setAttribute("aria-expanded","false"),this.isOpen=!1},e})(Lt).register(".language-switch");var on=function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])})(e,n)};return function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}();(function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return on(e,t),e.prototype.onInit=function(){var t=this,e=He.getInstance();this.host.addEventListener("click",(function(n){n.preventDefault(),e.loadUrl(t.host.getAttribute("href"))}))},e})(Lt).register(".photo-upload-btn");n(22);var sn=function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])})(e,n)};return function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}();(function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return sn(e,t),e.prototype.onInit=function(){var t=this;this.opener=this.host.querySelector(".search-toggler__opener"),this.closer=this.host.querySelector(".search-toggler__closer"),this.search=document.querySelector(".search"),this.searchInput=this.search.querySelector('input[name="q"]'),this.pathArray=window.location.pathname.split("/"),"search"!=this.pathArray[2]&&(this.opener.addEventListener("click",(function(e){t.host.classList.add("search-toggler--active"),t.search.classList.add("search--active"),t.searchInput.focus()})),this.closer.addEventListener("click",(function(e){t.search.classList.remove("search--active"),t.host.classList.remove("search-toggler--active"),t.searchInput.value=""})))},e})(Lt).register(".search-toggler")}]);