/**
 * @license
 * Copyright 2019 Google LLC
 * SPDX-License-Identifier: BSD-3-Clause
 */
const t=window,n=t.ShadowRoot&&(void 0===t.ShadyCSS||t.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,e=Symbol(),i=new WeakMap;class s{constructor(t,n,i){if(this._$cssResult$=!0,i!==e)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=t,this.t=n}get styleSheet(){let t=this.o;const e=this.t;if(n&&void 0===t){const n=void 0!==e&&1===e.length;n&&(t=i.get(e)),void 0===t&&((this.o=t=new CSSStyleSheet).replaceSync(this.cssText),n&&i.set(e,t))}return t}toString(){return this.cssText}}const r=t=>new s("string"==typeof t?t:t+"",void 0,e),o=(t,...n)=>{const i=1===t.length?t[0]:n.reduce(((n,e,i)=>n+(t=>{if(!0===t._$cssResult$)return t.cssText;if("number"==typeof t)return t;throw Error("Value passed to 'css' function must be a 'css' function result: "+t+". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.")})(e)+t[i+1]),t[0]);return new s(i,t,e)},c=(e,i)=>{n?e.adoptedStyleSheets=i.map((t=>t instanceof CSSStyleSheet?t:t.styleSheet)):i.forEach((n=>{const i=document.createElement("style"),s=t.litNonce;void 0!==s&&i.setAttribute("nonce",s),i.textContent=n.cssText,e.appendChild(i)}))},u=n?t=>t:t=>t instanceof CSSStyleSheet?(t=>{let n="";for(const e of t.cssRules)n+=e.cssText;return r(n)})(t):t
/**
 * @license
 * Copyright 2017 Google LLC
 * SPDX-License-Identifier: BSD-3-Clause
 */;var l;const a=window,f=a.trustedTypes,h=f?f.emptyScript:"",d=a.reactiveElementPolyfillSupport,v={toAttribute(t,n){switch(n){case Boolean:t=t?h:null;break;case Object:case Array:t=null==t?t:JSON.stringify(t)}return t},fromAttribute(t,n){let e=t;switch(n){case Boolean:e=null!==t;break;case Number:e=null===t?null:Number(t);break;case Object:case Array:try{e=JSON.parse(t)}catch(t){e=null}}return e}},p=(t,n)=>n!==t&&(n==n||t==t),w={attribute:!0,type:String,converter:v,reflect:!1,hasChanged:p},y="finalized";class g extends HTMLElement{constructor(){super(),this._$Ei=new Map,this.isUpdatePending=!1,this.hasUpdated=!1,this._$El=null,this._$Eu()}static addInitializer(t){var n;this.finalize(),(null!==(n=this.h)&&void 0!==n?n:this.h=[]).push(t)}static get observedAttributes(){this.finalize();const t=[];return this.elementProperties.forEach(((n,e)=>{const i=this._$Ep(e,n);void 0!==i&&(this._$Ev.set(i,e),t.push(i))})),t}static createProperty(t,n=w){if(n.state&&(n.attribute=!1),this.finalize(),this.elementProperties.set(t,n),!n.noAccessor&&!this.prototype.hasOwnProperty(t)){const e="symbol"==typeof t?Symbol():"__"+t,i=this.getPropertyDescriptor(t,e,n);void 0!==i&&Object.defineProperty(this.prototype,t,i)}}static getPropertyDescriptor(t,n,e){return{get(){return this[n]},set(i){const s=this[t];this[n]=i,this.requestUpdate(t,s,e)},configurable:!0,enumerable:!0}}static getPropertyOptions(t){return this.elementProperties.get(t)||w}static finalize(){if(this.hasOwnProperty(y))return!1;this[y]=!0;const t=Object.getPrototypeOf(this);if(t.finalize(),void 0!==t.h&&(this.h=[...t.h]),this.elementProperties=new Map(t.elementProperties),this._$Ev=new Map,this.hasOwnProperty("properties")){const t=this.properties,n=[...Object.getOwnPropertyNames(t),...Object.getOwnPropertySymbols(t)];for(const e of n)this.createProperty(e,t[e])}return this.elementStyles=this.finalizeStyles(this.styles),!0}static finalizeStyles(t){const n=[];if(Array.isArray(t)){const e=new Set(t.flat(1/0).reverse());for(const t of e)n.unshift(u(t))}else void 0!==t&&n.push(u(t));return n}static _$Ep(t,n){const e=n.attribute;return!1===e?void 0:"string"==typeof e?e:"string"==typeof t?t.toLowerCase():void 0}_$Eu(){var t;this._$E_=new Promise((t=>this.enableUpdating=t)),this._$AL=new Map,this._$Eg(),this.requestUpdate(),null===(t=this.constructor.h)||void 0===t||t.forEach((t=>t(this)))}addController(t){var n,e;(null!==(n=this._$ES)&&void 0!==n?n:this._$ES=[]).push(t),void 0!==this.renderRoot&&this.isConnected&&(null===(e=t.hostConnected)||void 0===e||e.call(t))}removeController(t){var n;null===(n=this._$ES)||void 0===n||n.splice(this._$ES.indexOf(t)>>>0,1)}_$Eg(){this.constructor.elementProperties.forEach(((t,n)=>{this.hasOwnProperty(n)&&(this._$Ei.set(n,this[n]),delete this[n])}))}createRenderRoot(){var t;const n=null!==(t=this.shadowRoot)&&void 0!==t?t:this.attachShadow(this.constructor.shadowRootOptions);return c(n,this.constructor.elementStyles),n}connectedCallback(){var t;void 0===this.renderRoot&&(this.renderRoot=this.createRenderRoot()),this.enableUpdating(!0),null===(t=this._$ES)||void 0===t||t.forEach((t=>{var n;return null===(n=t.hostConnected)||void 0===n?void 0:n.call(t)}))}enableUpdating(t){}disconnectedCallback(){var t;null===(t=this._$ES)||void 0===t||t.forEach((t=>{var n;return null===(n=t.hostDisconnected)||void 0===n?void 0:n.call(t)}))}attributeChangedCallback(t,n,e){this._$AK(t,e)}_$EO(t,n,e=w){var i;const s=this.constructor._$Ep(t,e);if(void 0!==s&&!0===e.reflect){const r=(void 0!==(null===(i=e.converter)||void 0===i?void 0:i.toAttribute)?e.converter:v).toAttribute(n,e.type);this._$El=t,null==r?this.removeAttribute(s):this.setAttribute(s,r),this._$El=null}}_$AK(t,n){var e;const i=this.constructor,s=i._$Ev.get(t);if(void 0!==s&&this._$El!==s){const t=i.getPropertyOptions(s),r="function"==typeof t.converter?{fromAttribute:t.converter}:void 0!==(null===(e=t.converter)||void 0===e?void 0:e.fromAttribute)?t.converter:v;this._$El=s,this[s]=r.fromAttribute(n,t.type),this._$El=null}}requestUpdate(t,n,e){let i=!0;void 0!==t&&(((e=e||this.constructor.getPropertyOptions(t)).hasChanged||p)(this[t],n)?(this._$AL.has(t)||this._$AL.set(t,n),!0===e.reflect&&this._$El!==t&&(void 0===this._$EC&&(this._$EC=new Map),this._$EC.set(t,e))):i=!1),!this.isUpdatePending&&i&&(this._$E_=this._$Ej())}async _$Ej(){this.isUpdatePending=!0;try{await this._$E_}catch(t){Promise.reject(t)}const t=this.scheduleUpdate();return null!=t&&await t,!this.isUpdatePending}scheduleUpdate(){return this.performUpdate()}performUpdate(){var t;if(!this.isUpdatePending)return;this._$Ei&&(this._$Ei.forEach(((t,n)=>this[n]=t)),this._$Ei=void 0);let n=!1;const e=this._$AL;try{n=this.shouldUpdate(e),n?(this.willUpdate(e),null===(t=this._$ES)||void 0===t||t.forEach((t=>{var n;return null===(n=t.hostUpdate)||void 0===n?void 0:n.call(t)})),this.update(e)):this._$Ek()}catch(t){throw n=!1,this._$Ek(),t}n&&this._$AE(e)}willUpdate(t){}_$AE(t){var n;null===(n=this._$ES)||void 0===n||n.forEach((t=>{var n;return null===(n=t.hostUpdated)||void 0===n?void 0:n.call(t)})),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(t)),this.updated(t)}_$Ek(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$E_}shouldUpdate(t){return!0}update(t){void 0!==this._$EC&&(this._$EC.forEach(((t,n)=>this._$EO(n,this[n],t))),this._$EC=void 0),this._$Ek()}updated(t){}firstUpdated(t){}}g[y]=!0,g.elementProperties=new Map,g.elementStyles=[],g.shadowRootOptions={mode:"open"},null==d||d({ReactiveElement:g}),(null!==(l=a.reactiveElementVersions)&&void 0!==l?l:a.reactiveElementVersions=[]).push("1.6.3");
