UNPKG

@appscode/ui-builder

Version:
1 lines 2.62 kB
import{o as t,J as r,a as e,K as n,w as o,L as a,M as i,N as s,O as u,_ as c,Q as f,R as p,d as y,S as l,T as v,U as g}from"./wrapper-5d451278.js";import{s as d}from"./set-to-string-tag-edc1b53a.js";import{o as h}from"./object-set-prototype-of-866dfe15.js";var I,O,A,S=!t((function(){function t(){}return t.prototype.constructor=null,Object.getPrototypeOf(new t)!==t.prototype})),j=r("IE_PROTO"),k=Object.prototype,b=S?Object.getPrototypeOf:function(t){return t=e(t),n(t,j)?t[j]:"function"==typeof t.constructor&&t instanceof t.constructor?t.constructor.prototype:t instanceof Object?k:null},x=o("iterator"),R=!1;[].keys&&("next"in(A=[].keys())?(O=b(b(A)))!==Object.prototype&&(I=O):R=!0),null==I&&(I={}),n(I,x)||a(I,x,(function(){return this}));var m={IteratorPrototype:I,BUGGY_SAFARI_ITERATORS:R},w=m.IteratorPrototype,T=m.IteratorPrototype,P=m.BUGGY_SAFARI_ITERATORS,_=o("iterator"),F=function(){return this},G=function(t,r,e,n,o,f,p){!function(t,r,e){var n=r+" Iterator";t.prototype=i(w,{next:s(1,e)}),d(t,n,!1)}(e,r,n);var y,l,v,g=function(t){if(t===o&&j)return j;if(!P&&t in A)return A[t];switch(t){case"keys":case"values":case"entries":return function(){return new e(this,t)}}return function(){return new e(this)}},I=r+" Iterator",O=!1,A=t.prototype,S=A[_]||A["@@iterator"]||o&&A[o],j=!P&&S||g(o),k="Array"==r&&A.entries||S;if(k&&(y=b(k.call(new t)),T!==Object.prototype&&y.next&&(b(y)!==T&&(h?h(y,T):"function"!=typeof y[_]&&a(y,_,F)),d(y,I,!0))),"values"==o&&S&&"values"!==S.name&&(O=!0,j=function(){return S.call(this)}),A[_]!==j&&a(A,_,j),o)if(l={values:g("values"),keys:f?j:g("keys"),entries:g("entries")},p)for(v in l)(P||O||!(v in A))&&u(A,v,l[v]);else c({target:r,proto:!0,forced:P||O},l);return l},E=p.charAt,U=f.set,B=f.getterFor("String Iterator");G(String,"String",(function(t){U(this,{type:"String Iterator",string:String(t),index:0})}),(function(){var t,r=B(this),e=r.string,n=r.index;return n>=e.length?{value:void 0,done:!0}:(t=E(e,n),r.index+=t.length,{value:t,done:!1})}));var Y=f.set,J=f.getterFor("Array Iterator"),K=G(Array,"Array",(function(t,r){Y(this,{type:"Array Iterator",target:l(t),index:0,kind:r})}),(function(){var t=J(this),r=t.target,e=t.kind,n=t.index++;return!r||n>=r.length?(t.target=void 0,{value:void 0,done:!0}):"keys"==e?{value:n,done:!1}:"values"==e?{value:r[n],done:!1}:{value:[n,r[n]],done:!1}}),"values");y("keys"),y("values"),y("entries");var L=o("iterator"),M=o("toStringTag"),N=K.values;for(var Q in v){var q=g[Q],z=q&&q.prototype;if(z){if(z[L]!==N)try{a(z,L,N)}catch(t){z[L]=N}if(z[M]||a(z,M,Q),v[Q])for(var C in K)if(z[C]!==K[C])try{a(z,C,K[C])}catch(t){z[C]=K[C]}}}