@usesuperflow/toolbar-staging 1.0.87 → 1.0.88

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@usesuperflow/toolbar-staging",
3
- "version": "1.0.87",
3
+ "version": "1.0.88",
4
4
  "description": "",
5
5
  "main": "superflow.js",
6
6
  "scripts": {
package/superflow.js CHANGED
@@ -14,7 +14,7 @@ var t=function(t){return new Promise((function(e,i){var n=document.getElementByI
14
14
  * Copyright 2017 Google LLC
15
15
  * SPDX-License-Identifier: BSD-3-Clause
16
16
  */
17
- var m;f.finalized=!0,f.elementProperties=new Map,f.elementStyles=[],f.shadowRootOptions={mode:"open"},null==h||h({ReactiveElement:f}),(null!==(l=globalThis.reactiveElementVersions)&&void 0!==l?l:globalThis.reactiveElementVersions=[]).push("1.3.2");const g=globalThis.trustedTypes,w=g?g.createPolicy("lit-html",{createHTML:t=>t}):void 0,C=`lit$${(Math.random()+"").slice(9)}$`,y="?"+C,b=`<${y}>`,x=document,S=(t="")=>x.createComment(t),E=t=>null===t||"object"!=typeof t&&"function"!=typeof t,k=Array.isArray,A=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,I=/-->/g,$=/>/g,L=/>|[ \n \r](?:([^\s"'>=/]+)([ \n \r]*=[ \n \r]*(?:[^ \n \r"'`<>=]|("|')|))|$)/g,_=/'/g,M=/"/g,F=/^(?:script|style|textarea|title)$/i,T=(t=>(e,...i)=>({_$litType$:t,strings:e,values:i}))(1),D=Symbol.for("lit-noChange"),O=Symbol.for("lit-nothing"),N=new WeakMap,R=x.createTreeWalker(x,129,null,!1),V=(t,e)=>{const i=t.length-1,n=[];let o,s=2===e?"<svg>":"",r=A;for(let e=0;e<i;e++){const i=t[e];let a,l,c=-1,d=0;for(;d<i.length&&(r.lastIndex=d,l=r.exec(i),null!==l);)d=r.lastIndex,r===A?"!--"===l[1]?r=I:void 0!==l[1]?r=$:void 0!==l[2]?(F.test(l[2])&&(o=RegExp("</"+l[2],"g")),r=L):void 0!==l[3]&&(r=L):r===L?">"===l[0]?(r=null!=o?o:A,c=-1):void 0===l[1]?c=-2:(c=r.lastIndex-l[2].length,a=l[1],r=void 0===l[3]?L:'"'===l[3]?M:_):r===M||r===_?r=L:r===I||r===$?r=A:(r=L,o=void 0);const h=r===L&&t[e+1].startsWith("/>")?" ":"";s+=r===A?i+b:c>=0?(n.push(a),i.slice(0,c)+"$lit$"+i.slice(c)+C+h):i+C+(-2===c?(n.push(void 0),e):h)}const a=s+(t[i]||"<?>")+(2===e?"</svg>":"");if(!Array.isArray(t)||!t.hasOwnProperty("raw"))throw Error("invalid template strings array");return[void 0!==w?w.createHTML(a):a,n]};class j{constructor({strings:t,_$litType$:e},i){let n;this.parts=[];let o=0,s=0;const r=t.length-1,a=this.parts,[l,c]=V(t,e);if(this.el=j.createElement(l,i),R.currentNode=this.el.content,2===e){const t=this.el.content,e=t.firstChild;e.remove(),t.append(...e.childNodes)}for(;null!==(n=R.nextNode())&&a.length<r;){if(1===n.nodeType){if(n.hasAttributes()){const t=[];for(const e of n.getAttributeNames())if(e.endsWith("$lit$")||e.startsWith(C)){const i=c[s++];if(t.push(e),void 0!==i){const t=n.getAttribute(i.toLowerCase()+"$lit$").split(C),e=/([.?@])?(.*)/.exec(i);a.push({type:1,index:o,name:e[2],strings:t,ctor:"."===e[1]?z:"?"===e[1]?K:"@"===e[1]?q:H})}else a.push({type:6,index:o})}for(const e of t)n.removeAttribute(e)}if(F.test(n.tagName)){const t=n.textContent.split(C),e=t.length-1;if(e>0){n.textContent=g?g.emptyScript:"";for(let i=0;i<e;i++)n.append(t[i],S()),R.nextNode(),a.push({type:2,index:++o});n.append(t[e],S())}}}else if(8===n.nodeType)if(n.data===y)a.push({type:2,index:o});else{let t=-1;for(;-1!==(t=n.data.indexOf(C,t+1));)a.push({type:7,index:o}),t+=C.length-1}o++}}static createElement(t,e){const i=x.createElement("template");return i.innerHTML=t,i}}function U(t,e,i=t,n){var o,s,r,a;if(e===D)return e;let l=void 0!==n?null===(o=i._$Cl)||void 0===o?void 0:o[n]:i._$Cu;const c=E(e)?void 0:e._$litDirective$;return(null==l?void 0:l.constructor)!==c&&(null===(s=null==l?void 0:l._$AO)||void 0===s||s.call(l,!1),void 0===c?l=void 0:(l=new c(t),l._$AT(t,i,n)),void 0!==n?(null!==(r=(a=i)._$Cl)&&void 0!==r?r:a._$Cl=[])[n]=l:i._$Cu=l),void 0!==l&&(e=U(t,l._$AS(t,e.values),l,n)),e}class P{constructor(t,e){this.v=[],this._$AN=void 0,this._$AD=t,this._$AM=e}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}p(t){var e;const{el:{content:i},parts:n}=this._$AD,o=(null!==(e=null==t?void 0:t.creationScope)&&void 0!==e?e:x).importNode(i,!0);R.currentNode=o;let s=R.nextNode(),r=0,a=0,l=n[0];for(;void 0!==l;){if(r===l.index){let e;2===l.type?e=new B(s,s.nextSibling,this,t):1===l.type?e=new l.ctor(s,l.name,l.strings,this,t):6===l.type&&(e=new J(s,this,t)),this.v.push(e),l=n[++a]}r!==(null==l?void 0:l.index)&&(s=R.nextNode(),r++)}return o}m(t){let e=0;for(const i of this.v)void 0!==i&&(void 0!==i.strings?(i._$AI(t,i,e),e+=i.strings.length-2):i._$AI(t[e])),e++}}class B{constructor(t,e,i,n){var o;this.type=2,this._$AH=O,this._$AN=void 0,this._$AA=t,this._$AB=e,this._$AM=i,this.options=n,this._$Cg=null===(o=null==n?void 0:n.isConnected)||void 0===o||o}get _$AU(){var t,e;return null!==(e=null===(t=this._$AM)||void 0===t?void 0:t._$AU)&&void 0!==e?e:this._$Cg}get parentNode(){let t=this._$AA.parentNode;const e=this._$AM;return void 0!==e&&11===t.nodeType&&(t=e.parentNode),t}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(t,e=this){t=U(this,t,e),E(t)?t===O||null==t||""===t?(this._$AH!==O&&this._$AR(),this._$AH=O):t!==this._$AH&&t!==D&&this.$(t):void 0!==t._$litType$?this.T(t):void 0!==t.nodeType?this.k(t):(t=>{var e;return k(t)||"function"==typeof(null===(e=t)||void 0===e?void 0:e[Symbol.iterator])})(t)?this.S(t):this.$(t)}M(t,e=this._$AB){return this._$AA.parentNode.insertBefore(t,e)}k(t){this._$AH!==t&&(this._$AR(),this._$AH=this.M(t))}$(t){this._$AH!==O&&E(this._$AH)?this._$AA.nextSibling.data=t:this.k(x.createTextNode(t)),this._$AH=t}T(t){var e;const{values:i,_$litType$:n}=t,o="number"==typeof n?this._$AC(t):(void 0===n.el&&(n.el=j.createElement(n.h,this.options)),n);if((null===(e=this._$AH)||void 0===e?void 0:e._$AD)===o)this._$AH.m(i);else{const t=new P(o,this),e=t.p(this.options);t.m(i),this.k(e),this._$AH=t}}_$AC(t){let e=N.get(t.strings);return void 0===e&&N.set(t.strings,e=new j(t)),e}S(t){k(this._$AH)||(this._$AH=[],this._$AR());const e=this._$AH;let i,n=0;for(const o of t)n===e.length?e.push(i=new B(this.M(S()),this.M(S()),this,this.options)):i=e[n],i._$AI(o),n++;n<e.length&&(this._$AR(i&&i._$AB.nextSibling,n),e.length=n)}_$AR(t=this._$AA.nextSibling,e){var i;for(null===(i=this._$AP)||void 0===i||i.call(this,!1,!0,e);t&&t!==this._$AB;){const e=t.nextSibling;t.remove(),t=e}}setConnected(t){var e;void 0===this._$AM&&(this._$Cg=t,null===(e=this._$AP)||void 0===e||e.call(this,t))}}class H{constructor(t,e,i,n,o){this.type=1,this._$AH=O,this._$AN=void 0,this.element=t,this.name=e,this._$AM=n,this.options=o,i.length>2||""!==i[0]||""!==i[1]?(this._$AH=Array(i.length-1).fill(new String),this.strings=i):this._$AH=O}get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}_$AI(t,e=this,i,n){const o=this.strings;let s=!1;if(void 0===o)t=U(this,t,e,0),s=!E(t)||t!==this._$AH&&t!==D,s&&(this._$AH=t);else{const n=t;let r,a;for(t=o[0],r=0;r<o.length-1;r++)a=U(this,n[i+r],e,r),a===D&&(a=this._$AH[r]),s||(s=!E(a)||a!==this._$AH[r]),a===O?t=O:t!==O&&(t+=(null!=a?a:"")+o[r+1]),this._$AH[r]=a}s&&!n&&this.C(t)}C(t){t===O?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,null!=t?t:"")}}class z extends H{constructor(){super(...arguments),this.type=3}C(t){this.element[this.name]=t===O?void 0:t}}const Z=g?g.emptyScript:"";class K extends H{constructor(){super(...arguments),this.type=4}C(t){t&&t!==O?this.element.setAttribute(this.name,Z):this.element.removeAttribute(this.name)}}class q extends H{constructor(t,e,i,n,o){super(t,e,i,n,o),this.type=5}_$AI(t,e=this){var i;if((t=null!==(i=U(this,t,e,0))&&void 0!==i?i:O)===D)return;const n=this._$AH,o=t===O&&n!==O||t.capture!==n.capture||t.once!==n.once||t.passive!==n.passive,s=t!==O&&(n===O||o);o&&this.element.removeEventListener(this.name,this,n),s&&this.element.addEventListener(this.name,this,t),this._$AH=t}handleEvent(t){var e,i;"function"==typeof this._$AH?this._$AH.call(null!==(i=null===(e=this.options)||void 0===e?void 0:e.host)&&void 0!==i?i:this.element,t):this._$AH.handleEvent(t)}}class J{constructor(t,e,i){this.element=t,this.type=6,this._$AN=void 0,this._$AM=e,this.options=i}get _$AU(){return this._$AM._$AU}_$AI(t){U(this,t)}}const G=window.litHtmlPolyfillSupport;
17
+ var m;f.finalized=!0,f.elementProperties=new Map,f.elementStyles=[],f.shadowRootOptions={mode:"open"},null==h||h({ReactiveElement:f}),(null!==(l=globalThis.reactiveElementVersions)&&void 0!==l?l:globalThis.reactiveElementVersions=[]).push("1.3.2");const g=globalThis.trustedTypes,w=g?g.createPolicy("lit-html",{createHTML:t=>t}):void 0,C=`lit$${(Math.random()+"").slice(9)}$`,y="?"+C,b=`<${y}>`,x=document,S=(t="")=>x.createComment(t),E=t=>null===t||"object"!=typeof t&&"function"!=typeof t,k=Array.isArray,A=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,I=/-->/g,$=/>/g,L=/>|[ \n \r](?:([^\s"'>=/]+)([ \n \r]*=[ \n \r]*(?:[^ \n \r"'`<>=]|("|')|))|$)/g,M=/'/g,_=/"/g,F=/^(?:script|style|textarea|title)$/i,T=(t=>(e,...i)=>({_$litType$:t,strings:e,values:i}))(1),D=Symbol.for("lit-noChange"),O=Symbol.for("lit-nothing"),N=new WeakMap,R=x.createTreeWalker(x,129,null,!1),V=(t,e)=>{const i=t.length-1,n=[];let o,s=2===e?"<svg>":"",r=A;for(let e=0;e<i;e++){const i=t[e];let a,l,c=-1,d=0;for(;d<i.length&&(r.lastIndex=d,l=r.exec(i),null!==l);)d=r.lastIndex,r===A?"!--"===l[1]?r=I:void 0!==l[1]?r=$:void 0!==l[2]?(F.test(l[2])&&(o=RegExp("</"+l[2],"g")),r=L):void 0!==l[3]&&(r=L):r===L?">"===l[0]?(r=null!=o?o:A,c=-1):void 0===l[1]?c=-2:(c=r.lastIndex-l[2].length,a=l[1],r=void 0===l[3]?L:'"'===l[3]?_:M):r===_||r===M?r=L:r===I||r===$?r=A:(r=L,o=void 0);const h=r===L&&t[e+1].startsWith("/>")?" ":"";s+=r===A?i+b:c>=0?(n.push(a),i.slice(0,c)+"$lit$"+i.slice(c)+C+h):i+C+(-2===c?(n.push(void 0),e):h)}const a=s+(t[i]||"<?>")+(2===e?"</svg>":"");if(!Array.isArray(t)||!t.hasOwnProperty("raw"))throw Error("invalid template strings array");return[void 0!==w?w.createHTML(a):a,n]};class j{constructor({strings:t,_$litType$:e},i){let n;this.parts=[];let o=0,s=0;const r=t.length-1,a=this.parts,[l,c]=V(t,e);if(this.el=j.createElement(l,i),R.currentNode=this.el.content,2===e){const t=this.el.content,e=t.firstChild;e.remove(),t.append(...e.childNodes)}for(;null!==(n=R.nextNode())&&a.length<r;){if(1===n.nodeType){if(n.hasAttributes()){const t=[];for(const e of n.getAttributeNames())if(e.endsWith("$lit$")||e.startsWith(C)){const i=c[s++];if(t.push(e),void 0!==i){const t=n.getAttribute(i.toLowerCase()+"$lit$").split(C),e=/([.?@])?(.*)/.exec(i);a.push({type:1,index:o,name:e[2],strings:t,ctor:"."===e[1]?z:"?"===e[1]?K:"@"===e[1]?q:H})}else a.push({type:6,index:o})}for(const e of t)n.removeAttribute(e)}if(F.test(n.tagName)){const t=n.textContent.split(C),e=t.length-1;if(e>0){n.textContent=g?g.emptyScript:"";for(let i=0;i<e;i++)n.append(t[i],S()),R.nextNode(),a.push({type:2,index:++o});n.append(t[e],S())}}}else if(8===n.nodeType)if(n.data===y)a.push({type:2,index:o});else{let t=-1;for(;-1!==(t=n.data.indexOf(C,t+1));)a.push({type:7,index:o}),t+=C.length-1}o++}}static createElement(t,e){const i=x.createElement("template");return i.innerHTML=t,i}}function U(t,e,i=t,n){var o,s,r,a;if(e===D)return e;let l=void 0!==n?null===(o=i._$Cl)||void 0===o?void 0:o[n]:i._$Cu;const c=E(e)?void 0:e._$litDirective$;return(null==l?void 0:l.constructor)!==c&&(null===(s=null==l?void 0:l._$AO)||void 0===s||s.call(l,!1),void 0===c?l=void 0:(l=new c(t),l._$AT(t,i,n)),void 0!==n?(null!==(r=(a=i)._$Cl)&&void 0!==r?r:a._$Cl=[])[n]=l:i._$Cu=l),void 0!==l&&(e=U(t,l._$AS(t,e.values),l,n)),e}class P{constructor(t,e){this.v=[],this._$AN=void 0,this._$AD=t,this._$AM=e}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}p(t){var e;const{el:{content:i},parts:n}=this._$AD,o=(null!==(e=null==t?void 0:t.creationScope)&&void 0!==e?e:x).importNode(i,!0);R.currentNode=o;let s=R.nextNode(),r=0,a=0,l=n[0];for(;void 0!==l;){if(r===l.index){let e;2===l.type?e=new B(s,s.nextSibling,this,t):1===l.type?e=new l.ctor(s,l.name,l.strings,this,t):6===l.type&&(e=new J(s,this,t)),this.v.push(e),l=n[++a]}r!==(null==l?void 0:l.index)&&(s=R.nextNode(),r++)}return o}m(t){let e=0;for(const i of this.v)void 0!==i&&(void 0!==i.strings?(i._$AI(t,i,e),e+=i.strings.length-2):i._$AI(t[e])),e++}}class B{constructor(t,e,i,n){var o;this.type=2,this._$AH=O,this._$AN=void 0,this._$AA=t,this._$AB=e,this._$AM=i,this.options=n,this._$Cg=null===(o=null==n?void 0:n.isConnected)||void 0===o||o}get _$AU(){var t,e;return null!==(e=null===(t=this._$AM)||void 0===t?void 0:t._$AU)&&void 0!==e?e:this._$Cg}get parentNode(){let t=this._$AA.parentNode;const e=this._$AM;return void 0!==e&&11===t.nodeType&&(t=e.parentNode),t}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(t,e=this){t=U(this,t,e),E(t)?t===O||null==t||""===t?(this._$AH!==O&&this._$AR(),this._$AH=O):t!==this._$AH&&t!==D&&this.$(t):void 0!==t._$litType$?this.T(t):void 0!==t.nodeType?this.k(t):(t=>{var e;return k(t)||"function"==typeof(null===(e=t)||void 0===e?void 0:e[Symbol.iterator])})(t)?this.S(t):this.$(t)}M(t,e=this._$AB){return this._$AA.parentNode.insertBefore(t,e)}k(t){this._$AH!==t&&(this._$AR(),this._$AH=this.M(t))}$(t){this._$AH!==O&&E(this._$AH)?this._$AA.nextSibling.data=t:this.k(x.createTextNode(t)),this._$AH=t}T(t){var e;const{values:i,_$litType$:n}=t,o="number"==typeof n?this._$AC(t):(void 0===n.el&&(n.el=j.createElement(n.h,this.options)),n);if((null===(e=this._$AH)||void 0===e?void 0:e._$AD)===o)this._$AH.m(i);else{const t=new P(o,this),e=t.p(this.options);t.m(i),this.k(e),this._$AH=t}}_$AC(t){let e=N.get(t.strings);return void 0===e&&N.set(t.strings,e=new j(t)),e}S(t){k(this._$AH)||(this._$AH=[],this._$AR());const e=this._$AH;let i,n=0;for(const o of t)n===e.length?e.push(i=new B(this.M(S()),this.M(S()),this,this.options)):i=e[n],i._$AI(o),n++;n<e.length&&(this._$AR(i&&i._$AB.nextSibling,n),e.length=n)}_$AR(t=this._$AA.nextSibling,e){var i;for(null===(i=this._$AP)||void 0===i||i.call(this,!1,!0,e);t&&t!==this._$AB;){const e=t.nextSibling;t.remove(),t=e}}setConnected(t){var e;void 0===this._$AM&&(this._$Cg=t,null===(e=this._$AP)||void 0===e||e.call(this,t))}}class H{constructor(t,e,i,n,o){this.type=1,this._$AH=O,this._$AN=void 0,this.element=t,this.name=e,this._$AM=n,this.options=o,i.length>2||""!==i[0]||""!==i[1]?(this._$AH=Array(i.length-1).fill(new String),this.strings=i):this._$AH=O}get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}_$AI(t,e=this,i,n){const o=this.strings;let s=!1;if(void 0===o)t=U(this,t,e,0),s=!E(t)||t!==this._$AH&&t!==D,s&&(this._$AH=t);else{const n=t;let r,a;for(t=o[0],r=0;r<o.length-1;r++)a=U(this,n[i+r],e,r),a===D&&(a=this._$AH[r]),s||(s=!E(a)||a!==this._$AH[r]),a===O?t=O:t!==O&&(t+=(null!=a?a:"")+o[r+1]),this._$AH[r]=a}s&&!n&&this.C(t)}C(t){t===O?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,null!=t?t:"")}}class z extends H{constructor(){super(...arguments),this.type=3}C(t){this.element[this.name]=t===O?void 0:t}}const Z=g?g.emptyScript:"";class K extends H{constructor(){super(...arguments),this.type=4}C(t){t&&t!==O?this.element.setAttribute(this.name,Z):this.element.removeAttribute(this.name)}}class q extends H{constructor(t,e,i,n,o){super(t,e,i,n,o),this.type=5}_$AI(t,e=this){var i;if((t=null!==(i=U(this,t,e,0))&&void 0!==i?i:O)===D)return;const n=this._$AH,o=t===O&&n!==O||t.capture!==n.capture||t.once!==n.once||t.passive!==n.passive,s=t!==O&&(n===O||o);o&&this.element.removeEventListener(this.name,this,n),s&&this.element.addEventListener(this.name,this,t),this._$AH=t}handleEvent(t){var e,i;"function"==typeof this._$AH?this._$AH.call(null!==(i=null===(e=this.options)||void 0===e?void 0:e.host)&&void 0!==i?i:this.element,t):this._$AH.handleEvent(t)}}class J{constructor(t,e,i){this.element=t,this.type=6,this._$AN=void 0,this._$AM=e,this.options=i}get _$AU(){return this._$AM._$AU}_$AI(t){U(this,t)}}const G=window.litHtmlPolyfillSupport;
18
18
  /**
19
19
  * @license
20
20
  * Copyright 2017 Google LLC
@@ -115,7 +115,7 @@ class kt{constructor(){this.reject=()=>{},this.resolve=()=>{},this.promise=new P
115
115
  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
116
116
  * See the License for the specific language governing permissions and
117
117
  * limitations under the License.
118
- */class At extends Error{constructor(t,e,i){super(e),this.code=t,this.customData=i,this.name="FirebaseError",Object.setPrototypeOf(this,At.prototype),Error.captureStackTrace&&Error.captureStackTrace(this,It.prototype.create)}}class It{constructor(t,e,i){this.service=t,this.serviceName=e,this.errors=i}create(t,...e){const i=e[0]||{},n=`${this.service}/${t}`,o=this.errors[t],s=o?function(t,e){return t.replace($t,((t,i)=>{const n=e[i];return null!=n?String(n):`<${i}?>`}))}(o,i):"Error",r=`${this.serviceName}: ${s} (${n}).`;return new At(n,r,i)}}const $t=/\{\$([^}]+)}/g;function Lt(t,e){if(t===e)return!0;const i=Object.keys(t),n=Object.keys(e);for(const o of i){if(!n.includes(o))return!1;const i=t[o],s=e[o];if(_t(i)&&_t(s)){if(!Lt(i,s))return!1}else if(i!==s)return!1}for(const t of n)if(!i.includes(t))return!1;return!0}function _t(t){return null!==t&&"object"==typeof t}
118
+ */class At extends Error{constructor(t,e,i){super(e),this.code=t,this.customData=i,this.name="FirebaseError",Object.setPrototypeOf(this,At.prototype),Error.captureStackTrace&&Error.captureStackTrace(this,It.prototype.create)}}class It{constructor(t,e,i){this.service=t,this.serviceName=e,this.errors=i}create(t,...e){const i=e[0]||{},n=`${this.service}/${t}`,o=this.errors[t],s=o?function(t,e){return t.replace($t,((t,i)=>{const n=e[i];return null!=n?String(n):`<${i}?>`}))}(o,i):"Error",r=`${this.serviceName}: ${s} (${n}).`;return new At(n,r,i)}}const $t=/\{\$([^}]+)}/g;function Lt(t,e){if(t===e)return!0;const i=Object.keys(t),n=Object.keys(e);for(const o of i){if(!n.includes(o))return!1;const i=t[o],s=e[o];if(Mt(i)&&Mt(s)){if(!Lt(i,s))return!1}else if(i!==s)return!1}for(const t of n)if(!i.includes(t))return!1;return!0}function Mt(t){return null!==t&&"object"==typeof t}
119
119
  /**
120
120
  * @license
121
121
  * Copyright 2017 Google LLC
@@ -131,7 +131,7 @@ class kt{constructor(){this.reject=()=>{},this.resolve=()=>{},this.promise=new P
131
131
  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
132
132
  * See the License for the specific language governing permissions and
133
133
  * limitations under the License.
134
- */function Mt(t){const e=[];for(const[i,n]of Object.entries(t))Array.isArray(n)?n.forEach((t=>{e.push(encodeURIComponent(i)+"="+encodeURIComponent(t))})):e.push(encodeURIComponent(i)+"="+encodeURIComponent(n));return e.length?"&"+e.join("&"):""}class Ft{constructor(t,e){this.observers=[],this.unsubscribes=[],this.observerCount=0,this.task=Promise.resolve(),this.finalized=!1,this.onNoObservers=e,this.task.then((()=>{t(this)})).catch((t=>{this.error(t)}))}next(t){this.forEachObserver((e=>{e.next(t)}))}error(t){this.forEachObserver((e=>{e.error(t)})),this.close(t)}complete(){this.forEachObserver((t=>{t.complete()})),this.close()}subscribe(t,e,i){let n;if(void 0===t&&void 0===e&&void 0===i)throw new Error("Missing Observer.");n=function(t,e){if("object"!=typeof t||null===t)return!1;for(const i of e)if(i in t&&"function"==typeof t[i])return!0;return!1}(t,["next","error","complete"])?t:{next:t,error:e,complete:i},void 0===n.next&&(n.next=Tt),void 0===n.error&&(n.error=Tt),void 0===n.complete&&(n.complete=Tt);const o=this.unsubscribeOne.bind(this,this.observers.length);return this.finalized&&this.task.then((()=>{try{this.finalError?n.error(this.finalError):n.complete()}catch(t){}})),this.observers.push(n),o}unsubscribeOne(t){void 0!==this.observers&&void 0!==this.observers[t]&&(delete this.observers[t],this.observerCount-=1,0===this.observerCount&&void 0!==this.onNoObservers&&this.onNoObservers(this))}forEachObserver(t){if(!this.finalized)for(let e=0;e<this.observers.length;e++)this.sendOne(e,t)}sendOne(t,e){this.task.then((()=>{if(void 0!==this.observers&&void 0!==this.observers[t])try{e(this.observers[t])}catch(t){"undefined"!=typeof console&&console.error&&console.error(t)}}))}close(t){this.finalized||(this.finalized=!0,void 0!==t&&(this.finalError=t),this.task.then((()=>{this.observers=void 0,this.onNoObservers=void 0})))}}function Tt(){}
134
+ */function _t(t){const e=[];for(const[i,n]of Object.entries(t))Array.isArray(n)?n.forEach((t=>{e.push(encodeURIComponent(i)+"="+encodeURIComponent(t))})):e.push(encodeURIComponent(i)+"="+encodeURIComponent(n));return e.length?"&"+e.join("&"):""}class Ft{constructor(t,e){this.observers=[],this.unsubscribes=[],this.observerCount=0,this.task=Promise.resolve(),this.finalized=!1,this.onNoObservers=e,this.task.then((()=>{t(this)})).catch((t=>{this.error(t)}))}next(t){this.forEachObserver((e=>{e.next(t)}))}error(t){this.forEachObserver((e=>{e.error(t)})),this.close(t)}complete(){this.forEachObserver((t=>{t.complete()})),this.close()}subscribe(t,e,i){let n;if(void 0===t&&void 0===e&&void 0===i)throw new Error("Missing Observer.");n=function(t,e){if("object"!=typeof t||null===t)return!1;for(const i of e)if(i in t&&"function"==typeof t[i])return!0;return!1}(t,["next","error","complete"])?t:{next:t,error:e,complete:i},void 0===n.next&&(n.next=Tt),void 0===n.error&&(n.error=Tt),void 0===n.complete&&(n.complete=Tt);const o=this.unsubscribeOne.bind(this,this.observers.length);return this.finalized&&this.task.then((()=>{try{this.finalError?n.error(this.finalError):n.complete()}catch(t){}})),this.observers.push(n),o}unsubscribeOne(t){void 0!==this.observers&&void 0!==this.observers[t]&&(delete this.observers[t],this.observerCount-=1,0===this.observerCount&&void 0!==this.onNoObservers&&this.onNoObservers(this))}forEachObserver(t){if(!this.finalized)for(let e=0;e<this.observers.length;e++)this.sendOne(e,t)}sendOne(t,e){this.task.then((()=>{if(void 0!==this.observers&&void 0!==this.observers[t])try{e(this.observers[t])}catch(t){"undefined"!=typeof console&&console.error&&console.error(t)}}))}close(t){this.finalized||(this.finalized=!0,void 0!==t&&(this.finalError=t),this.task.then((()=>{this.observers=void 0,this.onNoObservers=void 0})))}}function Tt(){}
135
135
  /**
136
136
  * @license
137
137
  * Copyright 2021 Google LLC
@@ -344,7 +344,7 @@ class fe{constructor(t,e,i){this._isDeleted=!1,this._options=Object.assign({},t)
344
344
  * See the License for the specific language governing permissions and
345
345
  * limitations under the License.
346
346
  */
347
- ge("firebase","9.15.0","app");function $e(t,e){const i={};for(const n in t)t.hasOwnProperty(n)&&(i[n]=e(t[n]));return i}function Le(t){if(null==t)return null;if(t instanceof Number&&(t=t.valueOf()),"number"==typeof t&&isFinite(t))return t;if(!0===t||!1===t)return t;if("[object String]"===Object.prototype.toString.call(t))return t;if(t instanceof Date)return t.toISOString();if(Array.isArray(t))return t.map((t=>Le(t)));if("function"==typeof t||"object"==typeof t)return $e(t,(t=>Le(t)));throw new Error("Data cannot be encoded in JSON: "+t)}function _e(t){if(null==t)return t;if(t["@type"])switch(t["@type"]){case"type.googleapis.com/google.protobuf.Int64Value":case"type.googleapis.com/google.protobuf.UInt64Value":{const e=Number(t.value);if(isNaN(e))throw new Error("Data cannot be decoded from JSON: "+t);return e}default:throw new Error("Data cannot be decoded from JSON: "+t)}return Array.isArray(t)?t.map((t=>_e(t))):"function"==typeof t||"object"==typeof t?$e(t,(t=>_e(t))):t}
347
+ ge("firebase","9.15.0","app");function $e(t,e){const i={};for(const n in t)t.hasOwnProperty(n)&&(i[n]=e(t[n]));return i}function Le(t){if(null==t)return null;if(t instanceof Number&&(t=t.valueOf()),"number"==typeof t&&isFinite(t))return t;if(!0===t||!1===t)return t;if("[object String]"===Object.prototype.toString.call(t))return t;if(t instanceof Date)return t.toISOString();if(Array.isArray(t))return t.map((t=>Le(t)));if("function"==typeof t||"object"==typeof t)return $e(t,(t=>Le(t)));throw new Error("Data cannot be encoded in JSON: "+t)}function Me(t){if(null==t)return t;if(t["@type"])switch(t["@type"]){case"type.googleapis.com/google.protobuf.Int64Value":case"type.googleapis.com/google.protobuf.UInt64Value":{const e=Number(t.value);if(isNaN(e))throw new Error("Data cannot be decoded from JSON: "+t);return e}default:throw new Error("Data cannot be decoded from JSON: "+t)}return Array.isArray(t)?t.map((t=>Me(t))):"function"==typeof t||"object"==typeof t?$e(t,(t=>Me(t))):t}
348
348
  /**
349
349
  * @license
350
350
  * Copyright 2020 Google LLC
@@ -360,7 +360,7 @@ ge("firebase","9.15.0","app");function $e(t,e){const i={};for(const n in t)t.has
360
360
  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
361
361
  * See the License for the specific language governing permissions and
362
362
  * limitations under the License.
363
- */const Me={OK:"ok",CANCELLED:"cancelled",UNKNOWN:"unknown",INVALID_ARGUMENT:"invalid-argument",DEADLINE_EXCEEDED:"deadline-exceeded",NOT_FOUND:"not-found",ALREADY_EXISTS:"already-exists",PERMISSION_DENIED:"permission-denied",UNAUTHENTICATED:"unauthenticated",RESOURCE_EXHAUSTED:"resource-exhausted",FAILED_PRECONDITION:"failed-precondition",ABORTED:"aborted",OUT_OF_RANGE:"out-of-range",UNIMPLEMENTED:"unimplemented",INTERNAL:"internal",UNAVAILABLE:"unavailable",DATA_LOSS:"data-loss"};
363
+ */const _e={OK:"ok",CANCELLED:"cancelled",UNKNOWN:"unknown",INVALID_ARGUMENT:"invalid-argument",DEADLINE_EXCEEDED:"deadline-exceeded",NOT_FOUND:"not-found",ALREADY_EXISTS:"already-exists",PERMISSION_DENIED:"permission-denied",UNAUTHENTICATED:"unauthenticated",RESOURCE_EXHAUSTED:"resource-exhausted",FAILED_PRECONDITION:"failed-precondition",ABORTED:"aborted",OUT_OF_RANGE:"out-of-range",UNIMPLEMENTED:"unimplemented",INTERNAL:"internal",UNAVAILABLE:"unavailable",DATA_LOSS:"data-loss"};
364
364
  /**
365
365
  * @license
366
366
  * Copyright 2017 Google LLC
@@ -409,7 +409,7 @@ class Te{constructor(t,e,i){this.auth=null,this.messaging=null,this.appCheck=nul
409
409
  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
410
410
  * See the License for the specific language governing permissions and
411
411
  * limitations under the License.
412
- */class De{constructor(t,e,i,n,o="us-central1",s){this.app=t,this.fetchImpl=s,this.emulatorOrigin=null,this.contextProvider=new Te(e,i,n),this.cancelAllRequests=new Promise((t=>{this.deleteService=()=>Promise.resolve(t())}));try{const t=new URL(o);this.customDomain=t.origin,this.region="us-central1"}catch(t){this.customDomain=null,this.region=o}}_delete(){return this.deleteService()}_url(t){const e=this.app.options.projectId;if(null!==this.emulatorOrigin){return`${this.emulatorOrigin}/${e}/${this.region}/${t}`}return null!==this.customDomain?`${this.customDomain}/${t}`:`https://${this.region}-${e}.cloudfunctions.net/${t}`}}function Oe(t,e,i){return n=>function(t,e,i,n){const o=t._url(e);return async function(t,e,i,n){const o={data:i=Le(i)},s={},r=await t.contextProvider.getContext();r.authToken&&(s.Authorization="Bearer "+r.authToken);r.messagingToken&&(s["Firebase-Instance-ID-Token"]=r.messagingToken);null!==r.appCheckToken&&(s["X-Firebase-AppCheck"]=r.appCheckToken);const a=function(t){let e=null;return{promise:new Promise(((i,n)=>{e=setTimeout((()=>{n(new Fe("deadline-exceeded","deadline-exceeded"))}),t)})),cancel:()=>{e&&clearTimeout(e)}}}(n.timeout||7e4),l=await Promise.race([Ne(e,o,s,t.fetchImpl),a.promise,t.cancelAllRequests]);if(a.cancel(),!l)throw new Fe("cancelled","Firebase Functions instance was deleted.");const c=function(t,e){let i,n=function(t){if(t>=200&&t<300)return"ok";switch(t){case 0:case 500:return"internal";case 400:return"invalid-argument";case 401:return"unauthenticated";case 403:return"permission-denied";case 404:return"not-found";case 409:return"aborted";case 429:return"resource-exhausted";case 499:return"cancelled";case 501:return"unimplemented";case 503:return"unavailable";case 504:return"deadline-exceeded"}return"unknown"}(t),o=n;try{const t=e&&e.error;if(t){const e=t.status;if("string"==typeof e){if(!Me[e])return new Fe("internal","internal");n=Me[e],o=e}const s=t.message;"string"==typeof s&&(o=s),i=t.details,void 0!==i&&(i=_e(i))}}catch(t){}return"ok"===n?null:new Fe(n,o,i)}(l.status,l.json);if(c)throw c;if(!l.json)throw new Fe("internal","Response is not valid JSON object.");let d=l.json.data;void 0===d&&(d=l.json.result);if(void 0===d)throw new Fe("internal","Response is missing data field.");return{data:_e(d)}}(t,o,i,n)}(t,e,n,i||{})}async function Ne(t,e,i,n){let o;i["Content-Type"]="application/json";try{o=await n(t,{method:"POST",body:JSON.stringify(e),headers:i})}catch(t){return{status:0,json:null}}let s=null;try{s=await o.json()}catch(t){}return{status:o.status,json:s}}const Re="@firebase/functions";function Ve(t,e,i){return Oe(Dt(t),e,i)}function je(t,e){var i={};for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&e.indexOf(n)<0&&(i[n]=t[n]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(n=Object.getOwnPropertySymbols(t);o<n.length;o++)e.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(t,n[o])&&(i[n[o]]=t[n[o]])}return i}function Ue(){return{"dependent-sdk-initialized-before-auth":"Another Firebase SDK was initialized and is trying to use Auth before Auth is initialized. Please be sure to call `initializeAuth` or `getAuth` before starting any other Firebase SDK."}}!function(t,e){pe(new Ot("functions",((e,{instanceIdentifier:i})=>{const n=e.getProvider("app").getImmediate(),o=e.getProvider("auth-internal"),s=e.getProvider("messaging-internal"),r=e.getProvider("app-check-internal");return new De(n,o,s,r,i,t)}),"PUBLIC").setMultipleInstances(!0)),ge(Re,"0.9.0",e),ge(Re,"0.9.0","esm2017")}
412
+ */class De{constructor(t,e,i,n,o="us-central1",s){this.app=t,this.fetchImpl=s,this.emulatorOrigin=null,this.contextProvider=new Te(e,i,n),this.cancelAllRequests=new Promise((t=>{this.deleteService=()=>Promise.resolve(t())}));try{const t=new URL(o);this.customDomain=t.origin,this.region="us-central1"}catch(t){this.customDomain=null,this.region=o}}_delete(){return this.deleteService()}_url(t){const e=this.app.options.projectId;if(null!==this.emulatorOrigin){return`${this.emulatorOrigin}/${e}/${this.region}/${t}`}return null!==this.customDomain?`${this.customDomain}/${t}`:`https://${this.region}-${e}.cloudfunctions.net/${t}`}}function Oe(t,e,i){return n=>function(t,e,i,n){const o=t._url(e);return async function(t,e,i,n){const o={data:i=Le(i)},s={},r=await t.contextProvider.getContext();r.authToken&&(s.Authorization="Bearer "+r.authToken);r.messagingToken&&(s["Firebase-Instance-ID-Token"]=r.messagingToken);null!==r.appCheckToken&&(s["X-Firebase-AppCheck"]=r.appCheckToken);const a=function(t){let e=null;return{promise:new Promise(((i,n)=>{e=setTimeout((()=>{n(new Fe("deadline-exceeded","deadline-exceeded"))}),t)})),cancel:()=>{e&&clearTimeout(e)}}}(n.timeout||7e4),l=await Promise.race([Ne(e,o,s,t.fetchImpl),a.promise,t.cancelAllRequests]);if(a.cancel(),!l)throw new Fe("cancelled","Firebase Functions instance was deleted.");const c=function(t,e){let i,n=function(t){if(t>=200&&t<300)return"ok";switch(t){case 0:case 500:return"internal";case 400:return"invalid-argument";case 401:return"unauthenticated";case 403:return"permission-denied";case 404:return"not-found";case 409:return"aborted";case 429:return"resource-exhausted";case 499:return"cancelled";case 501:return"unimplemented";case 503:return"unavailable";case 504:return"deadline-exceeded"}return"unknown"}(t),o=n;try{const t=e&&e.error;if(t){const e=t.status;if("string"==typeof e){if(!_e[e])return new Fe("internal","internal");n=_e[e],o=e}const s=t.message;"string"==typeof s&&(o=s),i=t.details,void 0!==i&&(i=Me(i))}}catch(t){}return"ok"===n?null:new Fe(n,o,i)}(l.status,l.json);if(c)throw c;if(!l.json)throw new Fe("internal","Response is not valid JSON object.");let d=l.json.data;void 0===d&&(d=l.json.result);if(void 0===d)throw new Fe("internal","Response is missing data field.");return{data:Me(d)}}(t,o,i,n)}(t,e,n,i||{})}async function Ne(t,e,i,n){let o;i["Content-Type"]="application/json";try{o=await n(t,{method:"POST",body:JSON.stringify(e),headers:i})}catch(t){return{status:0,json:null}}let s=null;try{s=await o.json()}catch(t){}return{status:o.status,json:s}}const Re="@firebase/functions";function Ve(t,e,i){return Oe(Dt(t),e,i)}function je(t,e){var i={};for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&e.indexOf(n)<0&&(i[n]=t[n]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(n=Object.getOwnPropertySymbols(t);o<n.length;o++)e.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(t,n[o])&&(i[n[o]]=t[n[o]])}return i}function Ue(){return{"dependent-sdk-initialized-before-auth":"Another Firebase SDK was initialized and is trying to use Auth before Auth is initialized. Please be sure to call `initializeAuth` or `getAuth` before starting any other Firebase SDK."}}!function(t,e){pe(new Ot("functions",((e,{instanceIdentifier:i})=>{const n=e.getProvider("app").getImmediate(),o=e.getProvider("auth-internal"),s=e.getProvider("messaging-internal"),r=e.getProvider("app-check-internal");return new De(n,o,s,r,i,t)}),"PUBLIC").setMultipleInstances(!0)),ge(Re,"0.9.0",e),ge(Re,"0.9.0","esm2017")}
413
413
  /**
414
414
  * @license
415
415
  * Copyright 2020 Google LLC
@@ -555,7 +555,7 @@ class ii{static initialize(t,e,i){this.fetchImpl=t,e&&(this.headersImpl=e),i&&(t
555
555
  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
556
556
  * See the License for the specific language governing permissions and
557
557
  * limitations under the License.
558
- */async function si(t,e,i,n,o={}){return ri(t,o,(async()=>{let o={},s={};n&&("GET"===e?s=n:o={body:JSON.stringify(n)});const r=Mt(Object.assign({key:t.config.apiKey},s)).slice(1),a=await t._getAdditionalHeaders();return a["Content-Type"]="application/json",t.languageCode&&(a["X-Firebase-Locale"]=t.languageCode),ii.fetch()(ai(t,t.config.apiHost,i,r),Object.assign({method:e,headers:a,referrerPolicy:"no-referrer"},o))}))}async function ri(t,e,i){t._canInitEmulator=!1;const n=Object.assign(Object.assign({},ni),e);try{const e=new li(t),o=await Promise.race([i(),e.promise]);e.clearNetworkTimeout();const s=await o.json();if("needConfirmation"in s)throw ci(t,"account-exists-with-different-credential",s);if(o.ok&&!("errorMessage"in s))return s;{const e=o.ok?s.errorMessage:s.error.message,[i,r]=e.split(" : ");if("FEDERATED_USER_ID_ALREADY_LINKED"===i)throw ci(t,"credential-already-in-use",s);if("EMAIL_EXISTS"===i)throw ci(t,"email-already-in-use",s);if("USER_DISABLED"===i)throw ci(t,"user-disabled",s);const a=n[i]||i.toLowerCase().replace(/[_\s]+/g,"-");if(r)throw function(t,e,i){const n=Object.assign(Object.assign({},Pe()),{[e]:i});return new It("auth","Firebase",n).create(e,{appName:t.name})}(t,a,r);Ze(t,a)}}catch(e){if(e instanceof At)throw e;Ze(t,"network-request-failed")}}function ai(t,e,i,n){const o=`${e}${i}?${n}`;return t.config.emulator?function(t,e){Ye(t.emulator,"Emulator should always be set here");const{url:i}=t.emulator;return e?`${i}${e.startsWith("/")?e.slice(1):e}`:i}(t.config,o):`${t.config.apiScheme}://${o}`}class li{constructor(t){this.auth=t,this.timer=null,this.promise=new Promise(((t,e)=>{this.timer=setTimeout((()=>e(Ke(this.auth,"network-request-failed"))),oi.get())}))}clearNetworkTimeout(){clearTimeout(this.timer)}}function ci(t,e,i){const n={appName:t.name};i.email&&(n.email=i.email),i.phoneNumber&&(n.phoneNumber=i.phoneNumber);const o=Ke(t,e,n);return o.customData._tokenResponse=i,o}
558
+ */async function si(t,e,i,n,o={}){return ri(t,o,(async()=>{let o={},s={};n&&("GET"===e?s=n:o={body:JSON.stringify(n)});const r=_t(Object.assign({key:t.config.apiKey},s)).slice(1),a=await t._getAdditionalHeaders();return a["Content-Type"]="application/json",t.languageCode&&(a["X-Firebase-Locale"]=t.languageCode),ii.fetch()(ai(t,t.config.apiHost,i,r),Object.assign({method:e,headers:a,referrerPolicy:"no-referrer"},o))}))}async function ri(t,e,i){t._canInitEmulator=!1;const n=Object.assign(Object.assign({},ni),e);try{const e=new li(t),o=await Promise.race([i(),e.promise]);e.clearNetworkTimeout();const s=await o.json();if("needConfirmation"in s)throw ci(t,"account-exists-with-different-credential",s);if(o.ok&&!("errorMessage"in s))return s;{const e=o.ok?s.errorMessage:s.error.message,[i,r]=e.split(" : ");if("FEDERATED_USER_ID_ALREADY_LINKED"===i)throw ci(t,"credential-already-in-use",s);if("EMAIL_EXISTS"===i)throw ci(t,"email-already-in-use",s);if("USER_DISABLED"===i)throw ci(t,"user-disabled",s);const a=n[i]||i.toLowerCase().replace(/[_\s]+/g,"-");if(r)throw function(t,e,i){const n=Object.assign(Object.assign({},Pe()),{[e]:i});return new It("auth","Firebase",n).create(e,{appName:t.name})}(t,a,r);Ze(t,a)}}catch(e){if(e instanceof At)throw e;Ze(t,"network-request-failed")}}function ai(t,e,i,n){const o=`${e}${i}?${n}`;return t.config.emulator?function(t,e){Ye(t.emulator,"Emulator should always be set here");const{url:i}=t.emulator;return e?`${i}${e.startsWith("/")?e.slice(1):e}`:i}(t.config,o):`${t.config.apiScheme}://${o}`}class li{constructor(t){this.auth=t,this.timer=null,this.promise=new Promise(((t,e)=>{this.timer=setTimeout((()=>e(Ke(this.auth,"network-request-failed"))),oi.get())}))}clearNetworkTimeout(){clearTimeout(this.timer)}}function ci(t,e,i){const n={appName:t.name};i.email&&(n.email=i.email),i.phoneNumber&&(n.phoneNumber=i.phoneNumber);const o=Ke(t,e,n);return o.customData._tokenResponse=i,o}
559
559
  /**
560
560
  * @license
561
561
  * Copyright 2020 Google LLC
@@ -687,7 +687,7 @@ class gi{constructor(){this.refreshToken=null,this.accessToken=null,this.expirat
687
687
  * See the License for the specific language governing permissions and
688
688
  * limitations under the License.
689
689
  */
690
- async function(t,e){const i=await ri(t,{},(async()=>{const i=Mt({grant_type:"refresh_token",refresh_token:e}).slice(1),{tokenApiHost:n,apiKey:o}=t.config,s=ai(t,n,"/v1/token",`key=${o}`),r=await t._getAdditionalHeaders();return r["Content-Type"]="application/x-www-form-urlencoded",ii.fetch()(s,{method:"POST",headers:r,body:i})}));return{accessToken:i.access_token,expiresIn:i.expires_in,refreshToken:i.refresh_token}}(t,e);this.updateTokensAndExpiration(i,n,Number(o))}updateTokensAndExpiration(t,e,i){this.refreshToken=e||null,this.accessToken=t||null,this.expirationTime=Date.now()+1e3*i}static fromJSON(t,e){const{refreshToken:i,accessToken:n,expirationTime:o}=e,s=new gi;return i&&(Je("string"==typeof i,"internal-error",{appName:t}),s.refreshToken=i),n&&(Je("string"==typeof n,"internal-error",{appName:t}),s.accessToken=n),o&&(Je("number"==typeof o,"internal-error",{appName:t}),s.expirationTime=o),s}toJSON(){return{refreshToken:this.refreshToken,accessToken:this.accessToken,expirationTime:this.expirationTime}}_assign(t){this.accessToken=t.accessToken,this.refreshToken=t.refreshToken,this.expirationTime=t.expirationTime}_clone(){return Object.assign(new gi,this.toJSON())}_performRefresh(){return Ge("not implemented")}}
690
+ async function(t,e){const i=await ri(t,{},(async()=>{const i=_t({grant_type:"refresh_token",refresh_token:e}).slice(1),{tokenApiHost:n,apiKey:o}=t.config,s=ai(t,n,"/v1/token",`key=${o}`),r=await t._getAdditionalHeaders();return r["Content-Type"]="application/x-www-form-urlencoded",ii.fetch()(s,{method:"POST",headers:r,body:i})}));return{accessToken:i.access_token,expiresIn:i.expires_in,refreshToken:i.refresh_token}}(t,e);this.updateTokensAndExpiration(i,n,Number(o))}updateTokensAndExpiration(t,e,i){this.refreshToken=e||null,this.accessToken=t||null,this.expirationTime=Date.now()+1e3*i}static fromJSON(t,e){const{refreshToken:i,accessToken:n,expirationTime:o}=e,s=new gi;return i&&(Je("string"==typeof i,"internal-error",{appName:t}),s.refreshToken=i),n&&(Je("string"==typeof n,"internal-error",{appName:t}),s.accessToken=n),o&&(Je("number"==typeof o,"internal-error",{appName:t}),s.expirationTime=o),s}toJSON(){return{refreshToken:this.refreshToken,accessToken:this.accessToken,expirationTime:this.expirationTime}}_assign(t){this.accessToken=t.accessToken,this.refreshToken=t.refreshToken,this.expirationTime=t.expirationTime}_clone(){return Object.assign(new gi,this.toJSON())}_performRefresh(){return Ge("not implemented")}}
691
691
  /**
692
692
  * @license
693
693
  * Copyright 2020 Google LLC
@@ -867,7 +867,7 @@ new ei(5e3,15e3);var Li="@firebase/auth";
867
867
  * See the License for the specific language governing permissions and
868
868
  * limitations under the License.
869
869
  */