/**
 * @license
 * Copyright 2017 Google LLC
 * SPDX-License-Identifier: BSD-3-Clause
 */var m;const b=window,E=b.trustedTypes,A=E?E.createPolicy("lit-html",{createHTML:t=>t}):void 0,$="$lit$",M=`lit$${(Math.random()+"").slice(9)}$`,S="?"+M,T=`<${S}>`,x=document,k=()=>x.createComment(""),R=t=>null===t||"object"!=typeof t&&"function"!=typeof t,C=Array.isArray,U=t=>C(t)||"function"==typeof(null==t?void 0:t[Symbol.iterator]),_="[ \t\n\f\r]",N=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,P=/-->/g,I=/>/g,O=RegExp(`>|${_}(?:([^\\s"'>=/]+)(${_}*=${_}*(?:[^ \t\n\f\r"'\`<>=]|("|')|))|$)`,"g"),j=/'/g,F=/"/g,B=/^(?:script|style|textarea|title)$/i,D=t=>(n,...e)=>({_$litType$:t,strings:n,values:e}),z=D(1),L=D(2),Z=Symbol.for("lit-noChange"),V=Symbol.for("lit-nothing"),q=new WeakMap,Q=x.createTreeWalker(x,129,null,!1);function H(t,n){if(!Array.isArray(t)||!t.hasOwnProperty("raw"))throw Error("invalid template strings array");return void 0!==A?A.createHTML(n):n}const J=(t,n)=>{const e=t.length-1,i=[];let s,r=2===n?"<svg>":"",o=N;for(let n=0;n<e;n++){const e=t[n];let c,u,l=-1,a=0;for(;a<e.length&&(o.lastIndex=a,u=o.exec(e),null!==u);)a=o.lastIndex,o===N?"!--"===u[1]?o=P:void 0!==u[1]?o=I:void 0!==u[2]?(B.test(u[2])&&(s=RegExp("</"+u[2],"g")),o=O):void 0!==u[3]&&(o=O):o===O?">"===u[0]?(o=null!=s?s:N,l=-1):void 0===u[1]?l=-2:(l=o.lastIndex-u[2].length,c=u[1],o=void 0===u[3]?O:'"'===u[3]?F:j):o===F||o===j?o=O:o===P||o===I?o=N:(o=O,s=void 0);const f=o===O&&t[n+1].startsWith("/>")?" ":"";r+=o===N?e+T:l>=0?(i.push(c),e.slice(0,l)+$+e.slice(l)+M+f):e+M+(-2===l?(i.push(void 0),n):f)}return[H(t,r+(t[e]||"<?>")+(2===n?"</svg>":"")),i]};class K{constructor({strings:t,_$litType$:n},e){let i;this.parts=[];let s=0,r=0;const o=t.length-1,c=this.parts,[u,l]=J(t,n);if(this.el=K.createElement(u,e),Q.currentNode=this.el.content,2===n){const t=this.el.content,n=t.firstChild;n.remove(),t.append(...n.childNodes)}for(;null!==(i=Q.nextNode())&&c.length<o;){if(1===i.nodeType){if(i.hasAttributes()){const t=[];for(const n of i.getAttributeNames())if(n.endsWith($)||n.startsWith(M)){const e=l[r++];if(t.push(n),void 0!==e){const t=i.getAttribute(e.toLowerCase()+$).split(M),n=/([.?@])?(.*)/.exec(e);c.push({type:1,index:s,name:n[2],strings:t,ctor:"."===n[1]?tt:"?"===n[1]?et:"@"===n[1]?it:G})}else c.push({type:6,index:s})}for(const n of t)i.removeAttribute(n)}if(B.test(i.tagName)){const t=i.textContent.split(M),n=t.length-1;if(n>0){i.textContent=E?E.emptyScript:"";for(let e=0;e<n;e++)i.append(t[e],k()),Q.nextNode(),c.push({type:2,index:++s});i.append(t[n],k())}}}else if(8===i.nodeType)if(i.data===S)c.push({type:2,index:s});else{let t=-1;for(;-1!==(t=i.data.indexOf(M,t+1));)c.push({type:7,index:s}),t+=M.length-1}s++}}static createElement(t,n){const e=x.createElement("template");return e.innerHTML=t,e}}function W(t,n,e=t,i){var s,r,o,c;if(n===Z)return n;let u=void 0!==i?null===(s=e._$Co)||void 0===s?void 0:s[i]:e._$Cl;const l=R(n)?void 0:n._$litDirective$;return(null==u?void 0:u.constructor)!==l&&(null===(r=null==u?void 0:u._$AO)||void 0===r||r.call(u,!1),void 0===l?u=void 0:(u=new l(t),u._$AT(t,e,i)),void 0!==i?(null!==(o=(c=e)._$Co)&&void 0!==o?o:c._$Co=[])[i]=u:e._$Cl=u),void 0!==u&&(n=W(t,u._$AS(t,n.values),u,i)),n}class Y{constructor(t,n){this._$AV=[],this._$AN=void 0,this._$AD=t,this._$AM=n}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(t){var n;const{el:{content:e},parts:i}=this._$AD,s=(null!==(n=null==t?void 0:t.creationScope)&&void 0!==n?n:x).importNode(e,!0);Q.currentNode=s;let r=Q.nextNode(),o=0,c=0,u=i[0];for(;void 0!==u;){if(o===u.index){let n;2===u.type?n=new X(r,r.nextSibling,this,t):1===u.type?n=new u.ctor(r,u.name,u.strings,this,t):6===u.type&&(n=new st(r,this,t)),this._$AV.push(n),u=i[++c]}o!==(null==u?void 0:u.index)&&(r=Q.nextNode(),o++)}return Q.currentNode=x,s}v(t){let n=0;for(const e of this._$AV)void 0!==e&&(void 0!==e.strings?(e._$AI(t,e,n),n+=e.strings.length-2):e._$AI(t[n])),n++}}class X{constructor(t,n,e,i){var s;this.type=2,this._$AH=V,this._$AN=void 0,this._$AA=t,this._$AB=n,this._$AM=e,this.options=i,this._$Cp=null===(s=null==i?void 0:i.isConnected)||void 0===s||s}get _$AU(){var t,n;return null!==(n=null===(t=this._$AM)||void 0===t?void 0:t._$AU)&&void 0!==n?n:this._$Cp}get parentNode(){let t=this._$AA.parentNode;const n=this._$AM;return void 0!==n&&11===(null==t?void 0:t.nodeType)&&(t=n.parentNode),t}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(t,n=this){t=W(this,t,n),R(t)?t===V||null==t||""===t?(this._$AH!==V&&this._$AR(),this._$AH=V):t!==this._$AH&&t!==Z&&this._(t):void 0!==t._$litType$?this.g(t):void 0!==t.nodeType?this.$(t):U(t)?this.T(t):this._(t)}k(t){return this._$AA.parentNode.insertBefore(t,this._$AB)}$(t){this._$AH!==t&&(this._$AR(),this._$AH=this.k(t))}_(t){this._$AH!==V&&R(this._$AH)?this._$AA.nextSibling.data=t:this.$(x.createTextNode(t)),this._$AH=t}g(t){var n;const{values:e,_$litType$:i}=t,s="number"==typeof i?this._$AC(t):(void 0===i.el&&(i.el=K.createElement(H(i.h,i.h[0]),this.options)),i);if((null===(n=this._$AH)||void 0===n?void 0:n._$AD)===s)this._$AH.v(e);else{const t=new Y(s,this),n=t.u(this.options);t.v(e),this.$(n),this._$AH=t}}_$AC(t){let n=q.get(t.strings);return void 0===n&&q.set(t.strings,n=new K(t)),n}T(t){C(this._$AH)||(this._$AH=[],this._$AR());const n=this._$AH;let e,i=0;for(const s of t)i===n.length?n.push(e=new X(this.k(k()),this.k(k()),this,this.options)):e=n[i],e._$AI(s),i++;i<n.length&&(this._$AR(e&&e._$AB.nextSibling,i),n.length=i)}_$AR(t=this._$AA.nextSibling,n){var e;for(null===(e=this._$AP)||void 0===e||e.call(this,!1,!0,n);t&&t!==this._$AB;){const n=t.nextSibling;t.remove(),t=n}}setConnected(t){var n;void 0===this._$AM&&(this._$Cp=t,null===(n=this._$AP)||void 0===n||n.call(this,t))}}class G{constructor(t,n,e,i,s){this.type=1,this._$AH=V,this._$AN=void 0,this.element=t,this.name=n,this._$AM=i,this.options=s,e.length>2||""!==e[0]||""!==e[1]?(this._$AH=Array(e.length-1).fill(new String),this.strings=e):this._$AH=V}get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}_$AI(t,n=this,e,i){const s=this.strings;let r=!1;if(void 0===s)t=W(this,t,n,0),r=!R(t)||t!==this._$AH&&t!==Z,r&&(this._$AH=t);else{const i=t;let o,c;for(t=s[0],o=0;o<s.length-1;o++)c=W(this,i[e+o],n,o),c===Z&&(c=this._$AH[o]),r||(r=!R(c)||c!==this._$AH[o]),c===V?t=V:t!==V&&(t+=(null!=c?c:"")+s[o+1]),this._$AH[o]=c}r&&!i&&this.j(t)}j(t){t===V?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,null!=t?t:"")}}class tt extends G{constructor(){super(...arguments),this.type=3}j(t){this.element[this.name]=t===V?void 0:t}}const nt=E?E.emptyScript:"";class et extends G{constructor(){super(...arguments),this.type=4}j(t){t&&t!==V?this.element.setAttribute(this.name,nt):this.element.removeAttribute(this.name)}}class it extends G{constructor(t,n,e,i,s){super(t,n,e,i,s),this.type=5}_$AI(t,n=this){var e;if((t=null!==(e=W(this,t,n,0))&&void 0!==e?e:V)===Z)return;const i=this._$AH,s=t===V&&i!==V||t.capture!==i.capture||t.once!==i.once||t.passive!==i.passive,r=t!==V&&(i===V||s);s&&this.element.removeEventListener(this.name,this,i),r&&this.element.addEventListener(this.name,this,t),this._$AH=t}handleEvent(t){var n,e;"function"==typeof this._$AH?this._$AH.call(null!==(e=null===(n=this.options)||void 0===n?void 0:n.host)&&void 0!==e?e:this.element,t):this._$AH.handleEvent(t)}}class st{constructor(t,n,e){this.element=t,this.type=6,this._$AN=void 0,this._$AM=n,this.options=e}get _$AU(){return this._$AM._$AU}_$AI(t){W(this,t)}}const rt=b.litHtmlPolyfillSupport;null==rt||rt(K,X),(null!==(m=b.litHtmlVersions)&&void 0!==m?m:b.litHtmlVersions=[]).push("2.8.0");const ot=(t,n,e)=>{var i,s;const r=null!==(i=null==e?void 0:e.renderBefore)&&void 0!==i?i:n;let o=r._$litPart$;if(void 0===o){const t=null!==(s=null==e?void 0:e.renderBefore)&&void 0!==s?s:null;r._$litPart$=o=new X(n.insertBefore(k(),t),t,void 0,null!=e?e:{})}return o._$AI(t),o
