12 lines
90 KiB
JavaScript
12 lines
90 KiB
JavaScript
System.register([],(function(t,e){"use strict";return{execute:function(){var n="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function createCommonjsModule(t,e,n){return t(n={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&&n.path)}},n.exports),n.exports}var check=function(t){return t&&t.Math==Math&&t},r=check("object"==typeof globalThis&&globalThis)||check("object"==typeof window&&window)||check("object"==typeof self&&self)||check("object"==typeof n&&n)||Function("return this")(),fails=function(t){try{return!!t()}catch(t){return!0}},i=!fails((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]})),o={}.propertyIsEnumerable,a=Object.getOwnPropertyDescriptor,s={f:a&&!o.call({1:2},1)?function propertyIsEnumerable(t){var e=a(this,t);return!!e&&e.enumerable}:o},createPropertyDescriptor=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}},u={}.toString,classofRaw=function(t){return u.call(t).slice(8,-1)},c="".split,h=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 h(requireObjectCoercible(t))},isObject=function(t){return"object"==typeof t?null!==t:"function"==typeof t},toPrimitive=function(t,e){if(!isObject(t))return t;var n,r;if(e&&"function"==typeof(n=t.toString)&&!isObject(r=n.call(t)))return r;if("function"==typeof(n=t.valueOf)&&!isObject(r=n.call(t)))return r;if(!e&&"function"==typeof(n=t.toString)&&!isObject(r=n.call(t)))return r;throw TypeError("Can't convert object to primitive value")},l={}.hasOwnProperty,has=function(t,e){return l.call(t,e)},f=r.document,_=isObject(f)&&isObject(f.createElement),documentCreateElement=function(t){return _?f.createElement(t):{}},g=!i&&!fails((function(){return 7!=Object.defineProperty(documentCreateElement("div"),"a",{get:function(){return 7}}).a})),S=Object.getOwnPropertyDescriptor,p={f:i?S:function getOwnPropertyDescriptor(t,e){if(t=toIndexedObject(t),e=toPrimitive(e,!0),g)try{return S(t,e)}catch(t){}if(has(t,e))return createPropertyDescriptor(!s.f.call(t,e),t[e])}},anObject=function(t){if(!isObject(t))throw TypeError(String(t)+" is not an object");return t},y=Object.defineProperty,d={f:i?y:function defineProperty(t,e,n){if(anObject(t),e=toPrimitive(e,!0),anObject(n),g)try{return y(t,e,n)}catch(t){}if("get"in n||"set"in n)throw TypeError("Accessors not supported");return"value"in n&&(t[e]=n.value),t}},v=i?function(t,e,n){return d.f(t,e,createPropertyDescriptor(1,n))}:function(t,e,n){return t[e]=n,t},setGlobal=function(t,e){try{v(r,t,e)}catch(n){r[t]=e}return e},m="__core-js_shared__",P=r[m]||setGlobal(m,{}),b=Function.toString;"function"!=typeof P.inspectSource&&(P.inspectSource=function(t){return b.call(t)});var A,C,x,G=P.inspectSource,E=r.WeakMap,V="function"==typeof E&&/native code/.test(G(E)),T=createCommonjsModule((function(t){(t.exports=function(t,e){return P[t]||(P[t]=void 0!==e?e:{})})("versions",[]).push({version:"3.6.5",mode:"global",copyright:"© 2020 Denis Pushkarev (zloirock.ru)"})})),w=0,O=Math.random(),uid=function(t){return"Symbol("+String(void 0===t?"":t)+")_"+(++w+O).toString(36)},L=T("keys"),sharedKey=function(t){return L[t]||(L[t]=uid(t))},R={},I=r.WeakMap;if(V){var k=new I,j=k.get,N=k.has,H=k.set;A=function(t,e){return H.call(k,t,e),e},C=function(t){return j.call(k,t)||{}},x=function(t){return N.call(k,t)}}else{var M=sharedKey("state");R[M]=!0,A=function(t,e){return v(t,M,e),e},C=function(t){return has(t,M)?t[M]:{}},x=function(t){return has(t,M)}}var U,B,Q={set:A,get:C,has:x,enforce:function(t){return x(t)?C(t):A(t,{})},getterFor:function(t){return function(e){var n;if(!isObject(e)||(n=C(e)).type!==t)throw TypeError("Incompatible receiver, "+t+" required");return n}}},D=createCommonjsModule((function(t){var e=Q.get,n=Q.enforce,i=String(String).split("String");(t.exports=function(t,e,o,a){var s=!!a&&!!a.unsafe,u=!!a&&!!a.enumerable,c=!!a&&!!a.noTargetGet;"function"==typeof o&&("string"!=typeof e||has(o,"name")||v(o,"name",e),n(o).source=i.join("string"==typeof e?e:"")),t!==r?(s?!c&&t[e]&&(u=!0):delete t[e],u?t[e]=o:v(t,e,o)):u?t[e]=o:setGlobal(e,o)})(Function.prototype,"toString",(function toString(){return"function"==typeof this&&e(this).source||G(this)}))})),z=r,aFunction=function(t){return"function"==typeof t?t:void 0},getBuiltIn=function(t,e){return arguments.length<2?aFunction(z[t])||aFunction(r[t]):z[t]&&z[t][e]||r[t]&&r[t][e]},W=Math.ceil,K=Math.floor,toInteger=function(t){return isNaN(t=+t)?0:(t>0?K:W)(t)},$=Math.min,toLength=function(t){return t>0?$(toInteger(t),9007199254740991):0},q=Math.max,Z=Math.min,toAbsoluteIndex=function(t,e){var n=toInteger(t);return n<0?q(n+e,0):Z(n,e)},createMethod=function(t){return function(e,n,r){var i,o=toIndexedObject(e),a=toLength(o.length),s=toAbsoluteIndex(r,a);if(t&&n!=n){for(;a>s;)if((i=o[s++])!=i)return!0}else for(;a>s;s++)if((t||s in o)&&o[s]===n)return t||s||0;return!t&&-1}},Y={includes:createMethod(!0),indexOf:createMethod(!1)},J=Y.indexOf,objectKeysInternal=function(t,e){var n,r=toIndexedObject(t),i=0,o=[];for(n in r)!has(R,n)&&has(r,n)&&o.push(n);for(;e.length>i;)has(r,n=e[i++])&&(~J(o,n)||o.push(n));return o},X=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],tt=X.concat("length","prototype"),et={f:Object.getOwnPropertyNames||function getOwnPropertyNames(t){return objectKeysInternal(t,tt)}},nt={f:Object.getOwnPropertySymbols},rt=getBuiltIn("Reflect","ownKeys")||function ownKeys(t){var e=et.f(anObject(t)),n=nt.f;return n?e.concat(n(t)):e},copyConstructorProperties=function(t,e){for(var n=rt(e),r=d.f,i=p.f,o=0;o<n.length;o++){var a=n[o];has(t,a)||r(t,a,i(e,a))}},it=/#|\.prototype\./,isForced=function(t,e){var n=at[ot(t)];return n==ut||n!=st&&("function"==typeof e?fails(e):!!e)},ot=isForced.normalize=function(t){return String(t).replace(it,".").toLowerCase()},at=isForced.data={},st=isForced.NATIVE="N",ut=isForced.POLYFILL="P",ct=isForced,ht=p.f,_export=function(t,e){var n,i,o,a,s,u=t.target,c=t.global,h=t.stat;if(n=c?r:h?r[u]||setGlobal(u,{}):(r[u]||{}).prototype)for(i in e){if(a=e[i],o=t.noTargetGet?(s=ht(n,i))&&s.value:n[i],!ct(c?i:u+(h?".":"#")+i,t.forced)&&void 0!==o){if(typeof a==typeof o)continue;copyConstructorProperties(a,o)}(t.sham||o&&o.sham)&&v(a,"sham",!0),D(n,i,a,t)}},aFunction$1=function(t){if("function"!=typeof t)throw TypeError(String(t)+" is not a function");return t},functionBindContext=function(t,e,n){if(aFunction$1(t),void 0===e)return t;switch(n){case 0:return function(){return t.call(e)};case 1:return function(n){return t.call(e,n)};case 2:return function(n,r){return t.call(e,n,r)};case 3:return function(n,r,i){return t.call(e,n,r,i)}}return function(){return t.apply(e,arguments)}},toObject=function(t){return Object(requireObjectCoercible(t))},lt=Array.isArray||function isArray(t){return"Array"==classofRaw(t)},ft=!!Object.getOwnPropertySymbols&&!fails((function(){return!String(Symbol())})),_t=ft&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,gt=T("wks"),St=r.Symbol,pt=_t?St:St&&St.withoutSetter||uid,wellKnownSymbol=function(t){return has(gt,t)||(ft&&has(St,t)?gt[t]=St[t]:gt[t]=pt("Symbol."+t)),gt[t]},yt=wellKnownSymbol("species"),arraySpeciesCreate=function(t,e){var n;return lt(t)&&("function"!=typeof(n=t.constructor)||n!==Array&&!lt(n.prototype)?isObject(n)&&null===(n=n[yt])&&(n=void 0):n=void 0),new(void 0===n?Array:n)(0===e?0:e)},dt=[].push,createMethod$1=function(t){var e=1==t,n=2==t,r=3==t,i=4==t,o=6==t,a=5==t||o;return function(s,u,c,l){for(var f,_,g=toObject(s),S=h(g),p=functionBindContext(u,c,3),y=toLength(S.length),d=0,v=l||arraySpeciesCreate,m=e?v(s,y):n?v(s,0):void 0;y>d;d++)if((a||d in S)&&(_=p(f=S[d],d,g),t))if(e)m[d]=_;else if(_)switch(t){case 3:return!0;case 5:return f;case 6:return d;case 2:dt.call(m,f)}else if(i)return!1;return o?-1:r||i?i:m}},vt={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)},mt=getBuiltIn("navigator","userAgent")||"",Pt=r.process,bt=Pt&&Pt.versions,At=bt&&bt.v8;At?B=(U=At.split("."))[0]+U[1]:mt&&(!(U=mt.match(/Edge\/(\d+)/))||U[1]>=74)&&(U=mt.match(/Chrome\/(\d+)/))&&(B=U[1]);var Ct=B&&+B,xt=wellKnownSymbol("species"),arrayMethodHasSpeciesSupport=function(t){return Ct>=51||!fails((function(){var e=[];return(e.constructor={})[xt]=function(){return{foo:1}},1!==e[t](Boolean).foo}))},Gt=Object.defineProperty,Et={},thrower=function(t){throw t},arrayMethodUsesToLength=function(t,e){if(has(Et,t))return Et[t];e||(e={});var n=[][t],r=!!has(e,"ACCESSORS")&&e.ACCESSORS,o=has(e,0)?e[0]:thrower,a=has(e,1)?e[1]:void 0;return Et[t]=!!n&&!fails((function(){if(r&&!i)return!0;var t={length:-1};r?Gt(t,1,{enumerable:!0,get:thrower}):t[1]=1,n.call(t,o,a)}))},Vt=vt.map,Tt=arrayMethodHasSpeciesSupport("map"),wt=arrayMethodUsesToLength("map");_export({target:"Array",proto:!0,forced:!Tt||!wt},{map:function map(t){return Vt(this,t,arguments.length>1?arguments[1]:void 0)}});var Ot=d.f,Lt=Function.prototype,Rt=Lt.toString,It=/^\s*function ([^ (]*)/,kt="name";i&&!(kt in Lt)&&Ot(Lt,kt,{configurable:!0,get:function(){try{return Rt.call(this).match(It)[1]}catch(t){return""}}});var jt=Object.keys||function keys(t){return objectKeysInternal(t,X)},Nt=Object.assign,Ht=Object.defineProperty,Mt=!Nt||fails((function(){if(i&&1!==Nt({b:1},Nt(Ht({},"a",{enumerable:!0,get:function(){Ht(this,"b",{value:3,enumerable:!1})}}),{b:2})).b)return!0;var t={},e={},n=Symbol(),r="abcdefghijklmnopqrst";return t[n]=7,r.split("").forEach((function(t){e[t]=t})),7!=Nt({},t)[n]||jt(Nt({},e)).join("")!=r}))?function assign(t,e){for(var n=toObject(t),r=arguments.length,o=1,a=nt.f,u=s.f;r>o;)for(var c,l=h(arguments[o++]),f=a?jt(l).concat(a(l)):jt(l),_=f.length,g=0;_>g;)c=f[g++],i&&!u.call(l,c)||(n[c]=l[c]);return n}:Nt;_export({target:"Object",stat:!0,forced:Object.assign!==Mt},{assign:Mt});var Ft,Ut=i?Object.defineProperties:function defineProperties(t,e){anObject(t);for(var n,r=jt(e),i=r.length,o=0;i>o;)d.f(t,n=r[o++],e[n]);return t},Bt=getBuiltIn("document","documentElement"),Qt=sharedKey("IE_PROTO"),EmptyConstructor=function(){},scriptTag=function(t){return"<script>"+t+"</"+"script>"},NullProtoObject=function(){try{Ft=document.domain&&new ActiveXObject("htmlfile")}catch(t){}var t,e;NullProtoObject=Ft?function(t){t.write(scriptTag("")),t.close();var e=t.parentWindow.Object;return t=null,e}(Ft):((e=documentCreateElement("iframe")).style.display="none",Bt.appendChild(e),e.src=String("javascript:"),(t=e.contentWindow.document).open(),t.write(scriptTag("document.F=Object")),t.close(),t.F);for(var n=X.length;n--;)delete NullProtoObject.prototype[X[n]];return NullProtoObject()};R[Qt]=!0;var Dt=Object.create||function create(t,e){var n;return null!==t?(EmptyConstructor.prototype=anObject(t),n=new EmptyConstructor,EmptyConstructor.prototype=null,n[Qt]=t):n=NullProtoObject(),void 0===e?n:Ut(n,e)},zt=et.f,Wt={}.toString,Kt="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],$t={f:function getOwnPropertyNames(t){return Kt&&"[object Window]"==Wt.call(t)?function(t){try{return zt(t)}catch(t){return Kt.slice()}}(t):zt(toIndexedObject(t))}},qt={f:wellKnownSymbol},Zt=d.f,defineWellKnownSymbol=function(t){var e=z.Symbol||(z.Symbol={});has(e,t)||Zt(e,t,{value:qt.f(t)})},Yt=d.f,Jt=wellKnownSymbol("toStringTag"),setToStringTag=function(t,e,n){t&&!has(t=n?t:t.prototype,Jt)&&Yt(t,Jt,{configurable:!0,value:e})},Xt=vt.forEach,te=sharedKey("hidden"),ee="Symbol",ne=wellKnownSymbol("toPrimitive"),re=Q.set,ie=Q.getterFor(ee),oe=Object.prototype,ae=r.Symbol,se=getBuiltIn("JSON","stringify"),ue=p.f,ce=d.f,he=$t.f,le=s.f,fe=T("symbols"),_e=T("op-symbols"),ge=T("string-to-symbol-registry"),Se=T("symbol-to-string-registry"),pe=T("wks"),ye=r.QObject,de=!ye||!ye.prototype||!ye.prototype.findChild,ve=i&&fails((function(){return 7!=Dt(ce({},"a",{get:function(){return ce(this,"a",{value:7}).a}})).a}))?function(t,e,n){var r=ue(oe,e);r&&delete oe[e],ce(t,e,n),r&&t!==oe&&ce(oe,e,r)}:ce,wrap=function(t,e){var n=fe[t]=Dt(ae.prototype);return re(n,{type:ee,tag:t,description:e}),i||(n.description=e),n},me=_t?function(t){return"symbol"==typeof t}:function(t){return Object(t)instanceof ae},Pe=function defineProperty(t,e,n){t===oe&&Pe(_e,e,n),anObject(t);var r=toPrimitive(e,!0);return anObject(n),has(fe,r)?(n.enumerable?(has(t,te)&&t[te][r]&&(t[te][r]=!1),n=Dt(n,{enumerable:createPropertyDescriptor(0,!1)})):(has(t,te)||ce(t,te,createPropertyDescriptor(1,{})),t[te][r]=!0),ve(t,r,n)):ce(t,r,n)},be=function defineProperties(t,e){anObject(t);var n=toIndexedObject(e),r=jt(n).concat(Ge(n));return Xt(r,(function(e){i&&!Ae.call(n,e)||Pe(t,e,n[e])})),t},Ae=function propertyIsEnumerable(t){var e=toPrimitive(t,!0),n=le.call(this,e);return!(this===oe&&has(fe,e)&&!has(_e,e))&&(!(n||!has(this,e)||!has(fe,e)||has(this,te)&&this[te][e])||n)},Ce=function getOwnPropertyDescriptor(t,e){var n=toIndexedObject(t),r=toPrimitive(e,!0);if(n!==oe||!has(fe,r)||has(_e,r)){var i=ue(n,r);return!i||!has(fe,r)||has(n,te)&&n[te][r]||(i.enumerable=!0),i}},xe=function getOwnPropertyNames(t){var e=he(toIndexedObject(t)),n=[];return Xt(e,(function(t){has(fe,t)||has(R,t)||n.push(t)})),n},Ge=function getOwnPropertySymbols(t){var e=t===oe,n=he(e?_e:toIndexedObject(t)),r=[];return Xt(n,(function(t){!has(fe,t)||e&&!has(oe,t)||r.push(fe[t])})),r};if(ft||(D((ae=function Symbol(){if(this instanceof ae)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===oe&&setter.call(_e,t),has(this,te)&&has(this[te],e)&&(this[te][e]=!1),ve(this,e,createPropertyDescriptor(1,t))};return i&&de&&ve(oe,e,{configurable:!0,set:setter}),wrap(e,t)}).prototype,"toString",(function toString(){return ie(this).tag})),D(ae,"withoutSetter",(function(t){return wrap(uid(t),t)})),s.f=Ae,d.f=Pe,p.f=Ce,et.f=$t.f=xe,nt.f=Ge,qt.f=function(t){return wrap(wellKnownSymbol(t),t)},i&&(ce(ae.prototype,"description",{configurable:!0,get:function description(){return ie(this).description}}),D(oe,"propertyIsEnumerable",Ae,{unsafe:!0}))),_export({global:!0,wrap:!0,forced:!ft,sham:!ft},{Symbol:ae}),Xt(jt(pe),(function(t){defineWellKnownSymbol(t)})),_export({target:ee,stat:!0,forced:!ft},{for:function(t){var e=String(t);if(has(ge,e))return ge[e];var n=ae(e);return ge[e]=n,Se[n]=e,n},keyFor:function keyFor(t){if(!me(t))throw TypeError(t+" is not a symbol");if(has(Se,t))return Se[t]},useSetter:function(){de=!0},useSimple:function(){de=!1}}),_export({target:"Object",stat:!0,forced:!ft,sham:!i},{create:function create(t,e){return void 0===e?Dt(t):be(Dt(t),e)},defineProperty:Pe,defineProperties:be,getOwnPropertyDescriptor:Ce}),_export({target:"Object",stat:!0,forced:!ft},{getOwnPropertyNames:xe,getOwnPropertySymbols:Ge}),_export({target:"Object",stat:!0,forced:fails((function(){nt.f(1)}))},{getOwnPropertySymbols:function getOwnPropertySymbols(t){return nt.f(toObject(t))}}),se){var Ee=!ft||fails((function(){var t=ae();return"[null]"!=se([t])||"{}"!=se({a:t})||"{}"!=se(Object(t))}));_export({target:"JSON",stat:!0,forced:Ee},{stringify:function stringify(t,e,n){for(var r,i=[t],o=1;arguments.length>o;)i.push(arguments[o++]);if(r=e,(isObject(e)||void 0!==t)&&!me(t))return lt(e)||(e=function(t,e){if("function"==typeof r&&(e=r.call(this,t,e)),!me(e))return e}),i[1]=e,se.apply(null,i)}})}ae.prototype[ne]||v(ae.prototype,ne,ae.prototype.valueOf),setToStringTag(ae,ee),R[te]=!0;var Ve=d.f,Te=r.Symbol;if(i&&"function"==typeof Te&&(!("description"in Te.prototype)||void 0!==Te().description)){var we={},Oe=function Symbol(){var t=arguments.length<1||void 0===arguments[0]?void 0:String(arguments[0]),e=this instanceof Oe?new Te(t):void 0===t?Te():Te(t);return""===t&&(we[e]=!0),e};copyConstructorProperties(Oe,Te);var Le=Oe.prototype=Te.prototype;Le.constructor=Oe;var Re=Le.toString,Ie="Symbol(test)"==String(Te("test")),ke=/^Symbol\((.*)\)[^)]+$/;Ve(Le,"description",{configurable:!0,get:function description(){var t=isObject(this)?this.valueOf():this,e=Re.call(t);if(has(we,t))return"";var n=Ie?e.slice(7,-1):e.replace(ke,"$1");return""===n?void 0:n}}),_export({global:!0,forced:!0},{Symbol:Oe})}defineWellKnownSymbol("asyncIterator"),defineWellKnownSymbol("iterator"),defineWellKnownSymbol("toStringTag");var arrayMethodIsStrict=function(t,e){var n=[][t];return!!n&&fails((function(){n.call(null,e||function(){throw 1},1)}))},je=vt.forEach,Ne=arrayMethodIsStrict("forEach"),He=arrayMethodUsesToLength("forEach"),Me=Ne&&He?[].forEach:function forEach(t){return je(this,t,arguments.length>1?arguments[1]:void 0)};_export({target:"Array",proto:!0,forced:[].forEach!=Me},{forEach:Me});var Fe=wellKnownSymbol("unscopables"),Ue=Array.prototype;null==Ue[Fe]&&d.f(Ue,Fe,{configurable:!0,value:Dt(null)});var Be,Qe,De,addToUnscopables=function(t){Ue[Fe][t]=!0},ze={},We=!fails((function(){function F(){}return F.prototype.constructor=null,Object.getPrototypeOf(new F)!==F.prototype})),Ke=sharedKey("IE_PROTO"),$e=Object.prototype,qe=We?Object.getPrototypeOf:function(t){return t=toObject(t),has(t,Ke)?t[Ke]:"function"==typeof t.constructor&&t instanceof t.constructor?t.constructor.prototype:t instanceof Object?$e:null},Ze=wellKnownSymbol("iterator"),Ye=!1;[].keys&&("next"in(De=[].keys())?(Qe=qe(qe(De)))!==Object.prototype&&(Be=Qe):Ye=!0),null==Be&&(Be={}),has(Be,Ze)||v(Be,Ze,(function(){return this}));var Je={IteratorPrototype:Be,BUGGY_SAFARI_ITERATORS:Ye},Xe=Je.IteratorPrototype,returnThis$1=function(){return this},tn=Object.setPrototypeOf||("__proto__"in{}?function(){var t,e=!1,n={};try{(t=Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set).call(n,[]),e=n instanceof Array}catch(t){}return function setPrototypeOf(n,r){return anObject(n),function(t){if(!isObject(t)&&null!==t)throw TypeError("Can't set "+String(t)+" as a prototype")}(r),e?t.call(n,r):n.__proto__=r,n}}():void 0),en=Je.IteratorPrototype,nn=Je.BUGGY_SAFARI_ITERATORS,rn=wellKnownSymbol("iterator"),on="keys",an="values",sn="entries",returnThis$2=function(){return this},defineIterator=function(t,e,n,r,i,o,a){!function(t,e,n){var r=e+" Iterator";t.prototype=Dt(Xe,{next:createPropertyDescriptor(1,n)}),setToStringTag(t,r,!1),ze[r]=returnThis$1}(n,e,r);var s,u,c,getIterationMethod=function(t){if(t===i&&g)return g;if(!nn&&t in f)return f[t];switch(t){case on:return function keys(){return new n(this,t)};case an:return function values(){return new n(this,t)};case sn:return function entries(){return new n(this,t)}}return function(){return new n(this)}},h=e+" Iterator",l=!1,f=t.prototype,_=f[rn]||f["@@iterator"]||i&&f[i],g=!nn&&_||getIterationMethod(i),S="Array"==e&&f.entries||_;if(S&&(s=qe(S.call(new t)),en!==Object.prototype&&s.next&&(qe(s)!==en&&(tn?tn(s,en):"function"!=typeof s[rn]&&v(s,rn,returnThis$2)),setToStringTag(s,h,!0))),i==an&&_&&_.name!==an&&(l=!0,g=function values(){return _.call(this)}),f[rn]!==g&&v(f,rn,g),ze[e]=g,i)if(u={values:getIterationMethod(an),keys:o?g:getIterationMethod(on),entries:getIterationMethod(sn)},a)for(c in u)(nn||l||!(c in f))&&D(f,c,u[c]);else _export({target:e,proto:!0,forced:nn||l},u);return u},un="Array Iterator",cn=Q.set,hn=Q.getterFor(un),ln=defineIterator(Array,"Array",(function(t,e){cn(this,{type:un,target:toIndexedObject(t),index:0,kind:e})}),(function(){var t=hn(this),e=t.target,n=t.kind,r=t.index++;return!e||r>=e.length?(t.target=void 0,{value:void 0,done:!0}):"keys"==n?{value:r,done:!1}:"values"==n?{value:e[r],done:!1}:{value:[r,e[r]],done:!1}}),"values");ze.Arguments=ze.Array,addToUnscopables("keys"),addToUnscopables("values"),addToUnscopables("entries");var fn=[].reverse,_n=[1,2];_export({target:"Array",proto:!0,forced:String(_n)===String(_n.reverse())},{reverse:function reverse(){return lt(this)&&(this.length=this.length),fn.call(this)}});var createProperty=function(t,e,n){var r=toPrimitive(e);r in t?d.f(t,r,createPropertyDescriptor(0,n)):t[r]=n},gn=arrayMethodHasSpeciesSupport("slice"),Sn=arrayMethodUsesToLength("slice",{ACCESSORS:!0,0:0,1:2}),pn=wellKnownSymbol("species"),yn=[].slice,dn=Math.max;_export({target:"Array",proto:!0,forced:!gn||!Sn},{slice:function slice(t,e){var n,r,i,o=toIndexedObject(this),a=toLength(o.length),s=toAbsoluteIndex(t,a),u=toAbsoluteIndex(void 0===e?a:e,a);if(lt(o)&&("function"!=typeof(n=o.constructor)||n!==Array&&!lt(n.prototype)?isObject(n)&&null===(n=n[pn])&&(n=void 0):n=void 0,n===Array||void 0===n))return yn.call(o,s,u);for(r=new(void 0===n?Array:n)(dn(u-s,0)),i=0;s<u;s++,i++)s in o&&createProperty(r,i,o[s]);return r.length=i,r}});var vn=Date.prototype,mn="Invalid Date",Pn="toString",bn=vn.toString,An=vn.getTime;new Date(NaN)+""!=mn&&D(vn,Pn,(function toString(){var t=An.call(this);return t==t?bn.call(this):mn})),setToStringTag(r.JSON,"JSON",!0),setToStringTag(Math,"Math",!0),_export({target:"Object",stat:!0,sham:!i},{create:Dt}),_export({target:"Object",stat:!0,forced:!i,sham:!i},{defineProperty:d.f});var Cn=fails((function(){qe(1)}));_export({target:"Object",stat:!0,forced:Cn,sham:!We},{getPrototypeOf:function getPrototypeOf(t){return qe(toObject(t))}}),_export({target:"Object",stat:!0},{setPrototypeOf:tn});var xn={};xn[wellKnownSymbol("toStringTag")]="z";var Gn="[object z]"===String(xn),En=wellKnownSymbol("toStringTag"),Vn="Arguments"==classofRaw(function(){return arguments}()),Tn=Gn?classofRaw:function(t){var e,n,r;return void 0===t?"Undefined":null===t?"Null":"string"==typeof(n=function(t,e){try{return t[e]}catch(t){}}(e=Object(t),En))?n:Vn?classofRaw(e):"Object"==(r=classofRaw(e))&&"function"==typeof e.callee?"Arguments":r},wn=Gn?{}.toString:function toString(){return"[object "+Tn(this)+"]"};Gn||D(Object.prototype,"toString",wn,{unsafe:!0});var On=r.Promise,Ln=wellKnownSymbol("species"),Rn=wellKnownSymbol("iterator"),In=Array.prototype,kn=wellKnownSymbol("iterator"),callWithSafeIterationClosing=function(t,e,n,r){try{return r?e(anObject(n)[0],n[1]):e(n)}catch(e){var i=t.return;throw void 0!==i&&anObject(i.call(t)),e}},jn=createCommonjsModule((function(t){var Result=function(t,e){this.stopped=t,this.result=e};(t.exports=function(t,e,n,r,i){var o,a,s,u,c,h,l,f,_=functionBindContext(e,n,r?2:1);if(i)o=t;else{if("function"!=typeof(a=function(t){if(null!=t)return t[kn]||t["@@iterator"]||ze[Tn(t)]}(t)))throw TypeError("Target is not iterable");if(void 0!==(f=a)&&(ze.Array===f||In[Rn]===f)){for(s=0,u=toLength(t.length);u>s;s++)if((c=r?_(anObject(l=t[s])[0],l[1]):_(t[s]))&&c instanceof Result)return c;return new Result(!1)}o=a.call(t)}for(h=o.next;!(l=h.call(o)).done;)if("object"==typeof(c=callWithSafeIterationClosing(o,_,l.value,r))&&c&&c instanceof Result)return c;return new Result(!1)}).stop=function(t){return new Result(!0,t)}})),Nn=wellKnownSymbol("iterator"),Hn=!1;try{var Mn=0,Fn={next:function(){return{done:!!Mn++}},return:function(){Hn=!0}};Fn[Nn]=function(){return this},Array.from(Fn,(function(){throw 2}))}catch(t){}var Un,Bn,Qn,Dn=wellKnownSymbol("species"),speciesConstructor=function(t,e){var n,r=anObject(t).constructor;return void 0===r||null==(n=anObject(r)[Dn])?e:aFunction$1(n)},zn=/(iphone|ipod|ipad).*applewebkit/i.test(mt),Wn=r.location,Kn=r.setImmediate,$n=r.clearImmediate,qn=r.process,Zn=r.MessageChannel,Yn=r.Dispatch,Jn=0,Xn={},tr="onreadystatechange",run=function(t){if(Xn.hasOwnProperty(t)){var e=Xn[t];delete Xn[t],e()}},runner=function(t){return function(){run(t)}},listener=function(t){run(t.data)},post=function(t){r.postMessage(t+"",Wn.protocol+"//"+Wn.host)};Kn&&$n||(Kn=function setImmediate(t){for(var e=[],n=1;arguments.length>n;)e.push(arguments[n++]);return Xn[++Jn]=function(){("function"==typeof t?t:Function(t)).apply(void 0,e)},Un(Jn),Jn},$n=function clearImmediate(t){delete Xn[t]},"process"==classofRaw(qn)?Un=function(t){qn.nextTick(runner(t))}:Yn&&Yn.now?Un=function(t){Yn.now(runner(t))}:Zn&&!zn?(Qn=(Bn=new Zn).port2,Bn.port1.onmessage=listener,Un=functionBindContext(Qn.postMessage,Qn,1)):!r.addEventListener||"function"!=typeof postMessage||r.importScripts||fails(post)||"file:"===Wn.protocol?Un=tr in documentCreateElement("script")?function(t){Bt.appendChild(documentCreateElement("script")).onreadystatechange=function(){Bt.removeChild(this),run(t)}}:function(t){setTimeout(runner(t),0)}:(Un=post,r.addEventListener("message",listener,!1)));var er,nr,rr,ir,or,ar,sr,ur,cr={set:Kn,clear:$n},hr=p.f,lr=cr.set,fr=r.MutationObserver||r.WebKitMutationObserver,_r=r.process,gr=r.Promise,Sr="process"==classofRaw(_r),pr=hr(r,"queueMicrotask"),yr=pr&&pr.value;yr||(er=function(){var t,e;for(Sr&&(t=_r.domain)&&t.exit();nr;){e=nr.fn,nr=nr.next;try{e()}catch(t){throw nr?ir():rr=void 0,t}}rr=void 0,t&&t.enter()},Sr?ir=function(){_r.nextTick(er)}:fr&&!zn?(or=!0,ar=document.createTextNode(""),new fr(er).observe(ar,{characterData:!0}),ir=function(){ar.data=or=!or}):gr&&gr.resolve?(sr=gr.resolve(void 0),ur=sr.then,ir=function(){ur.call(sr,er)}):ir=function(){lr.call(r,er)});var dr,vr,mr,Pr,br=yr||function(t){var e={fn:t,next:void 0};rr&&(rr.next=e),nr||(nr=e,ir()),rr=e},PromiseCapability=function(t){var e,n;this.promise=new t((function(t,r){if(void 0!==e||void 0!==n)throw TypeError("Bad Promise constructor");e=t,n=r})),this.resolve=aFunction$1(e),this.reject=aFunction$1(n)},Ar={f:function(t){return new PromiseCapability(t)}},promiseResolve=function(t,e){if(anObject(t),isObject(e)&&e.constructor===t)return e;var n=Ar.f(t);return(0,n.resolve)(e),n.promise},perform=function(t){try{return{error:!1,value:t()}}catch(t){return{error:!0,value:t}}},Cr=cr.set,xr=wellKnownSymbol("species"),Gr="Promise",Er=Q.get,Vr=Q.set,Tr=Q.getterFor(Gr),wr=On,Or=r.TypeError,Lr=r.document,Rr=r.process,Ir=getBuiltIn("fetch"),kr=Ar.f,jr=kr,Nr="process"==classofRaw(Rr),Hr=!!(Lr&&Lr.createEvent&&r.dispatchEvent),Mr="unhandledrejection",Fr=ct(Gr,(function(){if(!(G(wr)!==String(wr))){if(66===Ct)return!0;if(!Nr&&"function"!=typeof PromiseRejectionEvent)return!0}if(Ct>=51&&/native code/.test(wr))return!1;var t=wr.resolve(1),FakePromise=function(t){t((function(){}),(function(){}))};return(t.constructor={})[xr]=FakePromise,!(t.then((function(){}))instanceof FakePromise)})),Ur=Fr||!function(t,e){if(!e&&!Hn)return!1;var n=!1;try{var r={};r[Nn]=function(){return{next:function(){return{done:n=!0}}}},t(r)}catch(t){}return n}((function(t){wr.all(t).catch((function(){}))})),isThenable=function(t){var e;return!(!isObject(t)||"function"!=typeof(e=t.then))&&e},notify$1=function(t,e,n){if(!e.notified){e.notified=!0;var r=e.reactions;br((function(){for(var i=e.value,o=1==e.state,a=0;r.length>a;){var s,u,c,h=r[a++],l=o?h.ok:h.fail,f=h.resolve,_=h.reject,g=h.domain;try{l?(o||(2===e.rejection&&onHandleUnhandled(t,e),e.rejection=1),!0===l?s=i:(g&&g.enter(),s=l(i),g&&(g.exit(),c=!0)),s===h.promise?_(Or("Promise-chain cycle")):(u=isThenable(s))?u.call(s,f,_):f(s)):_(i)}catch(t){g&&!c&&g.exit(),_(t)}}e.reactions=[],e.notified=!1,n&&!e.rejection&&onUnhandled(t,e)}))}},dispatchEvent=function(t,e,n){var i,o;Hr?((i=Lr.createEvent("Event")).promise=e,i.reason=n,i.initEvent(t,!1,!0),r.dispatchEvent(i)):i={promise:e,reason:n},(o=r["on"+t])?o(i):t===Mr&&function(t,e){var n=r.console;n&&n.error&&(1===arguments.length?n.error(t):n.error(t,e))}("Unhandled promise rejection",n)},onUnhandled=function(t,e){Cr.call(r,(function(){var n,r=e.value;if(isUnhandled(e)&&(n=perform((function(){Nr?Rr.emit("unhandledRejection",r,t):dispatchEvent(Mr,t,r)})),e.rejection=Nr||isUnhandled(e)?2:1,n.error))throw n.value}))},isUnhandled=function(t){return 1!==t.rejection&&!t.parent},onHandleUnhandled=function(t,e){Cr.call(r,(function(){Nr?Rr.emit("rejectionHandled",t):dispatchEvent("rejectionhandled",t,e.value)}))},bind=function(t,e,n,r){return function(i){t(e,n,i,r)}},internalReject=function(t,e,n,r){e.done||(e.done=!0,r&&(e=r),e.value=n,e.state=2,notify$1(t,e,!0))},internalResolve=function(t,e,n,r){if(!e.done){e.done=!0,r&&(e=r);try{if(t===n)throw Or("Promise can't be resolved itself");var i=isThenable(n);i?br((function(){var r={done:!1};try{i.call(n,bind(internalResolve,t,r,e),bind(internalReject,t,r,e))}catch(n){internalReject(t,r,n,e)}})):(e.value=n,e.state=1,notify$1(t,e,!1))}catch(n){internalReject(t,{done:!1},n,e)}}};Fr&&(wr=function Promise(t){!function(t,e,n){if(!(t instanceof e))throw TypeError("Incorrect "+(n?n+" ":"")+"invocation")}(this,wr,Gr),aFunction$1(t),dr.call(this);var e=Er(this);try{t(bind(internalResolve,this,e),bind(internalReject,this,e))}catch(t){internalReject(this,e,t)}},(dr=function Promise(t){Vr(this,{type:Gr,done:!1,notified:!1,parent:!1,reactions:[],rejection:!1,state:0,value:void 0})}).prototype=function(t,e,n){for(var r in e)D(t,r,e[r],n);return t}(wr.prototype,{then:function then(t,e){var n=Tr(this),r=kr(speciesConstructor(this,wr));return r.ok="function"!=typeof t||t,r.fail="function"==typeof e&&e,r.domain=Nr?Rr.domain:void 0,n.parent=!0,n.reactions.push(r),0!=n.state&¬ify$1(this,n,!1),r.promise},catch:function(t){return this.then(void 0,t)}}),vr=function(){var t=new dr,e=Er(t);this.promise=t,this.resolve=bind(internalResolve,t,e),this.reject=bind(internalReject,t,e)},Ar.f=kr=function(t){return t===wr||t===mr?new vr(t):jr(t)},"function"==typeof On&&(Pr=On.prototype.then,D(On.prototype,"then",(function then(t,e){var n=this;return new wr((function(t,e){Pr.call(n,t,e)})).then(t,e)}),{unsafe:!0}),"function"==typeof Ir&&_export({global:!0,enumerable:!0,forced:!0},{fetch:function fetch(t){return promiseResolve(wr,Ir.apply(r,arguments))}}))),_export({global:!0,wrap:!0,forced:Fr},{Promise:wr}),setToStringTag(wr,Gr,!1),function(t){var e=getBuiltIn(t),n=d.f;i&&e&&!e[Ln]&&n(e,Ln,{configurable:!0,get:function(){return this}})}(Gr),mr=getBuiltIn(Gr),_export({target:Gr,stat:!0,forced:Fr},{reject:function reject(t){var e=kr(this);return e.reject.call(void 0,t),e.promise}}),_export({target:Gr,stat:!0,forced:Fr},{resolve:function resolve(t){return promiseResolve(this,t)}}),_export({target:Gr,stat:!0,forced:Ur},{all:function all(t){var e=this,n=kr(e),r=n.resolve,i=n.reject,o=perform((function(){var n=aFunction$1(e.resolve),o=[],a=0,s=1;jn(t,(function(t){var u=a++,c=!1;o.push(void 0),s++,n.call(e,t).then((function(t){c||(c=!0,o[u]=t,--s||r(o))}),i)})),--s||r(o)}));return o.error&&i(o.value),n.promise},race:function race(t){var e=this,n=kr(e),r=n.reject,i=perform((function(){var i=aFunction$1(e.resolve);jn(t,(function(t){i.call(e,t).then(n.resolve,r)}))}));return i.error&&r(i.value),n.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},Br="toString",Qr=RegExp.prototype,Dr=Qr.toString,zr=fails((function(){return"/a/b"!=Dr.call({source:"a",flags:"b"})})),Wr=Dr.name!=Br;(zr||Wr)&&D(RegExp.prototype,Br,(function toString(){var t=anObject(this),e=String(t.source),n=t.flags;return"/"+e+"/"+String(void 0===n&&t instanceof RegExp&&!("flags"in Qr)?regexpFlags.call(t):n)}),{unsafe:!0});var createMethod$2=function(t){return function(e,n){var r,i,o=String(requireObjectCoercible(e)),a=toInteger(n),s=o.length;return a<0||a>=s?t?"":void 0:(r=o.charCodeAt(a))<55296||r>56319||a+1===s||(i=o.charCodeAt(a+1))<56320||i>57343?t?o.charAt(a):r:t?o.slice(a,a+2):i-56320+(r-55296<<10)+65536}},Kr={codeAt:createMethod$2(!1),charAt:createMethod$2(!0)},$r=Kr.charAt,qr="String Iterator",Zr=Q.set,Yr=Q.getterFor(qr);defineIterator(String,"String",(function(t){Zr(this,{type:qr,string:String(t),index:0})}),(function next(){var t,e=Yr(this),n=e.string,r=e.index;return r>=n.length?{value:void 0,done:!0}:(t=$r(n,r),e.index+=t.length,{value:t,done:!1})}));var Jr={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 Xr in Jr){var ti=r[Xr],ei=ti&&ti.prototype;if(ei&&ei.forEach!==Me)try{v(ei,"forEach",Me)}catch(t){ei.forEach=Me}}var ni=wellKnownSymbol("iterator"),ri=wellKnownSymbol("toStringTag"),ii=ln.values;for(var oi in Jr){var ai=r[oi],si=ai&&ai.prototype;if(si){if(si[ni]!==ii)try{v(si,ni,ii)}catch(t){si[ni]=ii}if(si[ri]||v(si,ri,oi),Jr[oi])for(var ui in ln)if(si[ui]!==ln[ui])try{v(si,ui,ln[ui])}catch(t){si[ui]=ln[ui]}}}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,n,r,i,o,a){try{var s=t[o](a),u=s.value}catch(t){return void n(t)}s.done?e(u):Promise.resolve(u).then(r,i)}function _asyncToGenerator(t){return function(){var e=this,n=arguments;return new Promise((function(r,i){var o=t.apply(e,n);function _next(t){asyncGeneratorStep(o,r,i,_next,_throw,"next",t)}function _throw(t){asyncGeneratorStep(o,r,i,_next,_throw,"throw",t)}_next(void 0)}))}}function _classCallCheck(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function _defineProperties(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function _createClass(t,e,n){return e&&_defineProperties(t.prototype,e),n&&_defineProperties(t,n),t}function _inherits(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&_setPrototypeOf(t,e)}function _getPrototypeOf(t){return(_getPrototypeOf=Object.setPrototypeOf?Object.getPrototypeOf:function _getPrototypeOf(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function _setPrototypeOf(t,e){return(_setPrototypeOf=Object.setPrototypeOf||function _setPrototypeOf(t,e){return t.__proto__=e,t})(t,e)}function _possibleConstructorReturn(t,e){return!e||"object"!=typeof e&&"function"!=typeof e?function _assertThisInitialized(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function _createSuper(t){var e=function _isNativeReflectConstruct(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(t){return!1}}();return function _createSuperInternal(){var n,r=_getPrototypeOf(t);if(e){var i=_getPrototypeOf(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return _possibleConstructorReturn(this,n)}}createCommonjsModule((function(t){var e=function(t){var e,n=Object.prototype,r=n.hasOwnProperty,i="function"==typeof Symbol?Symbol:{},o=i.iterator||"@@iterator",a=i.asyncIterator||"@@asyncIterator",s=i.toStringTag||"@@toStringTag";function define(t,e,n){return Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{define({},"")}catch(t){define=function define(t,e,n){return t[e]=n}}function wrap(t,e,n,r){var i=e&&e.prototype instanceof Generator?e:Generator,o=Object.create(i.prototype),a=new Context(r||[]);return o._invoke=function makeInvokeMethod(t,e,n){var r=u;return function invoke(i,o){if(r===h)throw new Error("Generator is already running");if(r===l){if("throw"===i)throw o;return doneResult()}for(n.method=i,n.arg=o;;){var a=n.delegate;if(a){var s=maybeInvokeDelegate(a,n);if(s){if(s===f)continue;return s}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(r===u)throw r=l,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);r=h;var _=tryCatch(t,e,n);if("normal"===_.type){if(r=n.done?l:c,_.arg===f)continue;return{value:_.arg,done:n.done}}"throw"===_.type&&(r=l,n.method="throw",n.arg=_.arg)}}}(t,n,a),o}function tryCatch(t,e,n){try{return{type:"normal",arg:t.call(e,n)}}catch(t){return{type:"throw",arg:t}}}t.wrap=wrap;var u="suspendedStart",c="suspendedYield",h="executing",l="completed",f={};function Generator(){}function GeneratorFunction(){}function GeneratorFunctionPrototype(){}var _={};_[o]=function(){return this};var g=Object.getPrototypeOf,S=g&&g(g(values([])));S&&S!==n&&r.call(S,o)&&(_=S);var p=GeneratorFunctionPrototype.prototype=Generator.prototype=Object.create(_);function defineIteratorMethods(t){["next","throw","return"].forEach((function(e){define(t,e,(function(t){return this._invoke(e,t)}))}))}function AsyncIterator(t,e){var n;this._invoke=function enqueue(i,o){function callInvokeWithMethodAndArg(){return new e((function(n,a){!function invoke(n,i,o,a){var s=tryCatch(t[n],t,i);if("throw"!==s.type){var u=s.arg,c=u.value;return c&&"object"===_typeof(c)&&r.call(c,"__await")?e.resolve(c.__await).then((function(t){invoke("next",t,o,a)}),(function(t){invoke("throw",t,o,a)})):e.resolve(c).then((function(t){u.value=t,o(u)}),(function(t){return invoke("throw",t,o,a)}))}a(s.arg)}(i,o,n,a)}))}return n=n?n.then(callInvokeWithMethodAndArg,callInvokeWithMethodAndArg):callInvokeWithMethodAndArg()}}function maybeInvokeDelegate(t,n){var r=t.iterator[n.method];if(r===e){if(n.delegate=null,"throw"===n.method){if(t.iterator.return&&(n.method="return",n.arg=e,maybeInvokeDelegate(t,n),"throw"===n.method))return f;n.method="throw",n.arg=new TypeError("The iterator does not provide a 'throw' method")}return f}var i=tryCatch(r,t.iterator,n.arg);if("throw"===i.type)return n.method="throw",n.arg=i.arg,n.delegate=null,f;var o=i.arg;return o?o.done?(n[t.resultName]=o.value,n.next=t.nextLoc,"return"!==n.method&&(n.method="next",n.arg=e),n.delegate=null,f):o:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,f)}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 n=t[o];if(n)return n.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var i=-1,a=function next(){for(;++i<t.length;)if(r.call(t,i))return next.value=t[i],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=p.constructor=GeneratorFunctionPrototype,GeneratorFunctionPrototype.constructor=GeneratorFunction,GeneratorFunction.displayName=define(GeneratorFunctionPrototype,s,"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,s,"GeneratorFunction")),t.prototype=Object.create(p),t},t.awrap=function(t){return{__await:t}},defineIteratorMethods(AsyncIterator.prototype),AsyncIterator.prototype[a]=function(){return this},t.AsyncIterator=AsyncIterator,t.async=function(e,n,r,i,o){void 0===o&&(o=Promise);var a=new AsyncIterator(wrap(e,n,r,i),o);return t.isGeneratorFunction(n)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},defineIteratorMethods(p),define(p,s,"Generator"),p[o]=function(){return this},p.toString=function(){return"[object Generator]"},t.keys=function(t){var e=[];for(var n in t)e.push(n);return e.reverse(),function next(){for(;e.length;){var n=e.pop();if(n in t)return next.value=n,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 n in this)"t"===n.charAt(0)&&r.call(this,n)&&!isNaN(+n.slice(1))&&(this[n]=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 n=this;function handle(r,i){return a.type="throw",a.arg=t,n.next=r,i&&(n.method="next",n.arg=e),!!i}for(var i=this.tryEntries.length-1;i>=0;--i){var o=this.tryEntries[i],a=o.completion;if("root"===o.tryLoc)return handle("end");if(o.tryLoc<=this.prev){var s=r.call(o,"catchLoc"),u=r.call(o,"finallyLoc");if(s&&u){if(this.prev<o.catchLoc)return handle(o.catchLoc,!0);if(this.prev<o.finallyLoc)return handle(o.finallyLoc)}else if(s){if(this.prev<o.catchLoc)return handle(o.catchLoc,!0)}else{if(!u)throw new Error("try statement without catch or finally");if(this.prev<o.finallyLoc)return handle(o.finallyLoc)}}}},abrupt:function abrupt(t,e){for(var n=this.tryEntries.length-1;n>=0;--n){var i=this.tryEntries[n];if(i.tryLoc<=this.prev&&r.call(i,"finallyLoc")&&this.prev<i.finallyLoc){var o=i;break}}o&&("break"===t||"continue"===t)&&o.tryLoc<=e&&e<=o.finallyLoc&&(o=null);var a=o?o.completion:{};return a.type=t,a.arg=e,o?(this.method="next",this.next=o.finallyLoc,f):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),f},finish:function finish(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.finallyLoc===t)return this.complete(n.completion,n.afterLoc),resetTryEntry(n),f}},catch:function _catch(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.tryLoc===t){var r=n.completion;if("throw"===r.type){var i=r.arg;resetTryEntry(n)}return i}}throw new Error("illegal catch attempt")},delegateYield:function delegateYield(t,n,r){return this.delegate={iterator:values(t),resultName:n,nextLoc:r},"next"===this.method&&(this.arg=e),f}},t}(t.exports);try{regeneratorRuntime=e}catch(t){Function("r","regeneratorRuntime = r")(e)}}));var ci=wellKnownSymbol("isConcatSpreadable"),hi=9007199254740991,li="Maximum allowed index exceeded",fi=Ct>=51||!fails((function(){var t=[];return t[ci]=!1,t.concat()[0]!==t})),_i=arrayMethodHasSpeciesSupport("concat"),isConcatSpreadable=function(t){if(!isObject(t))return!1;var e=t[ci];return void 0!==e?!!e:lt(t)};_export({target:"Array",proto:!0,forced:!fi||!_i},{concat:function concat(t){var e,n,r,i,o,a=toObject(this),s=arraySpeciesCreate(a,0),u=0;for(e=-1,r=arguments.length;e<r;e++)if(isConcatSpreadable(o=-1===e?a:arguments[e])){if(u+(i=toLength(o.length))>hi)throw TypeError(li);for(n=0;n<i;n++,u++)n in o&&createProperty(s,u,o[n])}else{if(u>=hi)throw TypeError(li);createProperty(s,u++,o)}return s.length=u,s}});var gi=vt.find,Si="find",pi=!0,yi=arrayMethodUsesToLength(Si);Si in[]&&Array(1).find((function(){pi=!1})),_export({target:"Array",proto:!0,forced:pi||!yi},{find:function find(t){return gi(this,t,arguments.length>1?arguments[1]:void 0)}}),addToUnscopables(Si);var di=Y.includes,vi=arrayMethodUsesToLength("indexOf",{ACCESSORS:!0,1:0});_export({target:"Array",proto:!0,forced:!vi},{includes:function includes(t){return di(this,t,arguments.length>1?arguments[1]:void 0)}}),addToUnscopables("includes");var mi=[].join,Pi=h!=Object,bi=arrayMethodIsStrict("join",",");_export({target:"Array",proto:!0,forced:Pi||!bi},{join:function join(t){return mi.call(toIndexedObject(this),void 0===t?",":t)}});var Ai=vt.some,Ci=arrayMethodIsStrict("some"),xi=arrayMethodUsesToLength("some");_export({target:"Array",proto:!0,forced:!Ci||!xi},{some:function some(t){return Ai(this,t,arguments.length>1?arguments[1]:void 0)}});var Gi=s.f,createMethod$3=function(t){return function(e){for(var n,r=toIndexedObject(e),o=jt(r),a=o.length,s=0,u=[];a>s;)n=o[s++],i&&!Gi.call(r,n)||u.push(t?[n,r[n]]:r[n]);return u}},Ei={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 Ei(t)}});var Vi,Ti,wi={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")}))},Oi=RegExp.prototype.exec,Li=String.prototype.replace,Ri=Oi,Ii=(Vi=/a/,Ti=/b*/g,Oi.call(Vi,"a"),Oi.call(Ti,"a"),0!==Vi.lastIndex||0!==Ti.lastIndex),ki=wi.UNSUPPORTED_Y||wi.BROKEN_CARET,ji=void 0!==/()??/.exec("")[1];(Ii||ji||ki)&&(Ri=function exec(t){var e,n,r,i,o=this,a=ki&&o.sticky,s=regexpFlags.call(o),u=o.source,c=0,h=t;return a&&(-1===(s=s.replace("y","")).indexOf("g")&&(s+="g"),h=String(t).slice(o.lastIndex),o.lastIndex>0&&(!o.multiline||o.multiline&&"\n"!==t[o.lastIndex-1])&&(u="(?: "+u+")",h=" "+h,c++),n=new RegExp("^(?:"+u+")",s)),ji&&(n=new RegExp("^"+u+"$(?!\\s)",s)),Ii&&(e=o.lastIndex),r=Oi.call(a?n:o,h),a?r?(r.input=r.input.slice(c),r[0]=r[0].slice(c),r.index=o.lastIndex,o.lastIndex+=r[0].length):o.lastIndex=0:Ii&&r&&(o.lastIndex=o.global?r.index+r[0].length:e),ji&&r&&r.length>1&&Li.call(r[0],n,(function(){for(i=1;i<arguments.length-2;i++)void 0===arguments[i]&&(r[i]=void 0)})),r});var Ni=Ri;_export({target:"RegExp",proto:!0,forced:/./.exec!==Ni},{exec:Ni});var Hi=wellKnownSymbol("match"),isRegexp=function(t){var e;return isObject(t)&&(void 0!==(e=t[Hi])?!!e:"RegExp"==classofRaw(t))},notARegexp=function(t){if(isRegexp(t))throw TypeError("The method doesn't accept regular expressions");return t},Mi=wellKnownSymbol("match");_export({target:"String",proto:!0,forced:!function(t){var e=/./;try{"/./"[t](e)}catch(n){try{return e[Mi]=!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 Fi=wellKnownSymbol("species"),Ui=!fails((function(){var t=/./;return t.exec=function(){var t=[];return t.groups={a:"7"},t},"7"!=="".replace(t,"$<a>")})),Bi="$0"==="a".replace(/./,"$0"),Qi=wellKnownSymbol("replace"),Di=!!/./[Qi]&&""===/./[Qi]("a","$0"),zi=!fails((function(){var t=/(?:)/,e=t.exec;t.exec=function(){return e.apply(this,arguments)};var n="ab".split(t);return 2!==n.length||"a"!==n[0]||"b"!==n[1]})),Wi=Kr.charAt,advanceStringIndex=function(t,e,n){return e+(n?Wi(t,e).length:1)},regexpExecAbstract=function(t,e){var n=t.exec;if("function"==typeof n){var r=n.call(t,e);if("object"!=typeof r)throw TypeError("RegExp exec method returned something other than an Object or null");return r}if("RegExp"!==classofRaw(t))throw TypeError("RegExp#exec called on incompatible receiver");return Ni.call(t,e)},Ki=[].push,$i=Math.min,qi=4294967295,Zi=!fails((function(){return!RegExp(qi,"y")}));!function(t,e,n,r){var i=wellKnownSymbol(t),o=!fails((function(){var e={};return e[i]=function(){return 7},7!=""[t](e)})),a=o&&!fails((function(){var e=!1,n=/a/;return"split"===t&&((n={}).constructor={},n.constructor[Fi]=function(){return n},n.flags="",n[i]=/./[i]),n.exec=function(){return e=!0,null},n[i](""),!e}));if(!o||!a||"replace"===t&&(!Ui||!Bi||Di)||"split"===t&&!zi){var s=/./[i],u=n(i,""[t],(function(t,e,n,r,i){return e.exec===Ni?o&&!i?{done:!0,value:s.call(e,n,r)}:{done:!0,value:t.call(n,e,r)}:{done:!1}}),{REPLACE_KEEPS_$0:Bi,REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE:Di}),c=u[0],h=u[1];D(String.prototype,t,c),D(RegExp.prototype,i,2==e?function(t,e){return h.call(t,this,e)}:function(t){return h.call(t,this)})}r&&v(RegExp.prototype[i],"sham",!0)}("split",2,(function(t,e,n){var r;return r="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,n){var r=String(requireObjectCoercible(this)),i=void 0===n?qi:n>>>0;if(0===i)return[];if(void 0===t)return[r];if(!isRegexp(t))return e.call(r,t,i);for(var o,a,s,u=[],c=(t.ignoreCase?"i":"")+(t.multiline?"m":"")+(t.unicode?"u":"")+(t.sticky?"y":""),h=0,l=new RegExp(t.source,c+"g");(o=Ni.call(l,r))&&!((a=l.lastIndex)>h&&(u.push(r.slice(h,o.index)),o.length>1&&o.index<r.length&&Ki.apply(u,o.slice(1)),s=o[0].length,h=a,u.length>=i));)l.lastIndex===o.index&&l.lastIndex++;return h===r.length?!s&&l.test("")||u.push(""):u.push(r.slice(h)),u.length>i?u.slice(0,i):u}:"0".split(void 0,0).length?function(t,n){return void 0===t&&0===n?[]:e.call(this,t,n)}:e,[function split(e,n){var i=requireObjectCoercible(this),o=null==e?void 0:e[t];return void 0!==o?o.call(e,i,n):r.call(String(i),e,n)},function(t,i){var o=n(r,t,this,i,r!==e);if(o.done)return o.value;var a=anObject(t),s=String(this),u=speciesConstructor(a,RegExp),c=a.unicode,h=(a.ignoreCase?"i":"")+(a.multiline?"m":"")+(a.unicode?"u":"")+(Zi?"y":"g"),l=new u(Zi?a:"^(?:"+a.source+")",h),f=void 0===i?qi:i>>>0;if(0===f)return[];if(0===s.length)return null===regexpExecAbstract(l,s)?[s]:[];for(var _=0,g=0,S=[];g<s.length;){l.lastIndex=Zi?g:0;var p,y=regexpExecAbstract(l,Zi?s:s.slice(g));if(null===y||(p=$i(toLength(l.lastIndex+(Zi?0:g)),s.length))===_)g=advanceStringIndex(s,g,c);else{if(S.push(s.slice(_,g)),S.length===f)return S;for(var d=1;d<=y.length-1;d++)if(S.push(y[d]),S.length===f)return S;g=_=p}}return S.push(s.slice(_)),S}]}),!Zi);var Yi="\t\n\v\f\r \u2028\u2029\ufeff",Ji="["+Yi+"]",Xi=RegExp("^"+Ji+Ji+"*"),to=RegExp(Ji+Ji+"*$"),createMethod$4=function(t){return function(e){var n=String(requireObjectCoercible(e));return 1&t&&(n=n.replace(Xi,"")),2&t&&(n=n.replace(to,"")),n}},eo={start:createMethod$4(1),end:createMethod$4(2),trim:createMethod$4(3)},no=eo.trim;_export({target:"String",proto:!0,forced:function(t){return fails((function(){return!!Yi[t]()||"
"!="
"[t]()||Yi[t].name!==t}))}("trim")},{trim:function trim(){return no(this)}});var ro=/"/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="",n="",r=String(requireObjectCoercible(this)),i="<"+t,""!==e&&(i+=" "+e+'="'+String(n).replace(ro,""")+'"'),i+">"+r+"</"+t+">";var t,e,n,r,i}});
|
||
/**
|
||
* Localizing script for SVG-edit UI.
|
||
* @module locale
|
||
* @license MIT
|
||
*
|
||
* @copyright 2010 Narendra Sisodya
|
||
* @copyright 2010 Alexis Deveria
|
||
*
|
||
*/
|
||
jQuery;var io=function(){var t=_asyncToGenerator(regeneratorRuntime.mark((function _callee2(t,n){var r;return regeneratorRuntime.wrap((function _callee2$(i){for(;;)switch(i.prev=i.next){case 0:return i.prev=0,i.next=3,e.import("./extensions/ext-".concat(t,"/locale/").concat(n,".js"));case 3:r=i.sent,i.next=12;break;case 6:return i.prev=6,i.t0=i.catch(0),console.error("Missing translation (".concat(n,") for extension ").concat(t," - using 'en'")),i.next=11,e.import("./extensions/ext-".concat(t,"/locale/en.js"));case 11:r=i.sent;case 12:return i.abrupt("return",r.default);case 13:case"end":return i.stop()}}),_callee2,null,[[0,6]])})));return function loadExtensionTranslation(e,n){return t.apply(this,arguments)}}(),oo=arrayMethodHasSpeciesSupport("splice"),ao=arrayMethodUsesToLength("splice",{ACCESSORS:!0,0:0,1:2}),so=Math.max,uo=Math.min,co=9007199254740991,ho="Maximum allowed length exceeded";_export({target:"Array",proto:!0,forced:!oo||!ao},{splice:function splice(t,e){var n,r,i,o,a,s,u=toObject(this),c=toLength(u.length),h=toAbsoluteIndex(t,c),l=arguments.length;if(0===l?n=r=0:1===l?(n=0,r=c-h):(n=l-2,r=uo(so(toInteger(e),0),c-h)),c+n-r>co)throw TypeError(ho);for(i=arraySpeciesCreate(u,r),o=0;o<r;o++)(a=h+o)in u&&createProperty(i,o,u[a]);if(i.length=r,n<r){for(o=h;o<c-r;o++)s=o+n,(a=o+r)in u?u[s]=u[a]:delete u[s];for(o=c;o>c-r+n;o--)delete u[o-1]}else if(n>r)for(o=c-r;o>h;o--)s=o+n-1,(a=o+r-1)in u?u[s]=u[a]:delete u[s];for(o=0;o<n;o++)u[o+h]=arguments[o+2];return u.length=c-r+n,i}});var lo=[].slice,fo={},construct=function(t,e,n){if(!(e in fo)){for(var r=[],i=0;i<e;i++)r[i]="a["+i+"]";fo[e]=Function("C,a","return new C("+r.join(",")+")")}return fo[e](t,n)},_o=Function.bind||function bind(t){var e=aFunction$1(this),n=lo.call(arguments,1),r=function bound(){var i=n.concat(lo.call(arguments));return this instanceof r?construct(e,i.length,i):e.apply(t,i)};return isObject(e.prototype)&&(r.prototype=e.prototype),r};_export({target:"Function",proto:!0},{bind:_o}),_export({target:"Object",stat:!0,forced:!i,sham:!i},{defineProperties:Ut}),function(){if(!("SVGPathSeg"in window)){var t=function(){function _SVGPathSeg(t,e,n){_classCallCheck(this,_SVGPathSeg),this.pathSegType=t,this.pathSegTypeAsLetter=e,this._owningPathSegList=n}return _createClass(_SVGPathSeg,[{key:"_segmentChanged",value:function _segmentChanged(){this._owningPathSegList&&this._owningPathSegList.segmentChanged(this)}}]),_SVGPathSeg}();t.prototype.classname="SVGPathSeg",t.PATHSEG_UNKNOWN=0,t.PATHSEG_CLOSEPATH=1,t.PATHSEG_MOVETO_ABS=2,t.PATHSEG_MOVETO_REL=3,t.PATHSEG_LINETO_ABS=4,t.PATHSEG_LINETO_REL=5,t.PATHSEG_CURVETO_CUBIC_ABS=6,t.PATHSEG_CURVETO_CUBIC_REL=7,t.PATHSEG_CURVETO_QUADRATIC_ABS=8,t.PATHSEG_CURVETO_QUADRATIC_REL=9,t.PATHSEG_ARC_ABS=10,t.PATHSEG_ARC_REL=11,t.PATHSEG_LINETO_HORIZONTAL_ABS=12,t.PATHSEG_LINETO_HORIZONTAL_REL=13,t.PATHSEG_LINETO_VERTICAL_ABS=14,t.PATHSEG_LINETO_VERTICAL_REL=15,t.PATHSEG_CURVETO_CUBIC_SMOOTH_ABS=16,t.PATHSEG_CURVETO_CUBIC_SMOOTH_REL=17,t.PATHSEG_CURVETO_QUADRATIC_SMOOTH_ABS=18,t.PATHSEG_CURVETO_QUADRATIC_SMOOTH_REL=19;var e=function(e){_inherits(_SVGPathSegClosePath,e);var n=_createSuper(_SVGPathSegClosePath);function _SVGPathSegClosePath(e){return _classCallCheck(this,_SVGPathSegClosePath),n.call(this,t.PATHSEG_CLOSEPATH,"z",e)}return _createClass(_SVGPathSegClosePath,[{key:"toString",value:function toString(){return"[object SVGPathSegClosePath]"}},{key:"_asPathString",value:function _asPathString(){return this.pathSegTypeAsLetter}},{key:"clone",value:function clone(){return new _SVGPathSegClosePath(void 0)}}]),_SVGPathSegClosePath}(t),n=function(e){_inherits(_SVGPathSegMovetoAbs,e);var n=_createSuper(_SVGPathSegMovetoAbs);function _SVGPathSegMovetoAbs(e,r,i){var o;return _classCallCheck(this,_SVGPathSegMovetoAbs),(o=n.call(this,t.PATHSEG_MOVETO_ABS,"M",e))._x=r,o._y=i,o}return _createClass(_SVGPathSegMovetoAbs,[{key:"toString",value:function toString(){return"[object SVGPathSegMovetoAbs]"}},{key:"_asPathString",value:function _asPathString(){return this.pathSegTypeAsLetter+" "+this._x+" "+this._y}},{key:"clone",value:function clone(){return new _SVGPathSegMovetoAbs(void 0,this._x,this._y)}}]),_SVGPathSegMovetoAbs}(t);Object.defineProperties(n.prototype,{x:{get:function get(){return this._x},set:function set(t){this._x=t,this._segmentChanged()},enumerable:!0},y:{get:function get(){return this._y},set:function set(t){this._y=t,this._segmentChanged()},enumerable:!0}});var r=function(e){_inherits(_SVGPathSegMovetoRel,e);var n=_createSuper(_SVGPathSegMovetoRel);function _SVGPathSegMovetoRel(e,r,i){var o;return _classCallCheck(this,_SVGPathSegMovetoRel),(o=n.call(this,t.PATHSEG_MOVETO_REL,"m",e))._x=r,o._y=i,o}return _createClass(_SVGPathSegMovetoRel,[{key:"toString",value:function toString(){return"[object SVGPathSegMovetoRel]"}},{key:"_asPathString",value:function _asPathString(){return this.pathSegTypeAsLetter+" "+this._x+" "+this._y}},{key:"clone",value:function clone(){return new _SVGPathSegMovetoRel(void 0,this._x,this._y)}}]),_SVGPathSegMovetoRel}(t);Object.defineProperties(r.prototype,{x:{get:function get(){return this._x},set:function set(t){this._x=t,this._segmentChanged()},enumerable:!0},y:{get:function get(){return this._y},set:function set(t){this._y=t,this._segmentChanged()},enumerable:!0}});var i=function(e){_inherits(_SVGPathSegLinetoAbs,e);var n=_createSuper(_SVGPathSegLinetoAbs);function _SVGPathSegLinetoAbs(e,r,i){var o;return _classCallCheck(this,_SVGPathSegLinetoAbs),(o=n.call(this,t.PATHSEG_LINETO_ABS,"L",e))._x=r,o._y=i,o}return _createClass(_SVGPathSegLinetoAbs,[{key:"toString",value:function toString(){return"[object SVGPathSegLinetoAbs]"}},{key:"_asPathString",value:function _asPathString(){return this.pathSegTypeAsLetter+" "+this._x+" "+this._y}},{key:"clone",value:function clone(){return new _SVGPathSegLinetoAbs(void 0,this._x,this._y)}}]),_SVGPathSegLinetoAbs}(t);Object.defineProperties(i.prototype,{x:{get:function get(){return this._x},set:function set(t){this._x=t,this._segmentChanged()},enumerable:!0},y:{get:function get(){return this._y},set:function set(t){this._y=t,this._segmentChanged()},enumerable:!0}});var o=function(e){_inherits(_SVGPathSegLinetoRel,e);var n=_createSuper(_SVGPathSegLinetoRel);function _SVGPathSegLinetoRel(e,r,i){var o;return _classCallCheck(this,_SVGPathSegLinetoRel),(o=n.call(this,t.PATHSEG_LINETO_REL,"l",e))._x=r,o._y=i,o}return _createClass(_SVGPathSegLinetoRel,[{key:"toString",value:function toString(){return"[object SVGPathSegLinetoRel]"}},{key:"_asPathString",value:function _asPathString(){return this.pathSegTypeAsLetter+" "+this._x+" "+this._y}},{key:"clone",value:function clone(){return new _SVGPathSegLinetoRel(void 0,this._x,this._y)}}]),_SVGPathSegLinetoRel}(t);Object.defineProperties(o.prototype,{x:{get:function get(){return this._x},set:function set(t){this._x=t,this._segmentChanged()},enumerable:!0},y:{get:function get(){return this._y},set:function set(t){this._y=t,this._segmentChanged()},enumerable:!0}});var a=function(e){_inherits(_SVGPathSegCurvetoCubicAbs,e);var n=_createSuper(_SVGPathSegCurvetoCubicAbs);function _SVGPathSegCurvetoCubicAbs(e,r,i,o,a,s,u){var c;return _classCallCheck(this,_SVGPathSegCurvetoCubicAbs),(c=n.call(this,t.PATHSEG_CURVETO_CUBIC_ABS,"C",e))._x=r,c._y=i,c._x1=o,c._y1=a,c._x2=s,c._y2=u,c}return _createClass(_SVGPathSegCurvetoCubicAbs,[{key:"toString",value:function toString(){return"[object SVGPathSegCurvetoCubicAbs]"}},{key:"_asPathString",value:function _asPathString(){return this.pathSegTypeAsLetter+" "+this._x1+" "+this._y1+" "+this._x2+" "+this._y2+" "+this._x+" "+this._y}},{key:"clone",value:function clone(){return new _SVGPathSegCurvetoCubicAbs(void 0,this._x,this._y,this._x1,this._y1,this._x2,this._y2)}}]),_SVGPathSegCurvetoCubicAbs}(t);Object.defineProperties(a.prototype,{x:{get:function get(){return this._x},set:function set(t){this._x=t,this._segmentChanged()},enumerable:!0},y:{get:function get(){return this._y},set:function set(t){this._y=t,this._segmentChanged()},enumerable:!0},x1:{get:function get(){return this._x1},set:function set(t){this._x1=t,this._segmentChanged()},enumerable:!0},y1:{get:function get(){return this._y1},set:function set(t){this._y1=t,this._segmentChanged()},enumerable:!0},x2:{get:function get(){return this._x2},set:function set(t){this._x2=t,this._segmentChanged()},enumerable:!0},y2:{get:function get(){return this._y2},set:function set(t){this._y2=t,this._segmentChanged()},enumerable:!0}});var s=function(e){_inherits(_SVGPathSegCurvetoCubicRel,e);var n=_createSuper(_SVGPathSegCurvetoCubicRel);function _SVGPathSegCurvetoCubicRel(e,r,i,o,a,s,u){var c;return _classCallCheck(this,_SVGPathSegCurvetoCubicRel),(c=n.call(this,t.PATHSEG_CURVETO_CUBIC_REL,"c",e))._x=r,c._y=i,c._x1=o,c._y1=a,c._x2=s,c._y2=u,c}return _createClass(_SVGPathSegCurvetoCubicRel,[{key:"toString",value:function toString(){return"[object SVGPathSegCurvetoCubicRel]"}},{key:"_asPathString",value:function _asPathString(){return this.pathSegTypeAsLetter+" "+this._x1+" "+this._y1+" "+this._x2+" "+this._y2+" "+this._x+" "+this._y}},{key:"clone",value:function clone(){return new _SVGPathSegCurvetoCubicRel(void 0,this._x,this._y,this._x1,this._y1,this._x2,this._y2)}}]),_SVGPathSegCurvetoCubicRel}(t);Object.defineProperties(s.prototype,{x:{get:function get(){return this._x},set:function set(t){this._x=t,this._segmentChanged()},enumerable:!0},y:{get:function get(){return this._y},set:function set(t){this._y=t,this._segmentChanged()},enumerable:!0},x1:{get:function get(){return this._x1},set:function set(t){this._x1=t,this._segmentChanged()},enumerable:!0},y1:{get:function get(){return this._y1},set:function set(t){this._y1=t,this._segmentChanged()},enumerable:!0},x2:{get:function get(){return this._x2},set:function set(t){this._x2=t,this._segmentChanged()},enumerable:!0},y2:{get:function get(){return this._y2},set:function set(t){this._y2=t,this._segmentChanged()},enumerable:!0}});var u=function(e){_inherits(_SVGPathSegCurvetoQuadraticAbs,e);var n=_createSuper(_SVGPathSegCurvetoQuadraticAbs);function _SVGPathSegCurvetoQuadraticAbs(e,r,i,o,a){var s;return _classCallCheck(this,_SVGPathSegCurvetoQuadraticAbs),(s=n.call(this,t.PATHSEG_CURVETO_QUADRATIC_ABS,"Q",e))._x=r,s._y=i,s._x1=o,s._y1=a,s}return _createClass(_SVGPathSegCurvetoQuadraticAbs,[{key:"toString",value:function toString(){return"[object SVGPathSegCurvetoQuadraticAbs]"}},{key:"_asPathString",value:function _asPathString(){return this.pathSegTypeAsLetter+" "+this._x1+" "+this._y1+" "+this._x+" "+this._y}},{key:"clone",value:function clone(){return new _SVGPathSegCurvetoQuadraticAbs(void 0,this._x,this._y,this._x1,this._y1)}}]),_SVGPathSegCurvetoQuadraticAbs}(t);Object.defineProperties(u.prototype,{x:{get:function get(){return this._x},set:function set(t){this._x=t,this._segmentChanged()},enumerable:!0},y:{get:function get(){return this._y},set:function set(t){this._y=t,this._segmentChanged()},enumerable:!0},x1:{get:function get(){return this._x1},set:function set(t){this._x1=t,this._segmentChanged()},enumerable:!0},y1:{get:function get(){return this._y1},set:function set(t){this._y1=t,this._segmentChanged()},enumerable:!0}});var c=function(e){_inherits(_SVGPathSegCurvetoQuadraticRel,e);var n=_createSuper(_SVGPathSegCurvetoQuadraticRel);function _SVGPathSegCurvetoQuadraticRel(e,r,i,o,a){var s;return _classCallCheck(this,_SVGPathSegCurvetoQuadraticRel),(s=n.call(this,t.PATHSEG_CURVETO_QUADRATIC_REL,"q",e))._x=r,s._y=i,s._x1=o,s._y1=a,s}return _createClass(_SVGPathSegCurvetoQuadraticRel,[{key:"toString",value:function toString(){return"[object SVGPathSegCurvetoQuadraticRel]"}},{key:"_asPathString",value:function _asPathString(){return this.pathSegTypeAsLetter+" "+this._x1+" "+this._y1+" "+this._x+" "+this._y}},{key:"clone",value:function clone(){return new _SVGPathSegCurvetoQuadraticRel(void 0,this._x,this._y,this._x1,this._y1)}}]),_SVGPathSegCurvetoQuadraticRel}(t);Object.defineProperties(c.prototype,{x:{get:function get(){return this._x},set:function set(t){this._x=t,this._segmentChanged()},enumerable:!0},y:{get:function get(){return this._y},set:function set(t){this._y=t,this._segmentChanged()},enumerable:!0},x1:{get:function get(){return this._x1},set:function set(t){this._x1=t,this._segmentChanged()},enumerable:!0},y1:{get:function get(){return this._y1},set:function set(t){this._y1=t,this._segmentChanged()},enumerable:!0}});var h=function(e){_inherits(_SVGPathSegArcAbs,e);var n=_createSuper(_SVGPathSegArcAbs);function _SVGPathSegArcAbs(e,r,i,o,a,s,u,c){var h;return _classCallCheck(this,_SVGPathSegArcAbs),(h=n.call(this,t.PATHSEG_ARC_ABS,"A",e))._x=r,h._y=i,h._r1=o,h._r2=a,h._angle=s,h._largeArcFlag=u,h._sweepFlag=c,h}return _createClass(_SVGPathSegArcAbs,[{key:"toString",value:function toString(){return"[object SVGPathSegArcAbs]"}},{key:"_asPathString",value:function _asPathString(){return this.pathSegTypeAsLetter+" "+this._r1+" "+this._r2+" "+this._angle+" "+(this._largeArcFlag?"1":"0")+" "+(this._sweepFlag?"1":"0")+" "+this._x+" "+this._y}},{key:"clone",value:function clone(){return new _SVGPathSegArcAbs(void 0,this._x,this._y,this._r1,this._r2,this._angle,this._largeArcFlag,this._sweepFlag)}}]),_SVGPathSegArcAbs}(t);Object.defineProperties(h.prototype,{x:{get:function get(){return this._x},set:function set(t){this._x=t,this._segmentChanged()},enumerable:!0},y:{get:function get(){return this._y},set:function set(t){this._y=t,this._segmentChanged()},enumerable:!0},r1:{get:function get(){return this._r1},set:function set(t){this._r1=t,this._segmentChanged()},enumerable:!0},r2:{get:function get(){return this._r2},set:function set(t){this._r2=t,this._segmentChanged()},enumerable:!0},angle:{get:function get(){return this._angle},set:function set(t){this._angle=t,this._segmentChanged()},enumerable:!0},largeArcFlag:{get:function get(){return this._largeArcFlag},set:function set(t){this._largeArcFlag=t,this._segmentChanged()},enumerable:!0},sweepFlag:{get:function get(){return this._sweepFlag},set:function set(t){this._sweepFlag=t,this._segmentChanged()},enumerable:!0}});var l=function(e){_inherits(_SVGPathSegArcRel,e);var n=_createSuper(_SVGPathSegArcRel);function _SVGPathSegArcRel(e,r,i,o,a,s,u,c){var h;return _classCallCheck(this,_SVGPathSegArcRel),(h=n.call(this,t.PATHSEG_ARC_REL,"a",e))._x=r,h._y=i,h._r1=o,h._r2=a,h._angle=s,h._largeArcFlag=u,h._sweepFlag=c,h}return _createClass(_SVGPathSegArcRel,[{key:"toString",value:function toString(){return"[object SVGPathSegArcRel]"}},{key:"_asPathString",value:function _asPathString(){return this.pathSegTypeAsLetter+" "+this._r1+" "+this._r2+" "+this._angle+" "+(this._largeArcFlag?"1":"0")+" "+(this._sweepFlag?"1":"0")+" "+this._x+" "+this._y}},{key:"clone",value:function clone(){return new _SVGPathSegArcRel(void 0,this._x,this._y,this._r1,this._r2,this._angle,this._largeArcFlag,this._sweepFlag)}}]),_SVGPathSegArcRel}(t);Object.defineProperties(l.prototype,{x:{get:function get(){return this._x},set:function set(t){this._x=t,this._segmentChanged()},enumerable:!0},y:{get:function get(){return this._y},set:function set(t){this._y=t,this._segmentChanged()},enumerable:!0},r1:{get:function get(){return this._r1},set:function set(t){this._r1=t,this._segmentChanged()},enumerable:!0},r2:{get:function get(){return this._r2},set:function set(t){this._r2=t,this._segmentChanged()},enumerable:!0},angle:{get:function get(){return this._angle},set:function set(t){this._angle=t,this._segmentChanged()},enumerable:!0},largeArcFlag:{get:function get(){return this._largeArcFlag},set:function set(t){this._largeArcFlag=t,this._segmentChanged()},enumerable:!0},sweepFlag:{get:function get(){return this._sweepFlag},set:function set(t){this._sweepFlag=t,this._segmentChanged()},enumerable:!0}});var f=function(e){_inherits(_SVGPathSegLinetoHorizontalAbs,e);var n=_createSuper(_SVGPathSegLinetoHorizontalAbs);function _SVGPathSegLinetoHorizontalAbs(e,r){var i;return _classCallCheck(this,_SVGPathSegLinetoHorizontalAbs),(i=n.call(this,t.PATHSEG_LINETO_HORIZONTAL_ABS,"H",e))._x=r,i}return _createClass(_SVGPathSegLinetoHorizontalAbs,[{key:"toString",value:function toString(){return"[object SVGPathSegLinetoHorizontalAbs]"}},{key:"_asPathString",value:function _asPathString(){return this.pathSegTypeAsLetter+" "+this._x}},{key:"clone",value:function clone(){return new _SVGPathSegLinetoHorizontalAbs(void 0,this._x)}}]),_SVGPathSegLinetoHorizontalAbs}(t);Object.defineProperty(f.prototype,"x",{get:function get(){return this._x},set:function set(t){this._x=t,this._segmentChanged()},enumerable:!0});var _=function(e){_inherits(_SVGPathSegLinetoHorizontalRel,e);var n=_createSuper(_SVGPathSegLinetoHorizontalRel);function _SVGPathSegLinetoHorizontalRel(e,r){var i;return _classCallCheck(this,_SVGPathSegLinetoHorizontalRel),(i=n.call(this,t.PATHSEG_LINETO_HORIZONTAL_REL,"h",e))._x=r,i}return _createClass(_SVGPathSegLinetoHorizontalRel,[{key:"toString",value:function toString(){return"[object SVGPathSegLinetoHorizontalRel]"}},{key:"_asPathString",value:function _asPathString(){return this.pathSegTypeAsLetter+" "+this._x}},{key:"clone",value:function clone(){return new _SVGPathSegLinetoHorizontalRel(void 0,this._x)}}]),_SVGPathSegLinetoHorizontalRel}(t);Object.defineProperty(_.prototype,"x",{get:function get(){return this._x},set:function set(t){this._x=t,this._segmentChanged()},enumerable:!0});var g=function(e){_inherits(_SVGPathSegLinetoVerticalAbs,e);var n=_createSuper(_SVGPathSegLinetoVerticalAbs);function _SVGPathSegLinetoVerticalAbs(e,r){var i;return _classCallCheck(this,_SVGPathSegLinetoVerticalAbs),(i=n.call(this,t.PATHSEG_LINETO_VERTICAL_ABS,"V",e))._y=r,i}return _createClass(_SVGPathSegLinetoVerticalAbs,[{key:"toString",value:function toString(){return"[object SVGPathSegLinetoVerticalAbs]"}},{key:"_asPathString",value:function _asPathString(){return this.pathSegTypeAsLetter+" "+this._y}},{key:"clone",value:function clone(){return new _SVGPathSegLinetoVerticalAbs(void 0,this._y)}}]),_SVGPathSegLinetoVerticalAbs}(t);Object.defineProperty(g.prototype,"y",{get:function get(){return this._y},set:function set(t){this._y=t,this._segmentChanged()},enumerable:!0});var S=function(e){_inherits(_SVGPathSegLinetoVerticalRel,e);var n=_createSuper(_SVGPathSegLinetoVerticalRel);function _SVGPathSegLinetoVerticalRel(e,r){var i;return _classCallCheck(this,_SVGPathSegLinetoVerticalRel),(i=n.call(this,t.PATHSEG_LINETO_VERTICAL_REL,"v",e))._y=r,i}return _createClass(_SVGPathSegLinetoVerticalRel,[{key:"toString",value:function toString(){return"[object SVGPathSegLinetoVerticalRel]"}},{key:"_asPathString",value:function _asPathString(){return this.pathSegTypeAsLetter+" "+this._y}},{key:"clone",value:function clone(){return new _SVGPathSegLinetoVerticalRel(void 0,this._y)}}]),_SVGPathSegLinetoVerticalRel}(t);Object.defineProperty(S.prototype,"y",{get:function get(){return this._y},set:function set(t){this._y=t,this._segmentChanged()},enumerable:!0});var p=function(e){_inherits(_SVGPathSegCurvetoCubicSmoothAbs,e);var n=_createSuper(_SVGPathSegCurvetoCubicSmoothAbs);function _SVGPathSegCurvetoCubicSmoothAbs(e,r,i,o,a){var s;return _classCallCheck(this,_SVGPathSegCurvetoCubicSmoothAbs),(s=n.call(this,t.PATHSEG_CURVETO_CUBIC_SMOOTH_ABS,"S",e))._x=r,s._y=i,s._x2=o,s._y2=a,s}return _createClass(_SVGPathSegCurvetoCubicSmoothAbs,[{key:"toString",value:function toString(){return"[object SVGPathSegCurvetoCubicSmoothAbs]"}},{key:"_asPathString",value:function _asPathString(){return this.pathSegTypeAsLetter+" "+this._x2+" "+this._y2+" "+this._x+" "+this._y}},{key:"clone",value:function clone(){return new _SVGPathSegCurvetoCubicSmoothAbs(void 0,this._x,this._y,this._x2,this._y2)}}]),_SVGPathSegCurvetoCubicSmoothAbs}(t);Object.defineProperties(p.prototype,{x:{get:function get(){return this._x},set:function set(t){this._x=t,this._segmentChanged()},enumerable:!0},y:{get:function get(){return this._y},set:function set(t){this._y=t,this._segmentChanged()},enumerable:!0},x2:{get:function get(){return this._x2},set:function set(t){this._x2=t,this._segmentChanged()},enumerable:!0},y2:{get:function get(){return this._y2},set:function set(t){this._y2=t,this._segmentChanged()},enumerable:!0}});var y=function(e){_inherits(_SVGPathSegCurvetoCubicSmoothRel,e);var n=_createSuper(_SVGPathSegCurvetoCubicSmoothRel);function _SVGPathSegCurvetoCubicSmoothRel(e,r,i,o,a){var s;return _classCallCheck(this,_SVGPathSegCurvetoCubicSmoothRel),(s=n.call(this,t.PATHSEG_CURVETO_CUBIC_SMOOTH_REL,"s",e))._x=r,s._y=i,s._x2=o,s._y2=a,s}return _createClass(_SVGPathSegCurvetoCubicSmoothRel,[{key:"toString",value:function toString(){return"[object SVGPathSegCurvetoCubicSmoothRel]"}},{key:"_asPathString",value:function _asPathString(){return this.pathSegTypeAsLetter+" "+this._x2+" "+this._y2+" "+this._x+" "+this._y}},{key:"clone",value:function clone(){return new _SVGPathSegCurvetoCubicSmoothRel(void 0,this._x,this._y,this._x2,this._y2)}}]),_SVGPathSegCurvetoCubicSmoothRel}(t);Object.defineProperties(y.prototype,{x:{get:function get(){return this._x},set:function set(t){this._x=t,this._segmentChanged()},enumerable:!0},y:{get:function get(){return this._y},set:function set(t){this._y=t,this._segmentChanged()},enumerable:!0},x2:{get:function get(){return this._x2},set:function set(t){this._x2=t,this._segmentChanged()},enumerable:!0},y2:{get:function get(){return this._y2},set:function set(t){this._y2=t,this._segmentChanged()},enumerable:!0}});var d=function(e){_inherits(_SVGPathSegCurvetoQuadraticSmoothAbs,e);var n=_createSuper(_SVGPathSegCurvetoQuadraticSmoothAbs);function _SVGPathSegCurvetoQuadraticSmoothAbs(e,r,i){var o;return _classCallCheck(this,_SVGPathSegCurvetoQuadraticSmoothAbs),(o=n.call(this,t.PATHSEG_CURVETO_QUADRATIC_SMOOTH_ABS,"T",e))._x=r,o._y=i,o}return _createClass(_SVGPathSegCurvetoQuadraticSmoothAbs,[{key:"toString",value:function toString(){return"[object SVGPathSegCurvetoQuadraticSmoothAbs]"}},{key:"_asPathString",value:function _asPathString(){return this.pathSegTypeAsLetter+" "+this._x+" "+this._y}},{key:"clone",value:function clone(){return new _SVGPathSegCurvetoQuadraticSmoothAbs(void 0,this._x,this._y)}}]),_SVGPathSegCurvetoQuadraticSmoothAbs}(t);Object.defineProperties(d.prototype,{x:{get:function get(){return this._x},set:function set(t){this._x=t,this._segmentChanged()},enumerable:!0},y:{get:function get(){return this._y},set:function set(t){this._y=t,this._segmentChanged()},enumerable:!0}});var v=function(e){_inherits(_SVGPathSegCurvetoQuadraticSmoothRel,e);var n=_createSuper(_SVGPathSegCurvetoQuadraticSmoothRel);function _SVGPathSegCurvetoQuadraticSmoothRel(e,r,i){var o;return _classCallCheck(this,_SVGPathSegCurvetoQuadraticSmoothRel),(o=n.call(this,t.PATHSEG_CURVETO_QUADRATIC_SMOOTH_REL,"t",e))._x=r,o._y=i,o}return _createClass(_SVGPathSegCurvetoQuadraticSmoothRel,[{key:"toString",value:function toString(){return"[object SVGPathSegCurvetoQuadraticSmoothRel]"}},{key:"_asPathString",value:function _asPathString(){return this.pathSegTypeAsLetter+" "+this._x+" "+this._y}},{key:"clone",value:function clone(){return new _SVGPathSegCurvetoQuadraticSmoothRel(void 0,this._x,this._y)}}]),_SVGPathSegCurvetoQuadraticSmoothRel}(t);Object.defineProperties(v.prototype,{x:{get:function get(){return this._x},set:function set(t){this._x=t,this._segmentChanged()},enumerable:!0},y:{get:function get(){return this._y},set:function set(t){this._y=t,this._segmentChanged()},enumerable:!0}}),SVGPathElement.prototype.createSVGPathSegClosePath=function(){return new e(void 0)},SVGPathElement.prototype.createSVGPathSegMovetoAbs=function(t,e){return new n(void 0,t,e)},SVGPathElement.prototype.createSVGPathSegMovetoRel=function(t,e){return new r(void 0,t,e)},SVGPathElement.prototype.createSVGPathSegLinetoAbs=function(t,e){return new i(void 0,t,e)},SVGPathElement.prototype.createSVGPathSegLinetoRel=function(t,e){return new o(void 0,t,e)},SVGPathElement.prototype.createSVGPathSegCurvetoCubicAbs=function(t,e,n,r,i,o){return new a(void 0,t,e,n,r,i,o)},SVGPathElement.prototype.createSVGPathSegCurvetoCubicRel=function(t,e,n,r,i,o){return new s(void 0,t,e,n,r,i,o)},SVGPathElement.prototype.createSVGPathSegCurvetoQuadraticAbs=function(t,e,n,r){return new u(void 0,t,e,n,r)},SVGPathElement.prototype.createSVGPathSegCurvetoQuadraticRel=function(t,e,n,r){return new c(void 0,t,e,n,r)},SVGPathElement.prototype.createSVGPathSegArcAbs=function(t,e,n,r,i,o,a){return new h(void 0,t,e,n,r,i,o,a)},SVGPathElement.prototype.createSVGPathSegArcRel=function(t,e,n,r,i,o,a){return new l(void 0,t,e,n,r,i,o,a)},SVGPathElement.prototype.createSVGPathSegLinetoHorizontalAbs=function(t){return new f(void 0,t)},SVGPathElement.prototype.createSVGPathSegLinetoHorizontalRel=function(t){return new _(void 0,t)},SVGPathElement.prototype.createSVGPathSegLinetoVerticalAbs=function(t){return new g(void 0,t)},SVGPathElement.prototype.createSVGPathSegLinetoVerticalRel=function(t){return new S(void 0,t)},SVGPathElement.prototype.createSVGPathSegCurvetoCubicSmoothAbs=function(t,e,n,r){return new p(void 0,t,e,n,r)},SVGPathElement.prototype.createSVGPathSegCurvetoCubicSmoothRel=function(t,e,n,r){return new y(void 0,t,e,n,r)},SVGPathElement.prototype.createSVGPathSegCurvetoQuadraticSmoothAbs=function(t,e){return new d(void 0,t,e)},SVGPathElement.prototype.createSVGPathSegCurvetoQuadraticSmoothRel=function(t,e){return new v(void 0,t,e)},"getPathSegAtLength"in SVGPathElement.prototype||(SVGPathElement.prototype.getPathSegAtLength=function(t){if(void 0===t||!isFinite(t))throw new Error("Invalid arguments.");var e=document.createElementNS("http://www.w3.org/2000/svg","path");e.setAttribute("d",this.getAttribute("d"));var n=e.pathSegList.numberOfItems-1;if(n<=0)return 0;do{if(e.pathSegList.removeItem(n),t>e.getTotalLength())break;n--}while(n>0);return n}),window.SVGPathSeg=t,window.SVGPathSegClosePath=e,window.SVGPathSegMovetoAbs=n,window.SVGPathSegMovetoRel=r,window.SVGPathSegLinetoAbs=i,window.SVGPathSegLinetoRel=o,window.SVGPathSegCurvetoCubicAbs=a,window.SVGPathSegCurvetoCubicRel=s,window.SVGPathSegCurvetoQuadraticAbs=u,window.SVGPathSegCurvetoQuadraticRel=c,window.SVGPathSegArcAbs=h,window.SVGPathSegArcRel=l,window.SVGPathSegLinetoHorizontalAbs=f,window.SVGPathSegLinetoHorizontalRel=_,window.SVGPathSegLinetoVerticalAbs=g,window.SVGPathSegLinetoVerticalRel=S,window.SVGPathSegCurvetoCubicSmoothAbs=p,window.SVGPathSegCurvetoCubicSmoothRel=y,window.SVGPathSegCurvetoQuadraticSmoothAbs=d,window.SVGPathSegCurvetoQuadraticSmoothRel=v}if(!("SVGPathSegList"in window)||!("appendItem"in window.SVGPathSegList.prototype)){var m=function(){function SVGPathSegList(t){_classCallCheck(this,SVGPathSegList),this._pathElement=t,this._list=this._parsePath(this._pathElement.getAttribute("d")),this._mutationObserverConfig={attributes:!0,attributeFilter:["d"]},this._pathElementMutationObserver=new MutationObserver(this._updateListFromPathMutations.bind(this)),this._pathElementMutationObserver.observe(this._pathElement,this._mutationObserverConfig)}return _createClass(SVGPathSegList,[{key:"_checkPathSynchronizedToList",value:function _checkPathSynchronizedToList(){this._updateListFromPathMutations(this._pathElementMutationObserver.takeRecords())}},{key:"_updateListFromPathMutations",value:function _updateListFromPathMutations(t){if(this._pathElement){var e=!1;t.forEach((function(t){"d"===t.attributeName&&(e=!0)})),e&&(this._list=this._parsePath(this._pathElement.getAttribute("d")))}}},{key:"_writeListToPath",value:function _writeListToPath(){this._pathElementMutationObserver.disconnect(),this._pathElement.setAttribute("d",SVGPathSegList._pathSegArrayAsString(this._list)),this._pathElementMutationObserver.observe(this._pathElement,this._mutationObserverConfig)}},{key:"segmentChanged",value:function segmentChanged(t){this._writeListToPath()}},{key:"clear",value:function clear(){this._checkPathSynchronizedToList(),this._list.forEach((function(t){t._owningPathSegList=null})),this._list=[],this._writeListToPath()}},{key:"initialize",value:function initialize(t){return this._checkPathSynchronizedToList(),this._list=[t],t._owningPathSegList=this,this._writeListToPath(),t}},{key:"_checkValidIndex",value:function _checkValidIndex(t){if(isNaN(t)||t<0||t>=this.numberOfItems)throw new Error("INDEX_SIZE_ERR")}},{key:"getItem",value:function getItem(t){return this._checkPathSynchronizedToList(),this._checkValidIndex(t),this._list[t]}},{key:"insertItemBefore",value:function insertItemBefore(t,e){return this._checkPathSynchronizedToList(),e>this.numberOfItems&&(e=this.numberOfItems),t._owningPathSegList&&(t=t.clone()),this._list.splice(e,0,t),t._owningPathSegList=this,this._writeListToPath(),t}},{key:"replaceItem",value:function replaceItem(t,e){return this._checkPathSynchronizedToList(),t._owningPathSegList&&(t=t.clone()),this._checkValidIndex(e),this._list[e]=t,t._owningPathSegList=this,this._writeListToPath(),t}},{key:"removeItem",value:function removeItem(t){this._checkPathSynchronizedToList(),this._checkValidIndex(t);var e=this._list[t];return this._list.splice(t,1),this._writeListToPath(),e}},{key:"appendItem",value:function appendItem(t){return this._checkPathSynchronizedToList(),t._owningPathSegList&&(t=t.clone()),this._list.push(t),t._owningPathSegList=this,this._writeListToPath(),t}},{key:"_parsePath",value:function _parsePath(t){if(!t||!t.length)return[];var e=this,n=function(){function Builder(){_classCallCheck(this,Builder),this.pathSegList=[]}return _createClass(Builder,[{key:"appendSegment",value:function appendSegment(t){this.pathSegList.push(t)}}]),Builder}(),r=function(){function Source(t){_classCallCheck(this,Source),this._string=t,this._currentIndex=0,this._endIndex=this._string.length,this._previousCommand=SVGPathSeg.PATHSEG_UNKNOWN,this._skipOptionalSpaces()}return _createClass(Source,[{key:"_isCurrentSpace",value:function _isCurrentSpace(){var t=this._string[this._currentIndex];return t<=" "&&(" "===t||"\n"===t||"\t"===t||"\r"===t||"\f"===t)}},{key:"_skipOptionalSpaces",value:function _skipOptionalSpaces(){for(;this._currentIndex<this._endIndex&&this._isCurrentSpace();)this._currentIndex++;return this._currentIndex<this._endIndex}},{key:"_skipOptionalSpacesOrDelimiter",value:function _skipOptionalSpacesOrDelimiter(){return!(this._currentIndex<this._endIndex&&!this._isCurrentSpace()&&","!==this._string.charAt(this._currentIndex))&&(this._skipOptionalSpaces()&&this._currentIndex<this._endIndex&&","===this._string.charAt(this._currentIndex)&&(this._currentIndex++,this._skipOptionalSpaces()),this._currentIndex<this._endIndex)}},{key:"hasMoreData",value:function hasMoreData(){return this._currentIndex<this._endIndex}},{key:"peekSegmentType",value:function peekSegmentType(){var t=this._string[this._currentIndex];return this._pathSegTypeFromChar(t)}},{key:"_pathSegTypeFromChar",value:function _pathSegTypeFromChar(t){switch(t){case"Z":case"z":return SVGPathSeg.PATHSEG_CLOSEPATH;case"M":return SVGPathSeg.PATHSEG_MOVETO_ABS;case"m":return SVGPathSeg.PATHSEG_MOVETO_REL;case"L":return SVGPathSeg.PATHSEG_LINETO_ABS;case"l":return SVGPathSeg.PATHSEG_LINETO_REL;case"C":return SVGPathSeg.PATHSEG_CURVETO_CUBIC_ABS;case"c":return SVGPathSeg.PATHSEG_CURVETO_CUBIC_REL;case"Q":return SVGPathSeg.PATHSEG_CURVETO_QUADRATIC_ABS;case"q":return SVGPathSeg.PATHSEG_CURVETO_QUADRATIC_REL;case"A":return SVGPathSeg.PATHSEG_ARC_ABS;case"a":return SVGPathSeg.PATHSEG_ARC_REL;case"H":return SVGPathSeg.PATHSEG_LINETO_HORIZONTAL_ABS;case"h":return SVGPathSeg.PATHSEG_LINETO_HORIZONTAL_REL;case"V":return SVGPathSeg.PATHSEG_LINETO_VERTICAL_ABS;case"v":return SVGPathSeg.PATHSEG_LINETO_VERTICAL_REL;case"S":return SVGPathSeg.PATHSEG_CURVETO_CUBIC_SMOOTH_ABS;case"s":return SVGPathSeg.PATHSEG_CURVETO_CUBIC_SMOOTH_REL;case"T":return SVGPathSeg.PATHSEG_CURVETO_QUADRATIC_SMOOTH_ABS;case"t":return SVGPathSeg.PATHSEG_CURVETO_QUADRATIC_SMOOTH_REL;default:return SVGPathSeg.PATHSEG_UNKNOWN}}},{key:"_nextCommandHelper",value:function _nextCommandHelper(t,e){return("+"===t||"-"===t||"."===t||t>="0"&&t<="9")&&e!==SVGPathSeg.PATHSEG_CLOSEPATH?e===SVGPathSeg.PATHSEG_MOVETO_ABS?SVGPathSeg.PATHSEG_LINETO_ABS:e===SVGPathSeg.PATHSEG_MOVETO_REL?SVGPathSeg.PATHSEG_LINETO_REL:e:SVGPathSeg.PATHSEG_UNKNOWN}},{key:"initialCommandIsMoveTo",value:function initialCommandIsMoveTo(){if(!this.hasMoreData())return!0;var t=this.peekSegmentType();return t===SVGPathSeg.PATHSEG_MOVETO_ABS||t===SVGPathSeg.PATHSEG_MOVETO_REL}},{key:"_parseNumber",value:function _parseNumber(){var t=0,e=0,n=1,r=0,i=1,o=1,a=this._currentIndex;if(this._skipOptionalSpaces(),this._currentIndex<this._endIndex&&"+"===this._string.charAt(this._currentIndex)?this._currentIndex++:this._currentIndex<this._endIndex&&"-"===this._string.charAt(this._currentIndex)&&(this._currentIndex++,i=-1),!(this._currentIndex===this._endIndex||(this._string.charAt(this._currentIndex)<"0"||this._string.charAt(this._currentIndex)>"9")&&"."!==this._string.charAt(this._currentIndex))){for(var s=this._currentIndex;this._currentIndex<this._endIndex&&this._string.charAt(this._currentIndex)>="0"&&this._string.charAt(this._currentIndex)<="9";)this._currentIndex++;if(this._currentIndex!==s)for(var u=this._currentIndex-1,c=1;u>=s;)e+=c*(this._string.charAt(u--)-"0"),c*=10;if(this._currentIndex<this._endIndex&&"."===this._string.charAt(this._currentIndex)){if(this._currentIndex++,this._currentIndex>=this._endIndex||this._string.charAt(this._currentIndex)<"0"||this._string.charAt(this._currentIndex)>"9")return;for(;this._currentIndex<this._endIndex&&this._string.charAt(this._currentIndex)>="0"&&this._string.charAt(this._currentIndex)<="9";)n*=10,r+=(this._string.charAt(this._currentIndex)-"0")/n,this._currentIndex+=1}if(this._currentIndex!==a&&this._currentIndex+1<this._endIndex&&("e"===this._string.charAt(this._currentIndex)||"E"===this._string.charAt(this._currentIndex))&&"x"!==this._string.charAt(this._currentIndex+1)&&"m"!==this._string.charAt(this._currentIndex+1)){if(this._currentIndex++,"+"===this._string.charAt(this._currentIndex)?this._currentIndex++:"-"===this._string.charAt(this._currentIndex)&&(this._currentIndex++,o=-1),this._currentIndex>=this._endIndex||this._string.charAt(this._currentIndex)<"0"||this._string.charAt(this._currentIndex)>"9")return;for(;this._currentIndex<this._endIndex&&this._string.charAt(this._currentIndex)>="0"&&this._string.charAt(this._currentIndex)<="9";)t*=10,t+=this._string.charAt(this._currentIndex)-"0",this._currentIndex++}var h=e+r;if(h*=i,t&&(h*=Math.pow(10,o*t)),a!==this._currentIndex)return this._skipOptionalSpacesOrDelimiter(),h}}},{key:"_parseArcFlag",value:function _parseArcFlag(){if(!(this._currentIndex>=this._endIndex)){var t=!1,e=this._string.charAt(this._currentIndex++);if("0"===e)t=!1;else{if("1"!==e)return;t=!0}return this._skipOptionalSpacesOrDelimiter(),t}}},{key:"parseSegment",value:function parseSegment(){var t=this._string[this._currentIndex],n=this._pathSegTypeFromChar(t);if(n===SVGPathSeg.PATHSEG_UNKNOWN){if(this._previousCommand===SVGPathSeg.PATHSEG_UNKNOWN)return null;if((n=this._nextCommandHelper(t,this._previousCommand))===SVGPathSeg.PATHSEG_UNKNOWN)return null}else this._currentIndex++;switch(this._previousCommand=n,n){case SVGPathSeg.PATHSEG_MOVETO_REL:return new SVGPathSegMovetoRel(e,this._parseNumber(),this._parseNumber());case SVGPathSeg.PATHSEG_MOVETO_ABS:return new SVGPathSegMovetoAbs(e,this._parseNumber(),this._parseNumber());case SVGPathSeg.PATHSEG_LINETO_REL:return new SVGPathSegLinetoRel(e,this._parseNumber(),this._parseNumber());case SVGPathSeg.PATHSEG_LINETO_ABS:return new SVGPathSegLinetoAbs(e,this._parseNumber(),this._parseNumber());case SVGPathSeg.PATHSEG_LINETO_HORIZONTAL_REL:return new SVGPathSegLinetoHorizontalRel(e,this._parseNumber());case SVGPathSeg.PATHSEG_LINETO_HORIZONTAL_ABS:return new SVGPathSegLinetoHorizontalAbs(e,this._parseNumber());case SVGPathSeg.PATHSEG_LINETO_VERTICAL_REL:return new SVGPathSegLinetoVerticalRel(e,this._parseNumber());case SVGPathSeg.PATHSEG_LINETO_VERTICAL_ABS:return new SVGPathSegLinetoVerticalAbs(e,this._parseNumber());case SVGPathSeg.PATHSEG_CLOSEPATH:return this._skipOptionalSpaces(),new SVGPathSegClosePath(e);case SVGPathSeg.PATHSEG_CURVETO_CUBIC_REL:var r={x1:this._parseNumber(),y1:this._parseNumber(),x2:this._parseNumber(),y2:this._parseNumber(),x:this._parseNumber(),y:this._parseNumber()};return new SVGPathSegCurvetoCubicRel(e,r.x,r.y,r.x1,r.y1,r.x2,r.y2);case SVGPathSeg.PATHSEG_CURVETO_CUBIC_ABS:var i={x1:this._parseNumber(),y1:this._parseNumber(),x2:this._parseNumber(),y2:this._parseNumber(),x:this._parseNumber(),y:this._parseNumber()};return new SVGPathSegCurvetoCubicAbs(e,i.x,i.y,i.x1,i.y1,i.x2,i.y2);case SVGPathSeg.PATHSEG_CURVETO_CUBIC_SMOOTH_REL:var o={x2:this._parseNumber(),y2:this._parseNumber(),x:this._parseNumber(),y:this._parseNumber()};return new SVGPathSegCurvetoCubicSmoothRel(e,o.x,o.y,o.x2,o.y2);case SVGPathSeg.PATHSEG_CURVETO_CUBIC_SMOOTH_ABS:var a={x2:this._parseNumber(),y2:this._parseNumber(),x:this._parseNumber(),y:this._parseNumber()};return new SVGPathSegCurvetoCubicSmoothAbs(e,a.x,a.y,a.x2,a.y2);case SVGPathSeg.PATHSEG_CURVETO_QUADRATIC_REL:var s={x1:this._parseNumber(),y1:this._parseNumber(),x:this._parseNumber(),y:this._parseNumber()};return new SVGPathSegCurvetoQuadraticRel(e,s.x,s.y,s.x1,s.y1);case SVGPathSeg.PATHSEG_CURVETO_QUADRATIC_ABS:var u={x1:this._parseNumber(),y1:this._parseNumber(),x:this._parseNumber(),y:this._parseNumber()};return new SVGPathSegCurvetoQuadraticAbs(e,u.x,u.y,u.x1,u.y1);case SVGPathSeg.PATHSEG_CURVETO_QUADRATIC_SMOOTH_REL:return new SVGPathSegCurvetoQuadraticSmoothRel(e,this._parseNumber(),this._parseNumber());case SVGPathSeg.PATHSEG_CURVETO_QUADRATIC_SMOOTH_ABS:return new SVGPathSegCurvetoQuadraticSmoothAbs(e,this._parseNumber(),this._parseNumber());case SVGPathSeg.PATHSEG_ARC_REL:var c={x1:this._parseNumber(),y1:this._parseNumber(),arcAngle:this._parseNumber(),arcLarge:this._parseArcFlag(),arcSweep:this._parseArcFlag(),x:this._parseNumber(),y:this._parseNumber()};return new SVGPathSegArcRel(e,c.x,c.y,c.x1,c.y1,c.arcAngle,c.arcLarge,c.arcSweep);case SVGPathSeg.PATHSEG_ARC_ABS:var h={x1:this._parseNumber(),y1:this._parseNumber(),arcAngle:this._parseNumber(),arcLarge:this._parseArcFlag(),arcSweep:this._parseArcFlag(),x:this._parseNumber(),y:this._parseNumber()};return new SVGPathSegArcAbs(e,h.x,h.y,h.x1,h.y1,h.arcAngle,h.arcLarge,h.arcSweep);default:throw new Error("Unknown path seg type.")}}}]),Source}(),i=new n,o=new r(t);if(!o.initialCommandIsMoveTo())return[];for(;o.hasMoreData();){var a=o.parseSegment();if(!a)return[];i.appendSegment(a)}return i.pathSegList}}],[{key:"_pathSegArrayAsString",value:function _pathSegArrayAsString(t){var e="",n=!0;return t.forEach((function(t){n?(n=!1,e+=t._asPathString()):e+=" "+t._asPathString()})),e}}]),SVGPathSegList}();m.prototype.classname="SVGPathSegList",Object.defineProperty(m.prototype,"numberOfItems",{get:function get(){return this._checkPathSynchronizedToList(),this._list.length},enumerable:!0}),Object.defineProperties(SVGPathElement.prototype,{pathSegList:{get:function get(){return this._pathSegList||(this._pathSegList=new m(this)),this._pathSegList},enumerable:!0},normalizedPathSegList:{get:function get(){return this.pathSegList},enumerable:!0},animatedPathSegList:{get:function get(){return this.pathSegList},enumerable:!0},animatedNormalizedPathSegList:{get:function get(){return this.pathSegList},enumerable:!0}}),window.SVGPathSegList=m}}();t("default",{name:"closepath",init:function init(t){var e=this;return _asyncToGenerator(regeneratorRuntime.mark((function _callee(){var n,r,i,o,a,s,u,c;return regeneratorRuntime.wrap((function _callee$(h){for(;;)switch(h.prev=h.next){case 0:return t.importLocale,n=t.$,r=e,h.next=4,io("closepath",r.curPrefs.lang);case 4:return i=h.sent,a=function updateButton(t){var e=t.pathSegList,r=1===e.getItem(e.numberOfItems-1).pathSegType,i=r?"#tool_openpath":"#tool_closepath";n(r?"#tool_closepath":"#tool_openpath").hide(),n(i).show()},s=function showPanel(t){if(n("#closepath_panel").toggle(t),t){var e=o[0];e&&a(e)}},u=function toggleClosed(){var t=o[0];if(t){var e=t.pathSegList,n=e.numberOfItems-1;1===e.getItem(n).pathSegType?e.removeItem(n):e.appendItem(t.createSVGPathSegClosePath()),a(t)}},c=[{id:"tool_openpath",icon:"openpath.png",type:"context",panel:"closepath_panel",events:{click:function click(){u()}}},{id:"tool_closepath",icon:"closepath.png",type:"context",panel:"closepath_panel",events:{click:function click(){u()}}}],h.abrupt("return",{name:i.name,svgicons:"closepath_icons.svg",buttons:i.buttons.map((function(t,e){return Object.assign(c[e],t)})),callback:function callback(){n("#closepath_panel").hide()},selectedChanged:function selectedChanged(t){for(var e=(o=t.elems).length;e--;){var n=o[e];n&&"path"===n.tagName&&t.selectedElement&&!t.multiselected?s(!0):s(!1)}}});case 10:case"end":return h.stop()}}),_callee)})))()}})}}}));
|