870
- class _i{constructor(t){this.auth=t,this.internalListeners=new Map}getUid(){var t;return this.assertAuthConfigured(),(null===(t=this.auth.currentUser)||void 0===t?void 0:t.uid)||null}async getToken(t){if(this.assertAuthConfigured(),await this.auth._initializationPromise,!this.auth.currentUser)return null;return{accessToken:await this.auth.currentUser.getIdToken(t)}}addAuthTokenListener(t){if(this.assertAuthConfigured(),this.internalListeners.has(t))return;const e=this.auth.onIdTokenChanged((e=>{t((null==e?void 0:e.stsTokenManager.accessToken)||null)}));this.internalListeners.set(t,e),this.updateProactiveRefresh()}removeAuthTokenListener(t){this.assertAuthConfigured();const e=this.internalListeners.get(t);e&&(this.internalListeners.delete(t),e(),this.updateProactiveRefresh())}assertAuthConfigured(){Je(this.auth._initializationPromise,"dependent-sdk-initialized-before-auth")}updateProactiveRefresh(){this.internalListeners.size>0?this.auth._startProactiveRefresh():this.auth._stopProactiveRefresh()}}
870
+ class Mi{constructor(t){this.auth=t,this.internalListeners=new Map}getUid(){var t;return this.assertAuthConfigured(),(null===(t=this.auth.currentUser)||void 0===t?void 0:t.uid)||null}async getToken(t){if(this.assertAuthConfigured(),await this.auth._initializationPromise,!this.auth.currentUser)return null;return{accessToken:await this.auth.currentUser.getIdToken(t)}}addAuthTokenListener(t){if(this.assertAuthConfigured(),this.internalListeners.has(t))return;const e=this.auth.onIdTokenChanged((e=>{t((null==e?void 0:e.stsTokenManager.accessToken)||null)}));this.internalListeners.set(t,e),this.updateProactiveRefresh()}removeAuthTokenListener(t){this.assertAuthConfigured();const e=this.internalListeners.get(t);e&&(this.internalListeners.delete(t),e(),this.updateProactiveRefresh())}assertAuthConfigured(){Je(this.auth._initializationPromise,"dependent-sdk-initialized-before-auth")}updateProactiveRefresh(){this.internalListeners.size>0?this.auth._startProactiveRefresh():this.auth._stopProactiveRefresh()}}
871
871
  /**
872
872
  * @license
873
873
  * Copyright 2020 Google LLC
@@ -883,7 +883,7 @@ class _i{constructor(t){this.auth=t,this.internalListeners=new Map}getUid(){var
883
883
  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
884
884
  * See the License for the specific language governing permissions and
885
885
  * limitations under the License.
886
- */var Mi;
886
+ */var _i;
887
887
  /**
888
888
  * @license
889
889
  * Copyright 2021 Google LLC
@@ -899,15 +899,15 @@ class _i{constructor(t){this.auth=t,this.internalListeners=new Map}getUid(){var
899
899
  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
900
900
  * See the License for the specific language governing permissions and
901
901
  * limitations under the License.
902
- */(t=>{var e;null===(e=St())||void 0===e||e[`_${t}`]})("authIdTokenMaxAge"),Mi="Browser",pe(new Ot("auth",((t,{options:e})=>{const i=t.getProvider("app").getImmediate(),n=t.getProvider("heartbeat"),{apiKey:o,authDomain:s}=i.options;return((t,i)=>{Je(o&&!o.includes(":"),"invalid-api-key",{appName:t.name}),Je(!(null==s?void 0:s.includes(":")),"argument-error",{appName:t.name});const n={apiKey:o,authDomain:s,clientPlatform:Mi,apiHost:"identitytoolkit.googleapis.com",tokenApiHost:"securetoken.googleapis.com",apiScheme:"https",sdkClientVersion:ki(Mi)},r=new Ii(t,i,n);return function(t,e){const i=(null==e?void 0:e.persistence)||[],n=(Array.isArray(i)?i:[i]).map(Xe);(null==e?void 0:e.errorMap)&&t._updateErrorMap(e.errorMap),t._initializeWithPersistence(n,null==e?void 0:e.popupRedirectResolver)}(r,e),r})(i,n)}),"PUBLIC").setInstantiationMode("EXPLICIT").setInstanceCreatedCallback(((t,e,i)=>{t.getProvider("auth-internal").initialize()}))),pe(new Ot("auth-internal",(t=>(t=>new _i(t))(function(t){return Dt(t)}(t.getProvider("auth").getImmediate()))),"PRIVATE").setInstantiationMode("EXPLICIT")),ge(Li,"0.21.0",function(t){switch(t){case"Node":return"node";case"ReactNative":return"rn";case"Worker":return"webworker";case"Cordova":return"cordova";default:return}}(Mi)),ge(Li,"0.21.0","esm2017");class Fi{static create(...t){return new this(...t)}mixIn(t){return Object.assign(this,t)}clone(){const t=new this.constructor;return Object.assign(t,this),t}}class Ti extends Fi{constructor(t=[],e=4*t.length){super();let i=t;if(i instanceof ArrayBuffer&&(i=new Uint8Array(i)),(i instanceof Int8Array||i instanceof Uint8ClampedArray||i instanceof Int16Array||i instanceof Uint16Array||i instanceof Int32Array||i instanceof Uint32Array||i instanceof Float32Array||i instanceof Float64Array)&&(i=new Uint8Array(i.buffer,i.byteOffset,i.byteLength)),i instanceof Uint8Array){const t=i.byteLength,e=[];for(let n=0;n<t;n+=1)e[n>>>2]|=i[n]<<24-n%4*8;this.words=e,this.sigBytes=t}else this.words=t,this.sigBytes=e}static random(t){const e=[],i=t=>{let e=t,i=987654321;const n=4294967295;return()=>{i=36969*(65535&i)+(i>>16)&n,e=18e3*(65535&e)+(e>>16)&n;let t=(i<<16)+e&n;return t/=4294967296,t+=.5,t*(Math.random()>.5?1:-1)}};for(let n,o=0;o<t;o+=4){const t=i(4294967296*(n||Math.random()));n=987654071*t(),e.push(4294967296*t()|0)}return new Ti(e,t)}toString(t=Di){return t.stringify(this)}concat(t){const e=this.words,i=t.words,n=this.sigBytes,o=t.sigBytes;if(this.clamp(),n%4)for(let t=0;t<o;t+=1){const o=i[t>>>2]>>>24-t%4*8&255;e[n+t>>>2]|=o<<24-(n+t)%4*8}else for(let t=0;t<o;t+=4)e[n+t>>>2]=i[t>>>2];return this.sigBytes+=o,this}clamp(){const{words:t,sigBytes:e}=this;t[e>>>2]&=4294967295<<32-e%4*8,t.length=Math.ceil(e/4)}clone(){const t=super.clone.call(this);return t.words=this.words.slice(0),t}}const Di={stringify(t){const{words:e,sigBytes:i}=t,n=[];for(let t=0;t<i;t+=1){const i=e[t>>>2]>>>24-t%4*8&255;n.push((i>>>4).toString(16)),n.push((15&i).toString(16))}return n.join("")},parse(t){const e=t.length,i=[];for(let n=0;n<e;n+=2)i[n>>>3]|=parseInt(t.substr(n,2),16)<<24-n%8*4;return new Ti(i,e/2)}},Oi={stringify(t){const{words:e,sigBytes:i}=t,n=[];for(let t=0;t<i;t+=1){const i=e[t>>>2]>>>24-t%4*8&255;n.push(String.fromCharCode(i))}return n.join("")},parse(t){const e=t.length,i=[];for(let n=0;n<e;n+=1)i[n>>>2]|=(255&t.charCodeAt(n))<<24-n%4*8;return new Ti(i,e)}},Ni={stringify(t){try{return decodeURIComponent(escape(Oi.stringify(t)))}catch(t){throw new Error("Malformed UTF-8 data")}},parse:t=>Oi.parse(unescape(encodeURIComponent(t)))};class Ri extends Fi{constructor(){super(),this._minBufferSize=0}reset(){this._data=new Ti,this._nDataBytes=0}_append(t){let e=t;"string"==typeof e&&(e=Ni.parse(e)),this._data.concat(e),this._nDataBytes+=e.sigBytes}_process(t){let e;const{_data:i,blockSize:n}=this,o=i.words,s=i.sigBytes;let r=s/(4*n);r=t?Math.ceil(r):Math.max((0|r)-this._minBufferSize,0);const a=r*n,l=Math.min(4*a,s);if(a){for(let t=0;t<a;t+=n)this._doProcessBlock(o,t);e=o.splice(0,a),i.sigBytes-=l}return new Ti(e,l)}clone(){const t=super.clone.call(this);return t._data=this._data.clone(),t}}class Vi extends Ri{constructor(t){super(),this.blockSize=16,this.cfg=Object.assign(new Fi,t),this.reset()}static _createHelper(t){return(e,i)=>new t(i).finalize(e)}static _createHmacHelper(t){return(e,i)=>new ji(t,i).finalize(e)}reset(){super.reset.call(this),this._doReset()}update(t){return this._append(t),this._process(),this}finalize(t){t&&this._append(t);return this._doFinalize()}}class ji extends Fi{constructor(t,e){super();const i=new t;this._hasher=i;let n=e;"string"==typeof n&&(n=Ni.parse(n));const o=i.blockSize,s=4*o;n.sigBytes>s&&(n=i.finalize(e)),n.clamp();const r=n.clone();this._oKey=r;const a=n.clone();this._iKey=a;const l=r.words,c=a.words;for(let t=0;t<o;t+=1)l[t]^=1549556828,c[t]^=909522486;r.sigBytes=s,a.sigBytes=s,this.reset()}reset(){const t=this._hasher;t.reset(),t.update(this._iKey)}update(t){return this._hasher.update(t),this}finalize(t){const e=this._hasher,i=e.finalize(t);e.reset();return e.finalize(this._oKey.clone().concat(i))}}const Ui=Ti;class Pi extends Fi{constructor(t,e){super(),this.high=t,this.low=e}}class Bi extends Fi{constructor(t=[],e=8*t.length){super(),this.words=t,this.sigBytes=e}toX32(){const t=this.words,e=t.length,i=[];for(let n=0;n<e;n+=1){const e=t[n];i.push(e.high),i.push(e.low)}return Ui.create(i,this.sigBytes)}clone(){const t=super.clone.call(this);t.words=this.words.slice(0);const{words:e}=t,i=e.length;for(let t=0;t<i;t+=1)e[t]=e[t].clone();return t}}const Hi={stringify(t){const{words:e,sigBytes:i}=t,n=this._map;t.clamp();const o=[];for(let t=0;t<i;t+=3){const s=(e[t>>>2]>>>24-t%4*8&255)<<16|(e[t+1>>>2]>>>24-(t+1)%4*8&255)<<8|e[t+2>>>2]>>>24-(t+2)%4*8&255;for(let e=0;e<4&&t+.75*e<i;e+=1)o.push(n.charAt(s>>>6*(3-e)&63))}const s=n.charAt(64);if(s)for(;o.length%4;)o.push(s);return o.join("")},parse(t){let e=t.length;const i=this._map;let n=this._reverseMap;if(!n){this._reverseMap=[],n=this._reverseMap;for(let t=0;t<i.length;t+=1)n[i.charCodeAt(t)]=t}const o=i.charAt(64);if(o){const i=t.indexOf(o);-1!==i&&(e=i)}return((t,e,i)=>{const n=[];let o=0;for(let s=0;s<e;s+=1)if(s%4){const e=i[t.charCodeAt(s-1)]<<s%4*2|i[t.charCodeAt(s)]>>>6-s%4*2;n[o>>>2]|=e<<24-o%4*8,o+=1}return Ti.create(n,o)})(t,e,n)},_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/="},zi=[];for(let t=0;t<64;t+=1)zi[t]=4294967296*Math.abs(Math.sin(t+1))|0;const Zi=(t,e,i,n,o,s,r)=>{const a=t+(e&i|~e&n)+o+r;return(a<<s|a>>>32-s)+e},Ki=(t,e,i,n,o,s,r)=>{const a=t+(e&n|i&~n)+o+r;return(a<<s|a>>>32-s)+e},qi=(t,e,i,n,o,s,r)=>{const a=t+(e^i^n)+o+r;return(a<<s|a>>>32-s)+e},Ji=(t,e,i,n,o,s,r)=>{const a=t+(i^(e|~n))+o+r;return(a<<s|a>>>32-s)+e};class Gi extends Vi{_doReset(){this._hash=new Ti([1732584193,4023233417,2562383102,271733878])}_doProcessBlock(t,e){const i=t;for(let n=0;n<16;n+=1){const o=e+n,s=t[o];i[o]=16711935&(s<<8|s>>>24)|4278255360&(s<<24|s>>>8)}const n=this._hash.words,o=i[e+0],s=i[e+1],r=i[e+2],a=i[e+3],l=i[e+4],c=i[e+5],d=i[e+6],h=i[e+7],u=i[e+8],p=i[e+9],v=i[e+10],f=i[e+11],m=i[e+12],g=i[e+13],w=i[e+14],C=i[e+15];let y=n[0],b=n[1],x=n[2],S=n[3];y=Zi(y,b,x,S,o,7,zi[0]),S=Zi(S,y,b,x,s,12,zi[1]),x=Zi(x,S,y,b,r,17,zi[2]),b=Zi(b,x,S,y,a,22,zi[3]),y=Zi(y,b,x,S,l,7,zi[4]),S=Zi(S,y,b,x,c,12,zi[5]),x=Zi(x,S,y,b,d,17,zi[6]),b=Zi(b,x,S,y,h,22,zi[7]),y=Zi(y,b,x,S,u,7,zi[8]),S=Zi(S,y,b,x,p,12,zi[9]),x=Zi(x,S,y,b,v,17,zi[10]),b=Zi(b,x,S,y,f,22,zi[11]),y=Zi(y,b,x,S,m,7,zi[12]),S=Zi(S,y,b,x,g,12,zi[13]),x=Zi(x,S,y,b,w,17,zi[14]),b=Zi(b,x,S,y,C,22,zi[15]),y=Ki(y,b,x,S,s,5,zi[16]),S=Ki(S,y,b,x,d,9,zi[17]),x=Ki(x,S,y,b,f,14,zi[18]),b=Ki(b,x,S,y,o,20,zi[19]),y=Ki(y,b,x,S,c,5,zi[20]),S=Ki(S,y,b,x,v,9,zi[21]),x=Ki(x,S,y,b,C,14,zi[22]),b=Ki(b,x,S,y,l,20,zi[23]),y=Ki(y,b,x,S,p,5,zi[24]),S=Ki(S,y,b,x,w,9,zi[25]),x=Ki(x,S,y,b,a,14,zi[26]),b=Ki(b,x,S,y,u,20,zi[27]),y=Ki(y,b,x,S,g,5,zi[28]),S=Ki(S,y,b,x,r,9,zi[29]),x=Ki(x,S,y,b,h,14,zi[30]),b=Ki(b,x,S,y,m,20,zi[31]),y=qi(y,b,x,S,c,4,zi[32]),S=qi(S,y,b,x,u,11,zi[33]),x=qi(x,S,y,b,f,16,zi[34]),b=qi(b,x,S,y,w,23,zi[35]),y=qi(y,b,x,S,s,4,zi[36]),S=qi(S,y,b,x,l,11,zi[37]),x=qi(x,S,y,b,h,16,zi[38]),b=qi(b,x,S,y,v,23,zi[39]),y=qi(y,b,x,S,g,4,zi[40]),S=qi(S,y,b,x,o,11,zi[41]),x=qi(x,S,y,b,a,16,zi[42]),b=qi(b,x,S,y,d,23,zi[43]),y=qi(y,b,x,S,p,4,zi[44]),S=qi(S,y,b,x,m,11,zi[45]),x=qi(x,S,y,b,C,16,zi[46]),b=qi(b,x,S,y,r,23,zi[47]),y=Ji(y,b,x,S,o,6,zi[48]),S=Ji(S,y,b,x,h,10,zi[49]),x=Ji(x,S,y,b,w,15,zi[50]),b=Ji(b,x,S,y,c,21,zi[51]),y=Ji(y,b,x,S,m,6,zi[52]),S=Ji(S,y,b,x,a,10,zi[53]),x=Ji(x,S,y,b,v,15,zi[54]),b=Ji(b,x,S,y,s,21,zi[55]),y=Ji(y,b,x,S,u,6,zi[56]),S=Ji(S,y,b,x,C,10,zi[57]),x=Ji(x,S,y,b,d,15,zi[58]),b=Ji(b,x,S,y,g,21,zi[59]),y=Ji(y,b,x,S,l,6,zi[60]),S=Ji(S,y,b,x,f,10,zi[61]),x=Ji(x,S,y,b,r,15,zi[62]),b=Ji(b,x,S,y,p,21,zi[63]),n[0]=n[0]+y|0,n[1]=n[1]+b|0,n[2]=n[2]+x|0,n[3]=n[3]+S|0}_doFinalize(){const t=this._data,e=t.words,i=8*this._nDataBytes,n=8*t.sigBytes;e[n>>>5]|=128<<24-n%32;const o=Math.floor(i/4294967296),s=i;e[15+(n+64>>>9<<4)]=16711935&(o<<8|o>>>24)|4278255360&(o<<24|o>>>8),e[14+(n+64>>>9<<4)]=16711935&(s<<8|s>>>24)|4278255360&(s<<24|s>>>8),t.sigBytes=4*(e.length+1),this._process();const r=this._hash,a=r.words;for(let t=0;t<4;t+=1){const e=a[t];a[t]=16711935&(e<<8|e>>>24)|4278255360&(e<<24|e>>>8)}return r}clone(){const t=super.clone.call(this);return t._hash=this._hash.clone(),t}}const Yi=Vi._createHelper(Gi),Wi=Vi._createHmacHelper(Gi);class Xi extends Fi{constructor(t){super(),this.cfg=Object.assign(new Fi,{keySize:4,hasher:Gi,iterations:1},t)}compute(t,e){let i;const{cfg:n}=this,o=n.hasher.create(),s=Ti.create(),r=s.words,{keySize:a,iterations:l}=n;for(;r.length<a;){i&&o.update(i),i=o.update(t).finalize(e),o.reset();for(let t=1;t<l;t+=1)i=o.finalize(i),o.reset();s.concat(i)}return s.sigBytes=4*a,s}}class Qi extends Ri{constructor(t,e,i){super(),this.cfg=Object.assign(new Fi,i),this._xformMode=t,this._key=e,this.reset()}static createEncryptor(t,e){return this.create(this._ENC_XFORM_MODE,t,e)}static createDecryptor(t,e){return this.create(this._DEC_XFORM_MODE,t,e)}static _createHelper(t){const e=t=>"string"==typeof t?hn:cn;return{encrypt:(i,n,o)=>e(n).encrypt(t,i,n,o),decrypt:(i,n,o)=>e(n).decrypt(t,i,n,o)}}reset(){super.reset.call(this),this._doReset()}process(t){return this._append(t),this._process()}finalize(t){t&&this._append(t);return this._doFinalize()}}Qi._ENC_XFORM_MODE=1,Qi._DEC_XFORM_MODE=2,Qi.keySize=4,Qi.ivSize=4;class tn extends Qi{constructor(...t){super(...t),this.blockSize=1}_doFinalize(){return this._process(!0)}}class en extends Fi{constructor(t,e){super(),this._cipher=t,this._iv=e}static createEncryptor(t,e){return this.Encryptor.create(t,e)}static createDecryptor(t,e){return this.Decryptor.create(t,e)}}function nn(t,e,i){const n=t;let o;const s=this._iv;s?(o=s,this._iv=void 0):o=this._prevBlock;for(let t=0;t<i;t+=1)n[e+t]^=o[t]}class on extends en{}on.Encryptor=class extends on{processBlock(t,e){const i=this._cipher,{blockSize:n}=i;nn.call(this,t,e,n),i.encryptBlock(t,e),this._prevBlock=t.slice(e,e+n)}},on.Decryptor=class extends on{processBlock(t,e){const i=this._cipher,{blockSize:n}=i,o=t.slice(e,e+n);i.decryptBlock(t,e),nn.call(this,t,e,n),this._prevBlock=o}};const sn={pad(t,e){const i=4*e,n=i-t.sigBytes%i,o=n<<24|n<<16|n<<8|n,s=[];for(let t=0;t<n;t+=4)s.push(o);const r=Ti.create(s,n);t.concat(r)},unpad(t){const e=t,i=255&e.words[e.sigBytes-1>>>2];e.sigBytes-=i}};class rn extends Qi{constructor(t,e,i){super(t,e,Object.assign({mode:on,padding:sn},i)),this.blockSize=4}reset(){let t;super.reset.call(this);const{cfg:e}=this,{iv:i,mode:n}=e;this._xformMode===this.constructor._ENC_XFORM_MODE?t=n.createEncryptor:(t=n.createDecryptor,this._minBufferSize=1),this._mode=t.call(n,this,i&&i.words),this._mode.i=t}_doProcessBlock(t,e){this._mode.processBlock(t,e)}_doFinalize(){let t;const{padding:e}=this.cfg;return this._xformMode===this.constructor._ENC_XFORM_MODE?(e.pad(this._data,this.blockSize),t=this._process(!0)):(t=this._process(!0),e.unpad(t)),t}}class an extends Fi{constructor(t){super(),this.mixIn(t)}toString(t){return(t||this.formatter).stringify(this)}}const ln={stringify(t){let e;const{ciphertext:i,salt:n}=t;return e=n?Ti.create([1398893684,1701076831]).concat(n).concat(i):i,e.toString(Hi)},parse(t){let e;const i=Hi.parse(t),n=i.words;return 1398893684===n[0]&&1701076831===n[1]&&(e=Ti.create(n.slice(2,4)),n.splice(0,4),i.sigBytes-=16),an.create({ciphertext:i,salt:e})}};class cn extends Fi{static encrypt(t,e,i,n){const o=Object.assign(new Fi,this.cfg,n),s=t.createEncryptor(i,o),r=s.finalize(e),a=s.cfg;return an.create({ciphertext:r,key:i,iv:a.iv,algorithm:t,mode:a.mode,padding:a.padding,blockSize:s.blockSize,formatter:o.format})}static decrypt(t,e,i,n){let o=e;const s=Object.assign(new Fi,this.cfg,n);o=this._parse(o,s.format);return t.createDecryptor(i,s).finalize(o.ciphertext)}static _parse(t,e){return"string"==typeof t?e.parse(t,this):t}}cn.cfg=Object.assign(new Fi,{format:ln});const dn={execute(t,e,i,n){let o=n;o||(o=Ti.random(8));const s=Xi.create({keySize:e+i}).compute(t,o),r=Ti.create(s.words.slice(e),4*i);return s.sigBytes=4*e,an.create({key:s,iv:r,salt:o})}};class hn extends cn{static encrypt(t,e,i,n){const o=Object.assign(new Fi,this.cfg,n),s=o.kdf.execute(i,t.keySize,t.ivSize);o.iv=s.iv;const r=cn.encrypt.call(this,t,e,s.key,o);return r.mixIn(s),r}static decrypt(t,e,i,n){let o=e;const s=Object.assign(new Fi,this.cfg,n);o=this._parse(o,s.format);const r=s.kdf.execute(i,t.keySize,t.ivSize,o.salt);s.iv=r.iv;return cn.decrypt.call(this,t,o,r.key,s)}}hn.cfg=Object.assign(cn.cfg,{kdf:dn});const un=t=>t<<8&4278255360|t>>>8&16711935,pn={stringify(t){const{words:e,sigBytes:i}=t,n=[];for(let t=0;t<i;t+=2){const i=e[t>>>2]>>>16-t%4*8&65535;n.push(String.fromCharCode(i))}return n.join("")},parse(t){const e=t.length,i=[];for(let n=0;n<e;n+=1)i[n>>>1]|=t.charCodeAt(n)<<16-n%2*16;return Ti.create(i,2*e)}},vn=pn,fn={stringify(t){const{words:e,sigBytes:i}=t,n=[];for(let t=0;t<i;t+=2){const i=un(e[t>>>2]>>>16-t%4*8&65535);n.push(String.fromCharCode(i))}return n.join("")},parse(t){const e=t.length,i=[];for(let n=0;n<e;n+=1)i[n>>>1]|=un(t.charCodeAt(n)<<16-n%2*16);return Ti.create(i,2*e)}},mn=[];class gn extends Vi{_doReset(){this._hash=new Ti([1732584193,4023233417,2562383102,271733878,3285377520])}_doProcessBlock(t,e){const i=this._hash.words;let n=i[0],o=i[1],s=i[2],r=i[3],a=i[4];for(let i=0;i<80;i+=1){if(i<16)mn[i]=0|t[e+i];else{const t=mn[i-3]^mn[i-8]^mn[i-14]^mn[i-16];mn[i]=t<<1|t>>>31}let l=(n<<5|n>>>27)+a+mn[i];l+=i<20?1518500249+(o&s|~o&r):i<40?1859775393+(o^s^r):i<60?(o&s|o&r|s&r)-1894007588:(o^s^r)-899497514,a=r,r=s,s=o<<30|o>>>2,o=n,n=l}i[0]=i[0]+n|0,i[1]=i[1]+o|0,i[2]=i[2]+s|0,i[3]=i[3]+r|0,i[4]=i[4]+a|0}_doFinalize(){const t=this._data,e=t.words,i=8*this._nDataBytes,n=8*t.sigBytes;return e[n>>>5]|=128<<24-n%32,e[14+(n+64>>>9<<4)]=Math.floor(i/4294967296),e[15+(n+64>>>9<<4)]=i,t.sigBytes=4*e.length,this._process(),this._hash}clone(){const t=super.clone.call(this);return t._hash=this._hash.clone(),t}}const wn=Vi._createHelper(gn),Cn=Vi._createHmacHelper(gn),yn=[],bn=[],xn=t=>{const e=Math.sqrt(t);for(let i=2;i<=e;i+=1)if(!(t%i))return!1;return!0},Sn=t=>4294967296*(t-(0|t))|0;let En=2,kn=0;for(;kn<64;)xn(En)&&(kn<8&&(yn[kn]=Sn(En**.5)),bn[kn]=Sn(En**(1/3)),kn+=1),En+=1;const An=[];class In extends Vi{_doReset(){this._hash=new Ti(yn.slice(0))}_doProcessBlock(t,e){const i=this._hash.words;let n=i[0],o=i[1],s=i[2],r=i[3],a=i[4],l=i[5],c=i[6],d=i[7];for(let i=0;i<64;i+=1){if(i<16)An[i]=0|t[e+i];else{const t=An[i-15],e=(t<<25|t>>>7)^(t<<14|t>>>18)^t>>>3,n=An[i-2],o=(n<<15|n>>>17)^(n<<13|n>>>19)^n>>>10;An[i]=e+An[i-7]+o+An[i-16]}const h=n&o^n&s^o&s,u=(n<<30|n>>>2)^(n<<19|n>>>13)^(n<<10|n>>>22),p=d+((a<<26|a>>>6)^(a<<21|a>>>11)^(a<<7|a>>>25))+(a&l^~a&c)+bn[i]+An[i];d=c,c=l,l=a,a=r+p|0,r=s,s=o,o=n,n=p+(u+h)|0}i[0]=i[0]+n|0,i[1]=i[1]+o|0,i[2]=i[2]+s|0,i[3]=i[3]+r|0,i[4]=i[4]+a|0,i[5]=i[5]+l|0,i[6]=i[6]+c|0,i[7]=i[7]+d|0}_doFinalize(){const t=this._data,e=t.words,i=8*this._nDataBytes,n=8*t.sigBytes;return e[n>>>5]|=128<<24-n%32,e[14+(n+64>>>9<<4)]=Math.floor(i/4294967296),e[15+(n+64>>>9<<4)]=i,t.sigBytes=4*e.length,this._process(),this._hash}clone(){const t=super.clone.call(this);return t._hash=this._hash.clone(),t}}const $n=Vi._createHelper(In),Ln=Vi._createHmacHelper(In);class _n extends In{_doReset(){this._hash=new Ti([3238371032,914150663,812702999,4144912697,4290775857,1750603025,1694076839,3204075428])}_doFinalize(){const t=super._doFinalize.call(this);return t.sigBytes-=4,t}}const Mn=In._createHelper(_n),Fn=In._createHmacHelper(_n),Tn=[new Pi(1116352408,3609767458),new Pi(1899447441,602891725),new Pi(3049323471,3964484399),new Pi(3921009573,2173295548),new Pi(961987163,4081628472),new Pi(1508970993,3053834265),new Pi(2453635748,2937671579),new Pi(2870763221,3664609560),new Pi(3624381080,2734883394),new Pi(310598401,1164996542),new Pi(607225278,1323610764),new Pi(1426881987,3590304994),new Pi(1925078388,4068182383),new Pi(2162078206,991336113),new Pi(2614888103,633803317),new Pi(3248222580,3479774868),new Pi(3835390401,2666613458),new Pi(4022224774,944711139),new Pi(264347078,2341262773),new Pi(604807628,2007800933),new Pi(770255983,1495990901),new Pi(1249150122,1856431235),new Pi(1555081692,3175218132),new Pi(1996064986,2198950837),new Pi(2554220882,3999719339),new Pi(2821834349,766784016),new Pi(2952996808,2566594879),new Pi(3210313671,3203337956),new Pi(3336571891,1034457026),new Pi(3584528711,2466948901),new Pi(113926993,3758326383),new Pi(338241895,168717936),new Pi(666307205,1188179964),new Pi(773529912,1546045734),new Pi(1294757372,1522805485),new Pi(1396182291,2643833823),new Pi(1695183700,2343527390),new Pi(1986661051,1014477480),new Pi(2177026350,1206759142),new Pi(2456956037,344077627),new Pi(2730485921,1290863460),new Pi(2820302411,3158454273),new Pi(3259730800,3505952657),new Pi(3345764771,106217008),new Pi(3516065817,3606008344),new Pi(3600352804,1432725776),new Pi(4094571909,1467031594),new Pi(275423344,851169720),new Pi(430227734,3100823752),new Pi(506948616,1363258195),new Pi(659060556,3750685593),new Pi(883997877,3785050280),new Pi(958139571,3318307427),new Pi(1322822218,3812723403),new Pi(1537002063,2003034995),new Pi(1747873779,3602036899),new Pi(1955562222,1575990012),new Pi(2024104815,1125592928),new Pi(2227730452,2716904306),new Pi(2361852424,442776044),new Pi(2428436474,593698344),new Pi(2756734187,3733110249),new Pi(3204031479,2999351573),new Pi(3329325298,3815920427),new Pi(3391569614,3928383900),new Pi(3515267271,566280711),new Pi(3940187606,3454069534),new Pi(4118630271,4000239992),new Pi(116418474,1914138554),new Pi(174292421,2731055270),new Pi(289380356,3203993006),new Pi(460393269,320620315),new Pi(685471733,587496836),new Pi(852142971,1086792851),new Pi(1017036298,365543100),new Pi(1126000580,2618297676),new Pi(1288033470,3409855158),new Pi(1501505948,4234509866),new Pi(1607167915,987167468),new Pi(1816402316,1246189591)],Dn=[];for(let t=0;t<80;t+=1)Dn[t]=new Pi;class On extends Vi{constructor(){super(),this.blockSize=32}_doReset(){this._hash=new Bi([new Pi(1779033703,4089235720),new Pi(3144134277,2227873595),new Pi(1013904242,4271175723),new Pi(2773480762,1595750129),new Pi(1359893119,2917565137),new Pi(2600822924,725511199),new Pi(528734635,4215389547),new Pi(1541459225,327033209)])}_doProcessBlock(t,e){const i=this._hash.words,n=i[0],o=i[1],s=i[2],r=i[3],a=i[4],l=i[5],c=i[6],d=i[7],h=n.high;let u=n.low;const p=o.high;let v=o.low;const f=s.high;let m=s.low;const g=r.high;let w=r.low;const C=a.high;let y=a.low;const b=l.high;let x=l.low;const S=c.high;let E=c.low;const k=d.high;let A=d.low,I=h,$=u,L=p,_=v,M=f,F=m,T=g,D=w,O=C,N=y,R=b,V=x,j=S,U=E,P=k,B=A;for(let i=0;i<80;i+=1){let n,o;const s=Dn[i];if(i<16)s.high=0|t[e+2*i],o=s.high,s.low=0|t[e+2*i+1],n=s.low;else{const t=Dn[i-15],e=t.high,r=t.low,a=(e>>>1|r<<31)^(e>>>8|r<<24)^e>>>7,l=(r>>>1|e<<31)^(r>>>8|e<<24)^(r>>>7|e<<25),c=Dn[i-2],d=c.high,h=c.low,u=(d>>>19|h<<13)^(d<<3|h>>>29)^d>>>6,p=(h>>>19|d<<13)^(h<<3|d>>>29)^(h>>>6|d<<26),v=Dn[i-7],f=v.high,m=v.low,g=Dn[i-16],w=g.high,C=g.low;n=l+m,o=a+f+(n>>>0<l>>>0?1:0),n+=p,o=o+u+(n>>>0<p>>>0?1:0),n+=C,o=o+w+(n>>>0<C>>>0?1:0),s.high=o,s.low=n}const r=O&R^~O&j,a=N&V^~N&U,l=I&L^I&M^L&M,c=$&_^$&F^_&F,d=(I>>>28|$<<4)^(I<<30|$>>>2)^(I<<25|$>>>7),h=($>>>28|I<<4)^($<<30|I>>>2)^($<<25|I>>>7),u=(O>>>14|N<<18)^(O>>>18|N<<14)^(O<<23|N>>>9),p=(N>>>14|O<<18)^(N>>>18|O<<14)^(N<<23|O>>>9),v=Tn[i],f=v.high,m=v.low;let g=B+p,w=P+u+(g>>>0<B>>>0?1:0);g+=a,w=w+r+(g>>>0<a>>>0?1:0),g+=m,w=w+f+(g>>>0<m>>>0?1:0),g+=n,w=w+o+(g>>>0<n>>>0?1:0);const C=h+c;P=j,B=U,j=R,U=V,R=O,V=N,N=D+g|0,O=T+w+(N>>>0<D>>>0?1:0)|0,T=M,D=F,M=L,F=_,L=I,_=$,$=g+C|0,I=w+(d+l+(C>>>0<h>>>0?1:0))+($>>>0<g>>>0?1:0)|0}n.low=u+$,u=n.low,n.high=h+I+(u>>>0<$>>>0?1:0),o.low=v+_,v=o.low,o.high=p+L+(v>>>0<_>>>0?1:0),s.low=m+F,m=s.low,s.high=f+M+(m>>>0<F>>>0?1:0),r.low=w+D,w=r.low,r.high=g+T+(w>>>0<D>>>0?1:0),a.low=y+N,y=a.low,a.high=C+O+(y>>>0<N>>>0?1:0),l.low=x+V,x=l.low,l.high=b+R+(x>>>0<V>>>0?1:0),c.low=E+U,E=c.low,c.high=S+j+(E>>>0<U>>>0?1:0),d.low=A+B,A=d.low,d.high=k+P+(A>>>0<B>>>0?1:0)}_doFinalize(){const t=this._data,e=t.words,i=8*this._nDataBytes,n=8*t.sigBytes;e[n>>>5]|=128<<24-n%32,e[30+(n+128>>>10<<5)]=Math.floor(i/4294967296),e[31+(n+128>>>10<<5)]=i,t.sigBytes=4*e.length,this._process();return this._hash.toX32()}clone(){const t=super.clone.call(this);return t._hash=this._hash.clone(),t}}const Nn=Vi._createHelper(On),Rn=Vi._createHmacHelper(On);class Vn extends On{_doReset(){this._hash=new Bi([new Pi(3418070365,3238371032),new Pi(1654270250,914150663),new Pi(2438529370,812702999),new Pi(355462360,4144912697),new Pi(1731405415,4290775857),new Pi(2394180231,1750603025),new Pi(3675008525,1694076839),new Pi(1203062813,3204075428)])}_doFinalize(){const t=super._doFinalize.call(this);return t.sigBytes-=16,t}}const jn=On._createHelper(Vn),Un=On._createHmacHelper(Vn),Pn=[],Bn=[],Hn=[];let zn=1,Zn=0;for(let t=0;t<24;t+=1){Pn[zn+5*Zn]=(t+1)*(t+2)/2%64;const e=(2*zn+3*Zn)%5;zn=Zn%5,Zn=e}for(let t=0;t<5;t+=1)for(let e=0;e<5;e+=1)Bn[t+5*e]=e+(2*t+3*e)%5*5;let Kn=1;for(let t=0;t<24;t+=1){let e=0,i=0;for(let t=0;t<7;t+=1){if(1&Kn){const n=(1<<t)-1;n<32?i^=1<<n:e^=1<<n-32}128&Kn?Kn=Kn<<1^113:Kn<<=1}Hn[t]=Pi.create(e,i)}const qn=[];for(let t=0;t<25;t+=1)qn[t]=Pi.create();class Jn extends Vi{constructor(t){super(Object.assign({outputLength:512},t))}_doReset(){this._state=[];const t=this._state;for(let e=0;e<25;e+=1)t[e]=new Pi;this.blockSize=(1600-2*this.cfg.outputLength)/32}_doProcessBlock(t,e){const i=this._state,n=this.blockSize/2;for(let o=0;o<n;o+=1){let n=t[e+2*o],s=t[e+2*o+1];n=16711935&(n<<8|n>>>24)|4278255360&(n<<24|n>>>8),s=16711935&(s<<8|s>>>24)|4278255360&(s<<24|s>>>8);const r=i[o];r.high^=s,r.low^=n}for(let t=0;t<24;t+=1){for(let t=0;t<5;t+=1){let e=0,n=0;for(let o=0;o<5;o+=1){const s=i[t+5*o];e^=s.high,n^=s.low}const o=qn[t];o.high=e,o.low=n}for(let t=0;t<5;t+=1){const e=qn[(t+4)%5],n=qn[(t+1)%5],o=n.high,s=n.low,r=e.high^(o<<1|s>>>31),a=e.low^(s<<1|o>>>31);for(let e=0;e<5;e+=1){const n=i[t+5*e];n.high^=r,n.low^=a}}for(let t=1;t<25;t+=1){let e,n;const o=i[t],s=o.high,r=o.low,a=Pn[t];a<32?(e=s<<a|r>>>32-a,n=r<<a|s>>>32-a):(e=r<<a-32|s>>>64-a,n=s<<a-32|r>>>64-a);const l=qn[Bn[t]];l.high=e,l.low=n}const e=qn[0],n=i[0];e.high=n.high,e.low=n.low;for(let t=0;t<5;t+=1)for(let e=0;e<5;e+=1){const n=t+5*e,o=i[n],s=qn[n],r=qn[(t+1)%5+5*e],a=qn[(t+2)%5+5*e];o.high=s.high^~r.high&a.high,o.low=s.low^~r.low&a.low}const o=i[0],s=Hn[t];o.high^=s.high,o.low^=s.low}}_doFinalize(){const t=this._data,e=t.words,i=8*t.sigBytes,n=32*this.blockSize;e[i>>>5]|=1<<24-i%32,e[(Math.ceil((i+1)/n)*n>>>5)-1]|=128,t.sigBytes=4*e.length,this._process();const o=this._state,s=this.cfg.outputLength/8,r=s/8,a=[];for(let t=0;t<r;t+=1){const e=o[t];let i=e.high,n=e.low;i=16711935&(i<<8|i>>>24)|4278255360&(i<<24|i>>>8),n=16711935&(n<<8|n>>>24)|4278255360&(n<<24|n>>>8),a.push(n),a.push(i)}return new Ti(a,s)}clone(){const t=super.clone.call(this);t._state=this._state.slice(0);const e=t._state;for(let t=0;t<25;t+=1)e[t]=e[t].clone();return t}}const Gn=Vi._createHelper(Jn),Yn=Vi._createHmacHelper(Jn),Wn=Ti.create([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,7,4,13,1,10,6,15,3,12,0,9,5,2,14,11,8,3,10,14,4,9,15,8,1,2,7,0,6,13,11,5,12,1,9,11,10,0,8,12,4,13,3,7,15,14,5,6,2,4,0,5,9,7,12,2,10,14,1,3,8,11,6,15,13]),Xn=Ti.create([5,14,7,0,9,2,11,4,13,6,15,8,1,10,3,12,6,11,3,7,0,13,5,10,14,15,8,12,4,9,1,2,15,5,1,3,7,14,6,9,11,8,12,2,10,0,4,13,8,6,4,1,3,11,15,0,5,12,2,13,9,7,10,14,12,15,10,4,1,5,8,7,6,2,13,14,0,3,9,11]),Qn=Ti.create([11,14,15,12,5,8,7,9,11,13,14,15,6,7,9,8,7,6,8,13,11,9,7,15,7,12,15,9,11,7,13,12,11,13,6,7,14,9,13,15,14,8,13,6,5,12,7,5,11,12,14,15,14,15,9,8,9,14,5,6,8,6,5,12,9,15,5,11,6,8,13,12,5,12,13,14,11,8,5,6]),to=Ti.create([8,9,9,11,13,15,15,5,7,7,8,11,14,14,12,6,9,13,15,7,12,8,9,11,7,7,12,7,6,15,13,11,9,7,15,11,8,6,6,14,12,13,5,14,13,13,7,5,15,5,8,11,14,14,6,14,6,9,12,9,12,5,15,8,8,5,12,9,12,5,14,6,8,13,6,5,15,13,11,11]),eo=Ti.create([0,1518500249,1859775393,2400959708,2840853838]),io=Ti.create([1352829926,1548603684,1836072691,2053994217,0]),no=(t,e,i)=>t^e^i,oo=(t,e,i)=>t&e|~t&i,so=(t,e,i)=>(t|~e)^i,ro=(t,e,i)=>t&i|e&~i,ao=(t,e,i)=>t^(e|~i),lo=(t,e)=>t<<e|t>>>32-e;class co extends Vi{_doReset(){this._hash=Ti.create([1732584193,4023233417,2562383102,271733878,3285377520])}_doProcessBlock(t,e){const i=t;for(let t=0;t<16;t+=1){const n=e+t,o=i[n];i[n]=16711935&(o<<8|o>>>24)|4278255360&(o<<24|o>>>8)}const n=this._hash.words,o=eo.words,s=io.words,r=Wn.words,a=Xn.words,l=Qn.words,c=to.words;let d,h=n[0],u=n[1],p=n[2],v=n[3],f=n[4],m=n[0],g=n[1],w=n[2],C=n[3],y=n[4];for(let t=0;t<80;t+=1)d=h+i[e+r[t]]|0,d+=t<16?no(u,p,v)+o[0]:t<32?oo(u,p,v)+o[1]:t<48?so(u,p,v)+o[2]:t<64?ro(u,p,v)+o[3]:ao(u,p,v)+o[4],d|=0,d=lo(d,l[t]),d=d+f|0,h=f,f=v,v=lo(p,10),p=u,u=d,d=m+i[e+a[t]]|0,d+=t<16?ao(g,w,C)+s[0]:t<32?ro(g,w,C)+s[1]:t<48?so(g,w,C)+s[2]:t<64?oo(g,w,C)+s[3]:no(g,w,C)+s[4],d|=0,d=lo(d,c[t]),d=d+y|0,m=y,y=C,C=lo(w,10),w=g,g=d;d=n[1]+p+C|0,n[1]=n[2]+v+y|0,n[2]=n[3]+f+m|0,n[3]=n[4]+h+g|0,n[4]=n[0]+u+w|0,n[0]=d}_doFinalize(){const t=this._data,e=t.words,i=8*this._nDataBytes,n=8*t.sigBytes;e[n>>>5]|=128<<24-n%32,e[14+(n+64>>>9<<4)]=16711935&(i<<8|i>>>24)|4278255360&(i<<24|i>>>8),t.sigBytes=4*(e.length+1),this._process();const o=this._hash,s=o.words;for(let t=0;t<5;t+=1){const e=s[t];s[t]=16711935&(e<<8|e>>>24)|4278255360&(e<<24|e>>>8)}return o}clone(){const t=super.clone.call(this);return t._hash=this._hash.clone(),t}}const ho=Vi._createHelper(co),uo=Vi._createHmacHelper(co);class po extends Fi{constructor(t){super(),this.cfg=Object.assign(new Fi,{keySize:4,hasher:gn,iterations:1},t)}compute(t,e){const{cfg:i}=this,n=ji.create(i.hasher,t),o=Ti.create(),s=Ti.create([1]),r=o.words,a=s.words,{keySize:l,iterations:c}=i;for(;r.length<l;){const t=n.update(e).finalize(s);n.reset();const i=t.words,r=i.length;let l=t;for(let t=1;t<c;t+=1){l=n.finalize(l),n.reset();const t=l.words;for(let e=0;e<r;e+=1)i[e]^=t[e]}o.concat(t),a[0]+=1}return o.sigBytes=4*l,o}}const vo=[],fo=[],mo=[],go=[],wo=[],Co=[],yo=[],bo=[],xo=[],So=[],Eo=[];for(let t=0;t<256;t+=1)Eo[t]=t<128?t<<1:t<<1^283;let ko=0,Ao=0;for(let t=0;t<256;t+=1){let t=Ao^Ao<<1^Ao<<2^Ao<<3^Ao<<4;t=t>>>8^255&t^99,vo[ko]=t,fo[t]=ko;const e=Eo[ko],i=Eo[e],n=Eo[i];let o=257*Eo[t]^16843008*t;mo[ko]=o<<24|o>>>8,go[ko]=o<<16|o>>>16,wo[ko]=o<<8|o>>>24,Co[ko]=o,o=16843009*n^65537*i^257*e^16843008*ko,yo[t]=o<<24|o>>>8,bo[t]=o<<16|o>>>16,xo[t]=o<<8|o>>>24,So[t]=o,ko?(ko=e^Eo[Eo[Eo[n^e]]],Ao^=Eo[Eo[Ao]]):(Ao=1,ko=Ao)}const Io=[0,1,2,4,8,16,32,64,128,27,54];class $o extends rn{_doReset(){let t;if(this._nRounds&&this._keyPriorReset===this._key)return;this._keyPriorReset=this._key;const e=this._keyPriorReset,i=e.words,n=e.sigBytes/4;this._nRounds=n+6;const o=4*(this._nRounds+1);this._keySchedule=[];const s=this._keySchedule;for(let e=0;e<o;e+=1)e<n?s[e]=i[e]:(t=s[e-1],e%n?n>6&&e%n==4&&(t=vo[t>>>24]<<24|vo[t>>>16&255]<<16|vo[t>>>8&255]<<8|vo[255&t]):(t=t<<8|t>>>24,t=vo[t>>>24]<<24|vo[t>>>16&255]<<16|vo[t>>>8&255]<<8|vo[255&t],t^=Io[e/n|0]<<24),s[e]=s[e-n]^t);this._invKeySchedule=[];const r=this._invKeySchedule;for(let e=0;e<o;e+=1){const i=o-e;t=e%4?s[i]:s[i-4],r[e]=e<4||i<=4?t:yo[vo[t>>>24]]^bo[vo[t>>>16&255]]^xo[vo[t>>>8&255]]^So[vo[255&t]]}}encryptBlock(t,e){this._doCryptBlock(t,e,this._keySchedule,mo,go,wo,Co,vo)}decryptBlock(t,e){const i=t;let n=i[e+1];i[e+1]=i[e+3],i[e+3]=n,this._doCryptBlock(i,e,this._invKeySchedule,yo,bo,xo,So,fo),n=i[e+1],i[e+1]=i[e+3],i[e+3]=n}_doCryptBlock(t,e,i,n,o,s,r,a){const l=t,c=this._nRounds;let d=l[e]^i[0],h=l[e+1]^i[1],u=l[e+2]^i[2],p=l[e+3]^i[3],v=4;for(let t=1;t<c;t+=1){const t=n[d>>>24]^o[h>>>16&255]^s[u>>>8&255]^r[255&p]^i[v];v+=1;const e=n[h>>>24]^o[u>>>16&255]^s[p>>>8&255]^r[255&d]^i[v];v+=1;const a=n[u>>>24]^o[p>>>16&255]^s[d>>>8&255]^r[255&h]^i[v];v+=1;const l=n[p>>>24]^o[d>>>16&255]^s[h>>>8&255]^r[255&u]^i[v];v+=1,d=t,h=e,u=a,p=l}const f=(a[d>>>24]<<24|a[h>>>16&255]<<16|a[u>>>8&255]<<8|a[255&p])^i[v];v+=1;const m=(a[h>>>24]<<24|a[u>>>16&255]<<16|a[p>>>8&255]<<8|a[255&d])^i[v];v+=1;const g=(a[u>>>24]<<24|a[p>>>16&255]<<16|a[d>>>8&255]<<8|a[255&h])^i[v];v+=1;const w=(a[p>>>24]<<24|a[d>>>16&255]<<16|a[h>>>8&255]<<8|a[255&u])^i[v];v+=1,l[e]=f,l[e+1]=m,l[e+2]=g,l[e+3]=w}}$o.keySize=8;const Lo=rn._createHelper($o),_o=[57,49,41,33,25,17,9,1,58,50,42,34,26,18,10,2,59,51,43,35,27,19,11,3,60,52,44,36,63,55,47,39,31,23,15,7,62,54,46,38,30,22,14,6,61,53,45,37,29,21,13,5,28,20,12,4],Mo=[14,17,11,24,1,5,3,28,15,6,21,10,23,19,12,4,26,8,16,7,27,20,13,2,41,52,31,37,47,55,30,40,51,45,33,48,44,49,39,56,34,53,46,42,50,36,29,32],Fo=[1,2,4,6,8,10,12,14,15,17,19,21,23,25,27,28],To=[{0:8421888,268435456:32768,536870912:8421378,805306368:2,1073741824:512,1342177280:8421890,1610612736:8389122,1879048192:8388608,2147483648:514,2415919104:8389120,2684354560:33280,2952790016:8421376,3221225472:32770,3489660928:8388610,3758096384:0,4026531840:33282,134217728:0,402653184:8421890,671088640:33282,939524096:32768,1207959552:8421888,1476395008:512,1744830464:8421378,2013265920:2,2281701376:8389120,2550136832:33280,2818572288:8421376,3087007744:8389122,3355443200:8388610,3623878656:32770,3892314112:514,4160749568:8388608,1:32768,268435457:2,536870913:8421888,805306369:8388608,1073741825:8421378,1342177281:33280,1610612737:512,1879048193:8389122,2147483649:8421890,2415919105:8421376,2684354561:8388610,2952790017:33282,3221225473:514,3489660929:8389120,3758096385:32770,4026531841:0,134217729:8421890,402653185:8421376,671088641:8388608,939524097:512,1207959553:32768,1476395009:8388610,1744830465:2,2013265921:33282,2281701377:32770,2550136833:8389122,2818572289:514,3087007745:8421888,3355443201:8389120,3623878657:0,3892314113:33280,4160749569:8421378},{0:1074282512,16777216:16384,33554432:524288,50331648:1074266128,67108864:1073741840,83886080:1074282496,100663296:1073758208,117440512:16,134217728:540672,150994944:1073758224,167772160:1073741824,184549376:540688,201326592:524304,218103808:0,234881024:16400,251658240:1074266112,8388608:1073758208,25165824:540688,41943040:16,58720256:1073758224,75497472:1074282512,92274688:1073741824,109051904:524288,125829120:1074266128,142606336:524304,159383552:0,176160768:16384,192937984:1074266112,209715200:1073741840,226492416:540672,243269632:1074282496,260046848:16400,268435456:0,285212672:1074266128,301989888:1073758224,318767104:1074282496,335544320:1074266112,352321536:16,369098752:540688,385875968:16384,402653184:16400,419430400:524288,436207616:524304,452984832:1073741840,469762048:540672,486539264:1073758208,503316480:1073741824,520093696:1074282512,276824064:540688,293601280:524288,310378496:1074266112,327155712:16384,343932928:1073758208,360710144:1074282512,377487360:16,394264576:1073741824,411041792:1074282496,427819008:1073741840,444596224:1073758224,461373440:524304,478150656:0,494927872:16400,511705088:1074266128,528482304:540672},{0:260,1048576:0,2097152:67109120,3145728:65796,4194304:65540,5242880:67108868,6291456:67174660,7340032:67174400,8388608:67108864,9437184:67174656,10485760:65792,11534336:67174404,12582912:67109124,13631488:65536,14680064:4,15728640:256,524288:67174656,1572864:67174404,2621440:0,3670016:67109120,4718592:67108868,5767168:65536,6815744:65540,7864320:260,8912896:4,9961472:256,11010048:67174400,12058624:65796,13107200:65792,14155776:67109124,15204352:67174660,16252928:67108864,16777216:67174656,17825792:65540,18874368:65536,19922944:67109120,20971520:256,22020096:67174660,23068672:67108868,24117248:0,25165824:67109124,26214400:67108864,27262976:4,28311552:65792,29360128:67174400,30408704:260,31457280:65796,32505856:67174404,17301504:67108864,18350080:260,19398656:67174656,20447232:0,21495808:65540,22544384:67109120,23592960:256,24641536:67174404,25690112:65536,26738688:67174660,27787264:65796,28835840:67108868,29884416:67109124,30932992:67174400,31981568:4,33030144:65792},{0:2151682048,65536:2147487808,131072:4198464,196608:2151677952,262144:0,327680:4198400,393216:2147483712,458752:4194368,524288:2147483648,589824:4194304,655360:64,720896:2147487744,786432:2151678016,851968:4160,917504:4096,983040:2151682112,32768:2147487808,98304:64,163840:2151678016,229376:2147487744,294912:4198400,360448:2151682112,425984:0,491520:2151677952,557056:4096,622592:2151682048,688128:4194304,753664:4160,819200:2147483648,884736:4194368,950272:4198464,1015808:2147483712,1048576:4194368,1114112:4198400,1179648:2147483712,1245184:0,1310720:4160,1376256:2151678016,1441792:2151682048,1507328:2147487808,1572864:2151682112,1638400:2147483648,1703936:2151677952,1769472:4198464,1835008:2147487744,1900544:4194304,1966080:64,2031616:4096,1081344:2151677952,1146880:2151682112,1212416:0,1277952:4198400,1343488:4194368,1409024:2147483648,1474560:2147487808,1540096:64,1605632:2147483712,1671168:4096,1736704:2147487744,1802240:2151678016,1867776:4160,1933312:2151682048,1998848:4194304,2064384:4198464},{0:128,4096:17039360,8192:262144,12288:536870912,16384:537133184,20480:16777344,24576:553648256,28672:262272,32768:16777216,36864:537133056,40960:536871040,45056:553910400,49152:553910272,53248:0,57344:17039488,61440:553648128,2048:17039488,6144:553648256,10240:128,14336:17039360,18432:262144,22528:537133184,26624:553910272,30720:536870912,34816:537133056,38912:0,43008:553910400,47104:16777344,51200:536871040,55296:553648128,59392:16777216,63488:262272,65536:262144,69632:128,73728:536870912,77824:553648256,81920:16777344,86016:553910272,90112:537133184,94208:16777216,98304:553910400,102400:553648128,106496:17039360,110592:537133056,114688:262272,118784:536871040,122880:0,126976:17039488,67584:553648256,71680:16777216,75776:17039360,79872:537133184,83968:536870912,88064:17039488,92160:128,96256:553910272,100352:262272,104448:553910400,108544:0,112640:553648128,116736:16777344,120832:262144,124928:537133056,129024:536871040},{0:268435464,256:8192,512:270532608,768:270540808,1024:268443648,1280:2097152,1536:2097160,1792:268435456,2048:0,2304:268443656,2560:2105344,2816:8,3072:270532616,3328:2105352,3584:8200,3840:270540800,128:270532608,384:270540808,640:8,896:2097152,1152:2105352,1408:268435464,1664:268443648,1920:8200,2176:2097160,2432:8192,2688:268443656,2944:270532616,3200:0,3456:270540800,3712:2105344,3968:268435456,4096:268443648,4352:270532616,4608:270540808,4864:8200,5120:2097152,5376:268435456,5632:268435464,5888:2105344,6144:2105352,6400:0,6656:8,6912:270532608,7168:8192,7424:268443656,7680:270540800,7936:2097160,4224:8,4480:2105344,4736:2097152,4992:268435464,5248:268443648,5504:8200,5760:270540808,6016:270532608,6272:270540800,6528:270532616,6784:8192,7040:2105352,7296:2097160,7552:0,7808:268435456,8064:268443656},{0:1048576,16:33555457,32:1024,48:1049601,64:34604033,80:0,96:1,112:34603009,128:33555456,144:1048577,160:33554433,176:34604032,192:34603008,208:1025,224:1049600,240:33554432,8:34603009,24:0,40:33555457,56:34604032,72:1048576,88:33554433,104:33554432,120:1025,136:1049601,152:33555456,168:34603008,184:1048577,200:1024,216:34604033,232:1,248:1049600,256:33554432,272:1048576,288:33555457,304:34603009,320:1048577,336:33555456,352:34604032,368:1049601,384:1025,400:34604033,416:1049600,432:1,448:0,464:34603008,480:33554433,496:1024,264:1049600,280:33555457,296:34603009,312:1,328:33554432,344:1048576,360:1025,376:34604032,392:33554433,408:34603008,424:0,440:34604033,456:1049601,472:1024,488:33555456,504:1048577},{0:134219808,1:131072,2:134217728,3:32,4:131104,5:134350880,6:134350848,7:2048,8:134348800,9:134219776,10:133120,11:134348832,12:2080,13:0,14:134217760,15:133152,2147483648:2048,2147483649:134350880,2147483650:134219808,2147483651:134217728,2147483652:134348800,2147483653:133120,2147483654:133152,2147483655:32,2147483656:134217760,2147483657:2080,2147483658:131104,2147483659:134350848,2147483660:0,2147483661:134348832,2147483662:134219776,2147483663:131072,16:133152,17:134350848,18:32,19:2048,20:134219776,21:134217760,22:134348832,23:131072,24:0,25:131104,26:134348800,27:134219808,28:134350880,29:133120,30:2080,31:134217728,2147483664:131072,2147483665:2048,2147483666:134348832,2147483667:133152,2147483668:32,2147483669:134348800,2147483670:134217728,2147483671:134219808,2147483672:134350880,2147483673:134217760,2147483674:134219776,2147483675:0,2147483676:133120,2147483677:2080,2147483678:131104,2147483679:134350848}],Do=[4160749569,528482304,33030144,2064384,129024,8064,504,2147483679];function Oo(t,e){const i=(this._lBlock>>>t^this._rBlock)&e;this._rBlock^=i,this._lBlock^=i<<t}function No(t,e){const i=(this._rBlock>>>t^this._lBlock)&e;this._lBlock^=i,this._rBlock^=i<<t}class Ro extends rn{_doReset(){const t=this._key.words,e=[];for(let i=0;i<56;i+=1){const n=_o[i]-1;e[i]=t[n>>>5]>>>31-n%32&1}this._subKeys=[];const i=this._subKeys;for(let t=0;t<16;t+=1){i[t]=[];const n=i[t],o=Fo[t];for(let t=0;t<24;t+=1)n[t/6|0]|=e[(Mo[t]-1+o)%28]<<31-t%6,n[4+(t/6|0)]|=e[28+(Mo[t+24]-1+o)%28]<<31-t%6;n[0]=n[0]<<1|n[0]>>>31;for(let t=1;t<7;t+=1)n[t]>>>=4*(t-1)+3;n[7]=n[7]<<5|n[7]>>>27}this._invSubKeys=[];const n=this._invSubKeys;for(let t=0;t<16;t+=1)n[t]=i[15-t]}encryptBlock(t,e){this._doCryptBlock(t,e,this._subKeys)}decryptBlock(t,e){this._doCryptBlock(t,e,this._invSubKeys)}_doCryptBlock(t,e,i){const n=t;this._lBlock=t[e],this._rBlock=t[e+1],Oo.call(this,4,252645135),Oo.call(this,16,65535),No.call(this,2,858993459),No.call(this,8,16711935),Oo.call(this,1,1431655765);for(let t=0;t<16;t+=1){const e=i[t],n=this._lBlock,o=this._rBlock;let s=0;for(let t=0;t<8;t+=1)s|=To[t][((o^e[t])&Do[t])>>>0];this._lBlock=o,this._rBlock=n^s}const o=this._lBlock;this._lBlock=this._rBlock,this._rBlock=o,Oo.call(this,1,1431655765),No.call(this,8,16711935),No.call(this,2,858993459),Oo.call(this,16,65535),Oo.call(this,4,252645135),n[e]=this._lBlock,n[e+1]=this._rBlock}}Ro.keySize=2,Ro.ivSize=2,Ro.blockSize=2;const Vo=rn._createHelper(Ro);class jo extends rn{_doReset(){const t=this._key.words;if(2!==t.length&&4!==t.length&&t.length<6)throw new Error("Invalid key length - 3DES requires the key length to be 64, 128, 192 or >192.");const e=t.slice(0,2),i=t.length<4?t.slice(0,2):t.slice(2,4),n=t.length<6?t.slice(0,2):t.slice(4,6);this._des1=Ro.createEncryptor(Ti.create(e)),this._des2=Ro.createEncryptor(Ti.create(i)),this._des3=Ro.createEncryptor(Ti.create(n))}encryptBlock(t,e){this._des1.encryptBlock(t,e),this._des2.decryptBlock(t,e),this._des3.encryptBlock(t,e)}decryptBlock(t,e){this._des3.decryptBlock(t,e),this._des2.encryptBlock(t,e),this._des1.decryptBlock(t,e)}}jo.keySize=6,jo.ivSize=2,jo.blockSize=2;const Uo=rn._createHelper(jo),Po=[],Bo=[],Ho=[];function zo(){const t=this._X,e=this._C;for(let t=0;t<8;t+=1)Bo[t]=e[t];e[0]=e[0]+1295307597+this._b|0,e[1]=e[1]+3545052371+(e[0]>>>0<Bo[0]>>>0?1:0)|0,e[2]=e[2]+886263092+(e[1]>>>0<Bo[1]>>>0?1:0)|0,e[3]=e[3]+1295307597+(e[2]>>>0<Bo[2]>>>0?1:0)|0,e[4]=e[4]+3545052371+(e[3]>>>0<Bo[3]>>>0?1:0)|0,e[5]=e[5]+886263092+(e[4]>>>0<Bo[4]>>>0?1:0)|0,e[6]=e[6]+1295307597+(e[5]>>>0<Bo[5]>>>0?1:0)|0,e[7]=e[7]+3545052371+(e[6]>>>0<Bo[6]>>>0?1:0)|0,this._b=e[7]>>>0<Bo[7]>>>0?1:0;for(let i=0;i<8;i+=1){const n=t[i]+e[i],o=65535&n,s=n>>>16,r=((o*o>>>17)+o*s>>>15)+s*s,a=((4294901760&n)*n|0)+((65535&n)*n|0);Ho[i]=r^a}t[0]=Ho[0]+(Ho[7]<<16|Ho[7]>>>16)+(Ho[6]<<16|Ho[6]>>>16)|0,t[1]=Ho[1]+(Ho[0]<<8|Ho[0]>>>24)+Ho[7]|0,t[2]=Ho[2]+(Ho[1]<<16|Ho[1]>>>16)+(Ho[0]<<16|Ho[0]>>>16)|0,t[3]=Ho[3]+(Ho[2]<<8|Ho[2]>>>24)+Ho[1]|0,t[4]=Ho[4]+(Ho[3]<<16|Ho[3]>>>16)+(Ho[2]<<16|Ho[2]>>>16)|0,t[5]=Ho[5]+(Ho[4]<<8|Ho[4]>>>24)+Ho[3]|0,t[6]=Ho[6]+(Ho[5]<<16|Ho[5]>>>16)+(Ho[4]<<16|Ho[4]>>>16)|0,t[7]=Ho[7]+(Ho[6]<<8|Ho[6]>>>24)+Ho[5]|0}class Zo extends tn{constructor(...t){super(...t),this.blockSize=4,this.ivSize=2}_doReset(){const t=this._key.words,{iv:e}=this.cfg;for(let e=0;e<4;e+=1)t[e]=16711935&(t[e]<<8|t[e]>>>24)|4278255360&(t[e]<<24|t[e]>>>8);this._X=[t[0],t[3]<<16|t[2]>>>16,t[1],t[0]<<16|t[3]>>>16,t[2],t[1]<<16|t[0]>>>16,t[3],t[2]<<16|t[1]>>>16];const i=this._X;this._C=[t[2]<<16|t[2]>>>16,4294901760&t[0]|65535&t[1],t[3]<<16|t[3]>>>16,4294901760&t[1]|65535&t[2],t[0]<<16|t[0]>>>16,4294901760&t[2]|65535&t[3],t[1]<<16|t[1]>>>16,4294901760&t[3]|65535&t[0]];const n=this._C;this._b=0;for(let t=0;t<4;t+=1)zo.call(this);for(let t=0;t<8;t+=1)n[t]^=i[t+4&7];if(e){const t=e.words,i=t[0],o=t[1],s=16711935&(i<<8|i>>>24)|4278255360&(i<<24|i>>>8),r=16711935&(o<<8|o>>>24)|4278255360&(o<<24|o>>>8),a=s>>>16|4294901760&r,l=r<<16|65535&s;n[0]^=s,n[1]^=a,n[2]^=r,n[3]^=l,n[4]^=s,n[5]^=a,n[6]^=r,n[7]^=l;for(let t=0;t<4;t+=1)zo.call(this)}}_doProcessBlock(t,e){const i=t,n=this._X;zo.call(this),Po[0]=n[0]^n[5]>>>16^n[3]<<16,Po[1]=n[2]^n[7]>>>16^n[5]<<16,Po[2]=n[4]^n[1]>>>16^n[7]<<16,Po[3]=n[6]^n[3]>>>16^n[1]<<16;for(let t=0;t<4;t+=1)Po[t]=16711935&(Po[t]<<8|Po[t]>>>24)|4278255360&(Po[t]<<24|Po[t]>>>8),i[e+t]^=Po[t]}}const Ko=tn._createHelper(Zo),qo=[],Jo=[],Go=[];function Yo(){const t=this._X,e=this._C;for(let t=0;t<8;t+=1)Jo[t]=e[t];e[0]=e[0]+1295307597+this._b|0,e[1]=e[1]+3545052371+(e[0]>>>0<Jo[0]>>>0?1:0)|0,e[2]=e[2]+886263092+(e[1]>>>0<Jo[1]>>>0?1:0)|0,e[3]=e[3]+1295307597+(e[2]>>>0<Jo[2]>>>0?1:0)|0,e[4]=e[4]+3545052371+(e[3]>>>0<Jo[3]>>>0?1:0)|0,e[5]=e[5]+886263092+(e[4]>>>0<Jo[4]>>>0?1:0)|0,e[6]=e[6]+1295307597+(e[5]>>>0<Jo[5]>>>0?1:0)|0,e[7]=e[7]+3545052371+(e[6]>>>0<Jo[6]>>>0?1:0)|0,this._b=e[7]>>>0<Jo[7]>>>0?1:0;for(let i=0;i<8;i+=1){const n=t[i]+e[i],o=65535&n,s=n>>>16,r=((o*o>>>17)+o*s>>>15)+s*s,a=((4294901760&n)*n|0)+((65535&n)*n|0);Go[i]=r^a}t[0]=Go[0]+(Go[7]<<16|Go[7]>>>16)+(Go[6]<<16|Go[6]>>>16)|0,t[1]=Go[1]+(Go[0]<<8|Go[0]>>>24)+Go[7]|0,t[2]=Go[2]+(Go[1]<<16|Go[1]>>>16)+(Go[0]<<16|Go[0]>>>16)|0,t[3]=Go[3]+(Go[2]<<8|Go[2]>>>24)+Go[1]|0,t[4]=Go[4]+(Go[3]<<16|Go[3]>>>16)+(Go[2]<<16|Go[2]>>>16)|0,t[5]=Go[5]+(Go[4]<<8|Go[4]>>>24)+Go[3]|0,t[6]=Go[6]+(Go[5]<<16|Go[5]>>>16)+(Go[4]<<16|Go[4]>>>16)|0,t[7]=Go[7]+(Go[6]<<8|Go[6]>>>24)+Go[5]|0}class Wo extends tn{constructor(...t){super(...t),this.blockSize=4,this.ivSize=2}_doReset(){const t=this._key.words,{iv:e}=this.cfg;this._X=[t[0],t[3]<<16|t[2]>>>16,t[1],t[0]<<16|t[3]>>>16,t[2],t[1]<<16|t[0]>>>16,t[3],t[2]<<16|t[1]>>>16];const i=this._X;this._C=[t[2]<<16|t[2]>>>16,4294901760&t[0]|65535&t[1],t[3]<<16|t[3]>>>16,4294901760&t[1]|65535&t[2],t[0]<<16|t[0]>>>16,4294901760&t[2]|65535&t[3],t[1]<<16|t[1]>>>16,4294901760&t[3]|65535&t[0]];const n=this._C;this._b=0;for(let t=0;t<4;t+=1)Yo.call(this);for(let t=0;t<8;t+=1)n[t]^=i[t+4&7];if(e){const t=e.words,i=t[0],o=t[1],s=16711935&(i<<8|i>>>24)|4278255360&(i<<24|i>>>8),r=16711935&(o<<8|o>>>24)|4278255360&(o<<24|o>>>8),a=s>>>16|4294901760&r,l=r<<16|65535&s;n[0]^=s,n[1]^=a,n[2]^=r,n[3]^=l,n[4]^=s,n[5]^=a,n[6]^=r,n[7]^=l;for(let t=0;t<4;t+=1)Yo.call(this)}}_doProcessBlock(t,e){const i=t,n=this._X;Yo.call(this),qo[0]=n[0]^n[5]>>>16^n[3]<<16,qo[1]=n[2]^n[7]>>>16^n[5]<<16,qo[2]=n[4]^n[1]>>>16^n[7]<<16,qo[3]=n[6]^n[3]>>>16^n[1]<<16;for(let t=0;t<4;t+=1)qo[t]=16711935&(qo[t]<<8|qo[t]>>>24)|4278255360&(qo[t]<<24|qo[t]>>>8),i[e+t]^=qo[t]}}const Xo=tn._createHelper(Wo);function Qo(){const t=this._S;let e=this._i,i=this._j,n=0;for(let o=0;o<4;o+=1){e=(e+1)%256,i=(i+t[e])%256;const s=t[e];t[e]=t[i],t[i]=s,n|=t[(t[e]+t[i])%256]<<24-8*o}return this._i=e,this._j=i,n}class ts extends tn{_doReset(){const t=this._key,e=t.words,i=t.sigBytes;this._S=[];const n=this._S;for(let t=0;t<256;t+=1)n[t]=t;for(let t=0,o=0;t<256;t+=1){const s=t%i,r=e[s>>>2]>>>24-s%4*8&255;o=(o+n[t]+r)%256;const a=n[t];n[t]=n[o],n[o]=a}this._j=0,this._i=this._j}_doProcessBlock(t,e){t[e]^=Qo.call(this)}}ts.keySize=8,ts.ivSize=0;const es=tn._createHelper(ts);class is extends ts{constructor(...t){super(...t),Object.assign(this.cfg,{drop:192})}_doReset(){super._doReset.call(this);for(let t=this.cfg.drop;t>0;t-=1)Qo.call(this)}}const ns=tn._createHelper(is);function os(t,e,i,n){const o=t;let s;const r=this._iv;r?(s=r.slice(0),this._iv=void 0):s=this._prevBlock,n.encryptBlock(s,0);for(let t=0;t<i;t+=1)o[e+t]^=s[t]}class ss extends en{}ss.Encryptor=class extends ss{processBlock(t,e){const i=this._cipher,{blockSize:n}=i;os.call(this,t,e,n,i),this._prevBlock=t.slice(e,e+n)}},ss.Decryptor=class extends ss{processBlock(t,e){const i=this._cipher,{blockSize:n}=i,o=t.slice(e,e+n);os.call(this,t,e,n,i),this._prevBlock=o}};class rs extends en{}rs.Encryptor=class extends rs{processBlock(t,e){const i=t,n=this._cipher,{blockSize:o}=n,s=this._iv;let r=this._counter;s&&(this._counter=s.slice(0),r=this._counter,this._iv=void 0);const a=r.slice(0);n.encryptBlock(a,0),r[o-1]=r[o-1]+1|0;for(let t=0;t<o;t+=1)i[e+t]^=a[t]}},rs.Decryptor=rs.Encryptor;const as=t=>{let e=t;if(255==(t>>24&255)){let i=t>>16&255,n=t>>8&255,o=255&t;255===i?(i=0,255===n?(n=0,255===o?o=0:o+=1):n+=1):i+=1,e=0,e+=i<<16,e+=n<<8,e+=o}else e+=1<<24;return e};
902
+ */(t=>{var e;null===(e=St())||void 0===e||e[`_${t}`]})("authIdTokenMaxAge"),_i="Browser",pe(new Ot("auth",((t,{options:e})=>{const i=t.getProvider("app").getImmediate(),n=t.getProvider("heartbeat"),{apiKey:o,authDomain:s}=i.options;return((t,i)=>{Je(o&&!o.includes(":"),"invalid-api-key",{appName:t.name}),Je(!(null==s?void 0:s.includes(":")),"argument-error",{appName:t.name});const n={apiKey:o,authDomain:s,clientPlatform:_i,apiHost:"identitytoolkit.googleapis.com",tokenApiHost:"securetoken.googleapis.com",apiScheme:"https",sdkClientVersion:ki(_i)},r=new Ii(t,i,n);return function(t,e){const i=(null==e?void 0:e.persistence)||[],n=(Array.isArray(i)?i:[i]).map(Xe);(null==e?void 0:e.errorMap)&&t._updateErrorMap(e.errorMap),t._initializeWithPersistence(n,null==e?void 0:e.popupRedirectResolver)}(r,e),r})(i,n)}),"PUBLIC").setInstantiationMode("EXPLICIT").setInstanceCreatedCallback(((t,e,i)=>{t.getProvider("auth-internal").initialize()}))),pe(new Ot("auth-internal",(t=>(t=>new Mi(t))(function(t){return Dt(t)}(t.getProvider("auth").getImmediate()))),"PRIVATE").setInstantiationMode("EXPLICIT")),ge(Li,"0.21.0",function(t){switch(t){case"Node":return"node";case"ReactNative":return"rn";case"Worker":return"webworker";case"Cordova":return"cordova";default:return}}(_i)),ge(Li,"0.21.0","esm2017");class Fi{static create(...t){return new this(...t)}mixIn(t){return Object.assign(this,t)}clone(){const t=new this.constructor;return Object.assign(t,this),t}}class Ti extends Fi{constructor(t=[],e=4*t.length){super();let i=t;if(i instanceof ArrayBuffer&&(i=new Uint8Array(i)),(i instanceof Int8Array||i instanceof Uint8ClampedArray||i instanceof Int16Array||i instanceof Uint16Array||i instanceof Int32Array||i instanceof Uint32Array||i instanceof Float32Array||i instanceof Float64Array)&&(i=new Uint8Array(i.buffer,i.byteOffset,i.byteLength)),i instanceof Uint8Array){const t=i.byteLength,e=[];for(let n=0;n<t;n+=1)e[n>>>2]|=i[n]<<24-n%4*8;this.words=e,this.sigBytes=t}else this.words=t,this.sigBytes=e}static random(t){const e=[],i=t=>{let e=t,i=987654321;const n=4294967295;return()=>{i=36969*(65535&i)+(i>>16)&n,e=18e3*(65535&e)+(e>>16)&n;let t=(i<<16)+e&n;return t/=4294967296,t+=.5,t*(Math.random()>.5?1:-1)}};for(let n,o=0;o<t;o+=4){const t=i(4294967296*(n||Math.random()));n=987654071*t(),e.push(4294967296*t()|0)}return new Ti(e,t)}toString(t=Di){return t.stringify(this)}concat(t){const e=this.words,i=t.words,n=this.sigBytes,o=t.sigBytes;if(this.clamp(),n%4)for(let t=0;t<o;t+=1){const o=i[t>>>2]>>>24-t%4*8&255;e[n+t>>>2]|=o<<24-(n+t)%4*8}else for(let t=0;t<o;t+=4)e[n+t>>>2]=i[t>>>2];return this.sigBytes+=o,this}clamp(){const{words:t,sigBytes:e}=this;t[e>>>2]&=4294967295<<32-e%4*8,t.length=Math.ceil(e/4)}clone(){const t=super.clone.call(this);return t.words=this.words.slice(0),t}}const Di={stringify(t){const{words:e,sigBytes:i}=t,n=[];for(let t=0;t<i;t+=1){const i=e[t>>>2]>>>24-t%4*8&255;n.push((i>>>4).toString(16)),n.push((15&i).toString(16))}return n.join("")},parse(t){const e=t.length,i=[];for(let n=0;n<e;n+=2)i[n>>>3]|=parseInt(t.substr(n,2),16)<<24-n%8*4;return new Ti(i,e/2)}},Oi={stringify(t){const{words:e,sigBytes:i}=t,n=[];for(let t=0;t<i;t+=1){const i=e[t>>>2]>>>24-t%4*8&255;n.push(String.fromCharCode(i))}return n.join("")},parse(t){const e=t.length,i=[];for(let n=0;n<e;n+=1)i[n>>>2]|=(255&t.charCodeAt(n))<<24-n%4*8;return new Ti(i,e)}},Ni={stringify(t){try{return decodeURIComponent(escape(Oi.stringify(t)))}catch(t){throw new Error("Malformed UTF-8 data")}},parse:t=>Oi.parse(unescape(encodeURIComponent(t)))};class Ri extends Fi{constructor(){super(),this._minBufferSize=0}reset(){this._data=new Ti,this._nDataBytes=0}_append(t){let e=t;"string"==typeof e&&(e=Ni.parse(e)),this._data.concat(e),this._nDataBytes+=e.sigBytes}_process(t){let e;const{_data:i,blockSize:n}=this,o=i.words,s=i.sigBytes;let r=s/(4*n);r=t?Math.ceil(r):Math.max((0|r)-this._minBufferSize,0);const a=r*n,l=Math.min(4*a,s);if(a){for(let t=0;t<a;t+=n)this._doProcessBlock(o,t);e=o.splice(0,a),i.sigBytes-=l}return new Ti(e,l)}clone(){const t=super.clone.call(this);return t._data=this._data.clone(),t}}class Vi extends Ri{constructor(t){super(),this.blockSize=16,this.cfg=Object.assign(new Fi,t),this.reset()}static _createHelper(t){return(e,i)=>new t(i).finalize(e)}static _createHmacHelper(t){return(e,i)=>new ji(t,i).finalize(e)}reset(){super.reset.call(this),this._doReset()}update(t){return this._append(t),this._process(),this}finalize(t){t&&this._append(t);return this._doFinalize()}}class ji extends Fi{constructor(t,e){super();const i=new t;this._hasher=i;let n=e;"string"==typeof n&&(n=Ni.parse(n));const o=i.blockSize,s=4*o;n.sigBytes>s&&(n=i.finalize(e)),n.clamp();const r=n.clone();this._oKey=r;const a=n.clone();this._iKey=a;const l=r.words,c=a.words;for(let t=0;t<o;t+=1)l[t]^=1549556828,c[t]^=909522486;r.sigBytes=s,a.sigBytes=s,this.reset()}reset(){const t=this._hasher;t.reset(),t.update(this._iKey)}update(t){return this._hasher.update(t),this}finalize(t){const e=this._hasher,i=e.finalize(t);e.reset();return e.finalize(this._oKey.clone().concat(i))}}const Ui=Ti;class Pi extends Fi{constructor(t,e){super(),this.high=t,this.low=e}}class Bi extends Fi{constructor(t=[],e=8*t.length){super(),this.words=t,this.sigBytes=e}toX32(){const t=this.words,e=t.length,i=[];for(let n=0;n<e;n+=1){const e=t[n];i.push(e.high),i.push(e.low)}return Ui.create(i,this.sigBytes)}clone(){const t=super.clone.call(this);t.words=this.words.slice(0);const{words:e}=t,i=e.length;for(let t=0;t<i;t+=1)e[t]=e[t].clone();return t}}const Hi={stringify(t){const{words:e,sigBytes:i}=t,n=this._map;t.clamp();const o=[];for(let t=0;t<i;t+=3){const s=(e[t>>>2]>>>24-t%4*8&255)<<16|(e[t+1>>>2]>>>24-(t+1)%4*8&255)<<8|e[t+2>>>2]>>>24-(t+2)%4*8&255;for(let e=0;e<4&&t+.75*e<i;e+=1)o.push(n.charAt(s>>>6*(3-e)&63))}const s=n.charAt(64);if(s)for(;o.length%4;)o.push(s);return o.join("")},parse(t){let e=t.length;const i=this._map;let n=this._reverseMap;if(!n){this._reverseMap=[],n=this._reverseMap;for(let t=0;t<i.length;t+=1)n[i.charCodeAt(t)]=t}const o=i.charAt(64);if(o){const i=t.indexOf(o);-1!==i&&(e=i)}return((t,e,i)=>{const n=[];let o=0;for(let s=0;s<e;s+=1)if(s%4){const e=i[t.charCodeAt(s-1)]<<s%4*2|i[t.charCodeAt(s)]>>>6-s%4*2;n[o>>>2]|=e<<24-o%4*8,o+=1}return Ti.create(n,o)})(t,e,n)},_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/="},zi=[];for(let t=0;t<64;t+=1)zi[t]=4294967296*Math.abs(Math.sin(t+1))|0;const Zi=(t,e,i,n,o,s,r)=>{const a=t+(e&i|~e&n)+o+r;return(a<<s|a>>>32-s)+e},Ki=(t,e,i,n,o,s,r)=>{const a=t+(e&n|i&~n)+o+r;return(a<<s|a>>>32-s)+e},qi=(t,e,i,n,o,s,r)=>{const a=t+(e^i^n)+o+r;return(a<<s|a>>>32-s)+e},Ji=(t,e,i,n,o,s,r)=>{const a=t+(i^(e|~n))+o+r;return(a<<s|a>>>32-s)+e};class Gi extends Vi{_doReset(){this._hash=new Ti([1732584193,4023233417,2562383102,271733878])}_doProcessBlock(t,e){const i=t;for(let n=0;n<16;n+=1){const o=e+n,s=t[o];i[o]=16711935&(s<<8|s>>>24)|4278255360&(s<<24|s>>>8)}const n=this._hash.words,o=i[e+0],s=i[e+1],r=i[e+2],a=i[e+3],l=i[e+4],c=i[e+5],d=i[e+6],h=i[e+7],u=i[e+8],p=i[e+9],v=i[e+10],f=i[e+11],m=i[e+12],g=i[e+13],w=i[e+14],C=i[e+15];let y=n[0],b=n[1],x=n[2],S=n[3];y=Zi(y,b,x,S,o,7,zi[0]),S=Zi(S,y,b,x,s,12,zi[1]),x=Zi(x,S,y,b,r,17,zi[2]),b=Zi(b,x,S,y,a,22,zi[3]),y=Zi(y,b,x,S,l,7,zi[4]),S=Zi(S,y,b,x,c,12,zi[5]),x=Zi(x,S,y,b,d,17,zi[6]),b=Zi(b,x,S,y,h,22,zi[7]),y=Zi(y,b,x,S,u,7,zi[8]),S=Zi(S,y,b,x,p,12,zi[9]),x=Zi(x,S,y,b,v,17,zi[10]),b=Zi(b,x,S,y,f,22,zi[11]),y=Zi(y,b,x,S,m,7,zi[12]),S=Zi(S,y,b,x,g,12,zi[13]),x=Zi(x,S,y,b,w,17,zi[14]),b=Zi(b,x,S,y,C,22,zi[15]),y=Ki(y,b,x,S,s,5,zi[16]),S=Ki(S,y,b,x,d,9,zi[17]),x=Ki(x,S,y,b,f,14,zi[18]),b=Ki(b,x,S,y,o,20,zi[19]),y=Ki(y,b,x,S,c,5,zi[20]),S=Ki(S,y,b,x,v,9,zi[21]),x=Ki(x,S,y,b,C,14,zi[22]),b=Ki(b,x,S,y,l,20,zi[23]),y=Ki(y,b,x,S,p,5,zi[24]),S=Ki(S,y,b,x,w,9,zi[25]),x=Ki(x,S,y,b,a,14,zi[26]),b=Ki(b,x,S,y,u,20,zi[27]),y=Ki(y,b,x,S,g,5,zi[28]),S=Ki(S,y,b,x,r,9,zi[29]),x=Ki(x,S,y,b,h,14,zi[30]),b=Ki(b,x,S,y,m,20,zi[31]),y=qi(y,b,x,S,c,4,zi[32]),S=qi(S,y,b,x,u,11,zi[33]),x=qi(x,S,y,b,f,16,zi[34]),b=qi(b,x,S,y,w,23,zi[35]),y=qi(y,b,x,S,s,4,zi[36]),S=qi(S,y,b,x,l,11,zi[37]),x=qi(x,S,y,b,h,16,zi[38]),b=qi(b,x,S,y,v,23,zi[39]),y=qi(y,b,x,S,g,4,zi[40]),S=qi(S,y,b,x,o,11,zi[41]),x=qi(x,S,y,b,a,16,zi[42]),b=qi(b,x,S,y,d,23,zi[43]),y=qi(y,b,x,S,p,4,zi[44]),S=qi(S,y,b,x,m,11,zi[45]),x=qi(x,S,y,b,C,16,zi[46]),b=qi(b,x,S,y,r,23,zi[47]),y=Ji(y,b,x,S,o,6,zi[48]),S=Ji(S,y,b,x,h,10,zi[49]),x=Ji(x,S,y,b,w,15,zi[50]),b=Ji(b,x,S,y,c,21,zi[51]),y=Ji(y,b,x,S,m,6,zi[52]),S=Ji(S,y,b,x,a,10,zi[53]),x=Ji(x,S,y,b,v,15,zi[54]),b=Ji(b,x,S,y,s,21,zi[55]),y=Ji(y,b,x,S,u,6,zi[56]),S=Ji(S,y,b,x,C,10,zi[57]),x=Ji(x,S,y,b,d,15,zi[58]),b=Ji(b,x,S,y,g,21,zi[59]),y=Ji(y,b,x,S,l,6,zi[60]),S=Ji(S,y,b,x,f,10,zi[61]),x=Ji(x,S,y,b,r,15,zi[62]),b=Ji(b,x,S,y,p,21,zi[63]),n[0]=n[0]+y|0,n[1]=n[1]+b|0,n[2]=n[2]+x|0,n[3]=n[3]+S|0}_doFinalize(){const t=this._data,e=t.words,i=8*this._nDataBytes,n=8*t.sigBytes;e[n>>>5]|=128<<24-n%32;const o=Math.floor(i/4294967296),s=i;e[15+(n+64>>>9<<4)]=16711935&(o<<8|o>>>24)|4278255360&(o<<24|o>>>8),e[14+(n+64>>>9<<4)]=16711935&(s<<8|s>>>24)|4278255360&(s<<24|s>>>8),t.sigBytes=4*(e.length+1),this._process();const r=this._hash,a=r.words;for(let t=0;t<4;t+=1){const e=a[t];a[t]=16711935&(e<<8|e>>>24)|4278255360&(e<<24|e>>>8)}return r}clone(){const t=super.clone.call(this);return t._hash=this._hash.clone(),t}}const Yi=Vi._createHelper(Gi),Wi=Vi._createHmacHelper(Gi);class Xi extends Fi{constructor(t){super(),this.cfg=Object.assign(new Fi,{keySize:4,hasher:Gi,iterations:1},t)}compute(t,e){let i;const{cfg:n}=this,o=n.hasher.create(),s=Ti.create(),r=s.words,{keySize:a,iterations:l}=n;for(;r.length<a;){i&&o.update(i),i=o.update(t).finalize(e),o.reset();for(let t=1;t<l;t+=1)i=o.finalize(i),o.reset();s.concat(i)}return s.sigBytes=4*a,s}}class Qi extends Ri{constructor(t,e,i){super(),this.cfg=Object.assign(new Fi,i),this._xformMode=t,this._key=e,this.reset()}static createEncryptor(t,e){return this.create(this._ENC_XFORM_MODE,t,e)}static createDecryptor(t,e){return this.create(this._DEC_XFORM_MODE,t,e)}static _createHelper(t){const e=t=>"string"==typeof t?hn:cn;return{encrypt:(i,n,o)=>e(n).encrypt(t,i,n,o),decrypt:(i,n,o)=>e(n).decrypt(t,i,n,o)}}reset(){super.reset.call(this),this._doReset()}process(t){return this._append(t),this._process()}finalize(t){t&&this._append(t);return this._doFinalize()}}Qi._ENC_XFORM_MODE=1,Qi._DEC_XFORM_MODE=2,Qi.keySize=4,Qi.ivSize=4;class tn extends Qi{constructor(...t){super(...t),this.blockSize=1}_doFinalize(){return this._process(!0)}}class en extends Fi{constructor(t,e){super(),this._cipher=t,this._iv=e}static createEncryptor(t,e){return this.Encryptor.create(t,e)}static createDecryptor(t,e){return this.Decryptor.create(t,e)}}function nn(t,e,i){const n=t;let o;const s=this._iv;s?(o=s,this._iv=void 0):o=this._prevBlock;for(let t=0;t<i;t+=1)n[e+t]^=o[t]}class on extends en{}on.Encryptor=class extends on{processBlock(t,e){const i=this._cipher,{blockSize:n}=i;nn.call(this,t,e,n),i.encryptBlock(t,e),this._prevBlock=t.slice(e,e+n)}},on.Decryptor=class extends on{processBlock(t,e){const i=this._cipher,{blockSize:n}=i,o=t.slice(e,e+n);i.decryptBlock(t,e),nn.call(this,t,e,n),this._prevBlock=o}};const sn={pad(t,e){const i=4*e,n=i-t.sigBytes%i,o=n<<24|n<<16|n<<8|n,s=[];for(let t=0;t<n;t+=4)s.push(o);const r=Ti.create(s,n);t.concat(r)},unpad(t){const e=t,i=255&e.words[e.sigBytes-1>>>2];e.sigBytes-=i}};class rn extends Qi{constructor(t,e,i){super(t,e,Object.assign({mode:on,padding:sn},i)),this.blockSize=4}reset(){let t;super.reset.call(this);const{cfg:e}=this,{iv:i,mode:n}=e;this._xformMode===this.constructor._ENC_XFORM_MODE?t=n.createEncryptor:(t=n.createDecryptor,this._minBufferSize=1),this._mode=t.call(n,this,i&&i.words),this._mode.i=t}_doProcessBlock(t,e){this._mode.processBlock(t,e)}_doFinalize(){let t;const{padding:e}=this.cfg;return this._xformMode===this.constructor._ENC_XFORM_MODE?(e.pad(this._data,this.blockSize),t=this._process(!0)):(t=this._process(!0),e.unpad(t)),t}}class an extends Fi{constructor(t){super(),this.mixIn(t)}toString(t){return(t||this.formatter).stringify(this)}}const ln={stringify(t){let e;const{ciphertext:i,salt:n}=t;return e=n?Ti.create([1398893684,1701076831]).concat(n).concat(i):i,e.toString(Hi)},parse(t){let e;const i=Hi.parse(t),n=i.words;return 1398893684===n[0]&&1701076831===n[1]&&(e=Ti.create(n.slice(2,4)),n.splice(0,4),i.sigBytes-=16),an.create({ciphertext:i,salt:e})}};class cn extends Fi{static encrypt(t,e,i,n){const o=Object.assign(new Fi,this.cfg,n),s=t.createEncryptor(i,o),r=s.finalize(e),a=s.cfg;return an.create({ciphertext:r,key:i,iv:a.iv,algorithm:t,mode:a.mode,padding:a.padding,blockSize:s.blockSize,formatter:o.format})}static decrypt(t,e,i,n){let o=e;const s=Object.assign(new Fi,this.cfg,n);o=this._parse(o,s.format);return t.createDecryptor(i,s).finalize(o.ciphertext)}static _parse(t,e){return"string"==typeof t?e.parse(t,this):t}}cn.cfg=Object.assign(new Fi,{format:ln});const dn={execute(t,e,i,n){let o=n;o||(o=Ti.random(8));const s=Xi.create({keySize:e+i}).compute(t,o),r=Ti.create(s.words.slice(e),4*i);return s.sigBytes=4*e,an.create({key:s,iv:r,salt:o})}};class hn extends cn{static encrypt(t,e,i,n){const o=Object.assign(new Fi,this.cfg,n),s=o.kdf.execute(i,t.keySize,t.ivSize);o.iv=s.iv;const r=cn.encrypt.call(this,t,e,s.key,o);return r.mixIn(s),r}static decrypt(t,e,i,n){let o=e;const s=Object.assign(new Fi,this.cfg,n);o=this._parse(o,s.format);const r=s.kdf.execute(i,t.keySize,t.ivSize,o.salt);s.iv=r.iv;return cn.decrypt.call(this,t,o,r.key,s)}}hn.cfg=Object.assign(cn.cfg,{kdf:dn});const un=t=>t<<8&4278255360|t>>>8&16711935,pn={stringify(t){const{words:e,sigBytes:i}=t,n=[];for(let t=0;t<i;t+=2){const i=e[t>>>2]>>>16-t%4*8&65535;n.push(String.fromCharCode(i))}return n.join("")},parse(t){const e=t.length,i=[];for(let n=0;n<e;n+=1)i[n>>>1]|=t.charCodeAt(n)<<16-n%2*16;return Ti.create(i,2*e)}},vn=pn,fn={stringify(t){const{words:e,sigBytes:i}=t,n=[];for(let t=0;t<i;t+=2){const i=un(e[t>>>2]>>>16-t%4*8&65535);n.push(String.fromCharCode(i))}return n.join("")},parse(t){const e=t.length,i=[];for(let n=0;n<e;n+=1)i[n>>>1]|=un(t.charCodeAt(n)<<16-n%2*16);return Ti.create(i,2*e)}},mn=[];class gn extends Vi{_doReset(){this._hash=new Ti([1732584193,4023233417,2562383102,271733878,3285377520])}_doProcessBlock(t,e){const i=this._hash.words;let n=i[0],o=i[1],s=i[2],r=i[3],a=i[4];for(let i=0;i<80;i+=1){if(i<16)mn[i]=0|t[e+i];else{const t=mn[i-3]^mn[i-8]^mn[i-14]^mn[i-16];mn[i]=t<<1|t>>>31}let l=(n<<5|n>>>27)+a+mn[i];l+=i<20?1518500249+(o&s|~o&r):i<40?1859775393+(o^s^r):i<60?(o&s|o&r|s&r)-1894007588:(o^s^r)-899497514,a=r,r=s,s=o<<30|o>>>2,o=n,n=l}i[0]=i[0]+n|0,i[1]=i[1]+o|0,i[2]=i[2]+s|0,i[3]=i[3]+r|0,i[4]=i[4]+a|0}_doFinalize(){const t=this._data,e=t.words,i=8*this._nDataBytes,n=8*t.sigBytes;return e[n>>>5]|=128<<24-n%32,e[14+(n+64>>>9<<4)]=Math.floor(i/4294967296),e[15+(n+64>>>9<<4)]=i,t.sigBytes=4*e.length,this._process(),this._hash}clone(){const t=super.clone.call(this);return t._hash=this._hash.clone(),t}}const wn=Vi._createHelper(gn),Cn=Vi._createHmacHelper(gn),yn=[],bn=[],xn=t=>{const e=Math.sqrt(t);for(let i=2;i<=e;i+=1)if(!(t%i))return!1;return!0},Sn=t=>4294967296*(t-(0|t))|0;let En=2,kn=0;for(;kn<64;)xn(En)&&(kn<8&&(yn[kn]=Sn(En**.5)),bn[kn]=Sn(En**(1/3)),kn+=1),En+=1;const An=[];class In extends Vi{_doReset(){this._hash=new Ti(yn.slice(0))}_doProcessBlock(t,e){const i=this._hash.words;let n=i[0],o=i[1],s=i[2],r=i[3],a=i[4],l=i[5],c=i[6],d=i[7];for(let i=0;i<64;i+=1){if(i<16)An[i]=0|t[e+i];else{const t=An[i-15],e=(t<<25|t>>>7)^(t<<14|t>>>18)^t>>>3,n=An[i-2],o=(n<<15|n>>>17)^(n<<13|n>>>19)^n>>>10;An[i]=e+An[i-7]+o+An[i-16]}const h=n&o^n&s^o&s,u=(n<<30|n>>>2)^(n<<19|n>>>13)^(n<<10|n>>>22),p=d+((a<<26|a>>>6)^(a<<21|a>>>11)^(a<<7|a>>>25))+(a&l^~a&c)+bn[i]+An[i];d=c,c=l,l=a,a=r+p|0,r=s,s=o,o=n,n=p+(u+h)|0}i[0]=i[0]+n|0,i[1]=i[1]+o|0,i[2]=i[2]+s|0,i[3]=i[3]+r|0,i[4]=i[4]+a|0,i[5]=i[5]+l|0,i[6]=i[6]+c|0,i[7]=i[7]+d|0}_doFinalize(){const t=this._data,e=t.words,i=8*this._nDataBytes,n=8*t.sigBytes;return e[n>>>5]|=128<<24-n%32,e[14+(n+64>>>9<<4)]=Math.floor(i/4294967296),e[15+(n+64>>>9<<4)]=i,t.sigBytes=4*e.length,this._process(),this._hash}clone(){const t=super.clone.call(this);return t._hash=this._hash.clone(),t}}const $n=Vi._createHelper(In),Ln=Vi._createHmacHelper(In);class Mn extends In{_doReset(){this._hash=new Ti([3238371032,914150663,812702999,4144912697,4290775857,1750603025,1694076839,3204075428])}_doFinalize(){const t=super._doFinalize.call(this);return t.sigBytes-=4,t}}const _n=In._createHelper(Mn),Fn=In._createHmacHelper(Mn),Tn=[new Pi(1116352408,3609767458),new Pi(1899447441,602891725),new Pi(3049323471,3964484399),new Pi(3921009573,2173295548),new Pi(961987163,4081628472),new Pi(1508970993,3053834265),new Pi(2453635748,2937671579),new Pi(2870763221,3664609560),new Pi(3624381080,2734883394),new Pi(310598401,1164996542),new Pi(607225278,1323610764),new Pi(1426881987,3590304994),new Pi(1925078388,4068182383),new Pi(2162078206,991336113),new Pi(2614888103,633803317),new Pi(3248222580,3479774868),new Pi(3835390401,2666613458),new Pi(4022224774,944711139),new Pi(264347078,2341262773),new Pi(604807628,2007800933),new Pi(770255983,1495990901),new Pi(1249150122,1856431235),new Pi(1555081692,3175218132),new Pi(1996064986,2198950837),new Pi(2554220882,3999719339),new Pi(2821834349,766784016),new Pi(2952996808,2566594879),new Pi(3210313671,3203337956),new Pi(3336571891,1034457026),new Pi(3584528711,2466948901),new Pi(113926993,3758326383),new Pi(338241895,168717936),new Pi(666307205,1188179964),new Pi(773529912,1546045734),new Pi(1294757372,1522805485),new Pi(1396182291,2643833823),new Pi(1695183700,2343527390),new Pi(1986661051,1014477480),new Pi(2177026350,1206759142),new Pi(2456956037,344077627),new Pi(2730485921,1290863460),new Pi(2820302411,3158454273),new Pi(3259730800,3505952657),new Pi(3345764771,106217008),new Pi(3516065817,3606008344),new Pi(3600352804,1432725776),new Pi(4094571909,1467031594),new Pi(275423344,851169720),new Pi(430227734,3100823752),new Pi(506948616,1363258195),new Pi(659060556,3750685593),new Pi(883997877,3785050280),new Pi(958139571,3318307427),new Pi(1322822218,3812723403),new Pi(1537002063,2003034995),new Pi(1747873779,3602036899),new Pi(1955562222,1575990012),new Pi(2024104815,1125592928),new Pi(2227730452,2716904306),new Pi(2361852424,442776044),new Pi(2428436474,593698344),new Pi(2756734187,3733110249),new Pi(3204031479,2999351573),new Pi(3329325298,3815920427),new Pi(3391569614,3928383900),new Pi(3515267271,566280711),new Pi(3940187606,3454069534),new Pi(4118630271,4000239992),new Pi(116418474,1914138554),new Pi(174292421,2731055270),new Pi(289380356,3203993006),new Pi(460393269,320620315),new Pi(685471733,587496836),new Pi(852142971,1086792851),new Pi(1017036298,365543100),new Pi(1126000580,2618297676),new Pi(1288033470,3409855158),new Pi(1501505948,4234509866),new Pi(1607167915,987167468),new Pi(1816402316,1246189591)],Dn=[];for(let t=0;t<80;t+=1)Dn[t]=new Pi;class On extends Vi{constructor(){super(),this.blockSize=32}_doReset(){this._hash=new Bi([new Pi(1779033703,4089235720),new Pi(3144134277,2227873595),new Pi(1013904242,4271175723),new Pi(2773480762,1595750129),new Pi(1359893119,2917565137),new Pi(2600822924,725511199),new Pi(528734635,4215389547),new Pi(1541459225,327033209)])}_doProcessBlock(t,e){const i=this._hash.words,n=i[0],o=i[1],s=i[2],r=i[3],a=i[4],l=i[5],c=i[6],d=i[7],h=n.high;let u=n.low;const p=o.high;let v=o.low;const f=s.high;let m=s.low;const g=r.high;let w=r.low;const C=a.high;let y=a.low;const b=l.high;let x=l.low;const S=c.high;let E=c.low;const k=d.high;let A=d.low,I=h,$=u,L=p,M=v,_=f,F=m,T=g,D=w,O=C,N=y,R=b,V=x,j=S,U=E,P=k,B=A;for(let i=0;i<80;i+=1){let n,o;const s=Dn[i];if(i<16)s.high=0|t[e+2*i],o=s.high,s.low=0|t[e+2*i+1],n=s.low;else{const t=Dn[i-15],e=t.high,r=t.low,a=(e>>>1|r<<31)^(e>>>8|r<<24)^e>>>7,l=(r>>>1|e<<31)^(r>>>8|e<<24)^(r>>>7|e<<25),c=Dn[i-2],d=c.high,h=c.low,u=(d>>>19|h<<13)^(d<<3|h>>>29)^d>>>6,p=(h>>>19|d<<13)^(h<<3|d>>>29)^(h>>>6|d<<26),v=Dn[i-7],f=v.high,m=v.low,g=Dn[i-16],w=g.high,C=g.low;n=l+m,o=a+f+(n>>>0<l>>>0?1:0),n+=p,o=o+u+(n>>>0<p>>>0?1:0),n+=C,o=o+w+(n>>>0<C>>>0?1:0),s.high=o,s.low=n}const r=O&R^~O&j,a=N&V^~N&U,l=I&L^I&_^L&_,c=$&M^$&F^M&F,d=(I>>>28|$<<4)^(I<<30|$>>>2)^(I<<25|$>>>7),h=($>>>28|I<<4)^($<<30|I>>>2)^($<<25|I>>>7),u=(O>>>14|N<<18)^(O>>>18|N<<14)^(O<<23|N>>>9),p=(N>>>14|O<<18)^(N>>>18|O<<14)^(N<<23|O>>>9),v=Tn[i],f=v.high,m=v.low;let g=B+p,w=P+u+(g>>>0<B>>>0?1:0);g+=a,w=w+r+(g>>>0<a>>>0?1:0),g+=m,w=w+f+(g>>>0<m>>>0?1:0),g+=n,w=w+o+(g>>>0<n>>>0?1:0);const C=h+c;P=j,B=U,j=R,U=V,R=O,V=N,N=D+g|0,O=T+w+(N>>>0<D>>>0?1:0)|0,T=_,D=F,_=L,F=M,L=I,M=$,$=g+C|0,I=w+(d+l+(C>>>0<h>>>0?1:0))+($>>>0<g>>>0?1:0)|0}n.low=u+$,u=n.low,n.high=h+I+(u>>>0<$>>>0?1:0),o.low=v+M,v=o.low,o.high=p+L+(v>>>0<M>>>0?1:0),s.low=m+F,m=s.low,s.high=f+_+(m>>>0<F>>>0?1:0),r.low=w+D,w=r.low,r.high=g+T+(w>>>0<D>>>0?1:0),a.low=y+N,y=a.low,a.high=C+O+(y>>>0<N>>>0?1:0),l.low=x+V,x=l.low,l.high=b+R+(x>>>0<V>>>0?1:0),c.low=E+U,E=c.low,c.high=S+j+(E>>>0<U>>>0?1:0),d.low=A+B,A=d.low,d.high=k+P+(A>>>0<B>>>0?1:0)}_doFinalize(){const t=this._data,e=t.words,i=8*this._nDataBytes,n=8*t.sigBytes;e[n>>>5]|=128<<24-n%32,e[30+(n+128>>>10<<5)]=Math.floor(i/4294967296),e[31+(n+128>>>10<<5)]=i,t.sigBytes=4*e.length,this._process();return this._hash.toX32()}clone(){const t=super.clone.call(this);return t._hash=this._hash.clone(),t}}const Nn=Vi._createHelper(On),Rn=Vi._createHmacHelper(On);class Vn extends On{_doReset(){this._hash=new Bi([new Pi(3418070365,3238371032),new Pi(1654270250,914150663),new Pi(2438529370,812702999),new Pi(355462360,4144912697),new Pi(1731405415,4290775857),new Pi(2394180231,1750603025),new Pi(3675008525,1694076839),new Pi(1203062813,3204075428)])}_doFinalize(){const t=super._doFinalize.call(this);return t.sigBytes-=16,t}}const jn=On._createHelper(Vn),Un=On._createHmacHelper(Vn),Pn=[],Bn=[],Hn=[];let zn=1,Zn=0;for(let t=0;t<24;t+=1){Pn[zn+5*Zn]=(t+1)*(t+2)/2%64;const e=(2*zn+3*Zn)%5;zn=Zn%5,Zn=e}for(let t=0;t<5;t+=1)for(let e=0;e<5;e+=1)Bn[t+5*e]=e+(2*t+3*e)%5*5;let Kn=1;for(let t=0;t<24;t+=1){let e=0,i=0;for(let t=0;t<7;t+=1){if(1&Kn){const n=(1<<t)-1;n<32?i^=1<<n:e^=1<<n-32}128&Kn?Kn=Kn<<1^113:Kn<<=1}Hn[t]=Pi.create(e,i)}const qn=[];for(let t=0;t<25;t+=1)qn[t]=Pi.create();class Jn extends Vi{constructor(t){super(Object.assign({outputLength:512},t))}_doReset(){this._state=[];const t=this._state;for(let e=0;e<25;e+=1)t[e]=new Pi;this.blockSize=(1600-2*this.cfg.outputLength)/32}_doProcessBlock(t,e){const i=this._state,n=this.blockSize/2;for(let o=0;o<n;o+=1){let n=t[e+2*o],s=t[e+2*o+1];n=16711935&(n<<8|n>>>24)|4278255360&(n<<24|n>>>8),s=16711935&(s<<8|s>>>24)|4278255360&(s<<24|s>>>8);const r=i[o];r.high^=s,r.low^=n}for(let t=0;t<24;t+=1){for(let t=0;t<5;t+=1){let e=0,n=0;for(let o=0;o<5;o+=1){const s=i[t+5*o];e^=s.high,n^=s.low}const o=qn[t];o.high=e,o.low=n}for(let t=0;t<5;t+=1){const e=qn[(t+4)%5],n=qn[(t+1)%5],o=n.high,s=n.low,r=e.high^(o<<1|s>>>31),a=e.low^(s<<1|o>>>31);for(let e=0;e<5;e+=1){const n=i[t+5*e];n.high^=r,n.low^=a}}for(let t=1;t<25;t+=1){let e,n;const o=i[t],s=o.high,r=o.low,a=Pn[t];a<32?(e=s<<a|r>>>32-a,n=r<<a|s>>>32-a):(e=r<<a-32|s>>>64-a,n=s<<a-32|r>>>64-a);const l=qn[Bn[t]];l.high=e,l.low=n}const e=qn[0],n=i[0];e.high=n.high,e.low=n.low;for(let t=0;t<5;t+=1)for(let e=0;e<5;e+=1){const n=t+5*e,o=i[n],s=qn[n],r=qn[(t+1)%5+5*e],a=qn[(t+2)%5+5*e];o.high=s.high^~r.high&a.high,o.low=s.low^~r.low&a.low}const o=i[0],s=Hn[t];o.high^=s.high,o.low^=s.low}}_doFinalize(){const t=this._data,e=t.words,i=8*t.sigBytes,n=32*this.blockSize;e[i>>>5]|=1<<24-i%32,e[(Math.ceil((i+1)/n)*n>>>5)-1]|=128,t.sigBytes=4*e.length,this._process();const o=this._state,s=this.cfg.outputLength/8,r=s/8,a=[];for(let t=0;t<r;t+=1){const e=o[t];let i=e.high,n=e.low;i=16711935&(i<<8|i>>>24)|4278255360&(i<<24|i>>>8),n=16711935&(n<<8|n>>>24)|4278255360&(n<<24|n>>>8),a.push(n),a.push(i)}return new Ti(a,s)}clone(){const t=super.clone.call(this);t._state=this._state.slice(0);const e=t._state;for(let t=0;t<25;t+=1)e[t]=e[t].clone();return t}}const Gn=Vi._createHelper(Jn),Yn=Vi._createHmacHelper(Jn),Wn=Ti.create([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,7,4,13,1,10,6,15,3,12,0,9,5,2,14,11,8,3,10,14,4,9,15,8,1,2,7,0,6,13,11,5,12,1,9,11,10,0,8,12,4,13,3,7,15,14,5,6,2,4,0,5,9,7,12,2,10,14,1,3,8,11,6,15,13]),Xn=Ti.create([5,14,7,0,9,2,11,4,13,6,15,8,1,10,3,12,6,11,3,7,0,13,5,10,14,15,8,12,4,9,1,2,15,5,1,3,7,14,6,9,11,8,12,2,10,0,4,13,8,6,4,1,3,11,15,0,5,12,2,13,9,7,10,14,12,15,10,4,1,5,8,7,6,2,13,14,0,3,9,11]),Qn=Ti.create([11,14,15,12,5,8,7,9,11,13,14,15,6,7,9,8,7,6,8,13,11,9,7,15,7,12,15,9,11,7,13,12,11,13,6,7,14,9,13,15,14,8,13,6,5,12,7,5,11,12,14,15,14,15,9,8,9,14,5,6,8,6,5,12,9,15,5,11,6,8,13,12,5,12,13,14,11,8,5,6]),to=Ti.create([8,9,9,11,13,15,15,5,7,7,8,11,14,14,12,6,9,13,15,7,12,8,9,11,7,7,12,7,6,15,13,11,9,7,15,11,8,6,6,14,12,13,5,14,13,13,7,5,15,5,8,11,14,14,6,14,6,9,12,9,12,5,15,8,8,5,12,9,12,5,14,6,8,13,6,5,15,13,11,11]),eo=Ti.create([0,1518500249,1859775393,2400959708,2840853838]),io=Ti.create([1352829926,1548603684,1836072691,2053994217,0]),no=(t,e,i)=>t^e^i,oo=(t,e,i)=>t&e|~t&i,so=(t,e,i)=>(t|~e)^i,ro=(t,e,i)=>t&i|e&~i,ao=(t,e,i)=>t^(e|~i),lo=(t,e)=>t<<e|t>>>32-e;class co extends Vi{_doReset(){this._hash=Ti.create([1732584193,4023233417,2562383102,271733878,3285377520])}_doProcessBlock(t,e){const i=t;for(let t=0;t<16;t+=1){const n=e+t,o=i[n];i[n]=16711935&(o<<8|o>>>24)|4278255360&(o<<24|o>>>8)}const n=this._hash.words,o=eo.words,s=io.words,r=Wn.words,a=Xn.words,l=Qn.words,c=to.words;let d,h=n[0],u=n[1],p=n[2],v=n[3],f=n[4],m=n[0],g=n[1],w=n[2],C=n[3],y=n[4];for(let t=0;t<80;t+=1)d=h+i[e+r[t]]|0,d+=t<16?no(u,p,v)+o[0]:t<32?oo(u,p,v)+o[1]:t<48?so(u,p,v)+o[2]:t<64?ro(u,p,v)+o[3]:ao(u,p,v)+o[4],d|=0,d=lo(d,l[t]),d=d+f|0,h=f,f=v,v=lo(p,10),p=u,u=d,d=m+i[e+a[t]]|0,d+=t<16?ao(g,w,C)+s[0]:t<32?ro(g,w,C)+s[1]:t<48?so(g,w,C)+s[2]:t<64?oo(g,w,C)+s[3]:no(g,w,C)+s[4],d|=0,d=lo(d,c[t]),d=d+y|0,m=y,y=C,C=lo(w,10),w=g,g=d;d=n[1]+p+C|0,n[1]=n[2]+v+y|0,n[2]=n[3]+f+m|0,n[3]=n[4]+h+g|0,n[4]=n[0]+u+w|0,n[0]=d}_doFinalize(){const t=this._data,e=t.words,i=8*this._nDataBytes,n=8*t.sigBytes;e[n>>>5]|=128<<24-n%32,e[14+(n+64>>>9<<4)]=16711935&(i<<8|i>>>24)|4278255360&(i<<24|i>>>8),t.sigBytes=4*(e.length+1),this._process();const o=this._hash,s=o.words;for(let t=0;t<5;t+=1){const e=s[t];s[t]=16711935&(e<<8|e>>>24)|4278255360&(e<<24|e>>>8)}return o}clone(){const t=super.clone.call(this);return t._hash=this._hash.clone(),t}}const ho=Vi._createHelper(co),uo=Vi._createHmacHelper(co);class po extends Fi{constructor(t){super(),this.cfg=Object.assign(new Fi,{keySize:4,hasher:gn,iterations:1},t)}compute(t,e){const{cfg:i}=this,n=ji.create(i.hasher,t),o=Ti.create(),s=Ti.create([1]),r=o.words,a=s.words,{keySize:l,iterations:c}=i;for(;r.length<l;){const t=n.update(e).finalize(s);n.reset();const i=t.words,r=i.length;let l=t;for(let t=1;t<c;t+=1){l=n.finalize(l),n.reset();const t=l.words;for(let e=0;e<r;e+=1)i[e]^=t[e]}o.concat(t),a[0]+=1}return o.sigBytes=4*l,o}}const vo=[],fo=[],mo=[],go=[],wo=[],Co=[],yo=[],bo=[],xo=[],So=[],Eo=[];for(let t=0;t<256;t+=1)Eo[t]=t<128?t<<1:t<<1^283;let ko=0,Ao=0;for(let t=0;t<256;t+=1){let t=Ao^Ao<<1^Ao<<2^Ao<<3^Ao<<4;t=t>>>8^255&t^99,vo[ko]=t,fo[t]=ko;const e=Eo[ko],i=Eo[e],n=Eo[i];let o=257*Eo[t]^16843008*t;mo[ko]=o<<24|o>>>8,go[ko]=o<<16|o>>>16,wo[ko]=o<<8|o>>>24,Co[ko]=o,o=16843009*n^65537*i^257*e^16843008*ko,yo[t]=o<<24|o>>>8,bo[t]=o<<16|o>>>16,xo[t]=o<<8|o>>>24,So[t]=o,ko?(ko=e^Eo[Eo[Eo[n^e]]],Ao^=Eo[Eo[Ao]]):(Ao=1,ko=Ao)}const Io=[0,1,2,4,8,16,32,64,128,27,54];class $o extends rn{_doReset(){let t;if(this._nRounds&&this._keyPriorReset===this._key)return;this._keyPriorReset=this._key;const e=this._keyPriorReset,i=e.words,n=e.sigBytes/4;this._nRounds=n+6;const o=4*(this._nRounds+1);this._keySchedule=[];const s=this._keySchedule;for(let e=0;e<o;e+=1)e<n?s[e]=i[e]:(t=s[e-1],e%n?n>6&&e%n==4&&(t=vo[t>>>24]<<24|vo[t>>>16&255]<<16|vo[t>>>8&255]<<8|vo[255&t]):(t=t<<8|t>>>24,t=vo[t>>>24]<<24|vo[t>>>16&255]<<16|vo[t>>>8&255]<<8|vo[255&t],t^=Io[e/n|0]<<24),s[e]=s[e-n]^t);this._invKeySchedule=[];const r=this._invKeySchedule;for(let e=0;e<o;e+=1){const i=o-e;t=e%4?s[i]:s[i-4],r[e]=e<4||i<=4?t:yo[vo[t>>>24]]^bo[vo[t>>>16&255]]^xo[vo[t>>>8&255]]^So[vo[255&t]]}}encryptBlock(t,e){this._doCryptBlock(t,e,this._keySchedule,mo,go,wo,Co,vo)}decryptBlock(t,e){const i=t;let n=i[e+1];i[e+1]=i[e+3],i[e+3]=n,this._doCryptBlock(i,e,this._invKeySchedule,yo,bo,xo,So,fo),n=i[e+1],i[e+1]=i[e+3],i[e+3]=n}_doCryptBlock(t,e,i,n,o,s,r,a){const l=t,c=this._nRounds;let d=l[e]^i[0],h=l[e+1]^i[1],u=l[e+2]^i[2],p=l[e+3]^i[3],v=4;for(let t=1;t<c;t+=1){const t=n[d>>>24]^o[h>>>16&255]^s[u>>>8&255]^r[255&p]^i[v];v+=1;const e=n[h>>>24]^o[u>>>16&255]^s[p>>>8&255]^r[255&d]^i[v];v+=1;const a=n[u>>>24]^o[p>>>16&255]^s[d>>>8&255]^r[255&h]^i[v];v+=1;const l=n[p>>>24]^o[d>>>16&255]^s[h>>>8&255]^r[255&u]^i[v];v+=1,d=t,h=e,u=a,p=l}const f=(a[d>>>24]<<24|a[h>>>16&255]<<16|a[u>>>8&255]<<8|a[255&p])^i[v];v+=1;const m=(a[h>>>24]<<24|a[u>>>16&255]<<16|a[p>>>8&255]<<8|a[255&d])^i[v];v+=1;const g=(a[u>>>24]<<24|a[p>>>16&255]<<16|a[d>>>8&255]<<8|a[255&h])^i[v];v+=1;const w=(a[p>>>24]<<24|a[d>>>16&255]<<16|a[h>>>8&255]<<8|a[255&u])^i[v];v+=1,l[e]=f,l[e+1]=m,l[e+2]=g,l[e+3]=w}}$o.keySize=8;const Lo=rn._createHelper($o),Mo=[57,49,41,33,25,17,9,1,58,50,42,34,26,18,10,2,59,51,43,35,27,19,11,3,60,52,44,36,63,55,47,39,31,23,15,7,62,54,46,38,30,22,14,6,61,53,45,37,29,21,13,5,28,20,12,4],_o=[14,17,11,24,1,5,3,28,15,6,21,10,23,19,12,4,26,8,16,7,27,20,13,2,41,52,31,37,47,55,30,40,51,45,33,48,44,49,39,56,34,53,46,42,50,36,29,32],Fo=[1,2,4,6,8,10,12,14,15,17,19,21,23,25,27,28],To=[{0:8421888,268435456:32768,536870912:8421378,805306368:2,1073741824:512,1342177280:8421890,1610612736:8389122,1879048192:8388608,2147483648:514,2415919104:8389120,2684354560:33280,2952790016:8421376,3221225472:32770,3489660928:8388610,3758096384:0,4026531840:33282,134217728:0,402653184:8421890,671088640:33282,939524096:32768,1207959552:8421888,1476395008:512,1744830464:8421378,2013265920:2,2281701376:8389120,2550136832:33280,2818572288:8421376,3087007744:8389122,3355443200:8388610,3623878656:32770,3892314112:514,4160749568:8388608,1:32768,268435457:2,536870913:8421888,805306369:8388608,1073741825:8421378,1342177281:33280,1610612737:512,1879048193:8389122,2147483649:8421890,2415919105:8421376,2684354561:8388610,2952790017:33282,3221225473:514,3489660929:8389120,3758096385:32770,4026531841:0,134217729:8421890,402653185:8421376,671088641:8388608,939524097:512,1207959553:32768,1476395009:8388610,1744830465:2,2013265921:33282,2281701377:32770,2550136833:8389122,2818572289:514,3087007745:8421888,3355443201:8389120,3623878657:0,3892314113:33280,4160749569:8421378},{0:1074282512,16777216:16384,33554432:524288,50331648:1074266128,67108864:1073741840,83886080:1074282496,100663296:1073758208,117440512:16,134217728:540672,150994944:1073758224,167772160:1073741824,184549376:540688,201326592:524304,218103808:0,234881024:16400,251658240:1074266112,8388608:1073758208,25165824:540688,41943040:16,58720256:1073758224,75497472:1074282512,92274688:1073741824,109051904:524288,125829120:1074266128,142606336:524304,159383552:0,176160768:16384,192937984:1074266112,209715200:1073741840,226492416:540672,243269632:1074282496,260046848:16400,268435456:0,285212672:1074266128,301989888:1073758224,318767104:1074282496,335544320:1074266112,352321536:16,369098752:540688,385875968:16384,402653184:16400,419430400:524288,436207616:524304,452984832:1073741840,469762048:540672,486539264:1073758208,503316480:1073741824,520093696:1074282512,276824064:540688,293601280:524288,310378496:1074266112,327155712:16384,343932928:1073758208,360710144:1074282512,377487360:16,394264576:1073741824,411041792:1074282496,427819008:1073741840,444596224:1073758224,461373440:524304,478150656:0,494927872:16400,511705088:1074266128,528482304:540672},{0:260,1048576:0,2097152:67109120,3145728:65796,4194304:65540,5242880:67108868,6291456:67174660,7340032:67174400,8388608:67108864,9437184:67174656,10485760:65792,11534336:67174404,12582912:67109124,13631488:65536,14680064:4,15728640:256,524288:67174656,1572864:67174404,2621440:0,3670016:67109120,4718592:67108868,5767168:65536,6815744:65540,7864320:260,8912896:4,9961472:256,11010048:67174400,12058624:65796,13107200:65792,14155776:67109124,15204352:67174660,16252928:67108864,16777216:67174656,17825792:65540,18874368:65536,19922944:67109120,20971520:256,22020096:67174660,23068672:67108868,24117248:0,25165824:67109124,26214400:67108864,27262976:4,28311552:65792,29360128:67174400,30408704:260,31457280:65796,32505856:67174404,17301504:67108864,18350080:260,19398656:67174656,20447232:0,21495808:65540,22544384:67109120,23592960:256,24641536:67174404,25690112:65536,26738688:67174660,27787264:65796,28835840:67108868,29884416:67109124,30932992:67174400,31981568:4,33030144:65792},{0:2151682048,65536:2147487808,131072:4198464,196608:2151677952,262144:0,327680:4198400,393216:2147483712,458752:4194368,524288:2147483648,589824:4194304,655360:64,720896:2147487744,786432:2151678016,851968:4160,917504:4096,983040:2151682112,32768:2147487808,98304:64,163840:2151678016,229376:2147487744,294912:4198400,360448:2151682112,425984:0,491520:2151677952,557056:4096,622592:2151682048,688128:4194304,753664:4160,819200:2147483648,884736:4194368,950272:4198464,1015808:2147483712,1048576:4194368,1114112:4198400,1179648:2147483712,1245184:0,1310720:4160,1376256:2151678016,1441792:2151682048,1507328:2147487808,1572864:2151682112,1638400:2147483648,1703936:2151677952,1769472:4198464,1835008:2147487744,1900544:4194304,1966080:64,2031616:4096,1081344:2151677952,1146880:2151682112,1212416:0,1277952:4198400,1343488:4194368,1409024:2147483648,1474560:2147487808,1540096:64,1605632:2147483712,1671168:4096,1736704:2147487744,1802240:2151678016,1867776:4160,1933312:2151682048,1998848:4194304,2064384:4198464},{0:128,4096:17039360,8192:262144,12288:536870912,16384:537133184,20480:16777344,24576:553648256,28672:262272,32768:16777216,36864:537133056,40960:536871040,45056:553910400,49152:553910272,53248:0,57344:17039488,61440:553648128,2048:17039488,6144:553648256,10240:128,14336:17039360,18432:262144,22528:537133184,26624:553910272,30720:536870912,34816:537133056,38912:0,43008:553910400,47104:16777344,51200:536871040,55296:553648128,59392:16777216,63488:262272,65536:262144,69632:128,73728:536870912,77824:553648256,81920:16777344,86016:553910272,90112:537133184,94208:16777216,98304:553910400,102400:553648128,106496:17039360,110592:537133056,114688:262272,118784:536871040,122880:0,126976:17039488,67584:553648256,71680:16777216,75776:17039360,79872:537133184,83968:536870912,88064:17039488,92160:128,96256:553910272,100352:262272,104448:553910400,108544:0,112640:553648128,116736:16777344,120832:262144,124928:537133056,129024:536871040},{0:268435464,256:8192,512:270532608,768:270540808,1024:268443648,1280:2097152,1536:2097160,1792:268435456,2048:0,2304:268443656,2560:2105344,2816:8,3072:270532616,3328:2105352,3584:8200,3840:270540800,128:270532608,384:270540808,640:8,896:2097152,1152:2105352,1408:268435464,1664:268443648,1920:8200,2176:2097160,2432:8192,2688:268443656,2944:270532616,3200:0,3456:270540800,3712:2105344,3968:268435456,4096:268443648,4352:270532616,4608:270540808,4864:8200,5120:2097152,5376:268435456,5632:268435464,5888:2105344,6144:2105352,6400:0,6656:8,6912:270532608,7168:8192,7424:268443656,7680:270540800,7936:2097160,4224:8,4480:2105344,4736:2097152,4992:268435464,5248:268443648,5504:8200,5760:270540808,6016:270532608,6272:270540800,6528:270532616,6784:8192,7040:2105352,7296:2097160,7552:0,7808:268435456,8064:268443656},{0:1048576,16:33555457,32:1024,48:1049601,64:34604033,80:0,96:1,112:34603009,128:33555456,144:1048577,160:33554433,176:34604032,192:34603008,208:1025,224:1049600,240:33554432,8:34603009,24:0,40:33555457,56:34604032,72:1048576,88:33554433,104:33554432,120:1025,136:1049601,152:33555456,168:34603008,184:1048577,200:1024,216:34604033,232:1,248:1049600,256:33554432,272:1048576,288:33555457,304:34603009,320:1048577,336:33555456,352:34604032,368:1049601,384:1025,400:34604033,416:1049600,432:1,448:0,464:34603008,480:33554433,496:1024,264:1049600,280:33555457,296:34603009,312:1,328:33554432,344:1048576,360:1025,376:34604032,392:33554433,408:34603008,424:0,440:34604033,456:1049601,472:1024,488:33555456,504:1048577},{0:134219808,1:131072,2:134217728,3:32,4:131104,5:134350880,6:134350848,7:2048,8:134348800,9:134219776,10:133120,11:134348832,12:2080,13:0,14:134217760,15:133152,2147483648:2048,2147483649:134350880,2147483650:134219808,2147483651:134217728,2147483652:134348800,2147483653:133120,2147483654:133152,2147483655:32,2147483656:134217760,2147483657:2080,2147483658:131104,2147483659:134350848,2147483660:0,2147483661:134348832,2147483662:134219776,2147483663:131072,16:133152,17:134350848,18:32,19:2048,20:134219776,21:134217760,22:134348832,23:131072,24:0,25:131104,26:134348800,27:134219808,28:134350880,29:133120,30:2080,31:134217728,2147483664:131072,2147483665:2048,2147483666:134348832,2147483667:133152,2147483668:32,2147483669:134348800,2147483670:134217728,2147483671:134219808,2147483672:134350880,2147483673:134217760,2147483674:134219776,2147483675:0,2147483676:133120,2147483677:2080,2147483678:131104,2147483679:134350848}],Do=[4160749569,528482304,33030144,2064384,129024,8064,504,2147483679];function Oo(t,e){const i=(this._lBlock>>>t^this._rBlock)&e;this._rBlock^=i,this._lBlock^=i<<t}function No(t,e){const i=(this._rBlock>>>t^this._lBlock)&e;this._lBlock^=i,this._rBlock^=i<<t}class Ro extends rn{_doReset(){const t=this._key.words,e=[];for(let i=0;i<56;i+=1){const n=Mo[i]-1;e[i]=t[n>>>5]>>>31-n%32&1}this._subKeys=[];const i=this._subKeys;for(let t=0;t<16;t+=1){i[t]=[];const n=i[t],o=Fo[t];for(let t=0;t<24;t+=1)n[t/6|0]|=e[(_o[t]-1+o)%28]<<31-t%6,n[4+(t/6|0)]|=e[28+(_o[t+24]-1+o)%28]<<31-t%6;n[0]=n[0]<<1|n[0]>>>31;for(let t=1;t<7;t+=1)n[t]>>>=4*(t-1)+3;n[7]=n[7]<<5|n[7]>>>27}this._invSubKeys=[];const n=this._invSubKeys;for(let t=0;t<16;t+=1)n[t]=i[15-t]}encryptBlock(t,e){this._doCryptBlock(t,e,this._subKeys)}decryptBlock(t,e){this._doCryptBlock(t,e,this._invSubKeys)}_doCryptBlock(t,e,i){const n=t;this._lBlock=t[e],this._rBlock=t[e+1],Oo.call(this,4,252645135),Oo.call(this,16,65535),No.call(this,2,858993459),No.call(this,8,16711935),Oo.call(this,1,1431655765);for(let t=0;t<16;t+=1){const e=i[t],n=this._lBlock,o=this._rBlock;let s=0;for(let t=0;t<8;t+=1)s|=To[t][((o^e[t])&Do[t])>>>0];this._lBlock=o,this._rBlock=n^s}const o=this._lBlock;this._lBlock=this._rBlock,this._rBlock=o,Oo.call(this,1,1431655765),No.call(this,8,16711935),No.call(this,2,858993459),Oo.call(this,16,65535),Oo.call(this,4,252645135),n[e]=this._lBlock,n[e+1]=this._rBlock}}Ro.keySize=2,Ro.ivSize=2,Ro.blockSize=2;const Vo=rn._createHelper(Ro);class jo extends rn{_doReset(){const t=this._key.words;if(2!==t.length&&4!==t.length&&t.length<6)throw new Error("Invalid key length - 3DES requires the key length to be 64, 128, 192 or >192.");const e=t.slice(0,2),i=t.length<4?t.slice(0,2):t.slice(2,4),n=t.length<6?t.slice(0,2):t.slice(4,6);this._des1=Ro.createEncryptor(Ti.create(e)),this._des2=Ro.createEncryptor(Ti.create(i)),this._des3=Ro.createEncryptor(Ti.create(n))}encryptBlock(t,e){this._des1.encryptBlock(t,e),this._des2.decryptBlock(t,e),this._des3.encryptBlock(t,e)}decryptBlock(t,e){this._des3.decryptBlock(t,e),this._des2.encryptBlock(t,e),this._des1.decryptBlock(t,e)}}jo.keySize=6,jo.ivSize=2,jo.blockSize=2;const Uo=rn._createHelper(jo),Po=[],Bo=[],Ho=[];function zo(){const t=this._X,e=this._C;for(let t=0;t<8;t+=1)Bo[t]=e[t];e[0]=e[0]+1295307597+this._b|0,e[1]=e[1]+3545052371+(e[0]>>>0<Bo[0]>>>0?1:0)|0,e[2]=e[2]+886263092+(e[1]>>>0<Bo[1]>>>0?1:0)|0,e[3]=e[3]+1295307597+(e[2]>>>0<Bo[2]>>>0?1:0)|0,e[4]=e[4]+3545052371+(e[3]>>>0<Bo[3]>>>0?1:0)|0,e[5]=e[5]+886263092+(e[4]>>>0<Bo[4]>>>0?1:0)|0,e[6]=e[6]+1295307597+(e[5]>>>0<Bo[5]>>>0?1:0)|0,e[7]=e[7]+3545052371+(e[6]>>>0<Bo[6]>>>0?1:0)|0,this._b=e[7]>>>0<Bo[7]>>>0?1:0;for(let i=0;i<8;i+=1){const n=t[i]+e[i],o=65535&n,s=n>>>16,r=((o*o>>>17)+o*s>>>15)+s*s,a=((4294901760&n)*n|0)+((65535&n)*n|0);Ho[i]=r^a}t[0]=Ho[0]+(Ho[7]<<16|Ho[7]>>>16)+(Ho[6]<<16|Ho[6]>>>16)|0,t[1]=Ho[1]+(Ho[0]<<8|Ho[0]>>>24)+Ho[7]|0,t[2]=Ho[2]+(Ho[1]<<16|Ho[1]>>>16)+(Ho[0]<<16|Ho[0]>>>16)|0,t[3]=Ho[3]+(Ho[2]<<8|Ho[2]>>>24)+Ho[1]|0,t[4]=Ho[4]+(Ho[3]<<16|Ho[3]>>>16)+(Ho[2]<<16|Ho[2]>>>16)|0,t[5]=Ho[5]+(Ho[4]<<8|Ho[4]>>>24)+Ho[3]|0,t[6]=Ho[6]+(Ho[5]<<16|Ho[5]>>>16)+(Ho[4]<<16|Ho[4]>>>16)|0,t[7]=Ho[7]+(Ho[6]<<8|Ho[6]>>>24)+Ho[5]|0}class Zo extends tn{constructor(...t){super(...t),this.blockSize=4,this.ivSize=2}_doReset(){const t=this._key.words,{iv:e}=this.cfg;for(let e=0;e<4;e+=1)t[e]=16711935&(t[e]<<8|t[e]>>>24)|4278255360&(t[e]<<24|t[e]>>>8);this._X=[t[0],t[3]<<16|t[2]>>>16,t[1],t[0]<<16|t[3]>>>16,t[2],t[1]<<16|t[0]>>>16,t[3],t[2]<<16|t[1]>>>16];const i=this._X;this._C=[t[2]<<16|t[2]>>>16,4294901760&t[0]|65535&t[1],t[3]<<16|t[3]>>>16,4294901760&t[1]|65535&t[2],t[0]<<16|t[0]>>>16,4294901760&t[2]|65535&t[3],t[1]<<16|t[1]>>>16,4294901760&t[3]|65535&t[0]];const n=this._C;this._b=0;for(let t=0;t<4;t+=1)zo.call(this);for(let t=0;t<8;t+=1)n[t]^=i[t+4&7];if(e){const t=e.words,i=t[0],o=t[1],s=16711935&(i<<8|i>>>24)|4278255360&(i<<24|i>>>8),r=16711935&(o<<8|o>>>24)|4278255360&(o<<24|o>>>8),a=s>>>16|4294901760&r,l=r<<16|65535&s;n[0]^=s,n[1]^=a,n[2]^=r,n[3]^=l,n[4]^=s,n[5]^=a,n[6]^=r,n[7]^=l;for(let t=0;t<4;t+=1)zo.call(this)}}_doProcessBlock(t,e){const i=t,n=this._X;zo.call(this),Po[0]=n[0]^n[5]>>>16^n[3]<<16,Po[1]=n[2]^n[7]>>>16^n[5]<<16,Po[2]=n[4]^n[1]>>>16^n[7]<<16,Po[3]=n[6]^n[3]>>>16^n[1]<<16;for(let t=0;t<4;t+=1)Po[t]=16711935&(Po[t]<<8|Po[t]>>>24)|4278255360&(Po[t]<<24|Po[t]>>>8),i[e+t]^=Po[t]}}const Ko=tn._createHelper(Zo),qo=[],Jo=[],Go=[];function Yo(){const t=this._X,e=this._C;for(let t=0;t<8;t+=1)Jo[t]=e[t];e[0]=e[0]+1295307597+this._b|0,e[1]=e[1]+3545052371+(e[0]>>>0<Jo[0]>>>0?1:0)|0,e[2]=e[2]+886263092+(e[1]>>>0<Jo[1]>>>0?1:0)|0,e[3]=e[3]+1295307597+(e[2]>>>0<Jo[2]>>>0?1:0)|0,e[4]=e[4]+3545052371+(e[3]>>>0<Jo[3]>>>0?1:0)|0,e[5]=e[5]+886263092+(e[4]>>>0<Jo[4]>>>0?1:0)|0,e[6]=e[6]+1295307597+(e[5]>>>0<Jo[5]>>>0?1:0)|0,e[7]=e[7]+3545052371+(e[6]>>>0<Jo[6]>>>0?1:0)|0,this._b=e[7]>>>0<Jo[7]>>>0?1:0;for(let i=0;i<8;i+=1){const n=t[i]+e[i],o=65535&n,s=n>>>16,r=((o*o>>>17)+o*s>>>15)+s*s,a=((4294901760&n)*n|0)+((65535&n)*n|0);Go[i]=r^a}t[0]=Go[0]+(Go[7]<<16|Go[7]>>>16)+(Go[6]<<16|Go[6]>>>16)|0,t[1]=Go[1]+(Go[0]<<8|Go[0]>>>24)+Go[7]|0,t[2]=Go[2]+(Go[1]<<16|Go[1]>>>16)+(Go[0]<<16|Go[0]>>>16)|0,t[3]=Go[3]+(Go[2]<<8|Go[2]>>>24)+Go[1]|0,t[4]=Go[4]+(Go[3]<<16|Go[3]>>>16)+(Go[2]<<16|Go[2]>>>16)|0,t[5]=Go[5]+(Go[4]<<8|Go[4]>>>24)+Go[3]|0,t[6]=Go[6]+(Go[5]<<16|Go[5]>>>16)+(Go[4]<<16|Go[4]>>>16)|0,t[7]=Go[7]+(Go[6]<<8|Go[6]>>>24)+Go[5]|0}class Wo extends tn{constructor(...t){super(...t),this.blockSize=4,this.ivSize=2}_doReset(){const t=this._key.words,{iv:e}=this.cfg;this._X=[t[0],t[3]<<16|t[2]>>>16,t[1],t[0]<<16|t[3]>>>16,t[2],t[1]<<16|t[0]>>>16,t[3],t[2]<<16|t[1]>>>16];const i=this._X;this._C=[t[2]<<16|t[2]>>>16,4294901760&t[0]|65535&t[1],t[3]<<16|t[3]>>>16,4294901760&t[1]|65535&t[2],t[0]<<16|t[0]>>>16,4294901760&t[2]|65535&t[3],t[1]<<16|t[1]>>>16,4294901760&t[3]|65535&t[0]];const n=this._C;this._b=0;for(let t=0;t<4;t+=1)Yo.call(this);for(let t=0;t<8;t+=1)n[t]^=i[t+4&7];if(e){const t=e.words,i=t[0],o=t[1],s=16711935&(i<<8|i>>>24)|4278255360&(i<<24|i>>>8),r=16711935&(o<<8|o>>>24)|4278255360&(o<<24|o>>>8),a=s>>>16|4294901760&r,l=r<<16|65535&s;n[0]^=s,n[1]^=a,n[2]^=r,n[3]^=l,n[4]^=s,n[5]^=a,n[6]^=r,n[7]^=l;for(let t=0;t<4;t+=1)Yo.call(this)}}_doProcessBlock(t,e){const i=t,n=this._X;Yo.call(this),qo[0]=n[0]^n[5]>>>16^n[3]<<16,qo[1]=n[2]^n[7]>>>16^n[5]<<16,qo[2]=n[4]^n[1]>>>16^n[7]<<16,qo[3]=n[6]^n[3]>>>16^n[1]<<16;for(let t=0;t<4;t+=1)qo[t]=16711935&(qo[t]<<8|qo[t]>>>24)|4278255360&(qo[t]<<24|qo[t]>>>8),i[e+t]^=qo[t]}}const Xo=tn._createHelper(Wo);function Qo(){const t=this._S;let e=this._i,i=this._j,n=0;for(let o=0;o<4;o+=1){e=(e+1)%256,i=(i+t[e])%256;const s=t[e];t[e]=t[i],t[i]=s,n|=t[(t[e]+t[i])%256]<<24-8*o}return this._i=e,this._j=i,n}class ts extends tn{_doReset(){const t=this._key,e=t.words,i=t.sigBytes;this._S=[];const n=this._S;for(let t=0;t<256;t+=1)n[t]=t;for(let t=0,o=0;t<256;t+=1){const s=t%i,r=e[s>>>2]>>>24-s%4*8&255;o=(o+n[t]+r)%256;const a=n[t];n[t]=n[o],n[o]=a}this._j=0,this._i=this._j}_doProcessBlock(t,e){t[e]^=Qo.call(this)}}ts.keySize=8,ts.ivSize=0;const es=tn._createHelper(ts);class is extends ts{constructor(...t){super(...t),Object.assign(this.cfg,{drop:192})}_doReset(){super._doReset.call(this);for(let t=this.cfg.drop;t>0;t-=1)Qo.call(this)}}const ns=tn._createHelper(is);function os(t,e,i,n){const o=t;let s;const r=this._iv;r?(s=r.slice(0),this._iv=void 0):s=this._prevBlock,n.encryptBlock(s,0);for(let t=0;t<i;t+=1)o[e+t]^=s[t]}class ss extends en{}ss.Encryptor=class extends ss{processBlock(t,e){const i=this._cipher,{blockSize:n}=i;os.call(this,t,e,n,i),this._prevBlock=t.slice(e,e+n)}},ss.Decryptor=class extends ss{processBlock(t,e){const i=this._cipher,{blockSize:n}=i,o=t.slice(e,e+n);os.call(this,t,e,n,i),this._prevBlock=o}};class rs extends en{}rs.Encryptor=class extends rs{processBlock(t,e){const i=t,n=this._cipher,{blockSize:o}=n,s=this._iv;let r=this._counter;s&&(this._counter=s.slice(0),r=this._counter,this._iv=void 0);const a=r.slice(0);n.encryptBlock(a,0),r[o-1]=r[o-1]+1|0;for(let t=0;t<o;t+=1)i[e+t]^=a[t]}},rs.Decryptor=rs.Encryptor;const as=t=>{let e=t;if(255==(t>>24&255)){let i=t>>16&255,n=t>>8&255,o=255&t;255===i?(i=0,255===n?(n=0,255===o?o=0:o+=1):n+=1):i+=1,e=0,e+=i<<16,e+=n<<8,e+=o}else e+=1<<24;return e};
903
903
  /** @preserve
904
904
  * Counter block mode compatible with Dr Brian Gladman fileenc.c
905
905
  * derived from CryptoJS.mode.CTR
906
906
  * Jan Hruby jhruby.web@gmail.com
907
907
  */
908
- class ls extends en{}ls.Encryptor=class extends ls{processBlock(t,e){const i=t,n=this._cipher,{blockSize:o}=n,s=this._iv;let r=this._counter;s&&(this._counter=s.slice(0),r=this._counter,this._iv=void 0),(t=>{const e=t;e[0]=as(e[0]),0===e[0]&&(e[1]=as(e[1]))})(r);const a=r.slice(0);n.encryptBlock(a,0);for(let t=0;t<o;t+=1)i[e+t]^=a[t]}},ls.Decryptor=ls.Encryptor;class cs extends en{}cs.Encryptor=class extends cs{processBlock(t,e){this._cipher.encryptBlock(t,e)}},cs.Decryptor=class extends cs{processBlock(t,e){this._cipher.decryptBlock(t,e)}};class ds extends en{}ds.Encryptor=class extends ds{processBlock(t,e){const i=t,n=this._cipher,{blockSize:o}=n,s=this._iv;let r=this._keystream;s&&(this._keystream=s.slice(0),r=this._keystream,this._iv=void 0),n.encryptBlock(r,0);for(let t=0;t<o;t+=1)i[e+t]^=r[t]}},ds.Decryptor=ds.Encryptor;const hs={pad(t,e){const i=4*e,n=i-t.sigBytes%i;t.concat(Ti.random(n-1)).concat(Ti.create([n<<24],1))},unpad(t){const e=t,i=255&e.words[e.sigBytes-1>>>2];e.sigBytes-=i}},us={pad(t,e){const i=t,n=4*e;i.clamp(),i.sigBytes+=n-(t.sigBytes%n||n)},unpad(t){const e=t,i=e.words;for(let t=e.sigBytes-1;t>=0;t-=1)if(i[t>>>2]>>>24-t%4*8&255){e.sigBytes=t+1;break}}},ps={pad(t,e){t.concat(Ti.create([2147483648],1)),us.pad(t,e)},unpad(t){const e=t;us.unpad(e),e.sigBytes-=1}},vs={stringify:t=>t.ciphertext.toString(Di),parse(t){const e=Di.parse(t);return an.create({ciphertext:e})}};var fs={lib:{Base:Fi,WordArray:Ti,BufferedBlockAlgorithm:Ri,Hasher:Vi,Cipher:Qi,StreamCipher:tn,BlockCipherMode:en,BlockCipher:rn,CipherParams:an,SerializableCipher:cn,PasswordBasedCipher:hn},x64:{Word:Pi,WordArray:Bi},enc:{Hex:Di,Latin1:Oi,Utf8:Ni,Utf16:vn,Utf16BE:pn,Utf16LE:fn,Base64:Hi},algo:{HMAC:ji,MD5:Gi,SHA1:gn,SHA224:_n,SHA256:In,SHA384:Vn,SHA512:On,SHA3:Jn,RIPEMD160:co,PBKDF2:po,EvpKDF:Xi,AES:$o,DES:Ro,TripleDES:jo,Rabbit:Zo,RabbitLegacy:Wo,RC4:ts,RC4Drop:is},mode:{CBC:on,CFB:ss,CTR:rs,CTRGladman:ls,ECB:cs,OFB:ds},pad:{Pkcs7:sn,AnsiX923:{pad(t,e){const i=t,n=i.sigBytes,o=4*e,s=o-n%o,r=n+s-1;i.clamp(),i.words[r>>>2]|=s<<24-r%4*8,i.sigBytes+=s},unpad(t){const e=t,i=255&e.words[e.sigBytes-1>>>2];e.sigBytes-=i}},Iso10126:hs,Iso97971:ps,NoPadding:{pad(){},unpad(){}},ZeroPadding:us},format:{OpenSSL:ln,Hex:vs},kdf:{OpenSSL:dn},MD5:Yi,HmacMD5:Wi,SHA1:wn,HmacSHA1:Cn,SHA224:Mn,HmacSHA224:Fn,SHA256:$n,HmacSHA256:Ln,SHA384:jn,HmacSHA384:Un,SHA512:Nn,HmacSHA512:Rn,SHA3:Gn,HmacSHA3:Yn,RIPEMD160:ho,HmacRIPEMD160:uo,PBKDF2:(t,e,i)=>po.create(i).compute(t,e),EvpKDF:(t,e,i)=>Xi.create(i).compute(t,e),AES:Lo,DES:Vo,TripleDES:Uo,Rabbit:Ko,RabbitLegacy:Xo,RC4:es,RC4Drop:ns};const ms=(t,e,i=!1,n="localStorage")=>{try{const o=i?btoa(e):e;"localStorage"===n?localStorage.setItem(t,o):sessionStorage.setItem(t,o)}catch(t){console.warn("Error in setLocalStorage: ",t),Ls("Error in setLocalStorage: ",t)}},gs=(t,e=!1,i="localStorage")=>{try{let n=null;return n="localStorage"===i?localStorage.getItem(t):sessionStorage.getItem(t),n&&e?atob(n):n}catch(t){return console.warn("Error in getLocalStorage: ",t),Ls("Error in getLocalStorage: ",t),null}},ws=(t,e="localStorage")=>{try{"localStorage"===e?localStorage.removeItem(t):sessionStorage.removeItem(t)}catch(t){console.warn("Error in removeLocalStorageData: ",t),Ls("Error in removeLocalStorageData: ",t)}},Cs=(...t)=>{if(t)switch(t.length){case 1:return r`calc(${t[0]}rem * var(--snippyly-base-rem-unit, 1))`;case 2:return r`calc(${t[0]}rem * var(--snippyly-base-rem-unit, 1)) calc(${t[1]}rem * var(--snippyly-base-rem-unit, 1))`;case 3:return r`calc(${t[0]}rem * var(--snippyly-base-rem-unit, 1)) calc(${t[1]}rem * var(--snippyly-base-rem-unit, 1))
908
+ class ls extends en{}ls.Encryptor=class extends ls{processBlock(t,e){const i=t,n=this._cipher,{blockSize:o}=n,s=this._iv;let r=this._counter;s&&(this._counter=s.slice(0),r=this._counter,this._iv=void 0),(t=>{const e=t;e[0]=as(e[0]),0===e[0]&&(e[1]=as(e[1]))})(r);const a=r.slice(0);n.encryptBlock(a,0);for(let t=0;t<o;t+=1)i[e+t]^=a[t]}},ls.Decryptor=ls.Encryptor;class cs extends en{}cs.Encryptor=class extends cs{processBlock(t,e){this._cipher.encryptBlock(t,e)}},cs.Decryptor=class extends cs{processBlock(t,e){this._cipher.decryptBlock(t,e)}};class ds extends en{}ds.Encryptor=class extends ds{processBlock(t,e){const i=t,n=this._cipher,{blockSize:o}=n,s=this._iv;let r=this._keystream;s&&(this._keystream=s.slice(0),r=this._keystream,this._iv=void 0),n.encryptBlock(r,0);for(let t=0;t<o;t+=1)i[e+t]^=r[t]}},ds.Decryptor=ds.Encryptor;const hs={pad(t,e){const i=4*e,n=i-t.sigBytes%i;t.concat(Ti.random(n-1)).concat(Ti.create([n<<24],1))},unpad(t){const e=t,i=255&e.words[e.sigBytes-1>>>2];e.sigBytes-=i}},us={pad(t,e){const i=t,n=4*e;i.clamp(),i.sigBytes+=n-(t.sigBytes%n||n)},unpad(t){const e=t,i=e.words;for(let t=e.sigBytes-1;t>=0;t-=1)if(i[t>>>2]>>>24-t%4*8&255){e.sigBytes=t+1;break}}},ps={pad(t,e){t.concat(Ti.create([2147483648],1)),us.pad(t,e)},unpad(t){const e=t;us.unpad(e),e.sigBytes-=1}},vs={stringify:t=>t.ciphertext.toString(Di),parse(t){const e=Di.parse(t);return an.create({ciphertext:e})}};var fs={lib:{Base:Fi,WordArray:Ti,BufferedBlockAlgorithm:Ri,Hasher:Vi,Cipher:Qi,StreamCipher:tn,BlockCipherMode:en,BlockCipher:rn,CipherParams:an,SerializableCipher:cn,PasswordBasedCipher:hn},x64:{Word:Pi,WordArray:Bi},enc:{Hex:Di,Latin1:Oi,Utf8:Ni,Utf16:vn,Utf16BE:pn,Utf16LE:fn,Base64:Hi},algo:{HMAC:ji,MD5:Gi,SHA1:gn,SHA224:Mn,SHA256:In,SHA384:Vn,SHA512:On,SHA3:Jn,RIPEMD160:co,PBKDF2:po,EvpKDF:Xi,AES:$o,DES:Ro,TripleDES:jo,Rabbit:Zo,RabbitLegacy:Wo,RC4:ts,RC4Drop:is},mode:{CBC:on,CFB:ss,CTR:rs,CTRGladman:ls,ECB:cs,OFB:ds},pad:{Pkcs7:sn,AnsiX923:{pad(t,e){const i=t,n=i.sigBytes,o=4*e,s=o-n%o,r=n+s-1;i.clamp(),i.words[r>>>2]|=s<<24-r%4*8,i.sigBytes+=s},unpad(t){const e=t,i=255&e.words[e.sigBytes-1>>>2];e.sigBytes-=i}},Iso10126:hs,Iso97971:ps,NoPadding:{pad(){},unpad(){}},ZeroPadding:us},format:{OpenSSL:ln,Hex:vs},kdf:{OpenSSL:dn},MD5:Yi,HmacMD5:Wi,SHA1:wn,HmacSHA1:Cn,SHA224:_n,HmacSHA224:Fn,SHA256:$n,HmacSHA256:Ln,SHA384:jn,HmacSHA384:Un,SHA512:Nn,HmacSHA512:Rn,SHA3:Gn,HmacSHA3:Yn,RIPEMD160:ho,HmacRIPEMD160:uo,PBKDF2:(t,e,i)=>po.create(i).compute(t,e),EvpKDF:(t,e,i)=>Xi.create(i).compute(t,e),AES:Lo,DES:Vo,TripleDES:Uo,Rabbit:Ko,RabbitLegacy:Xo,RC4:es,RC4Drop:ns};const ms=(t,e,i=!1,n="localStorage")=>{try{const o=i?btoa(e):e;"localStorage"===n?localStorage.setItem(t,o):sessionStorage.setItem(t,o)}catch(t){console.warn("Error in setLocalStorage: ",t),Ls("Error in setLocalStorage: ",t)}},gs=(t,e=!1,i="localStorage")=>{try{let n=null;return n="localStorage"===i?localStorage.getItem(t):sessionStorage.getItem(t),n&&e?atob(n):n}catch(t){return console.warn("Error in getLocalStorage: ",t),Ls("Error in getLocalStorage: ",t),null}},ws=(t,e="localStorage")=>{try{"localStorage"===e?localStorage.removeItem(t):sessionStorage.removeItem(t)}catch(t){console.warn("Error in removeLocalStorageData: ",t),Ls("Error in removeLocalStorageData: ",t)}},Cs=(...t)=>{if(t)switch(t.length){case 1:return r`calc(${t[0]}rem * var(--snippyly-base-rem-unit, 1))`;case 2:return r`calc(${t[0]}rem * var(--snippyly-base-rem-unit, 1)) calc(${t[1]}rem * var(--snippyly-base-rem-unit, 1))`;case 3:return r`calc(${t[0]}rem * var(--snippyly-base-rem-unit, 1)) calc(${t[1]}rem * var(--snippyly-base-rem-unit, 1))
909
909
  calc(${t[2]}rem * var(--snippyly-base-rem-unit, 1))`;case 4:return r`calc(${t[0]}rem * var(--snippyly-base-rem-unit, 1)) calc(${t[1]}rem * var(--snippyly-base-rem-unit, 1))
910
- calc(${t[2]}rem * var(--snippyly-base-rem-unit, 1)) calc(${t[3]}rem * var(--snippyly-base-rem-unit, 1))`}return r`0`},ys=(t,e,i)=>{try{const n=fs.enc.Utf8.parse(e),o=fs.enc.Utf8.parse(i);return fs.AES.encrypt(fs.enc.Utf8.parse(t),n,{keySize:32,iv:o,mode:fs.mode.CBC,padding:fs.pad.Pkcs7}).toString()}catch(e){return console.warn("Error in encrypt: ",e),Ls("Error in encrypt: ",e),t}},bs=(t,e,i)=>{try{const n=fs.enc.Utf8.parse(e),o=fs.enc.Utf8.parse(i);return fs.AES.decrypt(t,n,{keySize:32,iv:o,mode:fs.mode.CBC,padding:fs.pad.Pkcs7}).toString(fs.enc.Utf8)}catch(t){return console.warn("Error in decrypt: ",t),Ls("Error in decrypt: ",t),null}},xs=()=>{try{const t=gs("_sfut",!0);if(t){const e=bs(t,ft,mt);if(e)return JSON.parse(e);console.warn("Error in getUserFromToken: ","Invalid token."),ws("_sfut")}else{const t=gs("snippyly-user",!0);if(t)return Ss(),JSON.parse(t)}return null}catch(t){return console.warn("Error in getUserFromToken: ",t),Ls("Error in getUserFromToken: ",t),null}},Ss=()=>{try{const t=gs("snippyly-user",!0);if(t){const e=ys(t,ft,mt);ms("_sfut",e,!0)}ws("snippyly-user")}catch(t){console.warn("Error in moveSnippylyUserToST: ",t),Ls("Error in moveSnippylyUserToST: ",t)}},Es=function(t=function(t="[DEFAULT]"){const e=de.get(t);if(!e&&"[DEFAULT]"===t)return me();if(!e)throw ve.create("no-app",{appName:t});return e}(),e="us-central1"){const i=function(t,e){const i=t.container.getProvider("heartbeat").getImmediate({optional:!0});return i&&i.triggerHeartbeat(),t.container.getProvider(e)}(Dt(t),"functions"),n=i.getImmediate({identifier:e}),o=Et("functions");return o&&function(t,e,i){!function(t,e,i){t.emulatorOrigin=`http://${e}:${i}`}(Dt(t),e,i)}(n,...o),n}(me({apiKey:"AIzaSyAzcW2n1JhY_zhkXmuFcwe550AkwmYeJ0w",projectId:"snipply-sdk-staging",messagingSenderId:"877538579326",appId:"1:877538579326:web:f793f73f2b7dc770c4992f"}));let ks,As={};const Is=(t={})=>{As={...As,...t}},$s=t=>{ks=t},Ls=(t,e,i={})=>{const n={error:t,message:(null==e?void 0:e.message)||e||t,...i};_s("error",n)},_s=(t,e={},i=!0)=>{try{if(null==ks?void 0:ks.userSnippylyId){e=i?{...As,...e}:e,e={...e,source:"superflowToolbar"};const n={userId:null==ks?void 0:ks.userSnippylyId,event:t,properties:e,sf:!0};Ms("track",n)}else console.warn("Untracked event: ",t,e)}catch(t){console.warn("Error in trackEvent: ",t)}},Ms=(t,e)=>{try{Ve(Es,"sa")({type:t,data:e})}catch(t){console.warn("Error in setAnalytics: ",t)}},Fs=r`
910
+ calc(${t[2]}rem * var(--snippyly-base-rem-unit, 1)) calc(${t[3]}rem * var(--snippyly-base-rem-unit, 1))`}return r`0`},ys=(t,e,i)=>{try{const n=fs.enc.Utf8.parse(e),o=fs.enc.Utf8.parse(i);return fs.AES.encrypt(fs.enc.Utf8.parse(t),n,{keySize:32,iv:o,mode:fs.mode.CBC,padding:fs.pad.Pkcs7}).toString()}catch(e){return console.warn("Error in encrypt: ",e),Ls("Error in encrypt: ",e),t}},bs=(t,e,i)=>{try{const n=fs.enc.Utf8.parse(e),o=fs.enc.Utf8.parse(i);return fs.AES.decrypt(t,n,{keySize:32,iv:o,mode:fs.mode.CBC,padding:fs.pad.Pkcs7}).toString(fs.enc.Utf8)}catch(t){return console.warn("Error in decrypt: ",t),Ls("Error in decrypt: ",t),null}},xs=()=>{try{const t=gs("_sfut",!0);if(t){const e=bs(t,ft,mt);if(e)return JSON.parse(e);console.warn("Error in getUserFromToken: ","Invalid token."),ws("_sfut")}else{const t=gs("snippyly-user",!0);if(t)return Ss(),JSON.parse(t)}return null}catch(t){return console.warn("Error in getUserFromToken: ",t),Ls("Error in getUserFromToken: ",t),null}},Ss=()=>{try{const t=gs("snippyly-user",!0);if(t){const e=ys(t,ft,mt);ms("_sfut",e,!0)}ws("snippyly-user")}catch(t){console.warn("Error in moveSnippylyUserToST: ",t),Ls("Error in moveSnippylyUserToST: ",t)}},Es=function(t=function(t="[DEFAULT]"){const e=de.get(t);if(!e&&"[DEFAULT]"===t)return me();if(!e)throw ve.create("no-app",{appName:t});return e}(),e="us-central1"){const i=function(t,e){const i=t.container.getProvider("heartbeat").getImmediate({optional:!0});return i&&i.triggerHeartbeat(),t.container.getProvider(e)}(Dt(t),"functions"),n=i.getImmediate({identifier:e}),o=Et("functions");return o&&function(t,e,i){!function(t,e,i){t.emulatorOrigin=`http://${e}:${i}`}(Dt(t),e,i)}(n,...o),n}(me({apiKey:"AIzaSyAzcW2n1JhY_zhkXmuFcwe550AkwmYeJ0w",projectId:"snipply-sdk-staging",messagingSenderId:"877538579326",appId:"1:877538579326:web:f793f73f2b7dc770c4992f"}));let ks,As={};const Is=(t={})=>{As={...As,...t}},$s=t=>{ks=t},Ls=(t,e,i={})=>{const n={error:t,message:(null==e?void 0:e.message)||e||t,...i};Ms("error",n)},Ms=(t,e={},i=!0)=>{try{if(null==ks?void 0:ks.userSnippylyId){e=i?{...As,...e}:e,e={...e,source:"superflowToolbar"};const n={userId:null==ks?void 0:ks.userSnippylyId,event:t,properties:e,sf:!0};_s("track",n)}else console.warn("Untracked event: ",t,e)}catch(t){console.warn("Error in trackEvent: ",t)}},_s=(t,e)=>{try{Ve(Es,"sa")({type:t,data:e})}catch(t){console.warn("Error in setAnalytics: ",t)}},Fs=r`
911
911
 
912
912
  .wrap {
913
913
  padding: 32px;
@@ -1949,7 +1949,7 @@ class ls extends en{}ls.Encryptor=class extends ls{processBlock(t,e){const i=t,n
1949
1949
  <div class="toolbar-section">
1950
1950
  <div class="toolbar-divider"></div>
1951
1951
  </div>
1952
- ${this.snippylyUserRole?T`
1952
+ ${this.snippylyUserRole&&!this.allFeatureDisabled?T`
1953
1953
  <div class="toolbar-section comment-viewmode-section ${st({"d-none":!this.expanded})}">
1954
1954
  <div class="toolbar-actions1 ${st({"d-none":!this.commentElement})}">
1955
1955
  <velt-sidebar-button>
@@ -2233,7 +2233,45 @@ class ls extends en{}ls.Encryptor=class extends ls{processBlock(t,e){const i=t,n
2233
2233
 
2234
2234
  <!-- Below features should only be allowed if user role is available -->
2235
2235
 
2236
- ${this.snippylyUserRole&&!this.isPlanExpired?T`
2236
+ ${!this.snippylyUserRole||this.isPlanExpired||this.allFeatureDisabled?T`
2237
+ ${this.isPlanExpired?T`
2238
+ <div class="tooltip">
2239
+ <div class="tooltiptext">
2240
+ ${this.isUserGlobalContact?T`Your current plan has <br/> expired, please renew <br/> plan to continue.`:T`Your current plan has expired, <br/> please contact admin.`}
2241
+ </div>
2242
+ <div class="s-alert-btn">
2243
+ <div class='error-container'>
2244
+ <svg class="error-icon" width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
2245
+ <path d="M12 3C10.22 3 8.47991 3.52784 6.99987 4.51677C5.51983 5.50571 4.36628 6.91131 3.68509 8.55585C3.0039 10.2004 2.82567 12.01 3.17294 13.7558C3.5202 15.5016 4.37737 17.1053 5.63604 18.364C6.89471 19.6226 8.49836 20.4798 10.2442 20.8271C11.99 21.1743 13.7996 20.9961 15.4442 20.3149C17.0887 19.6337 18.4943 18.4802 19.4832 17.0001C20.4722 15.5201 21 13.78 21 12C20.9975 9.61382 20.0485 7.3261 18.3612 5.63882C16.6739 3.95154 14.3862 3.00252 12 3ZM12 19.6154C10.4938 19.6154 9.02146 19.1687 7.76912 18.332C6.51678 17.4952 5.5407 16.3058 4.96431 14.9143C4.38792 13.5227 4.23711 11.9916 4.53095 10.5143C4.82479 9.03707 5.55008 7.68014 6.61511 6.61511C7.68014 5.55008 9.03708 4.82478 10.5143 4.53094C11.9916 4.2371 13.5228 4.38791 14.9143 4.9643C16.3058 5.54069 17.4952 6.51677 18.332 7.76912C19.1688 9.02146 19.6154 10.4938 19.6154 12C19.6131 14.019 18.81 15.9547 17.3824 17.3824C15.9547 18.81 14.019 19.6131 12 19.6154ZM11.3077 12.6923V7.84615C11.3077 7.66254 11.3806 7.48645 11.5105 7.35662C11.6403 7.22678 11.8164 7.15385 12 7.15385C12.1836 7.15385 12.3597 7.22678 12.4895 7.35662C12.6194 7.48645 12.6923 7.66254 12.6923 7.84615V12.6923C12.6923 12.8759 12.6194 13.052 12.4895 13.1818C12.3597 13.3117 12.1836 13.3846 12 13.3846C11.8164 13.3846 11.6403 13.3117 11.5105 13.1818C11.3806 13.052 11.3077 12.8759 11.3077 12.6923ZM13.0385 15.8077C13.0385 16.0131 12.9776 16.2139 12.8635 16.3846C12.7493 16.5554 12.5872 16.6885 12.3974 16.7671C12.2076 16.8457 11.9988 16.8663 11.7974 16.8262C11.596 16.7861 11.4109 16.6872 11.2657 16.542C11.1205 16.3968 11.0216 16.2117 10.9815 16.0103C10.9414 15.8088 10.962 15.6 11.0406 15.4103C11.1192 15.2205 11.2523 15.0583 11.4231 14.9442C11.5938 14.8301 11.7946 14.7692 12 14.7692C12.2754 14.7692 12.5396 14.8786 12.7343 15.0734C12.9291 15.2681 13.0385 15.5323 13.0385 15.8077Z" fill="currentColor"/>
2246
+ </svg>
2247
+ <div class="error-message">Expired</div>
2248
+ </div>
2249
+ ${this.isUserGlobalContact?T`
2250
+ <div class="s-cta-btn" @click=${()=>this.onUpgradePlanClick()}>
2251
+ Renew Plan
2252
+ </div>
2253
+ `:null}
2254
+ </div>
2255
+ </div>
2256
+ `:null}
2257
+ ${this.snippylyUserRole?null:T`
2258
+ <div class="tooltip ${st({"d-none":!this.expanded||this.addCommentMode})}">
2259
+ <div class="tooltiptext">
2260
+ ${this.snippylyUserRole?null:T`${Os("You don't have access.")} <br/> ${Os("Reach out to the admin of this project.")}`}
2261
+ </div>
2262
+ <div class="s-alert-btn">
2263
+ <div class='error-container'>
2264
+ <svg class="error-icon" width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
2265
+ <path d="M12 3C10.22 3 8.47991 3.52784 6.99987 4.51677C5.51983 5.50571 4.36628 6.91131 3.68509 8.55585C3.0039 10.2004 2.82567 12.01 3.17294 13.7558C3.5202 15.5016 4.37737 17.1053 5.63604 18.364C6.89471 19.6226 8.49836 20.4798 10.2442 20.8271C11.99 21.1743 13.7996 20.9961 15.4442 20.3149C17.0887 19.6337 18.4943 18.4802 19.4832 17.0001C20.4722 15.5201 21 13.78 21 12C20.9975 9.61382 20.0485 7.3261 18.3612 5.63882C16.6739 3.95154 14.3862 3.00252 12 3ZM12 19.6154C10.4938 19.6154 9.02146 19.1687 7.76912 18.332C6.51678 17.4952 5.5407 16.3058 4.96431 14.9143C4.38792 13.5227 4.23711 11.9916 4.53095 10.5143C4.82479 9.03707 5.55008 7.68014 6.61511 6.61511C7.68014 5.55008 9.03708 4.82478 10.5143 4.53094C11.9916 4.2371 13.5228 4.38791 14.9143 4.9643C16.3058 5.54069 17.4952 6.51677 18.332 7.76912C19.1688 9.02146 19.6154 10.4938 19.6154 12C19.6131 14.019 18.81 15.9547 17.3824 17.3824C15.9547 18.81 14.019 19.6131 12 19.6154ZM11.3077 12.6923V7.84615C11.3077 7.66254 11.3806 7.48645 11.5105 7.35662C11.6403 7.22678 11.8164 7.15385 12 7.15385C12.1836 7.15385 12.3597 7.22678 12.4895 7.35662C12.6194 7.48645 12.6923 7.66254 12.6923 7.84615V12.6923C12.6923 12.8759 12.6194 13.052 12.4895 13.1818C12.3597 13.3117 12.1836 13.3846 12 13.3846C11.8164 13.3846 11.6403 13.3117 11.5105 13.1818C11.3806 13.052 11.3077 12.8759 11.3077 12.6923ZM13.0385 15.8077C13.0385 16.0131 12.9776 16.2139 12.8635 16.3846C12.7493 16.5554 12.5872 16.6885 12.3974 16.7671C12.2076 16.8457 11.9988 16.8663 11.7974 16.8262C11.596 16.7861 11.4109 16.6872 11.2657 16.542C11.1205 16.3968 11.0216 16.2117 10.9815 16.0103C10.9414 15.8088 10.962 15.6 11.0406 15.4103C11.1192 15.2205 11.2523 15.0583 11.4231 14.9442C11.5938 14.8301 11.7946 14.7692 12 14.7692C12.2754 14.7692 12.5396 14.8786 12.7343 15.0734C12.9291 15.2681 13.0385 15.5323 13.0385 15.8077Z" fill="currentColor"/>
2266
+ </svg>
2267
+ </div>
2268
+ <div class="s-cta-btn">
2269
+ Request Access
2270
+ </div>
2271
+ </div>
2272
+ </div>
2273
+ `}
2274
+ `:T`
2237
2275
  <!-- divider -->
2238
2276
  <div class="toolbar-section d-xs-none ${st({"d-none":!this.expanded})}">
2239
2277
  <div class="toolbar-divider"></div>
@@ -2387,46 +2425,18 @@ class ls extends en{}ls.Encryptor=class extends ls{processBlock(t,e){const i=t,n
2387
2425
  <!-- divider -->
2388
2426
  <div class="toolbar-section ${st({"d-none":!this.expanded||this.addCommentMode})}">
2389
2427
  <div class="toolbar-divider"></div>
2390
- </div>`:T`
2391
- ${this.isPlanExpired?T`
2392
- <div class="tooltip">
2393
- <div class="tooltiptext">
2394
- ${this.isUserGlobalContact?T`Your current plan has <br/> expired, please renew <br/> plan to continue.`:T`Your current plan has expired, <br/> please contact admin.`}
2395
- </div>
2396
- <div class="s-alert-btn">
2397
- <div class='error-container'>
2398
- <svg class="error-icon" width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
2399
- <path d="M12 3C10.22 3 8.47991 3.52784 6.99987 4.51677C5.51983 5.50571 4.36628 6.91131 3.68509 8.55585C3.0039 10.2004 2.82567 12.01 3.17294 13.7558C3.5202 15.5016 4.37737 17.1053 5.63604 18.364C6.89471 19.6226 8.49836 20.4798 10.2442 20.8271C11.99 21.1743 13.7996 20.9961 15.4442 20.3149C17.0887 19.6337 18.4943 18.4802 19.4832 17.0001C20.4722 15.5201 21 13.78 21 12C20.9975 9.61382 20.0485 7.3261 18.3612 5.63882C16.6739 3.95154 14.3862 3.00252 12 3ZM12 19.6154C10.4938 19.6154 9.02146 19.1687 7.76912 18.332C6.51678 17.4952 5.5407 16.3058 4.96431 14.9143C4.38792 13.5227 4.23711 11.9916 4.53095 10.5143C4.82479 9.03707 5.55008 7.68014 6.61511 6.61511C7.68014 5.55008 9.03708 4.82478 10.5143 4.53094C11.9916 4.2371 13.5228 4.38791 14.9143 4.9643C16.3058 5.54069 17.4952 6.51677 18.332 7.76912C19.1688 9.02146 19.6154 10.4938 19.6154 12C19.6131 14.019 18.81 15.9547 17.3824 17.3824C15.9547 18.81 14.019 19.6131 12 19.6154ZM11.3077 12.6923V7.84615C11.3077 7.66254 11.3806 7.48645 11.5105 7.35662C11.6403 7.22678 11.8164 7.15385 12 7.15385C12.1836 7.15385 12.3597 7.22678 12.4895 7.35662C12.6194 7.48645 12.6923 7.66254 12.6923 7.84615V12.6923C12.6923 12.8759 12.6194 13.052 12.4895 13.1818C12.3597 13.3117 12.1836 13.3846 12 13.3846C11.8164 13.3846 11.6403 13.3117 11.5105 13.1818C11.3806 13.052 11.3077 12.8759 11.3077 12.6923ZM13.0385 15.8077C13.0385 16.0131 12.9776 16.2139 12.8635 16.3846C12.7493 16.5554 12.5872 16.6885 12.3974 16.7671C12.2076 16.8457 11.9988 16.8663 11.7974 16.8262C11.596 16.7861 11.4109 16.6872 11.2657 16.542C11.1205 16.3968 11.0216 16.2117 10.9815 16.0103C10.9414 15.8088 10.962 15.6 11.0406 15.4103C11.1192 15.2205 11.2523 15.0583 11.4231 14.9442C11.5938 14.8301 11.7946 14.7692 12 14.7692C12.2754 14.7692 12.5396 14.8786 12.7343 15.0734C12.9291 15.2681 13.0385 15.5323 13.0385 15.8077Z" fill="currentColor"/>
2400
- </svg>
2401
- <div class="error-message">Expired</div>
2402
- </div>
2403
- ${this.isUserGlobalContact?T`
2404
- <div class="s-cta-btn" @click=${()=>this.onUpgradePlanClick()}>
2405
- Renew Plan
2406
- </div>
2407
- `:null}
2408
- </div>
2409
- </div>
2410
- `:null}
2411
- ${this.snippylyUserRole?null:T`
2412
- <div class="tooltip ${st({"d-none":!this.expanded||this.addCommentMode})}">
2413
- <div class="tooltiptext">
2414
- ${this.snippylyUserRole?null:T`${Os("You don't have access.")} <br/> ${Os("Reach out to the admin of this project.")}`}
2415
- </div>
2416
- <div class="s-alert-btn">
2417
- <div class='error-container'>
2418
- <svg class="error-icon" width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
2419
- <path d="M12 3C10.22 3 8.47991 3.52784 6.99987 4.51677C5.51983 5.50571 4.36628 6.91131 3.68509 8.55585C3.0039 10.2004 2.82567 12.01 3.17294 13.7558C3.5202 15.5016 4.37737 17.1053 5.63604 18.364C6.89471 19.6226 8.49836 20.4798 10.2442 20.8271C11.99 21.1743 13.7996 20.9961 15.4442 20.3149C17.0887 19.6337 18.4943 18.4802 19.4832 17.0001C20.4722 15.5201 21 13.78 21 12C20.9975 9.61382 20.0485 7.3261 18.3612 5.63882C16.6739 3.95154 14.3862 3.00252 12 3ZM12 19.6154C10.4938 19.6154 9.02146 19.1687 7.76912 18.332C6.51678 17.4952 5.5407 16.3058 4.96431 14.9143C4.38792 13.5227 4.23711 11.9916 4.53095 10.5143C4.82479 9.03707 5.55008 7.68014 6.61511 6.61511C7.68014 5.55008 9.03708 4.82478 10.5143 4.53094C11.9916 4.2371 13.5228 4.38791 14.9143 4.9643C16.3058 5.54069 17.4952 6.51677 18.332 7.76912C19.1688 9.02146 19.6154 10.4938 19.6154 12C19.6131 14.019 18.81 15.9547 17.3824 17.3824C15.9547 18.81 14.019 19.6131 12 19.6154ZM11.3077 12.6923V7.84615C11.3077 7.66254 11.3806 7.48645 11.5105 7.35662C11.6403 7.22678 11.8164 7.15385 12 7.15385C12.1836 7.15385 12.3597 7.22678 12.4895 7.35662C12.6194 7.48645 12.6923 7.66254 12.6923 7.84615V12.6923C12.6923 12.8759 12.6194 13.052 12.4895 13.1818C12.3597 13.3117 12.1836 13.3846 12 13.3846C11.8164 13.3846 11.6403 13.3117 11.5105 13.1818C11.3806 13.052 11.3077 12.8759 11.3077 12.6923ZM13.0385 15.8077C13.0385 16.0131 12.9776 16.2139 12.8635 16.3846C12.7493 16.5554 12.5872 16.6885 12.3974 16.7671C12.2076 16.8457 11.9988 16.8663 11.7974 16.8262C11.596 16.7861 11.4109 16.6872 11.2657 16.542C11.1205 16.3968 11.0216 16.2117 10.9815 16.0103C10.9414 15.8088 10.962 15.6 11.0406 15.4103C11.1192 15.2205 11.2523 15.0583 11.4231 14.9442C11.5938 14.8301 11.7946 14.7692 12 14.7692C12.2754 14.7692 12.5396 14.8786 12.7343 15.0734C12.9291 15.2681 13.0385 15.5323 13.0385 15.8077Z" fill="currentColor"/>
2420
- </svg>
2421
- </div>
2422
- <div class="s-cta-btn">
2423
- Request Access
2424
- </div>
2425
- </div>
2426
- </div>
2427
- `}
2428
- `}
2428
+ </div>`}
2429
2429
 
2430
+ ${this.allFeatureDisabled?T`
2431
+ <div class="s-alert-btn">
2432
+ <div class='error-container'>
2433
+ <svg class="error-icon" width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
2434
+ <path d="M12 3C10.22 3 8.47991 3.52784 6.99987 4.51677C5.51983 5.50571 4.36628 6.91131 3.68509 8.55585C3.0039 10.2004 2.82567 12.01 3.17294 13.7558C3.5202 15.5016 4.37737 17.1053 5.63604 18.364C6.89471 19.6226 8.49836 20.4798 10.2442 20.8271C11.99 21.1743 13.7996 20.9961 15.4442 20.3149C17.0887 19.6337 18.4943 18.4802 19.4832 17.0001C20.4722 15.5201 21 13.78 21 12C20.9975 9.61382 20.0485 7.3261 18.3612 5.63882C16.6739 3.95154 14.3862 3.00252 12 3ZM12 19.6154C10.4938 19.6154 9.02146 19.1687 7.76912 18.332C6.51678 17.4952 5.5407 16.3058 4.96431 14.9143C4.38792 13.5227 4.23711 11.9916 4.53095 10.5143C4.82479 9.03707 5.55008 7.68014 6.61511 6.61511C7.68014 5.55008 9.03708 4.82478 10.5143 4.53094C11.9916 4.2371 13.5228 4.38791 14.9143 4.9643C16.3058 5.54069 17.4952 6.51677 18.332 7.76912C19.1688 9.02146 19.6154 10.4938 19.6154 12C19.6131 14.019 18.81 15.9547 17.3824 17.3824C15.9547 18.81 14.019 19.6131 12 19.6154ZM11.3077 12.6923V7.84615C11.3077 7.66254 11.3806 7.48645 11.5105 7.35662C11.6403 7.22678 11.8164 7.15385 12 7.15385C12.1836 7.15385 12.3597 7.22678 12.4895 7.35662C12.6194 7.48645 12.6923 7.66254 12.6923 7.84615V12.6923C12.6923 12.8759 12.6194 13.052 12.4895 13.1818C12.3597 13.3117 12.1836 13.3846 12 13.3846C11.8164 13.3846 11.6403 13.3117 11.5105 13.1818C11.3806 13.052 11.3077 12.8759 11.3077 12.6923ZM13.0385 15.8077C13.0385 16.0131 12.9776 16.2139 12.8635 16.3846C12.7493 16.5554 12.5872 16.6885 12.3974 16.7671C12.2076 16.8457 11.9988 16.8663 11.7974 16.8262C11.596 16.7861 11.4109 16.6872 11.2657 16.542C11.1205 16.3968 11.0216 16.2117 10.9815 16.0103C10.9414 15.8088 10.962 15.6 11.0406 15.4103C11.1192 15.2205 11.2523 15.0583 11.4231 14.9442C11.5938 14.8301 11.7946 14.7692 12 14.7692C12.2754 14.7692 12.5396 14.8786 12.7343 15.0734C12.9291 15.2681 13.0385 15.5323 13.0385 15.8077Z" fill="currentColor"/>
2435
+ </svg>
2436
+ <div class="error-message">Comments Disabled</div>
2437
+ </div>
2438
+ </div>
2439
+ `:null}
2430
2440
  <!-- actions 2 -->
2431
2441
  <div class="toolbar-section user-profile-section ${st({"d-none":!this.expanded||this.addCommentMode})}">
2432
2442
  <div class="toolbar-actions2">