@alaskaairux/auro-button
Version:
Auro custom auro-button element
186 lines • 59.2 kB
JavaScript
/**
* @license
* Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
* This code may only be used under the BSD style license found at
* http://polymer.github.io/LICENSE.txt
* The complete set of authors may be found at
* http://polymer.github.io/AUTHORS.txt
* The complete set of contributors may be found at
* http://polymer.github.io/CONTRIBUTORS.txt
* Code distributed by Google as part of the polymer project is also
* subject to an additional IP rights grant found at
* http://polymer.github.io/PATENTS.txt
*/
const t=new WeakMap,e=e=>(...r)=>{const o=e(...r);return t.set(o,!0),o},r=e=>"function"==typeof e&&t.has(e),o="undefined"!=typeof window&&null!=window.customElements&&void 0!==window.customElements.polyfillWrapFlushCallback,n=(t,e,r=null)=>{for(;e!==r;){const r=e.nextSibling;t.removeChild(e),e=r}},i={},s={},a=`{{lit-${String(Math.random()).slice(2)}}}`,l=`\x3c!--${a}--\x3e`,c=new RegExp(`${a}|${l}`);class u{constructor(t,e){this.parts=[],this.element=e;const r=[],o=[],n=document.createTreeWalker(e.content,133,null,!1);let i=0,s=-1,l=0;const{strings:u,values:{length:h}}=t;for(;l<h;){const t=n.nextNode();if(null!==t){if(s++,1===t.nodeType){if(t.hasAttributes()){const e=t.attributes,{length:r}=e;let o=0;for(let t=0;t<r;t++)d(e[t].name,"$lit$")&&o++;for(;o-- >0;){const e=u[l],r=f.exec(e)[2],o=r.toLowerCase()+"$lit$",n=t.getAttribute(o);t.removeAttribute(o);const i=n.split(c);this.parts.push({type:"attribute",index:s,name:r,strings:i}),l+=i.length-1}}"TEMPLATE"===t.tagName&&(o.push(t),n.currentNode=t.content)}else if(3===t.nodeType){const e=t.data;if(e.indexOf(a)>=0){const o=t.parentNode,n=e.split(c),i=n.length-1;for(let e=0;e<i;e++){let r,i=n[e];if(""===i)r=p();else{const t=f.exec(i);null!==t&&d(t[2],"$lit$")&&(i=i.slice(0,t.index)+t[1]+t[2].slice(0,-"$lit$".length)+t[3]),r=document.createTextNode(i)}o.insertBefore(r,t),this.parts.push({type:"node",index:++s})}""===n[i]?(o.insertBefore(p(),t),r.push(t)):t.data=n[i],l+=i}}else if(8===t.nodeType)if(t.data===a){const e=t.parentNode;null!==t.previousSibling&&s!==i||(s++,e.insertBefore(p(),t)),i=s,this.parts.push({type:"node",index:s}),null===t.nextSibling?t.data="":(r.push(t),s--),l++}else{let e=-1;for(;-1!==(e=t.data.indexOf(a,e+1));)this.parts.push({type:"node",index:-1}),l++}}else n.currentNode=o.pop()}for(const t of r)t.parentNode.removeChild(t)}}const d=(t,e)=>{const r=t.length-e.length;return r>=0&&t.slice(r)===e},h=t=>-1!==t.index,p=()=>document.createComment(""),f=/([ \x09\x0a\x0c\x0d])([^\0-\x1F\x7F-\x9F "'>=/]+)([ \x09\x0a\x0c\x0d]*=[ \x09\x0a\x0c\x0d]*(?:[^ \x09\x0a\x0c\x0d"'`<>=]*|"[^"]*|'[^']*))$/;
/**
* @license
* Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
* This code may only be used under the BSD style license found at
* http://polymer.github.io/LICENSE.txt
* The complete set of authors may be found at
* http://polymer.github.io/AUTHORS.txt
* The complete set of contributors may be found at
* http://polymer.github.io/CONTRIBUTORS.txt
* Code distributed by Google as part of the polymer project is also
* subject to an additional IP rights grant found at
* http://polymer.github.io/PATENTS.txt
*/
class b{constructor(t,e,r){this.__parts=[],this.template=t,this.processor=e,this.options=r}update(t){let e=0;for(const r of this.__parts)void 0!==r&&r.setValue(t[e]),e++;for(const t of this.__parts)void 0!==t&&t.commit()}_clone(){const t=o?this.template.element.content.cloneNode(!0):document.importNode(this.template.element.content,!0),e=[],r=this.template.parts,n=document.createTreeWalker(t,133,null,!1);let i,s=0,a=0,l=n.nextNode();for(;s<r.length;)if(i=r[s],h(i)){for(;a<i.index;)a++,"TEMPLATE"===l.nodeName&&(e.push(l),n.currentNode=l.content),null===(l=n.nextNode())&&(n.currentNode=e.pop(),l=n.nextNode());if("node"===i.type){const t=this.processor.handleTextExpression(this.options);t.insertAfterNode(l.previousSibling),this.__parts.push(t)}else this.__parts.push(...this.processor.handleAttributeExpressions(l,i.name,i.strings,this.options));s++}else this.__parts.push(void 0),s++;return o&&(document.adoptNode(t),customElements.upgrade(t)),t}}
/**
* @license
* Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
* This code may only be used under the BSD style license found at
* http://polymer.github.io/LICENSE.txt
* The complete set of authors may be found at
* http://polymer.github.io/AUTHORS.txt
* The complete set of contributors may be found at
* http://polymer.github.io/CONTRIBUTORS.txt
* Code distributed by Google as part of the polymer project is also
* subject to an additional IP rights grant found at
* http://polymer.github.io/PATENTS.txt
*/const m=window.trustedTypes&&trustedTypes.createPolicy("lit-html",{createHTML:t=>t}),g=` ${a} `;class v{constructor(t,e,r,o){this.strings=t,this.values=e,this.type=r,this.processor=o}getHTML(){const t=this.strings.length-1;let e="",r=!1;for(let o=0;o<t;o++){const t=this.strings[o],n=t.lastIndexOf("\x3c!--");r=(n>-1||r)&&-1===t.indexOf("--\x3e",n+1);const i=f.exec(t);e+=null===i?t+(r?g:l):t.substr(0,i.index)+i[1]+i[2]+"$lit$"+i[3]+a}return e+=this.strings[t],e}getTemplateElement(){const t=document.createElement("template");let e=this.getHTML();return void 0!==m&&(e=m.createHTML(e)),t.innerHTML=e,t}}
/**
* @license
* Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
* This code may only be used under the BSD style license found at
* http://polymer.github.io/LICENSE.txt
* The complete set of authors may be found at
* http://polymer.github.io/AUTHORS.txt
* The complete set of contributors may be found at
* http://polymer.github.io/CONTRIBUTORS.txt
* Code distributed by Google as part of the polymer project is also
* subject to an additional IP rights grant found at
* http://polymer.github.io/PATENTS.txt
*/const y=t=>null===t||!("object"==typeof t||"function"==typeof t),w=t=>Array.isArray(t)||!(!t||!t[Symbol.iterator]);class x{constructor(t,e,r){this.dirty=!0,this.element=t,this.name=e,this.strings=r,this.parts=[];for(let t=0;t<r.length-1;t++)this.parts[t]=this._createPart()}_createPart(){return new _(this)}_getValue(){const t=this.strings,e=t.length-1,r=this.parts;if(1===e&&""===t[0]&&""===t[1]){const t=r[0].value;if("symbol"==typeof t)return String(t);if("string"==typeof t||!w(t))return t}let o="";for(let n=0;n<e;n++){o+=t[n];const e=r[n];if(void 0!==e){const t=e.value;if(y(t)||!w(t))o+="string"==typeof t?t:String(t);else for(const e of t)o+="string"==typeof e?e:String(e)}}return o+=t[e],o}commit(){this.dirty&&(this.dirty=!1,this.element.setAttribute(this.name,this._getValue()))}}class _{constructor(t){this.value=void 0,this.committer=t}setValue(t){t===i||y(t)&&t===this.value||(this.value=t,r(t)||(this.committer.dirty=!0))}commit(){for(;r(this.value);){const t=this.value;this.value=i,t(this)}this.value!==i&&this.committer.commit()}}class k{constructor(t){this.value=void 0,this.__pendingValue=void 0,this.options=t}appendInto(t){this.startNode=t.appendChild(p()),this.endNode=t.appendChild(p())}insertAfterNode(t){this.startNode=t,this.endNode=t.nextSibling}appendIntoPart(t){t.__insert(this.startNode=p()),t.__insert(this.endNode=p())}insertAfterPart(t){t.__insert(this.startNode=p()),this.endNode=t.endNode,t.endNode=this.startNode}setValue(t){this.__pendingValue=t}commit(){if(null===this.startNode.parentNode)return;for(;r(this.__pendingValue);){const t=this.__pendingValue;this.__pendingValue=i,t(this)}const t=this.__pendingValue;t!==i&&(y(t)?t!==this.value&&this.__commitText(t):t instanceof v?this.__commitTemplateResult(t):t instanceof Node?this.__commitNode(t):w(t)?this.__commitIterable(t):t===s?(this.value=s,this.clear()):this.__commitText(t))}__insert(t){this.endNode.parentNode.insertBefore(t,this.endNode)}__commitNode(t){this.value!==t&&(this.clear(),this.__insert(t),this.value=t)}__commitText(t){const e=this.startNode.nextSibling,r="string"==typeof(t=null==t?"":t)?t:String(t);e===this.endNode.previousSibling&&3===e.nodeType?e.data=r:this.__commitNode(document.createTextNode(r)),this.value=t}__commitTemplateResult(t){const e=this.options.templateFactory(t);if(this.value instanceof b&&this.value.template===e)this.value.update(t.values);else{const r=new b(e,t.processor,this.options),o=r._clone();r.update(t.values),this.__commitNode(o),this.value=r}}__commitIterable(t){Array.isArray(this.value)||(this.value=[],this.clear());const e=this.value;let r,o=0;for(const n of t)r=e[o],void 0===r&&(r=new k(this.options),e.push(r),0===o?r.appendIntoPart(this):r.insertAfterPart(e[o-1])),r.setValue(n),r.commit(),o++;o<e.length&&(e.length=o,this.clear(r&&r.endNode))}clear(t=this.startNode){n(this.startNode.parentNode,t.nextSibling,this.endNode)}}class S{constructor(t,e,r){if(this.value=void 0,this.__pendingValue=void 0,2!==r.length||""!==r[0]||""!==r[1])throw new Error("Boolean attributes can only contain a single expression");this.element=t,this.name=e,this.strings=r}setValue(t){this.__pendingValue=t}commit(){for(;r(this.__pendingValue);){const t=this.__pendingValue;this.__pendingValue=i,t(this)}if(this.__pendingValue===i)return;const t=!!this.__pendingValue;this.value!==t&&(t?this.element.setAttribute(this.name,""):this.element.removeAttribute(this.name),this.value=t),this.__pendingValue=i}}class O extends x{constructor(t,e,r){super(t,e,r),this.single=2===r.length&&""===r[0]&&""===r[1]}_createPart(){return new P(this)}_getValue(){return this.single?this.parts[0].value:super._getValue()}commit(){this.dirty&&(this.dirty=!1,this.element[this.name]=this._getValue())}}class P extends _{}let E=!1;(()=>{try{const t={get capture(){return E=!0,!1}};window.addEventListener("test",t,t),window.removeEventListener("test",t,t)}catch(t){}})();class T{constructor(t,e,r){this.value=void 0,this.__pendingValue=void 0,this.element=t,this.eventName=e,this.eventContext=r,this.__boundHandleEvent=t=>this.handleEvent(t)}setValue(t){this.__pendingValue=t}commit(){for(;r(this.__pendingValue);){const t=this.__pendingValue;this.__pendingValue=i,t(this)}if(this.__pendingValue===i)return;const t=this.__pendingValue,e=this.value,o=null==t||null!=e&&(t.capture!==e.capture||t.once!==e.once||t.passive!==e.passive),n=null!=t&&(null==e||o);o&&this.element.removeEventListener(this.eventName,this.__boundHandleEvent,this.__options),n&&(this.__options=A(t),this.element.addEventListener(this.eventName,this.__boundHandleEvent,this.__options)),this.value=t,this.__pendingValue=i}handleEvent(t){"function"==typeof this.value?this.value.call(this.eventContext||this.element,t):this.value.handleEvent(t)}}const A=t=>t&&(E?{capture:t.capture,passive:t.passive,once:t.once}:t.capture)
/**
* @license
* Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
* This code may only be used under the BSD style license found at
* http://polymer.github.io/LICENSE.txt
* The complete set of authors may be found at
* http://polymer.github.io/AUTHORS.txt
* The complete set of contributors may be found at
* http://polymer.github.io/CONTRIBUTORS.txt
* Code distributed by Google as part of the polymer project is also
* subject to an additional IP rights grant found at
* http://polymer.github.io/PATENTS.txt
*/;const C=new class{handleAttributeExpressions(t,e,r,o){const n=e[0];if("."===n){return new O(t,e.slice(1),r).parts}if("@"===n)return[new T(t,e.slice(1),o.eventContext)];if("?"===n)return[new S(t,e.slice(1),r)];return new x(t,e,r).parts}handleTextExpression(t){return new k(t)}};
/**
* @license
* Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
* This code may only be used under the BSD style license found at
* http://polymer.github.io/LICENSE.txt
* The complete set of authors may be found at
* http://polymer.github.io/AUTHORS.txt
* The complete set of contributors may be found at
* http://polymer.github.io/CONTRIBUTORS.txt
* Code distributed by Google as part of the polymer project is also
* subject to an additional IP rights grant found at
* http://polymer.github.io/PATENTS.txt
*/function L(t){let e=N.get(t.type);void 0===e&&(e={stringsArray:new WeakMap,keyString:new Map},N.set(t.type,e));let r=e.stringsArray.get(t.strings);if(void 0!==r)return r;const o=t.strings.join(a);return r=e.keyString.get(o),void 0===r&&(r=new u(t,t.getTemplateElement()),e.keyString.set(o,r)),e.stringsArray.set(t.strings,r),r}const N=new Map,j=new WeakMap;
/**
* @license
* Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
* This code may only be used under the BSD style license found at
* http://polymer.github.io/LICENSE.txt
* The complete set of authors may be found at
* http://polymer.github.io/AUTHORS.txt
* The complete set of contributors may be found at
* http://polymer.github.io/CONTRIBUTORS.txt
* Code distributed by Google as part of the polymer project is also
* subject to an additional IP rights grant found at
* http://polymer.github.io/PATENTS.txt
*/
/**
* @license
* Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
* This code may only be used under the BSD style license found at
* http://polymer.github.io/LICENSE.txt
* The complete set of authors may be found at
* http://polymer.github.io/AUTHORS.txt
* The complete set of contributors may be found at
* http://polymer.github.io/CONTRIBUTORS.txt
* Code distributed by Google as part of the polymer project is also
* subject to an additional IP rights grant found at
* http://polymer.github.io/PATENTS.txt
*/
"undefined"!=typeof window&&(window.litHtmlVersions||(window.litHtmlVersions=[])).push("1.4.1")
/**
* @license
* Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
* This code may only be used under the BSD style license found at
* http://polymer.github.io/LICENSE.txt
* The complete set of authors may be found at
* http://polymer.github.io/AUTHORS.txt
* The complete set of contributors may be found at
* http://polymer.github.io/CONTRIBUTORS.txt
* Code distributed by Google as part of the polymer project is also
* subject to an additional IP rights grant found at
* http://polymer.github.io/PATENTS.txt
*/,window.JSCompiler_renameProperty=(t,e)=>t;const V={toAttribute(t,e){switch(e){case Boolean:return t?"":null;case Object:case Array:return null==t?t:JSON.stringify(t)}return t},fromAttribute(t,e){switch(e){case Boolean:return null!==t;case Number:return null===t?null:Number(t);case Object:case Array:return JSON.parse(t)}return t}},M=(t,e)=>e!==t&&(e==e||t==t),R={attribute:!0,type:String,converter:V,reflect:!1,hasChanged:M};class I extends HTMLElement{constructor(){super(),this.initialize()}static get observedAttributes(){this.finalize();const t=[];return this._classProperties.forEach(((e,r)=>{const o=this._attributeNameForProperty(r,e);void 0!==o&&(this._attributeToPropertyMap.set(o,r),t.push(o))})),t}static _ensureClassProperties(){if(!this.hasOwnProperty(JSCompiler_renameProperty("_classProperties",this))){this._classProperties=new Map;const t=Object.getPrototypeOf(this)._classProperties;void 0!==t&&t.forEach(((t,e)=>this._classProperties.set(e,t)))}}static createProperty(t,e=R){if(this._ensureClassProperties(),this._classProperties.set(t,e),e.noAccessor||this.prototype.hasOwnProperty(t))return;const r="symbol"==typeof t?Symbol():`__${t}`,o=this.getPropertyDescriptor(t,r,e);void 0!==o&&Object.defineProperty(this.prototype,t,o)}static getPropertyDescriptor(t,e,r){return{get(){return this[e]},set(o){const n=this[t];this[e]=o,this.requestUpdateInternal(t,n,r)},configurable:!0,enumerable:!0}}static getPropertyOptions(t){return this._classProperties&&this._classProperties.get(t)||R}static finalize(){const t=Object.getPrototypeOf(this);if(t.hasOwnProperty("finalized")||t.finalize(),this.finalized=!0,this._ensureClassProperties(),this._attributeToPropertyMap=new Map,this.hasOwnProperty(JSCompiler_renameProperty("properties",this))){const t=this.properties,e=[...Object.getOwnPropertyNames(t),..."function"==typeof Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(t):[]];for(const r of e)this.createProperty(r,t[r])}}static _attributeNameForProperty(t,e){const r=e.attribute;return!1===r?void 0:"string"==typeof r?r:"string"==typeof t?t.toLowerCase():void 0}static _valueHasChanged(t,e,r=M){return r(t,e)}static _propertyValueFromAttribute(t,e){const r=e.type,o=e.converter||V,n="function"==typeof o?o:o.fromAttribute;return n?n(t,r):t}static _propertyValueToAttribute(t,e){if(void 0===e.reflect)return;const r=e.type,o=e.converter;return(o&&o.toAttribute||V.toAttribute)(t,r)}initialize(){this._updateState=0,this._updatePromise=new Promise((t=>this._enableUpdatingResolver=t)),this._changedProperties=new Map,this._saveInstanceProperties(),this.requestUpdateInternal()}_saveInstanceProperties(){this.constructor._classProperties.forEach(((t,e)=>{if(this.hasOwnProperty(e)){const t=this[e];delete this[e],this._instanceProperties||(this._instanceProperties=new Map),this._instanceProperties.set(e,t)}}))}_applyInstanceProperties(){this._instanceProperties.forEach(((t,e)=>this[e]=t)),this._instanceProperties=void 0}connectedCallback(){this.enableUpdating()}enableUpdating(){void 0!==this._enableUpdatingResolver&&(this._enableUpdatingResolver(),this._enableUpdatingResolver=void 0)}disconnectedCallback(){}attributeChangedCallback(t,e,r){e!==r&&this._attributeToProperty(t,r)}_propertyToAttribute(t,e,r=R){const o=this.constructor,n=o._attributeNameForProperty(t,r);if(void 0!==n){const t=o._propertyValueToAttribute(e,r);if(void 0===t)return;this._updateState=8|this._updateState,null==t?this.removeAttribute(n):this.setAttribute(n,t),this._updateState=-9&this._updateState}}_attributeToProperty(t,e){if(8&this._updateState)return;const r=this.constructor,o=r._attributeToPropertyMap.get(t);if(void 0!==o){const t=r.getPropertyOptions(o);this._updateState=16|this._updateState,this[o]=r._propertyValueFromAttribute(e,t),this._updateState=-17&this._updateState}}requestUpdateInternal(t,e,r){let o=!0;if(void 0!==t){const n=this.constructor;r=r||n.getPropertyOptions(t),n._valueHasChanged(this[t],e,r.hasChanged)?(this._changedProperties.has(t)||this._changedProperties.set(t,e),!0!==r.reflect||16&this._updateState||(void 0===this._reflectingProperties&&(this._reflectingProperties=new Map),this._reflectingProperties.set(t,r))):o=!1}!this._hasRequestedUpdate&&o&&(this._updatePromise=this._enqueueUpdate())}requestUpdate(t,e){return this.requestUpdateInternal(t,e),this.updateComplete}async _enqueueUpdate(){this._updateState=4|this._updateState;try{await this._updatePromise}catch(t){}const t=this.performUpdate();return null!=t&&await t,!this._hasRequestedUpdate}get _hasRequestedUpdate(){return 4&this._updateState}get hasUpdated(){return 1&this._updateState}performUpdate(){if(!this._hasRequestedUpdate)return;this._instanceProperties&&this._applyInstanceProperties();let t=!1;const e=this._changedProperties;try{t=this.shouldUpdate(e),t?this.update(e):this._markUpdated()}catch(e){throw t=!1,this._markUpdated(),e}t&&(1&this._updateState||(this._updateState=1|this._updateState,this.firstUpdated(e)),this.updated(e))}_markUpdated(){this._changedProperties=new Map,this._updateState=-5&this._updateState}get updateComplete(){return this._getUpdateComplete()}_getUpdateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._updatePromise}shouldUpdate(t){return!0}update(t){void 0!==this._reflectingProperties&&this._reflectingProperties.size>0&&(this._reflectingProperties.forEach(((t,e)=>this._propertyToAttribute(e,this[e],t))),this._reflectingProperties=void 0),this._markUpdated()}updated(t){}firstUpdated(t){}}I.finalized=!0,
/**
* @license
* Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
* This code may only be used under the BSD style license found at
* http://polymer.github.io/LICENSE.txt
* The complete set of authors may be found at
* http://polymer.github.io/AUTHORS.txt
* The complete set of contributors may be found at
* http://polymer.github.io/CONTRIBUTORS.txt
* Code distributed by Google as part of the polymer project is also
* subject to an additional IP rights grant found at
* http://polymer.github.io/PATENTS.txt
*/
"undefined"!=typeof window&&(window.litHtmlVersions||(window.litHtmlVersions=[])).push("1.4.1");const U=(t,...e)=>new v(t,e,"html",C)
/**
@license
Copyright (c) 2019 The Polymer Project Authors. All rights reserved.
This code may only be used under the BSD style license found at
http://polymer.github.io/LICENSE.txt The complete set of authors may be found at
http://polymer.github.io/AUTHORS.txt The complete set of contributors may be
found at http://polymer.github.io/CONTRIBUTORS.txt Code distributed by Google as
part of the polymer project is also subject to an additional IP rights grant
found at http://polymer.github.io/PATENTS.txt
*/,z=window.ShadowRoot&&(void 0===window.ShadyCSS||window.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,$=Symbol();class F{constructor(t,e){if(e!==$)throw new Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=t}get styleSheet(){return void 0===this._styleSheet&&(z?(this._styleSheet=new CSSStyleSheet,this._styleSheet.replaceSync(this.cssText)):this._styleSheet=null),this._styleSheet}toString(){return this.cssText}}const B=(t,...e)=>{const r=e.reduce(((e,r,o)=>e+(t=>{if(t instanceof F)return t.cssText;if("number"==typeof t)return t;throw new Error(`Value passed to 'css' function must be a 'css' function result: ${t}. Use 'unsafeCSS' to pass non-literal values, but\n take care to ensure page security.`)})(r)+t[o+1]),t[0]);return new F(r,$)};
/**
* @license
* Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
* This code may only be used under the BSD style license found at
* http://polymer.github.io/LICENSE.txt
* The complete set of authors may be found at
* http://polymer.github.io/AUTHORS.txt
* The complete set of contributors may be found at
* http://polymer.github.io/CONTRIBUTORS.txt
* Code distributed by Google as part of the polymer project is also
* subject to an additional IP rights grant found at
* http://polymer.github.io/PATENTS.txt
*/
(window.litElementVersions||(window.litElementVersions=[])).push("2.5.1");const H={};class q extends I{static getStyles(){return this.styles}static _getUniqueStyles(){if(this.hasOwnProperty(JSCompiler_renameProperty("_styles",this)))return;const t=this.getStyles();if(Array.isArray(t)){const e=(t,r)=>t.reduceRight(((t,r)=>Array.isArray(r)?e(r,t):(t.add(r),t)),r),r=e(t,new Set),o=[];r.forEach((t=>o.unshift(t))),this._styles=o}else this._styles=void 0===t?[]:[t];this._styles=this._styles.map((t=>{if(t instanceof CSSStyleSheet&&!z){const e=Array.prototype.slice.call(t.cssRules).reduce(((t,e)=>t+e.cssText),"");return new F(String(e),$)}return t}))}initialize(){super.initialize(),this.constructor._getUniqueStyles(),this.renderRoot=this.createRenderRoot(),window.ShadowRoot&&this.renderRoot instanceof window.ShadowRoot&&this.adoptStyles()}createRenderRoot(){return this.attachShadow(this.constructor.shadowRootOptions)}adoptStyles(){const t=this.constructor._styles;0!==t.length&&(void 0===window.ShadyCSS||window.ShadyCSS.nativeShadow?z?this.renderRoot.adoptedStyleSheets=t.map((t=>t instanceof CSSStyleSheet?t:t.styleSheet)):this._needsShimAdoptedStyleSheets=!0:window.ShadyCSS.ScopingShim.prepareAdoptedCssText(t.map((t=>t.cssText)),this.localName))}connectedCallback(){super.connectedCallback(),this.hasUpdated&&void 0!==window.ShadyCSS&&window.ShadyCSS.styleElement(this)}update(t){const e=this.render();super.update(t),e!==H&&this.constructor.render(e,this.renderRoot,{scopeName:this.localName,eventContext:this}),this._needsShimAdoptedStyleSheets&&(this._needsShimAdoptedStyleSheets=!1,this.constructor._styles.forEach((t=>{const e=document.createElement("style");e.textContent=t.cssText,this.renderRoot.appendChild(e)})))}render(){return H}}q.finalized=!0,q.render=(t,e,r)=>{let o=j.get(e);void 0===o&&(n(e,e.firstChild),j.set(e,o=new k(Object.assign({templateFactory:L},r))),o.appendInto(e)),o.setValue(t),o.commit()},q.shadowRootOptions={mode:"open"};
/**
* @license
* Copyright (c) 2018 The Polymer Project Authors. All rights reserved.
* This code may only be used under the BSD style license found at
* http://polymer.github.io/LICENSE.txt
* The complete set of authors may be found at
* http://polymer.github.io/AUTHORS.txt
* The complete set of contributors may be found at
* http://polymer.github.io/CONTRIBUTORS.txt
* Code distributed by Google as part of the polymer project is also
* subject to an additional IP rights grant found at
* http://polymer.github.io/PATENTS.txt
*/
const D=new WeakMap,G=e((t=>e=>{const r=D.get(e);if(void 0===t&&e instanceof _){if(void 0!==r||!D.has(e)){const t=e.committer.name;e.committer.element.removeAttribute(t)}}else t!==r&&e.setValue(t);D.set(e,t)}));
/**
* @license
* Copyright (c) 2018 The Polymer Project Authors. All rights reserved.
* This code may only be used under the BSD style license found at
* http://polymer.github.io/LICENSE.txt
* The complete set of authors may be found at
* http://polymer.github.io/AUTHORS.txt
* The complete set of contributors may be found at
* http://polymer.github.io/CONTRIBUTORS.txt
* Code distributed by Google as part of the polymer project is also
* subject to an additional IP rights grant found at
* http://polymer.github.io/PATENTS.txt
*/
class W{constructor(t){this.classes=new Set,this.changed=!1,this.element=t;const e=(t.getAttribute("class")||"").split(/\s+/);for(const t of e)this.classes.add(t)}add(t){this.classes.add(t),this.changed=!0}remove(t){this.classes.delete(t),this.changed=!0}commit(){if(this.changed){let t="";this.classes.forEach((e=>t+=e+" ")),this.element.setAttribute("class",t)}}}const J=new WeakMap,K=e((t=>e=>{if(!(e instanceof _)||e instanceof P||"class"!==e.committer.name||e.committer.parts.length>1)throw new Error("The `classMap` directive must be used in the `class` attribute and must be the only part in the attribute.");const{committer:r}=e,{element:o}=r;let n=J.get(e);void 0===n&&(o.setAttribute("class",r.strings.join(" ")),J.set(e,n=new Set));const i=o.classList||new W(o);n.forEach((e=>{e in t||(i.remove(e),n.delete(e))}));for(const e in t){const r=t[e];r!=n.has(e)&&(r?(i.add(e),n.add(e)):(i.remove(e),n.delete(e)))}"function"==typeof i.commit&&i.commit()}));var Y="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function X(t){var e={exports:{}};return t(e,e.exports),e.exports}X((function(t,e){!function(){function t(t){var e=!0,r=!1,o=null,n={text:!0,search:!0,url:!0,tel:!0,email:!0,password:!0,number:!0,date:!0,month:!0,week:!0,time:!0,datetime:!0,"datetime-local":!0};function i(t){return!!(t&&t!==document&&"HTML"!==t.nodeName&&"BODY"!==t.nodeName&&"classList"in t&&"contains"in t.classList)}function s(t){t.classList.contains("focus-visible")||(t.classList.add("focus-visible"),t.setAttribute("data-focus-visible-added",""))}function a(t){e=!1}function l(){document.addEventListener("mousemove",c),document.addEventListener("mousedown",c),document.addEventListener("mouseup",c),document.addEventListener("pointermove",c),document.addEventListener("pointerdown",c),document.addEventListener("pointerup",c),document.addEventListener("touchmove",c),document.addEventListener("touchstart",c),document.addEventListener("touchend",c)}function c(t){t.target.nodeName&&"html"===t.target.nodeName.toLowerCase()||(e=!1,document.removeEventListener("mousemove",c),document.removeEventListener("mousedown",c),document.removeEventListener("mouseup",c),document.removeEventListener("pointermove",c),document.removeEventListener("pointerdown",c),document.removeEventListener("pointerup",c),document.removeEventListener("touchmove",c),document.removeEventListener("touchstart",c),document.removeEventListener("touchend",c))}document.addEventListener("keydown",(function(r){r.metaKey||r.altKey||r.ctrlKey||(i(t.activeElement)&&s(t.activeElement),e=!0)}),!0),document.addEventListener("mousedown",a,!0),document.addEventListener("pointerdown",a,!0),document.addEventListener("touchstart",a,!0),document.addEventListener("visibilitychange",(function(t){"hidden"===document.visibilityState&&(r&&(e=!0),l())}),!0),l(),t.addEventListener("focus",(function(t){var r,o,a;i(t.target)&&(e||(o=(r=t.target).type,"INPUT"===(a=r.tagName)&&n[o]&&!r.readOnly||"TEXTAREA"===a&&!r.readOnly||r.isContentEditable))&&s(t.target)}),!0),t.addEventListener("blur",(function(t){var e;i(t.target)&&(t.target.classList.contains("focus-visible")||t.target.hasAttribute("data-focus-visible-added"))&&(r=!0,window.clearTimeout(o),o=window.setTimeout((function(){r=!1}),100),(e=t.target).hasAttribute("data-focus-visible-added")&&(e.classList.remove("focus-visible"),e.removeAttribute("data-focus-visible-added")))}),!0),t.nodeType===Node.DOCUMENT_FRAGMENT_NODE&&t.host?t.host.setAttribute("data-js-focus-visible",""):t.nodeType===Node.DOCUMENT_NODE&&(document.documentElement.classList.add("js-focus-visible"),document.documentElement.setAttribute("data-js-focus-visible",""))}if("undefined"!=typeof window&&"undefined"!=typeof document){var e;window.applyFocusVisiblePolyfill=t;try{e=new CustomEvent("focus-visible-polyfill-ready")}catch(t){(e=document.createEvent("CustomEvent")).initCustomEvent("focus-visible-polyfill-ready",!1,!1,{})}window.dispatchEvent(e)}"undefined"!=typeof document&&t(document)}()}));var Q,Z,tt=B`*,:after,:before{box-sizing:border-box}@media (prefers-reduced-motion:reduce){*,:after,:before{transition:none!important;animation:none!important}}:focus-visible{outline:0}:focus-visible{outline:0}:focus:not(:focus-visible){outline:3px solid transparent}.js-focus-visible :focus:not(.focus-visible){outline:3px solid transparent}.util_insetLg--squish{padding:calc(1.5rem / 2) 1.5rem}:focus-visible.auro-button{outline:3px solid transparent;box-shadow:inset 0 0 0 1px #fff,inset 0 0 0 3px #fff;box-shadow:inset 0 0 0 1px var(--auro-color-border-focus-on-dark),inset 0 0 0 3px var(--auro-color-background-lightest)}:focus-visible.auro-button--secondary{background-color:#f8f8f8;background-color:var(--auro-color-background-lighter);box-shadow:inset 0 0 0 3px #0074c8;box-shadow:inset 0 0 0 3px var(--auro-color-ui-default-on-light)}:focus-visible.auro-button--tertiary{background-color:#f8f8f8;background-color:var(--auro-color-background-lighter);border-color:#0074c8;border-color:var(--auro-color-ui-default-on-light);box-shadow:inset 0 0 0 3px #0074c8;box-shadow:inset 0 0 0 3px var(--auro-color-ui-default-on-light)}:focus-visible.auro-buttonOndark{background-color:#00cff0;background-color:var(--auro-color-ui-default-on-dark);box-shadow:inset 0 0 0 3px #fff;box-shadow:inset 0 0 0 3px var(--auro-color-border-focus-on-dark)}:focus-visible.auro-buttonOndark--secondary{background-color:rgba(0,0,0,.15);background-color:var(--auro-color-base-black-opacity-15);box-shadow:inset 0 0 0 3px #5de3f7;box-shadow:inset 0 0 0 3px var(--auro-color-ui-active-on-dark);border:1px solid #5de3f7;border:1px solid var(--auro-color-ui-active-on-dark)}:focus-visible.auro-buttonOndark--tertiary{background-color:rgba(0,0,0,.15);background-color:var(--auro-color-base-black-opacity-15);border-color:#5de3f7;border-color:var(--auro-color-ui-active-on-dark);box-shadow:inset 0 0 0 3px #5de3f7;box-shadow:inset 0 0 0 3px var(--auro-color-ui-active-on-dark)}.focus-visible.auro-button{outline:3px solid transparent;box-shadow:inset 0 0 0 1px #fff,inset 0 0 0 3px #fff;box-shadow:inset 0 0 0 1px var(--auro-color-border-focus-on-dark),inset 0 0 0 3px var(--auro-color-background-lightest)}.focus-visible.auro-button--secondary{background-color:#f8f8f8;background-color:var(--auro-color-background-lighter);box-shadow:inset 0 0 0 3px #0074c8;box-shadow:inset 0 0 0 3px var(--auro-color-ui-default-on-light)}.focus-visible.auro-button--tertiary{background-color:#f8f8f8;background-color:var(--auro-color-background-lighter);border-color:#0074c8;border-color:var(--auro-color-ui-default-on-light);box-shadow:inset 0 0 0 3px #0074c8;box-shadow:inset 0 0 0 3px var(--auro-color-ui-default-on-light)}.focus-visible.auro-buttonOndark{background-color:#00cff0;background-color:var(--auro-color-ui-default-on-dark);box-shadow:inset 0 0 0 3px #fff;box-shadow:inset 0 0 0 3px var(--auro-color-border-focus-on-dark)}.focus-visible.auro-buttonOndark--secondary{background-color:rgba(0,0,0,.15);background-color:var(--auro-color-base-black-opacity-15);box-shadow:inset 0 0 0 3px #5de3f7;box-shadow:inset 0 0 0 3px var(--auro-color-ui-active-on-dark);border:1px solid #5de3f7;border:1px solid var(--auro-color-ui-active-on-dark)}.focus-visible.auro-buttonOndark--tertiary{background-color:rgba(0,0,0,.15);background-color:var(--auro-color-base-black-opacity-15);border-color:#5de3f7;border-color:var(--auro-color-ui-active-on-dark);box-shadow:inset 0 0 0 3px #5de3f7;box-shadow:inset 0 0 0 3px var(--auro-color-ui-active-on-dark)}:host([fluid=true]) .auro-button,:host([fluid]) .auro-button{min-width:auto;width:100%}::slotted(svg){vertical-align:middle}slot{pointer-events:none}.auro-button{transition:all .15s ease;position:relative;padding:0 1.5rem;padding:0 var(--auro-size-lg);color:#fff;color:var(--auro-color-text-primary-on-dark);cursor:pointer;background-color:#0074c8;background-color:var(--auro-color-ui-default-on-light);border:1px solid #0074c8;border:1px solid var(--auro-color-ui-default-on-light);border-radius:.375rem;border-radius:var(--auro-border-radius);font-family:'AS Circular',Helvetica Neue,Arial,sans-serif;font-family:var(--auro-font-family-default);font-size:1rem;font-size:var(--auro-text-body-size-default);font-weight:500;font-weight:var(--auro-text-body-default-weight);overflow:hidden;text-overflow:ellipsis;-ms-user-select:none;user-select:none;white-space:nowrap;min-height:3rem;min-height:var(--auro-size-xxl);max-height:3rem;max-height:var(--auro-size-xxl);display:inline-flex;flex-direction:row;align-items:center;justify-content:center;gap:.25rem;gap:var(--auro-size-xxs);margin:0;-webkit-tap-highlight-color:transparent;-webkit-touch-callout:none;-webkit-user-select:none}@media (hover:hover){.auro-button:active,.auro-button:hover{background-color:#054687;background-color:var(--auro-color-ui-hover-on-light);border:1px solid #054687;border:1px solid var(--auro-color-ui-hover-on-light)}}.auro-button:active{background-color:#054687;background-color:var(--auro-color-ui-active-on-light);border:1px solid #054687;border:1px solid var(--auro-color-ui-active-on-light);transform:scale(.95)}.auro-button.loading{cursor:not-allowed}.auro-button.loading :not(auro-loader){visibility:hidden}.auro-button.loading auro-loader{color:#00274a;color:var(--auro-color-background-darkest)}.auro-button.loading.auro-buttonOndark auro-loader{color:#fff;color:var(--auro-color-text-primary-on-dark)}@media screen and (min-width:660px){.auro-button{min-width:8.75rem;width:auto}}.auro-button:disabled{cursor:not-allowed;transform:unset;background-color:rgba(0,116,200,.4);border:1px solid rgba(0,116,200,0)}@media (hover:hover){.auro-button:disabled:hover{background-color:rgba(0,116,200,.4);border:1px solid rgba(0,116,200,0)}}.auro-button--secondary{background-color:#fff;background-color:var(--auro-color-background-lightest);border:1px solid #0074c8;border:1px solid var(--auro-color-ui-default-on-light);color:#0074c8;color:var(--auro-color-text-link-on-light)}@media (hover:hover){.auro-button--secondary:active,.auro-button--secondary:hover{background-color:rgba(0,0,0,.06);background-color:var(--auro-color-ui-bkg-hover-on-light);border:1px solid #0074c8;border:1px solid var(--auro-color-ui-default-on-light)}}.auro-button--secondary:active{background-color:rgba(0,0,0,.06);background-color:var(--auro-color-ui-bkg-hover-on-light);border:1px solid #0074c8;border:1px solid var(--auro-color-ui-default-on-light)}.auro-button--secondary:disabled{cursor:not-allowed;transform:unset;color:rgba(0,116,200,.4);background-color:rgba(255,255,255,.4);border:1px solid rgba(0,116,200,.4)}@media (hover:hover){.auro-button--secondary:disabled:hover{color:rgba(0,116,200,.4);background-color:rgba(255,255,255,.4);border:1px solid rgba(0,116,200,.4)}}.auro-button--tertiary{background-color:rgba(0,0,0,.03);border-color:transparent;color:#0074c8;color:var(--auro-color-text-link-on-light)}@media (hover:hover){.auro-button--tertiary:active,.auro-button--tertiary:hover{background-color:rgba(0,0,0,.06);background-color:var(--auro-color-ui-bkg-hover-on-light);border-color:transparent}}.auro-button--tertiary:active{background-color:rgba(0,0,0,.06);background-color:var(--auro-color-ui-bkg-hover-on-light);border-color:transparent}.auro-button--tertiary:disabled{cursor:not-allowed;transform:unset;color:rgba(0,116,200,.4);background-color:rgba(0,0,0,.03);border:1px solid transparent}@media (hover:hover){.auro-button--tertiary:disabled:hover{background-color:rgba(0,0,0,.03);border:1px solid transparent}}.auro-buttonOndark{background-color:#00cff0;background-color:var(--auro-color-ui-default-on-dark);border:1px solid #00cff0;border:1px solid var(--auro-color-ui-default-on-dark);color:#222;color:var(--auro-color-text-primary-on-light)}@media (hover:hover){.auro-buttonOndark:active,.auro-buttonOndark:hover{background-color:#5de3f7;background-color:var(--auro-color-ui-hover-on-dark);border:1px solid #5de3f7;border:1px solid var(--auro-color-ui-hover-on-dark)}}.auro-buttonOndark:active{background-color:#5de3f7;background-color:var(--auro-color-ui-active-on-dark);border:1px solid #5de3f7;border:1px solid var(--auro-color-ui-active-on-dark)}.auro-buttonOndark:disabled{cursor:not-allowed;transform:unset;color:rgba(34,34,34,.4);background-color:rgba(0,207,240,.4);border:1px solid rgba(0,207,240,.4)}@media (hover:hover){.auro-buttonOndark:disabled:hover{color:rgba(34,34,34,.4);background-color:rgba(0,207,240,.4);border:1px solid rgba(0,207,240,.4)}}.auro-buttonOndark--secondary{background-color:transparent;border:1px solid #00cff0;border:1px solid var(--auro-color-ui-default-on-dark);color:#00cff0;color:var(--auro-color-ui-default-on-dark)}@media (hover:hover){.auro-buttonOndark--secondary:active,.auro-buttonOndark--secondary:hover{background-color:rgba(0,0,0,.15);background-color:var(--auro-color-base-black-opacity-15)}}.auro-buttonOndark--secondary:active{background-color:rgba(0,0,0,.15);background-color:var(--auro-color-base-black-opacity-15);border:1px solid #5de3f7;border:1px solid var(--auro-color-ui-hover-on-dark)}@media (hover:hover){.auro-buttonOndark--secondary:disabled:hover{background-color:transparent;border:1px solid #00cff0;border:1px solid var(--auro-color-ui-default-on-dark)}}.auro-buttonOndark--secondary:disabled{cursor:not-allowed;transform:unset;color:rgba(0,207,240,.4);background-color:transparent;border:1px solid rgba(0,207,240,.4)}@media (hover:hover){.auro-buttonOndark--secondary:disabled:hover{color:rgba(0,207,240,.4);background-color:transparent;border:1px solid rgba(0,207,240,.4)}}.auro-buttonOndark--tertiary{background-color:rgba(255,255,255,.03);border:1px solid transparent;color:#00cff0;color:var(--auro-color-ui-default-on-dark)}@media (hover:hover){.auro-buttonOndark--tertiary:active,.auro-buttonOndark--tertiary:hover{background-color:rgba(0,0,0,.15);background-color:var(--auro-color-base-black-opacity-15);border:1px solid transparent;box-shadow:none}}.auro-buttonOndark--tertiary:active{background-color:rgba(0,0,0,.15);background-color:var(--auro-color-base-black-opacity-15);border:1px solid transparent;box-shadow:none}.auro-buttonOndark--tertiary:disabled{cursor:not-allowed;transform:unset;background-color:rgba(255,255,255,.03);border:transparent;color:rgba(0,207,240,.4)}@media (hover:hover){.auro-buttonOndark--tertiary:disabled:hover{background-color:rgba(255,255,255,.03);color:rgba(0,207,240,.4);border:transparent}}.auro-button--slim{padding:.5rem 1rem;padding:var(--auro-size-xs) var(--auro-size-md);font-size:.875rem;font-size:var(--auro-text-body-size-sm);min-width:unset;min-height:2.25rem;max-height:2.25rem}.icon svg{vertical-align:middle}.icon slot{vertical-align:middle}auro-loader{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);pointer-events:none}`,et=B`:host([fixed]) .util_insetLg--squish{padding:calc(24px / 2) 24px}:host([fixed]) .auro-button{padding:0 24px;border-radius:6px;font-size:16px;min-height:48px;max-height:48px;gap:4px}@media screen and (min-width: 660px){:host([fixed]) .auro-button{min-width:140px}}:host([fixed]) .auro-button--slim{padding:8px 16px;font-size:14px;min-height:36px;max-height:36px}`,rt=function(t){return t&&t.Math==Math&&t},ot=rt("object"==typeof globalThis&&globalThis)||rt("object"==typeof window&&window)||rt("object"==typeof self&&self)||rt("object"==typeof Y&&Y)||function(){return this}()||Function("return this")(),nt={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0},it=function(t){try{return!!t()}catch(t){return!0}},st={}.toString,at="".split,lt=it((function(){return!Object("z").propertyIsEnumerable(0)}))?function(t){return"String"==function(t){return st.call(t).slice(8,-1)}(t)?at.call(t,""):Object(t)}:Object,ct=function(t){if(null==t)throw TypeError("Can't call method on "+t);return t},ut=function(t){return lt(ct(t))},dt=function(t,e){try{Object.defineProperty(ot,t,{value:e,configurable:!0,writable:!0})}catch(r){ot[t]=e}return e},ht=ot["__core-js_shared__"]||dt("__core-js_shared__",{}),pt=X((function(t){(t.exports=function(t,e){return ht[t]||(ht[t]=void 0!==e?e:{})})("versions",[]).push({version:"3.16.1",mode:"global",copyright:"© 2021 Denis Pushkarev (zloirock.ru)"})})),ft=function(t){return Object(ct(t))},bt={}.hasOwnProperty,mt=Object.hasOwn||function(t,e){return bt.call(ft(t),e)},gt=0,vt=Math.random(),yt=function(t){return"Symbol("+String(void 0===t?"":t)+")_"+(++gt+vt).toString(36)},wt=function(t){return"function"==typeof t?t:void 0},xt=function(t,e){return arguments.length<2?wt(ot[t]):ot[t]&&ot[t][e]},_t=xt("navigator","userAgent")||"",kt=ot.process,St=ot.Deno,Ot=kt&&kt.versions||St&&St.version,Pt=Ot&&Ot.v8;Pt?Z=(Q=Pt.split("."))[0]<4?1:Q[0]+Q[1]:_t&&(!(Q=_t.match(/Edge\/(\d+)/))||Q[1]>=74)&&(Q=_t.match(/Chrome\/(\d+)/))&&(Z=Q[1]);var Et,Tt=Z&&+Z,At=!!Object.getOwnPropertySymbols&&!it((function(){var t=Symbol();return!String(t)||!(Object(t)instanceof Symbol)||!Symbol.sham&&Tt&&Tt<41})),Ct=At&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,Lt=pt("wks"),Nt=ot.Symbol,jt=Ct?Nt:Nt&&Nt.withoutSetter||yt,Vt=function(t){return mt(Lt,t)&&(At||"string"==typeof Lt[t])||(At&&mt(Nt,t)?Lt[t]=Nt[t]:Lt[t]=jt("Symbol."+t)),Lt[t]},Mt=function(t){return"object"==typeof t?null!==t:"function"==typeof t},Rt=function(t){if(!Mt(t))throw TypeError(String(t)+" is not an object");return t},It=!it((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]})),Ut=ot.document,zt=Mt(Ut)&&Mt(Ut.createElement),$t=function(t){return zt?Ut.createElement(t):{}},Ft=!It&&!it((function(){return 7!=Object.defineProperty($t("div"),"a",{get:function(){return 7}}).a})),Bt=Ct?function(t){return"symbol"==typeof t}:function(t){var e=xt("Symbol");return"function"==typeof e&&Object(t)instanceof e},Ht=Vt("toPrimitive"),qt=function(t,e){if(!Mt(t)||Bt(t))return t;var r,o=t[Ht];if(void 0!==o){if(void 0===e&&(e="default"),r=o.call(t,e),!Mt(r)||Bt(r))return r;throw TypeError("Can't convert object to primitive value")}return void 0===e&&(e="number"),function(t,e){var r,o;if("string"===e&&"function"==typeof(r=t.toString)&&!Mt(o=r.call(t)))return o;if("function"==typeof(r=t.valueOf)&&!Mt(o=r.call(t)))return o;if("string"!==e&&"function"==typeof(r=t.toString)&&!Mt(o=r.call(t)))return o;throw TypeError("Can't convert object to primitive value")}(t,e)},Dt=function(t){var e=qt(t,"string");return Bt(e)?e:String(e)},Gt=Object.defineProperty,Wt={f:It?Gt:function(t,e,r){if(Rt(t),e=Dt(e),Rt(r),Ft)try{return Gt(t,e,r)}catch(t){}if("get"in r||"set"in r)throw TypeError("Accessors not supported");return"value"in r&&(t[e]=r.value),t}},Jt=Math.ceil,Kt=Math.floor,Yt=function(t){return isNaN(t=+t)?0:(t>0?Kt:Jt)(t)},Xt=Math.min,Qt=Math.max,Zt=Math.min,te=function(t){return function(e,r,o){var n,i,s=ut(e),a=(n=s.length)>0?Xt(Yt(n),9007199254740991):0,l=function(t,e){var r=Yt(t);return r<0?Qt(r+e,0):Zt(r,e)}(o,a);if(t&&r!=r){for(;a>l;)if((i=s[l++])!=i)return!0}else for(;a>l;l++)if((t||l in s)&&s[l]===r)return t||l||0;return!t&&-1}},ee={includes:te(!0),indexOf:te(!1)},re={},oe=ee.indexOf,ne=function(t,e){var r,o=ut(t),n=0,i=[];for(r in o)!mt(re,r)&&mt(o,r)&&i.push(r);for(;e.length>n;)mt(o,r=e[n++])&&(~oe(i,r)||i.push(r));return i},ie=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],se=Object.keys||function(t){return ne(t,ie)},ae=It?Object.defineProperties:function(t,e){Rt(t);for(var r,o=se(e),n=o.length,i=0;n>i;)Wt.f(t,r=o[i++],e[r]);return t},le=xt("document","documentElement"),ce=pt("keys"),ue=function(t){return ce[t]||(ce[t]=yt(t))},de=ue("IE_PROTO"),he=function(){},pe=function(t){return"<script>"+t+"<\/script>"},fe=function(t){t.write(pe("")),t.close();var e=t.parentWindow.Object;return t=null,e},be=function(){try{Et=new ActiveXObject("htmlfile")}catch(t){}be=document.domain&&Et?fe(Et):function(){var t,e=$t("iframe");if(e.style)return e.style.display="none",le.appendChild(e),e.src=String("javascript:"),(t=e.contentWindow.document).open(),t.write(pe("document.F=Object")),t.close(),t.F}()||fe(Et);for(var t=ie.length;t--;)delete be.prototype[ie[t]];return be()};re[de]=!0;var me=Object.create||function(t,e){var r;return null!==t?(he.prototype=Rt(t),r=new he,he.prototype=null,r[de]=t):r=be(),void 0===e?r:ae(r,e)},ge=Vt("unscopables"),ve=Array.prototype;null==ve[ge]&&Wt.f(ve,ge,{configurable:!0,value:me(null)});var ye=function(t){ve[ge][t]=!0},we={},xe=Function.toString;"function"!=typeof ht.inspectSource&&(ht.inspectSource=function(t){return xe.call(t)});var _e,ke,Se,Oe=ht.inspectSource,Pe=ot.WeakMap,Ee="function"==typeof Pe&&/native code/.test(Oe(Pe)),Te=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}},Ae=It?function(t,e,r){return Wt.f(t,e,Te(1,r))}:function(t,e,r){return t[e]=r,t},Ce=ot.WeakMap;if(Ee||ht.state){var Le=ht.state||(ht.state=new Ce),Ne=Le.get,je=Le.has,Ve=Le.set;_e=function(t,e){if(je.call(Le,t))throw new TypeError("Object already initialized");return e.facade=t,Ve.call(Le,t,e),e},ke=function(t){return Ne.call(Le,t)||{}},Se=function(t){return je.call(Le,t)}}else{var Me=ue("state");re[Me]=!0,_e=function(t,e){if(mt(t,Me))throw new TypeError("Object already initialized");return e.facade=t,Ae(t,Me,e),e},ke=function(t){return mt(t,Me)?t[Me]:{}},Se=function(t){return mt(t,Me)}}var Re,Ie,Ue,ze={set:_e,get:ke,has:Se,enforce:function(t){return Se(t)?ke(t):_e(t,{})},getterFor:function(t){return function(e){var r;if(!Mt(e)||(r=ke(e)).type!==t)throw TypeError("Incompatible receiver, "+t+" required");return r}}},$e={}.propertyIsEnumerable,Fe=Object.getOwnPropertyDescriptor,Be={f:Fe&&!$e.call({1:2},1)?function(t){var e=Fe(this,t);return!!e&&e.enumerable}:$e},He=Object.getOwnPropertyDescriptor,qe={f:It?He:function(t,e){if(t=ut(t),e=Dt(e),Ft)try{return He(t,e)}catch(t){}if(mt(t,e))return Te(!Be.f.call(t,e),t[e])}},De=X((function(t){var e=ze.get,r=ze.enforce,o=String(String).split("String");(t.exports=function(t,e,n,i){var s,a=!!i&&!!i.unsafe,l=!!i&&!!i.enumerable,c=!!i&&!!i.noTargetGet;"function"==typeof n&&("string"!=typeof e||mt(n,"name")||Ae(n,"name",e),(s=r(n)).source||(s.source=o.join("string"==typeof e?e:""))),t!==ot?(a?!c&&t[e]&&(l=!0):delete t[e],l?t[e]=n:Ae(t,e,n)):l?t[e]=n:dt(e,n)})(Function.prototype,"toString",(function(){return"function"==typeof this&&e(this).source||Oe(this)}))})),Ge=ie.concat("length","prototype"),We={f:Object.getOwnPropertyNames||function(t){return ne(t,Ge)}},Je={f:Object.getOwnPropertySymbols},Ke=xt("Reflect","ownKeys")||function(t){var e=We.f(Rt(t)),r=Je.f;return r?e.concat(r(t)):e},Ye=function(t,e){for(var r=Ke(e),o=Wt.f,n=qe.f,i=0;i<r.length;i++){var s=r[i];mt(t,s)||o(t,s,n(e,s))}},Xe=/#|\.prototype\./,Qe=function(t,e){var r=tr[Ze(t)];return r==rr||r!=er&&("function"==typeof e?it(e):!!e)},Ze=Qe.normalize=function(t){return String(t).replace(Xe,".").toLowerCase()},tr=Qe.data={},er=Qe.NATIVE="N",rr=Qe.POLYFILL="P",or=Qe,nr=qe.f,ir=!it((function(){function t(){}return t.prototype.constructor=null,Object.getPrototypeOf(new t)!==t.prototype})),sr=ue("IE_PROTO"),ar=Object.prototype,lr=ir?Object.getPrototypeOf:function(t){return t=ft(t),mt(t,sr)?t[sr]:"function"==typeof t.constructor&&t instanceof t.constructor?t.constructor.prototype:t instanceof Object?ar:null},cr=Vt("iterator"),ur=!1;[].keys&&("next"in(Ue=[].keys())?(Ie=lr(lr(Ue)))!==Object.prototype&&(Re=Ie):ur=!0),(null==Re||it((function(){var t={};return Re[cr].call(t)!==t})))&&(Re={}),mt(Re,cr)||Ae(Re,cr,(function(){return this}));var dr={IteratorPrototype:Re,BUGGY_SAFARI_ITERATORS:ur},hr=Wt.f,pr=Vt("toStringTag"),fr=function(t,e,r){t&&!mt(t=r?t:t.prototype,pr)&&hr(t,pr,{configurable:!0,value:e})},br=dr.IteratorPrototype,mr=function(){return this},gr=Object.setPrototypeOf||("__proto__"in{}?function(){var t,e=!1,r={};try{(t=Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set).call(r,[]),e=r instanceof Array}catch(t){}return function(r,o){return Rt(r),function(t){if(!Mt(t)&&null!==t)throw TypeError("Can't set "+String(t)+" as a prototype")}(o),e?t.call(r,o):r.__proto__=o,r}}():void 0),vr=dr.IteratorPrototype,yr=dr.BUGGY_SAFARI_ITERATORS,wr=Vt("iterator"),xr=function(){return th