!function(t){if("object"==typeofexports&&"undefined"!=typeofmodule)module.exports=t();elseif("function"==typeofdefine&&define.amd)define([],t);else{("undefined"!=typeofwindow?window:"undefined"!=typeofglobal?global:"undefined"!=typeofself?self:this).doip=t()}}((function(){returnfunctiont(e,r,o){functions(n,a){if(!r[n]){if(!e[n]){varc="function"==typeofrequire&&require;if(!a&&c)returnc(n,!0);if(i)returni(n,!0);varu=newError("Cannot find module '"+n+"'");throwu.code="MODULE_NOT_FOUND",u}varl=r[n]={exports:{}};e[n][0].call(l.exports,(function(t){returns(e[n][1][t]||t)}),l,l.exports,t,e,r,o)}returnr[n].exports}for(vari="function"==typeofrequire&&require,n=0;n<o.length;n++)s(o[n]);returns}({1:[function(t,e,r){"use strict";consto=t("./core");classsextendsError{constructor(t,...e){letr;super(...e),Error.captureStackTrace&&Error.captureStackTrace(this,s),this.name="StatusError",this.message=t.statusMessage,this.statusCode=t.status,this.res=t,this.json=t.json.bind(t),this.text=t.text.bind(t),this.arrayBuffer=t.arrayBuffer.bind(t);Object.defineProperty(this,"responseBody",{get:()=>(r||(r=this.arrayBuffer()),r)}),this.headers={};for(const[e,r]oft.headers.entries())this.headers[e.toLowerCase()]=r}}e.exports=o(((t,e,r,o,i)=>async(n,a,c={})=>{n=i+(n||"");letu=newURL(n);if(o||(o={}),u.username&&(o.Authorization="Basic "+btoa(u.username+":"+u.password),u=newURL(u.protocol+"//"+u.host+u.pathname+u.search)),"https:"!==u.protocol&&"http:"!==u.protocol)thrownewError("Unknown protocol, "+u.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});constl=awaitfetch(u,{method:e,headers:c,body:a});if(l.statusCode=l.status,!t.has(l.status))thrownews(l);return"json"===r?l.json():"buffer"===r?l.arrayBuffer():"string"===r?l.text():l}))},{"./core":2}],2:[function(t,e,r){"use strict";consto=newSet(["json","buffer","string"]);e.exports=t=>(...e)=>{constr=newSet;lets,i,n,a="";returne.forEach((t=>{if("string"==typeoft)if(t.toUpperCase()===t){if(s){thrownewError(`Can't set method to ${t}, already set to ${s}.`)}s=t}elseif(t.startsWith("http:")||t.startsWith("https:"))a=t;else{if(!o.has(t))thrownewError("Unknown encoding, "+t);i=t}elseif("number"==typeoft)r.add(t);else{if("object"!=typeoft)thrownewError("Unknown type: "+typeoft);if(Array.isArray(t)||tinstanceofSet)t.forEach((t=>r.add(t)));else{if(n)thrownewError("Cannot set headers twice.");n=t}}})),s||(s="GET"),0===r.size&&r.add(200),t(r,s,i,n,a)}},{}],3:[function(t,e,r){},{}],4:[function(t,e,r){"use strict";e.exports=t=>{if("[object Object]"!==Object.prototype.toString.call(t))return!1;conste=Object.getPrototypeOf(t);returnnull===e||e===Object.prototype}},{}],5:[function(t,e,r){"use strict";consto=t("is-plain-obj"),{hasOwnProperty:s}=Object.prototype,{propertyIsEnumerable:i}=Object,n=(t,e,r)=>Object.defineProperty(t,e,{value:r,writable:!0,enumerable:!0,configurable:!0}),a=this,c={concatArrays:!1,ignoreUndefined:!1},u=t=>{conste=[];for(constrint)s.call(t,r)&&e.push(r);if(Object.getOwnPropertySymbols){constr=Object.getOwnPropertySymbols(t);for(constoofr)i.call(t,o)&&e.push(o)}returne};functionl(t){returnArray.isArray(t)?function(t){conste=t.slice(0,0);returnu(t).forEach((r=>{n(e,r,l(t[r]))})),e}(t):o(t)?function(t){conste=null===Object.getPrototypeOf(t)?Object.create(null):{};returnu(t).forEach((r=>{n(e,r,l(t[r]))})),e}(t):t}constp=(t,e,r,o)=>(r.forEach((r=>{void0===e[r]&&o.ignoreUndefined||(rint&&t[r]!==Object.getPrototypeOf(t)?n(t,r,h(t[r],e[r],o)):n(t,r,l(e[r])))})),t);functionh(t,e,r){returnr.concatArrays&&Array.isArray(t)&&Array.isArray(e)?((t,e,r)=>{leto=t.slice(0,0),i=0;return[t,e].forEach((e=>{consta=[];for(letr=0;r<e.length;r++)s.call(e,r)&&(a.push(String(r)),n(o,i++,e===t?e[r]:l(e[r])));o=p(o,e,u(e).filter((t=>!a.includes(t))),r)})),o})(t,e,r):o(e)&&o(t)?p(t,e,u(e),r):l(e)}e.exports=function(...t){conste=h(l(c),this!==a&&this||{}