1(window.webpackJsonp=window.webpackJsonp||[]).push([[3],[,function(t,e,n){"use strict";n.d(e,"a",(function(){return s})),n.d(e,"b",(function(){return a})),n.d(e,"g",(function(){return l})),n.d(e,"c",(function(){return u})),n.d(e,"f",(function(){return f})),n.d(e,"e",(function(){return p})),n.d(e,"d",(function(){return v}));var i=n(0),r=n.n(i),o=n(2),s={BREAKPOINT_CHANGE:"BREAKPOINT_CHANGE",DOM_CHANGED:"DOM_CHANGED",YT_API_READY:"YT_API_READY",YT_INIT_VIDEO:"YT_INIT_VIDEO",YT_STOP_ALL_VIDEOS:"YT_STOP_ALL_VIDEOS",NAVI_SHOW:"NAVI_SHOW",NAVI_HIDE:"NAVI_HIDE",NAVI_SET_FIXED:"NAVI_SET_FIXED",NAVI_UNSET_FIXED:"NAVI_UNSET_FIXED",NAVI_TRANSITION_END:"NAVI_TRANSITION_END",STAGE_OFFSET_CHANGE:"STAGE_OFFSET_CHANGE",SEARCH_RESULT_REMOVE_EVENT_LISTENERS:"SEARCH_RESULT_REMOVE_EVENT_LISTENERS",SEARCH_RESULT_ADD_EVENT_LISTENERS:"SEARCH_RESULT_ADD_EVENT_LISTENERS",CONSENT_MANAGER_INITIALIZE:"CONSENT_MANAGER_INITIALIZE"},a=function(t){return"IBMIX:".concat(t)},c=null,l=function(){var t=n(48),e="";r()("h1, h2, h3, h4, h5, h6, p, blockquote, caption, figcaption, span, li").each((function(t,n){e+=n.textContent.replace(/\n/gim,"")}));var i=t(e),o=Math.round(i.minutes);r()("[data-reading-time]").each((function(t,e){var n=r()(e);n.text(n.attr("data-reading-time-text").replace(/{{time}}/gim,o))}))},u=function(){var t=document.querySelector('[data-js-atom="stage-offset-element"]');return t?t.getBoundingClientRect().left:0},h=function(){var t=document.querySelector("head"),e=Object(o.d)(),n=Object(o.f)();n!==e&&(r()(window).trigger(a(s.BREAKPOINT_CHANGE),[n,e]),t.setAttribute("data-js-last-breakpoint",e)),r()(window).trigger(a(s.STAGE_OFFSET_CHANGE),[u()])},d=Object(o.b)(h,50),f=function(t){t.setAttribute("data-js-last-breakpoint",void 0),window.addEventListener("resize",d),window.setTimeout((function(){h()}),250)},p=function(t){c=t;var e=t.querySelector('[data-js-item="sticky-event-inner"]').clientHeight,n=document.querySelector('[data-js-item="hide-sticky"]');g(),n&&window.addEventListener("scroll",m.bind(void 0,n,c,e),{passive:!0}),r()(window).on(a(s.STAGE_OFFSET_CHANGE),g)},g=function(t,e){c&&(c.style.paddingLeft="".concat(u(),"px"),c.style.maxWidth="calc(100% - ".concat(u(),"px)"))},m=Object(o.l)((function(t,e,n,i){var r=t.getBoundingClientRect().top+window.scrollY;window.scrollY+n+104>r?e.classList.remove("is-sticky"):e.classList.add("is-sticky")}),50);h();var v=function(t){var e=t.querySelector('[data-js-atom="copy-link-text"]'),n=e.textContent,i=t.getAttribute("data-text-copied"),r=window.location.origin;t.addEventListener("click",(function(t){t.preventDefault();var o=t.currentTarget,s=o.getAttribute("href");o.classList.add("is-copied"),e.innerHTML=i,navigator.clipboard.writeText(r+s),setTimeout((function(){o.classList.remove("is-copied"),e.innerHTML=n}),2e3)}))}},function(t,e,n){"use strict";function i(t){return(i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}n.d(e,"b",(function(){return r})),n.d(e,"l",(function(){return o})),n.d(e,"e",(function(){return s})),n.d(e,"d",(function(){return a})),n.d(e,"f",(function(){return c})),n.d(e,"c",(function(){return l})),n.d(e,"m",(function(){return u})),n.d(e,"j",(function(){return h})),n.d(e,"k",(function(){return d})),n.d(e,"g",(function(){return f})),n.d(e,"h",(function(){return p})),n.d(e,"i",(function(){return m})),n.d(e,"a",(function(){return v}));var r=function(t,e){var n;if("function"==typeof t)return function(){for(var i=arguments.length,r=new Array(i),o=0;o<i;o++)r[o]=arguments[o];var s=this;window.clearTimeout(n),n=window.setTimeout((function(){t.apply(s,r)}),e)}},o=function(t,e){if("function"==typeof t){var n=!0;return function(){var i=this;if(n){for(var r=arguments.length,o=new Array(r),s=0;s<r;s++)o[s]=arguments[s];t.apply(i,o),n=!1,window.setTimeout((function(){n=!0}),e)}}}},s=function(t,e){return(t.currentStyle||window.getComputedStyle(t))[e]||null},a=function(){return s(document.querySelector("head"),"fontFamily")||void 0},c=function(){var t=document.querySelector("head").getAttribute("data-js-last-breakpoint")||void 0;if("undefined"!==t)return t},l=function(t){var e=void 0;if(navigator.language&&(t&&(e=navigator.language||void 0),!t)){var n=(navigator.language||"").split("-");0!=n.length&&(e=n[0])}return e},u=function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"ibmix",i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:sessionStorage;if(i)return i.setItem("".concat(n,"_").concat(t),e),void 0!==h(t,n,i)},h=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"ibmix",n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:sessionStorage;if(n){var r=n.getItem("".concat(e,"_").concat(t));if(void 0!==i(r))return r}},d=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"ibmix",n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:sessionStorage;return!!n&&(n.removeItem("".concat(e,"_").concat(t)),void 0===h(t,e,n))},f=function(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=t.getBoundingClientRect();if(t&&n){var i=g(t),r=i.x,o=i.y,s=(i.z,getComputedStyle&&getComputedStyle(t)||!1),a=s&&parseFloat((s.marginTop||"0").replace("px","")),c=s&&parseFloat((s.marginLeft||"0").replace("px","")),l=s&&parseFloat((s.marginRight||"0").replace("px","")),u=s&&parseFloat((s.marginBottom||"0").replace("px","")),h=n.top-o-a>=0&&n.top-o-a<=(window.innerHeight||document.documentElement.clientHeight),d=n.left-r-c>=0,f=n.right-r-l<=(window.innerWidth||document.documentElement.clientWidth),p=n.bottom-o-u<=(window.innerHeight||document.documentElement.clientHeight)&&n.bottom-o-u>=0;return e?h&&f&&p&&d:!e&&(h&&d&&f||p&&d&&f)}return!1},p=function(t,e,n){return n<t?t:n>e?e:n},g=function(t){var e=window.getComputedStyle(t),n=e.transform||e.webkitTransform||e.mozTransform;if("none"===n||void 0===n)return{x:0,y:0,z:0};var i=n.includes("3d")?"3d":"2d",r=n.match(/matrix.*\((.+)\)/)[1].split(", ");return"2d"===i?{x:r[4],y:r[5],z:0}:"3d"===i?{x:r[12],y:r[13],z:r[14]}:void 0},m=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:10;return Math.random().toString(36).substring(2,t+2)},v=function(t){return Array.isArray(t)?t.filter((function(e,n){return t.indexOf(e)===n})):t}},,,,function(t,e,n){"use strict";var i=n(12),r=Object.keys||function(t){var e=[];for(var n in t)e.push(n);return e};t.exports=h;var o=Object.create(n(10));o.inherits=n(7);var s=n(25),a=n(22);o.inherits(h,s);for(var c=r(a.prototype),l=0;l<c.length;l++){var u=c[l];h.prototype[u]||(h.prototype[u]=a.prototype[u])}function h(t){if(!(this instanceof h))return new h(t);s.call(this,t),a.call(this,t),t&&!1===t.readable&&(this.readable=!1),t&&!1===t.writable&&(this.writable=!1),this.allowHalfOpen=!0,t&&!1===t.allowHalfOpen&&(this.allowHalfOpen=!1),this.once("end",d)}function d(){this.allowHalfOpen||this._writableState.ended||i.nextTick(f,this)}function f(t){t.end()}Object.defineProperty(h.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),Object.defineProperty(h.prototype,"destroyed",{get:function(){return void 0!==this._readableState&&void 0!==this._writableState&&(this._readableState.destroyed&&this._writableState.destroyed)},set:function(t){void 0!==this._readableState&&void 0!==this._writableState&&(this._readableState.destroyed=t,this._writableState.destroyed=t)}}),h.prototype._destroy=function(t,e){this.push(null),this.end(),i.nextTick(e,t)}},function(t,e){"function"==typeof Object.create?t.exports=function(t,e){e&&(t.super_=e,t.prototype=Object.create(e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}))}:t.exports=function(t,e){if(e){t.super_=e;var n=function(){};n.prototype=e.prototype,t.prototype=new n,t.prototype.constructor=t}}},function(t,e,n){"use strict";n.d(e,"a",(function(){return g})),n.d(e,"b",(function(){return m}));var i=n(0),r=n.n(i),o=n(1),s="c51",a="c23",c=25,l="is-consent-manager-open",u="is-consent-accepted-",h="consentStatus",d="userChoiceExists",f="showScreenAdvanced",p="showScreen",g="data-js-replace-with";function m(t){var e=t.querySelector('[data-js-atom="external-content-placeholder"]');if(e){var n=e.textContent||e.innerHTML,i=t.querySelector('[data-js-atom="show-external-content-link"]'),g=t.querySelector('[data-js-atom="show-cmp-overlay-link"]'),m=null,v=[s,a],y=function(t){t&&t.preventDefault(),window.__cmp(f)},b=function(){document.querySelector("body").classList.remove(l)},w=function(){document.querySelector("body").classList.add(l)},_=function(t){t.preventDefault(),O(t.target.getAttribute("data-js-consent-id"),!0)},E=function(){var t;if(!(window.__cmp(h)||{})[d])return t&&t.preventDefault(),void window.__cmp(p);L()},S=function(){window.__cmp("addEventListener",["consentscreenoff",b,!1],null),window.__cmp("addEventListener",["consentscreen",w,!1],null),window.__cmp("addEventListener",["consent",E,!1],null),window.__cmp("addEventListener",["
1settings",E,!1],null),window.__cmp("addEventListener",["consentapproved",x,!1],null),window.__cmp("addEventListener",["consentcustom",A,!1],null),L()},x=function(){O("ALL")},A=function(){L()},L=function(){var t=window.__cmp("getCMPData");t&&t.purposeConsents&&v.forEach((function(e){!0!==t.purposeConsents[e]&&!0!==t.purposeLI[e]||O(e)}))},O=function(e){var s=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if("ALL"===e||t.getAttribute("data-js-consent-id")===e){!0!==s&&document.body.classList.add("".concat(u).concat(e));var a=document.createRange().createContextualFragment(n),c=t.parentNode;i.removeEventListener("click",_),t.replaceWith(a),r()(window).trigger(Object(o.b)(o.a.DOM_CHANGED),[c])}};t&&n&&i&&(i.addEventListener("click",_),g.addEventListener("click",y)),m=window.setTimeout((function(){"function"==typeof window.__cmp&&(S(),window.clearTimeout(m),m=null)}),c)}}},function(t,e){var n,i,r=t.exports={};function o(){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===o||!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:o}catch(t){n=o}try{i="function"==typeof clearTimeout?clearTimeout:s}catch(t){i=s}}();var c,l=[],u=!1,h=-1;function d(){u&&c&&(u=!1,c.length?l=c.concat(l):h=-1,l.length&&f())}function f(){if(!u){var t=a(d);u=!0;for(var e=l.length;e;){for(c=l,l=[];++h<e;)c&&c[h].run();h=-1,e=l.length}c=null,u=!1,function(t){if(i===clearTimeout)return clearTimeout(t);if((i===s||!i)&&clearTimeout)return i=clearTimeout,clearTimeout(t);try{i(t)}catch(e){try{return i.call(null,t)}catch(e){return i.call(this,t)}}}(t)}}function p(t,e){this.fun=t,this.array=e}function g(){}r.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];l.push(new p(t,e)),1!==l.length||u||a(f)},p.prototype.run=function(){this.fun.apply(null,this.array)},r.title="browser",r.browser=!0,r.env={},r.argv=[],r.version="",r.versions={},r.on=g,r.addListener=g,r.once=g,r.off=g,r.removeListener=g,r.removeAllListeners=g,r.emit=g,r.prependListener=g,r.prependOnceListener=g,r.listeners=function(t){return[]},r.binding=function(t){throw new Error("process.binding is not supported")},r.cwd=function(){return"/"},r.chdir=function(t){throw new Error("process.chdir is not supported")},r.umask=function(){return 0}},function(t,e,n){function i(t){return Object.prototype.toString.call(t)}e.isArray=function(t){return Array.isArray?Array.isArray(t):"[object Array]"===i(t)},e.isBoolean=function(t){return"boolean"==typeof t},e.isNull=function(t){return null===t},e.isNullOrUndefined=function(t){return null==t},e.isNumber=function(t){return"number"==typeof t},e.isString=function(t){return"string"==typeof t},e.isSymbol=function(t){return"symbol"==typeof t},e.isUndefined=function(t){return void 0===t},e.isRegExp=function(t){return"[object RegExp]"===i(t)},e.isObject=function(t){return"object"==typeof t&&null!==t},e.isDate=function(t){return"[object Date]"===i(t)},e.isError=function(t){return"[object Error]"===i(t)||t instanceof Error},e.isFunction=function(t){return"function"==typeof t},e.isPrimitive=function(t){return null===t||"boolean"==typeof t||"number"==typeof t||"string"==typeof t||"symbol"==typeof t||void 0===t},e.isBuffer=n(21).Buffer.isBuffer},,function(t,e,n){"use strict";(function(e){void 0===e||!e.version||0===e.version.indexOf("v0.")||0===e.version.indexOf("v1.")&&0!==e.version.indexOf("v1.8.")?t.exports={nextTick:function(t,n,i,r){if("function"!=typeof t)throw new TypeError('"callback" argument must be a function');var o,s,a=arguments.length;switch(a){case 0:case 1:return e.nextTick(t);case 2:return e.nextTick((function(){t.call(null,n)}));case 3:return e.nextTick((function(){t.call(null,n,i)}));case 4:return e.nextTick((function(){t.call(null,n,i,r)}));default:for(o=new Array(a-1),s=0;s<o.length;)o[s++]=arguments[s];return e.nextTick((function(){t.apply(null,o)}))}}}:t.exports=e}).call(this,n(9))},,,,function(t,e,n){"use strict";n.d(e,"a",(function(){return r}));const i=t=>Math.max(t.offsetHeight,t.scrollHeight);
1class r{constructor(t={}){const e={content:t.viewport.children[0],direction:"all",pointerMode:"all",scrollMode:void 0,bounce:!0,bounceForce:.1,friction:.05,textSelection:!1,inputsFocus:!0,emulateScroll:!1,preventDefaultOnEmulateScroll:!1,preventPointerMoveDefault:!0,lockScrollOnDragDirection:!1,pointerDownPreventDefault:!0,dragDirectionTolerance:40,onPointerDown(){},onPointerUp(){},onPointerMove(){},onClick(){},onUpdate(){},onWheel(){},shouldScroll:()=>!0};if(this.props={...e,...t},!(this.props.viewport&&this.props.viewport instanceof Element))return void console.error('ScrollBooster init error: "viewport" config property must be present and must be Element');if(!this.props.content)return void console.error("ScrollBooster init error: Viewport does not have any content");this.isDragging=!1,this.isTargetScroll=!1,this.isScrolling=!1,this.isRunning=!1;const n={x:0,y:0};this.position={...n},this.velocity={...n},this.dragStartPosition={...n},this.dragOffset={...n},this.clientOffset={...n},this.dragPosition={...n},this.targetPosition={...n},this.scrollOffset={...n},this.rafID=null,this.events={},this.updateMetrics(),this.handleEvents()}updateOptions(t={}){this.props={...this.props,...t},this.props.onUpdate(this.getState()),this.startAnimationLoop()}updateMetrics(){var t;this.viewport={width:this.props.viewport.clientWidth,height:this.props.viewport.clientHeight},this.content={width:(t=this.props.content,Math.max(t.offsetWidth,t.scrollWidth)),height:i(this.props.content)},this.edgeX={from:Math.min(-this.content.width+this.viewport.width,0),to:0},this.edgeY={from:Math.min(-this.content.height+this.viewport.height,0),to:0},this.props.onUpdate(this.getState()),this.startAnimationLoop()}startAnimationLoop(){this.isRunning=!0,cancelAnimationFrame(this.rafID),this.rafID=requestAnimationFrame(()=>this.animate())}animate(){if(!this.isRunning)return;this.updateScrollPosition(),this.isMoving()||(this.isRunning=!1,this.isTargetScroll=!1);const t=this.getState();this.setContentPosition(t),this.props.onUpdate(t),this.rafID=requestAnimationFrame(()=>this.animate())}updateScrollPosition(){this.applyEdgeForce(),this.applyDragForce(),this.applyScrollForce(),this.applyTargetForce();const t=1-this.props.friction;this.velocity.x*=t,this.velocity.y*=t,"vertical"!==this.props.direction&&(this.position.x+=this.velocity.x),"horizontal"!==this.props.direction&&(this.position.y+=this.velocity.y),this.props.bounce&&!this.isScrolling||this.isTargetScroll||(this.position.x=Math.max(Math.min(this.position.x,this.edgeX.to),this.edgeX.from),this.position.y=Math.max(Math.min(this.position.y,this.edgeY.to),this.edgeY.from))}applyForce(t){this.velocity.x+=t.x,this.velocity.y+=t.y}applyEdgeForce(){if(!this.props.bounce||this.isDragging)return;const t=this.position.x<this.edgeX.from,e=this.position.x>this.edgeX.to,n=this.position.y<this.edgeY.from,i=this.position.y>this.edgeY.to,r=t||e,o=n||i;if(!r&&!o)return;const s=t?this.edgeX.from:this.edgeX.to,a=n?this.edgeY.from:this.edgeY.to,c=s-this.position.x,l=a-this.position.y,u={x:c*this.props.bounceForce,y:l*this.props.bounceForce},h=this.position.x+(this.velocity.x+u.x)/this.props.friction,d=this.position.y+(this.velocity.y+u.y)/this.props.friction;(t&&h>=this.edgeX.from||e&&h<=this.edgeX.to)&&(u.x=c*this.props.bounceForce-this.velocity.x),(n&&d>=this.edgeY.from||i&&d<=this.edgeY.to)&&(u.y=l*this.props.bounceForce-this.velocity.y),this.applyForce({x:r?u.x:0,y:o?u.y:0})}applyDragForce(){if(!this.isDragging)return;const t=this.dragPosition.x-this.position.x,e=this.dragPosition.y-this.position.y;this.applyForce({x:t-this.velocity.x,y:e-this.velocity.y})}applyScrollForce(){this.isScrolling&&(this.applyForce({x:this.scrollOffset.x-this.velocity.x,y:this.scrollOffset.y-this.velocity.y}),this.scrollOffset.x=0,this.scrollOffset.y=0)}applyTargetForce(){this.isTargetScroll&&this.applyForce({x:.08*(this.targetPosition.x-this.position.x)-this.velocity.x,y:.08*(this.targetPosition.y-this.position.y)-this.velocity.y})}isMoving(){return this.isDragging||this.isScrolling||Math.abs(this.velocity.x)>=.01||Math.abs(this.velocity.y)>=.01}scrollTo(t={}){this.isTargetScroll=!0,this.targetPosition.x=-t.x||0,this.targetPosition.y=-t.y||0,this.startAnimationLoop()}setPosition(t={}){this.velocity.x=0,this.velocity.y=0,this.position.x=-t.x||0,this.position.y=-t.y||0,this.startAnimationLoop()}getState(){return{isMoving:this.isMoving(),isDragging:!(!this.dragOffset.x&&!this.dragOffset.y),position:{x:-this.position.x,y:-this.position.y},dragOffset:this.dragOffset,dragAngle:this.getDragAngle(this.clientOffset.x,this.clientOffset.y),borderCollision:{left:this.position.x>=this.edgeX.to,right:this.position.x<=this.edgeX.from,top:this.position.y>=this.edgeY.to,bottom:this.position.y<=this.edgeY.from}}}getDragAngle(t,e){return Math.round(Math.atan2(t,e)*(180/Math.PI))}getDragDirection(t,e){return Math.abs(90-Math.abs(t))<=90-e?"horizontal":"vertical"}setContentPosition(t){"transform"===this.props.scrollMode&&(this.props.content.style.transform=`translate(${-t.position.x}px, ${-t.position.y}px)`),"native"===this.props.scrollMode&&(this.props.viewport.scrollTop=t.position.y,this.props.viewport.scrollLeft=t.position.x)}handleEvents(){const t={x:0,y:0},e={x:0,y:0};let n=null,i=null,r=!1;const o=i=>{if(!this.isDragging)return;const o=r?i.touches[0]:i,{pageX:s,pageY:a,clientX:c,clientY:l}=o;this.dragOffset.x=s-t.x,this.dragOffset.y=a-t.y,this.clientOffset.x=c-e.x,this.clientOffset.y=l-e.y,(Math.abs(this.clientOffset.x)>5&&!n||Math.abs(this.clientOffset.y)>5&&!n)&&(n=this.getDragDirection(this.getDragAngle(this.clientOffset.x,this.clientOffset.y),this.props.dragDirectionTolerance)),this.props.lockScrollOnDragDirection&&"all"!==this.props.lockScrollOnDragDirection?n===this.props.lockScrollOnDragDirection&&r?(this.dragPosition.x=this.dragStartPosition.x+this.dragOffset.x,this.dragPosition.y=this.dragStartPosition.y+this.dragOffset.y):r?(this.dragPosition.x=this.dragStartPosition.x,this.dragPosition.y=this.dragStartPosition.y):(this.dragPosition.x=this.dragStartPosition.x+this.dragOffset.x,this.dragPosition.y=this.dragStartPosition.y+this.dragOffset.y):(this.dragPosition.x=this.dragStartPosition.x+this.dragOffset.x,this.dragPosition.y=this.dragStartPosition.y+this.dragOffset.y)};this.events.pointerdown=n=>{r=!(!n.touches||!n.touches[0]),this.props.onPointerDown(this.getState(),n,r);const i=r?n.touches[0]:n,{pageX:s,pageY:a,clientX:c,clientY:l}=i,{viewport:u}=this.props,h=u.getBoundingClientRect();if(c-h.left>=u.clientLeft+u.clientWidth)return;if(l-h.top>=u.clientTop+u.clientHeight)return;if(!this.props.shouldScroll(this.getState(),n))return;if(2===n.button)return;if("mouse"===this.props.pointerMode&&r)return;if("touch"===this.props.pointerMode&&!r)return;if(!(this.props.inputsFocus&&["input","textarea","button","select","label"].indexOf(n.target.nodeName.toLowerCase())>
1-1)){if(this.props.textSelection){if(((t,e,n)=>{const i=t.childNodes,r=document.createRange();for(let t=0;t<i.length;t++){const o=i[t];if(3!==o.nodeType)continue;r.selectNodeContents(o);const s=r.getBoundingClientRect();if(e>=s.left&&n>=s.top&&e<=s.right&&n<=s.bottom)return o}return!1})(n.target,c,l))return;(()=>{const t=window.getSelection?window.getSelection():document.selection;t&&(t.removeAllRanges?t.removeAllRanges():t.empty&&t.empty())})()}this.isDragging=!0,t.x=s,t.y=a,e.x=c,e.y=l,this.dragStartPosition.x=this.position.x,this.dragStartPosition.y=this.position.y,o(n),this.startAnimationLoop(),!r&&this.props.pointerDownPreventDefault&&n.preventDefault()}},this.events.pointermove=t=>{!t.cancelable||"all"!==this.props.lockScrollOnDragDirection&&this.props.lockScrollOnDragDirection!==n||t.preventDefault(),o(t),this.props.onPointerMove(this.getState(),t,r)},this.events.pointerup=t=>{this.isDragging=!1,n=null,this.props.onPointerUp(this.getState(),t,r)},this.events.wheel=t=>{const e=this.getState();this.props.emulateScroll&&(this.velocity.x=0,this.velocity.y=0,this.isScrolling=!0,this.scrollOffset.x=-t.deltaX,this.scrollOffset.y=-t.deltaY,this.props.onWheel(e,t),this.startAnimationLoop(),clearTimeout(i),i=setTimeout(()=>this.isScrolling=!1,80),this.props.preventDefaultOnEmulateScroll&&this.getDragDirection(this.getDragAngle(-t.deltaX,-t.deltaY),this.props.dragDirectionTolerance)===this.props.preventDefaultOnEmulateScroll&&t.preventDefault())},this.events.scroll=()=>{const{scrollLeft:t,scrollTop:e}=this.props.viewport;Math.abs(this.position.x+t)>3&&(this.position.x=-t,this.velocity.x=0),Math.abs(this.position.y+e)>3&&(this.position.y=-e,this.velocity.y=0)},this.events.click=t=>{const e=this.getState(),n="vertical"!==this.props.direction?e.dragOffset.x:0,i="horizontal"!==this.props.direction?e.dragOffset.y:0;Math.max(Math.abs(n),Math.abs(i))>5&&(t.preventDefault(),t.stopPropagation()),this.props.onClick(e,t,r)},this.events.contentLoad=()=>this.updateMetrics(),this.events.resize=()=>this.updateMetrics(),this.props.viewport.addEventListener("mousedown",this.events.pointerdown),this.props.viewport.addEventListener("touchstart",this.events.pointerdown,{passive:!1}),this.props.viewport.addEventListener("click",this.events.click),this.props.viewport.addEventListener("wheel",this.events.wheel,{passive:!1}),this.props.viewport.addEventListener("scroll",this.events.scroll),this.props.content.addEventListener("load",this.events.contentLoad,!0),window.addEventListener("mousemove",this.events.pointermove),window.addEventListener("touchmove",this.events.pointermove,{passive:!1}),window.addEventListener("mouseup",this.events.pointerup),window.addEventListener("touchend",this.events.pointerup),window.addEventListener("resize",this.events.resize)}destroy(){this.props.viewport.removeEventListener("mousedown",this.events.pointerdown),this.props.viewport.removeEventListener("touchstart",this.events.pointerdown),this.props.viewport.removeEventListener("click",this.events.click),this.props.viewport.removeEventListener("wheel",this.events.wheel),this.props.viewport.removeEventListener("scroll",this.events.scroll),this.props.content.removeEventListener("load",this.events.contentLoad),window.removeEventListener("mousemove",this.events.pointermove),window.removeEventListener("touchmove",this.events.pointermove),window.removeEventListener("mouseup",this.events.pointerup),window.removeEventListener("touchend",this.events.pointerup),window.removeEventListener("resize",this.events.resize)}}},function(t,e,n){var i,r,o; 2/*! 3 * URI.js - Mutating URLs 4 * 5 * Version: 1.19.11 6 * 7 * Author: Rodney Rehm 8 * Web: http://medialize.github.io/URI.js/ 9 * 10 * Licensed under 11 * MIT License http://www.opensource.org/licenses/mit-license 12 * 13 */!function(s,a){"use strict";t.exports?t.exports=a(n(31),n(32),n(33)):(r=[n(31),n(32),n(33)],void 0===(o="function"==typeof(i=a)?i.apply(e,r):i)||(t.exports=o))}(0,(function(t,e,n,i){"use strict";var r=i&&i.URI;function o(t,e){var n=arguments.length>=1,i=arguments.length>=2;if(!(this instanceof o))return n?i?new o(t,e):new o(t):new o;if(void 0===t){if(n)throw new TypeError("undefined is not a valid argument for URI");t="undefined"!=typeof location?location.href+"":""}if(null===t&&n)throw new TypeError("null is not a valid argument for URI");return this.href(t),void 0!==e?this.absoluteTo(e):this}o.version="1.19.11";var s=o.prototype,a=Object.prototype.hasOwnProperty;function c(t){return t.replace(/([.*+?^=!:${}()|[\]\/\\])/g,"\\$1")}function l(t){return void 0===t?"Undefined":String(Object.prototype.toString.call(t)).slice(8,-1)}function u(t){return"Array"===l(t)}function h(t,e){var n,i,r={};if("RegExp"===l(e))r=null;else if(u(e))for(n=0,i=e.length;n<i;n++)r[e[n]]=!0;else r[e]=!0;for(n=0,i=t.length;n<i;n++){(r&&void 0!==r[t[n]]||!r&&e.test(t[n]))&&(t.splice(n,1),i--,n--)}return t}function d(t,e){var n,i;if(u(e)){for(n=0,i=e.length;n<i;n++)if(!d(t,e[n]))return!1;return!0}var r=l(e);for(n=0,i=t.length;n<i;n++)if("RegExp"===r){if("string"==typeof t[n]&&t[n].match(e))return!0}else if(t[n]===e)return!0;return!1}function f(t,e){if(!u(t)||!u(e))return!1;if(t.length!==e.length)return!1;t.sort(),e.sort();for(var n=0,i=t.length;n<i;n++)if(t[n]!==e[n])return!1;return!0}function p(t){return t.replace(/^\/+|\/+$/g,"")}function g(t){return escape(t)}function m(t){return encodeURIComponent(t).replace(/[!'()*]/g,g).replace(/\*/g,"%2A")}o._parts=function(){return{protocol:null,username:null,password:null,hostname:null,urn:null,port:null,path:null,query:null,fragment:null,preventInvalidHostname:o.preventInvalidHostname,duplicateQueryParameters:o.duplicateQueryParameters,escapeQuerySpace:o.escapeQuerySpace}},o.preventInvalidHostname=!1,o.duplicateQueryParameters=!1,o.escapeQuerySpace=!0,o.protocol_expression=/^[a-z][a-z0-9.+-]*$/i,o.idn_expression=/[^a-z0-9\._-]/i,o.punycode_expression=/(xn--)/i,o.ip4_expression=/^\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}$/,o.ip6_expression=/^\s*((([0-9A-Fa-f]{1,4}:){7}([0-9A-Fa-f]{1,4}|:))|(([0-9A-Fa-f]{1,4}:){6}(:[0-9A-Fa-f]{1,4}|((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(([0-9A-Fa-f]{1,4}:){5}(((:[0-9A-Fa-f]{1,4}){1,2})|:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(([0-9A-Fa-f]{1,4}:){4}(((:[0-9A-Fa-f]{1,4}){1,3})|((:[0-9A-Fa-f]{1,4})?:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9A-Fa-f]{1,4}:){3}(((:[0-9A-Fa-f]{1,4}){1,4})|((:[0-9A-Fa-f]{1,4}){0,2}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9A-Fa-f]{1,4}:){2}(((:[0-9A-Fa-f]{1,4}){1,5})|((:[0-9A-Fa-f]{1,4}){0,3}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9A-Fa-f]{1,4}:){1}(((:[0-9A-Fa-f]{1,4}){1,6})|((:[0-9A-Fa-f]{1,4}){0,4}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(:(((:[0-9A-Fa-f]{1,4}){1,7})|((:[0-9A-Fa-f]{1,4}){0,5}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:)))(%.+)?\s*$/,o.find_uri_expression=/\b((?:[a-z][\w-]+:(?:\/{1,3}|[a-z0-9%])|www\d{0,3}[.]|[a-z0-9.\-]+[.][a-z]{2,4}\/)(?:[^\s()<>]+|\(([^\s()<>]+|(\([^\s()<>]+\)))*\))+(?:\(([^\s()<>]+|(\([^\s()<>]+\)))*\)|[^\s`!()\[\]{};:'".,<>?«»ââââ]))/gi,o.findUri={start:/\b(?:([a-z][a-z0-9.+-]*:\/\/)|www\.)/gi,end:/[\s\r\n]|$/,trim:/[`!()\[\]{};:'".,<>?«»âââââ]+$/,parens:/(\([^\)]*\)|\[[^\]]*\]|\{[^}]*\}|<[^>]*>)/g},o.leading_whitespace_expression=/^[\x00-\x20\u00a0\u1680\u2000-\u200a\u2028\u2029\u202f\u205f\u3000\ufeff]+/,o.ascii_tab_whitespace=/[\u0009\u000A\u000D]+/g,o.defaultPorts={http:"80",https:"443",ftp:"21",gopher:"70",ws:"80",wss:"443"},o.hostProtocols=["http","https"],o.invalid_hostname_characters=/[^a-zA-Z0-9\.\-:_]/,o.domAttributes={a:"href",blockquote:"cite",link:"href",base:"href",script:"src",form:"action",img:"src",area:"href",iframe:"src",embed:"src",source:"src",track:"src",input:"src",audio:"src",video:"src"},o.getDomAttribute=function(t){if(t&&t.nodeName){var e=t.nodeName.toLowerCase();if("input"!==e||"image"===t.type)return o.domAttributes[e]}},o.encode=m,o.decode=decodeURIComponent,o.iso8859=function(){o.encode=escape,o.decode=unescape},o.unicode=function(){o.encode=m,o.decode=decodeURIComponent},o.characters={pathname:{encode:{expression:/%(24|26|2B|2C|3B|3D|3A|40)/gi,map:{"%24":"$","%26":"&","%2B":"+","%2C":",","%3B":";","%3D":"=","%3A":":","%40":"@"}},decode:{expression:/[\/\?#]/g,map:{"/":"%2F","?":"%3F","#":"%23"}}},reserved:{encode:{expression:/%(21|23|24|26|27|28|29|2A|2B|2C|2F|3A|3B|3D|3F|40|5B|5D)/gi,map:{"%3A":":","%2F":"/","%3F":"?","%23":"#","%5B":"[","%5D":"]","%40":"@","%21":"!","%24":"$","%26":"&","%27":"'","%28":"(","%29":")","%2A":"*","%2B":"+","%2C":",","%3B":";","%3D":"="}}},urnpath:{encode:{expression:/%(21|24|27|28|29|2A|2B|2C|3B|3D|40)/gi,map:{"%21":"!","%24":"$","%27":"'","%28":"(","%29":")","%2A":"*","%2B":"+","%2C":",","%3B":";","%3D":"=","%40":"@"}},decode:{expression:/[\/\?#:]/g,map:{"/":"%2F","?":"%3F","#":"%23",":":"%3A"}}}},o.encodeQuery=function(t,e){var n=o.encode(t+"");return void 0===e&&(e=o.escapeQuerySpace),e?n.replace(/%20/g,"+"):n},o.decodeQuery=function(t,e){t+="",void 0===e&&(e=o.escapeQuerySpace);try{return o.decode(e?t.replace(/\+/g,"%20"):t)}catch(e){return t}};var v,y={encode:"encode",decode:"decode"},b=function(t,e){return function(n){try{return o[e](n+"").replace(o.characters[t][e].expression,(function(n){return o.characters[t][e].map[n]}))}catch(t){return n}}};for(v in y)o[v+"PathSegment"]=b("pathname",y[v]),o[v+"UrnPathSegment"]=b("urnpath",y[v]);var w=function(t,e,n){return function(i){var r;r=n?function(t){return o[e](o[n](t))}:o[e];for(var s=(i+"").split(t),a=0,c=s.length;a<c;
13a++)s[a]=r(s[a]);return s.join(t)}};function _(t){return function(e,n){return void 0===e?this._parts[t]||"":(this._parts[t]=e||null,this.build(!n),this)}}function E(t,e){return function(n,i){return void 0===n?this._parts[t]||"":(null!==n&&(n+="").charAt(0)===e&&(n=n.substring(1)),this._parts[t]=n,this.build(!i),this)}}o.decodePath=w("/","decodePathSegment"),o.decodeUrnPath=w(":","decodeUrnPathSegment"),o.recodePath=w("/","encodePathSegment","decode"),o.recodeUrnPath=w(":","encodeUrnPathSegment","decode"),o.encodeReserved=b("reserved","encode"),o.parse=function(t,e){var n;return e||(e={preventInvalidHostname:o.preventInvalidHostname}),(n=(t=(t=t.replace(o.leading_whitespace_expression,"")).replace(o.ascii_tab_whitespace,"")).indexOf("#"))>-1&&(e.fragment=t.substring(n+1)||null,t=t.substring(0,n)),(n=t.indexOf("?"))>-1&&(e.query=t.substring(n+1)||null,t=t.substring(0,n)),"//"===(t=(t=t.replace(/^(https?|ftp|wss?)?:+[/\\]*/i,"$1://")).replace(/^[/\\]{2,}/i,"//")).substring(0,2)?(e.protocol=null,t=t.substring(2),t=o.parseAuthority(t,e)):(n=t.indexOf(":"))>-1&&(e.protocol=t.substring(0,n)||null,e.protocol&&!e.protocol.match(o.protocol_expression)?e.protocol=void 0:"//"===t.substring(n+1,n+3).replace(/\\/g,"/")?(t=t.substring(n+3),t=o.parseAuthority(t,e)):(t=t.substring(n+1),e.urn=!0)),e.path=t,e},o.parseHost=function(t,e){t||(t="");var n,i,r=(t=t.replace(/\\/g,"/")).indexOf("/");if(-1===r&&(r=t.length),"["===t.charAt(0))n=t.indexOf("]"),e.hostname=t.substring(1,n)||null,e.port=t.substring(n+2,r)||null,"/"===e.port&&(e.port=null);else{var s=t.indexOf(":"),a=t.indexOf("/"),c=t.indexOf(":",s+1);-1!==c&&(-1===a||c<a)?(e.hostname=t.substring(0,r)||null,e.port=null):(i=t.substring(0,r).split(":"),e.hostname=i[0]||null,e.port=i[1]||null)}return e.hostname&&"/"!==t.substring(r).charAt(0)&&(r++,t="/"+t),e.preventInvalidHostname&&o.ensureValidHostname(e.hostname,e.protocol),e.port&&o.ensureValidPort(e.port),t.substring(r)||"/"},o.parseAuthority=function(t,e){return t=o.parseUserinfo(t,e),o.parseHost(t,e)},o.parseUserinfo=function(t,e){var n=t;-1!==t.indexOf("\\")&&(t=t.replace(/\\/g,"/"));var i,r=t.indexOf("/"),s=t.lastIndexOf("@",r>-1?r:t.length-1);return s>-1&&(-1===r||s<r)?(i=t.substring(0,s).split(":"),e.username=i[0]?o.decode(i[0]):null,i.shift(),e.password=i[0]?o.decode(i.join(":")):null,t=n.substring(s+1)):(e.username=null,e.password=null),t},o.parseQuery=function(t,e){if(!t)return{};if(!(t=t.replace(/&+/g,"&").replace(/^\?*&*|&+$/g,"")))return{};for(var n,i,r,s={},c=t.split("&"),l=c.length,u=0;u<l;u++)n=c[u].split("="),i=o.decodeQuery(n.shift(),e),r=n.length?o.decodeQuery(n.join("="),e):null,"__proto__"!==i&&(a.call(s,i)?("string"!=typeof s[i]&&null!==s[i]||(s[i]=[s[i]]),s[i].push(r)):s[i]=r);return s},o.build=function(t){var e="",n=!1;return t.protocol&&(e+=t.protocol+":"),t.urn||!e&&!t.hostname||(e+="//",n=!0),e+=o.buildAuthority(t)||"","string"==typeof t.path&&("/"!==t.path.charAt(0)&&n&&(e+="/"),e+=t.path),"string"==typeof t.query&&t.query&&(e+="?"+t.query),"string"==typeof t.fragment&&t.fragment&&(e+="#"+t.fragment),e},o.buildHost=function(t){var e="";return t.hostname?(o.ip6_expression.test(t.hostname)?e+="["+t.hostname+"]":e+=t.hostname,t.port&&(e+=":"+t.port),e):""},o.buildAuthority=function(t){return o.buildUserinfo(t)+o.buildHost(t)},o.buildUserinfo=function(t){var e="";return t.username&&(e+=o.encode(t.username)),t.password&&(e+=":"+o.encode(t.password)),e&&(e+="@"),e},o.buildQuery=function(t,e,n){var i,r,s,c,l="";for(r in t)if("__proto__"!==r&&a.call(t,r))if(u(t[r]))for(i={},s=0,c=t[r].length;s<c;s++)void 0!==t[r][s]&&void 0===i[t[r][s]+""]&&(l+="&"+o.buildQueryParameter(r,t[r][s],n),!0!==e&&(i[t[r][s]+""]=!0));else void 0!==t[r]&&(l+="&"+o.buildQueryParameter(r,t[r],n));return l.substring(1)},o.buildQueryParameter=function(t,e,n){return o.encodeQuery(t,n)+(null!==e?"="+o.encodeQuery(e,n):"")},o.addQuery=function(t,e,n){if("object"==typeof e)for(var i in e)a.call(e,i)&&o.addQuery(t,i,e[i]);else{if("string"!=typeof e)throw new TypeError("URI.addQuery() accepts an object, string as the name parameter");if(void 0===t[e])return void(t[e]=n);"string"==typeof t[e]&&(t[e]=[t[e]]),u(n)||(n=[n]),t[e]=(t[e]||[]).concat(n)}},o.setQuery=function(t,e,n){if("object"==typeof e)for(var i in e)a.call(e,i)&&o.setQuery(t,i,e[i]);else{if("string"!=typeof e)throw new TypeError("URI.setQuery() accepts an object, string as the name parameter");t[e]=void 0===n?null:n}},o.removeQuery=function(t,e,n){var i,r,s;if(u(e))for(i=0,r=e.length;i<r;i++)t[e[i]]=void 0;else if("RegExp"===l(e))for(s in t)e.test(s)&&(t[s]=void 0);else if("object"==typeof e)for(s in e)a.call(e,s)&&o.removeQuery(t,s,e[s]);else{if("string"!=typeof e)throw new TypeError("URI.removeQuery() accepts an object, string, RegExp as the first parameter");void 0!==n?"RegExp"===l(n)?!u(t[e])&&n.test(t[e])?t[e]=void 0:t[e]=h(t[e],n):t[e]!==String(n)||u(n)&&1!==n.length?u(t[e])&&(t[e]=h(t[e],n)):t[e]=void 0:t[e]=void 0}},o.hasQuery=function(t,e,n,i){switch(l(e)){case"String":break;case"RegExp":for(var r in t)if(a.call(t,r)&&e.test(r)&&(void 0===n||o.hasQuery(t,r,n)))return!0;return!1;case"Object":for(var s in e)if(a.call(e,s)&&!o.hasQuery(t,s,e[s]))return!1;return!0;default:throw new TypeError("URI.hasQuery() accepts a string, regular expression or object as the name parameter")}switch(l(n)){case"Undefined":return e in t;case"Boolean":return n===Boolean(u(t[e])?t[e].length:t[e]);
13case"Function":return!!n(t[e],e,t);case"Array":return!!u(t[e])&&(i?d:f)(t[e],n);case"RegExp":return u(t[e])?!!i&&d(t[e],n):Boolean(t[e]&&t[e].match(n));case"Number":n=String(n);case"String":return u(t[e])?!!i&&d(t[e],n):t[e]===n;default:throw new TypeError("URI.hasQuery() accepts undefined, boolean, string, number, RegExp, Function as the value parameter")}},o.joinPaths=function(){for(var t=[],e=[],n=0,i=0;i<arguments.length;i++){var r=new o(arguments[i]);t.push(r);for(var s=r.segment(),a=0;a<s.length;a++)"string"==typeof s[a]&&e.push(s[a]),s[a]&&n++}if(!e.length||!n)return new o("");var c=new o("").segment(e);return""!==t[0].path()&&"/"!==t[0].path().slice(0,1)||c.path("/"+c.path()),c.normalize()},o.commonPath=function(t,e){var n,i=Math.min(t.length,e.length);for(n=0;n<i;n++)if(t.charAt(n)!==e.charAt(n)){n--;break}return n<1?t.charAt(0)===e.charAt(0)&&"/"===t.charAt(0)?"/":"":("/"===t.charAt(n)&&"/"===e.charAt(n)||(n=t.substring(0,n).lastIndexOf("/")),t.substring(0,n+1))},o.withinString=function(t,e,n){n||(n={});var i=n.start||o.findUri.start,r=n.end||o.findUri.end,s=n.trim||o.findUri.trim,a=n.parens||o.findUri.parens,c=/[a-z0-9-]=["']?$/i;for(i.lastIndex=0;;){var l=i.exec(t);if(!l)break;var u=l.index;if(n.ignoreHtml){var h=t.slice(Math.max(u-3,0),u);if(h&&c.test(h))continue}for(var d=u+t.slice(u).search(r),f=t.slice(u,d),p=-1;;){var g=a.exec(f);
13if(!g)break;var m=g.index+g[0].length;p=Math.max(p,m)}if(!((f=p>-1?f.slice(0,p)+f.slice(p).replace(s,""):f.replace(s,"")).length<=l[0].length||n.ignore&&n.ignore.test(f))){var v=e(f,u,d=u+f.length,t);void 0!==v?(v=String(v),t=t.slice(0,u)+v+t.slice(d),i.lastIndex=u+v.length):i.lastIndex=d}}return i.lastIndex=0,t},o.ensureValidHostname=function(e,n){var i=!!e,r=!1;if(!!n&&(r=d(o.hostProtocols,n)),r&&!i)throw new TypeError("Hostname cannot be empty, if protocol is "+n);if(e&&e.match(o.invalid_hostname_characters)){if(!t)throw new TypeError('Hostname "'+e+'" contains characters other than [A-Z0-9.-:_] and Punycode.js is not available');if(t.toASCII(e).match(o.invalid_hostname_characters))throw new TypeError('Hostname "'+e+'" contains characters other than [A-Z0-9.-:_]')}},o.ensureValidPort=function(t){if(t){var e=Number(t);if(!(/^[0-9]+$/.test(e)&&e>0&&e<65536))throw new TypeError('Port "'+t+'" is not a valid port')}},o.noConflict=function(t){if(t){var e={URI:this.noConflict()};return i.URITemplate&&"function"==typeof i.URITemplate.noConflict&&(e.URITemplate=i.URITemplate.noConflict()),i.IPv6&&"function"==typeof i.IPv6.noConflict&&(e.IPv6=i.IPv6.noConflict()),i.SecondLevelDomains&&"function"==typeof i.SecondLevelDomains.noConflict&&(e.SecondLevelDomains=i.SecondLevelDomains.noConflict()),e}return i.URI===this&&(i.URI=r),this},s.build=function(t){return!0===t?this._deferred_build=!0:(void 0===t||this._deferred_build)&&(this._string=o.build(this._parts),this._deferred_build=!1),this},s.clone=function(){return new o(this)},s.valueOf=s.toString=function(){return this.build(!1)._string},s.protocol=_("protocol"),s.username=_("username"),s.password=_("password"),s.hostname=_("hostname"),s.port=_("port"),s.query=E("query","?"),s.fragment=E("fragment","#"),s.search=function(t,e){var n=this.query(t,e);return"string"==typeof n&&n.length?"?"+n:n},s.hash=function(t,e){var n=this.fragment(t,e);return"string"==typeof n&&n.length?"#"+n:n},s.pathname=function(t,e){if(void 0===t||!0===t){var n=this._parts.path||(this._parts.hostname?"/":"");return t?(this._parts.urn?o.decodeUrnPath:o.decodePath)(n):n}return this._parts.urn?this._parts.path=t?o.recodeUrnPath(t):"":this._parts.path=t?o.recodePath(t):"/",this.build(!e),this},s.path=s.pathname,s.href=function(t,e){var n;if(void 0===t)return this.toString();this._string="",this._parts=o._parts();var i=t instanceof o,r="object"==typeof t&&(t.hostname||t.path||t.pathname);t.nodeName&&(t=t[o.getDomAttribute(t)]||"",r=!1);if(!i&&r&&void 0!==t.pathname&&(t=t.toString()),"string"==typeof t||t instanceof String)this._parts=o.parse(String(t),this._parts);else{if(!i&&!r)throw new TypeError("invalid input");var s=i?t._parts:t;for(n in s)"query"!==n&&a.call(this._parts,n)&&(this._parts[n]=s[n]);s.query&&this.query(s.query,!1)}return this.build(!e),this},s.is=function(t){var e=!1,i=!1,r=!1,s=!1,a=!1,c=!1,l=!1,u=!this._parts.urn;switch(this._parts.hostname&&(u=!1,i=o.ip4_expression.test(this._parts.hostname),r=o.ip6_expression.test(this._parts.hostname),a=(s=!(e=i||r))&&n&&n.has(this._parts.hostname),c=s&&o.idn_expression.test(this._parts.hostname),l=s&&o.punycode_expression.test(this._parts.hostname)),t.toLowerCase()){case"relative":return u;case"absolute":return!u;case"domain":case"name":return s;case"sld":return a;case"ip":return e;case"ip4":case"ipv4":case"inet4":return i;case"ip6":case"ipv6":case"inet6":return r;case"idn":return c;case"url":return!this._parts.urn;case"urn":return!!this._parts.urn;case"punycode":return l}return null};var S=s.protocol,x=s.port,A=s.hostname;s.protocol=function(t,e){if(t&&!(t=t.replace(/:(\/\/)?$/,"")).match(o.protocol_expression))throw new TypeError('Protocol "'+t+"\" contains characters other than [A-Z0-9.+-] or doesn't start with [A-Z]");return S.call(this,t,e)},s.scheme=s.protocol,s.port=function(t,e){return this._parts.urn?void 0===t?"":this:(void 0!==t&&(0===t&&(t=null),t&&(":"===(t+="").charAt(0)&&(t=t.substring(1)),o.ensureValidPort(t))),x.call(this,t,e))},s.hostname=function(t,e){if(this._parts.urn)return void 0===t?"":this;if(void 0!==t){var n={preventInvalidHostname:this._parts.preventInvalidHostname};if("/"!==o.parseHost(t,n))throw new TypeError('Hostname "'+t+'" contains characters other than [A-Z0-9.-]');t=n.hostname,this._parts.preventInvalidHostname&&o.ensureValidHostname(t,this._parts.protocol)}return A.call(this,t,e)},s.origin=function(t,e){if(this._parts.urn)return void 0===t?"":this;if(void 0===t){var n=this.protocol();return this.authority()?(n?n+"://":"")+this.authority():""}var i=o(t);return this.protocol(i.protocol()).authority(i.authority()).build(!e),this},s.host=function(t,e){if(this._parts.urn)return void 0===t?"":this;if(void 0===t)return this._parts.hostname?o.buildHost(this._parts):"";if("/"!==o.parseHost(t,this._parts))throw new TypeError('Hostname "'+t+'" contains characters other than [A-Z0-9.-]');return this.build(!e),this},s.authority=function(t,e){if(this._parts.urn)return void 0===t?"":this;if(void 0===t)return this._parts.hostname?o.buildAuthority(this._parts):"";if("/"!==o.parseAuthority(t,this._parts))throw new TypeError('Hostname "'+t+'" contains characters other than [A-Z0-9.-]');return this.build(!e),this},s.userinfo=function(t,e){if(this._parts.urn)return void 0===t?"":this;if(void 0===t){var n=o.buildUserinfo(this._parts);return n?n.substring(0,n.length-1):n}return"@"!==t[t.length-1]&&(t+="@"),o.parseUserinfo(t,this._parts),this.build(!e),this},s.resource=function(t,e){var n;return void 0===t?this.path()+this.search()+this.hash():(n=o.parse(t),this._parts.path=n.path,this._parts.query=n.query,this._parts.fragment=n.fragment,this.build(!e),this)},s.subdomain=function(t,e){if(this._parts.urn)return void 0===t?"":this;if(void 0===t){if(!this._parts.hostname||this.is("IP"))return"";var n=this._parts.hostname.length-this.domain().length-1;return this._parts.hostname.substring(0,n)||""}var i=this._parts.hostname.length-this.domain().length,r=this._parts.hostname.substring(0,i),s=new RegExp("^"+c(r));if(t&&"."!==t.charAt(t.length-1)&&(t+="."),-1!==t.indexOf(":"))throw new TypeError("Domains cannot contain colons");return t&&o.ensureValidHostname(t,this._parts.protocol),this._parts.hostname=this._parts.hostname.replace(s,t),this.build(!e),this},s.domain=function(t,e){if(this._parts.urn)return void 0===t?"":this;if("boolean"==typeof t&&(e=t,t=void 0),void 0===t){if(!this._parts.hostname||this.is("IP"))return"";var n=this._parts.hostname.match(/\./g);if(n&&n.length<2)return this._parts.hostname;var i=this._parts.hostname.length-this.tld(e).length-1;return i=this._parts.hostname.lastIndexOf(".",i-1)+1,this._parts.hostname.substring(i)||""}if(!t)throw new TypeError("cannot set domain empty");if(-1!==t.indexOf(":"))throw new TypeError("Domains cannot contain colons");if(o.ensureValidHostname(t,this._parts.protocol),!this._parts.hostname||this.is("IP"))this._parts.hostname=t;else{var r=new RegExp(c(this.domain())+"$");this._parts.hostname=this._parts.hostname.replace(r,t)}return this.build(!e),this},s.tld=function(t,e){if(this._parts.urn)return void 0===t?"":this;if("boolean"==typeof t&&(e=t,t=void 0),void 0===t){if(!this._parts.hostname||this.is("IP"))return"";var i=this._parts.hostname.lastIndexOf("."),r=this._parts.hostname.substring(i+1);return!0!==e&&n&&n.list[r.toLowerCase()]&&n.get(this._parts.hostname)||r}var o;if(!t)throw new TypeError("cannot set TLD empty");if(t.match(/[^a-zA-Z0-9-]/)){if(!n||!n.is(t))throw new TypeError('TLD "'+t+'" contains characters other than [A-Z0-9]');o=new RegExp(c(this.tld())+"$"),this._parts.hostname=this._parts.hostname.replace(o,t)}else{if(!this._parts.hostname||this.is("IP"))throw new ReferenceError("cannot set TLD on non-domain host");o=new RegExp(c(this.tld())+"$"),this._parts.hostname=this._parts.hostname.replace(o,t)}return this.build(!e),this},s.directory=function(t,e){if(this._parts.urn)return void 0===t?"":this;if(void 0===t||!0===t){if(!this._parts.path&&!this._parts.hostname)return"";if("/"===this._parts.path)return"/";var n=this._parts.path.length-this.filename().length-1,i=this._parts.path.substring(0,n)||(this._parts.hostname?"/":"");return t?o.decodePath(i):i}var r=this._parts.path.length-this.filename().length,s=this._parts.path.substring(0,r),a=new RegExp("^"+c(s));return this.is("relative")||(t||(t="/"),"/"!==t.charAt(0)&&(t="/"+t)),t&&"/"!==t.charAt(t.length-1)&&(t+="/"),t=o.recodePath(t),this._parts.path=this._parts.path.replace(a,t),this.build(!e),this},s.filename=function(t,e){if(this._parts.urn)return void 0===t?"":this;if("string"!=typeof t){if(!this._parts.path||"/"===this._parts.path)return"";var n=this._parts.path.lastIndexOf("/"),i=this._parts.path.substring(n+1);return t?o.decodePathSegment(i):i}var r=!1;"/"===t.charAt(0)&&(t=t.substring(1)),t.match(/\.?\//)&&(r=!0);var s=new RegExp(c(this.filename())+"$");return t=o.recodePath(t),this._parts.path=this._parts.path.replace(s,t),r?this.normalizePath(e):this.build(!e),this},s.suffix=function(t,e){if(this._parts.urn)return void 0===t?"":this;if(void 0===t||!0===t){if(!this._parts.path||"/"===this._parts.path)return"";var n,i,r=this.filename(),s=r.lastIndexOf(".");
13return-1===s?"":(n=r.substring(s+1),i=/^[a-z0-9%]+$/i.test(n)?n:"",t?o.decodePathSegment(i):i)}"."===t.charAt(0)&&(t=t.substring(1));var a,l=this.suffix();if(l)a=t?new RegExp(c(l)+"$"):new RegExp(c("."+l)+"$");else{if(!t)return this;this._parts.path+="."+o.recodePath(t)}return a&&(t=o.recodePath(t),this._parts.path=this._parts.path.replace(a,t)),this.build(!e),this},s.segment=function(t,e,n){var i=this._parts.urn?":":"/",r=this.path(),o="/"===r.substring(0,1),s=r.split(i);if(void 0!==t&&"number"!=typeof t&&(n=e,e=t,t=void 0),void 0!==t&&"number"!=typeof t)throw new Error('Bad segment "'+t+'", must be 0-based integer');if(o&&s.shift(),t<0&&(t=Math.max(s.length+t,0)),void 0===e)return void 0===t?s:s[t];if(null===t||void 0===s[t])if(u(e)){s=[];for(var a=0,c=e.length;a<c;a++)(e[a].length||s.length&&s[s.length-1].length)&&(s.length&&!s[s.length-1].length&&s.pop(),s.push(p(e[a])))}else(e||"string"==typeof e)&&(e=p(e),""===s[s.length-1]?s[s.length-1]=e:s.push(e));else e?s[t]=p(e):s.splice(t,1);return o&&s.unshift(""),this.path(s.join(i),n)},s.segmentCoded=function(t,e,n){var i,r,s;if("number"!=typeof t&&(n=e,e=t,t=void 0),void 0===e){if(u(i=this.segment(t,e,n)))for(r=0,s=i.length;r<s;r++)i[r]=o.decode(i[r]);else i=void 0!==i?o.decode(i):void 0;return i}if(u(e))for(r=0,s=e.length;r<s;r++)e[r]=o.encode(e[r]);else e="string"==typeof e||e instanceof String?o.encode(e):e;return this.segment(t,e,n)};var L=s.query;return s.query=function(t,e){if(!0===t)return o.parseQuery(this._parts.query,this._parts.escapeQuerySpace);if("function"==typeof t){var n=o.parseQuery(this._parts.query,this._parts.escapeQuerySpace),i=t.call(this,n);return this._parts.query=o.buildQuery(i||n,this._parts.duplicateQueryParameters,this._parts.escapeQuerySpace),this.build(!e),this}return void 0!==t&&"string"!=typeof t?(this._parts.query=o.buildQuery(t,this._parts.duplicateQueryParameters,this._parts.escapeQuerySpace),this.build(!e),this):L.call(this,t,e)},s.setQuery=function(t,e,n){var i=o.parseQuery(this._parts.query,this._parts.escapeQuerySpace);if("string"==typeof t||t instanceof String)i[t]=void 0!==e?e:null;else{if("object"!=typeof t)throw new TypeError("URI.addQuery() accepts an object, string as the name parameter");for(var r in t)a.call(t,r)&&(i[r]=t[r])}return this._parts.query=o.buildQuery(i,this._parts.duplicateQueryParameters,this._parts.escapeQuerySpace),"string"!=typeof t&&(n=e),this.build(!n),this},s.addQuery=function(t,e,n){var i=o.parseQuery(this._parts.query,this._parts.escapeQuerySpace);return o.addQuery(i,t,void 0===e?null:e),this._parts.query=o.buildQuery(i,this._parts.duplicateQueryParameters,this._parts.escapeQuerySpace),"string"!=typeof t&&(n=e),this.build(!n),this},s.removeQuery=function(t,e,n){var i=o.parseQuery(this._parts.query,this._parts.escapeQuerySpace);return o.removeQuery(i,t,e),this._parts.query=o.buildQuery(i,this._parts.duplicateQueryParameters,this._parts.escapeQuerySpace),"string"!=typeof t&&(n=e),this.build(!n),this},s.hasQuery=function(t,e,n){var i=o.parseQuery(this._parts.query,this._parts.escapeQuerySpace);return o.hasQuery(i,t,e,n)},s.setSearch=s.setQuery,s.addSearch=s.addQuery,s.removeSearch=s.removeQuery,s.hasSearch=s.hasQuery,s.normalize=function(){return this._parts.urn?this.normalizeProtocol(!1).normalizePath(!1).normalizeQuery(!1).normalizeFragment(!1).build():this.normalizeProtocol(!1).normalizeHostname(!1).normalizePort(!1).normalizePath(!1).normalizeQuery(!1).normalizeFragment(!1).build()},s.normalizeProtocol=function(t){return"string"==typeof this._parts.protocol&&(this._parts.protocol=this._parts.protocol.toLowerCase(),this.build(!t)),this},s.normalizeHostname=function(n){return this._parts.hostname&&(this.is("IDN")&&t?this._parts.hostname=t.toASCII(this._parts.hostname):this.is("IPv6")&&e&&(this._parts.hostname=e.best(this._parts.hostname)),this._parts.hostname=this._parts.hostname.toLowerCase(),this.build(!n)),this},s.normalizePort=function(t){return"string"==typeof this._parts.protocol&&this._parts.port===o.defaultPorts[this._parts.protocol]&&(this._parts.port=null,this.build(!t)),this},s.normalizePath=function(t){var e,n=this._parts.path;if(!n)return this;if(this._parts.urn)return this._parts.path=o.recodeUrnPath(this._parts.path),this.build(!t),this;if("/"===this._parts.path)return this;var i,r,s="";for("/"!==(n=o.recodePath(n)).charAt(0)&&(e=!0,n="/"+n),"/.."!==n.slice(-3)&&"/."!==n.slice(-2)||(n+="/"),n=n.replace(/(\/(\.\/)+)|(\/\.$)/g,"/").replace(/\/{2,}/g,"/"),e&&(s=n.substring(1).match(/^(\.\.\/)+/)||"")&&(s=s[0]);-1!==(i=n.search(/\/\.\.(\/|$)/));)0!==i?(-1===(r=n.substring(0,i).lastIndexOf("/"))&&(r=i),n=n.substring(0,r)+n.substring(i+3)):n=n.substring(3);return e&&this.is("relative")&&(n=s+n.substring(1)),this._parts.path=n,this.build(!t),this},s.normalizePathname=s.normalizePath,s.normalizeQuery=function(t){return"string"==typeof this._parts.query&&(this._parts.query.length?this.query(o.parseQuery(this._parts.query,this._parts.escapeQuerySpace)):this._parts.query=null,this.build(!t)),this},s.normalizeFragment=function(t){return this._parts.fragment||(this._parts.fragment=null,this.build(!t)),this},s.normalizeSearch=s.normalizeQuery,s.normalizeHash=s.normalizeFragment,s.iso8859=function(){var t=o.encode,e=o.decode;o.encode=escape,o.decode=decodeURIComponent;try{this.normalize()}finally{o.encode=t,o.decode=e}return this},s.unicode=function(){var t=o.encode,e=o.decode;o.encode=m,o.decode=unescape;try{this.normalize()}finally{o.encode=t,o.decode=e}return this},s.readable=function(){var e=this.clone();e.username("").password("").normalize();var n="";if(e._parts.protocol&&(n+=e._parts.protocol+"://"),e._parts.hostname&&(e.is("punycode")&&t?(n+=t.toUnicode(e._parts.hostname),e._parts.port&&(n+=":"+e._parts.port)):n+=e.host()),e._parts.hostname&&e._parts.path&&"/"!==e._parts.path.
13charAt(0)&&(n+="/"),n+=e.path(!0),e._parts.query){for(var i="",r=0,s=e._parts.query.split("&"),a=s.length;r<a;r++){var c=(s[r]||"").split("=");i+="&"+o.decodeQuery(c[0],this._parts.escapeQuerySpace).replace(/&/g,"%26"),void 0!==c[1]&&(i+="="+o.decodeQuery(c[1],this._parts.escapeQuerySpace).replace(/&/g,"%26"))}n+="?"+i.substring(1)}return n+=o.decodeQuery(e.hash(),!0)},s.absoluteTo=function(t){var e,n,i,r=this.clone(),s=["protocol","username","password","hostname","port"];if(this._parts.urn)throw new Error("URNs do not have any generally defined hierarchical components");if(t instanceof o||(t=new o(t)),r._parts.protocol)return r;if(r._parts.protocol=t._parts.protocol,this._parts.hostname)return r;for(n=0;i=s[n];n++)r._parts[i]=t._parts[i];return r._parts.path?(".."===r._parts.path.substring(-2)&&(r._parts.path+="/"),"/"!==r.path().charAt(0)&&(e=(e=t.directory())||(0===t.path().indexOf("/")?"/":""),r._parts.path=(e?e+"/":"")+r._parts.path,r.normalizePath())):(r._parts.path=t._parts.path,r._parts.query||(r._parts.query=t._parts.query)),r.build(),r},s.relativeTo=function(t){var e,n,i,r,s,a=this.clone().normalize();if(a._parts.urn)throw new Error("URNs do not have any generally defined hierarchical components");if(t=new o(t).normalize(),e=a._parts,n=t._parts,r=a.path(),s=t.path(),"/"!==r.charAt(0))throw new Error("URI is already relative");if("/"!==s.charAt(0))throw new Error("Cannot calculate a URI relative to another relative URI");if(e.protocol===n.protocol&&(e.protocol=null),e.username!==n.username||e.password!==n.password)return a.build();if(null!==e.protocol||null!==e.username||null!==e.password)return a.build();if(e.hostname!==n.hostname||e.port!==n.port)return a.build();if(e.hostname=null,e.port=null,r===s)return e.path="",a.build();if(!(i=o.commonPath(r,s)))return a.build();var c=n.path.substring(i.length).replace(/[^\/]*$/,"").replace(/.*?\//g,"../");return e.path=c+e.path.substring(i.length)||"./",a.build()},s.equals=function(t){var e,n,i,r,s,c=this.clone(),l=new o(t),h={};if(c.normalize(),l.normalize(),c.toString()===l.toString())return!0;if(i=c.query(),r=l.query(),c.query(""),l.query(""),c.toString()!==l.toString())return!1;if(i.length!==r.length)return!1;for(s in e=o.parseQuery(i,this._parts.escapeQuerySpace),n=o.parseQuery(r,this._parts.escapeQuerySpace),e)if(a.call(e,s)){if(u(e[s])){if(!f(e[s],n[s]))return!1}else if(e[s]!==n[s])return!1;h[s]=!0}for(s in n)if(a.call(n,s)&&!h[s])return!1;return!0},s.preventInvalidHostname=function(t){return this._parts.preventInvalidHostname=!!t,this},s.duplicateQueryParameters=function(t){return this._parts.duplicateQueryParameters=!!t,this},s.escapeQuerySpace=function(t){return this._parts.escapeQuerySpace=!!t,this},o}))},function(t,e,n){"use strict";var i,r="object"==typeof Reflect?Reflect:null,o=r&&"function"==typeof r.apply?r.apply:function(t,e,n){return Function.prototype.apply.call(t,e,n)};i=r&&"function"==typeof r.ownKeys?r.ownKeys:Object.getOwnPropertySymbols?function(t){return Object.getOwnPropertyNames(t).concat(Object.getOwnPropertySymbols(t))}:function(t){return Object.getOwnPropertyNames(t)};var s=Number.isNaN||function(t){return t!=t};function a(){a.init.call(this)}t.exports=a,t.exports.once=function(t,e){return new Promise((function(n,i){function r(n){t.removeListener(e,o),i(n)}function o(){"function"==typeof t.removeListener&&t.removeListener("error",r),n([].slice.call(arguments))}v(t,e,o,{once:!0}),"error"!==e&&function(t,e,n){"function"==typeof t.on&&v(t,"error",e,n)}(t,r,{once:!0})}))},a.EventEmitter=a,a.prototype._events=void 0,a.prototype._eventsCount=0,a.prototype._maxListeners=void 0;var c=10;function l(t){if("function"!=typeof t)throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof t)}function u(t){return void 0===t._maxListeners?a.defaultMaxListeners:t._maxListeners}function h(t,e,n,i){var r,o,s,a;if(l(n),void 0===(o=t._events)?(o=t._events=Object.create(null),t._eventsCount=0):(void 0!==o.newListener&&(t.emit("newListener",e,n.listener?n.listener:n),o=t._events),s=o[e]),void 0===s)s=o[e]=n,++t._eventsCount;else if("function"==typeof s?s=o[e]=i?[n,s]:[s,n]:i?s.unshift(n):s.push(n),(r=u(t))>0&&s.length>r&&!s.warned){s.warned=!0;var c=new Error("Possible EventEmitter memory leak detected. "+s.length+" "+String(e)+" listeners added. Use emitter.setMaxListeners() to increase limit");c.name="MaxListenersExceededWarning",c.emitter=t,c.type=e,c.count=s.length,a=c,console&&console.warn&&console.warn(a)}return t}function d(){if(!this.fired)return this.target.removeListener(this.type,this.wrapFn),this.fired=!0,0===arguments.length?this.listener.call(this.target):this.listener.apply(this.target,arguments)}function f(t,e,n){var i={fired:!1,wrapFn:void 0,target:t,type:e,listener:n},r=d.bind(i);return r.listener=n,i.wrapFn=r,r}function p(t,e,n){var i=t._events;if(void 0===i)return[];var r=i[e];return void 0===r?[]:"function"==typeof r?n?[r.listener||r]:[r]:n?function(t){for(var e=new Array(t.length),n=0;n<e.length;++n)e[n]=t[n].listener||t[n];return e}(r):m(r,r.length)}function g(t){var e=this._events;if(void 0!==e){var n=e[t];if("function"==typeof n)return 1;if(void 0!==n)return n.length}return 0}function m(t,e){for(var n=new Array(e),i=0;i<e;++i)n[i]=t[i];return n}function v(t,e,n,i){if("function"==typeof t.on)i.once?t.once(e,n):t.on(e,n);else{if("function"!=typeof t.addEventListener)throw new TypeError('The "emitter" argument must be of type EventEmitter. Received type '+typeof t);t.addEventListener(e,(function r(o){i.once&&t.removeEventListener(e,r),n(o)}))}}Object.defineProperty(a,"defaultMaxListeners",{enumerable:!0,get:function(){return c},set:function(t){if("number"!=typeof t||t<0||s(t))throw new RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received '+t+".");c=t}}),a.init=function(){void 0!==this._events&&this._events!==Object.getPrototypeOf(this)._events||(this._events=Object.create(null),this._eventsCount=0),this._maxListeners=this._maxListeners||void 0},a.prototype.setMaxListeners=function(t){if("number"!=typeof t||t<0||s(t))throw new RangeError('The value of "n" is out of range. It must be a non-negative number. Received '+t+".");return this._maxListeners=t,this},a.prototype.getMaxListeners=function(){return u(this)},a.prototype.emit=function(t){for(var e=[],n=1;n<arguments.length;n++)e.push(arguments[n]);var i="error"===t,r=this._events;if(void 0!==r)i=i&&void 0===r.error;else if(!i)return!1;if(i){var s;if(e.length>0&&(s=e[0]),s instanceof Error)throw s;var a=new Error("Unhandled error."+(s?" ("+s.message+")":""));throw a.context=s,a}var c=r[t];if(void 0===c)return!1;if("function"==typeof c)o(c,this,e);else{var l=c.length,u=m(c,l);for(n=0;n<l;++n)o(u[n],this,e)}return!0},a.prototype.addListener=function(t,e){return h(this,t,e,!1)},a.prototype.on=a.prototype.addListener,a.prototype.prependListener=function(t,e){return h(this,t,e,!0)},a.prototype.once=function(t,e){return l(e),this.on(t,f(this,t,e)),this},a.prototype.prependOnceListener=function(t,e){return l(e),this.prependListener(t,f(this,t,e)),this},a.prototype.removeListener=function(t,e){var n,i,r,o,s;if(l(e),void 0===(i=this._events))return this;if(void 0===(n=i[t]))return this;if(n===e||n.listener===e)0==--this._eventsCount?this._events=Object.create(null):(delete i[t],i.removeListener&&this.emit
vendor: 17,586 bytes, lines 13-20
13("removeListener",t,n.listener||e));else if("function"!=typeof n){for(r=-1,o=n.length-1;o>=0;o--)if(n[o]===e||n[o].listener===e){s=n[o].listener,r=o;break}if(r<0)return this;0===r?n.shift():function(t,e){for(;e+1<t.length;e++)t[e]=t[e+1];t.pop()}(n,r),1===n.length&&(i[t]=n[0]),void 0!==i.removeListener&&this.emit("removeListener",t,s||e)}return this},a.prototype.off=a.prototype.removeListener,a.prototype.removeAllListeners=function(t){var e,n,i;if(void 0===(n=this._events))return this;if(void 0===n.removeListener)return 0===arguments.length?(this._events=Object.create(null),this._eventsCount=0):void 0!==n[t]&&(0==--this._eventsCount?this._events=Object.create(null):delete n[t]),this;if(0===arguments.length){var r,o=Object.keys(n);for(i=0;i<o.length;++i)"removeListener"!==(r=o[i])&&this.removeAllListeners(r);return this.removeAllListeners("removeListener"),this._events=Object.create(null),this._eventsCount=0,this}if("function"==typeof(e=n[t]))this.removeListener(t,e);else if(void 0!==e)for(i=e.length-1;i>=0;i--)this.removeListener(t,e[i]);return this},a.prototype.listeners=function(t){return p(this,t,!0)},a.prototype.rawListeners=function(t){return p(this,t,!1)},a.listenerCount=function(t,e){return"function"==typeof t.listenerCount?t.listenerCount(e):g.call(t,e)},a.prototype.listenerCount=g,a.prototype.eventNames=function(){return this._eventsCount>0?i(this._events):[]}},function(t,e,n){(e=t.exports=n(25)).Stream=e,e.Readable=e,e.Writable=n(22),e.Duplex=n(6),e.Transform=n(30),e.PassThrough=n(60)},function(t,e,n){var i=n(21),r=i.Buffer;function o(t,e){for(var n in t)e[n]=t[n]}function s(t,e,n){return r(t,e,n)}r.from&&r.alloc&&r.allocUnsafe&&r.allocUnsafeSlow?t.exports=i:(o(i,e),e.Buffer=s),o(r,s),s.from=function(t,e,n){if("number"==typeof t)throw new TypeError("Argument must not be a number");return r(t,e,n)},s.alloc=function(t,e,n){if("number"!=typeof t)throw new TypeError("Argument must be a number");var i=r(t);return void 0!==e?"string"==typeof n?i.fill(e,n):i.fill(e):i.fill(0),i},s.allocUnsafe=function(t){if("number"!=typeof t)throw new TypeError("Argument must be a number");return r(t)},s.allocUnsafeSlow=function(t){if("number"!=typeof t)throw new TypeError("Argument must be a number");return i.SlowBuffer(t)}},function(t,e,n){"use strict";(function(t){ 14/*! 15 * The buffer module from node.js, for the browser. 16 * 17 * @author Feross Aboukhadijeh <http://feross.org> 18 * @license MIT 19 */ 20var i=n(51),r=n(52),o=n(26);function s(){return c.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function a(t,e){if(s()<e)throw new RangeError("Invalid typed array length");return c.TYPED_ARRAY_SUPPORT?(t=new Uint8Array(e)).__proto__=c.prototype:(null===t&&(t=new c(e)),t.length=e),t}function c(t,e,n){if(!(c.TYPED_ARRAY_SUPPORT||this instanceof c))return new c(t,e,n);if("number"==typeof t){if("string"==typeof e)throw new Error("If encoding is specified then the first argument must be a string");return h(this,t)}return l(this,t,e,n)}function l(t,e,n,i){if("number"==typeof e)throw new TypeError('"value" argument must not be a number');return"undefined"!=typeof ArrayBuffer&&e instanceof ArrayBuffer?function(t,e,n,i){if(e.byteLength,n<0||e.byteLength<n)throw new RangeError("'offset' is out of bounds");if(e.byteLength<n+(i||0))throw new RangeError("'length' is out of bounds");e=void 0===n&&void 0===i?new Uint8Array(e):void 0===i?new Uint8Array(e,n):new Uint8Array(e,n,i);c.TYPED_ARRAY_SUPPORT?(t=e).__proto__=c.prototype:t=d(t,e);return t}(t,e,n,i):"string"==typeof e?function(t,e,n){"string"==typeof n&&""!==n||(n="utf8");if(!c.isEncoding(n))throw new TypeError('"encoding" must be a valid string encoding');var i=0|p(e,n),r=(t=a(t,i)).write(e,n);r!==i&&(t=t.slice(0,r));return t}(t,e,n):function(t,e){if(c.isBuffer(e)){var n=0|f(e.length);return 0===(t=a(t,n)).length||e.copy(t,0,0,n),t}if(e){if("undefined"!=typeof ArrayBuffer&&e.buffer instanceof ArrayBuffer||"length"in e)return"number"!=typeof e.length||(i=e.length)!=i?a(t,0):d(t,e);if("Buffer"===e.type&&o(e.data))return d(t,e.data)}var i;throw new TypeError("First argument must be a string, Buffer, ArrayBuffer, Array, or array-like object.")}(t,e)}function u(t){if("number"!=typeof t)throw new TypeError('"size" argument must be a number');if(t<0)throw new RangeError('"size" argument must not be negative')}function h(t,e){if(u(e),t=a(t,e<0?0:0|f(e)),!c.TYPED_ARRAY_SUPPORT)for(var n=0;n<e;++n)t[n]=0;return t}function d(t,e){var n=e.length<0?0:0|f(e.length);t=a(t,n);for(var i=0;i<n;i+=1)t[i]=255&e[i];return t}function f(t){if(t>=s())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+s().toString(16)+" bytes");return 0|t}function p(t,e){if(c.isBuffer(t))return t.length;if("undefined"!=typeof ArrayBuffer&&"function"==typeof ArrayBuffer.isView&&(ArrayBuffer.isView(t)||t instanceof ArrayBuffer))return t.byteLength;"string"!=typeof t&&(t=""+t);var n=t.length;if(0===n)return 0;for(var i=!1;;)switch(e){case"ascii":case"latin1":case"binary":return n;case"utf8":case"utf-8":case void 0:return $(t).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*n;case"hex":return n>>>1;case"base64":return U(t).length;default:if(i)return $(t).length;e=(""+e).toLowerCase(),i=!0}}function g(t,e,n){var i=!1;if((void 0===e||e<0)&&(e=0),e>this.length)return"";if((void 0===n||n>this.length)&&(n=this.length),n<=0)return"";if((n>>>=0)<=(e>>>=0))return"";for(t||(t="utf8");;)switch(t){case"hex":return k(this,e,n);case"utf8":case"utf-8":return L(this,e,n);case"ascii":return O(this,e,n);case"latin1":case"binary":return C(this,e,n);case"base64":return A(this,e,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return I(this,e,n);default:if(i)throw new TypeError("Unknown encoding: "+t);t=(t+"").toLowerCase(),i=!0}}function m(t,e,n){var i=t[e];t[e]=t[n],t[n]=i}function v(t,e,n,i,r){if(0===t.length)return-1;if("string"==typeof n?(i=n,n=0):n>2147483647?n=2147483647:n<-2147483648&&(n=-2147483648),n=+n,isNaN(n)&&(n=r?0:t.length-1),n<0&&(n=t.length+n),n>=t.length){if(r)return-1;n=t.length-1}else if(n<0){if(!r)return-1;n=0}if("string"==typeof e&&(e=c.from(e,i)),c.isBuffer(e))return 0===e.length?-1:y(t,e,n,i,r);if("number"==typeof e)return e&=255,c.TYPED_ARRAY_SUPPORT&&"function"==typeof Uint8Array.prototype.indexOf?r?Uint8Array.prototype.indexOf.call(t,e,n):Uint8Array.prototype.lastIndexOf.call(t,e,n):y(t,[e],n,i,r);throw new TypeError("val must be string, number or Buffer")}function y(t,e,n,i,r){var o,s=1,a=t.length,c=e.length;if(void 0!==i&&("ucs2"===(i=String(i).toLowerCase())||"ucs-2"===i||"utf16le"===i||"utf-16le"===i)){if(t.length<2||e.length<2)return-1;s=2,a/=2,c/=2,n/=2}function l(t,e){return 1===s?t[e]:t.readUInt16BE(e*s)}if(r){var u=-1;for(o=n;o<a;o++)if(l(t,o)===l(e,-1===u?0:o-u)){if(-1===u&&(u=o),o-u+1===c)return u*s}else-1!==u&&(o-=o-u),u=-1}else for(n+c>a&&(n=a-c),o=n;o>=0;o--){for(var h=!0,d=0;d<c;d++)if(l(t,o+d)!==l(e,d)){h=!1;break}if(h)return o}return-1}function b(t,e,n,i){n=Number(n)||0;var r=t.length-n;i?(i=Number(i))>r&&(i=r):i=r;var o=e.length;if(o%2!=0)throw new TypeError("Invalid hex string");i>o/2&&(i=o/2);for(var s=0;s<i;++s){var a=parseInt(e.substr(2*s,2),16);if(isNaN(a))return s;t[n+s]=a}return s}function w(t,e,n,i){return B($(e,t.length-n),t,n,i)}function _(t,e,n,i){return B(function(t){for(var e=[],n=0;n<t.length;++n)e.push(255&t.charCodeAt(n));return e}(e),t,n,i)}function E(t,e,n,i){return _(t,e,n,i)}function S(t,e,n,i){return B(U(e),t,n,i)}function x(t,e,n,i){return B(function(t,e){for(var n,i,r,o=[],s=0;s<t.length&&!((e-=2)<0);++s)n=t.charCodeAt(s),i=n>>8,r=n%256,o.push(r),o.push(i);return o}(e,t.length-n),t,n,i)}function A(t,e,n){return 0===e&&n===t.length?i.fromByteArray(t):i.fromByteArray(t.slice(e,n))}function L(t,e,n){n=Math.min(t.length,n);for(var i=[],r=e;r<n;){var o,s,a,c,l=t[r],u=null,h=l>239?4:l>223?3:l>191?2:1;if(r+h<=n)switch(h){case 1:l<128&&(u=l);break;case 2:128==(192&(o=t[r+1]))&&(c=(31&l)<<6|63&o)>127&&(u=c);break;case 3:o=t[r+1],s=t[r+2],128==(192&o)&&128==(192&s)&&(c=(15&l)<<12|(63&o)<<6|63&s)>2047&&(c<55296||c>57343)&&(u=c);break;case 4:o=t[r+1],s=t[r+2],a=t[r+3],128==(192&o)&&128==(192&s)&&128==(192&a)&&(c=(15&l)<<18|(63&o)<<12|(63&s)<<6|63&a)>65535&&c<1114112&&(u=c)}null===u?(u=65533,h=1):u>65535&&(u-=65536,i.push(u>>>10&1023|55296),u=56320|1023&u),i.push(u),r+=h}return function(t){var e=t.length;if(e<=4096)return String.fromCharCode.apply(String,t);var n="",i=0;for(;i<e;)n+=String.fromCharCode.apply(String,t.slice(i,i+=4096));return n}(i)}e.Buffer=c,e.SlowBuffer=function(t){+t!=t&&(t=0);return c.alloc(+t)},e.INSPECT_MAX_BYTES=50,c.TYPED_ARRAY_SUPPORT=void 0!==t.TYPED_ARRAY_SUPPORT?t.TYPED_ARRAY_SUPPORT:function(){try{var t=new Uint8Array(1);return t.__proto__={__proto__:Uint8Array.prototype,foo:function(){return 42}},42===t.foo()&&"function"==typeof t.subarray&&0===t.subarray(1,1).byteLength}catch(t){return!1}}(),e.kMaxLength=s(),c.poolSize=8192,c._augment=function(t){return t.__proto__=c.prototype,t},c.from=function(t,e,n){return l(null,t,e,n)},c.TYPED_ARRAY_SUPPORT&&(c.prototype.__proto__=Uint8Array.prototype,c.__proto__=Uint8Array,"undefined"!=typeof Symbol&&Symbol.species&&c[Symbol.species]===c&&Object.defineProperty(c,Symbol.species,{value:null,configurable:!0})),c.alloc=function(t,e,n){return function(t,e,n,i){return u(e),e<=0?a(t,e):void 0!==n?"string"==typeof i?a(t,e).fill(n,i):a(t,e).fill(n):a(t,e)}(null,t,e,n)},c.allocUnsafe=function(t){return h(null,t)},c.allocUnsafeSlow=function(t){return h(null,t)},c.isBuffer=function(t){return!(null==t||!t._isBuffer)},c.compare=function(t,e){if(!c.isBuffer(t)||!c.isBuffer(e))throw new TypeError("Arguments must be Buffers");if(t===e)return 0;for(var n=t.length,i=e.length,r=0,o=Math.min(n,i);r<o;++r)if(t[r]!==e[r]){n=t[r],i=e[r];break}return n<i?-1:i<n?1:0},c.isEncoding=function(t){switch(String(t).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},c.concat=function(t,e){if(!o(t))throw new TypeError('"list" argument must be an Array of Buffers');if(0===t.length)return c.alloc(0);var n;if(void 0===e)for(e=0,n=0;n<t.length;++n)e+=t[n].length;var i=c.allocUnsafe(e),r=0;for(n=0;n<t.length;++n){var s=t[n];if(!c.isBuffer(s))throw new TypeError('"list" argument must be an Array of Buffers');s.copy(i,r),r+=s.length}return i},c.byteLength=p,c.prototype._isBuffer=!0,c.prototype.swap16=function(){var t=this.length;if(t%2!=0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var e=0;e<t;e+=2)m(this,e,e+1);return this},c.prototype.swap32=function(){var t=this.length;if(t%4!=0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(var e=0;e<t;e+=4)m(this,e,e+3),m(this,e+1,e+2);return this},c.prototype.swap64=function(){var t=this.length;if(t%8!=0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(var e=0;e<t;e+=8)m(this,e,e+7),m(this,e+1,e+6),m(this,e+2,e+5),m(this,e+3,e+4);return this},c.prototype.toString=function(){var t=0|this.length;return 0===t?"":0===arguments.length?L(this,0,t):g.apply(this,arguments)},c.prototype.equals=function(t){if(!c.isBuffer(t))throw new TypeError("Argument must be a Buffer");return this===t||0===c.compare(this,t)},c.prototype.inspect=function(){var t="",n=e.INSPECT_MAX_BYTES;return this.length>0&&(t=this.toString("hex",0,n).match(/.{2}/g).join(" "),this.length>n&&(t+=" ... ")),"<Buffer "+t+">"},c.prototype.compare=function(t,e,n,i,r){if(!c.isBuffer(t))throw new TypeError("Argument must be a Buffer");if(void 0===e&&(e=0),void 0===n&&(n=t?t.length:0),void 0===i&&(i=0),void 0===r&&(r=this.length),e<0||n>t.length||i<0||r>this.length)throw new RangeError("out of range index");if(i>=r&&e>=n)return 0;if(i>=r)return-1;if(e>=n)return 1;if(this===t)return 0;for(var o=(r>>>=0)-(i>>>=0),s=(n>>>=0)-(e>>>=0),a=Math.min(o,s),l=this.slice(i,r),u=t.slice(e,n),h=0;h<a;++h)if(l[h]!==u[h]){o=l[h],s=u[h];break}return o<s?-1:s<o?1:0},c.prototype.includes=function(t,e,n){return-1!==this.indexOf(t,e,n)},c.prototype.indexOf=function(t,e,n){return v(this,t,e,n,!0)},c.prototype.lastIndexOf=function(t,e,n){return v(this,t,e,n,!1)},c.prototype.write=function(t,e,n,i){if(void 0===e)i="utf8",n=this.length,e=0;else if(void 0===n&&"string"==typeof e)i=e,n=this.length,e=0;else{if(!isFinite(e))throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");e|=0,isFinite(n)?(n|=0,void 0===i&&(i="utf8")):(i=n,n=void 0)}var r=this.length-e;if((void 0===n||n>r)&&(n=r),t.length>0&&(n<0||e<0)||e>this.length)throw new RangeError("Attempt to write outside buffer bounds");i||(i="utf8");for(var o=!1;;)switch(i){case"hex":return b(this,t,e,n);case"utf8":case"utf-8":return w(this,t,e,n);case"ascii":return _(this,t,e,n);case"latin1":case"binary":return E(this,t,e,n);case"base64":return S(this,t,e,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return x(this,t,e,n);default:if(o)throw new TypeError("Unknown encoding: "+i);i=(""+i).toLowerCase(),o=!0}},c.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function O(t,e,n){var i="";n=Math.min(t.length,n);for(var r=e;r<n;++r)i+=String.fromCharCode(127&t[r]);return i}function C(t,e,n){var i="";n=Math.min(t.length,n);for(var r=e;r<n;++r)i+=String.fromCharCode(t[r]);return i}function k(t,e,n){var i=t.length;(!e||e<0)&&(e=0),(!n||n<0||n>i)&&(n=i);for(var r="",o=e;o<n;++o)r+=q(t[o]);return r}function I(t,e,n){for(var i=t.slice(e,n),r="",o=0;o<i.length;o+=2)r+=String.fromCharCode(i[o]+256*i[o+1]);return r}function j(t,e,n){if(t%1!=0||t<0)throw new RangeError("offset is not uint");if(t+e>n)throw new RangeError("Trying to access beyond buffer length")}function T(t,e,n,i,r,o){if(!c.isBuffer(t))throw new TypeError('"buffer" argument must be a Buffer instance');if(e>r||e<o)throw new RangeError('"value" argument is out of bounds');if(n+i>t.length)throw new RangeError("Index out of range")}function P(t,e,n,i){e<0&&(e=65535+e+1);for(var r=0,o=Math.min(t.length-n,2);r<o;++r)t[n+r]=(e&255<<8*(i?r:1-r))>>>8*(i?r:1-r)}function D(t,e,n,i){e<0&&(e=4294967295+e+1);for(var r=0,o=Math.min(t.length-n,4);r<o;++r)t[n+r]=e>>>8*(i?r:3-r)&255}function N(t,e,n,i,r,o){if(n+i>t.length)throw new RangeError("Index out of range");if(n<0)throw new RangeError("Index out of range")}function R(t,e,n,i,o){return o||N(t,0,n,4),r.write(t,e,n,i,23,4),n+4}function M(t,e,n,i,o){return o||N(t,0,n,8),r.write(t,e,n,i,52,8),n+8}c.prototype.slice=function(t,e){var n,i=this.length;if((t=~~t)<0?(t+=i)<0&&(t=0):t>i&&(t=i),(e=void 0===e?i:~~e)<0?(e+=i)<0&&(e=0):e>i&&(e=i),e<t&&(e=t),c.TYPED_ARRAY_SUPPORT)(n=this.subarray(t,e)).__proto__=c.prototype;else{var r=e-t;n=new c(r,void 0);for(var o=0;o<r;++o)n[o]=this[o+t]}return n},c.prototype.readUIntLE=function(t,e,n){t|=0,e|=0,n||j(t,e,this.length);for(var i=this[t],r=1,o=0;++o<e&&(r*=256);)i+=this[t+o]*r;return i},c.prototype.readUIntBE=function(t,e,n){t|=0,e|=0,n||j(t,e,this.length);for(var i=this[t+--e],r=1;e>0&&(r*=256);)i+=this[t+--e]*r;return i},c.prototype.readUInt8=function(t,e){return e||j(t,1,this.length),this[t]},c.prototype.readUInt16LE=function(t,e){return e||j(t,2,this.length),this[t]|this[t+1]<<8},c.prototype.readUInt16BE=function(t,e){return e||j(t,2,this.length),this[t]<<8|this[t+1]},c.prototype.readUInt32LE=function(t,e){return e||j(t,4,this.length),(this[t]|this[t+1]<<8|this[t+2]<<16)+16777216*this[t+3]},c.prototype.readUInt32BE=function(t,e){return e||j(t,4,this.length),16777216*this[t]+(this[t+1]<<16|this[t+2]<<8|this[t+3])},c.prototype.readIntLE=function(t,e,n){t|=0,e|=0,n||j(t,e,this.length);for(var i=this[t],r=1,o=0;++o<e&&(r*=256);)i+=this[t+o]*r;return i>=(r*=128)&&(i-=Math.pow(2,8*e)),i},c.prototype.readIntBE=function(t,e,n){t|=0,e|=0,n||j(t,e,this.length);for(var i=e,r=1,o=this[t+--i];i>0&&(r*=256);)o+=this[t+--i]*r;return o>=(r*=128)&&(o-=Math.pow(2,8*e)),o},c.prototype.readInt8=function(t,e){return e||j(t,1,this.length),128&this[t]?-1*(255-this[t]+1):this[t]},c.prototype.readInt16LE=function(t,e){e||j(t,2,this.length);var n=this[t]|this[t+1]<<8;return 32768&n?4294901760|n:n},c.prototype.readInt16BE=function(t,e){e||j(t,2,this.length);var n=this[t+1]|this[t]<<8;return 32768&n?4294901760|n:n},c.prototype.readInt32LE=function(t,e){return e||j(t,4,this.length),this[t]|this[t+1]<<8|this[t+2]<<16|this[t+3]<<24},c.prototype.readInt32BE=function(t,e){return e||j(t,4,this.length),this[t]<<24|this[t+1]<<16|this[t+2]<<8|this[t+3]},c.prototype.readFloatLE=function(t,e){return e||j(t,4,this.length),r.read(this,t,!0,23,4)},c.prototype.readFloatBE=function(t,e){return e||j(t,4,this.length),r.read(this,t,!1,23,4)},c.prototype.readDoubleLE=function(t,e){return e||j(t,8,this.length),r.read(this,t,!0,52,8)},c.prototype.readDoubleBE=function(t,e){return e||j(t,8,this.length),r.read(this,t,!1,52,8)},c.prototype.writeUIntLE=function(t,e,n,i){(t=+t,e|=0,n|=0,i)||T(this,t,e,n,Math.pow(2,8*n)-1,0);var r=1,o=0;for(this[e]=255&t;++o<n&&(r*=256);)this[e+o]=t/r&255;return e+n},c.prototype.writeUIntBE=function(t,e,n,i){(t=+t,e|=0,n|=0,i)||T(this,t,e,n,Math.pow(2,8*n)-1,0);var r=n-1,o=1;for(this[e+r]=255&t;--r>=0&&(o*=256);)this[e+r]=t/o&255;return e+n},c.prototype.writeUInt8=function(t,e,n){return t=+t,e|=0,n||T(this,t,e,1,255,0),c.TYPED_ARRAY_SUPPORT||(t=Math.floor(t)),this[e]=255&t,e+1},c.prototype.writeUInt16LE=function(t,e,n){return t=+t,e|=0,n||T(this,t,e,2,65535,0),c.TYPED_ARRAY_SUPPORT?(this[e]=255&t,this[e+1]=t>>>8):P(this,t,e,!0),e+2},c.prototype.writeUInt16BE=function(t,e,n){return t=+t,e|=0,n||T(this,t,e,2,65535,0),c.TYPED_ARRAY_SUPPORT?(this[e]=t>>>
vendor: 8,074 bytes, line 20
208,this[e+1]=255&t):P(this,t,e,!1),e+2},c.prototype.writeUInt32LE=function(t,e,n){return t=+t,e|=0,n||T(this,t,e,4,4294967295,0),c.TYPED_ARRAY_SUPPORT?(this[e+3]=t>>>24,this[e+2]=t>>>16,this[e+1]=t>>>8,this[e]=255&t):D(this,t,e,!0),e+4},c.prototype.writeUInt32BE=function(t,e,n){return t=+t,e|=0,n||T(this,t,e,4,4294967295,0),c.TYPED_ARRAY_SUPPORT?(this[e]=t>>>24,this[e+1]=t>>>16,this[e+2]=t>>>8,this[e+3]=255&t):D(this,t,e,!1),e+4},c.prototype.writeIntLE=function(t,e,n,i){if(t=+t,e|=0,!i){var r=Math.pow(2,8*n-1);T(this,t,e,n,r-1,-r)}var o=0,s=1,a=0;for(this[e]=255&t;++o<n&&(s*=256);)t<0&&0===a&&0!==this[e+o-1]&&(a=1),this[e+o]=(t/s>>0)-a&255;return e+n},c.prototype.writeIntBE=function(t,e,n,i){if(t=+t,e|=0,!i){var r=Math.pow(2,8*n-1);T(this,t,e,n,r-1,-r)}var o=n-1,s=1,a=0;for(this[e+o]=255&t;--o>=0&&(s*=256);)t<0&&0===a&&0!==this[e+o+1]&&(a=1),this[e+o]=(t/s>>0)-a&255;return e+n},c.prototype.writeInt8=function(t,e,n){return t=+t,e|=0,n||T(this,t,e,1,127,-128),c.TYPED_ARRAY_SUPPORT||(t=Math.floor(t)),t<0&&(t=255+t+1),this[e]=255&t,e+1},c.prototype.writeInt16LE=function(t,e,n){return t=+t,e|=0,n||T(this,t,e,2,32767,-32768),c.TYPED_ARRAY_SUPPORT?(this[e]=255&t,this[e+1]=t>>>8):P(this,t,e,!0),e+2},c.prototype.writeInt16BE=function(t,e,n){return t=+t,e|=0,n||T(this,t,e,2,32767,-32768),c.TYPED_ARRAY_SUPPORT?(this[e]=t>>>8,this[e+1]=255&t):P(this,t,e,!1),e+2},c.prototype.writeInt32LE=function(t,e,n){return t=+t,e|=0,n||T(this,t,e,4,2147483647,-2147483648),c.TYPED_ARRAY_SUPPORT?(this[e]=255&t,this[e+1]=t>>>8,this[e+2]=t>>>16,this[e+3]=t>>>24):D(this,t,e,!0),e+4},c.prototype.writeInt32BE=function(t,e,n){return t=+t,e|=0,n||T(this,t,e,4,2147483647,-2147483648),t<0&&(t=4294967295+t+1),c.TYPED_ARRAY_SUPPORT?(this[e]=t>>>24,this[e+1]=t>>>16,this[e+2]=t>>>8,this[e+3]=255&t):D(this,t,e,!1),e+4},c.prototype.writeFloatLE=function(t,e,n){return R(this,t,e,!0,n)},c.prototype.writeFloatBE=function(t,e,n){return R(this,t,e,!1,n)},c.prototype.writeDoubleLE=function(t,e,n){return M(this,t,e,!0,n)},c.prototype.writeDoubleBE=function(t,e,n){return M(this,t,e,!1,n)},c.prototype.copy=function(t,e,n,i){if(n||(n=0),i||0===i||(i=this.length),e>=t.length&&(e=t.length),e||(e=0),i>0&&i<n&&(i=n),i===n)return 0;if(0===t.length||0===this.length)return 0;if(e<0)throw new RangeError("targetStart out of bounds");if(n<0||n>=this.length)throw new RangeError("sourceStart out of bounds");if(i<0)throw new RangeError("sourceEnd out of bounds");i>this.length&&(i=this.length),t.length-e<i-n&&(i=t.length-e+n);var r,o=i-n;if(this===t&&n<e&&e<i)for(r=o-1;r>=0;--r)t[r+e]=this[r+n];else if(o<1e3||!c.TYPED_ARRAY_SUPPORT)for(r=0;r<o;++r)t[r+e]=this[r+n];else Uint8Array.prototype.set.call(t,this.subarray(n,n+o),e);return o},c.prototype.fill=function(t,e,n,i){if("string"==typeof t){if("string"==typeof e?(i=e,e=0,n=this.length):"string"==typeof n&&(i=n,n=this.length),1===t.length){var r=t.charCodeAt(0);r<256&&(t=r)}if(void 0!==i&&"string"!=typeof i)throw new TypeError("encoding must be a string");if("string"==typeof i&&!c.isEncoding(i))throw new TypeError("Unknown encoding: "+i)}else"number"==typeof t&&(t&=255);if(e<0||this.length<e||this.length<n)throw new RangeError("Out of range index");if(n<=e)return this;var o;if(e>>>=0,n=void 0===n?this.length:n>>>0,t||(t=0),"number"==typeof t)for(o=e;o<n;++o)this[o]=t;else{var s=c.isBuffer(t)?t:$(new c(t,i).toString()),a=s.length;for(o=0;o<n-e;++o)this[o+e]=s[o%a]}return this};var F=/[^+\/0-9A-Za-z-_]/g;function q(t){return t<16?"0"+t.toString(16):t.toString(16)}function $(t,e){var n;e=e||1/0;for(var i=t.length,r=null,o=[],s=0;s<i;++s){if((n=t.charCodeAt(s))>55295&&n<57344){if(!r){if(n>56319){(e-=3)>-1&&o.push(239,191,189);continue}if(s+1===i){(e-=3)>-1&&o.push(239,191,189);continue}r=n;continue}if(n<56320){(e-=3)>-1&&o.push(239,191,189),r=n;continue}n=65536+(r-55296<<10|n-56320)}else r&&(e-=3)>-1&&o.push(239,191,189);if(r=null,n<128){if((e-=1)<0)break;o.push(n)}else if(n<2048){if((e-=2)<0)break;o.push(n>>6|192,63&n|128)}else if(n<65536){if((e-=3)<0)break;o.push(n>>12|224,n>>6&63|128,63&n|128)}else{if(!(n<1114112))throw new Error("Invalid code point");if((e-=4)<0)break;o.push(n>>18|240,n>>12&63|128,n>>6&63|128,63&n|128)}}return o}function U(t){return i.toByteArray(function(t){if((t=function(t){return t.trim?t.trim():t.replace(/^\s+|\s+$/g,"")}(t).replace(F,"")).length<2)return"";for(;t.length%4!=0;)t+="=";return t}(t))}function B(t,e,n,i){for(var r=0;r<i&&!(r+n>=e.length||r>=t.length);++r)e[r+n]=t[r];return r}}).call(this,n(5))},function(t,e,n){"use strict";(function(e,i,r){var o=n(12);function s(t){var e=this;this.next=null,this.entry=null,this.finish=function(){!function(t,e,n){var i=t.entry;t.entry=null;for(;i;){var r=i.callback;e.pendingcb--,r(n),i=i.next}e.corkedRequestsFree.next=t}(e,t)}}t.exports=y;var a,c=!e.browser&&["v0.10","v0.9."].indexOf(e.version.slice(0,5))>-1?i:o.nextTick;y.WritableState=v;var l=Object.create(n(10));l.inherits=n(7);var u={deprecate:n(58)},h=n(27),d=n(20).Buffer,f=(void 0!==r?r:"undefined"!=typeof window?window:"undefined"!=typeof self?self:{}).Uint8Array||function(){};var p,g=n(28);function m(){}function v(t,e){a=a||n(6),t=t||{};var i=e instanceof a;this.objectMode=!!t.objectMode,i&&(this.objectMode=this.objectMode||!!t.writableObjectMode);var r=t.highWaterMark,l=t.writableHighWaterMark,u=this.objectMode?16:16384;this.highWaterMark=r||0===r?r:i&&(l||0===l)?l:u,this.highWaterMark=Math.floor(this.highWaterMark),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;var h=!1===t.decodeStrings;this.decodeStrings=!h,this.defaultEncoding=t.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(t){!function(t,e){var n=t._writableState,i=n.sync,r=n.writecb;if(function(t){t.writing=!1,t.writecb=null,t.length-=t.writelen,t.writelen=0}(n),e)!function(t,e,n,i,r){--e.pendingcb,n?(o.nextTick(r,i),o.nextTick(x,t,e),t._writableState.errorEmitted=!0,t.emit("error",i)):(r(i),t._writableState.errorEmitted=!0,t.emit("error",i),x(t,e))}(t,n,i,e,r);else{var s=E(n);s||n.corked||n.bufferProcessing||!n.bufferedRequest||_(t,n),i?c(w,t,n,s,r):w(t,n,s,r)}}(e,t)},this.writecb=null,this.writelen=0,this.bufferedRequest=null,this.lastBufferedRequest=null,this.pendingcb=0,this.prefinished=!1,this.errorEmitted=!1,this.bufferedRequestCount=0,this.corkedRequestsFree=new s(this)}function y(t){if(a=a||n(6),!(p.call(y,this)||this instanceof a))return new y(t);this._writableState=new v(t,this),this.writable=!0,t&&("function"==typeof t.write&&(this._write=t.write),"function"==typeof t.writev&&(this._writev=t.writev),"function"==typeof t.destroy&&(this._destroy=t.destroy),"function"==typeof t.final&&(this._final=t.final)),h.call(this)}function b(t,e,n,i,r,o,s){e.writelen=i,e.writecb=s,e.writing=!0,e.sync=!0,n?t._writev(r,e.onwrite):t._write(r,o,e.onwrite),e.sync=!1}function w(t,e,n,i){n||function(t,e){0===e.length&&e.needDrain&&(e.needDrain=!1,t.emit("drain"))}(t,e),e.pendingcb--,i(),x(t,e)}function _(t,e){e.bufferProcessing=!0;var n=e.bufferedRequest;if(t._writev&&n&&n.next){var i=e.bufferedRequestCount,r=new Array(i),o=e.corkedRequestsFree;o.entry=n;for(var a=0,c=!0;n;)r[a]=n,n.isBuf||(c=!1),n=n.next,a+=1;r.allBuffers=c,b(t,e,!0,e.length,r,"",o.finish),e.pendingcb++,e.lastBufferedRequest=null,o.next?(e.corkedRequestsFree=o.next,o.next=null):e.corkedRequestsFree=new s(e),e.bufferedRequestCount=0}else{for(;n;){var l=n.chunk,u=n.encoding,h=n.callback;if(b(t,e,!1,e.objectMode?1:l.length,l,u,h),n=n.next,e.bufferedRequestCount--,e.writing)break}null===n&&(e.lastBufferedRequest=null)}e.bufferedRequest=n,e.bufferProcessing=!1}function E(t){return t.ending&&0===t.length&&null===t.bufferedRequest&&!t.finished&&!t.writing}function S(t,e){t._final((function(n){e.pendingcb--,n&&t.emit("error",n),e.prefinished=!0,t.emit("prefinish"),x(t,e)}))}function x(t,e){var n=E(e);return n&&(!function(t,e){e.prefinished||e.finalCalled||("function"==typeof t._final?(e.pendingcb++,e.finalCalled=!0,o.nextTick(S,t,e)):(e.prefinished=!0,t.emit("prefinish")))}
20(t,e),0===e.pendingcb&&(e.finished=!0,t.emit("finish"))),n}l.inherits(y,h),v.prototype.getBuffer=function(){for(var t=this.bufferedRequest,e=[];t;)e.push(t),t=t.next;return e},function(){try{Object.defineProperty(v.prototype,"buffer",{get:u.deprecate((function(){return this.getBuffer()}),"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch(t){}}(),"function"==typeof Symbol&&Symbol.hasInstance&&"function"==typeof Function.prototype[Symbol.hasInstance]?(p=Function.prototype[Symbol.hasInstance],Object.defineProperty(y,Symbol.hasInstance,{value:function(t){return!!p.call(this,t)||this===y&&(t&&t._writableState instanceof v)}})):p=function(t){return t instanceof this},y.prototype.pipe=function(){this.emit("error",new Error("Cannot pipe, not readable"))},y.prototype.write=function(t,e,n){var i,r=this._writableState,s=!1,a=!r.objectMode&&(i=t,d.isBuffer(i)||i instanceof f);return a&&!d.isBuffer(t)&&(t=function(t){return d.from(t)}(t)),"function"==typeof e&&(n=e,e=null),a?e="buffer":e||(e=r.defaultEncoding),"function"!=typeof n&&(n=m),r.ended?function(t,e){var n=new Error("write after end");t.emit("error",n),o.nextTick(e,n)}(this,n):(a||function(t,e,n,i){var r=!0,s=!1;return null===n?s=new TypeError("May not write null values to stream"):"string"==typeof n||void 0===n||e.objectMode||(s=new TypeError("Invalid non-string/buffer chunk")),s&&(t.emit("error",s),o.nextTick(i,s),r=!1),r}(this,r,t,n))&&(r.pendingcb++,s=function(t,e,n,i,r,o){if(!n){var s=function(t,e,n){t.objectMode||!1===t.decodeStrings||"string"!=typeof e||(e=d.from(e,n));return e}(e,i,r);i!==s&&(n=!0,r="buffer",i=s)}var a=e.objectMode?1:i.length;e.length+=a;var c=e.length<e.highWaterMark;c||(e.needDrain=!0);if(e.writing||e.corked){var l=e.lastBufferedRequest;e.lastBufferedRequest={chunk:i,encoding:r,isBuf:n,callback:o,next:null},l?l.next=e.lastBufferedRequest:e.bufferedRequest=e.lastBufferedRequest,e.bufferedRequestCount+=1}else b(t,e,!1,a,i,r,o);return c}(this,r,a,t,e,n)),s},y.prototype.cork=function(){this._writableState.corked++},y.prototype.uncork=function(){var t=this._writableState;t.corked&&(t.corked--,t.writing||t.corked||t.bufferProcessing||!t.bufferedRequest||_(this,t))},y.prototype.setDefaultEncoding=function(t){if("string"==typeof t&&(t=t.toLowerCase()),!(["hex","utf8","utf-8","ascii","binary","base64","ucs2","ucs-2","utf16le","utf-16le","raw"].indexOf((t+"").toLowerCase())>-1))throw new TypeError("Unknown encoding: "+t);return this._writableState.defaultEncoding=t,this},Object.defineProperty(y.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),y.prototype._write=function(t,e,n){n(new Error("_write() is not implemented"))},y.prototype._writev=null,y.prototype.end=function(t,e,n){var i=this._writableState;"function"==typeof t?(n=t,t=null,e=null):"function"==typeof e&&(n=e,e=null),null!=t&&this.write(t,e),i.corked&&(i.corked=1,this.uncork()),i.ending||function(t,e,n){e.ending=!0,x(t,e),n&&(e.finished?o.nextTick(n):t.once("finish",n));e.ended=!0,t.writable=!1}(this,i,n)},Object.defineProperty(y.prototype,"destroyed",{get:function(){return void 0!==this._writableState&&this._writableState.destroyed},set:function(t){this._writableState&&(this._writableState.destroyed=t)}}),y.prototype.destroy=g.destroy,y.prototype._undestroy=g.undestroy,y.prototype._destroy=function(t,e){this.end(),e(t)}}).call(this,n(9),n(56).setImmediate,n(5))},,function(t,e,n){"use strict"; 21/*! 22 * reading-time 23 * Copyright (c) Nicolas Gryman <[email protected]> 24 * MIT Licensed 25 */function i(t,e){return e.some(([e,n])=>e<=t&&t<=n)}function r(t){if("string"!=typeof t)return!1;return i(t.charCodeAt(0),[[12352,12447],[19968,40959],[44032,55203],[131072,191456]])}function o(t){return" \n\r\t".includes(t)}function s(t){if("string"!=typeof t)return!1;return i(t.charCodeAt(0),[[33,47],[58,64],[91,96],[123,126],[12288,12351],[65280,65519]])}t.exports=function(t,e={}){let n=0,i=0,a=t.length-1;const c=e.wordsPerMinute||200,l=e.wordBound||o;for(;l(t[i]);)i++;for(;l(t[a]);)a--;const u=t+"\n";for(let t=i;t<=a;t++)if((r(u[t])||!l(u[t])&&(l(u[t+1])||r(u[t+1])))&&n++,r(u[t]))for(;t<=a&&(s(u[t+1])||l(u[t+1]));)t++;const h=n/c,d=Math.round(60*h*1e3);return{text:Math.ceil(h.toFixed(2))+" min read",minutes:h,time:d,words:n}}},function(t,e,n){"use strict";(function(e,i){var r=n(12);t.exports=b;var o,s=n(26);b.ReadableState=y;n(18).EventEmitter;var a=function(t,e){return t.listeners(e).length},c=n(27),l=n(20).Buffer,u=(void 0!==e?e:"undefined"!=typeof window?window:"undefined"!=typeof self?self:{}).Uint8Array||function(){};var h=Object.create(n(10));h.inherits=n(7);var d=n(53),f=void 0;f=d&&d.debuglog?d.debuglog("stream"):function(){};var p,g=n(54),m=n(28);h.inherits(b,c);var v=["error","close","destroy","pause","resume"];function y(t,e){t=t||{};
vendor: 14,896 bytes, line 25
25var i=e instanceof(o=o||n(6));this.objectMode=!!t.objectMode,i&&(this.objectMode=this.objectMode||!!t.readableObjectMode);var r=t.highWaterMark,s=t.readableHighWaterMark,a=this.objectMode?16:16384;this.highWaterMark=r||0===r?r:i&&(s||0===s)?s:a,this.highWaterMark=Math.floor(this.highWaterMark),this.buffer=new g,this.length=0,this.pipes=null,this.pipesCount=0,this.flowing=null,this.ended=!1,this.endEmitted=!1,this.reading=!1,this.sync=!0,this.needReadable=!1,this.emittedReadable=!1,this.readableListening=!1,this.resumeScheduled=!1,this.destroyed=!1,this.defaultEncoding=t.defaultEncoding||"utf8",this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,t.encoding&&(p||(p=n(29).StringDecoder),this.decoder=new p(t.encoding),this.encoding=t.encoding)}function b(t){if(o=o||n(6),!(this instanceof b))return new b(t);this._readableState=new y(t,this),this.readable=!0,t&&("function"==typeof t.read&&(this._read=t.read),"function"==typeof t.destroy&&(this._destroy=t.destroy)),c.call(this)}function w(t,e,n,i,r){var o,s=t._readableState;null===e?(s.reading=!1,function(t,e){if(e.ended)return;if(e.decoder){var n=e.decoder.end();n&&n.length&&(e.buffer.push(n),e.length+=e.objectMode?1:n.length)}e.ended=!0,S(t)}(t,s)):(r||(o=function(t,e){var n;i=e,l.isBuffer(i)||i instanceof u||"string"==typeof e||void 0===e||t.objectMode||(n=new TypeError("Invalid non-string/buffer chunk"));var i;return n}(s,e)),o?t.emit("error",o):s.objectMode||e&&e.length>0?("string"==typeof e||s.objectMode||Object.getPrototypeOf(e)===l.prototype||(e=function(t){return l.from(t)}(e)),i?s.endEmitted?t.emit("error",new Error("stream.unshift() after end event")):_(t,s,e,!0):s.ended?t.emit("error",new Error("stream.push() after EOF")):(s.reading=!1,s.decoder&&!n?(e=s.decoder.write(e),s.objectMode||0!==e.length?_(t,s,e,!1):A(t,s)):_(t,s,e,!1))):i||(s.reading=!1));return function(t){return!t.ended&&(t.needReadable||t.length<t.highWaterMark||0===t.length)}(s)}function _(t,e,n,i){e.flowing&&0===e.length&&!e.sync?(t.emit("data",n),t.read(0)):(e.length+=e.objectMode?1:n.length,i?e.buffer.unshift(n):e.buffer.push(n),e.needReadable&&S(t)),A(t,e)}Object.defineProperty(b.prototype,"destroyed",{get:function(){return void 0!==this._readableState&&this._readableState.destroyed},set:function(t){this._readableState&&(this._readableState.destroyed=t)}}),b.prototype.destroy=m.destroy,b.prototype._undestroy=m.undestroy,b.prototype._destroy=function(t,e){this.push(null),e(t)},b.prototype.push=function(t,e){var n,i=this._readableState;return i.objectMode?n=!0:"string"==typeof t&&((e=e||i.defaultEncoding)!==i.encoding&&(t=l.from(t,e),e=""),n=!0),w(this,t,e,!1,n)},b.prototype.unshift=function(t){return w(this,t,null,!0,!1)},b.prototype.isPaused=function(){return!1===this._readableState.flowing},b.prototype.setEncoding=function(t){return p||(p=n(29).StringDecoder),this._readableState.decoder=new p(t),this._readableState.encoding=t,this};function E(t,e){return t<=0||0===e.length&&e.ended?0:e.objectMode?1:t!=t?e.flowing&&e.length?e.buffer.head.data.length:e.length:(t>e.highWaterMark&&(e.highWaterMark=function(t){return t>=8388608?t=8388608:(t--,t|=t>>>1,t|=t>>>2,t|=t>>>4,t|=t>>>8,t|=t>>>16,t++),t}(t)),t<=e.length?t:e.ended?e.length:(e.needReadable=!0,0))}function S(t){var e=t._readableState;e.needReadable=!1,e.emittedReadable||(f("emitReadable",e.flowing),e.emittedReadable=!0,e.sync?r.nextTick(x,t):x(t))}function x(t){f("emit readable"),t.emit("readable"),k(t)}function A(t,e){e.readingMore||(e.readingMore=!0,r.nextTick(L,t,e))}function L(t,e){for(var n=e.length;!e.reading&&!e.flowing&&!e.ended&&e.length<e.highWaterMark&&(f("maybeReadMore read 0"),t.read(0),n!==e.length);)n=e.length;e.readingMore=!1}function O(t){f("readable nexttick read 0"),t.read(0)}function C(t,e){e.reading||(f("resume read 0"),t.read(0)),e.resumeScheduled=!1,e.awaitDrain=0,t.emit("resume"),k(t),e.flowing&&!e.reading&&t.read(0)}function k(t){var e=t._readableState;for(f("flow",e.flowing);e.flowing&&null!==t.read(););}function I(t,e){return 0===e.length?null:(e.objectMode?n=e.buffer.shift():!t||t>=e.length?(n=e.decoder?e.buffer.join(""):1===e.buffer.length?e.buffer.head.data:e.buffer.concat(e.length),e.buffer.clear()):n=function(t,e,n){var i;t<e.head.data.length?(i=e.head.data.slice(0,t),e.head.data=e.head.data.slice(t)):i=t===e.head.data.length?e.shift():n?function(t,e){var n=e.head,i=1,r=n.data;t-=r.length;for(;n=n.next;){var o=n.data,s=t>o.length?o.length:t;if(s===o.length?r+=o:r+=o.slice(0,t),0===(t-=s)){s===o.length?(++i,n.next?e.head=n.next:e.head=e.tail=null):(e.head=n,n.data=o.slice(s));break}++i}return e.length-=i,r}(t,e):function(t,e){var n=l.allocUnsafe(t),i=e.head,r=1;i.data.copy(n),t-=i.data.length;for(;i=i.next;){var o=i.data,s=t>o.length?o.length:t;if(o.copy(n,n.length-t,0,s),0===(t-=s)){s===o.length?(++r,i.next?e.head=i.next:e.head=e.tail=null):(e.head=i,i.data=o.slice(s));break}++r}return e.length-=r,n}(t,e);return i}(t,e.buffer,e.decoder),n);var n}function j(t){var e=t._readableState;if(e.length>0)throw new Error('"endReadable()" called on non-empty stream');e.endEmitted||(e.ended=!0,r.nextTick(T,e,t))}function T(t,e){t.endEmitted||0!==t.length||(t.endEmitted=!0,e.readable=!1,e.emit("end"))}function P(t,e){for(var n=0,i=t.length;n<i;n++)if(t[n]===e)return n;return-1}b.prototype.read=function(t){f("read",t),t=parseInt(t,10);var e=this._readableState,n=t;if(0!==t&&(e.emittedReadable=!1),0===t&&e.needReadable&&(e.length>=e.highWaterMark||e.ended))return f("read: emitReadable",e.length,e.ended),0===e.length&&e.ended?j(this):S(this),null;if(0===(t=E(t,e))&&e.ended)return 0===e.length&&j(this),null;var i,r=e.needReadable;return f("need readable",r),(0===e.length||e.length-t<e.highWaterMark)&&f("length less than watermark",r=!0),e.ended||e.reading?f("reading or ended",r=!1):r&&(f("do read"),e.reading=!0,e.sync=!0,0===e.length&&(e.needReadable=!0),this._read(e.highWaterMark),e.sync=!1,e.reading||(t=E(n,e))),null===(i=t>0?I(t,e):null)?(e.needReadable=!0,t=0):e.length-=t,0===e.length&&(e.ended||(e.needReadable=!0),n!==t&&e.ended&&j(this)),null!==i&&this.emit("data",i),i},b.prototype._read=function(t){this.emit("error",new Error("_read() is not implemented"))},b.prototype.pipe=function(t,e){var n=this,o=this._readableState;switch(o.pipesCount){case 0:o.pipes=t;break;case 1:o.pipes=[o.pipes,t];break;default:o.pipes.push(t)}o.pipesCount+=1,f("pipe count=%d opts=%j",o.pipesCount,e);var c=(!e||!1!==e.end)&&t!==i.stdout&&t!==i.stderr?u:b;function l(e,i){f("onunpipe"),e===n&&i&&!1===i.hasUnpiped&&(i.hasUnpiped=!0,f("cleanup"),t.removeListener("close",v),t.removeListener("finish",y),t.removeListener("drain",h),t.removeListener("error",m),t.removeListener("unpipe",l),n.removeListener("end",u),n.removeListener("end",b),n.removeListener("data",g),d=!0,!o.awaitDrain||t._writableState&&!t._writableState.needDrain||h())}function u(){f("onend"),t.end()}o.endEmitted?r.nextTick(c):n.once("end",c),t.on("unpipe",l);var h=function(t){return function(){var e=t._readableState;f("pipeOnDrain",e.awaitDrain),e.awaitDrain&&e.awaitDrain--,0===e.awaitDrain&&a(t,"data")&&(e.flowing=!0,k(t))}}(n);t.on("drain",h);var d=!1;var p=!1;function g(e){f("ondata"),p=!1,!1!==t.write(e)||p||((1===o.pipesCount&&o.pipes===t||o.pipesCount>1&&-1!==P(o.pipes,t))&&!d&&(f("false write response, pause",o.awaitDrain),o.awaitDrain++,p=!0),n.pause())}function m(e){f("onerror",e),b(),t.removeListener("error",m),0===a(t,"error")&&t.emit("error",e)}function v(){t.removeListener("finish",y),b()}function y(){f("onfinish"),t.removeListener("close",v),b()}function b(){f("unpipe"),n.unpipe(t)}return n.on("data",g),function(t,e,n){if("function"==typeof t.prependListener)return t.prependListener(e,n);t._events&&t._events[e]?s(t._events[e])?t._events[e].unshift(n):t._events[e]=[n,t._events[e]]:t.on(e,n)}(t,"error",m),t.once("close",v),t.once("finish",y),t.emit("pipe",n),o.flowing||(f("pipe resume"),n.resume()),t},b.prototype.unpipe=function(t){var e=this._readableState,n={hasUnpiped:!1};if(0===e.pipesCount)return this;if(1===e.pipesCount)return t&&t!==e.pipes||(t||(t=e.pipes),e.pipes=null,e.pipesCount=0,e.flowing=!1,t&&t.emit("unpipe",this,n)),this;if(!t){var i=e.pipes,r=e.pipesCount;e.pipes=null,e.pipesCount=0,e.flowing=!1;for(var o=0;o<r;o++)i[o].emit("unpipe",this,{hasUnpiped:!1});return this}var s=P(e.pipes,t);return-1===s||(e.pipes.splice(s,1),e.pipesCount-=1,1===e.pipesCount&&(e.pipes=e.pipes[0]),t.emit("unpipe",this,n)),this},b.prototype.on=function(t,e){var n=c.prototype.on.call(this,t,e);if("data"===t)!1!==this._readableState.flowing&&this.resume();else if("readable"===t){var i=this._readableState;i.endEmitted||i.readableListening||(i.readableListening=i.needReadable=!0,i.emittedReadable=!1,i.reading?i.length&&S(this):r.nextTick(O,this))}return n},b.prototype.addListener=b.prototype.on,b.prototype.resume=function(){var t=this._readableState;return t.flowing||(f("resume"),t.flowing=!0,function(t,e){e.resumeScheduled||(e.resumeScheduled=!0,r.nextTick(C,t,e))}(this,t)),this},b.prototype.pause=function(){return f("call pause flowing=%j",this._readableState.flowing),!1!==this._readableState.flowing&&(f("pause"),this._readableState.flowing=!1,this.emit("pause")),this},b.prototype.wrap=function(t){var e=this,n=this._readableState,i=!1;for(var r in t.on("end",(function(){if(f("wrapped end"),n.decoder&&!n.ended){var t=n.decoder.end();t&&t.length&&e.push(t)}e.push(null)})),t.on("data",(function(r){(f("wrapped data"),n.decoder&&(r=n.decoder.write(r)),n.objectMode&&null==r)||(n.objectMode||r&&r.length)&&(e.push(r)||(i=!0,t.pause()))})),t)void 0===this[r]&&"function"==typeof t[r]&&(this[r]=function(e){return function(){return t[e].apply(t,arguments)}}(r));for(var o=0;o<v.length;o++)t.on(v[o],this.emit.bind(this,v[o]));return this._read=function(e){f("wrapped _read",e),i&&(i=!1,t.resume())},this},Object.defineProperty(b.prototype,"readableHighWaterMark",{enumerable:!1,get:function(){return this._readableState.highWaterMark}}),b._fromList=I}).call(this,n(5),n(9))},function(t,e){var n={}.toString;t.exports=Array.isArray||function(t){return"[object Array]"==n.call(t)}},function(t,e,n){t.exports=n(18).EventEmitter},function(t,e,n){"use strict";var i=n(12);function r(t,e){t.emit("error",e)}t.exports={destroy:function(t,e){var n=this,o=this._readableState&&this._readableState.destroyed,s=this._writableState&&this._writableState.destroyed;return o||s?(e?e(t):t&&(this._writableState?this._writableState.errorEmitted||(this._writableState.errorEmitted=!0,i.nextTick(r,this,t)):i.nextTick(r,this,t)),this):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(t||null,(function(t){!e&&t?n._writableState?n._writableState.errorEmitted||(n._writableState.errorEmitted=!0,i.nextTick(r,n,t)):i.nextTick(r,n,t):e&&e(t)})),this)},undestroy:function(){this._readableState&&(this._readableState.destroyed=!1,this._readableState.reading=!1,this._readableState.ended=!1,this._readableState.endEmitted=!1),this._writableState&&(this._writableState.destroyed=!1,this._writableState.ended=!1,this._writableState.ending=!1,this._writableState.finalCalled=!1,this._writableState.prefinished=!1,this._writableState.finished=!1,this._writableState.errorEmitted=!1)}}},function(t,e,n){"use strict";var i=n(59).Buffer,r=i.isEncoding||function(t){switch((t=""+t)&&t.toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":case"raw":return!0;default:return!1}};function o(t){var e;switch(this.encoding=function(t){var e=function(t){if(!t)return"utf8";for(var e;;)switch(t){case"utf8":case"utf-8":return"utf8";case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return"utf16le";case"latin1":case"binary":return"latin1";case"base64":case"ascii":case"hex":return t;default:if(e)return;t=(""+t).toLowerCase(),e=!0}}(t);if("string"!=typeof e&&(i.isEncoding===r||!r(t)))throw new Error("Unknown encoding: "+t);return e||t}(t),this.encoding){case"utf16le":this.text=c,this.end=l,e=4;break;case"utf8":this.fillLast=a,e=4;break;case"base64":this.text=u,this.end=h,e=3;break;default:return this.write=d,void(this.end=f)}this.lastNeed=0,this.lastTotal=0,this.lastChar=i.allocUnsafe(e)}function s(t){return t<=127?0:t>>5==6?2:t>>4==14?3:t>>3==30?4:t>>6==2?-1:-2}function a(t){var e=this.lastTotal-this.lastNeed,n=function(t,e,n){if(128!=(192&e[0]))return t.lastNeed=0,"�";if(t.lastNeed>1&&e.length>1){if(128!=(192&e[1]))return t.lastNeed=1,"�";if(t.lastNeed>2&&e.length>2&&128!=(192&e[2]))return t.lastNeed=2,"�"}}(this,t);return void 0!==n?n:this.lastNeed<=t.length?(t.copy(this.lastChar,e,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal)):(t.copy(this.lastChar,e,0,t.length),void(this.lastNeed-=t.length))}function c(t,e){if((t.length-e)%2==0){var n=t.toString("utf16le",e);if(n){var i=n.charCodeAt(n.length-1);if(i>=55296&&i<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=t[t.length-2],this.lastChar[1]=t[t.length-1],n.slice(0,-1)}return n}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=t[t.length-1],t.toString("utf16le",e,t.length-1)}function l(t){var e=t&&t.length?this.write(t):"";if(this.lastNeed){var n=this.lastTotal-this.lastNeed;return e+this.lastChar.toString("utf16le",0,n)}return e}function u(t,e){var n=(t.length-e)%3;return 0===n?t.toString("base64",e):(this.lastNeed=3-n,this.lastTotal=3,1===n?this.lastChar[0]=t[t.length-1]:(this.lastChar[0]=t[t.length-2],this.lastChar[1]=t[t.length-1]),t.toString("base64",e,t.length-n))}function h(t){var e=t&&t.length?this.write(t):"";return this.lastNeed?e+this.lastChar.toString("base64",0,3-this.lastNeed):e}function d(t){return t.toString(this.encoding)}function f(t){return t&&t.length?this.write(t):""}e.StringDecoder=o,o.prototype.write=function(t){if(0===t.length)return"";var e,n;if(this.lastNeed){if(void 0===(e=this.fillLast(t)))return"";n=this.lastNeed,this.lastNeed=0}else n=0;return n<t.length?e?e+this.text(t,n):this.text(t,n):e||""},o.prototype.end=function(t){var e=t&&t.length?this.write(t):"";return this.lastNeed?e+"�":e},o.prototype.text=function(t,e){var n=function(t,e,n){var i=e.length-1;if(i<n)return 0;var r=s(e[i]);if(r>=0)return r>0&&(t.lastNeed=r-1),r;if(--i<n||-2===r)return 0;if((r=s(e[i]))>=0)return r>0&&(t.lastNeed=r-2),r;if(--i<n||-2===r)return 0;if((r=s(e[i]))>=0)return r>0&&(2===r?r=0:t.lastNeed=r-3),r;return 0}(this,t,e);if(!this.lastNeed)return t.toString("utf8",e);this.lastTotal=n;var i=t.length-(n-this.lastNeed);return t.copy(this.lastChar,0,i),t.toString("utf8",e,i)},o.prototype.fillLast=function(t){if(this.lastNeed<=t.length)return t.copy(this.lastChar,this.lastTotal-this.lastNeed,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);t.copy(this.lastChar,this.lastTotal-this.lastNeed,0,t.length),this.lastNeed-=t.length}},function(t,e,n){"use strict";
vendor: 4,775 bytes, lines 25-38
25t.exports=s;var i=n(6),r=Object.create(n(10));function o(t,e){var n=this._transformState;n.transforming=!1;var i=n.writecb;if(!i)return this.emit("error",new Error("write callback called multiple times"));n.writechunk=null,n.writecb=null,null!=e&&this.push(e),i(t);var r=this._readableState;r.reading=!1,(r.needReadable||r.length<r.highWaterMark)&&this._read(r.highWaterMark)}function s(t){if(!(this instanceof s))return new s(t);i.call(this,t),this._transformState={afterTransform:o.bind(this),needTransform:!1,transforming:!1,writecb:null,writechunk:null,writeencoding:null},this._readableState.needReadable=!0,this._readableState.sync=!1,t&&("function"==typeof t.transform&&(this._transform=t.transform),"function"==typeof t.flush&&(this._flush=t.flush)),this.on("prefinish",a)}function a(){var t=this;"function"==typeof this._flush?this._flush((function(e,n){c(t,e,n)})):c(this,null,null)}function c(t,e,n){if(e)return t.emit("error",e);if(null!=n&&t.push(n),t._writableState.length)throw new Error("Calling transform done when ws.length != 0");if(t._transformState.transforming)throw new Error("Calling transform done when still transforming");return t.push(null)}r.inherits=n(7),r.inherits(s,i),s.prototype.push=function(t,e){return this._transformState.needTransform=!1,i.prototype.push.call(this,t,e)},s.prototype._transform=function(t,e,n){throw new Error("_transform() is not implemented")},s.prototype._write=function(t,e,n){var i=this._transformState;if(i.writecb=n,i.writechunk=t,i.writeencoding=e,!i.transforming){var r=this._readableState;(i.needTransform||r.needReadable||r.length<r.highWaterMark)&&this._read(r.highWaterMark)}},s.prototype._read=function(t){var e=this._transformState;null!==e.writechunk&&e.writecb&&!e.transforming?(e.transforming=!0,this._transform(e.writechunk,e.writeencoding,e.afterTransform)):e.needTransform=!0},s.prototype._destroy=function(t,e){var n=this;i.prototype._destroy.call(this,t,(function(t){e(t),n.emit("close")}))}},function(t,e,n){(function(t,i){var r;/*! https://mths.be/punycode v1.4.0 by @mathias */!function(o){e&&e.nodeType,t&&t.nodeType;var s="object"==typeof i&&i;s.global!==s&&s.window!==s&&s.self;var a,c=2147483647,l=/^xn--/,u=/[^\x20-\x7E]/,h=/[\x2E\u3002\uFF0E\uFF61]/g,d={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},f=Math.floor,p=String.fromCharCode;function g(t){throw new RangeError(d[t])}function m(t,e){for(var n=t.length,i=[];n--;)i[n]=e(t[n]);return i}function v(t,e){var n=t.split("@"),i="";return n.length>1&&(i=n[0]+"@",t=n[1]),i+m((t=t.replace(h,".")).split("."),e).join(".")}function y(t){for(var e,n,i=[],r=0,o=t.length;r<o;)(e=t.charCodeAt(r++))>=55296&&e<=56319&&r<o?56320==(64512&(n=t.charCodeAt(r++)))?i.push(((1023&e)<<10)+(1023&n)+65536):(i.push(e),r--):i.push(e);return i}function b(t){return m(t,(function(t){var e="";return t>65535&&(e+=p((t-=65536)>>>10&1023|55296),t=56320|1023&t),e+=p(t)})).join("")}function w(t,e){return t+22+75*(t<26)-((0!=e)<<5)}function _(t,e,n){var i=0;for(t=n?f(t/700):t>>1,t+=f(t/e);t>455;i+=36)t=f(t/35);return f(i+36*t/(t+38))}function E(t){var e,n,i,r,o,s,a,l,u,h,d,p=[],m=t.length,v=0,y=128,w=72;for((n=t.lastIndexOf("-"))<0&&(n=0),i=0;i<n;++i)t.charCodeAt(i)>=128&&g("not-basic"),p.push(t.charCodeAt(i));for(r=n>0?n+1:0;r<m;){for(o=v,s=1,a=36;r>=m&&g("invalid-input"),((l=(d=t.charCodeAt(r++))-48<10?d-22:d-65<26?d-65:d-97<26?d-97:36)>=36||l>f((c-v)/s))&&g("overflow"),v+=l*s,!(l<(u=a<=w?1:a>=w+26?26:a-w));a+=36)s>f(c/(h=36-u))&&g("overflow"),s*=h;w=_(v-o,e=p.length+1,0==o),f(v/e)>c-y&&g("overflow"),y+=f(v/e),v%=e,p.splice(v++,0,y)}return b(p)}function S(t){var e,n,i,r,o,s,a,l,u,h,d,m,v,b,E,S=[];for(m=(t=y(t)).length,e=128,n=0,o=72,s=0;s<m;++s)(d=t[s])<128&&S.push(p(d));for(i=r=S.length,r&&S.push("-");i<m;){for(a=c,s=0;s<m;++s)(d=t[s])>=e&&d<a&&(a=d);for(a-e>f((c-n)/(v=i+1))&&g("overflow"),n+=(a-e)*v,e=a,s=0;s<m;++s)if((d=t[s])<e&&++n>c&&g("overflow"),d==e){for(l=n,u=36;!(l<(h=u<=o?1:u>=o+26?26:u-o));u+=36)E=l-h,b=36-h,S.push(p(w(h+E%b,0))),l=f(E/b);S.push(p(w(l,0))),o=_(n,v,i==r),n=0,++i}++n,++e}return S.join("")}a={version:"1.3.2",ucs2:{decode:y,encode:b},decode:E,encode:S,toASCII:function(t){return v(t,(function(t){return u.test(t)?"xn--"+S(t):t}))},toUnicode:function(t){return v(t,(function(t){return l.test(t)?E(t.slice(4).toLowerCase()):t}))}},void 0===(r=function(){return a}.call(e,n,e,t))||(t.exports=r)}()}).call(this,n(70)(t),n(5))},function(t,e,n){var i,r; 26/*! 27 * URI.js - Mutating URLs 28 * IPv6 Support 29 * 30 * Version: 1.19.11 31 * 32 * Author: Rodney Rehm 33 * Web: http://medialize.github.io/URI.js/ 34 * 35 * Licensed under 36 * MIT License http://www.opensource.org/licenses/mit-license 37 * 38 */!function(o,s){"use strict";
38t.exports?t.exports=s():void 0===(r="function"==typeof(i=s)?i.call(e,n,e,t):i)||(t.exports=r)}(0,(function(t){"use strict";var e=t&&t.IPv6;return{best:function(t){var e,n,i=t.toLowerCase().split(":"),r=i.length,o=8;for(""===i[0]&&""===i[1]&&""===i[2]?(i.shift(),i.shift()):""===i[0]&&""===i[1]?i.shift():""===i[r-1]&&""===i[r-2]&&i.pop(),-1!==i[(r=i.length)-1].indexOf(".")&&(o=7),e=0;e<r&&""!==i[e];e++);if(e<o)for(i.splice(e,1,"0000");i.length<o;)i.splice(e,0,"0000");for(var s=0;s<o;s++){n=i[s].split("");for(var a=0;a<3&&("0"===n[0]&&n.length>1);a++)n.splice(0,1);i[s]=n.join("")}var c=-1,l=0,u=0,h=-1,d=!1;for(s=0;s<o;s++)d?"0"===i[s]?u+=1:(d=!1,u>l&&(c=h,l=u)):"0"===i[s]&&(d=!0,h=s,u=1);u>l&&(c=h,l=u),l>1&&i.splice(c,l,""),r=i.length;var f="";for(""===i[0]&&(f=":"),s=0;s<r&&(f+=i[s],s!==r-1);s++)f+=":";return""===i[r-1]&&(f+=":"),f},noConflict:function(){return t.IPv6===this&&(t.IPv6=e),this}}}))},function(t,e,n){var i,r; 39/*! 40 * URI.js - Mutating URLs 41 * Second Level Domain (SLD) Support 42 * 43 * Version: 1.19.11 44 * 45 * Author: Rodney Rehm 46 * Web: http://medialize.github.io/URI.js/ 47 * 48 * Licensed under 49 * MIT License http://www.opensource.org/licenses/mit-license 50 * 51 */!function(o,s){"use strict";t.exports?t.exports=s():void 0===(r="function"==typeof(i=s)?i.call(e,n,e,t):i)||(t.exports=r)}(0,(function(t){"use strict";var e=t&&t.SecondLevelDomains,n={list:{ac:" com gov mil net org ",ae:" ac co gov mil name net org pro sch ",af:" com edu gov net org ",al:" com edu gov mil net org ",ao:" co ed gv it og pb ",ar:" com edu gob gov int mil net org tur ",at:" ac co gv or ",au:" asn com csiro edu gov id net org ",ba:" co com edu gov mil net org rs unbi unmo unsa untz unze ",bb:" biz co com edu gov info net org store tv ",bh:" biz cc com edu gov info net org ",bn:" com edu gov net org ",bo:" com edu gob gov int mil net org tv ",br:" adm adv agr am arq art ato b bio blog bmd cim cng cnt com coop ecn edu eng esp etc eti far flog fm fnd fot fst g12 ggf gov imb ind inf jor jus lel mat med mil mus net nom not ntr odo org ppg pro psc psi qsl rec slg srv tmp trd tur tv vet vlog wiki zlg ",bs:" com edu gov net org ",bz:" du et om ov rg ",ca:" ab bc mb nb nf nl ns nt nu on pe qc sk yk ",ck:" biz co edu gen gov info net org ",cn:" ac ah bj com cq edu fj gd gov gs gx gz ha hb he hi hl hn jl js jx ln mil net nm nx org qh sc sd sh sn sx tj tw xj xz yn zj ",co:" com edu gov mil net nom org ",cr:" ac c co ed fi go or sa ",cy:" ac biz com ekloges gov ltd name net org parliament press pro tm ",do:" art com edu gob gov mil net org sld web ",dz:" art asso com edu gov net org pol ",ec:" com edu fin gov info med mil net org pro ",eg:" com edu eun gov mil name net org sci ",er:" com edu gov ind mil net org rochest w ",es:" com edu gob nom org ",et:" biz com edu gov info name net org ",fj:" ac biz com info mil name net org pro ",fk:" ac co gov net nom org ",fr:" asso com f gouv nom prd presse tm ",gg:" co net org ",gh:" com edu gov mil org ",gn:" ac com gov net org ",gr:" com edu gov mil net org ",gt:" com edu gob ind mil net org ",gu:" com edu gov net org ",hk:" com edu gov idv net org ",hu:" 2000 agrar bolt casino city co erotica erotika film forum games hotel info ingatlan jogasz konyvelo lakas media news org priv reklam sex shop sport suli szex tm tozsde utazas video ",id:" ac co go mil net or sch web ",il:" ac co gov idf k12 muni net org ",in:" ac co edu ernet firm gen gov i ind mil net nic org res ",iq:" com edu gov i mil net org ",ir:" ac co dnssec gov i id net org sch ",it:" edu gov ",je:" co net org ",jo:" com edu gov mil name net org sch ",jp:" ac ad co ed go gr lg ne or ",ke:" ac co go info me mobi ne or sc ",kh:" com edu gov mil net org per ",ki:" biz com de edu gov info mob net org tel ",km:" asso com coop edu gouv k medecin mil nom notaires pharmaciens presse tm veterinaire ",kn:" edu gov net org ",kr:" ac busan chungbuk chungnam co daegu daejeon es gangwon go gwangju gyeongbuk gyeonggi gyeongnam hs incheon jeju jeonbuk jeonnam k kg mil ms ne or pe re sc seoul ulsan ",kw:" com edu gov net org ",ky:" com edu gov net org ",kz:" com edu gov mil net org ",lb:" c
51om edu gov net org ",lk:" assn com edu gov grp hotel int ltd net ngo org sch soc web ",lr:" com edu gov net org ",lv:" asn com conf edu gov id mil net org ",ly:" com edu gov id med net org plc sch ",ma:" ac co gov m net org press ",mc:" asso tm ",me:" ac co edu gov its net org priv ",mg:" com edu gov mil nom org prd tm ",mk:" com edu gov inf name net org pro ",ml:" com edu gov net org presse ",mn:" edu gov org ",mo:" com edu gov net org ",mt:" com edu gov net org ",mv:" aero biz com coop edu gov info int mil museum name net org pro ",mw:" ac co com coop edu gov int museum net org ",mx:" com edu gob net org ",my:" com edu gov mil name net org sch ",nf:" arts com firm info net other per rec store web ",ng:" biz com edu gov mil mobi name net org sch ",ni:" ac co com edu gob mil net nom org ",np:" com edu gov mil net org ",nr:" biz com edu gov info net org ",om:" ac biz co com edu gov med mil museum net org pro sch ",pe:" com edu gob mil net nom org sld ",ph:" com edu gov i mil net ngo org ",pk:" biz com edu fam gob gok gon gop gos gov net org web ",pl:" art bialystok biz com edu gda gdansk gorzow gov info katowice krakow lodz lublin mil net ngo olsztyn org poznan pwr radom slupsk szczecin torun warszawa waw wroc wroclaw zgora ",pr:" ac biz com edu est gov info isla name net org pro prof ",ps:" com edu gov net org plo sec ",pw:" belau co ed go ne or ",ro:" arts com firm info nom nt org rec store tm www ",rs:" ac co edu gov in org ",sb:" com edu gov net org ",sc:" com edu gov net org ",sh:" co com edu gov net nom org ",sl:" com edu gov net org ",st:" co com consulado edu embaixada gov mil net org principe saotome store ",sv:" com edu gob org red ",sz:" ac co org ",tr:" av bbs bel biz com dr edu gen gov info k12 name net org pol tel tsk tv web ",tt:" aero biz cat co com coop edu gov info int jobs mil mobi museum name net org pro tel travel ",tw:" club com ebiz edu game gov idv mil net org ",mu:" ac co com gov net or org ",mz:" ac co edu gov org ",na:" co com ",nz:" ac co cri geek gen govt health iwi maori mil net org parliament school ",pa:" abo ac com edu gob ing med net nom org sld ",pt:" com edu gov int net nome org publ ",py:" com edu gov mil net org ",qa:" com edu gov mil net org ",re:" asso com nom ",ru:" ac adygeya altai amur arkhangelsk astrakhan bashkiria belgorod bir bryansk buryatia cbg chel chelyabinsk chita chukotka chuvashia com dagestan e-burg edu gov grozny int irkutsk ivanovo izhevsk jar joshkar-ola kalmykia kaluga kamchatka karelia kazan kchr kemerovo khabarovsk khakassia khv kirov koenig komi kostroma kranoyarsk kuban kurgan kursk lipetsk magadan mari mari-el marine mil mordovia mosreg msk murmansk nalchik net nnov nov novosibirsk nsk omsk orenburg org oryol penza perm pp pskov ptz rnd ryazan sakhalin samara saratov simbirsk smolensk spb stavropol stv surgut tambov tatarstan tom tomsk tsaritsyn tsk tula tuva tver tyumen udm udmurtia ulan-ude vladikavkaz vladimir vladivostok volgograd vologda voronezh vrn vyatka yakutia yamal yekaterinburg yuzhno-sakhalinsk ",rw:" ac co com edu gouv gov int mil net ",sa:" com edu gov med net org pub sch ",sd:" com edu gov info med net org tv ",se:" a ac b bd c d e f g h i k l m n o org p parti pp press r s t tm u w x y z ",sg:" com edu gov idn net org per ",sn:" art com edu gouv org perso univ ",sy:" com edu gov mil net news org ",th:" ac co go in mi net or ",tj:" ac biz co com edu go gov info int mil name net nic org test web ",tn:" agrinet com defense edunet ens fin gov ind info intl mincom nat net org perso rnrt rns rnu tourism ",tz:" ac co go ne or ",ua:" biz cherkassy chernigov chernovtsy ck cn co com crimea cv dn dnepropetrovsk donetsk dp edu gov if in ivano-frankivsk kh kharkov kherson khmelnitskiy kiev kirovograd km kr ks kv lg lugansk lutsk lviv me mk net nikolaev od odessa org pl poltava pp rovno rv sebastopol sumy te ternopil uzhgorod vinnica vn zaporizhzhe zhitomir zp zt ",ug:" ac co go ne or org sc ",uk:" ac bl british-library co cym gov govt icnet jet lea ltd me mil mod national-library-scotland nel net nhs nic nls org orgn parliament plc police sch scot soc ",us:" dni fed isa kids nsn ",uy:" com edu gub mil net org ",ve:" co com edu gob info mil net org web ",vi:" co com k12 net org ",vn:" ac biz com edu gov health info int name net org pro ",ye:" co com gov ltd me net org plc ",yu:" ac co edu gov org ",za:" ac agric alt bourse city co cybernet db edu gov grondar iaccess imt inca landesign law mil net ngo nis nom olivetti org pix school tm web ",zm:" ac co com edu gov net org sch ",com:"ar br cn de eu gb gr hu jpn kr no qc ru sa se uk us uy za ",net:"gb jp se uk ",org:"ae",de:"com "},has:function(t){var e=t.lastIndexOf(".");if(e<=0||e>=t.length-1)return!1;var i=t.lastIndexOf(".",e-1);if(i<=0||i>=e-1)return!1;var r=n.list[t.slice(e+1)];return!!r&&r.indexOf(" "+t.slice(i+1,e)+" ")>=0},is:function(t){var e=t.lastIndexOf(".");if(e<=0||e>=t.length-1)return!1;if(t.lastIndexOf(".",e-1)>=0)return!1;var i=n.list[t.slice(e+1)];return!!i&&i.indexOf(" "+t.slice(0,e)+" ")>=0},get:function(t){var e=t.lastIndexOf(".");if(e<=0||e>=t.length-1)return null;var i=t.lastIndexOf(".",e-1);if(i<=0||i>=e-1)return null;var r=n.list[t.slice(e+1)];return r?r.indexOf(" "+t.slice(i+1,e)+" ")<0?null:t.slice(i+1):null},noConflict:function(){return t.SecondLevelDomains===this&&(t.SecondLevelDomains=e),this}};return n}))},function(module,exports){var JSON;JSON||(JSON={}),function(){"use strict";var global=Function("return this")(),JSON=global.JSON;function f(t){return t<10?"0"+t:t}
51JSON||(JSON={}),"function"!=typeof Date.prototype.toJSON&&(Date.prototype.toJSON=function(t){return isFinite(this.valueOf())?this.getUTCFullYear()+"-"+f(this.getUTCMonth()+1)+"-"+f(this.getUTCDate())+"T"+f(this.getUTCHours())+":"+f(this.getUTCMinutes())+":"+f(this.getUTCSeconds())+"Z":null},String.prototype.toJSON=Number.prototype.toJSON=Boolean.prototype.toJSON=function(t){return this.valueOf()});var cx=/[\u0000\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/g,escapable=/[\\\"\x00-\x1f\x7f-\x9f\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/g,gap,indent,meta={"\b":"\\b","\t":"\\t","\n":"\\n","\f":"\\f","\r":"\\r",'"':'\\"',"\\":"\\\\"},rep;function quote(t){return escapable.lastIndex=0,escapable.test(t)?'"'+t.replace(escapable,(function(t){var e=meta[t];return"string"==typeof e?e:"\\u"+("0000"+t.charCodeAt(0).toString(16)).slice(-4)}))+'"':'"'+t+'"'}function str(t,e){var n,i,r,o,s,a=gap,c=e[t];switch(c&&"object"==typeof c&&"function"==typeof c.toJSON&&(c=c.toJSON(t)),"function"==typeof rep&&(c=rep.call(e,t,c)),typeof c){case"string":return quote(c);case"number":return isFinite(c)?String(c):"null";case"boolean":case"null":return String(c);case"object":if(!c)return"null";if(gap+=indent,s=[],"[object Array]"===Object.prototype.toString.apply(c)){for(o=c.length,n=0;n<o;n+=1)s[n]=str(n,c)||"null";return r=0===s.length?"[]":gap?"[\n"+gap+s.join(",\n"+gap)+"\n"+a+"]":"["+s.join(",")+"]",gap=a,r}if(rep&&"object"==typeof rep)for(o=rep.length,n=0;n<o;n+=1)"string"==typeof rep[n]&&(r=str(i=rep[n],c))&&s.push(quote(i)+(gap?": ":":")+r);else for(i in c)Object.prototype.hasOwnProperty.call(c,i)&&(r=str(i,c))&&s.push(quote(i)+(gap?": ":":")+r);return r=0===s.length?"{}":gap?"{\n"+gap+s.join(",\n"+gap)+"\n"+a+"}":"{"+s.join(",")+"}",gap=a,r}}"function"!=typeof JSON.stringify&&(JSON.stringify=function(t,e,n){var i;if(gap="",indent="","number"==typeof n)for(i=0;i<n;i+=1)indent+=" ";else"string"==typeof n&&(indent=n);if(rep=e,e&&"function"!=typeof e&&("object"!=typeof e||"number"!=typeof e.length))throw new Error("JSON.stringify");return str("",{"":t})}),"function"!=typeof JSON.parse&&(JSON.parse=function(text,reviver){var j;function walk(t,e){var n,i,r=t[e];if(r&&"object"==typeof r)for(n in r)Object.prototype.hasOwnProperty.call(r,n)&&(void 0!==(i=walk(r,n))?r[n]=i:delete r[n]);return reviver.call(t,e,r)}if(text=String(text),cx.lastIndex=0,cx.test(text)&&(text=text.replace(cx,(function(t){return"\\u"+("0000"+t.charCodeAt(0).toString(16)).slice(-4)}))),/^[\],:{}\s]*$/.test(text.replace(/\\(?:["\\\/bfnrt]|u[0-9a-fA-F]{4})/g,"@").replace(/"[^"\\\n\r]*"|true|false|null|-?\d+(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,"]").replace(/(?:^|:|,)(?:\s*\[)+/g,"")))return j=eval("("+text+")"),"function"==typeof reviver?walk({"":j},""):j;throw new SyntaxError("JSON.parse")}),global.JSON=JSON,module.exports=JSON}()},,,,function(t,e,n){n(39),n(40),n(92),n(93),n(94),n(42),n(43),n(95),n(96),n(44),n(97),n(98),n(46),n(23),n(47),n(99),n(100),n(101),n(68),n(69),n(102),n(89),n(103),n(104),n(105),n(106),n(90),n(107),n(108),n(109),n(110),n(111),n(91),n(112),n(113),n(71),n(114),n(115),n(116),n(117),n(118),n(119),n(72),n(73),n(74),n(120),n(121),n(122),n(123),n(124),n(125),n(75),n(126),n(127),n(128),n(76),n(129),n(77),n(130),n(131),n(88),t.exports=n(84)},function(t,e,n){"use strict";n.r(e)},function(t,e,n){"use strict";n.r(e);n(2)},,function(t,e){},function(t,e){},function(t,e,n){"use strict";n.r(e);n(0),n(45)},function(t,e){},function(t,e){},function(t,e,n){"use strict";n.r(e);var i=n(0),r=n.n(i),o=n(1);r()((function(){document.querySelector("html").classList.remove("no-js"),r()("body").each((function(t,e){o.g(e)})),r()("head").each((function(t,e){o.f(e)})),r()('[data-js-atom="sticky-event"]').each((function(t,e){o.e(e)})),r()('[data-js-atom="copy-link"]').each((function(){o.d(this)})),-1!==window.location.href.indexOf("userVariant=")||null!==window.location.href.match(/preview-(.*?).gdv/)?console.log("Console is enabled"):(window.console.assert=function(){},window.console.clear=function(){},window.console.context=function(){},window.console.count=function(){},window.console.countReset=function(){},window.console.debug=function(){},window.console.dir=function(){},window.console.dirxml=function(){},window.console.error=function(){},window.console.exception=function(){},window.console.group=function(){},window.console.groupCollapsed=function(){},window.console.groupEnd=function(){},window.console.info=function(){},window.console.log=function(){},window.console.markTimeline=function(){},window.console.memory=function(){},window.console.profile=function(){})}))},function(t,e,n){t.exports.default=t.exports=n(24),t.exports.readingTimeStream=n(49)},function(t,e,n){"use strict"; 52/*! 53 * reading-time 54 * Copyright (c) Nicolas Gryman <[email protected]> 55 * MIT Licensed 56 */const i=n(24),r=n(50).Transform;function o(t){if(!(this instanceof o))return new o(t);r.call(this,{objectMode:!0}),this.options=t||{},this.stats={minutes:0,time:0,words:0}}n(65).inherits(o,r),o.prototype._transform=function(t,e,n){const r=i(t.toString(e),this.options);this.stats.minutes+=r.minutes,this.stats.time+=r.time,this.stats.words+=r.words,n()},o.prototype._flush=function(t){this.stats.text=Math.ceil(this.stats.minutes.toFixed(2))+" min read",this.push(this.stats),t()},t.exports=o},function(t,e,n){t.exports=r;var i=n(18).EventEmitter;function r(){i.call(this)}n(7)(r,i),r.Readable=n(19),r.Writable=n(61),r.Duplex=n(62),r.Transform=n(63),r.PassThrough=n(64),r.Stream=r,r.prototype.pipe=function(t,e){var n=this;function r(e){t.writable&&!1===t.write(e)&&n.pause&&n.pause()}function o(){n.readable&&n.resume&&n.resume()}n.on("data",r),t.on("drain",o),t._isStdio||e&&!1===e.end||(n.on("end",a),n.on("close",c));var s=!1;function a(){s||(s=!0,t.end())}function c(){s||(s=!0,"function"==typeof t.destroy&&t.destroy())}function l(t){if(u(),0===i.listenerCount(this,"error"))throw t}function u(){n.removeListener("data",r),t.removeListener("drain",o),n.removeListener("end",a),n.removeListener("close",c),n.removeListener("error",l),t.removeListener("error",l),n.removeListener("end",u),n.removeListener("close",u),t.removeListener("close",u)}return n.on("error",l),t.on("error",l),n.on("end",u),n.on("close",u),t.on("close",u),t.emit("pipe",n),t}}
vendor: 13,391 bytes, lines 56-60
56,function(t,e,n){"use strict";e.byteLength=function(t){var e=l(t),n=e[0],i=e[1];return 3*(n+i)/4-i},e.toByteArray=function(t){var e,n,i=l(t),s=i[0],a=i[1],c=new o(function(t,e,n){return 3*(e+n)/4-n}(0,s,a)),u=0,h=a>0?s-4:s;for(n=0;n<h;n+=4)e=r[t.charCodeAt(n)]<<18|r[t.charCodeAt(n+1)]<<12|r[t.charCodeAt(n+2)]<<6|r[t.charCodeAt(n+3)],c[u++]=e>>16&255,c[u++]=e>>8&255,c[u++]=255&e;2===a&&(e=r[t.charCodeAt(n)]<<2|r[t.charCodeAt(n+1)]>>4,c[u++]=255&e);1===a&&(e=r[t.charCodeAt(n)]<<10|r[t.charCodeAt(n+1)]<<4|r[t.charCodeAt(n+2)]>>2,c[u++]=e>>8&255,c[u++]=255&e);return c},e.fromByteArray=function(t){for(var e,n=t.length,r=n%3,o=[],s=0,a=n-r;s<a;s+=16383)o.push(u(t,s,s+16383>a?a:s+16383));1===r?(e=t[n-1],o.push(i[e>>2]+i[e<<4&63]+"==")):2===r&&(e=(t[n-2]<<8)+t[n-1],o.push(i[e>>10]+i[e>>4&63]+i[e<<2&63]+"="));return o.join("")};for(var i=[],r=[],o="undefined"!=typeof Uint8Array?Uint8Array:Array,s="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",a=0,c=s.length;a<c;++a)i[a]=s[a],r[s.charCodeAt(a)]=a;function l(t){var e=t.length;if(e%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var n=t.indexOf("=");return-1===n&&(n=e),[n,n===e?0:4-n%4]}function u(t,e,n){for(var r,o,s=[],a=e;a<n;a+=3)r=(t[a]<<16&16711680)+(t[a+1]<<8&65280)+(255&t[a+2]),s.push(i[(o=r)>>18&63]+i[o>>12&63]+i[o>>6&63]+i[63&o]);return s.join("")}r["-".charCodeAt(0)]=62,r["_".charCodeAt(0)]=63},function(t,e){ 57/*! ieee754. BSD-3-Clause License. Feross Aboukhadijeh <https://feross.org/opensource> */ 58e.read=function(t,e,n,i,r){var o,s,a=8*r-i-1,c=(1<<a)-1,l=c>>1,u=-7,h=n?r-1:0,d=n?-1:1,f=t[e+h];for(h+=d,o=f&(1<<-u)-1,f>>=-u,u+=a;u>0;o=256*o+t[e+h],h+=d,u-=8);for(s=o&(1<<-u)-1,o>>=-u,u+=i;u>0;s=256*s+t[e+h],h+=d,u-=8);if(0===o)o=1-l;else{if(o===c)return s?NaN:1/0*(f?-1:1);s+=Math.pow(2,i),o-=l}return(f?-1:1)*s*Math.pow(2,o-i)},e.write=function(t,e,n,i,r,o){var s,a,c,l=8*o-r-1,u=(1<<l)-1,h=u>>1,d=23===r?Math.pow(2,-24)-Math.pow(2,-77):0,f=i?0:o-1,p=i?1:-1,g=e<0||0===e&&1/e<0?1:0;for(e=Math.abs(e),isNaN(e)||e===1/0?(a=isNaN(e)?1:0,s=u):(s=Math.floor(Math.log(e)/Math.LN2),e*(c=Math.pow(2,-s))<1&&(s--,c*=2),(e+=s+h>=1?d/c:d*Math.pow(2,1-h))*c>=2&&(s++,c/=2),s+h>=u?(a=0,s=u):s+h>=1?(a=(e*c-1)*Math.pow(2,r),s+=h):(a=e*Math.pow(2,h-1)*Math.pow(2,r),s=0));r>=8;t[n+f]=255&a,f+=p,a/=256,r-=8);for(s=s<<r|a,l+=r;l>0;t[n+f]=255&s,f+=p,s/=256,l-=8);t[n+f-p]|=128*g}},function(t,e){},function(t,e,n){"use strict";var i=n(20).Buffer,r=n(55);t.exports=function(){function t(){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.head=null,this.tail=null,this.length=0}return t.prototype.push=function(t){var e={data:t,next:null};this.length>0?this.tail.next=e:this.head=e,this.tail=e,++this.length},t.prototype.unshift=function(t){var e={data:t,next:this.head};0===this.length&&(this.tail=e),this.head=e,++this.length},t.prototype.shift=function(){if(0!==this.length){var t=this.head.data;return 1===this.length?this.head=this.tail=null:this.head=this.head.next,--this.length,t}},t.prototype.clear=function(){this.head=this.tail=null,this.length=0},t.prototype.join=function(t){if(0===this.length)return"";for(var e=this.head,n=""+e.data;e=e.next;)n+=t+e.data;return n},t.prototype.concat=function(t){if(0===this.length)return i.alloc(0);for(var e,n,r,o=i.allocUnsafe(t>>>0),s=this.head,a=0;s;)e=s.data,n=o,r=a,e.copy(n,r),a+=s.data.length,s=s.next;return o},t}(),r&&r.inspect&&r.inspect.custom&&(t.exports.prototype[r.inspect.custom]=function(){var t=r.inspect({length:this.length});return this.constructor.name+" "+t})},function(t,e){},function(t,e,n){(function(t){var i=void 0!==t&&t||"undefined"!=typeof self&&self||window,r=Function.prototype.apply;function o(t,e){this._id=t,this._clearFn=e}e.setTimeout=function(){return new o(r.call(setTimeout,i,arguments),clearTimeout)},e.setInterval=function(){return new o(r.call(setInterval,i,arguments),clearInterval)},e.clearTimeout=e.clearInterval=function(t){t&&t.close()},o.prototype.unref=o.prototype.ref=function(){},o.prototype.close=function(){this._clearFn.call(i,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(57),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(5))},function(t,e,n){(function(t,e){!function(t,n){"use strict";if(!t.setImmediate){var i,r,o,s,a,c=1,l={},u=!1,h=t.document,d=Object.getPrototypeOf&&Object.getPrototypeOf(t);d=d&&d.setTimeout?d:t,"[object process]"==={}.toString.call(t.process)?i=function(t){e.nextTick((function(){p(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?((o=new MessageChannel).port1.onmessage=function(t){p(t.data)},i=function(t){o.port2.postMessage(t)}):h&&"onreadystatechange"in h.createElement("script")?(r=h.documentElement,i=function(t){var e=h.createElement("script");e.onreadystatechange=function(){p(t),e.onreadystatechange=null,r.removeChild(e),e=null},r.appendChild(e)}):i=function(t){setTimeout(p,0,t)}:(s="setImmediate$"+Math.random()+"$",a=function(e){e.source===t&&"string"==typeof e.data&&0===e.data.indexOf(s)&&p(+e.data.slice(s.length))},t.addEventListener?t.addEventListener("message",a,!1):t.attachEvent("onmessage",a),i=function(e){t.postMessage(s+e,"*")}),d.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 r={callback:t,args:e};return l[c]=r,i(c),c++},d.clearImmediate=f}function f(t){delete l[t]}function p(t){if(u)setTimeout(p,0,t);else{var e=l[t];if(e){u=!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),u=!1}}}}}("undefined"==typeof self?void 0===t?this:t:self)}).call(this,n(5),n(9))},function(t,e,n){(function(e){function n(t){try{if(!e.localStorage)return!1}catch(t){return!1}var n=e.localStorage[t];return null!=n&&"true"===String(n).toLowerCase()}t.exports=function(t,e){if(n("noDeprecation"))return t;var i=!1;return function(){if(!i){if(n("throwDeprecation"))throw new Error(e);n("traceDeprecation")?console.trace(e):console.warn(e),i=!0}return t.apply(this,arguments)}}}).call(this,n(5))},function(t,e,n){ 59/*! safe-buffer. MIT License. Feross Aboukhadijeh <https://feross.org/opensource> */ 60var i=n(21),r=i.Buffer;function o(t,e){for(var n in t)e[n]=t[n]}function s(t,e,n){return r(t,e,n)}r.from&&r.alloc&&r.allocUnsafe&&r.allocUnsafeSlow?t.exports=i:(o(i,e),e.Buffer=s),s.prototype=Object.create(r.prototype),o(r,s),s.from=function(t,e,n){if("number"==typeof t)throw new TypeError("Argument must not be a number");return r(t,e,n)},s.alloc=function(t,e,n){if("number"!=typeof t)throw new TypeError("Argument must be a number");var i=r(t);return void 0!==e?"string"==typeof n?i.fill(e,n):i.fill(e):i.fill(0),i},s.allocUnsafe=function(t){if("number"!=typeof t)throw new TypeError("Argument must be a number");return r(t)},s.allocUnsafeSlow=function(t){if("number"!=typeof t)throw new TypeError("Argument must be a number");return i.SlowBuffer(t)}},function(t,e,n){"use strict";t.exports=o;var i=n(30),r=Object.create(n(10));function o(t){if(!(this instanceof o))return new o(t);i.call(this,t)}r.inherits=n(7),r.inherits(o,i),o.prototype._transform=function(t,e,n){n(null,t)}},function(t,e,n){t.exports=n(22)},function(t,e,n){t.exports=n(6)},function(t,e,n){t.exports=n(19).Transform},function(t,e,n){t.exports=n(19).PassThrough},function(t,e,n){(function(t){var i=Object.getOwnPropertyDescriptors||function(t){for(var e=Object.keys(t),n={},i=0;i<e.length;i++)n[e[i]]=Object.getOwnPropertyDescriptor(t,e[i]);return n},r=/%[sdj%]/g;e.format=function(t){if(!v(t)){for(var e=[],n=0;n<arguments.length;n++)e.push(a(arguments[n]));return e.join(" ")}n=1;for(var i=arguments,o=i.length,s=String(t).replace(r,(function(t){if("%%"===t)return"%";if(n>=o)return t;switch(t){case"%s":return String(i[n++]);case"%d":return Number(i[n++]);case"%j":try{return JSON.stringify(i[n++])}catch(t){return"[Circular]"}default:return t}})),c=i[n];n<o;c=i[++n])g(c)||!w(c)?s+=" "+c:s+=" "+a(c);return s},e.deprecate=function(n,i){if(void 0!==t&&!0===t.noDeprecation)return n;if(void 0===t)return function(){return e.deprecate(n,i).apply(this,arguments)};var r=!1;return function(){if(!r){if(t.throwDeprecation)throw new Error(i);t.traceDeprecation?console.trace(i):console.error(i),r=!0}return n.apply(this,arguments)}};var o,s={};function a(t,n){var i={seen:[],stylize:l};return arguments.length>=3&&(i.depth=arguments[2]),arguments.length>=4&&(i.colors=arguments[3]),p(n)?i.showHidden=n:n&&e._extend(i,n),y(i.showHidden)&&(i.showHidden=!1),y(i.depth)&&(i.depth=2),y(i.colors)&&(i.colors=!1),y(i.customInspect)&&(i.customInspect=!0),i.colors&&(i.stylize=c),u(i,t,i.depth)}function c(t,e){var n=a.styles[e];return n?"["+a.colors[n][0]+"m"+t+"["+a.colors[n][1]+"m":t}function l(t,e){return t}function u(t,n,i){if(t.customInspect&&n&&S(n.inspect)&&n.inspect!==e.inspect&&(!n.constructor||n.constructor.prototype!==n)){var r=n.inspect(i,t);return v(r)||(r=u(t,r,i)),r}var o=function(t,e){if(y(e))return t.stylize("undefined","undefined");if(v(e)){var n="'"+JSON.stringify(e).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return t.stylize(n,"string")}if(m(e))return t.stylize(""+e,"number");if(p(e))return t.stylize(""+e,"boolean");if(g(e))return t.stylize("null","null")}(t,n);if(o)return o;var s=Object.keys(n),a=function(t){var e={};return t.forEach((function(t,n){e[t]=!0})),e}(s);if(t.showHidden&&(s=Object.getOwnPropertyNames(n)),E(n)&&(s.indexOf("message")>=0||s.indexOf("description")>=0))return h(n);if(0===s.length){if(S(n)){var c=n.name?": "+n.name:"";return t.stylize("[Function"+c+"]","special")}if(b(n))return t.stylize(RegExp.prototype.toString.call(n),"regexp");if(_(n))return t.stylize(Date.prototype.toString.call(n),"date");if(E(n))return h(n)}var l,w="",x=!1,A=["{","}"];(f(n)&&(x=!0,A=["[","]"]),S(n))&&(w=" [Function"+(n.name?": "+n.name:"")+"]");return b(n)&&(w=" "+RegExp.prototype.toString.call(n)),_(n)&&(w=" "+Date.prototype.toUTCString.call(n)),E(n)&&(w=" "+h(n)),0!==s.length||x&&0!=n.length?i<0?b(n)?t.stylize(RegExp.prototype.toString.call(n),"regexp"):t.stylize("[Object]","special"):(t.seen.push(n),l=x?function(t,e,n,i,r){for(var o=[],s=0,a=e.length;s<a;++s)C(e,String(s))?o.push(d(t,e,n,i,String(s),!0)):o.push("");return r.forEach((function(r){r.match(/^\d+$/)||o.push(d(t,e,n,i,r,!0))})),o}(t,n,i,a,s):s.map((function(e){return d(t,n,i,a,e,x)})),t.seen.pop(),function(t,e,n){if(t.reduce((function(t,e){return e.indexOf("\n")>=0&&0,t+e.replace(/\u001b\[\d\d?m/g,"").length+1}),0)>60)return n[0]+(""===e?"":e+"\n ")+" "+t.join(",\n ")+" "+n[1];return n[0]+e+" "+t.join(", ")+" "+n[1]}(l,w,A)):A[0]+w+A[1]}function h(t){return"["+Error.prototype.toString.call(t)+"]"}function d(t,e,n,i,r,o){var s,a,c;if((c=Object.getOwnPropertyDescriptor(e,r)||{value:e[r]}).get?a=c.set?t.stylize("[Getter/Setter]","special"):t.stylize("[Getter]","special"):c.set&&(a=t.stylize("[Setter]","special")),C(i,r)||(s="["+r+"]"),a||(t.seen.indexOf(c.value)<0?(a=g(n)?u(t,c.value,null):u(t,c.value,n-1)).indexOf("\n")>-1&&(a=o?a.split("\n").map((function(t){return" "+t})).join("\n").substr(2):"\n"+a.split("\n").map((function(t){return" "+t})).join("\n")):a=t.stylize("[Circular]","special")),y(s)){if(o&&r.match(/^\d+$/))return a;(s=JSON.stringify(""+r)).match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(s=s.substr(1,s.length-2),s=t.stylize(s,"name")):(s=s.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),s=t.stylize(s,"string"))}return s+": "+a}function f(t){return Array.isArray(t)}function p(t){return"boolean"==typeof t}function g(t){return null===t}function m(t){return"number"==typeof t}function v(t){return"string"==typeof t}function y(t){return void 0===t}function b(t){return w(t)&&"[object RegExp]"===x(t)}function w(t){return"object"==typeof t&&null!==t}function _(t){return w(t)&&"[object Date]"===x(t)}function E(t){return w(t)&&("[object Error]"===x(t)||t instanceof Error)}function S(t){return"function"==typeof t}function x(t){return Object.prototype.toString.call(t)}function A(t){return t<10?"0"+t.toString(10):t.toString(10)}e.debuglog=function(n){if(y(o)&&(o=t.env.NODE_DEBUG||""),n=n.toUpperCase(),!s[n])if(new RegExp("\\b"+n+"\\b","i").test(o)){var i=t.pid;s[n]=function(){var t=e.format.apply(e,arguments);console.error("%s %d: %s",n,i,t)}}else s[n]=function(){};return s[n]},e.inspect=a,a.colors={bold:[1,22],italic:[3,23],underline:[4,24],inverse:[7,27],white:[37,39],grey:[90,39],black:[30,39],blue:[34,39],cyan:[36,39],green:[32,39],magenta:[35,39],red:[31,39],yellow:[33,39]},a.styles={special:"cyan",number:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",date:"magenta",regexp:"red"},e.isArray=f,e.isBoolean=p,e.isNull=g,e.isNullOrUndefined=function(t){return null==t}
60,e.isNumber=m,e.isString=v,e.isSymbol=function(t){return"symbol"==typeof t},e.isUndefined=y,e.isRegExp=b,e.isObject=w,e.isDate=_,e.isError=E,e.isFunction=S,e.isPrimitive=function(t){return null===t||"boolean"==typeof t||"number"==typeof t||"string"==typeof t||"symbol"==typeof t||void 0===t},e.isBuffer=n(66);var L=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function O(){var t=new Date,e=[A(t.getHours()),A(t.getMinutes()),A(t.getSeconds())].join(":");return[t.getDate(),L[t.getMonth()],e].join(" ")}function C(t,e){return Object.prototype.hasOwnProperty.call(t,e)}e.log=function(){console.log("%s - %s",O(),e.format.apply(e,arguments))},e.inherits=n(67),e._extend=function(t,e){if(!e||!w(e))return t;for(var n=Object.keys(e),i=n.length;i--;)t[n[i]]=e[n[i]];return t};var k="undefined"!=typeof Symbol?Symbol("util.promisify.custom"):void 0;function I(t,e){if(!t){var n=new Error("Promise was rejected with a falsy value");n.reason=t,t=n}return e(t)}e.promisify=function(t){if("function"!=typeof t)throw new TypeError('The "original" argument must be of type Function');if(k&&t[k]){var e;if("function"!=typeof(e=t[k]))throw new TypeError('The "util.promisify.custom" argument must be of type Function');return Object.defineProperty(e,k,{value:e,enumerable:!1,writable:!1,configurable:!0}),e}function e(){for(var e,n,i=new Promise((function(t,i){e=t,n=i})),r=[],o=0;o<arguments.length;o++)r.push(arguments[o]);r.push((function(t,i){t?n(t):e(i)}));try{t.apply(this,r)}catch(t){n(t)}return i}return Object.setPrototypeOf(e,Object.getPrototypeOf(t)),k&&Object.defineProperty(e,k,{value:e,enumerable:!1,writable:!1,configurable:!0}),Object.defineProperties(e,i(t))},e.promisify.custom=k,e.callbackify=function(e){if("function"!=typeof e)throw new TypeError('The "original" argument must be of type Function');function n(){for(var n=[],i=0;i<arguments.length;i++)n.push(arguments[i]);var r=n.pop();if("function"!=typeof r)throw new TypeError("The last argument must be of type Function");var o=this,s=function(){return r.apply(o,arguments)};e.apply(this,n).then((function(e){t.nextTick(s,null,e)}),(function(e){t.nextTick(I,e,s)}))}return Object.setPrototypeOf(n,Object.getPrototypeOf(e)),Object.defineProperties(n,i(e)),n}}).call(this,n(9))},function(t,e){t.exports=function(t){return t&&"object"==typeof t&&"function"==typeof t.copy&&"function"==typeof t.fill&&"function"==typeof t.readUInt8}},function(t,e){"function"==typeof Object.create?t.exports=function(t,e){t.super_=e,t.prototype=Object.create(e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}})}:t.exports=function(t,e){t.super_=e;var n=function(){};n.prototype=e.prototype,t.prototype=new n,t.prototype.constructor=t}},function(t,e,n){"use strict";n.r(e);var i=n(0),r=n.n(i),o=n(8),s=n(1),a=".ibmix-consent-manager";r()(a).each((function(){o.b(this)})),r()(window).on(Object(s.b)(s.a.CONSENT_MANAGER_INITIALIZE),(function(t,e){e.querySelectorAll(a).length>0&&e.querySelectorAll(a).forEach((function(t){o.b(t)}))}))},function(t,e){},function(t,e){t.exports=function(t){return t.webpackPolyfill||(t.deprecate=function(){},t.paths=[],t.children||(t.children=[]),Object.defineProperty(t,"loaded",{enumerable:!0,get:function(){return t.l}}),Object.defineProperty(t,"id",{enumerable:!0,get:function(){return t.i}}),t.webpackPolyfill=1),t}},function(t,e){},function(t,e){},function(t,e){},function(t,e){},function(t,e){},function(t,e){},function(t,e,n){"use strict";n.r(e);var i=n(0),r=n.n(i),o=n(15);r()((function(){r()((function(){Object(o.b)(document)}))}))},function(t,e,n){var i,r,o,s;"undefined"!=typeof window&&window,o={id:"ev-emitter/ev-emitter",exports:{},loaded:!1},i="function"==typeof(r=function(){function t(){}var e=t.prototype;return e.on=function(t,e){if(t&&e){var n=this._events=this._events||{},i=n[t]=n[t]||[];return-1==i.indexOf(e)&&i.push(e),this}},e.once=function(t,e){if(t&&e){this.on(t,e);var n=this._onceEvents=this._onceEvents||{};return(n[t]=n[t]||{})[e]=!0,this}},e.off=function(t,e){var n=this._events&&this._events[t];if(n&&n.length){var i=n.indexOf(e);return-1!=i&&n.splice(i,1),this}},e.emitEvent=function(t,e){var n=this._events&&this._events[t];if(n&&n.length){n=n.slice(0),e=e||[];for(var i=this._onceEvents&&this._onceEvents[t],r=0;r<n.length;r++){var o=n[r];i&&i[o]&&(this.off(t,o),delete i[o]),o.apply(this,e)}return this}},e.allOff=function(){delete this._events,delete this._onceEvents},t})?r.call(o.exports,n,o.exports,o):r,o.loaded=!0,void 0!==i||(i=o.exports
60), 61/*! 62 * imagesLoaded v4.1.4 63 * JavaScript is all like "You images are done yet or what?" 64 * MIT License 65 */ 66function(n,r){"use strict";void 0===(s=function(t){return function(t,e){var n=t.jQuery,i=t.console;function r(t,e){for(var n in e)t[n]=e[n];return t}var o=Array.prototype.slice;function s(t,e,a){if(!(this instanceof s))return new s(t,e,a);var c,l=t;("string"==typeof t&&(l=document.querySelectorAll(t)),l)?(this.elements=(c=l,Array.isArray(c)?c:"object"==typeof c&&"number"==typeof c.length?o.call(c):[c]),this.options=r({},this.options),"function"==typeof e?a=e:r(this.options,e),a&&this.on("always",a),this.getImages(),n&&(this.jqDeferred=new n.Deferred),setTimeout(this.check.bind(this))):i.error("Bad element for imagesLoaded "+(l||t))}s.prototype=Object.create(e.prototype),s.prototype.options={},s.prototype.getImages=function(){this.images=[],this.elements.forEach(this.addElementImages,this)},s.prototype.addElementImages=function(t){"IMG"==t.nodeName&&this.addImage(t),!0===this.options.background&&this.addElementBackgroundImages(t);var e=t.nodeType;if(e&&a[e]){for(var n=t.querySelectorAll("img"),i=0;i<n.length;i++){var r=n[i];this.addImage(r)}if("string"==typeof this.options.background){var o=t.querySelectorAll(this.options.background);for(i=0;i<o.length;i++){var s=o[i];this.addElementBackgroundImages(s)}}}};var a={1:!0,9:!0,11:!0};function c(t){this.img=t}function l(t,e){this.url=t,this.element=e,this.img=new Image}return s.prototype.addElementBackgroundImages=function(t){var e=getComputedStyle(t);if(e)for(var n=/url\((['"])?(.*?)\1\)/gi,i=n.exec(e.backgroundImage);null!==i;){var r=i&&i[2];r&&this.addBackground(r,t),i=n.exec(e.backgroundImage)}},s.prototype.addImage=function(t){var e=new c(t);this.images.push(e)},s.prototype.addBackground=function(t,e){var n=new l(t,e);this.images.push(n)},s.prototype.check=function(){var t=this;function e(e,n,i){setTimeout((function(){t.progress(e,n,i)}))}this.progressedCount=0,this.hasAnyBroken=!1,this.images.length?this.images.forEach((function(t){t.once("progress",e),t.check()})):this.complete()},s.prototype.progress=function(t,e,n){this.progressedCount++,this.hasAnyBroken=this.hasAnyBroken||!t.isLoaded,this.emitEvent("progress",[this,t,e]),this.jqDeferred&&this.jqDeferred.notify&&this.jqDeferred.notify(this,t),this.progressedCount==this.images.length&&this.complete(),this.options.debug&&i&&i.log("progress: "+n,t,e)},s.prototype.complete=function(){var t=this.hasAnyBroken?"fail":"done";if(this.isComplete=!0,this.emitEvent(t,[this]),this.emitEvent("always",[this]),this.jqDeferred){var e=this.hasAnyBroken?"reject":"resolve";this.jqDeferred[e](this)}},c.prototype=Object.create(e.prototype),c.prototype.check=function(){this.getIsImageComplete()?this.confirm(0!==this.img.naturalWidth,"naturalWidth"):(this.proxyImage=new Image,this.proxyImage.addEventListener("load",this),this.proxyImage.addEventListener("error",this),this.img.addEventListener("load",this),this.img.addEventListener("error",this),this.proxyImage.src=this.img.src)},c.prototype.getIsImageComplete=function(){return this.img.complete&&this.img.naturalWidth},c.prototype.confirm=function(t,e){this.isLoaded=t,this.emitEvent("progress",[this,this.img,e])},c.prototype.handleEvent=function(t){var e="on"+t.type;this[e]&&this[e](t)},c.prototype.onload=function(){this.confirm(!0,"onload"),this.unbindEvents()},c.prototype.onerror=function(){this.confirm(!1,"onerror"),this.unbindEvents()},c.prototype.unbindEvents=function(){this.proxyImage.removeEventListener("load",this),this.proxyImage.removeEventListener("error",this),this.img.removeEventListener("load",this),this.img.removeEventListener("error",this)},l.prototype=Object.create(c.prototype),l.prototype.check=function(){this.img.addEventListener("load",this),this.img.addEventListener("error",this),this.img.src=this.url,this.getIsImageComplete()&&(this.confirm(0!==this.img.naturalWidth,"naturalWidth"),this.unbindEvents())},l.prototype.unbindEvents=function(){this.img.removeEventListener("load",this),this.img.removeEventListener("error",this)},l.prototype.confirm=function(t,e){this.isLoaded=t,this.emitEvent("progress",[this,this.element,e])},s.makeJQueryPlugin=function(e){(e=e||t.jQuery)&&((n=e).fn.imagesLoaded=function(t,e){return new s(this,t,e).jqDeferred.promise(n(this))})},s.makeJQueryPlugin(),s}(n,t)}.apply(e,[i]))||(t.exports=s)}("undefined"!=typeof window?window:this)},function(t,e,n){!function(t){"use strict";t(n(0),n(80))}((function(t){"use strict";function e(e){var n="dragover"===e;return function(i){i.dataTransfer=i.originalEvent&&i.originalEvent.dataTransfer;var r=i.dataTransfer;r&&-1!==t.inArray("Files",r.types)&&!1!==this._trigger(e,t.Event(e,{delegatedEvent:i}))&&(i.preventDefault(),n&&(r.dropEffect="copy"))}}var n;t.support.fileInput=!(new RegExp("(Android (1\\.[0156]|2\\.[01]))|(Windows Phone (OS 7|8\\.0))|(XBLWP)|(ZuneWP)|(WPDesktop)|(w(eb)?OSBrowser)|(webOS)|(Kindle/(1\\.0|2\\.[05]|3\\.0))").test(window.navigator.userAgent)||t('<input type="file"/>').prop("disabled")),t.support.xhrFileUpload=!(!window.ProgressEvent||!window.FileReader),t.support.xhrFormDataFileUpload=!!window.FormData,t.support.blobSlice=window.Blob&&(Blob.prototype.slice||Blob.prototype.webkitSlice||Blob.prototype.mozSlice),t.widget("blueimp.fileupload",{options:{dropZone:t(
66document),pasteZone:void 0,fileInput:void 0,replaceFileInput:!0,paramName:void 0,singleFileUploads:!0,limitMultiFileUploads:void 0,limitMultiFileUploadSize:void 0,limitMultiFileUploadSizeOverhead:512,sequentialUploads:!1,limitConcurrentUploads:void 0,forceIframeTransport:!1,redirect:void 0,redirectParamName:void 0,postMessage:void 0,multipart:!0,maxChunkSize:void 0,uploadedBytes:void 0,recalculateProgress:!0,progressInterval:100,bitrateInterval:500,autoUpload:!0,uniqueFilenames:void 0,messages:{uploadedBytes:"Uploaded bytes exceed file size"},i18n:function(e,n){return e=this.messages[e]||e.toString(),n&&t.each(n,(function(t,n){e=e.replace("{"+t+"}",n)})),e},formData:function(t){return t.serializeArray()},add:function(e,n){if(e.isDefaultPrevented())return!1;(n.autoUpload||!1!==n.autoUpload&&t(this).fileupload("option","autoUpload"))&&n.process().done((function(){n.submit()}))},processData:!1,contentType:!1,cache:!1,timeout:0},_promisePipe:(n=t.fn.jquery.split("."),Number(n[0])>1||Number(n[1])>7?"then":"pipe"),_specialOptions:["fileInput","dropZone","pasteZone","multipart","forceIframeTransport"],_blobSlice:t.support.blobSlice&&function(){var t=this.slice||this.webkitSlice||this.mozSlice;return t.apply(this,arguments)},_BitrateTimer:function(){this.timestamp=Date.now?Date.now():(new Date).getTime(),this.loaded=0,this.bitrate=0,this.getBitrate=function(t,e,n){var i=t-this.timestamp;return(!this.bitrate||!n||i>n)&&(this.bitrate=(e-this.loaded)*(1e3/i)*8,this.loaded=e,this.timestamp=t),this.bitrate}},_isXHRUpload:function(e){return!e.forceIframeTransport&&(!e.multipart&&t.support.xhrFileUpload||t.support.xhrFormDataFileUpload)},_getFormData:function(e){var n;return"function"===t.type(e.formData)?e.formData(e.form):t.isArray(e.formData)?e.formData:"object"===t.type(e.formData)?(n=[],t.each(e.formData,(function(t,e){n.push({name:t,value:e})})),n):[]},_getTotal:function(e){var n=0;return t.each(e,(function(t,e){n+=e.size||1})),n},_initProgressObject:function(e){var n={loaded:0,total:0,bitrate:0};e._progress?t.extend(e._progress,n):e._progress=n},_initResponseObject:function(t){var e;if(t._response)for(e in t._response)Object.prototype.hasOwnProperty.call(t._response,e)&&delete t._response[e];else t._response={}},_onProgress:function(e,n){if(e.lengthComputable){var i,r=Date.now?Date.now():(new Date).getTime();if(n._time&&n.progressInterval&&r-n._time<n.progressInterval&&e.loaded!==e.total)return;n._time=r,i=Math.floor(e.loaded/e.total*(n.chunkSize||n._progress.total))+(n.uploadedBytes||0),this._progress.loaded+=i-n._progress.loaded,this._progress.bitrate=this._bitrateTimer.getBitrate(r,this._progress.loaded,n.bitrateInterval),n._progress.loaded=n.loaded=i,n._progress.bitrate=n.bitrate=n._bitrateTimer.getBitrate(r,i,n.bitrateInterval),this._trigger("progress",t.Event("progress",{delegatedEvent:e}),n),this._trigger("progressall",t.Event("progressall",{delegatedEvent:e}),this._progress)}},_initProgressListener:function(e){var n=this,i=e.xhr?e.xhr():t.ajaxSettings.xhr();i.upload&&(t(i.upload).on("progress",(function(t){var i=t.originalEvent;t.lengthComputable=i.lengthComputable,t.loaded=i.loaded,t.total=i.total,n._onProgress(t,e)})),e.xhr=function(){return i})},_deinitProgressListener:function(e){var n=e.xhr?e.xhr():t.ajaxSettings.xhr();n.upload&&t(n.upload).off("progress")},_isInstanceOf:function(t,e){return Object.prototype.toString.call(e)==="[object "+t+"]"},_getUniqueFilename:function(t,e){return e[t=String(t)]?(t=t.replace(/(?: \(([\d]+)\))?(\.[^.]+)?$/,(function(t,e,n){return" ("+(e?Number(e)+1:1)+")"+(n||"")})),this._getUniqueFilename(t,e)):(e[t]=!0,t)},_initXHRData:function(e){var n,i=this,r=e.files[0],o=e.multipart||!t.support.xhrFileUpload,s="array"===t.type(e.paramName)?e.paramName[0]:e.paramName;e.headers=t.extend({},e.headers),e.contentRange&&(e.headers["Content-Range"]=e.contentRange),o&&!e.blob&&this._isInstanceOf("File",r)||(e.headers["Content-Disposition"]='attachment; filename="'+encodeURI(r.uploadName||r.name)+'"'),o?t.support.xhrFormDataFileUpload&&(e.postMessage?(n=this._getFormData(e),e.blob?n.push({name:s,value:e.blob}):t.each(e.files,(function(i,r){n.push({name:"array"===t.type(e.paramName)&&e.paramName[i]||s,value:r})}))):(i._isInstanceOf("FormData",e.formData)?n=e.formData:(n=new FormData,t.each(this._getFormData(e),(function(t,e){n.append(e.name,e.value)}))),e.blob?n.append(s,e.blob,r.uploadName||r.name):t.each(e.files,(function(r,o){if(i._isInstanceOf("File",o)||i._isInstanceOf("Blob",o)){var a=o.uploadName||o.name;e.uniqueFilenames&&(a=i._getUniqueFilename(a,e.uniqueFilenames)),n.append("array"===t.type(e.paramName)&&e.paramName[r]||s,o,a)}}))),e.data=n):(e.contentType=r.type||"application/octet-stream",e.data=e.blob||r),e.blob=null},_initIframeSettings:function(e){var n=t("<a></a>").prop("href",e.url).prop("host");e.dataType="iframe "+(e.dataType||""),e.formData=this._getFormData(e),e.redirect&&n&&n!==location.host&&e.formData.push({name:e.redirectParamName||"redirect",value:e.redirect})},_initDataSettings:function(t){this._isXHRUpload(t)?(this._chunkedUpload(t,!0)||(t.data||this._initXHRData(t),this._initProgressListener(t)),t.postMessage&&(t.dataType="postmessage "+(t.dataType||""))):this._initIframeSettings(t)},_getParamName:function(e){var n=t(e.fileInput),i=e.paramName;return i?t.isArray(i)||(i=[i]):(i=[],n.each((function(){for(var e=t
66(this),n=e.prop("name")||"files[]",r=(e.prop("files")||[1]).length;r;)i.push(n),r-=1})),i.length||(i=[n.prop("name")||"files[]"])),i},_initFormSettings:function(e){e.form&&e.form.length||(e.form=t(e.fileInput.prop("form")),e.form.length||(e.form=t(this.options.fileInput.prop("form")))),e.paramName=this._getParamName(e),e.url||(e.url=e.form.prop("action")||location.href),e.type=(e.type||"string"===t.type(e.form.prop("method"))&&e.form.prop("method")||"").toUpperCase(),"POST"!==e.type&&"PUT"!==e.type&&"PATCH"!==e.type&&(e.type="POST"),e.formAcceptCharset||(e.formAcceptCharset=e.form.attr("accept-charset"))},_getAJAXSettings:function(e){var n=t.extend({},this.options,e);return this._initFormSettings(n),this._initDataSettings(n),n},_getDeferredState:function(t){return t.state?t.state():t.isResolved()?"resolved":t.isRejected()?"rejected":"pending"},_enhancePromise:function(t){return t.success=t.done,t.error=t.fail,t.complete=t.always,t},_getXHRPromise:function(e,n,i){var r=t.Deferred(),o=r.promise();return n=n||this.options.context||o,!0===e?r.resolveWith(n,i):!1===e&&r.rejectWith(n,i),o.abort=r.promise,this._enhancePromise(o)},_addConvenienceMethods:function(e,n){var i=this,r=function(e){return t.Deferred().resolveWith(i,e).promise()};n.process=function(e,o){return(e||o)&&(n._processQueue=this._processQueue=(this._processQueue||r([this]))[i._promisePipe]((function(){return n.errorThrown?t.Deferred().rejectWith(i,[n]).promise():r(arguments)}))[i._promisePipe](e,o)),this._processQueue||r([this])},n.submit=function(){return"pending"!==this.state()&&(n.jqXHR=this.jqXHR=!1!==i._trigger("submit",t.Event("submit",{delegatedEvent:e}),this)&&i._onSend(e,this)),this.jqXHR||i._getXHRPromise()},n.abort=function(){return this.jqXHR?this.jqXHR.abort():(this.errorThrown="abort",i._trigger("fail",null,this),i._getXHRPromise(!1))},n.state=function(){return this.jqXHR?i._getDeferredState(this.jqXHR):this._processQueue?i._getDeferredState(this._processQueue):void 0},n.processing=function(){return!this.jqXHR&&this._processQueue&&"pending"===i._getDeferredState(this._processQueue)},n.progress=function(){return this._progress},n.response=function(){return this._response}},_getUploadedBytes:function(t){var e=t.getResponseHeader("Range"),n=e&&e.split("-"),i=n&&n.length>1&&parseInt(n[1],10);return i&&i+1},_chunkedUpload:function(e,n){e.uploadedBytes=e.uploadedBytes||0;var i,r,o=this,s=e.files[0],a=s.size,c=e.uploadedBytes,l=e.maxChunkSize||a,u=this._blobSlice,h=t.Deferred(),d=h.promise();return!(!(this._isXHRUpload(e)&&u&&(c||("function"===t.type(l)?l(e):l)<a))||e.data)&&(!!n||(c>=a?(s.error=e.i18n("uploadedBytes"),this._getXHRPromise(!1,e.context,[null,"error",s.error])):(r=function(){var n=t.extend({},e),d=n._progress.loaded;n.blob=u.call(s,c,c+("function"===t.type(l)?l(n):l),s.type),n.chunkSize=n.blob.size,n.contentRange="bytes "+c+"-"+(c+n.chunkSize-1)+"/"+a,o._trigger("chunkbeforesend",null,n),o._initXHRData(n),o._initProgressListener(n),i=(!1!==o._trigger("chunksend",null,n)&&t.ajax(n)||o._getXHRPromise(!1,n.context)).done((function(i,s,l){c=o._getUploadedBytes(l)||c+n.chunkSize,d+n.chunkSize-n._progress.loaded&&o._onProgress(t.Event("progress",{lengthComputable:!0,loaded:c-n.uploadedBytes,total:c-n.uploadedBytes}),n),e.uploadedBytes=n.uploadedBytes=c,n.result=i,n.textStatus=s,n.jqXHR=l,o._trigger("chunkdone",null,n),o._trigger("chunkalways",null,n),c<a?r():h.resolveWith(n.context,[i,s,l])})).fail((function(t,e,i){n.jqXHR=t,n.textStatus=e,n.errorThrown=i,o._trigger("chunkfail",null,n),o._trigger("chunkalways",null,n),h.rejectWith(n.context,[t,e,i])})).always((function(){o._deinitProgressListener(n)}))},this._enhancePromise(d),d.abort=function(){return i.abort()},r(),d)))},_beforeSend:function(t,e){0===this._active&&(this._trigger("start"),this._bitrateTimer=new this._BitrateTimer,this._progress.loaded=this._progress.total=0,this._progress.bitrate=0),this._initResponseObject(e),this._initProgressObject(e),e._progress.loaded=e.loaded=e.uploadedBytes||0,e._progress.total=e.total=this._getTotal(e.files)||1,e._progress.bitrate=e.bitrate=0,this._active+=1,this._progress.loaded+=e.loaded,this._progress.total+=e.total},_onDone:function(e,n,i,r){var o=r._progress.total,s=r._response;r._progress.loaded<o&&this._onProgress(t.Event("progress",{lengthComputable:!0,loaded:o,total:o}),r),s.result=r.result=e,s.textStatus=r.textStatus=n,s.jqXHR=r.jqXHR=i,this._trigger("done",null,r)},_onFail:function(t,e,n,i){var r=i._response;i.recalculateProgress&&(this._progress.loaded-=i._progress.loaded,this._progress.total-=i._progress.total),r.jqXHR=i.jqXHR=t,r.textStatus=i.textStatus=e,r.errorThrown=i.errorThrown=n,this._trigger("fail",null,i)},_onAlways:function(t,e,n,i){this._trigger("always",null,i)}
66,_onSend:function(e,n){n.submit||this._addConvenienceMethods(e,n);var i,r,o,s,a=this,c=a._getAJAXSettings(n),l=function(){return a._sending+=1,c._bitrateTimer=new a._BitrateTimer,i=i||((r||!1===a._trigger("send",t.Event("send",{delegatedEvent:e}),c))&&a._getXHRPromise(!1,c.context,r)||a._chunkedUpload(c)||t.ajax(c)).done((function(t,e,n){a._onDone(t,e,n,c)})).fail((function(t,e,n){a._onFail(t,e,n,c)})).always((function(t,e,n){if(a._deinitProgressListener(c),a._onAlways(t,e,n,c),a._sending-=1,a._active-=1,c.limitConcurrentUploads&&c.limitConcurrentUploads>a._sending)for(var i=a._slots.shift();i;){if("pending"===a._getDeferredState(i)){i.resolve();break}i=a._slots.shift()}0===a._active&&a._trigger("stop")}))};return this._beforeSend(e,c),this.options.sequentialUploads||this.options.limitConcurrentUploads&&this.options.limitConcurrentUploads<=this._sending?(this.options.limitConcurrentUploads>1?(o=t.Deferred(),this._slots.push(o),s=o[a._promisePipe](l)):(this._sequence=this._sequence[a._promisePipe](l,l),s=this._sequence),s.abort=function(){return r=[void 0,"abort","abort"],i?i.abort():(o&&o.rejectWith(c.context,r),l())},this._enhancePromise(s)):l()},_onAdd:function(e,n){var i,r,o,s,a=this,c=!0,l=t.extend({},this.options,n),u=n.files,h=u.length,d=l.limitMultiFileUploads,f=l.limitMultiFileUploadSize,p=l.limitMultiFileUploadSizeOverhead,g=0,m=this._getParamName(l),v=0;if(!h)return!1;if(f&&void 0===u[0].size&&(f=void 0),(l.singleFileUploads||d||f)&&this._isXHRUpload(l))if(l.singleFileUploads||f||!d)if(!l.singleFileUploads&&f)for(o=[],i=[],s=0;s<h;s+=1)g+=u[s].size+p,(s+1===h||g+u[s+1].size+p>f||d&&s+1-v>=d)&&(o.push(u.slice(v,s+1)),(r=m.slice(v,s+1)).length||(r=m),i.push(r),v=s+1,g=0);else i=m;else for(o=[],i=[],s=0;s<h;s+=d)o.push(u.slice(s,s+d)),(r=m.slice(s,s+d)).length||(r=m),i.push(r);else o=[u],i=[m];return n.originalFiles=u,t.each(o||u,(function(r,s){var l=t.extend({},n);return l.files=o?s:[s],l.paramName=i[r],a._initResponseObject(l),a._initProgressObject(l),a._addConvenienceMethods(e,l),c=a._trigger("add",t.Event("add",{delegatedEvent:e}),l)})),c},_replaceFileInput:function(e){var n=e.fileInput,i=n.clone(!0),r=n.is(document.activeElement);e.fileInputClone=i,t("<form></form>").append(i)[0].reset(),n.after(i).detach(),r&&i.trigger("focus"),t.cleanData(n.off("remove")),this.options.fileInput=this.options.fileInput.map((function(t,e){return e===n[0]?i[0]:e})),n[0]===this.element[0]&&(this.element=i)},_handleFileTreeEntry:function(e,n){var i,r=this,o=t.Deferred(),s=[],a=function(t){t&&!t.entry&&(t.entry=e),o.resolve([t])},c=function(){i.readEntries((function(t){t.length?(s=s.concat(t),c()):function(t){r._handleFileTreeEntries(t,n+e.name+"/").done((function(t){o.resolve(t)})).fail(a)}(s)}),a)};return n=n||"",e.isFile?e._file?(e._file.relativePath=n,o.resolve(e._file)):e.file((function(t){t.relativePath=n,o.resolve(t)}),a):e.isDirectory?(i=e.createReader(),c()):o.resolve([]),o.promise()},_handleFileTreeEntries:function(e,n){var i=this;return t.when.apply(t,t.map(e,(function(t){return i._handleFileTreeEntry(t,n)})))[this._promisePipe]((function(){return Array.prototype.concat.apply([],arguments)}))},_getDroppedFiles:function(e){var n=(e=e||{}).items;return n&&n.length&&(n[0].webkitGetAsEntry||n[0].getAsEntry)?this._handleFileTreeEntries(t.map(n,(function(t){var e;return t.webkitGetAsEntry?((e=t.webkitGetAsEntry())&&(e._file=t.getAsFile()),e):t.getAsEntry()}))):t.Deferred().resolve(t.makeArray(e.files)).promise()},_getSingleFileInputFiles:function(e){var n,i,r=(e=t(e)).prop("entries");if(r&&r.length)return this._handleFileTreeEntries(r);if((n=t.makeArray(e.prop("files"))).length)void 0===n[0].name&&n[0].fileName&&t.each(n,(function(t,e){e.name=e.fileName,e.size=e.fileSize}));else{if(!(i=e.prop("value")))return t.Deferred().resolve([]).promise();n=[{name:i.replace(/^.*\\/,"")}]}return t.Deferred().resolve(n).promise()},_getFileInputFiles:function(e){return e instanceof t&&1!==e.length?t.when.apply(t,t.map(e,this._getSingleFileInputFiles))[this._promisePipe]((function(){return Array.prototype.concat.apply([],arguments)})):this._getSingleFileInputFiles(e)},_onChange:function(e){var n=this,i={fileInput:t(e.target),form:t(e.target.form)};this._getFileInputFiles(i.fileInput).always((function(r){i.files=r,n.options.replaceFileInput&&n._replaceFileInput(i),!1!==n._trigger("change",t.Event("change",{delegatedEvent:e}),i)&&n._onAdd(e,i)}))},_onPaste:function(e){var n=e.originalEvent&&e.originalEvent.clipboardData&&e.originalEvent.clipboardData.items,i={files:[]};n&&n.length&&(t.each(n,(function(t,e){var n=e.getAsFile&&e.getAsFile();n&&i.files.push(n)})),!1!==this._trigger("paste",t.Event("paste",{delegatedEvent:e}),i)&&this._onAdd(e,i))},_onDrop:function(e){e.dataTransfer=e.originalEvent&&e.originalEvent.dataTransfer;var n=this,i=e.dataTransfer,r={};i&&i.files&&i.files.length&&(e.preventDefault(),this._getDroppedFiles(i).always((function(i){r.files=i,!1!==n._trigger("drop",t.Event("drop",{delegatedEvent:e}),r)&&n._onAdd(e,r)})))},_onDragOver:e("dragover"),_onDragEnter:e("dragenter"),_onDragLeave:e("dragleave"),_initEventHandlers:function(){this._isXHRUpload(this.options)&&(this._on(this.options.dropZone,{dragover:this._onDragOver,drop:this._onDrop,dragenter:this._onDragEnter,dragleave:this._onDragLeave}),this._on(this.options.pasteZone,{paste:this._onPaste})),t.support.fileInput&&this._on(this.options.fileInput,{change:this._onChange})},_destroyEventHandlers:function(){this._off(this.options.dropZone,"dragenter dragleave dragover drop"),this._off(this.options.pasteZone,"paste"),this._off(this.options.fileInput,"change")},_destroy:function(){this._destroyEventHandlers()},_setOption:function(e,n){var i=-1!==t.inArray(e,this._specialOptions);i&&this._destroyEventHandlers(),this._super(e,n),i&&(this._initSpecialOptions(),this._initEventHandlers())},_initSpecialOptions:function(){var e=this.options;void 0===e.fileInput?e.fileInput=this.element.is('input[type="file"]')?this.element:this.element.find('input[type="file"]'):e.fileInput instanceof t||(e.fileInput=t(e.fileInput)),e.dropZone instanceof t||(e.dropZone=t(e.dropZone)),e.pasteZone instanceof t||(e.pasteZone=t(e.pasteZone))},_getRegExp:function(t){var e=t.split("/"),n=e.pop();return e.shift(),new RegExp(e.join("/"),n)},_isRegExpOption:function(e,n){return"url"!==e&&"string"===t.type(n)&&/^\/.*\/[igm]{0,3}$/.test(n)},_initDataAttributes:function(){var e=this,n=this.options,i=this.element.data();t.each(this.element[0].attributes,(function(t,r){var o,s=r.name.toLowerCase();/^data-/.test(s)&&(s=s.slice(5).replace(/-[a-z]/g,(function(t){return t.charAt(1).toUpperCase()}
vendor: 4,346 bytes, lines 66-78
66)),o=i[s],e._isRegExpOption(s,o)&&(o=e._getRegExp(o)),n[s]=o)}))},_create:function(){this._initDataAttributes(),this._initSpecialOptions(),this._slots=[],this._sequence=this._getXHRPromise(!0),this._sending=this._active=0,this._initProgressObject(this),this._initEventHandlers()},active:function(){return this._active},progress:function(){return this._progress},add:function(e){var n=this;e&&!this.options.disabled&&(e.fileInput&&!e.files?this._getFileInputFiles(e.fileInput).always((function(t){e.files=t,n._onAdd(null,e)})):(e.files=t.makeArray(e.files),this._onAdd(null,e)))},send:function(e){if(e&&!this.options.disabled){if(e.fileInput&&!e.files){var n,i,r=this,o=t.Deferred(),s=o.promise();return s.abort=function(){return i=!0,n?n.abort():(o.reject(null,"abort","abort"),s)},this._getFileInputFiles(e.fileInput).always((function(t){i||(t.length?(e.files=t,(n=r._onSend(null,e)).then((function(t,e,n){o.resolve(t,e,n)}),(function(t,e,n){o.reject(t,e,n)}))):o.reject())})),this._enhancePromise(s)}if(e.files=t.makeArray(e.files),e.files.length)return this._onSend(null,e)}return this._getXHRPromise(!1,e&&e.context)}})}))},function(t,e,n){var i,r,o; 67/*! jQuery UI - v1.13.2 - 2023-02-09 68* http://jqueryui.com 69* Includes: widget.js 70* Copyright jQuery Foundation and other contributors; Licensed MIT */!function(s){"use strict";r=[n(0)],void 0===(o="function"==typeof(i=function(t){t.ui=t.ui||{};t.ui.version="1.13.2"; 71/*! 72 * jQuery UI Widget 1.13.2 73 * http://jqueryui.com 74 * 75 * Copyright jQuery Foundation and other contributors 76 * Released under the MIT license. 77 * http://jquery.org/license 78 */var e=0,n=Array.prototype.hasOwnProperty,i=Array.prototype.slice;t.cleanData=(r=t.cleanData,function(e){var n,i,o;for(o=0;null!=(i=e[o]);o++)(n=t._data(i,"events"))&&n.remove&&t(i).triggerHandler("remove");r(e)}),t.widget=function(e,n,i){var r,o,s,a={},c=e.split(".")[0],l=c+"-"+(e=e.split(".")[1]);return i||(i=n,n=t.Widget),Array.isArray(i)&&(i=t.extend.apply(null,[{}].concat(i))),t.expr.pseudos[l.toLowerCase()]=function(e){return!!t.data(e,l)},t[c]=t[c]||{},r=t[c][e],o=t[c][e]=function(t,e){if(!this||!this._createWidget)return new o(t,e);arguments.length&&this._createWidget(t,e)},t.extend(o,r,{version:i.version,_proto:t.extend({},i),_childConstructors:[]}),(s=new n).options=t.widget.extend({},s.options),t.each(i,(function(t,e){a[t]="function"==typeof e?function(){function i(){return n.prototype[t].apply(this,arguments)}function r(e){return n.prototype[t].apply(this,e)}return function(){var t,n=this._super,o=this._superApply;return this._super=i,this._superApply=r,t=e.apply(this,arguments),this._super=n,this._superApply=o,t}}():e})),o.prototype=t.widget.extend(s,{widgetEventPrefix:r&&s.widgetEventPrefix||e},a,{constructor:o,namespace:c,widgetName:e,widgetFullName:l}),r?(t.each(r._childConstructors,(function(e,n){var i=n.prototype;t.widget(i.namespace+"."+i.widgetName,o,n._proto)})),delete r._childConstructors):n._childConstructors.push(o),t.widget.bridge(e,o),o},t.widget.extend=function(e){for(var r,o,s=i.call(arguments,1),a=0,c=s.length;a<c;a++)for(r in s[a])o=s[a][r],n.call(s[a],r)&&void 0!==o&&(t.isPlainObject(o)?e[r]=t.isPlainObject(e[r])?t.widget.extend({},e[r],o):t.widget.extend({},o):e[r]=o);return e},t.widget.bridge=function(e,n){var r=n.prototype.widgetFullName||e;t.fn[e]=function(o){var s="string"==typeof o,a=i.call(arguments,1),c=this;return s?this.length||"instance"!==o?this.each((function(){var n,i=t.data(this,r);return"instance"===o?(c=i,!1):i?"function"!=typeof i[o]||"_"===o.charAt(0)?t.error("no such method '"+o+"' for "+e+" widget instance"):(n=i[o].apply(i,a))!==i&&void 0!==n?(c=n&&n.jquery?c.pushStack(n.get()):n,!1):void 0:t.error("cannot call methods on "+e+" prior to initialization; attempted to call method '"+o+"'")})):c=void 0:(a.length&&(o=t.widget.extend.apply(null,[o].concat(a))),this.each((function(){var e=t.data(this,r);e?(e.option(o||{}),e._init&&e._init()):t.data(this,r,new n(o,this))}))),c}},t.Widget=function(){},t.Widget._childConstructors=[],t.Widget.prototype={widgetName:"widget",widgetEventPrefix:"",defaultElement:"<div>",options:{classes:{},disabled:!1,create:null},_createWidget:function(n,i){i=t(i||this.defaultElement||this)[0],this.element=t(i),this.uuid=e++,this.eventNamespace="."+this.widgetName+this.uuid,this.bindings=t(),this.hoverable=t(),this.focusable=t
vendor: 3,868 bytes, line 78
78(),this.classesElementLookup={},i!==this&&(t.data(i,this.widgetFullName,this),this._on(!0,this.element,{remove:function(t){t.target===i&&this.destroy()}}),this.document=t(i.style?i.ownerDocument:i.document||i),this.window=t(this.document[0].defaultView||this.document[0].parentWindow)),this.options=t.widget.extend({},this.options,this._getCreateOptions(),n),this._create(),this.options.disabled&&this._setOptionDisabled(this.options.disabled),this._trigger("create",null,this._getCreateEventData()),this._init()},_getCreateOptions:function(){return{}},_getCreateEventData:t.noop,_create:t.noop,_init:t.noop,destroy:function(){var e=this;this._destroy(),t.each(this.classesElementLookup,(function(t,n){e._removeClass(n,t)})),this.element.off(this.eventNamespace).removeData(this.widgetFullName),this.widget().off(this.eventNamespace).removeAttr("aria-disabled"),this.bindings.off(this.eventNamespace)},_destroy:t.noop,widget:function(){return this.element},option:function(e,n){var i,r,o,s=e;if(0===arguments.length)return t.widget.extend({},this.options);if("string"==typeof e)if(s={},i=e.split("."),e=i.shift(),i.length){for(r=s[e]=t.widget.extend({},this.options[e]),o=0;o<i.length-1;o++)r[i[o]]=r[i[o]]||{},r=r[i[o]];if(e=i.pop(),1===arguments.length)return void 0===r[e]?null:r[e];r[e]=n}else{if(1===arguments.length)return void 0===this.options[e]?null:this.options[e];s[e]=n}return this._setOptions(s),this},_setOptions:function(t){var e;for(e in t)this._setOption(e,t[e]);return this},_setOption:function(t,e){return"classes"===t&&this._setOptionClasses(e),this.options[t]=e,"disabled"===t&&this._setOptionDisabled(e),this},_setOptionClasses:function(e){var n,i,r;for(n in e)r=this.classesElementLookup[n],e[n]!==this.options.classes[n]&&r&&r.length&&(i=t(r.get()),this._removeClass(r,n),i.addClass(this._classes({element:i,keys:n,classes:e,add:!0})))},_setOptionDisabled:function(t){this._toggleClass(this.widget(),this.widgetFullName+"-disabled",null,!!t),t&&(this._removeClass(this.hoverable,null,"ui-state-hover"),this._removeClass(this.focusable,null,"ui-state-focus"))},enable:function(){return this._setOptions({disabled:!1})},disable:function(){return this._setOptions({disabled:!0})},_classes:function(e){var n=[],i=this;function r(){var n=[];e.element.each((function(e,r){t.map(i.classesElementLookup,(function(t){return t})).some((function(t){return t.is(r)}))||n.push(r)})),i._on(t(n),{remove:"_untrackClassesElement"})}function o(o,s){var a,c;for(c=0;c<o.length;c++)a=i.classesElementLookup[o[c]]||t(),e.add?(r(),a=t(t.uniqueSort(a.get().concat(e.element.get())))):a=t(a.not(e.element).get()),i.classesElementLookup[o[c]]=a,n.push(o[c]),s&&e.classes[o[c]]&&n.push(e.classes[o[c]])}return(e=t.extend({element:this.element,classes:this.options.classes||{}},e)).keys&&o(e.keys.match(/\S+/g)||[],!0),e.extra&&o(e.extra.match(/\S+/g)||[]),n.join(" ")},_untrackClassesElement:function(e){var n=this;t.each(n.classesElementLookup,(function(i,r){-1!==t.inArray(e.target,r)&&(n.classesElementLookup[i]=t(r.not(e.target).get()))})),this._off(t(e.target))},_removeClass:function(t,e,n){return this._toggleClass(t,e,n,!1)},_addClass:function(t,e,n){return this._toggleClass(t,e,n,!0)},_toggleClass:function(t,e,n,i){i="boolean"==typeof i?i:n;var r="string"==typeof t||null===t,o={extra:r?e:n,keys:r?t:e,element:r?this.element:t,add:i};return o.element.toggleClass(this._classes(o),i),this},_on:function(e,n,i){var r,o=this;"boolean"!=typeof e&&(i=n,n=e,e=!1),i?(n=r=t(n),this.bindings=this.bindings.add(n)):(i=n,n=this.element,r=this.widget()),t.each(i,(function(i,s){function a(){if(e||!0!==o.options.disabled&&!t(this).hasClass("ui-state-disabled"))return("string"==typeof s?o[s]:s).apply(o,arguments)}"string"!=typeof s&&(a.guid=s.guid=s.guid||a.guid||t.guid++);var c=i.match(/^([\w:-]*)\s*(.*)$/),l=c[1]+o.eventNamespace,u=c[2];u?r.on(l,u,a):n.on(l,a)}))}
78,_off:function(e,n){n=(n||"").split(" ").join(this.eventNamespace+" ")+this.eventNamespace,e.off(n),this.bindings=t(this.bindings.not(e).get()),this.focusable=t(this.focusable.not(e).get()),this.hoverable=t(this.hoverable.not(e).get())},_delay:function(t,e){var n=this;return setTimeout((function(){return("string"==typeof t?n[t]:t).apply(n,arguments)}),e||0)},_hoverable:function(e){this.hoverable=this.hoverable.add(e),this._on(e,{mouseenter:function(e){this._addClass(t(e.currentTarget),null,"ui-state-hover")},mouseleave:function(e){this._removeClass(t(e.currentTarget),null,"ui-state-hover")}})},_focusable:function(e){this.focusable=this.focusable.add(e),this._on(e,{focusin:function(e){this._addClass(t(e.currentTarget),null,"ui-state-focus")},focusout:function(e){this._removeClass(t(e.currentTarget),null,"ui-state-focus")}})},_trigger:function(e,n,i){var r,o,s=this.options[e];if(i=i||{},(n=t.Event(n)).type=(e===this.widgetEventPrefix?e:this.widgetEventPrefix+e).toLowerCase(),n.target=this.element[0],o=n.originalEvent)for(r in o)r in n||(n[r]=o[r]);return this.element.trigger(n,i),!("function"==typeof s&&!1===s.apply(this.element[0],[n].concat(i))||n.isDefaultPrevented())}},t.each({show:"fadeIn",hide:"fadeOut"},(function(e,n){t.Widget.prototype["_"+e]=function(i,r,o){var s;"string"==typeof r&&(r={effect:r});var a=r?!0===r||"number"==typeof r?n:r.effect||n:e;"number"==typeof(r=r||{})?r={duration:r}:!0===r&&(r={}),s=!t.isEmptyObject(r),r.complete=o,r.delay&&i.delay(r.delay),s&&t.effects&&t.effects.effect[a]?i[e](r):a!==e&&i[a]?i[a](r.duration,r.easing,o):i.queue((function(n){t(this)[e](),o&&o.call(i[0]),n()}))}}));var r;t.widget})?i.apply(e,r):i)||(t.exports=o)}()},function(t,e,n){var i,r,o;!function(s){"use strict";r=[n(0)],void 0===(o="function"==typeof(i=function(t){var e={escapeRegExChars:function(t){return t.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&")},createNode:function(t){var e=document.createElement("div");return e.className=t,e.style.position="absolute",e.style.display="none",e}},n=27,i=9,r=13,o=38,s=39,a=40,c=t.noop;function l(e,n){this.element=e,this.el=t(e),this.suggestions=[],this.badQueries=[],this.selectedIndex=-1,this.currentValue=this.element.value,this.timeoutId=null,this.cachedResponse={},this.onChangeTimeout=null,this.onChange=null,this.isLocal=!1,this.suggestionsContainer=null,this.noSuggestionsContainer=null,this.options=t.extend({},l.defaults,n),this.classes={selected:"autocomplete-selected",suggestion:"autocomplete-suggestion"},this.hint=null,this.hintValue="",this.selection=null,this.initialize(),this.setOptions(n)}l.utils=e,t.Autocomplete=l,l.defaults={sendFormData:!1,ajaxSettings:{},autoSelectFirst:!1,appendTo:"body",serviceUrl:null,lookup:null,onSelect:null,width:"auto",minChars:1,maxHeight:300,deferRequestBy:0,params:{},formatResult:function(t,n){if(!n)return t.value;var i="("+e.escapeRegExChars(n)+")";return t.value.replace(new RegExp(i,"gi"),"<strong>$1</strong>").replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,""").replace(/<(\/?strong)>/g,"<$1>")},formatGroup:function(t,e){return'<div class="autocomplete-group">'+e+"</div>"},delimiter:null,zIndex:9999,type:"GET",noCache:!1,onSearchStart:c,onSearchComplete:c,onSearchError:c,preserveInput:!1,containerClass:"autocomplete-suggestions",tabDisabled:!1,dataType:"text",currentRequest:null,triggerSelectOnValidInput:!0,preventBadQueries:!0,lookupFilter:function(t,e,n){return-1!==t.value.toLowerCase().indexOf(n)},paramName:"query",transformResult:function(e){return"string"==typeof e?t.parseJSON(e):e},showNoSuggestionNotice:!1,noSuggestionNotice:"No results",orientation:"bottom",forceFixPosition:!1},l.prototype={initialize:function(){var e,n=this,i="."+n.classes.suggestion,r=n.classes.selected,o=n.options;n.element.setAttribute("autocomplete","off"),n.noSuggestionsContainer=t('<div class="autocomplete-no-suggestion"></div>').html(this.options.noSuggestionNotice).get(0),n.suggestionsContainer=l.utils.createNode(o.containerClass),(e=t(n.suggestionsContainer)).appendTo(o.appendTo||"body"),"auto"!==o.width&&e.css("width",o.width),e.on("mouseover.autocomplete",i,(function(){n.activate(t(this).data("index"))})),e.on("mouseout.autocomplete",(function(){n.selectedIndex=-1,e.children("."+r).removeClass(r)})),e.on("click.autocomplete",i,(function(){n.select(t(this).data("index"))})),e.on("click.autocomplete",(function(){clearTimeout(n.blurTimeoutId)})),n.fixPositionCapture=function(){n.visible&&n.fixPosition()},t(window).on("resize.autocomplete",n.fixPositionCapture),n.el.on("key
78down.autocomplete",(function(t){n.onKeyPress(t)})),n.el.on("keyup.autocomplete",(function(t){n.onKeyUp(t)})),n.el.on("blur.autocomplete",(function(){n.onBlur()})),n.el.on("focus.autocomplete",(function(){n.onFocus()})),n.el.on("change.autocomplete",(function(t){n.onKeyUp(t)})),n.el.on("input.autocomplete",(function(t){n.onKeyUp(t)}))},onFocus:function(){this.fixPosition(),this.el.val().length>=this.options.minChars&&this.onValueChange()},onBlur:function(){var t=this;t.blurTimeoutId=setTimeout((function(){t.hide()}),200)},abortAjax:function(){this.currentRequest&&(this.currentRequest.abort(),this.currentRequest=null)},setOptions:function(e){var n=t.extend({},this.options,e);this.isLocal=Array.isArray(n.lookup),this.isLocal&&(n.lookup=this.verifySuggestionsFormat(n.lookup)),n.orientation=this.validateOrientation(n.orientation,"bottom"),t(this.suggestionsContainer).css({"max-height":n.maxHeight+"px",width:n.width+"px","z-index":n.zIndex}),this.options=n},clearCache:function(){this.cachedResponse={},this.badQueries=[]},clear:function(){this.clearCache(),this.currentValue="",this.suggestions=[]},disable:function(){this.disabled=!0,clearTimeout(this.onChangeTimeout),this.abortAjax()},enable:function(){this.disabled=!1},fixPosition:function(){var e=t(this.suggestionsContainer),n=e.parent().get(0);if(n===document.body||this.options.forceFixPosition){var i=this.options.orientation,r=e.outerHeight(),o=this.el.outerHeight(),s=this.el.offset(),a={top:s.top,left:s.left};if("auto"===i){var c=t(window).height(),l=t(window).scrollTop(),u=-l+s.top-r,h=l+c-(s.top+o+r);i=Math.max(u,h)===u?"top":"bottom"}if(a.top+="top"===i?-r:o,n!==document.body){var d,f=e.css("opacity");this.visible||e.css("opacity",0).show(),d=e.offsetParent().offset(),a.top-=d.top,a.top+=n.scrollTop,a.left-=d.left,this.visible||e.css("opacity",f).hide()}"auto"===this.options.width&&(a.width=this.el.outerWidth()+"px"),e.css(a)}},isCursorAtEnd:function(){var t,e=this.el.val().length,n=this.element.selectionStart;return"number"==typeof n?n===e:!document.selection||((t=document.selection.createRange()).moveStart("character",-e),e===t.text.length)},onKeyPress:function(t){if(this.disabled||this.visible||t.which!==a||!this.currentValue){if(!this.disabled&&this.visible){switch(t.which){case n:this.el.val(this.currentValue),this.hide();break;case s:if(this.hint&&this.options.onHint&&this.isCursorAtEnd()){this.selectHint();break}return;case i:if(this.hint&&this.options.onHint)return void this.selectHint();if(-1===this.selectedIndex)return void this.hide();if(this.select(this.selectedIndex),!1===this.options.tabDisabled)return;break;case r:if(-1===this.selectedIndex)return void this.hide();this.select(this.selectedIndex);break;case o:this.moveUp();break;case a:this.moveDown();break;default:return}t.stopImmediatePropagation(),t.preventDefault()}}else this.suggest()},onKeyUp:function(t){var e=this;if(!e.disabled){switch(t.which){case o:case a:return}clearTimeout(e.onChangeTimeout),e.currentValue!==e.el.val()&&(e.findBestHint(),e.options.deferRequestBy>0?e.onChangeTimeout=setTimeout((function(){e.onValueChange()}),e.options.deferRequestBy):e.onValueChange())}},onValueChange:function(){if(this.ignoreValueChange)this.ignoreValueChange=!1;else{var e=this.options,n=this.el.val(),i=this.getQuery(n);this.selection&&this.currentValue!==i&&(this.selection=null,(e.onInvalidateSelection||t.noop).call(this.element)),clearTimeout(this.onChangeTimeout),this.currentValue=n,this.selectedIndex=-1,e.triggerSelectOnValidInput&&this.isExactMatch(i)?this.select(0):i.length<e.minChars?this.hide():this.getSuggestions(i)}},isExactMatch:function(t){var e=this.suggestions;return 1===e.length&&e[0].value.toLowerCase()===t.toLowerCase()},getQuery:function(e){var n,i=this.options.delimiter;return i?(n=e.split(i),t.trim(n[n.length-1])):e},getSuggestionsLocal:function(e){var n,i=this.options,r=e.toLowerCase(),o=i.lookupFilter,s=parseInt(i.lookupLimit,10);return n={suggestions:t.grep(i.lookup,(function(t){return o(t,e,r)}))},s&&n.suggestions.length>s&&(n.suggestions=n.suggestions.slice(0,s)),n},getSuggestions:function(e){var n,i,r,o,s=this,a=s.options,c=a.serviceUrl;if(a.params[a.paramName]=e,!1!==a.onSearchStart.call(s.element,a.params)){if(i=a.ignoreParams?null:a.params,a.sendFormData){var l=s.el.closest("form").serializeObject();i=t.extend(l,i)}
78t.isFunction(a.lookup)?a.lookup(e,(function(t){s.suggestions=t.suggestions,s.suggest(),a.onSearchComplete.call(s.element,e,t.suggestions)})):(s.isLocal?n=s.getSuggestionsLocal(e):(t.isFunction(c)&&(c=c.call(s.element,e)),r=c+(c.indexOf("?")<0?"?":"&")+t.param(i||{}),n=s.cachedResponse[r]),n&&Array.isArray(n.suggestions)?(s.suggestions=n.suggestions,s.suggest(),a.onSearchComplete.call(s.element,e,n.suggestions)):s.isBadQuery(e)?a.onSearchComplete.call(s.element,e,[]):(s.abortAjax(),o={url:c,data:i,type:a.type,dataType:a.dataType},t.extend(o,a.ajaxSettings),s.currentRequest=t.ajax(o).done((function(t){var n;s.currentRequest=null,n=a.transformResult(t,e),s.processResponse(n,e,r),a.onSearchComplete.call(s.element,e,n.suggestions)})).fail((function(t,n,i){a.onSearchError.call(s.element,e,t,n,i)}))))}},isBadQuery:function(t){if(!this.options.preventBadQueries)return!1;for(var e=this.badQueries,n=e.length;n--;)if(0===t.indexOf(e[n]))return!0;return!1},hide:function(){var e=t(this.suggestionsContainer);t.isFunction(this.options.onHide)&&this.visible&&this.options.onHide.call(this.element,e),this.visible=!1,this.selectedIndex=-1,clearTimeout(this.onChangeTimeout),t(this.suggestionsContainer).hide(),this.signalHint(null)},suggest:function(){if(this.suggestions.length){var e,n=this.options,i=n.groupBy,r=n.formatResult,o=this.getQuery(this.currentValue),s=this.classes.suggestion,a=this.classes.selected,c=t(this.suggestionsContainer),l=t(this.noSuggestionsContainer),u=n.beforeRender,h="";n.triggerSelectOnValidInput&&this.isExactMatch(o)?this.select(0):(t.each(this.suggestions,(function(t,a){i&&(h+=function(t,r){var o=t.data[i];return e===o?"":(e=o,n.formatGroup(t,e))}(a,0)),h+='<div class="'+s+'" data-index="'+t+'">'+r(a,o,t)+"</div>"})),this.adjustContainerWidth(),l.detach(),c.html(h),t.isFunction(u)&&u.call(this.element,c,this.suggestions),this.fixPosition(),c.show(),n.autoSelectFirst&&(this.selectedIndex=0,c.scrollTop(0),c.children("."+s).first().addClass(a)),this.visible=!0,this.findBestHint())}else this.options.showNoSuggestionNotice?this.noSuggestions():this.hide()},noSuggestions:function(){var e=this.options.beforeRender,n=t(this.suggestionsContainer),i=t(this.noSuggestionsContainer);this.adjustContainerWidth(),i.detach(),n.empty(),n.append(i),t.isFunction(e)&&e.call(this.element,n,this.suggestions),this.fixPosition(),n.show(),this.visible=!0},adjustContainerWidth:function(){var e,n=this.options,i=t(this.suggestionsContainer);"auto"===n.width?(e=this.el.outerWidth(),i.css("width",e>0?e:300)):"flex"===n.width&&i.css("width","")},findBestHint:function(){var e=this.el.val().toLowerCase(),n=null;e&&(t.each(this.suggestions,(function(t,i){var r=0===i.value.toLowerCase().indexOf(e);return r&&(n=i),!r})),this.signalHint(n))},signalHint:function(e){var n="";e&&(n=this.currentValue+e.value.substr(this.currentValue.length)),this.hintValue!==n&&(this.hintValue=n,this.hint=e,(this.options.onHint||t.noop)(n))},verifySuggestionsFormat:function(e){return e.length&&"string"==typeof e[0]?t.map(e,(function(t){return{value:t,data:null}})):e},validateOrientation:function(e,n){return e=t.trim(e||"").toLowerCase(),-1===t.inArray(e,["auto","bottom","top"])&&(e=n),e},processResponse:function(t,e,n){var i=this.options;t.suggestions=this.verifySuggestionsFormat(t.suggestions),i.noCache||(this.cachedResponse[n]=t,i.preventBadQueries&&!t.suggestions.length&&this.badQueries.push(e)),e===this.getQuery(this.currentValue)&&(this.suggestions=t.suggestions,this.suggest())},activate:function(e){var n,i=this.classes.selected,r=t(this.suggestionsContainer),o=r.find("."+this.classes.suggestion);return r.find("."+i).removeClass(i),this.selectedIndex=e,-1!==this.selectedIndex&&o.length>this.selectedIndex?(n=o.get(this.selectedIndex),t(n).addClass(i),n):null},selectHint:function(){var e=t.inArray(this.hint,this.suggestions);this.select(e)},select:function(t){this.hide(),this.onSelect(t)},moveUp:function(){if(-1!==this.selectedIndex)return 0===this.selectedIndex?(t(this.suggestionsContainer).children("."+this.classes.suggestion).first().removeClass(this.classes.selected),this.selectedIndex=-1,this.ignoreValueChange=!1,this.el.val(this.currentValue),void this.findBestHint()):void this.adjustScroll(this.selectedIndex-1)},moveDown:function(){this.selectedIndex!==this.suggestions.length-1&&this.adjustScroll(this.selectedIndex+1)},adjustScroll:function(e){var n=this.activate(e);if(n){var i,r,o,s=t(n).outerHeight();i=n.offsetTop,o=(r=t(this.suggestionsContainer).scrollTop())+this.options.maxHeight-s,i<r?t(this.suggestionsContainer).scrollTop(i):i>o&&t(this.suggestionsContainer).scrollTop(i-this.options.maxHeight+s),this.options.preserveInput||(this.ignoreValueChange=!0,this.el.val(this.getValue(this.suggestions[e].value))),this.signalHint(null)}},onSelect:function(e){var n=this.options.onSelect,i=this.suggestions[e];this.currentValue=this.getValue(i.value),this.currentValue===this.el.val()||this.options.preserveInput||this.el.val(this.currentValue),this.signalHint(null),this.suggestions=[],this.selection=i,t.isFunction(n)&&n.call(this.element,i)},getValue:function(t){var e,n,i=this.options.delimiter;return i?1===(n=(e=this.currentValue).split(i)).length?t:e.substr(0,e.length-n[n.length-1].length)+t:t},dispose:function(){this.el.off(".autocomplete").removeData("autocomplete"),t(window).off("resize.autocomplete",this.fixPositionCapture),t(this.suggestionsContainer).remove()}},t.fn.devbridgeAutocomplete=function(e,n){var i="autocomplete";return arguments.length?this.each((function(){var r=t(this),o=r.data(i);"string"==typeof e?o&&"function"==typeof o[e]&&o[e](n):(o&&o.dispose&&o.dispose(),o=new l(this,e),r.data(i,o))})):this.first().data(i)}
78,t.fn.autocomplete||(t.fn.autocomplete=t.fn.devbridgeAutocomplete);void 0===t.fn.serializeObject&&(t.fn.serializeObject=function(){var e={},n=this.serializeArray();return t.each(n,(function(){void 0!==e[this.name]?(e[this.name].push||(e[this.name]=[e[this.name]]),e[this.name].push(this.value||"")):e[this.name]=this.value||""})),e})})?i.apply(e,r):i)||(t.exports=o)}()},function(t,e,n){var i,r,o;!function(s){"use strict";r=[n(0)],void 0===(o="function"==typeof(i=function(t){t.format=(e={date:{format:"MMM dd, yyyy h:mm:ss a",monthsFull:["January","February","March","April","May","June","July","August","September","October","November","December"],monthsShort:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],daysFull:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],daysShort:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],shortDateFormat:"M/d/yyyy h:mm a",longDateFormat:"EEEE, MMMM dd, yyyy h:mm:ss a"},number:{format:"#,##0.0#",groupingSeparator:",",decimalSeparator:"."}},{locale:function(t){if(a={a:6},t)for(var n in t)for(var i in t[n])e[n][i]=t[n][i];return e},date:function(t,n){var i,r,o=0,s=0,a=0,c="",l="";if("string"==typeof t){var u=function(t,e,n,i){for(var r=i;r>=n;r--){var o=t.substring(e,e+r);if(o.length>=n&&/^\d+$/.test(o))return o}return null};void 0===n&&(n=e.date.format);for(var h,d,f=0,p=new Date(0,0,0,0,0,0,0),g=p.getYear(),m=p.getMonth()+1,v=1,y=p.getHours(),b=p.getMinutes(),w=p.getSeconds(),_=p.getMilliseconds(),E="";o<n.length;){for(l="",c=n.charAt(o);n.charAt(o)==c&&o<n.length;)l+=n.charAt(o++);if(l.indexOf("MMMM")>-1&&l.length>4&&(l="MMMM"),l.indexOf("EEEE")>-1&&l.length>4&&(l="EEEE"),"yyyy"==l||"yy"==l||"y"==l){if("yyyy"==l&&(i=4,r=4),"yy"==l&&(i=2,r=2),"y"==l&&(i=2,r=4),null===(g=u(t,f,i,r)))return 0;f+=g.length,2==g.length&&(g=(g=parseInt(g,10))>70?1900+g:2e3+g)}else if("MMMM"==l){for(m=0,s=0,a=e.date.monthsFull.length;s<a;s++)if(h=e.date.monthsFull[s],t.substring(f,f+h.length).toLowerCase()==h.toLowerCase()){m=s+1,f+=h.length;break}if(m<1||m>12)return 0}else if("MMM"==l){for(m=0,s=0,a=e.date.monthsShort.length;s<a;s++)if(h=e.date.monthsShort[s],t.substring(f,f+h.length).toLowerCase()==h.toLowerCase()){m=s+1,f+=h.length;break}if(m<1||m>12)return 0}else if("EEEE"==l){for(s=0,a=e.date.daysFull.length;s<a;s++)if(d=e.date.daysFull[s],t.substring(f,f+d.length).toLowerCase()==d.toLowerCase()){f+=d.length;break}}else if("EEE"==l){for(s=0,a=e.date.daysShort.length;s<a;s++)if(d=e.date.daysShort[s],t.substring(f,f+d.length).toLowerCase()==d.toLowerCase()){f+=d.length;break}}else if("MM"==l||"M"==l){if(null===(m=u(t,f,1,2))||m<1||m>12)return 0;f+=m.length}else if("dd"==l||"d"==l){if(null===(v=u(t,f,1,2))||v<1||v>31)return 0;f+=v.length}else if("hh"==l||"h"==l){if(null===(y=u(t,f,1,2))||y<1||y>12)return 0;f+=y.length}else if("HH"==l||"H"==l){if(null===(y=u(t,f,1,2))||y<0||y>23)return 0;f+=y.length}else if("KK"==l||"K"==l){if(null===(y=u(t,f,1,2))||y<0||y>11)return 0;f+=y.length}else if("kk"==l||"k"==l){if(null===(y=u(t,f,1,2))||y<1||y>24)return 0;f+=y.length,y--}else if("mm"==l||"m"==l){if(null===(b=u(t,f,1,2))||b<0||b>59)return 0;f+=b.length}else if("ss"==l||"s"==l){if(null===(w=u(t,f,1,2))||w<0||w>59)return 0;f+=w.length}else if("SSS"==l||"SS"==l||"S"==l){if(null===(_=u(t,f,1,3))||_<0||_>999)return 0;f+=_.length}else if("a"==l){var S=t.substring(f,f+2).toLowerCase();if("am"==S)E="AM";else{if("pm"!=S)return 0;E="PM"}f+=2}else{if(l!=t.substring(f,f+l.length))return 0;f+=l.length}}if(f!=t.length)return 0;if(2==m)if(g%4==0&&g%100!=0||g%400==0){if(v>29)return 0}else if(v>28)return 0;return(4==m||6==m||9==m||11==m)&&v>30?0:(y<12&&"PM"==E?y=y-0+12:y>11&&"AM"==E&&(y-=12),new Date(g,m-1,v,y,b,w,_))}var x=function(t,e){return void 0===e||2==e?(t>=0&&t<10?"0":"")+t:t>=0&&t<10?"00"+t:t>=10&&t<100?"0"+t:t};void 0===n&&(n=e.date.format),(r=t.getYear())<1e3&&(r=String(r+1900));var A=t.getMonth()+1,L=t.getDate(),O=t.getDay(),C=t.getHours(),k=t.getMinutes(),I=t.getSeconds(),j=t.getMilliseconds();(t={y:r,yyyy:r,yy:String(r).substring(2,4),M:A,MM:x(A),MMM:e.date.monthsShort[A-1],MMMM:e.date.monthsFull[A-1],d:L,dd:x(L),EEE:e.date.daysShort[O],EEEE:e.date.daysFull[O],H:C,HH:x(C)}).h=0===C?12:C>
7812?C-12:C,t.hh=x(t.h),t.k=0!==C?C:24,t.kk=x(t.k),t.K=C>11?C-12:C,t.KK=x(t.K),t.a=C>11?"PM":"AM",t.m=k,t.mm=x(k),t.s=I,t.ss=x(I),t.S=j,t.SS=x(j),t.SSS=x(j,3);var T="";for(o=0,c="",l="",I=!1;o<n.length;)if(l="","'"==(c=n.charAt(o)))o++,n.charAt(o)==c?(T+=c,o++):I=!I;else{for(;n.charAt(o)==c;)l+=n.charAt(o++);-1!=l.indexOf("MMMM")&&l.length>4&&(l="MMMM"),-1!=l.indexOf("EEEE")&&l.length>4&&(l="EEEE"),void 0===t[l]||I?T+=l:T+=t[l]}return T},number:function(t,n){var i,r,o,s,a,c;if("string"==typeof t)return i=e.number.groupingSeparator,o=e.number.decimalSeparator,a=1,-1!=(s=t.indexOf(o))&&(a=Math.pow(10,t.length-s-1)),t=(t=t.replace(new RegExp("["+i+"]","g"),"")).replace(new RegExp("["+o+"]"),"."),Math.round(t*a)/a;(void 0===n||n.length<1)&&(n=e.number.format),i=",",r=n.lastIndexOf(i),o=".",s=n.indexOf(o);var l="",u="",h=t<0,d=n.substr(s+1).replace(/#/g,"").length,f=n.substr(s+1).length,p=10;if(t=Math.abs(t),-1!=s){if(u=e.number.decimalSeparator,f>0){a=1e3,p=Math.pow(p,f);var g=Math.round(parseInt(t*p*a-Math.round(t)*p*a,10)/a),m=String(g<0?Math.round(parseInt(t*p*a-parseInt(t,10)*p*a,10)/a):g),v=t.toString().split(".");if(void 0!==v[1])for(c=0;c<f&&"0"==v[1].substr(c,1)&&c<f-1&&m.length!=f;c++)m="0"+m;for(c=0;c<f-u.length;c++)m+="0";var y,b="";for(c=0;c<m.length&&(y=m.substr(c,1),!(c>=d&&"0"==y&&/^0*$/.test(m.substr(c+1))));c++)b+=y;u+=b}u==e.number.decimalSeparator&&(u="")}if(0!==s){l=String(""!=u?parseInt(Math.round(t*p)/p,10):Math.round(t));var w=e.number.groupingSeparator,_=0;if(-1!=r&&(_=-1!=s?s-r:n.length-r,_--),_>0){var E=0,S="";for(c=l.length;c--;)0!==E&&E%_==0&&(S=w+S),S=l.substr(c,1)+S,E++;l=S}var x,A=/#|,/g;for(x=-1!=s?n.substr(0,s).replace(A,"").length:n.replace(A,"").length,c=l.length;c<x;c++)l="0"+l}return(h?"-":"")+(l+u)}});var e})?i.apply(e,r):i)||(t.exports=o)}()},function(module,exports,__webpack_require__){var __WEBPACK_AMD_DEFINE_FACTORY__,__WEBPACK_AMD_DEFINE_ARRAY__,__WEBPACK_AMD_DEFINE_RESULT__; 79/*! 80 * Monday Webforms for CoreMedia v1.10.7, (c) 2018 Monday Consulting GmbH 81 * 82 * @see https://monday-webforms.com/ 83 */!function(t){"use strict";__WEBPACK_AMD_DEFINE_ARRAY__=[__webpack_require__(0)],void 0===(__WEBPACK_AMD_DEFINE_RESULT__="function"==typeof(__WEBPACK_AMD_DEFINE_FACTORY__=t)?__WEBPACK_AMD_DEFINE_FACTORY__.apply(exports,__WEBPACK_AMD_DEFINE_ARRAY__):__WEBPACK_AMD_DEFINE_FACTORY__)||(module.exports=__WEBPACK_AMD_DEFINE_RESULT__)}((function($){"use strict";!function(){if("function"==typeof window.CustomEvent)return!1;function t(t,e){e=e||{bubbles:!1,cancelable:!1,detail:void 0};var n=document.createEvent("CustomEvent");return n.initCustomEvent(t,e.bubbles,e.cancelable,e.detail),n}t.prototype=window.Event.prototype,window.CustomEvent=t}();var EVENTS={AJAX_FINISHED:"mwf-ajax-finished",AJAX_ERROR:"mwf-ajax-error",FILL_DROPDOWN:"mwf-fill-dropdown",FILL_SELECTION:"mwf-fill-selection",FILL_HIDDEN:"mwf-fill-hidden",SUGGESTION_SELECTED:"mwf-suggestion-selected",VALUE_CHANGED:"mwf-value-changed"},globalSettings={},initialXhrRequest;function triggerEvent(t,e,n){var i;window.CustomEvent?i=new CustomEvent(e,n):(i=document.createEvent("CustomEvent")).initCustomEvent(e,!0,!0,n),t.dispatchEvent(i)}function globalSettingsWithVariant(t){return void 0===t?globalSettings.def:$.extend(!0,{},globalSettings.def,globalSettings[t])}function Webforms(elem,settings){var plugin=this,$elem=$(elem),operators={},formdata={},filenames={},uiState={visible:{},hidden:{},writable:{},readonly:{},optional:{},mandatory:{},disabled:{},enabled:{}},stateMapping={visible:"hidden",hidden:"visible",writable:"readonly",readonly:"writable",optional:"mandatory",mandatory:"optional",disabled:"enabled",enabled:"disabled"},$form=$elem.is("form")?$elem:$elem.find("form"),formId=$form.dataWithDefault("mwf-id",$form.data("mwf-form")),targetUrl=$form.dataWithDefault("mwf-target",settings.url),statisticsUrl=settings.statisticsUrl;function updateUI(t,e,n){var i,r,o,s,a,c,l,u={visible:[],hidden:[],writable:[],readonly:[],optional:[],mandatory:[],enabled:[],disabled:[]};for(i in uiState)uiState.hasOwnProperty(i)&&delete uiState[i][e];for(r=0;r<t.length;r++)l=t[r].input,c=t[r].state,n&&u[c].push(l),uiState[c][e]=u[c],o=stateMapping[c],s=containsState(c,l),a=containsState(o,l),s?(plugin.settings.operations[c]($form,t[r]),void 0!==plugin.settings.onConditionTrue&&plugin.settings.onConditionTrue($form,t[r],c)):!a&&s||(plugin.settings.operations[o]($form,t[r]),void 0!==plugin.settings.onConditionFalse&&plugin.settings.onConditionFalse($form,t[r],o))}function containsState(t,e){var n,i=uiState[t];for(n in i)if(i.hasOwnProperty(n)&&$.inArray(e,i[n])>-1)return!0;return!1}function valueChanged(t){t.is(":file")||(formdata=serializeForm($form),$form.trigger("mwf-valuechange",t))}function startsWith(t,e){return null!=t&&null!=e&&t.match(new RegExp("^"+e))==e}function serializeForm(t){var e={},n=t.serializeArray(),i=t.get(0);return $.each(n,(function(){var t,n=i.querySelector('[name="'+this.name+'"]'),r=this.value||"",o=n.getAttribute("type");if("radio"===o||"checkbox"===o||"select"===n.nodeName.toLowerCase()){if(e.hasOwnProperty(this.name)||(e[this.name]=[]),startsWith(r,"{"))try{t=JSON.parse(r).k}catch(t){}else"EMPTY_VALUE"===r&&(r="");e[this.name].push(void 0!==t?t:r)}else if("hidden"===o){if(startsWith(r,"{"))try{t=JSON.parse(r).v}catch(t){}e[this.name]=void 0!==t?t:r}else e[this.name]=r.trim()})),$.each(i.querySelectorAll('input[type="checkbox"]:not(:checked),input[type="radio"]:not(:checked)'),(function(){var t=this.getAttribute("name");e.hasOwnProperty(t)||(e[t]="")})),e}function valueLabel(t,e){var n=[];return $.each($form.find('[name="'+t+'"]'),(function(){var i=$(this);i.is(":radio")||i.is(":checkbox")?-1!==$.inArray(i.attr("data-mwf-value"),e)&&n.push(i.attr("data-mwf-label")):i.is("select")?$.each(i.find("option"),(function(){var t=$(this);-1!==$.inArray(t.attr("data-mwf-value"),e)&&n.push(t.attr("data-mwf-label"))})):i.is(":file")?$.merge(n,filenames[t]):n.push(e)})),n}function maxSelected(t,e){var n=Number(e);return(null!==t?t.length:0)<n}function minSelected(t,e){var n=Number(e);return(null!==t?t.length:0)>n}function isSelected(t,e){return null!=t&&$.inArray(e,t)>-1}function parseAge(t,e){if(null==e)return null;var n=parseDate(t,e),i=new Date;return Math.floor((i-n)/315576e5)}function parseDate(t,e){return null==e?null:$.format.date(e,t)}function isEmptyList(t){var e,n;if(null!=t)for(e=0;e<t.length;e++)if(""!==(n=String(t[e]))&&"EMPTY_VALUE"!==n)return!1;return!0}function ajaxFillSelection(t,e){var n=$.extend(formdata,e.data);void 0===e.createEntry&&(e.createEntry="checkbox"===e.type?plugin.settings.createCheckBox:plugin.settings.createRadio),void 0===e.onFillSelection&&(e.onFillSelection=plugin.settings.onFillSelection),$.ajax({url:e.url,type:"POST",data:n,traditional:!0,cache:!1}).done((function(n){var i,r,o=e.preselected.split(",");for(i in t.find("[data-mwf-mutable]").remove(),n)n.hasOwnProperty(i)&&(r=n[i],t.append(e.createEntry($form,e.name,r,-1!==$.inArray(r.k,o))));e.onFillSelection($form,t),triggerEvent(document,EVENTS.FILL_SELECTION,{detail:{$form:$form,$elem:t}})})).fail((function(t,e,n){plugin.settings.onAjaxError(t,e,n)}
83))}function ajaxFillHidden(t,e){var n=$.extend(formdata,e.data);$.ajax({url:e.url,type:"POST",data:n,traditional:!0,cache:!1}).done((function(e){t.val(JSON.stringify(e)),t.attr("data-mwf-value",e.v),t.trigger("change"),triggerEvent(document,EVENTS.FILL_HIDDEN,{detail:{$form:$form,$elem:t}})})).fail((function(t,e,n){plugin.settings.onAjaxError(t,e,n)}))}function ajaxFillDropdown(t,e){var n=$.extend(formdata,e.data);void 0===e.createOption&&(e.createOption=plugin.settings.createOption),void 0===e.onFillDropdown&&(e.onFillDropdown=plugin.settings.onFillDropdown),$.ajax({url:e.url,type:"POST",data:n,traditional:!0,cache:!1}).done((function(n){var i,r,o,s=e.preselected.split(",");for(r in t.find("[data-mwf-mutable]").remove(),n)n.hasOwnProperty(r)&&(o=n[r],i=e.createOption($form,o,-1!==$.inArray(o.k,s)),t.append(i));e.onFillDropdown($form,t),triggerEvent(document,EVENTS.FILL_DROPDOWN,{detail:{$form:$form,$elem:t}})})).fail((function(t,e,n){plugin.settings.onAjaxError(t,e,n)}))}function ajaxAutocomplete(t,e){var n=1;void 0!==e.params.chars&&(n=e.params.chars);t.autocomplete({paramName:"query",params:e.data,serviceUrl:e.url,maxHeight:150,noCache:!0,minChars:n,type:"POST",onSelect:function(n){valueChanged(t),triggerEvent(document,EVENTS.SUGGESTION_SELECTED,{detail:{$form:$form,$elem:t,id:formId,selection:n,params:e.params}}),$.isFunction(e.onSelect)&&e.onSelect(arguments)},autoSelectFirst:!0,sendFormData:!0,transformResult:function(t){return t=JSON.parse(t),{suggestions:$.map(t,(function(t,e){return{value:t.v,data:t.k}}))}}})}function ajaxSubmit(t){var e=$form.find(":button").filter(":not(:disabled)"),n={_parentUrl:window.location.href.replace(/#.*?(?=\?|$)/,""),_timezone:$.timezone()};plugin.settings.appendUrlVars&&($.extend(n,$.getUrlVars(window.location.search)),delete n.view),$.extend(n,$.getUrlVars(t.query),t.data,$form.serializeObject()),(void 0===t.onSubmit||t.onSubmit($form,t.url.replace(/#.*?(?=\?|$)/,""),t.query))&&(e.prop("disabled",!0),$.ajax({url:t.url.replace(/#.*?(?=\?|$)/,""),type:"POST",data:n,traditional:!0,cache:!1}).done((function(e,n,i){if(i&&i.getResponseHeader("X-Redirect-Location")){void 0!==t.onRedirect&&t.onRedirect($form,e,n,i);var r=1e3*(i.getResponseHeader("X-Redirect-Delay")||0);if(setTimeout((function(){location.assign(i.getResponseHeader("X-Redirect-Location"))}),r),!r)return}$elem=$elem.replaceWithPush(e),$form=$elem.is("form")?$elem:$elem.find("form"),void 0!==t.onSuccess&&t.onSuccess($form,e,n,i),triggerEvent(document,EVENTS.AJAX_FINISHED,{detail:{$dest:$elem}})})).fail((function(n,i,r){void 0!==t.onError&&t.onError($form,n,i,r),e.prop("disabled",!1),triggerEvent(document,EVENTS.AJAX_ERROR,{detail:{$dest:$elem,jqXHR:n,textStatus:i,errorThrown:r}})})))}function createCondition(t,e,n,i){var r=function(){var r,o,s,a=!0,c=!1;for(r=0;r<n.length&&(!(s=n[r])||(void 0===(o=formdata[s[1]])&&(o=s[4]),operators[s[2]](o,s[3])?c=!0:a=!1,e||!c));r++);updateUI(i,t,a||!e&&c)};$form.on("mwf-valuechange",(function(t,e){var i;for(i=0;i<n.length;i++)n[i]&&$(e).attr("name")===n[i][1]&&r()})),r(),void 0!==plugin.settings.onConditionCreated&&plugin.settings.onConditionCreated($form,t,e,n,i)}function createCalculatedValue(calcValueId,js,fields,formVariables,updateValue){updateValue=void 0===updateValue?plugin.settings.updateCalculatedValue:updateValue;var name,id=calcValueId,vars=formVariables,fct,calculate=function(){var t=$.extend({},fields,formdata,vars),e=fct(t),n=$form.find('[data-mwf-id="'+id+'"]');updateValue($form,id,e),n.val(e).trigger("change")};try{eval("fct = function(s) {"+js+"}")}catch(t){$.logError(t.message)}$form.on("mwf-valuechange",(function(t,e){for(name in fields)if(fields.hasOwnProperty(name)&&$(e).attr("name")===name){calculate();break}}))}function recursiveEach(t,e,n){var i,r=[],o=-1;void 0===n&&(n=Number.MAX_VALUE),(i=function(t,e){var s,a,c,l=Object.getOwnPropertyNames(t||{});for(o++,c=0;c<l.length;c++)if("object"==typeof(a=t[s=l[c]]))o<n&&-1===$.inArray(a,r)&&(r.push(a),i(a,e));else if(!1===e.call(t,t,s,a))break;o--})(t,e)}void 0!==settings.formdata&&(formdata=settings.formdata),statisticsUrl&&0!==statisticsUrl.length||(statisticsUrl=null),plugin.settings=settings,operators.c
83ontains=function(t,e){return null!=t&&null!=e&&-1!==t.indexOf(e)},operators.containsnot=function(t,e){return null!=t&&null!=e&&-1===t.indexOf(e)},operators.startswith=function(t,e){return startsWith(t,e)},operators.endswith=function(t,e){return null!=t&&null!=e&&t.match(new RegExp(e+"$"))==e},operators.equal=function(t,e){if(null==t||null==e)return t===e;var n=parseFloat(t.replace(",",".")),i=parseFloat(e.replace(",","."));return!isNaN(n)&&!isNaN(i)&&n===i||t===e},operators.notequal=function(t,e){if(null==t||null==e)return t!==e;var n=parseFloat(t.replace(",",".")),i=parseFloat(e.replace(",","."));return!isNaN(n)&&!isNaN(i)&&n!==i||t!==e},operators.empty=function(t,e){return null==t||""===t},operators.notempty=function(t,e){return null!=t&&""!==t},operators.emptylist=function(t,e){return isEmptyList(t)},operators.notemptylist=function(t,e){return!isEmptyList(t)},operators.selected=function(t,e){return null!=t&&null!=e&&-1!==$.inArray(e,t)},operators.notselected=function(t,e){return null!=t&&null!=e&&-1===$.inArray(e,t)},operators.minselected=function(t,e){return(null==t?0:t.length)>Number(e)},operators.maxselected=function(t,e){return(null==t?0:t.length)<Number(e)},operators.lessthan=function(t,e){if(null==t||null==e)return!1;var n=parseFloat(t.replace(",",".")),i=parseFloat(e.replace(",","."));return!isNaN(n)&&!isNaN(i)&&n<i},operators.greaterthan=function(t,e){if(null==t||null==e)return!1;var n=parseFloat(t.replace(",",".")),i=parseFloat(e.replace(",","."));return!isNaN(n)&&!isNaN(i)&&n>i},plugin.formSubmit=function(t){ajaxSubmit({url:targetUrl,id:formId,query:void 0!==t.query?t.query:"",onSubmit:void 0!==t.submit?t.submit:plugin.settings.onSubmit,onSuccess:void 0!==t.success?t.success:plugin.settings.onSuccess,onError:void 0!==t.error?t.error:plugin.settings.onAjaxError,onRedirect:void 0!==t.redirect?t.redirect:plugin.settings.onRedirect})},plugin.gotoPage=function(t){ajaxSubmit({url:targetUrl,id:formId,query:t.query.concat("&_target",t.page,"=",t.page),onSubmit:void 0!==t.submit?t.submit:plugin.settings.onSubmit,onSuccess:void 0!==t.success?t.success:plugin.settings.onSuccess,onError:void 0!==t.error?t.error:plugin.settings.onAjaxError,onRedirect:void 0!==t.redirect?t.redirect:plugin.settings.onRedirect})},plugin.init=function(){recursiveEach(settings,(function(obj,property,value){if("string"==typeof value&&"function"===value.trim().substring(0,8))try{eval("obj[property] ="+value)}catch(t){$.logError(t.message)}}),1),$form.on("change",(function(t){valueChanged($(t.target)),null!==statisticsUrl&&($.ajax({url:statisticsUrl}),statisticsUrl=null)})),void 0===targetUrl&&$.logError("No target URL specified."),$.each($form.find("[data-mwf-submit]"),(function(){var t=$(this).data("mwf-submit"),e=void 0!==t.query?t.query:"",n=void 0!==t.success?t.success:plugin.settings.onSuccess,i=void 0!==t.redirect?t.redirect:plugin.settings.onRedirect,r=void 0!==t.error?t.error:plugin.settings.onAjaxError,o=void 0!==t.submit?t.submit:plugin.settings.onSubmit;switch(t.type){case"next":case"back":case"goto":e=e.concat("&_target",t.page,"=",t.page);break;case"cancel":case"exit":case"finish":e=e.concat("&_",t.type,"=1")}$(this).on("click",(function(){ajaxSubmit({url:targetUrl,id:formId,query:e,onSubmit:o,onSuccess:n,onError:r,onRedirect:i})}))})),$.each($form.find("[data-mwf-bind]"),(function(){var t=$(this).data("mwf-bind"),e=$(this);$form.on("mwf-valuechange",(function(n,i){var r,o;if($(i).attr("name")===t)return r=formdata[t],o=valueLabel(t,r),plugin.settings.updateFormValue($form,e,t,o),triggerEvent(document,EVENTS.VALUE_CHANGED,{detail:{$form:$form,$elem:e,name:t,value:o}}),!1}))})),$.each($form.find("[data-mwf-fileupload]"),(function(){var t=$(this),e=$(this).data("mwf-fileupload"),n=t.find("[data-mwf-dropzone]"),i=t.find("[data-mwf-files]"),r=t.find("input:file"),o=void 0!==r.attr("multiple"),s=!o&&$.support.xhrFileUpload||$.support.xhrFormDataFileUpload,a=0,c=[],l=[],u=!0,h=null;t.find("[data-mwf-file-upload-all]").on("click",(function(){c.forEach((function(t){t.submit()})),c=[]})),t.find("[data-mwf-file-delete-all]").on("click",(function(){i.find("[data-mwf-file-delete]").trigger("click"),c=[]})),t.on("disable",(function(){u=!1,t.fileupload("disable"),t.addClass("mwf-upload-disabled"),t.find(":button").prop("disabled",!0),r.prop("disabled",!0)})),t.on("enable",(function(){u=!0,t.fileupload("enable"),t.removeClass("mwf-upload-disabled"),t.find(":button").prop("disabled",!1),r.prop("disabled",!1)})),n.on("dragover",(function(){u&&$(this).addClass("mwf-upload-dragover")})),n.on("dragleave drop",(function(){$(this).removeClass("mwf-upload-dragover")})),t.fileupload({url:e.url,paramName:e.name,dataType:"json",dropZone:n,fileInput:r,previewMaxWidth:e.previewMaxWidth,previewMaxHeight:e.previewMaxHeight,previewCrop:!0,maxNumberOfFiles:1,formData:{xhr:s},add:function(n,r){var s=t;return!!u&&($.each(l,(function(t,e){e.remove()})),!(!o&&0!==a)&&(a++,c.push(r),void r.process((function(){return s.fileupload("process",r)}
83)).always((function(){$.each(r.files,(function(t,n){var o=plugin.settings.createUploadFileRow($form,e,n);r.context=o,o.find("[data-mwf-file-upload]").data(r).on("click",(function(){c.splice($.inArray(r,c),1),r.submit()})),o.find("[data-mwf-file-delete]").data(r).on("click",(function(){o.remove(),c.splice($.inArray(r,c),1),a--})),o.find("[data-mwf-file-preview]").append(n.preview),i.append(o)})),!0===e.autoUpload&&r.submit()}))))},submit:function(t,e){null===h&&(h=$form.find(":button").filter(":not(:disabled)")).prop("disabled",!0)},progress:function(t,e){var n=parseInt(e.loaded/e.total*100,10);e.context&&e.context.each((function(){e.context.find("[data-mwf-file-progress]").attr("aria-valuenow",n).css("display","block").children().first().css("width",n+"%").text(n+"%")}))},done:function(t,n){var r="string"==typeof n.result?JSON.parse(n.result).files:n.result.files;$.each(r,(function(t,r){var o=plugin.settings.createDownloadFileRow($form,e,r);void 0!==n.context?n.context.replaceWith(o):i.append(o),void 0===r.error?(o.find("[data-mwf-file-delete]").on("click",(function(){r.delete_url&&$.ajax({url:r.delete_url}),o.remove(),c.splice($.inArray(n,c),1),filenames.hasOwnProperty(e.name)&&(filenames[e.name].splice($.inArray(r.name,filenames[e.name]),1),$form.trigger("mwf-valuechange",n.fileInput)),a--})),filenames.hasOwnProperty(e.name)||(filenames[e.name]=[]),filenames[e.name].push(r.name),$form.trigger("mwf-valuechange",n.fileInput)):(o.find("[data-mwf-file-delete]").on("click",(function(){o.remove(),c.splice($.inArray(n,c),1)})),l.push(o),a--)}))},fail:function(t,n){$.each(n.files,(function(t,r){var o=plugin.settings.createDownloadFileRow($form,e,{name:r.name,size:r.size,error:e.labels.error});o.find("[data-mwf-file-delete]").data(n).on("click",(function(){o.remove(),c.splice($.inArray(n,c),1)})),l.push(o),a--,void 0!==n.context?n.context.replaceWith(o):i.append(o)}))}
83,always:function(e,n){null!==h&&1===t.fileupload("active")&&(h.prop("disabled",!1),h=null)}}),$.ajax({url:e.url,dataType:"json",data:{_name:e.name,_do:"files"}}).done((function(e){t.fileupload("option","done").call(t,$.Event("done"),{result:e}),a=e.files.length}))})),$.each($form.find("[data-mwf-datasource]"),(function(){var t=$.extend(!0,{},{params:{},data:{}},$(this).data("mwf-datasource")),e=$(this);switch(t.type){case"checkbox":case"radio":ajaxFillSelection(e,t),$form.on("mwf-valuechange",(function(n,i){$.trim(t.params.dependsOn)&&$.each(t.params.dependsOn.split(","),(function(n,r){if($(i).attr("name")===r)return ajaxFillSelection(e,t),!1}))}));break;case"selection":ajaxFillDropdown(e,t),$form.on("mwf-valuechange",(function(n,i){$.trim(t.params.dependsOn)&&$.each(t.params.dependsOn.split(","),(function(n,r){if($(i).attr("name")===r)return ajaxFillDropdown(e,t),!1}))}));break;case"suggestion":ajaxAutocomplete(e,t);break;case"hidden":ajaxFillHidden(e,t),$form.on("mwf-valuechange",(function(n,i){$.trim(t.params.dependsOn)&&$.each(t.params.dependsOn.split(","),(function(n,r){if($(i).attr("name")===r)return ajaxFillHidden(e,t),!1}))}));break;default:$.logError(void 0===t.type?"Please specifiy the datasource type (checkbox, radio, selection or suggestion).":'Unknown datasource type "'.concat(t.type,'".'))}})),$.each(plugin.settings.conditions,(function(){createCondition($(this).attr("id"),$(this).attr("conjunction"),$(this).attr("conditions"),$(this).attr("fields"))})),$.each(plugin.settings.calculatedValues,(function(){createCalculatedValue($(this).attr("id"),$(this).attr("js"),$(this).attr("fields"),$(this).attr("vars"))})),plugin.settings.onInit($form)},plugin.init()}globalSettings.def={appendUrlVars:!1,operations:{},conditions:[],calculatedValues:[],fileuploadOptions:{},onConditionTrue:void 0,onConditionFalse:void 0,statisticsUrl:null},globalSettings.def.operations.visible=function(t,e){t.find('[data-mwf-container="'+e.input+'"]').removeClass("mwf-hidden"),t.find('[data-mwf-id="'+e.input+'"]').removeAttr("disabled")},globalSettings.def.operations.hidden=function(t,e){t.find('[data-mwf-container="'+e.input+'"]').addClass("mwf-hidden"),t.find('[data-mwf-id="'+e.input+'"]').attr("disabled","true")},globalSettings.def.operations.writable=function(t,e){t.find('[data-mwf-id="'+e.input+'"]').removeAttr("readonly")},globalSettings.def.operations.readonly=function(t,e){var n=t.find('[data-mwf-id="'+e.input+'"]');n.val(e.value),n.attr("readonly","true")},globalSettings.def.operations.enabled=function(t,e){var n=t.find('[data-mwf-id="'+e.input+'"]');n.removeAttr("disabled"),n.trigger("enable")},globalSettings.def.operations.disabled=function(t,e){var n=t.find('[data-mwf-id="'+e.input+'"]');n.attr("disabled","true"),n.trigger("disable")},globalSettings.def.operations.optional=function(t,e){t.find('label[for="'+e.input+'"]').children("span.mwf-required").remove()},globalSettings.def.operations.mandatory=function(t,e){var n=t.find('label[for="'+e.input+'"]'),i=$("<span></span>").attr("class","mwf-required").text("*");n.children("span.mwf-required").remove(),n.append(i)},globalSettings.def.createOption=function(t,e,n){var i=$("<option></option>").attr("data-mwf-value",e.k).attr("data-mwf-label",e.v).attr("data-mwf-mutable","").attr("value",JSON.stringify(e)).append(e.v);return n&&i.attr("selected",!0),i},globalSettings.def.createRadio=function(t,e,n,i){var r,o,s;return r=$("<span></span>").attr("class","mwf-option").attr("data-mwf-mutable",""),o=$("<input/>").attr("type","radio").attr("id",n.i).attr("data-mwf-id",n.i).attr("data-mwf-value",n.k).attr("data-mwf-label",n.v).attr("value",JSON.stringify(n)).attr("name",e).attr("class","mwf-radio"),i&&o.attr("checked","checked"),s=$("<label></label>").attr("for",n.i).append(n.v),r.append(o),r.append(" "),r.append(s),r},globalSettings.def.createCheckBox=function(t,e,n,i){var r,o,s;return r=$("<span></span>").attr("class","mwf-option").attr("data-mwf-mutable",""),o=$("<input/>").attr("type","checkbox").attr("id",n.i).attr("data-mwf-id",n.i).attr("data-mwf-value",n.k).attr("data-mwf-label",n.v).attr("value",JSON.stringify(n)).attr("name",e).attr("class","mwf-checkbox"),i&&o.attr("checked","checked"),s=$("<label></label>").attr("for",n.i).append(n.v),r.append(o),r.append(" "),r.append(s),r},globalSettings.def.updateFormValue=function(t,e,n,i){e.html($.isArray(i)?i.join(", "):i)},globalSettings.def.createUploadFileRow=function(t,e,n){var i,r,o,s,a,c,l,u,h,d,f,p,g;return i=$("<div/>").attr("data-mwf-file","").attr("class","mwf-upload-row"),r=$("<div/>").attr("class","mwf-upload-fileinfo"),s=$("<div/>").attr("data-mwf-file-preview","").attr("class","mwf-upload-preview"),o=$("<div/>").attr("class","mwf-upload-metadata"),a=$("<ul/>"),c=$("<li>").text(e.labels.name+": "+n.name),l=$("<li>").text(e.labels.size+": "+$.formatSize(n.size)),u=$("<div/>").attr("class"," mwf-upload-actions"),h=$("<button>").attr("type","button").attr("data-mwf-file-upload","").attr("class","mwf-upload-upload").text(e.labels.upload),d=$("<button>").attr("type","button").attr("data-mwf-file-delete","").attr("class","mwf-upload-delete").text(e.labels.del),f=$("<span>").css("width","0%"),p=$("<div/>").attr("data-mwf-file-progress","").attr("class","mwf-upload-progressbar"),g=$("<div/>").attr("data-mwf-file-error","").attr("class","mwf-upload-error"),u.append(d),!1===e.autoUpload&&u.append(h),a.append(c),a.append(l),o.append(a),r.append(s),r.append(o),p.append(f),i.append(r),i.append(u),i.append(g),i.append(p),i},globalSettings.def.createDownloadFileRow=function(t,e,n){var i,r,o,s,a,c,l,u,h,d,f,p;return i=$("<div/>").attr("data-mwf-file","").attr("class","mwf-upload-row"),r=$("<div/>").attr("class","mwf-upload-fileinfo"),s=$("<div/>").attr("data-mwf-preview","").attr("class","mwf-upload-preview"),o=$("<div/>").attr("class","mwf-upload-metadata"),c=$("<ul/>"),l=$("<li>").text(e.labels.name+": "+n.name),u=$("<li>").text(e.labels.size+": "+$.formatSize(n.size)),h=$("<div/>").attr("class"," mwf-upload-actions"),d=$("<button>").attr("type","button").attr("data-mwf-file-delete","").attr("class","mwf-upload-delete").text(e.labels.del),h.append(d),c.append(l),c.append(u),o.append(c),n.thumbnail_url&&(a=$("<img/>").attr("src",n.thumbnail_url),s.append(a)),r.append(s),r.append(o),i.append(r),i.append(h),n.error&&(p=$("<div/>").attr("data-mwf-file-error","").attr("class","mwf-upload-error"),f=$("<span>").text(n.error),p.append(f),i.append(p)),i},globalSettings.def.updateCalculatedValue=function(t,e,n){t.find('[data-mwf-value="'+e+'"]').text(n).html()},globalSettings.def.onAjaxError=function(t,e,n){$.logError(t.responseText)},globalSettings.def.onSubmit=function(t,e,n){return!0},globalSettings.def.onConditionCreated=function(t,e,n,i,r){},globalSettings.def.onFillDropdown=function(t,e){},globalSettings.def.onFillSelection=function(t,e){},globalSettings.def.onInit=function(t){t.find('input[type="text"],input[type="number"]').each((function(){t.trigger("mwf-valuechange",$(this))}))},$.fn.webforms=function(t){var e,n,i,r=$(this),o=r;if(void 0===r.data("mwf-form")&&(o=r.find("[data-mwf-form]")),0!==o.length){if(n=o.dataWithDefault("mwf-id",o.data("mwf-form")),e=o.dataWithDefault("mwf-settings",{}),i={id:n,type:"GET",appendUrlVars:!1},$.extend(!0,i,globalSettingsWithVariant(e.variant),e,t),o.is("form")||o.find("form").length>0)return o.each((function(){var t=$(this).data("webforms");t&&t.dispose&&t.dispose(),t=new Webforms($(this),i),$(this).data("webforms",t)}));i.selector=r,$.mwfAjaxReplace(i)}},$.fn.webforms.settings=function(t){return void 0===t?globalSettings.def:(void 0===globalSettings[t]&&(globalSettings[t]={}),globalSettings[t])},$.fn.webforms.defaults=$.fn.webforms.settings,$.fn.replaceWithPush=function(t){var e=$
83(t);return this.replaceWith(e),e},$.fn.dataWithDefault=function(t,e){var n=this.data(t);return void 0!==n?n:e},void 0===$.fn.serializeObject&&($.fn.serializeObject=function(){var t={},e=this.serializeArray();return $.each(e,(function(){void 0!==t[this.name]?(t[this.name].push||(t[this.name]=[t[this.name]]),t[this.name].push(this.value||"")):t[this.name]=this.value||""})),t}),void 0===$.logError&&$.extend({logError:function(t){try{void 0!==t&&void 0!==window.console&&console.error(t)}catch(t){}}}),$.extend({mwfAjaxReplace:function(t){var e,n,i,r=$(t.selector),o={_parentUrl:window.location.href.replace(/#.*?(?=\?|$)/,""),_timezone:$.timezone()};r.length>0&&(null!==(e=$.getOptinIdFromHash(t.id))&&(o._optinId=e,void 0!==history.replaceState?history.replaceState({},document.title,window.location.pathname):window.location.hash="",$("html, body").animate({scrollTop:r.offset().top})),n={url:null,type:"POST",appendUrlVars:!1},$.extend(n,t),n.appendUrlVars&&($.extend(o,$.getUrlVars(window.location.search)),delete o.view),$.extend(o,$.getUrlVars(n.query),t.data),i=function(){return $.ajax({url:n.url,type:n.type,data:o,traditional:!0,cache:!1}).done((function(t,e,i){i&&i.getResponseHeader("X-Redirect-Location")?location.assign(i.getResponseHeader("X-Redirect-Location")):(r=r.replaceWithPush(t),void 0!==n.onSuccess&&n.onSuccess(t,e,i),triggerEvent(document,EVENTS.AJAX_FINISHED,{detail:{$dest:r}}))})).fail((function(t,e,i){void 0!==n.onError?n.onError(t,e,i):$.logError(t.responseText),triggerEvent(document,EVENTS.AJAX_ERROR,{detail:{$dest:r,jqXHR:t,textStatus:e,errorThrown:i}})}))},void 0===initialXhrRequest?initialXhrRequest=i():$.when(initialXhrRequest).always(i))},getUrlVars:function(t){var e,n,i,r,o,s,a={};if("string"==typeof t&&t.length>0)for("?"===t[0]&&(t=t.substring(1)),e=0,s=(t=t.split("&")).length;e<s;e++)t[e]&&0!==t[e].length&&((i=(n=t[e]).indexOf("="))>=0?(r=n.substr(0,i),o=n.substr(i+1)):(r=n,o=""),o=decodeURIComponent(o),void 0===a[r]?a[r]=o:a[r]instanceof Array?a[r].push(o):a[r]=[a[r],o]);return a},getUrlVar:function(t,e){return $.getUrlVars(t)[e]},getOptinIdFromHash:function(t){var e=location.hash.replace("#",""),n=e.indexOf("mwf:");if(-1!==n){var i=e.split(":");if(2===i.length||i[1]===String(t))return e.substring(n+4,e.length)}return null},formatSize:function(t){return"number"!=typeof t?"":t>=1e9?(t/1e9).toFixed(2)+" GB":t>=1e6?(t/1e6).toFixed(2)+" MB":(t/1e3).toFixed(2)+" KB"},timezone:function(){try{return Intl.DateTimeFormat().resolvedOptions().timeZone}catch(t){return"UTC"}}}),$(document).ready((function(){var t=$(document),e=$("[data-csrf-token]"),n=$("[data-csrf-header]");e.length&&$.ajaxSetup({beforeSend:function(t){n.length&&t.setRequestHeader(n.attr("data-csrf-header"),e.attr("data-csrf-token")),t.setRequestHeader("X-CSRFToken",e.attr("data-csrf-token"))}}),t.on(EVENTS.AJAX_FINISHED,(function(t){t.originalEvent.detail.$dest.webforms({})})),$("[data-mwf-form]").each((function(){$(this).webforms({})}))}))}))},function(t,e){},,,,function(t,e,n){"use strict";n.r(e);var i=n(0),r=n.n(i),o=n(2);function s(t,e,n){console.log("setCookie",t,e,n);var i=t+"="+e+";";if(n){var r=new Date;r.setTime(r.getTime()+24*n*60*60*1e3),i+=" expires="+r.toUTCString()+"; path=/"}document.cookie=i}function a(t){for(var e=t+"=",n=decodeURIComponent(document.cookie).split(";"),i=0;i<n.length;i+=1){for(var r=n[i];" "===r.charAt(0);)r=r.substring(1);if(0===r.indexOf(e))return r.substring(e.length,r.length)}}function c(t){document.cookie=t+"=; expires=Thu, 01 Jan 1970 00:00:00 GMT"}var l="gdv-debug-grid-show",u=function(){var t,e=document.createElement("button");-1===window.location.href.indexOf("debug=true")&&-1===window.location.href.indexOf("userVariant=")&&null===window.location.href.match(/preview-(.*?).gdv/)||(e.style.position="fixed",e.style.top=0,e.style.right=0,e.style.width="".concat(24,"px"),e.style.height="".concat(24,"px"),e.style.backgroundColor="#fff",e.style.zIndex=999999999999999,e.innerHTML='<svg fill="#000000" width="'.concat(24,'px" height="').concat(24,'px" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><path fill-rule="evenodd" d="M11,4 L4,4 L4,20 L11,20 L11,10 L4,10 L4,8 L11,8 L11,4 Z M13,4 L13,14 L20,14 L20,16 L13,16 L13,20 L20,20 L20,4 L13,4 Z M4,2 L20,2 C21.1045695,2 22,2.8954305 22,4 L22,20 C22,21.1045695 21.1045695,22 20,22 L4,22 C2.8954305,22 2,21.1045695 2,20 L2,4 C2,2.8954305 2.8954305,2 4,2 Z"/></svg>'),document.querySelector("body").appendChild(e),e.addEventListener("click",(function(){void 0!==a(l)?(c(l),u()):(s(l,!0),r())})));var n=Object(o.b)((function(){var e=window.getComputedStyle(document.querySelector("head")).fontFamily;void 0!==t&&(t.innerText=e)}),150),i=function(){window.location.href=window.location.href.replace(/(\?|&)grid=(show|hide)/,"")},r=function(){u();var e=document.createElement("div");e.classList.add("grid-overlay");var n=document.createElement("div");n.classList.add("container-fluid"),e.appendChild(n);var i=document.createElement("div");i.classList.add("row"),n.appendChild(i);for(var r=0;r<12;r+=1){var o=document.createElement("div");o.classList.add("col-xs-1"),i.appendChild(o)}
83(t=document.createElement("p")).style.position="absolute",t.style.top=0,t.style.right="".concat(48,"px"),t.style.zIndex=1e5,e.appendChild(t),document.querySelector("body").appendChild(e)},u=function(){document.querySelector(".grid-overlay")&&document.querySelector(".grid-overlay").remove()};!0===/(\?|&)grid=hide/gim.test(window.location.href)&&(c(l),i()),!0===/(\?|&)grid=show/gim.test(window.location.href)&&(s(l,!0),i()),void 0!==a(l)&&(r(),window.addEventListener("resize",n,{passive:!0}),n())},h=function(){var t=function(){var t=document.documentElement.clientWidth;document.querySelector(":root").style.setProperty("--gdv-vw","".concat(t,"px"))};window.addEventListener("resize",t),t()};r()((function(){u(),h()}))},function(t,e,n){"use strict";n.r(e);var i=n(0),r=n.n(i),o=n(2),s=n(1),a={UP:"UP",DOWN:"DOWN",NONE:"NONE"},c="is-active",l="is-search-open",u={SHOW:"is-visible",HIDE:"is-hidden",FIXED:"is-fixed",SCROLL_DOWN:"is-scrolled-down",SCROLL_UP:"is-scrolled-up",OPEN:"is-open",DONT_HIDE_ON_MENU_OPEN:"dont-hide-on-menu-open"},h="is-navigation-open",d="is-active",f="is-active",p="is-hidden",g="is-empty",m="is-active",v="has-overflow",y="is-at-top",b="is-at-bottom",w="userWasRedirected";function _(t){!function(t){var e=document.querySelector("body"),n=t.querySelector('[data-js-atom="navigation-toggle-button"]'),i=t.querySelector('[data-js-atom="navigation-header"]'),_=t.querySelectorAll('[data-js-atom="navigation-nav-col"]'),E=Array.from(_).filter((function(t){return"true"===t.getAttribute("data-js-has-children")})),S=t.querySelectorAll('[data-js-atom="navigation-link"]'),x=t.querySelectorAll('[data-js-atom="navigation-list-item"]'),A=JSON.parse(t.getAttribute("data-js-messages")),L=t.querySelector('[data-js-atom="navigation-search-form"]'),O=t.querySelector('[data-js-atom="navigation-search-input-wrapper"]'),C=t.querySelector('[data-js-atom="navigation-search-input"]'),k=t.querySelector('[data-js-atom="navigation-search-open-button"]'),I=(t.querySelector('[data-js-atom="navigation-search-submit-button"]'),t.querySelector('[data-js-atom="navigation-search-reset-button"]'),t.querySelectorAll('[data-js-atom="navigation-overflow-wrapper-outer"]')),j=Object(o.c)(),T=JSON.parse(t.getAttribute("data-js-locales")||"{}"),P=(T.currentLocale||"").split("_")[0]||void 0,D=(T.availableLocale||"").split("_")[0]||void 0,N=T.redirectTo,R=Boolean(Object(o.j)(w)),M=t.querySelector('[data-js-atom="change-language-link"]');void 0!==j&&void 0!==D&&void 0!==P&&void 0!==N&&!0!==R&&j!==P&&j===D&&Object(o.m)(w,!0);var F=void 0,q=0,$=void 0,U=!1,B=void 0,z=!1,H=!1,V="true"===t.getAttribute("data-js-is-empty"),W=0,Q=-1,Y=function(e){if(!z&&!H){var n=window.pageYOffset||document.documentElement.scrollTop;U=!1,q<n?($!==a.DOWN&&(U=!0),$=a.DOWN):q>n?($!==a.UP&&(U=!0),$=a.UP):(U=!1,$=a.NONE),q=n,n>B&&(!0,t.classList.add(u.FIXED),r()(window).trigger(Object(s.b)(s.a.NAVI_SET_FIXED)),$===a.DOWN&&(t.classList.add(u.HIDE),r()(window).trigger(Object(s.b)(s.a.NAVI_HIDE)),window.setTimeout((function(){!1,t.style.transitionDuration=null}),50))),n<=0&&(!1,t.classList.remove(u.FIXED),r()(window).trigger(Object(s.b)(s.a.NAVI_UNSET_FIXED)),t.style.transitionDuration="0ms"),n<=B?t.classList.add(u.DONT_HIDE_ON_MENU_OPEN):t.classList.remove(u.DONT_HIDE_ON_MENU_OPEN),U&&Z()}},X=Object(o.l)(Y,5),K=function(){t.style.position="relative",t.style.height=null,B=i.getBoundingClientRect().height,t.style.position="fixed",t.style.height="100vh",e.style.paddingTop=B+"px",J()},G=Object(o.b)(K,50),J=function(){I.forEach((function(t){var e=t.querySelector('[data-js-atom="navigation-overflow-wrapper-inner"]'),n=t.parentNode;t.style.maxHeight=null,t.scrollTop=0,t.scrollTop=0,n.style.maxHeight=null,n.classList.add(y),n.classList.remove(b),n.classList.remove(v);var i=n.getBoundingClientRect(),r=i.top,s=(i.height,parseInt((Object(o.e)(n,"paddingTop")||0).toString().replace(/[^0-9.]/gim,""))),a=parseInt((Object(o.e)(n,"paddingBottom")||0).toString().replace(/[^0-9.]/gim,"")),c=t.getBoundingClientRect(),l=(c.top,c.height,e.getBoundingClientRect().height),u=window.innerHeight-r-2*s-2*a;t.style.maxHeight="".concat(u,"px"),n.style.maxHeight="calc(100vh - ".concat(r,"px)"),l>u&&n.classList.add(v)}))}
83,Z=function(){Object.values(a).forEach((function(e){t.classList.remove(u["SCROLL_".concat(e)])})),$!==a.NONE&&t.classList.add(u["SCROLL_".concat($)]),$!==a.DOWN&&(t.classList.remove(u.HIDE),r()(window).trigger(Object(s.b)(s.a.NAVI_SHOW)))},tt=function(i){if("xs"===Object(o.d)()&&H)return W++,void ct();K(),n.classList.toggle(c),t.classList.toggle(c),e.classList.toggle(h),(z=!z)?(window.addEventListener("keydown",rt),_.forEach((function(t,e){0===parseInt(t.getAttribute("data-js-level")||"0")&&t.classList.add(c)})),et()):(window.removeEventListener("keydown",rt),_.forEach((function(t,e){t.classList.remove(c)})),x.forEach((function(t,e){t.classList.remove(c)})))},et=function(){for(var e=1;e<4;e++)t.classList.remove("is-open-level-".concat(e)),Q=-1},nt=function(e){var n=e.currentTarget;if("function"==typeof n.getAttribute&&"true"===n.getAttribute("data-js-has-children")){e.preventDefault();var i=n.parentNode.getAttribute("data-js-level")||-1;t.classList.add("is-open-level-".concat(i)),Q=i}for(S.forEach((function(t,e){t.parentNode.classList.remove(d)})),n.parentNode.classList.add(d);n.parentNode;)(n=n.parentNode)&&"function"==typeof n.getAttribute&&"navigation-list-item"===n.getAttribute("data-js-atom")&&n.classList.add(c)},it=function(e){e.currentTarget;e.preventDefault(),e.stopPropagation(),S.forEach((function(t,e){t.parentNode.classList.remove(d)})),Q--,et(),t.classList.add("is-open-level-".concat(Q))},rt=function(t){27===t.keyCode&&n.dispatchEvent(new Event("click"))},ot=function(t){var e=t.target;"function"==typeof e.getAttribute&&"main-navigation-header"===e.getAttribute("data-js-atom")&&z&&n.dispatchEvent(new Event("click"))},st=function(i){i&&(i.preventDefault(),i.stopPropagation()),H=!H,W=0,t.classList.toggle(l),e.classList.toggle(l),n.classList.toggle(l),L.classList.toggle(m),O.classList.toggle(f),k.classList.toggle(p),H?C.focus():C.blur()},at=function(t){var e=C.value.length;(V=0===e)||(W=0),V?L.classList.add(g):L.classList.remove(g)},ct=function(t){H&&V&&0===W&&st(),C.value="",C.setAttribute("value",""),at(),++W>=2&&st()},lt=function(t){at()},ut=Object(o.l)((function(t){var e=t.target,n=e.querySelector('[data-js-atom="navigation-overflow-wrapper-inner"]'),i=e.scrollTop,r=Math.max(0,n.getBoundingClientRect().height-e.parentNode.getBoundingClientRect().height);i<=20?(e.parentNode.classList.remove(b),e.parentNode.classList.add(y)):i>=r-20?(e.parentNode.classList.remove(y),e.parentNode.classList.add(b)):(e.parentNode.classList.remove(y),e.parentNode.classList.remove(b))}),10),ht=function(t,e,n){},dt=function(t){t.preventDefault(),Object(o.m)(w,!0),window.setTimeout((function(){void 0!==Object(o.j)(w)&&(document.location.href=t.target.getAttribute("href"))}),250)},ft=function(){r()(window).trigger(Object(s.b)(s.a.NAVI_TRANSITION_END))};E.forEach((function(t,e){var n=t.querySelector('[data-js-atom="navigation-list-item"]'),i=n.cloneNode(!0),r=i.querySelector('[data-js-atom="navigation-link"]');r&&(r.classList.add("ibmix-navigation__back-link"),r.setAttribute("data-js-atom","navigation-back-link"),r.setAttribute("href","#"),r.setAttribute("title",A.backLinkText),r.text=A.backLinkText,n.parentNode.prepend(i))})),F=t.querySelectorAll('[data-js-atom="navigation-back-link"]'),K(),Y(),window.addEventListener("resize",G),window.addEventListener("scroll",X,{passive:!0}),r()(window).on(Object(s.b)(s.a.BREAKPOINT_CHANGE),ht),n.addEventListener("click",tt),S.forEach((function(t,e){t.addEventListener("click",nt)})),t.addEventListener("click",ot),F&&F.forEach((function(t){t.addEventListener("click",it)})),k.addEventListener("click",st),L.addEventListener("reset",ct),L.addEventListener("submit",lt),C.addEventListener("change",at),C.addEventListener("keydown",at),C.addEventListener("keyup",at),C.addEventListener("reset",at),C.addEventListener("focus",at),C.addEventListener("blur",at),I.forEach((function(t){t.addEventListener("scroll",ut)})),t.addEventListener("transitionend",ft),M&&M.addEventListener("click",dt),at()}(t)}function E(t){!function(t){parseFloat(getComputedStyle(document.documentElement).getPropertyValue("--gdv-base-font-size-base").replace("px",""));var e=parseFloat(getComputedStyle(document.documentElement).getPropertyValue("--gdv-base-font-size").replace("px","")),n=parseFloat(Object(o.j)("fontSize","ibmix-font-size",localStorage)||e),i=t.querySelector('[data-js-atom="navigation-zoom-in-button"]'),r=t.querySelector('[data-js-atom="navigation-zoom-out-button"]'),s=function(){return parseFloat(getComputedStyle(document.documentElement).getPropertyValue("--gdv-base-font-size").replace("px",""))};n&&n!==e&&document.documentElement.style.setProperty("--gdv-base-font-size","".concat(n,"px")),i&&r&&(i.addEventListener("click",(function(){document.documentElement.style.setProperty("--gdv-base-font-size","".concat(s()+1,"px")),Object(o.m)("fontSize",s()+1,"ibmix-font-size",localStorage)})),r.addEventListener("click",(function(){document.documentElement.style.setProperty("--gdv-base-font-size","".concat(s()-1,"px")),Object(o.m)("fontSize",s()-1,"ibmix-font-size",localStorage)})))}(t)}r()((function(){r()(".ibmix-navigation").each((function(t,e){_(e)}
83)),r()(".ibmix-navigation .ibmix-navigation__zoom-container").each((function(t,e){E(e)}))}))},function(t,e,n){"use strict";n.r(e);var i=n(0),r=n.n(i),o=n(1),s='[data-js-atom="result-list"]',a='[data-js-atom="result-list-item"]',c='[data-js-atom="load-more-button"]',l="is-hidden",u="is-loading";var h='[data-js-atom="filter-button"]',d='[data-js-atom="result-list"]',f='[data-js-atom="result-list-item"]',p="is-active";function g(t,e){var n=t.querySelectorAll(h),i=t.querySelector(d),r=i?i.querySelectorAll(f):null;if(null!==n&&null!==i&&null!==r){var o=function(){var e="gdv";null!==t.getAttribute("data-js-default-selection")&&void 0!==t.getAttribute("data-js-default-selection")&&(e=t.getAttribute("data-js-default-selection"));for(var i=0;i<n.length;i++){var r=n[i],o=r.getAttribute("data-filter");if(r.classList.contains(p)){e=o;break}}return e.toLowerCase()}(),s=function(t){var e=t.currentTarget;n.forEach((function(t){t.classList.remove(p)})),e.classList.add(p),o=e.getAttribute("data-filter"),a()},a=function(){r.forEach((function(t){var e=t.getAttribute("data-filter-item");t.style.display=e===o?null:"none"}))};n.forEach((function(t){t.removeEventListener("click",s)})),n.forEach((function(t){t.addEventListener("click",s)})),function(){for(var t=0;t<n.length;t++){var e=n[t];if(e.getAttribute("data-filter")===o){e.dispatchEvent(new Event("click"));break}}}()}}var m=function(t,e,n){r()(e).each((function(t,e){g(e)}))};r()((function(){r()(".ibmix-events-fragment").each((function(t,e){var n,i,h,d,f,p,g,m,v,y,b,w,_;i=(n=e).getAttribute("data-url"),h=null,d=null,f=null,p=0,g="",m=function(){return-1===g.indexOf("?")?g+"?pageNum=".concat(p):g+"&pageNum=".concat(p)},v=function(){var t=arguments.length>0&&void 0!==arguments[0]&&arguments[0];n.classList.add(u),f&&f.classList.add(l),fetch(t?i:m(),{method:"GET"}).then((function(t){if(!t.ok)throw new Error("Network response was not OK");return t.text()})).then((function(e){if(t)n.innerHTML=e,y();else{var i=document.createRange().createContextualFragment(e);if(i.childNodes.length>0){var s=i.querySelectorAll(a);s.length>0&&s.forEach((function(t){return h.appendChild(t)}))}b(),f.classList.remove(l)}n.classList.remove(u),r()(window).trigger(Object(o.b)(o.a.DOM_CHANGED),[n,t])})).catch((function(t){console.error(t)}))},y=function(){h=n.querySelector(s),f=n.querySelector(c),h&&f&&(g=f.getAttribute("href"),parseInt(h.getAttribute("data-items-per-page")||"0"),d=parseInt(h.getAttribute("data-js-result-count")||"0"),b(),_())},b=function(){h.querySelectorAll(a).length>=d?(f.removeEventListener("click",w),f.remove()):f.classList.remove(l)},w=function(t){t.preventDefault(),t.stopPropagation(),p++,v()},_=function(){f.addEventListener("click",w)},v(!0)})),r()(".ibmix-events-fragment").each((function(t,e){g(e)})),r()(window).on(Object(o.b)(o.a.DOM_CHANGED),m)}))},function(t,e,n){"use strict";n.r(e);var i=n(0),r=n.n(i),o=n(2),s=function(t,e){return(s=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 a(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}s(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}var c=function(){return(c=Object.assign||function(t){for(var e,n=1,i=arguments.length;n<i;n++)for(var r in e=arguments[n])Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r]);return t}).apply(this,arguments)};function l(t,e,n){if(n||2===arguments.length)for(var i,r=0,o=e.length;r<o;r++)!i&&r in e||(i||(i=Array.prototype.slice.call(e,0,r)),i[r]=e[r]);return t.concat(i||Array.prototype.slice.call(e))}"function"==typeof SuppressedError&&SuppressedError;var u,h="ADD_CHOICE",d="REMOVE_CHOICE",f="FILTER_CHOICES",p="ACTIVATE_CHOICES",g="CLEAR_CHOICES",m="ADD_GROUP",v="ADD_ITEM",y="REMOVE_ITEM",b="HIGHLIGHT_ITEM",w="showDropdown",_="hideDropdown",E="change",S="choice",x="search",A="addItem",L="removeItem",O="highlightItem",C="highlightChoice",k="unhighlightItem",I=9,j=16,T=46,P=8,D=13,N=65,R=27,M=38,F=4
vendor: 5,498 bytes, line 83
830,q=33,$=34,U=["fuseOptions","classNames"],B="text",z="select-one",H="select-multiple",V=function(t){return{type:h,choice:t}},W=function(t){return{type:v,item:t}},Q=function(t){return{type:y,item:t}},Y=function(t,e){return{type:b,item:t,highlighted:e}},X=function(t){return Array.from({length:t},(function(){return(t=0,e=36,Math.floor(Math.random()*(e-t)+t)).toString(36);var t,e})).join("")},K=function(t,e,n){return void 0===n&&(n=1),n>0?e.scrollTop+e.offsetHeight>=t.offsetTop+t.offsetHeight:t.offsetTop>=e.scrollTop},G=function(t){if("string"!=typeof t){if(null==t)return"";if("object"==typeof t){if("raw"in t)return G(t.raw);if("trusted"in t)return t.trusted}return t}return t.replace(/&/g,"&").replace(/>/g,">").replace(/</g,"<").replace(/'/g,"'").replace(/"/g,""")},J=(u=document.createElement("div"),function(t){u.innerHTML=t.trim();for(var e=u.children[0];u.firstChild;)u.removeChild(u.firstChild);return e}),Z=function(t){return"function"==typeof t?t():t},tt=function(t){if("string"==typeof t)return t;if("object"==typeof t){if("trusted"in t)return t.trusted;if("raw"in t)return t.raw}return""},et=function(t){if("string"==typeof t)return t;if("object"==typeof t){if("escaped"in t)return t.escaped;if("trusted"in t)return t.trusted}return""},nt=function(t,e){return{id:t.id,highlighted:t.highlighted,labelClass:t.labelClass,labelDescription:tt(t.labelDescription),customProperties:t.customProperties,disabled:t.disabled,active:t.active,label:t.label,placeholder:t.placeholder,value:t.value,groupValue:t.group?t.group.label:void 0,element:t.element,keyCode:e}},it=function(t,e,n){return"function"==typeof t?t(G(e),tt(e),n):t},rt=function(t,e){return t?et(e):G(e)},ot=function(t,e,n){t.innerHTML=rt(e,n)},st=function(t,e){return t.rank-e.rank},at=function(t){return Array.isArray(t)?t:[t]},ct=function(t){return t&&Array.isArray(t)?t.map((function(t){return".".concat(t)})).join(""):".".concat(t)},lt=function(t,e){var n;(n=t.classList).add.apply(n,at(e))},ut=function(t,e){var n;(n=t.classList).remove.apply(n,at(e))},ht=function(t){if(void 0!==t)try{return JSON.parse(t)}catch(e){return t}return{}},dt=function(){function t(t){var e=t.element,n=t.type,i=t.classNames;this.element=e,this.classNames=i,this.type=n,this.isActive=!1}return t.prototype.show=function(){return lt(this.element,this.classNames.activeState),this.element.setAttribute("aria-expanded","true"),this.isActive=!0,this},t.prototype.hide=function(){return ut(this.element,this.classNames.activeState),this.element.setAttribute("aria-expanded","false"),this.isActive=!1,this},t}(),ft=function(){function t(t){var e=t.element,n=t.type,i=t.classNames,r=t.position;this.element=e,this.classNames=i,this.type=n,this.position=r,this.isOpen=!1,this.isFlipped=!1,this.isDisabled=!1,this.isLoading=!1}return t.prototype.shouldFlip=function(t,e){var n=!1;return"auto"===this.position?n=this.element.getBoundingClientRect().top-e>=0&&!window.matchMedia("(min-height: ".concat(t+1,"px)")).matches:"top"===this.position&&(n=!0),n},t.prototype.setActiveDescendant=function(t){this.element.setAttribute("aria-activedescendant",t)},t.prototype.removeActiveDescendant=function(){this.element.removeAttribute("aria-activedescendant")},t.prototype.open=function(t,e){lt(this.element,this.classNames.openState),this.element.setAttribute("aria-expanded","true"),this.isOpen=!0,this.shouldFlip(t,e)&&(lt(this.element,this.classNames.flippedState),this.isFlipped=!0)},t.prototype.close=function(){ut(this.element,this.classNames.openState),this.element.setAttribute("aria-expanded","false"),this.removeActiveDescendant(),this.isOpen=!1,this.isFlipped&&(ut(this.element,this.classNames.flippedState),this.isFlipped=!1)},t.prototype.addFocusState=function(){lt(this.element,this.classNames.focusState)},t.prototype.removeFocusState=function(){ut(this.element,this.classNames.focusState)},t.prototype.addInvalidState=function(){lt(this.element,this.classNames.invalidState)},t.prototype.removeInvalidState=function(){ut(this.element,this.classNames.invalidState)},t.prototype.enable=function(){ut(this.element,this.classNames.disabledState),this.element.removeAttribute("aria-disabled"),this.type===z&&this.element.setAttribute("tabindex","0"),this.isDisabled=!1},t.prototype.disable=function(){lt(this.element,this.classNames.disabledState),this.element.setAttribute("aria-disabled","true"),this.type===z&&this.element.setAttribute("tabindex","-1"),this.isDisabled=!0},t.prototype.wrap=function(t){var e=this.element,n=t.parentNode;n&&(t.nextSibling?n.insertBefore(e,t.nextSibling):n.appendChild(e)),e.appendChild(t)},t.prototype.unwrap=function(t){var e=this.element,n=e.parentNode;n&&(n.insertBefore(t,e),n.removeChild(e))},t.prototype.addLoadingState=function(){lt(this.element,this.classNames.loadingState),this.element.setAttribute("aria-busy","true"),this.isLoading=!0},t.prototype.removeLoadingState=function(){ut(this.element,this.classNames.loadingState),this.element.removeAttribute("aria-busy"),this.isLoading=!1},t}(),pt=function(){function t(t){var e=t.element,n=t.type,i=t.classNames,r=t.preventPaste;this.element=e,this.type=n,this.classNames=i,this.preventPaste=r,this.isFocussed=this.element.isEqualNode(document.activeElement),this.isDisabled=e.disabled,this._onPaste=this._onPaste.bind(this),this._onInput=this._onInput.bind(this),this._onFocus=this._onFocus.bind(this),this._onBlur=this._onBlur.bind(this)}return Object.defineProperty(t.prototype,"placeholder",{set:function(t){this.element.placeholder=t}
83,enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"value",{get:function(){return this.element.value},set:function(t){this.element.value=t},enumerable:!1,configurable:!0}),t.prototype.addEventListeners=function(){var t=this.element;t.addEventListener("paste",this._onPaste),t.addEventListener("input",this._onInput,{passive:!0}),t.addEventListener("focus",this._onFocus,{passive:!0}),t.addEventListener("blur",this._onBlur,{passive:!0})},t.prototype.removeEventListeners=function(){var t=this.element;t.removeEventListener("input",this._onInput),t.removeEventListener("paste",this._onPaste),t.removeEventListener("focus",this._onFocus),t.removeEventListener("blur",this._onBlur)},t.prototype.enable=function(){this.element.removeAttribute("disabled"),this.isDisabled=!1},t.prototype.disable=function(){this.element.setAttribute("disabled",""),this.isDisabled=!0},t.prototype.focus=function(){this.isFocussed||this.element.focus()},t.prototype.blur=function(){this.isFocussed&&this.element.blur()},t.prototype.clear=function(t){return void 0===t&&(t=!0),this.element.value="",t&&this.setWidth(),this},t.prototype.setWidth=function(){var t=this.element,e=t.value,n=t.placeholder,i=0,r=0;if(e||n){var o=document.createElement("span");o.style.position="absolute",o.style.visibility="hidden",o.style.whiteSpace="pre",o.style.height="auto",o.style.width="auto",o.style.minWidth="1ch",lt(o,Array.from(t.classList)),t.after(o);var s=parseFloat(getComputedStyle(o).width);n&&(o.innerText=n,i=parseFloat(getComputedStyle(o).width)/s),e&&(o.innerText=e,r=parseFloat(getComputedStyle(o).width)/s),o.remove()}t.style.minWidth="".concat(Math.ceil(i)+1,"ch"),t.style.width="".concat(Math.ceil(r)+1,"ch")},t.prototype.setActiveDescendant=function(t){this.element.setAttribute("aria-activedescendant",t)},t.prototype.removeActiveDescendant=function(){this.element.removeAttribute("aria-activedescendant")},t.prototype._onInput=function(){this.setWidth()},t.prototype._onPaste=function(t){this.preventPaste&&t.preventDefault()},t.prototype._onFocus=function(){this.isFocussed=!0},t.prototype._onBlur=function(){this.isFocussed=!1},t}(),gt=function(){function t(t){var e=t.element;this.element=e,this.scrollPos=this.element.scrollTop,this.height=this.element.offsetHeight}return t.prototype.prepend=function(t){var e=this.element.firstElementChild;e?this.element.insertBefore(t,e):this.element.append(t)},t.prototype.scrollToTop=function(){this.element.scrollTop=0},t.prototype.scrollToChildElement=function(t,e){var n=this;if(t){var i=this.element.offsetHeight,r=this.element.scrollTop+i,o=t.offsetHeight,s=t.offsetTop+o,a=e>0?this.element.scrollTop+s-r:t.offsetTop;requestAnimationFrame((function(){n._animateScroll(a,e)}))}},t.prototype._scrollDown=function(t,e,n){var i=(n-t)/e,r=i>1?i:1;this.element.scrollTop=t+r},t.prototype._scrollUp=function(t,e,n){var i=(t-n)/e,r=i>1?i:1;this.element.scrollTop=t-r},t.prototype._animateScroll=function(t,e){var n=this,i=this.element.scrollTop,r=!1;e>0?(this._scrollDown(i,4,t),i<t&&(r=!0)):(this._scrollUp(i,4,t),i>t&&(r=!0)),r&&requestAnimationFrame((function(){n._animateScroll(t,e)}))},t}(),mt=function(){function t(t){var e=t.element,n=t.classNames;this.element=e,this.classNames=n,this.isDisabled=!1}return Object.defineProperty(t.prototype,"isActive",{get:function(){return"active"===this.element.dataset.choice},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"dir",{get:function(){return this.element.dir},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"value",{get:function(){return this.element.value},set:function(t){this.element.setAttribute("value",t),this.element.value=t},enumerable:!1,configurable:!0}),t.prototype.conceal=function(){var t=this.element;lt(t,this.classNames.input),t.hidden=!0,t.tabIndex=-1;var e=t.getAttribute("style");e&&t.setAttribute("data-choice-orig-style",e),t.setAttribute("data-choice","active")},t.prototype.reveal=function(){var t=this.element;ut(t,this.classNames.input),t.hidden=!1,t.removeAttribute("tabindex");var e=t.getAttribute("data-choice-orig-style");e?(t.removeAttribute("data-choice-orig-style"),t.setAttribute("style",e)):t.removeAttribute("style"),t.removeAttribute("data-choice")},t.prototype.enable=function(){this.element.removeAttribute("disabled"),this.element.disabled=!1,this.isDisabled=!1},t.prototype.disable=function(){this.element.setAttribute("disabled",""),this.element.disabled=!0,this.isDisabled=!0},t.prototype.triggerEvent=function(t,e){!function(t,e,n){void 0===n&&(n=null);var i=new CustomEvent(e,{detail:n,bubbles:!0,cancelable:!0});t.dispatchEvent(i)}(this.element,t,e||{})},t}(),vt=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return a(e,t),e}(mt),yt=function(t,e){return void 0===e&&(e=!0),void 0===t?e:!!t},bt=function(t){if("string"==typeof t&&(t=t.split(" ").filter((function(t){return t.length}))),Array.isArray(t)&&t.length)return t},wt=function(t,e,n){if(void 0===n&&(n=!0),"string"==typeof t){var i=G(t);return wt({value:t,label:n||i===t?t:{escaped:i,raw:t},selected:!0},!1)}
vendor: 10,754 bytes, line 83
83var r=t;if("choices"in r){if(!e)throw new TypeError("optGroup is not allowed");var o=r,s=o.choices.map((function(t){return wt(t,!1)}));return{id:0,label:tt(o.label)||o.value,active:!!s.length,disabled:!!o.disabled,choices:s}}var a=r;return{id:0,group:null,score:0,rank:0,value:a.value,label:a.label||a.value,active:yt(a.active),selected:yt(a.selected,!1),disabled:yt(a.disabled,!1),placeholder:yt(a.placeholder,!1),highlighted:!1,labelClass:bt(a.labelClass),labelDescription:a.labelDescription,customProperties:a.customProperties}},_t=function(t){return"SELECT"===t.tagName},Et=function(t){function e(e){var n=e.element,i=e.classNames,r=e.template,o=e.extractPlaceholder,s=t.call(this,{element:n,classNames:i})||this;return s.template=r,s.extractPlaceholder=o,s}return a(e,t),Object.defineProperty(e.prototype,"placeholderOption",{get:function(){return this.element.querySelector('option[value=""]')||this.element.querySelector("option[placeholder]")},enumerable:!1,configurable:!0}),e.prototype.addOptions=function(t){var e=this,n=document.createDocumentFragment();t.forEach((function(t){var i=t;if(!i.element){var r=e.template(i);n.appendChild(r),i.element=r}})),this.element.appendChild(n)},e.prototype.optionsAsChoices=function(){var t=this,e=[];return this.element.querySelectorAll(":scope > option, :scope > optgroup").forEach((function(n){!function(t){return"OPTION"===t.tagName}(n)?function(t){return"OPTGROUP"===t.tagName}(n)&&e.push(t._optgroupToChoice(n)):e.push(t._optionToChoice(n))})),e},e.prototype._optionToChoice=function(t){return!t.hasAttribute("value")&&t.hasAttribute("placeholder")&&(t.setAttribute("value",""),t.value=""),{id:0,group:null,score:0,rank:0,value:t.value,label:t.label,element:t,active:!0,selected:this.extractPlaceholder?t.selected:t.hasAttribute("selected"),disabled:t.disabled,highlighted:!1,placeholder:this.extractPlaceholder&&(!t.value||t.hasAttribute("placeholder")),labelClass:void 0!==t.dataset.labelClass?bt(t.dataset.labelClass):void 0,labelDescription:void 0!==t.dataset.labelDescription?{trusted:t.dataset.labelDescription}:void 0,customProperties:ht(t.dataset.customProperties)}},e.prototype._optgroupToChoice=function(t){var e=this,n=t.querySelectorAll("option"),i=Array.from(n).map((function(t){return e._optionToChoice(t)}));return{id:0,label:t.label||"",element:t,active:!!i.length,disabled:t.disabled,choices:i}},e}(mt),St={items:[],choices:[],silent:!1,renderChoiceLimit:-1,maxItemCount:-1,closeDropdownOnSelect:"auto",singleModeForMultiSelect:!1,addChoices:!1,addItems:!0,addItemFilter:function(t){return!!t&&""!==t},removeItems:!0,removeItemButton:!1,removeItemButtonAlignLeft:!1,editItems:!1,allowHTML:!1,allowHtmlUserInput:!1,duplicateItemsAllowed:!0,delimiter:",",paste:!0,searchEnabled:!0,searchChoices:!0,searchDisabledChoices:!1,searchFloor:1,searchResultLimit:4,searchFields:["label","value"],position:"auto",resetScrollPosition:!0,shouldSort:!0,shouldSortItems:!1,sorter:function(t,e){var n=t.value,i=t.label,r=void 0===i?n:i,o=e.value,s=e.label,a=void 0===s?o:s;return tt(r).localeCompare(tt(a),[],{sensitivity:"base",ignorePunctuation:!0,numeric:!0})},shadowRoot:null,placeholder:!0,placeholderValue:null,searchPlaceholderValue:null,prependValue:null,appendValue:null,renderSelectedChoices:"auto",searchRenderSelectedChoices:!0,loadingText:"Loading...",noResultsText:"No results found",noChoicesText:"No choices to choose from",itemSelectText:"Press to select",uniqueItemText:"Only unique values can be added",customAddItemText:"Only values matching specific conditions can be added",addItemText:function(t){return'Press Enter to add <b>"'.concat(t,'"</b>')},removeItemIconText:function(){return"Remove item"},removeItemLabelText:function(t,e,n){return"Remove item: ".concat(n?G(n.label):t)},maxItemText:function(t){return"Only ".concat(t," values can be added")},valueComparer:function(t,e){return t===e},fuseOptions:{includeScore:!0},labelId:"",callbackOnInit:null,callbackOnCreateTemplates:null,classNames:{containerOuter:["choices"],containerInner:["choices__inner"],input:["choices__input"],inputCloned:["choices__input--cloned"],list:["choices__list"],listItems:["choices__list--multiple"],listSingle:["choices__list--single"],listDropdown:["choices__list--dropdown"],item:["choices__item"],itemSelectable:["choices__item--selectable"],itemDisabled:["choices__item--disabled"],itemChoice:["choices__item--choice"],description:["choices__description"],placeholder:["choices__placeholder"],group:["choices__group"],groupHeading:["choices__heading"],button:["choices__button"],activeState:["is-active"],focusState:["is-focused"],openState:["is-open"],disabledState:["is-disabled"],highlightedState:["is-highlighted"],selectedState:["is-selected"],flippedState:["is-flipped"],loadingState:["is-loading"],invalidState:["is-invalid"],notice:["choices__notice"],addChoice:["choices__item--selectable","add-choice"],noResults:["has-no-results"],noChoices:["has-no-choices"]},appendGroupInSearch:!1},xt=function(t){var e=t.itemEl;e&&(e.remove(),t.itemEl=void 0)};var At={groups:function(t,e){var n=t,i=!0;switch(e.type){case m:n.push(e.group);break;case g:n=[];break;default:i=!1}return{state:n,update:i}},items:function(t,e,n){var i=t,r=!0;switch(e.type){case v:e.item.selected=!0,(o=e.item.element)&&(o.selected=!0,o.setAttribute("selected","")),i.push(e.item);break;case y:var o;if(e.item.selected=!1,o=e.item.element){o.selected=!1,o.removeAttribute("selected");var s=o.parentElement;s&&_t(s)&&s.type===z&&(s.value="")}xt(e.item),i=i.filter((function(t){return t.id!==e.item.id}));break;case d:xt(e.choice),i=i.filter((function(t){return t.id!==e.choice.id}));break;case b:var a=e.highlighted,c=i.find((function(t){return t.id===e.item.id}));c&&c.highlighted!==a&&(c.highlighted=a,n&&function(t,e,n){var i=t.itemEl;i&&(ut(i,n),lt(i,e))}(c,a?n.classNames.highlightedState:n.classNames.selectedState,a?n.classNames.selectedState:n.classNames.highlightedState));break;default:r=!1}return{state:i,update:r}},choices:function(t,e,n){var i=t,r=!0;switch(e.type){case h:i.push(e.choice);break;case d:e.choice.choiceEl=void 0,e.choice.group&&(e.choice.group.choices=e.choice.group.choices.filter((function(t){return t.id!==e.choice.id}))),i=i.filter((function(t){return t.id!==e.choice.id}));break;case v:case y:e.item.choiceEl=void 0;break;case f:var o=[];e.results.forEach((function(t){o[t.item.id]=t})),i.forEach((function(t){var e=o[t.id];void 0!==e?(t.score=e.score,t.rank=e.rank,t.active=!0):(t.score=0,t.rank=0,t.active=!1),n&&n.appendGroupInSearch&&(t.choiceEl=void 0)}));break;case p:i.forEach((function(t){t.active=e.active,n&&n.appendGroupInSearch&&(t.choiceEl=void 0)}));break;case g:i=[];break;default:r=!1}return{state:i,update:r}}},Lt=function(){function t(t){this._state=this.defaultState,this._listeners=[],this._txn=0,this._context=t}return Object.defineProperty(t.prototype,"defaultState",{get:function(){return{groups:[],items:[],choices:[]}},enumerable:!1,configurable:!0}),t.prototype.changeSet=function(t){return{groups:t,items:t,choices:t}},t.prototype.reset=function(){this._state=this.defaultState;var t=this.changeSet(!0);this._txn?this._changeSet=t:this._listeners.forEach((function(e){return e(t)}))},t.prototype.subscribe=function(t){return this._listeners.push(t),this},t.prototype.dispatch=function(t){var e=this,n=this._state,i=!1,r=this._changeSet||this.changeSet(!1);Object.keys(At).forEach((function(o){var s=At[o](n[o],t,e._context);s.update&&(i=!0,r[o]=!0,n[o]=s.state)})),i&&(this._txn?this._changeSet=r:this._listeners.forEach((function(t){return t(r)})))},t.prototype.withTxn=function(t){this._txn++;try{t()}finally{if(this._txn=Math.max(0,this._txn-1),!this._txn){var e=this._changeSet;e&&(this._changeSet=void 0,this._listeners.forEach((function(t){return t(e)})))}}},Object.defineProperty(t.prototype,"state",{get:function(){return this._state},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"items",{get:function(){return this.state.items},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"highlightedActiveItems",{get:function(){return this.items.filter((function(t){return t.active&&t.highlighted}))},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"choices",{get:function(){return this.state.choices},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"activeChoices",{get:function(){return this.choices.filter((function(t){return t.active}))},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"searchableChoices",{get:function(){var t=this._context;return this.choices.filter((function(e){return!e.placeholder&&(t.searchDisabledChoices||!e.disabled)}))},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"groups",{get:function(){return this.state.groups},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"activeGroups",{get:function(){var t=this;return this.state.groups.filter((function(e){var n=e.active&&!e.disabled,i=t.state.choices.some((function(t){return t.active&&!t.disabled}));return n&&i}),[])},enumerable:!1,configurable:!0}),t.prototype.inTxn=function(){return this._txn>0},t.prototype.getChoiceById=function(t){return this.activeChoices.find((function(e){return e.id===t}))},t.prototype.getGroupById=function(t){return this.groups.find((function(e){return e.id===t}))},t}(),Ot="no-choices",Ct="no-results",kt="add-choice",It="";function jt(t,e,n){return(e=function(t){var e=function(t,e){if("object"!=typeof t||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var i=n.call(t,e);if("object"!=typeof i)return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==typeof e?e:e+""}(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function Tt(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,i)}return n}function Pt(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?Tt(Object(n),!0).forEach((function(e){jt(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Tt(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function Dt(t){return Array.isArray?Array.isArray(t):"[object Array]"===Ut(t)}function Nt(t){return"string"==typeof t}function Rt(t){return"number"==typeof t}function Mt(t){return!0===t||!1===t||function(t){return Ft(t)&&null!==t}(t)&&"[object Boolean]"==Ut(t)}function Ft(t){return"object"==typeof t}function qt(t){return null!=t}function $t(t){return!t.trim().length}
vendor: 4,421 bytes, line 83
83function Ut(t){return null==t?void 0===t?"[object Undefined]":"[object Null]":Object.prototype.toString.call(t)}const Bt=Object.prototype.hasOwnProperty;class zt{constructor(t){this._keys=[],this._keyMap={};let e=0;t.forEach(t=>{let n=Ht(t);this._keys.push(n),this._keyMap[n.id]=n,e+=n.weight}),this._keys.forEach(t=>{t.weight/=e})}get(t){return this._keyMap[t]}keys(){return this._keys}toJSON(){return JSON.stringify(this._keys)}}function Ht(t){let e=null,n=null,i=null,r=1,o=null;if(Nt(t)||Dt(t))i=t,e=Vt(t),n=Wt(t);else{if(!Bt.call(t,"name"))throw new Error((t=>`Missing ${t} property in key`)("name"));const s=t.name;if(i=s,Bt.call(t,"weight")&&(r=t.weight,r<=0))throw new Error((t=>`Property 'weight' in key '${t}' must be a positive integer`)(s));e=Vt(s),n=Wt(s),o=t.getFn}return{path:e,id:n,weight:r,src:i,getFn:o}}function Vt(t){return Dt(t)?t:t.split(".")}function Wt(t){return Dt(t)?t.join("."):t}const Qt={useExtendedSearch:!1,getFn:function(t,e){let n=[],i=!1;const r=(t,e,o)=>{if(qt(t))if(e[o]){const s=t[e[o]];if(!qt(s))return;if(o===e.length-1&&(Nt(s)||Rt(s)||Mt(s)))n.push(function(t){return null==t?"":function(t){if("string"==typeof t)return t;let e=t+"";return"0"==e&&1/t==-1/0?"-0":e}(t)}(s));else if(Dt(s)){i=!0;for(let t=0,n=s.length;t<n;t+=1)r(s[t],e,o+1)}else e.length&&r(s,e,o+1)}else n.push(t)};return r(t,Nt(e)?e.split("."):e,0),i?n:n[0]},ignoreLocation:!1,ignoreFieldNorm:!1,fieldNormWeight:1};var Yt=Pt(Pt(Pt(Pt({},{isCaseSensitive:!1,includeScore:!1,keys:[],shouldSort:!0,sortFn:(t,e)=>t.score===e.score?t.idx<e.idx?-1:1:t.score<e.score?-1:1}),{includeMatches:!1,findAllMatches:!1,minMatchCharLength:1}),{location:0,threshold:.6,distance:100}),Qt);const Xt=/[^ ]+/g;class Kt{constructor({getFn:t=Yt.getFn,fieldNormWeight:e=Yt.fieldNormWeight}={}){this.norm=function(t=1,e=3){const n=new Map,i=Math.pow(10,e);return{get(e){const r=e.match(Xt).length;if(n.has(r))return n.get(r);const o=1/Math.pow(r,.5*t),s=parseFloat(Math.round(o*i)/i);return n.set(r,s),s},clear(){n.clear()}}}(e,3),this.getFn=t,this.isCreated=!1,this.setIndexRecords()}setSources(t=[]){this.docs=t}setIndexRecords(t=[]){this.records=t}setKeys(t=[]){this.keys=t,this._keysMap={},t.forEach((t,e)=>{this._keysMap[t.id]=e})}create(){!this.isCreated&&this.docs.length&&(this.isCreated=!0,Nt(this.docs[0])?this.docs.forEach((t,e)=>{this._addString(t,e)}):this.docs.forEach((t,e)=>{this._addObject(t,e)}),this.norm.clear())}add(t){const e=this.size();Nt(t)?this._addString(t,e):this._addObject(t,e)}removeAt(t){this.records.splice(t,1);for(let e=t,n=this.size();e<n;e+=1)this.records[e].i-=1}getValueForItemAtKeyId(t,e){return t[this._keysMap[e]]}size(){return this.records.length}_addString(t,e){if(!qt(t)||$t(t))return;let n={v:t,i:e,n:this.norm.get(t)};this.records.push(n)}_addObject(t,e){let n={i:e,$:{}};this.keys.forEach((e,i)=>{let r=e.getFn?e.getFn(t):this.getFn(t,e.path);if(qt(r))if(Dt(r)){let t=[];const e=[{nestedArrIndex:-1,value:r}];for(;e.length;){const{nestedArrIndex:n,value:i}=e.pop();if(qt(i))if(Nt(i)&&!$t(i)){let e={v:i,i:n,n:this.norm.get(i)};t.push(e)}else Dt(i)&&i.forEach((t,n)=>{e.push({nestedArrIndex:n,value:t})})}n.$[i]=t}else if(Nt(r)&&!$t(r)){let t={v:r,n:this.norm.get(r)};n.$[i]=t}}),this.records.push(n)}toJSON(){return{keys:this.keys,records:this.records}}}function Gt(t,e,{getFn:n=Yt.getFn,fieldNormWeight:i=Yt.fieldNormWeight}={}){const r=new Kt({getFn:n,fieldNormWeight:i});return r.setKeys(t.map(Ht)),r.setSources(e),r.create(),r}function Jt(t,{errors:e=0,currentLocation:n=0,expectedLocation:i=0,distance:r=Yt.distance,ignoreLocation:o=Yt.ignoreLocation}={}){const s=e/t.length;if(o)return s;const a=Math.abs(i-n);return r?s+a/r:a?1:s}function Zt(t,e,n,{location:i=Yt.location,distance:r=Yt.distance,threshold:o=Yt.threshold,findAllMatches:s=Yt.findAllMatches,minMatchCharLength:a=Yt.minMatchCharLength,includeMatches:c=Yt.includeMatches,ignoreLocation:l=Yt.ignoreLocation}={}){if(e.length>32)throw new Error(`Pattern length exceeds max of ${32}.`);const u=e.length,h=t.length,d=Math.max(0,Math.min(i,h));let f=o,p=d;const g=a>1||c,m=g?Array(h):[];let v;for(;(v=t.indexOf(e,p))>-1;){let t=Jt(e,{currentLocation:v,expectedLocation:d,distance:r,ignoreLocation:l});if(f=Math.min(t,f),p=v+u,g){let t=0;for(;t<u;)m[v+t]=1,t+=1}}p=-1;let y=[],b=1,w=u+h;const _=1<<u-1;for(let i=0;i<u;i+=1){let o=0,a=w;for(;o<a;){Jt(e,{errors:i,currentLocation:d+a,expectedLocation:d,distance:r,ignoreLocation:l}
vendor: 7,254 bytes, line 83
83)<=f?o=a:w=a,a=Math.floor((w-o)/2+o)}w=a;let c=Math.max(1,d-a+1),v=s?h:Math.min(d+a,h)+u,E=Array(v+2);E[v+1]=(1<<i)-1;for(let o=v;o>=c;o-=1){let s=o-1,a=n[t.charAt(s)];if(g&&(m[s]=+!!a),E[o]=(E[o+1]<<1|1)&a,i&&(E[o]|=(y[o+1]|y[o])<<1|1|y[o+1]),E[o]&_&&(b=Jt(e,{errors:i,currentLocation:s,expectedLocation:d,distance:r,ignoreLocation:l}),b<=f)){if(f=b,p=s,p<=d)break;c=Math.max(1,2*d-p)}}if(Jt(e,{errors:i+1,currentLocation:d,expectedLocation:d,distance:r,ignoreLocation:l})>f)break;y=E}const E={isMatch:p>=0,score:Math.max(.001,b)};if(g){const t=function(t=[],e=Yt.minMatchCharLength){let n=[],i=-1,r=-1,o=0;for(let s=t.length;o<s;o+=1){let s=t[o];s&&-1===i?i=o:s||-1===i||(r=o-1,r-i+1>=e&&n.push([i,r]),i=-1)}return t[o-1]&&o-i>=e&&n.push([i,o-1]),n}(m,a);t.length?c&&(E.indices=t):E.isMatch=!1}return E}function te(t){let e={};for(let n=0,i=t.length;n<i;n+=1){const r=t.charAt(n);e[r]=(e[r]||0)|1<<i-n-1}return e}class ee{constructor(t,{location:e=Yt.location,threshold:n=Yt.threshold,distance:i=Yt.distance,includeMatches:r=Yt.includeMatches,findAllMatches:o=Yt.findAllMatches,minMatchCharLength:s=Yt.minMatchCharLength,isCaseSensitive:a=Yt.isCaseSensitive,ignoreLocation:c=Yt.ignoreLocation}={}){if(this.options={location:e,threshold:n,distance:i,includeMatches:r,findAllMatches:o,minMatchCharLength:s,isCaseSensitive:a,ignoreLocation:c},this.pattern=a?t:t.toLowerCase(),this.chunks=[],!this.pattern.length)return;const l=(t,e)=>{this.chunks.push({pattern:t,alphabet:te(t),startIndex:e})},u=this.pattern.length;if(u>32){let t=0;const e=u%32,n=u-e;for(;t<n;)l(this.pattern.substr(t,32),t),t+=32;if(e){const t=u-32;l(this.pattern.substr(t),t)}}else l(this.pattern,0)}searchIn(t){const{isCaseSensitive:e,includeMatches:n}=this.options;if(e||(t=t.toLowerCase()),this.pattern===t){let e={isMatch:!0,score:0};return n&&(e.indices=[[0,t.length-1]]),e}const{location:i,distance:r,threshold:o,findAllMatches:s,minMatchCharLength:a,ignoreLocation:c}=this.options;let l=[],u=0,h=!1;this.chunks.forEach(({pattern:e,alphabet:d,startIndex:f})=>{const{isMatch:p,score:g,indices:m}=Zt(t,e,d,{location:i+f,distance:r,threshold:o,findAllMatches:s,minMatchCharLength:a,includeMatches:n,ignoreLocation:c});p&&(h=!0),u+=g,p&&m&&(l=[...l,...m])});let d={isMatch:h,score:h?u/this.chunks.length:1};return h&&n&&(d.indices=l),d}}class ne{constructor(t){this.pattern=t}static isMultiMatch(t){return ie(t,this.multiRegex)}static isSingleMatch(t){return ie(t,this.singleRegex)}search(){}}function ie(t,e){const n=t.match(e);return n?n[1]:null}class re extends ne{constructor(t,{location:e=Yt.location,threshold:n=Yt.threshold,distance:i=Yt.distance,includeMatches:r=Yt.includeMatches,findAllMatches:o=Yt.findAllMatches,minMatchCharLength:s=Yt.minMatchCharLength,isCaseSensitive:a=Yt.isCaseSensitive,ignoreLocation:c=Yt.ignoreLocation}={}){super(t),this._bitapSearch=new ee(t,{location:e,threshold:n,distance:i,includeMatches:r,findAllMatches:o,minMatchCharLength:s,isCaseSensitive:a,ignoreLocation:c})}static get type(){return"fuzzy"}static get multiRegex(){return/^"(.*)"$/}static get singleRegex(){return/^(.*)$/}search(t){return this._bitapSearch.searchIn(t)}}class oe extends ne{constructor(t){super(t)}static get type(){return"include"}static get multiRegex(){return/^'"(.*)"$/}static get singleRegex(){return/^'(.*)$/}search(t){let e,n=0;const i=[],r=this.pattern.length;for(;(e=t.indexOf(this.pattern,n))>-1;)n=e+r,i.push([e,n-1]);const o=!!i.length;return{isMatch:o,score:o?0:1,indices:i}}}const se=[class extends ne{constructor(t){super(t)}static get type(){return"exact"}static get multiRegex(){return/^="(.*)"$/}static get singleRegex(){return/^=(.*)$/}search(t){const e=t===this.pattern;return{isMatch:e,score:e?0:1,indices:[0,this.pattern.length-1]}}},oe,class extends ne{constructor(t){super(t)}static get type(){return"prefix-exact"}static get multiRegex(){return/^\^"(.*)"$/}static get singleRegex(){return/^\^(.*)$/}search(t){const e=t.startsWith(this.pattern);return{isMatch:e,score:e?0:1,indices:[0,this.pattern.length-1]}}},class extends ne{constructor(t){super(t)}static get type(){return"inverse-prefix-exact"}static get multiRegex(){return/^!\^"(.*)"$/}static get singleRegex(){return/^!\^(.*)$/}search(t){const e=!t.startsWith(this.pattern);return{isMatch:e,score:e?0:1,indices:[0,t.length-1]}}},class extends ne{constructor(t){super(t)}static get type(){return"inverse-suffix-exact"}static get multiRegex(){return/^!"(.*)"\$$/}static get singleRegex(){return/^!(.*)\$$/}search(t){const e=!t.endsWith(this.pattern);return{isMatch:e,score:e?0:1,indices:[0,t.length-1]}}},class extends ne{constructor(t){super(t)}static get type(){return"suffix-exact"}static get multiRegex(){return/^"(.*)"\$$/}static get singleRegex(){return/^(.*)\$$/}search(t){const e=t.endsWith(this.pattern);return{isMatch:e,score:e?0:1,indices:[t.length-this.pattern.length,t.length-1]}}},class extends ne{constructor(t){super(t)}static get type(){return"inverse-exact"}static get multiRegex(){return/^!"(.*)"$/}static get singleRegex(){return/^!(.*)$/}search(t){const e=-1===t.indexOf(this.pattern);return{isMatch:e,score:e?0:1,indices:[0,t.length-1]}}},re],ae=se.length,ce=/ +(?=(?:[^\"]*\"[^\"]*\")*[^\"]*$)/;const le=new Set([re.type,oe.type]);class ue{constructor(t,{isCaseSensitive:e=Yt.isCaseSensitive,includeMatches:n=Yt.includeMatches,minMatchCharLength:i=Yt.minMatchCharLength,ignoreLocation:r=Yt.ignoreLocation,findAllMatches:o=Yt.findAllMatches,location:s=Yt.location,threshold:a=Yt.threshold,distance:c=Yt.distance}={}){this.query=null,this.options={isCaseSensitive:e,includeMatches:n,minMatchCharLength:i,findAllMatches:o,ignoreLocation:r,location:s,threshold:a,distance:c},this.pattern=e?t:t.toLowerCase(),this.query=function(t,e={}){return t.split("|").map(t=>{let n=t.trim().split(ce).filter(t=>t&&!!t.trim()),i=[];for(let t=0,r=n.length;t<r;t+=1){const r=n[t];let o=!1,s=-1;for(;!o&&++s<ae;){const t=se[s];let n=t.isMultiMatch(r);n&&(i.push(new t(n,e)),o=!0)}if(!o)for(s=-1;++s<ae;){const t=se[s];let n=t.isSingleMatch(r);if(n){i.push(new t(n,e));break}}}return i})}(this.pattern,this.options)}static condition(t,e){return e.useExtendedSearch}searchIn(t){const e=this.query;if(!e)return{isMatch:!1,score:1};const{includeMatches:n,isCaseSensitive:i}=this.options;t=i?t:t.toLowerCase();let r=0,o=[],s=0;for(let i=0,a=e.length;i<a;i+=1){const a=e[i];o.length=0,r=0;for(let e=0,i=a.length;e<i;e+=1){const i=a[e],{isMatch:c,indices:l,score:u}=i.search(t);if(!c){s=0,r=0,o.length=0;break}if(r+=1,s+=u,n){const t=i.constructor.type;le.has(t)?o=[...o,...l]:o.push(l)}}if(r){let t={isMatch:!0,score:s/r};return n&&(t.indices=o),t}}return{isMatch:!1,score:1}}}const he=[];function de(t,e){for(let n=0,i=he.length;n<i;n+=1){let i=he[n];if(i.condition(t,e))return new i(t,e)}return new ee(t,e)}const fe="$and",pe="$or",ge="$path",me="$val",ve=t=>!(!t[fe]&&!t[pe]),ye=t=>({[fe]:Object.keys(t).map(e=>({[e]:t[e]}))});function be(t,e,{auto:n=!0}={}){const i=t=>{let r=Object.keys(t);const o=(t=>!!t[ge])(t);if(!o&&r.length>1&&!ve(t))return i(ye(t));if((t=>!Dt(t)&&Ft(t)&&!ve(t))(t)){const i=o?t[ge]:r[0],s=o?t[me]:t[i];if(!Nt(s))throw new Error((t=>"Invalid value for key "+t)(i));const a={keyId:Wt(i),pattern:s};return n&&(a.searcher=de(s,e)),a}let s={children:[],operator:r[0]};
vendor: 4,175 bytes, line 83
83return r.forEach(e=>{const n=t[e];Dt(n)&&n.forEach(t=>{s.children.push(i(t))})}),s};return ve(t)||(t=ye(t)),i(t)}function we(t,e){const n=t.matches;e.matches=[],qt(n)&&n.forEach(t=>{if(!qt(t.indices)||!t.indices.length)return;const{indices:n,value:i}=t;let r={indices:n,value:i};t.key&&(r.key=t.key.src),t.idx>-1&&(r.refIndex=t.idx),e.matches.push(r)})}function _e(t,e){e.score=t.score}class Ee{constructor(t,e={},n){this.options=Pt(Pt({},Yt),e),this.options.useExtendedSearch,this._keyStore=new zt(this.options.keys),this.setCollection(t,n)}setCollection(t,e){if(this._docs=t,e&&!(e instanceof Kt))throw new Error("Incorrect 'index' type");this._myIndex=e||Gt(this.options.keys,this._docs,{getFn:this.options.getFn,fieldNormWeight:this.options.fieldNormWeight})}add(t){qt(t)&&(this._docs.push(t),this._myIndex.add(t))}remove(t=(()=>!1)){const e=[];for(let n=0,i=this._docs.length;n<i;n+=1){const r=this._docs[n];t(r,n)&&(this.removeAt(n),n-=1,i-=1,e.push(r))}return e}removeAt(t){this._docs.splice(t,1),this._myIndex.removeAt(t)}getIndex(){return this._myIndex}search(t,{limit:e=-1}={}){const{includeMatches:n,includeScore:i,shouldSort:r,sortFn:o,ignoreFieldNorm:s}=this.options;let a=Nt(t)?Nt(this._docs[0])?this._searchStringList(t):this._searchObjectList(t):this._searchLogical(t);return function(t,{ignoreFieldNorm:e=Yt.ignoreFieldNorm}){t.forEach(t=>{let n=1;t.matches.forEach(({key:t,norm:i,score:r})=>{const o=t?t.weight:null;n*=Math.pow(0===r&&o?Number.EPSILON:r,(o||1)*(e?1:i))}),t.score=n})}(a,{ignoreFieldNorm:s}),r&&a.sort(o),Rt(e)&&e>-1&&(a=a.slice(0,e)),function(t,e,{includeMatches:n=Yt.includeMatches,includeScore:i=Yt.includeScore}={}){const r=[];return n&&r.push(we),i&&r.push(_e),t.map(t=>{const{idx:n}=t,i={item:e[n],refIndex:n};return r.length&&r.forEach(e=>{e(t,i)}),i})}(a,this._docs,{includeMatches:n,includeScore:i})}_searchStringList(t){const e=de(t,this.options),{records:n}=this._myIndex,i=[];return n.forEach(({v:t,i:n,n:r})=>{if(!qt(t))return;const{isMatch:o,score:s,indices:a}=e.searchIn(t);o&&i.push({item:t,idx:n,matches:[{score:s,value:t,norm:r,indices:a}]})}),i}_searchLogical(t){const e=be(t,this.options),n=(t,e,i)=>{if(!t.children){const{keyId:n,searcher:r}=t,o=this._findMatches({key:this._keyStore.get(n),value:this._myIndex.getValueForItemAtKeyId(e,n),searcher:r});return o&&o.length?[{idx:i,item:e,matches:o}]:[]}const r=[];for(let o=0,s=t.children.length;o<s;o+=1){const s=t.children[o],a=n(s,e,i);if(a.length)r.push(...a);else if(t.operator===fe)return[]}return r},i=this._myIndex.records,r={},o=[];return i.forEach(({$:t,i:i})=>{if(qt(t)){let s=n(e,t,i);s.length&&(r[i]||(r[i]={idx:i,item:t,matches:[]},o.push(r[i])),s.forEach(({matches:t})=>{r[i].matches.push(...t)}))}}),o}_searchObjectList(t){const e=de(t,this.options),{keys:n,records:i}=this._myIndex,r=[];return i.forEach(({$:t,i:i})=>{if(!qt(t))return;let o=[];n.forEach((n,i)=>{o.push(...this._findMatches({key:n,value:t[i],searcher:e}))}),o.length&&r.push({idx:i,item:t,matches:o})}),r}_findMatches({key:t,value:e,searcher:n}){if(!qt(e))return[];let i=[];if(Dt(e))e.forEach(({v:e,i:r,n:o})=>{if(!qt(e))return;const{isMatch:s,score:a,indices:c}=n.searchIn(e);s&&i.push({score:a,key:t,value:e,idx:r,norm:o,indices:c})});else{const{v:r,n:o}=e,{isMatch:s,score:a,indices:c}=n.searchIn(r);s&&i.push({score:a,key:t,value:r,norm:o,indices:c})}return i}}Ee.version="7.0.0",Ee.createIndex=Gt,Ee.parseIndex=function(t,{getFn:e=Yt.getFn,fieldNormWeight:n=Yt.fieldNormWeight}={}){const{keys:i,records:r}=t,o=new Kt({getFn:e,fieldNormWeight:n});return o.setKeys(i),o.setIndexRecords(r),o},Ee.config=Yt,Ee.parseQuery=be,function(...t){he.push(...t)}(ue);var Se=function(){function t(t){this._haystack=[],this._fuseOptions=c(c({},t.fuseOptions),{keys:l([],t.searchFields,!0),includeMatches:!0})}return t.prototype.index=function(t){this._haystack=t,this._fuse&&this._fuse.setCollection(t)},t.prototype.reset=function(){this._haystack=[],this._fuse=void 0},t.prototype.isEmptyIndex=function(){return!this._haystack.length},t.prototype.search=function(t){return this._fuse||(this._fuse=new Ee(this._haystack,this._fuseOptions)),this._fuse.search(t).map((function(t,e){return{item:t.item,
vendor: 4,436 bytes, line 83
83score:t.score||0,rank:e+1}}))},t}();var xe=function(t,e,n){var i=t.dataset,r=e.customProperties,o=e.labelClass,s=e.labelDescription;o&&(i.labelClass=at(o).join(" ")),s&&(i.labelDescription=tt(s)),n&&r&&("string"==typeof r?i.customProperties=r:"object"!=typeof r||function(t){for(var e in t)if(Object.prototype.hasOwnProperty.call(t,e))return!1;return!0}(r)||(i.customProperties=JSON.stringify(r)))},Ae=function(t,e,n){var i=e&&t.querySelector("label[for='".concat(e,"']")),r=i&&i.innerText;r&&n.setAttribute("aria-label",r)},Le={containerOuter:function(t,e,n,i,r,o,s){var a=t.classNames.containerOuter,c=document.createElement("div");return lt(c,a),c.dataset.type=o,e&&(c.dir=e),i&&(c.tabIndex=0),n&&(c.setAttribute("role",r?"combobox":"listbox"),r?c.setAttribute("aria-autocomplete","list"):s||Ae(this._docRoot,this.passedElement.element.id,c),c.setAttribute("aria-haspopup","true"),c.setAttribute("aria-expanded","false")),s&&c.setAttribute("aria-labelledby",s),c},containerInner:function(t){var e=t.classNames.containerInner,n=document.createElement("div");return lt(n,e),n},itemList:function(t,e){var n=t.searchEnabled,i=t.classNames,r=i.list,o=i.listSingle,s=i.listItems,a=document.createElement("div");return lt(a,r),lt(a,e?o:s),this._isSelectElement&&n&&a.setAttribute("role","listbox"),a},placeholder:function(t,e){var n=t.allowHTML,i=t.classNames.placeholder,r=document.createElement("div");return lt(r,i),ot(r,n,e),r},item:function(t,e,n){var i=t.allowHTML,r=t.removeItemButtonAlignLeft,o=t.removeItemIconText,s=t.removeItemLabelText,a=t.classNames,c=a.item,l=a.button,u=a.highlightedState,h=a.itemSelectable,d=a.placeholder,f=tt(e.value),p=document.createElement("div");if(lt(p,c),e.labelClass){var g=document.createElement("span");ot(g,i,e.label),lt(g,e.labelClass),p.appendChild(g)}else ot(p,i,e.label);if(p.dataset.item="",p.dataset.id=e.id,p.dataset.value=f,xe(p,e,!0),(e.disabled||this.containerOuter.isDisabled)&&p.setAttribute("aria-disabled","true"),this._isSelectElement&&(p.setAttribute("aria-selected","true"),p.setAttribute("role","option")),e.placeholder&&(lt(p,d),p.dataset.placeholder=""),lt(p,e.highlighted?u:h),n){e.disabled&&ut(p,h),p.dataset.deletable="";var m=document.createElement("button");m.type="button",lt(m,l);var v=nt(e);ot(m,!0,it(o,e.value,v));var y=it(s,e.value,v);y&&m.setAttribute("aria-label",y),m.dataset.button="",r?p.insertAdjacentElement("afterbegin",m):p.appendChild(m)}return p},choiceList:function(t,e){var n=t.classNames.list,i=document.createElement("div");return lt(i,n),e||i.setAttribute("aria-multiselectable","true"),i.setAttribute("role","listbox"),i},choiceGroup:function(t,e){var n=t.allowHTML,i=t.classNames,r=i.group,o=i.groupHeading,s=i.itemDisabled,a=e.id,c=e.label,l=e.disabled,u=tt(c),h=document.createElement("div");lt(h,r),l&<(h,s),h.setAttribute("role","group"),h.dataset.group="",h.dataset.id=a,h.dataset.value=u,l&&h.setAttribute("aria-disabled","true");var d=document.createElement("div");return lt(d,o),ot(d,n,c||""),h.appendChild(d),h},choice:function(t,e,n,i){var r=t.allowHTML,o=t.classNames,s=o.item,a=o.itemChoice,c=o.itemSelectable,l=o.selectedState,u=o.itemDisabled,h=o.description,d=o.placeholder,f=e.label,p=tt(e.value),g=document.createElement("div");g.id=e.elementId,lt(g,s),lt(g,a),i&&"string"==typeof f&&(f=rt(r,f),f={trusted:f+=" (".concat(i,")")});var m=g;if(e.labelClass){var v=document.createElement("span");ot(v,r,f),lt(v,e.labelClass),m=v,g.appendChild(v)}else ot(g,r,f);if(e.labelDescription){var y="".concat(e.elementId,"-description");m.setAttribute("aria-describedby",y);var b=document.createElement("span");ot(b,r,e.labelDescription),b.id=y,lt(b,h),g.appendChild(b)}return e.selected&<(g,l),e.placeholder&<(g,d),g.setAttribute("role",e.group?"treeitem":"option"),g.dataset.choice="",g.dataset.id=e.id,g.dataset.value=p,n&&(g.dataset.selectText=n),e.group&&(g.dataset.groupId="".concat(e.group.id)),xe(g,e,!1),e.disabled?(lt(g,u),g.dataset.choiceDisabled="",g.setAttribute("aria-disabled","true")):(lt(g,c),g.dataset.choiceSelectable="",g.setAttribute("aria-selected",e.selected?"true":"false")),g},input:function(t,e){var n=t.classNames,i=n.input,r=n.inputCloned,o=t.labelId,s=document.createElement("input");return s.type="search",lt(s,i),lt(s,r),s.autocomplete="off",s.autocapitalize="off",s.spellcheck=!1,s.setAttribute("aria-autocomplete","list"),e?s.setAttribute("aria-label",e):o||Ae(this._docRoot,this.passedElement.element.i
vendor: 4,741 bytes, line 83
83d,s),s},dropdown:function(t){var e=t.classNames,n=e.list,i=e.listDropdown,r=document.createElement("div");return lt(r,n),lt(r,i),r.setAttribute("aria-expanded","false"),r},notice:function(t,e,n){var i=t.classNames,r=i.item,o=i.itemChoice,s=i.addChoice,a=i.noResults,c=i.noChoices,l=i.notice;void 0===n&&(n=It);var u=document.createElement("div");switch(ot(u,!0,e),lt(u,r),lt(u,o),lt(u,l),n){case kt:lt(u,s);break;case Ct:lt(u,a);break;case Ot:lt(u,c)}return n===kt&&(u.dataset.choiceSelectable="",u.dataset.choice=""),u},option:function(t){var e=tt(t.label),n=new Option(e,t.value,!1,t.selected);return xe(n,t,!0),n.disabled=t.disabled,t.selected&&n.setAttribute("selected",""),n}},Oe="-ms-scroll-limit"in document.documentElement.style&&"-ms-ime-align"in document.documentElement.style,Ce={},ke=function(t){if(t)return t.dataset.id?parseInt(t.dataset.id,10):void 0},Ie=function(){function t(e,n){void 0===e&&(e="[data-choice]"),void 0===n&&(n={});var i=this;this.initialisedOK=void 0,this._hasNonChoicePlaceholder=!1,this._lastAddedChoiceId=0,this._lastAddedGroupId=0;var r=t.defaults;this.config=c(c(c({},r.allOptions),r.options),n),U.forEach((function(t){i.config[t]=c(c(c({},r.allOptions[t]),r.options[t]),n[t])}));var o=this.config;o.silent||this._validateConfig();var s=o.shadowRoot||document.documentElement;this._docRoot=s;var a="string"==typeof e?s.querySelector(e):e;if(!a||"object"!=typeof a||"INPUT"!==a.tagName&&!_t(a)){if(!a&&"string"==typeof e)throw TypeError("Selector ".concat(e," failed to find an element"));throw TypeError("Expected one of the following types text|select-one|select-multiple")}var l=a.type,u=l===B;(u||1!==o.maxItemCount)&&(o.singleModeForMultiSelect=!1),o.singleModeForMultiSelect&&(l=H);var h=l===z,d=l===H,f=h||d;if(this._elementType=l,this._isTextElement=u,this._isSelectOneElement=h,this._isSelectMultipleElement=d,this._isSelectElement=h||d,this._canAddUserChoices=u&&o.addItems||f&&o.addChoices,"boolean"!=typeof o.renderSelectedChoices&&(o.renderSelectedChoices="always"===o.renderSelectedChoices||h),"auto"===o.closeDropdownOnSelect?o.closeDropdownOnSelect=u||h||o.singleModeForMultiSelect:o.closeDropdownOnSelect=yt(o.closeDropdownOnSelect),o.placeholder&&(o.placeholderValue?this._hasNonChoicePlaceholder=!0:a.dataset.placeholder&&(this._hasNonChoicePlaceholder=!0,o.placeholderValue=a.dataset.placeholder)),n.addItemFilter&&"function"!=typeof n.addItemFilter){var p=n.addItemFilter instanceof RegExp?n.addItemFilter:new RegExp(n.addItemFilter);o.addItemFilter=p.test.bind(p)}if(this._isTextElement)this.passedElement=new vt({element:a,classNames:o.classNames});else{var g=a;this.passedElement=new Et({element:g,classNames:o.classNames,template:function(t){return i._templates.option(t)},extractPlaceholder:o.placeholder&&!this._hasNonChoicePlaceholder})}if(this.initialised=!1,this._store=new Lt(o),this._currentValue="",o.searchEnabled=!u&&o.searchEnabled,this._canSearch=o.searchEnabled,this._isScrollingOnIe=!1,this._highlightPosition=0,this._wasTap=!0,this._placeholderValue=this._generatePlaceholderValue(),this._baseId=function(t,e){var n=t.id||t.name&&"".concat(t.name,"-").concat(X(2))||X(4);return n=n.replace(/(:|\.|\[|\]|,)/g,""),n="".concat(e,"-").concat(n)}(a,"choices-"),this._direction=a.dir,!this._direction){var m=window.getComputedStyle(a).direction;m!==window.getComputedStyle(document.documentElement).direction&&(this._direction=m)}if(this._idNames={itemChoice:"item-choice"},this._templates=r.templates,this._render=this._render.bind(this),this._onFocus=this._onFocus.bind(this),this._onBlur=this._onBlur.bind(this),this._onKeyUp=this._onKeyUp.bind(this),this._onKeyDown=this._onKeyDown.bind(this),this._onInput=this._onInput.bind(this),this._onClick=this._onClick.bind(this),this._onTouchMove=this._onTouchMove.bind(this),this._onTouchEnd=this._onTouchEnd.bind(this),this._onMouseDown=this._onMouseDown.bind(this),this._onMouseOver=this._onMouseOver.bind(this),this._onFormReset=this._onFormReset.bind(this),this._onSelectKey=this._onSelectKey.bind(this),this._onEnterKey=this._onEnterKey.bind(this),this._onEscapeKey=this._onEscapeKey.bind(this),this._onDirectionKey=this._onDirectionKey.bind(this),this._onDeleteKey=this._onDeleteKey.bind(this),this._onChange=this._onChange.bind(this),this._onInvalid=this._onInvalid.bind(this),this.passedElement.isActive)return o.silent||console.warn("Trying to initialise Choices on element already initialised",{element:e}),this.initialised=!0,void(this.initialisedOK=!1);this.init(),this._initialItems=this._store.items.map((function(t){return t.value}))}return Object.defineProperty(t,"defaults",{get:function(){return Object.preventExtensions({get options(){return Ce},get allOptions(){return St},get templates(){return Le}})}
vendor: 18,811 bytes, line 83
83,enumerable:!1,configurable:!0}),t.prototype.init=function(){if(!this.initialised&&void 0===this.initialisedOK){var t;this._searcher=(t=this.config,new Se(t)),this._loadChoices(),this._createTemplates(),this._createElements(),this._createStructure(),this._isTextElement&&!this.config.addItems||this.passedElement.element.hasAttribute("disabled")||this.passedElement.element.closest("fieldset:disabled")?this.disable():(this.enable(),this._addEventListeners()),this._initStore(),this.initialised=!0,this.initialisedOK=!0;var e=this.config.callbackOnInit;"function"==typeof e&&e.call(this)}},t.prototype.destroy=function(){this.initialised&&(this._removeEventListeners(),this.passedElement.reveal(),this.containerOuter.unwrap(this.passedElement.element),this._store._listeners=[],this.clearStore(!1),this._stopSearch(),this._templates=t.defaults.templates,this.initialised=!1,this.initialisedOK=void 0)},t.prototype.enable=function(){return this.passedElement.isDisabled&&this.passedElement.enable(),this.containerOuter.isDisabled&&(this._addEventListeners(),this.input.enable(),this.containerOuter.enable()),this},t.prototype.disable=function(){return this.passedElement.isDisabled||this.passedElement.disable(),this.containerOuter.isDisabled||(this._removeEventListeners(),this.input.disable(),this.containerOuter.disable()),this},t.prototype.highlightItem=function(t,e){if(void 0===e&&(e=!0),!t||!t.id)return this;var n=this._store.items.find((function(e){return e.id===t.id}));return!n||n.highlighted||(this._store.dispatch(Y(n,!0)),e&&this.passedElement.triggerEvent(O,nt(n))),this},t.prototype.unhighlightItem=function(t,e){if(void 0===e&&(e=!0),!t||!t.id)return this;var n=this._store.items.find((function(e){return e.id===t.id}));return n&&n.highlighted?(this._store.dispatch(Y(n,!1)),e&&this.passedElement.triggerEvent(k,nt(n)),this):this},t.prototype.highlightAll=function(){var t=this;return this._store.withTxn((function(){t._store.items.forEach((function(e){e.highlighted||(t._store.dispatch(Y(e,!0)),t.passedElement.triggerEvent(O,nt(e)))}))})),this},t.prototype.unhighlightAll=function(){var t=this;return this._store.withTxn((function(){t._store.items.forEach((function(e){e.highlighted&&(t._store.dispatch(Y(e,!1)),t.passedElement.triggerEvent(O,nt(e)))}))})),this},t.prototype.removeActiveItemsByValue=function(t){var e=this;return this._store.withTxn((function(){e._store.items.filter((function(e){return e.value===t})).forEach((function(t){return e._removeItem(t)}))})),this},t.prototype.removeActiveItems=function(t){var e=this;return this._store.withTxn((function(){e._store.items.filter((function(e){return e.id!==t})).forEach((function(t){return e._removeItem(t)}))})),this},t.prototype.removeHighlightedItems=function(t){var e=this;return void 0===t&&(t=!1),this._store.withTxn((function(){e._store.highlightedActiveItems.forEach((function(n){e._removeItem(n),t&&e._triggerChange(n.value)}))})),this},t.prototype.showDropdown=function(t){var e=this;return this.dropdown.isActive||(void 0===t&&(t=!this._canSearch),requestAnimationFrame((function(){e.dropdown.show();var n=e.dropdown.element.getBoundingClientRect();e.containerOuter.open(n.bottom,n.height),t||e.input.focus(),e.passedElement.triggerEvent(w);var i=e.choiceList.element.querySelector(ct(e.config.classNames.selectedState));null===i||K(i,e.choiceList.element)||(e.choiceList.element.scrollTop=i.offsetTop)}))),this},t.prototype.hideDropdown=function(t){var e=this;return this.dropdown.isActive?(this._removeHighlightedChoices(),requestAnimationFrame((function(){e.dropdown.hide(),e.containerOuter.close(),!t&&e._canSearch&&(e.input.removeActiveDescendant(),e.input.blur()),e.passedElement.triggerEvent(_)})),this):this},t.prototype.getValue=function(t){var e=this._store.items.map((function(e){return t?e.value:nt(e)}));return this._isSelectOneElement||this.config.singleModeForMultiSelect?e[0]:e},t.prototype.setValue=function(t){var e=this;return this.initialisedOK?(this._store.withTxn((function(){t.forEach((function(t){t&&e._addChoice(wt(t,!1))}))})),this._searcher.reset(),this):(this._warnChoicesInitFailed("setValue"),this)},t.prototype.setChoiceByValue=function(t){var e=this;return this.initialisedOK?(this._isTextElement||(this._store.withTxn((function(){(Array.isArray(t)?t:[t]).forEach((function(t){return e._findAndSelectChoiceByValue(t)})),e.unhighlightAll()})),this._searcher.reset()),this):(this._warnChoicesInitFailed("setChoiceByValue"),this)},t.prototype.setChoices=function(t,e,n,i,r,o){var s=this;if(void 0===t&&(t=[]),void 0===e&&(e="value"),void 0===n&&(n="label"),void 0===i&&(i=!1),void 0===r&&(r=!0),void 0===o&&(o=!1),!this.initialisedOK)return this._warnChoicesInitFailed("setChoices"),this;if(!this._isSelectElement)throw new TypeError("setChoices can't be used with INPUT based Choices");if("string"!=typeof e||!e)throw new TypeError("value parameter must be a name of 'value' field in passed objects");if("function"==typeof t){var a=t(this);if("function"==typeof Promise&&a instanceof Promise)return new Promise((function(t){return requestAnimationFrame(t)})).then((function(){return s._handleLoadingState(!0)})).then((function(){return a})).then((function(t){return s.setChoices(t,e,n,i,r,o)})).catch((function(t){s.config.silent||console.error(t)})).then((function(){return s._handleLoadingState(!1)})).then((function(){return s}));if(!Array.isArray(a))throw new TypeError(".setChoices first argument function must return either array of choices or Promise, got: ".concat(typeof a));t=a}if(!Array.isArray(t))throw new TypeError(".setChoices must be called either with array of choices with a function resulting into Promise of array of choices");return this.containerOuter.removeLoadingState(),this._store.withTxn((function(){r&&(s._isSearching=!1),i&&s.clearChoices(!0,o);var a="value"===e,l="label"===n;t.forEach((function(t){if("choices"in t){var i=t;l||(i=c(c({},i),{label:i[n]})),s._addGroup(wt(i,!0))}else{var r=t;l&&a||(r=c(c({},r),{value:r[e],label:r[n]}));var o=wt(r,!1);s._addChoice(o),o.placeholder&&!s._hasNonChoicePlaceholder&&(s._placeholderValue=et(o.label))}})),s.unhighlightAll()})),this.dropdown.isActive&&this._canAddUserChoices&&this._canCreateItem(this.input.value),this._searcher.reset(),this},t.prototype.refresh=function(t,e,n){var i=this;return void 0===t&&(t=!1),void 0===e&&(e=!1),void 0===n&&(n=!1),this._isSelectElement?(this._store.withTxn((function(){var r=i.passedElement.optionsAsChoices(),o={};n||i._store.items.forEach((function(t){t.id&&t.active&&t.selected&&(o[t.value]=!0)})),i.clearStore(!1);var s=function(t){n?i._store.dispatch(Q(t)):o[t.value]&&(t.selected=!0)};r.forEach((function(t){"choices"in t?t.choices.forEach(s):s(t)})),i._addPredefinedChoices(r,e,t),i._isSearching&&i._searchChoices(i.input.value)})),this):(this.config.silent||console.warn("refresh method can only be used on choices backed by a <select> element"),this)},t.prototype.removeChoice=function(t){var e=this._store.choices.find((function(e){return e.value===t}));return e?(this._clearNotice(),this._store.dispatch(function(t){return{type:d,choice:t}}(e)),this._searcher.reset(),e.selected&&this.passedElement.triggerEvent(L,nt(e)),this):this},t.prototype.clearChoices=function(t,e){var n=this;return void 0===t&&(t=!0),void 0===e&&(e=!1),t&&(e?this.passedElement.element.replaceChildren(""):this.passedElement.element.querySelectorAll(":not([selected])").forEach((function(t){t.remove()}))),this.itemList.element.replaceChildren(""),this.choiceList.element.replaceChildren(""),this._clearNotice(),this._store.withTxn((function(){var t=e?[]:n._store.items;n._store.reset(),t.forEach((function(t){n._store.dispatch(V(t)),n._store.dispatch(W(t))}))})),this._searcher.reset(),this},t.prototype.clearStore=function(t){return void 0===t&&(t=!0),this.clearChoices(t,!0),this._stopSearch(),this._lastAddedChoiceId=0,this._lastAddedGroupId=0,this},t.prototype.clearInput=function(){var t=!this._isSelectOneElement;return this.input.clear(t),this._stopSearch(),this},t.prototype._validateConfig=function(){var t=this.config,e=function(t,e){var n=Object.keys(t).sort(),i=Object.keys(e).sort();return n.filter((function(t){return i.indexOf(t)<0}))}(t,St);e.length&&console.warn("Unknown config option(s) passed",e.join(", ")),t.allowHTML&&t.allowHtmlUserInput&&(t.addItems&&console.warn("Warning: allowHTML/allowHtmlUserInput/addItems all being true is strongly not recommended and may lead to XSS attacks"),t.addChoices&&console.warn("Warning: allowHTML/allowHtmlUserInput/addChoices all being true is strongly not recommended and may lead to XSS attacks"))},t.prototype._render=function(t){void 0===t&&(t={choices:!0,groups:!0,items:!0}),this._store.inTxn()||(this._isSelectElement&&(t.choices||t.groups)&&this._renderChoices(),t.items&&this._renderItems())},t.prototype._renderChoices=function(){var t=this;if(this._canAddItems()){var e=this.config,n=this._isSearching,i=this._store,r=i.activeGroups,o=i.activeChoices,s=n?e.searchResultLimit:e.renderChoiceLimit;if(this._isSelectElement){var a=o.filter((function(t){return!t.element}));a.length&&this.passedElement.addOptions(a)}var c=document.createDocumentFragment(),l=function(t){return t.filter((function(t){return!t.placeholder&&(n?(e.searchRenderSelectedChoices||!t.selected)&&!!t.rank:e.renderSelectedChoices||!t.selected)}))},u=e.appendGroupInSearch&&n,h=!1,d=null,f=function(i,r){n?i.sort(st):e.shouldSort&&i.sort(e.sorter);var o=i.length;o=!r&&s>0&&o>s?s:o,o--,i.every((function(i,r){var s=i.choiceEl||t._templates.choice(e,i,e.itemSelectText,u&&i.group?i.group.label:void 0);return i.choiceEl=s,c.appendChild(s),n||!i.selected?h=!0:d||(d=s),r<o}))};o.length&&(e.resetScrollPosition&&requestAnimationFrame((function(){return t.choiceList.scrollToTop()})),this._hasNonChoicePlaceholder||n||!this._isSelectOneElement||f(o.filter((function(t){return t.placeholder&&!t.group})),!1),r.length&&!n?(e.shouldSort&&r.sort(e.sorter),f(o.filter((function(t){return!t.placeholder&&!t.group})),!1),r.forEach((function(e){var n=l(e.choices);if(n.length){if(e.label){var i=e.groupEl||t._templates.choiceGroup(t.config,e);e.groupEl=i,i.remove(),c.appendChild(i)}f(n,!0)}}))):f(l(o),!1)),h||!n&&c.children.length&&e.renderSelectedChoices||(this._notice||(this._notice={text:Z(n?e.noResultsText:e.noChoicesText),type:n?Ct:Ot}),c.replaceChildren("")),this._renderNotice(c),this.choiceList.element.replaceChildren(c),this._highlightChoice(d)}},t.prototype._renderItems=function(){var t=this,e=this._store.items||[],n=this.itemList.element,i=this.config,r=document.createDocumentFragment(),o=function(t){return n.querySelector('[data-item][data-id="'.concat(t.id,'"]'))},s=function(e){var n=e.itemEl;n&&n.parentElement||(n=o(e)||t._templates.item(i,e,i.removeItemButton),e.itemEl=n,r.appendChild(n))};e.forEach(s);var a=!!r.childNodes.length;if(this._isSelectOneElement){var c=n.children.length;if(a||c>1){var l=n.querySelector(ct(i.classNames.placeholder));l&&l.remove()}else a||c||!this._placeholderValue||(a=!0,s(wt({selected:!0,value:"",label:this._placeholderValue,placeholder:!0},!1)))}a&&(n.append(r),i.shouldSortItems&&!this._isSelectOneElement&&(e.sort(i.sorter),e.forEach((function(t){var e=o(t);e&&(e.remove(),r.append(e))})),n.append(r))),this._isTextElement&&(this.passedElement.value=e.map((function(t){return t.value})).join(i.delimiter))},t.prototype._displayNotice=function(t,e,n){void 0===n&&(n=!0);var i=this._notice;i&&(i.type===e&&i.text===t||i.type===kt&&(e===Ct||e===Ot))?n&&this.showDropdown(!0):(this._clearNotice(),this._notice=t?{text:t,type:e}:void 0,this._renderNotice(),n&&t&&this.showDropdown(!0))},t.prototype._clearNotice=function(){if(this._notice){var t=this.choiceList.element.querySelector(ct(this.config.classNames.notice));t&&t.remove(),this._notice=void 0}},t.prototype._renderNotice=function(t){var e=this._notice;if(e){var n=this._templates.notice(this.config,e.text,e.type);t?t.append(n):this.choiceList.prepend(n)}},t.prototype._getChoiceForOutput=function(t,e){return nt(t,e)},t.prototype._triggerChange=function(t){null!=t&&this.passedElement.triggerEvent(E,{value:t})},t.prototype._handleButtonAction=function(t){var e=this,n=this._store.items;if(n.length&&this.config.removeItems&&this.config.removeItemButton){var i=t&&ke(t.closest("[data-id]")),r=i&&n.find((function(t){return t.id===i}));r&&this._store.withTxn((function(){if(e._removeItem(r),e._triggerChange(r.value),e._isSelectOneElement&&!e._hasNonChoicePlaceholder){var t=(e.config.shouldSort?e._store.choices.reverse():e._store.choices).find((function(t){return t.placeholder}));t&&(e._addItem(t),e.unhighlightAll(),t.value&&e._triggerChange(t.value))}}))}},t.prototype._handleItemAction=function(t,e){var n=this;void 0===e&&(e=!1);var i=this._store.items;if(i.length&&this.config.removeItems&&!this._isSelectOneElement){var r=ke(t);r&&(i.forEach((function(t){t.id!==r||t.highlighted?!e&&t.highlighted&&n.unhighlightItem(t):n.highlightItem(t)})),this.input.focus())}},t.prototype._handleChoiceAction=function(t){var e=this,n=ke(t),i=n&&this._store.getChoiceById(n);if(!i||i.disabled)return!1;var r=this.dropdown.isActive;if(!i.selected){if(!this._canAddItems())return!0;this._store.withTxn((function(){e._addItem(i,!0,!0),e.clearInput(),e.unhighlightAll()})),this._triggerChange(i.value)}return r&&this.config.closeDropdownOnSelect&&(this.hideDropdown(!0),this.containerOuter.element.focus()),!0},t.prototype._handleBackspace=function(t){var e=this.config;if(e.removeItems&&t.length){var n=t[t.length-1],i=t.some((function(t){return t.highlighted}));e.editItems&&!i&&n?(this.input.value=n.value,this.input.setWidth(),this._removeItem(n),this._triggerChange(n.value)):(i||this.highlightItem(n,!1),this.removeHighlightedItems(!0))}},t.prototype._loadChoices=function(){var t,e=this,n=this.config;if(this._isTextElement){if(this._presetChoices=n.items.map((function(t){return wt(t,!1)})),this.passedElement.value){var i=this.passedElement.value.split(n.delimiter).map((function(t){return wt(t,!1,e.config.allowHtmlUserInput)}));this._presetChoices=this._presetChoices.concat(i)}this._presetChoices.forEach((function(t){t.selected=!0}))}else if(this._isSelectElement){this._presetChoices=n.choices.map((function(t){return wt(t,!0)}));var r=this.passedElement.optionsAsChoices();r&&(t=this._presetChoices).push.apply(t,r)}},t.prototype._handleLoadingState=function(t){void 0===t&&(t=!0);var e=this.itemList.element;t?(this.disable(),this.containerOuter.addLoadingState(),this._isSelectOneElement?e.replaceChildren(this._templates.placeholder(this.config,this.config.loadingText)):this.input.placeholder=this.config.loadingText):(this.enable(),this.containerOuter.removeLoadingState(),this._isSelectOneElement?(e.replaceChildren(""),this._render()):this.input.placeholder=this._placeholderValue||"")},t.prototype._handleSearch=function(t){if(this.input.isFocussed)if(null!=t&&t.length>=this.config.searchFloor){var e=this.config.searchChoices?this._searchChoices(t):0;null!==e&&this.passedElement.triggerEvent(x,{value:t,resultCount:e})}else this._store.choices.some((function(t){return!t.active}))&&this._stopSearch()},t.prototype._canAddItems=function(){var t=this.config,e=t.maxItemCount,n=t.maxItemText;return!t.singleModeForMultiSelect&&e>0&&e<=this._store.items.length?(this.choiceList.element.replaceChildren(""),this._notice=void 0,this._displayNotice("function"==typeof n?n(e):n,kt,!1),!1):(this._notice&&this._notice.type===kt&&this._clearNotice(),!0)},t.prototype._canCreateItem=function(t){var e=this.config,n=!0,i="";if((n&&"function"==typeof e.addItemFilter&&!e.addItemFilter(t)&&(n=!1,i=it(e.customAddItemText,t,void 0)),n)&&this._store.choices.find((function(n){return e.valueComparer(n.value,t)}))){if(this._isSelectElement)return this._displayNotice("",kt),!1;e.duplicateItemsAllowed||(n=!1,i=it(e.uniqueItemText,t,void 0))}return n&&(i=it(e.addItemText,t,void 0)),i&&this._displayNotice(i,kt),n},t.prototype._searchChoices=function(t){var e=t.trim().replace(/\s{2,}/," ");if(!e.length||e===this._currentValue)return null;var n=this._searcher;n.isEmptyIndex()&&n.index(this._store.searchableChoices);var i=n.search(e);this._currentValue=e,this._highlightPosition=0,this._isSearching=!0;var r=this._notice;return(r&&r.type)!==kt&&(i.length?this._clearNotice():this._displayNotice(Z(this.config.noResultsText),Ct)),this._store.dispatch(function(t){return{type:f,results:t}}(i)),i.length},t.prototype._stopSearch=function(){this._isSearching&&(this._currentValue="",this._isSearching=!1,this._clearNotice(),this._store.dispatch({type:p,active:!0}),this.passedElement.triggerEvent(x,{value:"",resultCount:0}))},t.prototype._addEventListeners=function(){var t=this._docRoot,e=this.containerOuter.element,n=this.input.element,i=this.passedElement.element;t.addEventListener("touchend",this._onTouchEnd,!0),e.addEventListener("keydown",this._onKeyDown,!0),e.addEventListener("mousedown",this._onMouseDown,!0),t.addEventListener("click",this._onClick,{passive:!0}),t.addEventListener("touchmove",this._onTouchMove,{passive:!0}),this.dropdown.element.addEventListener("mouseover",this._onMouseOver,{passive:!0}),this._isSelectOneElement&&(e.addEventListener("focus",this._onFocus,{passive:!0}),e.addEventListener("blur",this._onBlur,{passive:!0})),n.addEventListener("keyup",this._onKeyUp,{passive:!0}),n.addEventListener("input",this._onInput,{passive:!0}),n.addEventListener("focus",this._onFocus,{passive:!0}),n.addEventListener("blur",this._onBlur,{passive:!0}),n.form&&n.form.addEventListener("reset",this._onFormReset,{passive:!0}),i.hasAttribute("required")&&(i.addEventListener("change",this._onChange,{passive:!0}),i.addEventListener("invalid",this._onInvalid,{passive:!0})),this.input.addEventListeners()},t.prototype._removeEventListeners=function(){var t=this._docRoot,e=this.containerOuter.element,n=this.input.element,i=this.passedElement.element;t.removeEventListener("touchend",this._onTouchEnd,!0),e.removeEventListener("keydown",this._onKeyDown,!0),e.removeEventListener("mousedown",this._onMouseDown,!0),t.removeEventListener("click",this._onClick),t.removeEventListener("touchmove",this._onTouchMove),this.dropdown.element.removeEventListener("mouseover",this._onMouseOver),this._isSelectOneElement&&(e.removeEventListener("focus",this._onFocus),e.removeEventListener("blur",this._onBlur)),n.removeEventListener("keyup",this._onKeyUp),n.removeEventListener("input",this._onInput),n.removeEventListener("focus",this._onFocus),n.removeEventListener("blur",this._onBlur),n.form&&n.form.removeEventListener("reset",this._onFormReset),i.hasAttribute("required")&&(i.removeEventListener("change",this._onChange),i.removeEventListener("invalid",this._onInvalid)),this.input.removeEventListeners()},t.prototype._onKeyDown=function(t){var e=t.keyCode,n=this.dropdown.isActive,i=1===t.key.length||2===t.key.length&&t.key.charCo
vendor: 5,656 bytes, line 83
83deAt(0)>=55296||"Unidentified"===t.key;switch(this._isTextElement||n||e===R||e===I||e===j||(this.showDropdown(),!this.input.isFocussed&&i&&(this.input.value+=t.key," "===t.key&&t.preventDefault())),e){case N:return this._onSelectKey(t,this.itemList.element.hasChildNodes());case D:return this._onEnterKey(t,n);case R:return this._onEscapeKey(t,n);case M:case q:case F:case $:return this._onDirectionKey(t,n);case P:case T:return this._onDeleteKey(t,this._store.items,this.input.isFocussed)}},t.prototype._onKeyUp=function(){this._canSearch=this.config.searchEnabled},t.prototype._onInput=function(){var t=this.input.value;t?this._canAddItems()&&(this._canSearch&&this._handleSearch(t),this._canAddUserChoices&&(this._canCreateItem(t),this._isSelectElement&&(this._highlightPosition=0,this._highlightChoice()))):this._isTextElement?this.hideDropdown(!0):this._stopSearch()},t.prototype._onSelectKey=function(t,e){(t.ctrlKey||t.metaKey)&&e&&(this._canSearch=!1,this.config.removeItems&&!this.input.value&&this.input.element===document.activeElement&&this.highlightAll())},t.prototype._onEnterKey=function(t,e){var n=this,i=this.input.value,r=t.target;if(t.preventDefault(),r&&r.hasAttribute("data-button"))this._handleButtonAction(r);else if(e){var o=this.dropdown.element.querySelector(ct(this.config.classNames.highlightedState));if(!o||!this._handleChoiceAction(o))if(r&&i){if(this._canAddItems()){var s=!1;this._store.withTxn((function(){if(!(s=n._findAndSelectChoiceByValue(i,!0))){if(!n._canAddUserChoices)return;if(!n._canCreateItem(i))return;n._addChoice(wt(i,!1,n.config.allowHtmlUserInput),!0,!0),s=!0}n.clearInput(),n.unhighlightAll()})),s&&(this._triggerChange(i),this.config.closeDropdownOnSelect&&this.hideDropdown(!0))}}else this.hideDropdown(!0)}else(this._isSelectElement||this._notice)&&this.showDropdown()},t.prototype._onEscapeKey=function(t,e){e&&(t.stopPropagation(),this.hideDropdown(!0),this._stopSearch(),this.containerOuter.element.focus())},t.prototype._onDirectionKey=function(t,e){var n=t.keyCode;if(e||this._isSelectOneElement){this.showDropdown(),this._canSearch=!1;var i=n===F||n===$?1:-1,r=void 0;if(t.metaKey||n===$||n===q)r=i>0?this.dropdown.element.querySelector("".concat("[data-choice-selectable]",":last-of-type")):this.dropdown.element.querySelector("[data-choice-selectable]");else{var o=this.dropdown.element.querySelector(ct(this.config.classNames.highlightedState));r=o?function(t,e,n){void 0===n&&(n=1);for(var i="".concat(n>0?"next":"previous","ElementSibling"),r=t[i];r;){if(r.matches(e))return r;r=r[i]}return null}(o,"[data-choice-selectable]",i):this.dropdown.element.querySelector("[data-choice-selectable]")}r&&(K(r,this.choiceList.element,i)||this.choiceList.scrollToChildElement(r,i),this._highlightChoice(r)),t.preventDefault()}},t.prototype._onDeleteKey=function(t,e,n){this._isSelectOneElement||t.target.value||!n||(this._handleBackspace(e),t.preventDefault())},t.prototype._onTouchMove=function(){this._wasTap&&(this._wasTap=!1)},t.prototype._onTouchEnd=function(t){var e=(t||t.touches[0]).target;this._wasTap&&this.containerOuter.element.contains(e)&&((e===this.containerOuter.element||e===this.containerInner.element)&&(this._isTextElement?this.input.focus():this._isSelectMultipleElement&&this.showDropdown()),t.stopPropagation());this._wasTap=!0},t.prototype._onMouseDown=function(t){var e=t.target;if(e instanceof Element){if(Oe&&this.choiceList.element.contains(e)){var n=this.choiceList.element.firstElementChild;this._isScrollingOnIe="ltr"===this._direction?t.offsetX>=n.offsetWidth:t.offsetX<n.offsetLeft}if(e!==this.input.element){var i=e.closest("[data-button],[data-item],[data-choice]");i instanceof HTMLElement&&("button"in i.dataset?this._handleButtonAction(i):"item"in i.dataset?this._handleItemAction(i,t.shiftKey):"choice"in i.dataset&&this._handleChoiceAction(i)),t.preventDefault()}}},t.prototype._onMouseOver=function(t){var e=t.target;e instanceof HTMLElement&&"choice"in e.dataset&&this._highlightChoice(e)},t.prototype._onClick=function(t){var e=t.target,n=this.containerOuter;n.element.contains(e)?this.dropdown.isActive||n.isDisabled?this._isSelectOneElement&&e!==this.input.element&&!this.dropdown.element.contains(e)&&this.hideDropdown():this._isTextElement?document.activeElement!==this.input.element&&this.input.focus():(this.showDropdown(),n.element.focus()):(n.removeFocusState(),this.hideDropdown(!0),this.unhighlightAll())},t.prototype._onFocus=function(t){var e=t.target,n=this.containerOuter;if(e&&n.element.contains(e)){var i=e===this.input.element;this._isTextElement?i&&n.addFocusState():this._isSelectMultipleElement?i&&(this.showDropdown(!0),n.addFocusState()):(n.addFocusState(),i&&this.showDropdown(!0))}},t.prototype._onBlur=function(t){var e=t.target,n=this.containerOuter;e&&n.element.contains(e)&&!this._isScrollingOnIe?e===this.input.element?(n.removeFocusState(),this.hideDropdown(!0),(this._isTextElement||this._isSelectMultipleElement)&&this.unhighlightAll()):e===this.containerOuter.element&&(n.removeFocusState(),this.config.searchEnabled||this.hideDropdown(!0)):(this._isScrollingOnIe=!1,this.input.element.focus())},t.prototype._onFormReset=function(){var t=this;this._store.withTxn((function(){t.clearInput(),t.hideDropdown(),t.refresh(!1,!1,!0),t._initialItems.length&&t.setChoiceByValue(t._initialItems)}))},t.prototype._onChange=function(t){t.target.checkValidity()&&this.containerOuter.removeInvalidState()},t.prototype._onInvalid=function(){this.containerOuter.addInvalidState()},t.prototype._removeHighlightedChoices=function(){var t=this.config.classNames.highlightedState;Array.from(this.dropdown.element.querySelectorAll(ct(t))).forEac
vendor: 4,519 bytes, line 83
83h((function(e){ut(e,t),e.setAttribute("aria-selected","false")}))},t.prototype._highlightChoice=function(t){void 0===t&&(t=null);var e=Array.from(this.dropdown.element.querySelectorAll("[data-choice-selectable]"));if(e.length){var n=t,i=this.config.classNames.highlightedState;this._removeHighlightedChoices(),n?this._highlightPosition=e.indexOf(n):(n=e.length>this._highlightPosition?e[this._highlightPosition]:e[e.length-1])||(n=e[0]),lt(n,i),n.setAttribute("aria-selected","true"),this.passedElement.triggerEvent(C,{el:n}),this.dropdown.isActive&&(this.input.setActiveDescendant(n.id),this.containerOuter.setActiveDescendant(n.id))}},t.prototype._addItem=function(t,e,n){if(void 0===e&&(e=!0),void 0===n&&(n=!1),!t.id)throw new TypeError("item.id must be set before _addItem is called for a choice/item");if((this.config.singleModeForMultiSelect||this._isSelectOneElement)&&this.removeActiveItems(t.id),this._store.dispatch(W(t)),e){var i=nt(t);this.passedElement.triggerEvent(A,i),n&&this.passedElement.triggerEvent(S,i)}},t.prototype._removeItem=function(t){if(t.id){this._store.dispatch(Q(t));var e=this._notice;e&&e.type===Ot&&this._clearNotice(),this.passedElement.triggerEvent(L,nt(t))}},t.prototype._addChoice=function(t,e,n){if(void 0===e&&(e=!0),void 0===n&&(n=!1),t.id)throw new TypeError("Can not re-add a choice which has already been added");var i=this.config;if(i.duplicateItemsAllowed||!this._store.choices.find((function(e){return i.valueComparer(e.value,t.value)}))){this._lastAddedChoiceId++,t.id=this._lastAddedChoiceId,t.elementId="".concat(this._baseId,"-").concat(this._idNames.itemChoice,"-").concat(t.id);var r=i.prependValue,o=i.appendValue;r&&(t.value=r+t.value),o&&(t.value+=o.toString()),(r||o)&&t.element&&(t.element.value=t.value),this._clearNotice(),this._store.dispatch(V(t)),t.selected&&this._addItem(t,e,n)}},t.prototype._addGroup=function(t,e){var n=this;if(void 0===e&&(e=!0),t.id)throw new TypeError("Can not re-add a group which has already been added");this._store.dispatch(function(t){return{type:m,group:t}}(t)),t.choices&&(this._lastAddedGroupId++,t.id=this._lastAddedGroupId,t.choices.forEach((function(i){i.group=t,t.disabled&&(i.disabled=!0),n._addChoice(i,e)})))},t.prototype._createTemplates=function(){var t=this,e=this.config.callbackOnCreateTemplates,n={};"function"==typeof e&&(n=e.call(this,J,rt,at));var i={};Object.keys(this._templates).forEach((function(e){i[e]=e in n?n[e].bind(t):t._templates[e].bind(t)})),this._templates=i},t.prototype._createElements=function(){var t=this._templates,e=this.config,n=this._isSelectOneElement,i=e.position,r=e.classNames,o=this._elementType;this.containerOuter=new ft({element:t.containerOuter(e,this._direction,this._isSelectElement,n,e.searchEnabled,o,e.labelId),classNames:r,type:o,position:i}),this.containerInner=new ft({element:t.containerInner(e),classNames:r,type:o,position:i}),this.input=new pt({element:t.input(e,this._placeholderValue),classNames:r,type:o,preventPaste:!e.paste}),this.choiceList=new gt({element:t.choiceList(e,n)}),this.itemList=new gt({element:t.itemList(e,n)}),this.dropdown=new dt({element:t.dropdown(e),classNames:r,type:o})},t.prototype._createStructure=function(){var t=this.containerInner,e=this.containerOuter,n=this.passedElement,i=this.dropdown.element;n.conceal(),t.wrap(n.element),e.wrap(t.element),e.element.appendChild(t.element),e.element.appendChild(i),t.element.appendChild(this.itemList.element),i.appendChild(this.choiceList.element),this._isSelectOneElement?(this.input.placeholder=this.config.searchPlaceholderValue||"",this.config.searchEnabled&&i.insertBefore(this.input.element,i.firstChild)):(this._isSelectMultipleElement&&!this.config.searchEnabled||t.element.appendChild(this.input.element),this._placeholderValue&&(this.input.placeholder=this._placeholderValue),this.input.setWidth()),this._highlightPosition=0,this._isSearching=!1},t.prototype._initStore=function(){var t=this;this._store.subscribe(this._render).withTxn((function(){t._addPredefinedChoices(t._presetChoices,t._isSelectOneElement&&!t._hasNonChoicePlaceholder,!1)})),(!this._store.choices.length||this._isSelectOneElement&&this._hasNonChoicePlaceholder)&&this._render()},t.prototype._addPredefinedChoices=function(t,e,n){var i=this;(void 0===e&&(e=!1),void 0===n&&(n=!0),e)&&(-1===t.findIndex((function(t){return t.selected}))&&t.some((function(t){return!t.disabled&&!("choices"in t)&&(t.selected=!0,!0)})));t.forEach((function(t){"choices"in t?i._isSelectElement&&i._addGroup(t,n):i._addChoice(t,n)}
83))},t.prototype._findAndSelectChoiceByValue=function(t,e){var n=this;void 0===e&&(e=!1);var i=this._store.choices.find((function(e){return n.config.valueComparer(e.value,t)}));return!(!i||i.disabled||i.selected)&&(this._addItem(i,!0,e),!0)},t.prototype._generatePlaceholderValue=function(){var t=this.config;if(!t.placeholder)return null;if(this._hasNonChoicePlaceholder)return t.placeholderValue;if(this._isSelectElement){var e=this.passedElement.placeholderOption;return e?e.text:null}return null},t.prototype._warnChoicesInitFailed=function(t){if(!this.config.silent){if(!this.initialised)throw new TypeError("".concat(t," called on a non-initialised instance of Choices"));if(!this.initialisedOK)throw new TypeError("".concat(t," called for an element which has multiple instances of Choices initialised on it"))}},t.version="11.2.2",t}();function je(t){return(je="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function Te(t,e,n){var i;return i=function(t,e){if("object"!=je(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var i=n.call(t,e||"default");if("object"!=je(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(e,"string"),(e="symbol"==je(i)?i:String(i))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function Pe(t){return function(t){if(Array.isArray(t))return t}(t)||Re(t)||De(t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function De(t,e){if(t){if("string"==typeof t)return Ne(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Ne(t,e):void 0}}function Ne(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,i=new Array(e);n<e;n++)i[n]=t[n];return i}function Re(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}var Me="[data-js-tab-list]",Fe="[data-js-tab-select-container]",qe="[data-js-tab-select]",$e="[data-js-tab]",Ue="[data-js-tab-button]",Be="[data-js-topic-tag-filter-list-container]",ze="[data-js-topic-tag-filter-list]",He="[data-js-topic-tag-filter]",Ve="[data-js-topic-tag-filter-label]",We="[data-js-tab-content-item]",Qe="[data-js-load-more-button]",Ye="[data-js-result-count-display] > span > span",Xe="data-js-slug",Ke="data-js-topic-tags",Ge="data-js-initial-items-to-show",Je="data-js-items-to-load",Ze="data-js-allow-multi-filter",tn="data-js-match-every-filter",en="data-js-page-count",nn="data-js-current-page",rn="data-js-page-number",on="inert",sn="data-js-inert",an="data-js-sort-index",cn="data-js-has-overflow",ln="data-js-hide-tabs";function un(t){var e=t.querySelector(Me),n=t.querySelector(Fe),i=t.querySelector(qe),r=e.querySelectorAll($e),s=e.querySelectorAll(Ue),a=(t.querySelectorAll(Be),t.querySelectorAll(ze)),c=t.querySelectorAll(He),l=t.querySelectorAll(Qe),u=parseInt(t.getAttribute(Ge),10)||5,h=parseInt(t.getAttribute(Je),10)||u,d="true"===t.getAttribute(Ze),f=!0===d&&"true"===t.getAttribute(tn),p=e.getAttribute(Xe),g="true"===t.getAttribute(ln),m=!1,v=void 0,y=!1,b=Array.from(r).filter((function(t){return t.hasAttribute("open")}))[0]||r[0],w=void 0,_=[],E=[],S=function(t){b=t,r.forEach((function(e){e===t?(e.setAttribute("open",""),e.focus()):(e.removeAttribute("open"),e.blur())}))},x=function(t){return y=t},A=function(t){return parseInt((t||b).getAttribute(nn),10)||1},L=function(t,e){return(t||b).setAttribute(nn,e)},O=function(t){return parseInt((t||b).getAttribute(en),10)||1},C=function(t){return Array.from((t||b).querySelectorAll(He)).filter((function(t){return t.checked})).map((function(t){return t.getAttribute("value")})).sort()},k=function(t,e,n){var i,r=(null!==(i=t.getAttribute(Ke))&&void 0!==i?i:"").split("|");return f&&n?e.every((function(t){return r.includes(t)})):e.some((function(t){return r.includes(t)}))},I=function(t){var e=(t||b).querySelectorAll(We),n=C(t);return 0===n.length?e:Array.from(e).filter((function(t){var e,i=(null!==(e=t.getAttribute(Ke))&&void 0!==e?e:"").split("|");return n[f?"every":"some"]((function(t){return i.includes(t)}))}))},j=function(t){return Array.from(r).find((function(e){return e.getAttribute(Xe)===t}))||null},T=function(t,e){return Array.from((t||b).querySelectorAll(He)).filter((function(t){return t.getAttribute("value")===e}))},P=function(){var t=Pe(window.location.hash.substring(1).split("/")),e=t[0],n=t[1],i=t[2],r=t.slice(3);return{slugForCollection:e,slugForTab:n,pageIndex:parseInt(i||"1",10),topicTags:r}},D=Object(o.b)((function(t){t&&t.forEach((function(t){"open"!==t.attributeName&&t.attributeName!==en&&t.attributeName!==nn||st(),"open"===t.attributeName&&nt(),t.attributeName!==en&&t.attributeName!==nn||N(t.target)}))}),25),N=function(t){var e=O(t),n=A(t),i=b.querySelector(Qe);W(i,n>=e),Y()},R=function(t){t.preventDefault(),t.stopImmediatePropagation(),m=!0;var e=t.currentTarget.parentElement;if(e){var n=e.hasAttribute("open"),i=e.getAttribute(Xe);Array.from(r).indexOf(e);n?st():(w.setChoiceByValue(i),S(e),x(!1))}},M=function(t){t&&t.preventDefault(),d||(tt("remove"),Array.from(b.querySelectorAll(He)).forEac
83h((function(e){e!==t.currentTarget&&(e.checked=!1,e.removeAttribute("checked"))})),tt("add")),et()},F=function(t){m=!0,x(!1),st()},q=function(t){t.preventDefault(),m=!0,void 0===v&&(x(!1),st());var e=A()+1;e>O()||(x(!1),L(b,e))},$=function(t,e){var n=parseInt(t.getAttribute(an),10)||0,i=parseInt(e.getAttribute(an),10)||0;return(t.checked?0:1)-(e.checked?0:1)||n-i},U=function(t,e){return(parseInt(t.getAttribute(an),10)||0)-(parseInt(e.getAttribute(an),10)||0)},B=function(){if(!g){var t=!n.hasAttribute(on),e=Array.from(b.querySelectorAll(He));t?e.sort($):e.sort(U);var i=b.querySelector(ze);e.forEach((function(t){return i.appendChild(t.parentElement)}))}},z=function(t){var e=(t||{}).currentTarget||b.querySelector(ze);if(e){var n=e.scrollLeft,i=e.clientWidth,r=e.scrollWidth-i-1,o=function(t){return t.scrollWidth>t.clientWidth}(e),s=e.parentElement;if(o){var a=0===n,c=n>=r;a&&s.setAttribute(cn,"right"),c&&s.setAttribute(cn,"left"),a||c||s.setAttribute(cn,"")}else s.removeAttribute(cn)}},H=function(t){var e=(t||{}).currentTarget||b.querySelector(ze);e&&0!==t.deltaY&&(t.preventDefault(),e.scrollLeft+=t.deltaY)},V=function(t,e){x(!0),t.forEach((function(t){t.checked=!0,t.setAttribute("checked","checked")})),e.forEach((function(t){t.checked=!1,t.removeAttribute("checked")}))},W=function(t){var e=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:on;t&&(e?t.setAttribute(n,on):t.removeAttribute(n))},Q=function(){var t=b.querySelectorAll(We),e=C(),n=e.length>0;t.forEach((function(t){W(t,!!n&&!k(t,e,n),sn)}))},Y=function(){var t,e=b.querySelectorAll(We),n=Array.from((t||b).querySelectorAll(We)).filter((function(t){return!0===t.hasAttribute(sn)})),i=A();e.forEach((function(t){var e=parseInt(t.getAttribute(rn),10)||1,r=n.includes(t);W(t,r||e>i)}))},X=function(){Array.from(b.querySelectorAll(He)).forEach((function(t){var e,n,i,r,s,a=t.getAttribute("value"),c=(e=[a],n=b.querySelectorAll(We),i=C(),r=i.length>0,s=(r&&f?Object(o.a)(e.concat(i)):e).sort(),Array.from(n).filter((function(t){return k(t,s,r)}))).length;t.parentElement.querySelector(Ve).querySelector("span").textContent=c.toString(),W(t.parentElement,0===c)}))},K=function(){var t=b.querySelector(Ye),e=I(b);t.textContent=t.textContent.replace(/([0-9]+)/gim,e.length)},G=function(){console.debug("calculatePageCountForTab");for(var t=I(b),e=1,n=0;n<Array.from(t).length;n++){Array.from(t)[n];n>=u&&n%h==0&&(e+=1)}b.setAttribute(en,e)},J=function(t){return L(t||b,1)},Z=function(){r.forEach((function(t){var e=I(t),n=1;e.forEach((function(t,e){e>=u&&e%h==0&&(n+=1),t.setAttribute(rn,n)}))}))},tt=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"add";return c.forEach((function(e){return e["".concat(t,"EventListener")]("change",M)}))},et=function(){return E.forEach((function(t){return t()}))},nt=function(){return _.forEach((function(t){return t()}))},it=function(t){if(!g){var e=n.hasAttribute("inert"),r=t||{detail:{element:i.selectedOptions[0]||i.options[0]||null,value:null}},o=null!==r.detail.value?r.detail.element:{value:b.getAttribute(Xe)};if(o){t||w.setChoiceByValue(o.value);var s=j(o.value);s&&s!==b&&(e||(m=!0,S(s),x(!1),st()))}}},rt=Object(o.b)(it,25),ot=Object(o.b)((function(){if(!g){var e=t.getBoundingClientRect().width,i=!1,r=0;s.forEach((function(t){t.style.display="grid",r+=t.getBoundingClientRect().width,t.style.removeProperty("display"),t.style.removeProperty("height"),r>e&&(i=!0)})),s.forEach((function(t){t.style.display=i?"none":null,t.style.height=i?"0px":null})),W(n,!i),B(),z()}}),25),st=function(){if(m&&!y){var t=function(t){var e=window.location.pathname,n=new URLSearchParams(window.location.search),i=(t||b).getAttribute(Xe),r=A(t),o=C(t||b).sort(),s="".concat(e).concat(n.toString().length>0?"?".concat(n.toString()):"","#").concat(p,"/").concat(i,"/").concat(r);return o.length>0&&(s+="/".concat(o.join("/"))),{newUrl:s,tabSlug:i,pageIndex:r,topicTagFilter:o}}(),e=t.newUrl,n=t.tabSlug,i=t.pageIndex,r=t.topicTagFilter;e!==v&&n&&(v=e,window.history.pushState({collectionSlug:p,tabSlug:n,pageIndex:i,topicTagFilter:r},"",e))}},at=function(){if(function(){var t=P(),e=t.slugForCollection,n=t.slugForTab;t.pageIndex;return void 0!==e&&void 0!==n}()){var e=P(),n=e.slugForCollection,i=e.slugForTab,r=e.pageIndex,o=e.topicTags;if(n===p){var s=j(i);if(s){if(S(s),window.scrollTo({top:t.offsetTop,behavior:"smooth"}),o.length>0)d||o.splice(1),o.forEach((function(t){var e=T(s,t),n=Array.from(s.querySelectorAll(He)).filter((function(n){return n.getAttribute("value")===t&&!e.includes(n)}));V(e,n)}));else{var a=Array.from(s.querySelectorAll(He)).filter((function(t){return t.checked}));V([],a)}[Q,G,Z,X,K,Y,N,rt].forEach((function(t){return t()}));var c=O(s);r>=1&&r<=c&&L(s,r)}}}};
83x(!0),s.forEach((function(t){return t.addEventListener("click",R)})),l.forEach((function(t){return t.addEventListener("click",q)})),a.forEach((function(t){return t.addEventListener("scroll",z)})),a.forEach((function(t){return t.addEventListener("wheel",H)})),g||(w=new Ie(i,Te(Te(Te(Te({searchEnabled:!1,itemSelectText:"",closeDropdownOnSelect:!0,loadingText:"",noResultsText:"",noChoicesText:""},"itemSelectText",""),"uniqueItemText",""),"shouldSort",!1),"placeholder",!1))).passedElement.element.addEventListener("choice",rt),r.forEach((function(t){new MutationObserver(D).observe(t,{attributes:!0,subtree:!1,attributeFilter:["open",en,nn]})})),_.push(Q),_.push(G),_.push(Z),_.push(X),_.push(K),_.push(it),c.forEach((function(t){t.addEventListener("change",M);var e=t.parentElement.querySelector(Ve);e&&e.addEventListener("click",F)})),E.push(Q),E.push(G),E.push(Z),E.push(J),E.push(X),E.push(K),E.push(Y),E.push(B),tt("add"),nt(),et(),ot(),window.addEventListener("popstate",(function(t){return window.setTimeout((function(){return function(t){if(t.state){x(!0);var e=t.state.collectionSlug,n=t.state.tabSlug,i=parseInt(t.state.pageIndex,10)||1,r=t.state.topicTagFilter||[];if(e===p&&void 0!==n&&null!==j(n)){var o=j(n);if(o){if(S(o),r.length>0)d||r.splice(1),r.forEach((function(t){var e=T(o,t),n=Array.from(o.querySelectorAll(He)).filter((function(e){return e.getAttribute("value")!==t}));V(e,n)}));else{var s=Array.from(o.querySelectorAll(He)).filter((function(t){return t.checked}));V([],s)}[Q,G,Z,X,K,Y,N,rt].forEach((function(t){return t()}));var a=O(o);i>=1&&i<=a&&L(o,i)}}}}(t)}),0)})),window.addEventListener("resize",ot),at(),x(!1)}r()((function(){r()('[data-js-module="ibmix-infographic-tabbed-overview"]').each((function(t,e){un(e)}))}))},function(t,e,n){"use strict";n.r(e)},function(t,e,n){"use strict";n.r(e);var i=n(0),r=n.n(i),o=n(2);r()((function(){r()(".ibmix-accordion").each((function(t,e){var n,i,r,s,a;i=(n=e).querySelectorAll(".ibmix-accordion__inner")||[],r=n.querySelectorAll("[data-accordion-item] > span")||[],s=function(){if(!CSS.supports("width: calc-size(auto, size)"))for(var t=0;t<i.length;t++){var e=i[t],n=e.scrollHeight;e.setAttribute("style","--item-height: ".concat(n,"px;"))}},a=Object(o.b)(s,50),window.addEventListener("resize",a),function(){for(var t=0;t<r.length;t++)r[t].addEventListener("click",(function(t){t.target&&t.target.closest(".ibmix-accordion__item").classList.toggle("open")}))}(),s()}))}))},function(t,e,n){"use strict";n.r(e);var i=n(0),r=n.n(i);r()((function(){r()(".ibmix-action-teasers").each((function(t,e){!function(t){var e=parseInt(t.getAttribute("data-load-more-initial-items"),10)||0,n=parseInt(t.getAttribute("data-load-more-items"),10)||0;if(!(e<=0&&n<=0)){var i=t.querySelector(".ibmix-action-teasers__wrap");if(i){var r=Array.from(i.children);if(r&&!(r.length<=e)){var o=t.querySelector("[data-load-more-button]");if(o){if(o.addEventListener("click",(function(){var t=r.filter((function(t){return t.hasAttribute("hidden")}));t.length<=0||(t.slice(0,n).forEach((function(t){t.removeAttribute("hidden"),t.removeAttribute("inert")})),r.filter((function(t){return t.hasAttribute("hidden")})).length<=0&&o.setAttribute("disabled","disabled"))})),e>0)r.slice(0,e).forEach((function(t){t.removeAttribute("hidden"),t.removeAttribute("inert")}))}}}}}(e)}))}))},function(t,e,n){"use strict";n.r(e);var i=n(0),r=n.n(i),o=n(2),s=n(16),a="has-overflow",c="show-animation",l="show-overflow",u="show-overflow-left",h="show-overflow-right";r()((function(){r()(".ibmix-breadcrumb").each((function(t,e){var n,i,r,d,f,p,g,m,v,y,b,w,_,E,S,x;i=0,r=0,d=!1,f=null,p=(n=e).querySelector('[data-js-atom="link-list"]'),g=n.querySelectorAll(".ibmix-breadcrumb__list-item"),m=g.length,v=function(){i=n.getBoundingClientRect().width,r=0,m>0&&(g.forEach((function(t,e){r+=t.getBoundingClientRect().width})),r>i?(d||n.classList.add(c),d=!0,n.classList.add(a),y()):(d=!1,E(),n.classList.remove(a),n.classList.remove(c)))},y=function(){b(),p.addEventListener("animationend",w)},b=function(){p.removeEventListener("animationend",w)},w=function(t){b(),d&&_()},_=function(){n.classList.remove(c),E(),f=new s.a({viewport:n,scrollMode:"transform",direction:"horizontal",onUpdate:S}
83)},E=function(){null!==f&&f.destroy()},S=function(t){var e=!1,i=!1;t&&t.borderCollision&&!0===t.borderCollision.right?(n.classList.remove(h),i=!1):(n.classList.add(h),i=!0),t&&t.borderCollision&&!0===t.borderCollision.left?(n.classList.remove(u),e=!1):(n.classList.add(u),e=!0),e||i?n.classList.add(l):e||i||n.classList.remove(l)},x=Object(o.b)(v,150),window.addEventListener("resize",x),v()}))}))},function(t,e,n){"use strict";n.r(e);var i=n(0),r=n.n(i),o="ibmix-related-content-wrapper",s="has-next-related-content",a="has-prev-related-content";r()((function(){r()(".ibmix-related-content-wrapper").each((function(t,e){!function(t){t.nextElementSibling&&t.nextElementSibling.classList.contains(o)&&t.classList.add(s),t.previousElementSibling&&t.previousElementSibling.classList.contains(o)&&t.classList.add(a)}(e)}))}))},function(t,e,n){"use strict";n.r(e)},function(t,e,n){"use strict";n.r(e);var i=n(0),r=n.n(i),o="is-open";r()((function(){r()(".ibmix-social-sharing").each((function(t,e){var n,i,r,s,a,c,l;i=(n=e).querySelector('[data-js-atom="mobile-sharing-button"]'),r=n.querySelector('[data-js-atom="share-box"]'),s=n.querySelector('[data-js-atom="sharing-overlay"]'),a=null,c=null,l=function(){s.classList.remove(o),r.classList.remove(o)},i.addEventListener("click",(function(t){t.preventDefault(),s.classList.add(o),r.classList.add(o)})),s.addEventListener("click",l),r.addEventListener("touchstart",(function(t){var e=function(t){return t.touches||t.originalEvent.touches}(t)[0];a=e.clientX,c=e.clientY}),!1),r.addEventListener("touchmove",(function(t){if(a&&c){var e=t.touches[0].clientY;c-e<0&&l(),c=null}}),!1)}))}))},function(t,e,n){"use strict";n.r(e);var i=n(0),r=n.n(i),o=n(2);function s(t){return(s="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function a(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=n){var i,r,o,s,a=[],c=!0,l=!1;try{if(o=(n=n.call(t)).next,0===e){if(Object(n)!==n)return;c=!1}else for(;!(c=(i=o.call(n)).done)&&(a.push(i.value),a.length!==e);c=!0);}catch(t){l=!0,r=t}finally{try{if(!c&&null!=n.return&&(s=n.return(),Object(s)!==s))return}finally{if(l)throw r}}return a}}(t,e)||l(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function c(t,e){var n="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!n){if(Array.isArray(t)||(n=l(t))||e&&t&&"number"==typeof t.length){n&&(t=n);var i=0,r=function(){};return{s:r,n:function(){return i>=t.length?{done:!0}:{done:!1,value:t[i++]}},e:function(t){throw t},f:r}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,s=!0,a=!1;return{s:function(){n=n.call(t)},n:function(){var t=n.next();return s=t.done,t},e:function(t){a=!0,o=t},f:function(){try{s||null==n.return||n.return()}finally{if(a)throw o}}}}function l(t,e){if(t){if("string"==typeof t)return u(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?u(t,e):void 0}}function u(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,i=new Array(e);n<e;n++)i[n]=t[n];return i}function h(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,i)}return n}function d(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?h(Object(n),!0).forEach((function(e){f(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):h(Object(n)).forEac
83h((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function f(t,e,n){var i;return i=function(t,e){if("object"!=s(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var i=n.call(t,e||"default");if("object"!=s(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(e,"string"),(e="symbol"==s(i)?i:String(i))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var p="is-autosuggest-open",g="ibmix-autosuggest__content",m="ibmix-autosuggest__list-item",v="is-type-tag",y="is-type-content",b="is-type-text",w="tag",_="content",E="text";function S(t,e){var n={};try{n=JSON.parse(e.toString())}catch(t){console.debug(t),n={}}var i=d(d({},{inputFieldSelector:"autosuggest-input",wrapperSelector:"autosuggest-wrapper",autosuggestUrlAttribute:"data-js-autosuggest-url",queryMapAttribute:"data-js-autosuggest-query-map",toggleIsActiveClassListElementSelectors:null,triggerAutosuggestChars:3,triggerNativeFormSubmit:!1,isSearchResultForm:!1}),n),l=function(e){var n=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return n?t.querySelectorAll('[data-js-atom="'.concat(e,'"]')):t.querySelector('[data-js-atom="'.concat(e,'"]'))},u="rand_id_".concat(Object(o.i)());t.setAttribute("data-js-random-id",u);var h=l(i.inputFieldSelector),f=l(i.wrapperSelector),S=t.getAttribute(i.autosuggestUrlAttribute),x=t.getAttribute(i.queryMapAttribute),A=[],L=!1;if("string"==typeof i.toggleIsActiveClassListElementSelectors&&(A=document.querySelectorAll(i.toggleIsActiveClassListElementSelectors)),x)try{x=JSON.parse(x)}catch(t){x=void 0,console.debug(t)}var O=function(){var e=l("autosuggest-content");if(t.classList.remove(p),A.forEach((function(t){t.classList.remove(p)})),e){T();try{e.remove()}catch(t){console.debug(t)}}},C=function(e){if(e.preventDefault(),e.stopPropagation(),L)return!0;O(),T();var n=e.target.getAttribute("data-js-hit-type"),o=void 0!==n&&void 0!==n&&"undefined"!==n?n:E,s=e.target.getAttribute("data-js-value");if(o===E)h.value=s.replace(/(<([^>]+)>)/gi,"").replace(/\+/gim," "),i.triggerNativeFormSubmit?t.dispatchEvent(new Event("submit",{cancelable:!0,bubbles:!0})):r()(t).trigger("submit");else if(o===w||o===_){var a=!0!==i.isSearchResultForm?t.getAttribute("action"):window.location.href;h.value="",a=new URL(a);var c=new URLSearchParams(a.search);c.delete("query"),c.set("s","displaydate"),c.set(o===w?"t":"c",s);var l=new URL(a.origin);l.pathname=a.pathname,l.search=c.toString(),window.location.href=l.toString()}},k=function(){L=!0},I=function(){L=!1},j=function(){T();var t=l("autosuggest-content");t&&(t.addEventListener("scrollstart",k),t.addEventListener("scrollend",I));for(var e=l("autosuggest-item",!0),n=0;n<e.length;n++){e[n].addEventListener("mousedown",C)}},T=function(){var t=l("autosuggest-content");t&&(t.removeEventListener("scrollstart",k),t.removeEventListener("scrollend",I));for(var e=l("autosuggest-item",!0),n=0;n<e.length;n++){e[n].removeEventListener("mousedown",C)}},P=function(t){var e=document.createElement("div");e.classList.add(g),e.setAttribute("data-js-atom","autosuggest-content");var n=document.createElement("ul");n.classList.add("ibmix-search-result__autosuggest-list"),e.appendChild(n);for(var i=0;i<t.length;i++){var r=t[i];if(r.label&&r.value){var o=document.createElement("li");o.classList.add(m),r.type===w?o.classList.add(v):r.type===_?o.classList.add(y):o.classList.add(b),o.setAttribute("data-js-value",r.value),o.setAttribute("data-js-atom","autosuggest-item"),o.setAttribute("data-js-hit-type",r.type),o.innerHTML=r.label,n.appendChild(o)}}return e},D=function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0],n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,i=new FormData(t);if(null!==n&&Array.isArray(n))for(var r=0;r<n.length;r++){var o=n[r].split("|"),s=o[0],l=o[1];if(s&&l){var u,h=c(i.entries());try{for(h.s();!(u=h.n()).done;){var d=a(u.value,2),f=d[0],p=d[1];f===s&&(i.append(l,p),i.delete(s))}}catch(t){h.e(t)}finally{h.f()}}}var g=new URLSearchParams(i).toString();if(e)return g;var m,v=[],y=c(i.entries());try{for(y.s();!(m=y.n()).done;){var b=a(m.value,2);f=b[0],p=b[1];v.push({key:f,value:p})}}catch(t){y.e(t)}finally{y.f()}return v},N=Object(o.b)((function(e){var n=e.target.value||"",r="blur"!==e.type;if(n.length>=i.triggerAutosuggestChars&&r){var o=D();if(void 0!==s(x))try{o=D(!0,x)}catch(t){console.error(t)}var a=S+(-1===S.indexOf("?")?"?":"&")+o;fetch(a,{credentials:"include",method:"GET"}).then((function(t){if(!t.ok)throw O(),new Error("Network response was not OK");return t.json()})).then((function(e){!function(e){if(O(),(e||[]).length>0){var n=P(e);t.classList.add(p),A.forEach((function(t){t.classList.add(p)})),f.appendChild(n),j()}}(e)})).catch((function(t){O(),console.error(t)}))}else O()}),50);(function(){h&&(h.removeEventListener("keyup",N),h.removeEventListener("keydown",N),h.removeEventListener("change",N),h.removeEventListener("blur",N),h.removeEventListener("focus",N),h.removeEventListener("click",N),h.removeEventListener("blur",O))})(),h&&(h.addEventListener("keyup",N),h.addEventListener("keydown",N),h.addEventListener("change",N),h.addEventListener("blur",N),h.addEventListener("focus",N),h.addEventListener("click",N))}r()((function(){r()(".ibmix-autosuggest").each((function(t,e){S(e,e.getAttribute("data-js-options")||{})}))}))},function(t,e,n){"use strict";n.r(e)},function(t,e,n){"use strict";n.r(e)},function(t,e,n){"use strict";n.r(e);var i=n(0),r=n.n(i),o=n(2),s=n(1),a=n(17),c=n.n(a);function l(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=n){var i,r,o,s,a=[],c=!0,l=!1;try{if(o=(n=n.call(t)).next,0===e){if(Object(n)!==n)return;c=!1}else for(;!(c=(i=o.call(n)).done)&&(a.push(i.value),a.length!==e);c=!0);}catch(t){l=!0,r=t}
83finally{try{if(!c&&null!=n.return&&(s=n.return(),Object(s)!==s))return}finally{if(l)throw r}}return a}}(t,e)||h(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function u(t,e){var n="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!n){if(Array.isArray(t)||(n=h(t))||e&&t&&"number"==typeof t.length){n&&(t=n);var i=0,r=function(){};return{s:r,n:function(){return i>=t.length?{done:!0}:{done:!1,value:t[i++]}},e:function(t){throw t},f:r}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,s=!0,a=!1;return{s:function(){n=n.call(t)},n:function(){var t=n.next();return s=t.done,t},e:function(t){a=!0,o=t},f:function(){try{s||null==n.return||n.return()}finally{if(a)throw o}}}}function h(t,e){if(t){if("string"==typeof t)return d(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?d(t,e):void 0}}function d(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,i=new Array(e);n<e;n++)i[n]=t[n];return i}var f="is-empty",p="is-expanded",g="is-collapsed",m="expand",v="collapse",y="is-hidden";function b(t){var e,n,i,a,h,d,b,w,_,E,S,x,A=0,L=null,O=function(e){var n=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return n?t.querySelectorAll('[data-js-atom="'.concat(e,'"]')):t.querySelector('[data-js-atom="'.concat(e,'"]'))},C=function(){e=O("search-form"),n=O("search-input"),O("submit-button"),i=O("reset-button"),O("form-filters"),a=O("form-filter",!0),h=O("sort-dropdown"),d=O("hidden-sort-field"),O("result-header"),w=O("result-content"),_=O("search-replace-wrapper"),O("result-row",!0),E=O("collapsable-filter-list",!0),b=O("load-more-button"),x=O("reset-filter-button"),L=O("submit-on-change",!0)},k=function(t){t.currentTarget&&t.currentTarget.getAttribute("href")&&(t.preventDefault(),t.stopPropagation(),P(),window.location.href=t.currentTarget.getAttribute("href"))},I=function(){(n.value||"").toString().length>0?e.classList.remove(f):e.classList.add(f)},j=function(){n.value="",I(),D()},T=function(){var t=!(arguments.length>0&&void 0!==arguments[0])||arguments[0],n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,i=new FormData(e);if(null!==n&&Array.isArray(n))for(var r=0;r<n.length;r++){var o=n[r].split("|"),s=o[0],a=o[1];if(s&&a){var c,h=u(i.entries());try{for(h.s();!(c=h.n()).done;){var d=l(c.value,2),f=d[0],p=d[1];f===s&&(i.append(a,p),i.delete(s))}}catch(t){h.e(t)}finally{h.f()}}}var g=new URLSearchParams(i).toString();if(t)return g;var m,v=[],y=u(i);try{for(y.s();!(m=y.n()).done;){var b=l(m.value,2),w=b[0],_=b[1];v.push({key:w,value:_})}}catch(t){y.e(t)}finally{y.f()}return v},P=function(){var t=n.value||"",e=new c.a(window.location.href);e=new c.a(e.toString().replace(e.search(),"")),T(!1).forEach((function(t){void 0!==t.value&&t.value.toString().length>0&&e.search((function(e){void 0!==e[t.key]?e[t.key]=[].concat(e[t.key],[t.value]):e[t.key]=t.value}))})),void 0!==t&&t.toString().length>0&&e.search((function(e){e[n.getAttribute("name")]=t})),window.history.replaceState({},document.title,e.toString())},D=function(t){if("true"!==e.getAttribute("data-js-disable-xhr")){t&&t.preventDefault(),A=0,N(),"true"!==e.getAttribute("data-js-disable-browser-state")&&P();var i=T(!1),r=n.value||"",o=new c.a(e.getAttribute("action"));i.forEach((function(t){void 0!==t.value&&t.value.toString().length>0&&o.search((function(e){void 0!==e[t.key]?e[t.key]=[].concat(e[t.key],[t.value]):e[t.key]=t.value}))})),void 0!==r&&r.toString().length>0&&o.search((function(t){t[n.getAttribute("name")]=r})),fetch(o,{credentials:"include",method:"GET"}).then((function(t){if(!t.ok)throw new Error("Network response was not OK");return t.text()})).then((function(t){var e;_.innerHTML=t,(e=_.querySelectorAll('[data-js-atom="search-result-item"]'))&&e.forEach((function(t){t.addEventListener("click",k)})),R()})).catch((function(t){console.error(t)}))}else Z(),e.submit(),J()},N=function(){e.classList.add("is-loading"),e.setAttribute("disabled",!0),Z()},R=function(){e.classList.remove("is-loading"),e.removeAttribute("disabled"),C(),W(),J(),H()},M=function(t,e){e.parentNode.insertBefore(t,e.nextSibling)},F=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:m,n=document.createElement("li");n.className="ibmix-tag-collection__list-item",n.setAttribute("data-js-atom","".concat(e,"-collapsable-list-button"));var i=document.createElement("span");i.className="ibmix-tag-collection__checkbox-wrapper";var r=document.createElement("span");
83return r.className="ibmix-tag-collection__list-link is-".concat(e,"-button"),e===m&&(r.textContent="+".concat(t)),i.append(r),n.append(i),n},q=function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:m,i=t.currentTarget.parentNode,r=Array.from(i.querySelectorAll("li")).filter((function(t){return 0===t.querySelectorAll(":scope > [hidden]").length})).filter(U),s="search-result-list-expanded__".concat(e);n===m?(Object(o.m)(s,!0),r.forEach((function(t,e){return t.style.display=null}))):(Object(o.k)(s),r.forEach((function(t,e){return t.style.display="none"}))),t.currentTarget.remove(),H()},$=function(t,e,n){S=n,E.forEach((function(t,e){var n=B(t,m),i=B(t,v);n&&n.remove(),i&&i.remove(),t.classList.remove(p),t.classList.remove(g)})),H()},U=function(t){var e=t.getAttribute("data-js-atom")==="".concat(m,"-collapsable-list-button"),n=t.getAttribute("data-js-atom")==="".concat(v,"-collapsable-list-button");return!e&&!n},B=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:m;return t.querySelector('[data-js-atom="'.concat(e,'-collapsable-list-button"]'))},z=function(){$(0,0,Object(o.d)())},H=function(){E.forEach((function(t,e){var n=Object(o.j)("search-result-list-expanded__".concat(e)),i=null!=n,r=parseInt(t.getAttribute("data-js-option-visible-tags-".concat(S||"xs"))),s=-1!==["xs","s"].indexOf(S)?0:t.querySelectorAll('input[type="checkbox"]:checked').length,a=Math.max(r,s),c=t.querySelector("ul"),l=c.querySelectorAll("li"),u=Array.from(l).filter((function(t){return 0===t.querySelectorAll(":scope > [hidden]").length})).filter(U),h=u.filter((function(t){return"none"!==t.style.display})),d=B(c,m),f=null!==d,y=null!==B(c,v);if(!i&&f&&h.length!==a&&(d.remove(),f=!1),i&&!y){var b=F(0,v);b.addEventListener("click",(function(t){q(t,e,v)}),!1),M(b,u[u.length-1]),t.classList.add(p),t.classList.remove(g)}i||f||(t.classList.remove(p),t.classList.add(g),u.forEach((function(t,n){var i=n===u.length-1;if(n+1>a){if(t.style.display="none",i&&!f){var r=F(u.length-a,m);r.addEventListener("click",(function(t){q(t,e,m)}),!1),M(r,t)}}else t.style.display=null})))}))},V=function(t){t.preventDefault(),A++;var e=O("load-more-button-wrapper");e&&e.remove(),N();var n=t.currentTarget.getAttribute("href");n+=(-1===n.indexOf("?")?"?":"&")+T(),n+="&pageNum=".concat(A),fetch(n,{credentials:"include",method:"GET"}).then((function(t){if(!t.ok)throw new Error("Network response was not OK");return t.text()})).then((function(t){w.innerHTML=w.innerHTML+t,R()})).catch((function(t){console.error(t)}))},W=function(){var t=!1;
83a.forEach((function(e,n){null!==e.getAttribute("checked")&&(t=!0)})),x&&(t?x.classList.remove(y):x.classList.add(y))},Q=function(t){var e=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];t&&t.preventDefault(),Z(),a.forEach((function(t,e){t.removeAttribute("checked")})),e&&D()},Y=function(t){var e=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];console.log("ibmix-search-result","onFilterChange",t,e),t&&t.preventDefault();var n="true"===t.currentTarget.getAttribute("data-js-reset-other-tags");Z(),n&&a.forEach((function(t,e){t.removeAttribute("checked")})),e&&D()},X=function(t){d&&(d.value=h.value),D(t)},K=Object(o.b)(z,100),G=Object(o.b)((function(t){I()}),100),J=function(){window.addEventListener("resize",K),r()(window).on(Object(s.b)(s.a.BREAKPOINT_CHANGE),$),n&&(n.addEventListener("keyup",G),n.addEventListener("keydown",G),n.addEventListener("change",G),n.addEventListener("blur",G),n.addEventListener("focus",G),n.addEventListener("click",G)),i&&i.addEventListener("click",j),e&&e.addEventListener("submit",D),a&&a.forEach((function(t,e){t.addEventListener("change",Y)})),h&&h.addEventListener("change",X),b&&b.addEventListener("click",V),x&&x.addEventListener("click",Q),L&&L.forEach((function(t){t.addEventListener("change",D)}))},Z=function(){window.removeEventListener("resize",K),r()(window).off(Object(s.b)(s.a.BREAKPOINT_CHANGE),$),n&&(n.removeEventListener("keyup",G),n.removeEventListener("keydown",G),n.removeEventListener("change",G),n.removeEventListener("blur",G),n.removeEventListener("focus",G),n.removeEventListener("click",G)),i&&i.removeEventListener("click",j),e&&e.removeEventListener("submit",D),a&&a.forEach((function(t,e){t.removeEventListener("change",Y)})),h&&h.removeEventListener("change",D),b&&b.removeEventListener("click",V),x&&x.removeEventListener("click",Q),L&&L.forEach((function(t){t.removeEventListener("change",D)}))};r()(window).on(Object(s.b)(s.a.SEARCH_RESULT_ADD_EVENT_LISTENERS),J),r()(window).on(Object(s.b)(s.a.SEARCH_RESULT_REMOVE_EVENT_LISTENERS),Z),C(),W(),J(),z(),function(){if(n){var t=new URLSearchParams(window.location.search).get(n.getAttribute("name"));(t||"").length>0&&(n.value=t.replace(/\+/gim," "),D())}}()}r()((function(){r()(".ibmix-search-result").each((function(t,e){b(e)}))}))},function(t,e,n){"use strict";n.r(e)},function(t,e,n){"use strict";n.r(e)},function(t,e,n){"use strict";n.r(e)},function(t,e,n){"use strict";n.r(e)},function(t,e,n){"use strict";n.r(e);var i=n(0),r=n.n(i),o=n(2);r()((function(){r()(".ibmix-footer").each((function(t,e){!function(t){var e=document.documentElement.scrollHeight||document.body.scrollHeight,n=e/3*2,i=document.querySelector('[data-js-atom="back-to-top"]'),r=t.querySelector('[data-js-atom="footer-logo-list"]'),s=t.querySelectorAll('[data-js-atom="footer-logo-item"]'),a=function(){if(e=document.documentElement.scrollHeight||document.body.scrollHeight,n=e/3*2,r&&s){var t=void 0,i=!1;s.forEach((function(e){var n=e.getBoundingClientRect().y;void 0!==t&&n!==t&&(i=!0),t=n})),r.style.justifyContent=i?"flex-start":"flex-end"}},c=function(){i&&(window.scrollY>n?i.removeAttribute("inert"):i.setAttribute("inert",""))};i&&i.addEventListener("click",(function(t){t.preventDefault(),t.stopPropagation(),i.setAttribute("inert",""),window.scrollTo({top:0,behavior:"smooth"})}));var l=Object(o.l)(c,50),u=Object(o.b)(a,150);window.addEventListener("scroll",l),window.addEventListener("resize",u),c(),a()}(e)}))}))},function(t,e,n){"use strict";n.r(e)},function(t,e,n){"use strict";n.r(e)},function(t,e,n){"use strict";n.r(e);var i=n(0),r=n.n(i),o=n(1),s=n(8),a="is-hidden",c="is-active",l="is-disabled",u='[data-js-atom="list-item"]',h='[data-js-atom="list-item-link"]',d='[data-js-atom="thumbnail"]',f='[data-js-atom="lightbox-wrapper"]',p='[data-js-atom="lightbox-content"]',g='[data-js-atom="lightbox-close-button"]',m='[data-js-atom="lightbox-prev-button"]',v='[data-js-atom="lightbox-next-button"]',y='[data-js-atom="prev-page-button"]',b='[data-js-atom="next-page-button"]',w='[data-js-atom="pager-button"]',_='[data-js-atom="prev-page-indicator"]',E='[data-js-atom="next-page-indicator"]',S='[data-js-atom="youtube-video-caption"]';r()((function(){r()(".ibmix-image-gallery").each((function(t,e){!function(t){var e=t.querySelectorAll(u),n=t.querySelectorAll(h),i=t.querySelectorAll(d),x=t.querySelector(f),A=t.querySelector(p),L=t.querySelector(g),O=t.querySelector(m),C=t.querySelector(v),k=i.length,I=t.querySelector(_),j=t.querySelector(E),T=t.querySelector(y),P=t.querySelector(b),D=t.querySelectorAll(w),N=null,R=1,M=parseInt(t.getAttribute("data-js-num-pages")||"0"),F=parseInt(t.getAttribute("data-js-max-pager-buttons")||"0"),q=function(t){var e=t.currentTarget;if("true"==e.getAttribute("data-js-is-video-lightbox"))t.preventDefault();else{if(t){if(null!==t.target.closest(S))return;t.preventDefault(),t.stopPropagation()}W();var n=document.createRange().createContextualFragment(e.getAttribute("data-js-lightbox-content"));N=parseInt(e.parentNode.getAttribute("data-js-item-index")||"0"),R=parseInt(e.parentNode.getAttribute("data-js-item-is-on-page")||"0"),G(),n&&A&&($(),A.appendChild(n),x.classList.remove(a),x.setAttribute("aria-hidden",!1))}}
83,$=function(){A.childNodes.forEach((function(t){A.removeChild(t)}))},U=function(t){t&&t.preventDefault(),x.classList.add(a),x.setAttribute("aria-hidden",!0),$(),Q()},B=function(t){t.target!=A&&t.target!=L||U(t)},z=function(){N>0&&(U(),N--,n[N].dispatchEvent(new MouseEvent("mousedown")))},H=function(){N<k-1&&(U(),N++,n[N].dispatchEvent(new MouseEvent("mousedown")))},V=function(t){"37"==t.keyCode&&z(),"39"==t.keyCode&&H(),"27"==t.keyCode&&U()},W=function(){window.addEventListener("keydown",V)},Q=function(){window.removeEventListener("keydown",V)},Y=function(t){R=parseInt(t.target.getAttribute("data-js-page-index")||"0"),G()},X=function(t){R>0&&(R--,G())},K=function(t){R<M&&(R++,G())},G=function(t){J(),Z(),tt(),et(),rt()},J=function(){e.length>0&&e.forEach((function(t){parseInt(t.getAttribute("data-js-item-is-on-page")||"0")!==R?t.classList.add(a):t.classList.remove(a)}))},Z=function(){D.length>0&&D.forEach((function(t){parseInt(t.getAttribute("data-js-page-index")||"0")!==R?t.classList.remove(c):t.classList.add(c)}))},tt=function(){if(D.length>0){D.forEach((function(t){t.classList.add(a)}));var t=R-1,e=F/2,n=Math.max(t-e,0),i=t+e,r=t-e,o=D.length-1;r<0&&(i+=Math.abs(r)),i>o&&(i=o);var s=F-(i-n);s>0&&(n-=s);for(var c=n=Math.max(n,0);c<=i;c++){D[c].classList.remove(a)}var l=t+e<o&&o>F;t-e>0&&o>F?I.classList.remove(a):I.classList.add(a),l?j.classList.remove(a):j.classList.add(a)}},et=function(){T&&P&&(R<=1&&T?T.classList.add(l):T.classList.remove(l),R>=M&&P?P.classList.add(l):P.classList.remove(l))},nt=function(t){z()},it=function(t){H()},rt=function(){N>0?O.classList.remove(a):O.classList.add(a),N<k-1?C.classList.remove(a):C.classList.add(a)},ot=function(){x&&x.addEventListener("click",B),n.length>0&&n.forEach((function(t){t.addEventListener("mousedown",q)})),O&&O.addEventListener("click",nt),C&&C.addEventListener("click",it)};t.querySelectorAll("[".concat(s.a,"]")).length>0?r()(window).on(Object(o.b)(o.a.DOM_CHANGED),(function(e,n){0===t.querySelectorAll("[".concat(s.a,"]")).length&&ot()})):ot(),D.length>0&&D.forEach((function(t){t.addEventListener("click",Y)})),T&&T.addEventListener("click",X),P&&P.addEventListener("click",K),G()}(e)}))}))},function(t,e,n){"use strict";n.r(e)},function(t,e,n){"use strict";n.r(e);var i=n(0),r=n.n(i),o=n(2),s=n(1);function a(t){return function(t){if(Array.isArray(t))return c(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||function(t,e){if(!t)return;if("string"==typeof t)return c(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);"Object"===n&&t.constructor&&(n=t.constructor.name);if("Map"===n||"Set"===n)return Array.from(t);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return c(t,e)}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function c(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,i=new Array(e);n<e;n++)i[n]=t[n];return i}var l="is-hidden",u="is-fixed",h="is-active",d="is-dropdown",f="is-dropdown-open",p="is-anchor-nav-fixed";function g(t){var e,n=["xs","s","md"],i=0,c=!1,g=0,m=-1,v=!1,y=0,b=null,w=document.body.querySelector('[data-js-atom="navigation-header"]'),_=t.querySelector('[data-js-atom="overflow-wrapper"]'),E=t.querySelector('[data-js-atom="list-wrapper"]'),S=t.querySelectorAll('[data-js-atom="list-item"]'),x=t.querySelectorAll('[data-js-atom="link-item"]'),A=a(document.body.querySelectorAll('[data-js-atom="link-item"]')).filter((function(t){return 0===t.getAttribute("href").indexOf("#")})),L=Object(s.c)(),O=[],C=[],k=new IntersectionObserver((function(t,e){t.forEach((function(t,e){if(t){var n=document.querySelector('[href="#'.concat(t.target.getAttribute("id"),'"]'));if(n){var i=parseInt(t.target.getAttribute("data-js-link-index"));I(n,i,100*t.intersectionRatio)}}}))}),{root:null,rootMargin:"".concat(g,"px 0px 0px 0px"),threshold:[0,.1,.2,.3,.4,.5,.6,.7,.8,.9,1]}),I=function(t,e,n){C[e]=n,m=-1;for(var i=-1,r=0;r<C.length;r++){var o=C[r];o>0&&o>i&&(i=o,m=r)}
83x.forEach((function(t,e){e===m?t.classList.add(h):t.classList.remove(h)})),j()},j=function(){if("complete"===document.readyState&&m>=0)if(M()&&!v)b=S[m].offsetTop,E.style.transform="translate3d(0, -".concat(b,"px, 0)");else{var t=S[m];_.scrollLeft=Math.abs(Object(o.h)(0,_.scrollWidth,t.offsetLeft))}},T=function(){c=!0,i=t.getBoundingClientRect().height,t.style.height="".concat(i,"px"),t.classList.add(u),document.body.classList.add(p)},P=function(){c=!1,t.classList.remove(u),document.body.classList.remove(p),t.style.height=null},D=function(){M()?E.style.transform="translate3d(0, -".concat(b,"px, 0)"):E.style.transform=null,v=!1,t.classList.remove(f),N()},N=function(){_.style.maxHeight=S[-1!==m&&m||0].getBoundingClientRect().height+"px"},R=function(){_.style.maxHeight=null},M=function(){return-1!==n.indexOf(Object(o.d)().toLowerCase())},F=function(e,n,i){M()?(t.classList.add(d),_.style.paddingLeft=null,_.scrollLeft=0,N()):(t.classList.remove(d),H())},q=function(e){M()&&(v?D():(e.preventDefault(),e.stopPropagation(),E.style.transform=null,t.classList.add(f),v=!0,R()))},$=function(t){if(M()&&v||!M()){var e=t.target.getAttribute("href"),n=document.querySelector('[id="'.concat(e.replace("#",""),'"]'));n&&(t.stopPropagation(),t.preventDefault(),D(),window.location.hash=e,window.scrollTo({top:n.offsetTop,left:0,behavior:"smooth"}))}},U=function(t){if(M())_.scrollLeft=0;else{t.preventDefault(),t.stopPropagation();var e=_.scrollLeft+t.deltaY;_.scrollLeft=Object(o.h)(0,_.scrollWidth,e)}},B=function(){var e=window.getComputedStyle(t),n=parseFloat(e.paddingTop.replace(/px/,"")),i=t.getBoundingClientRect().top+n,r={top:0,height:0};w&&(r=w.getBoundingClientRect());var o=r.top,s=r.height;g=o+s,_.style.top=c?"".concat(g,"px"):null,i<=g?T():i>g&&P(),D()},z=function(){y=0,E.style.width=null,S.forEach((function(t){y+=t.getBoundingClientRect().width})),E.style.width=y+"px",N(),H(),B()},H=function(){M()?(_.style.paddingLeft=null,x.forEach((function(t){return t.style.paddingLeft=L+"px"}))):(_.style.paddingLeft=L+"px",x.forEach((function(t){return t.style.paddingLeft=null})))},V=function(t,e){L=e},W=Object(o.l)(B,25),Q=Object(o.l)(z,25),Y=Object(o.b)(z,250);e=0,A.forEach((function(t,n){var i=document.querySelector('[id="'.concat(t.getAttribute("href").replace("#",""),'"]'));i&&(i.setAttribute("data-js-link-index",e),O.push(i),e++)})),O.forEach((function(t,e){C[e]=0,k.observe(t)})),z(),window.addEventListener("scroll",W,{passive:!0}),window.addEventListener("resize",W,{passive:!0}),window.addEventListener("resize",Q,{passive:!0}),window.addEventListener("resize",Y,{passive:!0}),r()(window).on(Object(s.b)(s.a.BREAKPOINT_CHANGE),F),r()(window).on(Object(s.b)(s.a.NAVI_HIDE),B),r()(window).on(Object(s.b)(s.a.NAVI_SHOW),B),r()(window).on(Object(s.b)(s.a.NAVI_SET_FIXED),B),r()(window).on(Object(s.b)(s.a.NAVI_UNSET_FIXED),B),r()(window).on(Object(s.b)(s.a.NAVI_TRANSITION_END),B),r()(window).on(Object(s.b)(s.a.STAGE_OFFSET_CHANGE),V),_.addEventListener("click",q),_.addEventListener("wheel",U),x.forEach((function(t){t.addEventListener("click",$)})),t.classList.remove(l)}r()((function(){r()(".ibmix-intrapage-navigation").each((function(t,e){g(e)}))}))},function(t,e,n){"use strict";n.r(e)},function(t,e,n){"use strict";n.r(e)},function(t,e,n){"use strict";n.r(e);n(34);var i=n(0),r=n.n(i);function o(t,e){var n="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!n){if(Array.isArray(t)||(n=function(t,e){if(!t)return;if("string"==typeof t)return s(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);"Object"===n&&t.constructor&&(n=t.constructor.name);if("Map"===n||"Set"===n)return Array.from(t);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return s(t,e)}(t))||e&&t&&"number"==typeof t.length){n&&(t=n);var i=0,r=function(){};return{s:r,n:function(){return i>=t.length?{done:!0}:{done:!1,value:t[i++]}},e:function(t){throw t},f:r}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,a=!0,c=!1;return{s:function(){n=n.call(t)},n:function(){var t=n.next();return a=t.done,t},e:function(t){c=!0,o=t},f:function(){try{a||null==n.return||n.return()}finally{if(c)throw o}}}}function s(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,i=new Array(e);n<e;n++)i[n]=t[n];return i}r()((function(){r()(".ibmix-monday-webform").each((function(t,e){var n,i;n=e,(i=new MutationObserver((function(t,e){var r,s=o(t);try{for(s.s();!(r=s.n()).done;)"childList"===r.value.type&&n.querySelector('[data-js-atom="'.concat("ajax-form-success-response",'"]'))&&(i.disconnect(),window.setTimeout((function(){var t=new URLSearchParams(window.location.search);t.set("rand",Date.now().toString()),window.location.search=t}),3e3))}catch(t){s.e(t)}finally{s.f()}}))).observe(n,{attributes:!1,childList:!0,subtree:!0})}
83))}))},function(t,e,n){"use strict";n.r(e)},function(t,e,n){"use strict";n.r(e)},function(t,e,n){"use strict";n.r(e)},function(t,e,n){"use strict";n.r(e)},function(t,e,n){"use strict";n.r(e);var i=n(0),r=n.n(i),o=n(2),s="is-in-viewport";r()((function(){r()(".ibmix-start-action-teaser").each((function(t,e){var n,i,r,a,c,l,u;n=e.querySelectorAll('[data-js-atom="list-item"]'),i=Array(n.length),r=0,a=function(){n.forEach((function(t,e){Object(o.g)(t,!1)&&!0!==i[e]&&(i[e]=!0,r++,t.classList.add(s))})),r===n.length&&(window.removeEventListener("resize",u),window.removeEventListener("scroll",c))},c=Object(o.l)((function(t){a()}),10),l=function(){a()},u=Object(o.b)(l,100),l(),window.addEventListener("resize",u),window.addEventListener("scroll",c,{passive:!0})}))}))},function(t,e,n){"use strict";n.r(e);var i=n(0),r=n.n(i),o='[data-js-atom="filter-button"]',s='[data-js-atom="filter-list"]',a='[data-js-atom="filter-item"]',c="is-active";function l(t){var e=t.querySelectorAll(o),n=t.querySelector(s),i=n.querySelectorAll(a);if(null!==e&&null!==n&&null!==i){var r=(t.getAttribute("data-js-default-selection")||"gdv").toLowerCase(),l=function(t){var n=t.currentTarget;e.forEach((function(t){t.classList.remove(c)})),n.classList.add(c),r=n.getAttribute("data-filter"),u()},u=function(){i.forEach((function(t){var e=t.getAttribute("data-filter-item");t.style.display=e===r?null:"none"}))};e.forEach((function(t){t.removeEventListener("click",l)})),e.forEach((function(t){t.addEventListener("click",l)})),function(){for(var t=0;t<e.length;t++){var n=e[t];if(n.getAttribute("data-filter")===r){n.dispatchEvent(new Event("click"));break}}}()}}r()((function(){r()(".ibmix-start-events").each((function(t,e){l(e)}))}))},function(t,e,n){"use strict";n.r(e);var i=n(0),r=n.n(i),o=n(2),s=n(16),a='[data-js-atom="tab-collection-wrapper"]',c='[data-js-atom="tab-headings-wrapper"]',l='[data-js-atom="tab-headings-list"]',u='[data-js-atom="tab-heading"]',h='[data-js-atom="tab-heading-link"]',d='[data-js-atom="tab-items-list"]',f='[data-js-atom="tab-item"]',p="data-js-id",g="is-active",m="has-overflow",v="show-animation",y="show-overflow",b="show-overflow-left",w="show-overflow-right",_="is-in-viewport";function E(t){var e=0,n=0,i=!1,r=null,E=t.querySelector(a),S=t.querySelector(c),x=t.querySelector(l),A=x?x.querySelectorAll(u):void 0,L=x?x.querySelectorAll(h):void 0,O=t.querySelector(d),C=O?O.querySelectorAll(f):void 0,k=function(t){t.stopPropagation(),t.preventDefault();var e=t.target,n=e?e.getAttribute(p):void 0,i=n?O.querySelector('[data-js-id="'.concat(n,'"]')):void 0;L.forEach((function(t){return t.classList.remove(g)})),C.forEach((function(t){return t.classList.remove(g)})),e&&e.classList.add(g),i&&i.classList.add(g)},I=function(){x.removeEventListener("animationend",j)},j=function(t){I(),i&&T()},T=function(){t.classList.remove(v),P(),r=new s.a({viewport:S,scrollMode:"transform",direction:"horizontal",onUpdate:D})},P=function(){null!==r&&r.destroy()},D=function(e){var n=!1,i=!1;e&&e.borderCollision&&!0===e.borderCollision.right?(t.classList.remove(w),i=!1):(t.classList.add(w),i=!0),e&&e.borderCollision&&!0===e.borderCollision.left?(t.classList.remove(b),n=!1):(t.classList.add(b),n=!0),n||i?t.classList.add(y):n||i||t.classList.remove(y)},N=function(){e=E.getBoundingClientRect().width,n=0,A&&(A.forEach((function(t,e){n+=t.getBoundingClientRect().width})),n>e?(i||t.classList.add(v),i=!0,t.classList.add(m),x.addEventListener("animationend",j)):(i=!1,P(),t.classList.remove(m),t.classList.remove(v)))},R=Object(o.b)((function(){Object(o.g)(t)?t.classList.add(_):t.classList.remove(_)}),50),M=Object(o.b)(N,150);window.addEventListener("resize",M),window.addEventListener("scroll",R),N(),L.forEac
83h((function(t){t.removeEventListener("click",k)})),L.forEach((function(t){t.addEventListener("click",k)}))}r()((function(){r()(".ibmix-tabbed-collection").each((function(t,e){E(e)}))}))},function(t,e,n){"use strict";n.r(e);var i=n(0),r=n.n(i),o=n(2),s="is-active";r()((function(){r()(".ibmix-tabbed-content").each((function(t,e){var n,i;n=e.querySelectorAll('[data-js-atom="tabs-list-header-item"]'),i=function(t){var e=t.currentTarget,n=e.parentNode,i=n.getAttribute("data-js-ref-id"),r=n.querySelectorAll('[data-js-atom="tabs-list-header-item"]'),a=0;if(r.forEach((function(t,n){t==e?(t.classList.add(s),a=n):t.classList.remove(s)})),i){var c=document.querySelector('[data-js-id="'.concat(i,'"]'));c&&c.querySelectorAll(':scope > [data-js-atom="tabs-list-item"]').forEach((function(t,e){e===a?(t.classList.add(s),Object(o.m)("".concat("ibmix-tabbed-content-active","_").concat(i),e)):t.classList.remove(s)}))}},n.forEach((function(t,e){t.removeEventListener("click",i),t.addEventListener("click",i);var n=t.parentNode;if(n){var r=n.getAttribute("data-js-ref-id"),s=Object(o.j)("".concat("ibmix-tabbed-content-active","_").concat(r),e);void 0!==s&&e===parseInt(s)&&t.dispatchEvent(new Event("click"))}}))}))}))},function(t,e,n){"use strict";n.r(e)},function(t,e,n){"use strict";n.r(e);var i=n(0),r=n.n(i);r()((function(){r()(".ibmix-testimonials").each((function(t,e){!function(t){var e=new AbortController,n=t.querySelectorAll("ul > li"),i=t.querySelector(".ibmix-testimonials__show-more"),r=0;i&&n.length>0&&(r=parseInt(i.getAttribute("data-js-load-more-items")||"0",10),i.addEventListener("click",function(t){Array.prototype.slice.call(n).filter((function(t){return!0===t.inert})).map((function(t,e){e<r&&(t.inert=!1)})),0===Array.prototype.slice.call(n).filter((function(t){return!0===t.inert})).length&&(e.abort(),i.parentElement.remove(),i.remove())}.bind(this),{signal:e.signal}))}(e)}))}))},function(t,e,n){"use strict";n.r(e);var i=n(0),r=n.n(i);r()((function(){r()(".ibmx-theses").each((function(t,e){var n;(n=e.querySelectorAll(".ibmx-theses__list-item-link"))[0].classList.add("is-active"),n.forEach((function(t){t.addEventListener("mouseover",(function(){n.forEach((function(t){t.classList.remove("is-active")})),this.classList.add("is-active")}))}))}))}))},function(t,e,n){"use strict";n.r(e)},function(t,e,n){"use strict";n.r(e)},function(t,e,n){"use strict";n.r(e);var i=n(0),r=n.n(i),o=n(1);function s(t){return(s="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function a(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=n){var i,r,o,s,a=[],c=!0,l=!1;try{if(o=(n=n.call(t)).next,0===e){if(Object(n)!==n)return;c=!1}else for(;!(c=(i=o.call(n)).done)&&(a.push(i.value),a.length!==e);c=!0);}catch(t){l=!0,r=t}finally{try{if(!c&&null!=n.return&&(s=n.return(),Object(s)!==s))return}finally{if(l)throw r}}return a}}(t,e)||u(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function c(){c=function(){return e};var t,e={},n=Object.prototype,i=n.hasOwnProperty,r=Object.defineProperty||function(t,e,n){t[e]=n.value},o="function"==typeof Symbol?Symbol:{},a=o.iterator||"@@iterator",l=o.asyncIterator||"@@asyncIterator",u=o.toStringTag||"@@toStringTag";function h(t,e,n){return Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{h({},"")}catch(t){h=function(t,e,n){return t[e]=n}}function d(t,e,n,i){var o=e&&e.prototype instanceof y?e:y,s=Object.create(o.prototype),a=new j(i||[]);return r(s,"_invoke",{value:O(t,n,a)}),s}function f(t,e,n){try{return{type:"normal",arg:t.call(e,n)}}catch(t){return{type:"throw",arg:t}}}e.wrap=d;var p="suspendedStart",g="executing",m="completed",v={};function y(){}function b(){}function w(){}var _={};h(_,a,(function(){return this}));var E=Object.getPrototypeOf,S=E&&E(E(T([])));S&&S!==n&&i.call(S,a)&&(_=S);var x=w.prototype=y.prototype=Object.create(_);function A(t){["next","throw","return"].forEach((function(e){h(t,e,(function(t){return this._invoke(e,t)}))}))}function L(t,e){function n(r,o,a,c){var l=f(t[r],t,o);if("throw"!==l.type){var u=l.arg,h=u.value;return h&&"object"==s(h)&&i.call(h,"__await")?e.resolve(h.__await).then((function(t){n("next",t,a,c)}),(function(t){n("throw",t,a,c)}
vendor: 4,991 bytes, line 83
83)):e.resolve(h).then((function(t){u.value=t,a(u)}),(function(t){return n("throw",t,a,c)}))}c(l.arg)}var o;r(this,"_invoke",{value:function(t,i){function r(){return new e((function(e,r){n(t,i,e,r)}))}return o=o?o.then(r,r):r()}})}function O(e,n,i){var r=p;return function(o,s){if(r===g)throw new Error("Generator is already running");if(r===m){if("throw"===o)throw s;return{value:t,done:!0}}for(i.method=o,i.arg=s;;){var a=i.delegate;if(a){var c=C(a,i);if(c){if(c===v)continue;return c}}if("next"===i.method)i.sent=i._sent=i.arg;else if("throw"===i.method){if(r===p)throw r=m,i.arg;i.dispatchException(i.arg)}else"return"===i.method&&i.abrupt("return",i.arg);r=g;var l=f(e,n,i);if("normal"===l.type){if(r=i.done?m:"suspendedYield",l.arg===v)continue;return{value:l.arg,done:i.done}}"throw"===l.type&&(r=m,i.method="throw",i.arg=l.arg)}}}function C(e,n){var i=n.method,r=e.iterator[i];if(r===t)return n.delegate=null,"throw"===i&&e.iterator.return&&(n.method="return",n.arg=t,C(e,n),"throw"===n.method)||"return"!==i&&(n.method="throw",n.arg=new TypeError("The iterator does not provide a '"+i+"' method")),v;var o=f(r,e.iterator,n.arg);if("throw"===o.type)return n.method="throw",n.arg=o.arg,n.delegate=null,v;var s=o.arg;return s?s.done?(n[e.resultName]=s.value,n.next=e.nextLoc,"return"!==n.method&&(n.method="next",n.arg=t),n.delegate=null,v):s:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,v)}function k(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function I(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function j(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(k,this),this.reset(!0)}function T(e){if(e||""===e){var n=e[a];if(n)return n.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var r=-1,o=function n(){for(;++r<e.length;)if(i.call(e,r))return n.value=e[r],n.done=!1,n;return n.value=t,n.done=!0,n};return o.next=o}}throw new TypeError(s(e)+" is not iterable")}return b.prototype=w,r(x,"constructor",{value:w,configurable:!0}),r(w,"constructor",{value:b,configurable:!0}),b.displayName=h(w,u,"GeneratorFunction"),e.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===b||"GeneratorFunction"===(e.displayName||e.name))},e.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,w):(t.__proto__=w,h(t,u,"GeneratorFunction")),t.prototype=Object.create(x),t},e.awrap=function(t){return{__await:t}},A(L.prototype),h(L.prototype,l,(function(){return this})),e.AsyncIterator=L,e.async=function(t,n,i,r,o){void 0===o&&(o=Promise);var s=new L(d(t,n,i,r),o);return e.isGeneratorFunction(n)?s:s.next().then((function(t){return t.done?t.value:s.next()}))},A(x),h(x,u,"Generator"),h(x,a,(function(){return this})),h(x,"toString",(function(){return"[object Generator]"})),e.keys=function(t){var e=Object(t),n=[];for(var i in e)n.push(i);return n.reverse(),function t(){for(;n.length;){var i=n.pop();if(i in e)return t.value=i,t.done=!1,t}return t.done=!0,t}},e.values=T,j.prototype={constructor:j,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach(I),!e)for(var n in this)"t"===n.charAt(0)&&i.call(this,n)&&!isNaN(+n.slice(1))&&(this[n]=t)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var n=this;function r(i,r){return a.type="throw",a.arg=e,n.next=i,r&&(n.method="next",n.arg=t),!!r}for(var o=this.tryEntries.length-1;o>=0;--o){var s=this.tryEntries[o],a=s.completion;if("root"===s.tryLoc)return r("end");if(s.tryLoc<=this.prev){var c=i.call(s,"catchLoc"),l=i.call(s,"finallyLoc");if(c&&l){if(this.prev<s.catchLoc)return r(s.catchLoc,!0);if(this.prev<s.finallyLoc)return r(s.finallyLoc)}else if(c){if(this.prev<s.catchLoc)return r(s.catchLoc,!0)}else{if(!l)throw new Error("try statement without catch or finally");if(this.prev<s.finallyLoc)return r(s.finallyLoc)}}}},abrupt:function(t,e){for(var n=this.tryEntries.length-1;n>=0;--n){var r=this.tryEntries[n];if(r.tryLoc<=this.prev&&i.call(r,"finallyLoc")&&this.prev<r.finallyLoc){var o=r;break}}o&&("break"===t||"continue"===t)&&o.tryLoc<=e&&e<=o.finallyLoc&&(o=null);var s=o?o.completion:{};return s.type=t,s.arg=e,o?(this.method="next",this.next=o.finallyLoc,v):this.complete(s)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),v},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.finallyLoc===t)return this.complete(n.completion,n.afterLoc),I(n),v}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.tryLoc===t){var i=n.completion;
83if("throw"===i.type){var r=i.arg;I(n)}return r}}throw new Error("illegal catch attempt")},delegateYield:function(e,n,i){return this.delegate={iterator:T(e),resultName:n,nextLoc:i},"next"===this.method&&(this.arg=t),v}},e}function l(t,e){var n="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!n){if(Array.isArray(t)||(n=u(t))||e&&t&&"number"==typeof t.length){n&&(t=n);var i=0,r=function(){};return{s:r,n:function(){return i>=t.length?{done:!0}:{done:!1,value:t[i++]}},e:function(t){throw t},f:r}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,s=!0,a=!1;return{s:function(){n=n.call(t)},n:function(){var t=n.next();return s=t.done,t},e:function(t){a=!0,o=t},f:function(){try{s||null==n.return||n.return()}finally{if(a)throw o}}}}function u(t,e){if(t){if("string"==typeof t)return h(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?h(t,e):void 0}}function h(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,i=new Array(e);n<e;n++)i[n]=t[n];return i}function d(t,e,n,i,r,o,s){try{var a=t[o](s),c=a.value}catch(t){return void n(t)}a.done?e(c):Promise.resolve(c).then(i,r)}var f,p,g="is-shown",m="is-enabled",v=["maxresdefault","hqdefault","sddefault","mqdefault","default","0","1","2","3"],y=(f=c().mark((function t(e,n){var i,r,o,s;return c().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:i=l(n),t.prev=1,o=c().mark((function t(){var e;return c().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return e=r.value,t.next=3,new Promise((function(t){fetch(e,{method:"HEAD"}).then((function(n){return console.debug("Fetched thumbnail image from URL:",e,n.status,n.statusText,n),n.ok?t(e):(console.warn("Failed to fetch thumbnail image from URL:",e,n.status,n.statusText),t(!1))})).catch((function(n){return console.warn("Error fetching thumbnail image from URL:",e,n),t(!1)}))}));case 3:if(!t.sent){t.next=6;break}return t.abrupt("return",{v:e});case 6:case"end":return t.stop()}}),t)})),i.s();case 4:if((r=i.n()).done){t.next=11;break}return t.delegateYield(o(),"t0",6);case 6:if(!(s=t.t0)){t.next=9;break}return t.abrupt("return",s.v);case 9:t.next=4;break;case 11:t.next=16;break;case 13:t.prev=13,t.t1=t.catch(1),i.e(t.t1);case 16:return t.prev=16,i.f(),t.finish(16);case 19:return t.abrupt("return",null);case 20:case"end":return t.stop()}}),t,null,[[1,13,16,19]])})),p=function(){var t=this,e=arguments;return new Promise((function(n,i){var r=f.apply(t,e);function o(t){d(r,n,i,o,s,"next",t)}function s(t){d(r,n,i,o,s,"throw",t)}o(void 0)}))},function(t,e){return p.apply(this,arguments)});function b(t){var e,n="false"!==t.getAttribute("data-js-auto-init"),i=t.getAttribute("data-video-url"),s=t.querySelector('[data-js-atom="iframe-box"]'),c=t.querySelector('[data-js-atom="html5-video"]'),u=s?s.getAttribute("id"):void 0,h=t.querySelector('[data-js-atom="play-button"]'),d=t.querySelector("[data-video-thumbnail]"),f="true"==t.getAttribute("data-js-autoplay"),p=null==c,b=null;if(!p||i&&s&&u){var w=function(t){-1!==t.indexOf("youtube-nocookie.com")&&(t="https://www.youtube.com/watch?v=".concat(function(t){var e=t.split("/"),n=e[e.length-1];return-1!==n.indexOf("?")&&(n=(n=n.split("?"))[0]),n}(t)));var e=t.replace(/youtube-nocookie\.com/gi,"youtube.com").replace(/(>|<)/gi,"").split(/(vi\/|v=|\/v\/|youtu\.be\/|\/embed\/)/);return void 0!==e[2]?e[2].split(/[^0-9a-z_\-]/i)[0]:t};if(!1!==n&&r()(window).on(Object(o.b)(o.a.YT_API_READY),A),d){var _=w(i),E=v.map((function(t){return"https://img.youtube.com/vi/".concat(_,"/").concat(t,".jpg")}));y(d,E).then((function(e){e?(d.onload=function(){var e=d.naturalWidth/d.naturalHeight;h.style.aspectRatio="".concat(e),t.style.aspectRatio="".concat(e),d.style.aspectRatio="".concat(e),d.removeEventListener("load",d.onload)},d.setAttribute("src",e),d.style.objectFit="cover",d.style.objectPosition="center"):console.warn("Failed to load any thumbnail image for video ID:",_,"using URLs:",E,"from image element:",d)}))}var S=function(t){var e,n={}
83,i=l(new URL(t).searchParams.entries());try{for(i.s();!(e=i.n()).done;){var r=a(e.value,2),o=r[0],s=r[1];n[o]=s}}catch(t){i.e(t)}finally{i.f()}return n},x=function(){b=window.setInterval((function(){void 0!==window.YT&&(window.clearInterval(b),b=null,A())}),50)},A=function(){void 0!==window.YT&&void 0!==YT.Player?u&&(e=new YT.Player(u,{videoId:w(i),playerVars:S(i),events:{onReady:C,onStateChange:L}})):x()},L=function(t){t.data===YT.PlayerState.PLAYING&&r()(window).trigger(Object(o.b)(o.a.YT_STOP_ALL_VIDEOS),{currentPlayerId:u})},O=function n(i){i&&i.preventDefault(),p?e&&(r()(window).trigger(Object(o.b)(o.a.YT_STOP_ALL_VIDEOS),{currentPlayerId:u}),e.playVideo(),t.classList.add(g)):(h.removeEventListener("click",n),h.remove(),t.classList.add(g),c.play())},C=function(){h.classList.add(m),h.addEventListener("click",O),f&&h.dispatchEvent(new Event("click"))},k=function(t,n){n.currentPlayerId!==u&&e&&"function"==typeof e.pauseVideo&&e.pauseVideo()};p?function(){!1!==n&&function(){if(null===document.querySelector("body").getAttribute("data-js-yt-initializing"))if(0===r()("#ytiframeapi").length){document.querySelector("body").setAttribute("data-js-yt-initializing","true");var t=document.createElement("script");t.setAttribute("async",""),t.setAttribute("defer",""),t.setAttribute("id","ytiframeapi"),t.setAttribute("src","//www.youtube.com/iframe_api"),document.querySelector("head").appendChild(t),x()}else x();else x();void 0===window.onYouTubeIframeAPIReady&&(window.onYouTubeIframeAPIReady=function(){r()(window).trigger(Object(o.b)(o.a.YT_API_READY))})}(),r()(window).on(Object(o.b)(o.a.YT_STOP_ALL_VIDEOS),k)}():(C(),c.addEventListener("contextmenu",(function(t){return t.preventDefault(),t.stopPropagation(),!1})))}}r()((function(){document.querySelectorAll(".ibmix-youtube-video__container").forEach((function(t){b(t)}))})),r()(window).on(Object(o.b)(o.a.DOM_CHANGED),(function(t,e){e.querySelectorAll(".ibmix-youtube-video__container").length>0?e.querySelectorAll(".ibmix-youtube-video__container").forEach((function(t){b(t)})):b(e)}))},function(t,e,n){"use strict";n.r(e);var i=n(0),r=n.n(i),o=n(11),s=n(3);n(78);function a(t){var e=r()(t).data("cm-responsive-media");return Array.isArray(e)?e:[]}function c(t){var e=r()(t);function n(){e.trigger({type:"srcChanged",src:e.attr("src"),maxWidth:e.data("lastMaxWidth"),ratio:e.data("lastRatio")})}var i="function"==typeof r.a.fn.imagesLoaded;void 0===e.data("cm-responsive-media-state")&&(e.data("cm-responsive-media-state","initialized"),i?e.attr("src")&&e.imagesLoaded(n):e.on("load",n));var o=a(t);if(0!==o.length){var c=e.parent(),l=c.width(),u=c.height();if(l&&u){var h=window.devicePixelRatio,d=!1;h>1&&e.data("cm-retina")&&(d=!0,u*=h,l*=h);var f=l/u,p=o.filter((function(t){return t.ratioHeight>0&&t.ratioWidth>0})).map((function(t){return{format:t,difference:Math.abs(f-t.ratioWidth/t.ratioHeight)}})).reduce((function(t,e){return e.difference<t.difference?e:t}),{format:null,difference:1/0}).format;if(p){var g=Object.keys(p.linksForWidth).map((function(t){return parseInt(t)})).filter((function(t){return!isNaN(t)&&p.linksForWidth[t]})).reduce((function(t,e){return t<l&&e<l&&e>t||t<l&&e>=l||t>=l&&e>=l&&e<t?e:t}),-1);if(-1!==g){var m=p.linksForWidth[g],v=d?" (Retina Images enabled with deviceRatio: ".concat(h,")"):"";e.is("img")?m!==e.attr("src")&&(s.c("Change Responsive Image to aspect ratio: '".concat(p.name,"' and maxWidth: '").concat(g,"'").concat(v),t),e.trigger({type:"srcChanging",src:e.attr("src"),maxWidth:g,ratio:p.name}),e.data("lastMaxWidth",g),e.data("lastRatio",p.name),e.attr("src",m),i&&e.imagesLoaded(n)):"background-image: url('"+m+"');
83"!==e.attr("style")&&(s.c("Change Responsive Background Image to aspect ratio: '".concat(p.name,"' and maxWidth: '").concat(g,"'").concat(v),t),e.data("lastMaxWidth",g),e.data("lastRatio",p.name),e.attr("style","background-image: url('"+m+"');"))}else s.g("Found no matching link in aspect ratio '".concat(p.name,"'."),t)}else s.g("Found no matching aspect ratio.",t)}else s.d("Could not load hidden Responsive Media. The width and height of the surrounding container must be greater than zero.",t)}else s.g("No responsive image data found.",t)}var l=function(t){t instanceof r.a?r.a.each(t,(function(t,e){c(e)})):c(t)};function u(t){return(u="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}r()((function(){o.a("[data-cm-responsive-media]",(function(t){l(t)})),o.a(".cm-media--loading",(function(t){var e=function(){t.removeClass("cm-media--loading")};u(r.a.fn.imagesLoaded)===u(e)?t.imagesLoaded(e):t.on("load",e)})),r()(document).on(s.a,(function(){l(r()("[data-cm-responsive-media]"))}))}))},function(t,e,n){"use strict";n.r(e);n(34);var i=n(0),r=n.n(i);n(79),n(81),n(82),n(83);r.a.fn.webforms.defaults().createOption=function(t,e,n){var i=r()("<option/>").attr("class","mwf-select__option").attr("data-mwf-value",e.k).attr("data-mwf-label",e.v).attr("data-mwf-mutable","").attr("value",JSON.stringify(e)).append(e.v);return n&&i.attr("selected",!0),i},r.a.fn.webforms.defaults().createRadio=function(t,e,n,i){var o=r()("<div/>").attr("class","mwf-radio").attr("data-mwf-mutable",""),s=r()("<input/>").attr("type","radio").attr("id",n.i).attr("data-mwf-id",n.i).attr("data-mwf-value",n.k).attr("data-mwf-label",n.v).attr("value",JSON.stringify(n)).attr("name",e).attr("class","mwf-radio__input");i&&s.attr("checked","checked");var a=r()("<span/>").attr("class","mwf-radio__text").append(n.v),c=r()("<label/>").attr("class","mwf-radio__label").attr("for",n.i).append(a);return o.append(s).append(c),o},r.a.fn.webforms.defaults().createCheckBox=function(t,e,n,i){var o=r()("<div/>").attr("class","mwf-checkbox").attr("data-mwf-mutable",""),s=r()("<input/>").attr("type","checkbox").attr("id",n.i).attr("data-mwf-id",n.i).attr("data-mwf-value",n.k).attr("data-mwf-label",n.v).attr("value",JSON.stringify(n)).attr("name",e).attr("class","mwf-checkbox__input");i&&s.attr("checked","checked");var a=r()("<span/>").attr("class","mwf-checkbox__text").append(n.v),c=r()("<label/>").attr("class","mwf-checkbox__label").attr("for",n.i).append(a);return o.append(s).append(c),o},r.a.fn.webforms.defaults().createUploadFileRow=function(t,e,n){var i=r()('<li class="mwf-file__li has-error" data-mwf-file>'),o=r()('<div class="mwf-file__file-progress" role="progressbar" aria-valuemin="0" aria-valuemax="100" data-mwf-file-progress>'),s=r()('<div style="width: 0;" aria-hidden="true">'),a=r()('<div class="mwf-file__thumbnail" data-mwf-file-preview>'),c=r()(' <div class="mwf-file__file-info">'),l=r()('<span class="mwf-file__file-name">').text(n.name),u=r()('<span class="mwf-file__file-size">').text(r.a.formatSize(n.size)),h=r()('<span class="mwf-file__file-error" data-mwf-file-error>'),d=r()('<div class="mwf_file__file-actions">'),f=r()('<button type="button" class="mwf-file__file-button" data-mwf-file-upload>').text(e.labels.upload),p=r()('<button type="button" class="mwf-file__file-button" data-mwf-file-delete>').text(e.labels.del);return o.append(s),i.append(o),i.append(a),c.append(l),c.append(u),c.append(h),i.append(c),!1===e.autoUpload&&d.append(f),d.append(p),i.append(d),i},r.a.fn.webforms.defaults().createDownloadFileRow=function(t,e,n){var i=r()('<li class="mwf-file__li has-error" data-mwf-file>'),o=r()('<div class="mwf-file__thumbnail" data-mwf-file-preview>'),s=r()(' <div class="mwf-file__file-info">'),a=r()('<span class="mwf-file__file-name">').text(n.name),c=r()('<span class="mwf-file__file-size">').text(r.a.formatSize(n.size)),l=r()('<span class="mwf-file__file-error" data-mwf-file-error>');n.error&&l.text(n.error);var u=r()('<div class="mwf_file__file-actions">'),h=r()('<button type="button" class="mwf-file__file-button" data-mwf-file-delete>').text(e.labels.del);return n.thumbnail_url&&o.append(r()("<img/>").attr("src",n.thumbnail_url)).attr("alt",n.name),i.append(o),s.append(a),s.append(c),s.append(l),i.append(s),u.append(h),i.append(u),i}}],[[38,0]]]);
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.