/**
 * @license
 * Copyright 2017 Google LLC
 * SPDX-License-Identifier: BSD-3-Clause
 */};var ct,ut;class lt extends g{constructor(){super(...arguments),this.renderOptions={host:this},this._$Do=void 0}createRenderRoot(){var t,n;const e=super.createRenderRoot();return null!==(t=(n=this.renderOptions).renderBefore)&&void 0!==t||(n.renderBefore=e.firstChild),e}update(t){const n=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(t),this._$Do=ot(n,this.renderRoot,this.renderOptions)}connectedCallback(){var t;super.connectedCallback(),null===(t=this._$Do)||void 0===t||t.setConnected(!0)}disconnectedCallback(){var t;super.disconnectedCallback(),null===(t=this._$Do)||void 0===t||t.setConnected(!1)}render(){return Z}}lt.finalized=!0,lt._$litElement$=!0,null===(ct=globalThis.litElementHydrateSupport)||void 0===ct||ct.call(globalThis,{LitElement:lt});const at=globalThis.litElementPolyfillSupport;null==at||at({LitElement:lt});(null!==(ut=globalThis.litElementVersions)&&void 0!==ut?ut:globalThis.litElementVersions=[]).push("3.3.3");
/**
 * @license
 * Copyright 2017 Google LLC
 * SPDX-License-Identifier: BSD-3-Clause
 */const ft=t=>n=>"function"==typeof n?((t,n)=>(customElements.define(t,n),n))(t,n):((t,n)=>{const{kind:e,elements:i}=n;return{kind:e,elements:i,finisher(n){customElements.define(t,n)}}})(t,n)
/**
 * @license
 * Copyright 2017 Google LLC
 * SPDX-License-Identifier: BSD-3-Clause
 */;const ht=(t,n)=>"method"===n.kind&&n.descriptor&&!("value"in n.descriptor)?{...n,finisher(e){e.createProperty(n.key,t)}}:{kind:"field",key:Symbol(),placement:"own",descriptor:{},originalKey:n.key,initializer(){"function"==typeof n.initializer&&(this[n.key]=n.initializer.call(this))},finisher(e){e.createProperty(n.key,t)}},dt=(t,n,e)=>{n.constructor.createProperty(e,t)};function vt(t){return(n,e)=>void 0!==e?dt(t,n,e):ht(t,n)
/**
 * @license
 * Copyright 2017 Google LLC
 * SPDX-License-Identifier: BSD-3-Clause
 */}function pt(t){return vt({...t,state:!0})}
/**
 * @license
 * Copyright 2017 Google LLC
 * SPDX-License-Identifier: BSD-3-Clause
 */const wt={ATTRIBUTE:1,CHILD:2,PROPERTY:3,BOOLEAN_ATTRIBUTE:4,EVENT:5,ELEMENT:6},yt=t=>(...n)=>({_$litDirective$:t,values:n});class gt{constructor(t){}get _$AU(){return this._$AM._$AU}_$AT(t,n,e){this._$Ct=t,this._$AM=n,this._$Ci=e}_$AS(t,n){return this.update(t,n)}update(t,n){return this.render(...n)}}
