@cloudbase/js-sdk
Version:
cloudbase javascript sdk
2 lines • 839 kB
JavaScript
/*! For license information please see index.js.LICENSE.txt */
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define("cloudbase",[],t):"object"==typeof exports?exports.cloudbase=t():e.cloudbase=t()}("undefined"!=typeof window?window:this,function(){return function(){var e,t,r={2829:function(e,t,r){"use strict";var n;r.r(t),r.d(t,{AbstractSDKRequest:function(){return o},AbstractStorage:function(){return i},StorageType:function(){return n},formatUrl:function(){return s}}),function(e){e.local="local",e.none="none",e.session="session"}(n||(n={}));var o=function(){},i=function(){};function s(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}},190:function(e,t,r){"use strict";r.r(t),r.d(t,{WxMpWebSocket:function(){return h},WxRequest:function(){return c},parseQueryString:function(){return f},wxMpStorage:function(){return l}});var n,o=r(2829),i=r(5993),s=(n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r])},n(e,t)},function(e,t){function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),a=function(){return a=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},a.apply(this,arguments)},u="Error when aborting requestTask",c=function(e){function t(t){void 0===t&&(t={});var r=e.call(this)||this,n=t.timeout,o=t.timeoutMsg,i=t.restrictedMethods;return r._timeout=n||0,r._timeoutMsg=o||"请求超时",r._restrictedMethods=i||["get","post","upload","download"],r}return s(t,e),t.prototype.post=function(e){var t=this;return new Promise(function(r,n){var i=e.url,s=e.data,a=e.headers,u=wx.request({url:(0,o.formatUrl)("https:",i),data:s,timeout:t._timeout,method:"POST",header:a,success:function(e){e.statusCode>=200&&e.statusCode<300?r({statusCode:e.statusCode,status:e.statusCode,data:e.data}):n(e)},fail:function(e){n(e)},complete:function(e){if(e&&e.errMsg&&t._timeout&&-1!==t._restrictedMethods.indexOf("post")&&"request:fail timeout"===e.errMsg){console.warn(t._timeoutMsg);try{u.abort()}catch(e){}}}})})},t.prototype.get=function(e){var t=this;return new Promise(function(r,n){var i=e.url,s=e.body,a=e.headers,c=(0,o.formatUrl)("https:",i),l=wx.request({url:c,data:s,timeout:t._timeout,method:"GET",header:a,success:function(e){e.statusCode>=200&&e.statusCode<300?r({statusCode:e.statusCode,status:e.statusCode,data:e.data}):n(e)},fail:function(e){n(e)},complete:function(e){if(e&&e.errMsg&&t._timeout&&-1!==t._restrictedMethods.indexOf("get")&&e.errMsg.includes("timeout")){console.warn(t._timeoutMsg);try{l.abort()}catch(e){console.warn(u,e)}}}})})},t.prototype.upload=function(e){var t=this,r=this;return new Promise(function(n){return o=t,i=void 0,u=function(){var t,o,i,s,u,c;return function(e,t){var r,n,o,i,s={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:a(0),throw:a(1),return:a(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function a(i){return function(a){return function(i){if(r)throw new TypeError("Generator is already executing.");for(;s;)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 s.label++,{value:i[1],done:!1};case 5:s.label++,n=i[1],i=[0];continue;case 7:i=s.ops.pop(),s.trys.pop();continue;default:if(!((o=(o=s.trys).length>0&&o[o.length-1])||6!==i[0]&&2!==i[0])){s=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){s.label=i[1];break}if(6===i[0]&&s.label<o[1]){s.label=o[1],o=i;break}if(o&&s.label<o[2]){s.label=o[2],s.ops.push(i);break}o[2]&&s.ops.pop(),s.trys.pop();continue}i=t.call(e,s)}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,a])}}}(this,function(l){return t=e.url,o=e.file,i=e.data,s=e.headers,u=e.onUploadProgress,c=wx.uploadFile({url:t,filePath:o,name:"file",formData:a({},i),header:s,timeout:this._timeout,success:function(e){var t={statusCode:e.statusCode,data:e.data||{}};200===e.statusCode&&i.success_action_status&&(t.statusCode=parseInt(i.success_action_status,10)),n(t)},fail:function(e){n(e)},complete:function(e){if(e&&e.errMsg&&r._timeout&&-1!==r._restrictedMethods.indexOf("upload")&&"request:fail timeout"===e.errMsg){console.warn(r._timeoutMsg);try{c.abort()}catch(e){}}}}),u&&c.onProgressUpdate(function(e){u(e)}),[2]})},new((s=void 0)||(s=Promise))(function(e,t){function r(e){try{a(u.next(e))}catch(e){t(e)}}function n(e){try{a(u.throw(e))}catch(e){t(e)}}function a(t){var o;t.done?e(t.value):(o=t.value,o instanceof s?o:new s(function(e){e(o)})).then(r,n)}a((u=u.apply(o,i||[])).next())});var o,i,s,u})},t.prototype.download=function(e){var t=this,r=this;return new Promise(function(n,i){var s=e.url,a=e.headers,u=wx.downloadFile({url:(0,o.formatUrl)("https:",s),header:a,timeout:t._timeout,success:function(e){200===e.statusCode&&e.tempFilePath?n({statusCode:200,tempFilePath:e.tempFilePath}):n(e)},fail:function(e){i(e)},complete:function(e){if(e&&e.errMsg&&r._timeout&&-1!==r._restrictedMethods.indexOf("download")&&"request:fail timeout"===e.errMsg){console.warn(r._timeoutMsg);try{u.abort()}catch(e){}}}})})},t.prototype.fetch=function(e){var t=e.url,r=e.body,n=e.enableAbort,s=e.headers,a=e.method,c=e.stream,l=void 0!==c&&c,h=e.signal,f=e.timeout,d=this,p=null!=f?f:this._timeout,v=null,y=new i.ReadableStream({start:function(e){v=e},cancel:function(){v=null}});return new Promise(function(e,i){l&&e({data:y});var c=wx.request({url:(0,o.formatUrl)("https:",t),data:r,timeout:p,method:a.toUpperCase(),header:s,success:function(t){null==v||v.close(),!l&&e(t)},fail:function(e){if(null==v||v.close(),i(e),l)throw e},complete:function(e){if(e&&e.errMsg&&p&&-1!==d._restrictedMethods.indexOf("post")&&n&&"request:fail timeout"===e.errMsg){console.warn(d._timeoutMsg);try{c.abort()}catch(e){console.warn(u,e)}}},enableChunked:l});if(c.onChunkReceived(function(e){null==v||v.enqueue(new Uint8Array(e.data))}),h){var f=function(){try{c.abort()}catch(e){console.warn(u,e)}};h.aborted?f():h.addEventListener("abort",function(){return f()})}})},t.prototype.patch=function(e){var t=e.method,r=e.headers,n=JSON.parse(JSON.stringify(r||{}));return"PATCH"===t.toUpperCase()&&(n["X-HTTP-Method-Override"]="PATCH",t="POST"),this.post(a(a({},e),{method:t,headers:n}))},t}(o.AbstractSDKRequest),l={setItem:function(e,t){wx.setStorageSync(e,t)},getItem:function(e){return wx.getStorageSync(e)},removeItem:function(e){wx.removeStorageSync(e)},clear:function(){wx.clearStorageSync()}},h=function(e,t){void 0===t&&(t={});var r=wx.connectSocket(a({url:e},t));return{set onopen(e){r.onOpen(e)},set onmessage(e){r.onMessage(e)},set onclose(e){r.onClose(e)},set onerror(e){r.onError(e)},send:function(e){return r.send({data:e})},close:function(e,t){return r.close({code:e,reason:t})},get readyState(){return r.readyState},CONNECTING:0,OPEN:1,CLOSING:2,CLOSED:3}};function f(e){var t={},r=e.replace(/^[?#]/,"");return r?(r.split("&").forEach(function(e){var r=e.split("="),n=r[0],o=r[1];n=decodeURIComponent(n),o=decodeURIComponent(o),n&&(t[n]?Array.isArray(t[n])?t[n].push(o):t[n]=[t[n],o]:t[n]=o)}),t):t}var d={genAdapter:function(e){return{root:{globalThis:{}},reqClass:c,wsClass:h,captchaOptions:{openURIWithCallback:function(t){var r=e.EventBus,n={},o=t;console.log("openURIWithCallback",t);var i=t.match(/^(data:.*?)(\?[^#\s]*)?$/);if(i){o=i[1],console.log("openURIWithCallback url",o);var s=i[2];s&&(n=f(s))}console.log("openURIWithCallback queryObj",n);var u=n.token,c=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(n=Object.getOwnPropertySymbols(e);o<n.length;o++)t.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]])}return r}(n,["token"]);return/^data:/.test(o)&&!u?Promise.reject({error:"invalid_argument",error_description:"invalie captcha data: "+t}):u?new Promise(function(e){console.log("wait for captcha..."),r.$emit("CAPTCHA_DATA_CHANGE",a(a({},c),{token:u,url:o})),r.$once("RESOLVE_CAPTCHA_DATA",function(t){e(t)})}):Promise.reject({error:"unimplemented",error_description:"need to impl captcha data"})}},localStorage:l,primaryStorage:o.StorageType.local,getAppSign:function(){var e=wx.getAccountInfoSync();return"undefined"!=typeof App||"undefined"!=typeof getApp||wx.onAppHide||wx.offAppHide||wx.onAppShow||wx.offAppShow?e&&e.miniProgram?e.miniProgram.appId:"":e&&e.plugin?e.plugin.appId:""}}},isMatch:function(){if("undefined"==typeof wx)return!1;if("undefined"==typeof Page)return!1;if(!wx.getSystemInfoSync)return!1;if(!wx.getStorageSync)return!1;if(!wx.setStorageSync)return!1;if(!wx.connectSocket)return!1;if(!wx.request)return!1;try{if(!wx.getSystemInfoSync())return!1;if("qq"===wx.getSystemInfoSync().AppPlatform)return!1}catch(e){return!1}return!0},runtime:"wx_mp"};t.default=d},5304: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{a(n.next(e))}catch(e){o(e)}}function s(e){try{a(n.throw(e))}catch(e){o(e)}}function a(e){var n;e.done?t(e.value):(n=e.value,n instanceof r?n:new r(function(e){e(n)})).then(i,s)}a((n=n.apply(e,[])).next())})}function s(e,t){var r,n,o,i,s={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:a(0),throw:a(1),return:a(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function a(i){return function(a){return function(i){if(r)throw new TypeError("Generator is already executing.");for(;s;)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 s.label++,{value:i[1],done:!1};case 5:s.label++,n=i[1],i=[0];continue;case 7:i=s.ops.pop(),s.trys.pop();continue;default:if(!((o=(o=s.trys).length>0&&o[o.length-1])||6!==i[0]&&2!==i[0])){s=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){s.label=i[1];break}if(6===i[0]&&s.label<o[1]){s.label=o[1],o=i;break}if(o&&s.label<o[2]){s.label=o[2],s.ops.push(i);break}o[2]&&s.ops.pop(),s.trys.pop();continue}i=t.call(e,s)}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,a])}}}var a=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 u(){return"undefined"!=typeof window&&window||"undefined"!=typeof globalThis&&globalThis}function c(){try{var e=u();if(!e)return;return"undefined"==typeof wx?u().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,h=e.envType,f=void 0===h?"prod":h,d=e.mode;return e.cloud,i(void 0,0,void 0,function(){var e,i,h,p,v,y;return s(this,function(s){switch(s.label){case 0:e={data:{},requestId:""},s.label=1;case 1:return s.trys.push([1,3,,4]),[4,l({name:"lowcode-datasource",data:{dataSourceName:t,methodName:r,params:n,userAgent:(g=u(),(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:c(),"x-sdk-version":"1.8.10",envType:f,mode:d}})];case 2:if(i=s.sent(),h=(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 a("【错误】".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(h||"N/A"),{code:null==i?void 0:i.result.code,requestId:h});return e.data=(null===(y=null==i?void 0:i.result)||void 0===y?void 0:y.data)||{},e.requestId=h,[3,4];case 3:throw"WxCloudSDKError"===(p=s.sent()).name?p:(console.log(p),new a("【错误】".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})})},h=function(e){var t=e.sql,r=e.params,n=e.config,o=e.callFunction,a=e.unsafe,u=void 0!==a&&a,c=e.cloud;return i(void 0,0,void 0,function(){return s(this,function(e){return[2,l({realMethodName:"$runSQL",methodName:"callWedaApi",params:{action:"RunMysqlCommand",data:{sqlTemplate:t,config:n,parameter:u?"":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:c})]})})},f=function(e,t){return{$runSQL:function(r,n,a){return i(this,0,void 0,function(){return s(this,function(i){switch(i.label){case 0:return[4,h({sql:r,params:n,config:o(o({},a),{preparedStatements:!0}),callFunction:e,cloud:t})];case 1:return[2,i.sent()]}})})},$runSQLRaw:function(r,n){return i(this,0,void 0,function(){return s(this,function(i){switch(i.label){case 0:return[4,h({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=f(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]:_(r,i,t,n)}})},b=function(e,t,r,n,o){return new a("【错误】".concat(e,"\n【操作】调用 models.").concat(t,".").concat(r,"\n【错误码】").concat(n,"\n【请求ID】").concat(o),{code:n,requestId:o})},_=function(e,t,r,n){var u=new Proxy({},{get:function(u,c){if("runSQLTemplate"!==c){var l=v[c];if(!l){var h=new Error("不支持的操作: ".concat(c));throw new a(h.message||y,{originError:h,code:m,requestId:"N/A"})}return function(n){return void 0===n&&(n={}),i(void 0,0,void 0,function(){var o,i,u,h,f,d,p,v,m,g;return s(this,function(s){switch(s.label){case 0:o=l.getUrl,i=l.method,u=l.defaultParams,h=void 0===u?{}:u,f=Object.assign({},h,n),d="pre"===f.envType?"pre":"prod",p=[e,d,o(t)].join("/"),s.label=1;case 1:return s.trys.push([1,3,,4]),[4,r({url:p,body:JSON.stringify(f),method:i})];case 2:if((v=s.sent()).code)throw b(null==v?void 0:v.message,t,c,null==v?void 0:v.code,null==v?void 0:v.requestId);return"get"===c&&Object.assign(v,{data:null!==(g=v.data.record)&&void 0!==g?g:v.data}),[2,v];case 3:throw m=s.sent(),new a((null==m?void 0:m.message)||y,{originError:m});case 4:return[2]}})})}}if(!(null==n?void 0:n.sqlBaseUrl))throw h=new Error("不支持的操作: ".concat(c)),new a(h.message||y,{originError:h,code:m,requestId:"N/A"});return function(e){return i(void 0,0,void 0,function(){var i,u,l,h,f,d,p,v,m,g,_,w,E,S,O,I;return s(this,function(s){switch(s.label){case 0:i=e.params,u=e.templateName,l=e.envType,h="pre"===l?"pre":"prod",f=[n.sqlBaseUrl,h,u,"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},[]),s.label=1;case 1:return s.trys.push([1,3,,4]),[4,r({url:f,body:JSON.stringify({parameter:d}),method:"POST"})];case 2:if(p=s.sent(),null===(m=null==p?void 0:p.Response)||void 0===m?void 0:m.Error)throw b(null===(_=null===(g=null==p?void 0:p.Response)||void 0===g?void 0:g.Error)||void 0===_?void 0:_.Message,t,c,null===(E=null===(w=null==p?void 0:p.Response)||void 0===w?void 0:w.Error)||void 0===E?void 0:E.Code,null===(S=null==p?void 0:p.Response)||void 0===S?void 0:S.RequestId);return[2,o(o({},null!==(O=null==p?void 0:p.Response)&&void 0!==O?O:{}),{data:null===(I=null==p?void 0:p.Response)||void 0===I?void 0:I.Data})];case 3:throw v=s.sent(),new a((null==v?void 0:v.message)||y,{originError:v});case 4:return[2]}})})}}});return u},w={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}}}},E=function(e,t){var r=f(e,t);return new Proxy({},{get:function(n,u){if("string"==typeof u)return Object.prototype.hasOwnProperty.call(r,u)?r[u]:function(e,t,r){return new Proxy({},{get:function(n,u){var c=w[u];if(!c){var h=new Error("不支持的操作: ".concat(u));throw new a(h.message||"Unknown error occurred",{originError:h,code:"NotSupported",requestId:"N/A"})}return function(n){return i(void 0,0,void 0,function(){var i,a,h,f,d;return s(this,function(s){switch(s.label){case 0:return i=o(o({},c.defaultParams||{}),n||{}),[4,l({callFunction:t,dataSourceName:e,methodName:c.methodName,realMethodName:u,params:i,envType:null==n?void 0:n.envType,cloud:r})];case 1:return a=s.sent(),h={data:{}},f=c.responseKey,h.data=f?null===(d=null==a?void 0:a.data)||void 0===d?void 0:d[f]:null==a?void 0:a.data,[2,h]}})})}}})}(u,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 O="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:void 0!==r.g?r.g:"undefined"!=typeof self?self:{};var I,T,A=function(e){try{return!!e()}catch(e){return!0}},P=!A(function(){var e=function(){}.bind();return"function"!=typeof e||e.hasOwnProperty("prototype")}),R=P,C=Function.prototype,N=C.call,U=R&&C.bind.bind(N,N),x=R?U:function(e){return function(){return N.apply(e,arguments)}},L=x,D=L({}.toString),j=L("".slice),k=function(e){return j(D(e),8,-1)},M=A,q=k,B=Object,F=x("".split),W=M(function(){return!B("z").propertyIsEnumerable(0)})?function(e){return"String"===q(e)?F(e,""):B(e)}:B,H=function(e){return null==e},V=H,G=TypeError,$=function(e){if(V(e))throw new G("Can't call method on "+e);return e},z=W,Y=$,K=function(e){return z(Y(e))},J={},Q=function(e){return e&&e.Math===Math&&e},Z=Q("object"==typeof globalThis&&globalThis)||Q("object"==typeof window&&window)||Q("object"==typeof self&&self)||Q("object"==typeof O&&O)||Q("object"==typeof O&&O)||function(){return this}()||Function("return this")(),X="object"==typeof document&&document.all,ee=void 0===X&&void 0!==X?function(e){return"function"==typeof e||e===X}:function(e){return"function"==typeof e},te=ee,re=Z.WeakMap,ne=te(re)&&/native code/.test(String(re)),oe=ee,ie=function(e){return"object"==typeof e?null!==e:oe(e)},se=!A(function(){return 7!==Object.defineProperty({},1,{get:function(){return 7}})[1]}),ae={},ue=ie,ce=Z.document,le=ue(ce)&&ue(ce.createElement),he=function(e){return le?ce.createElement(e):{}},fe=he,de=!se&&!A(function(){return 7!==Object.defineProperty(fe("div"),"a",{get:function(){return 7}}).a}),pe=se&&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=P,_e=Function.prototype.call,we=be?_e.bind(_e):function(){return _e.apply(_e,arguments)},Ee={},Se=Ee,Oe=Z,Ie=ee,Te=function(e){return Ie(e)?e:void 0},Ae=function(e,t){return arguments.length<2?Te(Se[e])||Te(Oe[e]):Se[e]&&Se[e][t]||Oe[e]&&Oe[e][t]},Pe=x({}.isPrototypeOf),Re=Z.navigator,Ce=Re&&Re.userAgent,Ne=Z,Ue=Ce?String(Ce):"",xe=Ne.process,Le=Ne.Deno,De=xe&&xe.versions||Le&&Le.version,je=De&&De.v8;je&&(T=(I=je.split("."))[0]>0&&I[0]<4?1:+(I[0]+I[1])),!T&&Ue&&(!(I=Ue.match(/Edge\/(\d+)/))||I[1]>=74)&&(I=Ue.match(/Chrome\/(\d+)/))&&(T=+I[1]);var ke=T,Me=A,qe=Z.String,Be=!!Object.getOwnPropertySymbols&&!Me(function(){var e=Symbol("symbol detection");return!qe(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&ke&&ke<41}),Fe=Be&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,We=Ae,He=ee,Ve=Pe,Ge=Object,$e=Fe?function(e){return"symbol"==typeof e}:function(e){var t=We("Symbol");return He(t)&&Ve(t.prototype,Ge(e))},ze=String,Ye=function(e){try{return ze(e)}catch(e){return"Object"}},Ke=ee,Je=Ye,Qe=TypeError,Ze=function(e){if(Ke(e))return e;throw new Qe(Je(e)+" is not a function")},Xe=Ze,et=H,tt=function(e,t){var r=e[t];return et(r)?void 0:Xe(r)},rt=we,nt=ee,ot=ie,it=TypeError,st={exports:{}},at=Z,ut=Object.defineProperty,ct=Z,lt="__core-js_shared__",ht=st.exports=ct[lt]||function(e,t){try{ut(at,e,{value:t,configurable:!0,writable:!0})}catch(r){at[e]=t}return t}(lt,{});(ht.versions||(ht.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 ft=st.exports,dt=ft,pt=function(e,t){return dt[e]||(dt[e]=t||{})},vt=$,yt=Object,mt=function(e){return yt(vt(e))},gt=mt,bt=x({}.hasOwnProperty),_t=Object.hasOwn||function(e,t){return bt(gt(e),t)},wt=x,Et=0,St=Math.random(),Ot=wt(1.1.toString),It=function(e){return"Symbol("+(void 0===e?"":e)+")_"+Ot(++Et+St,36)},Tt=pt,At=_t,Pt=It,Rt=Be,Ct=Fe,Nt=Z.Symbol,Ut=Tt("wks"),xt=Ct?Nt.for||Nt:Nt&&Nt.withoutSetter||Pt,Lt=function(e){return At(Ut,e)||(Ut[e]=Rt&&At(Nt,e)?Nt[e]:xt("Symbol."+e)),Ut[e]},Dt=we,jt=ie,kt=$e,Mt=tt,qt=TypeError,Bt=Lt("toPrimitive"),Ft=function(e,t){if(!jt(e)||kt(e))return e;var r,n=Mt(e,Bt);if(n){if(void 0===t&&(t="default"),r=Dt(n,e,t),!jt(r)||kt(r))return r;throw new qt("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)},Wt=$e,Ht=function(e){var t=Ft(e,"string");return Wt(t)?t:t+""},Vt=se,Gt=de,$t=pe,zt=ge,Yt=Ht,Kt=TypeError,Jt=Object.defineProperty,Qt=Object.getOwnPropertyDescriptor,Zt="enumerable",Xt="configurable",er="writable";ae.f=Vt?$t?function(e,t,r){if(zt(e),t=Yt(t),zt(r),"function"==typeof e&&"prototype"===t&&"value"in r&&er in r&&!r[er]){var n=Qt(e,t);n&&n[er]&&(e[t]=r.value,r={configurable:Xt in r?r[Xt]:n[Xt],enumerable:Zt in r?r[Zt]:n[Zt],writable:!1})}return Jt(e,t,r)}:Jt:function(e,t,r){if(zt(e),t=Yt(t),zt(r),Gt)try{return Jt(e,t,r)}catch(e){}if("get"in r||"set"in r)throw new Kt("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=ae,sr=or,ar=se?function(e,t,r){return ir.f(e,t,sr(1,r))}:function(e,t,r){return e[t]=r,e},ur=It,cr=pt("keys"),lr=function(e){return cr[e]||(cr[e]=ur(e))},hr={},fr=ne,dr=Z,pr=ie,vr=ar,yr=_t,mr=ft,gr=lr,br=hr,_r="Object already initialized",wr=dr.TypeError,Er=dr.WeakMap;if(fr||mr.state){var Sr=mr.state||(mr.state=new Er);Sr.get=Sr.get,Sr.has=Sr.has,Sr.set=Sr.set,tr=function(e,t){if(Sr.has(e))throw new wr(_r);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 Or=gr("state");br[Or]=!0,tr=function(e,t){if(yr(e,Or))throw new wr(_r);return t.facade=e,vr(e,Or,t),t},rr=function(e){return yr(e,Or)?e[Or]:{}},nr=function(e){return yr(e,Or)}}var Ir={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 wr("Incompatible receiver, "+e+" required");return r}}},Tr=P,Ar=Function.prototype,Pr=Ar.apply,Rr=Ar.call,Cr="object"==typeof Reflect&&Reflect.apply||(Tr?Rr.bind(Pr):function(){return Rr.apply(Pr,arguments)}),Nr=k,Ur=x,xr=function(e){if("Function"===Nr(e))return Ur(e)},Lr={},Dr={},jr={}.propertyIsEnumerable,kr=Object.getOwnPropertyDescriptor,Mr=kr&&!jr.call({1:2},1);Dr.f=Mr?function(e){var t=kr(this,e);return!!t&&t.enumerable}:jr;var qr=se,Br=we,Fr=Dr,Wr=or,Hr=K,Vr=Ht,Gr=_t,$r=de,zr=Object.getOwnPropertyDescriptor;Lr.f=qr?zr:function(e,t){if(e=Hr(e),t=Vr(t),$r)try{return zr(e,t)}catch(e){}if(Gr(e,t))return Wr(!Br(Fr.f,e,t),e[t])};var Yr=A,Kr=ee,Jr=/#|\.prototype\./,Qr=function(e,t){var r=Xr[Zr(e)];return r===tn||r!==en&&(Kr(t)?Yr(t):!!t)},Zr=Qr.normalize=function(e){return String(e).replace(Jr,".").toLowerCase()},Xr=Qr.data={},en=Qr.NATIVE="N",tn=Qr.POLYFILL="P",rn=Qr,nn=Ze,on=P,sn=xr(xr.bind),an=function(e,t){return nn(e),void 0===t?e:on?sn(e,t):function(){return e.apply(t,arguments)}},un=Z,cn=Cr,ln=xr,hn=ee,fn=Lr.f,dn=rn,pn=Ee,vn=an,yn=ar,mn=_t,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 cn(e,this,arguments)};return t.prototype=e.prototype,t},bn=function(e,t){var r,n,o,i,s,a,u,c,l,h=e.target,f=e.global,d=e.stat,p=e.proto,v=f?un:d?un[h]:un[h]&&un[h].prototype,y=f?pn:pn[h]||yn(pn,h,{})[h],m=y.prototype;for(i in t)n=!(r=dn(f?i:h+(d?".":"#")+i,e.forced))&&v&&mn(v,i),a=y[i],n&&(u=e.dontCallGetSet?(l=fn(v,i))&&l.value:v[i]),s=n&&u?u:t[i],(r||p||typeof a!=typeof s)&&(c=e.bind&&n?vn(s,un):e.wrap&&n?gn(s):p&&hn(s)?ln(s):s,(e.sham||s&&s.sham||a&&a.sham)&&yn(c,"sham",!0),yn(y,i,c),p&&(mn(pn,o=h+"Prototype")||yn(pn,o,{}),yn(pn[o],i,s),e.real&&m&&(r||!m[i])&&yn(m,i,s)))},_n=se,wn=_t,En=Function.prototype,Sn=_n&&Object.getOwnPropertyDescriptor,On=wn(En,"name"),In={EXISTS:On,PROPER:On&&"something"===function(){}.name,CONFIGURABLE:On&&(!_n||_n&&Sn(En,"name").configurable)},Tn={},An=Math.ceil,Pn=Math.floor,Rn=Math.trunc||function(e){var t=+e;return(t>0?Pn:An)(t)},Cn=function(e){var t=+e;return t!=t||0===t?0:Rn(t)},Nn=Cn,Un=Math.max,xn=Math.min,Ln=function(e,t){var r=Nn(e);return r<0?Un(r+t,0):xn(r,t)},Dn=Cn,jn=Math.min,kn=function(e){return function(e){var t=Dn(e);return t>0?jn(t,9007199254740991):0}(e.length)},Mn=K,qn=Ln,Bn=kn,Fn=function(e){return function(t,r,n){var o=Mn(t),i=Bn(o);if(0===i)return!e&&-1;var s,a=qn(n,i);if(e&&r!=r){for(;i>a;)if((s=o[a++])!=s)return!0}else for(;i>a;a++)if((e||a in o)&&o[a]===r)return e||a||0;return!e&&-1}},Wn={includes:Fn(!0),indexOf:Fn(!1)},Hn=_t,Vn=K,Gn=Wn.indexOf,$n=hr,zn=x([].push),Yn=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],Kn=Yn,Jn=Object.keys||function(e){return function(e,t){var r,n=Vn(e),o=0,i=[];for(r in n)!Hn($n,r)&&Hn(n,r)&&zn(i,r);for(;t.length>o;)Hn(n,r=t[o++])&&(~Gn(i,r)||zn(i,r));return i}(e,Kn)},Qn=se,Zn=pe,Xn=ae,eo=ge,to=K,ro=Jn;Tn.f=Qn&&!Zn?Object.defineProperties:function(e,t){eo(e);for(var r,n=to(t),o=ro(t),i=o.length,s=0;i>s;)Xn.f(e,r=o[s++],n[r]);return e};var no,oo=Ae("document","documentElement"),io=ge,so=Tn,ao=Yn,uo=hr,co=oo,lo=he,ho="prototype",fo="script",po=lr("IE_PROTO"),vo=function(){},yo=function(e){return"<"+fo+">"+e+"</"+fo+">"},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"+fo+":",t.style.display="none",co.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=ao.length;n--;)delete go[ho][ao[n]];return go()};uo[po]=!0;var bo,_o,wo,Eo=Object.create||function(e,t){var r;return null!==e?(vo[ho]=io(e),r=new vo,vo[ho]=null,r[po]=e):r=go(),void 0===t?r:so.f(r,t)},So=!A(function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype}),Oo=_t,Io=ee,To=mt,Ao=So,Po=lr("IE_PROTO"),Ro=Object,Co=Ro.prototype,No=Ao?Ro.getPrototypeOf:function(e){var t=To(e);if(Oo(t,Po))return t[Po];var r=t.constructor;return Io(r)&&t instanceof r?r.prototype:t instanceof Ro?Co:null},Uo=ar,xo=function(e,t,r,n){return n&&n.enumerable?e[t]=r:Uo(e,t,r),e},Lo=A,Do=ee,jo=ie,ko=Eo,Mo=No,qo=xo,Bo=Lt("iterator"),Fo=!1;[].keys&&("next"in(wo=[].keys())?(_o=Mo(Mo(wo)))!==Object.prototype&&(bo=_o):Fo=!0);var Wo=!jo(bo)||Lo(function(){var e={};return bo[Bo].call(e)!==e});Do((bo=Wo?{}:ko(bo))[Bo])||qo(bo,Bo,function(){return this});var Ho={IteratorPrototype:bo,BUGGY_SAFARI_ITERATORS:Fo},Vo={};Vo[Lt("toStringTag")]="z";var Go="[object z]"===String(Vo),$o=Go,zo=ee,Yo=k,Ko=Lt("toStringTag"),Jo=Object,Qo="Arguments"===Yo(function(){return arguments}()),Zo=$o?Yo: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=Jo(e),Ko))?r:Qo?Yo(t):"Object"===(n=Yo(t))&&zo(t.callee)?"Arguments":n},Xo=Zo,ei=Go?{}.toString:function(){return"[object "+Xo(this)+"]"},ti=Go,ri=ae.f,ni=ar,oi=_t,ii=ei,si=Lt("toStringTag"),ai=function(e,t,r,n){var o=r?e:e&&e.prototype;o&&(oi(o,si)||ri(o,si,{configurable:!0,value:t}),n&&!ti&&ni(o,"toString",ii))},ui=Ho.IteratorPrototype,ci=Eo,li=or,hi=ai,fi=J,di=function(){return this},pi=function(e,t,r,n){var o=t+" Iterator";return e.prototype=ci(ui,{next:li(+!n,r)}),hi(e,o,!1,!0),fi[o]=di,e},vi=bn,yi=we,mi=pi,gi=No,bi=ai,_i=xo,wi=J,Ei=In.PROPER,Si=Ho.BUGGY_SAFARI_ITERATORS,Oi=Lt("iterator"),Ii="keys",Ti="values",Ai="entries",Pi=function(){return this},Ri=function(e,t,r,n,o,i,s){mi(r,t,n);var a,u,c,l=function(e){if(e===o&&v)return v;if(!Si&&e&&e in d)return d[e];switch(e){case Ii:case Ti:case Ai:return function(){return new r(this,e)}}return function(){return new r(this)}},h=t+" Iterator",f=!1,d=e.prototype,p=d[Oi]||d["@@iterator"]||o&&d[o],v=!Si&&p||l(o),y="Array"===t&&d.entries||p;if(y&&(a=gi(y.call(new e)))!==Object.prototype&&a.next&&(bi(a,h,!0,!0),wi[h]=Pi),Ei&&o===Ti&&p&&p.name!==Ti&&(f=!0,v=function(){return yi(p,this)}),o)if(u={values:l(Ti),keys:i?v:l(Ii),entries:l(Ai)},s)for(c in u)(Si||f||!(c in d))&&_i(d,c,u[c]);else vi({target:t,proto:!0,forced:Si||f},u);return s&&d[Oi]!==v&&_i(d,Oi,v,{name:o}),wi[t]=v,u},Ci=function(e,t){return{value:e,done:t}},Ni=K,Ui=J,xi=Ir;ae.f;var Li=Ri,Di=Ci,ji="Array Iterator",ki=xi.set,Mi=xi.getterFor(ji);Li(Array,"Array",function(e,t){ki(this,{type:ji,target:Ni(e),index:0,kind:t})},function(){var e=Mi(this),t=e.target,r=e.index++;if(!t||r>=t.length)return e.target=null,Di(void 0,!0);switch(e.kind){case"keys":return Di(r,!1);case"values":return Di(t[r],!1)}return Di([r,t[r]],!1)},"values"),Ui.Arguments=Ui.Array;var qi=bn,Bi=x,Fi=Ln,Wi=RangeError,Hi=String.fromCharCode,Vi=String.fromCodePoint,Gi=Bi([].join);qi({target:"String",stat:!0,arity:1,forced:!!Vi&&1!==Vi.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 Wi(t+" is not a valid code point");r[o]=t<65536?Hi(t):Hi(55296+((t-=65536)>>10),t%1024+56320)}return Gi(r,"")}});var $i=Z,zi=se,Yi=Object.getOwnPropertyDescriptor,Ki=A,Ji=Lt("iterator"),Qi=!Ki(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[Ji]||"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}),Zi=ae,Xi=function(e,t,r){return Zi.f(e,t,r)},es=xo,ts=Pe,rs=TypeError,ns=function(e,t){if(ts(t,e))return e;throw new rs("Incorrect invocation")},os=Zo,is=String,ss=function(e){if("Symbol"===os(e))throw new TypeError("Cannot convert a Symbol value to a string");return is(e)},as=Zo,us=tt,cs=H,ls=J,hs=Lt("iterator"),fs=function(e){if(!cs(e))return us(e,hs)||us(e,"@@iterator")||ls[as(e)]},ds=we,ps=Ze,vs=ge,ys=Ye,ms=fs,gs=TypeError,bs=function(e,t){var r=arguments.length<2?ms(e):t;if(ps(r))return vs(ds(r,e));throw new gs(ys(e)+" is not iterable")},_s=TypeError,ws=function(e,t){if(e<t)throw new _s("Not enough arguments");return e},Es=x([].slice),Ss=Es,Os=Math.floor,Is=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 s=Os(r/2),a=Is(Ss(e,0,s),t),u=Is(Ss(e,s),t),c=a.length,l=u.length,h=0,f=0;h<c||f<l;)e[h+f]=h<c&&f<l?t(a[h],u[f])<=0?a[h++]:u[f++]:h<c?a[h++]:u[f++];return e},Ts=bn,As=Z,Ps=function(e){if(!zi)return $i[e];var t=Yi($i,e);return t&&t.value},Rs=Ae,Cs=we,Ns=x,Us=se,xs=Qi,Ls=xo,Ds=Xi,js=ai,ks=pi,Ms=Ir,qs=ns,Bs=ee,Fs=_t,Ws=an,Hs=Zo,Vs=ge,Gs=ie,$s=ss,zs=Eo,Ys=or,Ks=bs,Js=fs,Qs=Ci,Zs=ws,Xs=Is,ea=Lt("iterator"),ta="URLSearchParams",ra=ta+"Iterator",na=Ms.set,oa=Ms.getterFor(ta),ia=Ms.getterFor(ra),sa=Ps("fetch"),aa=Ps("Request"),ua=Ps("Headers"),ca=aa&&aa.prototype,la=ua&&ua.prototype,ha=As.TypeError,fa=As.encodeURIComponent,da=String.fromCharCode,pa=Rs("String","fromCodePoint"),va=parseInt,ya=Ns("".charAt),ma=Ns([].join),ga=Ns([].push),ba=Ns("".replace),_a=Ns([].shift),wa=Ns([].splice),Ea=Ns("".split),Sa=Ns("".slice),Oa=Ns(/./.exec),Ia=/\+/g,Ta=/^[0-9a-f]+$/i,Aa=function(e,t){var r=Sa(e,t,t+2);return Oa(Ta,r)?va(r,16):NaN},Pa=function(e){for(var t=0,r=128;r>0&&0!==(e&r);r>>=1)t++;return t},Ra=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},Ca=function(e){for(var t=(e=ba(e,Ia," ")).length,r="",n=0;n<t;){var o=ya(e,n);if("%"===o){if("%"===ya(e,n+1)||n+3>t){r+="%",n++;continue}var i=Aa(e,n+1);if(i!=i){r+=o,n++;continue}n+=2;var s=Pa(i);if(0===s)o=da(i);else{if(1===s||s>4){r+="�",n++;continue}for(var a=[i],u=1;u<s&&!(3+ ++n>t||"%"!==ya(e,n));){var c=Aa(e,n+1);if(c!=c){n+=3;break}if(c>191||c<128)break;ga(a,c),n+=2,u++}if(a.length!==s){r+="�";continue}var l=Ra(a);null===l?r+="�":o=pa(l)}}r+=o,n++}return r},Na=/[!'()~]|%20/g,Ua={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+"},xa=function(e){return Ua[e]},La=function(e){return ba(fa(e),Na,xa)},Da=ks(function(e,t){na(this,{type:ra,target:oa(e).entries,index:0,kind:t})},ta,function(){var e=ia(this),t=e.target,r=e.index++;if(!t||r>=t.length)return e.target=null,Qs(void 0,!0);var n=t[r];switch(e.kind){case"keys":return Qs(n.key,!1);case"values":return Qs(n.value,!1)}return Qs([n.key,n.value],!1)},!0),ja=function(e){this.entries=[],this.url=null,void 0!==e&&(Gs(e)?this.parseObject(e):this.parseQuery("string"==typeof e?"?"===ya(e,0)?Sa(e,1):e:$s(e)))};ja.prototype={type:ta,bindURL:function(e){this.url=e,this.update()},parseObject:function(e){var t,r,n,o,i,s,a,u=this.entries,c=Js(e);if(c)for(r=(t=Ks(e,c)).next;!(n=Cs(r,t)).done;){if(i=(o=Ks(Vs(n.value))).next,(s=Cs(i,o)).done||(a=Cs(i,o)).done||!Cs(i,o).done)throw new ha("Expected sequence with length 2");ga(u,{key:$s(s.value),value:$s(a.value)})}else for(var l in e)Fs(e,l)&&ga(u,{key:l,value:$s(e[l])})},parseQuery:function(e){if(e)for(var t,r,n=this.entries,o=Ea(e,"&"),i=0;i<o.length;)(t=o[i++]).length&&(r=Ea(t,"="),ga(n,{key:Ca(_a(r)),value:Ca(ma(r,"="))}))},serialize:function(){for(var e,t=this.entries,r=[],n=0;n<t.length;)e=t[n++],ga(r,La(e.key)+"="+La(e.value));return ma(r,"&")},update:function(){this.entries.length=0,this.parseQuery(this.url.query)},updateURL:function(){this.url&&this.url.update()}};var ka=function(){qs(this,Ma);var e=na(this,new ja(arguments.length>0?arguments[0]:void 0));Us||(this.size=e.entries.length)},Ma=ka.prototype;if(function(e,t,r){for(var n in t)r&&r.unsafe&&e[n]?e[n]=t[n]:es(e,n,t[n],r)}(Ma,{append:function(e,t){var r=oa(this);Zs(arguments.length,2),ga(r.entries,{key:$s(e),value:$s(t)}),Us||this.length++,r.updateURL()},delete:function(e){for(var t=oa(this),r=Zs(arguments.length,1),n=t.entries,o=$s(e),i=r<2?void 0:arguments[1],s=void 0===i?i:$s(i),a=0;a<n.length;){var u=n[a];if(u.key!==o||void 0!==s&&u.value!==s)a++;else if(wa(n,a,1),void 0!==s)break}Us||(this.size=n.length),t.updateURL()},get:function(e){var t=oa(this).entries;Zs(arguments.length,1);for(var r=$s(e),n=0;n<t.length;n++)if(t[n].key===r)return t[n].value;return null},getAll:function(e){var t=oa(this).entries;Zs(arguments.length,1);for(var r=$s(e),n=[],o=0;o<t.length;o++)t[o].key===r&&ga(n,t[o].value);return n},has:function(e){for(var t=oa(this).entries,r=Zs(arguments.length,1),n=$s(e),o=r<2?void 0:arguments[1],i=void 0===o?o:$s(o),s=0;s<t.length;){var a=t[s++];if(a.key===n&&(void 0===i||a.value===i))return!0}return!1},set:function(e,t){var r=oa(this);Zs(arguments.length,1);for(var n,o=r.entries,i=!1,s=$s(e),a=$s(t),u=0;u<o.length;u++)(n=o[u]).key===s&&(i?wa(o,u--,1):(i=!0,n.value=a));i||ga(o,{key:s,value:a}),Us||(this.size=o.length),r.updateURL()},sort:function(){var e=oa(this);Xs(e.entries,function(e,t){return e.key>t.key?1:-1}),e.updateURL()},forEach:function(e){for(var t,r=oa(this).entries,n=Ws(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 Da(this,"keys")},values:function(){return new Da(this,"values")},entries:function(){return new Da(this,"entries")}},{enumerable:!0}),Ls(Ma,ea,Ma.entries,{name:"entries"}),Ls(Ma,"toString",function(){return oa(this).serialize()},{enumerable:!0}),Us&&Ds(Ma,"size",{get:function(){return oa(this).entries.length},configurable:!0,enumerable:!0}),js(ka,ta),Ts({global:!0,constructor:!0,forced:!xs},{URLSearchParams:ka}),!xs&&Bs(ua)){var qa=Ns(la.has),Ba=Ns(la.set),Fa=function(e){if(Gs(e)){var t,r=e.body;if(Hs(r)===ta)return t=e.headers?new ua(e.headers):new ua,qa(t,"content-type")||Ba(t,"content-type","application/x-www-form-urlencoded;charset=UTF-8"),zs(e,{body:Ys(0,$s(r)),headers:Ys(0,t)})}return e};if(Bs(sa)&&Ts({global:!0,enumerable:!0,dontCallGetSet:!0,forced:!0},{fetch:function(e){return sa(e,arguments.length>1?Fa(arguments[1]):{})}}),Bs(aa)){var Wa=function(e){return qs(this,ca),new aa(e,arguments.length>1?Fa(arguments[1]):{})};ca.constructor=Wa,Wa.prototype=ca,Ts({global:!0,constructor:!0,dontCallGetSet:!0,forced:!0},{Request:Wa})}}var Ha={URLSearchParams:ka,getState:oa},Va=x,Ga=Cn,$a=ss,za=$,Ya=Va("".charAt),Ka=Va("".charCodeAt),Ja=Va("".slice),Qa=function(e){return function(t,r){var n,o,i=$a(za(t)),s=Ga(r),a=i.length;return s<0||s>=a?e?"":void 0:(n=Ka(i,s))<55296||n>56319||s+1===a||(o=Ka(i,s+1))<56320||o>57343?e?Ya(i,s):n:e?Ja(i,s,s+2):o-56320+(n-55296<<10)+65536}},Za={codeAt:Qa(!1),charAt:Qa(!0)},Xa=Za.charAt,eu=ss,tu=Ir,ru=Ri,nu=Ci,ou="String Iterator",iu=tu.set,su=tu.getterFor(ou);ru(String,"String",function(e){iu(this,{type:ou,string:eu(e),index:0})},function(){var e,t=su(this),r=t.string,n=t.index;return n>=r.length?nu(void 0,!0):(e=Xa(r,n),t.index+=e.length,nu(e,!1))});var au={};au.f=Object.getOwnPropertySymbols;var uu=se,cu=x,lu=we,hu=A,fu=Jn,du=au,pu=Dr,vu=mt,yu=W,mu=Object.assign,gu=Object.defineProperty,bu=cu([].concat),_u=!mu||hu(function(){if(uu&&1!==mu({b:1},mu(gu({},"a",{enumerable:!0,get:function(){gu(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!==mu({},e)[r]||fu(mu({},t)).join("")!==n})?function(e,t){for(var r=vu(e),n=arguments.length,o=1,i=du.f,s=pu.f;n>o;)for(var a,u=yu(arguments[o++]),c=i?bu(fu(u),i(u)):fu(u),l=c.length,h=0;l>h;)a=c[h++],uu&&!lu(s,u,a)||(r[a]=u[a]);return r}:mu,wu=we,Eu=ge,Su=tt,Ou=ge,Iu=J,Tu=Lt("iterator"),Au=Array.prototype,Pu=ee,Ru=ft,Cu=x(Function.toString);Pu(Ru.inspectSource)||(Ru.inspectSource=function(e){return Cu(e)});var Nu=Ru.inspectSource,Uu=x,xu=A,Lu=ee,Du=Zo,ju=Nu,ku=function(){},Mu=Ae("Reflect","construct"),qu=/^\s*(?:class|function)\b/,Bu=Uu(qu.exec),Fu=!qu.test(ku),Wu=function(e){if(!Lu(e))return!1;try{return Mu(ku,[],e),!0}catch(e){return!1}},Hu=function(e){if(!Lu(e))return!1;switch(Du(e)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return Fu||!!Bu(qu,ju(e))}catch(e){return!0}};Hu.sham=!0;var Vu,Gu=!Mu||xu(function(){var e;return Wu(Wu.call)||!Wu(Object)||!Wu(function(){e=!0})||e})?Hu:Wu,$u=se,zu=ae,Yu=or,Ku=an,Ju=we,Qu=mt,Zu=function(e,t,r,n){try{return n?t(Ou(r)[0],r[1]):t(r)}catch(t){!function(e,t,r){var n,o;Eu(e);try{if(!(n=Su(e,"return"))){if("throw"===t)throw r;return r}n=wu(n,e)}catch(e){o=!0,n=e}if("throw"===t)throw r;if(o)throw n;Eu(n)}(e,"throw",t)}},Xu=Gu,ec=kn,tc=function(e,t,r){$u?zu.f(e,t,Yu(0,r)):e[t]=r},rc=bs,nc=fs,oc=Array,ic=x,sc=2147483647,ac=/[^\0-\u007E]/,uc=/[.\u3002\uFF0E\uFF61]/g,cc="Overflow: input needs wider integers to process",lc=RangeError,hc=ic(uc.exec),fc=Math.floor,dc=String.fromCharCode,pc=ic("".charCodeAt),vc=ic([].join),yc=ic([].push),mc=ic("".replace),gc=ic("".split),bc=ic("".toLowerCase),_c=function(e){return e+22+75*(e<26)},wc=function(e,t,r){var n=0;for(e=r?fc(e/700):e>>1,e+=fc(e/t);e>455;)e=fc(e/35),n+=36;return fc(n+36*e/(e+38))},Ec=function(e){var t=[];e=function(e){for(var t=[],r=0,n=e.length;r<n;){var o=pc(e,r++);if(o>=55296&&o<=56319&&r<n){var i=pc(e,r++);56320==(64512&i)?yc(t,((1023&o)<<10)+(1023&i)+65536):(yc(t,o),r--)}else yc(t,o)}return t}(e);var r,n,o=e.length,i=128,s=0,a=72;for(r=0;r<e.length;r++)(n=e[r])<128&&yc(t,dc(n));var u=t.length,c=u;for(u&&yc(t,"-");c<o;){var l=sc;for(r=0;r<e.length;r++)(n=e[r])>=i&&n<l&&(l=n);var h=c+1;if(l-i>fc((sc-s)/h))throw new lc(cc);for(s+=(l-i)*h,i=l,r=0;r<e.length;r++){if((n=e[r])<i&&++s>sc)throw new lc(cc);if(n===i){for(var f=s,d=36;;){var p=d<=a?1:d>=a+26?26:d-a;if(f<p)break;var v=f-p,y=36-p;yc(t,dc(_c(p+v%y))),f=fc(v/y),d+=36}yc(t,dc(_c(f))),a=wc(s,h,c===u),s=0,c++}}s++,i++}return vc(t,"")},Sc=bn,Oc=se,Ic=Qi,Tc=Z,Ac=an,Pc=x,Rc=xo,Cc=Xi,Nc=ns,Uc=_t,xc=_u,Lc=function(e){var t=Qu(e),r=Xu(this),n=arguments.length,o=n>1?arguments[1]:void 0,i=void 0!==o;i&&(o=Ku(o,n>2?arguments[2]:void 0));var s,a,u,c,l,h,f=nc(t),d=0;if(!f||this===oc&&function(e){return void 0!==e&&(Iu.Array===e||Au[Tu]===e)}(f))for(s=ec(t),a=r?new this(s):oc(s);s>d;d++)h=i?o(t[d],d):t[d],tc(a,d,h);else for(a=r?new this:[],l=(c=rc(t,f)).next;!(u=Ju(l,c)).done;d++)h=i?Zu(c,o,[u.value,d],!0):u.value,tc(a,d,h);return a.length=d,a},Dc=Es,jc=Za.codeAt,kc=ss,Mc=ai,qc=ws,Bc=Ha,Fc=Ir,Wc=Fc.set,Hc=Fc.getterFor("URL"),Vc=Bc.URLSearchParams,Gc=Bc.getState,$c=Tc.URL,zc=Tc.TypeError,Yc=Tc.parseInt,Kc=Math.floor,Jc=Math.pow,Qc=Pc("".charAt),Zc=Pc(/./.exec),Xc=Pc([].join),el=Pc(1.1.toString),tl=Pc([].pop),rl=Pc([].push),nl=Pc("".replace),ol=Pc([].shift),il=Pc("".split),sl=Pc("".slice),al=Pc("".toLowerCase),ul=Pc([].unshift),cl="Invalid scheme",ll="Invalid host",hl="Invalid port",fl=/[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 #%/:<>?@[\\\]^|]/,_l=/[\0\t\n\r #/:<>?@[\\\]^|]/,wl=/^[\u0000-\u0020]+/,El=/(^|[^\u0000-\u0020])[\u0000-\u0020]+$/,Sl=/[\t\n\r]/g,Ol=function(e){var t,r,n,o;if("number"==typeof e){for(t=[],r=0;r<4;r++)ul(t,e%256),e=Kc(e/256);return Xc(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},Il={},Tl=xc({},Il,{" ":1,'"':1,"<":1,">":1,"`":1}),Al=xc({},Tl,{"#":1,"?":1,"{":1,"}":1}),Pl=xc({},Al,{"/":1,":":1,";":1,"=":1,"@":1,"[":1,"\\":1,"]":1,"^":1,"|":1}),Rl=function(e,t){var r=jc(e,0);return r>32&&r<127&&!Uc(t,e)?e:encodeURIComponent(e)},Cl={ftp:21,file:null,http:80,https:443,ws:80,wss:443},Nl=function(e,t){var r;return 2===e.length&&Zc(fl,Qc(e,0))&&(":"===(r=Qc(e,1))||!t&&"|"===r)},Ul=function(e){var t;return e.length>1&&Nl(sl(e,0,2))&&(2===e.length||"/"===(t=Qc(e,2))||"\\"===t||"?"===t||"#"===t)},xl=function(e){return"."===e||"%2e"===al(e)},Ll=function(e){return".."===(e=al(e))||"%2e."===e||".%2e"===e||"%2e%2e"===e},Dl={},jl={},kl={},Ml={},ql={},Bl={},Fl={},Wl={},Hl={},Vl={},Gl={},$l={},zl={},Yl={},Kl={},Jl={},Ql={},Zl={},Xl={},eh={},th={},rh=function(e,t,r){var n,o,i,s=kc(e);if(t){if(o=this.parse(s))throw new zc(o);this.searchParams=null}else{if(void 0!==r&&(n=new rh(r,!0)),o=this.parse(s,null,n))throw new zc(o);(i=Gc(new Vc)).bindURL(this),this.searchParams=i}};rh.prototype={type:"URL",parse:function(e,t,r){var n,o,i,s,a=this,u=t||Dl,c=0,l="",h=!1,f=!1,d=!1;for(e=kc(e),t||(a.scheme="",a.username="",a.password="",a.host=null,a.port=null,a.path=[],a.query=null,a.fragment=null,a.cannotBeABaseURL=!1,e=nl(e,wl,""),e=nl(e,El,"$1")),e=nl(e,Sl,""),n=Lc(e);c<=n.length;){switch(o=n[c],u){case Dl:if(!o||!Zc(fl,o)){if(t)return cl;u=kl;continue}l+=al(o),u=jl;break;case jl:if(o&&(Zc(dl,o)||"+"===o||"-"===o||"."===o))l+=al(o);else{if(":"!==o){if(t)return cl;l="",u=kl,c=0;continue}if(t&&(a.isSpecial()!==Uc(Cl,l)||"file"===l&&(a.includesCredentials()||null!==a.port)||"file"===a.scheme&&!a.host))return;if(a.scheme=l,t)return void(a.isSpecial()&&Cl[a.scheme]===a.port&&(a.port=null));l="","file"===a.scheme?u=Yl:a.isSpecial()&&r&&r.scheme===a.scheme?u=Ml:a.isSpecial()?u=Wl:"/"===n[c+1]?(u=ql,c++):(a.cannotBeABaseURL=!0,rl(a.path,""),u=Xl)}break;case kl:if(!r||r.cannotBeABaseURL&&"#"!==o)return cl;if(r.cannotBeABaseURL&&"#"===o){a.scheme=r.scheme,a.path=Dc(r.path),a.query=r.query,a.fragment="",a.cannotBeABaseURL=!0,u=th;break}u="file"===r.scheme?Yl:Bl;continue;case Ml:if("/"!==o||"/"!==n[c+1]){u=Bl;continue}u=Hl,c++;break;case ql:if("/"===o){u=Vl;break}u=Zl;continue;case Bl:if(a.scheme=r.scheme,o===Vu)a.username=r.username,a.password=r.password,a.host=r.host,a.port=r.port,a.path=Dc(r.path),a.query=r.query;else if("/"===o||"\\"===o&&a.isSpecial())u=Fl;else if("?"===o)a.username=r.username,a.password=r.password,a.host=r.host,a.port=r.port,a.path=Dc(r.path),a.query="",u=eh;else{if("#"!==o){a.username=r.username,a.password=r.password,a.host=r.host,a.port=r.port,a.path=Dc(r.path),a.path.length--,u=Zl;continue}a.username=r.username,a.password=r.password,a.host=r.host,a.port=r.port,a.path=Dc(r.path),a.query=r.query,a.fragment="",u=th}break;case Fl:if(!a.isSpecial()||"/"!==o&&"\\"!==o){if("/"!==o){a.username=r.username,a.password=r.password,a.host=r.host,a.port=r.port,u=Zl;continue}u=Vl}else u=Hl;break;case Wl:if(u=Hl,"/"!==o||"/"!==Qc(l,c+1))continue;c++;break;case Hl:if("/"!==o&&"\\"!==o){u=Vl;continue}break;case Vl:if("@"===o){h&&(l="%40"+l),h=!0,i=Lc(l);for(var p=0;p<i.length;p++){var v=i[p];if(":"!==v||d){var y=Rl(v,Pl);d?a.password+=y:a.username+=y}else d=!0}l=""}else if(o===Vu||"/"===o||"?"===o||"#"===o||"\\"===o&&a.isSpecial()){if(h&&""===l)return"Invalid authority";c-=Lc(l).length+1,l="",u=Gl}else l+=o;break;case Gl:case $l:if(t&&"file"===a.scheme){u=Jl;continue}if(":"!==o||f){if(o===Vu||"/"===o||"?"===o||"#"===o||"\\"===o&&a.isSpecial()){if(a.isSpecial()&&""===l)return ll;if(t&&""===l&&(a.includesCredentials()||null!==a.port))return;if(s=a.parseHost(l))return s;if(l="",u=Ql,t)return;continue}"["===o?f=!0:"]"===o&&(f=!1),l+=o}else{if(""===l)return ll;if(s=a.parseHost(l))return s;if(l="",u=zl,t===$l)return}break;case zl:if(!Zc(pl,o)){if(o===Vu||"/"===o||"?"===o||"#"===o||"\\"===o&&a.isSpecial()||t){if(""!==l){var m=Yc(l,10);if(m>65535)return hl;a.port=a.isSpecial()&&m===Cl[a.scheme]?null:m,l=""}if(t)return;u=Ql;continue}return hl}l+=o;break;case Yl:if(a.scheme="file","/"===o|