/*! DSFR v1.11.2 | SPDX-License-Identifier: MIT | License-Filename: LICENSE.md | restricted use (see terms and conditions) */ !function(){"use strict";var t=function(){this.modules={}},e={isActive:{configurable:!0},isLegacy:{configurable:!0}};t.prototype.create=function(t){var e=new t;this.modules[e.type]=e},t.prototype.getModule=function(t){return this.modules[t]},t.prototype.add=function(t,e){this.modules[t].add(e)},t.prototype.remove=function(t,e){this.modules[t].remove(e)},e.isActive.get=function(){return this._isActive},e.isActive.set=function(t){var e=this;if(t!==this._isActive){this._isActive=t;var r=Object.keys(this.modules).map((function(t){return e.modules[t]}));if(t)for(var n=0,i=r;n0){for(var i="",o=0;o-1)&&(this._collection.push(t),this.onAdd&&this.onAdd(),this.onPopulate&&1===this._collection.length&&this.onPopulate(),!0)},v.prototype.remove=function(t){var e=this._collection.indexOf(t);if(-1===e)return!1;this._collection.splice(e,1),this.onRemove&&this.onRemove(),this.onEmpty&&0===this._collection.length&&this.onEmpty()},v.prototype.execute=function(){for(var t=[],e=arguments.length;e--;)t[e]=arguments[e];for(var r=0,n=this._collection;r-1},O.prototype.introduce=function(){this.isIntroduced||(this.isIntroduced=!0,r.getModule("stage").parse(document.documentElement,this))},O.prototype.parse=function(t,e){var r=[];return t.matches&&t.matches(this.selector)&&r.push(t),!e&&t.querySelectorAll&&t.querySelector(this.selector)&&r.push.apply(r,S(t,this.selector)),r},O.prototype.create=function(t){if(t.node.matches(this.selector)){var e=new this.InstanceClass;return this.instances.add(e),e}},O.prototype.remove=function(t){this.instances.remove(t)},O.prototype.dispose=function(){for(var t=this.instances.collection,e=t.length-1;e>-1;e--)t[e]._dispose();this.creator=null},j.instanceClassName.get=function(){return this._instanceClassName},j.instanceClassNames.get=function(){return this._instanceClassNames},j.property.get=function(){return this._property},j.attribute.get=function(){return this._attribute},Object.defineProperties(O.prototype,j);var T=function(t){function e(){t.call(this,"register")}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.register=function(t,e,n){var i=new O(t,e,n);return this.add(i),r.isActive&&i.introduce(),i},e.prototype.activate=function(){for(var t=0,e=this.collection;t");return this.node.outerHTML.substring(0,t+1)},A.prototype.project=function(t){-1===this._projects.indexOf(t)&&this._projects.push(t)},A.prototype.populate=function(){var t=this._projects.slice();this._projects.length=0;for(var e=0,r=t;e-1&&this.instances.splice(e,1),this._proxy&&delete this._proxy[t.registration.property]},N.parent.get=function(){return this._parent},N.ascendants.get=function(){return[this.parent].concat(this.parent.ascendants)},N.children.get=function(){return this._children},N.descendants.get=function(){var t=[].concat(this._children);return this._children.forEach((function(e){return t.push.apply(t,e.descendants)})),t},A.prototype.addChild=function(t,e){return this._children.indexOf(t)>-1?null:(t._parent=this,!isNaN(e)&&e>-1&&e=0;t--){var e=this.instances[t];e&&e._dispose()}this.instances.length=0,r.remove("stage",this),this.parent.removeChild(this),this._children.length=0,h.debug("remove element ["+this.id+"] "+this.html)},A.prototype.prepare=function(t){-1===this.attributeNames.indexOf(t)&&this.attributeNames.push(t)},A.prototype.examine=function(){var t=this.attributeNames.slice();this.attributeNames.length=0;for(var e=this.instances.length-1;e>-1;e--)this.instances[e].examine(t)},Object.defineProperties(A.prototype,N);var C={CLICK:w.emission("root","click"),KEYDOWN:w.emission("root","keydown"),KEYUP:w.emission("root","keyup")},I={TAB:{id:"tab",value:9},ESCAPE:{id:"escape",value:27},END:{id:"end",value:35},HOME:{id:"home",value:36},LEFT:{id:"left",value:37},UP:{id:"up",value:38},RIGHT:{id:"right",value:39},DOWN:{id:"down",value:40}},L=function(t){return Object.values(I).filter((function(e){return e.value===t}))[0]},M=function(t){function e(){t.call(this,document.documentElement,"root"),this.node.setAttribute(w.attr("js"),!0),this.listen()}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.listen=function(){document.documentElement.addEventListener("click",this.click.bind(this),{capture:!0}),document.documentElement.addEventListener("keydown",this.keydown.bind(this),{capture:!0}),document.documentElement.addEventListener("keyup",this.keyup.bind(this),{capture:!0})},e.prototype.click=function(t){this.emit(C.CLICK,t.target)},e.prototype.keydown=function(t){this.emit(C.KEYDOWN,L(t.keyCode))},e.prototype.keyup=function(t){this.emit(C.KEYUP,L(t.keyCode))},e}(A),D=function(t){function e(){t.call(this,"stage"),this.root=new M,t.prototype.add.call(this,this.root),this.observer=new MutationObserver(this.mutate.bind(this)),this.modifications=[],this.willModify=!1,this.modifying=this.modify.bind(this)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.hasElement=function(t){for(var e=0,r=this.collection;e-1;n--){var i=e.children[n],o=t.node.compareDocumentPosition(i.node);if(o&Node.DOCUMENT_POSITION_CONTAINS)return void this.put(t,i);if(o&Node.DOCUMENT_POSITION_CONTAINED_BY)e.removeChild(i),t.addChild(i,0);else if(o&Node.DOCUMENT_POSITION_PRECEDING){r=n+1;break}}e.addChild(t,r)},e.prototype.activate=function(){this.observer.observe(document.documentElement,{childList:!0,subtree:!0,attributes:!0})},e.prototype.deactivate=function(){this.observer.disconnect()},e.prototype.mutate=function(t){var e=this,r=[];t.forEach((function(t){switch(t.type){case"childList":t.removedNodes.forEach((function(t){return e.dispose(t)})),t.addedNodes.forEach((function(t){return e.parse(t)}));break;case"attributes":if(e.hasElement(t.target)){var n=e.getElement(t.target);n.prepare(t.attributeName),-1===r.indexOf(n)&&r.push(n);for(var i=0,o=n.descendants;i0&&document.documentElement.style.setProperty("--scrollbar-width",t+"px")}},e.prototype.unlock=function(){this._isLocked&&(this._isLocked=!1,document.documentElement.removeAttribute(w.attr("scrolling")),document.body.style.top="",window.scrollTo(0,this._scrollY),"smooth"===this.behavior&&document.documentElement.style.removeProperty("scroll-behavior"),document.documentElement.style.removeProperty("--scrollbar-width"))},e.prototype.move=function(t){this._isLocked?(this._scrollY+=t,document.body.style.top=-this._scrollY+"px"):window.scrollTo(0,window.scrollY+t)},Object.defineProperties(e.prototype,r),e}(_),H=function(t){function e(){t.call(this,"load"),this.loading=this.load.bind(this)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.activate=function(){window.addEventListener("load",this.loading)},e.prototype.load=function(){this.forEach((function(t){return t.load()}))},e}(_),G=["Marianne","Spectral"],$=function(t){function e(){t.call(this,"font-swap"),this.swapping=this.swap.bind(this)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.activate=function(){document.fonts&&document.fonts.addEventListener("loadingdone",this.swapping)},e.prototype.swap=function(){var t=G.filter((function(t){return document.fonts.check("16px "+t)}));this.forEach((function(e){return e.swapFont(t)}))},e}(_),F=function(t){function e(){t.call(this,"mouse-move"),this.requireMove=!1,this._isMoving=!1,this.moving=this.move.bind(this),this.requesting=this.request.bind(this),this.onPopulate=this.listen.bind(this),this.onEmpty=this.unlisten.bind(this)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.listen=function(){this._isMoving||(this._isMoving=!0,this.requireMove=!1,document.documentElement.addEventListener("mousemove",this.requesting))},e.prototype.unlisten=function(){this._isMoving&&(this._isMoving=!1,this.requireMove=!1,document.documentElement.removeEventListener("mousemove",this.requesting))},e.prototype.request=function(t){this._isMoving&&(this.point={x:t.clientX,y:t.clientY},this.requireMove||(this.requireMove=!0,window.requestAnimationFrame(this.moving)))},e.prototype.move=function(){var t=this;this.requireMove&&(this.forEach((function(e){return e.mouseMove(t.point)})),this.requireMove=!1)},e}(_),U=function(t){function e(){t.call(this,"hash"),this.handling=this.handle.bind(this),this.getLocationHash()}t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e;var r={hash:{configurable:!0}};return e.prototype.activate=function(){window.addEventListener("hashchange",this.handling)},e.prototype.deactivate=function(){window.removeEventListener("hashchange",this.handling)},e.prototype._sanitize=function(t){return"#"===t.charAt(0)?t.substring(1):t},r.hash.set=function(t){var e=this._sanitize(t);this._hash!==e&&(window.location.hash=e)},r.hash.get=function(){return this._hash},e.prototype.getLocationHash=function(){var t=window.location.hash;this._hash=this._sanitize(t)},e.prototype.handle=function(t){var e=this;this.getLocationHash(),this.forEach((function(r){return r.handleHash(e._hash,t)}))},Object.defineProperties(e.prototype,r),e}(_),z=function(){r.create(T),r.create(D),r.create(x),r.create(R),r.create(k),r.create(H),r.create($),r.create(F),r.create(U);var t=r.getModule("register");this.register=t.register.bind(t)},B={isActive:{configurable:!0}};B.isActive.get=function(){return r.isActive},z.prototype.start=function(){h.debug("START"),r.isActive=!0},z.prototype.stop=function(){h.debug("STOP"),r.isActive=!1},Object.defineProperties(z.prototype,B);var W=new z,q=function(){};q.prototype.getColor=function(t,e,r,n){void 0===n&&(n={});var i="--"+t+"-"+e+"-"+r+K(n);return getComputedStyle(document.documentElement).getPropertyValue(i).trim()||null};var K=function(t){switch(!0){case t.hover:return"-hover";case t.active:return"-active";default:return""}},V=new q,Y=function(t){return"."===t.charAt(0)?t.substr(1):t},X=function(t){switch(!0){case!t.className:return[];case"string"==typeof t.className:return t.className.split(" ");case"string"==typeof t.className.baseVal:return t.className.baseVal.split(" ")}return[]},Q=function(t,e,r){e=Y(e);var n=X(t),i=n.indexOf(e);!0===r?i>-1&&n.splice(i,1):-1===i&&n.push(e),t.className=n.join(" ")},J=function(t,e){return Q(t,e)},Z=function(t,e){return Q(t,e,!0)},tt=function(t,e){return X(t).indexOf(Y(e))>-1},et=['[tabindex]:not([tabindex="-1"])',"a[href]","button:not([disabled])","input:not([disabled])","select:not([disabled])","textarea:not([disabled])","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable="false"])',"details>summary:first-of-type","details","iframe"].join(),rt=function(t){return t.querySelectorAll(et)},nt=0,it=function(t){if(!document.getElementById(t))return t;for(var e=!0,r=t;e;)t=r+"-"+ ++nt,e=document.getElementById(t);return t},ot={addClass:J,hasClass:tt,removeClass:Z,queryParentSelector:E,querySelectorAllArray:S,queryActions:rt,uniqueId:it},st=function(t,e){void 0===t&&(t=0),void 0===e&&(e=0),this._width=t,this._height=e,this._content=""},at={width:{configurable:!0},height:{configurable:!0},content:{configurable:!0}};at.width.get=function(){return this._width},at.width.set=function(t){this._width=t},at.height.get=function(){return this._height},at.height.set=function(t){this._height=t},at.content.get=function(){return this._content},at.content.set=function(t){this._content=t},st.prototype.getDataURI=function(t){void 0===t&&(t=!1);var e=""+this._content+"";return e=e.replace(/#/gi,"%23"),t&&(e=(e=(e=(e=(e=e.replace(//gi,"%3E")).replace(/"/gi,"'")).replace(/{/gi,"%7B")).replace(/}/gi,"%7D")),"data:image/svg+xml;charset=utf8,"+e},Object.defineProperties(st.prototype,at);var ct={DataURISVG:st},lt={supportLocalStorage:function(){try{return"localStorage"in window&&null!==window.localStorage}catch(t){return!1}},supportAspectRatio:function(){return!!window.CSS&&CSS.supports("aspect-ratio: 16 / 9")}},ut={TransitionSelector:{NONE:w.selector("transition-none")}},pt=function(t){for(var e=[],r=arguments.length-1;r-- >0;)e[r]=arguments[r+1];return e.forEach((function(e){var r=Object.keys(e).reduce((function(t,r){return t[r]=Object.getOwnPropertyDescriptor(e,r),t}),{});Object.getOwnPropertySymbols(e).forEach((function(t){var n=Object.getOwnPropertyDescriptor(e,t);n.enumerable&&(r[t]=n)})),Object.defineProperties(t,r)})),t},ht={completeAssign:pt},ft={},dt={};Object.defineProperty(dt,"isLegacy",{get:function(){return r.isLegacy}}),dt.setLegacy=function(){r.isLegacy=!0},ft.legacy=dt,ft.dom=ot,ft.image=ct,ft.support=lt,ft.motion=ut,ft.property=ht,ft.ns=w,ft.register=W.register,ft.state=r,ft.query=function(t){if(t&&t.search){var e=new URLSearchParams(window.location.search).entries();return Object.fromEntries(e)}return null}(window.location),Object.defineProperty(ft,"preventManipulation",{get:function(){return g.preventManipulation}}),Object.defineProperty(ft,"stage",{get:function(){return r.getModule("stage")}});var yt=function(t){return r.getModule("stage").getProxy(t)};yt.version=s,yt.prefix=n,yt.organisation=o,yt.Modes=d,Object.defineProperty(yt,"mode",{set:function(t){g.mode=t},get:function(){return g.mode}}),yt.internals=ft,yt.version=s,yt.start=W.start,yt.stop=W.stop,yt.inspector=h,yt.colors=V;var bt=window[i];yt.internals.configuration=bt,g.configure(bt,yt.start,yt.internals.query),window[i]=yt;var gt=function(){this.emissions={}};gt.prototype.add=function(t,e){if("function"!=typeof e)throw new Error("closure must be a function");this.emissions[t]||(this.emissions[t]=[]),this.emissions[t].push(e)},gt.prototype.remove=function(t,e){if(this.emissions[t])if(e){var r=this.emissions[t].indexOf(e);r>-1&&this.emissions[t].splice(r)}else delete this.emissions[t]},gt.prototype.emit=function(t,e){if(!this.emissions[t])return[];for(var r=[],n=0,i=this.emissions[t];nwindow.innerHeight&&e.move(t.bottom-window.innerHeight+50)},_t.prototype.matches=function(t){return this.node.matches(t)},_t.prototype.querySelector=function(t){return this.node.querySelector(t)},_t.prototype.querySelectorAll=function(t){return S(this.node,t)},_t.prototype.queryParentSelector=function(t){return E(this.node,t)},_t.prototype.getRect=function(){var t=this.node.getBoundingClientRect();return t.center=t.left+.5*t.width,t.middle=t.top+.5*t.height,t},wt.isLegacy.get=function(){return r.isLegacy},Object.defineProperties(_t.prototype,wt),Object.defineProperties(_t,St);var Et=function(t,e,r,n,i){this.type=t,this.eventType="key"+t,this.keyCode=e,this.closure=r,this.preventDefault=!0===n,this.stopPropagation=!0===i};Et.prototype.handle=function(t){t.type===this.eventType&&t.keyCode===this.keyCode.value&&(this.closure(t),this.preventDefault&&t.preventDefault(),this.stopPropagation&&t.stopPropagation())};var Ot=function(t,e,r,n){this._node=t,this._type=e,this._closure=r,this._options=n},jt={closure:{configurable:!0}};jt.closure.get=function(){return this._closure},Ot.prototype.listen=function(){this._node.addEventListener(this._type,this._closure,this._options)},Ot.prototype.matchOptions=function(t){var e=this;switch(void 0===t&&(t=null),!0){case null===t:case"boolean"==typeof this._options&&"boolean"==typeof t&&this._options===t:return!0;case Object.keys(this._options).length!==Object.keys(t).length:return!1;case Object.keys(t).every((function(r){return e._options[r]===t[r]})):return!0}return!1},Ot.prototype.unlisten=function(){this._node.removeEventListener(this._type,this._closure,this._options)},Object.defineProperties(Ot.prototype,jt);var Tt=function(t,e){this.hash=t,this.add=e};Tt.prototype.handle=function(t,e){this.hash===t&&this.add(e)};var Pt={DISCLOSE:w.event("disclose"),CONCEAL:w.event("conceal")},At={RESET:w.emission("disclosure","reset"),ADDED:w.emission("disclosure","added"),RETRIEVE:w.emission("disclosure","retrieve"),REMOVED:w.emission("disclosure","removed"),GROUP:w.emission("disclosure","group"),UNGROUP:w.emission("disclosure","ungroup"),SPOTLIGHT:w.emission("disclosure","spotlight")},Nt=function(t){function e(e,r,n,i){t.call(this),this.type=e,this._selector=r,this.DisclosureButtonInstanceClass=n,this.disclosuresGroupInstanceClassName=i,this.modifier=this._selector+"--"+this.type.id,this._isPristine=!0,this._isRetrievingPrimaries=!1,this._hasRetrieved=!1,this._primaryButtons=[]}t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e;var r={isEnabled:{configurable:!0},isPristine:{configurable:!0},proxy:{configurable:!0},buttons:{configurable:!0},group:{configurable:!0},isDisclosed:{configurable:!0},isInitiallyDisclosed:{configurable:!0},buttonHasFocus:{configurable:!0},hasFocus:{configurable:!0},primaryButtons:{configurable:!0}},n={instanceClassName:{configurable:!0}};return n.instanceClassName.get=function(){return"Disclosure"},e.prototype.init=function(){this.addDescent(At.RESET,this.reset.bind(this)),this.addDescent(At.GROUP,this.update.bind(this)),this.addDescent(At.UNGROUP,this.update.bind(this)),this.addAscent(At.SPOTLIGHT,this.disclose.bind(this)),this.register('[aria-controls="'+this.id+'"]',this.DisclosureButtonInstanceClass),this.ascend(At.ADDED),this.listenHash(this.id,this._spotlight.bind(this)),this.update()},r.isEnabled.get=function(){return t.prototype.isEnabled},r.isEnabled.set=function(e){this.isEnabled!==e&&(t.prototype.isEnabled=e,e?this.ascend(At.ADDED):this.ascend(At.REMOVED))},r.isPristine.get=function(){return this._isPristine},r.proxy.get=function(){var e=this,r=Object.assign.call(this,t.prototype.proxy,{disclose:e.disclose.bind(e),focus:e.focus.bind(e)});return this.type.canConceal&&(r.conceal=e.conceal.bind(e)),pt(r,{get buttons(){return e.buttons.map((function(t){return t.proxy}))},get group(){var t=e.group;return t?t.proxy:null},get isDisclosed(){return e.isDisclosed}})},r.buttons.get=function(){return this.getRegisteredInstances(this.DisclosureButtonInstanceClass.instanceClassName)},e.prototype.update=function(){this.getGroup(),this.retrievePrimaries()},e.prototype.getGroup=function(){if(this.disclosuresGroupInstanceClassName){var t=this.element.getAscendantInstance(this.disclosuresGroupInstanceClassName,this.constructor.instanceClassName);t&&t.validate(this)?this._group=t:this._group=null}else this._group=null},r.group.get=function(){return this._group},e.prototype.disclose=function(t){return!(!0===this.isDisclosed||!this.isEnabled)&&(this._isPristine=!1,this.isDisclosed=!0,!t&&this.group&&(this.group.current=this),!0)},e.prototype.conceal=function(t,e){return void 0===e&&(e=!0),!1!==this.isDisclosed&&(!(!this.type.canConceal&&this.group&&this.group.current===this)&&(this.isDisclosed=!1,!t&&this.group&&this.group.current===this&&(this.group.current=null),e||this.focus(),this._isPristine||this.descend(At.RESET),!0))},r.isDisclosed.get=function(){return this._isDisclosed},r.isDisclosed.set=function(t){if(this._isDisclosed!==t&&(this.isEnabled||!0!==t)){this.dispatch(t?Pt.DISCLOSE:Pt.CONCEAL,this.type),this._isDisclosed=t,t?this.addClass(this.modifier):this.removeClass(this.modifier);for(var e=0;e0)},e.prototype.focus=function(){this._primaryButtons.length>0&&this._primaryButtons[0].focus()},r.primaryButtons.get=function(){return this._primaryButtons},e.prototype.retrievePrimaries=function(){this._isRetrievingPrimaries||(this._isRetrievingPrimaries=!0,this.request(this._retrievePrimaries.bind(this)))},e.prototype._retrievePrimaries=function(){if(this._isRetrievingPrimaries=!1,this._primaryButtons=this._electPrimaries(this.buttons),!this._hasRetrieved&&0!==this._primaryButtons.length)if(this.retrieved(),this._hasRetrieved=!0,this.applyAbility(!0),this.group)this.group.retrieve();else if(this._isPristine&&this.isEnabled&&!this.group)switch(!0){case this.hash===this.id:this._spotlight();break;case this.isInitiallyDisclosed:this.disclose()}},e.prototype.retrieved=function(){},e.prototype._spotlight=function(){var t=this;this.disclose(),this.request((function(){t.ascend(At.SPOTLIGHT)}))},e.prototype._electPrimaries=function(t){var e=this;return t.filter((function(t){return t.canDisclose&&!e.node.contains(t.node)}))},e.prototype.applyAbility=function(t){void 0===t&&(t=!1);var e=!this._primaryButtons.every((function(t){return t.isDisabled}));this.isEnabled!==e&&(this.isEnabled=e,t||(!this.isEnabled&&this.isDisclosed&&(this.group?this.ascend(At.REMOVED):this.type.canConceal&&this.conceal()),this.isEnabled&&(this.group&&this.ascend(At.ADDED),this.hash===this.id&&this._spotlight())))},e.prototype.dispose=function(){this._group=null,this._primaryButtons=null,t.prototype.dispose.call(this),this.ascend(At.REMOVED)},Object.defineProperties(e.prototype,r),Object.defineProperties(e,n),e}(_t),Ct=function(t){function e(e){t.call(this),this.type=e,this.attributeName=e.ariaState?"aria-"+e.id:w.attr(e.id),this._canDisclose=!1}t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e;var r={isPrimary:{configurable:!0},canDisclose:{configurable:!0},isDisabled:{configurable:!0},proxy:{configurable:!0},isDisclosed:{configurable:!0},isInitiallyDisclosed:{configurable:!0},dx:{configurable:!0},dy:{configurable:!0}},n={instanceClassName:{configurable:!0}};return n.instanceClassName.get=function(){return"DisclosureButton"},r.isPrimary.get=function(){return this.registration.creator.primaryButtons.includes(this)},r.canDisclose.get=function(){return this._canDisclose},r.isDisabled.get=function(){return this.type.canDisable&&this.hasAttribute("disabled")},e.prototype.init=function(){this._canDisclose=this.hasAttribute(this.attributeName),this._isInitiallyDisclosed=this.isDisclosed,this._isContained=this.registration.creator.node.contains(this.node),this.controlsId=this.getAttribute("aria-controls"),this.registration.creator.retrievePrimaries(),this.listenClick()},r.proxy.get=function(){return Object.assign.call(this,t.prototype.proxy,{focus:this.focus.bind(this)})},e.prototype.handleClick=function(t){this.registration.creator&&this.registration.creator.toggle(this.canDisclose)},e.prototype.mutate=function(t){this._canDisclose=this.hasAttribute(this.attributeName),this.registration.creator.applyAbility(),!this._isApplying&&this.isPrimary&&t.indexOf(this.attributeName)>-1&&this.registration.creator&&(this.isDisclosed?this.registration.creator.disclose():this.type.canConceal&&this.registration.creator.conceal())},e.prototype.apply=function(t){var e=this;this.canDisclose&&(this._isApplying=!0,this.setAttribute(this.attributeName,t),this.request((function(){e._isApplying=!1})))},r.isDisclosed.get=function(){return"true"===this.getAttribute(this.attributeName)},r.isInitiallyDisclosed.get=function(){return this._isInitiallyDisclosed},e.prototype.focus=function(){t.prototype.focus.call(this),this.scrollIntoView()},e.prototype.measure=function(t){var e=this.rect;this._dx=t.x-e.x,this._dy=t.y-e.y},r.dx.get=function(){return this._dx},r.dy.get=function(){return this._dy},Object.defineProperties(e.prototype,r),Object.defineProperties(e,n),e}(_t),It={PREVENT_CONCEAL:w.attr.selector("prevent-conceal"),GROUP:w.attr("group")},Lt=function(t){function e(e,r){t.call(this,r),this.disclosureInstanceClassName=e,this._members=[],this._index=-1,this._isRetrieving=!1,this._hasRetrieved=!1,this._isGrouped=!0}t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e;var r={proxy:{configurable:!0},members:{configurable:!0},length:{configurable:!0},index:{configurable:!0},current:{configurable:!0},hasFocus:{configurable:!0},isGrouped:{configurable:!0},canUngroup:{configurable:!0}},n={instanceClassName:{configurable:!0}};return n.instanceClassName.get=function(){return"DisclosuresGroup"},e.prototype.init=function(){this.addAscent(At.ADDED,this.update.bind(this)),this.addAscent(At.RETRIEVE,this.retrieve.bind(this)),this.addAscent(At.REMOVED,this.update.bind(this)),this.descend(At.GROUP),this._isGrouped="false"!==this.getAttribute(It.GROUP),this.update()},r.proxy.get=function(){var e=this,r={set index(t){e.index=t},get index(){return e.index},get length(){return e.length},get current(){var t=e.current;return t?t.proxy:null},get members(){return e.members.map((function(t){return t.proxy}))},get hasFocus(){return e.hasFocus},set isGrouped(t){e.isGrouped=t},get isGrouped(){return e.isGrouped}};return pt.call(this,t.prototype.proxy,r)},e.prototype.validate=function(t){return!0},e.prototype.getMembers=function(){var t=this,e=this.element.getDescendantInstances(this.disclosureInstanceClassName,this.constructor.instanceClassName,!0);this._members=e.filter(this.validate.bind(this)).filter((function(t){return t.isEnabled})),e.filter((function(e){return!t._members.includes(e)})).forEach((function(t){return t.conceal()}))},e.prototype.retrieve=function(t){void 0===t&&(t=!1),this._isRetrieving||this._hasRetrieved&&!t||(this._isRetrieving=!0,this.request(this._retrieve.bind(this)))},e.prototype._retrieve=function(){var t=this;if(this.getMembers(),this._isRetrieving=!1,this._hasRetrieved=!0,this.hash)for(var e=0;e=this.length||t===this._index)){this._index=t;for(var e=0;e-1}));if(1===r.length)return r;if(1===(e=t.prototype._electPrimaries.call(this,e)).length)return e;var n=e.filter((function(t){return t.dy>=0}));if(n.length>0&&(e=n),1===e.length)return e;var i=Math.min.apply(Math,e.map((function(t){return t.dy}))),o=e.filter((function(t){return t.dy===i}));return o.length>0&&(e=o),1===e.length||e.sort((function(t,e){return Math.abs(e.dx)-Math.abs(t.dx)})),e},Object.defineProperties(e,r),e}(Nt),kt=function(t){function e(){t.call(this,"Collapse")}t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e;var r={canUngroup:{configurable:!0}},n={instanceClassName:{configurable:!0}};return n.instanceClassName.get=function(){return"CollapsesGroup"},r.canUngroup.get=function(){return!0},Object.defineProperties(e.prototype,r),Object.defineProperties(e,n),e}(Lt),Ht={CHANGE:w("equisized")},Gt=function(t){function e(){t.apply(this,arguments)}t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e;var r={instanceClassName:{configurable:!0}};return r.instanceClassName.get=function(){return"Equisized"},e.prototype.init=function(){this.ascend(Ht.CHANGE)},e.prototype.measure=function(){return this.isLegacy&&(this.style.width="auto"),this.getRect().width},e.prototype.adjust=function(t){this.isLegacy&&(this.style.width=t+"px")},e.prototype.dispose=function(){this.ascend(Ht.CHANGE)},Object.defineProperties(e,r),e}(_t),$t=function(t){function e(){t.apply(this,arguments)}t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e;var r={instanceClassName:{configurable:!0}};return r.instanceClassName.get=function(){return"EquisizedsGroup"},e.prototype.init=function(){this.isResizing=!0,this.isLoading=!0,this.addAscent(Ht.CHANGE,this.resize.bind(this))},e.prototype.load=function(){this.resize()},e.prototype.resize=function(){var t=this.element.getDescendantInstances("Equisized");this.isLegacy||this.style.setProperty("--equisized-width","auto");var e=Math.max.apply(Math,t.map((function(t){return t.measure()})));this.isLegacy?t.forEach((function(t){return t.adjust(e)})):this.style.setProperty("--equisized-width",e+"px")},Object.defineProperties(e,r),e}(_t),Ft={TOGGLE:w.event("toggle")},Ut=function(t){function e(){t.apply(this,arguments)}t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e;var r={pressed:{configurable:!0},proxy:{configurable:!0}},n={instanceClassName:{configurable:!0}};return n.instanceClassName.get=function(){return"Toggle"},e.prototype.init=function(){this.pressed="true"===this.pressed,this.listenClick()},e.prototype.handleClick=function(){this.toggle()},e.prototype.toggle=function(){this.pressed="true"!==this.pressed},r.pressed.get=function(){return this.getAttribute("aria-pressed")},r.pressed.set=function(t){this.setAttribute("aria-pressed",t?"true":"false"),this.dispatch(Ft.TOGGLE,t)},r.proxy.get=function(){var e=this,r=Object.assign.call(this,t.prototype.proxy,{toggle:e.toggle.bind(e)});return pt(r,{get pressed(){return e.pressed},set pressed(t){e.pressed=t}})},Object.defineProperties(e.prototype,r),Object.defineProperties(e,n),e}(_t),zt=function(t){function e(){t.apply(this,arguments)}t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e;var r={proxy:{configurable:!0}},n={instanceClassName:{configurable:!0}};return n.instanceClassName.get=function(){return"InjectSvg"},e.prototype.init=function(){this.node&&(this.img=this.node.querySelector("img")),this.isLegacy||this.replace()},r.proxy.get=function(){var e=this;return Object.assign.call(this,t.prototype.proxy,{replace:e.replace.bind(e),restore:e.restore.bind(e)})},e.prototype.fetch=function(){var t=this;this.img&&(this.imgID=this.img.getAttribute("id"),this.imgClass=this.img.getAttribute("class"),this.imgURL=this.img.getAttribute("src"),fetch(this.imgURL).then((function(t){return t.text()})).then((function(e){var r=(new DOMParser).parseFromString(e,"text/html");t.svg=r.querySelector("svg"),t.svg&&t.replace()})))},e.prototype.replace=function(){if(this.svg){this.imgID&&void 0!==this.imgID&&this.svg.setAttribute("id",this.imgID);var t=this.imgURL.match(/[ \w-]+\./)[0];t&&(t=t.slice(0,-1),["dark","light","system"].includes(t)&&(this.svg.innerHTML=this.svg.innerHTML.replaceAll('id="artwork-','id="'+t+"-artwork-"),this.svg.innerHTML=this.svg.innerHTML.replaceAll('"#artwork-','"#'+t+"-artwork-"))),this.imgClass&&void 0!==this.imgClass&&this.svg.setAttribute("class",this.imgClass),this.svg.hasAttribute("xmlns:a")&&this.svg.removeAttribute("xmlns:a"),this.node.setAttribute("data-fr-inject-svg",!0);var e,r;e=this.svg,r={"aria-hidden":!0,focusable:!1},Object.keys(r).forEach((function(t){return e.setAttribute(t,r[t])})),this.node.replaceChild(this.svg,this.img)}else this.fetch()},e.prototype.restore=function(){this.img&&this.svg&&(this.node.setAttribute("data-fr-inject-svg",!1),this.node.replaceChild(this.img,this.svg))},Object.defineProperties(e.prototype,r),Object.defineProperties(e,n),e}(_t),Bt={INJECT_SVG:"["+w.attr("inject-svg")+"]"},Wt=function(t){function e(){t.apply(this,arguments)}t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e;var r={proxy:{configurable:!0}},n={instanceClassName:{configurable:!0}};return n.instanceClassName.get=function(){return"Artwork"},e.prototype.init=function(){this.isLegacy&&this.replace()},r.proxy.get=function(){return Object.assign.call(this,t.prototype.proxy,{replace:this.replace.bind(this)})},e.prototype.fetch=function(){var t=this;this.xlink=this.node.getAttribute("href");var e=this.xlink.split("#");this.svgUrl=e[0],this.svgName=e[1];var r=new XMLHttpRequest;r.onload=function(){var e=(new DOMParser).parseFromString(r.responseText,"text/html");t.realSvgContent=e.getElementById(t.svgName),t.realSvgContent&&(t.realSvgContent.classList.add(t.node.classList),t.replace())},r.open("GET",this.svgUrl),r.send()},e.prototype.replace=function(){this.realSvgContent?this.node.parentNode.replaceChild(this.realSvgContent,this.node):this.fetch()},Object.defineProperties(e.prototype,r),Object.defineProperties(e,n),e}(_t),qt={ARTWORK_USE:w.selector("artwork")+" use"},Kt={ASSESS_FILE:""+w.attr.selector("assess-file"),DETAIL:w.attr.selector("assess-file")+' [class$="__detail"], '+w.attr.selector("assess-file")+' [class*="__detail "]'},Vt={UPDATE:w.emission("assess","update"),ADDED:w.emission("assess","added")},Yt=function(t){function e(){t.apply(this,arguments)}t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e;var r={instanceClassName:{configurable:!0}};return r.instanceClassName.get=function(){return"AssessFile"},e.prototype.init=function(){this.lang=this.getLang(this.node),this.href=this.getAttribute("href"),this.hreflang=this.getAttribute("hreflang"),this.file={},this.gather(),this.addAscent(Vt.ADDED,this.update.bind(this)),this.addDescent(Vt.ADDED,this.update.bind(this))},e.prototype.getFileLength=function(){var t=this;void 0!==this.href?fetch(this.href,{method:"HEAD",mode:"cors"}).then((function(e){t.length=e.headers.get("content-length")||-1,-1===t.length&&h.warn("File size unknown: "+t.href+'\nUnable to get HTTP header: "content-length"'),t.gather()})):this.length=-1},e.prototype.mutate=function(t){-1!==t.indexOf("href")&&(this.href=this.getAttribute("href"),this.getFileLength()),-1!==t.indexOf("hreflang")&&(this.hreflang=this.getAttribute("hreflang"),this.gather())},e.prototype.gather=function(){if(this.isLegacy&&(this.length=-1),this.length){if(this.details=[],this.href){var t=this.parseExtension(this.href);t&&this.details.push(t.toUpperCase())}-1!==this.length&&this.details.push(this.bytesToSize(this.length)),this.hreflang&&this.details.push(this.getLangDisplayName(this.hreflang)),this.update()}else this.getFileLength()},e.prototype.update=function(){this.details&&(this.descend(Vt.UPDATE,this.details),this.ascend(Vt.UPDATE,this.details))},e.prototype.getLang=function(t){return t.lang?t.lang:document.documentElement===t?window.navigator.language:this.getLang(t.parentElement)},e.prototype.parseExtension=function(t){return t.match(/\.(\w{1,9})(?:$|[?#])/)[0].replace(".","")},e.prototype.getLangDisplayName=function(t){if(this.isLegacy)return t;var e=new Intl.DisplayNames([this.lang],{type:"language"}).of(t);return e.charAt(0).toUpperCase()+e.slice(1)},e.prototype.bytesToSize=function(t){if(-1===t)return null;var e=["octets","ko","Mo","Go","To"];"bytes"===this.getAttribute(w.attr("assess-file"))&&(e=["bytes","KB","MB","GB","TB"]);var r=parseInt(Math.floor(Math.log(t)/Math.log(1e3)),10);if(0===r)return t+" "+e[r];var n=t/Math.pow(1e3,r),i=Math.round(100*(n+Number.EPSILON))/100;return String(i).replace(".",",")+" "+e[r]},Object.defineProperties(e,r),e}(_t),Xt=function(t){function e(){t.apply(this,arguments)}t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e;var r={instanceClassName:{configurable:!0}};return r.instanceClassName.get=function(){return"AssessDetail"},e.prototype.init=function(){this.addDescent(Vt.UPDATE,this.update.bind(this)),this.ascend(Vt.ADDED)},e.prototype.update=function(t){this.node.innerHTML=t.join(" - ")},Object.defineProperties(e,r),e}(_t),Qt=["32x9","16x9","3x2","4x3","1x1","3x4","2x3"],Jt=function(t,e){return e.map((function(e){return w.selector(t+"--"+e)})).join(",")},Zt=w.selector("responsive-img")+", "+Jt("responsive-img",Qt)+", "+w.selector("responsive-vid")+", "+Jt("responsive-vid",["16x9","4x3","1x1"]),te={RATIO:w.selector("ratio")+", "+Jt("ratio",Qt)+", "+Zt},ee=window[i],re=function(t){function e(){t.apply(this,arguments)}t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e;var r={instanceClassName:{configurable:!0}};return r.instanceClassName.get=function(){return"Ratio"},e.prototype.init=function(){if(!ee.internals.support.supportAspectRatio()){for(var t in this.ratio=16/9,this.classNames)if(this.registration.selector.indexOf(this.classNames[t])>0){var e=this.classNames[t].split("ratio-");e[1]&&(this.ratio=e[1].split("x")[0]/e[1].split("x")[1])}this.isRendering=!0,this.update()}},e.prototype.render=function(){this.getRect().width!==this.currentWidth&&this.update()},e.prototype.update=function(){this.currentWidth=this.getRect().width,this.style.height=this.currentWidth/this.ratio+"px"},Object.defineProperties(e,r),e}(_t),ne={TOP:w.selector("placement--top"),RIGHT:w.selector("placement--right"),BOTTOM:w.selector("placement--bottom"),LEFT:w.selector("placement--left")},ie={START:w.selector("placement--start"),CENTER:w.selector("placement--center"),END:w.selector("placement--end")},oe={TOP:"place_top",RIGHT:"place_right",BOTTOM:"place_bottom",LEFT:"place_left"},se={START:"align_start",CENTER:"align_center",END:"align_end"},ae={AUTO:"placement_auto",MANUAL:"placement_manual"},ce=function(t){function e(e,r,n,i){void 0===e&&(e=ae.AUTO),void 0===r&&(r=[oe.BOTTOM,oe.TOP,oe.LEFT,oe.RIGHT]),void 0===n&&(n=[se.CENTER,se.START,se.END]),void 0===i&&(i=16),t.call(this),this._mode=e,this._places=r,this._aligns=n,this._safeAreaMargin=i,this._isShown=!1}t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e;var r={proxy:{configurable:!0},mode:{configurable:!0},place:{configurable:!0},align:{configurable:!0},isShown:{configurable:!0}},n={instanceClassName:{configurable:!0}};return n.instanceClassName.get=function(){return"Placement"},e.prototype.init=function(){this.isResizing=!0},r.proxy.get=function(){var e=this,r=Object.assign.call(this,t.prototype.proxy,{show:e.show.bind(e),hide:e.hide.bind(e)});return pt(r,{get mode(){return e.mode},set mode(t){e.mode=t},get place(){return e.place},set place(t){e.place=t},get align(){return e.align},set align(t){e.align=t},get isShown(){return e.isShown},set isShown(t){e.isShown=t}})},r.mode.get=function(){return this._mode},r.mode.set=function(t){this._mode=t},r.place.get=function(){return this._place},r.place.set=function(t){if(this._place!==t){switch(this._place){case oe.TOP:this.removeClass(ne.TOP);break;case oe.RIGHT:this.removeClass(ne.RIGHT);break;case oe.BOTTOM:this.removeClass(ne.BOTTOM);break;case oe.LEFT:this.removeClass(ne.LEFT)}switch(this._place=t,this._place){case oe.TOP:this.addClass(ne.TOP);break;case oe.RIGHT:this.addClass(ne.RIGHT);break;case oe.BOTTOM:this.addClass(ne.BOTTOM);break;case oe.LEFT:this.addClass(ne.LEFT)}}},r.align.get=function(){return this._align},r.align.set=function(t){if(this._align!==t){switch(this._align){case se.START:this.removeClass(ie.START);break;case se.CENTER:this.removeClass(ie.CENTER);break;case se.END:this.removeClass(ie.END)}switch(this._align=t,this._align){case se.START:this.addClass(ie.START);break;case se.CENTER:this.addClass(ie.CENTER);break;case se.END:this.addClass(ie.END)}}},e.prototype.show=function(){this.isShown=!0},e.prototype.hide=function(){this.isShown=!1},r.isShown.get=function(){return this._isShown},r.isShown.set=function(t){this._isShown!==t&&this.isEnabled&&(this.isRendering=t,this._isShown=t)},e.prototype.setReferent=function(t){this._referent=t},e.prototype.resize=function(){this.safeArea={top:this._safeAreaMargin,right:window.innerWidth-this._safeAreaMargin,bottom:window.innerHeight-this._safeAreaMargin,left:this._safeAreaMargin,center:.5*window.innerWidth,middle:.5*window.innerHeight}},e.prototype.render=function(){if(this._referent){if(this.rect=this.getRect(),this.referentRect=this._referent.getRect(),this.mode===ae.AUTO)switch(this.place=this.getPlace(),this.place){case oe.TOP:case oe.BOTTOM:this.align=this.getHorizontalAlign();break;case oe.LEFT:case oe.RIGHT:this.align=this.getVerticalAlign()}var t,e;switch(this.place){case oe.TOP:e=this.referentRect.top-this.rect.height;break;case oe.RIGHT:t=this.referentRect.right;break;case oe.BOTTOM:e=this.referentRect.bottom;break;case oe.LEFT:t=this.referentRect.left-this.rect.width}switch(this.place){case oe.TOP:case oe.BOTTOM:switch(this.align){case se.CENTER:t=this.referentRect.center-.5*this.rect.width;break;case se.START:t=this.referentRect.left;break;case se.END:t=this.referentRect.right-this.rect.width}break;case oe.RIGHT:case oe.LEFT:switch(this.align){case se.CENTER:e=this.referentRect.middle-.5*this.rect.height;break;case se.START:e=this.referentRect.top;break;case se.END:e=this.referentRect.bottom-this.rect.height}}this._x===t&&this._y===e||(this._x=t+.5|0,this._y=e+.5|0,this.node.style.transform="translate("+this._x+"px,"+this._y+"px)")}},e.prototype.getPlace=function(){for(var t=0,e=this._places;tthis.safeArea.top)return oe.TOP;break;case oe.RIGHT:if(this.referentRect.right+this.rect.widththis.safeArea.left)return oe.LEFT}}return this._places[0]},e.prototype.getHorizontalAlign=function(){for(var t=0,e=this._aligns;tthis.safeArea.left&&this.referentRect.center+.5*this.rect.widththis.safeArea.left)return se.END}}return this._aligns[0]},e.prototype.getVerticalAlign=function(){for(var t=0,e=this._aligns;tthis.safeArea.top&&this.referentRect.middle+.5*this.rect.heightthis.safeArea.top)return se.END}}return this._aligns[0]},e.prototype.dispose=function(){this._referent=null,t.prototype.dispose.call(this)},Object.defineProperties(e.prototype,r),Object.defineProperties(e,n),e}(_t),le=function(t){function e(){t.call(this),this._isShown=!1}t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e;var r={placement:{configurable:!0},isShown:{configurable:!0}},n={instanceClassName:{configurable:!0}};return n.instanceClassName.get=function(){return"PlacementReferent"},e.prototype.init=function(){this.registration.creator.setReferent(this),this._placement=this.registration.creator},r.placement.get=function(){return this._placement},r.isShown.get=function(){return this._isShown},r.isShown.set=function(t){this._isShown!==t&&this.isEnabled&&(this._isShown=t,t?this.registration.creator.show():this.registration.creator.hide())},e.prototype.show=function(){this.isShown=!0},e.prototype.hide=function(){this.isShown=!1},Object.defineProperties(e.prototype,r),Object.defineProperties(e,n),e}(_t);yt.core={Instance:_t,Breakpoints:mt,KeyCodes:I,Disclosure:Nt,DisclosureButton:Ct,DisclosuresGroup:Lt,DisclosureType:Mt,DisclosureEvent:Pt,DisclosureSelector:It,DisclosureEmission:At,Collapse:Rt,CollapseButton:Dt,CollapsesGroup:kt,CollapseSelector:xt,RootSelector:{ROOT:":root"},RootEmission:C,Equisized:Gt,EquisizedEmission:Ht,Toggle:Ut,EquisizedsGroup:$t,InjectSvg:zt,InjectSvgSelector:Bt,Artwork:Wt,ArtworkSelector:qt,AssessFile:Yt,AssessDetail:Xt,AssessEmission:Vt,AssessSelector:Kt,Ratio:re,RatioSelector:te,Placement:ce,PlacementReferent:le,PlacementAlign:se,PlacementPosition:oe,PlacementMode:ae},yt.internals.register(yt.core.CollapseSelector.COLLAPSE,yt.core.Collapse),yt.internals.register(yt.core.InjectSvgSelector.INJECT_SVG,yt.core.InjectSvg),yt.internals.register(yt.core.RatioSelector.RATIO,yt.core.Ratio),yt.internals.register(yt.core.AssessSelector.ASSESS_FILE,yt.core.AssessFile),yt.internals.register(yt.core.AssessSelector.DETAIL,yt.core.AssessDetail);var ue={SYSTEM:"system",LIGHT:"light",DARK:"dark"},pe={THEME:ee.internals.ns.attr("theme"),SCHEME:ee.internals.ns.attr("scheme"),TRANSITION:ee.internals.ns.attr("transition")},he={LIGHT:"light",DARK:"dark"},fe={SCHEME:ee.internals.ns.emission("scheme","scheme"),THEME:ee.internals.ns.emission("scheme","theme"),ASK:ee.internals.ns.emission("scheme","ask")},de={SCHEME:ee.internals.ns.event("scheme"),THEME:ee.internals.ns.event("theme")},ye=function(t){function e(){t.call(this,!1)}t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e;var r={proxy:{configurable:!0},scheme:{configurable:!0},theme:{configurable:!0}},n={instanceClassName:{configurable:!0}};return n.instanceClassName.get=function(){return"Scheme"},e.prototype.init=function(){this.changing=this.change.bind(this),this.hasAttribute(pe.TRANSITION)&&(this.removeAttribute(pe.TRANSITION),this.request(this.restoreTransition.bind(this)));var t=ee.internals.support.supportLocalStorage()?localStorage.getItem("scheme"):"",e=this.getAttribute(pe.SCHEME);switch(t){case ue.DARK:case ue.LIGHT:case ue.SYSTEM:this.scheme=t;break;default:switch(e){case ue.DARK:this.scheme=ue.DARK;break;case ue.LIGHT:this.scheme=ue.LIGHT;break;default:this.scheme=ue.SYSTEM}}this.addAscent(fe.ASK,this.ask.bind(this)),this.addAscent(fe.SCHEME,this.apply.bind(this))},r.proxy.get=function(){var e=this,r={get scheme(){return e.scheme},set scheme(t){e.scheme=t}};return ee.internals.property.completeAssign.call(this,t.prototype.proxy,r)},e.prototype.restoreTransition=function(){this.setAttribute(pe.TRANSITION,"")},e.prototype.ask=function(){this.descend(fe.SCHEME,this.scheme)},e.prototype.apply=function(t){this.scheme=t},r.scheme.get=function(){return this._scheme},r.scheme.set=function(t){if(this._scheme!==t){switch(this._scheme=t,t){case ue.SYSTEM:this.listenPreferences();break;case ue.DARK:this.unlistenPreferences(),this.theme=he.DARK;break;case ue.LIGHT:this.unlistenPreferences(),this.theme=he.LIGHT;break;default:return void(this.scheme=ue.SYSTEM)}this.descend(fe.SCHEME,t),ee.internals.support.supportLocalStorage()&&localStorage.setItem("scheme",t),this.setAttribute(pe.SCHEME,t),this.dispatch(de.SCHEME,{scheme:this._scheme})}},r.theme.get=function(){return this._theme},r.theme.set=function(t){if(this._theme!==t)switch(t){case he.LIGHT:case he.DARK:this._theme=t,this.setAttribute(pe.THEME,t),this.descend(fe.THEME,t),this.dispatch(de.THEME,{theme:this._theme}),document.documentElement.style.colorScheme=t===he.DARK?"dark":""}},e.prototype.listenPreferences=function(){this.isListening||(this.isListening=!0,this.mediaQuery=window.matchMedia("(prefers-color-scheme: dark)"),this.mediaQuery.addEventListener&&this.mediaQuery.addEventListener("change",this.changing),this.change())},e.prototype.unlistenPreferences=function(){this.isListening&&(this.isListening=!1,this.mediaQuery.removeEventListener("change",this.changing),this.mediaQuery=null)},e.prototype.change=function(){this.isListening&&(this.theme=this.mediaQuery.matches?he.DARK:he.LIGHT)},e.prototype.mutate=function(t){t.indexOf(pe.SCHEME)>-1&&(this.scheme=this.getAttribute(pe.SCHEME)),t.indexOf(pe.THEME)>-1&&(this.theme=this.getAttribute(pe.THEME))},e.prototype.dispose=function(){this.unlistenPreferences()},Object.defineProperties(e.prototype,r),Object.defineProperties(e,n),e}(ee.core.Instance),be={SCHEME:":root"+ee.internals.ns.attr.selector("theme")+", :root"+ee.internals.ns.attr.selector("scheme"),SWITCH_THEME:ee.internals.ns.selector("switch-theme"),RADIO_BUTTONS:'input[name="'+ee.internals.ns("radios-theme")+'"]'};ee.scheme={Scheme:ye,SchemeValue:ue,SchemeSelector:be,SchemeEmission:fe,SchemeTheme:he,SchemeEvent:de},ee.internals.register(ee.scheme.SchemeSelector.SCHEME,ee.scheme.Scheme);var ge=ee.internals.ns.selector("accordion"),ve=ee.internals.ns.selector("collapse"),me={GROUP:ee.internals.ns.selector("accordions-group"),ACCORDION:ge,COLLAPSE:ge+" > "+ve+", "+ge+" > *:not("+ge+"):not("+ve+") > "+ve+", "+ge+" > *:not("+ge+"):not("+ve+") > *:not("+ge+"):not("+ve+") > "+ve,COLLAPSE_LEGACY:ge+" "+ve,BUTTON:ge+"__btn"},_e=function(t){function e(){t.apply(this,arguments)}t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e;var r={collapsePrimary:{configurable:!0}},n={instanceClassName:{configurable:!0}};return n.instanceClassName.get=function(){return"Accordion"},r.collapsePrimary.get=function(){return this.element.children.map((function(t){return t.getInstance("CollapseButton")})).filter((function(t){return null!==t&&t.hasClass(me.BUTTON)}))[0]},Object.defineProperties(e.prototype,r),Object.defineProperties(e,n),e}(ee.core.Instance),we=function(t){function e(){t.apply(this,arguments)}t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e;var r={instanceClassName:{configurable:!0}};return r.instanceClassName.get=function(){return"AccordionsGroup"},e.prototype.validate=function(e){var r=e.node.matches(ee.internals.legacy.isLegacy?me.COLLAPSE_LEGACY:me.COLLAPSE);return t.prototype.validate.call(this,e)&&r},Object.defineProperties(e,r),e}(ee.core.CollapsesGroup);ee.accordion={Accordion:_e,AccordionSelector:me,AccordionsGroup:we},ee.internals.register(ee.accordion.AccordionSelector.GROUP,ee.accordion.AccordionsGroup),ee.internals.register(ee.accordion.AccordionSelector.ACCORDION,ee.accordion.Accordion);var Se={EQUISIZED_BUTTON:ee.internals.ns.selector("btns-group--equisized")+" "+ee.internals.ns.selector("btn"),EQUISIZED_GROUP:ee.internals.ns.selector("btns-group--equisized")};ee.button={ButtonSelector:Se},ee.internals.register(ee.button.ButtonSelector.EQUISIZED_BUTTON,ee.core.Equisized),ee.internals.register(ee.button.ButtonSelector.EQUISIZED_GROUP,ee.core.EquisizedsGroup);var Ee=function(t){function e(){t.apply(this,arguments)}t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e;var r={instanceClassName:{configurable:!0}};return r.instanceClassName.get=function(){return"CardDownload"},e.prototype.init=function(){var t=this;this.addAscent(ee.core.AssessEmission.UPDATE,(function(e){t.descend(ee.core.AssessEmission.UPDATE,e)})),this.addAscent(ee.core.AssessEmission.ADDED,(function(){t.descend(ee.core.AssessEmission.ADDED)}))},Object.defineProperties(e,r),e}(ee.core.Instance),Oe={DOWNLOAD:ee.internals.ns.selector("card--download"),DOWNLOAD_DETAIL:ee.internals.ns.selector("card--download")+" "+ee.internals.ns.selector("card__end")+" "+ee.internals.ns.selector("card__detail")};ee.card={CardSelector:Oe,CardDownload:Ee},ee.internals.register(ee.card.CardSelector.DOWNLOAD,ee.card.CardDownload),ee.internals.register(ee.card.CardSelector.DOWNLOAD_DETAIL,ee.core.AssessDetail);var je={SEGMENTED:ee.internals.ns.selector("segmented"),SEGMENTED_ELEMENTS:ee.internals.ns.selector("segmented__elements"),SEGMENTED_ELEMENT:ee.internals.ns.selector("segmented__element input"),SEGMENTED_LEGEND:ee.internals.ns.selector("segmented__legend")},Te={ADDED:ee.internals.ns.emission("segmented","added"),REMOVED:ee.internals.ns.emission("segmented","removed")},Pe=function(t){function e(){t.apply(this,arguments)}t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e;var r={instanceClassName:{configurable:!0}};return r.instanceClassName.get=function(){return"Segmented"},e.prototype.init=function(){this.elements=this.node.querySelector(je.SEGMENTED_ELEMENTS),this.legend=this.node.querySelector(je.SEGMENTED_LEGEND),this.addAscent(Te.ADDED,this.resize.bind(this)),this.addAscent(Te.REMOVED,this.resize.bind(this)),this._isLegendInline=this.legend&&this.legend.classList.contains(ee.prefix+"-segmented__legend--inline"),this.isResizing=!0},e.prototype.resize=function(){var t=ee.prefix+"-segmented--vertical",e=ee.prefix+"-segmented__legend--inline";this.removeClass(t),this._isLegendInline&&(this.legend.classList.add(e),(this.node.offsetWidth>this.node.parentNode.offsetWidth||this.elements.scrollWidth+this.legend.offsetWidth+16>this.node.parentNode.offsetWidth)&&this.legend.classList.remove(e)),this.elements.offsetWidth>this.node.parentNode.offsetWidth||this.elements.scrollWidth>this.node.parentNode.offsetWidth?this.addClass(t):this.removeClass(t)},Object.defineProperties(e,r),e}(ee.core.Instance),Ae=function(t){function e(){t.apply(this,arguments)}t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e;var r={instanceClassName:{configurable:!0}};return r.instanceClassName.get=function(){return"SegmentedElement"},e.prototype.init=function(){this.ascend(Te.ADDED)},e.prototype.dispose=function(){this.ascend(Te.REMOVED)},Object.defineProperties(e,r),e}(ee.core.Instance);ee.segmented={SegmentedSelector:je,SegmentedEmission:Te,SegmentedElement:Ae,Segmented:Pe},ee.internals.register(ee.segmented.SegmentedSelector.SEGMENTED,ee.segmented.Segmented),ee.internals.register(ee.segmented.SegmentedSelector.SEGMENTED_ELEMENT,ee.segmented.SegmentedElement);var Ne={BREADCRUMB:ee.internals.ns.selector("breadcrumb"),BUTTON:ee.internals.ns.selector("breadcrumb__button")},Ce=function(t){function e(){t.call(this),this.count=0,this.focusing=this.focus.bind(this)}t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e;var r={proxy:{configurable:!0},links:{configurable:!0},collapse:{configurable:!0},collapsePrimary:{configurable:!0}},n={instanceClassName:{configurable:!0}};return n.instanceClassName.get=function(){return"Breadcrumb"},e.prototype.init=function(){this.getCollapse(),this.isResizing=!0},r.proxy.get=function(){var e=this;return Object.assign.call(this,t.prototype.proxy,{focus:e.focus.bind(e),disclose:e.collapse.disclose.bind(e.collapse)})},e.prototype.getCollapse=function(){var t=this.collapse;t?t.listen(ee.core.DisclosureEvent.DISCLOSE,this.focusing):this.addAscent(ee.core.DisclosureEmission.ADDED,this.getCollapse.bind(this))},e.prototype.resize=function(){var t=this.collapse,e=this.links;t&&e.length&&(this.isBreakpoint(ee.core.Breakpoints.MD)?t.buttonHasFocus&&e[0].focus():e.indexOf(document.activeElement)>-1&&t.focus())},r.links.get=function(){return[].concat(this.querySelectorAll("a[href]"))},r.collapse.get=function(){return this.element.getDescendantInstances(ee.core.Collapse.instanceClassName,null,!0)[0]},e.prototype.focus=function(){this.count=0,this._focus()},e.prototype._focus=function(){var t=this.links[0];t&&(t.focus(),this.request(this.verify.bind(this)))},e.prototype.verify=function(){if(this.count++,!(this.count>100)){var t=this.links[0];t&&document.activeElement!==t&&this._focus()}},r.collapsePrimary.get=function(){return this.element.children.map((function(t){return t.getInstance("CollapseButton")})).filter((function(t){return null!==t&&t.hasClass(Ne.BUTTON)}))[0]},Object.defineProperties(e.prototype,r),Object.defineProperties(e,n),e}(ee.core.Instance);ee.breadcrumb={BreadcrumbSelector:Ne,Breadcrumb:Ce},ee.internals.register(ee.breadcrumb.BreadcrumbSelector.BREADCRUMB,ee.breadcrumb.Breadcrumb);var Ie={TOOLTIP:ee.internals.ns.selector("tooltip"),SHOWN:ee.internals.ns.selector("tooltip--shown"),BUTTON:ee.internals.ns.selector("btn--tooltip")},Le=1,Me=2,De=function(t){function e(){t.call(this),this._state=0}t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e;var r={state:{configurable:!0}},n={instanceClassName:{configurable:!0}};return n.instanceClassName.get=function(){return"TooltipReferent"},e.prototype.init=function(){if(t.prototype.init.call(this),this.listen("focusin",this.focusIn.bind(this)),this.listen("focusout",this.focusOut.bind(this)),!this.matches(Ie.BUTTON)){var e=this.mouseover.bind(this);this.listen("mouseover",e),this.placement.listen("mouseover",e);var r=this.mouseout.bind(this);this.listen("mouseout",r),this.placement.listen("mouseout",r)}this.addEmission(ee.core.RootEmission.KEYDOWN,this._keydown.bind(this)),this.listen("click",this._click.bind(this)),this.addEmission(ee.core.RootEmission.CLICK,this._clickOut.bind(this))},e.prototype._click=function(){this.focus()},e.prototype._clickOut=function(t){this.node.contains(t)||this.blur()},e.prototype._keydown=function(t){if(t===ee.core.KeyCodes.ESCAPE)this.blur(),this.close()},e.prototype.close=function(){this.state=0},r.state.get=function(){return this._state},r.state.set=function(t){this._state!==t&&(this.isShown=t>0,this._state=t)},e.prototype.focusIn=function(){this.state|=Le},e.prototype.focusOut=function(){this.state&=~Le},e.prototype.mouseover=function(){this.state|=Me},e.prototype.mouseout=function(){this.state&=~Me},Object.defineProperties(e.prototype,r),Object.defineProperties(e,n),e}(ee.core.PlacementReferent),xe={SHOW:w.event("show"),HIDE:w.event("hide")},Re="hidden",ke="shown",He="hiding",Ge=function(t){function e(){t.call(this,ee.core.PlacementMode.AUTO,[ee.core.PlacementPosition.TOP,ee.core.PlacementPosition.BOTTOM],[ee.core.PlacementAlign.CENTER,ee.core.PlacementAlign.START,ee.core.PlacementAlign.END]),this.modifier="",this._state=Re}t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e;var r={isShown:{configurable:!0}},n={instanceClassName:{configurable:!0}};return n.instanceClassName.get=function(){return"Tooltip"},e.prototype.init=function(){t.prototype.init.call(this),this.register('[aria-describedby="'+this.id+'"]',De),this.listen("transitionend",this.transitionEnd.bind(this))},e.prototype.transitionEnd=function(){this._state===He&&(this._state=Re,this.isShown=!1)},r.isShown.get=function(){return t.prototype.isShown},r.isShown.set=function(e){if(this.isEnabled)switch(!0){case e:this._state=ke,this.addClass(Ie.SHOWN),this.dispatch(xe.SHOW),t.prototype.isShown=!0;break;case this.isShown&&!e&&this._state===ke:this._state=He,this.removeClass(Ie.SHOWN);break;case this.isShown&&!e&&this._state===Re:this.dispatch(xe.HIDE),t.prototype.isShown=!1}},e.prototype.render=function(){t.prototype.render.call(this);var e=this.referentRect.center-this.rect.center,r=.5*this.rect.width-8;e<-r&&(e=-r),e>r&&(e=r),this.setProperty("--arrow-x",e.toFixed(2)+"px")},Object.defineProperties(e.prototype,r),Object.defineProperties(e,n),e}(ee.core.Placement);ee.tooltip={Tooltip:Ge,TooltipSelector:Ie,TooltipEvent:xe},ee.internals.register(ee.tooltip.TooltipSelector.TOOLTIP,ee.tooltip.Tooltip);var $e=function(t){function e(){t.apply(this,arguments)}t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e;var r={isChecked:{configurable:!0}},n={instanceClassName:{configurable:!0}};return n.instanceClassName.get=function(){return"ToggleInput"},r.isChecked.get=function(){return this.node.checked},Object.defineProperties(e.prototype,r),Object.defineProperties(e,n),e}(ee.core.Instance),Fe=function(t){function e(){t.apply(this,arguments)}t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e;var r={proxy:{configurable:!0},input:{configurable:!0}},n={instanceClassName:{configurable:!0}};return n.instanceClassName.get=function(){return"ToggleStatusLabel"},e.prototype.init=function(){this.register('input[id="'+this.getAttribute("for")+'"]',$e),this.update(),this.isSwappingFont=!0},r.proxy.get=function(){return Object.assign.call(this,t.prototype.proxy,{update:this.update.bind(this)})},r.input.get=function(){return this.getRegisteredInstances("ToggleInput")[0]},e.prototype.update=function(){this.node.style.removeProperty("--toggle-status-width");var t=this.input.isChecked,e=getComputedStyle(this.node,":before"),r=parseFloat(e.width);this.input.node.checked=!t;var n=getComputedStyle(this.node,":before"),i=parseFloat(n.width);i>r&&(r=i),this.input.node.checked=t,this.node.style.setProperty("--toggle-status-width",r/16+"rem")},e.prototype.swapFont=function(t){this.update()},Object.defineProperties(e.prototype,r),Object.defineProperties(e,n),e}(ee.core.Instance),Ue={STATUS_LABEL:""+ee.internals.ns.selector("toggle__label")+ee.internals.ns.attr.selector("checked-label")+ee.internals.ns.attr.selector("unchecked-label")};ee.toggle={ToggleStatusLabel:Fe,ToggleSelector:Ue},ee.internals.register(ee.toggle.ToggleSelector.STATUS_LABEL,ee.toggle.ToggleStatusLabel);var ze=ee.internals.ns.selector("sidemenu__item"),Be=ee.internals.ns.selector("collapse"),We={LIST:ee.internals.ns.selector("sidemenu__list"),COLLAPSE:ze+" > "+Be+", "+ze+" > *:not("+ze+"):not("+Be+") > "+Be+", "+ze+" > *:not("+ze+"):not("+Be+") > *:not("+ze+"):not("+Be+") > "+Be,COLLAPSE_LEGACY:ze+" "+Be,ITEM:ee.internals.ns.selector("sidemenu__item"),BUTTON:ee.internals.ns.selector("sidemenu__btn")},qe=function(t){function e(){t.apply(this,arguments)}t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e;var r={instanceClassName:{configurable:!0}};return r.instanceClassName.get=function(){return"SidemenuList"},e.prototype.validate=function(e){return t.prototype.validate.call(this,e)&&e.node.matches(ee.internals.legacy.isLegacy?We.COLLAPSE_LEGACY:We.COLLAPSE)},Object.defineProperties(e,r),e}(ee.core.CollapsesGroup),Ke=function(t){function e(){t.apply(this,arguments)}t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e;var r={collapsePrimary:{configurable:!0}},n={instanceClassName:{configurable:!0}};return n.instanceClassName.get=function(){return"SidemenuItem"},r.collapsePrimary.get=function(){return this.element.children.map((function(t){return t.getInstance("CollapseButton")})).filter((function(t){return null!==t&&t.hasClass(We.BUTTON)}))[0]},Object.defineProperties(e.prototype,r),Object.defineProperties(e,n),e}(ee.core.Instance);ee.sidemenu={SidemenuList:qe,SidemenuItem:Ke,SidemenuSelector:We},ee.internals.register(ee.sidemenu.SidemenuSelector.LIST,ee.sidemenu.SidemenuList),ee.internals.register(ee.sidemenu.SidemenuSelector.ITEM,ee.sidemenu.SidemenuItem);var Ve={MODAL:ee.internals.ns.selector("modal"),SCROLL_DIVIDER:ee.internals.ns.selector("scroll-divider"),BODY:ee.internals.ns.selector("modal__body"),TITLE:ee.internals.ns.selector("modal__title")},Ye=function(t){function e(){t.call(this,ee.core.DisclosureType.OPENED)}t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e;var r={instanceClassName:{configurable:!0}};return r.instanceClassName.get=function(){return"ModalButton"},Object.defineProperties(e,r),e}(ee.core.DisclosureButton),Xe={CONCEALING_BACKDROP:ee.internals.ns.attr("concealing-backdrop")},Qe=function(t){function e(){t.call(this,ee.core.DisclosureType.OPENED,Ve.MODAL,Ye,"ModalsGroup"),this._isActive=!1,this.scrolling=this.resize.bind(this,!1),this.resizing=this.resize.bind(this,!0)}t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e;var r={body:{configurable:!0},isDialog:{configurable:!0}},n={instanceClassName:{configurable:!0}};return n.instanceClassName.get=function(){return"Modal"},e.prototype.init=function(){t.prototype.init.call(this),this._isDialog="DIALOG"===this.node.tagName,this.isScrolling=!1,this.listenClick(),this.addEmission(ee.core.RootEmission.KEYDOWN,this._keydown.bind(this))},e.prototype._keydown=function(t){if(t===ee.core.KeyCodes.ESCAPE)this._escape()},e.prototype._escape=function(){switch(document.activeElement?document.activeElement.tagName:void 0){case"INPUT":case"LABEL":case"TEXTAREA":case"SELECT":case"AUDIO":case"VIDEO":break;default:this.isDisclosed&&(this.conceal(),this.focus())}},e.prototype.retrieved=function(){this._ensureAccessibleName()},r.body.get=function(){return this.element.getDescendantInstances("ModalBody","Modal")[0]},e.prototype.handleClick=function(t){t.target===this.node&&"false"!==this.getAttribute(Xe.CONCEALING_BACKDROP)&&this.conceal()},e.prototype.disclose=function(e){return!!t.prototype.disclose.call(this,e)&&(this.body&&this.body.activate(),this.isScrollLocked=!0,this.setAttribute("aria-modal","true"),this.setAttribute("open","true"),this._isDialog||this.activateModal(),!0)},e.prototype.conceal=function(e,r){return!!t.prototype.conceal.call(this,e,r)&&(this.isScrollLocked=!1,this.removeAttribute("aria-modal"),this.removeAttribute("open"),this.body&&this.body.deactivate(),this._isDialog||this.deactivateModal(),!0)},r.isDialog.get=function(){return this._isDialog},r.isDialog.set=function(t){this._isDialog=t},e.prototype.activateModal=function(){this._isActive||(this._isActive=!0,this._hasDialogRole="dialog"===this.getAttribute("role"),this._hasDialogRole||this.setAttribute("role","dialog"))},e.prototype.deactivateModal=function(){this._isActive&&(this._isActive=!1,this._hasDialogRole||this.removeAttribute("role"))},e.prototype._setAccessibleName=function(t,e){var r=this.retrieveNodeId(t,e);this.warn("add reference to "+e+" for accessible name (aria-labelledby)"),this.setAttribute("aria-labelledby",r)},e.prototype._ensureAccessibleName=function(){if(!this.hasAttribute("aria-labelledby")&&!this.hasAttribute("aria-label")){this.warn("missing accessible name");var t=this.node.querySelector(Ve.TITLE),e=this.primaryButtons[0];switch(!0){case null!==t:this._setAccessibleName(t,"title");break;case void 0!==e:this.warn("missing required title, fallback to primary button"),this._setAccessibleName(e,"primary")}}},Object.defineProperties(e.prototype,r),Object.defineProperties(e,n),e}(ee.core.Disclosure),Je=['[tabindex="0"]',"a[href]","button:not([disabled])","input:not([disabled])","select:not([disabled])","textarea:not([disabled])","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable="false"])',"details>summary:first-of-type","details","iframe"].join(),Ze=['[tabindex]:not([tabindex="-1"]):not([tabindex="0"])'].join(),tr=function(t,e){if(!(t instanceof Element))return!1;var r=window.getComputedStyle(t);if(!r)return!1;if("hidden"===r.visibility)return!1;for(void 0===e&&(e=t);e.contains(t);){if("none"===r.display)return!1;t=t.parentElement}return!0},er=function(t,e){this.element=null,this.activeElement=null,this.onTrap=t,this.onUntrap=e,this.waiting=this.wait.bind(this),this.handling=this.handle.bind(this),this.focusing=this.maintainFocus.bind(this),this.current=null},rr={trapped:{configurable:!0},focusables:{configurable:!0}};rr.trapped.get=function(){return null!==this.element},er.prototype.trap=function(t){this.trapped&&this.untrap(),this.element=t,this.isTrapping=!0,this.wait(),this.onTrap&&this.onTrap()},er.prototype.wait=function(){tr(this.element)?this.trapping():window.requestAnimationFrame(this.waiting)},er.prototype.trapping=function(){if(this.isTrapping){this.isTrapping=!1;var t=this.focusables;t.length&&-1===t.indexOf(document.activeElement)&&t[0].focus(),this.element.setAttribute("aria-modal",!0),window.addEventListener("keydown",this.handling),document.body.addEventListener("focus",this.focusing,!0)}},er.prototype.stun=function(t){for(var e=0,r=t.children;e0||e[i-1].tabIndex>0)&&(t.preventDefault(),e[i-1].focus()):this.element.contains(document.activeElement)&&i!==e.length-1&&-1!==i?document.activeElement.tabIndex>0&&(t.preventDefault(),e[i+1].focus()):(t.preventDefault(),r.focus())}}},rr.focusables.get=function(){var t=this,e=ee.internals.dom.querySelectorAllArray(this.element,Je),r=ee.internals.dom.querySelectorAllArray(document.documentElement,'input[type="radio"]');if(r.length){for(var n={},i=0,o=r;ithis.node.clientHeight?this.node.offsetHeight+this.node.scrollTop>=this.node.scrollHeight?this.removeClass(Ve.SCROLL_DIVIDER):this.addClass(Ve.SCROLL_DIVIDER):this.removeClass(Ve.SCROLL_DIVIDER)},e.prototype.resize=function(){this.adjust(),this.request(this.adjust.bind(this))},e.prototype.adjust=function(){var t=32*(this.isBreakpoint(ee.core.Breakpoints.MD)?2:1);this.isLegacy?this.style.maxHeight=window.innerHeight-t+"px":this.style.setProperty("--modal-max-height",window.innerHeight-t+"px"),this.divide()},Object.defineProperties(e,r),e}(ee.core.Instance);ee.modal={Modal:Qe,ModalButton:Ye,ModalBody:sr,ModalsGroup:or,ModalSelector:Ve},ee.internals.register(ee.modal.ModalSelector.MODAL,ee.modal.Modal),ee.internals.register(ee.modal.ModalSelector.BODY,ee.modal.ModalBody),ee.internals.register(ee.core.RootSelector.ROOT,ee.modal.ModalsGroup);var ar={TOGGLE:ee.internals.ns.emission("password","toggle"),ADJUST:ee.internals.ns.emission("password","adjust")},cr=function(t){function e(){t.apply(this,arguments)}t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e;var r={width:{configurable:!0},isChecked:{configurable:!0}},n={instanceClassName:{configurable:!0}};return n.instanceClassName.get=function(){return"PasswordToggle"},e.prototype.init=function(){this.listenClick(),this.ascend(ar.ADJUST,this.width),this.isSwappingFont=!0,this._isChecked=this.isChecked},r.width.get=function(){var t=getComputedStyle(this.node.parentNode);return parseInt(t.width)},r.isChecked.get=function(){return this.node.checked},r.isChecked.set=function(t){this._isChecked=t,this.ascend(ar.TOGGLE,t)},e.prototype.handleClick=function(){this.isChecked=!this._isChecked},e.prototype.swapFont=function(t){this.ascend(ar.ADJUST,this.width)},Object.defineProperties(e.prototype,r),Object.defineProperties(e,n),e}(ee.core.Instance),lr=function(t){function e(){t.apply(this,arguments)}t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e;var r={instanceClassName:{configurable:!0}};return r.instanceClassName.get=function(){return"Password"},e.prototype.init=function(){this.addAscent(ar.TOGGLE,this.toggle.bind(this)),this.addAscent(ar.ADJUST,this.adjust.bind(this))},e.prototype.toggle=function(t){this.descend(ar.TOGGLE,t)},e.prototype.adjust=function(t){this.descend(ar.ADJUST,t)},Object.defineProperties(e,r),e}(ee.core.Instance),ur={PASSWORD:ee.internals.ns.selector("password"),INPUT:ee.internals.ns.selector("password__input"),LABEL:ee.internals.ns.selector("password__label"),TOOGLE:ee.internals.ns.selector("password__checkbox")+' input[type="checkbox"]'},pr=function(t){function e(){t.apply(this,arguments)}t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e;var r={isRevealed:{configurable:!0}},n={instanceClassName:{configurable:!0}};return n.instanceClassName.get=function(){return"PasswordInput"},e.prototype.init=function(){this.addDescent(ar.TOGGLE,this.toggle.bind(this)),this._isRevealed="password"===this.hasAttribute("type"),this.listen("keydown",this.capslock.bind(this)),this.listen("keyup",this.capslock.bind(this))},e.prototype.toggle=function(t){this.isRevealed=t,this.setAttribute("type",t?"text":"password")},r.isRevealed.get=function(){return this._isRevealed},e.prototype.capslock=function(t){t&&"function"!=typeof t.getModifierState||(t.getModifierState("CapsLock")?this.node.parentNode.setAttribute(ee.internals.ns.attr("capslock"),""):this.node.parentNode.removeAttribute(ee.internals.ns.attr("capslock")))},r.isRevealed.set=function(t){this._isRevealed=t,this.setAttribute("type",t?"text":"password")},Object.defineProperties(e.prototype,r),Object.defineProperties(e,n),e}(ee.core.Instance),hr=function(t){function e(){t.apply(this,arguments)}t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e;var r={instanceClassName:{configurable:!0}};return r.instanceClassName.get=function(){return"PasswordLabel"},e.prototype.init=function(){this.addDescent(ar.ADJUST,this.adjust.bind(this))},e.prototype.adjust=function(t){var e=Math.ceil(t/16);this.node.style.paddingRight=e+"rem"},Object.defineProperties(e,r),e}(ee.core.Instance);ee.password={Password:lr,PasswordToggle:cr,PasswordSelector:ur,PasswordInput:pr,PasswordLabel:hr},ee.internals.register(ee.password.PasswordSelector.INPUT,ee.password.PasswordInput),ee.internals.register(ee.password.PasswordSelector.PASSWORD,ee.password.Password),ee.internals.register(ee.password.PasswordSelector.TOOGLE,ee.password.PasswordToggle),ee.internals.register(ee.password.PasswordSelector.LABEL,ee.password.PasswordLabel);var fr=ee.internals.ns.selector("nav__item"),dr=ee.internals.ns.selector("collapse"),yr={NAVIGATION:ee.internals.ns.selector("nav"),COLLAPSE:fr+" > "+dr+", "+fr+" > *:not("+fr+"):not("+dr+") > "+dr+", "+fr+" > *:not("+fr+"):not("+dr+") > *:not("+fr+"):not("+dr+") > "+dr,COLLAPSE_LEGACY:fr+" "+dr,ITEM:fr,ITEM_RIGHT:fr+"--align-right",MENU:ee.internals.ns.selector("menu"),BUTTON:ee.internals.ns.selector("nav__btn"),TRANSLATE_BUTTON:ee.internals.ns.selector("translate__btn")},br=function(t){function e(){t.call(this),this._isRightAligned=!1}t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e;var r={isRightAligned:{configurable:!0},collapsePrimary:{configurable:!0}},n={instanceClassName:{configurable:!0}};return n.instanceClassName.get=function(){return"NavigationItem"},e.prototype.init=function(){this.addAscent(ee.core.DisclosureEmission.ADDED,this.calculate.bind(this)),this.addAscent(ee.core.DisclosureEmission.REMOVED,this.calculate.bind(this)),this.isResizing=!0,this.calculate()},e.prototype.resize=function(){this.calculate()},e.prototype.calculate=function(){var t=this.element.getDescendantInstances(ee.core.Collapse.instanceClassName,null,!0)[0];if(t&&this.isBreakpoint(ee.core.Breakpoints.LG)&&t.element.node.matches(yr.MENU)){var e=this.element.node.parentElement.getBoundingClientRect().right,r=t.element.node.getBoundingClientRect().width,n=this.element.node.getBoundingClientRect().left;this.isRightAligned=n+r>e}else this.isRightAligned=!1},r.isRightAligned.get=function(){return this._isRightAligned},r.isRightAligned.set=function(t){this._isRightAligned!==t&&(this._isRightAligned=t,t?ee.internals.dom.addClass(this.element.node,yr.ITEM_RIGHT):ee.internals.dom.removeClass(this.element.node,yr.ITEM_RIGHT))},r.collapsePrimary.get=function(){return this.element.children.map((function(t){return t.getInstance("CollapseButton")})).filter((function(t){return null!==t&&(t.hasClass(yr.BUTTON)||t.hasClass(yr.TRANSLATE_BUTTON))}))[0]},Object.defineProperties(e.prototype,r),Object.defineProperties(e,n),e}(ee.core.Instance),gr={NONE:-1,INSIDE:0,OUTSIDE:1},vr=function(t){function e(){t.apply(this,arguments)}t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e;var r={index:{configurable:!0},canUngroup:{configurable:!0}},n={instanceClassName:{configurable:!0}};return n.instanceClassName.get=function(){return"Navigation"},e.prototype.init=function(){t.prototype.init.call(this),this.clicked=!1,this.out=!1,this.addEmission(ee.core.RootEmission.CLICK,this._handleRootClick.bind(this)),this.listen("mousedown",this.handleMouseDown.bind(this)),this.listenClick({capture:!0}),this.isResizing=!0},e.prototype.validate=function(e){return t.prototype.validate.call(this,e)&&e.element.node.matches(ee.internals.legacy.isLegacy?yr.COLLAPSE_LEGACY:yr.COLLAPSE)},e.prototype.handleMouseDown=function(t){this.isBreakpoint(ee.core.Breakpoints.LG)&&-1!==this.index&&this.current&&(this.position=this.current.node.contains(t.target)?gr.INSIDE:gr.OUTSIDE,this.requestPosition())},e.prototype.handleClick=function(t){!t.target.matches("a, button")||t.target.matches("[aria-controls]")||t.target.matches(ee.core.DisclosureSelector.PREVENT_CONCEAL)||(this.index=-1)},e.prototype._handleRootClick=function(t){this.isBreakpoint(ee.core.Breakpoints.LG)&&(this.node.contains(t)||(this.out=!0,this.requestPosition()))},e.prototype.requestPosition=function(){this.isRequesting||(this.isRequesting=!0,this.request(this.getPosition.bind(this)))},e.prototype.getPosition=function(){if(this.out)switch(this.position){case gr.OUTSIDE:this.index=-1;break;case gr.INSIDE:this.current&&!this.current.node.contains(document.activeElement)&&this.current.focus();break;default:this.index>-1&&!this.current.hasFocus&&(this.index=-1)}this.request(this.requested.bind(this))},e.prototype.requested=function(){this.position=gr.NONE,this.out=!1,this.isRequesting=!1},r.index.get=function(){return t.prototype.index},r.index.set=function(e){-1===e&&this.current&&this.current.hasFocus&&this.current.focus(),t.prototype.index=e},r.canUngroup.get=function(){return!this.isBreakpoint(ee.core.Breakpoints.LG)},e.prototype.resize=function(){this.update()},Object.defineProperties(e.prototype,r),Object.defineProperties(e,n),e}(ee.core.CollapsesGroup);ee.navigation={Navigation:vr,NavigationItem:br,NavigationMousePosition:gr,NavigationSelector:yr},ee.internals.register(ee.navigation.NavigationSelector.NAVIGATION,ee.navigation.Navigation),ee.internals.register(ee.navigation.NavigationSelector.ITEM,ee.navigation.NavigationItem);var mr=function(t){function e(){t.call(this,ee.core.DisclosureType.SELECT)}t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e;var r={list:{configurable:!0}},n={instanceClassName:{configurable:!0}};return n.instanceClassName.get=function(){return"TabButton"},e.prototype.handleClick=function(e){t.prototype.handleClick.call(this,e),this.focus()},e.prototype.apply=function(e){t.prototype.apply.call(this,e),this.isPrimary&&(this.setAttribute("tabindex",e?"0":"-1"),e&&this.list&&this.list.focalize(this))},r.list.get=function(){return this.element.getAscendantInstance("TabsList","TabsGroup")},Object.defineProperties(e.prototype,r),Object.defineProperties(e,n),e}(ee.core.DisclosureButton),_r={TAB:ee.internals.ns.selector("tabs__tab"),GROUP:ee.internals.ns.selector("tabs"),PANEL:ee.internals.ns.selector("tabs__panel"),LIST:ee.internals.ns.selector("tabs__list"),SHADOW:ee.internals.ns.selector("tabs__shadow"),SHADOW_LEFT:ee.internals.ns.selector("tabs__shadow--left"),SHADOW_RIGHT:ee.internals.ns.selector("tabs__shadow--right"),PANEL_START:ee.internals.ns.selector("tabs__panel--direction-start"),PANEL_END:ee.internals.ns.selector("tabs__panel--direction-end")},wr="direction-start",Sr="direction-end",Er="none",Or=function(t){function e(){t.call(this,ee.core.DisclosureType.SELECT,_r.PANEL,mr,"TabsGroup"),this._direction=Er,this._isPreventingTransition=!1}t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e;var r={direction:{configurable:!0},isPreventingTransition:{configurable:!0}},n={instanceClassName:{configurable:!0}};return n.instanceClassName.get=function(){return"TabPanel"},r.direction.get=function(){return this._direction},r.direction.set=function(t){if(t!==this._direction){switch(this._direction){case wr:this.removeClass(_r.PANEL_START);break;case Sr:this.removeClass(_r.PANEL_END);break;case Er:break;default:return}switch(this._direction=t,this._direction){case wr:this.addClass(_r.PANEL_START);break;case Sr:this.addClass(_r.PANEL_END)}}},r.isPreventingTransition.get=function(){return this._isPreventingTransition},r.isPreventingTransition.set=function(t){this._isPreventingTransition!==t&&(t?this.addClass(ee.internals.motion.TransitionSelector.NONE):this.removeClass(ee.internals.motion.TransitionSelector.NONE),this._isPreventingTransition=!0===t)},e.prototype.translate=function(t,e){this.isPreventingTransition=e,this.direction=t},e.prototype.reset=function(){this.group&&this.group.retrieve(!0)},e.prototype._electPrimaries=function(e){var r=this;return this.group&&this.group.list?t.prototype._electPrimaries.call(this,e).filter((function(t){return r.group.list.node.contains(t.node)})):[]},Object.defineProperties(e.prototype,r),Object.defineProperties(e,n),e}(ee.core.Disclosure),jr="tab_keys_left",Tr="tab_keys_right",Pr="tab_keys_home",Ar="tab_keys_end",Nr={PRESS_KEY:ee.internals.ns.emission("tab","press_key"),LIST_HEIGHT:ee.internals.ns.emission("tab","list_height")},Cr=function(t){function e(){t.call(this,"TabPanel")}t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e;var r={list:{configurable:!0},buttonHasFocus:{configurable:!0},isPreventingTransition:{configurable:!0}},n={instanceClassName:{configurable:!0}};return n.instanceClassName.get=function(){return"TabsGroup"},e.prototype.init=function(){t.prototype.init.call(this),this.listen("transitionend",this.transitionend.bind(this)),this.addAscent(Nr.PRESS_KEY,this.pressKey.bind(this)),this.addAscent(Nr.LIST_HEIGHT,this.setListHeight.bind(this)),this.isRendering=!0},e.prototype.getIndex=function(e){void 0===e&&(e=0),t.prototype.getIndex.call(this,e)},r.list.get=function(){return this.element.getDescendantInstances("TabsList","TabsGroup",!0)[0]},e.prototype.setListHeight=function(t){this.listHeight=t},e.prototype.transitionend=function(t){this.isPreventingTransition=!0},r.buttonHasFocus.get=function(){return this.members.some((function(t){return t.buttonHasFocus}))},e.prototype.pressKey=function(t){switch(t){case jr:this.pressLeft();break;case Tr:this.pressRight();break;case Pr:this.pressHome();break;case Ar:this.pressEnd()}},e.prototype.pressRight=function(){this.buttonHasFocus&&(this.index0?this.index--:this.index=this.length-1,this.focus())},e.prototype.pressHome=function(){this.buttonHasFocus&&(this.index=0,this.focus())},e.prototype.pressEnd=function(){this.buttonHasFocus&&(this.index=this.length-1,this.focus())},e.prototype.focus=function(){this.current&&this.current.focus()},e.prototype.apply=function(){for(var t=0;tr.right&&this.node.scrollTo(n-r.right+e.right+16,0)},r.isScrolling.get=function(){return this._isScrolling},r.isScrolling.set=function(t){this._isScrolling!==t&&(this._isScrolling=t,this.apply())},e.prototype.apply=function(){this._isScrolling?(this.addClass(_r.SHADOW),this.scroll()):(this.removeClass(_r.SHADOW_RIGHT),this.removeClass(_r.SHADOW_LEFT),this.removeClass(_r.SHADOW))},e.prototype.scroll=function(){var t=this.node.scrollLeft,e=t<=16,r=this.node.scrollWidth-this.node.clientWidth-16,n=Math.abs(t)>=r,i="rtl"===document.documentElement.getAttribute("dir"),o=i?_r.SHADOW_RIGHT:_r.SHADOW_LEFT,s=i?_r.SHADOW_LEFT:_r.SHADOW_RIGHT;e?this.removeClass(o):this.addClass(o),n?this.removeClass(s):this.addClass(s)},e.prototype.resize=function(){this.isScrolling=this.node.scrollWidth>this.node.clientWidth+16;var t=this.getRect().height;this.setProperty("--tabs-list-height",t+"px"),this.ascend(Nr.LIST_HEIGHT,t)},e.prototype.dispose=function(){this.isScrolling=!1},Object.defineProperties(e.prototype,r),Object.defineProperties(e,n),e}(ee.core.Instance);ee.tab={TabPanel:Or,TabButton:mr,TabsGroup:Cr,TabsList:Ir,TabSelector:_r,TabEmission:Nr},ee.internals.register(ee.tab.TabSelector.PANEL,ee.tab.TabPanel),ee.internals.register(ee.tab.TabSelector.GROUP,ee.tab.TabsGroup),ee.internals.register(ee.tab.TabSelector.LIST,ee.tab.TabsList);var Lr={SCROLLABLE:ee.internals.ns.emission("table","scrollable"),CHANGE:ee.internals.ns.emission("table","change"),CAPTION_HEIGHT:ee.internals.ns.emission("table","captionheight")},Mr=function(t){function e(){t.apply(this,arguments)}t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e;var r={instanceClassName:{configurable:!0}};return r.instanceClassName.get=function(){return"Table"},e.prototype.init=function(){this.addAscent(Lr.CAPTION_HEIGHT,this.setCaptionHeight.bind(this))},e.prototype.setCaptionHeight=function(t){this.setProperty("--table-offset","calc("+t+"px + 1rem)")},Object.defineProperties(e,r),e}(ee.core.Instance),Dr={TABLE:ee.internals.ns.selector("table"),SHADOW:ee.internals.ns.selector("table__shadow"),SHADOW_LEFT:ee.internals.ns.selector("table__shadow--left"),SHADOW_RIGHT:ee.internals.ns.selector("table__shadow--right"),ELEMENT:ee.internals.ns.selector("table")+":not("+ee.internals.ns.selector("table--no-scroll")+") table",CAPTION:ee.internals.ns.selector("table")+" table caption"},xr=function(t){function e(){t.apply(this,arguments)}t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e;var r={isScrolling:{configurable:!0}},n={instanceClassName:{configurable:!0}};return n.instanceClassName.get=function(){return"TableElement"},e.prototype.init=function(){this.listen("scroll",this.scroll.bind(this)),this.content=this.querySelector("tbody"),this.isResizing=!0},r.isScrolling.get=function(){return this._isScrolling},r.isScrolling.set=function(t){this._isScrolling!==t&&(this._isScrolling=t,t?(this.addClass(Dr.SHADOW),this.scroll()):(this.removeClass(Dr.SHADOW),this.removeClass(Dr.SHADOW_LEFT),this.removeClass(Dr.SHADOW_RIGHT)))},e.prototype.scroll=function(){var t=this.node.scrollLeft<=8,e=this.content.offsetWidth-this.node.offsetWidth-8,r=Math.abs(this.node.scrollLeft)>=e,n="rtl"===document.documentElement.getAttribute("dir"),i=n?Dr.SHADOW_RIGHT:Dr.SHADOW_LEFT,o=n?Dr.SHADOW_LEFT:Dr.SHADOW_RIGHT;t?this.removeClass(i):this.addClass(i),r?this.removeClass(o):this.addClass(o)},e.prototype.resize=function(){this.isScrolling=this.content.offsetWidth>this.node.offsetWidth},e.prototype.dispose=function(){this.isScrolling=!1},Object.defineProperties(e.prototype,r),Object.defineProperties(e,n),e}(ee.core.Instance),Rr=function(t){function e(){t.apply(this,arguments)}t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e;var r={instanceClassName:{configurable:!0}};return r.instanceClassName.get=function(){return"TableCaption"},e.prototype.init=function(){this.height=0,this.isResizing=!0},e.prototype.resize=function(){var t=this.getRect().height;this.height!==t&&(this.height=t,this.ascend(Lr.CAPTION_HEIGHT,t))},Object.defineProperties(e,r),e}(ee.core.Instance);ee.table={Table:Mr,TableElement:xr,TableCaption:Rr,TableSelector:Dr},ee.internals.register(ee.table.TableSelector.TABLE,ee.table.Table),ee.internals.register(ee.table.TableSelector.ELEMENT,ee.table.TableElement),ee.internals.register(ee.table.TableSelector.CAPTION,ee.table.TableCaption);var kr={DISMISS:ee.internals.ns.event("dismiss")},Hr=function(t){function e(){t.apply(this,arguments)}t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e;var r={instanceClassName:{configurable:!0}};return r.instanceClassName.get=function(){return"TagDismissible"},e.prototype.init=function(){this.listenClick()},e.prototype.handleClick=function(){switch(this.focusClosest(),ee.mode){case ee.Modes.ANGULAR:case ee.Modes.REACT:case ee.Modes.VUE:this.request(this.verify.bind(this));break;default:this.remove()}this.dispatch(kr.DISMISS)},e.prototype.verify=function(){document.body.contains(this.node)&&this.warn("a TagDismissible has just been dismissed and should be removed from the dom. In "+ee.mode+" mode, the api doesn't handle dom modification. An event "+kr.DISMISS+" is dispatched by the element to trigger the removal")},Object.defineProperties(e,r),e}(ee.core.Instance),Gr={PRESSABLE:ee.internals.ns.selector("tag")+"[aria-pressed]",DISMISSIBLE:""+ee.internals.ns.selector("tag--dismiss")};ee.tag={TagDismissible:Hr,TagSelector:Gr,TagEvent:kr},ee.internals.register(ee.tag.TagSelector.PRESSABLE,ee.core.Toggle),ee.internals.register(ee.tag.TagSelector.DISMISSIBLE,ee.tag.TagDismissible);var $r=ee.internals.ns.selector("transcription"),Fr={TRANSCRIPTION:$r,BUTTON:$r+"__btn"},Ur=function(t){function e(){t.apply(this,arguments)}t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e;var r={collapsePrimary:{configurable:!0}},n={instanceClassName:{configurable:!0}};return n.instanceClassName.get=function(){return"Transcription"},r.collapsePrimary.get=function(){return this.element.children.map((function(t){return t.getInstance("CollapseButton")})).filter((function(t){return null!==t&&t.hasClass(Fr.BUTTON)}))[0]},Object.defineProperties(e.prototype,r),Object.defineProperties(e,n),e}(ee.core.Instance);ee.transcription={Transcription:Ur,TranscriptionSelector:Fr},ee.internals.register(ee.transcription.TranscriptionSelector.TRANSCRIPTION,ee.transcription.Transcription);var zr=function(t){function e(){t.apply(this,arguments)}t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e;var r={instanceClassName:{configurable:!0}};return r.instanceClassName.get=function(){return"TileDownload"},e.prototype.init=function(){var t=this;this.addAscent(ee.core.AssessEmission.UPDATE,(function(e){t.descend(ee.core.AssessEmission.UPDATE,e)})),this.addAscent(ee.core.AssessEmission.ADDED,(function(){t.descend(ee.core.AssessEmission.ADDED)}))},Object.defineProperties(e,r),e}(ee.core.Instance),Br={DOWNLOAD:ee.internals.ns.selector("tile--download"),DOWNLOAD_DETAIL:ee.internals.ns.selector("tile--download")+" "+ee.internals.ns.selector("tile__detail")};ee.tile={TileSelector:Br,TileDownload:zr},ee.internals.register(ee.tile.TileSelector.DOWNLOAD,ee.tile.TileDownload),ee.internals.register(ee.tile.TileSelector.DOWNLOAD_DETAIL,ee.core.AssessDetail);var Wr={RANGE:ee.internals.ns.selector("range"),RANGE_SM:ee.internals.ns.selector("range--sm"),RANGE_STEP:ee.internals.ns.selector("range--step"),RANGE_DOUBLE:ee.internals.ns.selector("range--double"),RANGE_DOUBLE_STEP:ee.internals.ns.selector("range--double")+ee.internals.ns.selector("range--step"),RANGE_INPUT:ee.internals.ns.selector("range input[type=range]:nth-of-type(1)"),RANGE_INPUT2:ee.internals.ns.selector("range--double")+" input[type=range]:nth-of-type(2)",RANGE_OUTPUT:ee.internals.ns.selector("range__output"),RANGE_MIN:ee.internals.ns.selector("range__min"),RANGE_MAX:ee.internals.ns.selector("range__max"),RANGE_PREFIX:ee.internals.ns.attr("prefix"),RANGE_SUFFIX:ee.internals.ns.attr("suffix")},qr={VALUE:ee.internals.ns.emission("range","value"),VALUE2:ee.internals.ns.emission("range","value2"),OUTPUT:ee.internals.ns.emission("range","output"),CONSTRAINTS:ee.internals.ns.emission("range","constraints"),MIN:ee.internals.ns.emission("range","min"),MAX:ee.internals.ns.emission("range","max"),STEP:ee.internals.ns.emission("range","step"),PREFIX:ee.internals.ns.emission("range","prefix"),SUFFIX:ee.internals.ns.emission("range","suffix"),DISABLED:ee.internals.ns.emission("range","disabled"),ENABLE_POINTER:ee.internals.ns.emission("range","enable_pointer")},Kr=function(){this._width=0,this._min=0,this._max=0,this._value=0,this._thumbSize=24,this._innerWidth=0,this._prefix="",this._suffix="",this._background={}},Vr={width:{configurable:!0},isSm:{configurable:!0},textValue:{configurable:!0},value:{configurable:!0},outputX:{configurable:!0},min:{configurable:!0},textMin:{configurable:!0},max:{configurable:!0},textMax:{configurable:!0},step:{configurable:!0},output:{configurable:!0},progress:{configurable:!0}};Kr.prototype.configure=function(t){t&&(this._prefix=t._prefix,this._suffix=t._suffix,this._width=t.width,this.setConstraints(t._constraints),this.value=t.value,this.update())},Kr.prototype.setPrefix=function(t){this._prefix=null!==t?t:""},Kr.prototype.setSuffix=function(t){this._suffix=null!==t?t:""},Kr.prototype._decorate=function(t){return""+this._prefix+t+this._suffix},Vr.width.get=function(){return this._width},Vr.width.set=function(t){this._width=t},Vr.isSm.get=function(){return this._isSm},Vr.isSm.set=function(t){this._isSm!==t&&(this._isSm=t,this.setThumbSize(t?16:24),this.update())},Kr.prototype.setThumbSize=function(t,e){void 0===e&&(e=1),this._thumbSize=t,this._innerPadding=t*e},Vr.textValue.get=function(){return this._decorate(this._value)},Vr.value.get=function(){return this._value},Vr.value.set=function(t){this._value=t},Vr.outputX.get=function(){return this._outputX},Kr.prototype.setConstraints=function(t){this._constraints=t,this._min=t.min,this._max=t.max,this._step=t.step,this._rangeWidth=t.rangeWidth},Vr.min.get=function(){return this._min},Vr.textMin.get=function(){return this._decorate(this._min)},Vr.max.get=function(){return this._max},Vr.textMax.get=function(){return this._decorate(this._max)},Vr.step.get=function(){return this._step},Vr.output.get=function(){return{text:this.textValue,transform:"translateX("+this._translateX+"px) translateX(-"+this._centerPercent+"%)"}},Kr.prototype._getRatio=function(t){return(t-this._min)/this._rangeWidth},Vr.progress.get=function(){return this._progress},Kr.prototype.update=function(){this._update()},Kr.prototype._update=function(){this._innerWidth=this._width-this._innerPadding;var t=this._getRatio(this._value);this._translateX=t*this._width,this._centerPercent=100*t,this._progress={right:(this._innerWidth*t+.5*this._innerPadding).toFixed(2)+"px"}},Object.defineProperties(Kr.prototype,Vr);var Yr=function(t){function e(){t.apply(this,arguments)}t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e;var r={stepWidth:{configurable:!0}};return r.stepWidth.get=function(){return this._stepWidth.toFixed(3)+"px"},e.prototype._update=function(){t.prototype._update.call(this);var e=this._rangeWidth/this._step;for(this._stepWidth=this._innerWidth/e;this._stepWidth<4;)this._stepWidth*=2},Object.defineProperties(e.prototype,r),e}(Kr),Xr=function(t){function e(){t.apply(this,arguments)}t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e;var r={value2:{configurable:!0},textValue:{configurable:!0}};return r.value2.get=function(){return this._value},r.value2.set=function(t){this._value2!==t&&(this._value2=t,this.update())},r.textValue.get=function(){return this._decorate(this._value)+" - "+this._decorate(this._value2)},e.prototype.setThumbSize=function(e){t.prototype.setThumbSize.call(this,e,2)},e.prototype._update=function(){t.prototype._update.call(this);var e=this._getRatio(.5*(this._value+this._value2));this._translateX=e*this._width,this._centerPercent=100*e;var r=this._getRatio(this._value),n=this._getRatio(this._value2);this._progress={left:(this._innerWidth*r+.25*this._innerPadding).toFixed(2)+"px",right:(this._innerWidth*n+.75*this._innerPadding).toFixed(2)+"px"}},Object.defineProperties(e.prototype,r),e}(Kr),Qr=function(t){function e(){t.apply(this,arguments)}t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e;var r={stepWidth:{configurable:!0}};return r.stepWidth.get=function(){return this._stepWidth.toFixed(3)+"px"},e.prototype._update=function(){t.prototype._update.call(this);var e=this._rangeWidth/this._step;this._stepWidth=this._innerWidth/e,this._stepWidth<4&&(this._stepWidth*=Math.ceil(4/this._stepWidth))},Object.defineProperties(e.prototype,r),e}(Xr),Jr="step",Zr="double",tn="double-step",en="default",rn=function(t){function e(){t.apply(this,arguments)}t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e;var r={type:{configurable:!0}},n={instanceClassName:{configurable:!0}};return n.instanceClassName.get=function(){return"Range"},e.prototype.init=function(){this._retrieveType(),this._retrieveSize(),this.isLegacy?(this.isResizing=!0,this.isMouseMoving=!0):(this._observer=new ResizeObserver(this.resize.bind(this)),this._observer.observe(this.node)),this.addAscent(qr.CONSTRAINTS,this.setConstraints.bind(this)),this.addAscent(qr.VALUE,this.setValue.bind(this)),this.addAscent(qr.VALUE2,this.setValue2.bind(this)),this.getAttribute(Wr.RANGE_PREFIX)&&this.setPrefix(this.getAttribute(Wr.RANGE_PREFIX)),this.getAttribute(Wr.RANGE_SUFFIX)&&this.setSuffix(this.getAttribute(Wr.RANGE_SUFFIX)),this.update()},e.prototype._retrieveType=function(){switch(!0){case this.matches(Wr.RANGE_DOUBLE_STEP):case this.matches(Wr.RANGE_DOUBLE):this.type=Zr;break;case this.matches(Wr.RANGE_STEP):this.type=Jr;break;default:this.type=en}},r.type.set=function(t){if(this._type!==t){this._type=t;var e=this._model;switch(this._type){case tn:this._model=new Qr;break;case Zr:this._model=new Xr;break;case Jr:this._model=new Yr;break;default:this._model=new Kr}this._model.configure(e)}},r.type.get=function(){return this._type},e.prototype._retrieveSize=function(){this._model.isSm=this.matches(Wr.RANGE_SM)},e.prototype.resize=function(){this._retrieveWidth(),this.update()},e.prototype._retrieveWidth=function(){this._model.width=this.getRect().width},e.prototype.setValue=function(t){switch(this._model.value=t,this._type){case tn:case Zr:this.descend(qr.VALUE,t)}this.update()},e.prototype.setValue2=function(t){this._model.value2=t,this.descend(qr.VALUE2,t),this.update()},e.prototype.setConstraints=function(t){this._model.setConstraints(t),this.update(),this.descend(qr.CONSTRAINTS,t)},e.prototype.setPrefix=function(t){this._model.setPrefix(t),this.update()},e.prototype.setSuffix=function(t){this._model.setSuffix(t),this.update()},e.prototype.mutate=function(t){switch(!0){case t.includes("class"):this._retrieveType(),this._retrieveSize();break;case t.includes(Wr.RANGE_PREFIX):case t.includes(Wr.RANGE_SUFFIX):this._model.setPrefix(this.getAttribute(Wr.RANGE_PREFIX)),this._model.setSuffix(this.getAttribute(Wr.RANGE_SUFFIX)),this.update()}},e.prototype.update=function(){this._model.update(),this.descend(qr.OUTPUT,this._model.output),this.descend(qr.MIN,this._model.textMin),this.descend(qr.MAX,this._model.textMax);var t=this._model.progress;t.left?this.style.setProperty("--progress-left",t.left):this.style.removeProperty("--progress-left"),t.right?(this.style.setProperty("--progress-right",t.right),this.isLegacy&&t.left&&(this.style.setProperty("background-position-x",t.left),this.style.setProperty("background-size",parseFloat(t.right)-parseFloat(t.left)+"px "+(this._model.isSm?"8px":"12px")))):(this.style.removeProperty("--progress-right"),this.isLegacy&&(this.style.removeProperty("background-size"),this.style.removeProperty("background-position-x"))),this._model.stepWidth?this.style.setProperty("--step-width",this._model.stepWidth):this.style.removeProperty("--step-width")},e.prototype.mouseMove=function(t){if(this._type===Zr||this._type===tn){var e=t.x-this.getRect().left;this.descend(qr.ENABLE_POINTER,(parseFloat(this._model.progress.right)-parseFloat(this._model.progress.left))/2+parseFloat(this._model.progress.left)t&&(this.node.value=t,this.change())},e.prototype.change=function(){this.ascend(qr.VALUE,parseFloat(this.node.value))},e.prototype.mutate=function(t){t.includes("disabled")&&this.ascend(qr.DISABLED,this.node.disabled),(t.includes("min")||t.includes("max")||t.includes("step"))&&(this.ascend(qr.CONSTRAINTS,new nn(this.node)),this.change())},e.prototype.dispose=function(){this._listenerType&&this.unlisten(this._listenerType,this._changing)},Object.defineProperties(e,r),e}(ee.core.Instance),an=function(t){function e(){t.apply(this,arguments)}t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e;var r={instanceClassName:{configurable:!0}};return r.instanceClassName.get=function(){return"RangeInput2"},e.prototype._init=function(){this._pointerId=2,this.addDescent(qr.CONSTRAINTS,this.setConstraints.bind(this)),this.addDescent(qr.VALUE,this.setValue.bind(this))},e.prototype.setValue=function(t){parseFloat(this.node.value)2?arguments[2]:[];if(!1===i(t))throw new TypeError(Object.prototype.toString.call(t)+"is not a function.");return t.apply(e,r)}function n(t,e){return t[e]}function i(t){return"function"==typeof t}function o(t){if(null===t||t===e)throw TypeError();return Object(t)}function s(t,r){var n=function(t,e){return o(t)[e]}(t,r);if(null===n||n===e)return e;if(!1===i(n))throw new TypeError("Method not callable: "+r);return n}function a(e){switch(typeof e){case"undefined":return"undefined";case"boolean":return"boolean";case"number":return"number";case"string":return"string";case"symbol":return"symbol";default:return null===e?"null":"Symbol"in t&&(e instanceof t.Symbol||e.constructor===t.Symbol)?"symbol":"object"}}function c(t,e){return a(t)===a(e)&&("number"===a(t)?!(!isNaN(t)||!isNaN(e))||1/t==1/0&&1/e==-1/0||1/t==-1/0&&1/e==1/0||t===e:function(t,e){return t===e}(t,e))}function l(t){if("symbol"===a(t))throw new TypeError("Cannot convert a Symbol value to a number");var e=Number(t);return isNaN(e)?0:1/e==1/0||1/e==-1/0||e===1/0||e===-1/0?e:(e<0?-1:1)*Math.floor(Math.abs(e))}function u(o){var c=arguments.length>1?arguments[1]:e;if("object"===a(o)){if(arguments.length<2)var l="default";else c===String?l="string":c===Number&&(l="number");var u="function"==typeof t.Symbol&&"symbol"==typeof t.Symbol.toPrimitive?s(o,t.Symbol.toPrimitive):e;if(u!==e){var p=r(u,o,[l]);if("object"!==a(p))return p;throw new TypeError("Cannot convert exotic object to primitive.")}return"default"===l&&(l="number"),function(t,e){if("string"===e)var o=["toString","valueOf"];else o=["valueOf","toString"];for(var s=0;s=0)var s=i;else(s=r+i)<0&&(s=0);for(;s=c)for(;c>>0,"object"==typeof t[n]?t[n].baseVal=o.join(" "):t[n]=o.join(" "),u())},i.remove=function(){p.apply(i,e=arguments);for(var e,r={},c=0,l=[];c>>0,"object"==typeof t[n]?t[n].baseVal=o.join(" "):t[n]=o.join(" "),u()},i.toggle=function(t,r){return p.apply(i,[t]),e!==r?r?(i.add(t),!0):(i.remove(t),!1):s[t]?(i.remove(t),!1):(i.add(t),!0)},i.forEach=Array.prototype.forEach,i}}();"DOMTokenList"in(r=t)&&r.DOMTokenList&&(!document.createElementNS||!document.createElementNS("http://www.w3.org/2000/svg","svg")||document.createElementNS("http://www.w3.org/2000/svg","svg").classList instanceof DOMTokenList)||(r.DOMTokenList=n),function(){var t=document.createElement("span");"classList"in t&&(t.classList.toggle("x",!1),t.classList.contains("x")&&(t.classList.constructor.prototype.toggle=function(t){var r=arguments[1];if(r===e){var n=!this.contains(t);return this[n?"add":"remove"](t),n}return r=!!r,this[r?"add":"remove"](t),r}))}(),function(){var t=document.createElement("span");if("classList"in t&&(t.classList.add("a","b"),!t.classList.contains("b"))){var e=t.classList.constructor.prototype.add;t.classList.constructor.prototype.add=function(){for(var t=arguments,r=arguments.length,n=0;n2?arguments[2]:[];if(!1===o(t))throw new TypeError(Object.prototype.toString.call(t)+"is not a function.");return t.apply(e,r)}function n(t,e,r){var n={value:r,writable:!0,enumerable:!1,configurable:!0};Object.defineProperty(t,e,n)}function i(t,e){return t[e]}function o(t){return"function"==typeof t}function s(t){if(null===t||t===e)throw TypeError();return Object(t)}function a(t,r){var n=function(t,e){return s(t)[e]}(t,r);if(null===n||n===e)return e;if(!1===o(n))throw new TypeError("Method not callable: "+r);return n}function c(e){switch(typeof e){case"undefined":return"undefined";case"boolean":return"boolean";case"number":return"number";case"string":return"string";case"symbol":return"symbol";default:return null===e?"null":"Symbol"in t&&(e instanceof t.Symbol||e.constructor===t.Symbol)?"symbol":"object"}}function l(t,e){return c(t)===c(e)&&("number"===c(t)?!(!isNaN(t)||!isNaN(e))||1/t==1/0&&1/e==-1/0||1/t==-1/0&&1/e==1/0||t===e:function(t,e){return t===e}(t,e))}function u(t){if("symbol"===c(t))throw new TypeError("Cannot convert a Symbol value to a number");var e=Number(t);return isNaN(e)?0:1/e==1/0||1/e==-1/0||e===1/0||e===-1/0?e:(e<0?-1:1)*Math.floor(Math.abs(e))}function p(n){var s=arguments.length>1?arguments[1]:e;if("object"===c(n)){if(arguments.length<2)var l="default";else s===String?l="string":s===Number&&(l="number");var u="function"==typeof t.Symbol&&"symbol"==typeof t.Symbol.toPrimitive?a(n,t.Symbol.toPrimitive):e;if(u!==e){var p=r(u,n,[l]);if("object"!==c(p))return p;throw new TypeError("Cannot convert exotic object to primitive.")}return"default"===l&&(l="number"),function(t,e){if("string"===e)var n=["toString","valueOf"];else n=["valueOf","toString"];for(var s=0;s=0&&"[object Function]"===n.call(t.callee)),r}(i),u="[object String]"===n.call(i),h=[];if(i===e||null===i)throw new TypeError("Cannot convert undefined or null to object");var f=s&&c;if(u&&i.length>0&&!r.call(i,0))for(var d=0;d0)for(var y=0;y=0)var o=n;else(o=r+n)<0&&(o=0);for(;ot&&(n.length=t)}var n=x(t),i=0;return function(t,e){n[i++]=t,n[i++]=e,2===i&&rt.nextTick(r)}}function p(t,e){var r,n,s,a,c=0;if(!t)throw h(V);var u=t[rt[$][F]];if(i(u))n=u.call(t);else{if(!i(t.next)){if(o(t,x)){for(r=t.length;cMath.pow(2,32)-1)throw new RangeError("Invalid array length");var e=[];return e.length=t,e}function n(t,e){var r=arguments.length>2?arguments[2]:[];if(!1===c(t))throw new TypeError(Object.prototype.toString.call(t)+"is not a function.");return t.apply(e,r)}function i(t,e,r){var n={value:r,writable:!0,enumerable:!0,configurable:!0};try{return Object.defineProperty(t,e,n),!0}catch(t){return!1}}function o(t,e,r){var n=i(t,e,r);if(!n)throw new TypeError("Cannot assign value `"+Object.prototype.toString.call(r)+"` to property `"+Object.prototype.toString.call(e)+"` on object `"+Object.prototype.toString.call(t)+"`");return n}function s(t,e,r){var n={value:r,writable:!0,enumerable:!1,configurable:!0};Object.defineProperty(t,e,n)}function a(t,e){return t[e]}function c(t){return"function"==typeof t}function l(t){if(null===t||t===e)throw TypeError();return Object(t)}function u(t,e){return l(t)[e]}function p(t,r){var n=u(t,r);if(null===n||n===e)return e;if(!1===c(n))throw new TypeError("Method not callable: "+r);return n}function h(e){switch(typeof e){case"undefined":return"undefined";case"boolean":return"boolean";case"number":return"number";case"string":return"string";case"symbol":return"symbol";default:return null===e?"null":"Symbol"in t&&(e instanceof t.Symbol||e.constructor===t.Symbol)?"symbol":"object"}}var f;function d(t,e){if("boolean"!==h(e))throw new Error;var r={};return i(r,"value",t),i(r,"done",e),r}function y(t,e){var r=arguments[2]||{},n=function(t,e){var r=a(t,"prototype");return"object"!==h(r)&&(r=e),r}(t,e),i=Object.create(n);for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&Object.defineProperty(i,o,{configurable:!0,enumerable:!1,writable:!0,value:r[o]});return i}function b(t){return"object"===h(t)&&"function"==typeof t&&!!t.prototype}function g(t){var e=arguments.length>2?arguments[2]:t,r=arguments.length>1?arguments[1]:[];if(!b(t))throw new TypeError("F must be a constructor.");if(!b(e))throw new TypeError("newTarget must be a constructor.");return e===t?new(Function.prototype.bind.apply(t,[null].concat(r))):n(t,y(e,Object.prototype),r)}function v(t,r){if("object"!==h(t["[[Iterator]]"]))throw new Error(Object.prototype.toString.call(t["[[Iterator]]"])+"is not an Object.");var i=t["[[Iterator]]"],o=p(i,"return");if(o===e)return r;try{var s=n(o,i)}catch(t){var a=t}if(r)return r;if(a)throw a;if("object"!==h(s))throw new TypeError("Iterator's return method returned a non-object.");return r}function m(t){if("object"!==h(t))throw new Error(Object.prototype.toString.call(t)+"is not an Object.");return e=a(t,"done"),Boolean(e);var e}function _(t){var e=function(t){if(arguments.length<2)var e=n(t["[[NextMethod]]"],t["[[Iterator]]"]);else e=n(t["[[NextMethod]]"],t["[[Iterator]]"],[arguments[1]]);if("object"!==h(e))throw new TypeError("bad iterator");return e}(t);return!0!==m(e)&&e}function w(t){if("object"!==h(t))throw new Error(Object.prototype.toString.call(t)+"is not an Object.");return a(t,"value")}function S(t,e){return h(t)===h(e)&&("number"===h(t)?!(!isNaN(t)||!isNaN(e))||1/t==1/0&&1/e==-1/0||1/t==-1/0&&1/e==1/0||t===e:function(t,e){return t===e}(t,e))}function E(t){if("symbol"===h(t))throw new TypeError("Cannot convert a Symbol value to a number");var e=Number(t);return isNaN(e)?0:1/e==1/0||1/e==-1/0||e===1/0||e===-1/0?e:(e<0?-1:1)*Math.floor(Math.abs(e))}function O(t){var e=E(t);return e<=0?0:Math.min(e,Math.pow(2,53)-1)}function j(r){var i=arguments.length>1?arguments[1]:e;if("object"===h(r)){if(arguments.length<2)var o="default";else i===String?o="string":i===Number&&(o="number");var s="function"==typeof t.Symbol&&"symbol"==typeof t.Symbol.toPrimitive?p(r,t.Symbol.toPrimitive):e;if(s!==e){var l=n(s,r,[o]);if("object"!==h(l))return l;throw new TypeError("Cannot convert exotic object to primitive.")}return"default"===o&&(o="number"),function(t,e){if("string"===e)var r=["toString","valueOf"];else r=["valueOf","toString"];for(var i=0;i1?arguments[1]:p(t,Symbol.iterator),t);if("object"!==h(e))throw new TypeError("bad iterator");var r=u(e,"next"),i=Object.create(null);return i["[[Iterator]]"]=e,i["[[NextMethod]]"]=r,i["[[Done]]"]=!1,i}s(Object,"keys",function(){function t(){var t;try{t=Object.create({})}catch(t){return!0}return i.call(t,"__proto__")}var r=Object.prototype.hasOwnProperty,n=Object.prototype.toString,i=Object.prototype.propertyIsEnumerable,o=!i.call({toString:null},"toString"),s=i.call((function(){}),"prototype"),a=["toString","toLocaleString","valueOf","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","constructor"],c=function(t){var e=t.constructor;return e&&e.prototype===t},l={$console:!0,$external:!0,$frame:!0,$frameElement:!0,$frames:!0,$innerHeight:!0,$innerWidth:!0,$outerHeight:!0,$outerWidth:!0,$pageXOffset:!0,$pageYOffset:!0,$parent:!0,$scrollLeft:!0,$scrollTop:!0,$scrollX:!0,$scrollY:!0,$self:!0,$webkitIndexedDB:!0,$webkitStorageInfo:!0,$window:!0},u=function(){if("undefined"==typeof window)return!1;for(var t in window)try{if(!l["$"+t]&&r.call(window,t)&&null!==window[t]&&"object"==typeof window[t])try{c(window[t])}catch(t){return!0}}catch(t){return!0}return!1}(),p=function(t){if("undefined"==typeof window||!u)return c(t);try{return c(t)}catch(t){return!1}};return function(i){var c="[object Function]"===n.call(i),l=function(t){var e=n.call(t),r="[object Arguments]"===e;return r||(r="[object Array]"!==e&&null!==t&&"object"==typeof t&&"number"==typeof t.length&&t.length>=0&&"[object Function]"===n.call(t.callee)),r}(i),u="[object String]"===n.call(i),h=[];if(i===e||null===i)throw new TypeError("Cannot convert undefined or null to object");var f=s&&c;if(u&&i.length>0&&!r.call(i,0))for(var d=0;d0)for(var y=0;y=0)var i=n;else(i=r+n)<0&&(i=0);for(;i0?arguments[0]:e;if(null===i||i===e)return r;var o=r.set;if(!c(o))throw new TypeError("Map.prototype.set is not a function");try{for(var s=P(i);;){var a=_(s);if(!1===a)return r;var l=w(a);if("object"!==h(l))try{throw new TypeError("Iterator value "+l+" is not an entry object")}catch(t){return v(s,t)}try{var u=l[0],p=l[1];o.call(r,u,p)}catch(t){return v(s,t)}}}catch(t){if(Array.isArray(i)||"[object Arguments]"===Object.prototype.toString.call(i)||i.callee){var f,d=i.length;for(f=0;f0?arguments[0]:e;if(null===i||i===e)return r;var o=r.add;if(!c(o))throw new TypeError("Set.prototype.add is not a function");try{for(var s=P(i);;){var a=_(s);if(!1===a)return r;var l=w(a);try{o.call(r,l)}catch(t){return v(s,t)}}}catch(t){if(!Array.isArray(i)&&"[object Arguments]"!==Object.prototype.toString.call(i)&&!i.callee)throw t;var u,p=i.length;for(u=0;u1?arguments[1]:e;if(h===e)var f=!1;else{if(!1===c(h))throw new TypeError(Object.prototype.toString.call(h)+" is not a function.");var d=arguments.length>2?arguments[2]:e;if(d!==e)var y=d;else y=e;f=!0}var m=p(i,Symbol.iterator);if(m!==e){if(b(s))var S=g(s);else S=r(0);for(var E=P(i,m),j=0;;){if(j>=Math.pow(2,53)-1)return v(E,new TypeError("Iteration count can not be greater than or equal 9007199254740991."));var A=T(j),N=_(E);if(!1===N)return S.length=j,S;var C=w(N);if(f)try{var I=n(h,y,[C,j])}catch(t){return v(E,t)}else I=C;try{o(S,A,I)}catch(t){return v(E,t)}j+=1}}if(t(i))var L=u.call(i,/[\uD800-\uDBFF][\uDC00-\uDFFF]?|[^\uD800-\uDFFF]|./g)||[];else L=l(i);var M=O(a(L,"length"));for(S=b(s)?g(s,[M]):r(M),j=0;jMath.pow(2,32)-1)throw new RangeError("Invalid array length");var e=[];return e.length=t,e}function n(t,e){var r=arguments.length>2?arguments[2]:[];if(!1===c(t))throw new TypeError(Object.prototype.toString.call(t)+"is not a function.");return t.apply(e,r)}function i(t,e,r){var n=function(t,e,r){var n={value:r,writable:!0,enumerable:!0,configurable:!0};try{return Object.defineProperty(t,e,n),!0}catch(t){return!1}}(t,e,r);if(!n)throw new TypeError("Cannot assign value `"+Object.prototype.toString.call(r)+"` to property `"+Object.prototype.toString.call(e)+"` on object `"+Object.prototype.toString.call(t)+"`");return n}function o(t,e){return t[e]}function s(t,e){return e in t}function a(t){return"[object Array]"===Object.prototype.toString.call(t)}function c(t){return"function"==typeof t}function l(t){if(null===t||t===e)throw TypeError();return Object(t)}function u(t,r){var n=function(t,e){return l(t)[e]}(t,r);if(null===n||n===e)return e;if(!1===c(n))throw new TypeError("Method not callable: "+r);return n}function p(e){switch(typeof e){case"undefined":return"undefined";case"boolean":return"boolean";case"number":return"number";case"string":return"string";case"symbol":return"symbol";default:return null===e?"null":"Symbol"in t&&(e instanceof t.Symbol||e.constructor===t.Symbol)?"symbol":"object"}}function h(t,e){var r=arguments[2]||{},n=function(t,e){var r=o(t,"prototype");return"object"!==p(r)&&(r=e),r}(t,e),i=Object.create(n);for(var s in r)Object.prototype.hasOwnProperty.call(r,s)&&Object.defineProperty(i,s,{configurable:!0,enumerable:!1,writable:!0,value:r[s]});return i}function f(t){return"object"===p(t)&&"function"==typeof t&&!!t.prototype}function d(i,s){if(0===s&&1/s==-1/0&&(s=0),!1===a(i))return r(s);var c=o(i,"constructor");if("object"===p(c)&&null===(c="Symbol"in t&&"species"in t.Symbol?o(c,t.Symbol.species):e)&&(c=e),c===e)return r(s);if(!f(c))throw new TypeError("C must be a constructor");return function(t){var e=arguments.length>2?arguments[2]:t,r=arguments.length>1?arguments[1]:[];if(!f(t))throw new TypeError("F must be a constructor.");if(!f(e))throw new TypeError("newTarget must be a constructor.");return e===t?new(Function.prototype.bind.apply(t,[null].concat(r))):n(t,h(e,Object.prototype),r)}(c,[s])}function y(t){if("symbol"===p(t))throw new TypeError("Cannot convert a Symbol value to a number");var e=Number(t);return isNaN(e)?0:1/e==1/0||1/e==-1/0||e===1/0||e===-1/0?e:(e<0?-1:1)*Math.floor(Math.abs(e))}function b(t){var e=y(t);return e<=0?0:Math.min(e,Math.pow(2,53)-1)}function g(r){var i=arguments.length>1?arguments[1]:e;if("object"===p(r)){if(arguments.length<2)var s="default";else i===String?s="string":i===Number&&(s="number");var a="function"==typeof t.Symbol&&"symbol"==typeof t.Symbol.toPrimitive?u(r,t.Symbol.toPrimitive):e;if(a!==e){var l=n(a,r,[s]);if("object"!==p(l))return l;throw new TypeError("Cannot convert exotic object to primitive.")}return"default"===s&&(s="number"),function(t,e){if("string"===e)var r=["toString","valueOf"];else r=["valueOf","toString"];for(var i=0;i0&&(_=a(g)),!0===_)f=m(t,g,b(o(g,"length")),f,l-1);else{if(f>=Math.pow(2,53)-1)throw new TypeError("targetIndex is greater than or equal to 2^53-1");i(t,v(f),g),f+=1}}d+=1}return f}var _,w,S,E;_=Array.prototype,w="flat",S=function(){var t=arguments[0],e=l(this),r=b(o(e,"length")),n=1;void 0!==t&&(n=y(t));var i=d(e,0);return m(i,e,r,0,n),i},E={value:S,writable:!0,enumerable:!1,configurable:!0},Object.defineProperty(_,w,E)}("object"==typeof window&&window||"object"==typeof self&&self||"object"==typeof global&&global||{}),function(t,e){function r(t,e){var r=arguments.length>2?arguments[2]:[];if(!1===o(t))throw new TypeError(Object.prototype.toString.call(t)+"is not a function.");return t.apply(e,r)}function n(t,e,r){var n={value:r,writable:!0,enumerable:!1,configurable:!0};Object.defineProperty(t,e,n)}function i(t,e){return t[e]}function o(t){return"function"==typeof t}function s(t){if(null===t||t===e)throw TypeError();return Object(t)}function a(t,r){var n=function(t,e){return s(t)[e]}(t,r);if(null===n||n===e)return e;if(!1===o(n))throw new TypeError("Method not callable: "+r);return n}function c(e){switch(typeof e){case"undefined":return"undefined";case"boolean":return"boolean";case"number":return"number";case"string":return"string";case"symbol":return"symbol";default:return null===e?"null":"Symbol"in t&&(e instanceof t.Symbol||e.constructor===t.Symbol)?"symbol":"object"}}function l(n){var s=arguments.length>1?arguments[1]:e;if("object"===c(n)){if(arguments.length<2)var l="default";else s===String?l="string":s===Number&&(l="number");var u="function"==typeof t.Symbol&&"symbol"==typeof t.Symbol.toPrimitive?a(n,t.Symbol.toPrimitive):e;if(u!==e){var p=r(u,n,[l]);if("object"!==c(p))return p;throw new TypeError("Cannot convert exotic object to primitive.")}return"default"===l&&(l="number"),function(t,e){if("string"===e)var n=["toString","valueOf"];else n=["valueOf","toString"];for(var s=0;s=0&&"[object Function]"===n.call(t.callee)),r}(i),u="[object String]"===n.call(i),h=[];if(i===e||null===i)throw new TypeError("Cannot convert undefined or null to object");var f=s&&c;if(u&&i.length>0&&!r.call(i,0))for(var d=0;d0)for(var y=0;y2?arguments[2]:[];if(!1===o(t))throw new TypeError(Object.prototype.toString.call(t)+"is not a function.");return t.apply(e,r)}function n(t,e,r){var n={value:r,writable:!0,enumerable:!1,configurable:!0};Object.defineProperty(t,e,n)}function i(t,e){return t[e]}function o(t){return"function"==typeof t}function s(t){if(null===t||t===e)throw TypeError();return Object(t)}function a(t,r){var n=function(t,e){return s(t)[e]}(t,r);if(null===n||n===e)return e;if(!1===o(n))throw new TypeError("Method not callable: "+r);return n}function c(e){switch(typeof e){case"undefined":return"undefined";case"boolean":return"boolean";case"number":return"number";case"string":return"string";case"symbol":return"symbol";default:return null===e?"null":"Symbol"in t&&(e instanceof t.Symbol||e.constructor===t.Symbol)?"symbol":"object"}}function l(n){var s=arguments.length>1?arguments[1]:e;if("object"===c(n)){if(arguments.length<2)var l="default";else s===String?l="string":s===Number&&(l="number");var u="function"==typeof t.Symbol&&"symbol"==typeof t.Symbol.toPrimitive?a(n,t.Symbol.toPrimitive):e;if(u!==e){var p=r(u,n,[l]);if("object"!==c(p))return p;throw new TypeError("Cannot convert exotic object to primitive.")}return"default"===l&&(l="number"),function(t,e){if("string"===e)var n=["toString","valueOf"];else n=["valueOf","toString"];for(var s=0;s=0&&"[object Function]"===n.call(t.callee)),r}(i),u="[object String]"===n.call(i),h=[];if(i===e||null===i)throw new TypeError("Cannot convert undefined or null to object");var f=s&&c;if(u&&i.length>0&&!r.call(i,0))for(var d=0;d0)for(var y=0;y2?arguments[2]:[];if(!1===s(t))throw new TypeError(Object.prototype.toString.call(t)+"is not a function.");return t.apply(e,r)}function n(t,e,r){var n=function(t,e,r){var n={value:r,writable:!0,enumerable:!0,configurable:!0};try{return Object.defineProperty(t,e,n),!0}catch(t){return!1}}(t,e,r);if(!n)throw new TypeError("Cannot assign value `"+Object.prototype.toString.call(r)+"` to property `"+Object.prototype.toString.call(e)+"` on object `"+Object.prototype.toString.call(t)+"`");return n}function i(t,e,r){var n={value:r,writable:!0,enumerable:!1,configurable:!0};Object.defineProperty(t,e,n)}function o(t,e){return t[e]}function s(t){return"function"==typeof t}function a(t){if(null===t||t===e)throw TypeError(Object.prototype.toString.call(t)+" is not coercible to Object.");return t}function c(t){return Boolean(t)}function l(t){if(null===t||t===e)throw TypeError();return Object(t)}function u(t,e){return l(t)[e]}function p(t,r){var n=u(t,r);if(null===n||n===e)return e;if(!1===s(n))throw new TypeError("Method not callable: "+r);return n}function h(e){switch(typeof e){case"undefined":return"undefined";case"boolean":return"boolean";case"number":return"number";case"string":return"string";case"symbol":return"symbol";default:return null===e?"null":"Symbol"in t&&(e instanceof t.Symbol||e.constructor===t.Symbol)?"symbol":"object"}}function f(t,n){if("object"!==h(t["[[Iterator]]"]))throw new Error(Object.prototype.toString.call(t["[[Iterator]]"])+"is not an Object.");var i=t["[[Iterator]]"],o=p(i,"return");if(o===e)return n;try{var s=r(o,i)}catch(t){var a=t}if(n)return n;if(a)throw a;if("object"!==h(s))throw new TypeError("Iterator's return method returned a non-object.");return n}function d(t){var e=function(t){if(arguments.length<2)var e=r(t["[[NextMethod]]"],t["[[Iterator]]"]);else e=r(t["[[NextMethod]]"],t["[[Iterator]]"],[arguments[1]]);if("object"!==h(e))throw new TypeError("bad iterator");return e}(t);return!0!==function(t){if("object"!==h(t))throw new Error(Object.prototype.toString.call(t)+"is not an Object.");return c(o(t,"done"))}(e)&&e}function y(t){if("object"!==h(t))throw new Error(Object.prototype.toString.call(t)+"is not an Object.");return o(t,"value")}function b(t,e){return h(t)===h(e)&&("number"===h(t)?!(!isNaN(t)||!isNaN(e))||1/t==1/0&&1/e==-1/0||1/t==-1/0&&1/e==1/0||t===e:function(t,e){return t===e}(t,e))}function g(t){if("symbol"===h(t))throw new TypeError("Cannot convert a Symbol value to a number");var e=Number(t);return isNaN(e)?0:1/e==1/0||1/e==-1/0||e===1/0||e===-1/0?e:(e<0?-1:1)*Math.floor(Math.abs(e))}function v(n){var i=arguments.length>1?arguments[1]:e;if("object"===h(n)){if(arguments.length<2)var a="default";else i===String?a="string":i===Number&&(a="number");var c="function"==typeof t.Symbol&&"symbol"==typeof t.Symbol.toPrimitive?p(n,t.Symbol.toPrimitive):e;if(c!==e){var l=r(c,n,[a]);if("object"!==h(l))return l;throw new TypeError("Cannot convert exotic object to primitive.")}return"default"===a&&(a="number"),function(t,e){if("string"===e)var n=["toString","valueOf"];else n=["valueOf","toString"];for(var i=0;i=0&&"[object Function]"===n.call(t.callee)),r}(i),u="[object String]"===n.call(i),h=[];if(i===e||null===i)throw new TypeError("Cannot convert undefined or null to object");var f=s&&c;if(u&&i.length>0&&!r.call(i,0))for(var d=0;d0)for(var y=0;y=0)var i=n;else(i=r+n)<0&&(i=0);for(;i1?arguments[1]:e,i=m(a(this));if(function(r){if("object"!==h(r))return!1;var n="Symbol"in t&&"match"in t.Symbol?o(r,t.Symbol.match):e;if(n!==e)return c(n);try{var i=r.lastIndex;return r.lastIndex=0,RegExp.prototype.exec.call(r),!0}catch(t){}finally{r.lastIndex=i}return!1}(r))throw new TypeError("First argument to String.prototype.includes must not be a regular expression");var s=m(r),l=g(n),u=i.length,p=Math.min(Math.max(l,0),u);return-1!==String.prototype.indexOf.call(i,s,p)})),function(){var t=Object.getOwnPropertyDescriptor,e=function(){try{return 1===Object.defineProperty(document.createElement("div"),"one",{get:function(){return 1}}).one}catch(t){return!1}},r={}.toString,n="".split;i(Object,"getOwnPropertyDescriptor",(function(i,o){var s=l(i);s=("string"===h(s)||s instanceof String)&&"[object String]"==r.call(i)?n.call(i,""):Object(i);var a=T(o);if(e)try{return t(s,a)}catch(t){}if(function(t,e){return Object.prototype.hasOwnProperty.call(t,e)}(s,a))return{enumerable:!0,configurable:!0,writable:!0,value:s[a]}}))}(),i(Object,"assign",(function(t,r){var n=l(t);if(1===arguments.length)return n;var i,s,a,c,u=Array.prototype.slice.call(arguments,1);for(i=0;i1?arguments[1]:p(t,Symbol.iterator),t);if("object"!==h(e))throw new TypeError("bad iterator");var n=u(e,"next"),i=Object.create(null);return i["[[Iterator]]"]=e,i["[[NextMethod]]"]=n,i["[[Done]]"]=!1,i}(i);;){var l=d(c);if(!1===l)return n;var b,g,v=y(l);if("object"!==h(v)){var m=new TypeError("nextItem is not an object");throw f(c,m),m}v=("string"===h(v)||v instanceof String)&&"[object String]"==t.call(v)?e.call(v,""):v;try{b=o(v,"0")}catch(t){return f(c,t)}try{g=o(v,"1")}catch(t){return f(c,t)}try{r(a,n,[b,g])}catch(t){return f(c,t)}}}}();Object.defineProperty(Symbol,"toStringTag",{value:Symbol("toStringTag")});var A=function(){var t=function(){return this.length=0,this},r=function(t,e){if(!(this instanceof r))return new r(t,e);Object.defineProperties(this,{__list__:{writable:!0,value:t},__context__:{writable:!0,value:e},__nextIndex__:{writable:!0,value:0}}),e&&(function(t){if("function"!=typeof t)throw new TypeError(t+" is not a function")}(e.on),e.on("_add",this._onAdd.bind(this)),e.on("_delete",this._onDelete.bind(this)),e.on("_clear",this._onClear.bind(this)))};return Object.defineProperties(r.prototype,Object.assign({constructor:{value:r,configurable:!0,enumerable:!1,writable:!0},_next:{value:function(){var t;if(this.__list__)return this.__redo__&&(t=this.__redo__.shift())!==e?t:this.__nextIndex__=this.__nextIndex__)){if(++this.__nextIndex__,!this.__redo__)return void Object.defineProperty(this,"__redo__",{value:[t],configurable:!0,enumerable:!1,writable:!1});this.__redo__.forEach((function(e,r){e>=t&&(this.__redo__[r]=++e)}),this),this.__redo__.push(t)}},configurable:!0,enumerable:!1,writable:!0},_onDelete:{value:function(t){var e;t>=this.__nextIndex__||(--this.__nextIndex__,this.__redo__&&(-1!==(e=this.__redo__.indexOf(t))&&this.__redo__.splice(e,1),this.__redo__.forEach((function(e,r){e>t&&(this.__redo__[r]=--e)}),this)))},configurable:!0,enumerable:!1,writable:!0},_onClear:{value:function(){this.__redo__&&t.call(this.__redo__),this.__nextIndex__=0},configurable:!0,enumerable:!1,writable:!0}})),Object.defineProperty(r.prototype,Symbol.iterator,{value:function(){return this},configurable:!0,enumerable:!1,writable:!0}),Object.defineProperty(r.prototype,Symbol.toStringTag,{value:"Iterator",configurable:!1,enumerable:!1,writable:!0}),r}(),N=function(){var t=function(e,r){if(!(this instanceof t))return new t(e,r);A.call(this,e),r=r?String.prototype.includes.call(r,"key+value")?"key+value":String.prototype.includes.call(r,"key")?"key":"value":"value",Object.defineProperty(this,"__kind__",{value:r,configurable:!1,enumerable:!1,writable:!1})};return Object.setPrototypeOf&&Object.setPrototypeOf(t,A.prototype),t.prototype=Object.create(A.prototype,{constructor:{value:t,configurable:!0,enumerable:!1,writable:!0},_resolve:{value:function(t){return"value"===this.__kind__?this.__list__[t]:"key+value"===this.__kind__?[t,this.__list__[t]]:t},configurable:!0,enumerable:!1,writable:!0},toString:{value:function(){return"[object Array Iterator]"},configurable:!0,enumerable:!1,writable:!0}}),t}();"Symbol"in t&&"iterator"in Symbol&&"function"==typeof Array.prototype[Symbol.iterator]?i(Array.prototype,"values",Array.prototype[Symbol.iterator]):i(Array.prototype,"values",(function(){var t=l(this);return new N(t,"value")})),i(Array.prototype,Symbol.iterator,Array.prototype.values),i(Object,"fromEntries",(function(t){a(t);return P({},t,(function(t,e){n(this,T(t),e)}))}))}("object"==typeof window&&window||"object"==typeof self&&self||"object"==typeof global&&global||{}),function(t,e){function r(t,e,r){var n={value:r,writable:!0,enumerable:!1,configurable:!0};Object.defineProperty(t,e,n)}var n,i;r(Object,"keys",function(){function t(){var t;try{t=Object.create({})}catch(t){return!0}return i.call(t,"__proto__")}var r=Object.prototype.hasOwnProperty,n=Object.prototype.toString,i=Object.prototype.propertyIsEnumerable,o=!i.call({toString:null},"toString"),s=i.call((function(){}),"prototype"),a=["toString","toLocaleString","valueOf","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","constructor"],c=function(t){var e=t.constructor;return e&&e.prototype===t},l={$console:!0,$external:!0,$frame:!0,$frameElement:!0,$frames:!0,$innerHeight:!0,$innerWidth:!0,$outerHeight:!0,$outerWidth:!0,$pageXOffset:!0,$pageYOffset:!0,$parent:!0,$scrollLeft:!0,$scrollTop:!0,$scrollX:!0,$scrollY:!0,$self:!0,$webkitIndexedDB:!0,$webkitStorageInfo:!0,$window:!0},u=function(){if("undefined"==typeof window)return!1;for(var t in window)try{if(!l["$"+t]&&r.call(window,t)&&null!==window[t]&&"object"==typeof window[t])try{c(window[t])}catch(t){return!0}}catch(t){return!0}return!1}(),p=function(t){if("undefined"==typeof window||!u)return c(t);try{return c(t)}catch(t){return!1}};return function(i){var c="[object Function]"===n.call(i),l=function(t){var e=n.call(t),r="[object Arguments]"===e;return r||(r="[object Array]"!==e&&null!==t&&"object"==typeof t&&"number"==typeof t.length&&t.length>=0&&"[object Function]"===n.call(t.callee)),r}(i),u="[object String]"===n.call(i),h=[];if(i===e||null===i)throw new TypeError("Cannot convert undefined or null to object");var f=s&&c;if(u&&i.length>0&&!r.call(i,0))for(var d=0;d0)for(var y=0;y2?arguments[2]:[];if(!1===o(t))throw new TypeError(Object.prototype.toString.call(t)+"is not a function.");return t.apply(e,r)}function n(t,e,r){var n={value:r,writable:!0,enumerable:!1,configurable:!0};Object.defineProperty(t,e,n)}function i(t,e){return t[e]}function o(t){return"function"==typeof t}function s(t){if(null===t||t===e)throw TypeError();return Object(t)}function a(t,r){var n=function(t,e){return s(t)[e]}(t,r);if(null===n||n===e)return e;if(!1===o(n))throw new TypeError("Method not callable: "+r);return n}function c(e){switch(typeof e){case"undefined":return"undefined";case"boolean":return"boolean";case"number":return"number";case"string":return"string";case"symbol":return"symbol";default:return null===e?"null":"Symbol"in t&&(e instanceof t.Symbol||e.constructor===t.Symbol)?"symbol":"object"}}function l(t,e){return c(t)===c(e)&&("number"===c(t)?!(!isNaN(t)||!isNaN(e))||1/t==1/0&&1/e==-1/0||1/t==-1/0&&1/e==1/0||t===e:function(t,e){return t===e}(t,e))}function u(t){if("symbol"===c(t))throw new TypeError("Cannot convert a Symbol value to a number");var e=Number(t);return isNaN(e)?0:1/e==1/0||1/e==-1/0||e===1/0||e===-1/0?e:(e<0?-1:1)*Math.floor(Math.abs(e))}function p(n){var s=arguments.length>1?arguments[1]:e;if("object"===c(n)){if(arguments.length<2)var l="default";else s===String?l="string":s===Number&&(l="number");var u="function"==typeof t.Symbol&&"symbol"==typeof t.Symbol.toPrimitive?a(n,t.Symbol.toPrimitive):e;if(u!==e){var p=r(u,n,[l]);if("object"!==c(p))return p;throw new TypeError("Cannot convert exotic object to primitive.")}return"default"===l&&(l="number"),function(t,e){if("string"===e)var n=["toString","valueOf"];else n=["valueOf","toString"];for(var s=0;s=0&&"[object Function]"===n.call(t.callee)),r}(i),u="[object String]"===n.call(i),h=[];if(i===e||null===i)throw new TypeError("Cannot convert undefined or null to object");var f=s&&c;if(u&&i.length>0&&!r.call(i,0))for(var d=0;d0)for(var y=0;y=0)var o=n;else(o=r+n)<0&&(o=0);for(;oMath.pow(2,32)-1)throw new RangeError("Invalid array length");var e=[];return e.length=t,e}function n(t,e){var r=arguments.length>2?arguments[2]:[];if(!1===c(t))throw new TypeError(Object.prototype.toString.call(t)+"is not a function.");return t.apply(e,r)}function i(t,e,r){var n={value:r,writable:!0,enumerable:!0,configurable:!0};try{return Object.defineProperty(t,e,n),!0}catch(t){return!1}}function o(t,e,r){var n=i(t,e,r);if(!n)throw new TypeError("Cannot assign value `"+Object.prototype.toString.call(r)+"` to property `"+Object.prototype.toString.call(e)+"` on object `"+Object.prototype.toString.call(t)+"`");return n}function s(t,e,r){var n={value:r,writable:!0,enumerable:!1,configurable:!0};Object.defineProperty(t,e,n)}function a(t,e){return t[e]}function c(t){return"function"==typeof t}function l(t){if(null===t||t===e)throw TypeError();return Object(t)}function u(t,e){return l(t)[e]}function p(t,r){var n=u(t,r);if(null===n||n===e)return e;if(!1===c(n))throw new TypeError("Method not callable: "+r);return n}function h(e){switch(typeof e){case"undefined":return"undefined";case"boolean":return"boolean";case"number":return"number";case"string":return"string";case"symbol":return"symbol";default:return null===e?"null":"Symbol"in t&&(e instanceof t.Symbol||e.constructor===t.Symbol)?"symbol":"object"}}var f;function d(t,e){if("boolean"!==h(e))throw new Error;var r={};return i(r,"value",t),i(r,"done",e),r}function y(t,e){var r=arguments[2]||{},n=function(t,e){var r=a(t,"prototype");return"object"!==h(r)&&(r=e),r}(t,e),i=Object.create(n);for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&Object.defineProperty(i,o,{configurable:!0,enumerable:!1,writable:!0,value:r[o]});return i}function b(t){return"object"===h(t)&&"function"==typeof t&&!!t.prototype}function g(t){var e=arguments.length>2?arguments[2]:t,r=arguments.length>1?arguments[1]:[];if(!b(t))throw new TypeError("F must be a constructor.");if(!b(e))throw new TypeError("newTarget must be a constructor.");return e===t?new(Function.prototype.bind.apply(t,[null].concat(r))):n(t,y(e,Object.prototype),r)}function v(t,r){if("object"!==h(t["[[Iterator]]"]))throw new Error(Object.prototype.toString.call(t["[[Iterator]]"])+"is not an Object.");var i=t["[[Iterator]]"],o=p(i,"return");if(o===e)return r;try{var s=n(o,i)}catch(t){var a=t}if(r)return r;if(a)throw a;if("object"!==h(s))throw new TypeError("Iterator's return method returned a non-object.");return r}function m(t){if("object"!==h(t))throw new Error(Object.prototype.toString.call(t)+"is not an Object.");return e=a(t,"done"),Boolean(e);var e}function _(t){var e=function(t){if(arguments.length<2)var e=n(t["[[NextMethod]]"],t["[[Iterator]]"]);else e=n(t["[[NextMethod]]"],t["[[Iterator]]"],[arguments[1]]);if("object"!==h(e))throw new TypeError("bad iterator");return e}(t);return!0!==m(e)&&e}function w(t){if("object"!==h(t))throw new Error(Object.prototype.toString.call(t)+"is not an Object.");return a(t,"value")}function S(t,e){return h(t)===h(e)&&("number"===h(t)?!(!isNaN(t)||!isNaN(e))||1/t==1/0&&1/e==-1/0||1/t==-1/0&&1/e==1/0||t===e:function(t,e){return t===e}(t,e))}function E(t){if("symbol"===h(t))throw new TypeError("Cannot convert a Symbol value to a number");var e=Number(t);return isNaN(e)?0:1/e==1/0||1/e==-1/0||e===1/0||e===-1/0?e:(e<0?-1:1)*Math.floor(Math.abs(e))}function O(t){var e=E(t);return e<=0?0:Math.min(e,Math.pow(2,53)-1)}function j(r){var i=arguments.length>1?arguments[1]:e;if("object"===h(r)){if(arguments.length<2)var o="default";else i===String?o="string":i===Number&&(o="number");var s="function"==typeof t.Symbol&&"symbol"==typeof t.Symbol.toPrimitive?p(r,t.Symbol.toPrimitive):e;if(s!==e){var l=n(s,r,[o]);if("object"!==h(l))return l;throw new TypeError("Cannot convert exotic object to primitive.")}return"default"===o&&(o="number"),function(t,e){if("string"===e)var r=["toString","valueOf"];else r=["valueOf","toString"];for(var i=0;i1?arguments[1]:p(t,Symbol.iterator),t);if("object"!==h(e))throw new TypeError("bad iterator");var r=u(e,"next"),i=Object.create(null);return i["[[Iterator]]"]=e,i["[[NextMethod]]"]=r,i["[[Done]]"]=!1,i}s(Object,"keys",function(){function t(){var t;try{t=Object.create({})}catch(t){return!0}return i.call(t,"__proto__")}var r=Object.prototype.hasOwnProperty,n=Object.prototype.toString,i=Object.prototype.propertyIsEnumerable,o=!i.call({toString:null},"toString"),s=i.call((function(){}),"prototype"),a=["toString","toLocaleString","valueOf","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","constructor"],c=function(t){var e=t.constructor;return e&&e.prototype===t},l={$console:!0,$external:!0,$frame:!0,$frameElement:!0,$frames:!0,$innerHeight:!0,$innerWidth:!0,$outerHeight:!0,$outerWidth:!0,$pageXOffset:!0,$pageYOffset:!0,$parent:!0,$scrollLeft:!0,$scrollTop:!0,$scrollX:!0,$scrollY:!0,$self:!0,$webkitIndexedDB:!0,$webkitStorageInfo:!0,$window:!0},u=function(){if("undefined"==typeof window)return!1;for(var t in window)try{if(!l["$"+t]&&r.call(window,t)&&null!==window[t]&&"object"==typeof window[t])try{c(window[t])}catch(t){return!0}}catch(t){return!0}return!1}(),p=function(t){if("undefined"==typeof window||!u)return c(t);try{return c(t)}catch(t){return!1}};return function(i){var c="[object Function]"===n.call(i),l=function(t){var e=n.call(t),r="[object Arguments]"===e;return r||(r="[object Array]"!==e&&null!==t&&"object"==typeof t&&"number"==typeof t.length&&t.length>=0&&"[object Function]"===n.call(t.callee)),r}(i),u="[object String]"===n.call(i),h=[];if(i===e||null===i)throw new TypeError("Cannot convert undefined or null to object");var f=s&&c;if(u&&i.length>0&&!r.call(i,0))for(var d=0;d0)for(var y=0;y=0)var i=n;else(i=r+n)<0&&(i=0);for(;i0?arguments[0]:e;if(null===i||i===e)return r;var o=r.set;if(!c(o))throw new TypeError("Map.prototype.set is not a function");try{for(var s=P(i);;){var a=_(s);if(!1===a)return r;var l=w(a);if("object"!==h(l))try{throw new TypeError("Iterator value "+l+" is not an entry object")}catch(t){return v(s,t)}try{var u=l[0],p=l[1];o.call(r,u,p)}catch(t){return v(s,t)}}}catch(t){if(Array.isArray(i)||"[object Arguments]"===Object.prototype.toString.call(i)||i.callee){var f,d=i.length;for(f=0;f0?arguments[0]:e;if(null===i||i===e)return r;var o=r.add;if(!c(o))throw new TypeError("Set.prototype.add is not a function");try{for(var s=P(i);;){var a=_(s);if(!1===a)return r;var l=w(a);try{o.call(r,l)}catch(t){return v(s,t)}}}catch(t){if(!Array.isArray(i)&&"[object Arguments]"!==Object.prototype.toString.call(i)&&!i.callee)throw t;var u,p=i.length;for(u=0;u1?arguments[1]:e;if(h===e)var f=!1;else{if(!1===c(h))throw new TypeError(Object.prototype.toString.call(h)+" is not a function.");var d=arguments.length>2?arguments[2]:e;if(d!==e)var y=d;else y=e;f=!0}var m=p(i,Symbol.iterator);if(m!==e){if(b(s))var S=g(s);else S=r(0);for(var E=P(i,m),j=0;;){if(j>=Math.pow(2,53)-1)return v(E,new TypeError("Iteration count can not be greater than or equal 9007199254740991."));var A=T(j),N=_(E);if(!1===N)return S.length=j,S;var C=w(N);if(f)try{var I=n(h,y,[C,j])}catch(t){return v(E,t)}else I=C;try{o(S,A,I)}catch(t){return v(E,t)}j+=1}}if(t(i))var L=u.call(i,/[\uD800-\uDBFF][\uDC00-\uDFFF]?|[^\uD800-\uDFFF]|./g)||[];else L=l(i);var M=O(a(L,"length"));for(S=b(s)?g(s,[M]):r(M),j=0;j=t.length)return{done:!0,value:e};var i=t[n++];return{done:!1,value:"key"===r?i.name:"value"===r?i.value:[i.name,i.value]}}}function c(e,r){function n(){var t=a.href.replace(/#$|\?$|\?(?=#)/g,"");a.href!==t&&(a.href=t)}function i(){h._setList(a.search?o(a.search.substring(1)):[]),h._update_steps()}if(!(this instanceof t.URL))throw new TypeError("Failed to construct 'URL': Please use the 'new' operator.");r&&(e=function(){if(l)return new u(e,r).href;var t;try{var n;if("[object OperaMini]"===Object.prototype.toString.call(window.operamini)?((t=document.createElement("iframe")).style.display="none",document.documentElement.appendChild(t),n=t.contentWindow.document):document.implementation&&document.implementation.createHTMLDocument?n=document.implementation.createHTMLDocument(""):document.implementation&&document.implementation.createDocument?((n=document.implementation.createDocument("http://www.w3.org/1999/xhtml","html",null)).documentElement.appendChild(n.createElement("head")),n.documentElement.appendChild(n.createElement("body"))):window.ActiveXObject&&((n=new window.ActiveXObject("htmlfile")).write(""),n.close()),!n)throw Error("base not supported");var i=n.createElement("base");i.href=r,n.getElementsByTagName("head")[0].appendChild(i);var o=n.createElement("a");return o.href=e,o.href}finally{t&&t.parentNode.removeChild(t)}}());var a=function(t){if(l)return new u(t);var e=document.createElement("a");return e.href=t,e}(e||""),c=function(){if(!("defineProperties"in Object))return!1;try{var t={};return Object.defineProperties(t,{prop:{get:function(){return!0}}}),t.prop}catch(t){return!1}}(),p=c?this:document.createElement("a"),h=new s(a.search?a.search.substring(1):null);return h._url_object=p,Object.defineProperties(p,{href:{get:function(){return a.href},set:function(t){a.href=t,n(),i()},enumerable:!0,configurable:!0},origin:{get:function(){return"data:"===this.protocol.toLowerCase()?null:"origin"in a?a.origin:this.protocol+"//"+this.host},enumerable:!0,configurable:!0},protocol:{get:function(){return a.protocol},set:function(t){a.protocol=t},enumerable:!0,configurable:!0},username:{get:function(){return a.username},set:function(t){a.username=t},enumerable:!0,configurable:!0},password:{get:function(){return a.password},set:function(t){a.password=t},enumerable:!0,configurable:!0},host:{get:function(){var t={"http:":/:80$/,"https:":/:443$/,"ftp:":/:21$/}[a.protocol];return t?a.host.replace(t,""):a.host},set:function(t){a.host=t},enumerable:!0,configurable:!0},hostname:{get:function(){return a.hostname},set:function(t){a.hostname=t},enumerable:!0,configurable:!0},port:{get:function(){return a.port},set:function(t){a.port=t},enumerable:!0,configurable:!0},pathname:{get:function(){return"/"!==a.pathname.charAt(0)?"/"+a.pathname:a.pathname},set:function(t){a.pathname=t},enumerable:!0,configurable:!0},search:{get:function(){return a.search},set:function(t){a.search!==t&&(a.search=t,n(),i())},enumerable:!0,configurable:!0},searchParams:{get:function(){return h},enumerable:!0,configurable:!0},hash:{get:function(){return a.hash},set:function(t){a.hash=t,n()},enumerable:!0,configurable:!0},toString:{value:function(){return a.toString()},enumerable:!1,configurable:!0},valueOf:{value:function(){return a.valueOf()},enumerable:!1,configurable:!0}}),p}var l,u=t.URL;try{if(u){if("searchParams"in(l=new t.URL("http://example.com"))){var p=new c("http://example.com");if(p.search="a=1&b=2","http://example.com/?a=1&b=2"===p.href&&(p.search="","http://example.com/"===p.href))return}"href"in l||(l=e),l=e}}catch(t){}if(Object.defineProperties(s.prototype,{append:{value:function(t,e){this._list.push({name:t,value:e}),this._update_steps()},writable:!0,enumerable:!0,configurable:!0},delete:{value:function(t){for(var e=0;e1?arguments[1]:e;this._list.forEach((function(e){t.call(r,e.value,e.name)}))},writable:!0,enumerable:!0,configurable:!0},toString:{value:function(){return n(this._list)},writable:!0,enumerable:!1,configurable:!0},sort:{value:function(){for(var t=this.entries(),e=t.next(),r=[],n={};!e.done;){var i=e.value,o=i[0];r.push(o),Object.prototype.hasOwnProperty.call(n,o)||(n[o]=[]),n[o].push(i[1]),e=t.next()}r.sort();for(var s=0;s