/**
 * @license
 * Copyright 2018 Google LLC
 * SPDX-License-Identifier: BSD-3-Clause
 */const mt=yt(class extends gt{constructor(t){var n;if(super(t),t.type!==wt.ATTRIBUTE||"class"!==t.name||(null===(n=t.strings)||void 0===n?void 0:n.length)>2)throw Error("`classMap()` can only be used in the `class` attribute and must be the only part in the attribute.")}render(t){return" "+Object.keys(t).filter((n=>t[n])).join(" ")+" "}update(t,[n]){var e,i;if(void 0===this.it){this.it=new Set,void 0!==t.strings&&(this.nt=new Set(t.strings.join(" ").split(/\s/).filter((t=>""!==t))));for(const t in n)n[t]&&!(null===(e=this.nt)||void 0===e?void 0:e.has(t))&&this.it.add(t);return this.render(n)}const s=t.element.classList;this.it.forEach((t=>{t in n||(s.remove(t),this.it.delete(t))}));for(const t in n){const e=!!n[t];e===this.it.has(t)||(null===(i=this.nt)||void 0===i?void 0:i.has(t))||(e?(s.add(t),this.it.add(t)):(s.remove(t),this.it.delete(t)))}return Z}});function bt(t,n){t.indexOf(n)===-1&&t.push(n)}const Et=(t,n,e)=>Math.min(Math.max(e,t),n);const At={duration:.3,delay:0,endDelay:0,repeat:0,easing:"ease"};const $t=t=>typeof t==="number";const Mt=t=>Array.isArray(t)&&!$t(t[0]);const St=(t,n,e)=>{const i=n-t;return((e-t)%i+i)%i+t};function Tt(t,n){return Mt(t)?t[St(0,t.length,n)]:t}const xt=(t,n,e)=>-e*t+e*n+t;const kt=()=>{};const Rt=t=>t;const Ct=(t,n,e)=>n-t===0?1:(e-t)/(n-t);function Ut(t,n){const e=t[t.length-1];for(let i=1;i<=n;i++){const s=Ct(0,n,i);t.push(xt(e,1,s))}}function _t(t){const n=[0];Ut(n,t-1);return n}function Nt(t,n=_t(t.length),e=Rt){const i=t.length;const s=i-n.length;s>0&&Ut(n,s);return s=>{let r=0;for(;r<i-2;r++){if(s<n[r+1])break}let o=Et(0,1,Ct(n[r],n[r+1],s));const c=Tt(e,r);o=c(o);return xt(t[r],t[r+1],o)}}const Pt=t=>Array.isArray(t)&&$t(t[0]);const It=t=>typeof t==="object"&&Boolean(t.createAnimation);const Ot=t=>typeof t==="function";const jt=t=>typeof t==="string";const Ft={ms:t=>t*1e3,s:t=>t/1e3};const Bt=(t,n,e)=>(((1-3*e+3*n)*t+(3*e-6*n))*t+3*n)*t;const Dt=1e-7;const zt=12;function Lt(t,n,e,i,s){let r;let o;let c=0;do{o=n+(e-n)/2;r=Bt(o,i,s)-t;if(r>0){e=o}else{n=o}}while(Math.abs(r)>Dt&&++c<zt);return o}function Zt(t,n,e,i){if(t===n&&e===i)return Rt;const s=n=>Lt(n,0,1,t,e);return t=>t===0||t===1?t:Bt(s(t),n,i)}const Vt=(t,n="end")=>e=>{e=n==="end"?Math.min(e,.999):Math.max(e,.001);const i=e*t;const s=n==="end"?Math.floor(i):Math.ceil(i);return Et(0,1,s/t)};const qt={ease:Zt(.25,.1,.25,1),"ease-in":Zt(.42,0,1,1),"ease-in-out":Zt(.42,0,.58,1),"ease-out":Zt(0,0,.58,1)};const Qt=/\((.*?)\)/;function Ht(t){if(Ot(t))return t;if(Pt(t))return Zt(...t);if(qt[t])return qt[t];if(t.startsWith("steps")){const n=Qt.exec(t);if(n){const t=n[1].split(",");return Vt(parseFloat(t[0]),t[1].trim())}}return Rt}class Jt{constructor(t,n=[0,1],{easing:e,duration:i=At.duration,delay:s=At.delay,endDelay:r=At.endDelay,repeat:o=At.repeat,offset:c,direction:u="normal"}={}){this.startTime=null;this.rate=1;this.t=0;this.cancelTimestamp=null;this.easing=Rt;this.duration=0;this.totalDuration=0;this.repeat=0;this.playState="idle";this.finished=new Promise(((t,n)=>{this.resolve=t;this.reject=n}));e=e||At.easing;if(It(e)){const t=e.createAnimation(n);e=t.easing;n=t.keyframes||n;i=t.duration||i}this.repeat=o;this.easing=Mt(e)?Rt:Ht(e);this.updateDuration(i);const l=Nt(n,c,Mt(e)?e.map(Ht):Rt);this.tick=n=>{var e;s=s;let i=0;if(this.pauseTime!==undefined){i=this.pauseTime}else{i=(n-this.startTime)*this.rate}this.t=i;i/=1e3;i=Math.max(i-s,0);if(this.playState==="finished"&&this.pauseTime===undefined){i=this.totalDuration}const o=i/this.duration;let c=Math.floor(o);let a=o%1;if(!a&&o>=1){a=1}a===1&&c--;const f=c%2;if(u==="reverse"||u==="alternate"&&f||u==="alternate-reverse"&&!f){a=1-a}const h=i>=this.totalDuration?1:Math.min(a,1);const d=l(this.easing(h));t(d);const v=this.pauseTime===undefined&&(this.playState==="finished"||i>=this.totalDuration+r);if(v){this.playState="finished";(e=this.resolve)===null||e===void 0?void 0:e.call(this,d)}else if(this.playState!=="idle"){this.frameRequestId=requestAnimationFrame(this.tick)}};this.play()}play(){const t=performance.now();this.playState="running";if(this.pauseTime!==undefined){this.startTime=t-this.pauseTime}else if(!this.startTime){this.startTime=t}this.cancelTimestamp=this.startTime;this.pauseTime=undefined;this.frameRequestId=requestAnimationFrame(this.tick)}pause(){this.playState="paused";this.pauseTime=this.t}finish(){this.playState="finished";this.tick(0)}stop(){var t;this.playState="idle";if(this.frameRequestId!==undefined){cancelAnimationFrame(this.frameRequestId)}(t=this.reject)===null||t===void 0?void 0:t.call(this,false)}cancel(){this.stop();this.tick(this.cancelTimestamp)}reverse(){this.rate*=-1}commitStyles(){}updateDuration(t){this.duration=t;this.totalDuration=t*(this.repeat+1)}get currentTime(){return this.t}set currentTime(t){if(this.pauseTime!==undefined||this.rate===0){this.pauseTime=t}else{this.startTime=performance.now()-t/this.rate}}get playbackRate(){return this.rate}set playbackRate(t){this.rate=t}}class Kt{setAnimation(t){this.animation=t;t===null||t===void 0?void 0:t.finished.then((()=>this.clearAnimation())).catch((()=>{}))}clearAnimation(){this.animation=this.generator=undefined}}const Wt=new WeakMap;function Yt(t){if(!Wt.has(t)){Wt.set(t,{transforms:[],values:new Map})}return Wt.get(t)}function Xt(t,n){if(!t.has(n)){t.set(n,new Kt)}return t.get(n)}const Gt=["","X","Y","Z"];const tn=["translate","scale","rotate","skew"];const nn={x:"translateX",y:"translateY",z:"translateZ"};const en={syntax:"<angle>",initialValue:"0deg",toDefaultUnit:t=>t+"deg"};const sn={translate:{syntax:"<length-percentage>",initialValue:"0px",toDefaultUnit:t=>t+"px"},rotate:en,scale:{syntax:"<number>",initialValue:1,toDefaultUnit:Rt},skew:en};const rn=new Map;const on=t=>`--motion-${t}`;const cn=["x","y","z"];tn.forEach((t=>{Gt.forEach((n=>{cn.push(t+n);rn.set(on(t+n),sn[t])}))}));const un=(t,n)=>cn.indexOf(t)-cn.indexOf(n);const ln=new Set(cn);const an=t=>ln.has(t);const fn=(t,n)=>{if(nn[n])n=nn[n];const{transforms:e}=Yt(t);bt(e,n);t.style.transform=hn(e)};const hn=t=>t.sort(un).reduce(dn,"").trim();const dn=(t,n)=>`${t} ${n}(var(${on(n)}))`;const vn=t=>t.startsWith("--");const pn=new Set;function wn(t){if(pn.has(t))return;pn.add(t);try{const{syntax:n,initialValue:e}=rn.has(t)?rn.get(t):{};CSS.registerProperty({name:t,inherits:false,syntax:n,initialValue:e})}catch(t){}}const yn=(t,n)=>document.createElement("div").animate(t,n);const gn={cssRegisterProperty:()=>typeof CSS!=="undefined"&&Object.hasOwnProperty.call(CSS,"registerProperty"),waapi:()=>Object.hasOwnProperty.call(Element.prototype,"animate"),partialKeyframes:()=>{try{yn({opacity:[1]})}catch(t){return false}return true},finished:()=>Boolean(yn({opacity:[0,1]},{duration:.001}).finished),linearEasing:()=>{try{yn({opacity:0},{easing:"linear(0, 1)"})}catch(t){return false}return true}};const mn={};const bn={};for(const t in gn){bn[t]=()=>{if(mn[t]===undefined)mn[t]=gn[t]();return mn[t]}}const En=.015;const An=(t,n)=>{let e="";const i=Math.round(n/En);for(let n=0;n<i;n++){e+=t(Ct(0,i-1,n))+", "}return e.substring(0,e.length-2)};const $n=(t,n)=>{if(Ot(t)){return bn.linearEasing()?`linear(${An(t,n)})`:At.easing}else{return Pt(t)?Mn(t):t}};const Mn=([t,n,e,i])=>`cubic-bezier(${t}, ${n}, ${e}, ${i})`;function Sn(t,n){for(let e=0;e<t.length;e++){if(t[e]===null){t[e]=e?t[e-1]:n()}}return t}const Tn=t=>Array.isArray(t)?t:[t];function xn(t){if(nn[t])t=nn[t];return an(t)?on(t):t}const kn={get:(t,n)=>{n=xn(n);let e=vn(n)?t.style.getPropertyValue(n):getComputedStyle(t)[n];if(!e&&e!==0){const t=rn.get(n);if(t)e=t.initialValue}return e},set:(t,n,e)=>{n=xn(n);if(vn(n)){t.style.setProperty(n,e)}else{t.style[n]=e}}};function Rn(t,n=true){if(!t||t.playState==="finished")return;try{if(t.stop){t.stop()}else{n&&t.commitStyles();t.cancel()}}catch(t){}}function Cn(t,n){var e;let i=(n===null||n===void 0?void 0:n.toDefaultUnit)||Rt;const s=t[t.length-1];if(jt(s)){const t=((e=s.match(/(-?[\d.]+)([a-z%]*)/))===null||e===void 0?void 0:e[2])||"";if(t)i=n=>n+t}return i}function Un(){return window.__MOTION_DEV_TOOLS_RECORD}function _n(t,n,e,i={},s){const r=Un();const o=i.record!==false&&r;let c;let{duration:u=At.duration,delay:l=At.delay,endDelay:a=At.endDelay,repeat:f=At.repeat,easing:h=At.easing,persist:d=false,direction:v,offset:p,allowWebkitAcceleration:w=false}=i;const y=Yt(t);const g=an(n);let m=bn.waapi();g&&fn(t,n);const b=xn(n);const E=Xt(y.values,b);const A=rn.get(b);Rn(E.animation,!(It(h)&&E.generator)&&i.record!==false);return()=>{const y=()=>{var n,e;return(e=(n=kn.get(t,b))!==null&&n!==void 0?n:A===null||A===void 0?void 0:A.initialValue)!==null&&e!==void 0?e:0};let $=Sn(Tn(e),y);const M=Cn($,A);if(It(h)){const t=h.createAnimation($,n!=="opacity",y,b,E);h=t.easing;$=t.keyframes||$;u=t.duration||u}if(vn(b)){if(bn.cssRegisterProperty()){wn(b)}else{m=false}}if(g&&!bn.linearEasing()&&(Ot(h)||Mt(h)&&h.some(Ot))){m=false}if(m){if(A){$=$.map((t=>$t(t)?A.toDefaultUnit(t):t))}if($.length===1&&(!bn.partialKeyframes()||o)){$.unshift(y())}const n={delay:Ft.ms(l),duration:Ft.ms(u),endDelay:Ft.ms(a),easing:!Mt(h)?$n(h,u):undefined,direction:v,iterations:f+1,fill:"both"};c=t.animate({[b]:$,offset:p,easing:Mt(h)?h.map((t=>$n(t,u))):undefined},n);if(!c.finished){c.finished=new Promise(((t,n)=>{c.onfinish=t;c.oncancel=n}))}const e=$[$.length-1];c.finished.then((()=>{if(d)return;kn.set(t,b,e);c.cancel()})).catch(kt);if(!w)c.playbackRate=1.000001}else if(s&&g){$=$.map((t=>typeof t==="string"?parseFloat(t):t));if($.length===1){$.unshift(parseFloat(y()))}c=new s((n=>{kn.set(t,b,M?M(n):n)}),$,Object.assign(Object.assign({},i),{duration:u,easing:h}))}else{const n=$[$.length-1];kn.set(t,b,A&&$t(n)?A.toDefaultUnit(n):n)}if(o){r(t,n,$,{duration:u,delay:l,easing:h,repeat:f,offset:p},"motion-one")}E.setAnimation(c);return c}}const Nn=(t,n)=>t[n]?Object.assign(Object.assign({},t),t[n]):Object.assign({},t);function Pn(t,n){var e;if(typeof t==="string"){if(n){(e=n[t])!==null&&e!==void 0?e:n[t]=document.querySelectorAll(t);t=n[t]}else{t=document.querySelectorAll(t)}}else if(t instanceof Element){t=[t]}return Array.from(t||[])}const In=t=>t();const On=(t,n,e=At.duration)=>new Proxy({animations:t.map(In).filter(Boolean),duration:e,options:n},Fn);const jn=t=>t.animations[0];const Fn={get:(t,n)=>{const e=jn(t);switch(n){case"duration":return t.duration;case"currentTime":return Ft.s((e===null||e===void 0?void 0:e[n])||0);case"playbackRate":case"playState":return e===null||e===void 0?void 0:e[n];case"finished":if(!t.finished){t.finished=Promise.all(t.animations.map(Bn)).catch(kt)}return t.finished;case"stop":return()=>{t.animations.forEach((t=>Rn(t)))};case"forEachNative":return n=>{t.animations.forEach((e=>n(e,t)))};default:return typeof(e===null||e===void 0?void 0:e[n])==="undefined"?undefined:()=>t.animations.forEach((t=>t[n]()))}},set:(t,n,e)=>{switch(n){case"currentTime":e=Ft.ms(e);case"currentTime":case"playbackRate":for(let i=0;i<t.animations.length;i++){t.animations[i][n]=e}return true}return false}};const Bn=t=>t.finished;function Dn(t,n,e){return Ot(t)?t(n,e):t}function zn(t){return function n(e,i,s={}){e=Pn(e);const r=e.length;const o=[];for(let n=0;n<r;n++){const c=e[n];for(const e in i){const u=Nn(s,e);u.delay=Dn(u.delay,n,r);const l=_n(c,e,i[e],u,t);o.push(l)}}return On(o,s,s.duration)}}const Ln=zn(Jt);function Zn(t,n={}){return On([()=>{const e=new Jt(t,[0,1],n);e.finished.catch((()=>{}));return e}],n,n.duration)}function Vn(t,n,e){const i=Ot(t)?Zn:Ln;return i(t,n,e)}var qn={};var Qn=function(){return typeof Promise==="function"&&Promise.prototype&&Promise.prototype.then};var Hn={};var Jn={};let Kn;const Wn=[0,26,44,70,100,134,172,196,242,292,346,404,466,532,581,655,733,815,901,991,1085,1156,1258,1364,1474,1588,1706,1828,1921,2051,2185,2323,2465,2611,2761,2876,3034,3196,3362,3532,3706];Jn.getSymbolSize=function t(n){if(!n)throw new Error('"version" cannot be null or undefined');if(n<1||n>40)throw new Error('"version" should be in range from 1 to 40');return n*4+17};Jn.getSymbolTotalCodewords=function t(n){return Wn[n]};Jn.getBCHDigit=function(t){let n=0;while(t!==0){n++;t>>>=1}return n};Jn.setToSJISFunction=function t(n){if(typeof n!=="function"){throw new Error('"toSJISFunc" is not a valid function.')}Kn=n};Jn.isKanjiModeEnabled=function(){return typeof Kn!=="undefined"};Jn.toSJIS=function t(n){return Kn(n)};var Yn={};(function(t){t.L={bit:1};t.M={bit:0};t.Q={bit:3};t.H={bit:2};function n(n){if(typeof n!=="string"){throw new Error("Param is not a string")}const e=n.toLowerCase();switch(e){case"l":case"low":return t.L;case"m":case"medium":return t.M;case"q":case"quartile":return t.Q;case"h":case"high":return t.H;default:throw new Error("Unknown EC Level: "+n)}}t.isValid=function t(n){return n&&typeof n.bit!=="undefined"&&n.bit>=0&&n.bit<4};t.from=function e(i,s){if(t.isValid(i)){return i}try{return n(i)}catch(t){return s}}})(Yn);function Xn(){this.buffer=[];this.length=0}Xn.prototype={get:function(t){const n=Math.floor(t/8);return(this.buffer[n]>>>7-t%8&1)===1},put:function(t,n){for(let e=0;e<n;e++){this.putBit((t>>>n-e-1&1)===1)}},getLengthInBits:function(){return this.length},putBit:function(t){const n=Math.floor(this.length/8);if(this.buffer.length<=n){this.buffer.push(0)}if(t){this.buffer[n]|=128>>>this.length%8}this.length++}};var Gn=Xn;function te(t){if(!t||t<1){throw new Error("BitMatrix size must be defined and greater than 0")}this.size=t;this.data=new Uint8Array(t*t);this.reservedBit=new Uint8Array(t*t)}te.prototype.set=function(t,n,e,i){const s=t*this.size+n;this.data[s]=e;if(i)this.reservedBit[s]=true};te.prototype.get=function(t,n){return this.data[t*this.size+n]};te.prototype.xor=function(t,n,e){this.data[t*this.size+n]^=e};te.prototype.isReserved=function(t,n){return this.reservedBit[t*this.size+n]};var ne=te;var ee={};(function(t){const n=Jn.getSymbolSize;t.getRowColCoords=function t(e){if(e===1)return[];const i=Math.floor(e/7)+2;const s=n(e);const r=s===145?26:Math.ceil((s-13)/(2*i-2))*2;const o=[s-7];for(let t=1;t<i-1;t++){o[t]=o[t-1]-r}o.push(6);return o.reverse()};t.getPositions=function n(e){const i=[];const s=t.getRowColCoords(e);const r=s.length;for(let t=0;t<r;t++){for(let n=0;n<r;n++){if(t===0&&n===0||t===0&&n===r-1||t===r-1&&n===0){continue}i.push([s[t],s[n]])}}return i}})(ee);var ie={};const se=Jn.getSymbolSize;const re=7;ie.getPositions=function t(n){const e=se(n);return[[0,0],[e-re,0],[0,e-re]]};var oe={};(function(t){t.Patterns={PATTERN000:0,PATTERN001:1,PATTERN010:2,PATTERN011:3,PATTERN100:4,PATTERN101:5,PATTERN110:6,PATTERN111:7};const n={N1:3,N2:3,N3:40,N4:10};t.isValid=function t(n){return n!=null&&n!==""&&!isNaN(n)&&n>=0&&n<=7};t.from=function n(e){return t.isValid(e)?parseInt(e,10):undefined};t.getPenaltyN1=function t(e){const i=e.size;let s=0;let r=0;let o=0;let c=null;let u=null;for(let t=0;t<i;t++){r=o=0;c=u=null;for(let l=0;l<i;l++){let i=e.get(t,l);if(i===c){r++}else{if(r>=5)s+=n.N1+(r-5);c=i;r=1}i=e.get(l,t);if(i===u){o++}else{if(o>=5)s+=n.N1+(o-5);u=i;o=1}}if(r>=5)s+=n.N1+(r-5);if(o>=5)s+=n.N1+(o-5)}return s};t.getPenaltyN2=function t(e){const i=e.size;let s=0;for(let t=0;t<i-1;t++){for(let n=0;n<i-1;n++){const i=e.get(t,n)+e.get(t,n+1)+e.get(t+1,n)+e.get(t+1,n+1);if(i===4||i===0)s++}}return s*n.N2};t.getPenaltyN3=function t(e){const i=e.size;let s=0;let r=0;let o=0;for(let t=0;t<i;t++){r=o=0;for(let n=0;n<i;n++){r=r<<1&2047|e.get(t,n);if(n>=10&&(r===1488||r===93))s++;o=o<<1&2047|e.get(n,t);if(n>=10&&(o===1488||o===93))s++}}return s*n.N3};t.getPenaltyN4=function t(e){let i=0;const s=e.data.length;for(let t=0;t<s;t++)i+=e.data[t];const r=Math.abs(Math.ceil(i*100/s/5)-10);return r*n.N4};function e(n,e,i){switch(n){case t.Patterns.PATTERN000:return(e+i)%2===0;case t.Patterns.PATTERN001:return e%2===0;case t.Patterns.PATTERN010:return i%3===0;case t.Patterns.PATTERN011:return(e+i)%3===0;case t.Patterns.PATTERN100:return(Math.floor(e/2)+Math.floor(i/3))%2===0;case t.Patterns.PATTERN101:return e*i%2+e*i%3===0;case t.Patterns.PATTERN110:return(e*i%2+e*i%3)%2===0;case t.Patterns.PATTERN111:return(e*i%3+(e+i)%2)%2===0;default:throw new Error("bad maskPattern:"+n)}}t.applyMask=function t(n,i){const s=i.size;for(let t=0;t<s;t++){for(let r=0;r<s;r++){if(i.isReserved(r,t))continue;i.xor(r,t,e(n,r,t))}}};t.getBestMask=function n(e,i){const s=Object.keys(t.Patterns).length;let r=0;let o=Infinity;for(let n=0;n<s;n++){i(n);t.applyMask(n,e);const s=t.getPenaltyN1(e)+t.getPenaltyN2(e)+t.getPenaltyN3(e)+t.getPenaltyN4(e);t.applyMask(n,e);if(s<o){o=s;r=n}}return r}})(oe);var ce={};const ue=Yn;const le=[1,1,1,1,1,1,1,1,1,1,2,2,1,2,2,4,1,2,4,4,2,4,4,4,2,4,6,5,2,4,6,6,2,5,8,8,4,5,8,8,4,5,8,11,4,8,10,11,4,9,12,16,4,9,16,16,6,10,12,18,6,10,17,16,6,11,16,19,6,13,18,21,7,14,21,25,8,16,20,25,8,17,23,25,9,17,23,34,9,18,25,30,10,20,27,32,12,21,29,35,12,23,34,37,12,25,34,40,13,26,35,42,14,28,38,45,15,29,40,48,16,31,43,51,17,33,45,54,18,35,48,57,19,37,51,60,19,38,53,63,20,40,56,66,21,43,59,70,22,45,62,74,24,47,65,77,25,49,68,81];const ae=[7,10,13,17,10,16,22,28,15,26,36,44,20,36,52,64,26,48,72,88,36,64,96,112,40,72,108,130,48,88,132,156,60,110,160,192,72,130,192,224,80,150,224,264,96,176,260,308,104,198,288,352,120,216,320,384,132,240,360,432,144,280,408,480,168,308,448,532,180,338,504,588,196,364,546,650,224,416,600,700,224,442,644,750,252,476,690,816,270,504,750,900,300,560,810,960,312,588,870,1050,336,644,952,1110,360,700,1020,1200,390,728,1050,1260,420,784,1140,1350,450,812,1200,1440,480,868,1290,1530,510,924,1350,1620,540,980,1440,1710,570,1036,1530,1800,570,1064,1590,1890,600,1120,1680,1980,630,1204,1770,2100,660,1260,1860,2220,720,1316,1950,2310,750,1372,2040,2430];ce.getBlocksCount=function t(n,e){switch(e){case ue.L:return le[(n-1)*4+0];case ue.M:return le[(n-1)*4+1];case ue.Q:return le[(n-1)*4+2];case ue.H:return le[(n-1)*4+3];default:return undefined}};ce.getTotalCodewordsCount=function t(n,e){switch(e){case ue.L:return ae[(n-1)*4+0];case ue.M:return ae[(n-1)*4+1];case ue.Q:return ae[(n-1)*4+2];case ue.H:return ae[(n-1)*4+3];default:return undefined}};var fe={};var he={};const de=new Uint8Array(512);const ve=new Uint8Array(256);(function t(){let n=1;for(let t=0;t<255;t++){de[t]=n;ve[n]=t;n<<=1;if(n&256){n^=285}}for(let t=255;t<512;t++){de[t]=de[t-255]}})();he.log=function t(n){if(n<1)throw new Error("log("+n+")");return ve[n]};he.exp=function t(n){return de[n]};he.mul=function t(n,e){if(n===0||e===0)return 0;return de[ve[n]+ve[e]]};(function(t){const n=he;t.mul=function t(e,i){const s=new Uint8Array(e.length+i.length-1);for(let t=0;t<e.length;t++){for(let r=0;r<i.length;r++){s[t+r]^=n.mul(e[t],i[r])}}return s};t.mod=function t(e,i){let s=new Uint8Array(e);while(s.length-i.length>=0){const t=s[0];for(let e=0;e<i.length;e++){s[e]^=n.mul(i[e],t)}let e=0;while(e<s.length&&s[e]===0)e++;s=s.slice(e)}return s};t.generateECPolynomial=function e(i){let s=new Uint8Array([1]);for(let e=0;e<i;e++){s=t.mul(s,new Uint8Array([1,n.exp(e)]))}return s}})(fe);const pe=fe;function we(t){this.genPoly=undefined;this.degree=t;if(this.degree)this.initialize(this.degree)}we.prototype.initialize=function t(n){this.degree=n;this.genPoly=pe.generateECPolynomial(this.degree)};we.prototype.encode=function t(n){if(!this.genPoly){throw new Error("Encoder not initialized")}const e=new Uint8Array(n.length+this.degree);e.set(n);const i=pe.mod(e,this.genPoly);const s=this.degree-i.length;if(s>0){const t=new Uint8Array(this.degree);t.set(i,s);return t}return i};var ye=we;var ge={};var me={};var be={};be.isValid=function t(n){return!isNaN(n)&&n>=1&&n<=40};var Ee={};const Ae="[0-9]+";const $e="[A-Z $%*+\\-./:]+";let Me="(?:[u3000-u303F]|[u3040-u309F]|[u30A0-u30FF]|"+"[uFF00-uFFEF]|[u4E00-u9FAF]|[u2605-u2606]|[u2190-u2195]|u203B|"+"[u2010u2015u2018u2019u2025u2026u201Cu201Du2225u2260]|"+"[u0391-u0451]|[u00A7u00A8u00B1u00B4u00D7u00F7])+";Me=Me.replace(/u/g,"\\u");const Se="(?:(?![A-Z0-9 $%*+\\-./:]|"+Me+")(?:.|[\r\n]))+";Ee.KANJI=new RegExp(Me,"g");Ee.BYTE_KANJI=new RegExp("[^A-Z0-9 $%*+\\-./:]+","g");Ee.BYTE=new RegExp(Se,"g");Ee.NUMERIC=new RegExp(Ae,"g");Ee.ALPHANUMERIC=new RegExp($e,"g");const Te=new RegExp("^"+Me+"$");const xe=new RegExp("^"+Ae+"$");const ke=new RegExp("^[A-Z0-9 $%*+\\-./:]+$");Ee.testKanji=function t(n){return Te.test(n)};Ee.testNumeric=function t(n){return xe.test(n)};Ee.testAlphanumeric=function t(n){return ke.test(n)};(function(t){const n=be;const e=Ee;t.NUMERIC={id:"Numeric",bit:1<<0,ccBits:[10,12,14]};t.ALPHANUMERIC={id:"Alphanumeric",bit:1<<1,ccBits:[9,11,13]};t.BYTE={id:"Byte",bit:1<<2,ccBits:[8,16,16]};t.KANJI={id:"Kanji",bit:1<<3,ccBits:[8,10,12]};t.MIXED={bit:-1};t.getCharCountIndicator=function t(e,i){if(!e.ccBits)throw new Error("Invalid mode: "+e);if(!n.isValid(i)){throw new Error("Invalid version: "+i)}if(i>=1&&i<10)return e.ccBits[0];else if(i<27)return e.ccBits[1];return e.ccBits[2]};t.getBestModeForData=function n(i){if(e.testNumeric(i))return t.NUMERIC;else if(e.testAlphanumeric(i))return t.ALPHANUMERIC;else if(e.testKanji(i))return t.KANJI;else return t.BYTE};t.toString=function t(n){if(n&&n.id)return n.id;throw new Error("Invalid mode")};t.isValid=function t(n){return n&&n.bit&&n.ccBits};function i(n){if(typeof n!=="string"){throw new Error("Param is not a string")}const e=n.toLowerCase();switch(e){case"numeric":return t.NUMERIC;case"alphanumeric":return t.ALPHANUMERIC;case"kanji":return t.KANJI;case"byte":return t.BYTE;default:throw new Error("Unknown mode: "+n)}}t.from=function n(e,s){if(t.isValid(e)){return e}try{return i(e)}catch(t){return s}}})(me);(function(t){const n=Jn;const e=ce;const i=Yn;const s=me;const r=be;const o=1<<12|1<<11|1<<10|1<<9|1<<8|1<<5|1<<2|1<<0;const c=n.getBCHDigit(o);function u(n,e,i){for(let s=1;s<=40;s++){if(e<=t.getCapacity(s,i,n)){return s}}return undefined}function l(t,n){return s.getCharCountIndicator(t,n)+4}function a(t,n){let e=0;t.forEach((function(t){const i=l(t.mode,n);e+=i+t.getBitsLength()}));return e}function f(n,e){for(let i=1;i<=40;i++){const r=a(n,i);if(r<=t.getCapacity(i,e,s.MIXED)){return i}}return undefined}t.from=function t(n,e){if(r.isValid(n)){return parseInt(n,10)}return e};t.getCapacity=function t(i,o,c){if(!r.isValid(i)){throw new Error("Invalid QR Code version")}if(typeof c==="undefined")c=s.BYTE;const u=n.getSymbolTotalCodewords(i);const a=e.getTotalCodewordsCount(i,o);const f=(u-a)*8;if(c===s.MIXED)return f;const h=f-l(c,i);switch(c){case s.NUMERIC:return Math.floor(h/10*3);case s.ALPHANUMERIC:return Math.floor(h/11*2);case s.KANJI:return Math.floor(h/13);case s.BYTE:default:return Math.floor(h/8)}};t.getBestVersionForData=function t(n,e){let s;const r=i.from(e,i.M);if(Array.isArray(n)){if(n.length>1){return f(n,r)}if(n.length===0){return 1}s=n[0]}else{s=n}return u(s.mode,s.getLength(),r)};t.getEncodedBits=function t(e){if(!r.isValid(e)||e<7){throw new Error("Invalid QR Code version")}let i=e<<12;while(n.getBCHDigit(i)-c>=0){i^=o<<n.getBCHDigit(i)-c}return e<<12|i}})(ge);var Re={};const Ce=Jn;const Ue=1<<10|1<<8|1<<5|1<<4|1<<2|1<<1|1<<0;const _e=1<<14|1<<12|1<<10|1<<4|1<<1;const Ne=Ce.getBCHDigit(Ue);Re.getEncodedBits=function t(n,e){const i=n.bit<<3|e;let s=i<<10;while(Ce.getBCHDigit(s)-Ne>=0){s^=Ue<<Ce.getBCHDigit(s)-Ne}return(i<<10|s)^_e};var Pe={};const Ie=me;function Oe(t){this.mode=Ie.NUMERIC;this.data=t.toString()}Oe.getBitsLength=function t(n){return 10*Math.floor(n/3)+(n%3?n%3*3+1:0)};Oe.prototype.getLength=function t(){return this.data.length};Oe.prototype.getBitsLength=function t(){return Oe.getBitsLength(this.data.length)};Oe.prototype.write=function t(n){let e,i,s;for(e=0;e+3<=this.data.length;e+=3){i=this.data.substr(e,3);s=parseInt(i,10);n.put(s,10)}const r=this.data.length-e;if(r>0){i=this.data.substr(e);s=parseInt(i,10);n.put(s,r*3+1)}};var je=Oe;const Fe=me;const Be=["0","1","2","3","4","5","6","7","8","9","A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z"," ","$","%","*","+","-",".","/",":"];function De(t){this.mode=Fe.ALPHANUMERIC;this.data=t}De.getBitsLength=function t(n){return 11*Math.floor(n/2)+6*(n%2)};De.prototype.getLength=function t(){return this.data.length};De.prototype.getBitsLength=function t(){return De.getBitsLength(this.data.length)};De.prototype.write=function t(n){let e;for(e=0;e+2<=this.data.length;e+=2){let t=Be.indexOf(this.data[e])*45;t+=Be.indexOf(this.data[e+1]);n.put(t,11)}if(this.data.length%2){n.put(Be.indexOf(this.data[e]),6)}};var ze=De;var Le=function t(n){var e=[];var i=n.length;for(var s=0;s<i;s++){var r=n.charCodeAt(s);if(r>=55296&&r<=56319&&i>s+1){var o=n.charCodeAt(s+1);if(o>=56320&&o<=57343){r=(r-55296)*1024+o-56320+65536;s+=1}}if(r<128){e.push(r);continue}if(r<2048){e.push(r>>6|192);e.push(r&63|128);continue}if(r<55296||r>=57344&&r<65536){e.push(r>>12|224);e.push(r>>6&63|128);e.push(r&63|128);continue}if(r>=65536&&r<=1114111){e.push(r>>18|240);e.push(r>>12&63|128);e.push(r>>6&63|128);e.push(r&63|128);continue}e.push(239,191,189)}return new Uint8Array(e).buffer};const Ze=Le;const Ve=me;function qe(t){this.mode=Ve.BYTE;if(typeof t==="string"){t=Ze(t)}this.data=new Uint8Array(t)}qe.getBitsLength=function t(n){return n*8};qe.prototype.getLength=function t(){return this.data.length};qe.prototype.getBitsLength=function t(){return qe.getBitsLength(this.data.length)};qe.prototype.write=function(t){for(let n=0,e=this.data.length;n<e;n++){t.put(this.data[n],8)}};var Qe=qe;const He=me;const Je=Jn;function Ke(t){this.mode=He.KANJI;this.data=t}Ke.getBitsLength=function t(n){return n*13};Ke.prototype.getLength=function t(){return this.data.length};Ke.prototype.getBitsLength=function t(){return Ke.getBitsLength(this.data.length)};Ke.prototype.write=function(t){let n;for(n=0;n<this.data.length;n++){let e=Je.toSJIS(this.data[n]);if(e>=33088&&e<=40956){e-=33088}else if(e>=57408&&e<=60351){e-=49472}else{throw new Error("Invalid SJIS character: "+this.data[n]+"\n"+"Make sure your charset is UTF-8")}e=(e>>>8&255)*192+(e&255);t.put(e,13)}};var We=Ke;var Ye={exports:{}};(function(t){var n={single_source_shortest_paths:function(t,e,i){var s={};var r={};r[e]=0;var o=n.PriorityQueue.make();o.push(e,0);var c,u,l,a,f,h,d,v,p;while(!o.empty()){c=o.pop();u=c.value;a=c.cost;f=t[u]||{};for(l in f){if(f.hasOwnProperty(l)){h=f[l];d=a+h;v=r[l];p=typeof r[l]==="undefined";if(p||v>d){r[l]=d;o.push(l,d);s[l]=u}}}}if(typeof i!=="undefined"&&typeof r[i]==="undefined"){var w=["Could not find a path from ",e," to ",i,"."].join("");throw new Error(w)}return s},extract_shortest_path_from_predecessor_list:function(t,n){var e=[];var i=n;while(i){e.push(i);i=t[i]}e.reverse();return e},find_path:function(t,e,i){var s=n.single_source_shortest_paths(t,e,i);return n.extract_shortest_path_from_predecessor_list(s,i)},PriorityQueue:{make:function(t){var e=n.PriorityQueue,i={},s;t=t||{};for(s in e){if(e.hasOwnProperty(s)){i[s]=e[s]}}i.queue=[];i.sorter=t.sorter||e.default_sorter;return i},default_sorter:function(t,n){return t.cost-n.cost},push:function(t,n){var e={value:t,cost:n};this.queue.push(e);this.queue.sort(this.sorter)},pop:function(){return this.queue.shift()},empty:function(){return this.queue.length===0}}};{t.exports=n}})(Ye);(function(t){const n=me;const e=je;const i=ze;const s=Qe;const r=We;const o=Ee;const c=Jn;const u=Ye.exports;function l(t){return unescape(encodeURIComponent(t)).length}function a(t,n,e){const i=[];let s;while((s=t.exec(e))!==null){i.push({data:s[0],index:s.index,mode:n,length:s[0].length})}return i}function f(t){const e=a(o.NUMERIC,n.NUMERIC,t);const i=a(o.ALPHANUMERIC,n.ALPHANUMERIC,t);let s;let r;if(c.isKanjiModeEnabled()){s=a(o.BYTE,n.BYTE,t);r=a(o.KANJI,n.KANJI,t)}else{s=a(o.BYTE_KANJI,n.BYTE,t);r=[]}const u=e.concat(i,s,r);return u.sort((function(t,n){return t.index-n.index})).map((function(t){return{data:t.data,mode:t.mode,length:t.length}}))}function h(t,o){switch(o){case n.NUMERIC:return e.getBitsLength(t);case n.ALPHANUMERIC:return i.getBitsLength(t);case n.KANJI:return r.getBitsLength(t);case n.BYTE:return s.getBitsLength(t)}}function d(t){return t.reduce((function(t,n){const e=t.length-1>=0?t[t.length-1]:null;if(e&&e.mode===n.mode){t[t.length-1].data+=n.data;return t}t.push(n);return t}),[])}function v(t){const e=[];for(let i=0;i<t.length;i++){const s=t[i];switch(s.mode){case n.NUMERIC:e.push([s,{data:s.data,mode:n.ALPHANUMERIC,length:s.length},{data:s.data,mode:n.BYTE,length:s.length}]);break;case n.ALPHANUMERIC:e.push([s,{data:s.data,mode:n.BYTE,length:s.length}]);break;case n.KANJI:e.push([s,{data:s.data,mode:n.BYTE,length:l(s.data)}]);break;case n.BYTE:e.push([{data:s.data,mode:n.BYTE,length:l(s.data)}])}}return e}function p(t,e){const i={};const s={start:{}};let r=["start"];for(let o=0;o<t.length;o++){const c=t[o];const u=[];for(let t=0;t<c.length;t++){const l=c[t];const a=""+o+t;u.push(a);i[a]={node:l,lastCount:0};s[a]={};for(let t=0;t<r.length;t++){const o=r[t];if(i[o]&&i[o].node.mode===l.mode){s[o][a]=h(i[o].lastCount+l.length,l.mode)-h(i[o].lastCount,l.mode);i[o].lastCount+=l.length}else{if(i[o])i[o].lastCount=l.length;s[o][a]=h(l.length,l.mode)+4+n.getCharCountIndicator(l.mode,e)}}}r=u}for(let t=0;t<r.length;t++){s[r[t]].end=0}return{map:s,table:i}}function w(t,o){let u;const l=n.getBestModeForData(t);u=n.from(o,l);if(u!==n.BYTE&&u.bit<l.bit){throw new Error('"'+t+'"'+" cannot be encoded with mode "+n.toString(u)+".\n Suggested mode is: "+n.toString(l))}if(u===n.KANJI&&!c.isKanjiModeEnabled()){u=n.BYTE}switch(u){case n.NUMERIC:return new e(t);case n.ALPHANUMERIC:return new i(t);case n.KANJI:return new r(t);case n.BYTE:return new s(t)}}t.fromArray=function t(n){return n.reduce((function(t,n){if(typeof n==="string"){t.push(w(n,null))}else if(n.data){t.push(w(n.data,n.mode))}return t}),[])};t.fromString=function n(e,i){const s=f(e,c.isKanjiModeEnabled());const r=v(s);const o=p(r,i);const l=u.find_path(o.map,"start","end");const a=[];for(let t=1;t<l.length-1;t++){a.push(o.table[l[t]].node)}return t.fromArray(d(a))};t.rawSplit=function n(e){return t.fromArray(f(e,c.isKanjiModeEnabled()))}})(Pe);const Xe=Jn;const Ge=Yn;const ti=Gn;const ni=ne;const ei=ee;const ii=ie;const si=oe;const ri=ce;const oi=ye;const ci=ge;const ui=Re;const li=me;const ai=Pe;function fi(t,n){const e=t.size;const i=ii.getPositions(n);for(let n=0;n<i.length;n++){const s=i[n][0];const r=i[n][1];for(let n=-1;n<=7;n++){if(s+n<=-1||e<=s+n)continue;for(let i=-1;i<=7;i++){if(r+i<=-1||e<=r+i)continue;if(n>=0&&n<=6&&(i===0||i===6)||i>=0&&i<=6&&(n===0||n===6)||n>=2&&n<=4&&i>=2&&i<=4){t.set(s+n,r+i,true,true)}else{t.set(s+n,r+i,false,true)}}}}}function hi(t){const n=t.size;for(let e=8;e<n-8;e++){const n=e%2===0;t.set(e,6,n,true);t.set(6,e,n,true)}}function di(t,n){const e=ei.getPositions(n);for(let n=0;n<e.length;n++){const i=e[n][0];const s=e[n][1];for(let n=-2;n<=2;n++){for(let e=-2;e<=2;e++){if(n===-2||n===2||e===-2||e===2||n===0&&e===0){t.set(i+n,s+e,true,true)}else{t.set(i+n,s+e,false,true)}}}}}function vi(t,n){const e=t.size;const i=ci.getEncodedBits(n);let s,r,o;for(let n=0;n<18;n++){s=Math.floor(n/3);r=n%3+e-8-3;o=(i>>n&1)===1;t.set(s,r,o,true);t.set(r,s,o,true)}}function pi(t,n,e){const i=t.size;const s=ui.getEncodedBits(n,e);let r,o;for(r=0;r<15;r++){o=(s>>r&1)===1;if(r<6){t.set(r,8,o,true)}else if(r<8){t.set(r+1,8,o,true)}else{t.set(i-15+r,8,o,true)}if(r<8){t.set(8,i-r-1,o,true)}else if(r<9){t.set(8,15-r-1+1,o,true)}else{t.set(8,15-r-1,o,true)}}t.set(i-8,8,1,true)}function wi(t,n){const e=t.size;let i=-1;let s=e-1;let r=7;let o=0;for(let c=e-1;c>0;c-=2){if(c===6)c--;while(true){for(let e=0;e<2;e++){if(!t.isReserved(s,c-e)){let i=false;if(o<n.length){i=(n[o]>>>r&1)===1}t.set(s,c-e,i);r--;if(r===-1){o++;r=7}}}s+=i;if(s<0||e<=s){s-=i;i=-i;break}}}}function yi(t,n,e){const i=new ti;e.forEach((function(n){i.put(n.mode.bit,4);i.put(n.getLength(),li.getCharCountIndicator(n.mode,t));n.write(i)}));const s=Xe.getSymbolTotalCodewords(t);const r=ri.getTotalCodewordsCount(t,n);const o=(s-r)*8;if(i.getLengthInBits()+4<=o){i.put(0,4)}while(i.getLengthInBits()%8!==0){i.putBit(0)}const c=(o-i.getLengthInBits())/8;for(let t=0;t<c;t++){i.put(t%2?17:236,8)}return gi(i,t,n)}function gi(t,n,e){const i=Xe.getSymbolTotalCodewords(n);const s=ri.getTotalCodewordsCount(n,e);const r=i-s;const o=ri.getBlocksCount(n,e);const c=i%o;const u=o-c;const l=Math.floor(i/o);const a=Math.floor(r/o);const f=a+1;const h=l-a;const d=new oi(h);let v=0;const p=new Array(o);const w=new Array(o);let y=0;const g=new Uint8Array(t.buffer);for(let t=0;t<o;t++){const n=t<u?a:f;p[t]=g.slice(v,v+n);w[t]=d.encode(p[t]);v+=n;y=Math.max(y,n)}const m=new Uint8Array(i);let b=0;let E,A;for(E=0;E<y;E++){for(A=0;A<o;A++){if(E<p[A].length){m[b++]=p[A][E]}}}for(E=0;E<h;E++){for(A=0;A<o;A++){m[b++]=w[A][E]}}return m}function mi(t,n,e,i){let s;if(Array.isArray(t)){s=ai.fromArray(t)}else if(typeof t==="string"){let i=n;if(!i){const n=ai.rawSplit(t);i=ci.getBestVersionForData(n,e)}s=ai.fromString(t,i||40)}else{throw new Error("Invalid data")}const r=ci.getBestVersionForData(s,e);if(!r){throw new Error("The amount of data is too big to be stored in a QR Code")}if(!n){n=r}else if(n<r){throw new Error("\n"+"The chosen QR Code version cannot contain this amount of data.\n"+"Minimum version required to store current data is: "+r+".\n")}const o=yi(n,e,s);const c=Xe.getSymbolSize(n);const u=new ni(c);fi(u,n);hi(u);di(u,n);pi(u,e,0);if(n>=7){vi(u,n)}wi(u,o);if(isNaN(i)){i=si.getBestMask(u,pi.bind(null,u,e))}si.applyMask(i,u);pi(u,e,i);return{modules:u,version:n,errorCorrectionLevel:e,maskPattern:i,segments:s}}Hn.create=function t(n,e){if(typeof n==="undefined"||n===""){throw new Error("No input text")}let i=Ge.M;let s;let r;if(typeof e!=="undefined"){i=Ge.from(e.errorCorrectionLevel,Ge.M);s=ci.from(e.version);r=si.from(e.maskPattern);if(e.toSJISFunc){Xe.setToSJISFunction(e.toSJISFunc)}}return mi(n,s,i,r)};var bi={};var Ei={};(function(t){function n(t){if(typeof t==="number"){t=t.toString()}if(typeof t!=="string"){throw new Error("Color should be defined as hex string")}let n=t.slice().replace("#","").split("");if(n.length<3||n.length===5||n.length>8){throw new Error("Invalid hex color: "+t)}if(n.length===3||n.length===4){n=Array.prototype.concat.apply([],n.map((function(t){return[t,t]})))}if(n.length===6)n.push("F","F");const e=parseInt(n.join(""),16);return{r:e>>24&255,g:e>>16&255,b:e>>8&255,a:e&255,hex:"#"+n.slice(0,6).join("")}}t.getOptions=function t(e){if(!e)e={};if(!e.color)e.color={};const i=typeof e.margin==="undefined"||e.margin===null||e.margin<0?4:e.margin;const s=e.width&&e.width>=21?e.width:undefined;const r=e.scale||4;return{width:s,scale:s?4:r,margin:i,color:{dark:n(e.color.dark||"#000000ff"),light:n(e.color.light||"#ffffffff")},type:e.type,rendererOpts:e.rendererOpts||{}}};t.getScale=function t(n,e){return e.width&&e.width>=n+e.margin*2?e.width/(n+e.margin*2):e.scale};t.getImageWidth=function n(e,i){const s=t.getScale(e,i);return Math.floor((e+i.margin*2)*s)};t.qrToImageData=function n(e,i,s){const r=i.modules.size;const o=i.modules.data;const c=t.getScale(r,s);const u=Math.floor((r+s.margin*2)*c);const l=s.margin*c;const a=[s.color.light,s.color.dark];for(let t=0;t<u;t++){for(let n=0;n<u;n++){let i=(t*u+n)*4;let f=s.color.light;if(t>=l&&n>=l&&t<u-l&&n<u-l){const e=Math.floor((t-l)/c);const i=Math.floor((n-l)/c);f=a[o[e*r+i]?1:0]}e[i++]=f.r;e[i++]=f.g;e[i++]=f.b;e[i]=f.a}}}})(Ei);(function(t){const n=Ei;function e(t,n,e){t.clearRect(0,0,n.width,n.height);if(!n.style)n.style={};n.height=e;n.width=e;n.style.height=e+"px";n.style.width=e+"px"}function i(){try{return document.createElement("canvas")}catch(t){throw new Error("You need to specify a canvas element")}}t.render=function t(s,r,o){let c=o;let u=r;if(typeof c==="undefined"&&(!r||!r.getContext)){c=r;r=undefined}if(!r){u=i()}c=n.getOptions(c);const l=n.getImageWidth(s.modules.size,c);const a=u.getContext("2d");const f=a.createImageData(l,l);n.qrToImageData(f.data,s,c);e(a,u,l);a.putImageData(f,0,0);return u};t.renderToDataURL=function n(e,i,s){let r=s;if(typeof r==="undefined"&&(!i||!i.getContext)){r=i;i=undefined}if(!r)r={};const o=t.render(e,i,r);const c=r.type||"image/png";const u=r.rendererOpts||{};return o.toDataURL(c,u.quality)}})(bi);var Ai={};const $i=Ei;function Mi(t,n){const e=t.a/255;const i=n+'="'+t.hex+'"';return e<1?i+" "+n+'-opacity="'+e.toFixed(2).slice(1)+'"':i}function Si(t,n,e){let i=t+n;if(typeof e!=="undefined")i+=" "+e;return i}function Ti(t,n,e){let i="";let s=0;let r=false;let o=0;for(let c=0;c<t.length;c++){const u=Math.floor(c%n);const l=Math.floor(c/n);if(!u&&!r)r=true;if(t[c]){o++;if(!(c>0&&u>0&&t[c-1])){i+=r?Si("M",u+e,.5+l+e):Si("m",s,0);s=0;r=false}if(!(u+1<n&&t[c+1])){i+=Si("h",o);o=0}}else{s++}}return i}Ai.render=function t(n,e,i){const s=$i.getOptions(e);const r=n.modules.size;const o=n.modules.data;const c=r+s.margin*2;const u=!s.color.light.a?"":"<path "+Mi(s.color.light,"fill")+' d="M0 0h'+c+"v"+c+'H0z"/>';const l="<path "+Mi(s.color.dark,"stroke")+' d="'+Ti(o,r,s.margin)+'"/>';const a='viewBox="'+"0 0 "+c+" "+c+'"';const f=!s.width?"":'width="'+s.width+'" height="'+s.width+'" ';const h='<svg xmlns="http://www.w3.org/2000/svg" '+f+a+' shape-rendering="crispEdges">'+u+l+"</svg>\n";if(typeof i==="function"){i(null,h)}return h};const xi=Qn;const ki=Hn;const Ri=bi;const Ci=Ai;function Ui(t,n,e,i,s){const r=[].slice.call(arguments,1);const o=r.length;const c=typeof r[o-1]==="function";if(!c&&!xi()){throw new Error("Callback required as last argument")}if(c){if(o<2){throw new Error("Too few arguments provided")}if(o===2){s=e;e=n;n=i=undefined}else if(o===3){if(n.getContext&&typeof s==="undefined"){s=i;i=undefined}else{s=i;i=e;e=n;n=undefined}}}else{if(o<1){throw new Error("Too few arguments provided")}if(o===1){e=n;n=i=undefined}else if(o===2&&!n.getContext){i=e;e=n;n=undefined}return new Promise((function(s,r){try{const r=ki.create(e,i);s(t(r,n,i))}catch(t){r(t)}}))}try{const r=ki.create(e,i);s(null,t(r,n,i))}catch(t){s(t)}}qn.create=ki.create;qn.toCanvas=Ui.bind(null,Ri.render);qn.toDataURL=Ui.bind(null,Ri.renderToDataURL);qn.toString=Ui.bind(null,(function(t,n,e){return Ci.render(t,e)}));
/**
 * @license
 * Copyright 2018 Google LLC
 * SPDX-License-Identifier: BSD-3-Clause
 */const _i=t=>null!=t?t:V;export{Vn as a,L as b,qn as c,ft as e,o as i,_i as l,vt as n,mt as o,lt as s,pt as t,z as x};
//# sourceMappingURL=p-3ce2ddb1.js.map