PageSourceSearch

https://openart.se/2.6e6f557a148f87ed85825d6/91.302b46e17619db407d…/1790925199070/BODY/0/sv-template-asset.js

js openart.se collected 2026-10-02 23:10:07 UTC 235,036 bytes, 462 lines download raw bytes

1!function(){"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self&&self;!function(m,p,c){m(c={path:p,exports:{},require:function(c,d){throw Error("Dynamic requires are not currently supported by @rollup/plugin-commonjs");}},c.exports);c.exports}(function(m,p){m.exports=function(){return function(c){function h(g){if(d[g])return d[g].exports;var e=d[g]={exports:{},id:g,loaded:!1};return c[g].call(e.exports,e,e.exports,
2h),e.loaded=!0,e.exports}var d={};return h.m=c,h.c=d,h.p="",h(0)}([function(c,h){c.exports=function(){if("undefined"==typeof document||"undefined"==typeof window)return{ask:function(){return"initial"},element:function(){return null},ignoreKeys:function(){},specificKeys:function(){},registerOnChange:function(){},unRegisterOnChange:function(){}};var d=document.documentElement,g=null,e="initial",c=e,h=Date.now(),m="false",p=["button","input","select","textarea"],k=[],x=[16,17,18,91,93],q=[],u={keydown:"keyboard",
3keyup:"keyboard",mousedown:"mouse",mousemove:"mouse",MSPointerDown:"pointer",MSPointerMove:"pointer",pointerdown:"pointer",pointermove:"pointer",touchstart:"touch",touchend:"touch"},r=!1,y=null,z=null,F={2:"touch",3:"touch",4:"mouse"},A=!1;try{var v=Object.defineProperty({},"passive",{get:function(){A=!0}});window.addEventListener("test",null,v)}catch(a){}var v=function(){var a=!!A&&{passive:!0};document.addEventListener("DOMContentLoaded",G);window.PointerEvent?(window.addEventListener("pointerdown",
4l),window.addEventListener("pointermove",t)):window.MSPointerEvent?(window.addEventListener("MSPointerDown",l),window.addEventListener("MSPointerMove",t)):(window.addEventListener("mousedown",l),window.addEventListener("mousemove",t),"ontouchstart"in window&&(window.addEventListener("touchstart",l,a),window.addEventListener("touchend",l)));window.addEventListener(B(),t,a);window.addEventListener("keydown",l);window.addEventListener("keyup",l);window.addEventListener("focusin",H);window.addEventListener("focusout",
5C)},G=function(){if(m=!(d.getAttribute("data-whatpersist")||"false"===document.body.getAttribute("data-whatpersist")))try{window.sessionStorage.getItem("what-input")&&(e=window.sessionStorage.getItem("what-input")),window.sessionStorage.getItem("what-intent")&&(c=window.sessionStorage.getItem("what-intent"))}catch(a){}n("input");n("intent")},l=function(a){var b=a.which,f=u[a.type];"pointer"===f&&(f=D(a));a=!q.length&&-1===x.indexOf(b);var d=q.length&&-1!==q.indexOf(b),b="keyboard"===f&&b&&(a||d)||
6"mouse"===f||"touch"===f;if(E(f)&&(b=!1),b&&e!==f&&(w("input",e=f),n("input")),b&&c!==f){if((a=(b=document.activeElement)&&b.nodeName)&&!(a=-1===p.indexOf(b.nodeName.toLowerCase()))&&(a="button"===b.nodeName.toLowerCase())){a:if(a=window.Element.prototype,a.matches||(a.matches=a.msMatchesSelector||a.webkitMatchesSelector),a.closest)b=b.closest("form");else{do{if(b.matches("form"))break a;b=b.parentElement||b.parentNode}while(null!==b&&1===b.nodeType);
6b=null}a=!b}a&&(w("intent",c=f),n("intent"))}},
7n=function(a){d.setAttribute("data-what"+a,"input"===a?e:c);for(var b=0,f=k.length;b<f;b++)k[b].type===a&&k[b].fn.call(void 0,"input"===a?e:c)},t=function(a){var b=u[a.type];"pointer"===b&&(b=D(a));y!==a.screenX||z!==a.screenY?(r=!1,y=a.screenX,z=a.screenY):r=!0;(!r&&!E(b)||r&&"wheel"===a.type||"mousewheel"===a.type||"DOMMouseScroll"===a.type)&&c!==b&&(w("intent",c=b),n("intent"))},H=function(a){a.target.nodeName?(g=a.target.nodeName.toLowerCase(),d.setAttribute("data-whatelement",g),a.target.classList&&
8a.target.classList.length&&d.setAttribute("data-whatclasses",a.target.classList.toString().replace(" ",","))):C()},C=function(){g=null;d.removeAttribute("data-whatelement");d.removeAttribute("data-whatclasses")},w=function(a,b){if(m)try{window.sessionStorage.setItem("what-"+a,b)}catch(c){}},D=function(a){return"number"==typeof a.pointerType?F[a.pointerType]:"pen"===a.pointerType?"touch":a.pointerType},E=function(a){var b=Date.now();a="mouse"===a&&"touch"===e&&200>b-h;return h=b,a},B=function(){return"onwheel"in
9document.createElement("div")?"wheel":void 0!==document.onmousewheel?"mousewheel":"DOMMouseScroll"};return"addEventListener"in window&&Array.prototype.indexOf&&(u[B()]="mouse",v()),{ask:function(a){return"intent"===a?c:e},element:function(){return g},ignoreKeys:function(a){x=a},specificKeys:function(a){q=a},registerOnChange:function(a,b){k.push({fn:a,type:b||"input"})},unRegisterOnChange:function(a){a:{for(var b=0,c=k.length;b<c;b++)if(k[b].fn===a){a=b;break a}a=void 0}(a||0===a)&&k.splice(a,1)},
10clearStorage:function(){window.sessionStorage.clear()}}}()}])}()});window.$=$svjq}();
11var $jscomp={scope:{},getGlobal:function(r){return"undefined"!=typeof window&&window===r?r:"undefined"!=typeof global?global:r}};$jscomp.global=$jscomp.getGlobal(this);$jscomp.initSymbol=function(){$jscomp.global.Symbol||($jscomp.global.Symbol=$jscomp.Symbol);$jscomp.initSymbol=function(){}};$jscomp.symbolCounter_=0;$jscomp.Symbol=function(r){return"jscomp_symbol_"+r+$jscomp.symbolCounter_++};
12$jscomp.initSymbolIterator=function(){$jscomp.initSymbol();$jscomp.global.Symbol.iterator||($jscomp.global.Symbol.iterator=$jscomp.global.Symbol("iterator"));$jscomp.initSymbolIterator=function(){}};
13$jscomp.makeIterator=function(r){$jscomp.initSymbolIterator();if(r[$jscomp.global.Symbol.iterator])return r[$jscomp.global.Symbol.iterator]();if(!(r instanceof Array||"string"==typeof r||r instanceof String))throw new TypeError(r+" is not iterable");var B=0;return{next:function(){return B==r.length?{done:!0}:{done:!1,value:r[B++]}}}};$jscomp.arrayFromIterator=function(r){for(var B,z=[];!(B=r.next()).done;)z.push(B.value);return z};
14$jscomp.arrayFromIterable=function(r){return r instanceof Array?r:$jscomp.arrayFromIterator($jscomp.makeIterator(r))};$jscomp.arrayFromArguments=function(r){for(var B=[],z=0;z<r.length;z++)B.push(r[z]);return B};
15$jscomp.inherits=function(r,B){function z(){}z.prototype=B.prototype;r.prototype=new z;r.prototype.constructor=r;for(var D in B)if($jscomp.global.Object.defineProperties){var Y=$jscomp.global.Object.getOwnPropertyDescriptor(B,D);void 0!==Y&&$jscomp.global.Object.defineProperty(r,D,Y)}else r[D]=B[D]};
16!function(){function r(u,c){(null==c||c>u.length)&&(c=u.length);for(var h=0,g=Array(c);h<c;h++)g[h]=u[h];return g}function B(u,c){var h;if(!(h=function(c){if(Array.isArray(c))return c}(u)||function(c,f){$jscomp.initSymbol();$jscomp.initSymbol();$jscomp.initSymbolIterator();var l=null==c?null:"undefined"!=typeof Symbol&&c[Symbol.iterator]||c["@@iterator"];if(null!=l){var p,h,w,E,x=[],O=!0,u=!1;try{if(w=(l=l.call(c)).next,0===f){if(Object(l)!==l)return;O=!1}else for(;!(O=(p=w.call(l)).done)&&(x.push(p.value),
17x.length!==f);O=!0);}catch(J){u=!0,h=J}finally{try{if(!O&&null!=l.return&&(E=l.return(),Object(E)!==E))return}finally{if(u)throw h;}}return x}}(u,c)||function(c,f){if(c){if("string"==typeof c)return r(c,f);var l={}.toString.call(c).slice(8,-1);return"Object"===l&&c.constructor&&(l=c.constructor.name),"Map"===l||"Set"===l?Array.from(c):"Arguments"===l||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(l)?r(c,f):void 0}}
17(u,c)))throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
18return h}function z(u){$jscomp.initSymbol();$jscomp.initSymbol();$jscomp.initSymbolIterator();return z="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(c){return typeof c}:function(c){$jscomp.initSymbol();$jscomp.initSymbol();$jscomp.initSymbol();return c&&"function"==typeof Symbol&&c.constructor===Symbol&&c!==Symbol.prototype?"symbol":typeof c},z(u)}function D(u){throw Error('Could not dynamically require "'+u+'". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.');
19}function Y(){return/Mobi|Android|iPhone|iPad|iPod/i.test(navigator.userAgent)}svDocReady(function(){function u(f){"menu"!==f&&g()&&h.trigger("click");"search"!==f&&($svjq("header").removeClass("or-search-mobile"),$svjq("#searchBtn i.fa").removeClass("fa-times"),$svjq("#searchBtn i.fa").addClass("fa-search"),$svjq("#searchBtn").removeClass("or-colorbg"),$svjq("#searchBtn .or-mobile-nav-text").html("S\u00f6k"));c&&"contact"!==f&&($svjq("#contactBtn").removeClass("or-colorbg"),$svjq("#contactBtn i.fa").removeClass("fa-times"),
20$svjq("#contactBtn i.fa").addClass("fa-comments"),$svjq("#contactBtn").removeClass("or-colorbg"),$svjq("#contactBtn").find($svjq(".or-mobile-nav-text")).html("Kontakt"),$svjq(".or-modal").hide())}/\/edit/.test(document.URL)||($svjq(".or-puff-text-icon-lanklista").each(function(){var c=$svjq(this).find(".or-puff-img"),l=$svjq(this).find("a:last").eq(0).attr("href");c.css("cursor","pointer");c.on("click",function(){window.location=l})}),$svjq("html").delegate(".or-wrapper-click","click",function(c){if(!$svjq(c.target).is("a")&&
210<$svjq("a:first",this).length)try{$svjq("a:first",this)[0].click()}catch(l){window.location=$svjq("a:first",this).attr("href")}}));$svjq.expr[":"].contains=function(c,l,p){return 0<=$svjq(c).text().toUpperCase().indexOf(p[3].toUpperCase())};$svjq(".or-plus-box-content:not(.or-plus-box-decoration)").css("display","none");$svjq(".or-plus-box-header:not(.or-plus-box-decoration)").on("click",function(){return $svjq(this).parent().next("div.or-plus-box-content").slideToggle(),$svjq(this).toggleClass("or-plus-box-active"),
22$svjq(this).find("img.or-arrow-down-collapse").toggleClass("or-plus-box-active"),$svjq(this).find(".or-collpase-button").toggleClass("or-plus-box-active"),$svjq(this).find("h4.plusboxxrubrik").toggleClass("or-plus-box-active"),!1});$svjq(".or-contact-bar-info-container").css("display","none");$svjq(".or-contact-bar").on("click",function(){$svjq(this).parent().next().slideToggle();$svjq(this).find(".or-contact-bar-icon i").toggleClass("fa-rotate-45")});$svjq(".or-docs-box-content a").each(function(){var c=
23$svjq(this).attr("title"),l="",p="",h="";try{if(c&&0<c.length)var w=B(c.replace("(","").replace(")","").split(","),2),l=w[0],p=w[1],h="(".concat(p.replace(" ",""),")")}catch(g){console.error(g)}c='\x3cdiv class\x3d"fileiconcontainer"\x3e\x3cdiv class\x3d"iconfile '.concat(l,'"\x3e\x3c/div\x3e\x3c/div\x3e');$svjq(this).before(c);h&&$svjq(this).next().text(h)});$svjq(".or-related-documents .or-text-content a").each(function(){var c=$svjq(this).attr("title"),l=!1,p="";try{c&&0<c.length&&(l=-1!==c.indexOf("\u00f6ppnas i nytt f\u00f6nster"),
24p=c.replace("(","").replace(")","").replace("\u00f6ppnas i nytt f\u00f6nster","").split(",")[1].replace(" ",""))}catch(h){console.log("Error document icons")}p&&($svjq(this).find(".or-file-size").text(p),l&&$svjq(this).append('\x3ci style\x3d"font-size: 10px; position:static;" class\x3d"fa fa-clone fa-flip-vertical"\x3e\x3c/i\x3e'),$svjq(this).next().text(""))});var c=$svjq(".or-kontakt-och-tyck-till").length,h=$svjq("#mobileMenuBtn"),g=function(){return"true"===$svjq("#menu").attr("aria-expanded")};
25c?$svjq("#contactBtn").on("click",function(c){"#contact"===window.location.hash?($svjq(this).find($svjq("i.fa")).removeClass("fa-times"),$svjq(this).find($svjq("i.fa")).addClass("fa-comments"),$svjq(this).removeClass("or-colorbg"),$svjq(this).find($svjq(".or-mobile-nav-text")).html("Kontakt"),window.history.back()):(window.location.hash="#contact",$svjq(".or-modal").fadeIn(),$svjq(this).find($svjq("i.fa")).removeClass("fa-comments"),$svjq(this).find($svjq("i.fa")).addClass("fa-times"),$svjq(this).addClass("or-colorbg"),
26$svjq(this).find($svjq(".or-mobile-nav-text")).html("St\u00e4ng"),u("contact"))}):($svjq("#contactBtn .fa-comments").hide(),$svjq("#contactBtn .or-mobile-nav-text").hide(),$svjq("#contactBtn").addClass("disabled"));$svjq("#searchBtn").on("click",function(c){c.preventDefault();$svjq("header").is(":visible")?($svjq(this).find("i.fa").removeClass("fa-times"),$svjq(this).find("i.fa").addClass("fa-search"),$svjq(this).removeClass("or-colorbg"),$svjq(this).find(".or-mobile-nav-text").html("S\u00f6k"),$svjq("header").removeClass("or-search-mobile")):
27(window.location.hash="#search",$svjq("header").addClass("or-search-mobile"),$svjq(this).find("i.fa").removeClass("fa-search"),$svjq(this).find("i.fa").addClass("fa-times"),$svjq(this).addClass("or-colorbg"),$svjq(this).find(".or-mobile-nav-text").html("St\u00e4ng"),u("search"))});h.on("click",function(){g()?($svjq(this).attr("aria-expanded","true"),$svjq(this).find("i.fa").removeClass("fa-bars"),$svjq(this).find("i.fa").addClass("fa-times"),$svjq(this).addClass("or-colorbg"),$svjq(this).find(".or-mobile-nav-text").html("St\u00e4ng"),
28u("menu")):($svjq(this).attr("aria-expanded","false"),$svjq(this).find("i.fa").removeClass("fa-times"),$svjq(this).find("i.fa").addClass("fa-bars"),$svjq(this).removeClass("or-colorbg"),$svjq(this).find(".or-mobile-nav-text").html("Meny"))});$svjq(".sv-table-portlet table").stacktable({myClass:"stacktable small-only"})});svDocReady(function(){function u(){var c=$svjq(this),f=c.closest(".or-expandable-box").find(".sv-decoration-content"),h=function(c){var f=c.closest(".or-expandable-box").siblings();
29if(f.is("[id]"))return f.attr("id");f=c.find('div[class*\x3d"-portlet"]:first-of-type \x3e div:first-of-type');if(f.is("[id]"))return f.attr("id");f=c.find("div:first-of-type \x3e div[id]:first-of-type");return f.is("[id]")?f.attr("id"):c.attr("id")}(f);c.toggleClass("or-expandable-box__header--expand");c.attr("aria-expanded",function(c,f){return"true"===f?"false":"true"});f.slideToggle(function(){f.is(":visible")?window.history.replaceState(void 0,void 0,"#".concat(h)):window.history.replaceState(void 0,
30void 0,window.location.pathname)})}var c="".concat(".or-expandable-box","__header"),h="".concat(".tabs-plusbox","-content"),g=window.location.hash;if($svjq(".or-expandable-box").each(function(f,h){var g=$svjq(h).find(c),w=$svjq(h).find(".sv-decoration-content"),u=$svjq(h).parent().attr("id"),u="".concat(u,"-content");g.attr("aria-controls",u);w.attr("id",u);w.css("display","none")}),$svjq("".concat(".or-expandable-box",":not(").concat(".tabs-plusbox"," ").concat(".or-expandable-box",") ").concat(c)).on("click",
31u),$svjq(".tabs-plusbox:not(.sv-editable-layout)").append('\x3cdiv class\x3d"tabs-plusbox-content" /\x3e'),$svjq("".concat(".tabs-plusbox",":not(.sv-editable-layout) ").concat(c)).on("click",function(){var f=$svjq(this),g=$svjq(this).closest(".tabs-plusbox").find(h),u=$svjq(this).closest(".or-expandable-box").find(".sv-decoration-content");if(g.children().length){var w=g.find(".sv-decoration-content"),E=w.attr("id").replace(/(svid\d{2}_\d\w+)-content/g,"$1"),x=$svjq("#".concat(E)).find(".or-expandable-box");
32w.slideUp(function(){w.appendTo(x);x.find(c).attr("aria-expanded","false");x.find(c).removeClass("or-expandable-box__header--expand");w!==u&&(u.appendTo(g),u.slideDown())})}else u.appendTo(g),u.slideDown();f.attr("aria-expanded",function(c,f){return"true"===f?"false":"true"});f.toggleClass("or-expandable-box__header--expand")}),$svjq("".concat(".tabs-plusbox",".sv-editable-layout ").concat(c)).on("click",u),0!==$svjq(g).closest(".or-expandable-box").length||0!==$svjq(g).siblings(".or-expandable-box")){var f=
33$svjq(g).siblings(".or-expandable-box"),g=f.length?f.find(".sv-decoration-content"):$svjq(g).closest(".sv-decoration-content");if(!g.length)return!1;f=g.attr("id");f=$svjq("button[aria-controls\x3d".concat($svjq.escapeSelector(f),"]"));g.slideDown();f.addClass("or-expandable-box__header--expand");f.attr("aria-expanded","true");$svjq("html, body").animate({scrollTop:$svjq(f).offset().top},"slow")}});svDocReady(function(){function u(){var f=c(this).find("a").attr("href");c(this).on("click",function(){window.location=
34f})}var c=$svjq;if(-1===window.location.pathname.indexOf("edit")){var h=c(".extra-puffs \x3e .sv-layout:not(:nth-child(3))"),g=c(".extra-puffs \x3e :nth-child(3) \x3e .sv-layout");h.each(u);g.each(u)}});svDocReady(function(){function u(){var f=c(this).find("a").attr("href");c(this).on("click",function(){window.location=f})}var c=$svjq;if(-1===window.location.pathname.indexOf("edit")){var h=c(".hero-container__puffs \x3e .sv-layout:not(:nth-child(3))"),g=c(".hero-container__puffs \x3e :nth-child(3) \x3e .sv-layout");
35h.each(u);g.each(u)}});svDocReady(function(){$svjq(".fb-page").on("DOMNodeInserted","iframe",function(){$svjq(this).attr("tabindex","-1")})});svDocReady(function(){var u=$svjq("meta[property\x3d'og:url']").attr("content"),u=new URL(u),c=/\/(\w+[-+\w+]+)/.exec(u.pathname);$svjq(window).on("load",function(){null!==c&&$svjq(".sv-cookie-consent-modal").find(".env-link").attr("href","/".concat(c[1]).concat("/omwebbplatsen"))});/\/omwebbplatsen/.test(window.location.href)&&$svjq(window).on("load",function(){$svjq(".sv-cookie-consent-modal").remove();
36$svjq(".env-modal-dialog__backdrop").css("display","none");$svjq("body").css({overflow:"unset",position:"unset"})})});var I=$svjq(".feedback-form"),Va=I.find(".sv-form-portlet").attr("id"),pb=I.find("form").attr("action"),oa=I.find("textarea"),qb=$svjq("#".concat(Va)).find("textarea.sv-form-textfield"),pa=$svjq(".feedback-thanks"),qa=$svjq("label[for\x3dfeedback-yes]"),Z=$svjq("label[for\x3dfeedback-no]");/template/.test(window.location.href)&&(I.show(),pa.show());var Wa=function(u){return"keyup"===
37u.type&&" "===u.key||"keyup"===u.type&&"Enter"===u.key||"click"===u.type};$svjq(window).on("load",function(){/state=create/.test(window.location.href)&&location.hash==="#".concat(Va)&&(pa.show(),Z.addClass("selected"),qa.addClass("disabled"),$svjq("html, body").animate({scrollTop:pa.offset().top},2E3))});Z.on("click keyup",function(u){if(u.preventDefault(),!Wa(u))return!0;Z.addClass("selected");qa.addClass("disabled");I.slideDown();$svjq("html, body").animate({scrollTop:I.offset().top},2E3);
37qb.focus()});
38qa.on("click keyup",function(u){if(u.preventDefault(),!Wa(u))return!0;qa.addClass("selected");Z.addClass("disabled");pa.slideDown()});oa.on("keyup",function(){I.find("form").attr("action",pb)});$svjq(window).on("load",function(){I.find("form").attr("action","#")});svDocReady(function(){var u="https://cdn-eu.readspeaker.com/script/".concat("4332","/webReader/webReader.js?pids\x3dwr\x26notools\x3d1"),c=function(){$svjq(".or-expandable-box__header").trigger("click")},h=function(h){null===document.getElementById("rs_req_Init")?
39(new Promise(function(c,h){var g=document.createElement("script");g.id="rs_req_Init";g.src=u;document.head.appendChild(g);g.onerror=function(){return h(Error("Script failed to load"))};g.onload=function(){return c(ReadSpeaker.init())}})).then(function(){readpage(h,"xp1");var f=document.createElement("style");f.setAttribute("type","text/css");f.id="rsCSS";f.styleSheet?f.styleSheet.cssText=".rs_splitbutton .rsbtn_exp .rsbtn_exp_inner button.rsbtn_pause.rsbtn_player_item {\n      padding-left: 0px !important;\n      padding-right: 0px !important;\n    }":
40f.appendChild(document.createTextNode(".rs_splitbutton .rsbtn_exp .rsbtn_exp_inner button.rsbtn_pause.rsbtn_player_item {\n      padding-left: 0px !important;\n      padding-right: 0px !important;\n    }"));document.head.appendChild(f);c()}).catch(function(c){return console.error(c)}):(readpage(h,"xp1"),c())};window.rsConf={cb:{ui:{close:function(){c()}}}};$svjq(".rs_href").on("click",function(c){c.preventDefault();c=$svjq(c.currentTarget).attr("href");$svjq("".concat("xp1")).length||$svjq(document.body).append('\x3cdiv id\x3d"xp1" class\x3d"rs_addtools rs_splitbutton rs_preserve rs_skip rs_exp"\x3e\x3c/div\x3e');
41h(c)})});var P="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},oa={},oa=function c(h,g,f){function l(w,r){if(!g[w]){if(!h[w]){if(!r&&D)return D(w);if(p)return p(w,!0);var x=Error("Cannot find module '"+w+"'");throw x.code="MODULE_NOT_FOUND",x;}x=g[w]={exports:{}};h[w][0].call(x.exports,function(c){return l(h[w][1][c]||c)},x,x.exports,c,h,g,f)}return g[w].exports}for(var p=D,r=0;r<f.length;r++)l(f[r]);return l}({1:[function(c,
42h){function g(a,b){if(!(a instanceof b))throw new TypeError("Cannot call a class as a function");}function f(a){return a&&"object"===(void 0===a?"undefined":Yb(a))&&"default"in a?a.default:a}function l(){var a={activeElement:document.activeElement,windowScrollTop:window.scrollTop,windowScrollLeft:window.scrollLeft,bodyScrollTop:document.body.scrollTop,bodyScrollLeft:document.body.scrollLeft},b=document.createElement("iframe");b.setAttribute("style","position:absolute; position:fixed; top:0; left:-2px; width:1px; height:1px; overflow:hidden;");
43b.setAttribute("aria-live","off");b.setAttribute("aria-busy","true");b.setAttribute("aria-hidden","true");document.body.appendChild(b);var e=b.contentWindow,k=e.document;k.open();k.close();var d=k.createElement("div");return k.body.appendChild(d),a.iframe=b,a.wrapper=d,a.window=e,a.document=k,a}function p(a){a.activeElement===document.body?(document.activeElement&&document.activeElement.blur&&document.activeElement.blur(),t.is.IE10&&document.body.focus()):a.activeElement&&a.activeElement.focus&&a.activeElement.focus();
44document.body.removeChild(a.iframe);window.scrollTop=a.windowScrollTop;window.scrollLeft=a.windowScrollLeft;document.body.scrollTop=a.bodyScrollTop;document.body.scrollLeft=a.bodyScrollLeft}function r(a,b){if(document.hasFocus())try{window.localStorage&&window.localStorage.setItem(a,JSON.stringify(b))}catch(e){}else try{window.localStorage&&window.localStorage.removeItem(a)}catch(e){}}function w(a){return'\x3csvg xmlns\x3d"http://www.w3.org/2000/svg" xmlns:xlink\x3d"http://www.w3.org/1999/xlink"\x3e'+
45a+"\x3c/svg\x3e"}function E(a,b,e){if(!b.focus)try{HTMLElement.prototype.focus.call(b)}catch(k){Zb(b)}return e.activeElement===b}function x(){var a=Kc(Lc);return Object.keys($b).forEach(function(b){a[b]=$b[b]()}),a}function O(){Mc.warn("trying to focus inert element",this)}function da(a){Nc.some(function(b){return!!a[b]&&(rb=b,!0)})}function J(a,b){return rb||da(a),a[rb](b)}function ea(a){a=a.webkitUserModify||"";return Boolean(a&&-1!==a.indexOf("write"))}function y(a){return[a.getPropertyValue("overflow"),
46a.getPropertyValue("overflow-x"),a.getPropertyValue("overflow-y")].some(function(a){return"auto"===a||"scroll"===a})}function aa(a){return-1<a.display.indexOf("flex")}function B(a,b,e,k){return!("div"!==b&&"span"!==b||e&&"div"!==e&&"span"!==e&&!y(k)||!(a.offsetHeight<a.scrollHeight||a.offsetWidth<a.scrollWidth))}function S(){var a=0<arguments.length&&void 0!==arguments[0]?arguments[0]:{},b=a.context,a=a.except,a=void 0===a?{flexbox:!1,scrollable:!1,shadow:!1}:a;G||(G=T());var e=H({label:"is/focus-relevant",
47resolveDocument:!0,context:b});if(!a.shadow&&e.shadowRoot)return!0;b=e.nodeName.toLowerCase();if("input"===b&&"hidden"===e.type)return!1;if("input"===b||"select"===b||"button"===b||"textarea"===b||"legend"===b&&G.focusRedirectLegend||"label"===b||"area"===b||"a"===b&&e.hasAttribute("href"))return!0;
47if("object"===b&&e.hasAttribute("usemap"))return!1;if("object"===b){var k=e.getAttribute("type");if(!G.focusObjectSvg&&"image/svg+xml"===k||!G.focusObjectSwf&&"application/x-shockwave-flash"===k)return!1}if("iframe"===
48b||"object"===b||"embed"===b||"keygen"===b||e.hasAttribute("contenteditable")||"audio"===b&&(G.focusAudioWithoutControls||e.hasAttribute("controls"))||"video"===b&&(G.focusVideoWithoutControls||e.hasAttribute("controls"))||G.focusSummary&&"summary"===b)return!0;k=Xa(e);if("img"===b&&e.hasAttribute("usemap"))return k&&G.focusImgUsemapTabindex||G.focusRedirectImgUsemap;if(G.focusTable&&("table"===b||"td"===b)||G.focusFieldset&&"fieldset"===b)return!0;var d="svg"===b,c=e.ownerSVGElement,q=e.getAttribute("focusable"),
49f=U(e);if("use"===b&&null!==f&&!G.focusSvgUseTabindex)return!1;if("foreignobject"===b)return null!==f&&G.focusSvgForeignobjectTabindex;if(J(e,"svg a")&&e.hasAttribute("xlink:href"))return!0;if((d||c)&&e.focus&&!G.focusSvgNegativeTabindexAttribute&&0>f)return!1;if(d)return k||G.focusSvg||G.focusSvgInIframe||Boolean(G.focusSvgFocusableAttribute&&q&&"true"===q);if(c){if(G.focusSvgTabindexAttribute&&k)return!0;if(G.focusSvgFocusableAttribute)return"true"===q}if(k)return!0;k=window.getComputedStyle(e,
50null);if(ea(k)||G.focusImgIsmap&&"img"===b&&e.hasAttribute("ismap")&&V({context:e}).some(function(a){return"a"===a.nodeName.toLowerCase()&&a.hasAttribute("href")}))return!0;if(!a.scrollable&&G.focusScrollContainer)if(G.focusScrollContainerWithoutOverflow){if(B(e,b))return!0}else if(y(k))return!0;if(!a.flexbox&&G.focusFlexboxContainer&&aa(k))return!0;e=e.parentElement;return!a.scrollable&&e&&(a=e.nodeName.toLowerCase(),k=window.getComputedStyle(e,null),G.focusScrollBody&&B(e,b,a,k)||G.focusChildrenOfFocusableFlexbox&&
51aa(k))?!0:!1}function F(a,b){if(a.findIndex)return a.findIndex(b);var e=a.length;if(0===e)return-1;for(var k=0;e>k;k++)if(b(a[k],k,a))return k;return-1}function sb(a){if(tb||(tb=ub("object, iframe")),void 0!==a._frameElement)return a._frameElement;a._frameElement=null;var b=a.parent.document.querySelectorAll(tb);return[].some.call(b,function(b){var k;try{k=b.contentDocument||b.contentWindow&&b.contentWindow.document||b.getSVGDocument&&b.getSVGDocument()||null}catch(d){k=null}return k===a.document&&
52(a._frameElement=b,!0)}),a._frameElement}function L(a){a=Q(a).defaultView||window;if(!a.parent||a.parent===a)return null;try{return a.frameElement||sb(a)}catch(b){return null}}function R(a){return a.some(function(a){return"none"===window.getComputedStyle(a,null).getPropertyValue("display")})}function za(a){var b=F(a,function(a){a=window.getComputedStyle(a,null).getPropertyValue("visibility");return"hidden"===a||"collapse"===a});if(-1===b)return!1;a=F(a,function(a){return"visible"===window.getComputedStyle(a,
53null).getPropertyValue("visibility")});return-1===a||a>b}function Ya(a){var b=1;return"summary"===a[0].nodeName.toLowerCase()&&(b=2),a.slice(b).some(function(a){return"details"===a.nodeName.toLowerCase()&&!1===a.open})}function q(){var a=0<arguments.length&&void 0!==arguments[0]?arguments[0]:{},b=a.except,b=void 0===b?{notRendered:!1,cssDisplay:!1,cssVisibility:!1,detailsElement:!1,browsingContext:!1}:b,a=H({label:"is/visible",resolveDocument:!0,context:a.context}),e=a.nodeName.toLowerCase();if(!b.notRendered&&
54Pc.test(e))return!0;var k=V({context:a}),e="audio"===e&&!a.hasAttribute("controls");return!b.cssDisplay&&R(e?k.slice(1):k)||!b.cssVisibility&&za(k)||!b.detailsElement&&Ya(k)||!b.browsingContext&&(a=L(a),b=q.except(b),a&&!b(a))?!1:!0}function ac(a,b){return b.querySelector('map[name\x3d"'+bc(a)+'"]')||null}function cc(a){var b=a.parentElement;return b.name&&"map"===b.nodeName.toLowerCase()&&Q(a).querySelector('img[usemap\x3d"#'+bc(b.name)+'"]')||null}function Qc(a){return"fieldset"===a.nodeName.toLowerCase()&&
55a.disabled}function Rc(a){return"form"===a.nodeName.toLowerCase()&&a.disabled}function Za(){var a=0<arguments.length&&void 0!==arguments[0]?arguments[0]:{},b=a.except,b=void 0===b?{onlyFocusableBrowsingContext:!1,visible:!1}:b,a=H({label:"is/only-tabbable",resolveDocument:!0,context:a.context});if(!b.visible&&!ra(a)||!b.onlyFocusableBrowsingContext&&(t.is.GECKO||t.is.TRIDENT||t.is.EDGE)&&(b=L(a))&&0>U(b))return!1;var b=a.nodeName.toLowerCase(),e=U(a);return"label"===b&&t.is.GECKO?null!==e&&0<=e:!!(t.is.GECKO&&
56a.ownerSVGElement&&!a.focus&&"a"===b&&a.hasAttribute("xlink:href")&&t.is.GECKO)}function v(a){var b=a.nodeName.toLowerCase();if("embed"===b||"keygen"===b)return!0;var e=U(a);return a.shadowRoot&&null===e?!0:"label"===b?!ba.focusLabelTabindex||null===e:"legend"===b?null===e:ba.focusSvgFocusableAttribute&&(a.ownerSVGElement||"svg"===b)?(a=a.getAttribute("focusable"))&&"false"===a:"img"===b&&a.hasAttribute("usemap")?null===e||!ba.focusImgUsemapTabindex:"area"===b&&!dc(a)}function d(){var a=0<arguments.length&&
57void 0!==arguments[0]?arguments[0]:{},b=a.context,a=a.except,a=void 0===a?{disabled:!1,visible:!1,onlyTabbable:!1}:a;ba||(ba=T());var e=ec.rules.except({onlyFocusableBrowsingContext:!0,visible:a.visible}),b=H({label:"is/focusable",resolveDocument:!0,context:b});if(!Aa.rules({context:b,except:a})||v(b)||!a.disabled&&fc(b)||!a.onlyTabbable&&e(b)||!a.visible&&(a={context:b,except:{}},ba.focusInHiddenIframe&&(a.except.browsingContext=!0),ba.focusObjectSvgHidden&&"object"===b.nodeName.toLowerCase()&&(a.except.cssVisibility=
58!0),!ra.rules(a)))return!1;a=L(b);return!(a&&!("object"!==a.nodeName.toLowerCase()||ba.focusInZeroDimensionObject||a.offsetWidth&&a.offsetHeight)||"svg"===b.nodeName.toLowerCase()&&ba.focusSvgInIframe&&!a&&null===b.getAttribute("tabindex"))}function gc(a){var b=function(b){return b.shadowRoot||a(b)?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP};return b.acceptNode=b,b}function hc(){var a=0<arguments.length&&void 0!==arguments[0]?arguments[0]:{},b=a.context,e=a.includeContext,k=a.includeOnlyTabbable,
59a=a.strategy;b||(b=document.documentElement);for(var d=fa.rules.except({onlyTabbable:k}),c=Q(b).createTreeWalker(b,NodeFilter.SHOW_ELEMENT,"all"===a?Sc:gc(d),!1),q=[];c.nextNode();)c.currentNode.shadowRoot?(d(c.currentNode)&&q.push(c.currentNode),q=q.concat(hc({context:c.currentNode.shadowRoot,includeOnlyTabbable:k,strategy:a}))):q.push(c.currentNode);return e&&("all"===a?Aa(b)&&q.unshift(b):d(b)&&q.unshift(b)),q}function Tc(){var a=0<arguments.length&&void 0!==arguments[0]?arguments[0]:{},b=a.context,
60e=a.includeContext,a=a.includeOnlyTabbable,k=(ja||(ja=T()),"string"==typeof Ba?Ba:(Ba=(ja.focusTable?"table, td,":"")+(ja.focusFieldset?"fieldset,":"")+"svg a,a[href],area[href],input, select, textarea, button,iframe, object, embed,keygen,"+(ja.focusAudioWithoutControls?"audio,":"audio[controls],")+(ja.focusVideoWithoutControls?"video,":"video[controls],")+(ja.focusSummary?"summary,":"")+"[tabindex],[contenteditable]",Ba=ub(Ba))),k=b.querySelectorAll(k),a=fa.rules.except({onlyTabbable:a}),k=[].filter.call(k,
61a);return e&&a(b)&&k.unshift(b),k}function D(){var a=0<arguments.length&&void 0!==arguments[0]?arguments[0]:{},b=a.context,a=a.except,e=void 0===a?{flexbox:!1,scrollable:!1,shadow:!1,visible:!1,onlyTabbable:!1}:a;sa||(sa=T());b=H({label:"is/tabbable",resolveDocument:!0,context:b});if(t.is.BLINK&&t.is.ANDROID&&42<t.majorVersion)return!1;var k=L(b);if(k&&(t.is.WEBKIT&&t.is.IOS||0>U(k)||!e.visible&&(t.is.BLINK||t.is.WEBKIT)&&!ra(k)||"object"===k.nodeName.toLowerCase()&&(a="Chrome"===t.name&&54<=t.majorVersion||
62"Opera"===t.name&&41<=t.majorVersion,t.is.WEBKIT||t.is.BLINK&&!a)))return!1;
62var a=b.nodeName.toLowerCase(),d=U(b),c=null===d?null:0<=d;if(t.is.EDGE&&14<=t.majorVersion&&k&&b.ownerSVGElement&&0>d)return!0;var q=!1!==c,k=null!==d&&0<=d;if(b.hasAttribute("contenteditable"))return q;if(Uc.test(a)&&!0!==c||t.is.WEBKIT&&t.is.IOS&&(c="input"===a&&"text"===b.type||"password"===b.type||"select"===a||"textarea"===a||b.hasAttribute("contenteditable"),c||(c=ea(window.getComputedStyle(b,null))),!c))return!1;if("use"===
63a&&null!==d&&(t.is.BLINK||t.is.WEBKIT&&9===t.majorVersion)||J(b,"svg a")&&b.hasAttribute("xlink:href")&&(q||b.focus&&!sa.focusSvgNegativeTabindexAttribute)||"svg"===a&&sa.focusSvgInIframe&&q)return!0;if(t.is.TRIDENT||t.is.EDGE){if("svg"===a)return!!sa.focusSvg||b.hasAttribute("focusable")||k;if(b.ownerSVGElement)return!(!sa.focusSvgTabindexAttribute||!k)||b.hasAttribute("focusable")}if(void 0===b.tabIndex)return Boolean(e.onlyTabbable);if("audio"===a){if(!b.hasAttribute("controls"))return!1;if(t.is.BLINK)return!0}if("video"===
64a)if(b.hasAttribute("controls")){if(t.is.BLINK||t.is.GECKO)return!0}else if(t.is.TRIDENT||t.is.EDGE)return!1;if("object"===a&&(t.is.BLINK||t.is.WEBKIT)||"iframe"===a)return!1;if(!e.scrollable&&t.is.GECKO&&y(window.getComputedStyle(b,null)))return q;if(t.is.TRIDENT||t.is.EDGE){if("area"===a&&(c=cc(b))&&0>U(c))return!1;c=window.getComputedStyle(b,null);if(ea(c))return 0<=b.tabIndex;if(!e.flexbox&&aa(c))return null!==d?k:Vc(b)&&Wc(b);if(B(b,a))return!1;if(e=b.parentElement){d=e.nodeName.toLowerCase();
65c=window.getComputedStyle(e,null);if(B(e,a,d,c))return!1;if(aa(c))return k}}return 0<=b.tabIndex}function I(a,b){return a.compareDocumentPosition(b)&Node.DOCUMENT_POSITION_FOLLOWING?-1:1}function Xc(a,b){return F(a,function(a){return b.compareDocumentPosition(a)&Node.DOCUMENT_POSITION_FOLLOWING})}function Y(a,b,e){var k=[];return b.forEach(function(b){var d=!0,c=a.indexOf(b);-1===c&&(c=Xc(a,b),d=!1);-1===c&&(c=a.length);b=M(e?e(b):b);b.length&&k.push({offset:c,replace:d,elements:b})}),k}function oa(a,
66b){var e=0;b.sort(function(a,b){return a.offset-b.offset});b.forEach(function(b){var d=b.replace?1:0,c=[b.offset+e,d].concat(b.elements);a.splice.apply(a,c);e+=b.elements.length-d})}function pa(a){a=a.nodeName.toLowerCase();return"input"===a||"textarea"===a||"select"===a||"button"===a}function qa(a){var b=V({context:a}).slice(1).map(function(a){return{element:a,scrollTop:a.scrollTop,scrollLeft:a.scrollLeft}});return function(){b.forEach(function(a){a.element.scrollTop=a.scrollTop;a.element.scrollLeft=
67a.scrollLeft})}}function W(){(0<arguments.length&&void 0!==arguments[0]?arguments[0]:{}).force?this.instances=0:this.instances--;this.instances||(this.disengage(),this._result=null)}function Yc(){return this.instances?(this.instances++,this._result):(this.instances++,this._result=this.engage()||{},this._result.disengage=W.bind(this),this._result)}function ka(){}function la(){if(document.activeElement){if(document.activeElement!==$a){var a=new Zc("active-element",{bubbles:!1,cancelable:!1,detail:{focus:document.activeElement,
68blur:$a}});document.dispatchEvent(a);$a=document.activeElement}}else document.body.focus();!1!==Ca&&(Ca=requestAnimationFrame(la))}function X(){this.context&&(this.context.forEach(this.disengage),this.context=null,this.engage=null,this.disengage=null)}function C(){return this.context=M((0<arguments.length&&void 0!==arguments[0]?arguments[0]:{}).context||document),this.context.forEach(this.engage),{disengage:X.bind(this)}}function m(){}function A(){var a=0<arguments.length&&void 0!==arguments[0]?arguments[0]:
69{},b=a.parent,e=a.element,k=a.includeSelf;if(b)return function(a){return Boolean(k&&a===b||b.compareDocumentPosition(a)&Node.DOCUMENT_POSITION_CONTAINED_BY)};if(e)return function(a){return Boolean(k&&e===a||a.compareDocumentPosition(e)&Node.DOCUMENT_POSITION_CONTAINED_BY)};throw new TypeError("util/compare-position#getParentComparator required either options.parent or options.element");}function N(a){var b=a.context,e=a.filter,k=function(a){a=A({parent:a});return e.some(a)},d=[];a=function(a){return e.some(function(b){return a===
70b})?NodeFilter.FILTER_REJECT:k(a)?NodeFilter.FILTER_ACCEPT:(d.push(a),NodeFilter.FILTER_REJECT)};a.acceptNode=a;for(b=Q(b).createTreeWalker(b,NodeFilter.SHOW_ELEMENT,a,!1);b.nextNode(););return d}function n(){var a=(0<arguments.length&&void 0!==arguments[0]?arguments[0]:{}).context,b=H({label:"query/shadow-hosts",resolveDocument:!0,defaultToDocument:!0,context:a}),a=Q(a).createTreeWalker(b,NodeFilter.SHOW_ELEMENT,vb,!1),e=[];for(b.shadowRoot&&(e.push(b),e=e.concat(n({context:b.shadowRoot})));a.nextNode();)e.push(a.currentNode),
71e=e.concat(n({context:a.currentNode.shadowRoot}));return e}function wb(a){ta({element:a,attribute:"aria-hidden",temporaryValue:"true"})}function $c(a){ta({element:a,attribute:"aria-hidden"})}function xb(a,b){return yb.tabsequenceAreaAtImgPosition&&(a=ad(a,b)),bd(a)}function cd(a){a=!!a&&null;
71return{altKey:a,ctrlKey:a,metaKey:a,shiftKey:a}}function dd(a){var b=cd(-1!==a.indexOf("*"));return a.forEach(function(a){if("*"!==a){var k=!0,d=a.slice(0,1);"?"===d?k=null:"!"===d&&(k=!1);!0!==k&&(a=a.slice(1));
72d=zb[a];if(!d)throw new TypeError('Unknown modifier "'+a+'"');b[d]=k}}),b}function ed(a,b){return!fd.some(function(e){return"boolean"==typeof a[e]&&Boolean(b[e])!==a[e]})}function ic(){ua=ma=0}function Z(a){!1!==a.isPrimary&&ma++}function P(a){return!1!==a.isPrimary?a.touches?void(ma=a.touches.length):void(window.setImmediate||window.setTimeout)(function(){ma=Math.max(ma-1,0)}):void 0}function K(a){switch(a.keyCode||a.which){case 16:case 17:case 18:case 91:case 93:return}ua++}function ya(a){switch(a.keyCode||
73a.which){case 16:case 17:case 18:case 91:case 93:return}(window.setImmediate||window.setTimeout)(function(){ua=Math.max(ua-1,0)})}function Pa(){return{pointer:Boolean(ma),key:Boolean(ua)}}function Ua(a){return a.hasAttribute("autofocus")}function Va(a){return 0>=a.tabIndex}function Da(a,b,e){var k;k=a.getAttribute&&a.getAttribute("class")||"";k=""===k?[]:k.split(" ");var d=k.indexOf(b),c=-1!==d;e=void 0!==e?e:!c;e!==c&&(e||k.splice(d,1),e&&k.push(b),a.setAttribute("class",k.join(" ")))}function ga(a){var b=
74"";a.type===Ab||"shadow-focus"===a.type?(b=Bb.get(),b=ab||b.pointer&&"pointer"||b.key&&"key"||"script"):"initial"===a.type&&(b="initial");document.documentElement.setAttribute("data-focus-source",b);a.type!==bb&&(Ea[b]||Da(document.documentElement,"focus-source-"+b,!0),Ea[b]=!0,Cb=b)}function Wa(){return Cb}function lb(a){return Ea[a]}function mb(a){ab=a}function nb(){ab=!1}function cb(a){a=a||Db();Eb.cssShadowPiercingDeepCombinator||(a=a.slice(-1));var b=[].slice.call(document.querySelectorAll(Fb),
750),e=a.map(function(a){return V({context:a})}).reduce(function(a,b){return b.concat(a)},[]);b.forEach(function(a){-1===e.indexOf(a)&&Da(a,db,!1)});e.forEach(function(a){-1===b.indexOf(a)&&Da(a,db,!0)})}function Qa(){Gb=(window.setImmediate||window.setTimeout)(function(){cb()})}function Ra(){(window.clearImmediate||window.clearTimeout)(Gb);cb()}function Sa(a){cb(a.detail.elements)}function Hb(a,b){var e=Math.max(a.top,b.top),k=Math.max(a.left,b.left),d=Math.max(Math.min(a.right,b.right),k),c=Math.max(Math.min(a.bottom,
76b.bottom),e);return{top:e,right:d,bottom:c,left:k,width:d-k,height:c-e}}function Ta(a){var b=a.getBoundingClientRect(),e=a.offsetWidth-a.clientWidth;a=a.offsetHeight-a.clientHeight;b={top:b.top,left:b.left,right:b.right-e,bottom:b.bottom-a,width:b.width-e,height:b.height-a,area:0};return b.area=b.width*b.height,b}function ob(a){var b=window.getComputedStyle(a,null);return!("visible"===b.getPropertyValue("overflow-x")||"visible"===b.getPropertyValue("overflow-y"))&&(a.offsetHeight<a.scrollHeight||
77a.offsetWidth<a.scrollWidth)}function pb(a){a=V({context:a}).slice(1).filter(ob);return a.length?a.reduce(function(a,e){var k=Ta(e),d=Hb(k,a);return d.area=Math.min(k.area,a.area),d},Ta(a[0])):null}$jscomp.initSymbol();$jscomp.initSymbol();$jscomp.initSymbolIterator();var Fa=function(){function a(a,e){for(var k=0;k<e.length;k++){var d=e[k];d.enumerable=d.enumerable||!1;d.configurable=!0;"value"in d&&(d.writable=!0);Object.defineProperty(a,d.key,d)}}return function(b,e,k){return e&&a(b.prototype,e),
78k&&a(b,k),b}}(),Yb="function"==typeof Symbol&&"symbol"==z(Symbol.iterator)?function(a){return z(a)}:function(a){$jscomp.initSymbol();$jscomp.initSymbol();$jscomp.initSymbol();return a&&"function"==typeof Symbol&&a.constructor===Symbol&&a!==Symbol.prototype?"symbol":z(a)},qb=f(c("platform")),bc=f(c("css.escape")),M=function(a){if(!a)return[];if(Array.isArray(a))return a;if(void 0!==a.nodeType)return[a];if("string"==typeof a&&(a=document.querySelectorAll(a)),void 0!==a.length)return[].slice.call(a,
790);throw new TypeError("unexpected input "+String(a));},H=function(a){var b=a.label,b=void 0===b?"context-to-element":b,e=a.resolveDocument,k=a.defaultToDocument;a=M(a.context)[0];if(e&&a&&a.nodeType===Node.DOCUMENT_NODE&&(a=a.documentElement),!a&&k
79)return document.documentElement;if(!a)throw new TypeError(b+" requires valid options.context");if(a.nodeType!==Node.ELEMENT_NODE&&a.nodeType!==Node.DOCUMENT_FRAGMENT_NODE)throw new TypeError(b+" requires options.context to be an Element");return a},va=
80function(){for(var a=H({label:"get/shadow-host",context:(0<arguments.length&&void 0!==arguments[0]?arguments[0]:{}).context}),b=null;a;)b=a,a=a.parentNode;return b.nodeType===b.DOCUMENT_FRAGMENT_NODE&&b.host?b.host:null},Q=function(a){return a?a.nodeType===Node.DOCUMENT_NODE?a:a.ownerDocument||document:document},ha=function(a){a=H({label:"is/active-element",resolveDocument:!0,context:a});if(Q(a).activeElement===a)return!0;var b=va({context:a});return!(!b||b.shadowRoot.activeElement!==a)},t=JSON.parse(JSON.stringify(qb)),
81eb=t.os.family||"",Xb="Android"===eb,gd="Windows"===eb.slice(0,7),hd="OS X"===eb,id="iOS"===eb,jd="Blink"===t.layout,kd="Gecko"===t.layout,fb="Trident"===t.layout,ld="EdgeHTML"===t.layout,md="WebKit"===t.layout,nd=parseFloat(t.version),gb=Math.floor(nd);t.majorVersion=gb;t.is={ANDROID:Xb,WINDOWS:gd,OSX:hd,IOS:id,BLINK:jd,GECKO:kd,TRIDENT:fb,EDGE:ld,WEBKIT:md,IE9:fb&&9===gb,IE10:fb&&10===gb,IE11:fb&&11===gb};var Kc=function(a){var b=l(),e={};return Object.keys(a).map(function(k){var d;d=a[k];b.wrapper.innerHTML=
82"";var c="string"==typeof d.element?b.document.createElement(d.element):d.element(b.wrapper,b.document),q=d.mutate&&d.mutate(c,b.wrapper,b.document);d=(q||!1===q||(q=c),!c.parentNode&&b.wrapper.appendChild(c),q&&q.focus&&q.focus(),d.validate?d.validate(c,q,b.document):b.document.activeElement===q);e[k]=d}),p(b),e},jc="undefined"!=typeof window&&window.navigator.userAgent||"",ca=function(a){var b=void 0;try{b=(b=window.localStorage&&window.localStorage.getItem(a))?JSON.parse(b):{}}catch(e){b={}}return b}("ally-supports-cache");
83ca.userAgent===jc&&"1.4.1"===ca.version||(ca={});ca.userAgent=jc;ca.version="1.4.1";var Ib={get:function(){return ca},set:function(a){Object.keys(a).forEach(function(b){ca[b]=a[b]});ca.time=(new Date).toISOString();r("ally-supports-cache",ca)}},kc=function(){var a=void 0;try{document.querySelector("html \x3e\x3e\x3e :first-child"),a="\x3e\x3e\x3e"}catch(b){try{document.querySelector("html /deep/ :first-child"),a="/deep/"}catch(e){a=""}}return a},od=!t.is.WEBKIT,pd=!t.is.IE9,Zb=function(a){if(!a.ownerSVGElement&&
84"svg"!==a.nodeName.toLowerCase())return!1;var b;b=document.createElement("div");b=(b.innerHTML='\x3csvg\x3e\x3cforeignObject width\x3d"30" height\x3d"30"\x3e\n      \x3cinput type\x3d"text"/\x3e\n  \x3c/foreignObject\x3e\x3c/svg\x3e',b.firstChild.firstChild);a.appendChild(b);var e=b.querySelector("input");return e.focus(),e.disabled=!0,a.removeChild(b),!0},qd=Boolean(t.is.GECKO&&"undefined"!=typeof SVGElement&&SVGElement.prototype.focus),rd=t.is.GECKO||t.is.TRIDENT||t.is.EDGE,$b={cssShadowPiercingDeepCombinator:kc,
85focusInZeroDimensionObject:function(){return od},focusObjectSwf:function(){return pd},focusSvgInIframe:function(){return qd},tabsequenceAreaAtImgPosition:function(){return rd}},Lc={focusAreaImgTabindex:{element:"div",mutate:function(a){return a.innerHTML='\x3cmap name\x3d"image-map-tabindex-test"\x3e\x3carea shape\x3d"rect" coords\x3d"63,19,144,45"\x3e\x3c/map\x3e\x3cimg usemap\x3d"#image-map-tabindex-test" tabindex\x3d"-1" alt\x3d"" src\x3d"data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7"\x3e',
86a.querySelector("area")}},focusAreaTabindex:{element:"div",mutate:function(a){return a.innerHTML='\x3cmap name\x3d"image-map-tabindex-test"\x3e\x3carea href\x3d"#void" tabindex\x3d"-1" shape\x3d"rect" coords\x3d"63,19,144,45"\x3e\x3c/map\x3e\x3cimg usemap\x3d"#image-map-tabindex-test" alt\x3d"" src\x3d"data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7"\x3e',!1},validate:function(a,b,e){if(t.is.GECKO)return!0;a=a.querySelector("area");return a.focus(),e.activeElement===
87a}},focusAreaWithoutHref:{element:"div",mutate:function(a){return a.innerHTML='\x3cmap name\x3d"image-map-area-href-test"\x3e\x3carea shape\x3d"rect" coords\x3d"63,19,144,45"\x3e\x3c/map\x3e\x3cimg usemap\x3d"#image-map-area-href-test" alt\x3d"" src\x3d"data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7"\x3e',a.querySelector("area")},validate:function(a,b,e){return!!t.is.GECKO||e.activeElement===b}},focusAudioWithoutControls:{name:"can-focus-audio-without-control
87s",element:"audio",
88mutate:function(a){try{a.setAttribute("src","data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7")}catch(b){}}},focusBrokenImageMap:{element:"div",mutate:function(a){return a.innerHTML='\x3cmap name\x3d"broken-image-map-test"\x3e\x3carea href\x3d"#void" shape\x3d"rect" coords\x3d"63,19,144,45"\x3e\x3c/map\x3e\x3cimg usemap\x3d"#broken-image-map-test" alt\x3d"" src\x3d"data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///ZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZ"\x3e',a.querySelector("area")}},
89focusChildrenOfFocusableFlexbox:{element:"div",mutate:function(a){return a.setAttribute("tabindex","-1"),a.setAttribute("style","display: -webkit-flex; display: -ms-flexbox; display: flex;"),a.innerHTML='\x3cspan style\x3d"display: block;"\x3ehello\x3c/span\x3e',a.querySelector("span")}},focusFieldsetDisabled:{element:"fieldset",mutate:function(a){a.setAttribute("tabindex",0);a.setAttribute("disabled","disabled")}},focusFieldset:{element:"fieldset",mutate:function(a){a.innerHTML="\x3clegend\x3elegend\x3c/legend\x3e\x3cp\x3econtent\x3c/p\x3e"}},
90focusFlexboxContainer:{element:"span",mutate:function(a){a.setAttribute("style","display: -webkit-flex; display: -ms-flexbox; display: flex;");a.innerHTML='\x3cspan style\x3d"display: block;"\x3ehello\x3c/span\x3e'}},focusFormDisabled:{element:"form",mutate:function(a){a.setAttribute("tabindex",0);a.setAttribute("disabled","disabled")}},focusImgIsmap:{element:"a",mutate:function(a){return a.href="#void",a.innerHTML='\x3cimg ismap src\x3d"data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7" alt\x3d""\x3e',
91a.querySelector("img")}},focusImgUsemapTabindex:{element:"div",mutate:function(a){return a.innerHTML='\x3cmap name\x3d"image-map-tabindex-test"\x3e\x3carea href\x3d"#void" shape\x3d"rect" coords\x3d"63,19,144,45"\x3e\x3c/map\x3e\x3cimg usemap\x3d"#image-map-tabindex-test" tabindex\x3d"-1" alt\x3d"" src\x3d"data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7"\x3e',a.querySelector("img")}},focusInHiddenIframe:{element:function(a,b){var e=b.createElement("iframe");a.appendChild(e);
92var k=e.contentWindow.document;return k.open(),k.close(),e},mutate:function(a){a.style.visibility="hidden";a=a.contentWindow.document;var b=a.createElement("input");return a.body.appendChild(b),b},validate:function(a){a=a.contentWindow.document;var b=a.querySelector("input");return a.activeElement===b}},focusInvalidTabindex:{element:"div",mutate:function(a){a.setAttribute("tabindex","invalid-value")}},focusLabelTabindex:{element:"label",mutate:function(a){a.setAttribute("tabindex","-1")},validate:function(a,
93b,e){return a.offsetHeight,a.focus(),e.activeElement===a}},focusObjectSvg:{name:"can-focus-object-svg",element:"object",mutate:function(a){a.setAttribute("type","image/svg+xml");a.setAttribute("data","data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHhtbG5zOnhsaW5rPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5L3hsaW5rIiBpZD0ic3ZnIj48dGV4dCB4PSIxMCIgeT0iMjAiIGlkPSJzdmctbGluay10ZXh0Ij50ZXh0PC90ZXh0Pjwvc3ZnPg\x3d\x3d");a.setAttribute("width","200");a.setAttribute("height","50")},validate:function(a,
94b,e){return!!t.is.GECKO||e.activeElement===a}},focusObjectSvgHidden:{element:"object",mutate:function(a){a.setAttribute("type","image/svg+xml");a.setAttribute("data","data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHhtbG5zOnhsaW5rPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5L3hsaW5rIiBpZD0ic3ZnIj48dGV4dCB4PSIxMCIgeT0iMjAiIGlkPSJzdmctbGluay10ZXh0Ij50ZXh0PC90ZXh0Pjwvc3ZnPg\x3d\x3d");a.setAttribute("width","200");a.setAttribute("height","50");a.style.visibility="hidden"}},focusRedirectImgUsemap:{element:"div",
95mutate:function(a){return a.innerHTML='\x3cmap name\x3d"focus-redirect-img-usemap"\x3e\x3carea href\x3d"#void" shape\x3d"rect" coords\x3d"63,19,144,45"\x3e\x3c/map\x3e\x3cimg usemap\x3d"#focus-redirect-img-usemap" alt\x3d"" src\x3d"data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7"\x3e',a.querySelector("img")},validate:function(a,b,e){a=a.querySelector("area");return e.activeElement===a}},focusRedirectLegend:{element:"fieldset",mutate:function(a){return a.innerHTML='\x3clegend\x3elegend\x3c/legend\x3e\x3cinput tabindex\x3d"-1"\x3e\x3cinput tabindex\x3d"0"\x3e',
96!1},validate:function(a,b,e){b=a.querySelector('input[tabindex\x3d"-1"]');var k=a.querySelector('input[tabindex\x3d"0"]');return a.focus(),a.querySelector("legend").focus(),(e.activeElement===b?"focusable":e.activeElement===k&&"tabbable")||""}},focusScrollBody:{element:"div",mutate:function(a){return a.setAttribute("style","width: 100px; height: 50px; overflow: auto;"),a.innerHTML='\x3cdiv style\x3d"width: 500px; height: 40px;"\x3escrollable content\x3c/div\x3e',a.querySelector("div")}},focusScrollContainerWithoutOverflow:{element:"div",
97mutate:function(a){a.setAttribute("style","width: 100px; height: 50px;");a.innerHTML='\x3cdiv style\x3d"width: 500px; height: 40px;"\x3escrollable content\x3c/div\x3e'}},focusScrollContainer:{element:"div",mutate:function(a){a.setAttribute("style","width: 100px; height: 50px; overflow: auto;");a.innerHTML='\x3cdiv style\x3d"width: 500px; height: 40px;"\x3escrollable content\x3c/div\x3e'}},focusSummary:{element:"details",mutate:function(a){return a.innerHTML="\x3csummary\x3efoo\x3c/summary\x3e\x3cp\x3econtent\x3c/p\x3e",
98a.firstElementChild}},focusSvgFocusableAttribute:{element:"div",mutate:function(a){return a.innerHTML=w('\x3ctext focusable\x3d"true"\x3ea\x3c/text\x3e'),a.querySelector("text")},validate:E},focusSvgTabindexAttribute:{element:"div",mutate:function(a){return a.innerHTML=w('\x3ctext tabindex\x3d"0"\x3ea\x3c/text\x3e'),a.querySelector("text")},validate:E},focusSvgNegativeTabindexAttribute:{element:"div",mutate:function(a){return a.innerHTML=w('\x3ctext tabindex\x3d"-1"\x3ea\x3c/text\x3e'),a.querySelector("text")},
99validate:E},focusSvgUseTabindex:{element:"div",mutate:function(a){return a.innerHTML=w('\x3cg id\x3d"ally-test-target"\x3e\x3ca xlink:href\x3d"#void"\x3e\x3ctext\x3elink\x3c/text\x3e\x3c/a\x3e\x3c/g\x3e\x3cuse xlink:href\x3d"#ally-test-target" x\x3d"0" y\x3d"0" tabindex\x3d"-1" /\x3e'),a.querySelector("use")},validate:E},focusSvgForeignobjectTabindex:{element:"div",mutate:function(a){return a.innerHTML=w('\x3cforeignObject tabindex\x3d"-1"\x3e\x3cinput type\x3d"text" /\x3e\x3c/foreignObject\x3e'),
100a.querySelector("foreignObject")||a.getElementsByTagName("foreignObject")[0]},validate:E},focusSvg:{element:"div",mutate:function(a){return a.innerHTML=w(""),a.firstChild},validate:E},focusTabindexTrailingCharacters:{element:"div",mutate:function(a){a.setAttribute("tabindex","3x")}},focusTable:{element:"table",mutate:function(a,b,e){b=e.createDocumentFragment();b.innerHTML="\x3ctr\x3e\x3ctd\x3ecell\x3c/td\x3e\x3c/tr\x3e";a.appendChild(b)}},focusVideoWithoutControls:{element:"video",mutate:function(a){try{a.setAttribute("src",
101"data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7")}catch(b){}}}},hb=null,T=function(){return hb||((hb=Ib.get()).time||(Ib.set(x()),hb=Ib.get()),hb)},Ga=void 0,sd=/^\s*(-|\+)?[0-9]+\s*$/,td=/^\s*(-|\+)?[0-9]+.*$/,Xa=function(a){Ga||(Ga=T());var b=Ga.focusTabindexTrailingCharacters?td:sd;a=H({label:"is/valid-tabindex",resolveDocument:!0,context:a});var e=a.hasAttribute("tabindex"),k=a.hasAttribute("tabIndex");if(!e&&!k||(a.ownerSVGElement||"svg"===a.nodeName.toLowerCase())&&
102!Ga.focusSvgTabindexAttribute)return!1;if(Ga.focusInvalidTabindex)return!0;a=a.getAttribute(e?"tabindex":"tabIndex");return"-32768"!==a&&Boolean(a&&b.test(a))}
102,U=function(a){if(!Xa(a))return null;var b=a.hasAttribute("tabindex")?"tabindex":"tabIndex";a=parseInt(a.getAttribute(b),10);return isNaN(a)?-1:a},Jb=void 0,lc=void 0,Kb={input:!0,select:!0,textarea:!0,button:!0,fieldset:!0,form:!0},mc=function(a){Jb||((Jb=T()).focusFieldsetDisabled&&delete Kb.fieldset,Jb.focusFormDisabled&&delete Kb.form,lc=
103new RegExp("^("+Object.keys(Kb).join("|")+")$"));a=H({label:"is/native-disabled-supported",context:a}).nodeName.toLowerCase();return Boolean(lc.test(a))},nc=function(a){var b=a.element;a=a.attribute;var e="data-cached-"+a;if(null===b.getAttribute(e)){var k=b.getAttribute(a);null!==k&&(b.setAttribute(e,k||""),b.removeAttribute(a))}else k=b.getAttribute(e),b.removeAttribute(e),b.setAttribute(a,k)},ta=function(a){var b=a.element,e=a.attribute,k=a.temporaryValue,d=a.saveValue;a="data-cached-"+e;void 0!==
104k?(d=d||b.getAttribute(e),b.setAttribute(a,d||""),b.setAttribute(e,k)):(k=b.getAttribute(a),b.removeAttribute(a),""===k?b.removeAttribute(e):b.setAttribute(e,k))},Ha=function(){},Mc="undefined"!=typeof console?console:{log:Ha,debug:Ha,info:Ha,warn:Ha,error:Ha},ib=void 0,Ia=function(a,b){ib||(ib=T());var e=H({label:"element/disabled",context:a});b=Boolean(b);var k=e.hasAttribute("data-ally-disabled"),d=1===arguments.length;if(mc(e))e=d?e.disabled:(e.disabled=b,e);else if(d)e=k;else if(k!==b){k=b;ta({element:e,
105attribute:"aria-disabled",temporaryValue:k?"true":void 0});k?(d=U(e),ta({element:e,attribute:"tabindex",temporaryValue:"-1",saveValue:null!==d?d:""})):ta({element:e,attribute:"tabindex"});k?e.focus=O:delete e.focus;k?(e.setAttribute("data-inert-pointer-events",e.style.pointerEvents||""),e.style.pointerEvents="none"):(d=e.getAttribute("data-inert-pointer-events"),e.removeAttribute("data-inert-pointer-events"),e.style.pointerEvents=d);d=e.nodeName.toLowerCase();"video"!==d&&"audio"!==d||nc({element:e,
106attribute:"controls",remove:k});if("svg"===d||e.ownerSVGElement)ib.focusSvgFocusableAttribute?ta({element:e,attribute:"focusable",temporaryValue:k?"false":void 0}):ib.focusSvgTabindexAttribute||"a"!==d||nc({element:e,attribute:"xlink:href",remove:k});k?e.setAttribute("data-ally-disabled","true"):e.removeAttribute("data-ally-disabled")}return e},V=function(){for(var a=[],b=H({label:"get/parents",context:(0<arguments.length&&void 0!==arguments[0]?arguments[0]:{}).context});b;)a.push(b),(b=b.parentNode)&&
107b.nodeType!==Node.ELEMENT_NODE&&(b=null);return a},Nc=["matches","webkitMatchesSelector","mozMatchesSelector","msMatchesSelector"],rb=null,G=void 0;S.except=function(){var a=0<arguments.length&&void 0!==arguments[0]?arguments[0]:{},b=function(b){return S({context:b,except:a})};return b.rules=S,b};var Aa=S.except({}),Ja=void 0,ub=function(a){if("string"!=typeof Ja){var b=kc();b&&(Ja=", html "+b+" ")}return Ja?a+Ja+a.replace(/\s*,\s*/g,",").split(",").join(Ja):a},tb=void 0,Pc=/^(area)$/;q.except=function(){var a=
1080<arguments.length&&void 0!==arguments[0]?arguments[0]:{},b=function(b){return q({context:b,except:a})};return b.rules=q,b};var ra=q.except({}),na=void 0,dc=function(a){na||(na=T());a=H({label:"is/valid-area",context:a});if("area"!==a.nodeName.toLowerCase())return!1;var b=a.hasAttribute("tabindex");if(!na.focusAreaTabindex&&b)return!1;var e=cc(a);return!e||!ra(e)||!na.focusBrokenImageMap&&(!e.complete||!e.naturalHeight||0>=e.offsetWidth||0>=e.offsetHeight)?!1:na.focusAreaWithoutHref||a.href?!V({context:e}).slice(1).some(function(a){a=
109a.nodeName.toLowerCase();return"button"===a||"a"===a}):na.focusAreaTabindex&&b||na.focusAreaImgTabindex&&e.hasAttribute("tabindex")},Lb=void 0,fc=function(a){Lb||(Lb=T());a=H({label:"is/disabled",context:a});if(a.hasAttribute("data-ally-disabled"))return!0;if(!mc(a))return!1;if(a.disabled)return!0;a=V({context:a});return!!a.some(Qc)||!(Lb.focusFormDisabled||!a.some(Rc))};Za.except=function(){var a=0<arguments.length&&void 0!==arguments[0]?arguments[0]:{},b=function(b){return Za({context:b,except:a})};
110return b.rules=Za,b};var ec=Za.except({}),ba=void 0;d.except=function(){var a=0<arguments.length&&void 0!==arguments[0]?arguments[0]:{},b=function(b){return d({context:b,except:a})};return b.rules=d,b};var fa=d.except({}),Sc=gc(Aa),ja=void 0,Ba=void 0,Ka=function(){var a=0<arguments.length&&void 0!==arguments[0]?arguments[0]:{},b=a.includeContext,e=a.includeOnlyTabbable,d=a.strategy,d=void 0===d?"quick":d,a={context:H({label:"query/focusable",resolveDocument:!0,defaultToDocument:!0,context:a.context}),
111includeContext:b,includeOnlyTabbable:e,strategy:d};if("quick"===d)return Tc(a);if("strict"===d||"all"===d)return hc(a);throw new TypeError('query/focusable requires option.strategy to be one of ["quick", "strict", "all"]');},sa=void 0,Uc=/^(fieldset|table|td|body)$/;D.except=function(){var a=0<arguments.length&&void 0!==arguments[0]?arguments[0]:{},b=function(b){return D({context:b,except:a})};return b.rules=D,b};var Vc=Aa.rules.except({flexbox:!0}),Wc=D.except({flexbox:!0}),oc=D.except({}),La=function(){var a=
1120<arguments.length&&void 0!==arguments[0]?arguments[0]:{},b=a.context,e=a.includeContext,d=a.includeOnlyTabbable,a=a.strategy,c=oc.rules.except({onlyTabbable:d});return Ka({context:b,includeContext:e,includeOnlyTabbable:d,strategy:a}).filter(c)},Ma=function(){var a=0<arguments.length&&void 0!==arguments[0]?arguments[0]:{},b=a.elements,e=a.resolveElement,a=a.list.slice(0),b=M(b).slice(0);return b.sort(I),oa(a,Y(a,b,e)),a},Na=void 0,pc=function(){var a=0<arguments.length&&void 0!==arguments[0]?arguments[0]:
113{}
113,b=a.context,a=a.skipFocusable;Na||(Na=T());b=H({label:"get/focus-redirect-target",context:b});if(!a&&fa(b))return null;var e=b.nodeName.toLowerCase(),a=Q(b);"label"===e?b=(e=b.getAttribute("for"))?a.getElementById(e):b.querySelector("input, select, textarea"):"legend"===e?Na.focusRedirectLegend?"fieldset"!==b.parentNode.nodeName.toLowerCase()?b=null:"tabbable"===Na.focusRedirectLegend?(a=La({context:a.body,strategy:"strict"}),a.length?(a=Ma({list:a,elements:[b]}),b=a.indexOf(b),b=b===a.length-
1141?null:a[b+1]):b=null):b=Ka({context:b.parentNode,strategy:"strict"}).filter(pa)[0]||null:b=null:"img"===e?Na.focusRedirectImgUsemap?((a=b.getAttribute("usemap"))?(b=Q(b),b=ac(a.slice(1),b)):b=null,b=b&&b.querySelector("area")||null):b=null:b=null;return b},wa=function(){var a=0<arguments.length&&void 0!==arguments[0]?arguments[0]:{},b=a.except,a=H({label:"get/focus-target",context:a.context}),e=null,d=function(a){return fa.rules({context:a,except:b})?(e=a,!0):(e=pc({context:a,skipFocusable:!0}),
115Boolean(e))};return d(a)||V({context:a}).slice(1).some(d),e},qc={flexbox:!0,scrollable:!0,onlyTabbable:!0},ud={blur:function(a){var b=H({label:"element/blur",context:a});if(!ha(b)||"body"===b.nodeName.toLowerCase())return null;if(b.blur)return b.blur(),document.activeElement;a=Q(b).defaultView||window;try{a.HTMLElement.prototype.blur.call(b)}catch(d){b=a.document&&a.document.body;if(!b)return null;var e=b.getAttribute("tabindex");b.setAttribute("tabindex","-1");b.focus();e?b.setAttribute("tabindex",
116e):b.removeAttribute("tabindex")}return a.document.activeElement},disabled:Ia,focus:function(a){var b=1<arguments.length&&void 0!==arguments[1]?arguments[1]:{},e=b.defaultToAncestor,b=b.undoScrolling,d=H({label:"element/focus",context:a}),c=fa.rules({context:d,except:qc});if(!e&&!c)return null;e=wa({context:d,except:qc});if(!e)return null;if(ha(e))return e;d=void 0;b&&(d=qa(e));var q;if(e.focus)q=(e.focus(),ha(e)?e:null);else{b=Q(e).defaultView||window;try{q=(b.HTMLElement.prototype.focus.call(e),
117ha(e)?e:null)}catch(f){q=Zb(e)&&ha(e)?e:null}}return d&&d(),q}};"undefined"!=typeof window&&function(){for(var a=0,b=["ms","moz","webkit","o"],e="",d="",c=0,q=b.length;q>c;++c)e=window[b[c]+"RequestAnimationFrame"],d=window[b[c]+"CancelAnimationFrame"]||window[b[c]+"CancelRequestAnimationFrame"];"function"!=typeof window.requestAnimationFrame&&(window.requestAnimationFrame=window[e]||function(b){var e=(new Date).getTime(),d=Math.max(0,16-(e-a)),k=window.setTimeout(function(){b(e+d)},d);return a=e+
118d,k});"function"!=typeof window.cancelAnimationFrame&&(window.cancelAnimationFrame=window[d]||function(a){clearTimeout(a)})}();var jb="undefined"!=typeof window&&window.CustomEvent||function(){};"function"!=typeof jb&&(jb=function(a,b){var e=document.createEvent("CustomEvent");return!b&&(b={bubbles:!1,cancelable:!1,detail:void 0}),e.initCustomEvent(a,b.bubbles,b.cancelable,b.detail),e},jb.prototype=window.Event.prototype);var Zc=jb,Oa=function(){var a=0<arguments.length&&void 0!==arguments[0]?arguments[0]:
119{};return Yc.bind({engage:a.engage||ka,disengage:a.disengage||ka,instances:0,_result:null})},$a=void 0,Ca=void 0,vd=Oa({engage:function(){Ca=!0;$a=document.activeElement;la()},disengage:function(){cancelAnimationFrame(Ca);Ca=!1}}),rc=function(a){a=H({label:"is/shadowed",resolveDocument:!0,context:a});return Boolean(va({context:a}))},sc=function(){for(var a=[],b=H({label:"get/shadow-host-parents",context:(0<arguments.length&&void 0!==arguments[0]?arguments[0]:{}).context});b&&(b=va({context:b}));)a.push(b);
120return a},Db=function(){null===document.activeElement&&document.body.focus();var a;if(rc(document.activeElement))a=sc({context:document.activeElement}),a=[document.activeElement].concat(a);else for(a=[document.activeElement];a[0]&&a[0].shadowRoot;)a.unshift(a[0].shadowRoot.activeElement);return a},Mb=void 0,Nb=void 0;"undefined"!=typeof document&&document.documentElement.createShadowRoot?function(){var a=void 0,b=void 0,e=function(){d();(window.clearImmediate||window.clearTimeout)(a);a=(window.setImmediate||
121window.setTimeout)(function(){c()})},d=function(){b&&b.removeEventListener("blur",e,!0);b=null},c=function(){var a=Db();if(1!==a.length){var c=a[0];c.addEventListener("blur",e,!0);b=c;a=new CustomEvent("shadow-focus",{bubbles:!1,cancelable:!1,detail:{elements:a,active:a[0],hosts:a.slice(1)}});document.dispatchEvent(a)}else d()},q=function(){(window.clearImmediate||window.clearTimeout)(a);c()};Mb=function(){document.addEventListener("focus",q,!0)};Nb=function(){(window.clearImmediate||window.clearTimeout)(a);
122b&&b.removeEventListener("blur",e,!0);document.removeEventListener("focus",q,!0)}}():Mb=Nb=function(){};
122var Ob=Oa({engage:Mb,disengage:Nb}),wd={activeElement:vd,shadowFocus:Ob},Pb=function(){var a=0<arguments.length&&void 0!==arguments[0]?arguments[0]:{};return C.bind({engage:a.engage||m,disengage:a.disengage||m,context:null})},Qb=void 0,tc=void 0;t.is.TRIDENT&&(t.is.IE10||t.is.IE11)?function(){var a=function(a){var e=wa({context:a.target,except:{flexbox:!0,scrollable:!0}});if(e&&e!==a.target){window.setImmediate(function(){e.focus()});
123var d=[].map.call(e.children,function(a){var b=a.style.visibility||"",e=a.style.transition||"";return a.style.visibility="hidden",a.style.transition="none",[a,b,e]});window.setImmediate(function(){d.forEach(function(a){a[0].style.visibility=a[1];a[0].style.transition=a[2]})})}};Qb=function(b){b.addEventListener("mousedown",a,!0)};tc=function(b){b.removeEventListener("mousedown",a,!0)}}():Qb=function(){};var xd=Pb({engage:Qb,disengage:tc}),Rb=void 0,uc=void 0;t.is.OSX&&(t.is.GECKO||t.is.WEBKIT)?function(){var a=
124function(a){if(!a.defaultPrevented&&J(a.target,"input, button, button *")){var b=wa({context:a.target});(window.setImmediate||window.setTimeout)(function(){b.focus()})}},b=function(a){!a.defaultPrevented&&J(a.target,"label, label *")&&(a=wa({context:a.target}))&&a.focus()};Rb=function(e){e.addEventListener("mousedown",a,!1);e.addEventListener("mouseup",b,!1)};uc=function(e){e.removeEventListener("mousedown",a,!1);e.removeEventListener("mouseup",b,!1)}}():Rb=function(){};var yd=Pb({engage:Rb,disengage:uc}),
125Sb=void 0,vc=void 0;t.is.WEBKIT?function(){var a=function(a){var e=wa({context:a.target});!e||e.hasAttribute("tabindex")&&Xa(e)||(e.setAttribute("tabindex",0),(window.setImmediate||window.setTimeout)(function(){e.removeAttribute("tabindex")},0))};Sb=function(b){b.addEventListener("mousedown",a,!0);b.addEventListener("touchstart",a,!0)};vc=function(b){b.removeEventListener("mousedown",a,!0);b.removeEventListener("touchstart",a,!0)}}():Sb=function(){};var zd={pointerFocusChildren:xd,pointerFocusInput:yd,
126pointerFocusParent:Pb({engage:Sb,disengage:vc})},wc=function(){var a=0<arguments.length&&void 0!==arguments[0]?arguments[0]:{},b=a.context,a=a.filter;if(b=H({label:"get/insignificant-branches",defaultToDocument:!0,context:b}),!(a=M(a)).length)throw new TypeError("get/insignificant-branches requires valid options.filter");return N({context:b,filter:a})},Ad={activeElement:function(){var a=Q((0<arguments.length&&void 0!==arguments[0]?arguments[0]:{}).context),b=void 0;try{b=a.activeElement}catch(e){}return b&&
127b.nodeType||(b=a.body||a.documentElement),b},activeElements:Db,focusRedirectTarget:pc,focusTarget:wa,insignificantBranches:wc,parents:V,shadowHostParents:sc,shadowHost:va},Bd={activeElement:ha,disabled:fc,focusRelevant:Aa,focusable:fa,onlyTabbable:ec,shadowed:rc,tabbable:oc,validArea:dc,validTabindex:Xa,visible:ra},vb=function(a){return a.shadowRoot?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP};vb.acceptNode=vb;for(var Cd={childList:!0,subtree:!0},Dd=function(){function a(){var b=this,e=0<arguments.length&&
128void 0!==arguments[0]?arguments[0]:{},d=e.context,c=e.callback,e=e.config;g(this,a);this.config=e;this.disengage=this.disengage.bind(this);this.clientObserver=new MutationObserver(c);this.hostObserver=new MutationObserver(function(a){return a.forEach(b.handleHostMutation,b)});this.observeContext(d);this.observeShadowHosts(d)}return Fa(a,[{key:"disengage",value:function(){this.clientObserver&&this.clientObserver.disconnect();this.clientObserver=null;this.hostObserver&&this.hostObserver.disconnect();
129this.hostObserver=null}},{key:"observeShadowHosts",value:function(a){var e=this;n({context:a}).forEach(function(a){return e.observeContext(a.shadowRoot)})}},{key:"observeContext",value:function(a){this.clientObserver.observe(a,this.config);this.hostObserver.observe(a,Cd)}},{key:"handleHostMutation",value:function(a){"childList"===a.type&&M(a.addedNodes).filter(function(a){return a.nodeType===Node.ELEMENT_NODE}).forEach(this.observeShadowHosts,this)}}]),a}(),xc=function(){var a=0<arguments.length&&
130void 0!==arguments[0]?arguments[0]:{},b=a.context,e=a.callback,a=a.config;if("function"!=typeof e)throw new TypeError("observe/shadow-mutations requires options.callback to be a function");if("object"!==(void 0===a?"undefined":Yb(a)))throw new TypeError("observe/shadow-mutations requires options.config to be an object");
130if(!window.MutationObserver)return{disengage:function(){}};b=H({label:"observe/shadow-mutations",resolveDocument:!0,defaultToDocument:!0,context:b});return{disengage:(new Dd({context:b,
131callback:e,config:a})).disengage}},Ed={attributes:!0,childList:!0,subtree:!0,attributeFilter:["tabindex","disabled","data-ally-disabled"]},Fd=function(){function a(){var b=this,e=0<arguments.length&&void 0!==arguments[0]?arguments[0]:{},d=e.context,e=e.filter;g(this,a);this._context=M(d||document.documentElement)[0];this._filter=M(e);this._inertElementCache=[];this.disengage=this.disengage.bind(this);this.handleMutation=this.handleMutation.bind(this);this.renderInert=this.renderInert.bind(this);this.filterElements=
132this.filterElements.bind(this);this.filterParentElements=this.filterParentElements.bind(this);d=Ka({context:this._context,includeContext:!0,strategy:"all"});this.renderInert(d);this.shadowObserver=xc({context:this._context,config:Ed,callback:function(a){return a.forEach(b.handleMutation)}})}return Fa(a,[{key:"disengage",value:function(){this._context&&(Ia(this._context,!1),this._inertElementCache.forEach(function(a){return Ia(a,!1)}),this._inertElementCache=null,this._filter=null,this._context=null,
133this.shadowObserver&&this.shadowObserver.disengage(),this.shadowObserver=null)}},{key:"listQueryFocusable",value:function(a){return a.map(function(a){return Ka({context:a,includeContext:!0,strategy:"all"})}).reduce(function(a,b){return a.concat(b)},[])}},{key:"renderInert",value:function(a){var e=this;a.filter(this.filterElements).filter(this.filterParentElements).filter(function(a){return!Ia(a)}).forEach(function(a){e._inertElementCache.push(a);Ia(a,!0)})}},{key:"filterElements",value:function(a){a=
134A({element:a,includeSelf:!0});return!this._filter.some(a)}},{key:"filterParentElements",value:function(a){a=A({parent:a});return!this._filter.some(a)}},{key:"handleMutation",value:function(a){"childList"===a.type?(a=M(a.addedNodes).filter(function(a){return a.nodeType===Node.ELEMENT_NODE}),a.length&&(a=this.listQueryFocusable(a),this.renderInert(a))):"attributes"===a.type&&this.renderInert([a.target])}}]),a}(),Gd={attributes:!1,childList:!0,subtree:!0},Hd=function(){function a(){var b=0<arguments.length&&
135void 0!==arguments[0]?arguments[0]:{},e=b.context,b=b.filter;g(this,a);this._context=M(e||document.documentElement)[0];this._filter=M(b);this.disengage=this.disengage.bind(this);this.handleMutation=this.handleMutation.bind(this);this.isInsignificantBranch=this.isInsignificantBranch.bind(this);wc({context:this._context,filter:this._filter}).forEach(wb);this.startObserver()}return Fa(a,[{key:"disengage",value:function(){this._context&&([].forEach.call(this._context.querySelectorAll("[data-cached-aria-hidden]"),
136$c),this._context=null,this._filter=null,this._observer&&this._observer.disconnect(),this._observer=null)}},{key:"startObserver",value:function(){var a=this;window.MutationObserver&&(this._observer=new MutationObserver(function(e){return e.forEach(a.handleMutation)}),this._observer.observe(this._context,Gd))}},{key:"handleMutation",value:function(a){"childList"===a.type&&M(a.addedNodes).filter(function(a){return a.nodeType===Node.ELEMENT_NODE}).filter(this.isInsignificantBranch).forEach(wb)}},{key:"isInsignificantBranch",
137value:function(a){if(V({context:a}).some(function(a){return"true"===a.getAttribute("aria-hidden")}))return!1;a=A({element:a});return!this._filter.some(a)}}]),a}(),Id=function(){function a(b){g(this,a);this._document=Q(b);this.maps={}}return Fa(a,[{key:"getAreasFor",value:function(a){return this.maps[a]||this.addMapByName(a),this.maps[a]}},{key:"addMapByName",value:function(a){(a=ac(a,this._document))&&(this.maps[a.name]=La({context:a}))}},{key:"extractAreasFromList",value:function(a){return a.filter(function(a){if("area"!==
138a.nodeName.toLowerCase())return!0;var b=a.parentNode;return this.maps[b.name]||(this.maps[b.name]=[]),this.maps[b.name].push(a),!1},this)}}]),a}(),ad=function(a,b){var e=b.querySelectorAll("img[usemap]"),d=new Id(b),c=d.extractAreasFromList(a);return e.length?Ma({list:c,elements:e,resolveElement:function(a){a=a.getAttribute("usemap").slice(1);return d.getAreasFor(a)}}):c},Jd=function(){function a(b,e){g(this,a);this.context=b;this.sortElements=e;this.hostCounter=1;this.inHost={};this.inDocument=[];
139this.hosts={};this.elements={}}
139return Fa(a,[{key:"_registerHost",value:function(a){if(!a._sortingId){a._sortingId="shadow-"+this.hostCounter++;this.hosts[a._sortingId]=a;var e=va({context:a});e?(this._registerHost(e),this._registerHostParent(a,e)):this.inDocument.push(a)}}},{key:"_registerHostParent",value:function(a,e){this.inHost[e._sortingId]||(this.inHost[e._sortingId]=[]);this.inHost[e._sortingId].push(a)}},{key:"_registerElement",value:function(a,e){this.elements[e._sortingId]||(this.elements[e._sortingId]=
140[]);this.elements[e._sortingId].push(a)}},{key:"extractElements",value:function(a){return a.filter(function(a){var b=va({context:a});return!b||(this._registerHost(b),this._registerElement(a,b),!1)},this)}},{key:"sort",value:function(a){a=this._injectHosts(a);return a=this._replaceHosts(a),this._cleanup(),a}},{key:"_injectHosts",value:function(a){return Object.keys(this.hosts).forEach(function(a){this.elements[a]=this._merge(this.elements[a],this.inHost[a],this.hosts[a].shadowRoot)},this),this._merge(a,
141this.inDocument,this.context)}},{key:"_merge",value:function(a,e,d){a=Ma({list:a,elements:e});return this.sortElements(a,d)}},{key:"_replaceHosts",value:function(a){return Ma({list:a,elements:this.inDocument,resolveElement:this._resolveHostElement.bind(this)})}},{key:"_resolveHostElement",value:function(a){var e=Ma({list:this.elements[a._sortingId],elements:this.inHost[a._sortingId],resolveElement:this._resolveHostElement.bind(this)}),d=U(a);return null!==d&&-1<d?[a].concat(e):e}},{key:"_cleanup",
142value:function(){Object.keys(this.hosts).forEach(function(a){delete this.hosts[a]._sortingId},this)}}]),a}(),bd=function(a){var b={},e=[];a=a.filter(function(a){var d=a.tabIndex;return void 0===d&&(d=U(a)),0>=d||null==d||(b[d]||(b[d]=[],e.push(d)),b[d].push(a),!1)});return e.sort().map(function(a){return b[a]}).reduceRight(function(a,b){return b.concat(a)},a)},yb=void 0,Tb=function(){var a=0<arguments.length&&void 0!==arguments[0]?arguments[0]:{},b=a.context,e=a.includeContext,d=a.includeOnlyTabbable,
143a=a.strategy;yb||(yb=T());b=M(b)[0]||document.documentElement;d=La({context:b,includeContext:e,includeOnlyTabbable:d,strategy:a});if(document.body.createShadowRoot&&t.is.BLINK)var a=new Jd(b,xb),c=a.extractElements(d),d=c.length===d.length?xb(d):a.sort(c);else d=xb(d,b);e&&(e=d,b=e.indexOf(b),d=0<b?e.splice(b,1).concat(e):e);return d},ia={tab:9,left:37,up:38,right:39,down:40,pageUp:33,"page-up":33,pageDown:34,"page-down":34,end:35,home:36,enter:13,escape:27,space:32,shift:16,capsLock:20,"caps-lock":20,
144ctrl:17,alt:18,meta:91,pause:19,insert:45,delete:46,backspace:8,_alias:{91:[92,93,224]}},kb=1;26>kb;kb++)ia["f"+kb]=kb+111;for(var xa=0;10>xa;xa++){var yc=xa+48,zc=xa+96;ia[xa]=yc;ia["num-"+xa]=zc;ia._alias[yc]=[zc]}for(var Ub=0;26>Ub;Ub++){var Ac=Ub+65,Kd=String.fromCharCode(Ac).toLowerCase();ia[Kd]=Ac}var zb={alt:"altKey",ctrl:"ctrlKey",meta:"metaKey",shift:"shiftKey"},fd=Object.keys(zb).map(function(a){return zb[a]}),Ld=function(a){return a.split(/\s+/).map(function(a){var e=a.split("+");a=dd(e.slice(0,
145-1));var e=e.slice(-1),d=ia[e]||parseInt(e,10);if(!d||"number"!=typeof d||isNaN(d))throw new TypeError('Unknown key "'+e+'"');return{keyCodes:[d].concat(ia._alias[d]||[]),modifiers:a,matchModifiers:ed.bind(null,a)}})},Bc=function(){var a=0<arguments.length&&void 0!==arguments[0]?arguments[0]:{},b={},e=M(a.context)[0]||document.documentElement;delete a.context;var d=M(a.filter);delete a.filter;var c=Object.keys(a);if(!c.length)throw new TypeError("when/key requires at least one option key");var q=
146function(a){a.keyCodes.forEach(function(e){b[e]||(b[e]=[]);b[e].push(a)})};c.forEach(function(b){if("function"!=typeof a[b])throw new TypeError('when/key requires option["'+b+'"] to be a function');Ld(b).map(function(e){return e.callback=a[b],e}).forEach(q)});var f=function(a){if(!a.defaultPrevented){if(d.length){var c=A({element:a.target,includeSelf:!0});if(d.some(c))return}c=a.keyCode||a.which;b[c]&&b[c].forEach(function(b){b.matchModifiers(a)&&b.callback.call(e,a,x)})}};e.addEventListener("keydown",
147f,!1);var x=function(){e.removeEventListener("keydown",f,!1)};return{disengage:x}},Md={attribute:{"aria-busy":{default:"false",values:["true","false"]}
147,"aria-checked":{default:void 0,values:["true","false","mixed",void 0]},"aria-disabled":{default:"false",values:["true","false"]},"aria-expanded":{default:void 0,values:["true","false",void 0]},"aria-grabbed":{default:void 0,values:["true","false",void 0]},"aria-hidden":{default:"false",values:["true","false"]},"aria-invalid":{default:"false",values:["true",
148"false","grammar","spelling"]},"aria-pressed":{default:void 0,values:["true","false","mixed",void 0]},"aria-selected":{default:void 0,values:["true","false",void 0]},"aria-atomic":{default:"false",values:["true","false"]},"aria-autocomplete":{default:"none",values:["inline","list","both","none"]},"aria-dropeffect":{default:"none",multiple:!0,values:"copy move link execute popup none".split(" ")},"aria-haspopup":{default:"false",values:["true","false"]},"aria-live":{default:"off",values:["off","polite",
149"assertive"]},"aria-multiline":{default:"false",values:["true","false"]},"aria-multiselectable":{default:"false",values:["true","false"]},"aria-orientation":{default:"horizontal",values:["vertical","horizontal"]},"aria-readonly":{default:"false",values:["true","false"]},"aria-relevant":{default:"additions text",multiple:!0,values:["additions","removals","text","all"]},"aria-required":{default:"false",values:["true","false"]},"aria-sort":{default:"none",other:!0,values:["ascending","descending","none"]}},
150keycode:ia},ma=0,ua=0,Cc=["touchstart","pointerdown","MSPointerDown","mousedown"],Dc="touchend touchcancel pointerup MSPointerUp pointercancel MSPointerCancel mouseup".split(" "),Ec=Oa({engage:function(){return window.addEventListener("blur",ic,!1),document.documentElement.addEventListener("keydown",K,!0),document.documentElement.addEventListener("keyup",ya,!0),Cc.forEach(function(a){document.documentElement.addEventListener(a,Z,!0)}),Dc.forEach(function(a){document.documentElement.addEventListener(a,
151P,!0)}),{get:Pa}},disengage:function(){ma=ua=0;window.removeEventListener("blur",ic,!1);document.documentElement.removeEventListener("keydown",K,!0);document.documentElement.removeEventListener("keyup",ya,!0);Cc.forEach(function(a){document.documentElement.removeEventListener(a,Z,!0)});Dc.forEach(function(a){document.documentElement.removeEventListener(a,P,!0)})}}),Nd={interactionType:Ec,shadowMutations:xc},Od={firstTabbable:function(){var a=0<arguments.length&&void 0!==arguments[0]?arguments[0]:
152{},b=a.context,e=a.sequence,d=a.strategy,c=a.ignoreAutofocus,q=a.defaultToContext,f=a.includeOnlyTabbable,a=-1;e||(b=M(b||document.body)[0],e=La({context:b,includeOnlyTabbable:f,strategy:d}));e.length&&!c&&(a=F(e,Ua));e.length&&-1===a&&(a=F(e,Va));d=fa.rules.except({onlyTabbable:f});return-1===a&&q&&b&&d(b)?b:e[a]||null},focusable:Ka,shadowHosts:n,tabbable:La,tabsequence:Tb},Fc="undefined"!=typeof document&&"onfocusin"in document,Ab=Fc?"focusin":"focus",bb=Fc?"focusout":"blur",Bb=void 0,Vb=void 0,
153Cb=null,ab=null,Ea={pointer:!1,key:!1,script:!1,initial:!1},Pd=Oa({engage:function(){return Vb=Ob(),document.addEventListener("shadow-focus",ga,!0),document.documentElement.addEventListener(Ab,ga,!0),document.documentElement.addEventListener(bb,ga,!0),Bb=Ec(),ga({type:"initial"}),{used:lb,current:Wa,lock:mb,unlock:nb}},disengage:function(){ga({type:bb});Cb=ab=null;Object.keys(Ea).forEach(function(a){Da(document.documentElement,"focus-source-"+a,!1);Ea[a]=!1});Bb.disengage();Vb&&Vb.disengage();document.removeEventListener("shadow-focus",
154ga,!0);document.documentElement.removeEventListener(Ab,ga,!0);document.documentElement.removeEventListener(bb,ga,!0);document.documentElement.removeAttribute("data-focus-source")}}),Eb=void 0,Gc="undefined"!=typeof document&&"onfocusin"in document,Hc=Gc?"focusin":"focus",Ic=Gc?"focusout":"blur",db="ally-focus-within",Fb=void 0,Gb=void 0,Wb=void 0,Qd={focusSource:Pd,focusWithin:Oa({engage:function(){Eb||(Eb=T(),Fb=ub("."+db));Wb=Ob();document.addEventListener(Ic,Qa,!0);document.addEventListener(Hc,
155Ra,!0);document.addEventListener("shadow-focus",Sa,!0);cb()},disengage:function(){Wb&&Wb.disengage();(window.clearImmediate||window.clearTimeout)(Gb);document.removeEventListener(Ic,Qa,!0);document.removeEventListener(Hc,Ra,!0);document.removeEventListener("shadow-focus",Sa,!0);[].forEach.call(document.querySelectorAll(Fb),function(a){Da(a,db,!1)})}})},Jc=function(){var a=0<arguments.length&&void 0!==arguments[0]?arguments[0]:{},b=a.context,e=a.callback,d=a.area;if("function"!=typeof e)throw new TypeError("when/visible-area requires options.callback to be a function");
156"number"!=typeof d&&(d=1);var c=H({label:"when/visible-area",context:b}),q=void 0,f=null,x=function(){q&&cancelAnimationFrame(q)},h=function(){var a;if(!(a=!ra(c))){a:{a=c.getBoundingClientRect();var b,q=window.innerWidth||document.documentElement.clientWidth;b=window.innerHeight||document.documentElement.clientHeight;b={top:0,right:q,bottom:b,left:0,width:q,height:b};b.area=b.width*b.height;var q=b,h=pb(c);if(h){if(!h.width||!h.height){a=0;break a}(q=Hb(h,b)).area=h.area}b=Hb(a,q);a=b.width&&b.height?
157Math.min(Math.round(Math.round(b.width)*Math.round(b.height)/Math.min(a.width*a.height,q.area)*1E4)/1E4,1):0}a=a<d}return a||!1===e(c)?void f():void x()};return(f=function(){q=requestAnimationFrame(h)}
157)(),{disengage:x}},Rd="undefined"!=typeof window&&window.ally;h.exports={element:ud,event:wd,fix:zd,get:Ad,is:Bd,maintain:{disabled:function(){var a=0<arguments.length&&void 0!==arguments[0]?arguments[0]:{};return{disengage:(new Fd({context:a.context,filter:a.filter})).disengage}},hidden:function(){var a=
1580<arguments.length&&void 0!==arguments[0]?arguments[0]:{};return{disengage:(new Hd({context:a.context,filter:a.filter})).disengage}},tabFocus:function(){var a=(0<arguments.length&&void 0!==arguments[0]?arguments[0]:{}).context;return a||(a=document.documentElement),Tb(),Bc({"?alt+?shift+tab":function(b){b.preventDefault();var e=Tb({context:a});b=b.shiftKey;var d=e[0],c=e[e.length-1],q=b?c:d;if(ha(b?d:c))q.focus();else{var f=void 0;e.some(function(a,b){return!!ha(a)&&(f=b,!0)})?e[f+(b?-1:1)].focus():
159d.focus()}}})}},map:Md,observe:Nd,query:Od,style:Qd,when:{focusable:function(){var a=0<arguments.length&&void 0!==arguments[0]?arguments[0]:{},b=a.context,e=a.callback,a=a.area;if("function"!=typeof e)throw new TypeError("when/focusable requires options.callback to be a function");var b=H({label:"when/focusable",context:b}),d=Q(b),c=Jc({context:b,callback:function(a){return!!fa(a)&&e(a)},area:a}),b=function Oc(){d.removeEventListener("focus",Oc,!0);c&&c.disengage()};return d.addEventListener("focus",
160b,!0),{disengage:b}},key:Bc,visibleArea:Jc},version:"1.4.1",noConflict:function(){return"undefined"!=typeof window&&window.ally===this&&(window.ally=Rd),this}}},{"css.escape":2,platform:3}],2:[function(c,h,g){(function(c){!function(c,f){"object"==z(g)?h.exports=f(c):f(c)}(void 0!==c?c:this,function(c){if(c.CSS&&c.CSS.escape)return c.CSS.escape;var f=function(c){if(0==arguments.length)throw new TypeError("`CSS.escape` requires an argument.");for(var f,h=String(c),x=h.length,g=-1,l="",p=h.charCodeAt(0);++g<
161x;)f=h.charCodeAt(g),l+=0!=f?1<=f&&31>=f||127==f||0==g&&48<=f&&57>=f||1==g&&48<=f&&57>=f&&45==p?"\\"+f.toString(16)+" ":0==g&&1==x&&45==f||!(128<=f||45==f||95==f||48<=f&&57>=f||65<=f&&90>=f||97<=f&&122>=f)?"\\"+h.charAt(g):h.charAt(g):"\ufffd";return l};return c.CSS||(c.CSS={}),c.CSS.escape=f,f})}).call(this,void 0!==P?P:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{}],3:[function(c,h,g){(function(c){(function(){function l(c){return(c=String(c)).charAt(0).toUpperCase()+c.slice(1)}
162function p(c,f){var h=-1,x=c?c.length:0;if("number"==typeof x&&-1<x&&D>=x)for(;++h<x;)f(c[h],h,c);else w(c,f)}function r(c){return c=J(c),/^(?:webOS|i(?:OS|P))/.test(c)?c:l(c)}function w(c,f){for(var h in c)za.call(c,h)&&f(c[h],h,c)}function E(c){return null==c?l(c):Ya.call(c).slice(8,-1)}function x(c,f){var h=null!=c?z(c[f]):"number";return!(/^(?:boolean|number|string|undefined)$/.test(h)||"object"==h&&!c[f])}function O(c){return String(c).replace(/([ -])(?!$)/g,"$1?")}function da(c,f){var h=null;
163return p(c,function(x,g){h=f(h,x,g,c)}),h}function J(c){return String(c).replace(/^ +| +$/g,"")}function ea(c){function f(d){return da(d,function(d,f){var g=f.pattern||O(f);return!d&&(d=RegExp("\\b"+g+" *\\d+[.\\w_]*","i").exec(c)||RegExp("\\b"+g+"(?:; *(?:[a-z]+[_-])?[a-z]+\\d+|[^ ();-]*)","i").exec(c))&&((d=String(f.label&&!RegExp(g,"i").test(f.label)?f.label:d).split("/"))[1]&&!/[\d.]+/.test(d[0])&&(d[0]+=" "+d[1]),f=f.label||f,d=r(d[0].replace(RegExp(g,"i"),f).replace(RegExp("; *(?:"+f+"[_-])?",
164"i")," ").replace(RegExp("("+f+")[-_.]?(\\w)","i"),"$1 $2"))),d})}function h(d){return da(d,function(d,f){return d||(RegExp(f+"(?:-[\\d.]+/|(?: for [\\w-]+)?[ /-])([\\d.]+[^ ();/_-]*)","i").exec(c)||0)[1]||null})}var g=aa,l=c&&"object"==z(c)&&"String"!=E(c);l&&(g=c,c=null);var p=g.navigator||{},v=p.userAgent||"";c||(c=v);var d,y,F=l||R==B,za=l?!!p.likeChrome:/\bChrome\b/.test(c)&&!/internal|\n/i.test(Ya.toString()),S=l?"Object":"ScriptBridgingProxyObject",D=l?"Object":"Environment",I=l&&g.java?"JavaPackage":
165E(g.java),sb=l?"Object":"RuntimeObject",D=(I=/\bJava/.test(I)&&g.java)&&E(g.environment)==D,Y=I?"a":"\u03b1",Z=I?"b":"\u03b2",P=g.document||{},W=g.operamini||g.opera,K=L.test(K=l&&W?W["[[Class]]"]:E(W))?K:W=null,ka=c,l=[],la=null,X=c==v,v=X&&W&&"function"==typeof W.version&&W.version(),C=function(d){return da(d,function(d,f){return d||RegExp("\\b"+(f.pattern||O(f))+"\\b","i").exec(c)&&(f.label||f)})}([{label:"EdgeHTML",pattern:"Edge"},"Trident",{label:"WebKit",pattern:"AppleWebKit"},"iCab","Presto",
166"NetFront","Tasman","KHTML","Gecko"]),m=function(d){return da(d,function(d,f){return d||RegExp("\\b"+(f.pattern||O(f))+"\\b","i").exec(c)&&(f.label||f)})}(["Adobe AIR","Arora","Avant Browser","Breach","Camino","Epiphany","Fennec","Flock","Galeon","GreenBrowser","iCab","Iceweasel","K-Meleon","Konqueror","Lunascape","Maxthon",{label:"Microsoft Edge",pattern:"Edge"},"Midori","Nook Browser","PaleMoon","PhantomJS","Raven","Rekonq","RockMelt","SeaMonkey",{label:"Silk",pattern:"(?:Cloud9|Silk-Accelerated)"},
167"Sleipnir","SlimBrowser",{label:"SRWare Iron",pattern:"Iron"},"Sunrise","Swiftfox","WebPositive","Opera Mini",{label:"Opera Mini",pattern:"OPiOS"},"Opera",{label:"Opera",pattern:"OPR"},"Chrome",{label:"Chrome Mobile",pattern:"(?:CriOS|CrMo)"},{label:"Firefox",pattern:"(?:Firefox|Minefield)"},{label:"Firefox for iOS",pattern:"FxiOS"},{label:"IE",pattern:"IEMobile"},{label:"IE",pattern:"MSIE"},"Safari"]),A=f([{label:"BlackBerry",pattern:"BB10"},"BlackBerry",{label:"Galaxy S",pattern:"GT-I9000"},{label:"Galaxy S2",
168pattern:"GT-I9100"},{label:"Galaxy S3",pattern:"GT-I9300"},{label:"Galaxy S4",pattern:"GT-I9500"},"Google TV","Lumia","iPad","iPod","iPhone","Kindle",{label:"Kindle Fire",pattern:"(?:Cloud9|Silk-Accelerated)"},"Nexus","Nook","PlayBook","PlayStation 3","PlayStation 4","PlayStation Vita","TouchPad","Transformer",{label:"Wii U",pattern:"WiiU"},"Wii","Xbox One",{label:"Xbox 360",pattern:"Xbox"},"Xoom"]),N=function(d){return da(d,function(d,f,g){return d||(f[A]||f[/^[a-z]+(?: +[a-z]+\b)*/i.exec(A)]||RegExp("\\b"+
169O(g)+"(?:\\b|\\w*\\d)","i").exec(c))&&g})}({Apple:{iPad:1,iPhone:1,iPod:1},Archos:{},Amazon:{Kindle:1,"Kindle Fire":1},Asus:{Transformer:1},"Barnes \x26 Noble":{Nook:1},BlackBerry:{PlayBook:1},Google:{"Google TV":1,Nexus:1},HP:{TouchPad:1},HTC:{},LG:{},Microsoft:{Xbox:1,"Xbox One":1},Motorola:{Xoom:1},Nintendo:{"Wii U":1,Wii:1},Nokia:{Lumia:1},Samsung:{"Galaxy S":1,"Galaxy S2":1,"Galaxy S3":1,"Galaxy S4":1},Sony:{"PlayStation 4":1,"PlayStation 3":1,"PlayStation Vita":1}}),n=function(d){return da(d,
170function(d,f){var g=f.pattern||O(f);if(!d&&(d=RegExp("\\b"+g+"(?:/[\\d.]+|[ \\w.]*)","i").exec(c))){var h=d,l=f.label||f,x={"10.0":"10","6.4":"10 Technical Preview","6.3":"8.1","6.2":"8","6.1":"Server 2008 R2 / 7","6.0":"Server 2008 / Vista","5.2":"Server 2003 / XP 64-bit","5.1":"XP","5.01":"2000 SP1","5.0":"2000","4.0":"NT","4.90":"ME"};d=(g&&l&&/^Win/i.test(h)&&!/^Windows Phone /i.test(h)&&(x=x[/[\d.]+$/.exec(h)])&&(h="Windows "+x),h=String(h),g&&l&&(h=h.replace(RegExp(g,"i"),l)),r(h.replace(/ ce$/i,
171" CE").replace(/\bhpw/i,"web").replace(/\bMacintosh\b/,"Mac OS").replace(/_PowerPC\b/i," OS").replace(/\b(OS X) [^ \d]+/i,"$1").replace(/\bMac (OS X)\b/,"$1").replace(/\/(\d)/," $1").replace(/_/g,".").replace(/(?: BePC|[ .]*fc[ \d.]+)$/i,"").replace(/\bx86\.64\b/gi,"x86_64").replace(/\b(Windows Phone) OS\b/,"$1").replace(/\b(Chrome OS \w+) [\d.]+\b/,"$1").split(" on ")[0]))}return d})}(["Windows Phone","Android","CentOS",{label:"Chrome OS",pattern:"CrOS"},"Debian","Fedora","FreeBSD","Gentoo","Haiku",
172"Kubuntu","Linux Mint","OpenBSD","Red Hat","SuSE","Ubuntu","Xubuntu","Cygwin","Symbian OS","hpwOS","webOS ","webOS","Tablet OS","Linux","Mac OS X","Macintosh","Mac","Windows 98;","Windows "]);if(C&&(C=[C]),N&&!A&&(A=f([N])),(d=/\bGoogle TV\b/.exec(A))&&(A=d[0]),/\bSimulator\b/i.test(c)&&(A=(A?A+" ":"")+"Simulator"),"Opera Mini"==m&&/\bOPiOS\b/.test(c)&&l.push("running in Turbo/Uncompressed mode"),"IE"==m&&/\blike iPhone OS\b/.test(c)?(N=(d=ea(c.replace(/like iPhone OS/,""))).manufacturer,A=d.product):
173/^iP/.test(A)?(m||(m="Safari"),n="iOS"+((d=/ OS ([\d_]+)/i.exec(c))?" "+d[1].replace(/_/g,"."):"")):"Konqueror"!=m||/buntu/i.test(n)?N&&"Google"!=N&&(/Chrome/.test(m)&&!/\bMobile Safari\b/i.test(c)||/\bVita\b/.test(A))||/\bAndroid\b/.test(n)&&/^Chrome/.test(m)&&/\bVersion\//i.test(c)?(m="Android Browser",n=/\bAndroid\b/.test(n)?n:"Android"):"Silk"==m?(/\bMobi/i.test(c)||(n="Android",l.unshift("desktop mode")),/Accelerated *= *true/i.test(c)&&l.unshift("accelerated")):"PaleMoon"==m&&(d=/\bFirefox\/([\d.]+)\b/.exec(c))?
174l.push("identifying as Firefox "+d[1]):"Firefox"==m&&(d=/\b(Mobile|Tablet|TV)\b/i.exec(c))?(n||(n="Firefox OS"),A||(A=d[1])):(!m||(d=!/\bMinefield\b/i.test(c)&&/\b(?:Firefox|Safari)\b/.exec(m)))&&(m&&!A&&/[\/,]|^[^(]+?\)/.test(c.slice(c.indexOf(d+"/")+8))&&(m=null),(d=A||N||n)&&(A||N||/\b(?:Android|Symbian OS|Tablet OS|webOS)\b/.test(n))&&(m=/[a-z]+(?: Hat)?/i.exec(/\bAndroid\b/.test(n)?n:d)+" Browser")):n="Kubuntu",v||(v=h(["(?:Cloud9|CriOS|CrMo|Edge|FxiOS|IEMobile|Iron|Opera ?Mini|OPiOS|OPR|Raven|Silk(?!/[\\d.]+$))",
175"Version",O(m),"(?:Firefox|Minefield|NetFront)"])),(d=("iCab"==C&&3<parseFloat(v)?"WebKit":/\bOpera\b/.test(m)&&(/\bOPR\b/.test(c)?"Blink":"Presto"))||/\b(?:Midori|Nook|Safari)\b/i.test(c)&&!/^(?:Trident|EdgeHTML)$/.test(C)&&"WebKit"||!C&&/\bMSIE\b/i.test(c)&&("Mac OS"==n?"Tasman":"Trident")||"WebKit"==C&&/\bPlayStation\b(?! Vita\b)/i.test(m)&&"NetFront")&&(C=[d]),"IE"==m&&(d=(/; *(?:XBLWP|ZuneWP)(\d+)/i.exec(c)||0)[1])?(m+=" Mobile",n="Windows Phone "+(/\+$/.test(d)?d:d+".x"),l.unshift("desktop mode")):
176/\bWPDesktop\b/i.test(c)?(m="IE Mobile",n="Windows Phone 8.x",l.unshift("desktop mode"),v||(v=(/\brv:([\d.]+)/.exec(c)||0)[1])):"IE"!=m&&"Trident"==C&&(d=/\brv:([\d.]+)/.exec(c))&&(m&&l.push("identifying as "+m+(v?" "+v:"")),m="IE",v=d[1]),X){if(x(g,"global"))if(I&&(ka=(d=I.lang.System).getProperty("os.arch"),n=n||d.getProperty("os.name")+" "+d.getProperty("os.version")),F&&x(g,"system")&&(d=[g.system])[0]){n||(n=d[0].os||null);try{d[1]=g.require("ringo/engine").version,v=d[1].join("."),m="RingoJS"}catch(wb){d[0].global.system==
177g.system&&(m="Narwhal")}}else"object"==z(g.process)&&!g.true&&(d=g.process)?(m="Node.js",ka=d.ar
177ch,n=d.platform,v=/[\d.]+/.exec(d.version)[0]):D&&(m="Rhino");else E(d=g.runtime)==S?(m="Adobe AIR",n=d.flash.system.Capabilities.os):E(d=g.phantom)==sb?(m="PhantomJS",v=(d=d.version||null)&&d.major+"."+d.minor+"."+d.patch):"number"==typeof P.documentMode&&(d=/\bTrident\/(\d+)/i.exec(c))&&(v=[v,P.documentMode],(d=+d[1]+4)!=v[1]&&(l.push("IE "+v[1]+" mode"),C&&(C[1]=""),v[1]=d),v="IE"==m?String(v[1].toFixed(1)):
178v[0]);n=n&&r(n)}v&&(d=/(?:[ab]|dp|pre|[ab]\d+pre)(?:\d+\+?)?$/i.exec(v)||/(?:alpha|beta)(?: ?\d)?/i.exec(c+";"+(X&&p.appMinorVersion))||/\bMinefield\b/i.test(c)&&"a")&&(la=/b/i.test(d)?"beta":"alpha",v=v.replace(RegExp(d+"\\+?$"),"")+("beta"==la?Z:Y)+(/\d+\+?/.exec(d)||""));"Fennec"==m||"Firefox"==m&&/\b(?:Android|Firefox OS)\b/.test(n)?m="Firefox Mobile":"Maxthon"==m&&v?v=v.replace(/\.[\d.]+/,".x"):/\bXbox\b/i.test(A)?(n=null,"Xbox 360"==A&&/\bIEMobile\b/.test(c)&&l.unshift("mobile mode")):!/^(?:Chrome|IE|Opera)$/.test(m)&&
179(!m||A||/Browser|Mobi/.test(m))||"Windows CE"!=n&&!/Mobi/i.test(c)?"IE"==m&&X&&null===g.external?l.unshift("platform preview"):(/\bBlackBerry\b/.test(A)||/\bBB10\b/.test(c))&&(d=(RegExp(A.replace(/ +/g," *")+"/([.\\d]+)","i").exec(c)||0)[1]||v)?(n=((d=[d,/BB10/.test(c)])[1]?(A=null,N="BlackBerry"):"Device Software")+" "+d[0],v=null):this!=w&&"Wii"!=A&&(X&&W||/Opera/.test(m)&&/\b(?:MSIE|Firefox)\b/i.test(c)||"Firefox"==m&&/\bOS X (?:\d+\.){2,}/.test(n)||"IE"==m&&(n&&!/^Win/.test(n)&&5.5<v||/\bWindows XP\b/.test(n)&&
1808<v||8==v&&!/\bTrident\b/.test(c)))&&!L.test(d=ea.call(w,c.replace(L,"")+";"))&&d.name&&(d="ing as "+d.name+((d=d.version)?" "+d:""),L.test(m)?(/\bIE\b/.test(d)&&"Mac OS"==n&&(n=null),d="identify"+d):(d="mask"+d,m=K?r(K.replace(/([a-z])([A-Z])/g,"$1 $2")):"Opera",/\bIE\b/.test(d)&&(n=null),X||(v=null)),C=["Presto"],l.push(d)):m+=" Mobile";(d=(/\bAppleWebKit\/([\d.]+\+?)/i.exec(c)||0)[1])&&(d=[parseFloat(d.replace(/\.(\d)$/,".0$1")),d],"Safari"==m&&"+"==d[1].slice(-1)?(m="WebKit Nightly",la="alpha",
181v=d[1].slice(0,-1)):(v==d[1]||v==(d[2]=(/\bSafari\/([\d.]+\+?)/i.exec(c)||0)[1]))&&(v=null),d[1]=(/\bChrome\/([\d.]+)/i.exec(c)||0)[1],537.36==d[0]&&537.36==d[2]&&28<=parseFloat(d[1])&&"WebKit"==C&&(C=["Blink"]),X&&(za||d[1])?(C&&(C[1]="like Chrome"),d=d[1]||(530>(d=d[0])?1:532>d?2:532.05>d?3:533>d?4:534.03>d?5:534.07>d?6:534.1>d?7:534.13>d?8:534.16>d?9:534.24>d?10:534.3>d?11:535.01>d?12:535.02>d?"13+":535.07>d?15:535.11>d?16:535.19>d?17:536.05>d?18:536.1>d?19:537.01>d?20:537.11>d?"21+":537.13>d?
18223:537.18>d?24:537.24>d?25:537.36>d?26:"Blink"!=C?"27":"28")):(C&&(C[1]="like Safari"),d=400>(d=d[0])?1:500>d?2:526>d?3:533>d?4:534>d?"4+":535>d?5:537>d?6:538>d?7:601>d?8:"8"),C&&(C[1]+=" "+(d+="number"==typeof d?".x":/[.+]/.test(d)?"":"+")),"Safari"==m&&(!v||45<parseInt(v))&&(v=d));"Opera"==m&&(d=/\bzbov|zvav$/.exec(n))?(m+=" ",l.unshift("desktop mode"),"zvav"==d?(m+="Mini",v=null):m+="Mobile",n=n.replace(RegExp(" *"+d+"$"),"")):"Safari"==m&&/\bChrome\b/.exec(C&&C[1])&&(l.unshift("desktop mode"),
183m="Chrome Mobile",v=null,/\bOS X\b/.test(n)?(N="Apple",n="iOS 4.3+"):n=null);v&&0==v.indexOf(d=/[\d.]+$/.exec(n))&&-1<c.indexOf("/"+d+"-")&&(n=J(n.replace(d,"")));C&&!/\b(?:Avant|Nook)\b/.test(m)&&(/Browser|Lunascape|Maxthon/.test(m)||"Safari"!=m&&/^iOS/.test(n)&&/\bSafari\b/.test(C[1])||/^(?:Adobe|Arora|Breach|Midori|Opera|Phantom|Rekonq|Rock|Sleipnir|Web)/.test(m)&&C[1])&&(d=C[C.length-1])&&l.push(d);l.length&&(l=["("+l.join("; ")+")"]);N&&A&&0>A.indexOf(N)&&l.push("on "+N);A&&l.push((/^on /.test(l[l.length-
1841])?"":"on ")+A);n&&(d=/ ([\d.+]+)$/.exec(n),y=d&&"/"==n.charAt(n.length-d[0].length-1),n={architecture:32,family:d&&!y?n.replace(d[0],""):n,version:d?d[1]:null,toString:function(){var d=this.version;return this.family+(d&&!y?" "+d:"")+(64==this.architecture?" 64-bit":"")}});(d=/\b(?:AMD|IA|Win|WOW|x86_|x)64\b/i.exec(ka))&&!/\bi686\b/i.test(ka)?(n&&(n.architecture=64,n.family=n.family.replace(RegExp(" *"+d),"")),m&&(/\bWOW64\b/i.test(c)||X&&/\w(?:86|32)$/.test(p.cpuClass||p.platform)&&!/\bWin64; x64\b/i.test(c))&&
185l.unshift("32-bit")):n&&/^OS X/.test(n.family)&&"Chrome"==m&&39<=parseFloat(v)&&(n.architecture=64);c||(c=null);g={};return g.description=c,g.layout=C&&C[0],g.manufacturer=N,g.name=m,g.prerelease=la,g.product=A,g.ua=c,g.version=m&&v,g.os=n||{architecture:null,family:null,version:null,toString:function(){return"null"}},g.parse=ea,g.toString=function(){return this.description||""},g.version&&l.unshift(v),g.name&&l.unshift(m),n&&m&&(n!=String(n).split(" ")[0]||n!=m.split(" ")[0]&&!A)&&l.push(A?"("+n+
186")":"on "+n),l.length&&(g.description=l.join(" ")),g}var y={function:!0,object:!0},aa=y["undefined"==typeof window?"undefined":z(window)]&&window||this,B=aa,S=y[z(g)]&&g,y=y[z(h)]&&h&&!h.nodeType&&h,F=S&&y&&"object"==z(c)&&c;!F||F.global!==F&&F.window!==F&&F.self!==F||(aa=F);var D=Math.pow(2,53)-1,L=/\bOpera/,R=this,F=Object.prototype,za=F.hasOwnProperty,Ya=F.toString,F=ea();S&&y?w(F,function(c,f){S[f]=c}):aa.platform=F}).call(this)}).call(this,void 0!==P?P:"undefined"!=typeof self?self:"undefined"!=
187typeof window?window:{})},{}]},{},[1])(1),lb,mb=oa;$svjq("body").append('\x3cdiv class\x3d"or-menu-backdrop" style\x3d"display: none"\x3e\x3c/div\x3e');var ya=$svjq(".or-menu-backdrop"),Pa=$svjq(".or-push-nav-btn"),K=$svjq(".or-tree"),nb=$svjq("html"),Qa,Ra,Sa=function(){0<arguments.length&&void 0!==arguments[0]&&!arguments[0]?ya.fadeOut("slow").hide():ya.show()},Ta=function(){"true"===K.attr("aria-expanded")?(Pa.attr("aria-expanded","true"),nb.addClass("or-no-scroll"),Sa(!0),Y()||(lb=mb.maintain.disabled({filter:".or-tree, .or-mobile-nav-container"}),
188$svjq(".or-mobile-nav-bar .or-menu-title").trigger("focus"))):(Pa.attr("aria-expanded","false"),nb.removeClass("or-no-scroll"),Sa(!1),Y()||(lb.disengage(),Pa.trigger("focus")))},Ua=function(){K.attr("aria-expanded","false");Ta()},ob=function(){K.attr("aria-expanded","true");Ta()},Xb=(Qa=function(c,h,g){return f=function(c){var f="/rest-api/menu/".concat(c);return new Promise(function(c,g){$svjq.getJSON(f).done(function(f){c(f.nodes)}).fail(function(c){g(console.error(c))})})}(h),l=function(f){f=f.map(function(c){return'\x3cli data-id\x3d"'.concat(c.id,
189'" ').concat(0<c.children?' class\x3d"or-parent"':"",'\x3e\n    \x3ca href\x3d"').concat(c.URI,'"\x3e').concat(c.name,"\x3c/a\x3e\n    ").concat(0<c.children?'\x3cbutton class\x3d"or-toggle-btn" aria-expanded\x3d"false" value\x3d"Expandera '.concat(c.name,'"\x3e\x3cspan class\x3d"or-toggle-icon"\x3e\x3c/span\x3e\x3c/button\x3e'):"","\n    \x3c/li\x3e")}).join("\n");f='\x3cul class\x3d"or-depth-'.concat(g,'"\x3e').concat(f,"\x3c/ul\x3e");c.append(f)},p?l?l(f):f:(f&&f.then||(f=Promise.resolve(f)),l?
190f.then(l):f);var f,l,p},function(){for(var c=[],h=0;h<arguments.length;h++)c[h]=arguments[h];try{return Promise.resolve(Qa.apply(this,c))}catch(g){return Promise.reject(g)}});$svjq(".or-tree").on("click",".or-toggle-btn",function(){var c,h=$svjq(this).closest("li"),g=h.parent(),f=h.attr("data-id");0===h.children("ul").length&&(g=(c=g.attr("class"),Number(c.replace(/^or-depth-(\d{1})$/,"$1"))+1),Xb(h,f,g));h.toggleClass("or-expanded");$svjq(this).attr("aria-expanded",function(c,f){return"true"===f?
191"false":"true"})});$svjq('.or-push-nav-btn[aria-controls\x3d"menu"]').on("click",ob);$svjq("#menu .or-push-nav-btn").on("click",Ua);$svjq("#mobileMenuBtn").on("click",function(){"true"===K.attr("aria-expanded")?Ua():ob()});ya.on("click",Ua);$svjq.fn.modal_box=function(c){var h;c=$svjq.extend({height:"250",width:"800",top:"25%",left:"50%",ref:"#contact"},c);var g=function(){return/Mobi|Android|iPhone|iPad|iPod/i.test(navigator.userAgent)};$svjq('a[href*\x3d"'.concat(c.ref,'"]')).on("click",function(){$svjq(".or-backdrop").show();
192$svjq(".or-modal").fadeIn("fast",void(g()||(Ra=mb.maintain.disabled({filter:".or-modal"}))))});$svjq(window).on("hashchange",function(){"#contact"!==window.location.hash&&$svjq(".or-modal, .or-backdrop").fadeOut("fast",void(g()||Ra.disengage()))});h=$svjq(this);$svjq(h).wrap('\x3cdiv class\x3d"or-modal-content" \x3e\x3c/div\x3e');$svjq(".or-modal-content").wrap('\x3cdiv class\x3d"or-modal" style\x3d"display:none;"\x3e\x3c/div\x3e');$svjq(".or-modal-content").after('\x3ca href\x3d"#" class\x3d"or-modal-close"\x3e\x3ci class\x3d"fa fa-times"\x3e\x3c/i\x3e St\u00e4ng\x3c/a\x3e');
193$svjq(h).show();h=$svjq('\x3cdiv class\x3d"or-backdrop" style\x3d"display:none"\x3e\x3c/div\x3e');$svjq(h).appendTo("body");$svjq(".or-modal-close, .or-backdrop").on("click",function(){return window.history.back(),!1});$svjq(".or-modal").css({left:c.left,top:c.top,width:"".concat(c.width,"px"),"margin-top":"".concat(-Math.round(c.height/2),"px"),"margin-left":"".concat(-Math.round(c.width/2),"px")})};(function(c){function h(c,h,l){var p=c[0],r=/er/.test(l)?"indeterminate":/bl/.test(l)?"disabled":
194"checked",y="update"==l?{checked:p.checked,disabled:p.disabled,indeterminate:"true"==c.attr("indeterminate")||"false"==c.attr("determinate")}:p[r];
194if(/^(ch|di|in)/.test(l)&&!y)g(c,r);else if(/^(un|en|de)/.test(l)&&y)f(c,r);else if("update"==l)for(var w in y)y[w]?g(c,w,!0):f(c,w,!0);else h&&"toggle"!=l||(h||c.trigger("ifClicked"),y?"radio"!==p.type&&f(c,r):g(c,r))}function g(g,h,l){var J=g[0],z=g.parent(),y="checked"==h,E="indeterminate"==h,B="disabled"==h,D=E?"determinate":y?"unchecked":"enabled",
195F=p(g,D+r(J.type)),I=p(g,h+r(J.type));if(!0!==J[h]){if(!l&&"checked"==h&&"radio"==J.type&&J.name){var L=g.closest("form"),R='input[name\x3d"'+J.name+'"]';(R=L.length?L.find(R):c(R)).each(function(){this!==J&&c(this).data("iCheck")&&f(c(this),h)})}E?(J[h]=!0,J.checked&&f(g,"checked","force")):(l||(J[h]=!0),y&&J.indeterminate&&f(g,"indeterminate",!1));w(g,y,h,l)}J.disabled&&p(g,"cursor",!0)&&z.find(".iCheck-helper").css("cursor","default");z.addClass(I||p(g,h)||"");z.attr("role")&&!E&&z.attr("aria-"+
196(B?"disabled":"checked"),"true");z.removeClass(F||p(g,D)||"")}function f(c,f,g){var h=c[0],l=c.parent(),y="checked"==f,z="indeterminate"==f,E="disabled"==f,B=z?"determinate":y?"unchecked":"enabled",F=p(c,B+r(h.type)),D=p(c,f+r(h.type));!1!==h[f]&&(!z&&g&&"force"!=g||(h[f]=!1),w(c,y,B,g));!h.disabled&&p(c,"cursor",!0)&&l.find(".iCheck-helper").css("cursor","pointer");l.removeClass(D||p(c,f)||"");l.attr("role")&&!z&&l.attr("aria-"+(E?"disabled":"checked"),"false");l.addClass(F||p(c,B)||"")}function l(f,
197g){f.data("iCheck")&&(f.parent().html(f.attr("style",f.data("iCheck").s||"")),g&&f.trigger(g),f.off(".i").unwrap(),c('label[for\x3d"'+f[0].id+'"]').add(f.closest("label")).off(".i"))}function p(c,f,g){if(c.data("iCheck"))return c.data("iCheck").o[f+(g?"":"Class")]}function r(c){return c.charAt(0).toUpperCase()+c.slice(1)}function w(c,f,g,h){h||(f&&c.trigger("ifToggled"),c.trigger("ifChanged").trigger("if"+r(g)))}var E=/ipad|iphone|ipod|android|blackberry|windows phone|opera mini|silk/i.test(navigator.userAgent);
198c.fn.iCheck=function(p,r){var w='input[type\x3d"checkbox"], input[type\x3d"radio"]',B=c(),D=function(f){f.each(function(){var f=c(this);B=f.is(w)?B.add(f):B.add(f.find(w))})};if(/^(check|uncheck|toggle|indeterminate|determinate|disable|enable|update|destroy)$/i.test(p))return p=p.toLowerCase(),D(this),B.each(function(){var f=c(this);"destroy"==p?l(f,"ifDestroyed"):h(f,!0,p);c.isFunction(r)&&r()});if("object"!=z(p)&&p)return this;var y=c.extend({checkedClass:"checked",disabledClass:"disabled",indeterminateClass:"indeterminate",
199labelHover:!0},p),I=y.handle,K=y.hoverClass||"hover",S=y.focusClass||"focus",F=y.activeClass||"active",P=!!y.labelHover,L=y.labelHoverClass||"hover",R=0|(""+y.increaseArea).replace("%","");return"checkbox"!=I&&"radio"!=I||(w='input[type\x3d"'+I+'"]'),-50>R&&(R=-50),D(this),B.each(function(){var p=c(this);l(p);var r,q=this,w=q.id,x=-R+"%";
199r=100+2*R+"%";r={position:"absolute",top:x,left:x,display:"block",width:r,height:r,margin:0,padding:0,background:"#fff",border:0,opacity:0};var x=E?{position:"absolute",
200visibility:"hidden"}:R?r:{position:"absolute",opacity:0},B="checkbox"==q.type?y.checkboxClass||"icheckbox":y.radioClass||"iradio",z=c('label[for\x3d"'+w+'"]').add(p.closest("label")),D=!!y.aria,v="iCheck-"+Math.random().toString(36).substr(2,6),d='\x3cdiv class\x3d"'+B+'" '+(D?'role\x3d"'+q.type+'" ':"");D&&z.each(function(){d+='aria-labelledby\x3d"';this.id?d+=this.id:(this.id=v,d+=v);d+='"'});d=p.wrap(d+"/\x3e").trigger("ifCreated").parent().append(y.insert);r=c('\x3cins class\x3d"iCheck-helper"/\x3e').css(r).appendTo(d);
201p.data("iCheck",{o:y,s:p.attr("style")}).css(x);y.inheritClass&&d.addClass(q.className||"");y.inheritID&&w&&d.attr("id","iCheck-"+w);"static"==d.css("position")&&d.css("position","relative");h(p,!0,"update");z.length&&z.on("click.i mouseover.i mouseout.i touchbegin.i touchend.i",function(f){var g=f.type,l=c(this);if(!q.disabled){if("click"==g){if(c(f.target).is("a"))return;h(p,!1,!0)}else P&&(/ut|nd/.test(g)?(d.removeClass(K),l.removeClass(L)):(d.addClass(K),l.addClass(L)));if(!E)return!1;f.stopPropagation()}});
202p.on("click.i focus.i blur.i keyup.i keydown.i keypress.i",function(c){var h=c.type;c=c.keyCode;return"click"!=h&&("keydown"==h&&32==c?("radio"==q.type&&q.checked||(q.checked?f(p,"checked"):g(p,"checked")),!1):void("keyup"==h&&"radio"==q.type?!q.checked&&g(p,"checked"):/us|ur/.test(h)&&d["blur"==h?"removeClass":"addClass"](S)))});r.on("click mousedown mouseup mouseover mouseout touchbegin.i touchend.i",function(c){var f=c.type,g=/wn|up/.test(f)?F:K;if(!q.disabled){if("click"==f?h(p,!1,!0):(/wn|er|in/.test(f)?
203d.addClass(g):d.removeClass(g+" "+F),z.length&&P&&g==K&&z[/ut|nd/.test(f)?"removeClass":"addClass"](L)),!E)return!1;c.stopPropagation()}})})}})(window.jQuery||window.Zepto);svDocReady(function(){$svjq("input").iCheck({checkboxClass:"icheckbox_flat-red",radioClass:"iradio_flat-red"})});svDocReady(function(){var c=$svjq(".or-translation-btn"),h=$svjq(".sv-language-portlet a.or-support-nav"),g=function(c,g){g.empty();h.each(function(){var c,f,h;g.append((c=$svjq(this),f=c.find(".supportlinks").text().trim(),
204h=c.attr("href"),c.hide(),'\x3cli\x3e\x3ca href\x3d"'.concat(h,'" class\x3d"or-translation-menu-link"\x3e').concat(f,"\x3c/a\x3e\x3c/li\x3e")))});c.attr({href:"#","aria-haspopup":"true","aria-expanded":"false"}).find(".or-mobile-nav-text, .supportlinks").text("Translate");c.addClass("is-visible");c.on("click",function(h){h.preventDefault();h=g.toggleClass("show").hasClass("show");c.attr("aria-expanded",h)})};c.each(function(){var c=$svjq(this),l=c.closest(".or-translation-wrapper"),p=l.find(".or-translation-menu"),
205l=l.hasClass("or-translation-wrapper-desktop");1===h.length?l?c.removeClass("is-visible"):(p=h.eq(0),l=p.find(".supportlinks").text().trim(),c.attr("href",p.attr("href")).find(".or-mobile-nav-text, .supportlinks").text(l),c.addClass("is-visible")):1<h.length&&g(c,p)});$svjq(document).on("click",function(c){$svjq(c.target).closest(".or-translation-wrapper").length||($svjq(".or-translation-menu").removeClass("show"),$svjq(".or-translation-btn").attr("aria-expanded","false"))})})}();
206var $jscomp={scope:{},getGlobal:function(u){return"undefined"!=typeof window&&window===u?u:"undefined"!=typeof global?global:u}};$jscomp.global=$jscomp.getGlobal(this);$jscomp.initSymbol=function(){$jscomp.global.Symbol||($jscomp.global.Symbol=$jscomp.Symbol);$jscomp.initSymbol=function(){}};$jscomp.symbolCounter_=0;$jscomp.Symbol=function(u){return"jscomp_symbol_"+u+$jscomp.symbolCounter_++};
207$jscomp.initSymbolIterator=function(){$jscomp.initSymbol();$jscomp.global.Symbol.iterator||($jscomp.global.Symbol.iterator=$jscomp.global.Symbol("iterator"));$jscomp.initSymbolIterator=function(){}};
208$jscomp.makeIterator=function(u){$jscomp.initSymbolIterator();if(u[$jscomp.global.Symbol.iterator])return u[$jscomp.global.Symbol.iterator]();if(!(u instanceof Array||"string"==typeof u||u instanceof String))throw new TypeError(u+" is not iterable");var m=0;return{next:function(){return m==u.length?{done:!0}:{done:!1,value:u[m++]}}}};
208$jscomp.arrayFromIterator=function(u){for(var m,r=[];!(m=u.next()).done;)r.push(m.value);return r};
209$jscomp.arrayFromIterable=function(u){return u instanceof Array?u:$jscomp.arrayFromIterator($jscomp.makeIterator(u))};$jscomp.arrayFromArguments=function(u){for(var m=[],r=0;r<u.length;r++)m.push(u[r]);return m};
210$jscomp.inherits=function(u,m){function r(){}r.prototype=m.prototype;u.prototype=new r;u.prototype.constructor=u;for(var w in m)if($jscomp.global.Object.defineProperties){var A=$jscomp.global.Object.getOwnPropertyDescriptor(m,w);void 0!==A&&$jscomp.global.Object.defineProperty(u,w,A)}else u[w]=m[w]};
211!function(u){"object"==typeof exports&&"undefined"!=typeof module?module.exports=u():"function"==typeof define&&define.amd?define([],u):("undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:this).ally=u()}(function(){return function m(r,w,A){function K(n,B){if(!w[n]){if(!r[n]){var F="function"==typeof require&&require;if(!B&&F)return F(n,!0);if(W)return W(n,!0);F=Error("Cannot find module '"+n+"'");throw F.code="MODULE_NOT_FOUND",F;}F=w[n]={exports:{}};
212r[n][0].call(F.exports,function(B){var m=r[n][1][B];return K(m?m:B)},F,F.exports,m,r,w,A)}return w[n].exports}for(var W="function"==typeof require&&require,L=0;L<A.length;L++)K(A[L]);return K}({1:[function(m,r){function w(a,b){if(!(a instanceof b))throw new TypeError("Cannot call a class as a function");}function A(a){return a&&"object"===("undefined"==typeof a?"undefined":Fb(a))&&"default"in a?a["default"]:a}function K(){var a={activeElement:document.activeElement,windowScrollTop:window.scrollTop,
213windowScrollLeft:window.scrollLeft,bodyScrollTop:document.body.scrollTop,bodyScrollLeft:document.body.scrollLeft},b=document.createElement("iframe");b.setAttribute("style","position:absolute; position:fixed; top:0; left:-2px; width:1px; height:1px; overflow:hidden;");b.setAttribute("aria-live","off");b.setAttribute("aria-busy","true");b.setAttribute("aria-hidden","true");document.body.appendChild(b);var c=b.contentWindow,g=c.document;g.open();g.close();var M=g.createElement("div");return g.body.appendChild(M),
214a.iframe=b,a.wrapper=M,a.window=c,a.document=g,a}function W(a){a.activeElement===document.body?(document.activeElement&&document.activeElement.blur&&document.activeElement.blur(),k.is.IE10&&document.body.focus()):a.activeElement&&a.activeElement.focus&&a.activeElement.focus();document.body.removeChild(a.iframe);window.scrollTop=a.windowScrollTop;window.scrollLeft=a.windowScrollLeft;document.body.scrollTop=a.bodyScrollTop;document.body.scrollLeft=a.bodyScrollLeft}function L(a,b){if(document.hasFocus())try{window.localStorage&&
215window.localStorage.setItem(a,JSON.stringify(b))}catch(c){}else try{window.localStorage&&window.localStorage.removeItem(a)}catch(c){}}function n(a){return'\x3csvg xmlns\x3d"http://www.w3.org/2000/svg" xmlns:xlink\x3d"http://www.w3.org/1999/xlink"\x3e'+a+"\x3c/svg\x3e"}function B(a,b,c){if(!b.focus)try{HTMLElement.prototype.focus.call(b)}catch(g){Gb(b)}return c.activeElement===b}function F(){var a=zc(Ac);return Object.keys(Hb).forEach(function(b){a[b]=Hb[b]()}),a}function C(){Bc.warn("trying to focus inert element",
216this)}function X(a){Cc.some(function(b){return a[b]?(ab=b,!0):!1})}function R(a,b){return ab||X(a),a[ab](b)}function Y(a){a=a.webkitUserModify||"";return Boolean(a&&-1!==a.indexOf("write"))}function H(a){return[a.getPropertyValue("overflow"),a.getPropertyValue("overflow-x"),a.getPropertyValue("overflow-y")].some(function(a){return"auto"===a||"scroll"===a})}function S(a){return-1<a.display.indexOf("flex")}function ja(a,b,c,g){return"div"!==b&&"span"!==b?!1:c&&"div"!==c&&"span"!==c&&!H(g)?!1:a.offsetHeight<
217a.scrollHeight||a.offsetWidth<a.scrollWidth}function I(){var a=0<arguments.length&&void 0!==arguments[0]?arguments[0]:{},b=a.context,a=a.except,a=void 0===a?{flexbox:!1,scrollable:!1,shadow:!1}:a;x||(x=J());var c=y({label:"is/focus-relevant",resolveDocument:!0,context:b});if(!a.shadow&&c.shadowRoot)return!0;b=c.nodeName.toLowerCase();if("input"===b&&"hidden"===c.type)return!1;if("input"===b||"select"===b||"button"===b||"textarea"===b||"legend"===b&&x.focusRedirectLegend||"label"===b||"area"===b||
218"a"===b&&c.hasAttribute("href"))return!0;
218if("object"===b&&c.hasAttribute("usemap"))return!1;if("object"===b){var g=c.getAttribute("type");if(!x.focusObjectSvg&&"image/svg+xml"===g||!x.focusObjectSwf&&"application/x-shockwave-flash"===g)return!1}if("iframe"===b||"object"===b||"embed"===b||"keygen"===b||c.hasAttribute("contenteditable")||"audio"===b&&(x.focusAudioWithoutControls||c.hasAttribute("controls"))||"video"===b&&(x.focusVideoWithoutControls||c.hasAttribute("controls"))||x.focusSummary&&"summary"===
219b)return!0;g=La(c);if("img"===b&&c.hasAttribute("usemap"))return g&&x.focusImgUsemapTabindex||x.focusRedirectImgUsemap;if(x.focusTable&&("table"===b||"td"===b)||x.focusFieldset&&"fieldset"===b)return!0;var M="svg"===b,d=c.ownerSVGElement,e=c.getAttribute("focusable"),f=N(c);if("use"===b&&null!==f&&!x.focusSvgUseTabindex)return!1;if("foreignobject"===b)return null!==f&&x.focusSvgForeignobjectTabindex;if(R(c,"svg a")&&c.hasAttribute("xlink:href"))return!0;if((M||d)&&c.focus&&!x.focusSvgNegativeTabindexAttribute&&
2200>f)return!1;if(M)return g||x.focusSvg||x.focusSvgInIframe||Boolean(x.focusSvgFocusableAttribute&&e&&"true"===e);if(d){if(x.focusSvgTabindexAttribute&&g)return!0;if(x.focusSvgFocusableAttribute)return"true"===e}if(g)return!0;g=window.getComputedStyle(c,null);if(Y(g)||x.focusImgIsmap&&"img"===b&&c.hasAttribute("ismap")&&O({context:c}).some(function(a){return"a"===a.nodeName.toLowerCase()&&a.hasAttribute("href")}))return!0;if(!a.scrollable&&x.focusScrollContainer)if(x.focusScrollContainerWithoutOverflow){if(ja(c,
221b))return!0}else if(H(g))return!0;if(!a.flexbox&&x.focusFlexboxContainer&&S(g))return!0;c=c.parentElement;return!a.scrollable&&c&&(a=c.nodeName.toLowerCase(),g=window.getComputedStyle(c,null),x.focusScrollBody&&ja(c,b,a,g)||x.focusChildrenOfFocusableFlexbox&&S(g))?!0:!1}function z(a,b){if(a.findIndex)return a.findIndex(b);var c=a.length;if(0===c)return-1;for(var g=0;c>g;g++)if(b(a[g],g,a))return g;return-1}function ta(a){if(bb||(bb=cb("object, iframe")),void 0!==a._frameElement)return a._frameElement;
222a._frameElement=null;var b=a.parent.document.querySelectorAll(bb);return[].some.call(b,function(b){var g;try{g=b.contentDocument||b.contentWindow&&b.contentWindow.document||b.getSVGDocument&&b.getSVGDocument()||null}catch(M){g=null}return g!==a.document?!1:(a._frameElement=b,!0)}),a._frameElement}function T(a){a=G(a).defaultView||window;if(!a.parent||a.parent===a)return null;try{return a.frameElement||ta(a)}catch(b){return null}}function db(a){return a.some(function(a){return"none"===window.getComputedStyle(a,
223null).getPropertyValue("display")})}function ua(a){var b=z(a,function(a){a=window.getComputedStyle(a,null).getPropertyValue("visibility");return"hidden"===a||"collapse"===a});if(-1===b)return!1;a=z(a,function(a){return"visible"===window.getComputedStyle(a,null).getPropertyValue("visibility")});return-1===a?!0:a>b?!0:!1}function Ma(a){var b=1;return"summary"===a[0].nodeName.toLowerCase()&&(b=2),a.slice(b).some(function(a){return"details"===a.nodeName.toLowerCase()&&!1===a.open})}function e(){var a=
2240<arguments.length&&void 0!==arguments[0]?arguments[0]:{},b=a.except,b=void 0===b?{notRendered:!1,cssDisplay:!1,cssVisibility:!1,detailsElement:!1,browsingContext:!1}:b,a=y({label:"is/visible",resolveDocument:!0,context:a.context}),c=a.nodeName.toLowerCase();if(!b.notRendered&&Ec.test(c))return!0;var g=O({context:a}),c="audio"===c&&!a.hasAttribute("controls");return!b.cssDisplay&&db(c?g.slice(1):g)||!b.cssVisibility&&ua(g)||!b.detailsElement&&Ma(g)||!b.browsingContext&&(a=T(a),b=e.except(b),a&&!b(a))?
225!1:!0}function Ib(a,b){return b.querySelector('map[name\x3d"'+Jb(a)+'"]')||null}function Kb(a){var b=a.parentElement;return b.name&&"map"===b.nodeName.toLowerCase()?G(a).querySelector('img[usemap\x3d"#'+Jb(b.name)+'"]')||null:null}function p(a){return"fieldset"===a.nodeName.toLowerCase()&&a.disabled}function q(a){return"form"===a.nodeName.toLowerCase()&&a.disabled}function Na(){var a=0<arguments.length&&void 0!==arguments[0]?arguments[0]:{},b=a.except,b=void 0===b?{onlyFocusableBrowsingContext:!1,
226visible:!1}:b,a=y({label:"is/only-tabbable",resolveDocument:!0,context:a.context});if(!b.visible&&!ka(a)||!b.onlyFocusableBrowsingContext&&(k.is.GECKO||k.is.TRIDENT||k.is.EDGE)&&(b=T(a))&&0>N(b))return!1;var b=a.nodeName.toLowerCase(),c=N(a);return"label"===b&&k.is.GECKO?null!==c&&0<=c:k.is.GECKO&&a.ownerSVGElement&&!a.focus&&"a"===b&&a.hasAttribute("xlink:href")&&k.is.GECKO?!0:!1}
226function l(a){var b=a.nodeName.toLowerCase();if("embed"===b||"keygen"===b)return!0;var c=N(a);return a.shadowRoot&&null===
227c?!0:"label"===b?!U.focusLabelTabindex||null===c:"legend"===b?null===c:U.focusSvgFocusableAttribute&&(a.ownerSVGElement||"svg"===b)?(a=a.getAttribute("focusable"))&&"false"===a:"img"===b&&a.hasAttribute("usemap")?null===c||!U.focusImgUsemapTabindex:"area"===b?!Lb(a):!1}function d(){var a=0<arguments.length&&void 0!==arguments[0]?arguments[0]:{},b=a.context,a=a.except,a=void 0===a?{disabled:!1,visible:!1,onlyTabbable:!1}:a;U||(U=J());var c=Mb.rules.except({onlyFocusableBrowsingContext:!0,visible:a.visible}),
228b=y({label:"is/focusable",resolveDocument:!0,context:b});if(!va.rules({context:b,except:a})||l(b)||!a.disabled&&Nb(b)||!a.onlyTabbable&&c(b)||!a.visible&&(a={context:b,except:{}},(U.focusInHiddenIframe&&(a.except.browsingContext=!0),U.focusObjectSvgHidden)&&"object"===b.nodeName.toLowerCase()&&(a.except.cssVisibility=!0),!ka.rules(a)))return!1;a=T(b);return!a||"object"!==a.nodeName.toLowerCase()||U.focusInZeroDimensionObject||a.offsetWidth&&a.offsetHeight?"svg"===b.nodeName.toLowerCase()&&U.focusSvgInIframe&&
229!a&&null===b.getAttribute("tabindex")?!1:!0:!1}function Ob(a){var b=function(b){return b.shadowRoot?NodeFilter.FILTER_ACCEPT:a(b)?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP};return b.acceptNode=b,b}function Pb(){var a=0<arguments.length&&void 0!==arguments[0]?arguments[0]:{},b=a.context,c=a.includeContext,g=a.includeOnlyTabbable,a=a.strategy;b||(b=document.documentElement);for(var M=Z.rules.except({onlyTabbable:g}),d=G(b).createTreeWalker(b,NodeFilter.SHOW_ELEMENT,"all"===a?Fc:Ob(M),!1),e=[];d.nextNode();)d.currentNode.shadowRoot?
230(M(d.currentNode)&&e.push(d.currentNode),e=e.concat(Pb({context:d.currentNode.shadowRoot,includeOnlyTabbable:g,strategy:a}))):e.push(d.currentNode);return c&&("all"===a?va(b)&&e.unshift(b):M(b)&&e.unshift(b)),e}function Gc(){var a=0<arguments.length&&void 0!==arguments[0]?arguments[0]:{},b=a.context,c=a.includeContext,a=a.includeOnlyTabbable,g=(ea||(ea=J()),"string"==typeof wa?wa:(wa=""+(ea.focusTable?"table, td,":"")+(ea.focusFieldset?"fieldset,":"")+"svg a,a[href],area[href],input, select, textarea, button,iframe, object, embed,keygen,"+
231(ea.focusAudioWithoutControls?"audio,":"audio[controls],")+(ea.focusVideoWithoutControls?"video,":"video[controls],")+(ea.focusSummary?"summary,":"")+"[tabindex],[contenteditable]",wa=cb(wa))),g=b.querySelectorAll(g),a=Z.rules.except({onlyTabbable:a}),g=[].filter.call(g,a);return c&&a(b)&&g.unshift(b),g}function xa(){var a=0<arguments.length&&void 0!==arguments[0]?arguments[0]:{},b=a.context,a=a.except,c=void 0===a?{flexbox:!1,scrollable:!1,shadow:!1,visible:!1,onlyTabbable:!1}:a;la||(la=J());b=y({label:"is/tabbable",
232resolveDocument:!0,context:b});if(k.is.BLINK&&k.is.ANDROID&&42<k.majorVersion)return!1;var g=T(b);if(g&&(k.is.WEBKIT&&k.is.IOS||0>N(g)||!c.visible&&(k.is.BLINK||k.is.WEBKIT)&&!ka(g)||"object"===g.nodeName.toLowerCase()&&(a="Chrome"===k.name&&54<=k.majorVersion||"Opera"===k.name&&41<=k.majorVersion,k.is.WEBKIT||k.is.BLINK&&!a)))return!1;var a=b.nodeName.toLowerCase(),d=N(b),e=null===d?null:0<=d;if(k.is.EDGE&&14<=k.majorVersion&&g&&b.ownerSVGElement&&0>d)return!0;var f=!1!==e,g=null!==d&&0<=d;if(b.hasAttribute("contenteditable"))return f;
233if(Hc.test(a)&&!0!==e||k.is.WEBKIT&&k.is.IOS&&(e="input"===a&&"text"===b.type||"password"===b.type||"select"===a||"textarea"===a||b.hasAttribute("contenteditable"),e||(e=window.getComputedStyle(b,null),e=Y(e)),!e))return!1;if("use"===a&&null!==d&&(k.is.BLINK||k.is.WEBKIT&&9===k.majorVersion)||R(b,"svg a")&&b.hasAttribute("xlink:href")&&(f||b.focus&&!la.focusSvgNegativeTabindexAttribute)||"svg"===a&&la.focusSvgInIframe&&f)return!0;if(k.is.TRIDENT||k.is.EDGE){if("svg"===a)return la.focusSvg?!0:b.hasAttribute("focusable")||
234g;if(b.ownerSVGElement)return la.focusSvgTabindexAttribute&&g?!0:b.hasAttribute("focusable")}if(void 0===b.tabIndex)return Boolean(c.onlyTabbable);if("audio"===a){if(!b.hasAttribute("controls"))return!1;if(k.is.BLINK)return!0}if("video"===a)if(b.hasAttribute("controls")){if(k.is.BLINK||k.is.GECKO)return!0}else if(k.is.TRIDENT||k.is.EDGE)return!1;if("object"===a&&(k.is.BLINK||k.is.WEBKIT)||"iframe"===a)return!1;if(!c.scrollable&&k.is.GECKO&&(e=window.getComputedStyle(b,null),H(e)))return f;if(k.is.TRIDENT||
235k.is.EDGE){if("area"===a&&(f=Kb(b))&&0>N(f))return!1;f=window.getComputedStyle(b,null);if(Y(f))return 0<=b.tabIndex;if(!c.flexbox&&S(f))return null!==d?g:Ic(b)&&Jc(b);if(ja(b,a))return!1;if(c=b.parentElement){d=c.nodeName.toLowerCase();f=window.getComputedStyle(c,null);if(ja(c,a,d,f))return!1;if(S(f))return g}}return 0<=b.tabIndex}function Kc(a,b){return a.compareDocumentPosition(b)&Node.DOCUMENT_POSITION_FOLLOWING?-1:1}function aa(a,b){return z(a,function(a){return b.compareDocumentPosition(a)&Node.DOCUMENT_POSITION_FOLLOWING})}
236function Lc(a,b,c){var g=[];return b.forEach(function(b){var d=!0,e=a.indexOf(b);-1===e&&(e=aa(a,b),d=!1);-1===e&&(e=a.length);b=D(c?c(b):b);b.length&&g.push({offset:e,replace:d,elements:b})}),g}function Mc(a,b){var c=0;b.sort(function(a,b){return a.offset-b.offset});b.forEach(function(b){var d=b.replace?1:0,e=[b.offset+c,d].concat(b.elements);a.splice.apply(a,e);c+=b.elements.length-d})}function Nc(a){a=a.nodeName.toLowerCase();return"input"===a||"textarea"===a||"select"===a||"button"===a}function Oa(a){var b=
237O({context:a}).slice(1).map(function(a){return{element:a,scrollTop:a.scrollTop,scrollLeft:a.scrollLeft}});return function(){b.forEach(function(a){a.element.scrollTop=a.scrollTop;a.element.scrollLeft=a.scrollLeft})}}function P(){(0<arguments.length&&void 0!==arguments[0]?arguments[0]:{}).force?this.instances=0:this.instances--;
237this.instances||(this.disengage(),this._result=null)}function ma(){return this.instances?(this.instances++,this._result):(this.instances++,this._result=this.engage()||{},this._result.disengage=
238P.bind(this),this._result)}function fa(){}function ga(){if(document.activeElement){if(document.activeElement!==Pa){var a=new Oc("active-element",{bubbles:!1,cancelable:!1,detail:{focus:document.activeElement,blur:Pa}});document.dispatchEvent(a);Pa=document.activeElement}}else document.body.focus();!1!==ya&&(ya=requestAnimationFrame(ga))}function Q(){this.context&&(this.context.forEach(this.disengage),this.context=null,this.engage=null,this.disengage=null)}function v(){return this.context=D((0<arguments.length&&
239void 0!==arguments[0]?arguments[0]:{}).context||document),this.context.forEach(this.engage),{disengage:Q.bind(this)}}function f(){}function t(){var a=0<arguments.length&&void 0!==arguments[0]?arguments[0]:{},b=a.parent,c=a.element,g=a.includeSelf;if(b)return function(a){return Boolean(g&&a===b||b.compareDocumentPosition(a)&Node.DOCUMENT_POSITION_CONTAINED_BY)};if(c)return function(a){return Boolean(g&&c===a||a.compareDocumentPosition(c)&Node.DOCUMENT_POSITION_CONTAINED_BY)};throw new TypeError("util/compare-position#getParentComparator required either options.parent or options.element");
240}function E(a){var b=a.context,c=a.filter,g=function(a){a=t({parent:a});return c.some(a)},d=[];a=function(a){return c.some(function(b){return a===b})?NodeFilter.FILTER_REJECT:g(a)?NodeFilter.FILTER_ACCEPT:(d.push(a),NodeFilter.FILTER_REJECT)};a.acceptNode=a;for(b=G(b).createTreeWalker(b,NodeFilter.SHOW_ELEMENT,a,!1);b.nextNode(););return d}function h(){var a=(0<arguments.length&&void 0!==arguments[0]?arguments[0]:{}).context,b=y({label:"query/shadow-hosts",resolveDocument:!0,defaultToDocument:!0,
241context:a}),a=G(a).createTreeWalker(b,NodeFilter.SHOW_ELEMENT,eb,!1),c=[];for(b.shadowRoot&&(c.push(b),c=c.concat(h({context:b.shadowRoot})));a.nextNode();)c.push(a.currentNode),c=c.concat(h({context:a.currentNode.shadowRoot}));return c}function fb(a){na({element:a,attribute:"aria-hidden",temporaryValue:"true"})}function Pc(a){na({element:a,attribute:"aria-hidden"})}function gb(a,b){return hb.tabsequenceAreaAtImgPosition&&(a=Qc(a,b)),Rc(a)}function Sc(a){a=a?null:!1;return{altKey:a,ctrlKey:a,metaKey:a,
242shiftKey:a}}function Tc(a){var b=-1!==a.indexOf("*"),c=Sc(b);return a.forEach(function(a){if("*"!==a){var b=!0,d=a.slice(0,1);"?"===d?b=null:"!"===d&&(b=!1);!0!==b&&(a=a.slice(1));d=ib[a];if(!d)throw new TypeError('Unknown modifier "'+a+'"');c[d]=b}}),c}function Uc(a,b){return!Vc.some(function(c){return"boolean"==typeof a[c]&&Boolean(b[c])!==a[c]})}function Qb(){oa=ha=0}function Rb(a){!1!==a.isPrimary&&ha++}function Sb(a){return!1!==a.isPrimary?a.touches?void(ha=a.touches.length):void(window.setImmediate||
243window.setTimeout)(function(){ha=Math.max(ha-1,0)}):void 0}function Tb(a){switch(a.keyCode||a.which){case 16:case 17:case 18:case 91:case 93:return}oa++}function Ub(a){switch(a.keyCode||a.which){case 16:case 17:case 18:case 91:case 93:return}(window.setImmediate||window.setTimeout)(function(){oa=Math.max(oa-1,0)})}function Wc(){return{pointer:Boolean(ha),key:Boolean(oa)}}function Xc(a){return a.hasAttribute("autofocus")}function Yc(a){return 0>=a.tabIndex}function za(a,b,c){var g;g=a.getAttribute&&
244a.getAttribute("class")||"";g=""===g?[]:g.split(" ");var d=g.indexOf(b),e=-1!==d;c=void 0!==c?c:!e;c!==e&&(c||g.splice(d,1),c&&g.push(b),a.setAttribute("class",g.join(" ")))}function ba(a){var b="";a.type===jb||"shadow-focus"===a.type?(b=kb.get(),b=Qa||b.pointer&&"pointer"||b.key&&"key"||"script"):"initial"===a.type&&(b="initial");document.documentElement.setAttribute("data-focus-source",b);a.type!==Ra&&(Aa[b]||za(document.documentElement,"focus-source-"+b,!0),Aa[b]=!0,lb=b)}function Zc(){return lb}
245function $c(a){return Aa[a]}function ad(a){Qa=a}function bd(){Qa=!1}function Sa(a){a=a||mb();nb.cssShadowPiercingDeepCombinator||(a=a.slice(-1));var b=[].slice.call(document.querySelectorAll(ob),0),c=a.map(function(a){return O({context:a})}).reduce(function(a,b){return b.concat(a)},[]);b.forEach(function(a){-1===c.indexOf(a)&&za(a,Ta,!1)});
245c.forEach(function(a){-1===b.indexOf(a)&&za(a,Ta,!0)})}function Vb(){pb=(window.setImmediate||window.setTimeout)(function(){Sa()})}function Wb(){(window.clearImmediate||
246window.clearTimeout)(pb);Sa()}function Xb(a){Sa(a.detail.elements)}function qb(a,b){var c=Math.max(a.top,b.top),g=Math.max(a.left,b.left),d=Math.max(Math.min(a.right,b.right),g),e=Math.max(Math.min(a.bottom,b.bottom),c);return{top:c,right:d,bottom:e,left:g,width:d-g,height:e-c}}function Yb(a){var b=a.getBoundingClientRect(),c=a.offsetWidth-a.clientWidth;a=a.offsetHeight-a.clientHeight;b={top:b.top,left:b.left,right:b.right-c,bottom:b.bottom-a,width:b.width-c,height:b.height-a,area:0};return b.area=
247b.width*b.height,b}function cd(a){var b=window.getComputedStyle(a,null);return"visible"!==b.getPropertyValue("overflow-x")&&"visible"!==b.getPropertyValue("overflow-y")?a.offsetHeight<a.scrollHeight||a.offsetWidth<a.scrollWidth:!1}function dd(a){a=O({context:a}).slice(1).filter(cd);return a.length?a.reduce(function(a,c){var g=Yb(c),d=qb(g,a);return d.area=Math.min(g.area,a.area),d},Yb(a[0])):null}$jscomp.initSymbol();$jscomp.initSymbol();$jscomp.initSymbolIterator();var Ba=function(){function a(a,
248c){for(var g=0;g<c.length;g++){var d=c[g];d.enumerable=d.enumerable||!1;d.configurable=!0;"value"in d&&(d.writable=!0);Object.defineProperty(a,d.key,d)}}return function(b,c,g){return c&&a(b.prototype,c),g&&a(b,g),b}}(),Fb="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(a){return typeof a}:function(a){$jscomp.initSymbol();$jscomp.initSymbol();$jscomp.initSymbol();return a&&"function"==typeof Symbol&&a.constructor===Symbol&&a!==Symbol.prototype?"symbol":typeof a},ed=A(m("platform")),
249Jb=A(m("css.escape")),D=function(a){if(!a)return[];if(Array.isArray(a))return a;if(void 0!==a.nodeType)return[a];if("string"==typeof a&&(a=document.querySelectorAll(a)),void 0!==a.length)return[].slice.call(a,0);throw new TypeError("unexpected input "+String(a));},y=function(a){var b=a.label,b=void 0===b?"context-to-element":b,c=a.resolveDocument,g=a.defaultToDocument;a=D(a.context)[0];if(c&&a&&a.nodeType===Node.DOCUMENT_NODE&&(a=a.documentElement),!a&&g)return document.documentElement;if(!a)throw new TypeError(b+
250" requires valid options.context");if(a.nodeType!==Node.ELEMENT_NODE&&a.nodeType!==Node.DOCUMENT_FRAGMENT_NODE)throw new TypeError(b+" requires options.context to be an Element");return a},pa=function(){for(var a=y({label:"get/shadow-host",context:(0<arguments.length&&void 0!==arguments[0]?arguments[0]:{}).context}),b=null;a;)b=a,a=a.parentNode;return b.nodeType===b.DOCUMENT_FRAGMENT_NODE&&b.host?b.host:null},G=function(a){return a?a.nodeType===Node.DOCUMENT_NODE?a:a.ownerDocument||document:document},
251ca=function(a){a=y({label:"is/active-element",resolveDocument:!0,context:a});if(G(a).activeElement===a)return!0;var b=pa({context:a});return b&&b.shadowRoot.activeElement===a?!0:!1},k=JSON.parse(JSON.stringify(ed)),Ua=k.os.family||"",fd="Android"===Ua,gd="Windows"===Ua.slice(0,7),hd="OS X"===Ua,id="iOS"===Ua,jd="Blink"===k.layout,kd="Gecko"===k.layout,Va="Trident"===k.layout,ld="EdgeHTML"===k.layout,md="WebKit"===k.layout,nd=parseFloat(k.version),Wa=Math.floor(nd);k.majorVersion=Wa;k.is={ANDROID:fd,
252WINDOWS:gd,OSX:hd,IOS:id,BLINK:jd,GECKO:kd,TRIDENT:Va,EDGE:ld,WEBKIT:md,IE9:Va&&9===Wa,IE10:Va&&10===Wa,IE11:Va&&11===Wa};var zc=function(a){var b=K(),c={};return Object.keys(a).map(function(g){var d;d=a[g];b.wrapper.innerHTML="";var e="string"==typeof d.element?b.document.createElement(d.element):d.element(b.wrapper,b.document),f=d.mutate&&d.mutate(e,b.wrapper,b.document);d=(f||!1===f||(f=e),!e.parentNode&&b.wrapper.appendChild(e),f&&f.focus&&f.focus(),d.validate?d.validate(e,f,b.document):b.document.activeElement===
253f);c[g]=d}),W(b),c},Zb="undefined"!=typeof window&&window.navigator.userAgent||"",V=function(a){var b=void 0;try{b=(b=window.localStorage&&window.localStorage.getItem(a))?JSON.parse(b):{}}catch(c){b={}}return b}("ally-supports-cache");V.userAgent===Zb&&"1.4.1"===V.version||(V={});V.userAgent=Zb;V.version="1.4.1";var rb={get:function(){return V}
253,set:function(a){Object.keys(a).forEach(function(b){V[b]=a[b]});V.time=(new Date).toISOString();L("ally-supports-cache",V)}},$b=function(){var a=void 0;try{document.querySelector("html \x3e\x3e\x3e :first-child"),
254a="\x3e\x3e\x3e"}catch(b){try{document.querySelector("html /deep/ :first-child"),a="/deep/"}catch(c){a=""}}return a},od=!k.is.WEBKIT,pd=!k.is.IE9,Gb=function(a){if(!a.ownerSVGElement&&"svg"!==a.nodeName.toLowerCase())return!1;var b;b=document.createElement("div");b=(b.innerHTML='\x3csvg\x3e\x3cforeignObject width\x3d"30" height\x3d"30"\x3e\n      \x3cinput type\x3d"text"/\x3e\n  \x3c/foreignObject\x3e\x3c/svg\x3e',b.firstChild.firstChild);a.appendChild(b);var c=b.querySelector("input");return c.focus(),
255c.disabled=!0,a.removeChild(b),!0},qd=Boolean(k.is.GECKO&&"undefined"!=typeof SVGElement&&SVGElement.prototype.focus),rd=k.is.GECKO||k.is.TRIDENT||k.is.EDGE,Hb={cssShadowPiercingDeepCombinator:$b,focusInZeroDimensionObject:function(){return od},focusObjectSwf:function(){return pd},focusSvgInIframe:function(){return qd},tabsequenceAreaAtImgPosition:function(){return rd}},Ac={focusAreaImgTabindex:{element:"div",mutate:function(a){return a.innerHTML='\x3cmap name\x3d"image-map-tabindex-test"\x3e\x3carea shape\x3d"rect" coords\x3d"63,19,144,45"\x3e\x3c/map\x3e\x3cimg usemap\x3d"#image-map-tabindex-test" tabindex\x3d"-1" alt\x3d"" src\x3d"data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7"\x3e',
256a.querySelector("area")}},focusAreaTabindex:{element:"div",mutate:function(a){return a.innerHTML='\x3cmap name\x3d"image-map-tabindex-test"\x3e\x3carea href\x3d"#void" tabindex\x3d"-1" shape\x3d"rect" coords\x3d"63,19,144,45"\x3e\x3c/map\x3e\x3cimg usemap\x3d"#image-map-tabindex-test" alt\x3d"" src\x3d"data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7"\x3e',!1},validate:function(a,b,c){if(k.is.GECKO)return!0;a=a.querySelector("area");return a.focus(),c.activeElement===
257a}},focusAreaWithoutHref:{element:"div",mutate:function(a){return a.innerHTML='\x3cmap name\x3d"image-map-area-href-test"\x3e\x3carea shape\x3d"rect" coords\x3d"63,19,144,45"\x3e\x3c/map\x3e\x3cimg usemap\x3d"#image-map-area-href-test" alt\x3d"" src\x3d"data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7"\x3e',a.querySelector("area")},validate:function(a,b,c){return k.is.GECKO?!0:c.activeElement===b}},focusAudioWithoutControls:{name:"can-focus-audio-without-control
257s",element:"audio",
258mutate:function(a){try{a.setAttribute("src","data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7")}catch(b){}}},focusBrokenImageMap:{element:"div",mutate:function(a){return a.innerHTML='\x3cmap name\x3d"broken-image-map-test"\x3e\x3carea href\x3d"#void" shape\x3d"rect" coords\x3d"63,19,144,45"\x3e\x3c/map\x3e\x3cimg usemap\x3d"#broken-image-map-test" alt\x3d"" src\x3d"data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///ZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZ"\x3e',a.querySelector("area")}},
259focusChildrenOfFocusableFlexbox:{element:"div",mutate:function(a){return a.setAttribute("tabindex","-1"),a.setAttribute("style","display: -webkit-flex; display: -ms-flexbox; display: flex;"),a.innerHTML='\x3cspan style\x3d"display: block;"\x3ehello\x3c/span\x3e',a.querySelector("span")}},focusFieldsetDisabled:{element:"fieldset",mutate:function(a){a.setAttribute("tabindex",0);a.setAttribute("disabled","disabled")}},focusFieldset:{element:"fieldset",mutate:function(a){a.innerHTML="\x3clegend\x3elegend\x3c/legend\x3e\x3cp\x3econtent\x3c/p\x3e"}},
260focusFlexboxContainer:{element:"span",mutate:function(a){a.setAttribute("style","display: -webkit-flex; display: -ms-flexbox; display: flex;");a.innerHTML='\x3cspan style\x3d"display: block;"\x3ehello\x3c/span\x3e'}},focusFormDisabled:{element:"form",mutate:function(a){a.setAttribute("tabindex",0);a.setAttribute("disabled","disabled")}},focusImgIsmap:{element:"a",mutate:function(a){return a.href="#void",a.innerHTML='\x3cimg ismap src\x3d"data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7" alt\x3d""\x3e',
261a.querySelector("img")}},focusImgUsemapTabindex:{element:"div",mutate:function(a){return a.innerHTML='\x3cmap name\x3d"image-map-tabindex-test"\x3e\x3carea href\x3d"#void" shape\x3d"rect" coords\x3d"63,19,144,45"\x3e\x3c/map\x3e\x3cimg usemap\x3d"#image-map-tabindex-test" tabindex\x3d"-1" alt\x3d"" src\x3d"data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7"\x3e',a.querySelector("img")}},focusInHiddenIframe:{element:function(a,b){var c=b.createElement("iframe");a.appendChild(c);
262var g=c.contentWindow.document;return g.open(),g.close(),c},mutate:function(a){a.style.visibility="hidden";a=a.contentWindow.document;var b=a.createElement("input");return a.body.appendChild(b),b},validate:function(a){a=a.contentWindow.document;var b=a.querySelector("input");return a.activeElement===b}},focusInvalidTabindex:{element:"div",mutate:function(a){a.setAttribute("tabindex","invalid-value")}},focusLabelTabindex:{element:"label",mutate:function(a){a.setAttribute("tabindex","-1")},validate:function(a,
263b,c){a.offsetHeight;return a.focus(),c.activeElement===a}},focusObjectSvg:{name:"can-focus-object-svg",element:"object",mutate:function(a){a.setAttribute("type","image/svg+xml");a.setAttribute("data","data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHhtbG5zOnhsaW5rPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5L3hsaW5rIiBpZD0ic3ZnIj48dGV4dCB4PSIxMCIgeT0iMjAiIGlkPSJzdmctbGluay10ZXh0Ij50ZXh0PC90ZXh0Pjwvc3ZnPg\x3d\x3d");a.setAttribute("width","200");a.setAttribute("height","50")},validate:function(a,
264b,c){return k.is.GECKO?!0:c.activeElement===a}},focusObjectSvgHidden:{element:"object",mutate:function(a){a.setAttribute("type","image/svg+xml");a.setAttribute("data","data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHhtbG5zOnhsaW5rPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5L3hsaW5rIiBpZD0ic3ZnIj48dGV4dCB4PSIxMCIgeT0iMjAiIGlkPSJzdmctbGluay10ZXh0Ij50ZXh0PC90ZXh0Pjwvc3ZnPg\x3d\x3d");a.setAttribute("width","200");a.setAttribute("height","50");a.style.visibility="hidden"}},focusRedirectImgUsemap:{element:"div",
265mutate:function(a){return a.innerHTML='\x3cmap name\x3d"focus-redirect-img-usemap"\x3e\x3carea href\x3d"#void" shape\x3d"rect" coords\x3d"63,19,144,45"\x3e\x3c/map\x3e\x3cimg usemap\x3d"#focus-redirect-img-usemap" alt\x3d"" src\x3d"data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7"\x3e',a.querySelector("img")},validate:function(a,b,c){a=a.querySelector("area");return c.activeElement===a}},focusRedirectLegend:{element:"fieldset",mutate:function(a){return a.innerHTML='\x3clegend\x3elegend\x3c/legend\x3e\x3cinput tabindex\x3d"-1"\x3e\x3cinput tabindex\x3d"0"\x3e',
266!1},validate:function(a,b,c){b=a.querySelector('input[tabindex\x3d"-1"]');var g=a.querySelector('input[tabindex\x3d"0"]');return a.focus(),a.querySelector("legend").focus(),c.activeElement===b&&"focusable"||c.activeElement===g&&"tabbable"||""}},focusScrollBody:{element:"div",mutate:function(a){return a.setAttribute("style","width: 100px; height: 50px; overflow: auto;"),a.innerHTML='\x3cdiv style\x3d"width: 500px; height: 40px;"\x3escrollable content\x3c/div\x3e',a.querySelector("div")}},focusScrollContainerWithoutOverflow:{element:"div",
267mutate:function(a){a.setAttribute("style","width: 100px; height: 50px;");a.innerHTML='\x3cdiv style\x3d"width: 500px; height: 40px;"\x3escrollable content\x3c/div\x3e'}},focusScrollContainer:{element:"div",mutate:function(a){a.setAttribute("style","width: 100px; height: 50px; overflow: auto;");a.innerHTML='\x3cdiv style\x3d"width: 500px; height: 40px;"\x3escrollable content\x3c/div\x3e'}},focusSummary:{element:"details",mutate:function(a){return a.innerHTML="\x3csummary\x3efoo\x3c/summary\x3e\x3cp\x3econtent\x3c/p\x3e",
268a.firstElementChild}},focusSvgFocusableAttribute:{element:"div",mutate:function(a){return a.innerHTML=n('\x3ctext focusable\x3d"true"\x3ea\x3c/text\x3e'),a.querySelector("text")},validate:B},focusSvgTabindexAttribute:{element:"div",mutate:function(a){return a.innerHTML=n('\x3ctext tabindex\x3d"0"\x3ea\x3c/text\x3e'),a.querySelector("text")},validate:B},focusSvgNegativeTabindexAttribute:{element:"div",mutate:function(a){return a.innerHTML=n('\x3ctext tabindex\x3d"-1"\x3ea\x3c/text\x3e'),a.querySelector("text")},
269validate:B},focusSvgUseTabindex:{element:"div",mutate:function(a){return a.innerHTML=n('\x3cg id\x3d"ally-test-target"\x3e\x3ca xlink:href\x3d"#void"\x3e\x3ctext\x3elink\x3c/text\x3e\x3c/a\x3e\x3c/g\x3e\x3cuse xlink:href\x3d"#ally-test-target" x\x3d"0" y\x3d"0" tabindex\x3d"-1" /\x3e'),a.querySelector("use")},validate:B},focusSvgForeignobjectTabindex:{element:"div",mutate:function(a){return a.innerHTML=n('\x3cforeignObject tabindex\x3d"-1"\x3e\x3cinput type\x3d"text" /\x3e\x3c/foreignObject\x3e'),
270a.querySelector("foreignObject")||a.getElementsByTagName("foreignObject")[0]},validate:B},focusSvg:{element:"div",mutate:function(a){return a.innerHTML=n(""),a.firstChild},validate:B},focusTabindexTrailingCharacters:{element:"div",mutate:function(a){a.setAttribute("tabindex","3x")}},focusTable:{element:"table",mutate:function(a,b,c){b=c.createDocumentFragment();b.innerHTML="\x3ctr\x3e\x3ctd\x3ecell\x3c/td\x3e\x3c/tr\x3e";a.appendChild(b)}},focusVideoWithoutControls:{element:"video",mutate:function(a){try{a.setAttribute("src",
271"data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7")}catch(b){}}}},qa=null,J=function(){return qa?qa:(qa=rb.get(),qa.time||(rb.set(F()),qa=rb.get()),qa)},Ca=void 0,sd=/^\s*(-|\+)?[0-9]+\s*$/,td=/^\s*(-|\+)?[0-9]+.*$/,La=function(a){Ca||
271(Ca=J());var b=Ca.focusTabindexTrailingCharacters?td:sd;a=y({label:"is/valid-tabindex",resolveDocument:!0,context:a});var c=a.hasAttribute("tabindex"),g=a.hasAttribute("tabIndex");if(!c&&!g||(a.ownerSVGElement||"svg"===a.nodeName.toLowerCase())&&
272!Ca.focusSvgTabindexAttribute)return!1;if(Ca.focusInvalidTabindex)return!0;a=a.getAttribute(c?"tabindex":"tabIndex");return"-32768"===a?!1:Boolean(a&&b.test(a))},N=function(a){if(!La(a))return null;var b=a.hasAttribute("tabindex")?"tabindex":"tabIndex";a=parseInt(a.getAttribute(b),10);return isNaN(a)?-1:a},Xa=void 0,ac=void 0,sb={input:!0,select:!0,textarea:!0,button:!0,fieldset:!0,form:!0},bc=function(a){Xa||(Xa=J(),Xa.focusFieldsetDisabled&&delete sb.fieldset,Xa.focusFormDisabled&&delete sb.form,
273ac=new RegExp("^("+Object.keys(sb).join("|")+")$"));a=y({label:"is/native-disabled-supported",context:a}).nodeName.toLowerCase();return Boolean(ac.test(a))},cc=function(a){var b=a.element;a=a.attribute;var c="data-cached-"+a;if(null===b.getAttribute(c)){var g=b.getAttribute(a);null!==g&&(b.setAttribute(c,g||""),b.removeAttribute(a))}else g=b.getAttribute(c),b.removeAttribute(c),b.setAttribute(a,g)},na=function(a){var b=a.element,c=a.attribute,g=a.temporaryValue,d=a.saveValue;a="data-cached-"+c;void 0!==
274g?(d=d||b.getAttribute(c),b.setAttribute(a,d||""),b.setAttribute(c,g)):(g=b.getAttribute(a),b.removeAttribute(a),""===g?b.removeAttribute(c):b.setAttribute(c,g))},Da=function(){},ud={log:Da,debug:Da,info:Da,warn:Da,error:Da},Bc="undefined"!=typeof console?console:ud,Ya=void 0,Ea=function(a,b){Ya||(Ya=J());var c=y({label:"element/disabled",context:a});b=Boolean(b);var g=c.hasAttribute("data-ally-disabled"),d=1===arguments.length;if(bc(c))c=d?c.disabled:(c.disabled=b,c);else if(d)c=g;else if(g!==b){g=
275b;na({element:c,attribute:"aria-disabled",temporaryValue:g?"true":void 0});g?(d=N(c),na({element:c,attribute:"tabindex",temporaryValue:"-1",saveValue:null!==d?d:""})):na({element:c,attribute:"tabindex"});g?c.focus=C:delete c.focus;g?(c.setAttribute("data-inert-pointer-events",c.style.pointerEvents||""),c.style.pointerEvents="none"):(d=c.getAttribute("data-inert-pointer-events"),c.removeAttribute("data-inert-pointer-events"),c.style.pointerEvents=d);d=c.nodeName.toLowerCase();"video"!==d&&"audio"!==
276d||cc({element:c,attribute:"controls",remove:g});if("svg"===d||c.ownerSVGElement)Ya.focusSvgFocusableAttribute?na({element:c,attribute:"focusable",temporaryValue:g?"false":void 0}):Ya.focusSvgTabindexAttribute||"a"!==d||cc({element:c,attribute:"xlink:href",remove:g});g?c.setAttribute("data-ally-disabled","true"):c.removeAttribute("data-ally-disabled")}return c},O=function(){for(var a=[],b=y({label:"get/parents",context:(0<arguments.length&&void 0!==arguments[0]?arguments[0]:{}).context});b;)a.push(b),
277(b=b.parentNode)&&b.nodeType!==Node.ELEMENT_NODE&&(b=null);return a},Cc=["matches","webkitMatchesSelector","mozMatchesSelector","msMatchesSelector"],ab=null,x=void 0;I.except=function(){var a=0<arguments.length&&void 0!==arguments[0]?arguments[0]:{},b=function(b){return I({context:b,except:a})};return b.rules=I,b};var va=I.except({}),Fa=void 0,cb=function(a){if("string"!=typeof Fa){var b=$b();b&&(Fa=", html "+b+" ")}return Fa?a+Fa+a.replace(/\s*,\s*/g,",").split(",").join(Fa):a},bb=void 0,Ec=/^(area)$/;
278e.except=function(){var a=0<arguments.length&&void 0!==arguments[0]?arguments[0]:{},b=function(b){return e({context:b,except:a})};return b.rules=e,b};var ka=e.except({}),ia=void 0,Lb=function(a){ia||(ia=J());a=y({label:"is/valid-area",context:a});if("area"!==a.nodeName.toLowerCase())return!1;var b=a.hasAttribute("tabindex");if(!ia.focusAreaTabindex&&b)return!1;var c=Kb(a);return!c||!ka(c)||!ia.focusBrokenImageMap&&(!c.complete||!c.naturalHeight||0>=c.offsetWidth||0>=c.offsetHeight)?!1:ia.focusAreaWithoutHref||
279a.href?O({context:c}).slice(1).some(function(a){a=a.nodeName.toLowerCase();return"button"===a||"a"===a})?!1:!0:ia.focusAreaTabindex&&b||ia.focusAreaImgTabindex&&c.hasAttribute("tabindex")},tb=void 0,Nb=function(a){tb||(tb=J());a=y({label:"is/disabled",context:a});if(a.hasAttribute("data-ally-disabled"))return!0;
279if(!bc(a))return!1;if(a.disabled)return!0;a=O({context:a});return a.some(p)?!0:!tb.focusFormDisabled&&a.some(q)?!0:!1};Na.except=function(){var a=0<arguments.length&&void 0!==arguments[0]?
280arguments[0]:{},b=function(b){return Na({context:b,except:a})};return b.rules=Na,b};var Mb=Na.except({}),U=void 0;d.except=function(){var a=0<arguments.length&&void 0!==arguments[0]?arguments[0]:{},b=function(b){return d({context:b,except:a})};return b.rules=d,b};var Z=d.except({}),Fc=Ob(va),ea=void 0,wa=void 0,Ga=function(){var a=0<arguments.length&&void 0!==arguments[0]?arguments[0]:{},b=a.includeContext,c=a.includeOnlyTabbable,g=a.strategy,g=void 0===g?"quick":g,a={context:y({label:"query/focusable",
281resolveDocument:!0,defaultToDocument:!0,context:a.context}),includeContext:b,includeOnlyTabbable:c,strategy:g};if("quick"===g)return Gc(a);if("strict"===g||"all"===g)return Pb(a);throw new TypeError('query/focusable requires option.strategy to be one of ["quick", "strict", "all"]');},la=void 0,Hc=/^(fieldset|table|td|body)$/;xa.except=function(){var a=0<arguments.length&&void 0!==arguments[0]?arguments[0]:{},b=function(b){return xa({context:b,except:a})};return b.rules=xa,b};var Ic=va.rules.except({flexbox:!0}),
282Jc=xa.except({flexbox:!0}),dc=xa.except({}),Ha=function(){var a=0<arguments.length&&void 0!==arguments[0]?arguments[0]:{},b=a.context,c=a.includeContext,g=a.includeOnlyTabbable,a=a.strategy,d=dc.rules.except({onlyTabbable:g});return Ga({context:b,includeContext:c,includeOnlyTabbable:g,strategy:a}).filter(d)},Ia=function(){var a=0<arguments.length&&void 0!==arguments[0]?arguments[0]:{},b=a.elements,c=a.resolveElement,a=a.list.slice(0),b=D(b).slice(0);b.sort(Kc);c=Lc(a,b,c);return Mc(a,c),a},Ja=void 0,
283ec=function(){var a=0<arguments.length&&void 0!==arguments[0]?arguments[0]:{},b=a.context,a=a.skipFocusable;Ja||(Ja=J());b=y({label:"get/focus-redirect-target",context:b});if(!a&&Z(b))return null;var c=b.nodeName.toLowerCase(),a=G(b);"label"===c?b=(c=b.getAttribute("for"))?a.getElementById(c):b.querySelector("input, select, textarea"):"legend"===c?Ja.focusRedirectLegend?"fieldset"!==b.parentNode.nodeName.toLowerCase()?b=null:"tabbable"===Ja.focusRedirectLegend?(a=Ha({context:a.body,strategy:"strict"}),
284a.length?(a=Ia({list:a,elements:[b]}),b=a.indexOf(b),b=b===a.length-1?null:a[b+1]):b=null):b=Ga({context:b.parentNode,strategy:"strict"}).filter(Nc)[0]||null:b=null:"img"===c?Ja.focusRedirectImgUsemap?((a=b.getAttribute("usemap"))?(b=G(b),b=Ib(a.slice(1),b)):b=null,b=b&&b.querySelector("area")||null):b=null:b=null;return b},ra=function(){var a=0<arguments.length&&void 0!==arguments[0]?arguments[0]:{},b=a.except,a=y({label:"get/focus-target",context:a.context}),c=null,d=function(a){return Z.rules({context:a,
285except:b})?(c=a,!0):(c=ec({context:a,skipFocusable:!0}),Boolean(c))};return d(a)?c:(O({context:a}).slice(1).some(d),c)},fc={flexbox:!0,scrollable:!0,onlyTabbable:!0},vd={blur:function(a){var b=y({label:"element/blur",context:a});if(!ca(b)||"body"===b.nodeName.toLowerCase())return null;if(b.blur)return b.blur(),document.activeElement;a=G(b).defaultView||window;try{a.HTMLElement.prototype.blur.call(b)}catch(d){b=a.document&&a.document.body;if(!b)return null;var c=b.getAttribute("tabindex");b.setAttribute("tabindex",
286"-1");b.focus();c?b.setAttribute("tabindex",c):b.removeAttribute("tabindex")}return a.document.activeElement},disabled:Ea,focus:function(a){var b=1<arguments.length&&void 0!==arguments[1]?arguments[1]:{},c=b.defaultToAncestor,b=b.undoScrolling,d=y({label:"element/focus",context:a}),e=Z.rules({context:d,except:fc});if(!c&&!e)return null;c=ra({context:d,except:fc});if(!c)return null;if(ca(c))return c;d=void 0;b&&(d=Oa(c));var f;if(c.focus)f=(c.focus(),ca(c)?c:null);else{b=G(c).defaultView||window;try{f=
287(b.HTMLElement.prototype.focus.call(c),ca(c)?c:null)}catch(h){f=Gb(c)&&ca(c)?c:null}}return d&&d(),f}};"undefined"!=typeof window&&function(){for(var a=0,b=["ms","moz","webkit","o"],c="",d="",e=0,f=b.length;f>e;++e)c=window[b[e]+"RequestAnimationFrame"],d=window[b[e]+"CancelAnimationFrame"]||window[b[e]+"CancelRequestAnimationFrame"];"function"!=typeof window.requestAnimationFrame&&(window.requestAnimationFrame=window[c]||function(b){var c=(new Date).getTime(),d=Math.max(0,16-(c-a)),g=window.setTimeout(function(){b(c+
288d)},d);return a=c+d,g});"function"!=typeof window.cancelAnimationFrame&&(window.cancelAnimationFrame=window[d]||function(a){clearTimeout(a)})}();var Za="undefined"!=typeof window&&window.CustomEvent||function(){};"function"!=typeof Za&&(Za=function(a,b){var c=document.createEvent("CustomEvent");return!b&&(b={bubbles:!1,cancelable:!1,detail:void 0}
288),c.initCustomEvent(a,b.bubbles,b.cancelable,b.detail),c},Za.prototype=window.Event.prototype);var Oc=Za,Ka=function(){var a=0<arguments.length&&void 0!==
289arguments[0]?arguments[0]:{};return ma.bind({engage:a.engage||fa,disengage:a.disengage||fa,instances:0,_result:null})},Pa=void 0,ya=void 0,wd=Ka({engage:function(){ya=!0;Pa=document.activeElement;ga()},disengage:function(){cancelAnimationFrame(ya);ya=!1}}),gc=function(a){a=y({label:"is/shadowed",resolveDocument:!0,context:a});return Boolean(pa({context:a}))},hc=function(){for(var a=[],b=y({label:"get/shadow-host-parents",context:(0<arguments.length&&void 0!==arguments[0]?arguments[0]:{}).context});b&&
290(b=pa({context:b}));)a.push(b);return a},mb=function(){null===document.activeElement&&document.body.focus();var a;if(gc(document.activeElement))a=hc({context:document.activeElement}),a=[document.activeElement].concat(a);else for(a=[document.activeElement];a[0]&&a[0].shadowRoot;)a.unshift(a[0].shadowRoot.activeElement);return a},ub=void 0,vb=void 0;"undefined"!=typeof document&&document.documentElement.createShadowRoot?!function(){var a=void 0,b=void 0,c=function(){d();(window.clearImmediate||window.clearTimeout)(a);
291a=(window.setImmediate||window.setTimeout)(function(){e()})},d=function(){b&&b.removeEventListener("blur",c,!0);b=null},e=function(){var a=mb();if(1===a.length)return void d();var e=a[0];e.addEventListener("blur",c,!0);b=e;a=new CustomEvent("shadow-focus",{bubbles:!1,cancelable:!1,detail:{elements:a,active:a[0],hosts:a.slice(1)}});document.dispatchEvent(a)},f=function(){(window.clearImmediate||window.clearTimeout)(a);e()};ub=function(){document.addEventListener("focus",f,!0)};vb=function(){(window.clearImmediate||
292window.clearTimeout)(a);b&&b.removeEventListener("blur",c,!0);document.removeEventListener("focus",f,!0)}}():ub=vb=function(){};var wb=Ka({engage:ub,disengage:vb}),xd={activeElement:wd,shadowFocus:wb},xb=function(){var a=0<arguments.length&&void 0!==arguments[0]?arguments[0]:{};return v.bind({engage:a.engage||f,disengage:a.disengage||f,context:null})},yb=void 0,ic=void 0;k.is.TRIDENT&&(k.is.IE10||k.is.IE11)?!function(){var a=function(a){var c=ra({context:a.target,except:{flexbox:!0,scrollable:!0}});
293if(c&&c!==a.target){window.setImmediate(function(){c.focus()});var d=[].map.call(c.children,function(a){var b=a.style.visibility||"",c=a.style.transition||"";return a.style.visibility="hidden",a.style.transition="none",[a,b,c]});window.setImmediate(function(){d.forEach(function(a){a[0].style.visibility=a[1];a[0].style.transition=a[2]})})}};yb=function(b){b.addEventListener("mousedown",a,!0)};ic=function(b){b.removeEventListener("mousedown",a,!0)}}():yb=function(){};var yd=xb({engage:yb,disengage:ic}),
294zb=void 0,jc=void 0;k.is.OSX&&(k.is.GECKO||k.is.WEBKIT)?!function(){var a=function(a){if(!a.defaultPrevented&&R(a.target,"input, button, button *")){var b=ra({context:a.target});(window.setImmediate||window.setTimeout)(function(){b.focus()})}},b=function(a){!a.defaultPrevented&&R(a.target,"label, label *")&&(a=ra({context:a.target}))&&a.focus()};zb=function(c){c.addEventListener("mousedown",a,!1);c.addEventListener("mouseup",b,!1)};jc=function(c){c.removeEventListener("mousedown",a,!1);c.removeEventListener("mouseup",
295b,!1)}}():zb=function(){};var zd=xb({engage:zb,disengage:jc}),Ab=void 0,kc=void 0;k.is.WEBKIT?!function(){var a=function(a){var c=ra({context:a.target});!c||c.hasAttribute("tabindex")&&La(c)||(c.setAttribute("tabindex",0),(window.setImmediate||window.setTimeout)(function(){c.removeAttribute("tabindex")},0))};Ab=function(b){b.addEventListener("mousedown",a,!0);b.addEventListener("touchstart",a,!0)};kc=function(b){b.removeEventListener("mousedown",a,!0);b.removeEventListener("touchstart",a,!0)}}():
296Ab=function(){};var Ad=xb({engage:Ab,disengage:kc}),Bd={pointerFocusChildren:yd,pointerFocusInput:zd,pointerFocusParent:Ad},lc=function(){var a=0<arguments.length&&void 0!==arguments[0]?arguments[0]:{},b=a.context,a=a.filter;if(b=y({label:"get/insignificant-branches",defaultToDocument:!0,context:b}),a=D(a),!a.length)throw new TypeError("get/insignificant-branches requires valid options.filter");return E({context:b,filter:a})},Cd={activeElement:function(){var a=G((0<arguments.length&&void 0!==arguments[0]?
297arguments[0]:{}).context),b=void 0;try{b=a.activeElement}catch(c){}return b&&b.nodeType||(b=a.body||a.documentElement),b}
297,activeElements:mb,focusRedirectTarget:ec,focusTarget:ra,insignificantBranches:lc,parents:O,shadowHostParents:hc,shadowHost:pa},Dd={activeElement:ca,disabled:Nb,focusRelevant:va,focusable:Z,onlyTabbable:Mb,shadowed:gc,tabbable:dc,validArea:Lb,validTabindex:La,visible:ka},eb=function(a){return a.shadowRoot?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP};eb.acceptNode=eb;for(var Ed=
298{childList:!0,subtree:!0},Fd=function(){function a(){var b=this,c=0<arguments.length&&void 0!==arguments[0]?arguments[0]:{},d=c.context,e=c.callback,c=c.config;w(this,a);this.config=c;this.disengage=this.disengage.bind(this);this.clientObserver=new MutationObserver(e);this.hostObserver=new MutationObserver(function(a){return a.forEach(b.handleHostMutation,b)});this.observeContext(d);this.observeShadowHosts(d)}return Ba(a,[{key:"disengage",value:function(){this.clientObserver&&this.clientObserver.disconnect();
299this.clientObserver=null;this.hostObserver&&this.hostObserver.disconnect();this.hostObserver=null}},{key:"observeShadowHosts",value:function(a){var c=this;h({context:a}).forEach(function(a){return c.observeContext(a.shadowRoot)})}},{key:"observeContext",value:function(a){this.clientObserver.observe(a,this.config);this.hostObserver.observe(a,Ed)}},{key:"handleHostMutation",value:function(a){"childList"===a.type&&D(a.addedNodes).filter(function(a){return a.nodeType===Node.ELEMENT_NODE}).forEach(this.observeShadowHosts,
300this)}}]),a}(),mc=function(){var a=0<arguments.length&&void 0!==arguments[0]?arguments[0]:{},b=a.context,c=a.callback,a=a.config;if("function"!=typeof c)throw new TypeError("observe/shadow-mutations requires options.callback to be a function");if("object"!==("undefined"==typeof a?"undefined":Fb(a)))throw new TypeError("observe/shadow-mutations requires options.config to be an object");if(!window.MutationObserver)return{disengage:function(){}};b=y({label:"observe/shadow-mutations",resolveDocument:!0,
301defaultToDocument:!0,context:b});return{disengage:(new Fd({context:b,callback:c,config:a})).disengage}},Gd={attributes:!0,childList:!0,subtree:!0,attributeFilter:["tabindex","disabled","data-ally-disabled"]},Hd=function(){function a(){var b=this,c=0<arguments.length&&void 0!==arguments[0]?arguments[0]:{},d=c.context,c=c.filter;w(this,a);this._context=D(d||document.documentElement)[0];this._filter=D(c);this._inertElementCache=[];this.disengage=this.disengage.bind(this);this.handleMutation=this.handleMutation.bind(this);
302this.renderInert=this.renderInert.bind(this);this.filterElements=this.filterElements.bind(this);this.filterParentElements=this.filterParentElements.bind(this);d=Ga({context:this._context,includeContext:!0,strategy:"all"});this.renderInert(d);this.shadowObserver=mc({context:this._context,config:Gd,callback:function(a){return a.forEach(b.handleMutation)}})}return Ba(a,[{key:"disengage",value:function(){this._context&&(Ea(this._context,!1),this._inertElementCache.forEach(function(a){return Ea(a,!1)}),
303this._inertElementCache=null,this._filter=null,this._context=null,this.shadowObserver&&this.shadowObserver.disengage(),this.shadowObserver=null)}},{key:"listQueryFocusable",value:function(a){return a.map(function(a){return Ga({context:a,includeContext:!0,strategy:"all"})}).reduce(function(a,b){return a.concat(b)},[])}},{key:"renderInert",value:function(a){var c=this;a.filter(this.filterElements).filter(this.filterParentElements).filter(function(a){return!Ea(a)}).forEach(function(a){c._inertElementCache.push(a);
304Ea(a,!0)})}},{key:"filterElements",value:function(a){a=t({element:a,includeSelf:!0});return!this._filter.some(a)}},{key:"filterParentElements",value:function(a){a=t({parent:a});return!this._filter.some(a)}},{key:"handleMutation",value:function(a){"childList"===a.type?(a=D(a.addedNodes).filter(function(a){return a.nodeType===Node.ELEMENT_NODE}),a.length&&(a=this.listQueryFocusable(a),this.renderInert(a))):"attributes"===a.type&&this.renderInert([a.target])}}]),a}(),Id={attributes:!1,childList:!0,subtree:!0},
305Jd=function(){function a(){var b=0<arguments.length&&void 0!==arguments[0]?arguments[0]:{},c=b.context,b=b.filter;w(this,a);this._context=D(c||document.documentElement)[0];this._filter=D(b);
305this.disengage=this.disengage.bind(this);this.handleMutation=this.handleMutation.bind(this);this.isInsignificantBranch=this.isInsignificantBranch.bind(this);lc({context:this._context,filter:this._filter}).forEach(fb);this.startObserver()}return Ba(a,[{key:"disengage",value:function(){this._context&&([].forEach.call(this._context.querySelectorAll("[data-cached-aria-hidden]"),
306Pc),this._context=null,this._filter=null,this._observer&&this._observer.disconnect(),this._observer=null)}},{key:"startObserver",value:function(){var a=this;window.MutationObserver&&(this._observer=new MutationObserver(function(c){return c.forEach(a.handleMutation)}),this._observer.observe(this._context,Id))}},{key:"handleMutation",value:function(a){"childList"===a.type&&D(a.addedNodes).filter(function(a){return a.nodeType===Node.ELEMENT_NODE}).filter(this.isInsignificantBranch).forEach(fb)}},{key:"isInsignificantBranch",
307value:function(a){if(O({context:a}).some(function(a){return"true"===a.getAttribute("aria-hidden")}))return!1;a=t({element:a});return this._filter.some(a)?!1:!0}}]),a}(),Kd=function(){function a(b){w(this,a);this._document=G(b);this.maps={}}return Ba(a,[{key:"getAreasFor",value:function(a){return this.maps[a]||this.addMapByName(a),this.maps[a]}},{key:"addMapByName",value:function(a){(a=Ib(a,this._document))&&(this.maps[a.name]=Ha({context:a}))}},{key:"extractAreasFromList",value:function(a){return a.filter(function(a){if("area"!==
308a.nodeName.toLowerCase())return!0;var b=a.parentNode;return this.maps[b.name]||(this.maps[b.name]=[]),this.maps[b.name].push(a),!1},this)}}]),a}(),Qc=function(a,b){var c=b.querySelectorAll("img[usemap]"),d=new Kd(b),e=d.extractAreasFromList(a);return c.length?Ia({list:e,elements:c,resolveElement:function(a){a=a.getAttribute("usemap").slice(1);return d.getAreasFor(a)}}):e},Ld=function(){function a(b,c){w(this,a);this.context=b;this.sortElements=c;this.hostCounter=1;this.inHost={};this.inDocument=[];
309this.hosts={};this.elements={}}return Ba(a,[{key:"_registerHost",value:function(a){if(!a._sortingId){a._sortingId="shadow-"+this.hostCounter++;this.hosts[a._sortingId]=a;var c=pa({context:a});c?(this._registerHost(c),this._registerHostParent(a,c)):this.inDocument.push(a)}}},{key:"_registerHostParent",value:function(a,c){this.inHost[c._sortingId]||(this.inHost[c._sortingId]=[]);this.inHost[c._sortingId].push(a)}},{key:"_registerElement",value:function(a,c){this.elements[c._sortingId]||(this.elements[c._sortingId]=
310[]);this.elements[c._sortingId].push(a)}},{key:"extractElements",value:function(a){return a.filter(function(a){var b=pa({context:a});return b?(this._registerHost(b),this._registerElement(a,b),!1):!0},this)}},{key:"sort",value:function(a){a=this._injectHosts(a);return a=this._replaceHosts(a),this._cleanup(),a}},{key:"_injectHosts",value:function(a){return Object.keys(this.hosts).forEach(function(a){this.elements[a]=this._merge(this.elements[a],this.inHost[a],this.hosts[a].shadowRoot)},this),this._merge(a,
311this.inDocument,this.context)}},{key:"_merge",value:function(a,c,d){a=Ia({list:a,elements:c});return this.sortElements(a,d)}},{key:"_replaceHosts",value:function(a){return Ia({list:a,elements:this.inDocument,resolveElement:this._resolveHostElement.bind(this)})}},{key:"_resolveHostElement",value:function(a){var c=Ia({list:this.elements[a._sortingId],elements:this.inHost[a._sortingId],resolveElement:this._resolveHostElement.bind(this)}),d=N(a);return null!==d&&-1<d?[a].concat(c):c}},{key:"_cleanup",
312value:function(){Object.keys(this.hosts).forEach(function(a){delete this.hosts[a]._sortingId},this)}}]),a}(),Rc=function(a){var b={},c=[];a=a.filter(function(a){var d=a.tabIndex;return void 0===d&&(d=N(a)),0>=d||null===d||void 0===d?!0:(b[d]||(b[d]=[],c.push(d)),b[d].push(a),!1)});return c.sort().map(function(a){return b[a]}).reduceRight(function(a,b){return b.concat(a)},a)},hb=void 0,Bb=function(){var a=0<arguments.length&&void 0!==arguments[0]?arguments[0]:{},b=a.context,c=a.includeContext,d=a.includeOnlyTabbable,
313a=a.strategy;hb||(hb=J());b=D(b)[0]||document.documentElement;d=Ha({context:b,includeContext:c,includeOnlyTabbable:d,strategy:a});if(document.body.createShadowRoot&&k.is.BLINK)var a=new Ld(b,gb),e=a.extractElements(d),d=e.length===d.length?gb(d):a.sort(e);else d=gb(d,b);c&&(c=d,b=c.indexOf(b),c=0<b?c.splice(b,1).concat(c):c,d=c);return d},da={tab:9,left:37,up:38,right:39,down:40,pageUp:33,"page-up":33,pageDown:34,"page-down":34,end:35,home:36,enter:13,escape:27,space:32,shift:16,capsLock:20,"caps-lock":20,
314ctrl:17,alt:18,meta:91,pause:19,insert:45,"delete":46,backspace:8,_alias:{91:[92,93,224]}},$a=1;26>$a;$a++)da["f"+$a]=$a+111;for(var sa=0;10>sa;sa++){var nc=sa+48,oc=sa+96;da[sa]=nc;da["num-"+sa]=oc;da._alias[nc]=[oc]}for(var Cb=0;26>Cb;Cb++){var pc=Cb+65,Md=String.fromCharCode(pc).toLowerCase();da[Md]=pc}var ib={alt:"altKey",ctrl:"ctrlKey",meta:"metaKey",shift:"shiftKey"},Vc=Object.keys(ib).map(function(a){return ib[a]}),Nd=function(a){return a.split(/\s+/).map(function(a){var c=a.split("+");a=Tc(c.slice(0,
315-1));var c=c.slice(-1),d=da[c]||parseInt(c,10);if(!d||"number"!=typeof d||isNaN(d))throw new TypeError('Unknown key "'+c+'"');return{keyCodes:[d].concat(da._alias[d]||[]),modifiers:a,matchModifiers:Uc.bind(null,a)}})},qc=function(){var a=0<arguments.length&&void 0!==arguments[0]?arguments[0]:{},b={},c=D(a.context)[0]||document.documentElement;delete a.context;var d=D(a.filter);delete a.filter;var e=Object.keys(a);if(!e.length)throw new TypeError("when/key requires at least one option key");var f=
316function(a){a.keyCodes.forEach(function(c){b[c]||(b[c]=[]);b[c].push(a)})};e.forEach(function(b){if("function"!=typeof a[b])throw new TypeError('when/key requires option["'+b+'"] to be a function');Nd(b).map(function(c){return c.callback=a[b],c}).forEach(f)});var h=function(a){if(!a.defaultPrevented){if(d.length){var e=t({element:a.target,includeSelf:!0});if(d.some(e))return}e=a.keyCode||a.which;b[e]&&b[e].forEach(function(b){b.matchModifiers(a)&&b.callback.call(c,a,k)})}};c.addEventListener("keydown",
317h,!1);var k=function(){c.removeEventListener("keydown",h,!1)};return{disengage:k}},Od={attribute:{"aria-busy":{"default":"false",values:["true","false"]},"aria-checked":{"default":void 0,values:["true","false","mixed",void 0]},"aria-disabled":{"default":"false",values:["true","false"]},"aria-expanded":{"default":void 0,values:["true","false",void 0]},"aria-grabbed":{"default":void 0,values:["true","false",void 0]},"aria-hidden":{"default":"false",values:["true","false"]},"aria-invalid":{"default":"false",
318values:["true","false","grammar","spelling"]},"aria-pressed":{"default":void 0,values:["true","false","mixed",void 0]},"aria-selected":{"default":void 0,values:["true","false",void 0]},"aria-atomic":{"default":"false",values:["true","false"]},"aria-autocomplete":{"default":"none",values:["inline","list","both","none"]},"aria-dropeffect":{"default":"none",multiple:!0,values:"copy move link execute popup none".split(" ")},"aria-haspopup":{"default":"false",values:["true","false"]},"aria-live":{"default":"off",
319values:["off","polite","assertive"]},"aria-multiline":{"default":"false",values:["true","false"]},"aria-multiselectable":{"default":"false",values:["true","false"]},"aria-orientation":{"default":"horizontal",values:["vertical","horizontal"]},"aria-readonly":{"default":"false",values:["true","false"]},"aria-relevant":{"default":"additions text",multiple:!0,values:["additions","removals","text","all"]},"aria-required":{"default":"false",values:["true","false"]},"aria-sort":{"default":"none",other:!0,
320values:["ascending","descending","none"]}},keycode:da},ha=0,oa=0,rc=["touchstart","pointerdown","MSPointerDown","mousedown"],sc="touchend touchcancel pointerup MSPointerUp pointercancel MSPointerCancel mouseup".split(" "),tc=Ka({engage:function(){return window.addEventListener("blur",Qb,!1),document.documentElement.addEventListener("keydown",Tb,!0),document.documentElement.addEventListener("keyup",Ub,!0),rc.forEach(function(a){document.documentElement.addEventListener(a,Rb,!0)}),sc.forEach(function(a){document.documentElement.addEventListener(a,
321Sb,!0)}),{get:Wc}},disengage:function(){ha=oa=0;window.removeEventListener("blur",Qb,!1);document.documentElement.removeEventListener("keydown",Tb,!0);document.documentElement.removeEventListener("keyup",Ub,!0);rc.forEach(function(a){document.documentElement.removeEventListener(a,Rb,!0)});sc.forEach(function(a){document.documentElement.removeEventListener(a,Sb,!0)})}}),Pd={interactionType:tc,shadowMutations:mc},Qd={firstTabbable:function(){var a=0<arguments.length&&void 0!==arguments[0]?arguments[0]:
322{},b=a.context,c=a.sequence,d=a.strategy,e=a.ignoreAutofocus,f=a.defaultToContext,h=a.includeOnlyTabbable,a=-1;c||(b=D(b||document.body)[0],c=Ha({context:b,includeOnlyTabbable:h,strategy:d}));c.length&&!e&&(a=z(c,Xc));c.length&&-1===a&&(a=z(c,Yc));d=Z.rules.except({onlyTabbable:h});return-1===a&&f&&b&&d(b)?b:c[a]||null},focusable:Ga,shadowHosts:h,tabbable:Ha,tabsequence:Bb},uc="undefined"!=typeof document&&"onfocusin"in document,jb=uc?"focusin":"focus",Ra=uc?"focusout":"blur",kb=void 0,Db=void 0,
323lb=null,Qa=null,Aa={pointer:!1,key:!1,script:!1,initial:!1},Rd=Ka({engage:function(){return Db=wb(),document.addEventListener("shadow-focus",ba,!0),document.documentElement.addEventListener(jb,ba,!0),document.documentElement.addEventListener(Ra,ba,!0),kb=tc(),ba({type:"initial"}),{used:$c,current:Zc,lock:ad,unlock:bd}},disengage:function(){ba({type:Ra});lb=Qa=null;Object.keys(Aa).forEach(function(a){za(document.documentElement,"focus-source-"+a,!1);Aa[a]=!1});kb.disengage();Db&&Db.disengage();document.removeEventListener("shadow-focus",
324ba,!0);
324document.documentElement.removeEventListener(jb,ba,!0);document.documentElement.removeEventListener(Ra,ba,!0);document.documentElement.removeAttribute("data-focus-source")}}),nb=void 0,vc="undefined"!=typeof document&&"onfocusin"in document,wc=vc?"focusin":"focus",xc=vc?"focusout":"blur",Ta="ally-focus-within",ob=void 0,pb=void 0,Eb=void 0,Sd=Ka({engage:function(){nb||(nb=J(),ob=cb("."+Ta));Eb=wb();document.addEventListener(xc,Vb,!0);document.addEventListener(wc,Wb,!0);document.addEventListener("shadow-focus",
325Xb,!0);Sa()},disengage:function(){Eb&&Eb.disengage();(window.clearImmediate||window.clearTimeout)(pb);document.removeEventListener(xc,Vb,!0);document.removeEventListener(wc,Wb,!0);document.removeEventListener("shadow-focus",Xb,!0);[].forEach.call(document.querySelectorAll(ob),function(a){za(a,Ta,!1)})}}),yc=function(){var a=0<arguments.length&&void 0!==arguments[0]?arguments[0]:{},b=a.context,c=a.callback,d=a.area;if("function"!=typeof c)throw new TypeError("when/visible-area requires options.callback to be a function");
326"number"!=typeof d&&(d=1);var e=y({label:"when/visible-area",context:b}),f=void 0,h=null,k=function(){f&&cancelAnimationFrame(f)},l=function(){var a;if(!(a=!ka(e))){a:{a=e.getBoundingClientRect();var b,f=window.innerWidth||document.documentElement.clientWidth;b=window.innerHeight||document.documentElement.clientHeight;b={top:0,right:f,bottom:b,left:0,width:f,height:b};b.area=b.width*b.height;var f=b,l=dd(e);if(l){if(!l.width||!l.height){a=0;break a}f=qb(l,b);f.area=l.area}b=qb(a,f);a=b.width&&b.height?
327Math.min(Math.round(Math.round(b.width)*Math.round(b.height)/Math.min(a.width*a.height,f.area)*1E4)/1E4,1):0}a=a<d}return a||!1===c(e)?void h():void k()};return h=function(){f=requestAnimationFrame(l)},h(),{disengage:k}},Td="undefined"!=typeof window&&window.ally;r.exports={element:vd,event:xd,fix:Bd,get:Cd,is:Dd,maintain:{disabled:function(){var a=0<arguments.length&&void 0!==arguments[0]?arguments[0]:{};return{disengage:(new Hd({context:a.context,filter:a.filter})).disengage}},hidden:function(){var a=
3280<arguments.length&&void 0!==arguments[0]?arguments[0]:{};return{disengage:(new Jd({context:a.context,filter:a.filter})).disengage}},tabFocus:function(){var a=(0<arguments.length&&void 0!==arguments[0]?arguments[0]:{}).context;return a||(a=document.documentElement),Bb(),qc({"?alt+?shift+tab":function(b){b.preventDefault();var c=Bb({context:a});b=b.shiftKey;var d=c[0],e=c[c.length-1],f=b?e:d;if(ca(b?d:e))return void f.focus();var h=void 0;if(!c.some(function(a,b){return ca(a)?(h=b,!0):!1}))return void d.focus();
329c[h+(b?-1:1)].focus()}})}},map:Od,observe:Pd,query:Qd,style:{focusSource:Rd,focusWithin:Sd},when:{focusable:function(){var a=0<arguments.length&&void 0!==arguments[0]?arguments[0]:{},b=a.context,c=a.callback,a=a.area;if("function"!=typeof c)throw new TypeError("when/focusable requires options.callback to be a function");var b=y({label:"when/focusable",context:b}),d=G(b),e=yc({context:b,callback:function(a){return Z(a)?c(a):!1},area:a}),b=function Dc(){d.removeEventListener("focus",Dc,!0);e&&e.disengage()};
330return d.addEventListener("focus",b,!0),{disengage:b}},key:qc,visibleArea:yc},version:"1.4.1",noConflict:function(){return"undefined"!=typeof window&&window.ally===this&&(window.ally=Td),this}}},{"css.escape":2,platform:3}],2:[function(m,r,w){(function(m){!function(m,A){"object"==typeof w?r.exports=A(m):A(m)}("undefined"!=typeof m?m:this,function(m){if(m.CSS&&m.CSS.escape)return m.CSS.escape;var r=function(m){if(0==arguments.length)throw new TypeError("`CSS.escape` requires an argument.");for(var n,
331r=String(m),w=r.length,C=-1,A="",R=r.charCodeAt(0);++C<w;)n=r.charCodeAt(C),A+=0!=n?1<=n&&31>=n||127==n||0==C&&48<=n&&57>=n||1==C&&48<=n&&57>=n&&45==R?"\\"+n.toString(16)+" ":0==C&&1==w&&45==n||!(128<=n||45==n||95==n||48<=n&&57>=n||65<=n&&90>=n||97<=n&&122>=n)?"\\"+r.charAt(C):r.charAt(C):"\ufffd";return A};return m.CSS||(m.CSS={}),m.CSS.escape=r,r})}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{}],3:[function(m,r,w){(function(m){(function(){function K(e){return e=
332String(e),e.charAt(0).toUpperCase()+e.slice(1)}function W(e,m){var r=-1,p=e?e.length:0;if("number"==typeof p&&-1<p&&ta>=p)for(;++r<p;)m(e[r],r,e);else n(e,m)}function L(e){return e=R(e),/^(?:webOS|i(?:OS|P))/.test(e)?e:K(e)}function n(e,m){for(var n in e)ua.call(e,n)&&m(e[n],n,e)}function B(e){return null==e?K(e):Ma.call(e).slice(8,-1)}function F(e,m){var n=null!=e?typeof e[m]:"number";return!/^(?:boolean|number|string|undefined)$/.test(n)&&("object"==n?!!e[m]:!0)}function C(e){return String(e).replace(/([ -])(?!$)/g,
333"$1?")}function X(e,m){var n=null;return W(e,function(p,q){n=m(n,p,q,e)}),n}function R(e){return String(e).replace(/^ +| +$/g,"")}function Y(e){function m(d){return X(d,function(d,f){var h=f.pattern||C(f);return!d&&(d=RegExp("\\b"+h+" *\\d+[.\\w_]*","i").exec(e)||RegExp("\\b"+h+"(?:; *(?:[a-z]+[_-])?[a-z]+\\d+|[^ ();-]*)","i").exec(e))&&((d=String(f.label&&!RegExp(h,"i").test(f.label)?f.label:d).split("/"))[1]&&
333!/[\d.]+/.test(d[0])&&(d[0]+=" "+d[1]),f=f.label||f,d=L(d[0].replace(RegExp(h,"i"),f).replace(RegExp("; *(?:"+
334f+"[_-])?","i")," ").replace(RegExp("("+f+")[-_.]?(\\w)","i"),"$1 $2"))),d})}function r(d){return X(d,function(d,f){return d||(RegExp(f+"(?:-[\\d.]+/|(?: for [\\w-]+)?[ /-])([\\d.]+[^ ();/_-]*)","i").exec(e)||0)[1]||null})}var p=S,q=e&&"object"==typeof e&&"String"!=B(e);q&&(p=e,e=null);var w=p.navigator||{},l=w.userAgent||"";e||(e=l);var d,z,A=q||db==ja,H=q?!!w.likeChrome:/\bChrome\b/.test(e)&&!/internal|\n/i.test(Ma.toString()),K=q?"Object":"ScriptBridgingProxyObject",I=q?"Object":"Environment",
335aa=q&&p.java?"JavaPackage":B(p.java),W=q?"Object":"RuntimeObject",I=(aa=/\bJava/.test(aa)&&p.java)&&B(p.environment)==I,ta=aa?"a":"\u03b1",ua=aa?"b":"\u03b2",Oa=p.document||{},P=p.operamini||p.opera,ma=T.test(ma=q&&P?P["[[Class]]"]:B(P))?ma:P=null,fa=e,q=[],ga=null,Q=e==l,l=Q&&P&&"function"==typeof P.version&&P.version(),v=function(d){return X(d,function(d,f){return d||RegExp("\\b"+(f.pattern||C(f))+"\\b","i").exec(e)&&(f.label||f)})}([{label:"EdgeHTML",pattern:"Edge"},"Trident",{label:"WebKit",pattern:"AppleWebKit"},
336"iCab","Presto","NetFront","Tasman","KHTML","Gecko"]),f=function(d){return X(d,function(d,f){return d||RegExp("\\b"+(f.pattern||C(f))+"\\b","i").exec(e)&&(f.label||f)})}(["Adobe AIR","Arora","Avant Browser","Breach","Camino","Epiphany","Fennec","Flock","Galeon","GreenBrowser","iCab","Iceweasel","K-Meleon","Konqueror","Lunascape","Maxthon",{label:"Microsoft Edge",pattern:"Edge"},"Midori","Nook Browser","PaleMoon","PhantomJS","Raven","Rekonq","RockMelt","SeaMonkey",{label:"Silk",pattern:"(?:Cloud9|Silk-Accelerated)"},
337"Sleipnir","SlimBrowser",{label:"SRWare Iron",pattern:"Iron"},"Sunrise","Swiftfox","WebPositive","Opera Mini",{label:"Opera Mini",pattern:"OPiOS"},"Opera",{label:"Opera",pattern:"OPR"},"Chrome",{label:"Chrome Mobile",pattern:"(?:CriOS|CrMo)"},{label:"Firefox",pattern:"(?:Firefox|Minefield)"},{label:"Firefox for iOS",pattern:"FxiOS"},{label:"IE",pattern:"IEMobile"},{label:"IE",pattern:"MSIE"},"Safari"]),t=m([{label:"BlackBerry",pattern:"BB10"},"BlackBerry",{label:"Galaxy S",pattern:"GT-I9000"},{label:"Galaxy S2",
338pattern:"GT-I9100"},{label:"Galaxy S3",pattern:"GT-I9300"},{label:"Galaxy S4",pattern:"GT-I9500"},"Google TV","Lumia","iPad","iPod","iPhone","Kindle",{label:"Kindle Fire",pattern:"(?:Cloud9|Silk-Accelerated)"},"Nexus","Nook","PlayBook","PlayStation 3","PlayStation 4","PlayStation Vita","TouchPad","Transformer",{label:"Wii U",pattern:"WiiU"},"Wii","Xbox One",{label:"Xbox 360",pattern:"Xbox"},"Xoom"]),E=function(d){return X(d,function(d,f,h){return d||(f[t]||f[/^[a-z]+(?: +[a-z]+\b)*/i.exec(t)]||RegExp("\\b"+
339C(h)+"(?:\\b|\\w*\\d)","i").exec(e))&&h})}({Apple:{iPad:1,iPhone:1,iPod:1},Archos:{},Amazon:{Kindle:1,"Kindle Fire":1},Asus:{Transformer:1},"Barnes \x26 Noble":{Nook:1},BlackBerry:{PlayBook:1},Google:{"Google TV":1,Nexus:1},HP:{TouchPad:1},HTC:{},LG:{},Microsoft:{Xbox:1,"Xbox One":1},Motorola:{Xoom:1},Nintendo:{"Wii U":1,Wii:1},Nokia:{Lumia:1},Samsung:{"Galaxy S":1,"Galaxy S2":1,"Galaxy S3":1,"Galaxy S4":1},Sony:{"PlayStation 4":1,"PlayStation 3":1,"PlayStation Vita":1}}),h=function(d){return X(d,
340function(d,f){var h=f.pattern||C(f);if(!d&&(d=RegExp("\\b"+h+"(?:/[\\d.]+|[ \\w.]*)","i").exec(e))){var l=d,m=f.label||f,n={"10.0":"10","6.4":"10 Technical Preview","6.3":"8.1","6.2":"8","6.1":"Server 2008 R2 / 7","6.0":"Server 2008 / Vista","5.2":"Server 2003 / XP 64-bit","5.1":"XP","5.01":"2000 SP1","5.0":"2000","4.0":"NT","4.90":"ME"};d=(h&&m&&/^Win/i.test(l)&&!/^Windows Phone /i.test(l)&&(n=n[/[\d.]+$/.exec(l)])&&(l="Windows "+n),l=String(l),h&&m&&(l=l.replace(RegExp(h,"i"),m)),L(l.replace(/ ce$/i,
341" CE").replace(/\bhpw/i,"web").replace(/\bMacintosh\b/,"Mac OS").replace(/_PowerPC\b/i," OS").replace(/\b(OS X) [^ \d]+/i,"$1").replace(/\bMac (OS X)\b/,"$1").replace(/\/(\d)/," $1").replace(/_/g,".").replace(/(?: BePC|[ .]*fc[ \d.]+)$/i,"").replace(/\bx86\.64\b/gi,"x86_64").replace(/\b(Windows Phone) OS\b/,"$1").replace(/\b(Chrome OS \w+) [\d.]+\b/,"$1").split(" on ")[0]))}return d})}(["Windows Phone","Android","CentOS",{label:"Chrome OS",pattern:"CrOS"},"Debian","Fedora","FreeBSD","Gentoo","Haiku",
342"Kubuntu","Linux Mint","OpenBSD","Red Hat","SuSE","Ubuntu","Xubuntu","Cygwin","Symbian OS","hpwOS","webOS ","webOS","Tablet OS","Linux","Mac OS X","Macintosh","Mac","Windows 98;","Windows "]);if(v&&(v=[v]),E&&!t&&(t=m([E])),(d=/\bGoogle TV\b/.exec(t))&&(t=d[0]),/\bSimulator\b/i.test(e)&&(t=(t?t+" ":"")+"Simulator"),"Opera Mini"==f&&/\bOPiOS\b/.test(e)&&q.push("running in Turbo/Uncompressed mode"),"IE"==f&&/\blike iPhone OS\b/.test(e)?(d=Y(e.replace(/like iPhone OS/,"")),E=d.manufacturer,t=d.product):
343/^iP/.test(t)?(f||(f="Safari"),h="iOS"+((d=/ OS ([\d_]+)/i.exec(e))?" "+d[1].replace(/_/g,"."):"")):"Konqueror"!=f||/buntu/i.test(h)?E&&"Google"!=E&&(/Chrome/.test(f)&&!/\bMobile Safari\b/i.test(e)||/\bVita\b/.test(t))||/\bAndroid\b/.test(h)&&/^Chrome/.test(f)&&/\bVersion\//i.test(e)?(f="Android Browser",h=/\bAndroid\b/.test(h)?h:"Android"):"Silk"==f?(/\bMobi/i.test(e)||(h="Android",q.unshift("desktop mode")),/Accelerated *= *true/i.test(e)&&q.unshift("accelerated")):"PaleMoon"==f&&(d=/\bFirefox\/([\d.]+)\b/.exec(e))?
344q.push("identifying as Firefox "+d[1]):"Firefox"==f&&(d=/\b(Mobile|Tablet|TV)\b/i.exec(e))?(h||(h="Firefox OS"),t||(t=d[1])):(!f||(d=!/\bMinefield\b/i.test(e)&&/\b(?:Firefox|Safari)\b/.exec(f)))&&(f&&!t&&/[\/,]|^[^(]+?\)/.test(e.slice(e.indexOf(d+"/")+8))&&(f=null),(d=t||E||h)&&(t||E||/\b(?:Android|Symbian OS|Tablet OS|webOS)\b/.test(h))&&(f=/[a-z]+(?: Hat)?/i.exec(/\bAndroid\b/.test(h)?h:d)+" Browser")):h="Kubuntu",l||(l=r(["(?:Cloud9|CriOS|CrMo|Edge|FxiOS|IEMobile|Iron|Opera ?Mini|OPiOS|OPR|Raven|Silk(?!/[\\d.]+$))",
345"Version",C(f),"(?:Firefox|Minefield|NetFront)"])),(d="iCab"==v&&3<parseFloat(l)&&"WebKit"||/\bOpera\b/.test(f)&&(/\bOPR\b/.test(e)?"Blink":"Presto")||/\b(?:Midori|Nook|Safari)\b/i.test(e)&&!/^(?:Trident|EdgeHTML)$/.test(v)&&"WebKit"||!v&&/\bMSIE\b/i.test(e)&&("Mac OS"==h?"Tasman":"Trident")||"WebKit"==v&&/\bPlayStation\b(?! Vita\b)/i.test(f)&&"NetFront")&&(v=[d]),"IE"==f&&(d=(/; *(?:XBLWP|ZuneWP)(\d+)/i.exec(e)||0)[1])?(f+=" Mobile",h="Windows Phone "+(/\+$/.test(d)?d:d+".x"),q.unshift("desktop mode")):
346/\bWPDesktop\b/i.test(e)?(f="IE Mobile",h="Windows Phone 8.x",q.unshift("desktop mode"),l||(l=(/\brv:([\d.]+)/.exec(e)||0)[1])):"IE"!=f&&"Trident"==v&&(d=/\brv:([\d.]+)/.exec(e))&&(f&&q.push("identifying as "+f+(l?" "+l:"")),f="IE",l=d[1]),Q){if(F(p,"global"))if(aa&&
346(d=aa.lang.System,fa=d.getProperty("os.arch"),h=h||d.getProperty("os.name")+" "+d.getProperty("os.version")),A&&F(p,"system")&&(d=[p.system])[0]){h||(h=d[0].os||null);try{d[1]=p.require("ringo/engine").version,l=d[1].join("."),f="RingoJS"}catch(fb){d[0].global.system==
347p.system&&(f="Narwhal")}}else"object"==typeof p.process&&!p.process.browser&&(d=p.process)?(f="Node.js",fa=d.arch,h=d.platform,l=/[\d.]+/.exec(d.version)[0]):I&&(f="Rhino");else B(d=p.runtime)==K?(f="Adobe AIR",h=d.flash.system.Capabilities.os):B(d=p.phantom)==W?(f="PhantomJS",l=(d=d.version||null)&&d.major+"."+d.minor+"."+d.patch):"number"==typeof Oa.documentMode&&(d=/\bTrident\/(\d+)/i.exec(e))&&(l=[l,Oa.documentMode],(d=+d[1]+4)!=l[1]&&(q.push("IE "+l[1]+" mode"),v&&(v[1]=""),l[1]=d),l="IE"==f?
348String(l[1].toFixed(1)):l[0]);h=h&&L(h)}l&&(d=/(?:[ab]|dp|pre|[ab]\d+pre)(?:\d+\+?)?$/i.exec(l)||/(?:alpha|beta)(?: ?\d)?/i.exec(e+";"+(Q&&w.appMinorVersion))||/\bMinefield\b/i.test(e)&&"a")&&(ga=/b/i.test(d)?"beta":"alpha",l=l.replace(RegExp(d+"\\+?$"),"")+("beta"==ga?ua:ta)+(/\d+\+?/.exec(d)||""));"Fennec"==f||"Firefox"==f&&/\b(?:Android|Firefox OS)\b/.test(h)?f="Firefox Mobile":"Maxthon"==f&&l?l=l.replace(/\.[\d.]+/,".x"):/\bXbox\b/i.test(t)?(h=null,"Xbox 360"==t&&/\bIEMobile\b/.test(e)&&q.unshift("mobile mode")):
349!/^(?:Chrome|IE|Opera)$/.test(f)&&(!f||t||/Browser|Mobi/.test(f))||"Windows CE"!=h&&!/Mobi/i.test(e)?"IE"==f&&Q&&null===p.external?q.unshift("platform preview"):(/\bBlackBerry\b/.test(t)||/\bBB10\b/.test(e))&&(d=(RegExp(t.replace(/ +/g," *")+"/([.\\d]+)","i").exec(e)||0)[1]||l)?(d=[d,/BB10/.test(e)],h=(d[1]?(t=null,E="BlackBerry"):"Device Software")+" "+d[0],l=null):this!=n&&"Wii"!=t&&(Q&&P||/Opera/.test(f)&&/\b(?:MSIE|Firefox)\b/i.test(e)||"Firefox"==f&&/\bOS X (?:\d+\.){2,}/.test(h)||"IE"==f&&(h&&
350!/^Win/.test(h)&&5.5<l||/\bWindows XP\b/.test(h)&&8<l||8==l&&!/\bTrident\b/.test(e)))&&!T.test(d=Y.call(n,e.replace(T,"")+";"))&&d.name&&(d="ing as "+d.name+((d=d.version)?" "+d:""),T.test(f)?(/\bIE\b/.test(d)&&"Mac OS"==h&&(h=null),d="identify"+d):(d="mask"+d,f=ma?L(ma.replace(/([a-z])([A-Z])/g,"$1 $2")):"Opera",/\bIE\b/.test(d)&&(h=null),Q||(l=null)),v=["Presto"],q.push(d)):f+=" Mobile";(d=(/\bAppleWebKit\/([\d.]+\+?)/i.exec(e)||0)[1])&&(d=[parseFloat(d.replace(/\.(\d)$/,".0$1")),d],"Safari"==f&&
351"+"==d[1].slice(-1)?(f="WebKit Nightly",ga="alpha",l=d[1].slice(0,-1)):(l==d[1]||l==(d[2]=(/\bSafari\/([\d.]+\+?)/i.exec(e)||0)[1]))&&(l=null),d[1]=(/\bChrome\/([\d.]+)/i.exec(e)||0)[1],537.36==d[0]&&537.36==d[2]&&28<=parseFloat(d[1])&&"WebKit"==v&&(v=["Blink"]),Q&&(H||d[1])?(v&&(v[1]="like Chrome"),d=d[1]||(d=d[0],530>d?1:532>d?2:532.05>d?3:533>d?4:534.03>d?5:534.07>d?6:534.1>d?7:534.13>d?8:534.16>d?9:534.24>d?10:534.3>d?11:535.01>d?12:535.02>d?"13+":535.07>d?15:535.11>d?16:535.19>d?17:536.05>d?
35218:536.1>d?19:537.01>d?20:537.11>d?"21+":537.13>d?23:537.18>d?24:537.24>d?25:537.36>d?26:"Blink"!=v?"27":"28")):(v&&(v[1]="like Safari"),d=d[0],d=400>d?1:500>d?2:526>d?3:533>d?4:534>d?"4+":535>d?5:537>d?6:538>d?7:601>d?8:"8"),v&&(v[1]+=" "+(d+="number"==typeof d?".x":/[.+]/.test(d)?"":"+")),"Safari"==f&&(!l||45<parseInt(l))&&(l=d));"Opera"==f&&(d=/\bzbov|zvav$/.exec(h))?(f+=" ",q.unshift("desktop mode"),"zvav"==d?(f+="Mini",l=null):f+="Mobile",h=h.replace(RegExp(" *"+d+"$"),"")):"Safari"==f&&/\bChrome\b/.exec(v&&
353v[1])&&(q.unshift("desktop mode"),f="Chrome Mobile",l=null,/\bOS X\b/.test(h)?(E="Apple",h="iOS 4.3+"):h=null);l&&0==l.indexOf(d=/[\d.]+$/.exec(h))&&-1<e.indexOf("/"+d+"-")&&(h=R(h.replace(d,"")));v&&!/\b(?:Avant|Nook)\b/.test(f)&&(/Browser|Lunascape|Maxthon/.test(f)||"Safari"!=f&&/^iOS/.test(h)&&/\bSafari\b/.test(v[1])||/^(?:Adobe|Arora|Breach|Midori|Opera|Phantom|Rekonq|Rock|Sleipnir|Web)/.test(f)&&v[1])&&(d=v[v.length-1])&&q.push(d);q.length&&(q=["("+q.join("; ")+")"]);E&&t&&0>t.indexOf(E)&&q.push("on "+
354E);t&&q.push((/^on /.test(q[q.length-1])?"":"on ")+t);h&&(d=/ ([\d.+]+)$/.exec(h),z=d&&"/"==h.charAt(h.length-d[0].length-1),h={architecture:32,family:d&&!z?h.replace(d[0],""):h,version:d?d[1]:null,toString:function(){var d=this.version;
354return this.family+(d&&!z?" "+d:"")+(64==this.architecture?" 64-bit":"")}});(d=/\b(?:AMD|IA|Win|WOW|x86_|x)64\b/i.exec(fa))&&!/\bi686\b/i.test(fa)?(h&&(h.architecture=64,h.family=h.family.replace(RegExp(" *"+d),"")),f&&(/\bWOW64\b/i.test(e)||Q&&/\w(?:86|32)$/.test(w.cpuClass||
355w.platform)&&!/\bWin64; x64\b/i.test(e))&&q.unshift("32-bit")):h&&/^OS X/.test(h.family)&&"Chrome"==f&&39<=parseFloat(l)&&(h.architecture=64);e||(e=null);p={};return p.description=e,p.layout=v&&v[0],p.manufacturer=E,p.name=f,p.prerelease=ga,p.product=t,p.ua=e,p.version=f&&l,p.os=h||{architecture:null,family:null,version:null,toString:function(){return"null"}},p.parse=Y,p.toString=function(){return this.description||""},p.version&&q.unshift(l),p.name&&q.unshift(f),h&&f&&(h!=String(h).split(" ")[0]||
356h!=f.split(" ")[0]&&!t)&&q.push(t?"("+h+")":"on "+h),q.length&&(p.description=q.join(" ")),p}var H={"function":!0,object:!0},S=H[typeof window]&&window||this,ja=S,I=H[typeof w]&&w,H=H[typeof r]&&r&&!r.nodeType&&r,z=I&&H&&"object"==typeof m&&m;!z||z.global!==z&&z.window!==z&&z.self!==z||(S=z);var ta=Math.pow(2,53)-1,T=/\bOpera/,db=this,z=Object.prototype,ua=z.hasOwnProperty,Ma=z.toString,z=Y();I&&H?n(z,function(e,m){I[m]=e}):S.platform=z}).call(this)}).call(this,"undefined"!=typeof global?global:"undefined"!=
357typeof self?self:"undefined"!=typeof window?window:{})},{}]},{},[1])(1)});
358(function(){var h=this,e=h.Chart,c=function(a){this.canvas=a.canvas;this.ctx=a;var k=function(a,k){return a["offset"+k]?a["offset"+k]:document.defaultView.getComputedStyle(a).getPropertyValue(k)},n=this.width=k(a.canvas,"Width"),k=this.height=k(a.canvas,"Height");a.canvas.width=n;a.canvas.height=k;n=this.width=a.canvas.width;k=this.height=a.canvas.height;this.aspectRatio=this.width/this.height;b.retinaScale(this);return this};c.defaults={global:{animation:!0,animationSteps:60,animationEasing:"easeOutQuart",
359showScale:!0,scaleOverride:!1,scaleSteps:null,scaleStepWidth:null,scaleStartValue:null,scaleLineColor:"rgba(0,0,0,.1)",scaleLineWidth:1,scaleShowLabels:!0,scaleLabel:"\x3c%\x3dvalue%\x3e",scaleIntegersOnly:!0,scaleBeginAtZero:!1,scaleFontFamily:"'Helvetica Neue', 'Helvetica', 'Arial', sans-serif",scaleFontSize:12,scaleFontStyle:"normal",scaleFontColor:"#666",responsive:!1,maintainAspectRatio:!0,showTooltips:!0,customTooltips:!1,tooltipEvents:["mousemove","touchstart","touchmove","mouseout"],tooltipFillColor:"rgba(0,0,0,0.8)",
360tooltipFontFamily:"'Helvetica Neue', 'Helvetica', 'Arial', sans-serif",tooltipFontSize:14,tooltipFontStyle:"normal",tooltipFontColor:"#fff",tooltipTitleFontFamily:"'Helvetica Neue', 'Helvetica', 'Arial', sans-serif",tooltipTitleFontSize:14,tooltipTitleFontStyle:"bold",tooltipTitleFontColor:"#fff",tooltipYPadding:6,tooltipXPadding:6,tooltipCaretSize:8,tooltipCornerRadius:6,tooltipXOffset:10,tooltipTemplate:"\x3c%if (label){%\x3e\x3c%\x3dlabel%\x3e: \x3c%}%\x3e\x3c%\x3d value %\x3e",multiTooltipTemplate:"\x3c%\x3d value %\x3e",
361multiTooltipKeyBackground:"#fff",onAnimationProgress:function(){},onAnimationComplete:function(){}}};c.types={};var b=c.helpers={},d=b.each=function(a,k,n){var b=Array.prototype.slice.call(arguments,3);if(a)if(a.length===+a.length){var d;for(d=0;d<a.length;d++)k.apply(n,[a[d],d].concat(b))}else for(d in a)k.apply(n,[a[d],d].concat(b))},f=b.clone=function(a){var k={};d(a,function(b,d){a.hasOwnProperty(d)&&(k[d]=b)});return k},g=b.extend=function(a){d(Array.prototype.slice.call(arguments,1),function(k){d(k,
362function(b,d){k.hasOwnProperty(d)&&(a[d]=b)})});return a},E=b.merge=function(a,k){var b=Array.prototype.slice.call(arguments,0);b.unshift({});return g.apply(null,b)},F=b.indexOf=function(a,k){if(Array.prototype.indexOf)return a.indexOf(k);for(var b=0;b<a.length;b++)if(a[b]===k)return b;return-1};b.where=function(a,k){var n=[];b.each(a,function(a){k(a)&&n.push(a)});return n};b.findNextWhere=function(a,k,b){b||(b=-1);for(b+=1;b<a.length;b++){var d=a[b];if(k(d))return d}};b.findPreviousWhere=function(a,
363k,b){b||(b=a.length);for(--b;0<=b;b--){var d=a[b];if(k(d))return d}};var p=b.inherits=function(a){var k=this,b=a&&a.hasOwnProperty("constructor")?a.constructor:function(){return k.apply(this,arguments)},d=function(){this.constructor=b};d.prototype=k.prototype;b.prototype=new d;b.extend=p;a&&g(b.prototype,a);b.__super__=k.prototype;return b},l=b.noop=function(){},G=b.uid=function(){var a=0;return function(){return"chart-"+a++}}(),H=b.warn=function(a){window.console&&"function"==typeof window.console.warn&&
364console.warn(a)},I=b.amd="function"==typeof define&&define.amd,r=b.isNumber=function(a){return!isNaN(parseFloat(a))&&isFinite(a)},x=b.max=function(a){return Math.max.apply(Math,a)},v=b.min=function(a){return Math.min.apply(Math,a)};b.cap=function(a,b,d){if(r(b)){if(a>b)return b}else if(r(d)&&a<d)return d;return a};var A=b.getDecimalPlaces=function(a){return 0!==a%1&&r(a)?a.toString().split(".")[1].length:0},y=b.radians=function(a){return Math.PI/180*a};b.getAngleFromPoint=function(a,b){var d=b.x-
365a.x,c=b.y-a.y,e=Math.sqrt(d*d+c*c),f=2*Math.PI+Math.atan2(c,d);0>d&&0>c&&(f+=2*Math.PI);return{angle:f,distance:e}};var B=b.aliasPixel=function(a){return 0===a%2?0:.5};b.splineCurve=function(a,b,d,c){var e=Math.sqrt(Math.pow(b.x-a.x,2)+Math.pow(b.y-a.y,2)),f=Math.sqrt(Math.pow(d.x-b.x,2)+Math.pow(d.y-b.y,2)),g=c*e/(e+f);c=c*f/(e+f);return{inner:{x:b.x-g*(d.x-a.x),y:b.y-g*(d.y-a.y)},outer:{x:b.x+c*(d.x-a.x),y:b.y+c*(d.y-a.y)}}};var J=b.calculateOrderOfMagnitude=function(a){return Math.floor(Math.log(a)/
366Math.LN10)};b.calculateScaleRange=function(a,b,d,c,e){b=Math.floor(b/(1.5*d));d=2>=b;var f=x(a),g=v(a);f===g&&(f+=.5,.5<=g&&!c?g-=.5:f+=.5);a=J(Math.abs(f-g));c=c?0:Math.floor(g/(1*Math.pow(10,a)))*Math.pow(10,a);for(var f=Math.ceil(f/(1*Math.pow(10,a)))*Math.pow(10,a)-c,g=Math.pow(10,a),m=Math.round(f/g);(m>b||2*m<b)&&!d;)if(m>b)g*=2,m=Math.round(f/g),0!==m%1&&(d=!0);else if(e&&0<=a)if(0===g/2%1)g/=2,m=Math.round(f/g);else break;else g/=2,m=Math.round(f/g);d&&(m=2,g=f/m);return{steps:m,stepValue:g,
367min:c,max:c+m*g}};var t=b.template=function(a,b){if(a instanceof Function)return a(b);var d={},d=/\W/.test(a)?new Function("obj","var p\x3d[],print\x3dfunction(){p.push.apply(
367p,arguments);};with(obj){p.push('"+a.replace(/[\r\t\n]/g," ").split("\x3c%").join("\t").replace(/((^|%>)[^\t]*)'/g,"$1\r").replace(/\t=(.*?)%>/g,"',$1,'").split("\t").join("');").split("%\x3e").join("p.push('").split("\r").join("\\'")+"');}return p.join('');"):d[a]=d[a];return b?d(b):d};b.generateLabels=function(a,b,c,f){var e=
368Array(b);labelTemplateString&&d(e,function(b,k){e[k]=t(a,{value:c+f*(k+1)})});return e};var w=b.easingEffects={linear:function(a){return a},easeInQuad:function(a){return a*a},easeOutQuad:function(a){return-1*a*(a-2)},easeInOutQuad:function(a){return 1>(a/=.5)?.5*a*a:-.5*(--a*(a-2)-1)},easeInCubic:function(a){return a*a*a},easeOutCubic:function(a){return 1*((a=a/1-1)*a*a+1)},easeInOutCubic:function(a){return 1>(a/=.5)?.5*a*a*a:.5*((a-=2)*a*a+2)},easeInQuart:function(a){return a*a*a*a},easeOutQuart:function(a){return-1*
369((a=a/1-1)*a*a*a-1)},easeInOutQuart:function(a){return 1>(a/=.5)?.5*a*a*a*a:-.5*((a-=2)*a*a*a-2)},easeInQuint:function(a){return 1*(a/=1)*a*a*a*a},easeOutQuint:function(a){return 1*((a=a/1-1)*a*a*a*a+1)},easeInOutQuint:function(a){return 1>(a/=.5)?.5*a*a*a*a*a:.5*((a-=2)*a*a*a*a+2)},easeInSine:function(a){return-1*Math.cos(a/1*(Math.PI/2))+1},easeOutSine:function(a){return 1*Math.sin(a/1*(Math.PI/2))},easeInOutSine:function(a){return-.5*(Math.cos(Math.PI*a/1)-1)},easeInExpo:function(a){return 0===
370a?1:1*Math.pow(2,10*(a/1-1))},easeOutExpo:function(a){return 1===a?1:1*(-Math.pow(2,-10*a/1)+1)},easeInOutExpo:function(a){return 0===a?0:1===a?1:1>(a/=.5)?.5*Math.pow(2,10*(a-1)):.5*(-Math.pow(2,-10*--a)+2)},easeInCirc:function(a){return 1<=a?a:-1*(Math.sqrt(1-(a/=1)*a)-1)},easeOutCirc:function(a){return 1*Math.sqrt(1-(a=a/1-1)*a)},easeInOutCirc:function(a){return 1>(a/=.5)?-.5*(Math.sqrt(1-a*a)-1):.5*(Math.sqrt(1-(a-=2)*a)+1)},easeInElastic:function(a){var b=1.70158,d=0,c=1;if(0===a)return 0;if(1==
371(a/=1))return 1;d||(d=.3);c<Math.abs(1)?(c=1,b=d/4):b=d/(2*Math.PI)*Math.asin(1/c);return-(c*Math.pow(2,10*--a)*Math.sin(2*(1*a-b)*Math.PI/d))},easeOutElastic:function(a){var b=1.70158,d=0,c=1;if(0===a)return 0;if(1==(a/=1))return 1;d||(d=.3);c<Math.abs(1)?(c=1,b=d/4):b=d/(2*Math.PI)*Math.asin(1/c);return c*Math.pow(2,-10*a)*Math.sin(2*(1*a-b)*Math.PI/d)+1},easeInOutElastic:function(a){var b=1.70158,d=0,c=1;if(0===a)return 0;if(2==(a/=.5))return 1;d||(d=.3*1.5);c<Math.abs(1)?(c=1,b=d/4):b=d/(2*Math.PI)*
372Math.asin(1/c);return 1>a?-.5*c*Math.pow(2,10*--a)*Math.sin(2*(1*a-b)*Math.PI/d):c*Math.pow(2,-10*--a)*Math.sin(2*(1*a-b)*Math.PI/d)*.5+1},easeInBack:function(a){return 1*(a/=1)*a*(2.70158*a-1.70158)},easeOutBack:function(a){return 1*((a=a/1-1)*a*(2.70158*a+1.70158)+1)},easeInOutBack:function(a){var b=1.70158;return 1>(a/=.5)?.5*a*a*(((b*=1.525)+1)*a-b):.5*((a-=2)*a*(((b*=1.525)+1)*a+b)+2)},easeInBounce:function(a){return 1-w.easeOutBounce(1-a)},easeOutBounce:function(a){return(a/=1)<1/2.75?7.5625*
373a*a:a<2/2.75?1*(7.5625*(a-=1.5/2.75)*a+.75):a<2.5/2.75?1*(7.5625*(a-=2.25/2.75)*a+.9375):1*(7.5625*(a-=2.625/2.75)*a+.984375)},easeInOutBounce:function(a){return.5>a?.5*w.easeInBounce(2*a):.5*w.easeOutBounce(2*a-1)+.5}},C=b.requestAnimFrame=function(){return window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||window.oRequestAnimationFrame||window.msRequestAnimationFrame||function(a){return window.setTimeout(a,1E3/60)}}(),K=b.cancelAnimFrame=function(){return window.cancelAnimationFrame||
374window.webkitCancelAnimationFrame||window.mozCancelAnimationFrame||window.oCancelAnimationFrame||window.msCancelAnimationFrame||function(a){return window.clearTimeout(a,1E3/60)}}();b.animationLoop=function(a,b,d,c,f,e){var g=0,m=w[d]||w.linear,l=function(){g++;var d=g/b,n=m(d);a.call(e,n,d,g);c.call(e,n,d);g<b?e.animationFrame=C(l):f.apply(e)};C(l)};b.getRelativePosition=function(a){var b;b=a.originalEvent||a;var d=(a.currentTarget||a.srcElement).getBoundingClientRect();b.touches?(a=b.touches[0].clientX-
375d.left,b=b.touches[0].clientY-d.top):(a=b.clientX-d.left,b=b.clientY-d.top);return{x:a,y:b}};var L=b.addEvent=function(a,b,d){a.addEventListener?a.addEventListener(b,d):a.attachEvent?a.attachEvent("on"+b,d):a["on"+b]=d},M=b.removeEvent=function(a,b,d){a.removeEventListener?a.removeEventListener(b,d,
375!1):a.detachEvent?a.detachEvent("on"+b,d):a["on"+b]=l};b.bindEvents=function(a,b,c){a.events||(a.events={});d(b,function(b){a.events[b]=function(){c.apply(a,arguments)};L(a.chart.canvas,b,a.events[b])})};
376var N=b.unbindEvents=function(a,b){d(b,function(b,d){M(a.chart.canvas,d,b)})},O=b.getMaximumWidth=function(a){return a.parentNode.clientWidth},P=b.getMaximumHeight=function(a){return a.parentNode.clientHeight};b.getMaximumSize=b.getMaximumWidth;var Q=b.retinaScale=function(a){var b=a.ctx,d=a.canvas.width;a=a.canvas.height;window.devicePixelRatio&&(b.canvas.style.width=d+"px",b.canvas.style.height=a+"px",b.canvas.height=a*window.devicePixelRatio,b.canvas.width=d*window.devicePixelRatio,b.scale(window.devicePixelRatio,
377window.devicePixelRatio))},R=b.clear=function(a){a.ctx.clearRect(0,0,a.width,a.height)},u=b.fontString=function(a,b,d){return b+" "+a+"px "+d},z=b.longestText=function(a,b,c){a.font=b;var f=0;d(c,function(b){b=a.measureText(b).width;f=b>f?b:f});return f},D=b.drawRoundedRectangle=function(a,b,d,c,f,e){a.beginPath();a.moveTo(b+e,d);a.lineTo(b+c-e,d);a.quadraticCurveTo(b+c,d,b+c,d+e);a.lineTo(b+c,d+f-e);a.quadraticCurveTo(b+c,d+f,b+c-e,d+f);a.lineTo(b+e,d+f);a.quadraticCurveTo(b,d+f,b,d+f-e);a.lineTo(b,
378d+e);a.quadraticCurveTo(b,d,b+e,d);a.closePath()};c.instances={};c.Type=function(a,b,d){this.options=b;this.chart=d;this.id=G();c.instances[this.id]=this;b.responsive&&this.resize();this.initialize.call(this,a)};g(c.Type.prototype,{initialize:function(){return this},clear:function(){R(this.chart);return this},stop:function(){K(this.animationFrame);return this},resize:function(a){this.stop();var b=this.chart.canvas,d=O(this.chart.canvas),c=this.options.maintainAspectRatio?d/this.chart.aspectRatio:
379P(this.chart.canvas);b.width=this.chart.width=d;b.height=this.chart.height=c;Q(this.chart);"function"===typeof a&&a.apply(this,Array.prototype.slice.call(arguments,1));return this},reflow:l,render:function(a){a&&this.reflow();this.options.animation&&!a?b.animationLoop(this.draw,this.options.animationSteps,this.options.animationEasing,this.options.onAnimationProgress,this.options.onAnimationComplete,this):(this.draw(),this.options.onAnimationComplete.call(this));return this},generateLegend:function(){return t(this.options.legendTemplate,
380this)},destroy:function(){this.clear();N(this,this.events);var a=this.chart.canvas;a.width=this.chart.width;a.height=this.chart.height;a.style.removeProperty?(a.style.removeProperty("width"),a.style.removeProperty("height")):(a.style.removeAttribute("width"),a.style.removeAttribute("height"));delete c.instances[this.id]},showTooltip:function(a,f){"undefined"===typeof this.activeElements&&(this.activeElements=[]);if(function(a){var b=!1;if(a.length!==this.activeElements.length)return b=!0;d(a,function(a,
381d){a!==this.activeElements[d]&&(b=!0)},this);return b}.call(this,a)||f){this.activeElements=a;this.draw();this.options.customTooltips&&this.options.customTooltips(!1);if(0<a.length)if(this.datasets&&1<this.datasets.length){for(var e,g,q=this.datasets.length-1;0<=q&&(e=this.datasets[q].points||this.datasets[q].bars||this.datasets[q].segments,g=F(e,a[0]),-1===g);q--);var l=[],h=[];e=function(a){var d=[],c,f=[],e=[],k,n,q;b.each(this.datasets,function(a){c=a.points||a.bars||a.segments;c[g]&&c[g].hasValue()&&
382d.push(c[g])});b.each(d,function(a){f.push(a.x);e.push(a.y);l.push(b.template(this.options.multiTooltipTemplate,a));h.push({fill:a._saved.fillColor||a.fillColor,stroke:a._saved.strokeColor||a.strokeColor})},this);q=v(e);k=x(e);n=v(f);a=x(f);return{x:n>this.chart.width/2?n:a,y:(q+k)/2}}.call(this,g);(new c.MultiTooltip({x:e.x,y:e.y,xPadding:this.options.tooltipXPadding,yPadding:this.options.tooltipYPadding,xOffset:this.options.tooltipXOffset,fillColor:this.options.tooltipFillColor,textColor:this.options.tooltipFontColor,
383fontFamily:this.options.tooltipFontFamily,fontStyle:this.options.tooltipFontStyle,fontSize:this.options.tooltipFontSize,titleTextColor:this.options.tooltipTitleFontColor,titleFontFamily:this.options.tooltipTitleFontFamily,titleFontStyle:this.options.tooltipTitleFontStyle,titleFontSize:this.options.tooltipTitleFontSize,cornerRadius:this.options.tooltipCornerRadius,labels:l,legendColors:h,legendColorBackgroun
383d:this.options.multiTooltipKeyBackground,title:a[0].label,chart:this.chart,ctx:this.chart.ctx,
384custom:this.options.customTooltips})).draw()}else d(a,function(a){var b=a.tooltipPosition();(new c.Tooltip({x:Math.round(b.x),y:Math.round(b.y),xPadding:this.options.tooltipXPadding,yPadding:this.options.tooltipYPadding,fillColor:this.options.tooltipFillColor,textColor:this.options.tooltipFontColor,fontFamily:this.options.tooltipFontFamily,fontStyle:this.options.tooltipFontStyle,fontSize:this.options.tooltipFontSize,caretHeight:this.options.tooltipCaretSize,cornerRadius:this.options.tooltipCornerRadius,
385text:t(this.options.tooltipTemplate,a),chart:this.chart,custom:this.options.customTooltips})).draw()},this);return this}},toBase64Image:function(){return this.chart.canvas.toDataURL.apply(this.chart.canvas,arguments)}});c.Type.extend=function(a){var b=this,d=function(){return b.apply(this,arguments)};d.prototype=f(b.prototype);g(d.prototype,a);d.extend=c.Type.extend;if(a.name||b.prototype.name){var e=a.name||b.prototype.name,q=c.defaults[b.prototype.name]?f(c.defaults[b.prototype.name]):{};c.defaults[e]=
386g(q,a.defaults);c.types[e]=d;c.prototype[e]=function(a,b){var f=E(c.defaults.global,c.defaults[e],b||{});return new d(a,f,this)}}else H("Name not provided for this chart, so it hasn't been registered");return b};c.Element=function(a){g(this,a);this.initialize.apply(this,arguments);this.save()};g(c.Element.prototype,{initialize:function(){},restore:function(a){a?d(a,function(a){this[a]=this._saved[a]},this):g(this,this._saved);return this},save:function(){this._saved=f(this);delete this._saved._saved;
387return this},update:function(a){d(a,function(a,b){this._saved[b]=this[b];this[b]=a},this);return this},transition:function(a,b){d(a,function(a,d){this[d]=(a-this._saved[d])*b+this._saved[d]},this);return this},tooltipPosition:function(){return{x:this.x,y:this.y}},hasValue:function(){return r(this.value)}});c.Element.extend=p;c.Point=c.Element.extend({display:!0,inRange:function(a,b){return Math.pow(a-this.x,2)+Math.pow(b-this.y,2)<Math.pow(this.hitDetectionRadius+this.radius,2)},draw:function(){if(this.display){var a=
388this.ctx;a.beginPath();a.arc(this.x,this.y,this.radius,0,2*Math.PI);a.closePath();a.strokeStyle=this.strokeColor;a.lineWidth=this.strokeWidth;a.fillStyle=this.fillColor;a.fill();a.stroke()}}});c.Arc=c.Element.extend({inRange:function(a,d){var c=b.getAngleFromPoint(this,{x:a,y:d}),f=c.distance>=this.innerRadius&&c.distance<=this.outerRadius;return c.angle>=this.startAngle&&c.angle<=this.endAngle&&f},tooltipPosition:function(){var a=this.startAngle+(this.endAngle-this.startAngle)/2,b=(this.outerRadius-
389this.innerRadius)/2+this.innerRadius;return{x:this.x+Math.cos(a)*b,y:this.y+Math.sin(a)*b}},draw:function(a){a=this.ctx;a.beginPath();a.arc(this.x,this.y,this.outerRadius,this.startAngle,this.endAngle);a.arc(this.x,this.y,this.innerRadius,this.endAngle,this.startAngle,!0);a.closePath();a.strokeStyle=this.strokeColor;a.lineWidth=this.strokeWidth;a.fillStyle=this.fillColor;a.fill();a.lineJoin="bevel";this.showStroke&&a.stroke()}});c.Rectangle=c.Element.extend({draw:function(){var a=this.ctx,b=this.width/
3902,d=this.x-b,b=this.x+b,c=this.base-(this.base-this.y),f=this.strokeWidth/2;this.showStroke&&(d+=f,b-=f,c+=f);a.beginPath();a.fillStyle=this.fillColor;a.strokeStyle=this.strokeColor;a.lineWidth=this.strokeWidth;a.moveTo(d,this.base);a.lineTo(d,c);a.lineTo(b,c);a.lineTo(b,this.base);a.fill();this.showStroke&&a.stroke()},height:function(){return this.base-this.y},inRange:function(a,b){return a>=this.x-this.width/2&&a<=this.x+this.width/2&&b>=this.y&&b<=this.base}});c.Tooltip=c.Element.extend({draw:function(){var a=
391this.chart.ctx;a.font=u(this.fontSize,this.fontStyle,this.fontFamily);this.xAlign="center";this.yAlign="above";var b=this.caretPadding=2,d=a.measureText(this.text).width+2*this.xPadding,c=this.fontSize+2*this.yPadding,f=c+this.caretHeight+b;this.x+d/2>this.chart.width?this.xAlign="left":0>this.x-d/2&&(this.xAlign="right");0>this.y-f&&(this.yAlign="below");var e=this.x-d/2,f=this.y-f;a.fillStyle=this.fillColor;if(this.custom)this.custom(this);else{switch(this.yAlign){case "above":a.beginPath();a.moveTo(this.x,
392this.y-b);a.lineTo(this.x+this.caretHeight,this.y-(b+this.caretHeight));a.lineTo(this.x-this.caretHeight,this.y-(b+this.caretHeight));a.closePath();a.fill();break;case "below":f=this.y+b+this.caretHeight,a.beginPath(),a.moveTo(this.x,this.y+b),a.lineTo(this.x+this.caretHeight,this.y+b+this.caretHeight),a.lineTo(this.x-this.caretHeight,this.y+b+this.caretHeight),a.closePath(),a.fill()}
392switch(this.xAlign){case "left":e=this.x-d+(this.cornerRadius+this.caretHeight);break;case "right":e=this.x-(this.cornerRadius+
393this.caretHeight)}D(a,e,f,d,c,this.cornerRadius);a.fill();a.fillStyle=this.textColor;a.textAlign="center";a.textBaseline="middle";a.fillText(this.text,e+d/2,f+c/2)}}});c.MultiTooltip=c.Element.extend({initialize:function(){this.font=u(this.fontSize,this.fontStyle,this.fontFamily);this.titleFont=u(this.titleFontSize,this.titleFontStyle,this.titleFontFamily);this.height=this.labels.length*this.fontSize+this.fontSize/2*(this.labels.length-1)+2*this.yPadding+1.5*this.titleFontSize;this.ctx.font=this.titleFont;
394var a=this.ctx.measureText(this.title).width,b=z(this.ctx,this.font,this.labels)+this.fontSize+3;this.width=x([b,a])+2*this.xPadding;a=this.height/2;0>this.y-a?this.y=a:this.y+a>this.chart.height&&(this.y=this.chart.height-a);this.x=this.x>this.chart.width/2?this.x-(this.xOffset+this.width):this.x+this.xOffset},getLineHeight:function(a){var b=this.y-this.height/2+this.yPadding;return 0===a?b+this.titleFontSize/2:b+(1.5*this.fontSize*(a-1)+this.fontSize/2)+1.5*this.titleFontSize},draw:function(){if(this.custom)this.custom(this);
395else{D(this.ctx,this.x,this.y-this.height/2,this.width,this.height,this.cornerRadius);var a=this.ctx;a.fillStyle=this.fillColor;a.fill();a.closePath();a.textAlign="left";a.textBaseline="middle";a.fillStyle=this.titleTextColor;a.font=this.titleFont;a.fillText(this.title,this.x+this.xPadding,this.getLineHeight(0));a.font=this.font;b.each(this.labels,function(b,d){a.fillStyle=this.textColor;a.fillText(b,this.x+this.xPadding+this.fontSize+3,this.getLineHeight(d+1));a.fillStyle=this.legendColorBackground;
396a.fillRect(this.x+this.xPadding,this.getLineHeight(d+1)-this.fontSize/2,this.fontSize,this.fontSize);a.fillStyle=this.legendColors[d].fill;a.fillRect(this.x+this.xPadding,this.getLineHeight(d+1)-this.fontSize/2,this.fontSize,this.fontSize)},this)}}});c.Scale=c.Element.extend({initialize:function(){this.fit()},buildYLabels:function(){this.yLabels=[];for(var a=A(this.stepValue),b=0;b<=this.steps;b++)this.yLabels.push(t(this.templateString,{value:(this.min+b*this.stepValue).toFixed(a)}));this.yLabelWidth=
397this.display&&this.showLabels?z(this.ctx,this.font,this.yLabels):0},addXLabel:function(a){this.xLabels.push(a);this.valuesCount++;this.fit()},removeXLabel:function(){this.xLabels.shift();this.valuesCount--;this.fit()},fit:function(){this.startPoint=this.display?this.fontSize:0;this.endPoint=this.display?this.height-1.5*this.fontSize-5:this.height;this.startPoint+=this.padding;this.endPoint-=this.padding;var a=this.endPoint-this.startPoint,b;this.calculateYRange(a);this.buildYLabels();for(this.calculateXLabelRotation();a>
398this.endPoint-this.startPoint;)a=this.endPoint-this.startPoint,b=this.yLabelWidth,this.calculateYRange(a),this.buildYLabels(),b<this.yLabelWidth&&this.calculateXLabelRotation()},calculateXLabelRotation:function(){this.ctx.font=this.font;var a=this.ctx.measureText(this.xLabels[0]).width,b;this.xScalePaddingRight=this.ctx.measureText(this.xLabels[this.xLabels.length-1]).width/2+3;this.xScalePaddingLeft=a/2>this.yLabelWidth+10?a/2:this.yLabelWidth+10;this.xLabelRotation=0;if(this.display){var d=z(this.ctx,
399this.font,this.xLabels),c;this.xLabelWidth=d;for(var f=Math.floor(this.calculateX(1)-this.calculateX(0))-6;this.xLabelWidth>f&&0===this.xLabelRotation||this.xLabelWidth>f&&90>=this.xLabelRotation&&0<this.xLabelRotation;)c=Math.cos(y(this.xLabelRotation)),b=c*a,b+this.fontSize/2>this.yLabelWidth+8&&(this.xScalePaddingLeft=b+this.fontSize/2),this.xScalePaddingRight=this.fontSize/2,this.xLabelRotation++,this.xLabelWidth=c*d;0<this.xLabelRotation&&(this.endPoint-=Math.sin(y(this.xLabelRotation))*d+3)}else this.xLabelWidth=
4000,this.xScalePaddingLeft=this.xScalePaddingRight=this.padding},calculateYRange:l,drawingArea:function(){return this.startPoint-this.endPoint},calculateY:function(a){var b=this.drawingArea()/(this.min-this.max);return this.endPoint-b*(a-this.min)},calculateX:function(a){var b=(this.width-(this.xScalePaddingLeft+this.xScalePaddingRight))/Math.max(this.valuesCount-(this.offsetGridLines?0:1),1);a=b*a+this.xScalePaddingLeft;this.offsetGridLines&&(a+=b/2);return Math.round(a)},update:function(a){b.extend(this,
401a);this.fit()}
401,draw:function(){var a=this.ctx,c=(this.endPoint-this.startPoint)/this.steps,f=Math.round(this.xScalePaddingLeft);this.display&&(a.fillStyle=this.textColor,a.font=this.font,d(this.yLabels,function(d,e){var g=this.endPoint-c*e,l=Math.round(g),m=this.showHorizontalLines;a.textAlign="right";a.textBaseline="middle";this.showLabels&&a.fillText(d,f-10,g);0!==e||m||(m=!0);m&&a.beginPath();0<e?(a.lineWidth=this.gridLineWidth,a.strokeStyle=this.gridLineColor):(a.lineWidth=this.lineWidth,a.strokeStyle=
402this.lineColor);l+=b.aliasPixel(a.lineWidth);m&&(a.moveTo(f,l),a.lineTo(this.width,l),a.stroke(),a.closePath());a.lineWidth=this.lineWidth;a.strokeStyle=this.lineColor;a.beginPath();a.moveTo(f-5,l);a.lineTo(f,l);a.stroke();a.closePath()},this),d(this.xLabels,function(b,d){var c=this.calculateX(d)+B(this.lineWidth),f=this.calculateX(d-(this.offsetGridLines?.5:0))+B(this.lineWidth),e=0<this.xLabelRotation,g=this.showVerticalLines;0!==d||g||(g=!0);g&&a.beginPath();0<d?(a.lineWidth=this.gridLineWidth,
403a.strokeStyle=this.gridLineColor):(a.lineWidth=this.lineWidth,a.strokeStyle=this.lineColor);g&&(a.moveTo(f,this.endPoint),a.lineTo(f,this.startPoint-3),a.stroke(),a.closePath());a.lineWidth=this.lineWidth;a.strokeStyle=this.lineColor;a.beginPath();a.moveTo(f,this.endPoint);a.lineTo(f,this.endPoint+5);a.stroke();a.closePath();a.save();a.translate(c,e?this.endPoint+12:this.endPoint+8);a.rotate(-1*y(this.xLabelRotation));a.font=this.font;a.textAlign=e?"right":"center";a.textBaseline=e?"middle":"top";
404a.fillText(b,0,0);
404a.restore()},this))}});c.RadialScale=c.Element.extend({initialize:function(){this.size=v([this.height,this.width]);this.drawingArea=this.display?this.size/2-(this.fontSize/2+this.backdropPaddingY):this.size/2},calculateCenterOffset:function(a){return this.drawingArea/(this.max-this.min)*(a-this.min)},update:function(){this.lineArc?this.drawingArea=this.display?this.size/2-(this.fontSize/2+this.backdropPaddingY):this.size/2:this.setScaleSize();this.buildYLabels()},buildYLabels:function(){this.yLabels=
405[];for(var a=A(this.stepValue),b=0;b<=this.steps;b++)this.yLabels.push(t(this.templateString,{value:(this.min+b*this.stepValue).toFixed(a)}))},getCircumference:function(){return 2*Math.PI/this.valuesCount},setScaleSize:function(){var a=v([this.height/2-this.pointLabelFontSize-5,this.width/2]),b,d,c,f=this.width,e,g=0,l;this.ctx.font=u(this.pointLabelFontSize,this.pointLabelFontStyle,this.pointLabelFontFamily);for(d=0;d<this.valuesCount;d++)b=this.getPointPosition(d,a),c=this.ctx.measureText(t(this.templateString,
406{value:this.labels[d]})).width+5,0===d||d===this.valuesCount/2?(c/=2,b.x+c>f&&(f=b.x+c,e=d),b.x-c<g&&(g=b.x-c,l=d)):d<this.valuesCount/2?b.x+c>f&&(f=b.x+c,e=d):d>this.valuesCount/2&&b.x-c<g&&(g=b.x-c,l=d);b=g;f=Math.ceil(f-this.width);e=this.getIndexAngle(e);l=this.getIndexAngle(l);e=f/Math.sin(e+Math.PI/2);l=b/Math.sin(l+Math.PI/2);e=r(e)?e:0;l=r(l)?l:0;this.drawingArea=a-(l+e)/2;this.setCenterPoint(l,e)},setCenterPoint:function(a,b){this.xCenter=(a+this.drawingArea+(this.width-b-this.drawingArea))/
4072;this.yCenter=this.height/2},getIndexAngle:function(a){return 2*Math.PI/this.valuesCount*a-Math.PI/2},getPointPosition:function(a,b){var d=this.getIndexAngle(a);return{x:Math.cos(d)*b+this.xCenter,y:Math.sin(d)*b+this.yCenter}},draw:function(){if(this.display){var a=this.ctx;d(this.yLabels,function(b,d){if(0<d){var c=this.drawingArea/this.steps*d,f=this.yCenter-c;if(0<this.lineWidth){a.strokeStyle=this.lineColor;a.lineWidth=this.lineWidth;if(this.lineArc)a.beginPath(),a.arc(this.xCenter,this.yCenter,
408c,0,2*Math.PI);else{a.beginPath();for(var e=0;e<this.valuesCount;e++)c=this.getPointPosition(e,this.calculateCenterOffset(this.min+d*this.stepValue)),0===e?a.moveTo(c.x,c.y):a.lineTo(c.x,c.y)}a.closePath();a.stroke()}this.showLabels&&(a.font=u(this.fontSize,this.fontStyle,this.fontFamily),this.showLabelBackdrop&&(c=a.measureText(b).width,a.fillStyle=this.backdropColor,a.fillRect(this.xCenter-c/2-this.backdropPaddingX,f-this.fontSize/2-this.backdropPaddingY,c+2*this.backdropPaddingX,this.fontSize+
4092*this.backdropPaddingY)),a.textAlign="center",a.textBaseline="middle",a.fillStyle=this.fontColor,a.fillText(b,this.xCenter,f))}},this);if(!this.lineArc){a.lineWidth=this.angleLineWidth;a.strokeStyle=this.angleLineColor;for(var b=this.valuesCount-1;0<=b;b--){if(0<this.angleLineWidth){var c=this.getPointPosition(b,this.calculateCenterOffset(this.max));a.beginPath();a.moveTo(this.xCenter,this.yCenter);a.lineTo(c.x,c.y);a.stroke();a.closePath()}c=this.getPointPosition(b,this.calculateCenterOffset(this.max)+
4105);a.font=u(this.pointLabelFontSize,this.pointLabelFontStyle,this.pointLabelFontFamily);a.fillStyle=this.pointLabelFontColor;var f=this.labels.length,e=this.labels.length/2,g=e/2,l=b<g||b>f-g,f=b===g||b===f-g;a.textAlign=0===b?"center":b===e?"center":b<e?"left":"right";a.textBaseline=f?"middle":l?"bottom":"top";a.fillText(this.labels[b],c.x,c.y)}}}}});b.addEvent(window,"resize",function(){var a;return function(){clearTimeout(a);a=setTimeout(function(){d(c.instances,function(a){a.options.responsive&&
411a.resize(a.render,!0)})},50)}}());I?define(function(){return c}):"object"===typeof module&&module.exports&&(module.exports=c);h.Chart=c;c.noConflict=function(){h.Chart=e;return c}}).call(this);
412(function(){var h=this.Chart,e=h.helpers;h.Type.extend({name:"Bar",defaults:{scaleBeginAtZero:!0,scaleShowGridLines:!0,scaleGridLineColor:"rgba(0,0,0,.05)",scaleGridLineWidth:1,scaleShowHorizontalLines:!0,scaleShowVerticalLines:!0,barShowStroke:!0,barStrokeWidth:2,barValueSpacing:5,barDatasetSpacing:1,legendTemplate:'\x3cul class\x3d"\x3c%\x3dname.toLowerCase()%\x3e-legend"\x3e\x3c% for (var i\x3d0; i\x3cdatasets.length; i++){%\x3e\x3cli\x3e\x3cspan style\x3d"background-color:\x3c%\x3ddatasets[i].fillColor%\x3e"\x3e\x3c/span\x3e\x3c%if(datasets[i].label){%\x3e\x3c%\x3ddatasets[i].label%\x3e\x3c%}%\x3e\x3c/li\x3e\x3c%}%\x3e\x3c/ul\x3e'},initialize:function(c){var b=
413this.options;this.ScaleClass=h.Scale.extend({offsetGridLines:!0,calculateBarX:function(d,c,e){var h=this.calculateBaseWidth();e=this.calculateX(e)-h/2;d=this.calculateBarWidth(d);return e+d*c+c*b.barDatasetSpacing+d/2},calculateBaseWidth:function(){return this.calculateX(1)-this.calculateX(0)-2*b.barValueSpacing},calculateBarWidth:function(d){return(this.calculateBaseWidth()-(d-1)*b.barDatasetSpacing)/d}});this.datasets=[];this.options.showTooltips&&e.bindEvents(this,this.options.tooltipEvents,function(b){b=
414"mouseout"!==b.type?this.getBarsAtEvent(b):[];this.eachBars(function(b){b.restore(["fillColor","strokeColor"])});e.each(b,function(b){b.fillColor=b.highlightFill;b.strokeColor=b.highlightStroke});this.showTooltip(b)});this.BarClass=h.Rectangle.extend({strokeWidth:this.options.barStrokeWidth,showStroke:this.options.barShowStroke,ctx:this.chart.ctx});e.each(c.datasets,function(b,f){var g={label:b.label||null,fillColor:b.fillColor,strokeColor:b.strokeColor,bars:[]};this.datasets.push(g);e.each(b.data,
415function(e,f){g.bars.push(new this.BarClass({value:e,label:c.labels[f],datasetLabel:b.label,strokeColor:b.strokeColor,fillColor:b.fillColor,highlightFill:b.highlightFill||b.fillColor,highlightStroke:b.highlightStroke||b.strokeColor}))},this)},this);this.buildScale(c.labels);
415this.BarClass.prototype.base=this.scale.endPoint;this.eachBars(function(b,c,g){e.extend(b,{width:this.scale.calculateBarWidth(this.datasets.length),x:this.scale.calculateBarX(this.datasets.length,g,c),y:this.scale.endPoint});b.save()},
416this);this.render()},update:function(){this.scale.update();e.each(this.activeElements,function(c){c.restore(["fillColor","strokeColor"])});this.eachBars(function(c){c.save()});this.render()},eachBars:function(c){e.each(this.datasets,function(b,d){e.each(b.bars,c,this,d)},this)},getBarsAtEvent:function(c){var b=[];c=e.getRelativePosition(c);for(var d=function(d){b.push(d.bars[f])},f,g=0;g<this.datasets.length;g++)for(f=0;f<this.datasets[g].bars.length;f++)if(this.datasets[g].bars[f].inRange(c.x,c.y))return e.each(this.datasets,
417d),b;return b},buildScale:function(c){var b=this,d=function(){var d=[];b.eachBars(function(b){d.push(b.value)});return d};c={templateString:this.options.scaleLabel,height:this.chart.height,width:this.chart.width,ctx:this.chart.ctx,textColor:this.options.scaleFontColor,fontSize:this.options.scaleFontSize,fontStyle:this.options.scaleFontStyle,fontFamily:this.options.scaleFontFamily,valuesCount:c.length,beginAtZero:this.options.scaleBeginAtZero,integersOnly:this.options.scaleIntegersOnly,calculateYRange:function(b){b=
418e.calculateScaleRange(d(),b,this.fontSize,this.beginAtZero,this.integersOnly);e.extend(this,b)},xLabels:c,font:e.fontString(this.options.scaleFontSize,this.options.scaleFontStyle,this.options.scaleFontFamily),lineWidth:this.options.scaleLineWidth,lineColor:this.options.scaleLineColor,showHorizontalLines:this.options.scaleShowHorizontalLines,showVerticalLines:this.options.scaleShowVerticalLines,gridLineWidth:this.options.scaleShowGridLines?this.options.scaleGridLineWidth:0,gridLineColor:this.options.scaleShowGridLines?
419this.options.scaleGridLineColor:"rgba(0,0,0,0)",padding:this.options.showScale?0:this.options.barShowStroke?this.options.barStrokeWidth:0,showLabels:this.options.scaleShowLabels,display:this.options.showScale};this.options.scaleOverride&&e.extend(c,{calculateYRange:e.noop,steps:this.options.scaleSteps,stepValue:this.options.scaleStepWidth,min:this.options.scaleStartValue,max:this.options.scaleStartValue+this.options.scaleSteps*this.options.scaleStepWidth});this.scale=new this.ScaleClass(c)},addData:function(c,
420b){e.each(c,function(d,c){this.datasets[c].bars.push(new this.BarClass({value:d,label:b,x:this.scale.calculateBarX(this.datasets.length,c,this.scale.valuesCount+1),y:this.scale.endPoint,width:this.scale.calculateBarWidth(this.datasets.length),base:this.scale.endPoint,strokeColor:this.datasets[c].strokeColor,fillColor:this.datasets[c].fillColor}))},this);this.scale.addXLabel(b);this.update()},removeData:function(){this.scale.removeXLabel();e.each(this.datasets,function(c){c.bars.shift()},this);this.update()},
421reflow:function(){e.extend(this.BarClass.prototype,{y:this.scale.endPoint,base:this.scale.endPoint});var c=e.extend({height:this.chart.height,width:this.chart.width});this.scale.update(c)},draw:function(c){var b=c||1;this.clear();this.scale.draw(b);e.each(this.datasets,function(d,c){e.each(d.bars,function(d,e){d.hasValue()&&(d.base=this.scale.endPoint,d.transition({x:this.scale.calculateBarX(this.datasets.length,c,e),y:this.scale.calculateY(d.value),width:this.scale.calculateBarWidth(this.datasets.length)},
422b).draw())},this)},this)}})}).call(this);
423(function(){var h=this.Chart,e=h.helpers,c={segmentShowStroke:!0,segmentStrokeColor:"#fff",segmentStrokeWidth:2,percentageInnerCutout:50,animationSteps:100,animationEasing:"easeOutBounce",animateRotate:!0,animateScale:!1,legendTemplate:'\x3cul class\x3d"\x3c%\x3dname.toLowerCase()%\x3e-legend"\x3e\x3c% for (var i\x3d0; i\x3csegments.length; i++){%\x3e\x3cli\x3e\x3cspan style\x3d"background-color:\x3c%\x3dsegments[i].fillColor%\x3e"\x3e\x3c/span\x3e\x3c%if(segments[i].label){%\x3e\x3c%\x3dsegments[i].label%\x3e\x3c%}%\x3e\x3c/li\x3e\x3c%}%\x3e\x3c/ul\x3e'};h.Type.extend({name:"Doughnut",
424defaults:c,initialize:function(b){this.segments=[];this.outerRadius=(e.min([this.chart.width,this.chart.height])-this.options.segmentStrokeWidth/2)/2;this.SegmentArc=h.Arc.extend({ctx:this.chart.ctx,x:this.chart.width/2,y:this.chart.height/2});this.options.showTooltips&&e.bindEvents(this,this.options.tooltipEvents,function(b){b="mouseout"!==b.type?this.get
424SegmentsAtEvent(b):[];e.each(this.segments,function(b){b.restore(["fillColor"])});e.each(b,function(b){b.fillColor=b.highlightColor});this.showTooltip(b)});
425this.calculateTotal(b);e.each(b,function(b,c){this.addData(b,c,!0)},this);this.render()},getSegmentsAtEvent:function(b){var d=[],c=e.getRelativePosition(b);e.each(this.segments,function(b){b.inRange(c.x,c.y)&&d.push(b)},this);return d},addData:function(b,d,c){this.segments.splice(d||this.segments.length,0,new this.SegmentArc({value:b.value,outerRadius:this.options.animateScale?0:this.outerRadius,innerRadius:this.options.animateScale?0:this.outerRadius/100*this.options.percentageInnerCutout,fillColor:b.color,
426highlightColor:b.highlight||b.color,showStroke:this.options.segmentShowStroke,strokeWidth:this.options.segmentStrokeWidth,strokeColor:this.options.segmentStrokeColor,startAngle:1.5*Math.PI,circumference:this.options.animateRotate?0:this.calculateCircumference(b.value),label:b.label}));c||(this.reflow(),this.update())},calculateCircumference:function(b){return Math.abs(b)/this.total*Math.PI*2},calculateTotal:function(b){this.total=0;e.each(b,function(b){this.total+=Math.abs(b.value)},this)},update:function(){this.calculateTotal(this.segments);
427e.each(this.activeElements,function(b){b.restore(["fillColor"])});e.each(this.segments,function(b){b.save()});this.render()},removeData:function(b){b=e.isNumber(b)?b:this.segments.length-1;this.segments.splice(b,1);this.reflow();this.update()},reflow:function(){e.extend(this.SegmentArc.prototype,{x:this.chart.width/2,y:this.chart.height/2});this.outerRadius=(e.min([this.chart.width,this.chart.height])-this.options.segmentStrokeWidth/2)/2;e.each(this.segments,function(b){b.update({outerRadius:this.outerRadius,
428innerRadius:this.outerRadius/100*this.options.percentageInnerCutout})},this)},draw:function(b){var d=b?b:1;this.clear();e.each(this.segments,function(b,c){b.transition({circumference:this.calculateCircumference(b.value),outerRadius:this.outerRadius,innerRadius:this.outerRadius/100*this.options.percentageInnerCutout},d);b.endAngle=b.startAngle+b.circumference;b.draw();0===c&&(b.startAngle=1.5*Math.PI);c<this.segments.length-1&&(this.segments[c+1].startAngle=b.endAngle)},this)}});h.types.Doughnut.extend({name:"Pie",
429defaults:e.merge(c,{percentageInnerCutout:0})});h.types.Doughnut.extend({name:"DoughnutAlt",defaults:{labelFill:"blue",labelStroke:"white"},draw:function(){h.types.Doughnut.prototype.draw.apply(this,arguments);for(var b=0;b<this.segments.length;b++){var d=this.segments[b].startAngle+(this.segments[b].endAngle-this.segments[b].startAngle)/2,c=(this.segments[b].outerRadius-this.segments[b].innerRadius)/2+this.segments[b].innerRadius,e=this.segments[b].x+Math.cos(d)*c,d=this.segments[b].y+Math.sin(d)*
430c;this.chart.ctx.beginPath();this.chart.ctx.arc(e,d,11,0,2*Math.PI,!1);this.chart.ctx.fillStyle=this.options.labelFill;this.chart.ctx.fill();this.chart.ctx.lineWidth=1;this.chart.ctx.strokeStyle=this.options.labelStroke;this.chart.ctx.stroke();this.chart.ctx.font="bold 10pt Leaguespartan webfont";this.chart.ctx.fillStyle=this.options.labelStroke;this.chart.ctx.textAlign="center";this.chart.ctx.textBaseline="middle";this.chart.ctx.fillText(b+1,e,d+1)}}})}).call(this);
431(function(){var h=this.Chart,e=h.helpers;h.Type.extend({name:"Line",defaults:{scaleShowGridLines:!0,scaleGridLineColor:"rgba(0,0,0,.05)",scaleGridLineWidth:1,scaleShowHorizontalLines:!0,scaleShowVerticalLines:!0,bezierCurve:!0,bezierCurveTension:.4,pointDot:!0,pointDotRadius:4,pointDotStrokeWidth:1,pointHitDetectionRadius:20,datasetStroke:!0,datasetStrokeWidth:2,datasetFill:!0,legendTemplate:'\x3cul class\x3d"\x3c%\x3dname.toLowerCase()%\x3e-legend"\x3e\x3c% for (var i\x3d0; i\x3cdatasets.length; i++){%\x3e\x3cli\x3e\x3cspan style\x3d"background-color:\x3c%\x3ddatasets[i].strokeColor%\x3e"\x3e\x3c/span\x3e\x3c%if(datasets[i].label){%\x3e\x3c%\x3ddatasets[i].label%\x3e\x3c%}%\x3e\x3c/li\x3e\x3c%}%\x3e\x3c/ul\x3e'},
432initialize:function(c){this.PointClass=h.Point.extend({strokeWidth:this.options.pointDotStrokeWidth,radius:this.options.pointDotRadius,display:this.options.pointDot,hitDetectionRadius:this.options.pointHitDetectionRadius,ctx:this.chart.ctx,inRange:function(b){return Math.pow(b-this.x,2)<Math.pow(this.radius+this.hitDetectionRadius,2)}});this.datasets=[];this.options.showTooltips&&e.bindEvents(this,this.options.tooltipEvents,function(b){b="mouseout"!==b.type?this.getPointsAtEvent(b):[];this.eachPoints(function(b){b.restore(["fillColor",
433"strokeColor"])});e.each(b,function(b){b.fillColor=b.highlightFill;b.strokeColor=b.highlightStroke});this.showTooltip(b)});e.each(c.datasets,function(b){var d={label:b.label||null,fillColor:b.fillColor,strokeColor:b.strokeColor,pointColor:b.pointColor,pointStrokeColor:b.pointStrokeColor,points:[]};this.datasets.push(d);e.each(b.data,function(e,g){d.points.push(new this.PointClass({value:e,label:c.labels[g],datasetLabel:b.label,strokeColor:b.pointStrokeColor,fillColor:b.pointColor,highlightFill:b.pointHighlightFill||
434b.pointColor,highlightStroke:b.pointHighlightStroke||b.pointStrokeColor}))},this);this.buildScale(c.labels);this.eachPoints(function(b,d){e.extend(b,{x:this.scale.calculateX(d),y:this.scale.endPoint});b.save()},this)},this);this.render()}
434,update:function(){this.scale.update();e.each(this.activeElements,function(c){c.restore(["fillColor","strokeColor"])});this.eachPoints(function(c){c.save()});this.render()},eachPoints:function(c){e.each(this.datasets,function(b){e.each(b.points,c,this)},this)},getPointsAtEvent:function(c){var b=
435[],d=e.getRelativePosition(c);e.each(this.datasets,function(c){e.each(c.points,function(c){c.inRange(d.x,d.y)&&b.push(c)})},this);return b},buildScale:function(c){var b=this,d=function(){var d=[];b.eachPoints(function(b){d.push(b.value)});return d};c={templateString:this.options.scaleLabel,height:this.chart.height,width:this.chart.width,ctx:this.chart.ctx,textColor:this.options.scaleFontColor,fontSize:this.options.scaleFontSize,fontStyle:this.options.scaleFontStyle,fontFamily:this.options.scaleFontFamily,
436valuesCount:c.length,beginAtZero:this.options.scaleBeginAtZero,integersOnly:this.options.scaleIntegersOnly,calculateYRange:function(b){b=e.calculateScaleRange(d(),b,this.fontSize,this.beginAtZero,this.integersOnly);e.extend(this,b)},xLabels:c,font:e.fontString(this.options.scaleFontSize,this.options.scaleFontStyle,this.options.scaleFontFamily),lineWidth:this.options.scaleLineWidth,lineColor:this.options.scaleLineColor,showHorizontalLines:this.options.scaleShowHorizontalLines,showVerticalLines:this.options.scaleShowVerticalLines,
437gridLineWidth:this.options.scaleShowGridLines?this.options.scaleGridLineWidth:0,gridLineColor:this.options.scaleShowGridLines?this.options.scaleGridLineColor:"rgba(0,0,0,0)",padding:this.options.showScale?0:this.options.pointDotRadius+this.options.pointDotStrokeWidth,showLabels:this.options.scaleShowLabels,display:this.options.showScale};this.options.scaleOverride&&e.extend(c,{calculateYRange:e.noop,steps:this.options.scaleSteps,stepValue:this.options.scaleStepWidth,min:this.options.scaleStartValue,
438max:this.options.scaleStartValue+this.options.scaleSteps*this.options.scaleStepWidth});this.scale=new h.Scale(c)},addData:function(c,b){e.each(c,function(d,c){this.datasets[c].points.push(new this.PointClass({value:d,label:b,x:this.scale.calculateX(this.scale.valuesCount+1),y:this.scale.endPoint,strokeColor:this.datasets[c].pointStrokeColor,fillColor:this.datasets[c].pointColor}))},this);this.scale.addXLabel(b);this.update()},removeData:function(){this.scale.removeXLabel();e.each(this.datasets,function(c){c.points.shift()},
439this);this.update()},reflow:function(){var c=e.extend({height:this.chart.height,width:this.chart.width});this.scale.update(c)},draw:function(c){var b=c||1;this.clear();var d=this.chart.ctx,f=function(b){return null!==b.value},g=function(b,d,c){return e.findNextWhere(d,f,c)||b},h=function(b,d,c){return e.findPreviousWhere(d,f,c)||b};this.scale.draw(b);e.each(this.datasets,function(c){var p=e.where(c.points,f);e.each(c.points,function(d,c){d.hasValue()&&d.transition({y:this.scale.calculateY(d.value),
440x:this.scale.calculateX(c)},b)},this);this.options.bezierCurve&&e.each(p,function(b,d){var c=0<d&&d<p.length-1?this.options.bezierCurveTension:0;b.controlPoints=e.splineCurve(h(b,p,d),b,g(b,p,d),c);b.controlPoints.outer.y>this.scale.endPoint?b.controlPoints.outer.y=this.scale.endPoint:b.controlPoints.outer.y<this.scale.startPoint&&(b.controlPoints.outer.y=this.scale.startPoint);b.controlPoints.inner.y>this.scale.endPoint?b.controlPoints.inner.y=this.scale.endPoint:b.controlPoints.inner.y<this.scale.startPoint&&
441(b.controlPoints.inner.y=this.scale.startPoint)},this);d.lineWidth=this.options.datasetStrokeWidth;d.strokeStyle=c.strokeColor;d.beginPath();e.each(p,function(b,c){if(0===c)d.moveTo(b.x,b.y);else if(this.options.bezierCurve){var e=h(b,p,c);d.bezierCurveTo(e.controlPoints.outer.x,e.controlPoints.outer.y,b.controlPoints.inner.x,b.controlPoints.inner.y,b.x,b.y)}else d.lineTo(b.x,b.y)},this);d.stroke();this.options.datasetFill&&0<p.length&&(d.lineTo(p[p.length-1].x,this.scale.endPoint),d.lineTo(p[0].x,
442this.scale.endPoint),d.fillStyle=c.fillColor,d.closePath(),d.fill());e.each(p,function(b){b.draw()})},this)}})}).call(this);
443(function(){var h=this.Chart,e=h.helpers;h.Type.extend({name:"PolarArea",defaults:{scaleShowLabelBackdrop:!0,scaleBackdropColor:"rgba(255,255,255,0.75)",scaleBeginAtZero:!0,scaleBackdropPaddingY:2,scaleBackdropPaddingX:2,scaleShowLine:!0,segmentShowStroke:!0,segmentStrokeColor:"#fff",segmentStrokeWidth:2,animationSteps:100,animationEasing:"easeOutBounce",animateRotate:!0,animateScale:!1,legendTemplate:'\x3cul class\x3d"\x3c%\x3dname.toLowerCase()%\x3e-legend"\x3e\x3c% for (var i\x3d0; i\x3csegments.length; i++){%\x3e\x3cli\x3e\x3cspan style\x3d"background-color:\x3c%\x3dsegments[i].fillColor%\x3e"\x3e\x3c/span\x3e\x3c%if(segments[i].label){%\x3e\x3c%\x3dsegments[i].label%\x3e\x3c%}%\x3e\x3c/li\x3e\x3c%}%\x3e\x3c/ul\x3e'},
444initialize:function(c){this.segments=[];this.SegmentArc=h.Arc.extend({showStroke:this.options.segmentShowStroke,strokeWidth:this.options.segmentStrokeWidth,strokeColor:this.options.segmentStrokeColor,ctx:this.chart.ctx,innerRadius:0,x:this.chart.width/2,y:this.chart.height/2});this.scale=new h.RadialScale({display:this.options.showScale,fontStyle:this.options.scaleFontStyle,fontSize:this.options.scaleFontSize,fontFamily:this.options.scaleFontFamily,fontColor:this.options.scaleFontColor,showLabels:this.options.scaleShowLabels,
445showLabelBackdrop:this.options.scaleShowLabelBackdrop,backdropColor:this.options.scaleBackdropColor,backdropPaddingY:this.options.scaleBackdropPaddingY,backdropPaddingX:this.options.scaleBackdropPaddingX,lineWidth:this.options.scaleShowLine?this.options.scaleLineWidth:0,lineColor:this.options.scaleLineColor,lineArc:!0,width:this.chart.width,height:this.chart.height,xCenter:this.chart.width/2,yCenter:this.chart.height/2,ctx:this.chart.ctx,templateString:this.options.scaleLabel,valuesCount:c.length});
446this.updateScaleRange(c);
446this.scale.update();e.each(c,function(b,d){this.addData(b,d,!0)},this);this.options.showTooltips&&e.bindEvents(this,this.options.tooltipEvents,function(b){b="mouseout"!==b.type?this.getSegmentsAtEvent(b):[];e.each(this.segments,function(b){b.restore(["fillColor"])});e.each(b,function(b){b.fillColor=b.highlightColor});this.showTooltip(b)});this.render()},getSegmentsAtEvent:function(c){var b=[],d=e.getRelativePosition(c);e.each(this.segments,function(c){c.inRange(d.x,d.y)&&
447b.push(c)},this);return b},addData:function(c,b,d){this.segments.splice(b||this.segments.length,0,new this.SegmentArc({fillColor:c.color,highlightColor:c.highlight||c.color,label:c.label,value:c.value,outerRadius:this.options.animateScale?0:this.scale.calculateCenterOffset(c.value),circumference:this.options.animateRotate?0:this.scale.getCircumference(),startAngle:1.5*Math.PI}));d||(this.reflow(),this.update())},removeData:function(c){c=e.isNumber(c)?c:this.segments.length-1;this.segments.splice(c,
4481);this.reflow();this.update()},calculateTotal:function(c){this.total=0;e.each(c,function(b){this.total+=b.value},this);this.scale.valuesCount=this.segments.length},updateScaleRange:function(c){var b=[];e.each(c,function(d){b.push(d.value)});c=this.options.scaleOverride?{steps:this.options.scaleSteps,stepValue:this.options.scaleStepWidth,min:this.options.scaleStartValue,max:this.options.scaleStartValue+this.options.scaleSteps*this.options.scaleStepWidth}:e.calculateScaleRange(b,e.min([this.chart.width,
449this.chart.height])/2,this.options.scaleFontSize,this.options.scaleBeginAtZero,this.options.scaleIntegersOnly);e.extend(this.scale,c,{size:e.min([this.chart.width,this.chart.height]),xCenter:this.chart.width/2,yCenter:this.chart.height/2})},update:function(){this.calculateTotal(this.segments);e.each(this.segments,function(c){c.save()});this.reflow();this.render()},reflow:function(){e.extend(this.SegmentArc.prototype,{x:this.chart.width/2,y:this.chart.height/2});this.updateScaleRange(this.segments);
450this.scale.update();e.extend(this.scale,{xCenter:this.chart.width/2,yCenter:this.chart.height/2});e.each(this.segments,function(c){c.update({outerRadius:this.scale.calculateCenterOffset(c.value)})},this)},draw:function(c){var b=c||1;this.clear();e.each(this.segments,function(d,c){d.transition({circumference:this.scale.getCircumference(),outerRadius:this.scale.calculateCenterOffset(d.value)},b);d.endAngle=d.startAngle+d.circumference;
4500===c&&(d.startAngle=1.5*Math.PI);c<this.segments.length-1&&(this.segments[c+
4511].startAngle=d.endAngle);d.draw()},this);this.scale.draw()}})}).call(this);
452(function(){var h=this.Chart,e=h.helpers;h.Type.extend({name:"Radar",defaults:{scaleShowLine:!0,angleShowLineOut:!0,scaleShowLabels:!1,scaleBeginAtZero:!0,angleLineColor:"rgba(0,0,0,.1)",angleLineWidth:1,pointLabelFontFamily:"'Arial'",pointLabelFontStyle:"normal",pointLabelFontSize:10,pointLabelFontColor:"#666",pointDot:!0,pointDotRadius:3,pointDotStrokeWidth:1,pointHitDetectionRadius:20,datasetStroke:!0,datasetStrokeWidth:2,datasetFill:!0,legendTemplate:'\x3cul class\x3d"\x3c%\x3dname.toLowerCase()%\x3e-legend"\x3e\x3c% for (var i\x3d0; i\x3cdatasets.length; i++){%\x3e\x3cli\x3e\x3cspan style\x3d"background-color:\x3c%\x3ddatasets[i].strokeColor%\x3e"\x3e\x3c/span\x3e\x3c%if(datasets[i].label){%\x3e\x3c%\x3ddatasets[i].label%\x3e\x3c%}%\x3e\x3c/li\x3e\x3c%}%\x3e\x3c/ul\x3e'},
453initialize:function(c){this.PointClass=h.Point.extend({strokeWidth:this.options.pointDotStrokeWidth,radius:this.options.pointDotRadius,display:this.options.pointDot,hitDetectionRadius:this.options.pointHitDetectionRadius,ctx:this.chart.ctx});this.datasets=[];this.buildScale(c);this.options.showTooltips&&e.bindEvents(this,this.options.tooltipEvents,function(b){b="mouseout"!==b.type?this.getPointsAtEvent(b):[];this.eachPoints(function(b){b.restore(["fillColor","strokeColor"])});e.each(b,function(b){b.fillColor=
454b.highlightFill;b.strokeColor=b.highlightStroke});this.showTooltip(b)});e.each(c.datasets,function(b){var d={label:b.label||null,fillColor:b.fillColor,strokeColor:b.strokeColor,pointColor:b.pointColor,pointStrokeColor:b.pointStrokeColor,points:[]};this.datasets.push(d);e.each(b.data,function(e,g){var h;this.scale.animation||(h=this.scale.getPointPosition(g,this.scale.calculateCenterOffset(e)));d.points.push(new this.PointClass({value:e,label:c.labels[g],datasetLabel:b.label,x:this.options.animation?
455this.scale.xCenter:h.x,y:this.options.animation?this.scale.yCenter:h.y,strokeColor:b.pointStrokeColor,fillColor:b.pointColor,highlightFill:b.pointHighlightFill||b.pointColor,highlightStroke:b.pointHighlightStroke||b.pointStrokeColor}))},this)},this);this.render()},eachPoints:function(c){e.each(this.datasets,function(b){e.each(b.points,c,this)},this)},getPointsAtEvent:function(c){c=e.getRelativePosition(c);c=e.getAngleFromPoint({x:this.scale.xCenter,y:this.scale.yCenter},c);var b=Math.round((c.angle-
4561.5*Math.PI)/(2*Math.PI/this.scale.valuesCount)),d=[];if(b>=this.scale.valuesCount||0>b)b=0;c.distance<=this.scale.drawingArea&&e.each(this.datasets,function(c){d.push(c.points[b])});return d},buildScale:function(c){this.scale=new h.RadialScale({display:this.options.showScale,fontStyle:this.options.scaleFontStyle,fontSize:this.options.scaleFontSize,fontFamily:this.options.scaleFontFamily,fontColor:this.options.scaleFontColor,showLabels:this.options.scaleShowLabels,showLabelBackdrop:this.options.scaleShowLabelBackdrop,
457backdropColor:this.options.scaleBackdropColor,backdropPaddingY:this.options.scaleBackdropPaddingY,backdropPaddingX:this.options.scaleBackdropPaddingX,lineWidth:this.options.scaleShowLine?this.options.scaleLineWidth:0,lineColor:this.options.scaleLineColor,angleLineColor:this.options.angleLineColor,angleLineWidth:this.options.angleShowLineOut?this.options.angleLineWidth:0,pointLabelFontColor:this.options.pointLabelFontColor,pointLabelFontSize:this.options.pointLabelFontSize,pointLabelFontFamily:this.options.pointLabelFontFamily,
458pointLabelFontStyle:this.options.pointLabelFontStyle,height:this.chart.height,width:this.chart.width,xCenter:this.chart.width/2,yCenter:this.chart.height/2,ctx:this.chart.ctx,templateString:this.options.scaleLabel,labels:c.labels,valuesCount:c.datasets[0].data.length});this.scale.setScaleSize();this.updateScaleRange(c.datasets);this.scale.buildYLabels()},updateScaleRange:function(c){var b=function(){var b=[];e.each(c,function(c){c.data?b=b.concat(c.data):e.each(c.points,function(c){b.push(c.value)})});
459return b}(),b=this.options.scaleOverride?{steps:this.options.scaleSteps,stepValue:this.options.scaleStepWidth,min:this.options.scaleStartValue,max:this.options.scaleStartValue+this.options.scaleSteps*this.options.scaleStepWidth}:e.calculateScaleRange(b,e.min([this.chart.width,this.chart.height])/2,this.options.scaleFontSize,this.options.scaleBeginAtZero,this.options.scaleIntegersOnly);e.extend(this.scale,b)},addData:function(c,b){this.scale.valuesCount++;e.each(c,function(c,e){var g=this.scale.getPointPosition(this.scale.valuesCount,
460this.scale.calculateCenterOffset(c));this.datasets[e].points.push(new this.PointClass({value:c,label:b,x:g.x,y:g.y,strokeColor:this.datasets[e].pointStrokeColor,fillColor:this.datasets[e].pointColor}))},this);this.scale.labels.push(b);this.reflow();this.update()},removeData:function(){this.scale.valuesCount--;this.scale.labels.shift();e.each(this.datasets,function(c){c.points.shift()},this);this.reflow();this.update()},update:function(){this.eachPoints(function(c){c.save()});this.reflow();this.render()},
461reflow:function(){e.extend(this.scale,{width:this.chart.width,height:this.chart.height,size:e.min([this.chart.width,this.chart.height]),xCenter:this.chart.width/2,yCenter:this.chart.height/2});this.updateScaleRange(this.datasets);this.scale.setScaleSize();this.scale.buildYLabels()},draw:function(c){var b=c||1,d=this.chart.ctx;this.clear();this.scale.draw();e.each(this.datasets,function(c){e.each(c.points,function(c,d){c.hasValue()&&c.transition(this.scale.getPointPosition(d,this.scale.calculateCenterOffset(c.value)),
462b)},this);d.lineWidth=this.options.datasetStrokeWidth;d.strokeStyle=c.strokeColor;d.beginPath();e.each(c.points,function(b,c){0===c?d.moveTo(b.x,b.y):d.lineTo(b.x,b.y)},this);d.closePath();d.stroke();d.fillStyle=c.fillColor;d.fill();e.each(c.points,function(b){b.hasValue()&&b.draw()})},this)}})}).call(this);

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.