UNPKG

@cloudbase/js-sdk

Version:
1 lines 101 kB
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define("cloudbase_model",[],t):"object"==typeof exports?exports.cloudbase_model=t():e.cloudbase_model=t()}("undefined"!=typeof window?window:this,()=>(()=>{var e={829:(e,t,r)=>{"use strict";var n;r.r(t),r.d(t,{AbstractSDKRequest:()=>o,AbstractStorage:()=>i,StorageType:()=>n,formatUrl:()=>a}),function(e){e.local="local",e.none="none",e.session="session"}(n||(n={}));var o=function(){},i=function(){};function a(e,t,r){void 0===r&&(r={});var n=/\?/.test(t),o="";for(var i in r)""===o?!n&&(t+="?"):o+="&",o+=i+"="+encodeURIComponent(r[i]);return/^http(s)?\:\/\//.test(t+=o)?t:""+e+t}},304:function(e,t,r){!function(e){"use strict";var t=function(e,r){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])},t(e,r)};function n(e,r){if("function"!=typeof r&&null!==r)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");function n(){this.constructor=e}t(e,r),e.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}var o=function(){return o=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var o in t=arguments[r])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},o.apply(this,arguments)};function i(e,t,r,n){return new(r||(r=Promise))(function(t,o){function i(e){try{s(n.next(e))}catch(e){o(e)}}function a(e){try{s(n.throw(e))}catch(e){o(e)}}function s(e){var n;e.done?t(e.value):(n=e.value,n instanceof r?n:new r(function(e){e(n)})).then(i,a)}s((n=n.apply(e,[])).next())})}function a(e,t){var r,n,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function s(i){return function(s){return function(i){if(r)throw new TypeError("Generator is already executing.");for(;a;)try{if(r=1,n&&(o=2&i[0]?n.return:i[0]?n.throw||((o=n.return)&&o.call(n),0):n.next)&&!(o=o.call(n,i[1])).done)return o;switch(n=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return a.label++,{value:i[1],done:!1};case 5:a.label++,n=i[1],i=[0];continue;case 7:i=a.ops.pop(),a.trys.pop();continue;default:if(!((o=(o=a.trys).length>0&&o[o.length-1])||6!==i[0]&&2!==i[0])){a=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){a.label=i[1];break}if(6===i[0]&&a.label<o[1]){a.label=o[1],o=i;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(i);break}o[2]&&a.ops.pop(),a.trys.pop();continue}i=t.call(e,a)}catch(e){i=[6,e],n=0}finally{r=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,s])}}}var s=function(e){function t(t,r){var n=e.call(this,t)||this;return n.name="WxCloudSDKError",n.code=null==r?void 0:r.code,n.requestId=null==r?void 0:r.requestId,n.originError=null==r?void 0:r.originError,n}return n(t,e),t}(Error);function c(){return"undefined"!=typeof window&&window||"undefined"!=typeof globalThis&&globalThis}function u(){try{var e=c();if(!e)return;return"undefined"==typeof wx?c().location.href:e.__wxRoute}catch(e){}}var l=function(e){var t=e.dataSourceName,r=e.methodName,n=e.params,o=e.realMethodName,l=e.callFunction,f=e.envType,h=void 0===f?"prod":f,d=e.mode;return e.cloud,i(void 0,0,void 0,function(){var e,i,f,p,v,y;return a(this,function(a){switch(a.label){case 0:e={data:{},requestId:""},a.label=1;case 1:return a.trys.push([1,3,,4]),[4,l({name:"lowcode-datasource",data:{dataSourceName:t,methodName:r,params:n,userAgent:(g=c(),(null==g?void 0:g.navigator)?g.navigator.userAgent:"undefined"!=typeof wx&&wx.getSystemInfo?(wx.getSystemInfo({success:function(e){e&&(m=["brand","model","version","system","platform","SDKVersion","language"].map(function(t){return"".concat(t,": ").concat(e[t])}).join(", "))}}),m):void 0),referrer:u(),"x-sdk-version":"1.8.10",envType:h,mode:d}})];case 2:if(i=a.sent(),f=(null===(v=null==i?void 0:i.result)||void 0===v?void 0:v.requestId)||(null==i?void 0:i.requestId)||(null==i?void 0:i.requestID),null==i?void 0:i.result.code)throw new s("【错误】".concat(null==i?void 0:i.result.message,"\n【操作】调用 models.").concat(t?"".concat(t,"."):"").concat(o,"\n【错误码】").concat(null==i?void 0:i.result.code,"\n【请求ID】").concat(f||"N/A"),{code:null==i?void 0:i.result.code,requestId:f});return e.data=(null===(y=null==i?void 0:i.result)||void 0===y?void 0:y.data)||{},e.requestId=f,[3,4];case 3:throw"WxCloudSDKError"===(p=a.sent()).name?p:(console.log(p),new s("【错误】".concat(p.message,"\n 【操作】调用 models.").concat(t?"".concat(t,"."):"").concat(o,"\n 【请求ID】N/A"),{code:"UnknownError",originError:p}));case 4:return[2,e]}var m,g})})},f=function(e){var t=e.sql,r=e.params,n=e.config,o=e.callFunction,s=e.unsafe,c=void 0!==s&&s,u=e.cloud;return i(void 0,0,void 0,function(){return a(this,function(e){return[2,l({realMethodName:"$runSQL",methodName:"callWedaApi",params:{action:"RunMysqlCommand",data:{sqlTemplate:t,config:n,parameter:c?"":Object.entries(r||{}).reduce(function(e,t){var r=t[0],n=t[1];if(void 0!==n){var o="OBJECT";switch(typeof n){case"boolean":o="BOOLEAN";break;case"number":o="NUMBER";break;case"string":o="STRING";break;default:o=Array.isArray(n)?"ARRAY":"OBJECT"}e.push({key:r,type:o,value:"STRING"===o?n:JSON.stringify(n)})}return e},[])||[]}},callFunction:o,mode:"sdk",cloud:u})]})})},h=function(e,t){return{$runSQL:function(r,n,s){return i(this,0,void 0,function(){return a(this,function(i){switch(i.label){case 0:return[4,f({sql:r,params:n,config:o(o({},s),{preparedStatements:!0}),callFunction:e,cloud:t})];case 1:return[2,i.sent()]}})})},$runSQLRaw:function(r,n){return i(this,0,void 0,function(){return a(this,function(i){switch(i.label){case 0:return[4,f({sql:r,params:[],config:o(o({},n),{preparedStatements:!1}),callFunction:e,cloud:t})];case 1:return[2,i.sent()]}})})}}},d={filter:{where:{}},select:{$master:!0}};function p(e){return{getUrl:function(t){return"".concat(t,"/").concat(e)},method:"post"}}var v={get:o(o({},p("get")),{defaultParams:o({},d)}),list:o(o({},p("list")),{defaultParams:o({},d)}),create:p("create"),createMany:p("createMany"),update:o(o({},p("update")),{method:"put"}),updateMany:o(o({},p("updateMany")),{method:"put"}),upsert:p("upsert"),delete:p("delete"),deleteMany:p("deleteMany")},y="Unknown error occurred",m="NotSupported",g=function(e,t,r,n){var o=h(e,null==n?void 0:n.cloud);return new Proxy({},{get:function(e,i){if("string"==typeof i)return Object.prototype.hasOwnProperty.call(o,i)?o[i]:w(r,i,t,n)}})},b=function(e,t,r,n,o){return new s("【错误】".concat(e,"\n【操作】调用 models.").concat(t,".").concat(r,"\n【错误码】").concat(n,"\n【请求ID】").concat(o),{code:n,requestId:o})},w=function(e,t,r,n){var c=new Proxy({},{get:function(c,u){if("runSQLTemplate"!==u){var l=v[u];if(!l){var f=new Error("不支持的操作: ".concat(u));throw new s(f.message||y,{originError:f,code:m,requestId:"N/A"})}return function(n){return void 0===n&&(n={}),i(void 0,0,void 0,function(){var o,i,c,f,h,d,p,v,m,g;return a(this,function(a){switch(a.label){case 0:o=l.getUrl,i=l.method,c=l.defaultParams,f=void 0===c?{}:c,h=Object.assign({},f,n),d="pre"===h.envType?"pre":"prod",p=[e,d,o(t)].join("/"),a.label=1;case 1:return a.trys.push([1,3,,4]),[4,r({url:p,body:JSON.stringify(h),method:i})];case 2:if((v=a.sent()).code)throw b(null==v?void 0:v.message,t,u,null==v?void 0:v.code,null==v?void 0:v.requestId);return"get"===u&&Object.assign(v,{data:null!==(g=v.data.record)&&void 0!==g?g:v.data}),[2,v];case 3:throw m=a.sent(),new s((null==m?void 0:m.message)||y,{originError:m});case 4:return[2]}})})}}if(!(null==n?void 0:n.sqlBaseUrl))throw f=new Error("不支持的操作: ".concat(u)),new s(f.message||y,{originError:f,code:m,requestId:"N/A"});return function(e){return i(void 0,0,void 0,function(){var i,c,l,f,h,d,p,v,m,g,w,O,P,S,E,j;return a(this,function(a){switch(a.label){case 0:i=e.params,c=e.templateName,l=e.envType,f="pre"===l?"pre":"prod",h=[n.sqlBaseUrl,f,c,"run"].join("/"),d=Object.entries(i||{}).reduce(function(e,t){var r=t[0],n=t[1];if(void 0!==n){var o="OBJECT";switch(typeof n){case"boolean":o="BOOLEAN";break;case"number":o="NUMBER";break;case"string":o="STRING";break;default:o=Array.isArray(n)?"ARRAY":"OBJECT"}e.push({key:r,type:o,value:"STRING"===o?n:JSON.stringify(n)})}return e},[]),a.label=1;case 1:return a.trys.push([1,3,,4]),[4,r({url:h,body:JSON.stringify({parameter:d}),method:"POST"})];case 2:if(p=a.sent(),null===(m=null==p?void 0:p.Response)||void 0===m?void 0:m.Error)throw b(null===(w=null===(g=null==p?void 0:p.Response)||void 0===g?void 0:g.Error)||void 0===w?void 0:w.Message,t,u,null===(P=null===(O=null==p?void 0:p.Response)||void 0===O?void 0:O.Error)||void 0===P?void 0:P.Code,null===(S=null==p?void 0:p.Response)||void 0===S?void 0:S.RequestId);return[2,o(o({},null!==(E=null==p?void 0:p.Response)&&void 0!==E?E:{}),{data:null===(j=null==p?void 0:p.Response)||void 0===j?void 0:j.Data})];case 3:throw v=a.sent(),new s((null==v?void 0:v.message)||y,{originError:v});case 4:return[2]}})})}}});return c},O={create:{methodName:"wedaCreateV2"},createMany:{methodName:"wedaBatchCreateV2"},update:{methodName:"wedaUpdateV2"},upsert:{methodName:"wedaUpsertV2"},updateMany:{methodName:"wedaBatchUpdateV2"},delete:{methodName:"wedaDeleteV2"},deleteMany:{methodName:"wedaBatchDeleteV2"},get:{methodName:"wedaGetItemV2",defaultParams:{filter:{where:{}},select:{$master:!0}}},list:{methodName:"wedaGetRecordsV2",defaultParams:{filter:{where:{}},select:{$master:!0}}}},P=function(e,t){var r=h(e,t);return new Proxy({},{get:function(n,c){if("string"==typeof c)return Object.prototype.hasOwnProperty.call(r,c)?r[c]:function(e,t,r){return new Proxy({},{get:function(n,c){var u=O[c];if(!u){var f=new Error("不支持的操作: ".concat(c));throw new s(f.message||"Unknown error occurred",{originError:f,code:"NotSupported",requestId:"N/A"})}return function(n){return i(void 0,0,void 0,function(){var i,s,f,h,d;return a(this,function(a){switch(a.label){case 0:return i=o(o({},u.defaultParams||{}),n||{}),[4,l({callFunction:t,dataSourceName:e,methodName:u.methodName,realMethodName:c,params:i,envType:null==n?void 0:n.envType,cloud:r})];case 1:return s=a.sent(),f={data:{}},h=u.responseKey,f.data=h?null===(d=null==s?void 0:s.data)||void 0===d?void 0:d[h]:null==s?void 0:s.data,[2,f]}})})}}})}(c,e,t)}})},S=function(){function e(e){var t=this;this.map=new Map,e&&(e instanceof Headers?e.forEach(function(e,r){t.append(r,e)}):Array.isArray(e)?e.forEach(function(e){var r=e[0],n=e[1];t.append(r,n)}):"object"==typeof e&&Object.keys(e).forEach(function(r){t.append(r,e[r])}))}return e.prototype.append=function(e,t){var r=e.toLowerCase(),n=this.map.get(r);n?this.map.set(r,"".concat(n,", ").concat(t)):this.map.set(r,String(t))},e.prototype.delete=function(e){this.map.delete(e.toLowerCase())},e.prototype.forEach=function(e,t){var r=this;this.map.forEach(function(n,o){e.call(t,n,o,r)})},e.prototype.get=function(e){return this.map.get(e.toLowerCase())||null},e.prototype.has=function(e){return this.map.has(e.toLowerCase())},e.prototype.set=function(e,t){this.map.set(e.toLowerCase(),String(t))},e.prototype.entries=function(){return this.map.entries()},e.prototype.keys=function(){return this.map.keys()},e.prototype.values=function(){return this.map.values()},e.prototype.getSetCookie=function(){var e=[];return this.map.forEach(function(t,r){"set-cookie"===r&&e.push(t)}),e},e.prototype.toJSON=function(){var e={};return this.map.forEach(function(t,r){e[r]=t}),e},e.prototype[Symbol.iterator]=function(){return this.entries()},e}();"object"!=typeof globalThis||globalThis.Headers||(globalThis.Headers=S);var E="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:void 0!==r.g?r.g:"undefined"!=typeof self?self:{};var j,_,A=function(e){try{return!!e()}catch(e){return!0}},R=!A(function(){var e=function(){}.bind();return"function"!=typeof e||e.hasOwnProperty("prototype")}),k=R,I=Function.prototype,x=I.call,T=k&&I.bind.bind(x,x),C=k?T:function(e){return function(){return x.apply(e,arguments)}},N=C,L=N({}.toString),U=N("".slice),M=function(e){return U(L(e),8,-1)},q=A,D=M,B=Object,F=C("".split),H=q(function(){return!B("z").propertyIsEnumerable(0)})?function(e){return"String"===D(e)?F(e,""):B(e)}:B,G=function(e){return null==e},W=G,J=TypeError,z=function(e){if(W(e))throw new J("Can't call method on "+e);return e},V=H,$=z,Q=function(e){return V($(e))},K={},Y=function(e){return e&&e.Math===Math&&e},X=Y("object"==typeof globalThis&&globalThis)||Y("object"==typeof window&&window)||Y("object"==typeof self&&self)||Y("object"==typeof E&&E)||Y("object"==typeof E&&E)||function(){return this}()||Function("return this")(),Z="object"==typeof document&&document.all,ee=void 0===Z&&void 0!==Z?function(e){return"function"==typeof e||e===Z}:function(e){return"function"==typeof e},te=ee,re=X.WeakMap,ne=te(re)&&/native code/.test(String(re)),oe=ee,ie=function(e){return"object"==typeof e?null!==e:oe(e)},ae=!A(function(){return 7!==Object.defineProperty({},1,{get:function(){return 7}})[1]}),se={},ce=ie,ue=X.document,le=ce(ue)&&ce(ue.createElement),fe=function(e){return le?ue.createElement(e):{}},he=fe,de=!ae&&!A(function(){return 7!==Object.defineProperty(he("div"),"a",{get:function(){return 7}}).a}),pe=ae&&A(function(){return 42!==Object.defineProperty(function(){},"prototype",{value:42,writable:!1}).prototype}),ve=ie,ye=String,me=TypeError,ge=function(e){if(ve(e))return e;throw new me(ye(e)+" is not an object")},be=R,we=Function.prototype.call,Oe=be?we.bind(we):function(){return we.apply(we,arguments)},Pe={},Se=Pe,Ee=X,je=ee,_e=function(e){return je(e)?e:void 0},Ae=function(e,t){return arguments.length<2?_e(Se[e])||_e(Ee[e]):Se[e]&&Se[e][t]||Ee[e]&&Ee[e][t]},Re=C({}.isPrototypeOf),ke=X.navigator,Ie=ke&&ke.userAgent,xe=X,Te=Ie?String(Ie):"",Ce=xe.process,Ne=xe.Deno,Le=Ce&&Ce.versions||Ne&&Ne.version,Ue=Le&&Le.v8;Ue&&(_=(j=Ue.split("."))[0]>0&&j[0]<4?1:+(j[0]+j[1])),!_&&Te&&(!(j=Te.match(/Edge\/(\d+)/))||j[1]>=74)&&(j=Te.match(/Chrome\/(\d+)/))&&(_=+j[1]);var Me=_,qe=A,De=X.String,Be=!!Object.getOwnPropertySymbols&&!qe(function(){var e=Symbol("symbol detection");return!De(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&Me&&Me<41}),Fe=Be&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,He=Ae,Ge=ee,We=Re,Je=Object,ze=Fe?function(e){return"symbol"==typeof e}:function(e){var t=He("Symbol");return Ge(t)&&We(t.prototype,Je(e))},Ve=String,$e=function(e){try{return Ve(e)}catch(e){return"Object"}},Qe=ee,Ke=$e,Ye=TypeError,Xe=function(e){if(Qe(e))return e;throw new Ye(Ke(e)+" is not a function")},Ze=Xe,et=G,tt=function(e,t){var r=e[t];return et(r)?void 0:Ze(r)},rt=Oe,nt=ee,ot=ie,it=TypeError,at={exports:{}},st=X,ct=Object.defineProperty,ut=X,lt="__core-js_shared__",ft=at.exports=ut[lt]||function(e,t){try{ct(st,e,{value:t,configurable:!0,writable:!0})}catch(r){st[e]=t}return t}(lt,{});(ft.versions||(ft.versions=[])).push({version:"3.45.0",mode:"pure",copyright:"© 2014-2025 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.45.0/LICENSE",source:"https://github.com/zloirock/core-js"});var ht=at.exports,dt=ht,pt=function(e,t){return dt[e]||(dt[e]=t||{})},vt=z,yt=Object,mt=function(e){return yt(vt(e))},gt=mt,bt=C({}.hasOwnProperty),wt=Object.hasOwn||function(e,t){return bt(gt(e),t)},Ot=C,Pt=0,St=Math.random(),Et=Ot(1.1.toString),jt=function(e){return"Symbol("+(void 0===e?"":e)+")_"+Et(++Pt+St,36)},_t=pt,At=wt,Rt=jt,kt=Be,It=Fe,xt=X.Symbol,Tt=_t("wks"),Ct=It?xt.for||xt:xt&&xt.withoutSetter||Rt,Nt=function(e){return At(Tt,e)||(Tt[e]=kt&&At(xt,e)?xt[e]:Ct("Symbol."+e)),Tt[e]},Lt=Oe,Ut=ie,Mt=ze,qt=tt,Dt=TypeError,Bt=Nt("toPrimitive"),Ft=function(e,t){if(!Ut(e)||Mt(e))return e;var r,n=qt(e,Bt);if(n){if(void 0===t&&(t="default"),r=Lt(n,e,t),!Ut(r)||Mt(r))return r;throw new Dt("Can't convert object to primitive value")}return void 0===t&&(t="number"),function(e,t){var r,n;if("string"===t&&nt(r=e.toString)&&!ot(n=rt(r,e)))return n;if(nt(r=e.valueOf)&&!ot(n=rt(r,e)))return n;if("string"!==t&&nt(r=e.toString)&&!ot(n=rt(r,e)))return n;throw new it("Can't convert object to primitive value")}(e,t)},Ht=ze,Gt=function(e){var t=Ft(e,"string");return Ht(t)?t:t+""},Wt=ae,Jt=de,zt=pe,Vt=ge,$t=Gt,Qt=TypeError,Kt=Object.defineProperty,Yt=Object.getOwnPropertyDescriptor,Xt="enumerable",Zt="configurable",er="writable";se.f=Wt?zt?function(e,t,r){if(Vt(e),t=$t(t),Vt(r),"function"==typeof e&&"prototype"===t&&"value"in r&&er in r&&!r[er]){var n=Yt(e,t);n&&n[er]&&(e[t]=r.value,r={configurable:Zt in r?r[Zt]:n[Zt],enumerable:Xt in r?r[Xt]:n[Xt],writable:!1})}return Kt(e,t,r)}:Kt:function(e,t,r){if(Vt(e),t=$t(t),Vt(r),Jt)try{return Kt(e,t,r)}catch(e){}if("get"in r||"set"in r)throw new Qt("Accessors not supported");return"value"in r&&(e[t]=r.value),e};var tr,rr,nr,or=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}},ir=se,ar=or,sr=ae?function(e,t,r){return ir.f(e,t,ar(1,r))}:function(e,t,r){return e[t]=r,e},cr=jt,ur=pt("keys"),lr=function(e){return ur[e]||(ur[e]=cr(e))},fr={},hr=ne,dr=X,pr=ie,vr=sr,yr=wt,mr=ht,gr=lr,br=fr,wr="Object already initialized",Or=dr.TypeError,Pr=dr.WeakMap;if(hr||mr.state){var Sr=mr.state||(mr.state=new Pr);Sr.get=Sr.get,Sr.has=Sr.has,Sr.set=Sr.set,tr=function(e,t){if(Sr.has(e))throw new Or(wr);return t.facade=e,Sr.set(e,t),t},rr=function(e){return Sr.get(e)||{}},nr=function(e){return Sr.has(e)}}else{var Er=gr("state");br[Er]=!0,tr=function(e,t){if(yr(e,Er))throw new Or(wr);return t.facade=e,vr(e,Er,t),t},rr=function(e){return yr(e,Er)?e[Er]:{}},nr=function(e){return yr(e,Er)}}var jr={set:tr,get:rr,has:nr,enforce:function(e){return nr(e)?rr(e):tr(e,{})},getterFor:function(e){return function(t){var r;if(!pr(t)||(r=rr(t)).type!==e)throw new Or("Incompatible receiver, "+e+" required");return r}}},_r=R,Ar=Function.prototype,Rr=Ar.apply,kr=Ar.call,Ir="object"==typeof Reflect&&Reflect.apply||(_r?kr.bind(Rr):function(){return kr.apply(Rr,arguments)}),xr=M,Tr=C,Cr=function(e){if("Function"===xr(e))return Tr(e)},Nr={},Lr={},Ur={}.propertyIsEnumerable,Mr=Object.getOwnPropertyDescriptor,qr=Mr&&!Ur.call({1:2},1);Lr.f=qr?function(e){var t=Mr(this,e);return!!t&&t.enumerable}:Ur;var Dr=ae,Br=Oe,Fr=Lr,Hr=or,Gr=Q,Wr=Gt,Jr=wt,zr=de,Vr=Object.getOwnPropertyDescriptor;Nr.f=Dr?Vr:function(e,t){if(e=Gr(e),t=Wr(t),zr)try{return Vr(e,t)}catch(e){}if(Jr(e,t))return Hr(!Br(Fr.f,e,t),e[t])};var $r=A,Qr=ee,Kr=/#|\.prototype\./,Yr=function(e,t){var r=Zr[Xr(e)];return r===tn||r!==en&&(Qr(t)?$r(t):!!t)},Xr=Yr.normalize=function(e){return String(e).replace(Kr,".").toLowerCase()},Zr=Yr.data={},en=Yr.NATIVE="N",tn=Yr.POLYFILL="P",rn=Yr,nn=Xe,on=R,an=Cr(Cr.bind),sn=function(e,t){return nn(e),void 0===t?e:on?an(e,t):function(){return e.apply(t,arguments)}},cn=X,un=Ir,ln=Cr,fn=ee,hn=Nr.f,dn=rn,pn=Pe,vn=sn,yn=sr,mn=wt,gn=function(e){var t=function(r,n,o){if(this instanceof t){switch(arguments.length){case 0:return new e;case 1:return new e(r);case 2:return new e(r,n)}return new e(r,n,o)}return un(e,this,arguments)};return t.prototype=e.prototype,t},bn=function(e,t){var r,n,o,i,a,s,c,u,l,f=e.target,h=e.global,d=e.stat,p=e.proto,v=h?cn:d?cn[f]:cn[f]&&cn[f].prototype,y=h?pn:pn[f]||yn(pn,f,{})[f],m=y.prototype;for(i in t)n=!(r=dn(h?i:f+(d?".":"#")+i,e.forced))&&v&&mn(v,i),s=y[i],n&&(c=e.dontCallGetSet?(l=hn(v,i))&&l.value:v[i]),a=n&&c?c:t[i],(r||p||typeof s!=typeof a)&&(u=e.bind&&n?vn(a,cn):e.wrap&&n?gn(a):p&&fn(a)?ln(a):a,(e.sham||a&&a.sham||s&&s.sham)&&yn(u,"sham",!0),yn(y,i,u),p&&(mn(pn,o=f+"Prototype")||yn(pn,o,{}),yn(pn[o],i,a),e.real&&m&&(r||!m[i])&&yn(m,i,a)))},wn=ae,On=wt,Pn=Function.prototype,Sn=wn&&Object.getOwnPropertyDescriptor,En=On(Pn,"name"),jn={EXISTS:En,PROPER:En&&"something"===function(){}.name,CONFIGURABLE:En&&(!wn||wn&&Sn(Pn,"name").configurable)},_n={},An=Math.ceil,Rn=Math.floor,kn=Math.trunc||function(e){var t=+e;return(t>0?Rn:An)(t)},In=function(e){var t=+e;return t!=t||0===t?0:kn(t)},xn=In,Tn=Math.max,Cn=Math.min,Nn=function(e,t){var r=xn(e);return r<0?Tn(r+t,0):Cn(r,t)},Ln=In,Un=Math.min,Mn=function(e){return function(e){var t=Ln(e);return t>0?Un(t,9007199254740991):0}(e.length)},qn=Q,Dn=Nn,Bn=Mn,Fn=function(e){return function(t,r,n){var o=qn(t),i=Bn(o);if(0===i)return!e&&-1;var a,s=Dn(n,i);if(e&&r!=r){for(;i>s;)if((a=o[s++])!=a)return!0}else for(;i>s;s++)if((e||s in o)&&o[s]===r)return e||s||0;return!e&&-1}},Hn={includes:Fn(!0),indexOf:Fn(!1)},Gn=wt,Wn=Q,Jn=Hn.indexOf,zn=fr,Vn=C([].push),$n=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],Qn=$n,Kn=Object.keys||function(e){return function(e,t){var r,n=Wn(e),o=0,i=[];for(r in n)!Gn(zn,r)&&Gn(n,r)&&Vn(i,r);for(;t.length>o;)Gn(n,r=t[o++])&&(~Jn(i,r)||Vn(i,r));return i}(e,Qn)},Yn=ae,Xn=pe,Zn=se,eo=ge,to=Q,ro=Kn;_n.f=Yn&&!Xn?Object.defineProperties:function(e,t){eo(e);for(var r,n=to(t),o=ro(t),i=o.length,a=0;i>a;)Zn.f(e,r=o[a++],n[r]);return e};var no,oo=Ae("document","documentElement"),io=ge,ao=_n,so=$n,co=fr,uo=oo,lo=fe,fo="prototype",ho="script",po=lr("IE_PROTO"),vo=function(){},yo=function(e){return"<"+ho+">"+e+"</"+ho+">"},mo=function(e){e.write(yo("")),e.close();var t=e.parentWindow.Object;return e=null,t},go=function(){try{no=new ActiveXObject("htmlfile")}catch(e){}var e,t,r;go="undefined"!=typeof document?document.domain&&no?mo(no):(t=lo("iframe"),r="java"+ho+":",t.style.display="none",uo.appendChild(t),t.src=String(r),(e=t.contentWindow.document).open(),e.write(yo("document.F=Object")),e.close(),e.F):mo(no);for(var n=so.length;n--;)delete go[fo][so[n]];return go()};co[po]=!0;var bo,wo,Oo,Po=Object.create||function(e,t){var r;return null!==e?(vo[fo]=io(e),r=new vo,vo[fo]=null,r[po]=e):r=go(),void 0===t?r:ao.f(r,t)},So=!A(function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype}),Eo=wt,jo=ee,_o=mt,Ao=So,Ro=lr("IE_PROTO"),ko=Object,Io=ko.prototype,xo=Ao?ko.getPrototypeOf:function(e){var t=_o(e);if(Eo(t,Ro))return t[Ro];var r=t.constructor;return jo(r)&&t instanceof r?r.prototype:t instanceof ko?Io:null},To=sr,Co=function(e,t,r,n){return n&&n.enumerable?e[t]=r:To(e,t,r),e},No=A,Lo=ee,Uo=ie,Mo=Po,qo=xo,Do=Co,Bo=Nt("iterator"),Fo=!1;[].keys&&("next"in(Oo=[].keys())?(wo=qo(qo(Oo)))!==Object.prototype&&(bo=wo):Fo=!0);var Ho=!Uo(bo)||No(function(){var e={};return bo[Bo].call(e)!==e});Lo((bo=Ho?{}:Mo(bo))[Bo])||Do(bo,Bo,function(){return this});var Go={IteratorPrototype:bo,BUGGY_SAFARI_ITERATORS:Fo},Wo={};Wo[Nt("toStringTag")]="z";var Jo="[object z]"===String(Wo),zo=Jo,Vo=ee,$o=M,Qo=Nt("toStringTag"),Ko=Object,Yo="Arguments"===$o(function(){return arguments}()),Xo=zo?$o:function(e){var t,r,n;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(r=function(e,t){try{return e[t]}catch(e){}}(t=Ko(e),Qo))?r:Yo?$o(t):"Object"===(n=$o(t))&&Vo(t.callee)?"Arguments":n},Zo=Xo,ei=Jo?{}.toString:function(){return"[object "+Zo(this)+"]"},ti=Jo,ri=se.f,ni=sr,oi=wt,ii=ei,ai=Nt("toStringTag"),si=function(e,t,r,n){var o=r?e:e&&e.prototype;o&&(oi(o,ai)||ri(o,ai,{configurable:!0,value:t}),n&&!ti&&ni(o,"toString",ii))},ci=Go.IteratorPrototype,ui=Po,li=or,fi=si,hi=K,di=function(){return this},pi=function(e,t,r,n){var o=t+" Iterator";return e.prototype=ui(ci,{next:li(+!n,r)}),fi(e,o,!1,!0),hi[o]=di,e},vi=bn,yi=Oe,mi=pi,gi=xo,bi=si,wi=Co,Oi=K,Pi=jn.PROPER,Si=Go.BUGGY_SAFARI_ITERATORS,Ei=Nt("iterator"),ji="keys",_i="values",Ai="entries",Ri=function(){return this},ki=function(e,t,r,n,o,i,a){mi(r,t,n);var s,c,u,l=function(e){if(e===o&&v)return v;if(!Si&&e&&e in d)return d[e];switch(e){case ji:case _i:case Ai:return function(){return new r(this,e)}}return function(){return new r(this)}},f=t+" Iterator",h=!1,d=e.prototype,p=d[Ei]||d["@@iterator"]||o&&d[o],v=!Si&&p||l(o),y="Array"===t&&d.entries||p;if(y&&(s=gi(y.call(new e)))!==Object.prototype&&s.next&&(bi(s,f,!0,!0),Oi[f]=Ri),Pi&&o===_i&&p&&p.name!==_i&&(h=!0,v=function(){return yi(p,this)}),o)if(c={values:l(_i),keys:i?v:l(ji),entries:l(Ai)},a)for(u in c)(Si||h||!(u in d))&&wi(d,u,c[u]);else vi({target:t,proto:!0,forced:Si||h},c);return a&&d[Ei]!==v&&wi(d,Ei,v,{name:o}),Oi[t]=v,c},Ii=function(e,t){return{value:e,done:t}},xi=Q,Ti=K,Ci=jr;se.f;var Ni=ki,Li=Ii,Ui="Array Iterator",Mi=Ci.set,qi=Ci.getterFor(Ui);Ni(Array,"Array",function(e,t){Mi(this,{type:Ui,target:xi(e),index:0,kind:t})},function(){var e=qi(this),t=e.target,r=e.index++;if(!t||r>=t.length)return e.target=null,Li(void 0,!0);switch(e.kind){case"keys":return Li(r,!1);case"values":return Li(t[r],!1)}return Li([r,t[r]],!1)},"values"),Ti.Arguments=Ti.Array;var Di=bn,Bi=C,Fi=Nn,Hi=RangeError,Gi=String.fromCharCode,Wi=String.fromCodePoint,Ji=Bi([].join);Di({target:"String",stat:!0,arity:1,forced:!!Wi&&1!==Wi.length},{fromCodePoint:function(e){for(var t,r=[],n=arguments.length,o=0;n>o;){if(t=+arguments[o++],Fi(t,1114111)!==t)throw new Hi(t+" is not a valid code point");r[o]=t<65536?Gi(t):Gi(55296+((t-=65536)>>10),t%1024+56320)}return Ji(r,"")}});var zi=X,Vi=ae,$i=Object.getOwnPropertyDescriptor,Qi=A,Ki=Nt("iterator"),Yi=!Qi(function(){var e=new URL("b?a=1&b=2&c=3","https://a"),t=e.searchParams,r=new URLSearchParams("a=1&a=2&b=3"),n="";return e.pathname="c%20d",t.forEach(function(e,r){t.delete("b"),n+=r+e}),r.delete("a",2),r.delete("b",void 0),!e.toJSON||!r.has("a",1)||r.has("a",2)||!r.has("a",void 0)||r.has("b")||!t.size&&true||!t.sort||"https://a/c%20d?a=1&c=3"!==e.href||"3"!==t.get("c")||"a=1"!==String(new URLSearchParams("?a=1"))||!t[Ki]||"a"!==new URL("https://a@b").username||"b"!==new URLSearchParams(new URLSearchParams("a=b")).get("a")||"xn--e1aybc"!==new URL("https://тест").host||"#%D0%B1"!==new URL("https://a#б").hash||"a1c3"!==n||"x"!==new URL("https://x",void 0).host}),Xi=se,Zi=function(e,t,r){return Xi.f(e,t,r)},ea=Co,ta=Re,ra=TypeError,na=function(e,t){if(ta(t,e))return e;throw new ra("Incorrect invocation")},oa=Xo,ia=String,aa=function(e){if("Symbol"===oa(e))throw new TypeError("Cannot convert a Symbol value to a string");return ia(e)},sa=Xo,ca=tt,ua=G,la=K,fa=Nt("iterator"),ha=function(e){if(!ua(e))return ca(e,fa)||ca(e,"@@iterator")||la[sa(e)]},da=Oe,pa=Xe,va=ge,ya=$e,ma=ha,ga=TypeError,ba=function(e,t){var r=arguments.length<2?ma(e):t;if(pa(r))return va(da(r,e));throw new ga(ya(e)+" is not iterable")},wa=TypeError,Oa=function(e,t){if(e<t)throw new wa("Not enough arguments");return e},Pa=C([].slice),Sa=Pa,Ea=Math.floor,ja=function(e,t){var r=e.length;if(r<8)for(var n,o,i=1;i<r;){for(o=i,n=e[i];o&&t(e[o-1],n)>0;)e[o]=e[--o];o!==i++&&(e[o]=n)}else for(var a=Ea(r/2),s=ja(Sa(e,0,a),t),c=ja(Sa(e,a),t),u=s.length,l=c.length,f=0,h=0;f<u||h<l;)e[f+h]=f<u&&h<l?t(s[f],c[h])<=0?s[f++]:c[h++]:f<u?s[f++]:c[h++];return e},_a=bn,Aa=X,Ra=function(e){if(!Vi)return zi[e];var t=$i(zi,e);return t&&t.value},ka=Ae,Ia=Oe,xa=C,Ta=ae,Ca=Yi,Na=Co,La=Zi,Ua=si,Ma=pi,qa=jr,Da=na,Ba=ee,Fa=wt,Ha=sn,Ga=Xo,Wa=ge,Ja=ie,za=aa,Va=Po,$a=or,Qa=ba,Ka=ha,Ya=Ii,Xa=Oa,Za=ja,es=Nt("iterator"),ts="URLSearchParams",rs=ts+"Iterator",ns=qa.set,os=qa.getterFor(ts),is=qa.getterFor(rs),as=Ra("fetch"),ss=Ra("Request"),cs=Ra("Headers"),us=ss&&ss.prototype,ls=cs&&cs.prototype,fs=Aa.TypeError,hs=Aa.encodeURIComponent,ds=String.fromCharCode,ps=ka("String","fromCodePoint"),vs=parseInt,ys=xa("".charAt),ms=xa([].join),gs=xa([].push),bs=xa("".replace),ws=xa([].shift),Os=xa([].splice),Ps=xa("".split),Ss=xa("".slice),Es=xa(/./.exec),js=/\+/g,_s=/^[0-9a-f]+$/i,As=function(e,t){var r=Ss(e,t,t+2);return Es(_s,r)?vs(r,16):NaN},Rs=function(e){for(var t=0,r=128;r>0&&0!==(e&r);r>>=1)t++;return t},ks=function(e){var t=null;switch(e.length){case 1:t=e[0];break;case 2:t=(31&e[0])<<6|63&e[1];break;case 3:t=(15&e[0])<<12|(63&e[1])<<6|63&e[2];break;case 4:t=(7&e[0])<<18|(63&e[1])<<12|(63&e[2])<<6|63&e[3]}return t>1114111?null:t},Is=function(e){for(var t=(e=bs(e,js," ")).length,r="",n=0;n<t;){var o=ys(e,n);if("%"===o){if("%"===ys(e,n+1)||n+3>t){r+="%",n++;continue}var i=As(e,n+1);if(i!=i){r+=o,n++;continue}n+=2;var a=Rs(i);if(0===a)o=ds(i);else{if(1===a||a>4){r+="�",n++;continue}for(var s=[i],c=1;c<a&&!(3+ ++n>t||"%"!==ys(e,n));){var u=As(e,n+1);if(u!=u){n+=3;break}if(u>191||u<128)break;gs(s,u),n+=2,c++}if(s.length!==a){r+="�";continue}var l=ks(s);null===l?r+="�":o=ps(l)}}r+=o,n++}return r},xs=/[!'()~]|%20/g,Ts={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+"},Cs=function(e){return Ts[e]},Ns=function(e){return bs(hs(e),xs,Cs)},Ls=Ma(function(e,t){ns(this,{type:rs,target:os(e).entries,index:0,kind:t})},ts,function(){var e=is(this),t=e.target,r=e.index++;if(!t||r>=t.length)return e.target=null,Ya(void 0,!0);var n=t[r];switch(e.kind){case"keys":return Ya(n.key,!1);case"values":return Ya(n.value,!1)}return Ya([n.key,n.value],!1)},!0),Us=function(e){this.entries=[],this.url=null,void 0!==e&&(Ja(e)?this.parseObject(e):this.parseQuery("string"==typeof e?"?"===ys(e,0)?Ss(e,1):e:za(e)))};Us.prototype={type:ts,bindURL:function(e){this.url=e,this.update()},parseObject:function(e){var t,r,n,o,i,a,s,c=this.entries,u=Ka(e);if(u)for(r=(t=Qa(e,u)).next;!(n=Ia(r,t)).done;){if(i=(o=Qa(Wa(n.value))).next,(a=Ia(i,o)).done||(s=Ia(i,o)).done||!Ia(i,o).done)throw new fs("Expected sequence with length 2");gs(c,{key:za(a.value),value:za(s.value)})}else for(var l in e)Fa(e,l)&&gs(c,{key:l,value:za(e[l])})},parseQuery:function(e){if(e)for(var t,r,n=this.entries,o=Ps(e,"&"),i=0;i<o.length;)(t=o[i++]).length&&(r=Ps(t,"="),gs(n,{key:Is(ws(r)),value:Is(ms(r,"="))}))},serialize:function(){for(var e,t=this.entries,r=[],n=0;n<t.length;)e=t[n++],gs(r,Ns(e.key)+"="+Ns(e.value));return ms(r,"&")},update:function(){this.entries.length=0,this.parseQuery(this.url.query)},updateURL:function(){this.url&&this.url.update()}};var Ms=function(){Da(this,qs);var e=ns(this,new Us(arguments.length>0?arguments[0]:void 0));Ta||(this.size=e.entries.length)},qs=Ms.prototype;if(function(e,t,r){for(var n in t)r&&r.unsafe&&e[n]?e[n]=t[n]:ea(e,n,t[n],r)}(qs,{append:function(e,t){var r=os(this);Xa(arguments.length,2),gs(r.entries,{key:za(e),value:za(t)}),Ta||this.length++,r.updateURL()},delete:function(e){for(var t=os(this),r=Xa(arguments.length,1),n=t.entries,o=za(e),i=r<2?void 0:arguments[1],a=void 0===i?i:za(i),s=0;s<n.length;){var c=n[s];if(c.key!==o||void 0!==a&&c.value!==a)s++;else if(Os(n,s,1),void 0!==a)break}Ta||(this.size=n.length),t.updateURL()},get:function(e){var t=os(this).entries;Xa(arguments.length,1);for(var r=za(e),n=0;n<t.length;n++)if(t[n].key===r)return t[n].value;return null},getAll:function(e){var t=os(this).entries;Xa(arguments.length,1);for(var r=za(e),n=[],o=0;o<t.length;o++)t[o].key===r&&gs(n,t[o].value);return n},has:function(e){for(var t=os(this).entries,r=Xa(arguments.length,1),n=za(e),o=r<2?void 0:arguments[1],i=void 0===o?o:za(o),a=0;a<t.length;){var s=t[a++];if(s.key===n&&(void 0===i||s.value===i))return!0}return!1},set:function(e,t){var r=os(this);Xa(arguments.length,1);for(var n,o=r.entries,i=!1,a=za(e),s=za(t),c=0;c<o.length;c++)(n=o[c]).key===a&&(i?Os(o,c--,1):(i=!0,n.value=s));i||gs(o,{key:a,value:s}),Ta||(this.size=o.length),r.updateURL()},sort:function(){var e=os(this);Za(e.entries,function(e,t){return e.key>t.key?1:-1}),e.updateURL()},forEach:function(e){for(var t,r=os(this).entries,n=Ha(e,arguments.length>1?arguments[1]:void 0),o=0;o<r.length;)n((t=r[o++]).value,t.key,this)},keys:function(){return new Ls(this,"keys")},values:function(){return new Ls(this,"values")},entries:function(){return new Ls(this,"entries")}},{enumerable:!0}),Na(qs,es,qs.entries,{name:"entries"}),Na(qs,"toString",function(){return os(this).serialize()},{enumerable:!0}),Ta&&La(qs,"size",{get:function(){return os(this).entries.length},configurable:!0,enumerable:!0}),Ua(Ms,ts),_a({global:!0,constructor:!0,forced:!Ca},{URLSearchParams:Ms}),!Ca&&Ba(cs)){var Ds=xa(ls.has),Bs=xa(ls.set),Fs=function(e){if(Ja(e)){var t,r=e.body;if(Ga(r)===ts)return t=e.headers?new cs(e.headers):new cs,Ds(t,"content-type")||Bs(t,"content-type","application/x-www-form-urlencoded;charset=UTF-8"),Va(e,{body:$a(0,za(r)),headers:$a(0,t)})}return e};if(Ba(as)&&_a({global:!0,enumerable:!0,dontCallGetSet:!0,forced:!0},{fetch:function(e){return as(e,arguments.length>1?Fs(arguments[1]):{})}}),Ba(ss)){var Hs=function(e){return Da(this,us),new ss(e,arguments.length>1?Fs(arguments[1]):{})};us.constructor=Hs,Hs.prototype=us,_a({global:!0,constructor:!0,dontCallGetSet:!0,forced:!0},{Request:Hs})}}var Gs={URLSearchParams:Ms,getState:os},Ws=C,Js=In,zs=aa,Vs=z,$s=Ws("".charAt),Qs=Ws("".charCodeAt),Ks=Ws("".slice),Ys=function(e){return function(t,r){var n,o,i=zs(Vs(t)),a=Js(r),s=i.length;return a<0||a>=s?e?"":void 0:(n=Qs(i,a))<55296||n>56319||a+1===s||(o=Qs(i,a+1))<56320||o>57343?e?$s(i,a):n:e?Ks(i,a,a+2):o-56320+(n-55296<<10)+65536}},Xs={codeAt:Ys(!1),charAt:Ys(!0)},Zs=Xs.charAt,ec=aa,tc=jr,rc=ki,nc=Ii,oc="String Iterator",ic=tc.set,ac=tc.getterFor(oc);rc(String,"String",function(e){ic(this,{type:oc,string:ec(e),index:0})},function(){var e,t=ac(this),r=t.string,n=t.index;return n>=r.length?nc(void 0,!0):(e=Zs(r,n),t.index+=e.length,nc(e,!1))});var sc={};sc.f=Object.getOwnPropertySymbols;var cc=ae,uc=C,lc=Oe,fc=A,hc=Kn,dc=sc,pc=Lr,vc=mt,yc=H,mc=Object.assign,gc=Object.defineProperty,bc=uc([].concat),wc=!mc||fc(function(){if(cc&&1!==mc({b:1},mc(gc({},"a",{enumerable:!0,get:function(){gc(this,"b",{value:3,enumerable:!1})}}),{b:2})).b)return!0;var e={},t={},r=Symbol("assign detection"),n="abcdefghijklmnopqrst";return e[r]=7,n.split("").forEach(function(e){t[e]=e}),7!==mc({},e)[r]||hc(mc({},t)).join("")!==n})?function(e,t){for(var r=vc(e),n=arguments.length,o=1,i=dc.f,a=pc.f;n>o;)for(var s,c=yc(arguments[o++]),u=i?bc(hc(c),i(c)):hc(c),l=u.length,f=0;l>f;)s=u[f++],cc&&!lc(a,c,s)||(r[s]=c[s]);return r}:mc,Oc=Oe,Pc=ge,Sc=tt,Ec=ge,jc=K,_c=Nt("iterator"),Ac=Array.prototype,Rc=ee,kc=ht,Ic=C(Function.toString);Rc(kc.inspectSource)||(kc.inspectSource=function(e){return Ic(e)});var xc=kc.inspectSource,Tc=C,Cc=A,Nc=ee,Lc=Xo,Uc=xc,Mc=function(){},qc=Ae("Reflect","construct"),Dc=/^\s*(?:class|function)\b/,Bc=Tc(Dc.exec),Fc=!Dc.test(Mc),Hc=function(e){if(!Nc(e))return!1;try{return qc(Mc,[],e),!0}catch(e){return!1}},Gc=function(e){if(!Nc(e))return!1;switch(Lc(e)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return Fc||!!Bc(Dc,Uc(e))}catch(e){return!0}};Gc.sham=!0;var Wc,Jc=!qc||Cc(function(){var e;return Hc(Hc.call)||!Hc(Object)||!Hc(function(){e=!0})||e})?Gc:Hc,zc=ae,Vc=se,$c=or,Qc=sn,Kc=Oe,Yc=mt,Xc=function(e,t,r,n){try{return n?t(Ec(r)[0],r[1]):t(r)}catch(t){!function(e,t,r){var n,o;Pc(e);try{if(!(n=Sc(e,"return"))){if("throw"===t)throw r;return r}n=Oc(n,e)}catch(e){o=!0,n=e}if("throw"===t)throw r;if(o)throw n;Pc(n)}(e,"throw",t)}},Zc=Jc,eu=Mn,tu=function(e,t,r){zc?Vc.f(e,t,$c(0,r)):e[t]=r},ru=ba,nu=ha,ou=Array,iu=C,au=2147483647,su=/[^\0-\u007E]/,cu=/[.\u3002\uFF0E\uFF61]/g,uu="Overflow: input needs wider integers to process",lu=RangeError,fu=iu(cu.exec),hu=Math.floor,du=String.fromCharCode,pu=iu("".charCodeAt),vu=iu([].join),yu=iu([].push),mu=iu("".replace),gu=iu("".split),bu=iu("".toLowerCase),wu=function(e){return e+22+75*(e<26)},Ou=function(e,t,r){var n=0;for(e=r?hu(e/700):e>>1,e+=hu(e/t);e>455;)e=hu(e/35),n+=36;return hu(n+36*e/(e+38))},Pu=function(e){var t=[];e=function(e){for(var t=[],r=0,n=e.length;r<n;){var o=pu(e,r++);if(o>=55296&&o<=56319&&r<n){var i=pu(e,r++);56320==(64512&i)?yu(t,((1023&o)<<10)+(1023&i)+65536):(yu(t,o),r--)}else yu(t,o)}return t}(e);var r,n,o=e.length,i=128,a=0,s=72;for(r=0;r<e.length;r++)(n=e[r])<128&&yu(t,du(n));var c=t.length,u=c;for(c&&yu(t,"-");u<o;){var l=au;for(r=0;r<e.length;r++)(n=e[r])>=i&&n<l&&(l=n);var f=u+1;if(l-i>hu((au-a)/f))throw new lu(uu);for(a+=(l-i)*f,i=l,r=0;r<e.length;r++){if((n=e[r])<i&&++a>au)throw new lu(uu);if(n===i){for(var h=a,d=36;;){var p=d<=s?1:d>=s+26?26:d-s;if(h<p)break;var v=h-p,y=36-p;yu(t,du(wu(p+v%y))),h=hu(v/y),d+=36}yu(t,du(wu(h))),s=Ou(a,f,u===c),a=0,u++}}a++,i++}return vu(t,"")},Su=bn,Eu=ae,ju=Yi,_u=X,Au=sn,Ru=C,ku=Co,Iu=Zi,xu=na,Tu=wt,Cu=wc,Nu=function(e){var t=Yc(e),r=Zc(this),n=arguments.length,o=n>1?arguments[1]:void 0,i=void 0!==o;i&&(o=Qc(o,n>2?arguments[2]:void 0));var a,s,c,u,l,f,h=nu(t),d=0;if(!h||this===ou&&function(e){return void 0!==e&&(jc.Array===e||Ac[_c]===e)}(h))for(a=eu(t),s=r?new this(a):ou(a);a>d;d++)f=i?o(t[d],d):t[d],tu(s,d,f);else for(s=r?new this:[],l=(u=ru(t,h)).next;!(c=Kc(l,u)).done;d++)f=i?Xc(u,o,[c.value,d],!0):c.value,tu(s,d,f);return s.length=d,s},Lu=Pa,Uu=Xs.codeAt,Mu=aa,qu=si,Du=Oa,Bu=Gs,Fu=jr,Hu=Fu.set,Gu=Fu.getterFor("URL"),Wu=Bu.URLSearchParams,Ju=Bu.getState,zu=_u.URL,Vu=_u.TypeError,$u=_u.parseInt,Qu=Math.floor,Ku=Math.pow,Yu=Ru("".charAt),Xu=Ru(/./.exec),Zu=Ru([].join),el=Ru(1.1.toString),tl=Ru([].pop),rl=Ru([].push),nl=Ru("".replace),ol=Ru([].shift),il=Ru("".split),al=Ru("".slice),sl=Ru("".toLowerCase),cl=Ru([].unshift),ul="Invalid scheme",ll="Invalid host",fl="Invalid port",hl=/[a-z]/i,dl=/[\d+-.a-z]/i,pl=/\d/,vl=/^0x/i,yl=/^[0-7]+$/,ml=/^\d+$/,gl=/^[\da-f]+$/i,bl=/[\0\t\n\r #%/:<>?@[\\\]^|]/,wl=/[\0\t\n\r #/:<>?@[\\\]^|]/,Ol=/^[\u0000-\u0020]+/,Pl=/(^|[^\u0000-\u0020])[\u0000-\u0020]+$/,Sl=/[\t\n\r]/g,El=function(e){var t,r,n,o;if("number"==typeof e){for(t=[],r=0;r<4;r++)cl(t,e%256),e=Qu(e/256);return Zu(t,".")}if("object"==typeof e){for(t="",n=function(e){for(var t=null,r=1,n=null,o=0,i=0;i<8;i++)0!==e[i]?(o>r&&(t=n,r=o),n=null,o=0):(null===n&&(n=i),++o);return o>r?n:t}(e),r=0;r<8;r++)o&&0===e[r]||(o&&(o=!1),n===r?(t+=r?":":"::",o=!0):(t+=el(e[r],16),r<7&&(t+=":")));return"["+t+"]"}return e},jl={},_l=Cu({},jl,{" ":1,'"':1,"<":1,">":1,"`":1}),Al=Cu({},_l,{"#":1,"?":1,"{":1,"}":1}),Rl=Cu({},Al,{"/":1,":":1,";":1,"=":1,"@":1,"[":1,"\\":1,"]":1,"^":1,"|":1}),kl=function(e,t){var r=Uu(e,0);return r>32&&r<127&&!Tu(t,e)?e:encodeURIComponent(e)},Il={ftp:21,file:null,http:80,https:443,ws:80,wss:443},xl=function(e,t){var r;return 2===e.length&&Xu(hl,Yu(e,0))&&(":"===(r=Yu(e,1))||!t&&"|"===r)},Tl=function(e){var t;return e.length>1&&xl(al(e,0,2))&&(2===e.length||"/"===(t=Yu(e,2))||"\\"===t||"?"===t||"#"===t)},Cl=function(e){return"."===e||"%2e"===sl(e)},Nl=function(e){return".."===(e=sl(e))||"%2e."===e||".%2e"===e||"%2e%2e"===e},Ll={},Ul={},Ml={},ql={},Dl={},Bl={},Fl={},Hl={},Gl={},Wl={},Jl={},zl={},Vl={},$l={},Ql={},Kl={},Yl={},Xl={},Zl={},ef={},tf={},rf=function(e,t,r){var n,o,i,a=Mu(e);if(t){if(o=this.parse(a))throw new Vu(o);this.searchParams=null}else{if(void 0!==r&&(n=new rf(r,!0)),o=this.parse(a,null,n))throw new Vu(o);(i=Ju(new Wu)).bindURL(this),this.searchParams=i}};rf.prototype={type:"URL",parse:function(e,t,r){var n,o,i,a,s=this,c=t||Ll,u=0,l="",f=!1,h=!1,d=!1;for(e=Mu(e),t||(s.scheme="",s.username="",s.password="",s.host=null,s.port=null,s.path=[],s.query=null,s.fragment=null,s.cannotBeABaseURL=!1,e=nl(e,Ol,""),e=nl(e,Pl,"$1")),e=nl(e,Sl,""),n=Nu(e);u<=n.length;){switch(o=n[u],c){case Ll:if(!o||!Xu(hl,o)){if(t)return ul;c=Ml;continue}l+=sl(o),c=Ul;break;case Ul:if(o&&(Xu(dl,o)||"+"===o||"-"===o||"."===o))l+=sl(o);else{if(":"!==o){if(t)return ul;l="",c=Ml,u=0;continue}if(t&&(s.isSpecial()!==Tu(Il,l)||"file"===l&&(s.includesCredentials()||null!==s.port)||"file"===s.scheme&&!s.host))return;if(s.scheme=l,t)return void(s.isSpecial()&&Il[s.scheme]===s.port&&(s.port=null));l="","file"===s.scheme?c=$l:s.isSpecial()&&r&&r.scheme===s.scheme?c=ql:s.isSpecial()?c=Hl:"/"===n[u+1]?(c=Dl,u++):(s.cannotBeABaseURL=!0,rl(s.path,""),c=Zl)}break;case Ml:if(!r||r.cannotBeABaseURL&&"#"!==o)return ul;if(r.cannotBeABaseURL&&"#"===o){s.scheme=r.scheme,s.path=Lu(r.path),s.query=r.query,s.fragment="",s.cannotBeABaseURL=!0,c=tf;break}c="file"===r.scheme?$l:Bl;continue;case ql:if("/"!==o||"/"!==n[u+1]){c=Bl;continue}c=Gl,u++;break;case Dl:if("/"===o){c=Wl;break}c=Xl;continue;case Bl:if(s.scheme=r.scheme,o===Wc)s.username=r.username,s.password=r.password,s.host=r.host,s.port=r.port,s.path=Lu(r.path),s.query=r.query;else if("/"===o||"\\"===o&&s.isSpecial())c=Fl;else if("?"===o)s.username=r.username,s.password=r.password,s.host=r.host,s.port=r.port,s.path=Lu(r.path),s.query="",c=ef;else{if("#"!==o){s.username=r.username,s.password=r.password,s.host=r.host,s.port=r.port,s.path=Lu(r.path),s.path.length--,c=Xl;continue}s.username=r.username,s.password=r.password,s.host=r.host,s.port=r.port,s.path=Lu(r.path),s.query=r.query,s.fragment="",c=tf}break;case Fl:if(!s.isSpecial()||"/"!==o&&"\\"!==o){if("/"!==o){s.username=r.username,s.password=r.password,s.host=r.host,s.port=r.port,c=Xl;continue}c=Wl}else c=Gl;break;case Hl:if(c=Gl,"/"!==o||"/"!==Yu(l,u+1))continue;u++;break;case Gl:if("/"!==o&&"\\"!==o){c=Wl;continue}break;case Wl:if("@"===o){f&&(l="%40"+l),f=!0,i=Nu(l);for(var p=0;p<i.length;p++){var v=i[p];if(":"!==v||d){var y=kl(v,Rl);d?s.password+=y:s.username+=y}else d=!0}l=""}else if(o===Wc||"/"===o||"?"===o||"#"===o||"\\"===o&&s.isSpecial()){if(f&&""===l)return"Invalid authority";u-=Nu(l).length+1,l="",c=Jl}else l+=o;break;case Jl:case zl:if(t&&"file"===s.scheme){c=Kl;continue}if(":"!==o||h){if(o===Wc||"/"===o||"?"===o||"#"===o||"\\"===o&&s.isSpecial()){if(s.isSpecial()&&""===l)return ll;if(t&&""===l&&(s.includesCredentials()||null!==s.port))return;if(a=s.parseHost(l))return a;if(l="",c=Yl,t)return;continue}"["===o?h=!0:"]"===o&&(h=!1),l+=o}else{if(""===l)return ll;if(a=s.parseHost(l))return a;if(l="",c=Vl,t===zl)return}break;case Vl:if(!Xu(pl,o)){if(o===Wc||"/"===o||"?"===o||"#"===o||"\\"===o&&s.isSpecial()||t){if(""!==l){var m=$u(l,10);if(m>65535)return fl;s.port=s.isSpecial()&&m===Il[s.scheme]?null:m,l=""}if(t)return;c=Yl;continue}return fl}l+=o;break;case $l:if(s.scheme="file","/"===o||"\\"===o)c=Ql;else{if(!r||"file"!==r.scheme){c=Xl;continue}switch(o){case Wc:s.host=r.host,s.path=Lu(r.path),s.query=r.query;break;case"?":s.host=r.host,s.path=Lu(r.path),s.query="",c=ef;break;case"#":s.host=r.host,s.path=Lu(r.path),s.query=r.query,s.fragment="",c=tf;break;default:Tl(Zu(Lu(n,u),""))||(s.host=r.host,s.path=Lu(r.path),s.shortenPath()),c=Xl;continue}}break;case Ql:if("/"===o||"\\"===o){c=Kl;break}r&&"file"===r.scheme&&!Tl(Zu(Lu(n,u),""))&&(xl(r.path[0],!0)?rl(s.path,r.path[0]):s.host=r.host),c=Xl;continue;case Kl:if(o===Wc||"/"===o||"\\"===o||"?"===o||"#"===o){if(!t&&xl(l))c=Xl;else if(""===l){if(s.host="",t)return;c=Yl}else{if(a=s.parseHost(l))return a;if("localhost"===s.host&&(s.host=""),t)return;l="",c=Yl}continue}l+=o;break;case Yl:if(s.isSpecial()){if(c=Xl,"/"!==o&&"\\"!==o)continue}else if(t||"?"!==o)if(t||"#"!==o){if(o!==Wc&&(c=Xl,"/"!==o))continue}else s.fragment="",c=tf;else s.query="",c=ef;break;case Xl:if(o===Wc||"/"===o||"\\"===o&&s.isSpecial()||!t&&("?"===o||"#"===o)){if(Nl(l)?(s.shortenPath(),"/"===o||"\\"===o&&s.isSpecial()||rl(s.path,"")):Cl(l)?"/"===o||"\\"===o&&s.isSpecial()||rl(s.path,""):("file"===s.scheme&&!s.path.length&&xl(l)&&(s.host&&(s.host=""),l=Yu(l,0)+":"),rl(s.path,l)),l="","file"===s.scheme&&(o===Wc||"?"===o||"#"===o))for(;s.path.length>1&&""===s.path[0];)ol(s.path);"?"===o?(s.query="",c=ef):"#"===o&&(s.fragment="",c=tf)}else l+=kl(o,Al);break;case Zl:"?"===o?(s.query="",c=ef):"#"===o?(s.fragment="",c=tf):o!==Wc&&(s.path[0]+=kl(o,jl));break;case ef:t||"#"!==o?o!==Wc&&("'"===o&&s.isSpecial()?s.query+="%27":s.query+="#"===o?"%23":kl(o,jl)):(s.fragment="",c=tf);break;case tf:o!==Wc&&(s.fragment+=kl(o,_l))}u++}},parseHost:function(e){var t,r,n;if("["===Yu(e,0)){if("]"!==Yu(e,e.length-1))return ll;if(t=function(e){var t,r,n,o,i,a,s,c=[0,0,0,0,0,0,0,0],u=0,l=null,f=0,h=function(){return Yu(e,f)};if(":"===h()){if(":"!==Yu(e,1))return;f+=2,l=++u}for(;h();){if(8===u)return;if(":"!==h()){for(t=r=0;r<4&&Xu(gl,h());)t=16*t+$u(h(),16),f++,r++;if("."===h()){if(0===r)return;if(f-=r,u>6)return;for(n=0;h();){if(o=null,n>0){if(!("."===h()&&n<4))return;f++}if(!Xu(pl,h()))return;for(;Xu(pl,h());){if(i=$u(h(),10),null===o)o=i;else{if(0===o)return;o=10*o+i}if(o>255)return;f++}c[u]=256*c[u]+o,2!==++n&&4!==n||u++}if(4!==n)return;break}if(":"===h()){if(f++,!h())return}else if(h())return;c[u++]=t}else{if(null!==l)return;f++,l=++u}}if(null!==l)for(a=u-l,u=7;0!==u&&a>0;)s=c[u],c[u--]=c[l+a-1],c[l+--a]=s;else if(8!==u)return;return c}(al(e,1,-1)),!t)return ll;this.host=t}else if(this.isSpecial()){if(e=function(e){var t,r,n=[],o=gu(mu(bu(e),cu,"."),".");for(t=0;t<o.length;t++)r=o[t],yu(n,fu(su,r)?"xn--"+Pu(r):r);return vu(n,".")}(e),Xu(bl,e))return ll;if(t=function(e){var t,r,n,o,i,a,s,c=il(e,".");if(c.length&&""===c[c.length-1]&&c.length--,(t=c.length)>4)return e;for(r=[],n=0;n<t;n++){if(""===(o=c[n]))return e;if(i=10,o.length>1&&"0"===Yu(o,0)&&(i=Xu(vl,o)?16:8,o=al(o,8===i?1:2)),""===o)a=0;else{if(!Xu(10===i?ml:8===i?yl:gl,o))return e;a=$u(o,i)}rl(r,a)}for(n=0;n<t;n++)if(a=r[n],n===t-1){if(a>=Ku(256,5-t))return null}else if(a>255)return null;for(s=tl(r),n=0;n<r.length;n++)s+=r[n]*Ku(256,3-n);return s}(e),null===t)return ll;this.host=t}else{if(Xu(wl,e))return ll;for(t="",r=Nu(e),n=0;n<r.length;n++)t+=kl(r[n],jl);this.host=t}},cannotHaveUsernamePasswordPort:function(){return!this.host||this.cannotBeABaseURL||"file"===this.scheme},includesCredentials:function(){return""!==this.username||""!==this.password},isSpecial:function(){return Tu(Il,this.scheme)},shortenPath:function(){var e=this.path,t=e.length;!t||"file"===this.scheme&&1===t&&xl(e[0],!0)||e.length--},serialize:function(){var e=this,t=e.scheme,r=e.username,n=e.password,o=e.host,i=e.port,a=e.path,s=e.query,c=e.fragment,u=t+":";return null!==o?(u+="//",e.includesCredentials()&&(u+=r+(n?":"+n:"")+"@"),u+=El(o),null!==i&&(u+=":"+i)):"file"===t&&(u+="//"),u+=e.cannotBeABaseURL?a[0]:a.length?"/"+Zu(a,"/"):"",null!==s&&(u+="?"+s),null!==c&&(u+="#"+c),u},setHref:function(e){var t=this.parse(e);if(t)throw new Vu(t);this.searchParams.update()},getOrigin:function(){var e=this.scheme,t=this.port;if("blob"===e)try{return new nf(e.path[0]).origin}catch(e){return"null"}return"file"!==e&&this.isSpecial()?e+"://"+El(this.host)+(null!==t?":"+t:""):"null"},getProtocol:function(){return this.scheme+":"},setProtocol:function(e){this.parse(Mu(e)+":",Ll)},getUsername:function(){return this.username},setUsername:function(e){var t=Nu(Mu(e));if(!this.cannotHaveUsernamePasswordPort()){this.username="";for(var r=0;r<t.length;r++)this.username+=kl(t[r],Rl)}},getPassword:function(){return this.password},setPassword:function(e){var t=Nu(Mu(e));if(!this.cannotHaveUsernamePasswordPort()){this.password="";for(var r=0;r<t.length;r++)this.password+=kl(t[r],Rl)}},getHost:function(){var e=this.host,t=this.port;return null===e?"":null===t?El(e):El(e)+":"+t},setHost:function(e){this.cannotBeABaseURL||this.parse(e,Jl)},getHostname:function(){var e=this.host;return null===e?"":El(e)},setHostname:function(e){this.cannotBeABaseURL||this.parse(e,zl)},getPort:function(){var e=this.port;return null===e?"":Mu(e)},setPort:function(e){this.cannotHaveUsernamePasswordPort()||(""===(e=Mu(e))?this.port=null:this.parse(e,Vl))},getPathname:function(){var e=this.path;return this.cannotBeABaseURL?e[0]:e.length?"/"+Zu(e,"/"):""},setPathname:function(e){this.cannotBeABaseURL||(this.path=[],this.parse(e,Yl))},getSearch:function(){var e=this.query;return e?"?"+e:""},setSearch:function(e){""===(e=Mu(e))?this.query=null:("?"===Yu(e,0)&&(e=al(e,1)),this.query="",this.parse(e,ef)),this.searchParams.update()},getSearchParams:function(){return this.searchParams.facade},getHash:function(){var e=this.fragment;return e?"#"+e:""},setHash:function(e){""!==(e=Mu(e))?("#"===Yu(e,0)&&(e=al(e,1)),this.fragment="",this.parse(e,tf)):this.fragment=null},update:function(){this.query=this.searchParams.serialize()||null}};var nf=function(e){var t=xu(this,of),r=Du(arguments.length,1)>1?arguments[1]:void 0,n=Hu(t,new rf(e,!1,r));Eu||(t.href=n.serialize(),t.origin=n.getOrigin(),t.protocol=n.getProtocol(),t.username=n.getUsername(),t.password=n.getPassword(),t.host=n.getHost(),t.hostname=n.getHostname(),t.port=n.getPort(),t.pathname=n.getPathname(),t.search=n.getSearch(),t.searchParams=n.getSearchParams(),t.hash=n.getHash())},of=nf.prototype,af=function(e,t){return{get:function(){return Gu(this)[e]()},set:t&&function(e){return Gu(this)[t](e)},configurable:!0,enumerable:!0}};if(Eu&&(Iu(of,"href",af("serialize","setHref")),Iu(of,"origin",af("getOrigin")),Iu(of,"protocol",af("getProtocol","setProtocol")),Iu(of,"username",af("getUsername","setUsername")),Iu(of,"password",af("getPassword","setPassword")),Iu(of,"host",af("getHost","setHost")),Iu(of,"hostname",af("getHostname","setHostname")),Iu(of,"port",af("getPort","setPort")),Iu(of,"pathname",af("getPathname","setPathname")),Iu(of,"search",af("getSearch","setSearch")),Iu(of,"searchParams",af("getSearchParams")),Iu(of,"hash",af("getHash","setHash"))),ku(of,"toJSON",function(){return Gu(this).serialize()},{enumerable:!0}),ku(of,"toString",function(){return Gu(this).serialize()},{enumerable:!0}),zu){var sf=zu.createObjectURL,cf=zu.revokeObjectURL;sf&&ku(nf,"createObjectURL",Au(sf,zu)),cf&&ku(nf,"revokeObjectURL",Au(cf,zu))}qu(nf,"URL"),Su({global:!0,constructor:!0,forced:!ju,sham:!Eu},{URL:nf});var uf=bn,lf=A,ff=Oa,hf=aa,df=Yi,pf=Ae("URL"),vf=df&&lf(function(){pf.canParse()}),yf=lf(function(){return 1!==pf.canParse.length});uf({target:"URL",stat:!0,forced:!vf||yf},{canParse:function(e){var t=ff(arguments.length,1),r=hf(e),n=t<2||void 0===arguments[1]?void 0:hf(arguments[1]);try{return!!new pf(r,n)}catch(e){return!1}}});var mf=bn,gf=Oa,bf=aa,wf=Yi,Of=Ae("URL");mf({target:"URL",stat:!0,forced:!wf},{parse:function(e){var t=gf(arguments.length,1),r=bf(e),n=t<2||void 0===arguments[1]?void 0:bf(arguments[1]);try{return new Of(r,n)}catch(e){return null}}});var Pf=function(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}(Pe.URL),Sf=function(e){function t(t){var r=e.call(this,t.message)||this;return r.name="PostgrestError",r.details=t.details,r.hint=t.hint,r.code=t.code,r}return n(t,e),t}(Error),Ef=function(){function e(e){var t,r;this.shouldThrowOnError=!1,this.method=e.method,this.url=e.url,this.headers=new Headers(e.headers),this.schema=e.schema,this.body=e.body,this.shouldThrowOnError=null!==(t=e.shouldThrowOnError)&&void 0!==t&&t,this.signal=e.signal,this.isMaybeSingle=null!==(r=e.isMaybeSingle)&&void 0!==r&&r,e.fetch?this.fetch=e.fetc