!function(e){if("object"==typeofexports&&"undefined"!=typeofmodule)module.exports=e();elseif("function"==typeofdefine&&define.amd)define([],e);else{("undefined"!=typeofwindow?window:"undefined"!=typeofglobal?global:"undefined"!=typeofself?self:this).doip=e()}}((function(){returnfunctione(t,r,o){functioni(s,a){if(!r[s]){if(!t[s]){varc="function"==typeofrequire&&require;if(!a&&c)returnc(s,!0);if(n)returnn(s,!0);varl=newError("Cannot find module '"+s+"'");throwl.code="MODULE_NOT_FOUND",l}varu=r[s]={exports:{}};t[s][0].call(u.exports,(function(e){returni(t[s][1][e]||e)}),u,u.exports,e,t,r,o)}returnr[s].exports}for(varn="function"==typeofrequire&&require,s=0;s<o.length;s++)i(o[s]);returni}({1:[function(e,t,r){"use strict";consto=e("./core");classiextendsError{constructor(e,...t){letr;super(...t),Error.captureStackTrace&&Error.captureStackTrace(this,i),this.name="StatusError",this.message=e.statusMessage,this.statusCode=e.status,this.res=e,this.json=e.json.bind(e),this.text=e.text.bind(e),this.arrayBuffer=e.arrayBuffer.bind(e);Object.defineProperty(this,"responseBody",{get:()=>(r||(r=this.arrayBuffer()),r)}),this.headers={};for(const[t,r]ofe.headers.entries())this.headers[t.toLowerCase()]=r}}t.exports=o(((e,t,r,o,n)=>async(s,a,c={})=>{s=n+(s||"");letl=newURL(s);if(o||(o={}),l.username&&(o.Authorization="Basic "+btoa(l.username+":"+l.password),l=newURL(l.protocol+"//"+l.host+l.pathname+l.search)),"https:"!==l.protocol&&"http:"!==l.protocol)thrownewError("Unknown protocol, "+l.protocol);if(a)if(ainstanceofArrayBuffer||ArrayBuffer.isView(a)||"string"==typeofa);else{if("object"!=typeofa)thrownewError("Unknown body type.");a=JSON.stringify(a),o["Content-Type"]="application/json"}c=newHeaders({...o||{},...c});constu=awaitfetch(l,{method:t,headers:c,body:a});if(u.statusCode=u.status,!e.has(u.status))thrownewi(u);return"json"===r?u.json():"buffer"===r?u.arrayBuffer():"string"===r?u.text():u}))},{"./core":2}],2:[function(e,t,r){"use strict";consto=newSet(["json","buffer","string"]);t.exports=e=>(...t)=>{constr=newSet;leti,n,s,a="";returnt.forEach((e=>{if("string"==typeofe)if(e.toUpperCase()===e){if(i){thrownewError(`Can't set method to ${e}, already set to ${i}.`)}i=e}elseif(e.startsWith("http:")||e.startsWith("https:"))a=e;else{if(!o.has(e))thrownewError("Unknown encoding, "+e);n=e}elseif("number"==typeofe)r.add(e);else{if("object"!=typeofe)thrownewError("Unknown type: "+typeofe);if(Array.isArray(e)||einstanceofSet)e.forEach((e=>r.add(e)));else{if(s)thrownewError("Cannot set headers twice.");s=e}}})),i||(i="GET"),0===r.size&&r.add(200),e(r,i,n,s,a)}},{}],3:[function(e,t,r){},{}],4:[function(e,t,r){"use strict";t.exports=e=>{if("[object Object]"!==Object.prototype.toString.call(e))return!1;constt=Object.getPrototypeOf(e);returnnull===t||t===Object.prototype}},{}],5:[function(e,t,r){"use strict";consto=e("is-plain-obj"),{hasOwnProperty:i}=Object.prototype,{propertyIsEnumerable:n}=Object,s=(e,t,r)=>Object.defineProperty(e,t,{value:r,writable:!0,enumerable:!0,configurable:!0}),a=this,c={concatArrays:!1,ignoreUndefined:!1},l=e=>{constt=[];for(constrine)i.call(e,r)&&t.push(r);if(Object.getOwnPropertySymbols){constr=Object.getOwnPropertySymbols(e);for(constoofr)n.call(e,o)&&t.push(o)}returnt};functionu(e){returnArray.isArray(e)?function(e){constt=e.slice(0,0);returnl(e).forEach((r=>{s(t,r,u(e[r]))})),t}(e):o(e)?function(e){constt=null===Object.getPrototypeOf(e)?Object.create(null):{};returnl(e).forEach((r=>{s(t,r,u(e[r]))})),t}(e):e}constp=(e,t,r,o)=>(r.forEach((r=>{void0===t[r]&&o.ignoreUndefined||(rine&&e[r]!==Object.getPrototypeOf(e)?s(e,r,d(e[r],t[r],o)):s(e,r,u(t[r])))})),e);functiond(e,t,r){returnr.concatArrays&&Array.isArray(e)&&Array.isArray(t)?((e,t,r)=>{leto=e.slice(0,0),n=0;return[e,t].forEach((t=>{consta=[];for(letr=0;r<t.length;r++)i.call(t,r)&&(a.push(String(r)),s(o,n++,t===e?t[r]:u(t[r])));o=p(o,t,l(t).filter((e=>!a.includes(e))),r)})),o})(e,t,r):o(t)&&o(e)?p(e,t,l(t),r):u(t)}t.exports=function(...e){constt=d(u(c),this!==a&&this||{}