import{__require as r}from"./internal-state.mjs";import{__require as e}from"./iterator-create-constructor.mjs";import{__require as t}from"./create-iter-result-object.mjs";import{__require as i}from"./is-null-or-undefined.mjs";import{__require as n}from"./is-object.mjs";import{__require as o}from"./define-built-in-accessor.mjs";import{__require as s}from"./descriptors.mjs";var u,a;function f(){if(a)return u;a=1;var f=r(),c=e(),m=t(),p=i(),d=n(),h=o(),_=s(),v="Incorrect Iterator.range arguments",l="NumericRangeIterator",w=f.set,j=f.getterFor(l),q=RangeError,g=TypeError,y=c(function(r,e,t,i,n,o){if(typeof r!=i||e!==1/0&&e!==-1/0&&typeof e!=i)throw new g(v);if(r===1/0||r===-1/0)throw new q(v);var s,u=e>r,a=!1;if(void 0===t)s=void 0;else if(d(t))s=t.step,a=!!t.inclusive;else{if(typeof t!=i)throw new g(v);s=t}if(p(s)&&(s=u?o:-o),typeof s!=i)throw new g(v);if(s===1/0||s===-1/0||s===n&&r!==e)throw new q(v);w(this,{type:l,start:r,end:e,step:s,inclusive:a,hitsEnd:r!=r||e!=e||s!=s||e>r!=s>n,currentCount:n,zero:n}),_||(this.start=r,this.end=e,this.step=s,this.inclusive=a)},l,function(){var r=j(this);if(r.hitsEnd)return m(void 0,!0);var e=r.start,t=r.end,i=e+r.step*r.currentCount++;i===t&&(r.hitsEnd=!0);var n=r.inclusive;return(t>e?n?i>t:i>=t:n?t>i:t>=i)?(r.hitsEnd=!0,m(void 0,!0)):m(i,!1)}),E=function(r){h(y.prototype,r,{get:function(){return j(this)[r]},set:function(){},configurable:!0,enumerable:!1})};return _&&(E("start"),E("end"),E("inclusive"),E("step")),u=y}export{f as __require};