13 lines
52 KiB
JavaScript
13 lines
52 KiB
JavaScript
var t="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function createCommonjsModule(t,e,r){return t(r={path:e,exports:{},require:function(t,e){return function commonjsRequire(){throw new Error("Dynamic requires are not currently supported by @rollup/plugin-commonjs")}(null==e&&r.path)}},r.exports),r.exports}var check=function(t){return t&&t.Math==Math&&t},e=check("object"==typeof globalThis&&globalThis)||check("object"==typeof window&&window)||check("object"==typeof self&&self)||check("object"==typeof t&&t)||Function("return this")(),fails=function(t){try{return!!t()}catch(t){return!0}},r=!fails((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]})),n={}.propertyIsEnumerable,o=Object.getOwnPropertyDescriptor,i={f:o&&!n.call({1:2},1)?function propertyIsEnumerable(t){var e=o(this,t);return!!e&&e.enumerable}:n},createPropertyDescriptor=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}},a={}.toString,classofRaw=function(t){return a.call(t).slice(8,-1)},c="".split,u=fails((function(){return!Object("z").propertyIsEnumerable(0)}))?function(t){return"String"==classofRaw(t)?c.call(t,""):Object(t)}:Object,requireObjectCoercible=function(t){if(null==t)throw TypeError("Can't call method on "+t);return t},toIndexedObject=function(t){return u(requireObjectCoercible(t))},isObject=function(t){return"object"==typeof t?null!==t:"function"==typeof t},toPrimitive=function(t,e){if(!isObject(t))return t;var r,n;if(e&&"function"==typeof(r=t.toString)&&!isObject(n=r.call(t)))return n;if("function"==typeof(r=t.valueOf)&&!isObject(n=r.call(t)))return n;if(!e&&"function"==typeof(r=t.toString)&&!isObject(n=r.call(t)))return n;throw TypeError("Can't convert object to primitive value")},s={}.hasOwnProperty,has=function(t,e){return s.call(t,e)},f=e.document,l=isObject(f)&&isObject(f.createElement),documentCreateElement=function(t){return l?f.createElement(t):{}},p=!r&&!fails((function(){return 7!=Object.defineProperty(documentCreateElement("div"),"a",{get:function(){return 7}}).a})),h=Object.getOwnPropertyDescriptor,d={f:r?h:function getOwnPropertyDescriptor(t,e){if(t=toIndexedObject(t),e=toPrimitive(e,!0),p)try{return h(t,e)}catch(t){}if(has(t,e))return createPropertyDescriptor(!i.f.call(t,e),t[e])}},anObject=function(t){if(!isObject(t))throw TypeError(String(t)+" is not an object");return t},v=Object.defineProperty,y={f:r?v:function defineProperty(t,e,r){if(anObject(t),e=toPrimitive(e,!0),anObject(r),p)try{return v(t,e,r)}catch(t){}if("get"in r||"set"in r)throw TypeError("Accessors not supported");return"value"in r&&(t[e]=r.value),t}},g=r?function(t,e,r){return y.f(t,e,createPropertyDescriptor(1,r))}:function(t,e,r){return t[e]=r,t},setGlobal=function(t,r){try{g(e,t,r)}catch(n){e[t]=r}return r},m=e["__core-js_shared__"]||setGlobal("__core-js_shared__",{}),b=Function.toString;"function"!=typeof m.inspectSource&&(m.inspectSource=function(t){return b.call(t)});var w,S,x,E=m.inspectSource,O=e.WeakMap,j="function"==typeof O&&/native code/.test(E(O)),P=createCommonjsModule((function(t){(t.exports=function(t,e){return m[t]||(m[t]=void 0!==e?e:{})})("versions",[]).push({version:"3.6.5",mode:"global",copyright:"© 2020 Denis Pushkarev (zloirock.ru)"})})),A=0,_=Math.random(),uid=function(t){return"Symbol("+String(void 0===t?"":t)+")_"+(++A+_).toString(36)},I=P("keys"),sharedKey=function(t){return I[t]||(I[t]=uid(t))},T={},k=e.WeakMap;if(j){var M=new k,L=M.get,R=M.has,C=M.set;w=function(t,e){return C.call(M,t,e),e},S=function(t){return L.call(M,t)||{}},x=function(t){return R.call(M,t)}}else{var G=sharedKey("state");T[G]=!0,w=function(t,e){return g(t,G,e),e},S=function(t){return has(t,G)?t[G]:{}},x=function(t){return has(t,G)}}var N,D={set:w,get:S,has:x,enforce:function(t){return x(t)?S(t):w(t,{})},getterFor:function(t){return function(e){var r;if(!isObject(e)||(r=S(e)).type!==t)throw TypeError("Incompatible receiver, "+t+" required");return r}}},U=createCommonjsModule((function(t){var r=D.get,n=D.enforce,o=String(String).split("String");(t.exports=function(t,r,i,a){var c=!!a&&!!a.unsafe,u=!!a&&!!a.enumerable,s=!!a&&!!a.noTargetGet;"function"==typeof i&&("string"!=typeof r||has(i,"name")||g(i,"name",r),n(i).source=o.join("string"==typeof r?r:"")),t!==e?(c?!s&&t[r]&&(u=!0):delete t[r],u?t[r]=i:g(t,r,i)):u?t[r]=i:setGlobal(r,i)})(Function.prototype,"toString",(function toString(){return"function"==typeof this&&r(this).source||E(this)}))})),W=e,aFunction=function(t){return"function"==typeof t?t:void 0},getBuiltIn=function(t,r){return arguments.length<2?aFunction(W[t])||aFunction(e[t]):W[t]&&W[t][r]||e[t]&&e[t][r]},$=Math.ceil,B=Math.floor,toInteger=function(t){return isNaN(t=+t)?0:(t>0?B:$)(t)},q=Math.min,toLength=function(t){return t>0?q(toInteger(t),9007199254740991):0},V=Math.max,z=Math.min,toAbsoluteIndex=function(t,e){var r=toInteger(t);return r<0?V(r+e,0):z(r,e)},createMethod=function(t){return function(e,r,n){var o,i=toIndexedObject(e),a=toLength(i.length),c=toAbsoluteIndex(n,a);if(t&&r!=r){for(;a>c;)if((o=i[c++])!=o)return!0}else for(;a>c;c++)if((t||c in i)&&i[c]===r)return t||c||0;return!t&&-1}},Y={includes:createMethod(!0),indexOf:createMethod(!1)},K=Y.indexOf,objectKeysInternal=function(t,e){var r,n=toIndexedObject(t),o=0,i=[];for(r in n)!has(T,r)&&has(n,r)&&i.push(r);for(;e.length>o;)has(n,r=e[o++])&&(~K(i,r)||i.push(r));return i},H=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],J=H.concat("length","prototype"),Q={f:Object.getOwnPropertyNames||function getOwnPropertyNames(t){return objectKeysInternal(t,J)}},X={f:Object.getOwnPropertySymbols},Z=getBuiltIn("Reflect","ownKeys")||function ownKeys(t){var e=Q.f(anObject(t)),r=X.f;return r?e.concat(r(t)):e},copyConstructorProperties=function(t,e){for(var r=Z(e),n=y.f,o=d.f,i=0;i<r.length;i++){var a=r[i];has(t,a)||n(t,a,o(e,a))}},tt=/#|\.prototype\./,isForced=function(t,e){var r=rt[et(t)];return r==ot||r!=nt&&("function"==typeof e?fails(e):!!e)},et=isForced.normalize=function(t){return String(t).replace(tt,".").toLowerCase()},rt=isForced.data={},nt=isForced.NATIVE="N",ot=isForced.POLYFILL="P",it=isForced,at=d.f,_export=function(t,r){var n,o,i,a,c,u=t.target,s=t.global,f=t.stat;if(n=s?e:f?e[u]||setGlobal(u,{}):(e[u]||{}).prototype)for(o in r){if(a=r[o],i=t.noTargetGet?(c=at(n,o))&&c.value:n[o],!it(s?o:u+(f?".":"#")+o,t.forced)&&void 0!==i){if(typeof a==typeof i)continue;copyConstructorProperties(a,i)}(t.sham||i&&i.sham)&&g(a,"sham",!0),U(n,o,a,t)}},toObject=function(t){return Object(requireObjectCoercible(t))},ct=!!Object.getOwnPropertySymbols&&!fails((function(){return!String(Symbol())})),ut=ct&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,st=P("wks"),ft=e.Symbol,lt=ut?ft:ft&&ft.withoutSetter||uid,wellKnownSymbol=function(t){return has(st,t)||(ct&&has(ft,t)?st[t]=ft[t]:st[t]=lt("Symbol."+t)),st[t]},pt=Object.keys||function keys(t){return objectKeysInternal(t,H)},ht=r?Object.defineProperties:function defineProperties(t,e){anObject(t);for(var r,n=pt(e),o=n.length,i=0;o>i;)y.f(t,r=n[i++],e[r]);return t},dt=getBuiltIn("document","documentElement"),vt=sharedKey("IE_PROTO"),EmptyConstructor=function(){},scriptTag=function(t){return"<script>"+t+"<\/script>"},NullProtoObject=function(){try{N=document.domain&&new ActiveXObject("htmlfile")}catch(t){}var t,e;NullProtoObject=N?function(t){t.write(scriptTag("")),t.close();var e=t.parentWindow.Object;return t=null,e}(N):((e=documentCreateElement("iframe")).style.display="none",dt.appendChild(e),e.src=String("javascript:"),(t=e.contentWindow.document).open(),t.write(scriptTag("document.F=Object")),t.close(),t.F);for(var r=H.length;r--;)delete NullProtoObject.prototype[H[r]];return NullProtoObject()};T[vt]=!0;var yt=Object.create||function create(t,e){var r;return null!==t?(EmptyConstructor.prototype=anObject(t),r=new EmptyConstructor,EmptyConstructor.prototype=null,r[vt]=t):r=NullProtoObject(),void 0===e?r:ht(r,e)},gt=wellKnownSymbol("unscopables"),mt=Array.prototype;null==mt[gt]&&y.f(mt,gt,{configurable:!0,value:yt(null)});var addToUnscopables=function(t){mt[gt][t]=!0};_export({target:"Array",proto:!0},{fill:function fill(t){for(var e=toObject(this),r=toLength(e.length),n=arguments.length,o=toAbsoluteIndex(n>1?arguments[1]:void 0,r),i=n>2?arguments[2]:void 0,a=void 0===i?r:toAbsoluteIndex(i,r);a>o;)e[o++]=t;return e}}),addToUnscopables("fill");var bt,wt,aFunction$1=function(t){if("function"!=typeof t)throw TypeError(String(t)+" is not a function");return t},functionBindContext=function(t,e,r){if(aFunction$1(t),void 0===e)return t;switch(r){case 0:return function(){return t.call(e)};case 1:return function(r){return t.call(e,r)};case 2:return function(r,n){return t.call(e,r,n)};case 3:return function(r,n,o){return t.call(e,r,n,o)}}return function(){return t.apply(e,arguments)}},St=Array.isArray||function isArray(t){return"Array"==classofRaw(t)},xt=wellKnownSymbol("species"),arraySpeciesCreate=function(t,e){var r;return St(t)&&("function"!=typeof(r=t.constructor)||r!==Array&&!St(r.prototype)?isObject(r)&&null===(r=r[xt])&&(r=void 0):r=void 0),new(void 0===r?Array:r)(0===e?0:e)},Et=[].push,createMethod$1=function(t){var e=1==t,r=2==t,n=3==t,o=4==t,i=6==t,a=5==t||i;return function(c,s,f,l){for(var p,h,d=toObject(c),v=u(d),y=functionBindContext(s,f,3),g=toLength(v.length),m=0,b=l||arraySpeciesCreate,w=e?b(c,g):r?b(c,0):void 0;g>m;m++)if((a||m in v)&&(h=y(p=v[m],m,d),t))if(e)w[m]=h;else if(h)switch(t){case 3:return!0;case 5:return p;case 6:return m;case 2:Et.call(w,p)}else if(o)return!1;return i?-1:n||o?o:w}},Ot={forEach:createMethod$1(0),map:createMethod$1(1),filter:createMethod$1(2),some:createMethod$1(3),every:createMethod$1(4),find:createMethod$1(5),findIndex:createMethod$1(6)},jt=getBuiltIn("navigator","userAgent")||"",Pt=e.process,At=Pt&&Pt.versions,_t=At&&At.v8;_t?wt=(bt=_t.split("."))[0]+bt[1]:jt&&(!(bt=jt.match(/Edge\/(\d+)/))||bt[1]>=74)&&(bt=jt.match(/Chrome\/(\d+)/))&&(wt=bt[1]);var It=wt&&+wt,Tt=wellKnownSymbol("species"),arrayMethodHasSpeciesSupport=function(t){return It>=51||!fails((function(){var e=[];return(e.constructor={})[Tt]=function(){return{foo:1}},1!==e[t](Boolean).foo}))},kt=Object.defineProperty,Mt={},thrower=function(t){throw t},arrayMethodUsesToLength=function(t,e){if(has(Mt,t))return Mt[t];e||(e={});var n=[][t],o=!!has(e,"ACCESSORS")&&e.ACCESSORS,i=has(e,0)?e[0]:thrower,a=has(e,1)?e[1]:void 0;return Mt[t]=!!n&&!fails((function(){if(o&&!r)return!0;var t={length:-1};o?kt(t,1,{enumerable:!0,get:thrower}):t[1]=1,n.call(t,i,a)}))},Lt=Ot.map,Rt=arrayMethodHasSpeciesSupport("map"),Ct=arrayMethodUsesToLength("map");_export({target:"Array",proto:!0,forced:!Rt||!Ct},{map:function map(t){return Lt(this,t,arguments.length>1?arguments[1]:void 0)}});var Gt=y.f,Ft=Function.prototype,Nt=Ft.toString,Dt=/^\s*function ([^ (]*)/;r&&!("name"in Ft)&&Gt(Ft,"name",{configurable:!0,get:function(){try{return Nt.call(this).match(Dt)[1]}catch(t){return""}}});var Ut=Object.assign,Wt=Object.defineProperty,$t=!Ut||fails((function(){if(r&&1!==Ut({b:1},Ut(Wt({},"a",{enumerable:!0,get:function(){Wt(this,"b",{value:3,enumerable:!1})}}),{b:2})).b)return!0;var t={},e={},n=Symbol(),o="abcdefghijklmnopqrst";return t[n]=7,o.split("").forEach((function(t){e[t]=t})),7!=Ut({},t)[n]||pt(Ut({},e)).join("")!=o}))?function assign(t,e){for(var n=toObject(t),o=arguments.length,a=1,c=X.f,s=i.f;o>a;)for(var f,l=u(arguments[a++]),p=c?pt(l).concat(c(l)):pt(l),h=p.length,d=0;h>d;)f=p[d++],r&&!s.call(l,f)||(n[f]=l[f]);return n}:Ut;_export({target:"Object",stat:!0,forced:Object.assign!==$t},{assign:$t});var Bt=Q.f,qt={}.toString,Vt="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],zt={f:function getOwnPropertyNames(t){return Vt&&"[object Window]"==qt.call(t)?function(t){try{return Bt(t)}catch(t){return Vt.slice()}}(t):Bt(toIndexedObject(t))}},Yt={f:wellKnownSymbol},Kt=y.f,defineWellKnownSymbol=function(t){var e=W.Symbol||(W.Symbol={});has(e,t)||Kt(e,t,{value:Yt.f(t)})},Ht=y.f,Jt=wellKnownSymbol("toStringTag"),setToStringTag=function(t,e,r){t&&!has(t=r?t:t.prototype,Jt)&&Ht(t,Jt,{configurable:!0,value:e})},Qt=Ot.forEach,Xt=sharedKey("hidden"),Zt=wellKnownSymbol("toPrimitive"),te=D.set,ee=D.getterFor("Symbol"),re=Object.prototype,ne=e.Symbol,oe=getBuiltIn("JSON","stringify"),ie=d.f,ae=y.f,ce=zt.f,ue=i.f,se=P("symbols"),fe=P("op-symbols"),le=P("string-to-symbol-registry"),pe=P("symbol-to-string-registry"),he=P("wks"),de=e.QObject,ve=!de||!de.prototype||!de.prototype.findChild,ye=r&&fails((function(){return 7!=yt(ae({},"a",{get:function(){return ae(this,"a",{value:7}).a}})).a}))?function(t,e,r){var n=ie(re,e);n&&delete re[e],ae(t,e,r),n&&t!==re&&ae(re,e,n)}:ae,wrap=function(t,e){var n=se[t]=yt(ne.prototype);return te(n,{type:"Symbol",tag:t,description:e}),r||(n.description=e),n},ge=ut?function(t){return"symbol"==typeof t}:function(t){return Object(t)instanceof ne},me=function defineProperty(t,e,r){t===re&&me(fe,e,r),anObject(t);var n=toPrimitive(e,!0);return anObject(r),has(se,n)?(r.enumerable?(has(t,Xt)&&t[Xt][n]&&(t[Xt][n]=!1),r=yt(r,{enumerable:createPropertyDescriptor(0,!1)})):(has(t,Xt)||ae(t,Xt,createPropertyDescriptor(1,{})),t[Xt][n]=!0),ye(t,n,r)):ae(t,n,r)},be=function defineProperties(t,e){anObject(t);var n=toIndexedObject(e),o=pt(n).concat(Ee(n));return Qt(o,(function(e){r&&!we.call(n,e)||me(t,e,n[e])})),t},we=function propertyIsEnumerable(t){var e=toPrimitive(t,!0),r=ue.call(this,e);return!(this===re&&has(se,e)&&!has(fe,e))&&(!(r||!has(this,e)||!has(se,e)||has(this,Xt)&&this[Xt][e])||r)},Se=function getOwnPropertyDescriptor(t,e){var r=toIndexedObject(t),n=toPrimitive(e,!0);if(r!==re||!has(se,n)||has(fe,n)){var o=ie(r,n);return!o||!has(se,n)||has(r,Xt)&&r[Xt][n]||(o.enumerable=!0),o}},xe=function getOwnPropertyNames(t){var e=ce(toIndexedObject(t)),r=[];return Qt(e,(function(t){has(se,t)||has(T,t)||r.push(t)})),r},Ee=function getOwnPropertySymbols(t){var e=t===re,r=ce(e?fe:toIndexedObject(t)),n=[];return Qt(r,(function(t){!has(se,t)||e&&!has(re,t)||n.push(se[t])})),n};if(ct||(U((ne=function Symbol(){if(this instanceof ne)throw TypeError("Symbol is not a constructor");var t=arguments.length&&void 0!==arguments[0]?String(arguments[0]):void 0,e=uid(t),setter=function(t){this===re&&setter.call(fe,t),has(this,Xt)&&has(this[Xt],e)&&(this[Xt][e]=!1),ye(this,e,createPropertyDescriptor(1,t))};return r&&ve&&ye(re,e,{configurable:!0,set:setter}),wrap(e,t)}).prototype,"toString",(function toString(){return ee(this).tag})),U(ne,"withoutSetter",(function(t){return wrap(uid(t),t)})),i.f=we,y.f=me,d.f=Se,Q.f=zt.f=xe,X.f=Ee,Yt.f=function(t){return wrap(wellKnownSymbol(t),t)},r&&(ae(ne.prototype,"description",{configurable:!0,get:function description(){return ee(this).description}}),U(re,"propertyIsEnumerable",we,{unsafe:!0}))),_export({global:!0,wrap:!0,forced:!ct,sham:!ct},{Symbol:ne}),Qt(pt(he),(function(t){defineWellKnownSymbol(t)})),_export({target:"Symbol",stat:!0,forced:!ct},{for:function(t){var e=String(t);if(has(le,e))return le[e];var r=ne(e);return le[e]=r,pe[r]=e,r},keyFor:function keyFor(t){if(!ge(t))throw TypeError(t+" is not a symbol");if(has(pe,t))return pe[t]},useSetter:function(){ve=!0},useSimple:function(){ve=!1}}),_export({target:"Object",stat:!0,forced:!ct,sham:!r},{create:function create(t,e){return void 0===e?yt(t):be(yt(t),e)},defineProperty:me,defineProperties:be,getOwnPropertyDescriptor:Se}),_export({target:"Object",stat:!0,forced:!ct},{getOwnPropertyNames:xe,getOwnPropertySymbols:Ee}),_export({target:"Object",stat:!0,forced:fails((function(){X.f(1)}))},{getOwnPropertySymbols:function getOwnPropertySymbols(t){return X.f(toObject(t))}}),oe){var Oe=!ct||fails((function(){var t=ne();return"[null]"!=oe([t])||"{}"!=oe({a:t})||"{}"!=oe(Object(t))}));_export({target:"JSON",stat:!0,forced:Oe},{stringify:function stringify(t,e,r){for(var n,o=[t],i=1;arguments.length>i;)o.push(arguments[i++]);if(n=e,(isObject(e)||void 0!==t)&&!ge(t))return St(e)||(e=function(t,e){if("function"==typeof n&&(e=n.call(this,t,e)),!ge(e))return e}),o[1]=e,oe.apply(null,o)}})}ne.prototype[Zt]||g(ne.prototype,Zt,ne.prototype.valueOf),setToStringTag(ne,"Symbol"),T[Xt]=!0;var je=y.f,Pe=e.Symbol;if(r&&"function"==typeof Pe&&(!("description"in Pe.prototype)||void 0!==Pe().description)){var Ae={},_e=function Symbol(){var t=arguments.length<1||void 0===arguments[0]?void 0:String(arguments[0]),e=this instanceof _e?new Pe(t):void 0===t?Pe():Pe(t);return""===t&&(Ae[e]=!0),e};copyConstructorProperties(_e,Pe);var Ie=_e.prototype=Pe.prototype;Ie.constructor=_e;var Te=Ie.toString,ke="Symbol(test)"==String(Pe("test")),Me=/^Symbol\((.*)\)[^)]+$/;je(Ie,"description",{configurable:!0,get:function description(){var t=isObject(this)?this.valueOf():this,e=Te.call(t);if(has(Ae,t))return"";var r=ke?e.slice(7,-1):e.replace(Me,"$1");return""===r?void 0:r}}),_export({global:!0,forced:!0},{Symbol:_e})}defineWellKnownSymbol("asyncIterator"),defineWellKnownSymbol("iterator"),defineWellKnownSymbol("toStringTag");var arrayMethodIsStrict=function(t,e){var r=[][t];return!!r&&fails((function(){r.call(null,e||function(){throw 1},1)}))},Le=Ot.forEach,Re=arrayMethodIsStrict("forEach"),Ce=arrayMethodUsesToLength("forEach"),Ge=Re&&Ce?[].forEach:function forEach(t){return Le(this,t,arguments.length>1?arguments[1]:void 0)};_export({target:"Array",proto:!0,forced:[].forEach!=Ge},{forEach:Ge});var Fe,Ne,De,Ue={},We=!fails((function(){function F(){}return F.prototype.constructor=null,Object.getPrototypeOf(new F)!==F.prototype})),$e=sharedKey("IE_PROTO"),Be=Object.prototype,qe=We?Object.getPrototypeOf:function(t){return t=toObject(t),has(t,$e)?t[$e]:"function"==typeof t.constructor&&t instanceof t.constructor?t.constructor.prototype:t instanceof Object?Be:null},Ve=wellKnownSymbol("iterator"),ze=!1;[].keys&&("next"in(De=[].keys())?(Ne=qe(qe(De)))!==Object.prototype&&(Fe=Ne):ze=!0),null==Fe&&(Fe={}),has(Fe,Ve)||g(Fe,Ve,(function(){return this}));var Ye={IteratorPrototype:Fe,BUGGY_SAFARI_ITERATORS:ze},Ke=Ye.IteratorPrototype,returnThis$1=function(){return this},He=Object.setPrototypeOf||("__proto__"in{}?function(){var t,e=!1,r={};try{(t=Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set).call(r,[]),e=r instanceof Array}catch(t){}return function setPrototypeOf(r,n){return anObject(r),function(t){if(!isObject(t)&&null!==t)throw TypeError("Can't set "+String(t)+" as a prototype")}(n),e?t.call(r,n):r.__proto__=n,r}}():void 0),Je=Ye.IteratorPrototype,Qe=Ye.BUGGY_SAFARI_ITERATORS,Xe=wellKnownSymbol("iterator"),returnThis$2=function(){return this},defineIterator=function(t,e,r,n,o,i,a){!function(t,e,r){var n=e+" Iterator";t.prototype=yt(Ke,{next:createPropertyDescriptor(1,r)}),setToStringTag(t,n,!1),Ue[n]=returnThis$1}(r,e,n);var c,u,s,getIterationMethod=function(t){if(t===o&&d)return d;if(!Qe&&t in p)return p[t];switch(t){case"keys":return function keys(){return new r(this,t)};case"values":return function values(){return new r(this,t)};case"entries":return function entries(){return new r(this,t)}}return function(){return new r(this)}},f=e+" Iterator",l=!1,p=t.prototype,h=p[Xe]||p["@@iterator"]||o&&p[o],d=!Qe&&h||getIterationMethod(o),v="Array"==e&&p.entries||h;if(v&&(c=qe(v.call(new t)),Je!==Object.prototype&&c.next&&(qe(c)!==Je&&(He?He(c,Je):"function"!=typeof c[Xe]&&g(c,Xe,returnThis$2)),setToStringTag(c,f,!0))),"values"==o&&h&&"values"!==h.name&&(l=!0,d=function values(){return h.call(this)}),p[Xe]!==d&&g(p,Xe,d),Ue[e]=d,o)if(u={values:getIterationMethod("values"),keys:i?d:getIterationMethod("keys"),entries:getIterationMethod("entries")},a)for(s in u)(Qe||l||!(s in p))&&U(p,s,u[s]);else _export({target:e,proto:!0,forced:Qe||l},u);return u},Ze=D.set,tr=D.getterFor("Array Iterator"),er=defineIterator(Array,"Array",(function(t,e){Ze(this,{type:"Array Iterator",target:toIndexedObject(t),index:0,kind:e})}),(function(){var t=tr(this),e=t.target,r=t.kind,n=t.index++;return!e||n>=e.length?(t.target=void 0,{value:void 0,done:!0}):"keys"==r?{value:n,done:!1}:"values"==r?{value:e[n],done:!1}:{value:[n,e[n]],done:!1}}),"values");Ue.Arguments=Ue.Array,addToUnscopables("keys"),addToUnscopables("values"),addToUnscopables("entries");var rr=[].reverse,nr=[1,2];_export({target:"Array",proto:!0,forced:String(nr)===String(nr.reverse())},{reverse:function reverse(){return St(this)&&(this.length=this.length),rr.call(this)}});var createProperty=function(t,e,r){var n=toPrimitive(e);n in t?y.f(t,n,createPropertyDescriptor(0,r)):t[n]=r},or=arrayMethodHasSpeciesSupport("slice"),ir=arrayMethodUsesToLength("slice",{ACCESSORS:!0,0:0,1:2}),ar=wellKnownSymbol("species"),cr=[].slice,ur=Math.max;_export({target:"Array",proto:!0,forced:!or||!ir},{slice:function slice(t,e){var r,n,o,i=toIndexedObject(this),a=toLength(i.length),c=toAbsoluteIndex(t,a),u=toAbsoluteIndex(void 0===e?a:e,a);if(St(i)&&("function"!=typeof(r=i.constructor)||r!==Array&&!St(r.prototype)?isObject(r)&&null===(r=r[ar])&&(r=void 0):r=void 0,r===Array||void 0===r))return cr.call(i,c,u);for(n=new(void 0===r?Array:r)(ur(u-c,0)),o=0;c<u;c++,o++)c in i&&createProperty(n,o,i[c]);return n.length=o,n}});var sr=Date.prototype,fr=sr.toString,lr=sr.getTime;new Date(NaN)+""!="Invalid Date"&&U(sr,"toString",(function toString(){var t=lr.call(this);return t==t?fr.call(this):"Invalid Date"})),setToStringTag(e.JSON,"JSON",!0),setToStringTag(Math,"Math",!0),_export({target:"Object",stat:!0,sham:!r},{create:yt}),_export({target:"Object",stat:!0,forced:!r,sham:!r},{defineProperty:y.f});var pr=fails((function(){qe(1)}));_export({target:"Object",stat:!0,forced:pr,sham:!We},{getPrototypeOf:function getPrototypeOf(t){return qe(toObject(t))}}),_export({target:"Object",stat:!0},{setPrototypeOf:He});var hr={};hr[wellKnownSymbol("toStringTag")]="z";var dr="[object z]"===String(hr),vr=wellKnownSymbol("toStringTag"),yr="Arguments"==classofRaw(function(){return arguments}()),gr=dr?classofRaw:function(t){var e,r,n;return void 0===t?"Undefined":null===t?"Null":"string"==typeof(r=function(t,e){try{return t[e]}catch(t){}}(e=Object(t),vr))?r:yr?classofRaw(e):"Object"==(n=classofRaw(e))&&"function"==typeof e.callee?"Arguments":n},mr=dr?{}.toString:function toString(){return"[object "+gr(this)+"]"};dr||U(Object.prototype,"toString",mr,{unsafe:!0});var br=e.Promise,wr=wellKnownSymbol("species"),Sr=wellKnownSymbol("iterator"),xr=Array.prototype,Er=wellKnownSymbol("iterator"),callWithSafeIterationClosing=function(t,e,r,n){try{return n?e(anObject(r)[0],r[1]):e(r)}catch(e){var o=t.return;throw void 0!==o&&anObject(o.call(t)),e}},Or=createCommonjsModule((function(t){var Result=function(t,e){this.stopped=t,this.result=e};(t.exports=function(t,e,r,n,o){var i,a,c,u,s,f,l,p,h=functionBindContext(e,r,n?2:1);if(o)i=t;else{if("function"!=typeof(a=function(t){if(null!=t)return t[Er]||t["@@iterator"]||Ue[gr(t)]}(t)))throw TypeError("Target is not iterable");if(void 0!==(p=a)&&(Ue.Array===p||xr[Sr]===p)){for(c=0,u=toLength(t.length);u>c;c++)if((s=n?h(anObject(l=t[c])[0],l[1]):h(t[c]))&&s instanceof Result)return s;return new Result(!1)}i=a.call(t)}for(f=i.next;!(l=f.call(i)).done;)if("object"==typeof(s=callWithSafeIterationClosing(i,h,l.value,n))&&s&&s instanceof Result)return s;return new Result(!1)}).stop=function(t){return new Result(!0,t)}})),jr=wellKnownSymbol("iterator"),Pr=!1;try{var Ar=0,_r={next:function(){return{done:!!Ar++}},return:function(){Pr=!0}};_r[jr]=function(){return this},Array.from(_r,(function(){throw 2}))}catch(t){}var Ir,Tr,kr,Mr=wellKnownSymbol("species"),speciesConstructor=function(t,e){var r,n=anObject(t).constructor;return void 0===n||null==(r=anObject(n)[Mr])?e:aFunction$1(r)},Lr=/(iphone|ipod|ipad).*applewebkit/i.test(jt),Rr=e.location,Cr=e.setImmediate,Gr=e.clearImmediate,Fr=e.process,Nr=e.MessageChannel,Dr=e.Dispatch,Ur=0,Wr={},run=function(t){if(Wr.hasOwnProperty(t)){var e=Wr[t];delete Wr[t],e()}},runner=function(t){return function(){run(t)}},listener=function(t){run(t.data)},post=function(t){e.postMessage(t+"",Rr.protocol+"//"+Rr.host)};Cr&&Gr||(Cr=function setImmediate(t){for(var e=[],r=1;arguments.length>r;)e.push(arguments[r++]);return Wr[++Ur]=function(){("function"==typeof t?t:Function(t)).apply(void 0,e)},Ir(Ur),Ur},Gr=function clearImmediate(t){delete Wr[t]},"process"==classofRaw(Fr)?Ir=function(t){Fr.nextTick(runner(t))}:Dr&&Dr.now?Ir=function(t){Dr.now(runner(t))}:Nr&&!Lr?(kr=(Tr=new Nr).port2,Tr.port1.onmessage=listener,Ir=functionBindContext(kr.postMessage,kr,1)):!e.addEventListener||"function"!=typeof postMessage||e.importScripts||fails(post)||"file:"===Rr.protocol?Ir="onreadystatechange"in documentCreateElement("script")?function(t){dt.appendChild(documentCreateElement("script")).onreadystatechange=function(){dt.removeChild(this),run(t)}}:function(t){setTimeout(runner(t),0)}:(Ir=post,e.addEventListener("message",listener,!1)));var $r,Br,qr,Vr,zr,Yr,Kr,Hr,Jr={set:Cr,clear:Gr},Qr=d.f,Xr=Jr.set,Zr=e.MutationObserver||e.WebKitMutationObserver,tn=e.process,en=e.Promise,rn="process"==classofRaw(tn),nn=Qr(e,"queueMicrotask"),on=nn&&nn.value;on||($r=function(){var t,e;for(rn&&(t=tn.domain)&&t.exit();Br;){e=Br.fn,Br=Br.next;try{e()}catch(t){throw Br?Vr():qr=void 0,t}}qr=void 0,t&&t.enter()},rn?Vr=function(){tn.nextTick($r)}:Zr&&!Lr?(zr=!0,Yr=document.createTextNode(""),new Zr($r).observe(Yr,{characterData:!0}),Vr=function(){Yr.data=zr=!zr}):en&&en.resolve?(Kr=en.resolve(void 0),Hr=Kr.then,Vr=function(){Hr.call(Kr,$r)}):Vr=function(){Xr.call(e,$r)});var an,cn,un,sn,fn=on||function(t){var e={fn:t,next:void 0};qr&&(qr.next=e),Br||(Br=e,Vr()),qr=e},PromiseCapability=function(t){var e,r;this.promise=new t((function(t,n){if(void 0!==e||void 0!==r)throw TypeError("Bad Promise constructor");e=t,r=n})),this.resolve=aFunction$1(e),this.reject=aFunction$1(r)},ln={f:function(t){return new PromiseCapability(t)}},promiseResolve=function(t,e){if(anObject(t),isObject(e)&&e.constructor===t)return e;var r=ln.f(t);return(0,r.resolve)(e),r.promise},perform=function(t){try{return{error:!1,value:t()}}catch(t){return{error:!0,value:t}}},pn=Jr.set,hn=wellKnownSymbol("species"),dn="Promise",vn=D.get,yn=D.set,gn=D.getterFor(dn),mn=br,bn=e.TypeError,wn=e.document,Sn=e.process,xn=getBuiltIn("fetch"),En=ln.f,On=En,jn="process"==classofRaw(Sn),Pn=!!(wn&&wn.createEvent&&e.dispatchEvent),An=it(dn,(function(){if(!(E(mn)!==String(mn))){if(66===It)return!0;if(!jn&&"function"!=typeof PromiseRejectionEvent)return!0}if(It>=51&&/native code/.test(mn))return!1;var t=mn.resolve(1),FakePromise=function(t){t((function(){}),(function(){}))};return(t.constructor={})[hn]=FakePromise,!(t.then((function(){}))instanceof FakePromise)})),_n=An||!function(t,e){if(!e&&!Pr)return!1;var r=!1;try{var n={};n[jr]=function(){return{next:function(){return{done:r=!0}}}},t(n)}catch(t){}return r}((function(t){mn.all(t).catch((function(){}))})),isThenable=function(t){var e;return!(!isObject(t)||"function"!=typeof(e=t.then))&&e},notify$1=function(t,e,r){if(!e.notified){e.notified=!0;var n=e.reactions;fn((function(){for(var o=e.value,i=1==e.state,a=0;n.length>a;){var c,u,s,f=n[a++],l=i?f.ok:f.fail,p=f.resolve,h=f.reject,d=f.domain;try{l?(i||(2===e.rejection&&onHandleUnhandled(t,e),e.rejection=1),!0===l?c=o:(d&&d.enter(),c=l(o),d&&(d.exit(),s=!0)),c===f.promise?h(bn("Promise-chain cycle")):(u=isThenable(c))?u.call(c,p,h):p(c)):h(o)}catch(t){d&&!s&&d.exit(),h(t)}}e.reactions=[],e.notified=!1,r&&!e.rejection&&onUnhandled(t,e)}))}},dispatchEvent=function(t,r,n){var o,i;Pn?((o=wn.createEvent("Event")).promise=r,o.reason=n,o.initEvent(t,!1,!0),e.dispatchEvent(o)):o={promise:r,reason:n},(i=e["on"+t])?i(o):"unhandledrejection"===t&&function(t,r){var n=e.console;n&&n.error&&(1===arguments.length?n.error(t):n.error(t,r))}("Unhandled promise rejection",n)},onUnhandled=function(t,r){pn.call(e,(function(){var e,n=r.value;if(isUnhandled(r)&&(e=perform((function(){jn?Sn.emit("unhandledRejection",n,t):dispatchEvent("unhandledrejection",t,n)})),r.rejection=jn||isUnhandled(r)?2:1,e.error))throw e.value}))},isUnhandled=function(t){return 1!==t.rejection&&!t.parent},onHandleUnhandled=function(t,r){pn.call(e,(function(){jn?Sn.emit("rejectionHandled",t):dispatchEvent("rejectionhandled",t,r.value)}))},bind=function(t,e,r,n){return function(o){t(e,r,o,n)}},internalReject=function(t,e,r,n){e.done||(e.done=!0,n&&(e=n),e.value=r,e.state=2,notify$1(t,e,!0))},internalResolve=function(t,e,r,n){if(!e.done){e.done=!0,n&&(e=n);try{if(t===r)throw bn("Promise can't be resolved itself");var o=isThenable(r);o?fn((function(){var n={done:!1};try{o.call(r,bind(internalResolve,t,n,e),bind(internalReject,t,n,e))}catch(r){internalReject(t,n,r,e)}})):(e.value=r,e.state=1,notify$1(t,e,!1))}catch(r){internalReject(t,{done:!1},r,e)}}};An&&(mn=function Promise(t){!function(t,e,r){if(!(t instanceof e))throw TypeError("Incorrect "+(r?r+" ":"")+"invocation")}(this,mn,dn),aFunction$1(t),an.call(this);var e=vn(this);try{t(bind(internalResolve,this,e),bind(internalReject,this,e))}catch(t){internalReject(this,e,t)}},(an=function Promise(t){yn(this,{type:dn,done:!1,notified:!1,parent:!1,reactions:[],rejection:!1,state:0,value:void 0})}).prototype=function(t,e,r){for(var n in e)U(t,n,e[n],r);return t}(mn.prototype,{then:function then(t,e){var r=gn(this),n=En(speciesConstructor(this,mn));return n.ok="function"!=typeof t||t,n.fail="function"==typeof e&&e,n.domain=jn?Sn.domain:void 0,r.parent=!0,r.reactions.push(n),0!=r.state&¬ify$1(this,r,!1),n.promise},catch:function(t){return this.then(void 0,t)}}),cn=function(){var t=new an,e=vn(t);this.promise=t,this.resolve=bind(internalResolve,t,e),this.reject=bind(internalReject,t,e)},ln.f=En=function(t){return t===mn||t===un?new cn(t):On(t)},"function"==typeof br&&(sn=br.prototype.then,U(br.prototype,"then",(function then(t,e){var r=this;return new mn((function(t,e){sn.call(r,t,e)})).then(t,e)}),{unsafe:!0}),"function"==typeof xn&&_export({global:!0,enumerable:!0,forced:!0},{fetch:function fetch(t){return promiseResolve(mn,xn.apply(e,arguments))}}))),_export({global:!0,wrap:!0,forced:An},{Promise:mn}),setToStringTag(mn,dn,!1),function(t){var e=getBuiltIn(t),n=y.f;r&&e&&!e[wr]&&n(e,wr,{configurable:!0,get:function(){return this}})}(dn),un=getBuiltIn(dn),_export({target:dn,stat:!0,forced:An},{reject:function reject(t){var e=En(this);return e.reject.call(void 0,t),e.promise}}),_export({target:dn,stat:!0,forced:An},{resolve:function resolve(t){return promiseResolve(this,t)}}),_export({target:dn,stat:!0,forced:_n},{all:function all(t){var e=this,r=En(e),n=r.resolve,o=r.reject,i=perform((function(){var r=aFunction$1(e.resolve),i=[],a=0,c=1;Or(t,(function(t){var u=a++,s=!1;i.push(void 0),c++,r.call(e,t).then((function(t){s||(s=!0,i[u]=t,--c||n(i))}),o)})),--c||n(i)}));return i.error&&o(i.value),r.promise},race:function race(t){var e=this,r=En(e),n=r.reject,o=perform((function(){var o=aFunction$1(e.resolve);Or(t,(function(t){o.call(e,t).then(r.resolve,n)}))}));return o.error&&n(o.value),r.promise}});var regexpFlags=function(){var t=anObject(this),e="";return t.global&&(e+="g"),t.ignoreCase&&(e+="i"),t.multiline&&(e+="m"),t.dotAll&&(e+="s"),t.unicode&&(e+="u"),t.sticky&&(e+="y"),e},In=RegExp.prototype,Tn=In.toString,kn=fails((function(){return"/a/b"!=Tn.call({source:"a",flags:"b"})})),Mn="toString"!=Tn.name;(kn||Mn)&&U(RegExp.prototype,"toString",(function toString(){var t=anObject(this),e=String(t.source),r=t.flags;return"/"+e+"/"+String(void 0===r&&t instanceof RegExp&&!("flags"in In)?regexpFlags.call(t):r)}),{unsafe:!0});var createMethod$2=function(t){return function(e,r){var n,o,i=String(requireObjectCoercible(e)),a=toInteger(r),c=i.length;return a<0||a>=c?t?"":void 0:(n=i.charCodeAt(a))<55296||n>56319||a+1===c||(o=i.charCodeAt(a+1))<56320||o>57343?t?i.charAt(a):n:t?i.slice(a,a+2):o-56320+(n-55296<<10)+65536}},Ln={codeAt:createMethod$2(!1),charAt:createMethod$2(!0)},Rn=Ln.charAt,Cn=D.set,Gn=D.getterFor("String Iterator");defineIterator(String,"String",(function(t){Cn(this,{type:"String Iterator",string:String(t),index:0})}),(function next(){var t,e=Gn(this),r=e.string,n=e.index;return n>=r.length?{value:void 0,done:!0}:(t=Rn(r,n),e.index+=t.length,{value:t,done:!1})}));var Fn={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0};for(var Nn in Fn){var Dn=e[Nn],Un=Dn&&Dn.prototype;if(Un&&Un.forEach!==Ge)try{g(Un,"forEach",Ge)}catch(t){Un.forEach=Ge}}var Wn=wellKnownSymbol("iterator"),$n=wellKnownSymbol("toStringTag"),Bn=er.values;for(var qn in Fn){var Vn=e[qn],zn=Vn&&Vn.prototype;if(zn){if(zn[Wn]!==Bn)try{g(zn,Wn,Bn)}catch(t){zn[Wn]=Bn}if(zn[$n]||g(zn,$n,qn),Fn[qn])for(var Yn in er)if(zn[Yn]!==er[Yn])try{g(zn,Yn,er[Yn])}catch(t){zn[Yn]=er[Yn]}}}function _typeof(t){return(_typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function asyncGeneratorStep(t,e,r,n,o,i,a){try{var c=t[i](a),u=c.value}catch(t){return void r(t)}c.done?e(u):Promise.resolve(u).then(n,o)}function _asyncToGenerator(t){return function(){var e=this,r=arguments;return new Promise((function(n,o){var i=t.apply(e,r);function _next(t){asyncGeneratorStep(i,n,o,_next,_throw,"next",t)}function _throw(t){asyncGeneratorStep(i,n,o,_next,_throw,"throw",t)}_next(void 0)}))}}createCommonjsModule((function(t){var e=function(t){var e,r=Object.prototype,n=r.hasOwnProperty,o="function"==typeof Symbol?Symbol:{},i=o.iterator||"@@iterator",a=o.asyncIterator||"@@asyncIterator",c=o.toStringTag||"@@toStringTag";function define(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{define({},"")}catch(t){define=function define(t,e,r){return t[e]=r}}function wrap(t,e,r,n){var o=e&&e.prototype instanceof Generator?e:Generator,i=Object.create(o.prototype),a=new Context(n||[]);return i._invoke=function makeInvokeMethod(t,e,r){var n=u;return function invoke(o,i){if(n===f)throw new Error("Generator is already running");if(n===l){if("throw"===o)throw i;return doneResult()}for(r.method=o,r.arg=i;;){var a=r.delegate;if(a){var c=maybeInvokeDelegate(a,r);if(c){if(c===p)continue;return c}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if(n===u)throw n=l,r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n=f;var h=tryCatch(t,e,r);if("normal"===h.type){if(n=r.done?l:s,h.arg===p)continue;return{value:h.arg,done:r.done}}"throw"===h.type&&(n=l,r.method="throw",r.arg=h.arg)}}}(t,r,a),i}function tryCatch(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}t.wrap=wrap;var u="suspendedStart",s="suspendedYield",f="executing",l="completed",p={};function Generator(){}function GeneratorFunction(){}function GeneratorFunctionPrototype(){}var h={};h[i]=function(){return this};var d=Object.getPrototypeOf,v=d&&d(d(values([])));v&&v!==r&&n.call(v,i)&&(h=v);var y=GeneratorFunctionPrototype.prototype=Generator.prototype=Object.create(h);function defineIteratorMethods(t){["next","throw","return"].forEach((function(e){define(t,e,(function(t){return this._invoke(e,t)}))}))}function AsyncIterator(t,e){var r;this._invoke=function enqueue(o,i){function callInvokeWithMethodAndArg(){return new e((function(r,a){!function invoke(r,o,i,a){var c=tryCatch(t[r],t,o);if("throw"!==c.type){var u=c.arg,s=u.value;return s&&"object"===_typeof(s)&&n.call(s,"__await")?e.resolve(s.__await).then((function(t){invoke("next",t,i,a)}),(function(t){invoke("throw",t,i,a)})):e.resolve(s).then((function(t){u.value=t,i(u)}),(function(t){return invoke("throw",t,i,a)}))}a(c.arg)}(o,i,r,a)}))}return r=r?r.then(callInvokeWithMethodAndArg,callInvokeWithMethodAndArg):callInvokeWithMethodAndArg()}}function maybeInvokeDelegate(t,r){var n=t.iterator[r.method];if(n===e){if(r.delegate=null,"throw"===r.method){if(t.iterator.return&&(r.method="return",r.arg=e,maybeInvokeDelegate(t,r),"throw"===r.method))return p;r.method="throw",r.arg=new TypeError("The iterator does not provide a 'throw' method")}return p}var o=tryCatch(n,t.iterator,r.arg);if("throw"===o.type)return r.method="throw",r.arg=o.arg,r.delegate=null,p;var i=o.arg;return i?i.done?(r[t.resultName]=i.value,r.next=t.nextLoc,"return"!==r.method&&(r.method="next",r.arg=e),r.delegate=null,p):i:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,p)}function pushTryEntry(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function resetTryEntry(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function Context(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(pushTryEntry,this),this.reset(!0)}function values(t){if(t){var r=t[i];if(r)return r.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var o=-1,a=function next(){for(;++o<t.length;)if(n.call(t,o))return next.value=t[o],next.done=!1,next;return next.value=e,next.done=!0,next};return a.next=a}}return{next:doneResult}}function doneResult(){return{value:e,done:!0}}return GeneratorFunction.prototype=y.constructor=GeneratorFunctionPrototype,GeneratorFunctionPrototype.constructor=GeneratorFunction,GeneratorFunction.displayName=define(GeneratorFunctionPrototype,c,"GeneratorFunction"),t.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===GeneratorFunction||"GeneratorFunction"===(e.displayName||e.name))},t.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,GeneratorFunctionPrototype):(t.__proto__=GeneratorFunctionPrototype,define(t,c,"GeneratorFunction")),t.prototype=Object.create(y),t},t.awrap=function(t){return{__await:t}},defineIteratorMethods(AsyncIterator.prototype),AsyncIterator.prototype[a]=function(){return this},t.AsyncIterator=AsyncIterator,t.async=function(e,r,n,o,i){void 0===i&&(i=Promise);var a=new AsyncIterator(wrap(e,r,n,o),i);return t.isGeneratorFunction(r)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},defineIteratorMethods(y),define(y,c,"Generator"),y[i]=function(){return this},y.toString=function(){return"[object Generator]"},t.keys=function(t){var e=[];for(var r in t)e.push(r);return e.reverse(),function next(){for(;e.length;){var r=e.pop();if(r in t)return next.value=r,next.done=!1,next}return next.done=!0,next}},t.values=values,Context.prototype={constructor:Context,reset:function reset(t){if(this.prev=0,this.next=0,this.sent=this._sent=e,this.done=!1,this.delegate=null,this.method="next",this.arg=e,this.tryEntries.forEach(resetTryEntry),!t)for(var r in this)"t"===r.charAt(0)&&n.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=e)},stop:function stop(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function dispatchException(t){if(this.done)throw t;var r=this;function handle(n,o){return a.type="throw",a.arg=t,r.next=n,o&&(r.method="next",r.arg=e),!!o}for(var o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],a=i.completion;if("root"===i.tryLoc)return handle("end");if(i.tryLoc<=this.prev){var c=n.call(i,"catchLoc"),u=n.call(i,"finallyLoc");if(c&&u){if(this.prev<i.catchLoc)return handle(i.catchLoc,!0);if(this.prev<i.finallyLoc)return handle(i.finallyLoc)}else if(c){if(this.prev<i.catchLoc)return handle(i.catchLoc,!0)}else{if(!u)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return handle(i.finallyLoc)}}}},abrupt:function abrupt(t,e){for(var r=this.tryEntries.length-1;r>=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===t||"continue"===t)&&i.tryLoc<=e&&e<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=t,a.arg=e,i?(this.method="next",this.next=i.finallyLoc,p):this.complete(a)},complete:function complete(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),p},finish:function finish(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),resetTryEntry(r),p}},catch:function _catch(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var o=n.arg;resetTryEntry(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function delegateYield(t,r,n){return this.delegate={iterator:values(t),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=e),p}},t}(t.exports);try{regeneratorRuntime=e}catch(t){Function("r","regeneratorRuntime = r")(e)}}));var Kn=wellKnownSymbol("isConcatSpreadable"),Hn=It>=51||!fails((function(){var t=[];return t[Kn]=!1,t.concat()[0]!==t})),Jn=arrayMethodHasSpeciesSupport("concat"),isConcatSpreadable=function(t){if(!isObject(t))return!1;var e=t[Kn];return void 0!==e?!!e:St(t)};_export({target:"Array",proto:!0,forced:!Hn||!Jn},{concat:function concat(t){var e,r,n,o,i,a=toObject(this),c=arraySpeciesCreate(a,0),u=0;for(e=-1,n=arguments.length;e<n;e++)if(isConcatSpreadable(i=-1===e?a:arguments[e])){if(u+(o=toLength(i.length))>9007199254740991)throw TypeError("Maximum allowed index exceeded");for(r=0;r<o;r++,u++)r in i&&createProperty(c,u,i[r])}else{if(u>=9007199254740991)throw TypeError("Maximum allowed index exceeded");createProperty(c,u++,i)}return c.length=u,c}});var Qn=Ot.find,Xn=!0,Zn=arrayMethodUsesToLength("find");"find"in[]&&Array(1).find((function(){Xn=!1})),_export({target:"Array",proto:!0,forced:Xn||!Zn},{find:function find(t){return Qn(this,t,arguments.length>1?arguments[1]:void 0)}}),addToUnscopables("find");var to=Y.includes,eo=arrayMethodUsesToLength("indexOf",{ACCESSORS:!0,1:0});_export({target:"Array",proto:!0,forced:!eo},{includes:function includes(t){return to(this,t,arguments.length>1?arguments[1]:void 0)}}),addToUnscopables("includes");var ro=[].join,no=u!=Object,oo=arrayMethodIsStrict("join",",");_export({target:"Array",proto:!0,forced:no||!oo},{join:function join(t){return ro.call(toIndexedObject(this),void 0===t?",":t)}});var io=Ot.some,ao=arrayMethodIsStrict("some"),co=arrayMethodUsesToLength("some");_export({target:"Array",proto:!0,forced:!ao||!co},{some:function some(t){return io(this,t,arguments.length>1?arguments[1]:void 0)}});var uo=i.f,createMethod$3=function(t){return function(e){for(var n,o=toIndexedObject(e),i=pt(o),a=i.length,c=0,u=[];a>c;)n=i[c++],r&&!uo.call(o,n)||u.push(t?[n,o[n]]:o[n]);return u}},so={entries:createMethod$3(!0),values:createMethod$3(!1)}.entries;function RE(t,e){return RegExp(t,e)}_export({target:"Object",stat:!0},{entries:function entries(t){return so(t)}});var fo,lo,po={UNSUPPORTED_Y:fails((function(){var t=RE("a","y");return t.lastIndex=2,null!=t.exec("abcd")})),BROKEN_CARET:fails((function(){var t=RE("^r","gy");return t.lastIndex=2,null!=t.exec("str")}))},ho=RegExp.prototype.exec,vo=String.prototype.replace,yo=ho,go=(fo=/a/,lo=/b*/g,ho.call(fo,"a"),ho.call(lo,"a"),0!==fo.lastIndex||0!==lo.lastIndex),mo=po.UNSUPPORTED_Y||po.BROKEN_CARET,bo=void 0!==/()??/.exec("")[1];(go||bo||mo)&&(yo=function exec(t){var e,r,n,o,i=this,a=mo&&i.sticky,c=regexpFlags.call(i),u=i.source,s=0,f=t;return a&&(-1===(c=c.replace("y","")).indexOf("g")&&(c+="g"),f=String(t).slice(i.lastIndex),i.lastIndex>0&&(!i.multiline||i.multiline&&"\n"!==t[i.lastIndex-1])&&(u="(?: "+u+")",f=" "+f,s++),r=new RegExp("^(?:"+u+")",c)),bo&&(r=new RegExp("^"+u+"$(?!\\s)",c)),go&&(e=i.lastIndex),n=ho.call(a?r:i,f),a?n?(n.input=n.input.slice(s),n[0]=n[0].slice(s),n.index=i.lastIndex,i.lastIndex+=n[0].length):i.lastIndex=0:go&&n&&(i.lastIndex=i.global?n.index+n[0].length:e),bo&&n&&n.length>1&&vo.call(n[0],r,(function(){for(o=1;o<arguments.length-2;o++)void 0===arguments[o]&&(n[o]=void 0)})),n});var wo=yo;_export({target:"RegExp",proto:!0,forced:/./.exec!==wo},{exec:wo});var So=wellKnownSymbol("match"),isRegexp=function(t){var e;return isObject(t)&&(void 0!==(e=t[So])?!!e:"RegExp"==classofRaw(t))},notARegexp=function(t){if(isRegexp(t))throw TypeError("The method doesn't accept regular expressions");return t},xo=wellKnownSymbol("match");_export({target:"String",proto:!0,forced:!function(t){var e=/./;try{"/./"[t](e)}catch(r){try{return e[xo]=!1,"/./"[t](e)}catch(t){}}return!1}("includes")},{includes:function includes(t){return!!~String(requireObjectCoercible(this)).indexOf(notARegexp(t),arguments.length>1?arguments[1]:void 0)}});var Eo=wellKnownSymbol("species"),Oo=!fails((function(){var t=/./;return t.exec=function(){var t=[];return t.groups={a:"7"},t},"7"!=="".replace(t,"$<a>")})),jo="$0"==="a".replace(/./,"$0"),Po=wellKnownSymbol("replace"),Ao=!!/./[Po]&&""===/./[Po]("a","$0"),_o=!fails((function(){var t=/(?:)/,e=t.exec;t.exec=function(){return e.apply(this,arguments)};var r="ab".split(t);return 2!==r.length||"a"!==r[0]||"b"!==r[1]})),Io=Ln.charAt,advanceStringIndex=function(t,e,r){return e+(r?Io(t,e).length:1)},regexpExecAbstract=function(t,e){var r=t.exec;if("function"==typeof r){var n=r.call(t,e);if("object"!=typeof n)throw TypeError("RegExp exec method returned something other than an Object or null");return n}if("RegExp"!==classofRaw(t))throw TypeError("RegExp#exec called on incompatible receiver");return wo.call(t,e)},To=[].push,ko=Math.min,Mo=!fails((function(){return!RegExp(4294967295,"y")}));!function(t,e,r,n){var o=wellKnownSymbol(t),i=!fails((function(){var e={};return e[o]=function(){return 7},7!=""[t](e)})),a=i&&!fails((function(){var e=!1,r=/a/;return"split"===t&&((r={}).constructor={},r.constructor[Eo]=function(){return r},r.flags="",r[o]=/./[o]),r.exec=function(){return e=!0,null},r[o](""),!e}));if(!i||!a||"replace"===t&&(!Oo||!jo||Ao)||"split"===t&&!_o){var c=/./[o],u=r(o,""[t],(function(t,e,r,n,o){return e.exec===wo?i&&!o?{done:!0,value:c.call(e,r,n)}:{done:!0,value:t.call(r,e,n)}:{done:!1}}),{REPLACE_KEEPS_$0:jo,REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE:Ao}),s=u[0],f=u[1];U(String.prototype,t,s),U(RegExp.prototype,o,2==e?function(t,e){return f.call(t,this,e)}:function(t){return f.call(t,this)})}n&&g(RegExp.prototype[o],"sham",!0)}("split",2,(function(t,e,r){var n;return n="c"=="abbc".split(/(b)*/)[1]||4!="test".split(/(?:)/,-1).length||2!="ab".split(/(?:ab)*/).length||4!=".".split(/(.?)(.?)/).length||".".split(/()()/).length>1||"".split(/.?/).length?function(t,r){var n=String(requireObjectCoercible(this)),o=void 0===r?4294967295:r>>>0;if(0===o)return[];if(void 0===t)return[n];if(!isRegexp(t))return e.call(n,t,o);for(var i,a,c,u=[],s=(t.ignoreCase?"i":"")+(t.multiline?"m":"")+(t.unicode?"u":"")+(t.sticky?"y":""),f=0,l=new RegExp(t.source,s+"g");(i=wo.call(l,n))&&!((a=l.lastIndex)>f&&(u.push(n.slice(f,i.index)),i.length>1&&i.index<n.length&&To.apply(u,i.slice(1)),c=i[0].length,f=a,u.length>=o));)l.lastIndex===i.index&&l.lastIndex++;return f===n.length?!c&&l.test("")||u.push(""):u.push(n.slice(f)),u.length>o?u.slice(0,o):u}:"0".split(void 0,0).length?function(t,r){return void 0===t&&0===r?[]:e.call(this,t,r)}:e,[function split(e,r){var o=requireObjectCoercible(this),i=null==e?void 0:e[t];return void 0!==i?i.call(e,o,r):n.call(String(o),e,r)},function(t,o){var i=r(n,t,this,o,n!==e);if(i.done)return i.value;var a=anObject(t),c=String(this),u=speciesConstructor(a,RegExp),s=a.unicode,f=(a.ignoreCase?"i":"")+(a.multiline?"m":"")+(a.unicode?"u":"")+(Mo?"y":"g"),l=new u(Mo?a:"^(?:"+a.source+")",f),p=void 0===o?4294967295:o>>>0;if(0===p)return[];if(0===c.length)return null===regexpExecAbstract(l,c)?[c]:[];for(var h=0,d=0,v=[];d<c.length;){l.lastIndex=Mo?d:0;var y,g=regexpExecAbstract(l,Mo?c:c.slice(d));if(null===g||(y=ko(toLength(l.lastIndex+(Mo?0:d)),c.length))===h)d=advanceStringIndex(c,d,s);else{if(v.push(c.slice(h,d)),v.length===p)return v;for(var m=1;m<=g.length-1;m++)if(v.push(g[m]),v.length===p)return v;d=h=y}}return v.push(c.slice(h)),v}]}),!Mo);var Lo="\t\n\v\f\r \u2028\u2029\ufeff",Ro="["+Lo+"]",Co=RegExp("^"+Ro+Ro+"*"),Go=RegExp(Ro+Ro+"*$"),createMethod$4=function(t){return function(e){var r=String(requireObjectCoercible(e));return 1&t&&(r=r.replace(Co,"")),2&t&&(r=r.replace(Go,"")),r}},Fo={start:createMethod$4(1),end:createMethod$4(2),trim:createMethod$4(3)},No=Fo.trim;_export({target:"String",proto:!0,forced:function(t){return fails((function(){return!!Lo[t]()||"
"!="
"[t]()||Lo[t].name!==t}))}("trim")},{trim:function trim(){return No(this)}});var Do=/"/g;_export({target:"String",proto:!0,forced:function(t){return fails((function(){var e=""[t]('"');return e!==e.toLowerCase()||e.split('"').length>3}))}("bold")},{bold:function bold(){return t="b",e="",r="",n=String(requireObjectCoercible(this)),o="<"+t,""!==e&&(o+=" "+e+'="'+String(r).replace(Do,""")+'"'),o+">"+n+"</"+t+">";var t,e,r,n,o}});
|
||
/**
|
||
* Localizing script for SVG-edit UI.
|
||
* @module locale
|
||
* @license MIT
|
||
*
|
||
* @copyright 2010 Narendra Sisodya
|
||
* @copyright 2010 Alexis Deveria
|
||
*
|
||
*/
|
||
jQuery;var Uo=function(){var t=_asyncToGenerator(regeneratorRuntime.mark((function _callee2(t,e){var r;return regeneratorRuntime.wrap((function _callee2$(n){for(;;)switch(n.prev=n.next){case 0:return n.prev=0,n.next=3,import("./extensions/ext-".concat(t,"/locale/").concat(e,".js"));case 3:r=n.sent,n.next=12;break;case 6:return n.prev=6,n.t0=n.catch(0),console.error("Missing translation (".concat(e,") for extension ").concat(t," - using 'en'")),n.next=11,import("./extensions/ext-".concat(t,"/locale/en.js"));case 11:r=n.sent;case 12:return n.abrupt("return",r.default);case 13:case"end":return n.stop()}}),_callee2,null,[[0,6]])})));return function loadExtensionTranslation(e,r){return t.apply(this,arguments)}}(),Wo={name:"star",init:function init(t){var e=this;return _asyncToGenerator(regeneratorRuntime.mark((function _callee(){var r,n,o,i,a,c,u,s,f,l,p;return regeneratorRuntime.wrap((function _callee$(h){for(;;)switch(h.prev=h.next){case 0:return f=function _setAttr(t,e){n.changeSelectedAttribute(t,e),n.call("changed",i)},s=function _showPanel(t){var e=o("#fc_rules");e.length||(e=o('<style id="fc_rules"></style>').appendTo("head")),e.text(t?" #tool_topath { display: none !important; }":""),o("#star_panel").toggle(t)},n=(r=e).canvas,o=t.$,h.next=7,Uo("star",r.curPrefs.lang);case 7:return u=h.sent,l=[{id:"tool_star",icon:"star.png",type:"mode",position:12,events:{click:function click(){s(!0),n.setMode("star")}}}],p=[{type:"input",panel:"star_panel",id:"starNumPoints",size:3,defval:5,events:{change:function change(){f("point",this.value)}}},{type:"input",panel:"star_panel",id:"starRadiusMulitplier",size:3,defval:2.5},{type:"input",panel:"star_panel",id:"radialShift",size:3,defval:0,events:{change:function change(){f("radialshift",this.value)}}}],h.abrupt("return",{name:u.name,svgicons:"star-icons.svg",buttons:u.buttons.map((function(t,e){return Object.assign(l[e],t)})),context_tools:u.contextTools.map((function(t,e){return Object.assign(p[e],t)})),callback:function callback(){o("#star_panel").hide()},mouseDown:function mouseDown(t){var e=n.getColor("fill"),r=n.getColor("stroke"),o=n.getStrokeWidth();if("star"===n.getMode())return a=!0,c=n.addSVGElementFromJson({element:"polygon",attr:{cx:t.start_x,cy:t.start_y,id:n.getNextId(),shape:"star",point:document.getElementById("starNumPoints").value,r:0,radialshift:document.getElementById("radialShift").value,r2:0,orient:"point",fill:e,strokecolor:r,strokeWidth:o}}),{started:!0}},mouseMove:function mouseMove(t){if(a&&"star"===n.getMode()){var e=o(c).attr(["cx","cy","point","orient","fill","strokecolor","strokeWidth","radialshift"]),r=t.mouse_x,i=t.mouse_y,u=e.cx,s=e.cy,f=e.fill,l=e.strokecolor,p=e.strokeWidth,h=e.radialshift,d=e.point,v=e.orient,y=Math.sqrt((r-u)*(r-u)+(i-s)*(i-s))/1.5,g=y/document.getElementById("starRadiusMulitplier").value;c.setAttribute("r",y),c.setAttribute("r2",g);for(var m="",b=0;d>=b;b++){var w=2*Math.PI*(b/d);"point"===v?w-=Math.PI/2:"edge"===v&&(w=w+Math.PI/d-Math.PI/2),m+=(r=y*Math.cos(w)+u)+","+(i=y*Math.sin(w)+s)+" ",isNaN(g)||(w=2*Math.PI*(b/d)+Math.PI/d,"point"===v?w-=Math.PI/2:"edge"===v&&(w=w+Math.PI/d-Math.PI/2),w+=h,m+=(r=g*Math.cos(w)+u)+","+(i=g*Math.sin(w)+s)+" ")}return c.setAttribute("points",m),c.setAttribute("fill",f),c.setAttribute("stroke",l),c.setAttribute("stroke-width",p),c.getAttribute("shape"),{started:!0}}},mouseUp:function mouseUp(){if("star"===n.getMode())return{keep:"0"!==o(c).attr(["r"]).r,element:c}},selectedChanged:function selectedChanged(t){for(var e=(i=t.elems).length;e--;){var r=i[e];r&&"star"===r.getAttribute("shape")&&t.selectedElement&&!t.multiselected?(o("#starNumPoints").val(r.getAttribute("point")),o("#radialShift").val(r.getAttribute("radialshift")),s(!0)):s(!1)}},elementChanged:function elementChanged(t){}});case 11:case"end":return h.stop()}}),_callee)})))()}};export default Wo;
|
||
//# sourceMappingURL=ext-star.js.map
|