1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[9717],{7309:function(e,t){var i="undefined"!=typeof self?self:this,n=function(){function e(){this.fetch=!1,this.DOMException=i.DOMException}return e.prototype=i,new e}();(function(e){var t={searchParams:"URLSearchParams"in n,iterable:"Symbol"in n&&"iterator"in Symbol,blob:"FileReader"in n&&"Blob"in n&&function(){try{return new Blob,!0}catch(e){return!1}}(),formData:"FormData"in n,arrayBuffer:"ArrayBuffer"in n};if(t.arrayBuffer)var i=["[object Int8Array]","[object Uint8Array]","[object Uint8ClampedArray]","[object Int16Array]","[object Uint16Array]","[object Int32Array]","[object Uint32Array]","[object Float32Array]","[object Float64Array]"],o=ArrayBuffer.isView||function(e){return e&&i.indexOf(Object.prototype.toString.call(e))>-1};function r(e){if("string"!=typeof e&&(e=String(e)),/[^a-z0-9\-#$%&'*+.^_`|~]/i.test(e))throw TypeError("Invalid character in header field name");return e.toLowerCase()}function a(e){return"string"!=typeof e&&(e=String(e)),e}function s(e){var i={next:function(){var t=e.shift();return{done:void 0===t,value:t}}};return t.iterable&&(i[Symbol.iterator]=function(){return i}),i}function c(e){this.map={},e instanceof c?e.forEach(function(e,t){this.append(t,e)},this):Array.isArray(e)?e.forEach(function(e){this.append(e[0],e[1])},this):e&&Object.getOwnPropertyNames(e).forEach(function(t){this.append(t,e[t])},this)}function l(e){if(e.bodyUsed)return Promise.reject(TypeError("Already read"));e.bodyUsed=!0}function d(e){return new Promise(function(t,i){e.onload=function(){t(e.result)},e.onerror=function(){i(e.error)}})}function u(e){var t=new FileReader,i=d(t);return t.readAsArrayBuffer(e),i}function p(e){if(e.slice)return e.slice(0);var t=new Uint8Array(e.byteLength);return t.set(new Uint8Array(e)),t.buffer}function h(){return this.bodyUsed=!1,this._initBody=function(e){if(this._bodyInit=e,e){if("string"==typeof e)this._bodyText=e;else if(t.blob&&Blob.prototype.isPrototypeOf(e))this._bodyBlob=e;else if(t.formData&&FormData.prototype.isPrototypeOf(e))this._bodyFormData=e;else if(t.searchParams&&URLSearchParams.prototype.isPrototypeOf(e))this._bodyText=e.toString();else{var i;t.arrayBuffer&&t.blob&&(i=e)&&DataView.prototype.isPrototypeOf(i)?(this._bodyArrayBuffer=p(e.buffer),this._bodyInit=new Blob([this._bodyArrayBuffer])):t.arrayBuffer&&(ArrayBuffer.prototype.isPrototypeOf(e)||o(e))?this._bodyArrayBuffer=p(e):this._bodyText=e=Object.prototype.toString.call(e)}}else this._bodyText="";!this.headers.get("content-type")&&("string"==typeof e?this.headers.set("content-type","text/plain;charset=UTF-8"):this._bodyBlob&&this._bodyBlob.type?this.headers.set("content-type",this._bodyBlob.type):t.searchParams&&URLSearchParams.prototype.isPrototypeOf(e)&&this.headers.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"))},t.blob&&(this.blob=function(){var e=l(this);if(e)return e;if(this._bodyBlob)return Promise.resolve(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(new Blob([this._bodyArrayBuffer]));if(!this._bodyFormData)return Promise.resolve(new Blob([this._bodyText]));throw Error("could not read FormData body as blob")},this.arrayBuffer=function(){return this._bodyArrayBuffer?l(this)||Promise.resolve(this._bodyArrayBuffer):this.blob().then(u)}),this.text=function(){var e,t,i,n=l(this);if(n)return n;if(this._bodyBlob)return e=this._bodyBlob,i=d(t=new FileReader),t.readAsText(e),i;if(this._bodyArrayBuffer)return Promise.resolve(function(e){for(var t=new Uint8Array(e),i=Array(t.length),n=0;n<t.length;n++)i[n]=String.fromCharCode(t[n]);return i.join("")}(this._bodyArrayBuffer));if(!this._bodyFormData)return Promise.resolve(this._bodyText);throw Error("could not read FormData body as text")},t.formData&&(this.formData=function(){return this.text().then(m)}),this.json=function(){return this.text().then(JSON.parse)},this}c.prototype.append=function(e,t){e=r(e),t=a(t);var i=this.map[e];this.map[e]=i?i+", "+t:t},c.prototype.delete=function(e){delete this.map[r(e)]},c.prototype.get=function(e){return e=r(e),this.has(e)?this.map[e]:null},c.prototype.has=function(e){return this.map.hasOwnProperty(r(e))},c.prototype.set=function(e,t){this.map[r(e)]=a(t)},c.prototype.forEach=function(e,t){for(var i in this.map)this.map.hasOwnProperty(i)&&e.call(t,this.map[i],i,this)},c.prototype.keys=function(){var e=[];return this.forEach(function(t,i){e.push(i)}),s(e)},c.prototype.values=function(){var e=[];return this.forEach(function(t){e.push(t)}),s(e)},c.prototype.entries=function(){var e=[];return this.forEach(function(t,i){e.push([i,t])}),s(e)},t.iterable&&(c.prototype[Symbol.iterator]=c.prototype.entries);var f=["DELETE","GET","HEAD","OPTIONS","POST","PUT"];function v(e,t){var i,n,o=(t=t||{}).body;if(e instanceof v){if(e.bodyUsed)throw TypeError("Already read");this.url=e.url,this.credentials=e.credentials,t.headers||(this.headers=new c(e.headers)),this.method=e.method,this.mode=e.mode,this.signal=e.signal,o||null==e._bodyInit||(o=e._bodyInit,e.bodyUsed=!0)}else this.url=String(e);if(this.credentials=t.credentials||this.credentials||"same-origin",(t.headers||!this.headers)&&(this.headers=new c(t.headers)),this.method=(n=(i=t.method||this.method||"GET").toUpperCase(),f.indexOf(n)>-1?n:i),this.mode=t.mode||this.mode||null,this.signal=t.signal||this.signal,this.referrer=null,("GET"===this.method||"HEAD"===this.method)&&o)throw TypeError("Body not allowed for GET or HEAD requests");this._initBody(o)}function m(e){var t=new FormData;return e.trim().split("&").forEach(function(e){if(e){var i=e.split("="),n=i.shift().replace(/\+/g," "),o=i.join("=").replace(/\+/g," ");t.append(decodeURIComponent(n),decodeURIComponent(o))}}),t}function w(e,t){t||(t={}),this.type="default",this.status=void 0===t.status?200:t.status,this.ok=this.status>=200&&this.status<300,this.statusText="statusText"in t?t.statusText:"OK",this.headers=new c(t.headers),this.url=t.url||"",this._initBody(e)}v.prototype.clone=function(){return new v(this,{body:this._bodyInit})},h.call(v.prototype),h.call(w.prototype),w.prototype.clone=function(){return new w(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new c(this.headers),url:this.url})},w.error=function(){var e=new w(null,{status:0,statusText:""});return e.type="error",e};var g=[301,302,303,307,308];w.redirect=function(e,t){if(-1===g.indexOf(t))throw RangeError("Invalid status code");return new w(null,{status:t,headers:{location:e}})},e.DOMException=n.DOMException;try{new e.DOMException}catch(t){e.DOMException=function(e,t){this.message=e,this.name=t;var i=Error(e);this.stack=i.stack},e.DOMException.prototype=Object.create(Error.prototype),e.DOMException.prototype.constructor=e.DOMException}function y(i,n){return new Promise(function(o,r){var a=new v(i,n);if(a.signal&&a.signal.aborted)return r(new e.DOMException("Aborted","AbortError"));var s=new XMLHttpRequest;function l(){s.abort()}s.onload=function(){var e,t,i={status:s.status,statusText:s.statusText,headers:(e=s.getAllResponseHeaders()||"",t=new c,e.replace(/\r?\n[\t ]+/g," ").split(/\r?\n/).forEac
1h(function(e){var i=e.split(":"),n=i.shift().trim();if(n){var o=i.join(":").trim();t.append(n,o)}}),t)};i.url="responseURL"in s?s.responseURL:i.headers.get("X-Request-URL"),o(new w("response"in s?s.response:s.responseText,i))},s.onerror=function(){r(TypeError("Network request failed"))},s.ontimeout=function(){r(TypeError("Network request failed"))},s.onabort=function(){r(new e.DOMException("Aborted","AbortError"))},s.open(a.method,a.url,!0),"include"===a.credentials?s.withCredentials=!0:"omit"===a.credentials&&(s.withCredentials=!1),"responseType"in s&&t.blob&&(s.responseType="blob"),a.headers.forEach(function(e,t){s.setRequestHeader(t,e)}),a.signal&&(a.signal.addEventListener("abort",l),s.onreadystatechange=function(){4===s.readyState&&a.signal.removeEventListener("abort",l)}),s.send(void 0===a._bodyInit?null:a._bodyInit)})}y.polyfill=!0,n.fetch||(n.fetch=y,n.Headers=c,n.Request=v,n.Response=w),e.Headers=c,e.Request=v,e.Response=w,e.fetch=y,Object.defineProperty(e,"__esModule",{value:!0})})({}),n.fetch.ponyfill=!0,delete n.fetch.polyfill,(t=n.fetch).default=n.fetch,t.fetch=n.fetch,t.Headers=n.Headers,t.Request=n.Request,t.Response=n.Response,e.exports=t},69511:function(e){e.exports=window.FormData},34492:function(e,t,i){"use strict";/** 2 * @license React 3 * use-sync-external-store-shim.production.min.js 4 * 5 * Copyright (c) Facebook, Inc. and its affiliates. 6 * 7 * This source code is licensed under the MIT license found in the 8 * LICENSE file in the root directory of this source tree. 9 */var n=i(2265),o="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t},r=n.useState,a=n.useEffect,s=n.useLayoutEffect,c=n.useDebugValue;function l(e){var t=e.getSnapshot;e=e.value;try{var i=t();return!o(e,i)}catch(e){return!0}}var d="undefined"==typeof window||void 0===window.document||void 0===window.document.createElement?function(e,t){return t()}:function(e,t){var i=t(),n=r({inst:{value:i,getSnapshot:t}}),o=n[0].inst,d=n[1];return s(function(){o.value=i,o.getSnapshot=t,l(o)&&d({inst:o})},[e,i,t]),a(function(){return l(o)&&d({inst:o}),e(function(){l(o)&&d({inst:o})})},[e]),c(i),i};t.useSyncExternalStore=void 0!==n.useSyncExternalStore?n.useSyncExternalStore:d},85107:function(e,t,i){"use strict";/** 10 * @license React 11 * use-sync-external-store-shim/with-selector.production.min.js 12 * 13 * Copyright (c) Facebook, Inc. and its affiliates. 14 * 15 * This source code is licensed under the MIT license found in the 16 * LICENSE file in the root directory of this source tree. 17 */var n=i(2265),o=i(10554),r="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t},a=o.useSyncExternalStore,s=n.useRef,c=n.useEffect,l=n.useMemo,d=n.useDebugValue;t.useSyncExternalStoreWithSelector=function(e,t,i,n,o){var u=s(null);if(null===u.current){var p={hasValue:!1,value:null};u.current=p}else p=u.current;var h=a(e,(u=l(function(){function e(e){if(!c){if(c=!0,a=e,e=n(e),void 0!==o&&p.hasValue){var t=p.value;if(o(t,e))return s=t}return s=e}if(t=s,r(a,e))return t;var i=n(e);return void 0!==o&&o(t,i)?t:(a=e,s=i)}var a,s,c=!1,l=void 0===i?null:i;return[function(){return e(t())},null===l?void 0:function(){return e(l())}]},[t,i,n,o]))[0],u[1]);return c(function(){p.hasValue=!0,p.value=h},[h]),d(h),h}},10554:function(e,t,i){"use strict";e.exports=i(34492)},35006:function(e,t,i){"use strict";e.exports=i(85107)},68999:function(e,t,i){"use strict";i.d(t,{AE:function(){return j},ID:function(){return L},KU:function(){return q},Ke:function(){return A},Lg:function(){return U},mR:function(){return E}}),i(69511);var n,o,r,a,s,c,l,d,u,p,h,f,v,m,w,g,y,b,I,M=i(7309);function S(e,t,i,n){return new(i||(i=Promise))(function(o,r){function a(e){try{c(n.next(e))}catch(e){r(e)}}function s(e){try{c(n.throw(e))}catch(e){r(e)}}function c(e){var t;e.done?o(e.value):((t=e.value)instanceof i?t:new i(function(e){e(t)})).then(a,s)}c((n=n.apply(e,t||[])).next())})}class k{constructor(e){this.client=e}static flatten(e,t=""){let i={};for(let[n,o]of Object.entries(e)){let e=t?t+"["+n+"]":n;Array.isArray(o)?i=Object.assign(Object.assign({},i),k.flatten(o,e)):i[e]=o}return i}}k.CHUNK_SIZE=5242880;
17class j{constructor(e,t,i){this.method=e,this.attribute=t,void 0!==i&&(Array.isArray(i)?this.values=i:this.values=[i])}toString(){return JSON.stringify({method:this.method,attribute:this.attribute,values:this.values})}}j.equal=(e,t)=>new j("equal",e,t).toString(),j.notEqual=(e,t)=>new j("notEqual",e,t).toString(),j.lessThan=(e,t)=>new j("lessThan",e,t).toString(),j.lessThanEqual=(e,t)=>new j("lessThanEqual",e,t).toString(),j.greaterThan=(e,t)=>new j("greaterThan",e,t).toString(),j.greaterThanEqual=(e,t)=>new j("greaterThanEqual",e,t).toString(),j.isNull=e=>new j("isNull",e).toString(),j.isNotNull=e=>new j("isNotNull",e).toString(),j.between=(e,t,i)=>new j("between",e,[t,i]).toString(),j.startsWith=(e,t)=>new j("startsWith",e,t).toString(),j.endsWith=(e,t)=>new j("endsWith",e,t).toString(),j.select=e=>new j("select",void 0,e).toString(),j.search=(e,t)=>new j("search",e,t).toString(),j.orderDesc=e=>new j("orderDesc",e).toString(),j.orderAsc=e=>new j("orderAsc",e).toString(),j.cursorAfter=e=>new j("cursorAfter",void 0,e).toString(),j.cursorBefore=e=>new j("cursorBefore",void 0,e).toString(),j.limit=e=>new j("limit",void 0,e).toString(),j.offset=e=>new j("offset",void 0,e).toString(),j.contains=(e,t)=>new j("contains",e,t).toString(),j.or=e=>new j("or",void 0,e.map(e=>JSON.parse(e))).toString(),j.and=e=>new j("and",void 0,e.map(e=>JSON.parse(e))).toString();class R extends Error{constructor(e,t=0,i="",n=""){super(e),this.name="AppwriteException",this.message=e,this.code=t,this.type=i,this.response=n}}class q{constructor(){this.config={endpoint:"https://cloud.appwrite.io/v1",endpointRealtime:"",project:"",jwt:"",locale:"",session:""},this.headers={"x-sdk-name":"Web","x-sdk-platform":"client","x-sdk-language":"web","x-sdk-version":"14.0.1","X-Appwrite-Response-Format":"1.5.0"},this.realtime={socket:void 0,timeout:void 0,url:"",channels:new Set,subscriptions:new Map,subscriptionsCounter:0,reconnect:!0,reconnectAttempts:0,lastMessage:void 0,connect:()=>{clearTimeout(this.realtime.timeout),this.realtime.timeout=null==window?void 0:window.setTimeout(()=>{this.realtime.createSocket()},50)},getTimeout:()=>{switch(!0){case this.realtime.reconnectAttempts<5:return 1e3;case this.realtime.reconnectAttempts<15:return 5e3;case this.realtime.reconnectAttempts<100:return 1e4;default:return 6e4}},createSocket:()=>{var e,t,i;if(this.realtime.channels.size<1){this.realtime.reconnect=!1,null===(e=this.realtime.socket)||void 0===e||e.close();return}let n=new URLSearchParams;n.set("project",this.config.project),this.realtime.channels.forEach(e=>{n.append("channels[]",e)});let o=this.config.endpointRealtime+"/realtime?"+n.toString();(o!==this.realtime.url||!this.realtime.socket||(null===(t=this.realtime.socket)||void 0===t?void 0:t.readyState)>WebSocket.OPEN)&&(this.realtime.socket&&(null===(i=this.realtime.socket)||void 0===i?void 0:i.readyState)<WebSocket.CLOSING&&(this.realtime.reconnect=!1,this.realtime.socket.close()),this.realtime.url=o,this.realtime.socket=new WebSocket(o),this.realtime.socket.addEventListener("message",this.realtime.onMessage),this.realtime.socket.addEventListener("open",e=>{this.realtime.reconnectAttempts=0}),this.realtime.socket.addEventListener("close",e=>{var t,i,n;if(!this.realtime.reconnect||(null===(i=null===(t=this.realtime)||void 0===t?void 0:t.lastMessage)||void 0===i?void 0:i.type)==="error"&&1008===(null===(n=this.realtime)||void 0===n?void 0:n.lastMessage.data).code){this.realtime.reconnect=!0;return}let o=this.realtime.getTimeout();console.error(`Realtime got disconnected. Reconnect will be attempted in ${o/1e3} seconds.`,e.reason),setTimeout(()=>{this.realtime.reconnectAttempts++,this.realtime.createSocket()},o)}))},onMessage:e=>{var t,i;try{let n=JSON.parse(e.data);switch(this.realtime.lastMessage=n,n.type){case"connected":let o=JSON.parse(null!==(t=window.localStorage.getItem("cookieFallback"))&&void 0!==t?t:"{}"),r=null==o?void 0:o[`a_session_${this.config.project}`],a=n.data;r&&!a.user&&(null===(i=this.realtime.socket)||void 0===i||i.send(JSON.stringify({type:"authentication",data:{session:r}})));break;case"event":let s=n.data;if(null==s?void 0:s.channels){if(!s.channels.some(e=>this.realtime.channels.has(e)))return;
17this.realtime.subscriptions.forEach(e=>{s.channels.some(t=>e.channels.includes(t))&&setTimeout(()=>e.callback(s))})}break;case"error":throw n.data}}catch(e){console.error(e)}},cleanUp:e=>{this.realtime.channels.forEach(t=>{e.includes(t)&&!Array.from(this.realtime.subscriptions).some(([e,i])=>i.channels.includes(t))&&this.realtime.channels.delete(t)})}}}setEndpoint(e){return this.config.endpoint=e,this.config.endpointRealtime=this.config.endpointRealtime||this.config.endpoint.replace("https://","wss://").replace("http://","ws://"),this}setEndpointRealtime(e){return this.config.endpointRealtime=e,this}setProject(e){return this.headers["X-Appwrite-Project"]=e,this.config.project=e,this}setJWT(e){return this.headers["X-Appwrite-JWT"]=e,this.config.jwt=e,this}setLocale(e){return this.headers["X-Appwrite-Locale"]=e,this.config.locale=e,this}setSession(e){return this.headers["X-Appwrite-Session"]=e,this.config.session=e,this}subscribe(e,t){let i="string"==typeof e?[e]:e;i.forEach(e=>this.realtime.channels.add(e));let n=this.realtime.subscriptionsCounter++;return this.realtime.subscriptions.set(n,{channels:i,callback:t}),this.realtime.connect(),()=>{this.realtime.subscriptions.delete(n),this.realtime.cleanUp(i),this.realtime.connect()}}call(e,t,i={},n={}){var o,r;return S(this,void 0,void 0,function*(){e=e.toUpperCase(),i=Object.assign({},this.headers,i);let a={method:e,headers:i,credentials:"include"};if("undefined"!=typeof window&&window.localStorage&&(i["X-Fallback-Cookies"]=null!==(o=window.localStorage.getItem("cookieFallback"))&&void 0!==o?o:""),"GET"===e)for(let[e,i]of Object.entries(k.flatten(n)))t.searchParams.append(e,i);else switch(i["content-type"]){case"application/json":a.body=JSON.stringify(n);break;case"multipart/form-data":let s=new FormData;for(let e in n)Array.isArray(n[e])?n[e].forEach(t=>{s.append(e+"[]",t)}):s.append(e,n[e]);a.body=s,delete i["content-type"]}try{let e=null,i=yield(0,M.fetch)(t.toString(),a);if(e=(null===(r=i.headers.get("content-type"))||void 0===r?void 0:r.includes("application/json"))?yield i.json():{message:yield i.text()},400<=i.status)throw new R(null==e?void 0:e.message,i.status,null==e?void 0:e.type,e);let n=i.headers.get("X-Fallback-Cookies");return"undefined"!=typeof window&&window.localStorage&&n&&(window.console.warn("Appwrite is using localStorage for session management. Increase your security by adding a custom domain as your API endpoint."),window.localStorage.setItem("cookieFallback",n)),e}catch(e){if(e instanceof R)throw e;throw new R(e.message)}})}}class E extends k{constructor(e){super(e)}get(){return S(this,void 0,void 0,function*(){let e=new URL(this.client.config.endpoint+"/account");return yield this.client.call("get",e,{"content-type":"application/json"},{})})}create(e,t,i,n){return S(this,void 0,void 0,function*(){if(void 0===e)throw new R('Missing required parameter: "userId"');if(void 0===t)throw new R('Missing required parameter: "email"');if(void 0===i)throw new R('Missing required parameter: "password"');let o={};void 0!==e&&(o.userId=e),void 0!==t&&(o.email=t),void 0!==i&&(o.password=i),void 0!==n&&(o.name=n);let r=new URL(this.client.config.endpoint+"/account");return yield this.client.call("post",r,{"content-type":"application/json"},o)})}updateEmail(e,t){return S(this,void 0,void 0,function*(){if(void 0===e)throw new R('Missing required parameter: "email"');if(void 0===t)throw new R('Missing required parameter: "password"');let i={};void 0!==e&&(i.email=e),void 0!==t&&(i.password=t);let n=new URL(this.client.config.endpoint+"/account/email");return yield this.client.call("patch",n,{"content-type":"application/json"},i)})}listIdentities(e){return S(this,void 0,void 0,function*(){let t={};void 0!==e&&(t.queries=e);let i=new URL(this.client.config.endpoint+"/account/identities");return yield this.client.call("get",i,{"content-type":"application/json"},t)})}deleteIdentity(e){return S(this,void 0,void 0,function*(){if(void 0===e)throw new R('Missing required parameter: "identityId"');let t="/account/identities/{identityId}".replace("{identityId}",e),i=new URL(this.client.config.endpoint+t);return yield this.client.call("delete",i,{"content-type":"application/json"},{})})}
17createJWT(){return S(this,void 0,void 0,function*(){let e=new URL(this.client.config.endpoint+"/account/jwt");return yield this.client.call("post",e,{"content-type":"application/json"},{})})}listLogs(e){return S(this,void 0,void 0,function*(){let t={};void 0!==e&&(t.queries=e);let i=new URL(this.client.config.endpoint+"/account/logs");return yield this.client.call("get",i,{"content-type":"application/json"},t)})}updateMFA(e){return S(this,void 0,void 0,function*(){if(void 0===e)throw new R('Missing required parameter: "mfa"');let t={};void 0!==e&&(t.mfa=e);let i=new URL(this.client.config.endpoint+"/account/mfa");return yield this.client.call("patch",i,{"content-type":"application/json"},t)})}createMfaAuthenticator(e){return S(this,void 0,void 0,function*(){if(void 0===e)throw new R('Missing required parameter: "type"');let t="/account/mfa/authenticators/{type}".replace("{type}",e),i=new URL(this.client.config.endpoint+t);return yield this.client.call("post",i,{"content-type":"application/json"},{})})}updateMfaAuthenticator(e,t){return S(this,void 0,void 0,function*(){if(void 0===e)throw new R('Missing required parameter: "type"');if(void 0===t)throw new R('Missing required parameter: "otp"');let i="/account/mfa/authenticators/{type}".replace("{type}",e),n={};void 0!==t&&(n.otp=t);let o=new URL(this.client.config.endpoint+i);return yield this.client.call("put",o,{"content-type":"application/json"},n)})}deleteMfaAuthenticator(e,t){return S(this,void 0,void 0,function*(){if(void 0===e)throw new R('Missing required parameter: "type"');if(void 0===t)throw new R('Missing required parameter: "otp"');let i="/account/mfa/authenticators/{type}".replace("{type}",e),n={};void 0!==t&&(n.otp=t);let o=new URL(this.client.config.endpoint+i);return yield this.client.call("delete",o,{"content-type":"application/json"},n)})}createMfaChallenge(e){return S(this,void 0,void 0,function*(){if(void 0===e)throw new R('Missing required parameter: "factor"');let t={};void 0!==e&&(t.factor=e);let i=new URL(this.client.config.endpoint+"/account/mfa/challenge");return yield this.client.call("post",i,{"content-type":"application/json"},t)})}updateMfaChallenge(e,t){return S(this,void 0,void 0,function*(){if(void 0===e)throw new R('Missing required parameter: "challengeId"');if(void 0===t)throw new R('Missing required parameter: "otp"');let i={};void 0!==e&&(i.challengeId=e),void 0!==t&&(i.otp=t);let n=new URL(this.client.config.endpoint+"/account/mfa/challenge");return yield this.client.call("put",n,{"content-type":"application/json"},i)})}listMfaFactors(){return S(this,void 0,void 0,function*(){let e=new URL(this.client.config.endpoint+"/account/mfa/factors");return yield this.client.call("get",e,{"content-type":"application/json"},{})})}getMfaRecoveryCodes(){return S(this,void 0,void 0,function*(){let e=new URL(this.client.config.endpoint+"/account/mfa/recovery-codes");return yield this.client.call("get",e,{"content-type":"application/json"},{})})}createMfaRecoveryCodes(){return S(this,void 0,void 0,function*(){let e=new URL(this.client.config.endpoint+"/account/mfa/recovery-codes");return yield this.client.call("post",e,{"content-type":"application/json"},{})})}updateMfaRecoveryCodes(){return S(this,void 0,void 0,function*(){let e=new URL(this.client.config.endpoint+"/account/mfa/recovery-codes");return yield this.client.call("patch",e,{"content-type":"application/json"},{})})}updateName(e){return S(this,void 0,void 0,function*(){if(void 0===e)throw new R('Missing required parameter: "name"');let t={};void 0!==e&&(t.name=e);let i=new URL(this.client.config.endpoint+"/account/name");return yield this.client.call("patch",i,{"content-type":"application/json"},t)})}updatePassword(e,t){return S(this,void 0,void 0,function*(){if(void 0===e)throw new R('Missing required parameter: "password"');let i={};void 0!==e&&(i.password=e),void 0!==t&&(i.oldPassword=t);let n=new URL(this.client.config.endpoint+"/account/password");return yield this.client.call("patch",n,{"content-type":"application/json"},i)})}updatePhone(e,t){return S(this,void 0,void 0,function*(){if(void 0===e)throw new R('Missing required parameter: "phone"');if(void 0===t)throw new R('Missing required parameter: "password"');let i={};void 0!==e&&(i.phone=e),void 0!==t&&(i.password=t);let n=new URL(this.client.config.endpoint+"/account/phone");return yield this.client.call("patch",n,{"content-type":"application/json"},i)})}getPrefs(){return S(this,void 0,void 0,function*(){let e=new URL(this.client.config.endpoint+"/account/prefs");return yield this.client.call("get",e,{"content-type":"application/json"},{})})}updatePrefs(e){return S(this,void 0,void 0,function*(){if(void 0===e)throw new R('Missing required parameter: "prefs"');let t={};void 0!==e&&(t.prefs=e);let i=new URL(this.client.config.endpoint+"/account/prefs");return yield this.client.call("patch",i,{"content-type":"application/json"},t)})}createRecovery(e,t){return S(this,void 0,void 0,function*(){if(void 0===e)throw new R('Missing required parameter: "email"');if(void 0===t)throw new R('Missing required parameter: "url"');let i={};void 0!==e&&(i.email=e),void 0!==t&&(i.url=t);let n=new URL(this.client.config.endpoint+"/account/recovery");return yield this.client.call("post",n,{"content-type":"application/json"},i)})}updateRecovery(e,t,i){return S(this,void 0,void 0,function*(){if(void 0===e)throw new R('Missing required parameter: "userId"');if(void 0===t)throw new R('Missing required parameter: "secret"');if(void 0===i)throw new R('Missing required parameter: "password"');let n={};void 0!==e&&(n.userId=e),void 0!==t&&(n.secret=t),void 0!==i&&(n.password=i);let o=new URL(this.client.config.endpoint+"/account/recovery");return yield this.client.call("put",o,{"content-type":"application/json"},n)})}listSessions(){return S(this,void 0,void 0,function*(){let e=new URL(this.client.config.endpoint+"/account/sessions");return yield this.client.call("get",e,{"content-type":"application/json"},{})})}deleteSessions(){return S(this,void 0,void 0,function*(){let e=new URL(this.client.config.endpoint+"/account/sessions");return yield this.client.call("delete",e,{"content-type":"application/json"},{})})}createAnonymousSession(){return S(this,void 0,void 0,function*(){let e=new URL(this.client.config.endpoint+"/account/sessions/anonymous");return yield this.client.call("post",e,{"content-type":"application/json"},{})})}createEmailPasswordSession(e,t){return S(this,void 0,void 0,function*(){if(void 0===e)throw new R('Missing required parameter: "email"');if(void 0===t)throw new R('Missing required parameter: "password"');let i={};void 0!==e&&(i.email=e),void 0!==t&&(i.password=t);let n=new URL(this.client.config.endpoint+"/account/sessions/email");return yield this.client.call("post",n,{"content-type":"application/json"},i)})}
17updateMagicURLSession(e,t){return S(this,void 0,void 0,function*(){if(void 0===e)throw new R('Missing required parameter: "userId"');if(void 0===t)throw new R('Missing required parameter: "secret"');let i={};void 0!==e&&(i.userId=e),void 0!==t&&(i.secret=t);let n=new URL(this.client.config.endpoint+"/account/sessions/magic-url");return yield this.client.call("put",n,{"content-type":"application/json"},i)})}createOAuth2Session(e,t,i,n){if(void 0===e)throw new R('Missing required parameter: "provider"');let o="/account/sessions/oauth2/{provider}".replace("{provider}",e),r={};void 0!==t&&(r.success=t),void 0!==i&&(r.failure=i),void 0!==n&&(r.scopes=n);let a=new URL(this.client.config.endpoint+o);for(let[e,t]of(r.project=this.client.config.project,Object.entries(k.flatten(r))))a.searchParams.append(e,t);if("undefined"==typeof window||null==window||!window.location)return a;window.location.href=a.toString()}updatePhoneSession(e,t){return S(this,void 0,void 0,function*(){if(void 0===e)throw new R('Missing required parameter: "userId"');if(void 0===t)throw new R('Missing required parameter: "secret"');let i={};void 0!==e&&(i.userId=e),void 0!==t&&(i.secret=t);let n=new URL(this.client.config.endpoint+"/account/sessions/phone");return yield this.client.call("put",n,{"content-type":"application/json"},i)})}createSession(e,t){return S(this,void 0,void 0,function*(){if(void 0===e)throw new R('Missing required parameter: "userId"');if(void 0===t)throw new R('Missing required parameter: "secret"');let i={};void 0!==e&&(i.userId=e),void 0!==t&&(i.secret=t);let n=new URL(this.client.config.endpoint+"/account/sessions/token");return yield this.client.call("post",n,{"content-type":"application/json"},i)})}getSession(e){return S(this,void 0,void 0,function*(){if(void 0===e)throw new R('Missing required parameter: "sessionId"');let t="/account/sessions/{sessionId}".replace("{sessionId}",e),i=new URL(this.client.config.endpoint+t);return yield this.client.call("get",i,{"content-type":"application/json"},{})})}updateSession(e){return S(this,void 0,void 0,function*(){if(void 0===e)throw new R('Missing required parameter: "sessionId"');let t="/account/sessions/{sessionId}".replace("{sessionId}",e),i=new URL(this.client.config.endpoint+t);return yield this.client.call("patch",i,{"content-type":"application/json"},{})})}deleteSession(e){return S(this,void 0,void 0,function*(){if(void 0===e)throw new R('Missing required parameter: "sessionId"');let t="/account/sessions/{sessionId}".replace("{sessionId}",e),i=new URL(this.client.config.endpoint+t);return yield this.client.call("delete",i,{"content-type":"application/json"},{})})}updateStatus(){return S(this,void 0,void 0,function*(){let e=new URL(this.client.config.endpoint+"/account/status");return yield this.client.call("patch",e,{"content-type":"application/json"},{})})}createPushTarget(e,t,i){return S(this,void 0,void 0,function*(){if(void 0===e)throw new R('Missing required parameter: "targetId"');if(void 0===t)throw new R('Missing required parameter: "identifier"');let n={};void 0!==e&&(n.targetId=e),void 0!==t&&(n.identifier=t),void 0!==i&&(n.providerId=i);let o=new URL(this.client.config.endpoint+"/account/targets/push");return yield this.client.call("post",o,{"content-type":"application/json"},n)})}updatePushTarget(e,t){return S(this,void 0,void 0,function*(){if(void 0===e)throw new R('Missing required parameter: "targetId"');if(void 0===t)throw new R('Missing required parameter: "identifier"');let i="/account/targets/{targetId}/push".replace("{targetId}",e),n={};void 0!==t&&(n.identifier=t);let o=new URL(this.client.config.endpoint+i);return yield this.client.call("put",o,{"content-type":"application/json"},n)})}deletePushTarget(e){return S(this,void 0,void 0,function*(){if(void 0===e)throw new R('Missing required parameter: "targetId"');let t="/account/targets/{targetId}/push".replace("{targetId}",e),i=new URL(this.client.config.endpoint+t);return yield this.client.call("delete",i,{"content-type":"application/json"},{})})}createEmailToken(e,t,i){return S(this,void 0,void 0,function*(){if(void 0===e)throw new R('Missing required parameter: "userId"');if(void 0===t)throw new R('Missing required parameter: "email"');let n={};void 0!==e&&(n.userId=e),void 0!==t&&(n.email=t),void 0!==i&&(n.phrase=i);let o=new URL(this.client.config.endpoint+"/account/tokens/email");return yield this.client.call("post",o,{"content-type":"application/json"},n)})}createMagicURLToken(e,t,i,n){return S(this,void 0,void 0,function*(){if(void 0===e)throw new R('Missing required parameter: "userId"');if(void 0===t)throw new R('Missing required parameter: "email"');let o={};void 0!==e&&(o.userId=e),void 0!==t&&(o.email=t),void 0!==i&&(o.url=i),void 0!==n&&(o.phrase=n);let r=new URL(this.client.config.endpoint+"/account/tokens/magic-url");return yield this.client.call("post",r,{"content-type":"application/json"},o)})}createOAuth2Token(e,t,i,n){if(void 0===e)throw new R('Missing required parameter: "provider"');let o="/account/tokens/oauth2/{provider}".replace("{provider}",e),r={};void 0!==t&&(r.success=t),void 0!==i&&(r.failure=i),void 0!==n&&(r.scopes=n);let a=new URL(this.client.config.endpoint+o);for(let[e,t]of(r.project=this.client.config.project,Object.entries(k.flatten(r))))a.searchParams.append(e,t);if("undefined"==typeof window||null==window||!window.location)return a;window.location.href=a.toString()}createPhoneToken(e,t){return S(this,void 0,void 0,function*(){if(void 0===e)throw new R('Missing required parameter: "userId"');if(void 0===t)throw new R('Missing required parameter: "phone"');let i={};void 0!==e&&(i.userId=e),void 0!==t&&(i.phone=t);let n=new URL(this.client.config.endpoint+"/account/tokens/phone");return yield this.client.call("post",n,{"content-type":"application/json"},i)})}createVerification(e){return S(this,void 0,void 0,function*(){if(void 0===e)throw new R('Missing required parameter: "url"');let t={};void 0!==e&&(t.url=e);let i=new URL(this.client.config.endpoint+"/account/verification");return yield this.client.call("post",i,{"content-type":"application/json"},t)})}updateVerification(e,t){return S(this,void 0,void 0,function*(){if(void 0===e)throw new R('Missing required parameter: "userId"');if(void 0===t)throw new R('Missing required parameter: "secret"');let i={};void 0!==e&&(i.userId=e),void 0!==t&&(i.secret=t);let n=new URL(this.client.config.endpoint+"/account/verification");return yield this.client.call("put",n,{"content-type":"application/json"},i)})}createPhoneVerification(){return S(this,void 0,void 0,function*(){let e=new URL(this.client.config.endpoint+"/account/verification/phone");return yield this.client.call("post",e,{"content-type":"application/json"},{})})}updatePhoneVerification(e,t){return S(this,void 0,void 0,function*(){if(void 0===e)throw new R('Missing required parameter: "userId"');if(void 0===t)throw new R('Missing required parameter: "secret"');let i={};void 0!==e&&(i.userId=e),void 0!==t&&(i.secret=t);let n=new URL(this.client.config.endpoint+"/account/verification/phone");return yield this.client.call("put",n,{"content-type":"application/json"},i)})}}class U extends k{constructor(e){super(e)}listDocuments(e,t,i){return S(this,void 0,void 0,function*(){if(void 0===e)throw new R('Missing required parameter: "databaseId"');if(void 0===t)throw new R('Missing required parameter: "collectionId"');let n="/databases/{databaseId}/collections/{collectionId}/documents".replace("{databaseId}",e).replace("{collectionId}",t),o={};void 0!==i&&(o.queries=i);let r=new URL(this.client.config.endpoint+n);return yield this.client.call("get",r,{"content-type":"application/json"},o)})}createDocument(e,t,i,n,o){return S(this,void 0,void 0,function*(){if(void 0===e)throw new R('Missing required parameter: "databaseId"');if(void 0===t)throw new R('Missing required parameter: "collectionId"');if(void 0===i)throw new R('Missing required parameter: "documentId"');if(void 0===n)throw new R('Missing required parameter: "data"');let r="/databases/{databaseId}/collections/{collectionId}/documents".replace("{databaseId}",e).replace("{collectionId}",t),a={};void 0!==i&&(a.documentId=i),void 0!==n&&(a.data=n),void 0!==o&&(a.permissions=o);let s=new URL(this.client.config.endpoint+r);return yield this.client.call("post",s,{"content-type":"application/json"},a)})}getDocument(e,t,i,n){return S(this,void 0,void 0,function*(){if(void 0===e)throw new R('Missing required parameter: "databaseId"');if(void 0===t)throw new R('Missing required parameter: "collectionId"');if(void 0===i)throw new R('Missing required parameter: "documentId"');let o="/databases/{databaseId}/collections/{collectionId}/documents/{documentId}".replace("{databaseId}",e).replace("{collectionId}",t).replace("{documentId}",i),r={};void 0!==n&&(r.queries=n);let a=new URL(this.client.config.endpoint+o);return yield this.client.call("get",a,{"content-type":"application/json"},r)})}updateDocument(e,t,i,n,o){return S(this,void 0,void 0,function*(){if(void 0===e)throw new R('Missing required parameter: "databaseId"');if(void 0===t)throw new R('Missing required parameter: "collectionId"');if(void 0===i)throw new R('Missing required parameter: "documentId"');let r="/databases/{databaseId}/collections/{collectionId}/documents/{documentId}".replace("{databaseId}",e).replace("{collectionId}",t).replace("{documentId}",i),a={};void 0!==n&&(a.data=n),void 0!==o&&(a.permissions=o);let s=new URL(this.client.config.endpoint+r);return yield this.client.call("patch",s,{"content-type":"application/json"},a)})}deleteDocument(e,t,i){return S(this,void 0,void 0,function*(){if(void 0===e)throw new R('Missing required parameter: "databaseId"');if(void 0===t)throw new R('Missing required parameter: "collectionId"');if(void 0===i)throw new R('Missing required parameter: "documentId"');let n="/databases/{databaseId}/collections/{collectionId}/documents/{documentId}".replace("{databaseId}",e).replace("{collectionId}",t).replace("{documentId}",i),o=new URL(this.client.config.endpoint+n);return yield this.client.call("delete",o,{"content-type":"application/json"},{})})}}class A extends k{constructor(e){super(e)}listFiles(e,t,i){return S(this,void 0,void 0,function*(){if(void 0===e)throw new R('Missing required parameter: "bucketId"');let n="/storage/buckets/{bucketId}/files".replace("{bucketId}",e),o={};void 0!==t&&(o.queries=t),void 0!==i&&(o.search=i);let r=new URL(this.client.config.endpoint+n);return yield this.client.call("get",r,{"content-type":"application/json"},o)})}createFile(e,t,i,n,o=e=>{}){return S(this,void 0,void 0,function*(){let r;if(void 0===e)throw new R('Missing required parameter: "bucketId"');if(void 0===t)throw new R('Missing required parameter: "fileId"');if(void 0===i)throw new R('Missing required parameter: "file"');let a="/storage/buckets/{bucketId}/files".replace("{bucketId}",e),s={};void 0!==t&&(s.fileId=t),void 0!==i&&(s.file=i),void 0!==n&&(s.permissions=n);let c=new URL(this.client.config.endpoint+a);if(!(i instanceof File))throw new R('Parameter "file" has to be a File.');let l=i.size;if(l<=k.CHUNK_SIZE)return yield this.client.call("post",c,{"content-type":"multipart/form-data"},s);let d={"content-type":"multipart/form-data"},u=0;if("unique()"!=t)try{u=(r=yield this.client.call("GET",new URL(this.client.config.endpoint+a+"/"+t),d)).chunksUploaded*k.CHUNK_SIZE}catch(e){}for(;u<l;){let e=Math.min(u+k.CHUNK_SIZE-1,l-1);d["content-range"]="bytes "+u+"-"+e+"/"+l,r&&r.$id&&(d["x-appwrite-id"]=r.$id);let t=i.slice(u,e+1);s.file=new File([t],i.name),r=yield this.client.call("post",c,d,s),o&&o({$id:r.$id,progress:u/l*100,sizeUploaded:u,chunksTotal:r.chunksTotal,chunksUploaded:r.chunksUploaded}),u+=k.CHUNK_SIZE}return r})}getFile(e,t){return S(this,void 0,void 0,function*(){if(void 0===e)throw new R('Missing required parameter: "bucketId"');if(void 0===t)throw new R('Missing required parameter: "fileId"');let i="/storage/buckets/{bucketId}/files/{fileId}".replace("{bucketId}",e).replace("{fileId}",t),n=new URL(this.client.config.endpoint+i);return yield this.client.call("get",n,{"content-type":"application/json"},{})})}updateFile(e,t,i,n){return S(this,void 0,void 0,function*(){if(void 0===e)throw new R('Missing required parameter: "bucketId"');if(void 0===t)throw new R('Missing required parameter: "fileId"');let o="/storage/buckets/{bucketId}/files/{fileId}".replace("{bucketId}",e).replace("{fileId}",t),r={};void 0!==i&&(r.name=i),void 0!==n&&(r.permissions=n);let a=new URL(this.client.config.endpoint+o);return yield this.client.call("put",a,{"content-type":"application/json"},r)})}deleteFile(e,t){return S(this,void 0,void 0,function*(){if(void 0===e)throw new R('Missing required parameter: "bucketId"');if(void 0===t)throw new R('Missing required parameter: "fileId"');let i="/storage/buckets/{bucketId}/files/{fileId}".replace("{bucketId}",e).replace("{fileId}",t),n=new URL(this.client.config.endpoint+i);return yield this.client.call("delete",n,{"content-type":"application/json"},{})})}getFileDownload(e,t){if(void 0===e)throw new R('Missing required parameter: "bucketId"');if(void 0===t)throw new R('Missing required parameter: "fileId"');let i="/storage/buckets/{bucketId}/files/{fileId}/download".replace("{bucketId}",e).replace("{fileId}",t),n={},o=new URL(this.client.config.endpoint+i);for(let[e,t]of(n.project=this.client.config.project,Object.entries(k.flatten(n))))o.searchParams.append(e,t);return o}getFilePreview(e,t,i,n,o,r,a,s,c,l,d,u,p){if(void 0===e)throw new R('Missing required parameter: "bucketId"');if(void 0===t)throw new R('Missing required parameter: "fileId"');let h="/storage/buckets/{bucketId}/files/{fileId}/preview".replace("{bucketId}",e).replace("{fileId}",t),f={};void 0!==i&&(f.width=i),void 0!==n&&(f.height=n),void 0!==o&&(f.gravity=o),void 0!==r&&(f.quality=r),void 0!==a&&(f.borderWidth=a),void 0!==s&&(f.borderColor=s),void 0!==c&&(f.borderRadius=c),void 0!==l&&(f.opacity=l),void 0!==d&&(f.rotation=d),void 0!==u&&(f.background=u),void 0!==p&&(f.output=p);let v=new URL(this.client.config.endpoint+h);for(let[e,t]of(f.project=this.client.config.project,Object.entries(k.flatten(f))))v.searchParams.append(e,t);return v}
17getFileView(e,t){if(void 0===e)throw new R('Missing required parameter: "bucketId"');if(void 0===t)throw new R('Missing required parameter: "fileId"');let i="/storage/buckets/{bucketId}/files/{fileId}/view".replace("{bucketId}",e).replace("{fileId}",t),n={},o=new URL(this.client.config.endpoint+i);for(let[e,t]of(n.project=this.client.config.project,Object.entries(k.flatten(n))))o.searchParams.append(e,t);return o}}class T{}T.read=e=>`read("${e}")`,T.write=e=>`write("${e}")`,T.create=e=>`create("${e}")`,T.update=e=>`update("${e}")`,T.delete=e=>`delete("${e}")`;class L{static custom(e){return e}static unique(e=7){let t=(function(e,t,i,n){if("function"==typeof t?e!==t||!n:!t.has(e))throw TypeError("Cannot read private member from an object whose class did not declare it");return n})(L,u,0,p).call(L),i="";for(let t=0;t<e;t++)i+=Math.floor(16*Math.random()).toString(16);return t+i}}u=L,p=function(){let e=new Date,t=Math.floor(e.getTime()/1e3),i=e.getMilliseconds();return t.toString(16)+i.toString(16).padStart(5,"0")},(h||(h={})).Totp="totp",(n=f||(f={})).Email="email",n.Phone="phone",n.Totp="totp",n.Recoverycode="recoverycode",(o=v||(v={})).Amazon="amazon",o.Apple="apple",o.Auth0="auth0",o.Authentik="authentik",o.Autodesk="autodesk",o.Bitbucket="bitbucket",o.Bitly="bitly",o.Box="box",o.Dailymotion="dailymotion",o.Discord="discord",o.Disqus="disqus",o.Dropbox="dropbox",o.Etsy="etsy",o.Facebook="facebook",o.Github="github",o.Gitlab="gitlab",o.Google="google",o.Linkedin="linkedin",o.Microsoft="microsoft",o.Notion="notion",o.Oidc="oidc",o.Okta="okta",o.Paypal="paypal",o.PaypalSandbox="paypalSandbox",o.Podio="podio",o.Salesforce="salesforce",o.Slack="slack",o.Spotify="spotify",o.Stripe="stripe",o.Tradeshift="tradeshift",o.TradeshiftBox="tradeshiftBox",o.Twitch="twitch",o.Wordpress="wordpress",o.Yahoo="yahoo",o.Yammer="yammer",o.Yandex="yandex",o.Zoho="zoho",o.Zoom="zoom",o.Mock="mock",(r=m||(m={})).AvantBrowser="aa",r.AndroidWebViewBeta="an",r.GoogleChrome="ch",r.GoogleChromeIOS="ci",r.GoogleChromeMobile="cm",r.Chromium="cr",r.MozillaFirefox="ff",r.Safari="sf",r.MobileSafari="mf",r.MicrosoftEdge="ps",r.MicrosoftEdgeIOS="oi",r.OperaMini="om",r.Opera="op",r.OperaNext="on",(a=w||(w={})).AmericanExpress="amex",a.Argencard="argencard",a.Cabal="cabal",a.Consosud="censosud",a.DinersClub="diners",a.Discover="discover",a.Elo="elo",a.Hipercard="hipercard",a.JCB="jcb",a.Mastercard="mastercard",a.Naranja="naranja",a.TarjetaShopping="targeta-shopping",a.UnionChinaPay="union-china-pay",a.Visa="visa",a.MIR="mir",a.Maestro="maestro",(s=g||(g={})).Afghanistan="af",s.Angola="ao",s.Albania="al",s.Andorra="ad",s.UnitedArabEmirates="ae",s.Argentina="ar",s.Armenia="am",s.AntiguaAndBarbuda="ag",s.Australia="au",s.Austria="at",s.Azerbaijan="az",s.Burundi="bi",s.Belgium="be",s.Benin="bj",s.BurkinaFaso="bf",s.Bangladesh="bd",s.Bulgaria="bg",s.Bahrain="bh",s.Bahamas="bs",s.BosniaAndHerzegovina="ba",s.Belarus="by",s.Belize="bz",s.Bolivia="bo",s.Brazil="br",s.Barbados="bb",s.BruneiDarussalam="bn",s.Bhutan="bt",s.Botswana="bw",s.CentralAfricanRepublic="cf",s.Canada="ca",s.Switzerland="ch",s.Chile="cl",s.China="cn",s.CoteDIvoire="ci",s.Cameroon="cm",s.DemocraticRepublicOfTheCongo="cd",s.RepublicOfTheCongo="cg",s.Colombia="co",s.Comoros="km",s.CapeVerde="cv",s.CostaRica="cr",s.Cuba="cu",s.Cyprus="cy",s.CzechRepublic="cz",s.Germany="de",s.Djibouti="dj",s.Dominica="dm",s.Denmark="dk",s.DominicanRepublic="do",s.Algeria="dz",s.Ecuador="ec",s.Egypt="eg",s.Eritrea="er",s.Spain="es",s.Estonia="ee",s.Ethiopia="et",s.Finland="fi",s.Fiji="fj",s.France="fr",s.MicronesiaFederatedStatesOf="fm",s.Gabon="ga",s.UnitedKingdom="gb",s.Georgia="ge",s.Ghana="gh",s.Guinea="gn",s.Gambia="gm",s.GuineaBissau="gw",s.EquatorialGuinea="gq",s.Greece="gr",s.Grenada="gd",s.Guatemala="gt",s.Guyana="gy",s.Honduras="hn",s.Croatia="hr",s.Haiti="ht",s.Hungary="hu",s.Indonesia="id",s.India="in",s.Ireland="ie",s.IranIslamicRepublicOf="ir",s.Iraq="iq",s.Iceland="is",s.Israel="il",s.Italy="it",s.Jamaica="jm",s.Jordan="jo",s.Japan="jp",s.Kazakhstan="kz",s.Kenya="ke",s.Kyrgyzstan="kg",s.Cambodia="kh",s.Kiribati="ki",s.SaintKittsAndNevis="kn",s.SouthKorea="kr",s.Kuwait="kw",s.LaoPeopleSDemocraticRepublic="la",s.Lebanon="lb",s.Liberia="lr",s.Libya="ly",s.SaintLucia="lc",s.Liechtenstein="li",s.SriLanka="lk",s.Lesotho="ls",s.Lithuania="lt",s.Luxembourg="lu",s.Latvia="lv",s.Morocco="ma",s.Monaco="mc",s.Moldova="md",s.Madagascar="mg",s.Maldives="mv",s.Mexico="mx",s.MarshallIslands="mh",s.NorthMacedonia="mk",s.Mali="ml",s.Malta="mt",s.Myanmar="mm",s.Montenegro="me",s.Mongolia="mn",s.Mozambique="mz",s.Mauritania="mr",s.Mauritius="mu",s.Malawi="mw",s.Malaysia="my",s.Namibia="na",s.Niger="ne",s.Nigeria="ng",s.Nicaragua="ni",s.Netherlands="nl",s.Norway="no",s.Nepal="np",s.Nauru="nr",s.NewZealand="nz",s.Oman="om",s.Pakistan="pk",s.Panama="pa",s.Peru="pe",s.Philippines="ph",s.Palau="pw",s.PapuaNewGuinea="pg",s.Poland="pl",s.NorthKorea="kp",s.Portugal="pt",s.Paraguay="py",s.Qatar="qa",s.Romania="ro",s.Russia="ru",s.Rwanda="rw",s.SaudiArabia="sa",s.Sudan="sd",s.Senegal="sn",s.Singapore="sg",s.SolomonIslands="sb",s.SierraLeone="sl",s.ElSalvador="sv",s.SanMarino="sm",s.Somalia="so",s.Serb
17ia="rs",s.SouthSudan="ss",s.SaoTomeAndPrincipe="st",s.Suriname="sr",s.Slovakia="sk",s.Slovenia="si",s.Sweden="se",s.Eswatini="sz",s.Seychelles="sc",s.Syria="sy",s.Chad="td",s.Togo="tg",s.Thailand="th",s.Tajikistan="tj",s.Turkmenistan="tm",s.TimorLeste="tl",s.Tonga="to",s.TrinidadAndTobago="tt",s.Tunisia="tn",s.Turkey="tr",s.Tuvalu="tv",s.Tanzania="tz",s.Uganda="ug",s.Ukraine="ua",s.Uruguay="uy",s.UnitedStates="us",s.Uzbekistan="uz",s.VaticanCity="va",s.SaintVincentAndTheGrenadines="vc",s.Venezuela="ve",s.Vietnam="vn",s.Vanuatu="vu",s.Samoa="ws",s.Yemen="ye",s.SouthAfrica="za",s.Zambia="zm",s.Zimbabwe="zw",(c=y||(y={})).GET="GET",c.POST="POST",c.PUT="PUT",c.PATCH="PATCH",c.DELETE="DELETE",c.OPTIONS="OPTIONS",(l=b||(b={})).Center="center",l.Topleft="top-left",l.Top="top",l.Topright="top-right",l.Left="left",l.Right="right",l.Bottomleft="bottom-left",l.Bottom="bottom",l.Bottomright="bottom-right",(d=I||(I={})).Jpg="jpg",d.Jpeg="jpeg",d.Gif="gif",d.Png="png",d.Webp="webp"},77902:function(e,t,i){"use strict";i.d(t,{M:function(){return o}});let n=e=>{let t;let i=new Set,n=(e,n)=>{let o="function"==typeof e?e(t):e;if(!Object.is(o,t)){let e=t;t=(null!=n?n:"object"!=typeof o||null===o)?o:Object.assign({},t,o),i.forEach(i=>i(t,e))}},o=()=>t,r={setState:n,getState:o,getInitialState:()=>a,subscribe:e=>(i.add(e),()=>i.delete(e)),destroy:()=>{console.warn("[DEPRECATED] The `destroy` method will be unsupported in a future version. Instead use unsubscribe function returned by subscribe. Everything will be garbage-collected if store is garbage-collected."),i.clear()}},a=t=e(n,o,r);return r},o=e=>e?n(e):n}}]);
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.