diff --git a/dist/editor/embedapi.js b/dist/editor/embedapi.js index 4e018cca..4e4af622 100644 --- a/dist/editor/embedapi.js +++ b/dist/editor/embedapi.js @@ -102,7 +102,7 @@ function getMessageListener (t) { * - Have an iframe somewhere pointing to a version of svg-edit > r1000. * @example // Initialize the magic with: -svgCanvas = new EmbeddedSVGEdit(window.frames.svgedit); +const svgCanvas = new EmbeddedSVGEdit(window.frames.svgedit); // Pass functions in this format: svgCanvas.setSvgString('string'); @@ -130,7 +130,7 @@ svgCanvas.setSvgString('string')(function (data, error) { // The only other difference is when handling returns: // the callback notation is used instead. -blah = new EmbeddedSVGEdit(window.frames.svgedit); +const blah = new EmbeddedSVGEdit(window.frames.svgedit); blah.clearSelection('woot', 'blah', 1337, [1, 2, 3, 4, 5, 'moo'], -42, { a: 'tree', b: 6, c: 9 })(function () { console.log('GET DATA', args); }); diff --git a/dist/editor/extensions/ext-closepath/ext-closepath.js b/dist/editor/extensions/ext-closepath/ext-closepath.js index 7b992d0c..8c1e269e 100644 --- a/dist/editor/extensions/ext-closepath/ext-closepath.js +++ b/dist/editor/extensions/ext-closepath/ext-closepath.js @@ -1,4 +1,4 @@ -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}()||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")},f={}.hasOwnProperty,has=function(t,e){return f.call(t,e)},s=e.document,l=isObject(s)&&isObject(s.createElement),documentCreateElement=function(t){return l?s.createElement(t):{}},p=!r&&!fails((function(){return 7!=Object.defineProperty(documentCreateElement("div"),"a",{get:function(){return 7}}).a})),h=Object.getOwnPropertyDescriptor,y={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,d={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 d.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,O,j=m.inspectSource,E=e.WeakMap,x="function"==typeof E&&/native code/.test(j(E)),_=createCommonjsModule((function(t){(t.exports=function(t,e){return m[t]||(m[t]=void 0!==e?e:{})})("versions",[]).push({version:"3.7.0",mode:"global",copyright:"© 2020 Denis Pushkarev (zloirock.ru)"})})),P=0,T=Math.random(),uid=function(t){return"Symbol("+String(void 0===t?"":t)+")_"+(++P+T).toString(36)},A=_("keys"),sharedKey=function(t){return A[t]||(A[t]=uid(t))},I={},L=e.WeakMap;if(x){var k=m.state||(m.state=new L),C=k.get,G=k.has,M=k.set;w=function(t,e){return e.facade=t,M.call(k,t,e),e},S=function(t){return C.call(k,t)||{}},O=function(t){return G.call(k,t)}}else{var R=sharedKey("state");I[R]=!0,w=function(t,e){return e.facade=t,g(t,R,e),e},S=function(t){return has(t,R)?t[R]:{}},O=function(t){return has(t,R)}}var N,D,W={set:w,get:S,has:O,enforce:function(t){return O(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}}},V=createCommonjsModule((function(t){var r=W.get,n=W.enforce,o=String(String).split("String");(t.exports=function(t,r,i,a){var c,u=!!a&&!!a.unsafe,f=!!a&&!!a.enumerable,s=!!a&&!!a.noTargetGet;"function"==typeof i&&("string"!=typeof r||has(i,"name")||g(i,"name",r),(c=n(i)).source||(c.source=o.join("string"==typeof r?r:""))),t!==e?(u?!s&&t[r]&&(f=!0):delete t[r],f?t[r]=i:g(t,r,i)):f?t[r]=i:setGlobal(r,i)})(Function.prototype,"toString",(function toString(){return"function"==typeof this&&r(this).source||j(this)}))})),q=e,aFunction=function(t){return"function"==typeof t?t:void 0},getBuiltIn=function(t,r){return arguments.length<2?aFunction(q[t])||aFunction(e[t]):q[t]&&q[t][r]||e[t]&&e[t][r]},z=Math.ceil,U=Math.floor,toInteger=function(t){return isNaN(t=+t)?0:(t>0?U:z)(t)},B=Math.min,toLength=function(t){return t>0?B(toInteger(t),9007199254740991):0},Y=Math.max,H=Math.min,toAbsoluteIndex=function(t,e){var r=toInteger(t);return r<0?Y(r+e,0):H(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}},$={includes:createMethod(!0),indexOf:createMethod(!1)}.indexOf,objectKeysInternal=function(t,e){var r,n=toIndexedObject(t),o=0,i=[];for(r in n)!has(I,r)&&has(n,r)&&i.push(r);for(;e.length>o;)has(n,r=e[o++])&&(~$(i,r)||i.push(r));return i},J=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],K=J.concat("length","prototype"),Q={f:Object.getOwnPropertyNames||function getOwnPropertyNames(t){return objectKeysInternal(t,K)}},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=d.f,o=y.f,i=0;im;m++)if((a||m in v)&&(h=d(p=v[m],m,y),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:yt.call(w,p)}else if(o)return!1;return i?-1:n||o?o:w}},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)},dt=getBuiltIn("navigator","userAgent")||"",gt=e.process,mt=gt&>.versions,bt=mt&&mt.v8;bt?D=(N=bt.split("."))[0]+N[1]:dt&&(!(N=dt.match(/Edge\/(\d+)/))||N[1]>=74)&&(N=dt.match(/Chrome\/(\d+)/))&&(D=N[1]);var wt=D&&+D,St=wellKnownSymbol("species"),arrayMethodHasSpeciesSupport=function(t){return wt>=51||!fails((function(){var e=[];return(e.constructor={})[St]=function(){return{foo:1}},1!==e[t](Boolean).foo}))},Ot=Object.defineProperty,jt={},thrower=function(t){throw t},arrayMethodUsesToLength=function(t,e){if(has(jt,t))return jt[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 jt[t]=!!n&&!fails((function(){if(o&&!r)return!0;var t={length:-1};o?Ot(t,1,{enumerable:!0,get:thrower}):t[1]=1,n.call(t,i,a)}))},Et=vt.map,xt=arrayMethodHasSpeciesSupport("map"),_t=arrayMethodUsesToLength("map");_export({target:"Array",proto:!0,forced:!xt||!_t},{map:function map(t){return Et(this,t,arguments.length>1?arguments[1]:void 0)}});var Pt=d.f,Tt=Function.prototype,At=Tt.toString,It=/^\s*function ([^ (]*)/;r&&!("name"in Tt)&&Pt(Tt,"name",{configurable:!0,get:function(){try{return At.call(this).match(It)[1]}catch(t){return""}}});var Lt=Object.keys||function keys(t){return objectKeysInternal(t,J)},kt=Object.assign,Ct=Object.defineProperty,Gt=!kt||fails((function(){if(r&&1!==kt({b:1},kt(Ct({},"a",{enumerable:!0,get:function(){Ct(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!=kt({},t)[n]||Lt(kt({},e)).join("")!=o}))?function assign(t,e){for(var n=toObject(t),o=arguments.length,a=1,c=X.f,f=i.f;o>a;)for(var s,l=u(arguments[a++]),p=c?Lt(l).concat(c(l)):Lt(l),h=p.length,y=0;h>y;)s=p[y++],r&&!f.call(l,s)||(n[s]=l[s]);return n}:kt;_export({target:"Object",stat:!0,forced:Object.assign!==Gt},{assign:Gt});var Mt={};Mt[wellKnownSymbol("toStringTag")]="z";var Ft="[object z]"===String(Mt),Rt=wellKnownSymbol("toStringTag"),Nt="Arguments"==classofRaw(function(){return arguments}()),Dt=Ft?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),Rt))?r:Nt?classofRaw(e):"Object"==(n=classofRaw(e))&&"function"==typeof e.callee?"Arguments":n},Wt=Ft?{}.toString:function toString(){return"[object "+Dt(this)+"]"};Ft||V(Object.prototype,"toString",Wt,{unsafe:!0});var Vt=e.Promise,qt=d.f,zt=wellKnownSymbol("toStringTag"),setToStringTag=function(t,e,r){t&&!has(t=r?t:t.prototype,zt)&&qt(t,zt,{configurable:!0,value:e})},Ut=wellKnownSymbol("species"),Bt={},Yt=wellKnownSymbol("iterator"),Ht=Array.prototype,$t=wellKnownSymbol("iterator"),iteratorClose=function(t){var e=t.return;if(void 0!==e)return anObject(e.call(t)).value},Result=function(t,e){this.stopped=t,this.result=e},iterate=function(t,e,r){var n,o,i,a,c,u,f,s,l=r&&r.that,p=!(!r||!r.AS_ENTRIES),h=!(!r||!r.IS_ITERATOR),y=!(!r||!r.INTERRUPTED),v=functionBindContext(e,l,1+p+y),stop=function(t){return n&&iteratorClose(n),new Result(!0,t)},callFn=function(t){return p?(anObject(t),y?v(t[0],t[1],stop):v(t[0],t[1])):y?v(t,stop):v(t)};if(h)n=t;else{if("function"!=typeof(o=function(t){if(null!=t)return t[$t]||t["@@iterator"]||Bt[Dt(t)]}(t)))throw TypeError("Target is not iterable");if(void 0!==(s=o)&&(Bt.Array===s||Ht[Yt]===s)){for(i=0,a=toLength(t.length);a>i;i++)if((c=callFn(t[i]))&&c instanceof Result)return c;return new Result(!1)}n=o.call(t)}for(u=n.next;!(f=u.call(n)).done;){try{c=callFn(f.value)}catch(t){throw iteratorClose(n),t}if("object"==typeof c&&c&&c instanceof Result)return c}return new Result(!1)},Jt=wellKnownSymbol("iterator"),Kt=!1;try{var Qt=0,Xt={next:function(){return{done:!!Qt++}},return:function(){Kt=!0}};Xt[Jt]=function(){return this},Array.from(Xt,(function(){throw 2}))}catch(t){}var Zt,te,ee,re=wellKnownSymbol("species"),ne=getBuiltIn("document","documentElement"),oe=/(iphone|ipod|ipad).*applewebkit/i.test(dt),ie="process"==classofRaw(e.process),ae=e.location,ce=e.setImmediate,ue=e.clearImmediate,fe=e.process,se=e.MessageChannel,le=e.Dispatch,pe=0,he={},run=function(t){if(he.hasOwnProperty(t)){var e=he[t];delete he[t],e()}},runner=function(t){return function(){run(t)}},listener=function(t){run(t.data)},post=function(t){e.postMessage(t+"",ae.protocol+"//"+ae.host)};ce&&ue||(ce=function setImmediate(t){for(var e=[],r=1;arguments.length>r;)e.push(arguments[r++]);return he[++pe]=function(){("function"==typeof t?t:Function(t)).apply(void 0,e)},Zt(pe),pe},ue=function clearImmediate(t){delete he[t]},ie?Zt=function(t){fe.nextTick(runner(t))}:le&&le.now?Zt=function(t){le.now(runner(t))}:se&&!oe?(ee=(te=new se).port2,te.port1.onmessage=listener,Zt=functionBindContext(ee.postMessage,ee,1)):e.addEventListener&&"function"==typeof postMessage&&!e.importScripts&&ae&&"file:"!==ae.protocol&&!fails(post)?(Zt=post,e.addEventListener("message",listener,!1)):Zt="onreadystatechange"in documentCreateElement("script")?function(t){ne.appendChild(documentCreateElement("script")).onreadystatechange=function(){ne.removeChild(this),run(t)}}:function(t){setTimeout(runner(t),0)});var ye,ve,de,ge,me,be,we,Se,Oe={set:ce,clear:ue},je=y.f,Ee=Oe.set,xe=e.MutationObserver||e.WebKitMutationObserver,_e=e.document,Pe=e.process,Te=e.Promise,Ae=je(e,"queueMicrotask"),Ie=Ae&&Ae.value;Ie||(ye=function(){var t,e;for(ie&&(t=Pe.domain)&&t.exit();ve;){e=ve.fn,ve=ve.next;try{e()}catch(t){throw ve?ge():de=void 0,t}}de=void 0,t&&t.enter()},!oe&&!ie&&xe&&_e?(me=!0,be=_e.createTextNode(""),new xe(ye).observe(be,{characterData:!0}),ge=function(){be.data=me=!me}):Te&&Te.resolve?(we=Te.resolve(void 0),Se=we.then,ge=function(){Se.call(we,ye)}):ge=ie?function(){Pe.nextTick(ye)}:function(){Ee.call(e,ye)});var Le,ke,Ce,Ge,Me=Ie||function(t){var e={fn:t,next:void 0};de&&(de.next=e),ve||(ve=e,ge()),de=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)},Fe={f:function(t){return new PromiseCapability(t)}},promiseResolve=function(t,e){if(anObject(t),isObject(e)&&e.constructor===t)return e;var r=Fe.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}}},Re=Oe.set,Ne=wellKnownSymbol("species"),De="Promise",We=W.get,Ve=W.set,qe=W.getterFor(De),ze=Vt,Ue=e.TypeError,Be=e.document,Ye=e.process,He=getBuiltIn("fetch"),$e=Fe.f,Je=$e,Ke=!!(Be&&Be.createEvent&&e.dispatchEvent),Qe="function"==typeof PromiseRejectionEvent,Xe=it(De,(function(){if(!(j(ze)!==String(ze))){if(66===wt)return!0;if(!ie&&!Qe)return!0}if(wt>=51&&/native code/.test(ze))return!1;var t=ze.resolve(1),FakePromise=function(t){t((function(){}),(function(){}))};return(t.constructor={})[Ne]=FakePromise,!(t.then((function(){}))instanceof FakePromise)})),Ze=Xe||!function(t,e){if(!e&&!Kt)return!1;var r=!1;try{var n={};n[Jt]=function(){return{next:function(){return{done:r=!0}}}},t(n)}catch(t){}return r}((function(t){ze.all(t).catch((function(){}))})),isThenable=function(t){var e;return!(!isObject(t)||"function"!=typeof(e=t.then))&&e},notify$1=function(t,e){if(!t.notified){t.notified=!0;var r=t.reactions;Me((function(){for(var n=t.value,o=1==t.state,i=0;r.length>i;){var a,c,u,f=r[i++],s=o?f.ok:f.fail,l=f.resolve,p=f.reject,h=f.domain;try{s?(o||(2===t.rejection&&onHandleUnhandled(t),t.rejection=1),!0===s?a=n:(h&&h.enter(),a=s(n),h&&(h.exit(),u=!0)),a===f.promise?p(Ue("Promise-chain cycle")):(c=isThenable(a))?c.call(a,l,p):l(a)):p(n)}catch(t){h&&!u&&h.exit(),p(t)}}t.reactions=[],t.notified=!1,e&&!t.rejection&&onUnhandled(t)}))}},dispatchEvent=function(t,r,n){var o,i;Ke?((o=Be.createEvent("Event")).promise=r,o.reason=n,o.initEvent(t,!1,!0),e.dispatchEvent(o)):o={promise:r,reason:n},!Qe&&(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){Re.call(e,(function(){var e,r=t.facade,n=t.value;if(isUnhandled(t)&&(e=perform((function(){ie?Ye.emit("unhandledRejection",n,r):dispatchEvent("unhandledrejection",r,n)})),t.rejection=ie||isUnhandled(t)?2:1,e.error))throw e.value}))},isUnhandled=function(t){return 1!==t.rejection&&!t.parent},onHandleUnhandled=function(t){Re.call(e,(function(){var e=t.facade;ie?Ye.emit("rejectionHandled",e):dispatchEvent("rejectionhandled",e,t.value)}))},bind=function(t,e,r){return function(n){t(e,n,r)}},internalReject=function(t,e,r){t.done||(t.done=!0,r&&(t=r),t.value=e,t.state=2,notify$1(t,!0))},internalResolve=function(t,e,r){if(!t.done){t.done=!0,r&&(t=r);try{if(t.facade===e)throw Ue("Promise can't be resolved itself");var n=isThenable(e);n?Me((function(){var r={done:!1};try{n.call(e,bind(internalResolve,r,t),bind(internalReject,r,t))}catch(e){internalReject(r,e,t)}})):(t.value=e,t.state=1,notify$1(t,!1))}catch(e){internalReject({done:!1},e,t)}}};Xe&&(ze=function Promise(t){!function(t,e,r){if(!(t instanceof e))throw TypeError("Incorrect "+(r?r+" ":"")+"invocation")}(this,ze,De),aFunction$1(t),Le.call(this);var e=We(this);try{t(bind(internalResolve,e),bind(internalReject,e))}catch(t){internalReject(e,t)}},(Le=function Promise(t){Ve(this,{type:De,done:!1,notified:!1,parent:!1,reactions:[],rejection:!1,state:0,value:void 0})}).prototype=function(t,e,r){for(var n in e)V(t,n,e[n],r);return t}(ze.prototype,{then:function then(t,e){var r,n,o,i=qe(this),a=$e((r=ze,void 0===(o=anObject(this).constructor)||null==(n=anObject(o)[re])?r:aFunction$1(n)));return a.ok="function"!=typeof t||t,a.fail="function"==typeof e&&e,a.domain=ie?Ye.domain:void 0,i.parent=!0,i.reactions.push(a),0!=i.state&¬ify$1(i,!1),a.promise},catch:function(t){return this.then(void 0,t)}}),ke=function(){var t=new Le,e=We(t);this.promise=t,this.resolve=bind(internalResolve,e),this.reject=bind(internalReject,e)},Fe.f=$e=function(t){return t===ze||t===Ce?new ke(t):Je(t)},"function"==typeof Vt&&(Ge=Vt.prototype.then,V(Vt.prototype,"then",(function then(t,e){var r=this;return new ze((function(t,e){Ge.call(r,t,e)})).then(t,e)}),{unsafe:!0}),"function"==typeof He&&_export({global:!0,enumerable:!0,forced:!0},{fetch:function fetch(t){return promiseResolve(ze,He.apply(e,arguments))}}))),_export({global:!0,wrap:!0,forced:Xe},{Promise:ze}),setToStringTag(ze,De,!1),function(t){var e=getBuiltIn(t),n=d.f;r&&e&&!e[Ut]&&n(e,Ut,{configurable:!0,get:function(){return this}})}(De),Ce=getBuiltIn(De),_export({target:De,stat:!0,forced:Xe},{reject:function reject(t){var e=$e(this);return e.reject.call(void 0,t),e.promise}}),_export({target:De,stat:!0,forced:Xe},{resolve:function resolve(t){return promiseResolve(this,t)}}),_export({target:De,stat:!0,forced:Ze},{all:function all(t){var e=this,r=$e(e),n=r.resolve,o=r.reject,i=perform((function(){var r=aFunction$1(e.resolve),i=[],a=0,c=1;iterate(t,(function(t){var u=a++,f=!1;i.push(void 0),c++,r.call(e,t).then((function(t){f||(f=!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=$e(e),n=r.reject,o=perform((function(){var o=aFunction$1(e.resolve);iterate(t,(function(t){o.call(e,t).then(r.resolve,n)}))}));return o.error&&n(o.value),r.promise}});var tr,er=r?Object.defineProperties:function defineProperties(t,e){anObject(t);for(var r,n=Lt(e),o=n.length,i=0;o>i;)d.f(t,r=n[i++],e[r]);return t},rr=sharedKey("IE_PROTO"),EmptyConstructor=function(){},scriptTag=function(t){return"`, */\n // mathjaxSrc = 'http://cdn.mathjax.org/mathjax/latest/MathJax.js',\n // Had been on https://c328740.ssl.cf1.rackcdn.com/mathjax/latest/MathJax.js?config=TeX-AMS-MML_SVG.js\n // Obtained Text-AMS-MML_SVG.js from https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.3/config/TeX-AMS-MML_SVG.js\n {uiStrings} = svgEditor;\n let\n math,\n locationX,\n locationY,\n mathjaxLoaded = false;\n\n // TODO: Implement language support. Move these uiStrings to the locale files and\n // the code to the langReady callback. Also i18nize alert and HTML below\n $.extend(uiStrings, {\n mathjax: {\n embed_svg: 'Save as mathematics',\n embed_mathml: 'Save as figure',\n svg_save_warning: 'The math will be transformed into a figure is ' +\n 'manipulatable like everything else. You will not be able to ' +\n 'manipulate the TeX-code anymore.',\n mathml_save_warning: 'Advised. The math will be saved as a figure.',\n title: 'Mathematics code editor'\n }\n });\n\n /**\n *\n * @returns {void}\n */\n function saveMath () {\n const code = $('#mathjax_code_textarea').val();\n // displaystyle to force MathJax NOT to use the inline style. Because it is\n // less fancy!\n MathJax.Hub.queue.Push(['Text', math, '\\\\displaystyle{' + code + '}']);\n\n /*\n * The MathJax library doesn't want to bloat your webpage so it creates\n * every symbol (glymph) you need only once. These are saved in a `` on\n * the top of your html document, just under the body tag. Each glymph has\n * its unique id and is saved as a `` in the `` tag of the ``\n *\n * Then when the symbols are needed in the rest of your html document they\n * are refferd to by a `` tag.\n * Because of bug 1076 we can't just grab the defs tag on the top and add it\n * to your formula's `` and copy the lot. So we have to replace each\n * `` tag by its ``.\n */\n MathJax.Hub.queue.Push(\n function () {\n const mathjaxMath = $('.MathJax_SVG');\n const svg = $(mathjaxMath.html());\n svg.find('use').each(function () {\n // TODO: find a less pragmatic and more elegant solution to this.\n const id = $(this).attr('href')\n ? $(this).attr('href').slice(1) // Works in Chrome.\n : $(this).attr('xlink:href').slice(1); // Works in Firefox.\n const glymph = $('#' + id).clone().removeAttr('id');\n const x = $(this).attr('x');\n const y = $(this).attr('y');\n const transform = $(this).attr('transform');\n if (transform && (x || y)) {\n glymph.attr('transform', transform + ' translate(' + x + ',' + y + ')');\n } else if (transform) {\n glymph.attr('transform', transform);\n } else if (x || y) {\n glymph.attr('transform', 'translate(' + x + ',' + y + ')');\n }\n $(this).replaceWith(glymph);\n });\n // Remove the style tag because it interferes with SVG-Edit.\n svg.removeAttr('style');\n svg.attr('xmlns', 'http://www.w3.org/2000/svg');\n svgCanvas.importSvgString($('
').append(svg.clone()).html(), true);\n svgCanvas.ungroupSelectedElement();\n // TODO: To undo the adding of the Formula you now have to undo twice.\n // This should only be once!\n svgCanvas.moveSelectedElements(locationX, locationY, true);\n }\n );\n }\n\n const buttons = [{\n id: 'tool_mathjax',\n type: 'mode',\n icon: 'mathjax.png',\n events: {\n async click () {\n // Set the mode.\n svgCanvas.setMode('mathjax');\n\n // Only load Mathjax when needed, we don't want to strain Svg-Edit any more.\n // From this point on it is very probable that it will be needed, so load it.\n if (mathjaxLoaded === false) {\n $(\n '
' +\n '' +\n '
' +\n '$${}$$' +\n '
' +\n '
' +\n '
' +\n '
' +\n '' +\n '' +\n '
' +\n '
' +\n 'Mathematics Editor' +\n '' +\n '' +\n '
' +\n '
' +\n '
'\n ).insertAfter('#svg_prefs').hide();\n\n // Make the MathEditor draggable.\n $('#mathjax_container').draggable({\n cancel: 'button,fieldset',\n containment: 'window'\n });\n\n // Add functionality and picture to cancel button.\n $('#tool_mathjax_cancel').prepend($.getSvgIcon('cancel', true))\n .on('click touched', function () {\n $('#mathjax').hide();\n });\n\n // Add functionality and picture to the save button.\n $('#tool_mathjax_save').prepend($.getSvgIcon('ok', true))\n .on('click touched', function () {\n saveMath();\n $('#mathjax').hide();\n });\n\n // MathJax preprocessing has to ignore most of the page.\n $('body').addClass('tex2jax_ignore');\n\n try {\n await import('./mathjax/MathJax.min.js'); // ?config=TeX-AMS-MML_SVG.js');\n // When MathJax is loaded get the div where the math will be rendered.\n MathJax.Hub.queue.Push(function () {\n math = MathJax.Hub.getAllJax('#mathjax_creator')[0];\n console.log(math); // eslint-disable-line no-console\n mathjaxLoaded = true;\n console.log('MathJax Loaded'); // eslint-disable-line no-console\n });\n } catch (e) {\n console.log('Failed loading MathJax.'); // eslint-disable-line no-console\n $.alert('Failed loading MathJax. You will not be able to change the mathematics.');\n }\n }\n }\n }\n }];\n\n return {\n name: strings.name,\n svgicons: 'mathjax-icons.xml',\n buttons: strings.buttons.map((button, i) => {\n return Object.assign(buttons[i], button);\n }),\n\n mouseDown () {\n if (svgCanvas.getMode() === 'mathjax') {\n return {started: true};\n }\n return undefined;\n },\n mouseUp (opts) {\n if (svgCanvas.getMode() === 'mathjax') {\n // Get the coordinates from your mouse.\n const zoom = svgCanvas.getZoom();\n // Get the actual coordinate by dividing by the zoom value\n locationX = opts.mouse_x / zoom;\n locationY = opts.mouse_y / zoom;\n\n $('#mathjax').show();\n return {started: false}; // Otherwise the last selected object dissapears.\n }\n return undefined;\n },\n callback () {\n $('\n
\n icon\n
\n';var as=function(Tn){_inherits(ToolButton,_wrapNativeSuper(HTMLElement));var Un=_createSuper(ToolButton);function ToolButton(){var Tn;return _classCallCheck(this,ToolButton),(Tn=Un.call(this))._shadowRoot=Tn.attachShadow({mode:"open"}),Tn._shadowRoot.appendChild(os.content.cloneNode(!0)),Tn.$div=Tn._shadowRoot.querySelector("div"),Tn.$img=Tn._shadowRoot.querySelector("img"),Tn}return _createClass(ToolButton,[{key:"attributeChangedCallback",value:function attributeChangedCallback(Tn,Un,Qn){if(Un!==Qn)switch(Tn){case"title":var Dn=this.getAttribute("shortcut");this.$div.setAttribute("title","".concat(Qn," ").concat(Dn?"[".concat(Dn,"]"):""));break;case"style":this.$div.style=Qn;break;case"src":this.$img.setAttribute("src",Qn);break;case"pressed":Qn?this.$div.classList.add("pressed"):this.$div.classList.remove("pressed");break;case"size":"small"===Qn?this.$div.classList.add("small"):this.$div.classList.remove("small");break;case"disabled":Qn?this.$div.classList.add("disabled"):this.$div.classList.remove("disabled");break;default:console.error("unknown attribute: ".concat(Tn))}}},{key:"connectedCallback",value:function connectedCallback(){var Tn=this,Un=this.getAttribute("shortcut");Un&&document.addEventListener("keydown",(function(Qn){if("BODY"===Qn.target.nodeName){var Dn="".concat(Qn.metaKey?"meta+":"").concat(Qn.ctrlKey?"ctrl+":"").concat(Qn.key.toUpperCase());Un===Dn&&(Tn.click(),Qn.preventDefault())}}))}},{key:"title",get:function get(){return this.getAttribute("title")},set:function set(Tn){this.setAttribute("title",Tn)}},{key:"pressed",get:function get(){return this.hasAttribute("pressed")},set:function set(Tn){Tn?this.setAttribute("pressed","true"):this.removeAttribute("pressed","")}},{key:"disabled",get:function get(){return this.hasAttribute("disabled")},set:function set(Tn){Tn?this.setAttribute("disabled","true"):this.removeAttribute("disabled","")}},{key:"src",get:function get(){return this.getAttribute("src")},set:function set(Tn){this.setAttribute("src",Tn)}},{key:"size",get:function get(){return this.getAttribute("size")},set:function set(Tn){this.setAttribute("size",Tn)}}],[{key:"observedAttributes",get:function get(){return["title","src","pressed","disabled","size","style"]}}]),ToolButton}();customElements.define("se-button",as);var ss=document.createElement("template");ss.innerHTML='\n \n \n
\n \n \n
\n \n';var ls=function(Tn){_inherits(FlyingButton,_wrapNativeSuper(HTMLElement));var Un=_createSuper(FlyingButton);function FlyingButton(){var Tn;return _classCallCheck(this,FlyingButton),(Tn=Un.call(this))._shadowRoot=Tn.attachShadow({mode:"open"}),Tn._shadowRoot.appendChild(ss.content.cloneNode(!0)),Tn.$button=Tn._shadowRoot.querySelector(".menu-button"),Tn.$handle=Tn._shadowRoot.querySelector(".handle"),Tn.$overall=Tn._shadowRoot.querySelector(".overall"),Tn.$img=Tn._shadowRoot.querySelector("img"),Tn.$menu=Tn._shadowRoot.querySelector(".menu"),Tn.$elements=Tn.$menu.lastElementChild.assignedElements(),Tn}return _createClass(FlyingButton,[{key:"attributeChangedCallback",value:function attributeChangedCallback(Tn,Un,Qn){if(Un!==Qn)switch(Tn){case"title":var Dn=this.getAttribute("shortcut");this.$button.setAttribute("title","".concat(Qn," [").concat(Dn,"]"));break;case"pressed":Qn?this.$overall.classList.add("pressed"):this.$overall.classList.remove("pressed");break;case"disabled":Qn?this.$div.classList.add("disabled"):this.$div.classList.remove("disabled");break;default:console.error("unknown attribute: ".concat(Tn))}}},{key:"connectedCallback",value:function connectedCallback(){var Tn=this;this.activeSlot=this.shadowRoot.querySelector("slot").assignedElements()[0],this.$img.setAttribute("src",this.activeSlot.getAttribute("src"));var Un=function onClickHandler(Un){switch(Un.stopPropagation(),Un.target.nodeName){case"SE-FLYINGBUTTON":Tn.pressed?Tn.$menu.classList.toggle("open"):(Tn.activeSlot.click(),Tn.setAttribute("pressed","pressed"));break;case"SE-BUTTON":Tn.$img.setAttribute("src",Un.target.getAttribute("src")),Tn.activeSlot=Un.target,Tn.setAttribute("pressed","pressed"),Tn.$menu.classList.remove("open");break;case"DIV":Tn.$menu.classList.toggle("open");break;default:console.error("unkonw nodeName for:",Un.target,Un.target.className)}};this.addEventListener("click",Un),this.$handle.addEventListener("click",Un)}},{key:"title",get:function get(){return this.getAttribute("title")},set:function set(Tn){this.setAttribute("title",Tn)}},{key:"pressed",get:function get(){return this.hasAttribute("pressed")},set:function set(Tn){Tn?this.setAttribute("pressed","true"):this.removeAttribute("pressed","")}},{key:"disabled",get:function get(){return this.hasAttribute("disabled")},set:function set(Tn){Tn?this.setAttribute("disabled","true"):this.removeAttribute("disabled","")}}],[{key:"observedAttributes",get:function get(){return["title","pressed","disabled"]}}]),FlyingButton}();customElements.define("se-flyingbutton",ls);var us=function fill(Tn){for(var Un=toObject(this),Qn=toLength(Un.length),Dn=arguments.length,Hn=toAbsoluteIndex(Dn>1?arguments[1]:void 0,Qn),Gn=Dn>2?arguments[2]:void 0,Vn=void 0===Gn?Qn:toAbsoluteIndex(Gn,Qn);Vn>Hn;)Un[Hn++]=Tn;return Un};_export({target:"Array",proto:!0},{fill:us}),addToUnscopables("fill");var ds=ui.forEach,hs=arrayMethodIsStrict("forEach"),ps=arrayMethodUsesToLength("forEach"),As=hs&&ps?[].forEach:function forEach(Tn){return ds(this,Tn,arguments.length>1?arguments[1]:void 0)};_export({target:"Array",proto:!0,forced:[].forEach!=As},{forEach:As});var fs=Gn.f,createMethod$4=function(Tn){return function(Un){for(var Dn,Hn=toIndexedObject(Un),Gn=mi(Hn),Vn=Gn.length,zn=0,Kn=[];Vn>zn;)Dn=Gn[zn++],Qn&&!fs.call(Hn,Dn)||Kn.push(Tn?[Dn,Hn[Dn]]:Hn[Dn]);return Kn}},gs={entries:createMethod$4(!0),values:createMethod$4(!1)},ms=gs.entries;_export({target:"Object",stat:!0},{entries:function entries(Tn){return ms(Tn)}});var _s=Un.Promise,redefineAll=function(Tn,Un,Qn){for(var Dn in Un)kr(Tn,Dn,Un[Dn],Qn);return Tn},anInstance=function(Tn,Un,Qn){if(!(Tn instanceof Un))throw TypeError("Incorrect "+(Qn?Qn+" ":"")+"invocation");return Tn},vs=wellKnownSymbol("iterator"),ys=Array.prototype,isArrayIteratorMethod=function(Tn){return void 0!==Tn&&(Ca.Array===Tn||ys[vs]===Tn)},bs=wellKnownSymbol("iterator"),getIteratorMethod=function(Tn){if(null!=Tn)return Tn[bs]||Tn["@@iterator"]||Ca[Ao(Tn)]},callWithSafeIterationClosing=function(Tn,Un,Qn,Dn){try{return Dn?Un(anObject(Qn)[0],Qn[1]):Un(Qn)}catch(Un){var Hn=Tn.return;throw void 0!==Hn&&anObject(Hn.call(Tn)),Un}},ws=createCommonjsModule((function(Tn){var Result=function(Tn,Un){this.stopped=Tn,this.result=Un};(Tn.exports=function(Tn,Un,Qn,Dn,Hn){var Gn,Vn,zn,Kn,Wn,Xn,Yn,Jn=functionBindContext(Un,Qn,Dn?2:1);if(Hn)Gn=Tn;else{if("function"!=typeof(Vn=getIteratorMethod(Tn)))throw TypeError("Target is not iterable");if(isArrayIteratorMethod(Vn)){for(zn=0,Kn=toLength(Tn.length);Kn>zn;zn++)if((Wn=Dn?Jn(anObject(Yn=Tn[zn])[0],Yn[1]):Jn(Tn[zn]))&&Wn instanceof Result)return Wn;return new Result(!1)}Gn=Vn.call(Tn)}for(Xn=Gn.next;!(Yn=Xn.call(Gn)).done;)if("object"==typeof(Wn=callWithSafeIterationClosing(Gn,Jn,Yn.value,Dn))&&Wn&&Wn instanceof Result)return Wn;return new Result(!1)}).stop=function(Tn){return new Result(!0,Tn)}})),xs=wellKnownSymbol("iterator"),Ss=!1;try{var ks=0,Cs={next:function(){return{done:!!ks++}},return:function(){Ss=!0}};Cs[xs]=function(){return this},Array.from(Cs,(function(){throw 2}))}catch(Tn){}var Bs,Es,Ns,checkCorrectnessOfIteration=function(Tn,Un){if(!Un&&!Ss)return!1;var Qn=!1;try{var Dn={};Dn[xs]=function(){return{next:function(){return{done:Qn=!0}}}},Tn(Dn)}catch(Tn){}return Qn},Ls=/(iphone|ipod|ipad).*applewebkit/i.test(Zr),Ts=Un.location,Ps=Un.setImmediate,Fs=Un.clearImmediate,Us=Un.process,Is=Un.MessageChannel,Rs=Un.Dispatch,Ms=0,Os={},run=function(Tn){if(Os.hasOwnProperty(Tn)){var Un=Os[Tn];delete Os[Tn],Un()}},runner=function(Tn){return function(){run(Tn)}},listener=function(Tn){run(Tn.data)},post=function(Tn){Un.postMessage(Tn+"",Ts.protocol+"//"+Ts.host)};Ps&&Fs||(Ps=function setImmediate(Tn){for(var Un=[],Qn=1;arguments.length>Qn;)Un.push(arguments[Qn++]);return Os[++Ms]=function(){("function"==typeof Tn?Tn:Function(Tn)).apply(void 0,Un)},Bs(Ms),Ms},Fs=function clearImmediate(Tn){delete Os[Tn]},"process"==classofRaw(Us)?Bs=function(Tn){Us.nextTick(runner(Tn))}:Rs&&Rs.now?Bs=function(Tn){Rs.now(runner(Tn))}:Is&&!Ls?(Ns=(Es=new Is).port2,Es.port1.onmessage=listener,Bs=functionBindContext(Ns.postMessage,Ns,1)):!Un.addEventListener||"function"!=typeof postMessage||Un.importScripts||fails(post)||"file:"===Ts.protocol?Bs="onreadystatechange"in documentCreateElement("script")?function(Tn){vi.appendChild(documentCreateElement("script")).onreadystatechange=function(){vi.removeChild(this),run(Tn)}}:function(Tn){setTimeout(runner(Tn),0)}:(Bs=post,Un.addEventListener("message",listener,!1)));var Qs,Ds,js,Hs,Gs,Vs,zs,Ks,qs={set:Ps,clear:Fs},Ws=Zn.f,Xs=qs.set,Ys=Un.MutationObserver||Un.WebKitMutationObserver,Js=Un.process,$s=Un.Promise,Zs="process"==classofRaw(Js),el=Ws(Un,"queueMicrotask"),tl=el&&el.value;tl||(Qs=function(){var Tn,Un;for(Zs&&(Tn=Js.domain)&&Tn.exit();Ds;){Un=Ds.fn,Ds=Ds.next;try{Un()}catch(Tn){throw Ds?Hs():js=void 0,Tn}}js=void 0,Tn&&Tn.enter()},Zs?Hs=function(){Js.nextTick(Qs)}:Ys&&!Ls?(Gs=!0,Vs=document.createTextNode(""),new Ys(Qs).observe(Vs,{characterData:!0}),Hs=function(){Vs.data=Gs=!Gs}):$s&&$s.resolve?(zs=$s.resolve(void 0),Ks=zs.then,Hs=function(){Ks.call(zs,Qs)}):Hs=function(){Xs.call(Un,Qs)});var nl,rl,il,ol,al=tl||function(Tn){var Un={fn:Tn,next:void 0};js&&(js.next=Un),Ds||(Ds=Un,Hs()),js=Un},PromiseCapability=function(Tn){var Un,Qn;this.promise=new Tn((function(Tn,Dn){if(void 0!==Un||void 0!==Qn)throw TypeError("Bad Promise constructor");Un=Tn,Qn=Dn})),this.resolve=aFunction$1(Un),this.reject=aFunction$1(Qn)},sl={f:function(Tn){return new PromiseCapability(Tn)}},promiseResolve=function(Tn,Un){if(anObject(Tn),isObject(Un)&&Un.constructor===Tn)return Un;var Qn=sl.f(Tn);return(0,Qn.resolve)(Un),Qn.promise},perform=function(Tn){try{return{error:!1,value:Tn()}}catch(Tn){return{error:!0,value:Tn}}},ll=qs.set,cl=wellKnownSymbol("species"),ul="Promise",dl=Sr.get,hl=Sr.set,pl=Sr.getterFor(ul),Al=_s,fl=Un.TypeError,gl=Un.document,ml=Un.process,_l=getBuiltIn("fetch"),vl=sl.f,yl=vl,wl="process"==classofRaw(ml),xl=!!(gl&&gl.createEvent&&Un.dispatchEvent),Sl=Vr(ul,(function(){if(!(lr(Al)!==String(Al))){if(66===ri)return!0;if(!wl&&"function"!=typeof PromiseRejectionEvent)return!0}if(ri>=51&&/native code/.test(Al))return!1;var Tn=Al.resolve(1),FakePromise=function(Tn){Tn((function(){}),(function(){}))};return(Tn.constructor={})[cl]=FakePromise,!(Tn.then((function(){}))instanceof FakePromise)})),kl=Sl||!checkCorrectnessOfIteration((function(Tn){Al.all(Tn).catch((function(){}))})),isThenable=function(Tn){var Un;return!(!isObject(Tn)||"function"!=typeof(Un=Tn.then))&&Un},notify$1=function(Tn,Un,Qn){if(!Un.notified){Un.notified=!0;var Dn=Un.reactions;al((function(){for(var Hn=Un.value,Gn=1==Un.state,Vn=0;Dn.length>Vn;){var zn,Kn,Wn,Xn=Dn[Vn++],Yn=Gn?Xn.ok:Xn.fail,Jn=Xn.resolve,$n=Xn.reject,Zn=Xn.domain;try{Yn?(Gn||(2===Un.rejection&&onHandleUnhandled(Tn,Un),Un.rejection=1),!0===Yn?zn=Hn:(Zn&&Zn.enter(),zn=Yn(Hn),Zn&&(Zn.exit(),Wn=!0)),zn===Xn.promise?$n(fl("Promise-chain cycle")):(Kn=isThenable(zn))?Kn.call(zn,Jn,$n):Jn(zn)):$n(Hn)}catch(Tn){Zn&&!Wn&&Zn.exit(),$n(Tn)}}Un.reactions=[],Un.notified=!1,Qn&&!Un.rejection&&onUnhandled(Tn,Un)}))}},dispatchEvent=function(Tn,Qn,Dn){var Hn,Gn;xl?((Hn=gl.createEvent("Event")).promise=Qn,Hn.reason=Dn,Hn.initEvent(Tn,!1,!0),Un.dispatchEvent(Hn)):Hn={promise:Qn,reason:Dn},(Gn=Un["on"+Tn])?Gn(Hn):"unhandledrejection"===Tn&&function(Tn,Qn){var Dn=Un.console;Dn&&Dn.error&&(1===arguments.length?Dn.error(Tn):Dn.error(Tn,Qn))}("Unhandled promise rejection",Dn)},onUnhandled=function(Tn,Qn){ll.call(Un,(function(){var Un,Dn=Qn.value;if(isUnhandled(Qn)&&(Un=perform((function(){wl?ml.emit("unhandledRejection",Dn,Tn):dispatchEvent("unhandledrejection",Tn,Dn)})),Qn.rejection=wl||isUnhandled(Qn)?2:1,Un.error))throw Un.value}))},isUnhandled=function(Tn){return 1!==Tn.rejection&&!Tn.parent},onHandleUnhandled=function(Tn,Qn){ll.call(Un,(function(){wl?ml.emit("rejectionHandled",Tn):dispatchEvent("rejectionhandled",Tn,Qn.value)}))},bind=function(Tn,Un,Qn,Dn){return function(Hn){Tn(Un,Qn,Hn,Dn)}},internalReject=function(Tn,Un,Qn,Dn){Un.done||(Un.done=!0,Dn&&(Un=Dn),Un.value=Qn,Un.state=2,notify$1(Tn,Un,!0))},internalResolve=function(Tn,Un,Qn,Dn){if(!Un.done){Un.done=!0,Dn&&(Un=Dn);try{if(Tn===Qn)throw fl("Promise can't be resolved itself");var Hn=isThenable(Qn);Hn?al((function(){var Dn={done:!1};try{Hn.call(Qn,bind(internalResolve,Tn,Dn,Un),bind(internalReject,Tn,Dn,Un))}catch(Qn){internalReject(Tn,Dn,Qn,Un)}})):(Un.value=Qn,Un.state=1,notify$1(Tn,Un,!1))}catch(Qn){internalReject(Tn,{done:!1},Qn,Un)}}};for(var Cl in Sl&&(Al=function Promise(Tn){anInstance(this,Al,ul),aFunction$1(Tn),nl.call(this);var Un=dl(this);try{Tn(bind(internalResolve,this,Un),bind(internalReject,this,Un))}catch(Tn){internalReject(this,Un,Tn)}},(nl=function Promise(Tn){hl(this,{type:ul,done:!1,notified:!1,parent:!1,reactions:[],rejection:!1,state:0,value:void 0})}).prototype=redefineAll(Al.prototype,{then:function then(Tn,Un){var Qn=pl(this),Dn=vl(speciesConstructor(this,Al));return Dn.ok="function"!=typeof Tn||Tn,Dn.fail="function"==typeof Un&&Un,Dn.domain=wl?ml.domain:void 0,Qn.parent=!0,Qn.reactions.push(Dn),0!=Qn.state&¬ify$1(this,Qn,!1),Dn.promise},catch:function(Tn){return this.then(void 0,Tn)}}),rl=function(){var Tn=new nl,Un=dl(Tn);this.promise=Tn,this.resolve=bind(internalResolve,Tn,Un),this.reject=bind(internalReject,Tn,Un)},sl.f=vl=function(Tn){return Tn===Al||Tn===il?new rl(Tn):yl(Tn)},"function"==typeof _s&&(ol=_s.prototype.then,kr(_s.prototype,"then",(function then(Tn,Un){var Qn=this;return new Al((function(Tn,Un){ol.call(Qn,Tn,Un)})).then(Tn,Un)}),{unsafe:!0}),"function"==typeof _l&&_export({global:!0,enumerable:!0,forced:!0},{fetch:function fetch(Tn){return promiseResolve(Al,_l.apply(Un,arguments))}}))),_export({global:!0,wrap:!0,forced:Sl},{Promise:Al}),setToStringTag(Al,ul,!1),setSpecies(ul),il=getBuiltIn(ul),_export({target:ul,stat:!0,forced:Sl},{reject:function reject(Tn){var Un=vl(this);return Un.reject.call(void 0,Tn),Un.promise}}),_export({target:ul,stat:!0,forced:Sl},{resolve:function resolve(Tn){return promiseResolve(this,Tn)}}),_export({target:ul,stat:!0,forced:kl},{all:function all(Tn){var Un=this,Qn=vl(Un),Dn=Qn.resolve,Hn=Qn.reject,Gn=perform((function(){var Qn=aFunction$1(Un.resolve),Gn=[],Vn=0,zn=1;ws(Tn,(function(Tn){var Kn=Vn++,Wn=!1;Gn.push(void 0),zn++,Qn.call(Un,Tn).then((function(Tn){Wn||(Wn=!0,Gn[Kn]=Tn,--zn||Dn(Gn))}),Hn)})),--zn||Dn(Gn)}));return Gn.error&&Hn(Gn.value),Qn.promise},race:function race(Tn){var Un=this,Qn=vl(Un),Dn=Qn.reject,Hn=perform((function(){var Hn=aFunction$1(Un.resolve);ws(Tn,(function(Tn){Hn.call(Un,Tn).then(Qn.resolve,Dn)}))}));return Hn.error&&Dn(Hn.value),Qn.promise}}),Ya){var Bl=Un[Cl],El=Bl&&Bl.prototype;if(El&&El.forEach!==As)try{nr(El,"forEach",As)}catch(Tn){El.forEach=As}}var Nl=Rr.f,Ll={}.toString,Tl="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],Pl={f:function getOwnPropertyNames(Tn){return Tl&&"[object Window]"==Ll.call(Tn)?function(Tn){try{return Nl(Tn)}catch(Tn){return Tl.slice()}}(Tn):Nl(toIndexedObject(Tn))}},Fl={f:wellKnownSymbol},Ul=tr.f,defineWellKnownSymbol=function(Tn){var Un=Cr.Symbol||(Cr.Symbol={});has(Un,Tn)||Ul(Un,Tn,{value:Fl.f(Tn)})},Il=ui.forEach,Rl=sharedKey("hidden"),Ml=wellKnownSymbol("toPrimitive"),Ol=Sr.set,Ql=Sr.getterFor("Symbol"),Dl=Object.prototype,jl=Un.Symbol,Hl=getBuiltIn("JSON","stringify"),Gl=Zn.f,Vl=tr.f,zl=Pl.f,Kl=Gn.f,ql=dr("symbols"),Wl=dr("op-symbols"),Xl=dr("string-to-symbol-registry"),Yl=dr("symbol-to-string-registry"),Jl=dr("wks"),$l=Un.QObject,Zl=!$l||!$l.prototype||!$l.prototype.findChild,ec=Qn&&fails((function(){return 7!=wi(Vl({},"a",{get:function(){return Vl(this,"a",{value:7}).a}})).a}))?function(Tn,Un,Qn){var Dn=Gl(Dl,Un);Dn&&delete Dl[Un],Vl(Tn,Un,Qn),Dn&&Tn!==Dl&&Vl(Dl,Un,Dn)}:Vl,wrap=function(Tn,Un){var Dn=ql[Tn]=wi(jl.prototype);return Ol(Dn,{type:"Symbol",tag:Tn,description:Un}),Qn||(Dn.description=Un),Dn},tc=Wr?function(Tn){return"symbol"==typeof Tn}:function(Tn){return Object(Tn)instanceof jl},nc=function defineProperty(Tn,Un,Qn){Tn===Dl&&nc(Wl,Un,Qn),anObject(Tn);var Dn=toPrimitive(Un,!0);return anObject(Qn),has(ql,Dn)?(Qn.enumerable?(has(Tn,Rl)&&Tn[Rl][Dn]&&(Tn[Rl][Dn]=!1),Qn=wi(Qn,{enumerable:createPropertyDescriptor(0,!1)})):(has(Tn,Rl)||Vl(Tn,Rl,createPropertyDescriptor(1,{})),Tn[Rl][Dn]=!0),ec(Tn,Dn,Qn)):Vl(Tn,Dn,Qn)},rc=function defineProperties(Tn,Un){anObject(Tn);var Dn=toIndexedObject(Un),Hn=mi(Dn).concat(sc(Dn));return Il(Hn,(function(Un){Qn&&!ic.call(Dn,Un)||nc(Tn,Un,Dn[Un])})),Tn},ic=function propertyIsEnumerable(Tn){var Un=toPrimitive(Tn,!0),Qn=Kl.call(this,Un);return!(this===Dl&&has(ql,Un)&&!has(Wl,Un))&&(!(Qn||!has(this,Un)||!has(ql,Un)||has(this,Rl)&&this[Rl][Un])||Qn)},oc=function getOwnPropertyDescriptor(Tn,Un){var Qn=toIndexedObject(Tn),Dn=toPrimitive(Un,!0);if(Qn!==Dl||!has(ql,Dn)||has(Wl,Dn)){var Hn=Gl(Qn,Dn);return!Hn||!has(ql,Dn)||has(Qn,Rl)&&Qn[Rl][Dn]||(Hn.enumerable=!0),Hn}},ac=function getOwnPropertyNames(Tn){var Un=zl(toIndexedObject(Tn)),Qn=[];return Il(Un,(function(Tn){has(ql,Tn)||has(fr,Tn)||Qn.push(Tn)})),Qn},sc=function getOwnPropertySymbols(Tn){var Un=Tn===Dl,Qn=zl(Un?Wl:toIndexedObject(Tn)),Dn=[];return Il(Qn,(function(Tn){!has(ql,Tn)||Un&&!has(Dl,Tn)||Dn.push(ql[Tn])})),Dn};if(qr||(kr((jl=function Symbol(){if(this instanceof jl)throw TypeError("Symbol is not a constructor");var Tn=arguments.length&&void 0!==arguments[0]?String(arguments[0]):void 0,Un=uid(Tn),setter=function(Tn){this===Dl&&setter.call(Wl,Tn),has(this,Rl)&&has(this[Rl],Un)&&(this[Rl][Un]=!1),ec(this,Un,createPropertyDescriptor(1,Tn))};return Qn&&Zl&&ec(Dl,Un,{configurable:!0,set:setter}),wrap(Un,Tn)}).prototype,"toString",(function toString(){return Ql(this).tag})),kr(jl,"withoutSetter",(function(Tn){return wrap(uid(Tn),Tn)})),Gn.f=ic,tr.f=nc,Zn.f=oc,Rr.f=Pl.f=ac,Mr.f=sc,Fl.f=function(Tn){return wrap(wellKnownSymbol(Tn),Tn)},Qn&&(Vl(jl.prototype,"description",{configurable:!0,get:function description(){return Ql(this).description}}),kr(Dl,"propertyIsEnumerable",ic,{unsafe:!0}))),_export({global:!0,wrap:!0,forced:!qr,sham:!qr},{Symbol:jl}),Il(mi(Jl),(function(Tn){defineWellKnownSymbol(Tn)})),_export({target:"Symbol",stat:!0,forced:!qr},{for:function(Tn){var Un=String(Tn);if(has(Xl,Un))return Xl[Un];var Qn=jl(Un);return Xl[Un]=Qn,Yl[Qn]=Un,Qn},keyFor:function keyFor(Tn){if(!tc(Tn))throw TypeError(Tn+" is not a symbol");if(has(Yl,Tn))return Yl[Tn]},useSetter:function(){Zl=!0},useSimple:function(){Zl=!1}}),_export({target:"Object",stat:!0,forced:!qr,sham:!Qn},{create:function create(Tn,Un){return void 0===Un?wi(Tn):rc(wi(Tn),Un)},defineProperty:nc,defineProperties:rc,getOwnPropertyDescriptor:oc}),_export({target:"Object",stat:!0,forced:!qr},{getOwnPropertyNames:ac,getOwnPropertySymbols:sc}),_export({target:"Object",stat:!0,forced:fails((function(){Mr.f(1)}))},{getOwnPropertySymbols:function getOwnPropertySymbols(Tn){return Mr.f(toObject(Tn))}}),Hl){var lc=!qr||fails((function(){var Tn=jl();return"[null]"!=Hl([Tn])||"{}"!=Hl({a:Tn})||"{}"!=Hl(Object(Tn))}));_export({target:"JSON",stat:!0,forced:lc},{stringify:function stringify(Tn,Un,Qn){for(var Dn,Hn=[Tn],Gn=1;arguments.length>Gn;)Hn.push(arguments[Gn++]);if(Dn=Un,(isObject(Un)||void 0!==Tn)&&!tc(Tn))return Kr(Un)||(Un=function(Tn,Un){if("function"==typeof Dn&&(Un=Dn.call(this,Tn,Un)),!tc(Un))return Un}),Hn[1]=Un,Hl.apply(null,Hn)}})}jl.prototype[Ml]||nr(jl.prototype,Ml,jl.prototype.valueOf),setToStringTag(jl,"Symbol"),fr[Rl]=!0;var uc=tr.f,dc=Un.Symbol;if(Qn&&"function"==typeof dc&&(!("description"in dc.prototype)||void 0!==dc().description)){var hc={},pc=function Symbol(){var Tn=arguments.length<1||void 0===arguments[0]?void 0:String(arguments[0]),Un=this instanceof pc?new dc(Tn):void 0===Tn?dc():dc(Tn);return""===Tn&&(hc[Un]=!0),Un};copyConstructorProperties(pc,dc);var Ac=pc.prototype=dc.prototype;Ac.constructor=pc;var fc=Ac.toString,gc="Symbol(test)"==String(dc("test")),mc=/^Symbol\((.*)\)[^)]+$/;uc(Ac,"description",{configurable:!0,get:function description(){var Tn=isObject(this)?this.valueOf():this,Un=fc.call(Tn);if(has(hc,Tn))return"";var Qn=gc?Un.slice(7,-1):Un.replace(mc,"$1");return""===Qn?void 0:Qn}}),_export({global:!0,forced:!0},{Symbol:pc})}defineWellKnownSymbol("asyncIterator"),defineWellKnownSymbol("iterator"),defineWellKnownSymbol("toStringTag"),setToStringTag(Un.JSON,"JSON",!0),setToStringTag(Math,"Math",!0),_export({target:"Object",stat:!0,sham:!Qn},{create:wi}),_export({target:"Object",stat:!0,forced:!Qn,sham:!Qn},{defineProperty:tr.f});var _c=fails((function(){La(1)}));_export({target:"Object",stat:!0,forced:_c,sham:!Ba},{getPrototypeOf:function getPrototypeOf(Tn){return La(toObject(Tn))}}),_export({target:"Object",stat:!0},{setPrototypeOf:No});var vc=ua.charAt,yc=Sr.set,bc=Sr.getterFor("String Iterator");defineIterator(String,"String",(function(Tn){yc(this,{type:"String Iterator",string:String(Tn),index:0})}),(function next(){var Tn,Un=bc(this),Qn=Un.string,Dn=Un.index;return Dn>=Qn.length?{value:void 0,done:!0}:(Tn=vc(Qn,Dn),Un.index+=Tn.length,{value:Tn,done:!1})}));var wc=createCommonjsModule((function(Tn){var Un=function(Tn){var Un,Qn=Object.prototype,Dn=Qn.hasOwnProperty,Hn="function"==typeof Symbol?Symbol:{},Gn=Hn.iterator||"@@iterator",Vn=Hn.asyncIterator||"@@asyncIterator",zn=Hn.toStringTag||"@@toStringTag";function define(Tn,Un,Qn){return Object.defineProperty(Tn,Un,{value:Qn,enumerable:!0,configurable:!0,writable:!0}),Tn[Un]}try{define({},"")}catch(Tn){define=function define(Tn,Un,Qn){return Tn[Un]=Qn}}function wrap(Tn,Un,Qn,Dn){var Hn=Un&&Un.prototype instanceof Generator?Un:Generator,Gn=Object.create(Hn.prototype),Vn=new Context(Dn||[]);return Gn._invoke=function makeInvokeMethod(Tn,Un,Qn){var Dn=Kn;return function invoke(Hn,Gn){if(Dn===Xn)throw new Error("Generator is already running");if(Dn===Yn){if("throw"===Hn)throw Gn;return doneResult()}for(Qn.method=Hn,Qn.arg=Gn;;){var Vn=Qn.delegate;if(Vn){var zn=maybeInvokeDelegate(Vn,Qn);if(zn){if(zn===Jn)continue;return zn}}if("next"===Qn.method)Qn.sent=Qn._sent=Qn.arg;else if("throw"===Qn.method){if(Dn===Kn)throw Dn=Yn,Qn.arg;Qn.dispatchException(Qn.arg)}else"return"===Qn.method&&Qn.abrupt("return",Qn.arg);Dn=Xn;var $n=tryCatch(Tn,Un,Qn);if("normal"===$n.type){if(Dn=Qn.done?Yn:Wn,$n.arg===Jn)continue;return{value:$n.arg,done:Qn.done}}"throw"===$n.type&&(Dn=Yn,Qn.method="throw",Qn.arg=$n.arg)}}}(Tn,Qn,Vn),Gn}function tryCatch(Tn,Un,Qn){try{return{type:"normal",arg:Tn.call(Un,Qn)}}catch(Tn){return{type:"throw",arg:Tn}}}Tn.wrap=wrap;var Kn="suspendedStart",Wn="suspendedYield",Xn="executing",Yn="completed",Jn={};function Generator(){}function GeneratorFunction(){}function GeneratorFunctionPrototype(){}var $n={};$n[Gn]=function(){return this};var Zn=Object.getPrototypeOf,er=Zn&&Zn(Zn(values([])));er&&er!==Qn&&Dn.call(er,Gn)&&($n=er);var tr=GeneratorFunctionPrototype.prototype=Generator.prototype=Object.create($n);function defineIteratorMethods(Tn){["next","throw","return"].forEach((function(Un){define(Tn,Un,(function(Tn){return this._invoke(Un,Tn)}))}))}function AsyncIterator(Tn,Un){var Qn;this._invoke=function enqueue(Hn,Gn){function callInvokeWithMethodAndArg(){return new Un((function(Qn,Vn){!function invoke(Qn,Hn,Gn,Vn){var zn=tryCatch(Tn[Qn],Tn,Hn);if("throw"!==zn.type){var Kn=zn.arg,Wn=Kn.value;return Wn&&"object"===_typeof(Wn)&&Dn.call(Wn,"__await")?Un.resolve(Wn.__await).then((function(Tn){invoke("next",Tn,Gn,Vn)}),(function(Tn){invoke("throw",Tn,Gn,Vn)})):Un.resolve(Wn).then((function(Tn){Kn.value=Tn,Gn(Kn)}),(function(Tn){return invoke("throw",Tn,Gn,Vn)}))}Vn(zn.arg)}(Hn,Gn,Qn,Vn)}))}return Qn=Qn?Qn.then(callInvokeWithMethodAndArg,callInvokeWithMethodAndArg):callInvokeWithMethodAndArg()}}function maybeInvokeDelegate(Tn,Qn){var Dn=Tn.iterator[Qn.method];if(Dn===Un){if(Qn.delegate=null,"throw"===Qn.method){if(Tn.iterator.return&&(Qn.method="return",Qn.arg=Un,maybeInvokeDelegate(Tn,Qn),"throw"===Qn.method))return Jn;Qn.method="throw",Qn.arg=new TypeError("The iterator does not provide a 'throw' method")}return Jn}var Hn=tryCatch(Dn,Tn.iterator,Qn.arg);if("throw"===Hn.type)return Qn.method="throw",Qn.arg=Hn.arg,Qn.delegate=null,Jn;var Gn=Hn.arg;return Gn?Gn.done?(Qn[Tn.resultName]=Gn.value,Qn.next=Tn.nextLoc,"return"!==Qn.method&&(Qn.method="next",Qn.arg=Un),Qn.delegate=null,Jn):Gn:(Qn.method="throw",Qn.arg=new TypeError("iterator result is not an object"),Qn.delegate=null,Jn)}function pushTryEntry(Tn){var Un={tryLoc:Tn[0]};1 in Tn&&(Un.catchLoc=Tn[1]),2 in Tn&&(Un.finallyLoc=Tn[2],Un.afterLoc=Tn[3]),this.tryEntries.push(Un)}function resetTryEntry(Tn){var Un=Tn.completion||{};Un.type="normal",delete Un.arg,Tn.completion=Un}function Context(Tn){this.tryEntries=[{tryLoc:"root"}],Tn.forEach(pushTryEntry,this),this.reset(!0)}function values(Tn){if(Tn){var Qn=Tn[Gn];if(Qn)return Qn.call(Tn);if("function"==typeof Tn.next)return Tn;if(!isNaN(Tn.length)){var Hn=-1,Vn=function next(){for(;++Hn=0;--Hn){var Gn=this.tryEntries[Hn],Vn=Gn.completion;if("root"===Gn.tryLoc)return handle("end");if(Gn.tryLoc<=this.prev){var zn=Dn.call(Gn,"catchLoc"),Kn=Dn.call(Gn,"finallyLoc");if(zn&&Kn){if(this.prev=0;--Qn){var Hn=this.tryEntries[Qn];if(Hn.tryLoc<=this.prev&&Dn.call(Hn,"finallyLoc")&&this.prev=0;--Un){var Qn=this.tryEntries[Un];if(Qn.finallyLoc===Tn)return this.complete(Qn.completion,Qn.afterLoc),resetTryEntry(Qn),Jn}},catch:function _catch(Tn){for(var Un=this.tryEntries.length-1;Un>=0;--Un){var Qn=this.tryEntries[Un];if(Qn.tryLoc===Tn){var Dn=Qn.completion;if("throw"===Dn.type){var Hn=Dn.arg;resetTryEntry(Qn)}return Hn}}throw new Error("illegal catch attempt")},delegateYield:function delegateYield(Tn,Qn,Dn){return this.delegate={iterator:values(Tn),resultName:Qn,nextLoc:Dn},"next"===this.method&&(this.arg=Un),Jn}},Tn}(Tn.exports);try{regeneratorRuntime=Un}catch(Tn){Function("r","regeneratorRuntime = r")(Un)}})),xc=document.createElement("template");xc.innerHTML='\n \n \n
\n \n
\n \n
\n \n
\n \n';var Sc=function(Tn){_inherits(ExplorerButton,_wrapNativeSuper(HTMLElement));var Un,Qn,Dn=_createSuper(ExplorerButton);function ExplorerButton(){var Tn;return _classCallCheck(this,ExplorerButton),(Tn=Dn.call(this))._shadowRoot=Tn.attachShadow({mode:"open"}),Tn._shadowRoot.appendChild(xc.content.cloneNode(!0)),Tn.$button=Tn._shadowRoot.querySelector(".menu-button"),Tn.$overall=Tn._shadowRoot.querySelector(".overall"),Tn.$img=Tn._shadowRoot.querySelector(".menu-button img"),Tn.$menu=Tn._shadowRoot.querySelector(".menu"),Tn.$handle=Tn._shadowRoot.querySelector(".handle"),Tn.$lib=Tn._shadowRoot.querySelector(".image-lib"),Tn.files=[],Tn.request=new XMLHttpRequest,Tn}return _createClass(ExplorerButton,[{key:"attributeChangedCallback",value:(Qn=_asyncToGenerator(regeneratorRuntime.mark((function _callee(Tn,Un,Qn){var Dn,Hn,Gn,Vn;return regeneratorRuntime.wrap((function _callee$(zn){for(;;)switch(zn.prev=zn.next){case 0:if(Un!==Qn){zn.next=2;break}return zn.abrupt("return");case 2:zn.t0=Tn,zn.next="title"===zn.t0?5:"pressed"===zn.t0?8:"disabled"===zn.t0?10:"lib"===zn.t0?12:29;break;case 5:return Dn=this.getAttribute("shortcut"),this.$button.setAttribute("title","".concat(Qn," [").concat(Dn,"]")),zn.abrupt("break",31);case 8:return Qn?this.$overall.classList.add("pressed"):this.$overall.classList.remove("pressed"),zn.abrupt("break",31);case 10:return Qn?this.$div.classList.add("disabled"):this.$div.classList.remove("disabled"),zn.abrupt("break",31);case 12:return zn.prev=12,zn.next=15,fetch("".concat(Qn,"index.json"));case 15:return Hn=zn.sent,zn.next=18,Hn.json();case 18:return Gn=zn.sent,Vn=Gn.lib,this.$menu.innerHTML=Vn.map((function(Tn,Un){return'")})).join(""),zn.next=23,this.updateLib(Vn[0]);case 23:zn.next=28;break;case 25:zn.prev=25,zn.t1=zn.catch(12),console.error(zn.t1);case 28:return zn.abrupt("break",31);case 29:return console.error("unknown attribute: ".concat(Tn)),zn.abrupt("break",31);case 31:case"end":return zn.stop()}}),_callee,this,[[12,25]])}))),function attributeChangedCallback(Tn,Un,Dn){return Qn.apply(this,arguments)})},{key:"connectedCallback",value:function connectedCallback(){var Tn=this,Un=function onClickHandler(Un){switch(console.log(Un.target),Un.stopPropagation(),Un.target.nodeName){case"SE-EXPLORERBUTTON":Tn.$menu.classList.add("open"),Tn.$lib.classList.add("open-lib");break;case"SE-BUTTON":Tn.currentAction=Un.target,Tn.$img.setAttribute("src",Tn.currentAction.getAttribute("src")),Tn.dataset.draw=Tn.data[Tn.currentAction.dataset.shape],Tn._shadowRoot.querySelectorAll(".image-lib > .pressed").forEach((function(Tn){Tn.classList.remove("pressed")})),Tn.currentAction.setAttribute("pressed","pressed"),Tn.$menu.classList.remove("open"),Tn.$lib.classList.remove("open-lib");break;case"DIV":"handle"===Un.target.classList[0]?(Tn.$menu.classList.toggle("open"),Tn.$lib.classList.toggle("open-lib")):(Tn._shadowRoot.querySelectorAll(".menu > .pressed").forEach((function(Tn){Tn.classList.remove("pressed")})),Un.target.classList.add("pressed"),Tn.updateLib(Un.target.dataset.menu));break;default:console.error("unknown nodeName for:",Un.target,Un.target.className)}};this.addEventListener("click",Un),this.$menu.addEventListener("click",Un),this.$lib.addEventListener("click",Un),this.$handle.addEventListener("click",Un)}},{key:"updateLib",value:(Un=_asyncToGenerator(regeneratorRuntime.mark((function _callee2(Tn){var Un,Qn,Dn,Hn,Gn,Vn,zn,Kn,Wn;return regeneratorRuntime.wrap((function _callee2$(Xn){for(;;)switch(Xn.prev=Xn.next){case 0:return Un=this.getAttribute("lib"),Xn.prev=1,Xn.next=4,fetch("".concat(Un).concat(Tn,".json"));case 4:return Dn=Xn.sent,Xn.next=7,Dn.json();case 7:Hn=Xn.sent,this.data=Hn.data,Gn=null!==(Qn=Hn.size)&&void 0!==Qn?Qn:300,Vn=Hn.fill?"#333":"none",Kn=[-(zn=.05*Gn),-zn,Gn+2*zn,Gn+2*zn].join(" "),Wn=Hn.fill?0:Gn/30,this.$lib.innerHTML=Object.entries(this.data).map((function(Tn){var Un=_slicedToArray(Tn,2),Qn=Un[0],Dn=Un[1],Hn=btoa('\n \n \n '));return'')})).join(""),Xn.next=20;break;case 17:Xn.prev=17,Xn.t0=Xn.catch(1),console.error("could not read file:".concat(Un).concat(Tn,".json"),Xn.t0);case 20:case"end":return Xn.stop()}}),_callee2,this,[[1,17]])}))),function updateLib(Tn){return Un.apply(this,arguments)})},{key:"title",get:function get(){return this.getAttribute("title")},set:function set(Tn){this.setAttribute("title",Tn)}},{key:"pressed",get:function get(){return this.hasAttribute("pressed")},set:function set(Tn){Tn?this.setAttribute("pressed","true"):this.removeAttribute("pressed","")}},{key:"disabled",get:function get(){return this.hasAttribute("disabled")},set:function set(Tn){Tn?this.setAttribute("disabled","true"):this.removeAttribute("disabled","")}}],[{key:"observedAttributes",get:function get(){return["title","pressed","disabled","lib"]}}]),ExplorerButton}();customElements.define("se-explorerbutton",Sc);var kc=ui.every,Cc=arrayMethodIsStrict("every"),Bc=arrayMethodUsesToLength("every");_export({target:"Array",proto:!0,forced:!Cc||!Bc},{every:function every(Tn){return kc(this,Tn,arguments.length>1?arguments[1]:void 0)}});var Ec=Pr.includes,Nc=arrayMethodUsesToLength("indexOf",{ACCESSORS:!0,1:0});_export({target:"Array",proto:!0,forced:!Nc},{includes:function includes(Tn){return Ec(this,Tn,arguments.length>1?arguments[1]:void 0)}}),addToUnscopables("includes");var createMethod$5=function(Tn){return function(Un,Qn,Dn,Hn){aFunction$1(Qn);var Gn=toObject(Un),Vn=Kn(Gn),zn=toLength(Gn.length),Wn=Tn?zn-1:0,Xn=Tn?-1:1;if(Dn<2)for(;;){if(Wn in Vn){Hn=Vn[Wn],Wn+=Xn;break}if(Wn+=Xn,Tn?Wn<0:zn<=Wn)throw TypeError("Reduce of empty array with no initial value")}for(;Tn?Wn>=0:zn>Wn;Wn+=Xn)Wn in Vn&&(Hn=Qn(Hn,Vn[Wn],Wn,Gn));return Hn}},Lc={left:createMethod$5(!1),right:createMethod$5(!0)},Tc=Lc.left,Pc=arrayMethodIsStrict("reduce"),Fc=arrayMethodUsesToLength("reduce",{1:0});_export({target:"Array",proto:!0,forced:!Pc||!Fc},{reduce:function reduce(Tn){return Tc(this,Tn,arguments.length,arguments.length>1?arguments[1]:void 0)}});var Uc=Rr.f,Ic=Zn.f,Rc=tr.f,Mc=yo.trim,Oc=Un.Number,Qc=Oc.prototype,Dc="Number"==classofRaw(wi(Qc)),toNumber=function(Tn){var Un,Qn,Dn,Hn,Gn,Vn,zn,Kn,Wn=toPrimitive(Tn,!1);if("string"==typeof Wn&&Wn.length>2)if(43===(Un=(Wn=Mc(Wn)).charCodeAt(0))||45===Un){if(88===(Qn=Wn.charCodeAt(2))||120===Qn)return NaN}else if(48===Un){switch(Wn.charCodeAt(1)){case 66:case 98:Dn=2,Hn=49;break;case 79:case 111:Dn=8,Hn=55;break;default:return+Wn}for(Vn=(Gn=Wn.slice(2)).length,zn=0;znHn)return NaN;return parseInt(Gn,Dn)}return+Wn};if(Vr("Number",!Oc(" 0o1")||!Oc("0b1")||Oc("+0x1"))){for(var jc,Hc=function Number(Tn){var Un=arguments.length<1?0:Tn,Qn=this;return Qn instanceof Hc&&(Dc?fails((function(){Qc.valueOf.call(Qn)})):"Number"!=classofRaw(Qn))?inheritIfRequired(new Oc(toNumber(Un)),Qn,Hc):toNumber(Un)},Gc=Qn?Uc(Oc):"MAX_VALUE,MIN_VALUE,NaN,NEGATIVE_INFINITY,POSITIVE_INFINITY,EPSILON,isFinite,isInteger,isNaN,isSafeInteger,MAX_SAFE_INTEGER,MIN_SAFE_INTEGER,parseFloat,parseInt,isInteger".split(","),Vc=0;Gc.length>Vc;Vc++)has(Oc,jc=Gc[Vc])&&!has(Hc,jc)&&Rc(Hc,jc,Ic(Oc,jc));Hc.prototype=Qc,Qc.constructor=Hc,kr(Un,"Number",Hc)}_export({target:"Number",stat:!0},{isNaN:function isNaN(Tn){return Tn!=Tn}}),_export({target:"Number",stat:!0,forced:Number.parseFloat!=So},{parseFloat:So}),_export({target:"Number",stat:!0,forced:Number.parseInt!=Eo},{parseInt:Eo});var zc=fails((function(){mi(1)}));_export({target:"Object",stat:!0,forced:zc},{keys:function keys(Tn){return mi(toObject(Tn))}});var Kc=gs.values;_export({target:"Object",stat:!0},{values:function values(Tn){return Kc(Tn)}});var notARegexp=function(Tn){if(isRegexp(Tn))throw TypeError("The method doesn't accept regular expressions");return Tn},qc=wellKnownSymbol("match"),correctIsRegexpLogic=function(Tn){var Un=/./;try{"/./"[Tn](Un)}catch(Qn){try{return Un[qc]=!1,"/./"[Tn](Un)}catch(Tn){}}return!1};_export({target:"String",proto:!0,forced:!correctIsRegexpLogic("includes")},{includes:function includes(Tn){return!!~String(requireObjectCoercible(this)).indexOf(notARegexp(Tn),arguments.length>1?arguments[1]:void 0)}});var Wc=Object.is||function is(Tn,Un){return Tn===Un?0!==Tn||1/Tn==1/Un:Tn!=Tn&&Un!=Un};fixRegexpWellKnownSymbolLogic("search",1,(function(Tn,Un,Qn){return[function search(Un){var Qn=requireObjectCoercible(this),Dn=null==Un?void 0:Un[Tn];return void 0!==Dn?Dn.call(Un,Qn):new RegExp(Un)[Tn](String(Qn))},function(Tn){var Dn=Qn(Un,Tn,this);if(Dn.done)return Dn.value;var Hn=anObject(Tn),Gn=String(this),Vn=Hn.lastIndex;Wc(Vn,0)||(Hn.lastIndex=0);var zn=regexpExecAbstract(Hn,Gn);return Wc(Hn.lastIndex,Vn)||(Hn.lastIndex=Vn),null===zn?-1:zn.index}]}));var Xc,Yc=Zn.f,Jc="".startsWith,$c=Math.min,Zc=correctIsRegexpLogic("startsWith"),eu=!(Zc||(Xc=Yc(String.prototype,"startsWith"),!Xc||Xc.writable));_export({target:"String",proto:!0,forced:!eu&&!Zc},{startsWith:function startsWith(Tn){var Un=String(requireObjectCoercible(this));notARegexp(Tn);var Qn=toLength($c(arguments.length>1?arguments[1]:void 0,Un.length)),Dn=String(Tn);return Jc?Jc.call(Un,Dn,Qn):Un.slice(Qn,Qn+Dn.length)===Dn}});var tu=wellKnownSymbol("iterator"),nu=!fails((function(){var Tn=new URL("b?a=1&b=2&c=3","http://a"),Un=Tn.searchParams,Qn="";return Tn.pathname="c%20d",Un.forEach((function(Tn,Dn){Un.delete("b"),Qn+=Dn+Tn})),!Un.sort||"http://a/c%20d?a=1&c=3"!==Tn.href||"3"!==Un.get("c")||"a=1"!==String(new URLSearchParams("?a=1"))||!Un[tu]||"a"!==new URL("https://a@b").username||"b"!==new URLSearchParams(new URLSearchParams("a=b")).get("a")||"xn--e1aybc"!==new URL("http://тест").host||"#%D0%B1"!==new URL("http://a#б").hash||"a1c3"!==Qn||"x"!==new URL("http://x",void 0).host})),ru=Object.assign,iu=Object.defineProperty,ou=!ru||fails((function(){if(Qn&&1!==ru({b:1},ru(iu({},"a",{enumerable:!0,get:function(){iu(this,"b",{value:3,enumerable:!1})}}),{b:2})).b)return!0;var Tn={},Un={},Dn=Symbol(),Hn="abcdefghijklmnopqrst";return Tn[Dn]=7,Hn.split("").forEach((function(Tn){Un[Tn]=Tn})),7!=ru({},Tn)[Dn]||mi(ru({},Un)).join("")!=Hn}))?function assign(Tn,Un){for(var Dn=toObject(Tn),Hn=arguments.length,Vn=1,zn=Mr.f,Wn=Gn.f;Hn>Vn;)for(var Xn,Yn=Kn(arguments[Vn++]),Jn=zn?mi(Yn).concat(zn(Yn)):mi(Yn),$n=Jn.length,Zn=0;$n>Zn;)Xn=Jn[Zn++],Qn&&!Wn.call(Yn,Xn)||(Dn[Xn]=Yn[Xn]);return Dn}:ru,au=function from(Tn){var Un,Qn,Dn,Hn,Gn,Vn,zn=toObject(Tn),Kn="function"==typeof this?this:Array,Wn=arguments.length,Xn=Wn>1?arguments[1]:void 0,Yn=void 0!==Xn,Jn=getIteratorMethod(zn),$n=0;if(Yn&&(Xn=functionBindContext(Xn,Wn>2?arguments[2]:void 0,2)),null==Jn||Kn==Array&&isArrayIteratorMethod(Jn))for(Qn=new Kn(Un=toLength(zn.length));Un>$n;$n++)Vn=Yn?Xn(zn[$n],$n):zn[$n],createProperty(Qn,$n,Vn);else for(Gn=(Hn=Jn.call(zn)).next,Qn=new Kn;!(Dn=Gn.call(Hn)).done;$n++)Vn=Yn?callWithSafeIterationClosing(Hn,Xn,[Dn.value,$n],!0):Dn.value,createProperty(Qn,$n,Vn);return Qn.length=$n,Qn},su=/[^\0-\u007E]/,lu=/[.\u3002\uFF0E\uFF61]/g,uu="Overflow: input needs wider integers to process",du=Math.floor,hu=String.fromCharCode,digitToBasic=function(Tn){return Tn+22+75*(Tn<26)},adapt=function(Tn,Un,Qn){var Dn=0;for(Tn=Qn?du(Tn/700):Tn>>1,Tn+=du(Tn/Un);Tn>455;Dn+=36)Tn=du(Tn/35);return du(Dn+36*Tn/(Tn+38))},encode=function(Tn){var Un,Qn,Dn=[],Hn=(Tn=function(Tn){for(var Un=[],Qn=0,Dn=Tn.length;Qn=55296&&Hn<=56319&&Qn=Gn&&Qndu((2147483647-Vn)/Yn))throw RangeError(uu);for(Vn+=(Xn-Gn)*Yn,Gn=Xn,Un=0;Un2147483647)throw RangeError(uu);if(Qn==Gn){for(var Jn=Vn,$n=36;;$n+=36){var Zn=$n<=zn?1:$n>=zn+26?26:$n-zn;if(Jn0?arguments[0]:void 0,Xn=this,Yn=[];if(gu(Xn,{type:"URLSearchParams",entries:Yn,updateURL:function(){},updateSearchParams:updateSearchParams}),void 0!==Wn)if(isObject(Wn))if("function"==typeof(Tn=getIteratorMethod(Wn)))for(Qn=(Un=Tn.call(Wn)).next;!(Dn=Qn.call(Un)).done;){if((Vn=(Gn=(Hn=getIterator(anObject(Dn.value))).next).call(Hn)).done||(zn=Gn.call(Hn)).done||!Gn.call(Hn).done)throw TypeError("Expected sequence with length 2");Yn.push({key:Vn.value+"",value:zn.value+""})}else for(Kn in Wn)has(Wn,Kn)&&Yn.push({key:Kn,value:Wn[Kn]+""});else parseSearchParams(Yn,"string"==typeof Wn?"?"===Wn.charAt(0)?Wn.slice(1):Wn:Wn+"")},ku=Su.prototype;redefineAll(ku,{append:function append(Tn,Un){validateArgumentsLength(arguments.length,2);var Qn=mu(this);Qn.entries.push({key:Tn+"",value:Un+""}),Qn.updateURL()},delete:function(Tn){validateArgumentsLength(arguments.length,1);for(var Un=mu(this),Qn=Un.entries,Dn=Tn+"",Hn=0;HnTn.key){Hn.splice(Un,0,Tn);break}Un===Qn&&Hn.push(Tn)}Dn.updateURL()},forEach:function forEach(Tn){for(var Un,Qn=mu(this).entries,Dn=functionBindContext(Tn,arguments.length>1?arguments[1]:void 0,3),Hn=0;Hn1&&(isObject(Un=arguments[1])&&(Qn=Un.body,"URLSearchParams"===Ao(Qn)&&((Dn=Un.headers?new Au(Un.headers):new Au).has("content-type")||Dn.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"),Un=wi(Un,{body:createPropertyDescriptor(0,String(Qn)),headers:createPropertyDescriptor(0,Dn)}))),Hn.push(Un)),pu.apply(this,Hn)}});var Cu,Bu={URLSearchParams:Su,getState:mu},Eu=ua.codeAt,Nu=Un.URL,Lu=Bu.URLSearchParams,Tu=Bu.getState,Pu=Sr.set,Fu=Sr.getterFor("URL"),Uu=Math.floor,Iu=Math.pow,Ru=/[A-Za-z]/,Mu=/[\d+-.A-Za-z]/,Ou=/\d/,Qu=/^(0x|0X)/,Du=/^[0-7]+$/,ju=/^\d+$/,Hu=/^[\dA-Fa-f]+$/,Gu=/[\u0000\u0009\u000A\u000D #%/:?@[\\]]/,Vu=/[\u0000\u0009\u000A\u000D #/:?@[\\]]/,zu=/^[\u0000-\u001F ]+|[\u0000-\u001F ]+$/g,Ku=/[\u0009\u000A\u000D]/g,parseHost=function(Tn,Un){var Qn,Dn,Hn;if("["==Un.charAt(0)){if("]"!=Un.charAt(Un.length-1))return"Invalid host";if(!(Qn=parseIPv6(Un.slice(1,-1))))return"Invalid host";Tn.host=Qn}else if(isSpecial(Tn)){if(Un=function(Tn){var Un,Qn,Dn=[],Hn=Tn.toLowerCase().replace(lu,".").split(".");for(Un=0;Un4)return Tn;for(Qn=[],Dn=0;Dn1&&"0"==Hn.charAt(0)&&(Gn=Qu.test(Hn)?16:8,Hn=Hn.slice(8==Gn?1:2)),""===Hn)Vn=0;else{if(!(10==Gn?ju:8==Gn?Du:Hu).test(Hn))return Tn;Vn=parseInt(Hn,Gn)}Qn.push(Vn)}for(Dn=0;Dn=Iu(256,5-Un))return null}else if(Vn>255)return null;for(zn=Qn.pop(),Dn=0;Dn6)return;for(Dn=0;char();){if(Hn=null,Dn>0){if(!("."==char()&&Dn<4))return;Yn++}if(!Ou.test(char()))return;for(;Ou.test(char());){if(Gn=parseInt(char(),10),null===Hn)Hn=Gn;else{if(0==Hn)return;Hn=10*Hn+Gn}if(Hn>255)return;Yn++}Kn[Wn]=256*Kn[Wn]+Hn,2!=++Dn&&4!=Dn||Wn++}if(4!=Dn)return;break}if(":"==char()){if(Yn++,!char())return}else if(char())return;Kn[Wn++]=Un}else{if(null!==Xn)return;Yn++,Xn=++Wn}}if(null!==Xn)for(Vn=Wn-Xn,Wn=7;0!=Wn&&Vn>0;)zn=Kn[Wn],Kn[Wn--]=Kn[Xn+Vn-1],Kn[Xn+--Vn]=zn;else if(8!=Wn)return;return Kn},serializeHost=function(Tn){var Un,Qn,Dn,Hn;if("number"==typeof Tn){for(Un=[],Qn=0;Qn<4;Qn++)Un.unshift(Tn%256),Tn=Uu(Tn/256);return Un.join(".")}if("object"==typeof Tn){for(Un="",Dn=function(Tn){for(var Un=null,Qn=1,Dn=null,Hn=0,Gn=0;Gn<8;Gn++)0!==Tn[Gn]?(Hn>Qn&&(Un=Dn,Qn=Hn),Dn=null,Hn=0):(null===Dn&&(Dn=Gn),++Hn);return Hn>Qn&&(Un=Dn,Qn=Hn),Un}(Tn),Qn=0;Qn<8;Qn++)Hn&&0===Tn[Qn]||(Hn&&(Hn=!1),Dn===Qn?(Un+=Qn?":":"::",Hn=!0):(Un+=Tn[Qn].toString(16),Qn<7&&(Un+=":")));return"["+Un+"]"}return Tn},qu={},Wu=ou({},qu,{" ":1,'"':1,"<":1,">":1,"`":1}),Xu=ou({},Wu,{"#":1,"?":1,"{":1,"}":1}),Yu=ou({},Xu,{"/":1,":":1,";":1,"=":1,"@":1,"[":1,"\\":1,"]":1,"^":1,"|":1}),percentEncode=function(Tn,Un){var Qn=Eu(Tn,0);return Qn>32&&Qn<127&&!has(Un,Tn)?Tn:encodeURIComponent(Tn)},Ju={ftp:21,file:null,http:80,https:443,ws:80,wss:443},isSpecial=function(Tn){return has(Ju,Tn.scheme)},includesCredentials=function(Tn){return""!=Tn.username||""!=Tn.password},cannotHaveUsernamePasswordPort=function(Tn){return!Tn.host||Tn.cannotBeABaseURL||"file"==Tn.scheme},isWindowsDriveLetter=function(Tn,Un){var Qn;return 2==Tn.length&&Ru.test(Tn.charAt(0))&&(":"==(Qn=Tn.charAt(1))||!Un&&"|"==Qn)},startsWithWindowsDriveLetter=function(Tn){var Un;return Tn.length>1&&isWindowsDriveLetter(Tn.slice(0,2))&&(2==Tn.length||"/"===(Un=Tn.charAt(2))||"\\"===Un||"?"===Un||"#"===Un)},shortenURLsPath=function(Tn){var Un=Tn.path,Qn=Un.length;!Qn||"file"==Tn.scheme&&1==Qn&&isWindowsDriveLetter(Un[0],!0)||Un.pop()},isSingleDot=function(Tn){return"."===Tn||"%2e"===Tn.toLowerCase()},$u={},Zu={},ed={},td={},nd={},rd={},id={},od={},ad={},sd={},ld={},cd={},ud={},dd={},hd={},pd={},Ad={},fd={},gd={},md={},_d={},parseURL=function(Tn,Un,Qn,Dn){var Hn,Gn,Vn,zn,Kn,Wn=Qn||$u,Xn=0,Yn="",Jn=!1,$n=!1,Zn=!1;for(Qn||(Tn.scheme="",Tn.username="",Tn.password="",Tn.host=null,Tn.port=null,Tn.path=[],Tn.query=null,Tn.fragment=null,Tn.cannotBeABaseURL=!1,Un=Un.replace(zu,"")),Un=Un.replace(Ku,""),Hn=au(Un);Xn<=Hn.length;){switch(Gn=Hn[Xn],Wn){case $u:if(!Gn||!Ru.test(Gn)){if(Qn)return"Invalid scheme";Wn=ed;continue}Yn+=Gn.toLowerCase(),Wn=Zu;break;case Zu:if(Gn&&(Mu.test(Gn)||"+"==Gn||"-"==Gn||"."==Gn))Yn+=Gn.toLowerCase();else{if(":"!=Gn){if(Qn)return"Invalid scheme";Yn="",Wn=ed,Xn=0;continue}if(Qn&&(isSpecial(Tn)!=has(Ju,Yn)||"file"==Yn&&(includesCredentials(Tn)||null!==Tn.port)||"file"==Tn.scheme&&!Tn.host))return;if(Tn.scheme=Yn,Qn)return void(isSpecial(Tn)&&Ju[Tn.scheme]==Tn.port&&(Tn.port=null));Yn="","file"==Tn.scheme?Wn=dd:isSpecial(Tn)&&Dn&&Dn.scheme==Tn.scheme?Wn=td:isSpecial(Tn)?Wn=od:"/"==Hn[Xn+1]?(Wn=nd,Xn++):(Tn.cannotBeABaseURL=!0,Tn.path.push(""),Wn=gd)}break;case ed:if(!Dn||Dn.cannotBeABaseURL&&"#"!=Gn)return"Invalid scheme";if(Dn.cannotBeABaseURL&&"#"==Gn){Tn.scheme=Dn.scheme,Tn.path=Dn.path.slice(),Tn.query=Dn.query,Tn.fragment="",Tn.cannotBeABaseURL=!0,Wn=_d;break}Wn="file"==Dn.scheme?dd:rd;continue;case td:if("/"!=Gn||"/"!=Hn[Xn+1]){Wn=rd;continue}Wn=ad,Xn++;break;case nd:if("/"==Gn){Wn=sd;break}Wn=fd;continue;case rd:if(Tn.scheme=Dn.scheme,Gn==Cu)Tn.username=Dn.username,Tn.password=Dn.password,Tn.host=Dn.host,Tn.port=Dn.port,Tn.path=Dn.path.slice(),Tn.query=Dn.query;else if("/"==Gn||"\\"==Gn&&isSpecial(Tn))Wn=id;else if("?"==Gn)Tn.username=Dn.username,Tn.password=Dn.password,Tn.host=Dn.host,Tn.port=Dn.port,Tn.path=Dn.path.slice(),Tn.query="",Wn=md;else{if("#"!=Gn){Tn.username=Dn.username,Tn.password=Dn.password,Tn.host=Dn.host,Tn.port=Dn.port,Tn.path=Dn.path.slice(),Tn.path.pop(),Wn=fd;continue}Tn.username=Dn.username,Tn.password=Dn.password,Tn.host=Dn.host,Tn.port=Dn.port,Tn.path=Dn.path.slice(),Tn.query=Dn.query,Tn.fragment="",Wn=_d}break;case id:if(!isSpecial(Tn)||"/"!=Gn&&"\\"!=Gn){if("/"!=Gn){Tn.username=Dn.username,Tn.password=Dn.password,Tn.host=Dn.host,Tn.port=Dn.port,Wn=fd;continue}Wn=sd}else Wn=ad;break;case od:if(Wn=ad,"/"!=Gn||"/"!=Yn.charAt(Xn+1))continue;Xn++;break;case ad:if("/"!=Gn&&"\\"!=Gn){Wn=sd;continue}break;case sd:if("@"==Gn){Jn&&(Yn="%40"+Yn),Jn=!0,Vn=au(Yn);for(var er=0;er65535)return"Invalid port";Tn.port=isSpecial(Tn)&&rr===Ju[Tn.scheme]?null:rr,Yn=""}if(Qn)return;Wn=Ad;continue}return"Invalid port"}Yn+=Gn;break;case dd:if(Tn.scheme="file","/"==Gn||"\\"==Gn)Wn=hd;else{if(!Dn||"file"!=Dn.scheme){Wn=fd;continue}if(Gn==Cu)Tn.host=Dn.host,Tn.path=Dn.path.slice(),Tn.query=Dn.query;else if("?"==Gn)Tn.host=Dn.host,Tn.path=Dn.path.slice(),Tn.query="",Wn=md;else{if("#"!=Gn){startsWithWindowsDriveLetter(Hn.slice(Xn).join(""))||(Tn.host=Dn.host,Tn.path=Dn.path.slice(),shortenURLsPath(Tn)),Wn=fd;continue}Tn.host=Dn.host,Tn.path=Dn.path.slice(),Tn.query=Dn.query,Tn.fragment="",Wn=_d}}break;case hd:if("/"==Gn||"\\"==Gn){Wn=pd;break}Dn&&"file"==Dn.scheme&&!startsWithWindowsDriveLetter(Hn.slice(Xn).join(""))&&(isWindowsDriveLetter(Dn.path[0],!0)?Tn.path.push(Dn.path[0]):Tn.host=Dn.host),Wn=fd;continue;case pd:if(Gn==Cu||"/"==Gn||"\\"==Gn||"?"==Gn||"#"==Gn){if(!Qn&&isWindowsDriveLetter(Yn))Wn=fd;else if(""==Yn){if(Tn.host="",Qn)return;Wn=Ad}else{if(zn=parseHost(Tn,Yn))return zn;if("localhost"==Tn.host&&(Tn.host=""),Qn)return;Yn="",Wn=Ad}continue}Yn+=Gn;break;case Ad:if(isSpecial(Tn)){if(Wn=fd,"/"!=Gn&&"\\"!=Gn)continue}else if(Qn||"?"!=Gn)if(Qn||"#"!=Gn){if(Gn!=Cu&&(Wn=fd,"/"!=Gn))continue}else Tn.fragment="",Wn=_d;else Tn.query="",Wn=md;break;case fd:if(Gn==Cu||"/"==Gn||"\\"==Gn&&isSpecial(Tn)||!Qn&&("?"==Gn||"#"==Gn)){if(".."===(Kn=(Kn=Yn).toLowerCase())||"%2e."===Kn||".%2e"===Kn||"%2e%2e"===Kn?(shortenURLsPath(Tn),"/"==Gn||"\\"==Gn&&isSpecial(Tn)||Tn.path.push("")):isSingleDot(Yn)?"/"==Gn||"\\"==Gn&&isSpecial(Tn)||Tn.path.push(""):("file"==Tn.scheme&&!Tn.path.length&&isWindowsDriveLetter(Yn)&&(Tn.host&&(Tn.host=""),Yn=Yn.charAt(0)+":"),Tn.path.push(Yn)),Yn="","file"==Tn.scheme&&(Gn==Cu||"?"==Gn||"#"==Gn))for(;Tn.path.length>1&&""===Tn.path[0];)Tn.path.shift();"?"==Gn?(Tn.query="",Wn=md):"#"==Gn&&(Tn.fragment="",Wn=_d)}else Yn+=percentEncode(Gn,Xu);break;case gd:"?"==Gn?(Tn.query="",Wn=md):"#"==Gn?(Tn.fragment="",Wn=_d):Gn!=Cu&&(Tn.path[0]+=percentEncode(Gn,qu));break;case md:Qn||"#"!=Gn?Gn!=Cu&&("'"==Gn&&isSpecial(Tn)?Tn.query+="%27":Tn.query+="#"==Gn?"%23":percentEncode(Gn,qu)):(Tn.fragment="",Wn=_d);break;case _d:Gn!=Cu&&(Tn.fragment+=percentEncode(Gn,Wu))}Xn++}},vd=function URL(Tn){var Un,Dn,Hn=anInstance(this,vd,"URL"),Gn=arguments.length>1?arguments[1]:void 0,Vn=String(Tn),zn=Pu(Hn,{type:"URL"});if(void 0!==Gn)if(Gn instanceof vd)Un=Fu(Gn);else if(Dn=parseURL(Un={},String(Gn)))throw TypeError(Dn);if(Dn=parseURL(zn,Vn,null,Un))throw TypeError(Dn);var Kn=zn.searchParams=new Lu,Wn=Tu(Kn);Wn.updateSearchParams(zn.query),Wn.updateURL=function(){zn.query=String(Kn)||null},Qn||(Hn.href=serializeURL.call(Hn),Hn.origin=getOrigin.call(Hn),Hn.protocol=getProtocol.call(Hn),Hn.username=getUsername.call(Hn),Hn.password=getPassword.call(Hn),Hn.host=getHost.call(Hn),Hn.hostname=getHostname.call(Hn),Hn.port=getPort.call(Hn),Hn.pathname=getPathname.call(Hn),Hn.search=getSearch.call(Hn),Hn.searchParams=getSearchParams.call(Hn),Hn.hash=getHash.call(Hn))},yd=vd.prototype,serializeURL=function(){var Tn=Fu(this),Un=Tn.scheme,Qn=Tn.username,Dn=Tn.password,Hn=Tn.host,Gn=Tn.port,Vn=Tn.path,zn=Tn.query,Kn=Tn.fragment,Wn=Un+":";return null!==Hn?(Wn+="//",includesCredentials(Tn)&&(Wn+=Qn+(Dn?":"+Dn:"")+"@"),Wn+=serializeHost(Hn),null!==Gn&&(Wn+=":"+Gn)):"file"==Un&&(Wn+="//"),Wn+=Tn.cannotBeABaseURL?Vn[0]:Vn.length?"/"+Vn.join("/"):"",null!==zn&&(Wn+="?"+zn),null!==Kn&&(Wn+="#"+Kn),Wn},getOrigin=function(){var Tn=Fu(this),Un=Tn.scheme,Qn=Tn.port;if("blob"==Un)try{return new URL(Un.path[0]).origin}catch(Tn){return"null"}return"file"!=Un&&isSpecial(Tn)?Un+"://"+serializeHost(Tn.host)+(null!==Qn?":"+Qn:""):"null"},getProtocol=function(){return Fu(this).scheme+":"},getUsername=function(){return Fu(this).username},getPassword=function(){return Fu(this).password},getHost=function(){var Tn=Fu(this),Un=Tn.host,Qn=Tn.port;return null===Un?"":null===Qn?serializeHost(Un):serializeHost(Un)+":"+Qn},getHostname=function(){var Tn=Fu(this).host;return null===Tn?"":serializeHost(Tn)},getPort=function(){var Tn=Fu(this).port;return null===Tn?"":String(Tn)},getPathname=function(){var Tn=Fu(this),Un=Tn.path;return Tn.cannotBeABaseURL?Un[0]:Un.length?"/"+Un.join("/"):""},getSearch=function(){var Tn=Fu(this).query;return Tn?"?"+Tn:""},getSearchParams=function(){return Fu(this).searchParams},getHash=function(){var Tn=Fu(this).fragment;return Tn?"#"+Tn:""},accessorDescriptor=function(Tn,Un){return{get:Tn,set:Un,configurable:!0,enumerable:!0}};if(Qn&&_i(yd,{href:accessorDescriptor(serializeURL,(function(Tn){var Un=Fu(this),Qn=String(Tn),Dn=parseURL(Un,Qn);if(Dn)throw TypeError(Dn);Tu(Un.searchParams).updateSearchParams(Un.query)})),origin:accessorDescriptor(getOrigin),protocol:accessorDescriptor(getProtocol,(function(Tn){var Un=Fu(this);parseURL(Un,String(Tn)+":",$u)})),username:accessorDescriptor(getUsername,(function(Tn){var Un=Fu(this),Qn=au(String(Tn));if(!cannotHaveUsernamePasswordPort(Un)){Un.username="";for(var Dn=0;Dn=2){var Kn=decodeURIComponent(Hn.slice(1).join("="));if(Qn&&(Kn=Kn&&!isNaN(Kn)?+Kn:"undefined"===Kn?void 0:void 0!==Tn[Kn]?Tn[Kn]:Kn),zn)for(var Wn=Dn,Xn=0;Xn<=zn;Xn++)Wn=Wn[Gn=""===Vn[Xn]?Wn.length:Vn[Xn]]=Xn=9||Un.button?this._mouseStarted?(this._mouseDrag(Un),Un.preventDefault()):(this._mouseDistanceMet(Un)&&this._mouseDelayMet(Un)&&(this._mouseStarted=!1!==this._mouseStart(this._mouseDownEvent,Un),this._mouseStarted?this._mouseDrag(Un):this._mouseUp(Un)),!this._mouseStarted):this._mouseUp(Un)},_mouseUp:function _mouseUp(Un){return Tn(document).unbind("mousemove."+this.widgetName,this._mouseMoveDelegate).unbind("mouseup."+this.widgetName,this._mouseUpDelegate),this._mouseStarted&&(this._mouseStarted=!1,Un.target==this._mouseDownEvent.target&&Tn.data(Un.target,this.widgetName+".preventClickEvent",!0),this._mouseStop(Un)),!1},_mouseDistanceMet:function _mouseDistanceMet(Tn){return Math.max(Math.abs(this._mouseDownEvent.pageX-Tn.pageX),Math.abs(this._mouseDownEvent.pageY-Tn.pageY))>=this.options.distance},_mouseDelayMet:function _mouseDelayMet(Tn){return this.mouseDelayMet},_mouseStart:function _mouseStart(Tn){},_mouseDrag:function _mouseDrag(Tn){},_mouseStop:function _mouseStop(Tn){},_mouseCapture:function _mouseCapture(Tn){return!0}})}(jQuery),function(Tn,Un){Tn.widget("ui.draggable",Tn.ui.mouse,{widgetEventPrefix:"drag",options:{addClasses:!0,appendTo:"parent",axis:!1,connectToSortable:!1,containment:!1,cursor:"auto",cursorAt:!1,grid:!1,handle:!1,helper:"original",iframeFix:!1,opacity:!1,refreshPositions:!1,revert:!1,revertDuration:500,scope:"default",scroll:!0,scrollSensitivity:20,scrollSpeed:20,snap:!1,snapMode:"both",snapTolerance:20,stack:!1,zIndex:!1},_create:function _create(){"original"==this.options.helper&&!/^(?:r|a|f)/.test(this.element.css("position"))&&(this.element[0].style.position="relative"),this.options.addClasses&&this.element.addClass("ui-draggable"),this.options.disabled&&this.element.addClass("ui-draggable-disabled"),this._mouseInit()},destroy:function destroy(){if(this.element.data("draggable"))return this.element.removeData("draggable").unbind(".draggable").removeClass("ui-draggable ui-draggable-dragging ui-draggable-disabled"),this._mouseDestroy(),this},_mouseCapture:function _mouseCapture(Un){var Qn=this.options;return!(this.helper||Qn.disabled||Tn(Un.target).is(".ui-resizable-handle"))&&(this.handle=this._getHandle(Un),!!this.handle&&(Qn.iframeFix&&Tn(!0===Qn.iframeFix?"iframe":Qn.iframeFix).each((function(){Tn('
').css({width:this.offsetWidth+"px",height:this.offsetHeight+"px",position:"absolute",opacity:"0.001",zIndex:1e3}).css(Tn(this).offset()).appendTo("body")})),!0))},_mouseStart:function _mouseStart(Un){var Qn=this.options;return this.helper=this._createHelper(Un),this._cacheHelperProportions(),Tn.ui.ddmanager&&(Tn.ui.ddmanager.current=this),this._cacheMargins(),this.cssPosition=this.helper.css("position"),this.scrollParent=this.helper.scrollParent(),this.offset=this.positionAbs=this.element.offset(),this.offset={top:this.offset.top-this.margins.top,left:this.offset.left-this.margins.left},Tn.extend(this.offset,{click:{left:Un.pageX-this.offset.left,top:Un.pageY-this.offset.top},parent:this._getParentOffset(),relative:this._getRelativeOffset()}),this.originalPosition=this.position=this._generatePosition(Un),this.originalPageX=Un.pageX,this.originalPageY=Un.pageY,Qn.cursorAt&&this._adjustOffsetFromHelper(Qn.cursorAt),Qn.containment&&this._setContainment(),!1===this._trigger("start",Un)?(this._clear(),!1):(this._cacheHelperProportions(),Tn.ui.ddmanager&&!Qn.dropBehaviour&&Tn.ui.ddmanager.prepareOffsets(this,Un),this.helper.addClass("ui-draggable-dragging"),this._mouseDrag(Un,!0),Tn.ui.ddmanager&&Tn.ui.ddmanager.dragStart(this,Un),!0)},_mouseDrag:function _mouseDrag(Un,Qn){if(this.position=this._generatePosition(Un),this.positionAbs=this._convertPositionTo("absolute"),!Qn){var Dn=this._uiHash();if(!1===this._trigger("drag",Un,Dn))return this._mouseUp({}),!1;this.position=Dn.position}return this.options.axis&&"y"==this.options.axis||(this.helper[0].style.left=this.position.left+"px"),this.options.axis&&"x"==this.options.axis||(this.helper[0].style.top=this.position.top+"px"),Tn.ui.ddmanager&&Tn.ui.ddmanager.drag(this,Un),!1},_mouseStop:function _mouseStop(Un){var Qn=!1;if(Tn.ui.ddmanager&&!this.options.dropBehaviour&&(Qn=Tn.ui.ddmanager.drop(this,Un)),this.dropped&&(Qn=this.dropped,this.dropped=!1),!(this.element[0]&&this.element[0].parentNode||"original"!=this.options.helper))return!1;if("invalid"==this.options.revert&&!Qn||"valid"==this.options.revert&&Qn||!0===this.options.revert||Tn.isFunction(this.options.revert)&&this.options.revert.call(this.element,Qn)){var Dn=this;Tn(this.helper).animate(this.originalPosition,parseInt(this.options.revertDuration,10),(function(){!1!==Dn._trigger("stop",Un)&&Dn._clear()}))}else!1!==this._trigger("stop",Un)&&this._clear();return!1},_mouseUp:function _mouseUp(Un){return!0===this.options.iframeFix&&Tn("div.ui-draggable-iframeFix").each((function(){this.parentNode.removeChild(this)})),Tn.ui.ddmanager&&Tn.ui.ddmanager.dragStop(this,Un),Tn.ui.mouse.prototype._mouseUp.call(this,Un)},cancel:function cancel(){return this.helper.is(".ui-draggable-dragging")?this._mouseUp({}):this._clear(),this},_getHandle:function _getHandle(Un){var Qn=!this.options.handle||!Tn(this.options.handle,this.element).length;return Tn(this.options.handle,this.element).find("*").andSelf().each((function(){this==Un.target&&(Qn=!0)})),Qn},_createHelper:function _createHelper(Un){var Qn=this.options,Dn=Tn.isFunction(Qn.helper)?Tn(Qn.helper.apply(this.element[0],[Un])):"clone"==Qn.helper?this.element.clone().removeAttr("id"):this.element;return Dn.parents("body").length||Dn.appendTo("parent"==Qn.appendTo?this.element[0].parentNode:Qn.appendTo),Dn[0]!=this.element[0]&&!/(fixed|absolute)/.test(Dn.css("position"))&&Dn.css("position","absolute"),Dn},_adjustOffsetFromHelper:function _adjustOffsetFromHelper(Un){"string"==typeof Un&&(Un=Un.split(" ")),Tn.isArray(Un)&&(Un={left:+Un[0],top:+Un[1]||0}),"left"in Un&&(this.offset.click.left=Un.left+this.margins.left),"right"in Un&&(this.offset.click.left=this.helperProportions.width-Un.right+this.margins.left),"top"in Un&&(this.offset.click.top=Un.top+this.margins.top),"bottom"in Un&&(this.offset.click.top=this.helperProportions.height-Un.bottom+this.margins.top)},_getParentOffset:function _getParentOffset(){this.offsetParent=this.helper.offsetParent();var Un=this.offsetParent.offset();return"absolute"==this.cssPosition&&this.scrollParent[0]!=document&&Tn.ui.contains(this.scrollParent[0],this.offsetParent[0])&&(Un.left+=this.scrollParent.scrollLeft(),Un.top+=this.scrollParent.scrollTop()),(this.offsetParent[0]==document.body||this.offsetParent[0].tagName&&"html"==this.offsetParent[0].tagName.toLowerCase()&&Tn.browser.msie)&&(Un={top:0,left:0}),{top:Un.top+(parseInt(this.offsetParent.css("borderTopWidth"),10)||0),left:Un.left+(parseInt(this.offsetParent.css("borderLeftWidth"),10)||0)}},_getRelativeOffset:function _getRelativeOffset(){if("relative"==this.cssPosition){var Tn=this.element.position();return{top:Tn.top-(parseInt(this.helper.css("top"),10)||0)+this.scrollParent.scrollTop(),left:Tn.left-(parseInt(this.helper.css("left"),10)||0)+this.scrollParent.scrollLeft()}}return{top:0,left:0}},_cacheMargins:function _cacheMargins(){this.margins={left:parseInt(this.element.css("marginLeft"),10)||0,top:parseInt(this.element.css("marginTop"),10)||0,right:parseInt(this.element.css("marginRight"),10)||0,bottom:parseInt(this.element.css("marginBottom"),10)||0}},_cacheHelperProportions:function _cacheHelperProportions(){this.helperProportions={width:this.helper.outerWidth(),height:this.helper.outerHeight()}},_setContainment:function _setContainment(){var Un=this.options;if("parent"==Un.containment&&(Un.containment=this.helper[0].parentNode),"document"!=Un.containment&&"window"!=Un.containment||(this.containment=["document"==Un.containment?0:Tn(window).scrollLeft()-this.offset.relative.left-this.offset.parent.left,"document"==Un.containment?0:Tn(window).scrollTop()-this.offset.relative.top-this.offset.parent.top,("document"==Un.containment?0:Tn(window).scrollLeft())+Tn("document"==Un.containment?document:window).width()-this.helperProportions.width-this.margins.left,("document"==Un.containment?0:Tn(window).scrollTop())+(Tn("document"==Un.containment?document:window).height()||document.body.parentNode.scrollHeight)-this.helperProportions.height-this.margins.top]),/^(document|window|parent)$/.test(Un.containment)||Un.containment.constructor==Array)Un.containment.constructor==Array&&(this.containment=Un.containment);else{var Qn=Tn(Un.containment),Dn=Qn[0];if(!Dn)return;Qn.offset();var Hn="hidden"!=Tn(Dn).css("overflow");this.containment=[(parseInt(Tn(Dn).css("borderLeftWidth"),10)||0)+(parseInt(Tn(Dn).css("paddingLeft"),10)||0),(parseInt(Tn(Dn).css("borderTopWidth"),10)||0)+(parseInt(Tn(Dn).css("paddingTop"),10)||0),(Hn?Math.max(Dn.scrollWidth,Dn.offsetWidth):Dn.offsetWidth)-(parseInt(Tn(Dn).css("borderLeftWidth"),10)||0)-(parseInt(Tn(Dn).css("paddingRight"),10)||0)-this.helperProportions.width-this.margins.left-this.margins.right,(Hn?Math.max(Dn.scrollHeight,Dn.offsetHeight):Dn.offsetHeight)-(parseInt(Tn(Dn).css("borderTopWidth"),10)||0)-(parseInt(Tn(Dn).css("paddingBottom"),10)||0)-this.helperProportions.height-this.margins.top-this.margins.bottom],this.relative_container=Qn}},_convertPositionTo:function _convertPositionTo(Un,Qn){Qn||(Qn=this.position);var Dn="absolute"==Un?1:-1,Hn=(this.options,"absolute"!=this.cssPosition||this.scrollParent[0]!=document&&Tn.ui.contains(this.scrollParent[0],this.offsetParent[0])?this.scrollParent:this.offsetParent),Gn=/(html|body)/i.test(Hn[0].tagName);return{top:Qn.top+this.offset.relative.top*Dn+this.offset.parent.top*Dn-(Tn.browser.safari&&Tn.browser.version<526&&"fixed"==this.cssPosition?0:("fixed"==this.cssPosition?-this.scrollParent.scrollTop():Gn?0:Hn.scrollTop())*Dn),left:Qn.left+this.offset.relative.left*Dn+this.offset.parent.left*Dn-(Tn.browser.safari&&Tn.browser.version<526&&"fixed"==this.cssPosition?0:("fixed"==this.cssPosition?-this.scrollParent.scrollLeft():Gn?0:Hn.scrollLeft())*Dn)}},_generatePosition:function _generatePosition(Un){var Qn=this.options,Dn="absolute"!=this.cssPosition||this.scrollParent[0]!=document&&Tn.ui.contains(this.scrollParent[0],this.offsetParent[0])?this.scrollParent:this.offsetParent,Hn=/(html|body)/i.test(Dn[0].tagName),Gn=Un.pageX,Vn=Un.pageY;if(this.originalPosition){var zn;if(this.containment){if(this.relative_container){var Kn=this.relative_container.offset();zn=[this.containment[0]+Kn.left,this.containment[1]+Kn.top,this.containment[2]+Kn.left,this.containment[3]+Kn.top]}else zn=this.containment;Un.pageX-this.offset.click.leftzn[2]&&(Gn=zn[2]+this.offset.click.left),Un.pageY-this.offset.click.top>zn[3]&&(Vn=zn[3]+this.offset.click.top)}if(Qn.grid){var Wn=Qn.grid[1]?this.originalPageY+Math.round((Vn-this.originalPageY)/Qn.grid[1])*Qn.grid[1]:this.originalPageY;Vn=zn&&(Wn-this.offset.click.topzn[3])?Wn-this.offset.click.topzn[2])?Xn-this.offset.click.left=0;Xn--){var Yn=Dn.snapElements[Xn].left,Jn=Yn+Dn.snapElements[Xn].width,$n=Dn.snapElements[Xn].top,Zn=$n+Dn.snapElements[Xn].height;if(Yn-Gn
").appendTo(this.element).addClass("ui-slider-range ui-widget-header"+("min"===Qn.range||"max"===Qn.range?" ui-slider-range-"+Qn.range:"")));for(var Vn=Dn.length;Vn");this.handles=Dn.add(Tn(Gn.join("")).appendTo(Un.element)),this.handle=this.handles.eq(0),this.handles.add(this.range).filter("a").click((function(Tn){Tn.preventDefault()})).hover((function(){Qn.disabled||Tn(this).addClass("ui-state-hover")}),(function(){Tn(this).removeClass("ui-state-hover")})).focus((function(){Qn.disabled?Tn(this).blur():(Tn(".ui-slider .ui-state-focus").removeClass("ui-state-focus"),Tn(this).addClass("ui-state-focus"))})).blur((function(){Tn(this).removeClass("ui-state-focus")})),this.handles.each((function(Un){Tn(this).data("index.ui-slider-handle",Un)})),this.handles.keydown((function(Qn){var Dn,Hn,Gn,Vn=!0,zn=Tn(this).data("index.ui-slider-handle");if(!Un.options.disabled){switch(Qn.keyCode){case Tn.ui.keyCode.HOME:case Tn.ui.keyCode.END:case Tn.ui.keyCode.PAGE_UP:case Tn.ui.keyCode.PAGE_DOWN:case Tn.ui.keyCode.UP:case Tn.ui.keyCode.RIGHT:case Tn.ui.keyCode.DOWN:case Tn.ui.keyCode.LEFT:if(Vn=!1,!Un._keySliding&&(Un._keySliding=!0,Tn(this).addClass("ui-state-active"),!1===Un._start(Qn,zn)))return}switch(Gn=Un.options.step,Dn=Hn=Un.options.values&&Un.options.values.length?Un.values(zn):Un.value(),Qn.keyCode){case Tn.ui.keyCode.HOME:Hn=Un._valueMin();break;case Tn.ui.keyCode.END:Hn=Un._valueMax();break;case Tn.ui.keyCode.PAGE_UP:Hn=Un._trimAlignValue(Dn+(Un._valueMax()-Un._valueMin())/5);break;case Tn.ui.keyCode.PAGE_DOWN:Hn=Un._trimAlignValue(Dn-(Un._valueMax()-Un._valueMin())/5);break;case Tn.ui.keyCode.UP:case Tn.ui.keyCode.RIGHT:if(Dn===Un._valueMax())return;Hn=Un._trimAlignValue(Dn+Gn);break;case Tn.ui.keyCode.DOWN:case Tn.ui.keyCode.LEFT:if(Dn===Un._valueMin())return;Hn=Un._trimAlignValue(Dn-Gn)}return Un._slide(Qn,zn,Hn),Vn}})).keyup((function(Qn){var Dn=Tn(this).data("index.ui-slider-handle");Un._keySliding&&(Un._keySliding=!1,Un._stop(Qn,Dn),Un._change(Qn,Dn),Tn(this).removeClass("ui-state-active"))})),this._refreshValue(),this._animateOff=!1},destroy:function destroy(){return this.handles.remove(),this.range.remove(),this.element.removeClass("ui-slider ui-slider-horizontal ui-slider-vertical ui-slider-disabled ui-widget ui-widget-content ui-corner-all").removeData("slider").unbind(".slider"),this._mouseDestroy(),this},_mouseCapture:function _mouseCapture(Un){var Qn,Dn,Hn,Gn,Vn,zn,Kn,Wn,Xn=this.options;return!Xn.disabled&&(this.elementSize={width:this.element.outerWidth(),height:this.element.outerHeight()},this.elementOffset=this.element.offset(),Qn={x:Un.pageX,y:Un.pageY},Dn=this._normValueFromMouse(Qn),Hn=this._valueMax()-this._valueMin()+1,Vn=this,this.handles.each((function(Un){var Qn=Math.abs(Dn-Vn.values(Un));Hn>Qn&&(Hn=Qn,Gn=Tn(this),zn=Un)})),!0===Xn.range&&this.values(1)===Xn.min&&(zn+=1,Gn=Tn(this.handles[zn])),!1!==this._start(Un,zn)&&(this._mouseSliding=!0,Vn._handleIndex=zn,Gn.addClass("ui-state-active").focus(),Kn=Gn.offset(),Wn=!Tn(Un.target).parents().andSelf().is(".ui-slider-handle"),this._clickOffset=Wn?{left:0,top:0}:{left:Un.pageX-Kn.left-Gn.width()/2,top:Un.pageY-Kn.top-Gn.height()/2-(parseInt(Gn.css("borderTopWidth"),10)||0)-(parseInt(Gn.css("borderBottomWidth"),10)||0)+(parseInt(Gn.css("marginTop"),10)||0)},this.handles.hasClass("ui-state-hover")||this._slide(Un,zn,Dn),this._animateOff=!0,!0))},_mouseStart:function _mouseStart(Tn){return!0},_mouseDrag:function _mouseDrag(Tn){var Un={x:Tn.pageX,y:Tn.pageY},Qn=this._normValueFromMouse(Un);return this._slide(Tn,this._handleIndex,Qn),!1},_mouseStop:function _mouseStop(Tn){return this.handles.removeClass("ui-state-active"),this._mouseSliding=!1,this._stop(Tn,this._handleIndex),this._change(Tn,this._handleIndex),this._handleIndex=null,this._clickOffset=null,this._animateOff=!1,!1},_detectOrientation:function _detectOrientation(){this.orientation="vertical"===this.options.orientation?"vertical":"horizontal"},_normValueFromMouse:function _normValueFromMouse(Tn){var Un,Qn,Dn,Hn,Gn;return"horizontal"===this.orientation?(Un=this.elementSize.width,Qn=Tn.x-this.elementOffset.left-(this._clickOffset?this._clickOffset.left:0)):(Un=this.elementSize.height,Qn=Tn.y-this.elementOffset.top-(this._clickOffset?this._clickOffset.top:0)),(Dn=Qn/Un)>1&&(Dn=1),Dn<0&&(Dn=0),"vertical"===this.orientation&&(Dn=1-Dn),Hn=this._valueMax()-this._valueMin(),Gn=this._valueMin()+Dn*Hn,this._trimAlignValue(Gn)},_start:function _start(Tn,Un){var Qn={handle:this.handles[Un],value:this.value()};return this.options.values&&this.options.values.length&&(Qn.value=this.values(Un),Qn.values=this.values()),this._trigger("start",Tn,Qn)},_slide:function _slide(Tn,Un,Qn){var Dn,Hn,Gn;this.options.values&&this.options.values.length?(Dn=this.values(Un?0:1),2===this.options.values.length&&!0===this.options.range&&(0===Un&&Qn>Dn||1===Un&&Qn1)this.options.values[Un]=this._trimAlignValue(Qn),this._refreshValue(),this._change(null,Un);else{if(!arguments.length)return this._values();if(!Tn.isArray(arguments[0]))return this.options.values&&this.options.values.length?this._values(Un):this.value();for(Dn=this.options.values,Hn=arguments[0],Gn=0;Gn=this._valueMax())return this._valueMax();var Un=this.options.step>0?this.options.step:1,Qn=(Tn-this._valueMin())%Un,Dn=Tn-Qn;return 2*Math.abs(Qn)>=Un&&(Dn+=Qn>0?Un:-Un),parseFloat(Dn.toFixed(5))},_valueMin:function _valueMin(){return this.options.min},_valueMax:function _valueMax(){return this.options.max},_refreshValue:function _refreshValue(){var Un,Qn,Dn,Hn,Gn,Vn=this.options.range,zn=this.options,Kn=this,Wn=!this._animateOff&&zn.animate,Xn={};this.options.values&&this.options.values.length?this.handles.each((function(Dn,Hn){Un=(Kn.values(Dn)-Kn._valueMin())/(Kn._valueMax()-Kn._valueMin())*100,Xn["horizontal"===Kn.orientation?"left":"bottom"]=Un+"%",Tn(this).stop(1,1)[Wn?"animate":"css"](Xn,zn.animate),!0===Kn.options.range&&("horizontal"===Kn.orientation?(0===Dn&&Kn.range.stop(1,1)[Wn?"animate":"css"]({left:Un+"%"},zn.animate),1===Dn&&Kn.range[Wn?"animate":"css"]({width:Un-Qn+"%"},{queue:!1,duration:zn.animate})):(0===Dn&&Kn.range.stop(1,1)[Wn?"animate":"css"]({bottom:Un+"%"},zn.animate),1===Dn&&Kn.range[Wn?"animate":"css"]({height:Un-Qn+"%"},{queue:!1,duration:zn.animate}))),Qn=Un})):(Dn=this.value(),Hn=this._valueMin(),Gn=this._valueMax(),Un=Gn!==Hn?(Dn-Hn)/(Gn-Hn)*100:0,Xn["horizontal"===Kn.orientation?"left":"bottom"]=Un+"%",this.handle.stop(1,1)[Wn?"animate":"css"](Xn,zn.animate),"min"===Vn&&"horizontal"===this.orientation&&this.range.stop(1,1)[Wn?"animate":"css"]({width:Un+"%"},zn.animate),"max"===Vn&&"horizontal"===this.orientation&&this.range[Wn?"animate":"css"]({width:100-Un+"%"},{queue:!1,duration:zn.animate}),"min"===Vn&&"vertical"===this.orientation&&this.range.stop(1,1)[Wn?"animate":"css"]({height:Un+"%"},zn.animate),"max"===Vn&&"vertical"===this.orientation&&this.range[Wn?"animate":"css"]({height:100-Un+"%"},{queue:!1,duration:zn.animate}))}}),Tn.extend(Tn.ui.slider,{version:"1.8.17"})}(jQuery);var os=document.createElement("template");os.innerHTML='\n \n
\n icon\n
\n';var as=function(Tn){_inherits(ToolButton,_wrapNativeSuper(HTMLElement));var Un=_createSuper(ToolButton);function ToolButton(){var Tn;return _classCallCheck(this,ToolButton),(Tn=Un.call(this))._shadowRoot=Tn.attachShadow({mode:"open"}),Tn._shadowRoot.appendChild(os.content.cloneNode(!0)),Tn.$div=Tn._shadowRoot.querySelector("div"),Tn.$img=Tn._shadowRoot.querySelector("img"),Tn}return _createClass(ToolButton,[{key:"attributeChangedCallback",value:function attributeChangedCallback(Tn,Un,Qn){if(Un!==Qn)switch(Tn){case"title":var Dn=this.getAttribute("shortcut");this.$div.setAttribute("title","".concat(Qn," ").concat(Dn?"[".concat(Dn,"]"):""));break;case"style":this.$div.style=Qn;break;case"src":this.$img.setAttribute("src",Qn);break;case"pressed":Qn?this.$div.classList.add("pressed"):this.$div.classList.remove("pressed");break;case"size":"small"===Qn?this.$div.classList.add("small"):this.$div.classList.remove("small");break;case"disabled":Qn?this.$div.classList.add("disabled"):this.$div.classList.remove("disabled");break;default:console.error("unknown attribute: ".concat(Tn))}}},{key:"connectedCallback",value:function connectedCallback(){var Tn=this,Un=this.getAttribute("shortcut");Un&&document.addEventListener("keydown",(function(Qn){if("BODY"===Qn.target.nodeName){var Dn="".concat(Qn.metaKey?"meta+":"").concat(Qn.ctrlKey?"ctrl+":"").concat(Qn.key.toUpperCase());Un===Dn&&(Tn.click(),Qn.preventDefault())}}))}},{key:"title",get:function get(){return this.getAttribute("title")},set:function set(Tn){this.setAttribute("title",Tn)}},{key:"pressed",get:function get(){return this.hasAttribute("pressed")},set:function set(Tn){Tn?this.setAttribute("pressed","true"):this.removeAttribute("pressed","")}},{key:"disabled",get:function get(){return this.hasAttribute("disabled")},set:function set(Tn){Tn?this.setAttribute("disabled","true"):this.removeAttribute("disabled","")}},{key:"src",get:function get(){return this.getAttribute("src")},set:function set(Tn){this.setAttribute("src",Tn)}},{key:"size",get:function get(){return this.getAttribute("size")},set:function set(Tn){this.setAttribute("size",Tn)}}],[{key:"observedAttributes",get:function get(){return["title","src","pressed","disabled","size","style"]}}]),ToolButton}();customElements.define("se-button",as);var ss=document.createElement("template");ss.innerHTML='\n \n \n
\n \n \n
\n \n';var ls=function(Tn){_inherits(FlyingButton,_wrapNativeSuper(HTMLElement));var Un=_createSuper(FlyingButton);function FlyingButton(){var Tn;return _classCallCheck(this,FlyingButton),(Tn=Un.call(this))._shadowRoot=Tn.attachShadow({mode:"open"}),Tn._shadowRoot.appendChild(ss.content.cloneNode(!0)),Tn.$button=Tn._shadowRoot.querySelector(".menu-button"),Tn.$handle=Tn._shadowRoot.querySelector(".handle"),Tn.$overall=Tn._shadowRoot.querySelector(".overall"),Tn.$img=Tn._shadowRoot.querySelector("img"),Tn.$menu=Tn._shadowRoot.querySelector(".menu"),Tn.$elements=Tn.$menu.lastElementChild.assignedElements(),Tn}return _createClass(FlyingButton,[{key:"attributeChangedCallback",value:function attributeChangedCallback(Tn,Un,Qn){if(Un!==Qn)switch(Tn){case"title":var Dn=this.getAttribute("shortcut");this.$button.setAttribute("title","".concat(Qn," [").concat(Dn,"]"));break;case"pressed":Qn?this.$overall.classList.add("pressed"):this.$overall.classList.remove("pressed");break;case"disabled":Qn?this.$div.classList.add("disabled"):this.$div.classList.remove("disabled");break;default:console.error("unknown attribute: ".concat(Tn))}}},{key:"connectedCallback",value:function connectedCallback(){var Tn=this;this.activeSlot=this.shadowRoot.querySelector("slot").assignedElements()[0],this.$img.setAttribute("src",this.activeSlot.getAttribute("src"));var Un=function onClickHandler(Un){switch(Un.stopPropagation(),Un.target.nodeName){case"SE-FLYINGBUTTON":Tn.pressed?Tn.$menu.classList.toggle("open"):(Tn.activeSlot.click(),Tn.setAttribute("pressed","pressed"));break;case"SE-BUTTON":Tn.$img.setAttribute("src",Un.target.getAttribute("src")),Tn.activeSlot=Un.target,Tn.setAttribute("pressed","pressed"),Tn.$menu.classList.remove("open");break;case"DIV":Tn.$menu.classList.toggle("open");break;default:console.error("unkonw nodeName for:",Un.target,Un.target.className)}};this.addEventListener("click",Un),this.$handle.addEventListener("click",Un)}},{key:"title",get:function get(){return this.getAttribute("title")},set:function set(Tn){this.setAttribute("title",Tn)}},{key:"pressed",get:function get(){return this.hasAttribute("pressed")},set:function set(Tn){Tn?this.setAttribute("pressed","true"):this.removeAttribute("pressed","")}},{key:"disabled",get:function get(){return this.hasAttribute("disabled")},set:function set(Tn){Tn?this.setAttribute("disabled","true"):this.removeAttribute("disabled","")}}],[{key:"observedAttributes",get:function get(){return["title","pressed","disabled"]}}]),FlyingButton}();customElements.define("se-flyingbutton",ls);var us=function fill(Tn){for(var Un=toObject(this),Qn=toLength(Un.length),Dn=arguments.length,Hn=toAbsoluteIndex(Dn>1?arguments[1]:void 0,Qn),Gn=Dn>2?arguments[2]:void 0,Vn=void 0===Gn?Qn:toAbsoluteIndex(Gn,Qn);Vn>Hn;)Un[Hn++]=Tn;return Un};_export({target:"Array",proto:!0},{fill:us}),addToUnscopables("fill");var ds=ui.forEach,hs=arrayMethodIsStrict("forEach"),ps=arrayMethodUsesToLength("forEach"),As=hs&&ps?[].forEach:function forEach(Tn){return ds(this,Tn,arguments.length>1?arguments[1]:void 0)};_export({target:"Array",proto:!0,forced:[].forEach!=As},{forEach:As});var gs=Gn.f,createMethod$4=function(Tn){return function(Un){for(var Dn,Hn=toIndexedObject(Un),Gn=mi(Hn),Vn=Gn.length,zn=0,Kn=[];Vn>zn;)Dn=Gn[zn++],Qn&&!gs.call(Hn,Dn)||Kn.push(Tn?[Dn,Hn[Dn]]:Hn[Dn]);return Kn}},fs={entries:createMethod$4(!0),values:createMethod$4(!1)},ms=fs.entries;_export({target:"Object",stat:!0},{entries:function entries(Tn){return ms(Tn)}});var _s=Un.Promise,redefineAll=function(Tn,Un,Qn){for(var Dn in Un)Cr(Tn,Dn,Un[Dn],Qn);return Tn},anInstance=function(Tn,Un,Qn){if(!(Tn instanceof Un))throw TypeError("Incorrect "+(Qn?Qn+" ":"")+"invocation");return Tn},vs=wellKnownSymbol("iterator"),ys=Array.prototype,isArrayIteratorMethod=function(Tn){return void 0!==Tn&&(ka.Array===Tn||ys[vs]===Tn)},bs=wellKnownSymbol("iterator"),getIteratorMethod=function(Tn){if(null!=Tn)return Tn[bs]||Tn["@@iterator"]||ka[Ao(Tn)]},callWithSafeIterationClosing=function(Tn,Un,Qn,Dn){try{return Dn?Un(anObject(Qn)[0],Qn[1]):Un(Qn)}catch(Un){var Hn=Tn.return;throw void 0!==Hn&&anObject(Hn.call(Tn)),Un}},ws=createCommonjsModule((function(Tn){var Result=function(Tn,Un){this.stopped=Tn,this.result=Un};(Tn.exports=function(Tn,Un,Qn,Dn,Hn){var Gn,Vn,zn,Kn,Wn,Xn,Yn,Jn=functionBindContext(Un,Qn,Dn?2:1);if(Hn)Gn=Tn;else{if("function"!=typeof(Vn=getIteratorMethod(Tn)))throw TypeError("Target is not iterable");if(isArrayIteratorMethod(Vn)){for(zn=0,Kn=toLength(Tn.length);Kn>zn;zn++)if((Wn=Dn?Jn(anObject(Yn=Tn[zn])[0],Yn[1]):Jn(Tn[zn]))&&Wn instanceof Result)return Wn;return new Result(!1)}Gn=Vn.call(Tn)}for(Xn=Gn.next;!(Yn=Xn.call(Gn)).done;)if("object"==typeof(Wn=callWithSafeIterationClosing(Gn,Jn,Yn.value,Dn))&&Wn&&Wn instanceof Result)return Wn;return new Result(!1)}).stop=function(Tn){return new Result(!0,Tn)}})),Ss=wellKnownSymbol("iterator"),xs=!1;try{var Cs=0,ks={next:function(){return{done:!!Cs++}},return:function(){xs=!0}};ks[Ss]=function(){return this},Array.from(ks,(function(){throw 2}))}catch(Tn){}var Bs,Es,Ns,checkCorrectnessOfIteration=function(Tn,Un){if(!Un&&!xs)return!1;var Qn=!1;try{var Dn={};Dn[Ss]=function(){return{next:function(){return{done:Qn=!0}}}},Tn(Dn)}catch(Tn){}return Qn},Ls=/(iphone|ipod|ipad).*applewebkit/i.test(Zr),Ts=Un.location,Ps=Un.setImmediate,Fs=Un.clearImmediate,Us=Un.process,Is=Un.MessageChannel,Rs=Un.Dispatch,Ms=0,Os={},run=function(Tn){if(Os.hasOwnProperty(Tn)){var Un=Os[Tn];delete Os[Tn],Un()}},runner=function(Tn){return function(){run(Tn)}},listener=function(Tn){run(Tn.data)},post=function(Tn){Un.postMessage(Tn+"",Ts.protocol+"//"+Ts.host)};Ps&&Fs||(Ps=function setImmediate(Tn){for(var Un=[],Qn=1;arguments.length>Qn;)Un.push(arguments[Qn++]);return Os[++Ms]=function(){("function"==typeof Tn?Tn:Function(Tn)).apply(void 0,Un)},Bs(Ms),Ms},Fs=function clearImmediate(Tn){delete Os[Tn]},"process"==classofRaw(Us)?Bs=function(Tn){Us.nextTick(runner(Tn))}:Rs&&Rs.now?Bs=function(Tn){Rs.now(runner(Tn))}:Is&&!Ls?(Ns=(Es=new Is).port2,Es.port1.onmessage=listener,Bs=functionBindContext(Ns.postMessage,Ns,1)):!Un.addEventListener||"function"!=typeof postMessage||Un.importScripts||fails(post)||"file:"===Ts.protocol?Bs="onreadystatechange"in documentCreateElement("script")?function(Tn){vi.appendChild(documentCreateElement("script")).onreadystatechange=function(){vi.removeChild(this),run(Tn)}}:function(Tn){setTimeout(runner(Tn),0)}:(Bs=post,Un.addEventListener("message",listener,!1)));var Qs,Ds,js,Hs,Gs,Vs,zs,Ks,qs={set:Ps,clear:Fs},Ws=Zn.f,Xs=qs.set,Ys=Un.MutationObserver||Un.WebKitMutationObserver,Js=Un.process,$s=Un.Promise,Zs="process"==classofRaw(Js),el=Ws(Un,"queueMicrotask"),tl=el&&el.value;tl||(Qs=function(){var Tn,Un;for(Zs&&(Tn=Js.domain)&&Tn.exit();Ds;){Un=Ds.fn,Ds=Ds.next;try{Un()}catch(Tn){throw Ds?Hs():js=void 0,Tn}}js=void 0,Tn&&Tn.enter()},Zs?Hs=function(){Js.nextTick(Qs)}:Ys&&!Ls?(Gs=!0,Vs=document.createTextNode(""),new Ys(Qs).observe(Vs,{characterData:!0}),Hs=function(){Vs.data=Gs=!Gs}):$s&&$s.resolve?(zs=$s.resolve(void 0),Ks=zs.then,Hs=function(){Ks.call(zs,Qs)}):Hs=function(){Xs.call(Un,Qs)});var nl,rl,il,ol,al=tl||function(Tn){var Un={fn:Tn,next:void 0};js&&(js.next=Un),Ds||(Ds=Un,Hs()),js=Un},PromiseCapability=function(Tn){var Un,Qn;this.promise=new Tn((function(Tn,Dn){if(void 0!==Un||void 0!==Qn)throw TypeError("Bad Promise constructor");Un=Tn,Qn=Dn})),this.resolve=aFunction$1(Un),this.reject=aFunction$1(Qn)},sl={f:function(Tn){return new PromiseCapability(Tn)}},promiseResolve=function(Tn,Un){if(anObject(Tn),isObject(Un)&&Un.constructor===Tn)return Un;var Qn=sl.f(Tn);return(0,Qn.resolve)(Un),Qn.promise},perform=function(Tn){try{return{error:!1,value:Tn()}}catch(Tn){return{error:!0,value:Tn}}},ll=qs.set,cl=wellKnownSymbol("species"),ul="Promise",dl=xr.get,hl=xr.set,pl=xr.getterFor(ul),Al=_s,gl=Un.TypeError,fl=Un.document,ml=Un.process,_l=getBuiltIn("fetch"),vl=sl.f,yl=vl,wl="process"==classofRaw(ml),Sl=!!(fl&&fl.createEvent&&Un.dispatchEvent),xl=Vr(ul,(function(){if(!(lr(Al)!==String(Al))){if(66===ri)return!0;if(!wl&&"function"!=typeof PromiseRejectionEvent)return!0}if(ri>=51&&/native code/.test(Al))return!1;var Tn=Al.resolve(1),FakePromise=function(Tn){Tn((function(){}),(function(){}))};return(Tn.constructor={})[cl]=FakePromise,!(Tn.then((function(){}))instanceof FakePromise)})),Cl=xl||!checkCorrectnessOfIteration((function(Tn){Al.all(Tn).catch((function(){}))})),isThenable=function(Tn){var Un;return!(!isObject(Tn)||"function"!=typeof(Un=Tn.then))&&Un},notify$1=function(Tn,Un,Qn){if(!Un.notified){Un.notified=!0;var Dn=Un.reactions;al((function(){for(var Hn=Un.value,Gn=1==Un.state,Vn=0;Dn.length>Vn;){var zn,Kn,Wn,Xn=Dn[Vn++],Yn=Gn?Xn.ok:Xn.fail,Jn=Xn.resolve,$n=Xn.reject,Zn=Xn.domain;try{Yn?(Gn||(2===Un.rejection&&onHandleUnhandled(Tn,Un),Un.rejection=1),!0===Yn?zn=Hn:(Zn&&Zn.enter(),zn=Yn(Hn),Zn&&(Zn.exit(),Wn=!0)),zn===Xn.promise?$n(gl("Promise-chain cycle")):(Kn=isThenable(zn))?Kn.call(zn,Jn,$n):Jn(zn)):$n(Hn)}catch(Tn){Zn&&!Wn&&Zn.exit(),$n(Tn)}}Un.reactions=[],Un.notified=!1,Qn&&!Un.rejection&&onUnhandled(Tn,Un)}))}},dispatchEvent=function(Tn,Qn,Dn){var Hn,Gn;Sl?((Hn=fl.createEvent("Event")).promise=Qn,Hn.reason=Dn,Hn.initEvent(Tn,!1,!0),Un.dispatchEvent(Hn)):Hn={promise:Qn,reason:Dn},(Gn=Un["on"+Tn])?Gn(Hn):"unhandledrejection"===Tn&&function(Tn,Qn){var Dn=Un.console;Dn&&Dn.error&&(1===arguments.length?Dn.error(Tn):Dn.error(Tn,Qn))}("Unhandled promise rejection",Dn)},onUnhandled=function(Tn,Qn){ll.call(Un,(function(){var Un,Dn=Qn.value;if(isUnhandled(Qn)&&(Un=perform((function(){wl?ml.emit("unhandledRejection",Dn,Tn):dispatchEvent("unhandledrejection",Tn,Dn)})),Qn.rejection=wl||isUnhandled(Qn)?2:1,Un.error))throw Un.value}))},isUnhandled=function(Tn){return 1!==Tn.rejection&&!Tn.parent},onHandleUnhandled=function(Tn,Qn){ll.call(Un,(function(){wl?ml.emit("rejectionHandled",Tn):dispatchEvent("rejectionhandled",Tn,Qn.value)}))},bind=function(Tn,Un,Qn,Dn){return function(Hn){Tn(Un,Qn,Hn,Dn)}},internalReject=function(Tn,Un,Qn,Dn){Un.done||(Un.done=!0,Dn&&(Un=Dn),Un.value=Qn,Un.state=2,notify$1(Tn,Un,!0))},internalResolve=function(Tn,Un,Qn,Dn){if(!Un.done){Un.done=!0,Dn&&(Un=Dn);try{if(Tn===Qn)throw gl("Promise can't be resolved itself");var Hn=isThenable(Qn);Hn?al((function(){var Dn={done:!1};try{Hn.call(Qn,bind(internalResolve,Tn,Dn,Un),bind(internalReject,Tn,Dn,Un))}catch(Qn){internalReject(Tn,Dn,Qn,Un)}})):(Un.value=Qn,Un.state=1,notify$1(Tn,Un,!1))}catch(Qn){internalReject(Tn,{done:!1},Qn,Un)}}};for(var kl in xl&&(Al=function Promise(Tn){anInstance(this,Al,ul),aFunction$1(Tn),nl.call(this);var Un=dl(this);try{Tn(bind(internalResolve,this,Un),bind(internalReject,this,Un))}catch(Tn){internalReject(this,Un,Tn)}},(nl=function Promise(Tn){hl(this,{type:ul,done:!1,notified:!1,parent:!1,reactions:[],rejection:!1,state:0,value:void 0})}).prototype=redefineAll(Al.prototype,{then:function then(Tn,Un){var Qn=pl(this),Dn=vl(speciesConstructor(this,Al));return Dn.ok="function"!=typeof Tn||Tn,Dn.fail="function"==typeof Un&&Un,Dn.domain=wl?ml.domain:void 0,Qn.parent=!0,Qn.reactions.push(Dn),0!=Qn.state&¬ify$1(this,Qn,!1),Dn.promise},catch:function(Tn){return this.then(void 0,Tn)}}),rl=function(){var Tn=new nl,Un=dl(Tn);this.promise=Tn,this.resolve=bind(internalResolve,Tn,Un),this.reject=bind(internalReject,Tn,Un)},sl.f=vl=function(Tn){return Tn===Al||Tn===il?new rl(Tn):yl(Tn)},"function"==typeof _s&&(ol=_s.prototype.then,Cr(_s.prototype,"then",(function then(Tn,Un){var Qn=this;return new Al((function(Tn,Un){ol.call(Qn,Tn,Un)})).then(Tn,Un)}),{unsafe:!0}),"function"==typeof _l&&_export({global:!0,enumerable:!0,forced:!0},{fetch:function fetch(Tn){return promiseResolve(Al,_l.apply(Un,arguments))}}))),_export({global:!0,wrap:!0,forced:xl},{Promise:Al}),setToStringTag(Al,ul,!1),setSpecies(ul),il=getBuiltIn(ul),_export({target:ul,stat:!0,forced:xl},{reject:function reject(Tn){var Un=vl(this);return Un.reject.call(void 0,Tn),Un.promise}}),_export({target:ul,stat:!0,forced:xl},{resolve:function resolve(Tn){return promiseResolve(this,Tn)}}),_export({target:ul,stat:!0,forced:Cl},{all:function all(Tn){var Un=this,Qn=vl(Un),Dn=Qn.resolve,Hn=Qn.reject,Gn=perform((function(){var Qn=aFunction$1(Un.resolve),Gn=[],Vn=0,zn=1;ws(Tn,(function(Tn){var Kn=Vn++,Wn=!1;Gn.push(void 0),zn++,Qn.call(Un,Tn).then((function(Tn){Wn||(Wn=!0,Gn[Kn]=Tn,--zn||Dn(Gn))}),Hn)})),--zn||Dn(Gn)}));return Gn.error&&Hn(Gn.value),Qn.promise},race:function race(Tn){var Un=this,Qn=vl(Un),Dn=Qn.reject,Hn=perform((function(){var Hn=aFunction$1(Un.resolve);ws(Tn,(function(Tn){Hn.call(Un,Tn).then(Qn.resolve,Dn)}))}));return Hn.error&&Dn(Hn.value),Qn.promise}}),Ya){var Bl=Un[kl],El=Bl&&Bl.prototype;if(El&&El.forEach!==As)try{nr(El,"forEach",As)}catch(Tn){El.forEach=As}}var Nl=Rr.f,Ll={}.toString,Tl="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],Pl={f:function getOwnPropertyNames(Tn){return Tl&&"[object Window]"==Ll.call(Tn)?function(Tn){try{return Nl(Tn)}catch(Tn){return Tl.slice()}}(Tn):Nl(toIndexedObject(Tn))}},Fl={f:wellKnownSymbol},Ul=tr.f,defineWellKnownSymbol=function(Tn){var Un=kr.Symbol||(kr.Symbol={});has(Un,Tn)||Ul(Un,Tn,{value:Fl.f(Tn)})},Il=ui.forEach,Rl=sharedKey("hidden"),Ml=wellKnownSymbol("toPrimitive"),Ol=xr.set,Ql=xr.getterFor("Symbol"),Dl=Object.prototype,jl=Un.Symbol,Hl=getBuiltIn("JSON","stringify"),Gl=Zn.f,Vl=tr.f,zl=Pl.f,Kl=Gn.f,ql=dr("symbols"),Wl=dr("op-symbols"),Xl=dr("string-to-symbol-registry"),Yl=dr("symbol-to-string-registry"),Jl=dr("wks"),$l=Un.QObject,Zl=!$l||!$l.prototype||!$l.prototype.findChild,ec=Qn&&fails((function(){return 7!=wi(Vl({},"a",{get:function(){return Vl(this,"a",{value:7}).a}})).a}))?function(Tn,Un,Qn){var Dn=Gl(Dl,Un);Dn&&delete Dl[Un],Vl(Tn,Un,Qn),Dn&&Tn!==Dl&&Vl(Dl,Un,Dn)}:Vl,wrap=function(Tn,Un){var Dn=ql[Tn]=wi(jl.prototype);return Ol(Dn,{type:"Symbol",tag:Tn,description:Un}),Qn||(Dn.description=Un),Dn},tc=Wr?function(Tn){return"symbol"==typeof Tn}:function(Tn){return Object(Tn)instanceof jl},nc=function defineProperty(Tn,Un,Qn){Tn===Dl&&nc(Wl,Un,Qn),anObject(Tn);var Dn=toPrimitive(Un,!0);return anObject(Qn),has(ql,Dn)?(Qn.enumerable?(has(Tn,Rl)&&Tn[Rl][Dn]&&(Tn[Rl][Dn]=!1),Qn=wi(Qn,{enumerable:createPropertyDescriptor(0,!1)})):(has(Tn,Rl)||Vl(Tn,Rl,createPropertyDescriptor(1,{})),Tn[Rl][Dn]=!0),ec(Tn,Dn,Qn)):Vl(Tn,Dn,Qn)},rc=function defineProperties(Tn,Un){anObject(Tn);var Dn=toIndexedObject(Un),Hn=mi(Dn).concat(sc(Dn));return Il(Hn,(function(Un){Qn&&!ic.call(Dn,Un)||nc(Tn,Un,Dn[Un])})),Tn},ic=function propertyIsEnumerable(Tn){var Un=toPrimitive(Tn,!0),Qn=Kl.call(this,Un);return!(this===Dl&&has(ql,Un)&&!has(Wl,Un))&&(!(Qn||!has(this,Un)||!has(ql,Un)||has(this,Rl)&&this[Rl][Un])||Qn)},oc=function getOwnPropertyDescriptor(Tn,Un){var Qn=toIndexedObject(Tn),Dn=toPrimitive(Un,!0);if(Qn!==Dl||!has(ql,Dn)||has(Wl,Dn)){var Hn=Gl(Qn,Dn);return!Hn||!has(ql,Dn)||has(Qn,Rl)&&Qn[Rl][Dn]||(Hn.enumerable=!0),Hn}},ac=function getOwnPropertyNames(Tn){var Un=zl(toIndexedObject(Tn)),Qn=[];return Il(Un,(function(Tn){has(ql,Tn)||has(gr,Tn)||Qn.push(Tn)})),Qn},sc=function getOwnPropertySymbols(Tn){var Un=Tn===Dl,Qn=zl(Un?Wl:toIndexedObject(Tn)),Dn=[];return Il(Qn,(function(Tn){!has(ql,Tn)||Un&&!has(Dl,Tn)||Dn.push(ql[Tn])})),Dn};if(qr||(Cr((jl=function Symbol(){if(this instanceof jl)throw TypeError("Symbol is not a constructor");var Tn=arguments.length&&void 0!==arguments[0]?String(arguments[0]):void 0,Un=uid(Tn),setter=function(Tn){this===Dl&&setter.call(Wl,Tn),has(this,Rl)&&has(this[Rl],Un)&&(this[Rl][Un]=!1),ec(this,Un,createPropertyDescriptor(1,Tn))};return Qn&&Zl&&ec(Dl,Un,{configurable:!0,set:setter}),wrap(Un,Tn)}).prototype,"toString",(function toString(){return Ql(this).tag})),Cr(jl,"withoutSetter",(function(Tn){return wrap(uid(Tn),Tn)})),Gn.f=ic,tr.f=nc,Zn.f=oc,Rr.f=Pl.f=ac,Mr.f=sc,Fl.f=function(Tn){return wrap(wellKnownSymbol(Tn),Tn)},Qn&&(Vl(jl.prototype,"description",{configurable:!0,get:function description(){return Ql(this).description}}),Cr(Dl,"propertyIsEnumerable",ic,{unsafe:!0}))),_export({global:!0,wrap:!0,forced:!qr,sham:!qr},{Symbol:jl}),Il(mi(Jl),(function(Tn){defineWellKnownSymbol(Tn)})),_export({target:"Symbol",stat:!0,forced:!qr},{for:function(Tn){var Un=String(Tn);if(has(Xl,Un))return Xl[Un];var Qn=jl(Un);return Xl[Un]=Qn,Yl[Qn]=Un,Qn},keyFor:function keyFor(Tn){if(!tc(Tn))throw TypeError(Tn+" is not a symbol");if(has(Yl,Tn))return Yl[Tn]},useSetter:function(){Zl=!0},useSimple:function(){Zl=!1}}),_export({target:"Object",stat:!0,forced:!qr,sham:!Qn},{create:function create(Tn,Un){return void 0===Un?wi(Tn):rc(wi(Tn),Un)},defineProperty:nc,defineProperties:rc,getOwnPropertyDescriptor:oc}),_export({target:"Object",stat:!0,forced:!qr},{getOwnPropertyNames:ac,getOwnPropertySymbols:sc}),_export({target:"Object",stat:!0,forced:fails((function(){Mr.f(1)}))},{getOwnPropertySymbols:function getOwnPropertySymbols(Tn){return Mr.f(toObject(Tn))}}),Hl){var lc=!qr||fails((function(){var Tn=jl();return"[null]"!=Hl([Tn])||"{}"!=Hl({a:Tn})||"{}"!=Hl(Object(Tn))}));_export({target:"JSON",stat:!0,forced:lc},{stringify:function stringify(Tn,Un,Qn){for(var Dn,Hn=[Tn],Gn=1;arguments.length>Gn;)Hn.push(arguments[Gn++]);if(Dn=Un,(isObject(Un)||void 0!==Tn)&&!tc(Tn))return Kr(Un)||(Un=function(Tn,Un){if("function"==typeof Dn&&(Un=Dn.call(this,Tn,Un)),!tc(Un))return Un}),Hn[1]=Un,Hl.apply(null,Hn)}})}jl.prototype[Ml]||nr(jl.prototype,Ml,jl.prototype.valueOf),setToStringTag(jl,"Symbol"),gr[Rl]=!0;var uc=tr.f,dc=Un.Symbol;if(Qn&&"function"==typeof dc&&(!("description"in dc.prototype)||void 0!==dc().description)){var hc={},pc=function Symbol(){var Tn=arguments.length<1||void 0===arguments[0]?void 0:String(arguments[0]),Un=this instanceof pc?new dc(Tn):void 0===Tn?dc():dc(Tn);return""===Tn&&(hc[Un]=!0),Un};copyConstructorProperties(pc,dc);var Ac=pc.prototype=dc.prototype;Ac.constructor=pc;var gc=Ac.toString,fc="Symbol(test)"==String(dc("test")),mc=/^Symbol\((.*)\)[^)]+$/;uc(Ac,"description",{configurable:!0,get:function description(){var Tn=isObject(this)?this.valueOf():this,Un=gc.call(Tn);if(has(hc,Tn))return"";var Qn=fc?Un.slice(7,-1):Un.replace(mc,"$1");return""===Qn?void 0:Qn}}),_export({global:!0,forced:!0},{Symbol:pc})}defineWellKnownSymbol("asyncIterator"),defineWellKnownSymbol("iterator"),defineWellKnownSymbol("toStringTag"),setToStringTag(Un.JSON,"JSON",!0),setToStringTag(Math,"Math",!0),_export({target:"Object",stat:!0,sham:!Qn},{create:wi}),_export({target:"Object",stat:!0,forced:!Qn,sham:!Qn},{defineProperty:tr.f});var _c=fails((function(){La(1)}));_export({target:"Object",stat:!0,forced:_c,sham:!Ba},{getPrototypeOf:function getPrototypeOf(Tn){return La(toObject(Tn))}}),_export({target:"Object",stat:!0},{setPrototypeOf:No});var vc=ua.charAt,yc=xr.set,bc=xr.getterFor("String Iterator");defineIterator(String,"String",(function(Tn){yc(this,{type:"String Iterator",string:String(Tn),index:0})}),(function next(){var Tn,Un=bc(this),Qn=Un.string,Dn=Un.index;return Dn>=Qn.length?{value:void 0,done:!0}:(Tn=vc(Qn,Dn),Un.index+=Tn.length,{value:Tn,done:!1})}));var wc=createCommonjsModule((function(Tn){var Un=function(Tn){var Un,Qn=Object.prototype,Dn=Qn.hasOwnProperty,Hn="function"==typeof Symbol?Symbol:{},Gn=Hn.iterator||"@@iterator",Vn=Hn.asyncIterator||"@@asyncIterator",zn=Hn.toStringTag||"@@toStringTag";function define(Tn,Un,Qn){return Object.defineProperty(Tn,Un,{value:Qn,enumerable:!0,configurable:!0,writable:!0}),Tn[Un]}try{define({},"")}catch(Tn){define=function define(Tn,Un,Qn){return Tn[Un]=Qn}}function wrap(Tn,Un,Qn,Dn){var Hn=Un&&Un.prototype instanceof Generator?Un:Generator,Gn=Object.create(Hn.prototype),Vn=new Context(Dn||[]);return Gn._invoke=function makeInvokeMethod(Tn,Un,Qn){var Dn=Kn;return function invoke(Hn,Gn){if(Dn===Xn)throw new Error("Generator is already running");if(Dn===Yn){if("throw"===Hn)throw Gn;return doneResult()}for(Qn.method=Hn,Qn.arg=Gn;;){var Vn=Qn.delegate;if(Vn){var zn=maybeInvokeDelegate(Vn,Qn);if(zn){if(zn===Jn)continue;return zn}}if("next"===Qn.method)Qn.sent=Qn._sent=Qn.arg;else if("throw"===Qn.method){if(Dn===Kn)throw Dn=Yn,Qn.arg;Qn.dispatchException(Qn.arg)}else"return"===Qn.method&&Qn.abrupt("return",Qn.arg);Dn=Xn;var $n=tryCatch(Tn,Un,Qn);if("normal"===$n.type){if(Dn=Qn.done?Yn:Wn,$n.arg===Jn)continue;return{value:$n.arg,done:Qn.done}}"throw"===$n.type&&(Dn=Yn,Qn.method="throw",Qn.arg=$n.arg)}}}(Tn,Qn,Vn),Gn}function tryCatch(Tn,Un,Qn){try{return{type:"normal",arg:Tn.call(Un,Qn)}}catch(Tn){return{type:"throw",arg:Tn}}}Tn.wrap=wrap;var Kn="suspendedStart",Wn="suspendedYield",Xn="executing",Yn="completed",Jn={};function Generator(){}function GeneratorFunction(){}function GeneratorFunctionPrototype(){}var $n={};$n[Gn]=function(){return this};var Zn=Object.getPrototypeOf,er=Zn&&Zn(Zn(values([])));er&&er!==Qn&&Dn.call(er,Gn)&&($n=er);var tr=GeneratorFunctionPrototype.prototype=Generator.prototype=Object.create($n);function defineIteratorMethods(Tn){["next","throw","return"].forEach((function(Un){define(Tn,Un,(function(Tn){return this._invoke(Un,Tn)}))}))}function AsyncIterator(Tn,Un){var Qn;this._invoke=function enqueue(Hn,Gn){function callInvokeWithMethodAndArg(){return new Un((function(Qn,Vn){!function invoke(Qn,Hn,Gn,Vn){var zn=tryCatch(Tn[Qn],Tn,Hn);if("throw"!==zn.type){var Kn=zn.arg,Wn=Kn.value;return Wn&&"object"===_typeof(Wn)&&Dn.call(Wn,"__await")?Un.resolve(Wn.__await).then((function(Tn){invoke("next",Tn,Gn,Vn)}),(function(Tn){invoke("throw",Tn,Gn,Vn)})):Un.resolve(Wn).then((function(Tn){Kn.value=Tn,Gn(Kn)}),(function(Tn){return invoke("throw",Tn,Gn,Vn)}))}Vn(zn.arg)}(Hn,Gn,Qn,Vn)}))}return Qn=Qn?Qn.then(callInvokeWithMethodAndArg,callInvokeWithMethodAndArg):callInvokeWithMethodAndArg()}}function maybeInvokeDelegate(Tn,Qn){var Dn=Tn.iterator[Qn.method];if(Dn===Un){if(Qn.delegate=null,"throw"===Qn.method){if(Tn.iterator.return&&(Qn.method="return",Qn.arg=Un,maybeInvokeDelegate(Tn,Qn),"throw"===Qn.method))return Jn;Qn.method="throw",Qn.arg=new TypeError("The iterator does not provide a 'throw' method")}return Jn}var Hn=tryCatch(Dn,Tn.iterator,Qn.arg);if("throw"===Hn.type)return Qn.method="throw",Qn.arg=Hn.arg,Qn.delegate=null,Jn;var Gn=Hn.arg;return Gn?Gn.done?(Qn[Tn.resultName]=Gn.value,Qn.next=Tn.nextLoc,"return"!==Qn.method&&(Qn.method="next",Qn.arg=Un),Qn.delegate=null,Jn):Gn:(Qn.method="throw",Qn.arg=new TypeError("iterator result is not an object"),Qn.delegate=null,Jn)}function pushTryEntry(Tn){var Un={tryLoc:Tn[0]};1 in Tn&&(Un.catchLoc=Tn[1]),2 in Tn&&(Un.finallyLoc=Tn[2],Un.afterLoc=Tn[3]),this.tryEntries.push(Un)}function resetTryEntry(Tn){var Un=Tn.completion||{};Un.type="normal",delete Un.arg,Tn.completion=Un}function Context(Tn){this.tryEntries=[{tryLoc:"root"}],Tn.forEach(pushTryEntry,this),this.reset(!0)}function values(Tn){if(Tn){var Qn=Tn[Gn];if(Qn)return Qn.call(Tn);if("function"==typeof Tn.next)return Tn;if(!isNaN(Tn.length)){var Hn=-1,Vn=function next(){for(;++Hn=0;--Hn){var Gn=this.tryEntries[Hn],Vn=Gn.completion;if("root"===Gn.tryLoc)return handle("end");if(Gn.tryLoc<=this.prev){var zn=Dn.call(Gn,"catchLoc"),Kn=Dn.call(Gn,"finallyLoc");if(zn&&Kn){if(this.prev=0;--Qn){var Hn=this.tryEntries[Qn];if(Hn.tryLoc<=this.prev&&Dn.call(Hn,"finallyLoc")&&this.prev=0;--Un){var Qn=this.tryEntries[Un];if(Qn.finallyLoc===Tn)return this.complete(Qn.completion,Qn.afterLoc),resetTryEntry(Qn),Jn}},catch:function _catch(Tn){for(var Un=this.tryEntries.length-1;Un>=0;--Un){var Qn=this.tryEntries[Un];if(Qn.tryLoc===Tn){var Dn=Qn.completion;if("throw"===Dn.type){var Hn=Dn.arg;resetTryEntry(Qn)}return Hn}}throw new Error("illegal catch attempt")},delegateYield:function delegateYield(Tn,Qn,Dn){return this.delegate={iterator:values(Tn),resultName:Qn,nextLoc:Dn},"next"===this.method&&(this.arg=Un),Jn}},Tn}(Tn.exports);try{regeneratorRuntime=Un}catch(Tn){Function("r","regeneratorRuntime = r")(Un)}})),Sc=document.createElement("template");Sc.innerHTML='\n \n \n
\n \n
\n \n
\n \n
\n \n';var xc=function(Tn){_inherits(ExplorerButton,_wrapNativeSuper(HTMLElement));var Un,Qn,Dn=_createSuper(ExplorerButton);function ExplorerButton(){var Tn;return _classCallCheck(this,ExplorerButton),(Tn=Dn.call(this))._shadowRoot=Tn.attachShadow({mode:"open"}),Tn._shadowRoot.appendChild(Sc.content.cloneNode(!0)),Tn.$button=Tn._shadowRoot.querySelector(".menu-button"),Tn.$overall=Tn._shadowRoot.querySelector(".overall"),Tn.$img=Tn._shadowRoot.querySelector(".menu-button img"),Tn.$menu=Tn._shadowRoot.querySelector(".menu"),Tn.$handle=Tn._shadowRoot.querySelector(".handle"),Tn.$lib=Tn._shadowRoot.querySelector(".image-lib"),Tn.files=[],Tn.request=new XMLHttpRequest,Tn}return _createClass(ExplorerButton,[{key:"attributeChangedCallback",value:(Qn=_asyncToGenerator(regeneratorRuntime.mark((function _callee(Tn,Un,Qn){var Dn,Hn,Gn,Vn;return regeneratorRuntime.wrap((function _callee$(zn){for(;;)switch(zn.prev=zn.next){case 0:if(Un!==Qn){zn.next=2;break}return zn.abrupt("return");case 2:zn.t0=Tn,zn.next="title"===zn.t0?5:"pressed"===zn.t0?8:"disabled"===zn.t0?10:"lib"===zn.t0?12:"src"===zn.t0?29:31;break;case 5:return Dn=this.getAttribute("shortcut"),this.$button.setAttribute("title","".concat(Qn," [").concat(Dn,"]")),zn.abrupt("break",33);case 8:return Qn?this.$overall.classList.add("pressed"):this.$overall.classList.remove("pressed"),zn.abrupt("break",33);case 10:return Qn?this.$div.classList.add("disabled"):this.$div.classList.remove("disabled"),zn.abrupt("break",33);case 12:return zn.prev=12,zn.next=15,fetch("".concat(Qn,"index.json"));case 15:return Hn=zn.sent,zn.next=18,Hn.json();case 18:return Gn=zn.sent,Vn=Gn.lib,this.$menu.innerHTML=Vn.map((function(Tn,Un){return'")})).join(""),zn.next=23,this.updateLib(Vn[0]);case 23:zn.next=28;break;case 25:zn.prev=25,zn.t1=zn.catch(12),console.error(zn.t1);case 28:return zn.abrupt("break",33);case 29:return this.$img.setAttribute("src",Qn),zn.abrupt("break",33);case 31:return console.error("unknown attribute: ".concat(Tn)),zn.abrupt("break",33);case 33:case"end":return zn.stop()}}),_callee,this,[[12,25]])}))),function attributeChangedCallback(Tn,Un,Dn){return Qn.apply(this,arguments)})},{key:"connectedCallback",value:function connectedCallback(){var Tn=this,Un=function onClickHandler(Un){switch(console.log(Un.target),Un.stopPropagation(),Un.target.nodeName){case"SE-EXPLORERBUTTON":Tn.$menu.classList.add("open"),Tn.$lib.classList.add("open-lib");break;case"SE-BUTTON":Tn.currentAction=Un.target,Tn.$img.setAttribute("src",Tn.currentAction.getAttribute("src")),Tn.dataset.draw=Tn.data[Tn.currentAction.dataset.shape],Tn._shadowRoot.querySelectorAll(".image-lib [pressed]").forEach((function(Tn){Tn.pressed=!1})),Tn.currentAction.setAttribute("pressed","pressed"),Tn.$menu.classList.remove("open"),Tn.$lib.classList.remove("open-lib");break;case"DIV":"handle"===Un.target.classList[0]?(Tn.$menu.classList.toggle("open"),Tn.$lib.classList.toggle("open-lib")):(Tn._shadowRoot.querySelectorAll(".menu > .pressed").forEach((function(Tn){Tn.classList.remove("pressed")})),Un.target.classList.add("pressed"),Tn.updateLib(Un.target.dataset.menu));break;default:console.error("unknown nodeName for:",Un.target,Un.target.className)}};this.addEventListener("click",Un),this.$menu.addEventListener("click",Un),this.$lib.addEventListener("click",Un),this.$handle.addEventListener("click",Un)}},{key:"updateLib",value:(Un=_asyncToGenerator(regeneratorRuntime.mark((function _callee2(Tn){var Un,Qn,Dn,Hn,Gn,Vn,zn,Kn,Wn;return regeneratorRuntime.wrap((function _callee2$(Xn){for(;;)switch(Xn.prev=Xn.next){case 0:return Un=this.getAttribute("lib"),Xn.prev=1,Xn.next=4,fetch("".concat(Un).concat(Tn,".json"));case 4:return Dn=Xn.sent,Xn.next=7,Dn.json();case 7:Hn=Xn.sent,this.data=Hn.data,Gn=null!==(Qn=Hn.size)&&void 0!==Qn?Qn:300,Vn=Hn.fill?"#333":"none",Kn=[-(zn=.05*Gn),-zn,Gn+2*zn,Gn+2*zn].join(" "),Wn=Hn.fill?0:Gn/30,this.$lib.innerHTML=Object.entries(this.data).map((function(Tn){var Un=_slicedToArray(Tn,2),Qn=Un[0],Dn=Un[1],Hn=btoa('\n \n \n '));return'')})).join(""),Xn.next=20;break;case 17:Xn.prev=17,Xn.t0=Xn.catch(1),console.error("could not read file:".concat(Un).concat(Tn,".json"),Xn.t0);case 20:case"end":return Xn.stop()}}),_callee2,this,[[1,17]])}))),function updateLib(Tn){return Un.apply(this,arguments)})},{key:"title",get:function get(){return this.getAttribute("title")},set:function set(Tn){this.setAttribute("title",Tn)}},{key:"pressed",get:function get(){return this.hasAttribute("pressed")},set:function set(Tn){Tn?this.setAttribute("pressed","true"):this.removeAttribute("pressed","")}},{key:"disabled",get:function get(){return this.hasAttribute("disabled")},set:function set(Tn){Tn?this.setAttribute("disabled","true"):this.removeAttribute("disabled","")}}],[{key:"observedAttributes",get:function get(){return["title","pressed","disabled","lib","src"]}}]),ExplorerButton}();customElements.define("se-explorerbutton",xc);var Cc=ui.every,kc=arrayMethodIsStrict("every"),Bc=arrayMethodUsesToLength("every");_export({target:"Array",proto:!0,forced:!kc||!Bc},{every:function every(Tn){return Cc(this,Tn,arguments.length>1?arguments[1]:void 0)}});var Ec=Pr.includes,Nc=arrayMethodUsesToLength("indexOf",{ACCESSORS:!0,1:0});_export({target:"Array",proto:!0,forced:!Nc},{includes:function includes(Tn){return Ec(this,Tn,arguments.length>1?arguments[1]:void 0)}}),addToUnscopables("includes");var createMethod$5=function(Tn){return function(Un,Qn,Dn,Hn){aFunction$1(Qn);var Gn=toObject(Un),Vn=Kn(Gn),zn=toLength(Gn.length),Wn=Tn?zn-1:0,Xn=Tn?-1:1;if(Dn<2)for(;;){if(Wn in Vn){Hn=Vn[Wn],Wn+=Xn;break}if(Wn+=Xn,Tn?Wn<0:zn<=Wn)throw TypeError("Reduce of empty array with no initial value")}for(;Tn?Wn>=0:zn>Wn;Wn+=Xn)Wn in Vn&&(Hn=Qn(Hn,Vn[Wn],Wn,Gn));return Hn}},Lc={left:createMethod$5(!1),right:createMethod$5(!0)},Tc=Lc.left,Pc=arrayMethodIsStrict("reduce"),Fc=arrayMethodUsesToLength("reduce",{1:0});_export({target:"Array",proto:!0,forced:!Pc||!Fc},{reduce:function reduce(Tn){return Tc(this,Tn,arguments.length,arguments.length>1?arguments[1]:void 0)}});var Uc=Rr.f,Ic=Zn.f,Rc=tr.f,Mc=yo.trim,Oc=Un.Number,Qc=Oc.prototype,Dc="Number"==classofRaw(wi(Qc)),toNumber=function(Tn){var Un,Qn,Dn,Hn,Gn,Vn,zn,Kn,Wn=toPrimitive(Tn,!1);if("string"==typeof Wn&&Wn.length>2)if(43===(Un=(Wn=Mc(Wn)).charCodeAt(0))||45===Un){if(88===(Qn=Wn.charCodeAt(2))||120===Qn)return NaN}else if(48===Un){switch(Wn.charCodeAt(1)){case 66:case 98:Dn=2,Hn=49;break;case 79:case 111:Dn=8,Hn=55;break;default:return+Wn}for(Vn=(Gn=Wn.slice(2)).length,zn=0;znHn)return NaN;return parseInt(Gn,Dn)}return+Wn};if(Vr("Number",!Oc(" 0o1")||!Oc("0b1")||Oc("+0x1"))){for(var jc,Hc=function Number(Tn){var Un=arguments.length<1?0:Tn,Qn=this;return Qn instanceof Hc&&(Dc?fails((function(){Qc.valueOf.call(Qn)})):"Number"!=classofRaw(Qn))?inheritIfRequired(new Oc(toNumber(Un)),Qn,Hc):toNumber(Un)},Gc=Qn?Uc(Oc):"MAX_VALUE,MIN_VALUE,NaN,NEGATIVE_INFINITY,POSITIVE_INFINITY,EPSILON,isFinite,isInteger,isNaN,isSafeInteger,MAX_SAFE_INTEGER,MIN_SAFE_INTEGER,parseFloat,parseInt,isInteger".split(","),Vc=0;Gc.length>Vc;Vc++)has(Oc,jc=Gc[Vc])&&!has(Hc,jc)&&Rc(Hc,jc,Ic(Oc,jc));Hc.prototype=Qc,Qc.constructor=Hc,Cr(Un,"Number",Hc)}_export({target:"Number",stat:!0},{isNaN:function isNaN(Tn){return Tn!=Tn}}),_export({target:"Number",stat:!0,forced:Number.parseFloat!=xo},{parseFloat:xo}),_export({target:"Number",stat:!0,forced:Number.parseInt!=Eo},{parseInt:Eo});var zc=fails((function(){mi(1)}));_export({target:"Object",stat:!0,forced:zc},{keys:function keys(Tn){return mi(toObject(Tn))}});var Kc=fs.values;_export({target:"Object",stat:!0},{values:function values(Tn){return Kc(Tn)}});var notARegexp=function(Tn){if(isRegexp(Tn))throw TypeError("The method doesn't accept regular expressions");return Tn},qc=wellKnownSymbol("match"),correctIsRegexpLogic=function(Tn){var Un=/./;try{"/./"[Tn](Un)}catch(Qn){try{return Un[qc]=!1,"/./"[Tn](Un)}catch(Tn){}}return!1};_export({target:"String",proto:!0,forced:!correctIsRegexpLogic("includes")},{includes:function includes(Tn){return!!~String(requireObjectCoercible(this)).indexOf(notARegexp(Tn),arguments.length>1?arguments[1]:void 0)}});var Wc=Object.is||function is(Tn,Un){return Tn===Un?0!==Tn||1/Tn==1/Un:Tn!=Tn&&Un!=Un};fixRegexpWellKnownSymbolLogic("search",1,(function(Tn,Un,Qn){return[function search(Un){var Qn=requireObjectCoercible(this),Dn=null==Un?void 0:Un[Tn];return void 0!==Dn?Dn.call(Un,Qn):new RegExp(Un)[Tn](String(Qn))},function(Tn){var Dn=Qn(Un,Tn,this);if(Dn.done)return Dn.value;var Hn=anObject(Tn),Gn=String(this),Vn=Hn.lastIndex;Wc(Vn,0)||(Hn.lastIndex=0);var zn=regexpExecAbstract(Hn,Gn);return Wc(Hn.lastIndex,Vn)||(Hn.lastIndex=Vn),null===zn?-1:zn.index}]}));var Xc,Yc=Zn.f,Jc="".startsWith,$c=Math.min,Zc=correctIsRegexpLogic("startsWith"),eu=!(Zc||(Xc=Yc(String.prototype,"startsWith"),!Xc||Xc.writable));_export({target:"String",proto:!0,forced:!eu&&!Zc},{startsWith:function startsWith(Tn){var Un=String(requireObjectCoercible(this));notARegexp(Tn);var Qn=toLength($c(arguments.length>1?arguments[1]:void 0,Un.length)),Dn=String(Tn);return Jc?Jc.call(Un,Dn,Qn):Un.slice(Qn,Qn+Dn.length)===Dn}});var tu=wellKnownSymbol("iterator"),nu=!fails((function(){var Tn=new URL("b?a=1&b=2&c=3","http://a"),Un=Tn.searchParams,Qn="";return Tn.pathname="c%20d",Un.forEach((function(Tn,Dn){Un.delete("b"),Qn+=Dn+Tn})),!Un.sort||"http://a/c%20d?a=1&c=3"!==Tn.href||"3"!==Un.get("c")||"a=1"!==String(new URLSearchParams("?a=1"))||!Un[tu]||"a"!==new URL("https://a@b").username||"b"!==new URLSearchParams(new URLSearchParams("a=b")).get("a")||"xn--e1aybc"!==new URL("http://тест").host||"#%D0%B1"!==new URL("http://a#б").hash||"a1c3"!==Qn||"x"!==new URL("http://x",void 0).host})),ru=Object.assign,iu=Object.defineProperty,ou=!ru||fails((function(){if(Qn&&1!==ru({b:1},ru(iu({},"a",{enumerable:!0,get:function(){iu(this,"b",{value:3,enumerable:!1})}}),{b:2})).b)return!0;var Tn={},Un={},Dn=Symbol(),Hn="abcdefghijklmnopqrst";return Tn[Dn]=7,Hn.split("").forEach((function(Tn){Un[Tn]=Tn})),7!=ru({},Tn)[Dn]||mi(ru({},Un)).join("")!=Hn}))?function assign(Tn,Un){for(var Dn=toObject(Tn),Hn=arguments.length,Vn=1,zn=Mr.f,Wn=Gn.f;Hn>Vn;)for(var Xn,Yn=Kn(arguments[Vn++]),Jn=zn?mi(Yn).concat(zn(Yn)):mi(Yn),$n=Jn.length,Zn=0;$n>Zn;)Xn=Jn[Zn++],Qn&&!Wn.call(Yn,Xn)||(Dn[Xn]=Yn[Xn]);return Dn}:ru,au=function from(Tn){var Un,Qn,Dn,Hn,Gn,Vn,zn=toObject(Tn),Kn="function"==typeof this?this:Array,Wn=arguments.length,Xn=Wn>1?arguments[1]:void 0,Yn=void 0!==Xn,Jn=getIteratorMethod(zn),$n=0;if(Yn&&(Xn=functionBindContext(Xn,Wn>2?arguments[2]:void 0,2)),null==Jn||Kn==Array&&isArrayIteratorMethod(Jn))for(Qn=new Kn(Un=toLength(zn.length));Un>$n;$n++)Vn=Yn?Xn(zn[$n],$n):zn[$n],createProperty(Qn,$n,Vn);else for(Gn=(Hn=Jn.call(zn)).next,Qn=new Kn;!(Dn=Gn.call(Hn)).done;$n++)Vn=Yn?callWithSafeIterationClosing(Hn,Xn,[Dn.value,$n],!0):Dn.value,createProperty(Qn,$n,Vn);return Qn.length=$n,Qn},su=/[^\0-\u007E]/,lu=/[.\u3002\uFF0E\uFF61]/g,uu="Overflow: input needs wider integers to process",du=Math.floor,hu=String.fromCharCode,digitToBasic=function(Tn){return Tn+22+75*(Tn<26)},adapt=function(Tn,Un,Qn){var Dn=0;for(Tn=Qn?du(Tn/700):Tn>>1,Tn+=du(Tn/Un);Tn>455;Dn+=36)Tn=du(Tn/35);return du(Dn+36*Tn/(Tn+38))},encode=function(Tn){var Un,Qn,Dn=[],Hn=(Tn=function(Tn){for(var Un=[],Qn=0,Dn=Tn.length;Qn=55296&&Hn<=56319&&Qn=Gn&&Qndu((2147483647-Vn)/Yn))throw RangeError(uu);for(Vn+=(Xn-Gn)*Yn,Gn=Xn,Un=0;Un2147483647)throw RangeError(uu);if(Qn==Gn){for(var Jn=Vn,$n=36;;$n+=36){var Zn=$n<=zn?1:$n>=zn+26?26:$n-zn;if(Jn0?arguments[0]:void 0,Xn=this,Yn=[];if(fu(Xn,{type:"URLSearchParams",entries:Yn,updateURL:function(){},updateSearchParams:updateSearchParams}),void 0!==Wn)if(isObject(Wn))if("function"==typeof(Tn=getIteratorMethod(Wn)))for(Qn=(Un=Tn.call(Wn)).next;!(Dn=Qn.call(Un)).done;){if((Vn=(Gn=(Hn=getIterator(anObject(Dn.value))).next).call(Hn)).done||(zn=Gn.call(Hn)).done||!Gn.call(Hn).done)throw TypeError("Expected sequence with length 2");Yn.push({key:Vn.value+"",value:zn.value+""})}else for(Kn in Wn)has(Wn,Kn)&&Yn.push({key:Kn,value:Wn[Kn]+""});else parseSearchParams(Yn,"string"==typeof Wn?"?"===Wn.charAt(0)?Wn.slice(1):Wn:Wn+"")},Cu=xu.prototype;redefineAll(Cu,{append:function append(Tn,Un){validateArgumentsLength(arguments.length,2);var Qn=mu(this);Qn.entries.push({key:Tn+"",value:Un+""}),Qn.updateURL()},delete:function(Tn){validateArgumentsLength(arguments.length,1);for(var Un=mu(this),Qn=Un.entries,Dn=Tn+"",Hn=0;HnTn.key){Hn.splice(Un,0,Tn);break}Un===Qn&&Hn.push(Tn)}Dn.updateURL()},forEach:function forEach(Tn){for(var Un,Qn=mu(this).entries,Dn=functionBindContext(Tn,arguments.length>1?arguments[1]:void 0,3),Hn=0;Hn1&&(isObject(Un=arguments[1])&&(Qn=Un.body,"URLSearchParams"===Ao(Qn)&&((Dn=Un.headers?new Au(Un.headers):new Au).has("content-type")||Dn.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"),Un=wi(Un,{body:createPropertyDescriptor(0,String(Qn)),headers:createPropertyDescriptor(0,Dn)}))),Hn.push(Un)),pu.apply(this,Hn)}});var ku,Bu={URLSearchParams:xu,getState:mu},Eu=ua.codeAt,Nu=Un.URL,Lu=Bu.URLSearchParams,Tu=Bu.getState,Pu=xr.set,Fu=xr.getterFor("URL"),Uu=Math.floor,Iu=Math.pow,Ru=/[A-Za-z]/,Mu=/[\d+-.A-Za-z]/,Ou=/\d/,Qu=/^(0x|0X)/,Du=/^[0-7]+$/,ju=/^\d+$/,Hu=/^[\dA-Fa-f]+$/,Gu=/[\u0000\u0009\u000A\u000D #%/:?@[\\]]/,Vu=/[\u0000\u0009\u000A\u000D #/:?@[\\]]/,zu=/^[\u0000-\u001F ]+|[\u0000-\u001F ]+$/g,Ku=/[\u0009\u000A\u000D]/g,parseHost=function(Tn,Un){var Qn,Dn,Hn;if("["==Un.charAt(0)){if("]"!=Un.charAt(Un.length-1))return"Invalid host";if(!(Qn=parseIPv6(Un.slice(1,-1))))return"Invalid host";Tn.host=Qn}else if(isSpecial(Tn)){if(Un=function(Tn){var Un,Qn,Dn=[],Hn=Tn.toLowerCase().replace(lu,".").split(".");for(Un=0;Un4)return Tn;for(Qn=[],Dn=0;Dn1&&"0"==Hn.charAt(0)&&(Gn=Qu.test(Hn)?16:8,Hn=Hn.slice(8==Gn?1:2)),""===Hn)Vn=0;else{if(!(10==Gn?ju:8==Gn?Du:Hu).test(Hn))return Tn;Vn=parseInt(Hn,Gn)}Qn.push(Vn)}for(Dn=0;Dn=Iu(256,5-Un))return null}else if(Vn>255)return null;for(zn=Qn.pop(),Dn=0;Dn6)return;for(Dn=0;char();){if(Hn=null,Dn>0){if(!("."==char()&&Dn<4))return;Yn++}if(!Ou.test(char()))return;for(;Ou.test(char());){if(Gn=parseInt(char(),10),null===Hn)Hn=Gn;else{if(0==Hn)return;Hn=10*Hn+Gn}if(Hn>255)return;Yn++}Kn[Wn]=256*Kn[Wn]+Hn,2!=++Dn&&4!=Dn||Wn++}if(4!=Dn)return;break}if(":"==char()){if(Yn++,!char())return}else if(char())return;Kn[Wn++]=Un}else{if(null!==Xn)return;Yn++,Xn=++Wn}}if(null!==Xn)for(Vn=Wn-Xn,Wn=7;0!=Wn&&Vn>0;)zn=Kn[Wn],Kn[Wn--]=Kn[Xn+Vn-1],Kn[Xn+--Vn]=zn;else if(8!=Wn)return;return Kn},serializeHost=function(Tn){var Un,Qn,Dn,Hn;if("number"==typeof Tn){for(Un=[],Qn=0;Qn<4;Qn++)Un.unshift(Tn%256),Tn=Uu(Tn/256);return Un.join(".")}if("object"==typeof Tn){for(Un="",Dn=function(Tn){for(var Un=null,Qn=1,Dn=null,Hn=0,Gn=0;Gn<8;Gn++)0!==Tn[Gn]?(Hn>Qn&&(Un=Dn,Qn=Hn),Dn=null,Hn=0):(null===Dn&&(Dn=Gn),++Hn);return Hn>Qn&&(Un=Dn,Qn=Hn),Un}(Tn),Qn=0;Qn<8;Qn++)Hn&&0===Tn[Qn]||(Hn&&(Hn=!1),Dn===Qn?(Un+=Qn?":":"::",Hn=!0):(Un+=Tn[Qn].toString(16),Qn<7&&(Un+=":")));return"["+Un+"]"}return Tn},qu={},Wu=ou({},qu,{" ":1,'"':1,"<":1,">":1,"`":1}),Xu=ou({},Wu,{"#":1,"?":1,"{":1,"}":1}),Yu=ou({},Xu,{"/":1,":":1,";":1,"=":1,"@":1,"[":1,"\\":1,"]":1,"^":1,"|":1}),percentEncode=function(Tn,Un){var Qn=Eu(Tn,0);return Qn>32&&Qn<127&&!has(Un,Tn)?Tn:encodeURIComponent(Tn)},Ju={ftp:21,file:null,http:80,https:443,ws:80,wss:443},isSpecial=function(Tn){return has(Ju,Tn.scheme)},includesCredentials=function(Tn){return""!=Tn.username||""!=Tn.password},cannotHaveUsernamePasswordPort=function(Tn){return!Tn.host||Tn.cannotBeABaseURL||"file"==Tn.scheme},isWindowsDriveLetter=function(Tn,Un){var Qn;return 2==Tn.length&&Ru.test(Tn.charAt(0))&&(":"==(Qn=Tn.charAt(1))||!Un&&"|"==Qn)},startsWithWindowsDriveLetter=function(Tn){var Un;return Tn.length>1&&isWindowsDriveLetter(Tn.slice(0,2))&&(2==Tn.length||"/"===(Un=Tn.charAt(2))||"\\"===Un||"?"===Un||"#"===Un)},shortenURLsPath=function(Tn){var Un=Tn.path,Qn=Un.length;!Qn||"file"==Tn.scheme&&1==Qn&&isWindowsDriveLetter(Un[0],!0)||Un.pop()},isSingleDot=function(Tn){return"."===Tn||"%2e"===Tn.toLowerCase()},$u={},Zu={},ed={},td={},nd={},rd={},id={},od={},ad={},sd={},ld={},cd={},ud={},dd={},hd={},pd={},Ad={},gd={},fd={},md={},_d={},parseURL=function(Tn,Un,Qn,Dn){var Hn,Gn,Vn,zn,Kn,Wn=Qn||$u,Xn=0,Yn="",Jn=!1,$n=!1,Zn=!1;for(Qn||(Tn.scheme="",Tn.username="",Tn.password="",Tn.host=null,Tn.port=null,Tn.path=[],Tn.query=null,Tn.fragment=null,Tn.cannotBeABaseURL=!1,Un=Un.replace(zu,"")),Un=Un.replace(Ku,""),Hn=au(Un);Xn<=Hn.length;){switch(Gn=Hn[Xn],Wn){case $u:if(!Gn||!Ru.test(Gn)){if(Qn)return"Invalid scheme";Wn=ed;continue}Yn+=Gn.toLowerCase(),Wn=Zu;break;case Zu:if(Gn&&(Mu.test(Gn)||"+"==Gn||"-"==Gn||"."==Gn))Yn+=Gn.toLowerCase();else{if(":"!=Gn){if(Qn)return"Invalid scheme";Yn="",Wn=ed,Xn=0;continue}if(Qn&&(isSpecial(Tn)!=has(Ju,Yn)||"file"==Yn&&(includesCredentials(Tn)||null!==Tn.port)||"file"==Tn.scheme&&!Tn.host))return;if(Tn.scheme=Yn,Qn)return void(isSpecial(Tn)&&Ju[Tn.scheme]==Tn.port&&(Tn.port=null));Yn="","file"==Tn.scheme?Wn=dd:isSpecial(Tn)&&Dn&&Dn.scheme==Tn.scheme?Wn=td:isSpecial(Tn)?Wn=od:"/"==Hn[Xn+1]?(Wn=nd,Xn++):(Tn.cannotBeABaseURL=!0,Tn.path.push(""),Wn=fd)}break;case ed:if(!Dn||Dn.cannotBeABaseURL&&"#"!=Gn)return"Invalid scheme";if(Dn.cannotBeABaseURL&&"#"==Gn){Tn.scheme=Dn.scheme,Tn.path=Dn.path.slice(),Tn.query=Dn.query,Tn.fragment="",Tn.cannotBeABaseURL=!0,Wn=_d;break}Wn="file"==Dn.scheme?dd:rd;continue;case td:if("/"!=Gn||"/"!=Hn[Xn+1]){Wn=rd;continue}Wn=ad,Xn++;break;case nd:if("/"==Gn){Wn=sd;break}Wn=gd;continue;case rd:if(Tn.scheme=Dn.scheme,Gn==ku)Tn.username=Dn.username,Tn.password=Dn.password,Tn.host=Dn.host,Tn.port=Dn.port,Tn.path=Dn.path.slice(),Tn.query=Dn.query;else if("/"==Gn||"\\"==Gn&&isSpecial(Tn))Wn=id;else if("?"==Gn)Tn.username=Dn.username,Tn.password=Dn.password,Tn.host=Dn.host,Tn.port=Dn.port,Tn.path=Dn.path.slice(),Tn.query="",Wn=md;else{if("#"!=Gn){Tn.username=Dn.username,Tn.password=Dn.password,Tn.host=Dn.host,Tn.port=Dn.port,Tn.path=Dn.path.slice(),Tn.path.pop(),Wn=gd;continue}Tn.username=Dn.username,Tn.password=Dn.password,Tn.host=Dn.host,Tn.port=Dn.port,Tn.path=Dn.path.slice(),Tn.query=Dn.query,Tn.fragment="",Wn=_d}break;case id:if(!isSpecial(Tn)||"/"!=Gn&&"\\"!=Gn){if("/"!=Gn){Tn.username=Dn.username,Tn.password=Dn.password,Tn.host=Dn.host,Tn.port=Dn.port,Wn=gd;continue}Wn=sd}else Wn=ad;break;case od:if(Wn=ad,"/"!=Gn||"/"!=Yn.charAt(Xn+1))continue;Xn++;break;case ad:if("/"!=Gn&&"\\"!=Gn){Wn=sd;continue}break;case sd:if("@"==Gn){Jn&&(Yn="%40"+Yn),Jn=!0,Vn=au(Yn);for(var er=0;er65535)return"Invalid port";Tn.port=isSpecial(Tn)&&rr===Ju[Tn.scheme]?null:rr,Yn=""}if(Qn)return;Wn=Ad;continue}return"Invalid port"}Yn+=Gn;break;case dd:if(Tn.scheme="file","/"==Gn||"\\"==Gn)Wn=hd;else{if(!Dn||"file"!=Dn.scheme){Wn=gd;continue}if(Gn==ku)Tn.host=Dn.host,Tn.path=Dn.path.slice(),Tn.query=Dn.query;else if("?"==Gn)Tn.host=Dn.host,Tn.path=Dn.path.slice(),Tn.query="",Wn=md;else{if("#"!=Gn){startsWithWindowsDriveLetter(Hn.slice(Xn).join(""))||(Tn.host=Dn.host,Tn.path=Dn.path.slice(),shortenURLsPath(Tn)),Wn=gd;continue}Tn.host=Dn.host,Tn.path=Dn.path.slice(),Tn.query=Dn.query,Tn.fragment="",Wn=_d}}break;case hd:if("/"==Gn||"\\"==Gn){Wn=pd;break}Dn&&"file"==Dn.scheme&&!startsWithWindowsDriveLetter(Hn.slice(Xn).join(""))&&(isWindowsDriveLetter(Dn.path[0],!0)?Tn.path.push(Dn.path[0]):Tn.host=Dn.host),Wn=gd;continue;case pd:if(Gn==ku||"/"==Gn||"\\"==Gn||"?"==Gn||"#"==Gn){if(!Qn&&isWindowsDriveLetter(Yn))Wn=gd;else if(""==Yn){if(Tn.host="",Qn)return;Wn=Ad}else{if(zn=parseHost(Tn,Yn))return zn;if("localhost"==Tn.host&&(Tn.host=""),Qn)return;Yn="",Wn=Ad}continue}Yn+=Gn;break;case Ad:if(isSpecial(Tn)){if(Wn=gd,"/"!=Gn&&"\\"!=Gn)continue}else if(Qn||"?"!=Gn)if(Qn||"#"!=Gn){if(Gn!=ku&&(Wn=gd,"/"!=Gn))continue}else Tn.fragment="",Wn=_d;else Tn.query="",Wn=md;break;case gd:if(Gn==ku||"/"==Gn||"\\"==Gn&&isSpecial(Tn)||!Qn&&("?"==Gn||"#"==Gn)){if(".."===(Kn=(Kn=Yn).toLowerCase())||"%2e."===Kn||".%2e"===Kn||"%2e%2e"===Kn?(shortenURLsPath(Tn),"/"==Gn||"\\"==Gn&&isSpecial(Tn)||Tn.path.push("")):isSingleDot(Yn)?"/"==Gn||"\\"==Gn&&isSpecial(Tn)||Tn.path.push(""):("file"==Tn.scheme&&!Tn.path.length&&isWindowsDriveLetter(Yn)&&(Tn.host&&(Tn.host=""),Yn=Yn.charAt(0)+":"),Tn.path.push(Yn)),Yn="","file"==Tn.scheme&&(Gn==ku||"?"==Gn||"#"==Gn))for(;Tn.path.length>1&&""===Tn.path[0];)Tn.path.shift();"?"==Gn?(Tn.query="",Wn=md):"#"==Gn&&(Tn.fragment="",Wn=_d)}else Yn+=percentEncode(Gn,Xu);break;case fd:"?"==Gn?(Tn.query="",Wn=md):"#"==Gn?(Tn.fragment="",Wn=_d):Gn!=ku&&(Tn.path[0]+=percentEncode(Gn,qu));break;case md:Qn||"#"!=Gn?Gn!=ku&&("'"==Gn&&isSpecial(Tn)?Tn.query+="%27":Tn.query+="#"==Gn?"%23":percentEncode(Gn,qu)):(Tn.fragment="",Wn=_d);break;case _d:Gn!=ku&&(Tn.fragment+=percentEncode(Gn,Wu))}Xn++}},vd=function URL(Tn){var Un,Dn,Hn=anInstance(this,vd,"URL"),Gn=arguments.length>1?arguments[1]:void 0,Vn=String(Tn),zn=Pu(Hn,{type:"URL"});if(void 0!==Gn)if(Gn instanceof vd)Un=Fu(Gn);else if(Dn=parseURL(Un={},String(Gn)))throw TypeError(Dn);if(Dn=parseURL(zn,Vn,null,Un))throw TypeError(Dn);var Kn=zn.searchParams=new Lu,Wn=Tu(Kn);Wn.updateSearchParams(zn.query),Wn.updateURL=function(){zn.query=String(Kn)||null},Qn||(Hn.href=serializeURL.call(Hn),Hn.origin=getOrigin.call(Hn),Hn.protocol=getProtocol.call(Hn),Hn.username=getUsername.call(Hn),Hn.password=getPassword.call(Hn),Hn.host=getHost.call(Hn),Hn.hostname=getHostname.call(Hn),Hn.port=getPort.call(Hn),Hn.pathname=getPathname.call(Hn),Hn.search=getSearch.call(Hn),Hn.searchParams=getSearchParams.call(Hn),Hn.hash=getHash.call(Hn))},yd=vd.prototype,serializeURL=function(){var Tn=Fu(this),Un=Tn.scheme,Qn=Tn.username,Dn=Tn.password,Hn=Tn.host,Gn=Tn.port,Vn=Tn.path,zn=Tn.query,Kn=Tn.fragment,Wn=Un+":";return null!==Hn?(Wn+="//",includesCredentials(Tn)&&(Wn+=Qn+(Dn?":"+Dn:"")+"@"),Wn+=serializeHost(Hn),null!==Gn&&(Wn+=":"+Gn)):"file"==Un&&(Wn+="//"),Wn+=Tn.cannotBeABaseURL?Vn[0]:Vn.length?"/"+Vn.join("/"):"",null!==zn&&(Wn+="?"+zn),null!==Kn&&(Wn+="#"+Kn),Wn},getOrigin=function(){var Tn=Fu(this),Un=Tn.scheme,Qn=Tn.port;if("blob"==Un)try{return new URL(Un.path[0]).origin}catch(Tn){return"null"}return"file"!=Un&&isSpecial(Tn)?Un+"://"+serializeHost(Tn.host)+(null!==Qn?":"+Qn:""):"null"},getProtocol=function(){return Fu(this).scheme+":"},getUsername=function(){return Fu(this).username},getPassword=function(){return Fu(this).password},getHost=function(){var Tn=Fu(this),Un=Tn.host,Qn=Tn.port;return null===Un?"":null===Qn?serializeHost(Un):serializeHost(Un)+":"+Qn},getHostname=function(){var Tn=Fu(this).host;return null===Tn?"":serializeHost(Tn)},getPort=function(){var Tn=Fu(this).port;return null===Tn?"":String(Tn)},getPathname=function(){var Tn=Fu(this),Un=Tn.path;return Tn.cannotBeABaseURL?Un[0]:Un.length?"/"+Un.join("/"):""},getSearch=function(){var Tn=Fu(this).query;return Tn?"?"+Tn:""},getSearchParams=function(){return Fu(this).searchParams},getHash=function(){var Tn=Fu(this).fragment;return Tn?"#"+Tn:""},accessorDescriptor=function(Tn,Un){return{get:Tn,set:Un,configurable:!0,enumerable:!0}};if(Qn&&_i(yd,{href:accessorDescriptor(serializeURL,(function(Tn){var Un=Fu(this),Qn=String(Tn),Dn=parseURL(Un,Qn);if(Dn)throw TypeError(Dn);Tu(Un.searchParams).updateSearchParams(Un.query)})),origin:accessorDescriptor(getOrigin),protocol:accessorDescriptor(getProtocol,(function(Tn){var Un=Fu(this);parseURL(Un,String(Tn)+":",$u)})),username:accessorDescriptor(getUsername,(function(Tn){var Un=Fu(this),Qn=au(String(Tn));if(!cannotHaveUsernamePasswordPort(Un)){Un.username="";for(var Dn=0;Dn=2){var Kn=decodeURIComponent(Hn.slice(1).join("="));if(Qn&&(Kn=Kn&&!isNaN(Kn)?+Kn:"undefined"===Kn?void 0:void 0!==Tn[Kn]?Tn[Kn]:Kn),zn)for(var Wn=Dn,Xn=0;Xn<=zn;Xn++)Wn=Wn[Gn=""===Vn[Xn]?Wn.length:Vn[Xn]]=XnUn.getTotalLength())break;Qn--}while(Qn>0);return Qn})),"SVGPathSegList"in window&&"appendItem"in window.SVGPathSegList.prototype||(window.SVGPathSegList=function(Tn){this._pathElement=Tn,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)},window.SVGPathSegList.prototype.classname="SVGPathSegList",Object.defineProperty(window.SVGPathSegList.prototype,"numberOfItems",{get:function get(){return this._checkPathSynchronizedToList(),this._list.length},enumerable:!0}),Object.defineProperty(window.SVGPathElement.prototype,"pathSegList",{get:function get(){return this._pathSegList||(this._pathSegList=new window.SVGPathSegList(this)),this._pathSegList},enumerable:!0}),Object.defineProperty(window.SVGPathElement.prototype,"normalizedPathSegList",{get:function get(){return this.pathSegList},enumerable:!0}),Object.defineProperty(window.SVGPathElement.prototype,"animatedPathSegList",{get:function get(){return this.pathSegList},enumerable:!0}),Object.defineProperty(window.SVGPathElement.prototype,"animatedNormalizedPathSegList",{get:function get(){return this.pathSegList},enumerable:!0}),window.SVGPathSegList.prototype._checkPathSynchronizedToList=function(){this._updateListFromPathMutations(this._pathElementMutationObserver.takeRecords())},window.SVGPathSegList.prototype._updateListFromPathMutations=function(Tn){if(this._pathElement){var Un=!1;Tn.forEach((function(Tn){"d"==Tn.attributeName&&(Un=!0)})),Un&&(this._list=this._parsePath(this._pathElement.getAttribute("d")))}},window.SVGPathSegList.prototype._writeListToPath=function(){this._pathElementMutationObserver.disconnect(),this._pathElement.setAttribute("d",window.SVGPathSegList._pathSegArrayAsString(this._list)),this._pathElementMutationObserver.observe(this._pathElement,this._mutationObserverConfig)},window.SVGPathSegList.prototype.segmentChanged=function(Tn){this._writeListToPath()},window.SVGPathSegList.prototype.clear=function(){this._checkPathSynchronizedToList(),this._list.forEach((function(Tn){Tn._owningPathSegList=null})),this._list=[],this._writeListToPath()},window.SVGPathSegList.prototype.initialize=function(Tn){return this._checkPathSynchronizedToList(),this._list=[Tn],Tn._owningPathSegList=this,this._writeListToPath(),Tn},window.SVGPathSegList.prototype._checkValidIndex=function(Tn){if(isNaN(Tn)||Tn<0||Tn>=this.numberOfItems)throw"INDEX_SIZE_ERR"},window.SVGPathSegList.prototype.getItem=function(Tn){return this._checkPathSynchronizedToList(),this._checkValidIndex(Tn),this._list[Tn]},window.SVGPathSegList.prototype.insertItemBefore=function(Tn,Un){return this._checkPathSynchronizedToList(),Un>this.numberOfItems&&(Un=this.numberOfItems),Tn._owningPathSegList&&(Tn=Tn.clone()),this._list.splice(Un,0,Tn),Tn._owningPathSegList=this,this._writeListToPath(),Tn},window.SVGPathSegList.prototype.replaceItem=function(Tn,Un){return this._checkPathSynchronizedToList(),Tn._owningPathSegList&&(Tn=Tn.clone()),this._checkValidIndex(Un),this._list[Un]=Tn,Tn._owningPathSegList=this,this._writeListToPath(),Tn},window.SVGPathSegList.prototype.removeItem=function(Tn){this._checkPathSynchronizedToList(),this._checkValidIndex(Tn);var Un=this._list[Tn];return this._list.splice(Tn,1),this._writeListToPath(),Un},window.SVGPathSegList.prototype.appendItem=function(Tn){return this._checkPathSynchronizedToList(),Tn._owningPathSegList&&(Tn=Tn.clone()),this._list.push(Tn),Tn._owningPathSegList=this,this._writeListToPath(),Tn},window.SVGPathSegList._pathSegArrayAsString=function(Tn){var Un="",Qn=!0;return Tn.forEach((function(Tn){Qn?(Qn=!1,Un+=Tn._asPathString()):Un+=" "+Tn._asPathString()})),Un},window.SVGPathSegList.prototype._parsePath=function(Tn){if(!Tn||0==Tn.length)return[];var Un=this,Qn=function Builder(){this.pathSegList=[]};Qn.prototype.appendSegment=function(Tn){this.pathSegList.push(Tn)};var Dn=function Source(Tn){this._string=Tn,this._currentIndex=0,this._endIndex=this._string.length,this._previousCommand=window.SVGPathSeg.PATHSEG_UNKNOWN,this._skipOptionalSpaces()};Dn.prototype._isCurrentSpace=function(){var Tn=this._string[this._currentIndex];return Tn<=" "&&(" "==Tn||"\n"==Tn||"\t"==Tn||"\r"==Tn||"\f"==Tn)},Dn.prototype._skipOptionalSpaces=function(){for(;this._currentIndex="0"&&Tn<="9")&&Un!=window.SVGPathSeg.PATHSEG_CLOSEPATH?Un==window.SVGPathSeg.PATHSEG_MOVETO_ABS?window.SVGPathSeg.PATHSEG_LINETO_ABS:Un==window.SVGPathSeg.PATHSEG_MOVETO_REL?window.SVGPathSeg.PATHSEG_LINETO_REL:Un:window.SVGPathSeg.PATHSEG_UNKNOWN},Dn.prototype.initialCommandIsMoveTo=function(){if(!this.hasMoreData())return!0;var Tn=this.peekSegmentType();return Tn==window.SVGPathSeg.PATHSEG_MOVETO_ABS||Tn==window.SVGPathSeg.PATHSEG_MOVETO_REL},Dn.prototype._parseNumber=function(){var Tn=0,Un=0,Qn=1,Dn=0,Hn=1,Gn=1,Vn=this._currentIndex;if(this._skipOptionalSpaces(),this._currentIndex"9")&&"."!=this._string.charAt(this._currentIndex))){for(var zn=this._currentIndex;this._currentIndex="0"&&this._string.charAt(this._currentIndex)<="9";)this._currentIndex++;if(this._currentIndex!=zn)for(var Kn=this._currentIndex-1,Wn=1;Kn>=zn;)Un+=Wn*(this._string.charAt(Kn--)-"0"),Wn*=10;if(this._currentIndex=this._endIndex||this._string.charAt(this._currentIndex)<"0"||this._string.charAt(this._currentIndex)>"9")return;for(;this._currentIndex="0"&&this._string.charAt(this._currentIndex)<="9";)Qn*=10,Dn+=(this._string.charAt(this._currentIndex)-"0")/Qn,this._currentIndex+=1}if(this._currentIndex!=Vn&&this._currentIndex+1=this._endIndex||this._string.charAt(this._currentIndex)<"0"||this._string.charAt(this._currentIndex)>"9")return;for(;this._currentIndex="0"&&this._string.charAt(this._currentIndex)<="9";)Tn*=10,Tn+=this._string.charAt(this._currentIndex)-"0",this._currentIndex++}var Xn=Un+Dn;if(Xn*=Hn,Tn&&(Xn*=Math.pow(10,Gn*Tn)),Vn!=this._currentIndex)return this._skipOptionalSpacesOrDelimiter(),Xn}},Dn.prototype._parseArcFlag=function(){if(!(this._currentIndex>=this._endIndex)){var Tn=!1,Un=this._string.charAt(this._currentIndex++);if("0"==Un)Tn=!1;else{if("1"!=Un)return;Tn=!0}return this._skipOptionalSpacesOrDelimiter(),Tn}},Dn.prototype.parseSegment=function(){var Tn=this._string[this._currentIndex],Qn=this._pathSegTypeFromChar(Tn);if(Qn==window.SVGPathSeg.PATHSEG_UNKNOWN){if(this._previousCommand==window.SVGPathSeg.PATHSEG_UNKNOWN)return null;if((Qn=this._nextCommandHelper(Tn,this._previousCommand))==window.SVGPathSeg.PATHSEG_UNKNOWN)return null}else this._currentIndex++;switch(this._previousCommand=Qn,Qn){case window.SVGPathSeg.PATHSEG_MOVETO_REL:return new window.SVGPathSegMovetoRel(Un,this._parseNumber(),this._parseNumber());case window.SVGPathSeg.PATHSEG_MOVETO_ABS:return new window.SVGPathSegMovetoAbs(Un,this._parseNumber(),this._parseNumber());case window.SVGPathSeg.PATHSEG_LINETO_REL:return new window.SVGPathSegLinetoRel(Un,this._parseNumber(),this._parseNumber());case window.SVGPathSeg.PATHSEG_LINETO_ABS:return new window.SVGPathSegLinetoAbs(Un,this._parseNumber(),this._parseNumber());case window.SVGPathSeg.PATHSEG_LINETO_HORIZONTAL_REL:return new window.SVGPathSegLinetoHorizontalRel(Un,this._parseNumber());case window.SVGPathSeg.PATHSEG_LINETO_HORIZONTAL_ABS:return new window.SVGPathSegLinetoHorizontalAbs(Un,this._parseNumber());case window.SVGPathSeg.PATHSEG_LINETO_VERTICAL_REL:return new window.SVGPathSegLinetoVerticalRel(Un,this._parseNumber());case window.SVGPathSeg.PATHSEG_LINETO_VERTICAL_ABS:return new window.SVGPathSegLinetoVerticalAbs(Un,this._parseNumber());case window.SVGPathSeg.PATHSEG_CLOSEPATH:return this._skipOptionalSpaces(),new window.SVGPathSegClosePath(Un);case window.SVGPathSeg.PATHSEG_CURVETO_CUBIC_REL:var Dn={x1:this._parseNumber(),y1:this._parseNumber(),x2:this._parseNumber(),y2:this._parseNumber(),x:this._parseNumber(),y:this._parseNumber()};return new window.SVGPathSegCurvetoCubicRel(Un,Dn.x,Dn.y,Dn.x1,Dn.y1,Dn.x2,Dn.y2);case window.SVGPathSeg.PATHSEG_CURVETO_CUBIC_ABS:return Dn={x1:this._parseNumber(),y1:this._parseNumber(),x2:this._parseNumber(),y2:this._parseNumber(),x:this._parseNumber(),y:this._parseNumber()},new window.SVGPathSegCurvetoCubicAbs(Un,Dn.x,Dn.y,Dn.x1,Dn.y1,Dn.x2,Dn.y2);case window.SVGPathSeg.PATHSEG_CURVETO_CUBIC_SMOOTH_REL:return Dn={x2:this._parseNumber(),y2:this._parseNumber(),x:this._parseNumber(),y:this._parseNumber()},new window.SVGPathSegCurvetoCubicSmoothRel(Un,Dn.x,Dn.y,Dn.x2,Dn.y2);case window.SVGPathSeg.PATHSEG_CURVETO_CUBIC_SMOOTH_ABS:return Dn={x2:this._parseNumber(),y2:this._parseNumber(),x:this._parseNumber(),y:this._parseNumber()},new window.SVGPathSegCurvetoCubicSmoothAbs(Un,Dn.x,Dn.y,Dn.x2,Dn.y2);case window.SVGPathSeg.PATHSEG_CURVETO_QUADRATIC_REL:return Dn={x1:this._parseNumber(),y1:this._parseNumber(),x:this._parseNumber(),y:this._parseNumber()},new window.SVGPathSegCurvetoQuadraticRel(Un,Dn.x,Dn.y,Dn.x1,Dn.y1);case window.SVGPathSeg.PATHSEG_CURVETO_QUADRATIC_ABS:return Dn={x1:this._parseNumber(),y1:this._parseNumber(),x:this._parseNumber(),y:this._parseNumber()},new window.SVGPathSegCurvetoQuadraticAbs(Un,Dn.x,Dn.y,Dn.x1,Dn.y1);case window.SVGPathSeg.PATHSEG_CURVETO_QUADRATIC_SMOOTH_REL:return new window.SVGPathSegCurvetoQuadraticSmoothRel(Un,this._parseNumber(),this._parseNumber());case window.SVGPathSeg.PATHSEG_CURVETO_QUADRATIC_SMOOTH_ABS:return new window.SVGPathSegCurvetoQuadraticSmoothAbs(Un,this._parseNumber(),this._parseNumber());case window.SVGPathSeg.PATHSEG_ARC_REL:return Dn={x1:this._parseNumber(),y1:this._parseNumber(),arcAngle:this._parseNumber(),arcLarge:this._parseArcFlag(),arcSweep:this._parseArcFlag(),x:this._parseNumber(),y:this._parseNumber()},new window.SVGPathSegArcRel(Un,Dn.x,Dn.y,Dn.x1,Dn.y1,Dn.arcAngle,Dn.arcLarge,Dn.arcSweep);case window.SVGPathSeg.PATHSEG_ARC_ABS:return Dn={x1:this._parseNumber(),y1:this._parseNumber(),arcAngle:this._parseNumber(),arcLarge:this._parseArcFlag(),arcSweep:this._parseArcFlag(),x:this._parseNumber(),y:this._parseNumber()},new window.SVGPathSegArcAbs(Un,Dn.x,Dn.y,Dn.x1,Dn.y1,Dn.arcAngle,Dn.arcLarge,Dn.arcSweep);default:throw"Unknown path seg type."}};var Hn=new Qn,Gn=new Dn(Tn);if(!Gn.initialCommandIsMoveTo())return[];for(;Gn.hasMoreData();){var Vn=Gn.parseSegment();if(!Vn)return[];Hn.appendSegment(Vn)}return Hn.pathSegList});Boolean(document.createElementNS&&document.createElementNS(Sd.SVG,"svg").createSVGRect);var Cd,Bd=navigator.userAgent,Ed=document.createElementNS(Sd.SVG,"svg"),Nd=Boolean(window.opera),Ld=Bd.includes("AppleWebKit"),Td=Bd.includes("Gecko/"),Pd=Bd.includes("MSIE"),Fd=Bd.includes("Chrome/"),Ud=(Bd.includes("Windows"),Bd.includes("Macintosh")),Id="ontouchstart"in window,Rd=Boolean(Ed.querySelector),Md=Boolean(document.evaluate),Od=function(){var Tn=document.createElementNS(Sd.SVG,"path");Tn.setAttribute("d","M0,0 10,10");var Un=Tn.pathSegList,Qn=Tn.createSVGPathSegLinetoAbs(5,5);try{return Un.replaceItem(Qn,1),!0}catch(Tn){}return!1}(),Qd=function(){var Tn=document.createElementNS(Sd.SVG,"path");Tn.setAttribute("d","M0,0 10,10");var Un=Tn.pathSegList,Qn=Tn.createSVGPathSegLinetoAbs(5,5);try{return Un.insertItemBefore(Qn,1),!0}catch(Tn){}return!1}(),Dd=function(){var Tn=document.createElementNS(Sd.SVG,"svg"),Un=document.createElementNS(Sd.SVG,"svg");document.documentElement.append(Tn),Un.setAttribute("x",5),Tn.append(Un);var Qn=document.createElementNS(Sd.SVG,"text");Qn.textContent="a",Un.append(Qn);try{return 0===Qn.getStartPositionOfChar(0).x}catch(Tn){return!1}finally{Tn.remove()}}(),jd=function(){var Tn=document.createElementNS(Sd.SVG,"svg");document.documentElement.append(Tn);var Un=document.createElementNS(Sd.SVG,"path");Un.setAttribute("d","M0,0 C0,0 10,10 10,0"),Tn.append(Un);var Qn=Un.getBBox();return Tn.remove(),Qn.height>4&&Qn.height<5}(),Hd=function(){var Tn=document.createElementNS(Sd.SVG,"svg");document.documentElement.append(Tn);var Un=document.createElementNS(Sd.SVG,"path");Un.setAttribute("d","M0,0 10,0");var Qn=document.createElementNS(Sd.SVG,"path");Qn.setAttribute("d","M5,0 15,0");var Dn=document.createElementNS(Sd.SVG,"g");Dn.append(Un,Qn),Tn.append(Dn);var Hn=Dn.getBBox();return Tn.remove(),15===Hn.width}(),Gd=((Cd=document.createElementNS(Sd.SVG,"rect")).setAttribute("style","vector-effect:non-scaling-stroke"),"non-scaling-stroke"===Cd.style.vectorEffect),Vd=function(){var Tn=document.createElementNS(Sd.SVG,"rect").transform.baseVal,Un=Ed.createSVGTransform();Tn.appendItem(Un);var Qn=Tn.getItem(0),Dn=function isSVGTransform(Tn){return Tn&&"object"===_typeof(Tn)&&"function"==typeof Tn.setMatrix&&"angle"in Tn};return Dn(Qn)&&Dn(Un)&&Qn.type===Un.type&&Qn.angle===Un.angle&&Qn.matrix.a===Un.matrix.a&&Qn.matrix.b===Un.matrix.b&&Qn.matrix.c===Un.matrix.c&&Qn.matrix.d===Un.matrix.d&&Qn.matrix.e===Un.matrix.e&&Qn.matrix.f===Un.matrix.f}(),zd=function isWebkit(){return Ld},Kd=function isGecko(){return Td},qd=function isIE(){return Pd},Wd=function isChrome(){return Fd},Xd=function isMac(){return Ud},Yd=function isTouch(){return Id},Jd=function supportsGoodTextCharPos(){return Dd},$d=function supportsNonScalingStroke(){return Gd},Zd="undefined"!=typeof ArrayBuffer&&"undefined"!=typeof DataView,toIndex=function(Tn){if(void 0===Tn)return 0;var Un=toInteger(Tn),Qn=toLength(Un);if(Un!==Qn)throw RangeError("Wrong length or index");return Qn},eh=Math.abs,th=Math.pow,nh=Math.floor,rh=Math.log,ih=Math.LN2,ieee754_pack=function(Tn,Un,Qn){var Dn,Hn,Gn,Vn=new Array(Qn),zn=8*Qn-Un-1,Kn=(1<>1,Xn=23===Un?th(2,-24)-th(2,-77):0,Yn=Tn<0||0===Tn&&1/Tn<0?1:0,Jn=0;for((Tn=eh(Tn))!=Tn||Infinity===Tn?(Hn=Tn!=Tn?1:0,Dn=Kn):(Dn=nh(rh(Tn)/ih),Tn*(Gn=th(2,-Dn))<1&&(Dn--,Gn*=2),(Tn+=Dn+Wn>=1?Xn/Gn:Xn*th(2,1-Wn))*Gn>=2&&(Dn++,Gn/=2),Dn+Wn>=Kn?(Hn=0,Dn=Kn):Dn+Wn>=1?(Hn=(Tn*Gn-1)*th(2,Un),Dn+=Wn):(Hn=Tn*th(2,Wn-1)*th(2,Un),Dn=0));Un>=8;Vn[Jn++]=255&Hn,Hn/=256,Un-=8);for(Dn=Dn<0;Vn[Jn++]=255&Dn,Dn/=256,zn-=8);return Vn[--Jn]|=128*Yn,Vn},ieee754_unpack=function(Tn,Un){var Qn,Dn=Tn.length,Hn=8*Dn-Un-1,Gn=(1<>1,zn=Hn-7,Kn=Dn-1,Wn=Tn[Kn--],Xn=127&Wn;for(Wn>>=7;zn>0;Xn=256*Xn+Tn[Kn],Kn--,zn-=8);for(Qn=Xn&(1<<-zn)-1,Xn>>=-zn,zn+=Un;zn>0;Qn=256*Qn+Tn[Kn],Kn--,zn-=8);if(0===Xn)Xn=1-Vn;else{if(Xn===Gn)return Qn?NaN:Wn?-Infinity:Infinity;Qn+=th(2,Un),Xn-=Vn}return(Wn?-1:1)*Qn*th(2,Xn-Un)},oh=Rr.f,ah=tr.f,sh=Sr.get,lh=Sr.set,ch=Un.ArrayBuffer,uh=ch,dh=Un.DataView,hh=dh&&dh.prototype,ph=Object.prototype,Ah=Un.RangeError,fh=ieee754_pack,gh=ieee754_unpack,packInt8=function(Tn){return[255&Tn]},packInt16=function(Tn){return[255&Tn,Tn>>8&255]},packInt32=function(Tn){return[255&Tn,Tn>>8&255,Tn>>16&255,Tn>>24&255]},unpackInt32=function(Tn){return Tn[3]<<24|Tn[2]<<16|Tn[1]<<8|Tn[0]},packFloat32=function(Tn){return fh(Tn,23,4)},packFloat64=function(Tn){return fh(Tn,52,8)},addGetter=function(Tn,Un){ah(Tn.prototype,Un,{get:function(){return sh(this)[Un]}})},get$1=function(Tn,Un,Qn,Dn){var Hn=toIndex(Qn),Gn=sh(Tn);if(Hn+Un>Gn.byteLength)throw Ah("Wrong index");var Vn=sh(Gn.buffer).bytes,zn=Hn+Gn.byteOffset,Kn=Vn.slice(zn,zn+Un);return Dn?Kn:Kn.reverse()},set$2=function(Tn,Un,Qn,Dn,Hn,Gn){var Vn=toIndex(Qn),zn=sh(Tn);if(Vn+Un>zn.byteLength)throw Ah("Wrong index");for(var Kn=sh(zn.buffer).bytes,Wn=Vn+zn.byteOffset,Xn=Dn(+Hn),Yn=0;Ynyh;)(mh=vh[yh++])in uh||nr(uh,mh,ch[mh]);_h.constructor=uh}No&&La(hh)!==ph&&No(hh,ph);var bh=new dh(new uh(2)),wh=hh.setInt8;bh.setInt8(0,2147483648),bh.setInt8(1,2147483649),!bh.getInt8(0)&&bh.getInt8(1)||redefineAll(hh,{setInt8:function setInt8(Tn,Un){wh.call(this,Tn,Un<<24>>24)},setUint8:function setUint8(Tn,Un){wh.call(this,Tn,Un<<24>>24)}},{unsafe:!0})}else uh=function ArrayBuffer(Tn){anInstance(this,uh,"ArrayBuffer");var Un=toIndex(Tn);lh(this,{bytes:us.call(new Array(Un),0),byteLength:Un}),Qn||(this.byteLength=Un)},dh=function DataView(Tn,Un,Dn){anInstance(this,dh,"DataView"),anInstance(Tn,uh,"DataView");var Hn=sh(Tn).byteLength,Gn=toInteger(Un);if(Gn<0||Gn>Hn)throw Ah("Wrong offset");if(Gn+(Dn=void 0===Dn?Hn-Gn:toLength(Dn))>Hn)throw Ah("Wrong length");lh(this,{buffer:Tn,byteLength:Dn,byteOffset:Gn}),Qn||(this.buffer=Tn,this.byteLength=Dn,this.byteOffset=Gn)},Qn&&(addGetter(uh,"byteLength"),addGetter(dh,"buffer"),addGetter(dh,"byteLength"),addGetter(dh,"byteOffset")),redefineAll(dh.prototype,{getInt8:function getInt8(Tn){return get$1(this,1,Tn)[0]<<24>>24},getUint8:function getUint8(Tn){return get$1(this,1,Tn)[0]},getInt16:function getInt16(Tn){var Un=get$1(this,2,Tn,arguments.length>1?arguments[1]:void 0);return(Un[1]<<8|Un[0])<<16>>16},getUint16:function getUint16(Tn){var Un=get$1(this,2,Tn,arguments.length>1?arguments[1]:void 0);return Un[1]<<8|Un[0]},getInt32:function getInt32(Tn){return unpackInt32(get$1(this,4,Tn,arguments.length>1?arguments[1]:void 0))},getUint32:function getUint32(Tn){return unpackInt32(get$1(this,4,Tn,arguments.length>1?arguments[1]:void 0))>>>0},getFloat32:function getFloat32(Tn){return gh(get$1(this,4,Tn,arguments.length>1?arguments[1]:void 0),23)},getFloat64:function getFloat64(Tn){return gh(get$1(this,8,Tn,arguments.length>1?arguments[1]:void 0),52)},setInt8:function setInt8(Tn,Un){set$2(this,1,Tn,packInt8,Un)},setUint8:function setUint8(Tn,Un){set$2(this,1,Tn,packInt8,Un)},setInt16:function setInt16(Tn,Un){set$2(this,2,Tn,packInt16,Un,arguments.length>2?arguments[2]:void 0)},setUint16:function setUint16(Tn,Un){set$2(this,2,Tn,packInt16,Un,arguments.length>2?arguments[2]:void 0)},setInt32:function setInt32(Tn,Un){set$2(this,4,Tn,packInt32,Un,arguments.length>2?arguments[2]:void 0)},setUint32:function setUint32(Tn,Un){set$2(this,4,Tn,packInt32,Un,arguments.length>2?arguments[2]:void 0)},setFloat32:function setFloat32(Tn,Un){set$2(this,4,Tn,packFloat32,Un,arguments.length>2?arguments[2]:void 0)},setFloat64:function setFloat64(Tn,Un){set$2(this,8,Tn,packFloat64,Un,arguments.length>2?arguments[2]:void 0)}});setToStringTag(uh,"ArrayBuffer"),setToStringTag(dh,"DataView");var xh={ArrayBuffer:uh,DataView:dh},Sh=xh.ArrayBuffer,kh=xh.DataView,Ch=Sh.prototype.slice,Bh=fails((function(){return!new Sh(2).slice(1,void 0).byteLength}));_export({target:"ArrayBuffer",proto:!0,unsafe:!0,forced:Bh},{slice:function slice(Tn,Un){if(void 0!==Ch&&void 0===Un)return Ch.call(anObject(this),Tn);for(var Qn=anObject(this).byteLength,Dn=toAbsoluteIndex(Tn,Qn),Hn=toAbsoluteIndex(void 0===Un?Qn:Un,Qn),Gn=new(speciesConstructor(this,Sh))(toLength(Hn-Dn)),Vn=new kh(this),zn=new kh(Gn),Kn=0;Dn1?arguments[1]:void 0,Xn=void 0!==Wn,Yn=getIteratorMethod(zn);if(null!=Yn&&!isArrayIteratorMethod(Yn))for(Vn=(Gn=Yn.call(zn)).next,zn=[];!(Hn=Vn.call(Gn)).done;)zn.push(Hn.value);for(Xn&&Kn>2&&(Wn=functionBindContext(Wn,arguments[2],2)),Qn=toLength(zn.length),Dn=new(Wh(this))(Qn),Un=0;Qn>Un;Un++)Dn[Un]=Xn?Wn(zn[Un],Un):zn[Un];return Dn},Yh=createCommonjsModule((function(Tn){var Dn=Rr.f,Hn=ui.forEach,Gn=Sr.get,Vn=Sr.set,zn=tr.f,Kn=Zn.f,Wn=Math.round,Xn=Un.RangeError,Yn=xh.ArrayBuffer,Jn=xh.DataView,$n=Gh.NATIVE_ARRAY_BUFFER_VIEWS,er=Gh.TYPED_ARRAY_TAG,rr=Gh.TypedArray,ir=Gh.TypedArrayPrototype,or=Gh.aTypedArrayConstructor,ar=Gh.isTypedArray,sr="BYTES_PER_ELEMENT",lr="Wrong length",fromList=function(Tn,Un){for(var Qn=0,Dn=Un.length,Hn=new(or(Tn))(Dn);Dn>Qn;)Hn[Qn]=Un[Qn++];return Hn},addGetter=function(Tn,Un){zn(Tn,Un,{get:function(){return Gn(this)[Un]}})},isArrayBuffer=function(Tn){var Un;return Tn instanceof Yn||"ArrayBuffer"==(Un=Ao(Tn))||"SharedArrayBuffer"==Un},isTypedArrayIndex=function(Tn,Un){return ar(Tn)&&"symbol"!=typeof Un&&Un in Tn&&String(+Un)==String(Un)},cr=function getOwnPropertyDescriptor(Tn,Un){return isTypedArrayIndex(Tn,Un=toPrimitive(Un,!0))?createPropertyDescriptor(2,Tn[Un]):Kn(Tn,Un)},ur=function defineProperty(Tn,Un,Qn){return!(isTypedArrayIndex(Tn,Un=toPrimitive(Un,!0))&&isObject(Qn)&&has(Qn,"value"))||has(Qn,"get")||has(Qn,"set")||Qn.configurable||has(Qn,"writable")&&!Qn.writable||has(Qn,"enumerable")&&!Qn.enumerable?zn(Tn,Un,Qn):(Tn[Un]=Qn.value,Tn)};Qn?($n||(Zn.f=cr,tr.f=ur,addGetter(ir,"buffer"),addGetter(ir,"byteOffset"),addGetter(ir,"byteLength"),addGetter(ir,"length")),_export({target:"Object",stat:!0,forced:!$n},{getOwnPropertyDescriptor:cr,defineProperty:ur}),Tn.exports=function(Tn,Qn,Kn){var Zn=Tn.match(/\d+$/)[0]/8,tr=Tn+(Kn?"Clamped":"")+"Array",or="get"+Tn,cr="set"+Tn,ur=Un[tr],dr=ur,hr=dr&&dr.prototype,pr={},addElement=function(Tn,Un){zn(Tn,Un,{get:function(){return function(Tn,Un){var Qn=Gn(Tn);return Qn.view[or](Un*Zn+Qn.byteOffset,!0)}(this,Un)},set:function(Tn){return function(Tn,Un,Qn){var Dn=Gn(Tn);Kn&&(Qn=(Qn=Wn(Qn))<0?0:Qn>255?255:255&Qn),Dn.view[cr](Un*Zn+Dn.byteOffset,Qn,!0)}(this,Un,Tn)},enumerable:!0})};$n?qh&&(dr=Qn((function(Tn,Un,Qn,Dn){return anInstance(Tn,dr,tr),inheritIfRequired(isObject(Un)?isArrayBuffer(Un)?void 0!==Dn?new ur(Un,toOffset(Qn,Zn),Dn):void 0!==Qn?new ur(Un,toOffset(Qn,Zn)):new ur(Un):ar(Un)?fromList(dr,Un):Xh.call(dr,Un):new ur(toIndex(Un)),Tn,dr)})),No&&No(dr,rr),Hn(Dn(ur),(function(Tn){Tn in dr||nr(dr,Tn,ur[Tn])})),dr.prototype=hr):(dr=Qn((function(Tn,Un,Qn,Dn){anInstance(Tn,dr,tr);var Hn,Gn,zn,Kn=0,Wn=0;if(isObject(Un)){if(!isArrayBuffer(Un))return ar(Un)?fromList(dr,Un):Xh.call(dr,Un);Hn=Un,Wn=toOffset(Qn,Zn);var $n=Un.byteLength;if(void 0===Dn){if($n%Zn)throw Xn(lr);if((Gn=$n-Wn)<0)throw Xn(lr)}else if((Gn=toLength(Dn)*Zn)+Wn>$n)throw Xn(lr);zn=Gn/Zn}else zn=toIndex(Un),Hn=new Yn(Gn=zn*Zn);for(Vn(Tn,{buffer:Hn,byteOffset:Wn,byteLength:Gn,length:zn,view:new Jn(Hn)});Kn2?arguments[2]:void 0,zn=Jh((void 0===Vn?Dn:toAbsoluteIndex(Vn,Dn))-Gn,Dn-Hn),Kn=1;for(Gn0;)Gn in Qn?Qn[Hn]=Qn[Gn]:delete Qn[Hn],Hn+=Kn,Gn+=Kn;return Qn},Zh=Gh.aTypedArray;(0,Gh.exportTypedArrayMethod)("copyWithin",(function copyWithin(Tn,Un){return $h.call(Zh(this),Tn,Un,arguments.length>2?arguments[2]:void 0)}));var ep=ui.every,tp=Gh.aTypedArray;(0,Gh.exportTypedArrayMethod)("every",(function every(Tn){return ep(tp(this),Tn,arguments.length>1?arguments[1]:void 0)}));var np=Gh.aTypedArray;(0,Gh.exportTypedArrayMethod)("fill",(function fill(Tn){return us.apply(np(this),arguments)}));var rp=ui.filter,ip=Gh.aTypedArray,op=Gh.aTypedArrayConstructor;(0,Gh.exportTypedArrayMethod)("filter",(function filter(Tn){for(var Un=rp(ip(this),Tn,arguments.length>1?arguments[1]:void 0),Qn=speciesConstructor(this,this.constructor),Dn=0,Hn=Un.length,Gn=new(op(Qn))(Hn);Hn>Dn;)Gn[Dn]=Un[Dn++];return Gn}));var ap=ui.find,sp=Gh.aTypedArray;(0,Gh.exportTypedArrayMethod)("find",(function find(Tn){return ap(sp(this),Tn,arguments.length>1?arguments[1]:void 0)}));var lp=ui.findIndex,cp=Gh.aTypedArray;(0,Gh.exportTypedArrayMethod)("findIndex",(function findIndex(Tn){return lp(cp(this),Tn,arguments.length>1?arguments[1]:void 0)}));var up=ui.forEach,dp=Gh.aTypedArray;(0,Gh.exportTypedArrayMethod)("forEach",(function forEach(Tn){up(dp(this),Tn,arguments.length>1?arguments[1]:void 0)}));var hp=Pr.includes,pp=Gh.aTypedArray;(0,Gh.exportTypedArrayMethod)("includes",(function includes(Tn){return hp(pp(this),Tn,arguments.length>1?arguments[1]:void 0)}));var Ap=Pr.indexOf,fp=Gh.aTypedArray;(0,Gh.exportTypedArrayMethod)("indexOf",(function indexOf(Tn){return Ap(fp(this),Tn,arguments.length>1?arguments[1]:void 0)}));var gp=wellKnownSymbol("iterator"),mp=Un.Uint8Array,_p=Ha.values,vp=Ha.keys,yp=Ha.entries,wp=Gh.aTypedArray,xp=Gh.exportTypedArrayMethod,Sp=mp&&mp.prototype[gp],kp=!!Sp&&("values"==Sp.name||null==Sp.name),Cp=function values(){return _p.call(wp(this))};xp("entries",(function entries(){return yp.call(wp(this))})),xp("keys",(function keys(){return vp.call(wp(this))})),xp("values",Cp,!kp),xp(gp,Cp,!kp);var Bp=Gh.aTypedArray,Ep=[].join;(0,Gh.exportTypedArrayMethod)("join",(function join(Tn){return Ep.apply(Bp(this),arguments)}));var Np=Math.min,Lp=[].lastIndexOf,Tp=!!Lp&&1/[1].lastIndexOf(1,-0)<0,Pp=arrayMethodIsStrict("lastIndexOf"),Fp=arrayMethodUsesToLength("indexOf",{ACCESSORS:!0,1:0}),Up=Tp||!Pp||!Fp?function lastIndexOf(Tn){if(Tp)return Lp.apply(this,arguments)||0;var Un=toIndexedObject(this),Qn=toLength(Un.length),Dn=Qn-1;for(arguments.length>1&&(Dn=Np(Dn,toInteger(arguments[1]))),Dn<0&&(Dn=Qn+Dn);Dn>=0;Dn--)if(Dn in Un&&Un[Dn]===Tn)return Dn||0;return-1}:Lp,Ip=Gh.aTypedArray;(0,Gh.exportTypedArrayMethod)("lastIndexOf",(function lastIndexOf(Tn){return Up.apply(Ip(this),arguments)}));var Rp=ui.map,Mp=Gh.aTypedArray,Op=Gh.aTypedArrayConstructor;(0,Gh.exportTypedArrayMethod)("map",(function map(Tn){return Rp(Mp(this),Tn,arguments.length>1?arguments[1]:void 0,(function(Tn,Un){return new(Op(speciesConstructor(Tn,Tn.constructor)))(Un)}))}));var Qp=Lc.left,Dp=Gh.aTypedArray;(0,Gh.exportTypedArrayMethod)("reduce",(function reduce(Tn){return Qp(Dp(this),Tn,arguments.length,arguments.length>1?arguments[1]:void 0)}));var jp=Lc.right,Hp=Gh.aTypedArray;(0,Gh.exportTypedArrayMethod)("reduceRight",(function reduceRight(Tn){return jp(Hp(this),Tn,arguments.length,arguments.length>1?arguments[1]:void 0)}));var Gp=Gh.aTypedArray,Vp=Gh.exportTypedArrayMethod,zp=Math.floor;Vp("reverse",(function reverse(){for(var Tn,Un=this,Qn=Gp(Un).length,Dn=zp(Qn/2),Hn=0;Hn1?arguments[1]:void 0,1),Qn=this.length,Dn=toObject(Tn),Hn=toLength(Dn.length),Gn=0;if(Hn+Un>Qn)throw RangeError("Wrong length");for(;GnHn;)Vn[Hn]=Qn[Hn++];return Vn}),fails((function(){new Int8Array(1).slice()})));var Yp=ui.some,Jp=Gh.aTypedArray;(0,Gh.exportTypedArrayMethod)("some",(function some(Tn){return Yp(Jp(this),Tn,arguments.length>1?arguments[1]:void 0)}));var $p=Gh.aTypedArray,Zp=[].sort;(0,Gh.exportTypedArrayMethod)("sort",(function sort(Tn){return Zp.call($p(this),Tn)}));var eA=Gh.aTypedArray;(0,Gh.exportTypedArrayMethod)("subarray",(function subarray(Tn,Un){var Qn=eA(this),Dn=Qn.length,Hn=toAbsoluteIndex(Tn,Dn);return new(speciesConstructor(Qn,Qn.constructor))(Qn.buffer,Qn.byteOffset+Hn*Qn.BYTES_PER_ELEMENT,toLength((void 0===Un?Dn:toAbsoluteIndex(Un,Dn))-Hn))}));var tA=Un.Int8Array,nA=Gh.aTypedArray,rA=Gh.exportTypedArrayMethod,iA=[].toLocaleString,oA=[].slice,aA=!!tA&&fails((function(){iA.call(new tA(1))}));rA("toLocaleString",(function toLocaleString(){return iA.apply(aA?oA.call(nA(this)):nA(this),arguments)}),fails((function(){return[1,2].toLocaleString()!=new tA([1,2]).toLocaleString()}))||!fails((function(){tA.prototype.toLocaleString.call([1,2])})));var sA=Gh.exportTypedArrayMethod,lA=Un.Uint8Array,cA=lA&&lA.prototype||{},uA=[].toString,dA=[].join;fails((function(){uA.call({})}))&&(uA=function toString(){return dA.call(this)});var hA=cA.toString!=uA; +var xd={HTML:"http://www.w3.org/1999/xhtml",MATH:"http://www.w3.org/1998/Math/MathML",SE:"http://svg-edit.googlecode.com",SVG:"http://www.w3.org/2000/svg",XLINK:"http://www.w3.org/1999/xlink",XML:"http://www.w3.org/XML/1998/namespace",XMLNS:"http://www.w3.org/2000/xmlns/"},Cd=function getReverseNS(){var Tn={};return Object.entries(xd).forEach((function(Un){var Qn=_slicedToArray(Un,2),Dn=Qn[0],Hn=Qn[1];Tn[Hn]=Dn.toLowerCase()})),Tn};"SVGPathSeg"in window||(window.SVGPathSeg=function(Tn,Un,Qn){this.pathSegType=Tn,this.pathSegTypeAsLetter=Un,this._owningPathSegList=Qn},window.SVGPathSeg.prototype.classname="SVGPathSeg",window.SVGPathSeg.PATHSEG_UNKNOWN=0,window.SVGPathSeg.PATHSEG_CLOSEPATH=1,window.SVGPathSeg.PATHSEG_MOVETO_ABS=2,window.SVGPathSeg.PATHSEG_MOVETO_REL=3,window.SVGPathSeg.PATHSEG_LINETO_ABS=4,window.SVGPathSeg.PATHSEG_LINETO_REL=5,window.SVGPathSeg.PATHSEG_CURVETO_CUBIC_ABS=6,window.SVGPathSeg.PATHSEG_CURVETO_CUBIC_REL=7,window.SVGPathSeg.PATHSEG_CURVETO_QUADRATIC_ABS=8,window.SVGPathSeg.PATHSEG_CURVETO_QUADRATIC_REL=9,window.SVGPathSeg.PATHSEG_ARC_ABS=10,window.SVGPathSeg.PATHSEG_ARC_REL=11,window.SVGPathSeg.PATHSEG_LINETO_HORIZONTAL_ABS=12,window.SVGPathSeg.PATHSEG_LINETO_HORIZONTAL_REL=13,window.SVGPathSeg.PATHSEG_LINETO_VERTICAL_ABS=14,window.SVGPathSeg.PATHSEG_LINETO_VERTICAL_REL=15,window.SVGPathSeg.PATHSEG_CURVETO_CUBIC_SMOOTH_ABS=16,window.SVGPathSeg.PATHSEG_CURVETO_CUBIC_SMOOTH_REL=17,window.SVGPathSeg.PATHSEG_CURVETO_QUADRATIC_SMOOTH_ABS=18,window.SVGPathSeg.PATHSEG_CURVETO_QUADRATIC_SMOOTH_REL=19,window.SVGPathSeg.prototype._segmentChanged=function(){this._owningPathSegList&&this._owningPathSegList.segmentChanged(this)},window.SVGPathSegClosePath=function(Tn){window.SVGPathSeg.call(this,window.SVGPathSeg.PATHSEG_CLOSEPATH,"z",Tn)},window.SVGPathSegClosePath.prototype=Object.create(window.SVGPathSeg.prototype),window.SVGPathSegClosePath.prototype.toString=function(){return"[object SVGPathSegClosePath]"},window.SVGPathSegClosePath.prototype._asPathString=function(){return this.pathSegTypeAsLetter},window.SVGPathSegClosePath.prototype.clone=function(){return new window.SVGPathSegClosePath(void 0)},window.SVGPathSegMovetoAbs=function(Tn,Un,Qn){window.SVGPathSeg.call(this,window.SVGPathSeg.PATHSEG_MOVETO_ABS,"M",Tn),this._x=Un,this._y=Qn},window.SVGPathSegMovetoAbs.prototype=Object.create(window.SVGPathSeg.prototype),window.SVGPathSegMovetoAbs.prototype.toString=function(){return"[object SVGPathSegMovetoAbs]"},window.SVGPathSegMovetoAbs.prototype._asPathString=function(){return this.pathSegTypeAsLetter+" "+this._x+" "+this._y},window.SVGPathSegMovetoAbs.prototype.clone=function(){return new window.SVGPathSegMovetoAbs(void 0,this._x,this._y)},Object.defineProperty(window.SVGPathSegMovetoAbs.prototype,"x",{get:function get(){return this._x},set:function set(Tn){this._x=Tn,this._segmentChanged()},enumerable:!0}),Object.defineProperty(window.SVGPathSegMovetoAbs.prototype,"y",{get:function get(){return this._y},set:function set(Tn){this._y=Tn,this._segmentChanged()},enumerable:!0}),window.SVGPathSegMovetoRel=function(Tn,Un,Qn){window.SVGPathSeg.call(this,window.SVGPathSeg.PATHSEG_MOVETO_REL,"m",Tn),this._x=Un,this._y=Qn},window.SVGPathSegMovetoRel.prototype=Object.create(window.SVGPathSeg.prototype),window.SVGPathSegMovetoRel.prototype.toString=function(){return"[object SVGPathSegMovetoRel]"},window.SVGPathSegMovetoRel.prototype._asPathString=function(){return this.pathSegTypeAsLetter+" "+this._x+" "+this._y},window.SVGPathSegMovetoRel.prototype.clone=function(){return new window.SVGPathSegMovetoRel(void 0,this._x,this._y)},Object.defineProperty(window.SVGPathSegMovetoRel.prototype,"x",{get:function get(){return this._x},set:function set(Tn){this._x=Tn,this._segmentChanged()},enumerable:!0}),Object.defineProperty(window.SVGPathSegMovetoRel.prototype,"y",{get:function get(){return this._y},set:function set(Tn){this._y=Tn,this._segmentChanged()},enumerable:!0}),window.SVGPathSegLinetoAbs=function(Tn,Un,Qn){window.SVGPathSeg.call(this,window.SVGPathSeg.PATHSEG_LINETO_ABS,"L",Tn),this._x=Un,this._y=Qn},window.SVGPathSegLinetoAbs.prototype=Object.create(window.SVGPathSeg.prototype),window.SVGPathSegLinetoAbs.prototype.toString=function(){return"[object SVGPathSegLinetoAbs]"},window.SVGPathSegLinetoAbs.prototype._asPathString=function(){return this.pathSegTypeAsLetter+" "+this._x+" "+this._y},window.SVGPathSegLinetoAbs.prototype.clone=function(){return new window.SVGPathSegLinetoAbs(void 0,this._x,this._y)},Object.defineProperty(window.SVGPathSegLinetoAbs.prototype,"x",{get:function get(){return this._x},set:function set(Tn){this._x=Tn,this._segmentChanged()},enumerable:!0}),Object.defineProperty(window.SVGPathSegLinetoAbs.prototype,"y",{get:function get(){return this._y},set:function set(Tn){this._y=Tn,this._segmentChanged()},enumerable:!0}),window.SVGPathSegLinetoRel=function(Tn,Un,Qn){window.SVGPathSeg.call(this,window.SVGPathSeg.PATHSEG_LINETO_REL,"l",Tn),this._x=Un,this._y=Qn},window.SVGPathSegLinetoRel.prototype=Object.create(window.SVGPathSeg.prototype),window.SVGPathSegLinetoRel.prototype.toString=function(){return"[object SVGPathSegLinetoRel]"},window.SVGPathSegLinetoRel.prototype._asPathString=function(){return this.pathSegTypeAsLetter+" "+this._x+" "+this._y},window.SVGPathSegLinetoRel.prototype.clone=function(){return new window.SVGPathSegLinetoRel(void 0,this._x,this._y)},Object.defineProperty(window.SVGPathSegLinetoRel.prototype,"x",{get:function get(){return this._x},set:function set(Tn){this._x=Tn,this._segmentChanged()},enumerable:!0}),Object.defineProperty(window.SVGPathSegLinetoRel.prototype,"y",{get:function get(){return this._y},set:function set(Tn){this._y=Tn,this._segmentChanged()},enumerable:!0}),window.SVGPathSegCurvetoCubicAbs=function(Tn,Un,Qn,Dn,Hn,Gn,Vn){window.SVGPathSeg.call(this,window.SVGPathSeg.PATHSEG_CURVETO_CUBIC_ABS,"C",Tn),this._x=Un,this._y=Qn,this._x1=Dn,this._y1=Hn,this._x2=Gn,this._y2=Vn},window.SVGPathSegCurvetoCubicAbs.prototype=Object.create(window.SVGPathSeg.prototype),window.SVGPathSegCurvetoCubicAbs.prototype.toString=function(){return"[object SVGPathSegCurvetoCubicAbs]"},window.SVGPathSegCurvetoCubicAbs.prototype._asPathString=function(){return this.pathSegTypeAsLetter+" "+this._x1+" "+this._y1+" "+this._x2+" "+this._y2+" "+this._x+" "+this._y},window.SVGPathSegCurvetoCubicAbs.prototype.clone=function(){return new window.SVGPathSegCurvetoCubicAbs(void 0,this._x,this._y,this._x1,this._y1,this._x2,this._y2)},Object.defineProperty(window.SVGPathSegCurvetoCubicAbs.prototype,"x",{get:function get(){return this._x},set:function set(Tn){this._x=Tn,this._segmentChanged()},enumerable:!0}),Object.defineProperty(window.SVGPathSegCurvetoCubicAbs.prototype,"y",{get:function get(){return this._y},set:function set(Tn){this._y=Tn,this._segmentChanged()},enumerable:!0}),Object.defineProperty(window.SVGPathSegCurvetoCubicAbs.prototype,"x1",{get:function get(){return this._x1},set:function set(Tn){this._x1=Tn,this._segmentChanged()},enumerable:!0}),Object.defineProperty(window.SVGPathSegCurvetoCubicAbs.prototype,"y1",{get:function get(){return this._y1},set:function set(Tn){this._y1=Tn,this._segmentChanged()},enumerable:!0}),Object.defineProperty(window.SVGPathSegCurvetoCubicAbs.prototype,"x2",{get:function get(){return this._x2},set:function set(Tn){this._x2=Tn,this._segmentChanged()},enumerable:!0}),Object.defineProperty(window.SVGPathSegCurvetoCubicAbs.prototype,"y2",{get:function get(){return this._y2},set:function set(Tn){this._y2=Tn,this._segmentChanged()},enumerable:!0}),window.SVGPathSegCurvetoCubicRel=function(Tn,Un,Qn,Dn,Hn,Gn,Vn){window.SVGPathSeg.call(this,window.SVGPathSeg.PATHSEG_CURVETO_CUBIC_REL,"c",Tn),this._x=Un,this._y=Qn,this._x1=Dn,this._y1=Hn,this._x2=Gn,this._y2=Vn},window.SVGPathSegCurvetoCubicRel.prototype=Object.create(window.SVGPathSeg.prototype),window.SVGPathSegCurvetoCubicRel.prototype.toString=function(){return"[object SVGPathSegCurvetoCubicRel]"},window.SVGPathSegCurvetoCubicRel.prototype._asPathString=function(){return this.pathSegTypeAsLetter+" "+this._x1+" "+this._y1+" "+this._x2+" "+this._y2+" "+this._x+" "+this._y},window.SVGPathSegCurvetoCubicRel.prototype.clone=function(){return new window.SVGPathSegCurvetoCubicRel(void 0,this._x,this._y,this._x1,this._y1,this._x2,this._y2)},Object.defineProperty(window.SVGPathSegCurvetoCubicRel.prototype,"x",{get:function get(){return this._x},set:function set(Tn){this._x=Tn,this._segmentChanged()},enumerable:!0}),Object.defineProperty(window.SVGPathSegCurvetoCubicRel.prototype,"y",{get:function get(){return this._y},set:function set(Tn){this._y=Tn,this._segmentChanged()},enumerable:!0}),Object.defineProperty(window.SVGPathSegCurvetoCubicRel.prototype,"x1",{get:function get(){return this._x1},set:function set(Tn){this._x1=Tn,this._segmentChanged()},enumerable:!0}),Object.defineProperty(window.SVGPathSegCurvetoCubicRel.prototype,"y1",{get:function get(){return this._y1},set:function set(Tn){this._y1=Tn,this._segmentChanged()},enumerable:!0}),Object.defineProperty(window.SVGPathSegCurvetoCubicRel.prototype,"x2",{get:function get(){return this._x2},set:function set(Tn){this._x2=Tn,this._segmentChanged()},enumerable:!0}),Object.defineProperty(window.SVGPathSegCurvetoCubicRel.prototype,"y2",{get:function get(){return this._y2},set:function set(Tn){this._y2=Tn,this._segmentChanged()},enumerable:!0}),window.SVGPathSegCurvetoQuadraticAbs=function(Tn,Un,Qn,Dn,Hn){window.SVGPathSeg.call(this,window.SVGPathSeg.PATHSEG_CURVETO_QUADRATIC_ABS,"Q",Tn),this._x=Un,this._y=Qn,this._x1=Dn,this._y1=Hn},window.SVGPathSegCurvetoQuadraticAbs.prototype=Object.create(window.SVGPathSeg.prototype),window.SVGPathSegCurvetoQuadraticAbs.prototype.toString=function(){return"[object SVGPathSegCurvetoQuadraticAbs]"},window.SVGPathSegCurvetoQuadraticAbs.prototype._asPathString=function(){return this.pathSegTypeAsLetter+" "+this._x1+" "+this._y1+" "+this._x+" "+this._y},window.SVGPathSegCurvetoQuadraticAbs.prototype.clone=function(){return new window.SVGPathSegCurvetoQuadraticAbs(void 0,this._x,this._y,this._x1,this._y1)},Object.defineProperty(window.SVGPathSegCurvetoQuadraticAbs.prototype,"x",{get:function get(){return this._x},set:function set(Tn){this._x=Tn,this._segmentChanged()},enumerable:!0}),Object.defineProperty(window.SVGPathSegCurvetoQuadraticAbs.prototype,"y",{get:function get(){return this._y},set:function set(Tn){this._y=Tn,this._segmentChanged()},enumerable:!0}),Object.defineProperty(window.SVGPathSegCurvetoQuadraticAbs.prototype,"x1",{get:function get(){return this._x1},set:function set(Tn){this._x1=Tn,this._segmentChanged()},enumerable:!0}),Object.defineProperty(window.SVGPathSegCurvetoQuadraticAbs.prototype,"y1",{get:function get(){return this._y1},set:function set(Tn){this._y1=Tn,this._segmentChanged()},enumerable:!0}),window.SVGPathSegCurvetoQuadraticRel=function(Tn,Un,Qn,Dn,Hn){window.SVGPathSeg.call(this,window.SVGPathSeg.PATHSEG_CURVETO_QUADRATIC_REL,"q",Tn),this._x=Un,this._y=Qn,this._x1=Dn,this._y1=Hn},window.SVGPathSegCurvetoQuadraticRel.prototype=Object.create(window.SVGPathSeg.prototype),window.SVGPathSegCurvetoQuadraticRel.prototype.toString=function(){return"[object SVGPathSegCurvetoQuadraticRel]"},window.SVGPathSegCurvetoQuadraticRel.prototype._asPathString=function(){return this.pathSegTypeAsLetter+" "+this._x1+" "+this._y1+" "+this._x+" "+this._y},window.SVGPathSegCurvetoQuadraticRel.prototype.clone=function(){return new window.SVGPathSegCurvetoQuadraticRel(void 0,this._x,this._y,this._x1,this._y1)},Object.defineProperty(window.SVGPathSegCurvetoQuadraticRel.prototype,"x",{get:function get(){return this._x},set:function set(Tn){this._x=Tn,this._segmentChanged()},enumerable:!0}),Object.defineProperty(window.SVGPathSegCurvetoQuadraticRel.prototype,"y",{get:function get(){return this._y},set:function set(Tn){this._y=Tn,this._segmentChanged()},enumerable:!0}),Object.defineProperty(window.SVGPathSegCurvetoQuadraticRel.prototype,"x1",{get:function get(){return this._x1},set:function set(Tn){this._x1=Tn,this._segmentChanged()},enumerable:!0}),Object.defineProperty(window.SVGPathSegCurvetoQuadraticRel.prototype,"y1",{get:function get(){return this._y1},set:function set(Tn){this._y1=Tn,this._segmentChanged()},enumerable:!0}),window.SVGPathSegArcAbs=function(Tn,Un,Qn,Dn,Hn,Gn,Vn,zn){window.SVGPathSeg.call(this,window.SVGPathSeg.PATHSEG_ARC_ABS,"A",Tn),this._x=Un,this._y=Qn,this._r1=Dn,this._r2=Hn,this._angle=Gn,this._largeArcFlag=Vn,this._sweepFlag=zn},window.SVGPathSegArcAbs.prototype=Object.create(window.SVGPathSeg.prototype),window.SVGPathSegArcAbs.prototype.toString=function(){return"[object SVGPathSegArcAbs]"},window.SVGPathSegArcAbs.prototype._asPathString=function(){return this.pathSegTypeAsLetter+" "+this._r1+" "+this._r2+" "+this._angle+" "+(this._largeArcFlag?"1":"0")+" "+(this._sweepFlag?"1":"0")+" "+this._x+" "+this._y},window.SVGPathSegArcAbs.prototype.clone=function(){return new window.SVGPathSegArcAbs(void 0,this._x,this._y,this._r1,this._r2,this._angle,this._largeArcFlag,this._sweepFlag)},Object.defineProperty(window.SVGPathSegArcAbs.prototype,"x",{get:function get(){return this._x},set:function set(Tn){this._x=Tn,this._segmentChanged()},enumerable:!0}),Object.defineProperty(window.SVGPathSegArcAbs.prototype,"y",{get:function get(){return this._y},set:function set(Tn){this._y=Tn,this._segmentChanged()},enumerable:!0}),Object.defineProperty(window.SVGPathSegArcAbs.prototype,"r1",{get:function get(){return this._r1},set:function set(Tn){this._r1=Tn,this._segmentChanged()},enumerable:!0}),Object.defineProperty(window.SVGPathSegArcAbs.prototype,"r2",{get:function get(){return this._r2},set:function set(Tn){this._r2=Tn,this._segmentChanged()},enumerable:!0}),Object.defineProperty(window.SVGPathSegArcAbs.prototype,"angle",{get:function get(){return this._angle},set:function set(Tn){this._angle=Tn,this._segmentChanged()},enumerable:!0}),Object.defineProperty(window.SVGPathSegArcAbs.prototype,"largeArcFlag",{get:function get(){return this._largeArcFlag},set:function set(Tn){this._largeArcFlag=Tn,this._segmentChanged()},enumerable:!0}),Object.defineProperty(window.SVGPathSegArcAbs.prototype,"sweepFlag",{get:function get(){return this._sweepFlag},set:function set(Tn){this._sweepFlag=Tn,this._segmentChanged()},enumerable:!0}),window.SVGPathSegArcRel=function(Tn,Un,Qn,Dn,Hn,Gn,Vn,zn){window.SVGPathSeg.call(this,window.SVGPathSeg.PATHSEG_ARC_REL,"a",Tn),this._x=Un,this._y=Qn,this._r1=Dn,this._r2=Hn,this._angle=Gn,this._largeArcFlag=Vn,this._sweepFlag=zn},window.SVGPathSegArcRel.prototype=Object.create(window.SVGPathSeg.prototype),window.SVGPathSegArcRel.prototype.toString=function(){return"[object SVGPathSegArcRel]"},window.SVGPathSegArcRel.prototype._asPathString=function(){return this.pathSegTypeAsLetter+" "+this._r1+" "+this._r2+" "+this._angle+" "+(this._largeArcFlag?"1":"0")+" "+(this._sweepFlag?"1":"0")+" "+this._x+" "+this._y},window.SVGPathSegArcRel.prototype.clone=function(){return new window.SVGPathSegArcRel(void 0,this._x,this._y,this._r1,this._r2,this._angle,this._largeArcFlag,this._sweepFlag)},Object.defineProperty(window.SVGPathSegArcRel.prototype,"x",{get:function get(){return this._x},set:function set(Tn){this._x=Tn,this._segmentChanged()},enumerable:!0}),Object.defineProperty(window.SVGPathSegArcRel.prototype,"y",{get:function get(){return this._y},set:function set(Tn){this._y=Tn,this._segmentChanged()},enumerable:!0}),Object.defineProperty(window.SVGPathSegArcRel.prototype,"r1",{get:function get(){return this._r1},set:function set(Tn){this._r1=Tn,this._segmentChanged()},enumerable:!0}),Object.defineProperty(window.SVGPathSegArcRel.prototype,"r2",{get:function get(){return this._r2},set:function set(Tn){this._r2=Tn,this._segmentChanged()},enumerable:!0}),Object.defineProperty(window.SVGPathSegArcRel.prototype,"angle",{get:function get(){return this._angle},set:function set(Tn){this._angle=Tn,this._segmentChanged()},enumerable:!0}),Object.defineProperty(window.SVGPathSegArcRel.prototype,"largeArcFlag",{get:function get(){return this._largeArcFlag},set:function set(Tn){this._largeArcFlag=Tn,this._segmentChanged()},enumerable:!0}),Object.defineProperty(window.SVGPathSegArcRel.prototype,"sweepFlag",{get:function get(){return this._sweepFlag},set:function set(Tn){this._sweepFlag=Tn,this._segmentChanged()},enumerable:!0}),window.SVGPathSegLinetoHorizontalAbs=function(Tn,Un){window.SVGPathSeg.call(this,window.SVGPathSeg.PATHSEG_LINETO_HORIZONTAL_ABS,"H",Tn),this._x=Un},window.SVGPathSegLinetoHorizontalAbs.prototype=Object.create(window.SVGPathSeg.prototype),window.SVGPathSegLinetoHorizontalAbs.prototype.toString=function(){return"[object SVGPathSegLinetoHorizontalAbs]"},window.SVGPathSegLinetoHorizontalAbs.prototype._asPathString=function(){return this.pathSegTypeAsLetter+" "+this._x},window.SVGPathSegLinetoHorizontalAbs.prototype.clone=function(){return new window.SVGPathSegLinetoHorizontalAbs(void 0,this._x)},Object.defineProperty(window.SVGPathSegLinetoHorizontalAbs.prototype,"x",{get:function get(){return this._x},set:function set(Tn){this._x=Tn,this._segmentChanged()},enumerable:!0}),window.SVGPathSegLinetoHorizontalRel=function(Tn,Un){window.SVGPathSeg.call(this,window.SVGPathSeg.PATHSEG_LINETO_HORIZONTAL_REL,"h",Tn),this._x=Un},window.SVGPathSegLinetoHorizontalRel.prototype=Object.create(window.SVGPathSeg.prototype),window.SVGPathSegLinetoHorizontalRel.prototype.toString=function(){return"[object SVGPathSegLinetoHorizontalRel]"},window.SVGPathSegLinetoHorizontalRel.prototype._asPathString=function(){return this.pathSegTypeAsLetter+" "+this._x},window.SVGPathSegLinetoHorizontalRel.prototype.clone=function(){return new window.SVGPathSegLinetoHorizontalRel(void 0,this._x)},Object.defineProperty(window.SVGPathSegLinetoHorizontalRel.prototype,"x",{get:function get(){return this._x},set:function set(Tn){this._x=Tn,this._segmentChanged()},enumerable:!0}),window.SVGPathSegLinetoVerticalAbs=function(Tn,Un){window.SVGPathSeg.call(this,window.SVGPathSeg.PATHSEG_LINETO_VERTICAL_ABS,"V",Tn),this._y=Un},window.SVGPathSegLinetoVerticalAbs.prototype=Object.create(window.SVGPathSeg.prototype),window.SVGPathSegLinetoVerticalAbs.prototype.toString=function(){return"[object SVGPathSegLinetoVerticalAbs]"},window.SVGPathSegLinetoVerticalAbs.prototype._asPathString=function(){return this.pathSegTypeAsLetter+" "+this._y},window.SVGPathSegLinetoVerticalAbs.prototype.clone=function(){return new window.SVGPathSegLinetoVerticalAbs(void 0,this._y)},Object.defineProperty(window.SVGPathSegLinetoVerticalAbs.prototype,"y",{get:function get(){return this._y},set:function set(Tn){this._y=Tn,this._segmentChanged()},enumerable:!0}),window.SVGPathSegLinetoVerticalRel=function(Tn,Un){window.SVGPathSeg.call(this,window.SVGPathSeg.PATHSEG_LINETO_VERTICAL_REL,"v",Tn),this._y=Un},window.SVGPathSegLinetoVerticalRel.prototype=Object.create(window.SVGPathSeg.prototype),window.SVGPathSegLinetoVerticalRel.prototype.toString=function(){return"[object SVGPathSegLinetoVerticalRel]"},window.SVGPathSegLinetoVerticalRel.prototype._asPathString=function(){return this.pathSegTypeAsLetter+" "+this._y},window.SVGPathSegLinetoVerticalRel.prototype.clone=function(){return new window.SVGPathSegLinetoVerticalRel(void 0,this._y)},Object.defineProperty(window.SVGPathSegLinetoVerticalRel.prototype,"y",{get:function get(){return this._y},set:function set(Tn){this._y=Tn,this._segmentChanged()},enumerable:!0}),window.SVGPathSegCurvetoCubicSmoothAbs=function(Tn,Un,Qn,Dn,Hn){window.SVGPathSeg.call(this,window.SVGPathSeg.PATHSEG_CURVETO_CUBIC_SMOOTH_ABS,"S",Tn),this._x=Un,this._y=Qn,this._x2=Dn,this._y2=Hn},window.SVGPathSegCurvetoCubicSmoothAbs.prototype=Object.create(window.SVGPathSeg.prototype),window.SVGPathSegCurvetoCubicSmoothAbs.prototype.toString=function(){return"[object SVGPathSegCurvetoCubicSmoothAbs]"},window.SVGPathSegCurvetoCubicSmoothAbs.prototype._asPathString=function(){return this.pathSegTypeAsLetter+" "+this._x2+" "+this._y2+" "+this._x+" "+this._y},window.SVGPathSegCurvetoCubicSmoothAbs.prototype.clone=function(){return new window.SVGPathSegCurvetoCubicSmoothAbs(void 0,this._x,this._y,this._x2,this._y2)},Object.defineProperty(window.SVGPathSegCurvetoCubicSmoothAbs.prototype,"x",{get:function get(){return this._x},set:function set(Tn){this._x=Tn,this._segmentChanged()},enumerable:!0}),Object.defineProperty(window.SVGPathSegCurvetoCubicSmoothAbs.prototype,"y",{get:function get(){return this._y},set:function set(Tn){this._y=Tn,this._segmentChanged()},enumerable:!0}),Object.defineProperty(window.SVGPathSegCurvetoCubicSmoothAbs.prototype,"x2",{get:function get(){return this._x2},set:function set(Tn){this._x2=Tn,this._segmentChanged()},enumerable:!0}),Object.defineProperty(window.SVGPathSegCurvetoCubicSmoothAbs.prototype,"y2",{get:function get(){return this._y2},set:function set(Tn){this._y2=Tn,this._segmentChanged()},enumerable:!0}),window.SVGPathSegCurvetoCubicSmoothRel=function(Tn,Un,Qn,Dn,Hn){window.SVGPathSeg.call(this,window.SVGPathSeg.PATHSEG_CURVETO_CUBIC_SMOOTH_REL,"s",Tn),this._x=Un,this._y=Qn,this._x2=Dn,this._y2=Hn},window.SVGPathSegCurvetoCubicSmoothRel.prototype=Object.create(window.SVGPathSeg.prototype),window.SVGPathSegCurvetoCubicSmoothRel.prototype.toString=function(){return"[object SVGPathSegCurvetoCubicSmoothRel]"},window.SVGPathSegCurvetoCubicSmoothRel.prototype._asPathString=function(){return this.pathSegTypeAsLetter+" "+this._x2+" "+this._y2+" "+this._x+" "+this._y},window.SVGPathSegCurvetoCubicSmoothRel.prototype.clone=function(){return new window.SVGPathSegCurvetoCubicSmoothRel(void 0,this._x,this._y,this._x2,this._y2)},Object.defineProperty(window.SVGPathSegCurvetoCubicSmoothRel.prototype,"x",{get:function get(){return this._x},set:function set(Tn){this._x=Tn,this._segmentChanged()},enumerable:!0}),Object.defineProperty(window.SVGPathSegCurvetoCubicSmoothRel.prototype,"y",{get:function get(){return this._y},set:function set(Tn){this._y=Tn,this._segmentChanged()},enumerable:!0}),Object.defineProperty(window.SVGPathSegCurvetoCubicSmoothRel.prototype,"x2",{get:function get(){return this._x2},set:function set(Tn){this._x2=Tn,this._segmentChanged()},enumerable:!0}),Object.defineProperty(window.SVGPathSegCurvetoCubicSmoothRel.prototype,"y2",{get:function get(){return this._y2},set:function set(Tn){this._y2=Tn,this._segmentChanged()},enumerable:!0}),window.SVGPathSegCurvetoQuadraticSmoothAbs=function(Tn,Un,Qn){window.SVGPathSeg.call(this,window.SVGPathSeg.PATHSEG_CURVETO_QUADRATIC_SMOOTH_ABS,"T",Tn),this._x=Un,this._y=Qn},window.SVGPathSegCurvetoQuadraticSmoothAbs.prototype=Object.create(window.SVGPathSeg.prototype),window.SVGPathSegCurvetoQuadraticSmoothAbs.prototype.toString=function(){return"[object SVGPathSegCurvetoQuadraticSmoothAbs]"},window.SVGPathSegCurvetoQuadraticSmoothAbs.prototype._asPathString=function(){return this.pathSegTypeAsLetter+" "+this._x+" "+this._y},window.SVGPathSegCurvetoQuadraticSmoothAbs.prototype.clone=function(){return new window.SVGPathSegCurvetoQuadraticSmoothAbs(void 0,this._x,this._y)},Object.defineProperty(window.SVGPathSegCurvetoQuadraticSmoothAbs.prototype,"x",{get:function get(){return this._x},set:function set(Tn){this._x=Tn,this._segmentChanged()},enumerable:!0}),Object.defineProperty(window.SVGPathSegCurvetoQuadraticSmoothAbs.prototype,"y",{get:function get(){return this._y},set:function set(Tn){this._y=Tn,this._segmentChanged()},enumerable:!0}),window.SVGPathSegCurvetoQuadraticSmoothRel=function(Tn,Un,Qn){window.SVGPathSeg.call(this,window.SVGPathSeg.PATHSEG_CURVETO_QUADRATIC_SMOOTH_REL,"t",Tn),this._x=Un,this._y=Qn},window.SVGPathSegCurvetoQuadraticSmoothRel.prototype=Object.create(window.SVGPathSeg.prototype),window.SVGPathSegCurvetoQuadraticSmoothRel.prototype.toString=function(){return"[object SVGPathSegCurvetoQuadraticSmoothRel]"},window.SVGPathSegCurvetoQuadraticSmoothRel.prototype._asPathString=function(){return this.pathSegTypeAsLetter+" "+this._x+" "+this._y},window.SVGPathSegCurvetoQuadraticSmoothRel.prototype.clone=function(){return new window.SVGPathSegCurvetoQuadraticSmoothRel(void 0,this._x,this._y)},Object.defineProperty(window.SVGPathSegCurvetoQuadraticSmoothRel.prototype,"x",{get:function get(){return this._x},set:function set(Tn){this._x=Tn,this._segmentChanged()},enumerable:!0}),Object.defineProperty(window.SVGPathSegCurvetoQuadraticSmoothRel.prototype,"y",{get:function get(){return this._y},set:function set(Tn){this._y=Tn,this._segmentChanged()},enumerable:!0}),window.SVGPathElement.prototype.createSVGPathSegClosePath=function(){return new window.SVGPathSegClosePath(void 0)},window.SVGPathElement.prototype.createSVGPathSegMovetoAbs=function(Tn,Un){return new window.SVGPathSegMovetoAbs(void 0,Tn,Un)},window.SVGPathElement.prototype.createSVGPathSegMovetoRel=function(Tn,Un){return new window.SVGPathSegMovetoRel(void 0,Tn,Un)},window.SVGPathElement.prototype.createSVGPathSegLinetoAbs=function(Tn,Un){return new window.SVGPathSegLinetoAbs(void 0,Tn,Un)},window.SVGPathElement.prototype.createSVGPathSegLinetoRel=function(Tn,Un){return new window.SVGPathSegLinetoRel(void 0,Tn,Un)},window.SVGPathElement.prototype.createSVGPathSegCurvetoCubicAbs=function(Tn,Un,Qn,Dn,Hn,Gn){return new window.SVGPathSegCurvetoCubicAbs(void 0,Tn,Un,Qn,Dn,Hn,Gn)},window.SVGPathElement.prototype.createSVGPathSegCurvetoCubicRel=function(Tn,Un,Qn,Dn,Hn,Gn){return new window.SVGPathSegCurvetoCubicRel(void 0,Tn,Un,Qn,Dn,Hn,Gn)},window.SVGPathElement.prototype.createSVGPathSegCurvetoQuadraticAbs=function(Tn,Un,Qn,Dn){return new window.SVGPathSegCurvetoQuadraticAbs(void 0,Tn,Un,Qn,Dn)},window.SVGPathElement.prototype.createSVGPathSegCurvetoQuadraticRel=function(Tn,Un,Qn,Dn){return new window.SVGPathSegCurvetoQuadraticRel(void 0,Tn,Un,Qn,Dn)},window.SVGPathElement.prototype.createSVGPathSegArcAbs=function(Tn,Un,Qn,Dn,Hn,Gn,Vn){return new window.SVGPathSegArcAbs(void 0,Tn,Un,Qn,Dn,Hn,Gn,Vn)},window.SVGPathElement.prototype.createSVGPathSegArcRel=function(Tn,Un,Qn,Dn,Hn,Gn,Vn){return new window.SVGPathSegArcRel(void 0,Tn,Un,Qn,Dn,Hn,Gn,Vn)},window.SVGPathElement.prototype.createSVGPathSegLinetoHorizontalAbs=function(Tn){return new window.SVGPathSegLinetoHorizontalAbs(void 0,Tn)},window.SVGPathElement.prototype.createSVGPathSegLinetoHorizontalRel=function(Tn){return new window.SVGPathSegLinetoHorizontalRel(void 0,Tn)},window.SVGPathElement.prototype.createSVGPathSegLinetoVerticalAbs=function(Tn){return new window.SVGPathSegLinetoVerticalAbs(void 0,Tn)},window.SVGPathElement.prototype.createSVGPathSegLinetoVerticalRel=function(Tn){return new window.SVGPathSegLinetoVerticalRel(void 0,Tn)},window.SVGPathElement.prototype.createSVGPathSegCurvetoCubicSmoothAbs=function(Tn,Un,Qn,Dn){return new window.SVGPathSegCurvetoCubicSmoothAbs(void 0,Tn,Un,Qn,Dn)},window.SVGPathElement.prototype.createSVGPathSegCurvetoCubicSmoothRel=function(Tn,Un,Qn,Dn){return new window.SVGPathSegCurvetoCubicSmoothRel(void 0,Tn,Un,Qn,Dn)},window.SVGPathElement.prototype.createSVGPathSegCurvetoQuadraticSmoothAbs=function(Tn,Un){return new window.SVGPathSegCurvetoQuadraticSmoothAbs(void 0,Tn,Un)},window.SVGPathElement.prototype.createSVGPathSegCurvetoQuadraticSmoothRel=function(Tn,Un){return new window.SVGPathSegCurvetoQuadraticSmoothRel(void 0,Tn,Un)},"getPathSegAtLength"in window.SVGPathElement.prototype||(window.SVGPathElement.prototype.getPathSegAtLength=function(Tn){if(void 0===Tn||!isFinite(Tn))throw"Invalid arguments.";var Un=document.createElementNS("http://www.w3.org/2000/svg","path");Un.setAttribute("d",this.getAttribute("d"));var Qn=Un.pathSegList.numberOfItems-1;if(Qn<=0)return 0;do{if(Un.pathSegList.removeItem(Qn),Tn>Un.getTotalLength())break;Qn--}while(Qn>0);return Qn})),"SVGPathSegList"in window&&"appendItem"in window.SVGPathSegList.prototype||(window.SVGPathSegList=function(Tn){this._pathElement=Tn,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)},window.SVGPathSegList.prototype.classname="SVGPathSegList",Object.defineProperty(window.SVGPathSegList.prototype,"numberOfItems",{get:function get(){return this._checkPathSynchronizedToList(),this._list.length},enumerable:!0}),Object.defineProperty(window.SVGPathElement.prototype,"pathSegList",{get:function get(){return this._pathSegList||(this._pathSegList=new window.SVGPathSegList(this)),this._pathSegList},enumerable:!0}),Object.defineProperty(window.SVGPathElement.prototype,"normalizedPathSegList",{get:function get(){return this.pathSegList},enumerable:!0}),Object.defineProperty(window.SVGPathElement.prototype,"animatedPathSegList",{get:function get(){return this.pathSegList},enumerable:!0}),Object.defineProperty(window.SVGPathElement.prototype,"animatedNormalizedPathSegList",{get:function get(){return this.pathSegList},enumerable:!0}),window.SVGPathSegList.prototype._checkPathSynchronizedToList=function(){this._updateListFromPathMutations(this._pathElementMutationObserver.takeRecords())},window.SVGPathSegList.prototype._updateListFromPathMutations=function(Tn){if(this._pathElement){var Un=!1;Tn.forEach((function(Tn){"d"==Tn.attributeName&&(Un=!0)})),Un&&(this._list=this._parsePath(this._pathElement.getAttribute("d")))}},window.SVGPathSegList.prototype._writeListToPath=function(){this._pathElementMutationObserver.disconnect(),this._pathElement.setAttribute("d",window.SVGPathSegList._pathSegArrayAsString(this._list)),this._pathElementMutationObserver.observe(this._pathElement,this._mutationObserverConfig)},window.SVGPathSegList.prototype.segmentChanged=function(Tn){this._writeListToPath()},window.SVGPathSegList.prototype.clear=function(){this._checkPathSynchronizedToList(),this._list.forEach((function(Tn){Tn._owningPathSegList=null})),this._list=[],this._writeListToPath()},window.SVGPathSegList.prototype.initialize=function(Tn){return this._checkPathSynchronizedToList(),this._list=[Tn],Tn._owningPathSegList=this,this._writeListToPath(),Tn},window.SVGPathSegList.prototype._checkValidIndex=function(Tn){if(isNaN(Tn)||Tn<0||Tn>=this.numberOfItems)throw"INDEX_SIZE_ERR"},window.SVGPathSegList.prototype.getItem=function(Tn){return this._checkPathSynchronizedToList(),this._checkValidIndex(Tn),this._list[Tn]},window.SVGPathSegList.prototype.insertItemBefore=function(Tn,Un){return this._checkPathSynchronizedToList(),Un>this.numberOfItems&&(Un=this.numberOfItems),Tn._owningPathSegList&&(Tn=Tn.clone()),this._list.splice(Un,0,Tn),Tn._owningPathSegList=this,this._writeListToPath(),Tn},window.SVGPathSegList.prototype.replaceItem=function(Tn,Un){return this._checkPathSynchronizedToList(),Tn._owningPathSegList&&(Tn=Tn.clone()),this._checkValidIndex(Un),this._list[Un]=Tn,Tn._owningPathSegList=this,this._writeListToPath(),Tn},window.SVGPathSegList.prototype.removeItem=function(Tn){this._checkPathSynchronizedToList(),this._checkValidIndex(Tn);var Un=this._list[Tn];return this._list.splice(Tn,1),this._writeListToPath(),Un},window.SVGPathSegList.prototype.appendItem=function(Tn){return this._checkPathSynchronizedToList(),Tn._owningPathSegList&&(Tn=Tn.clone()),this._list.push(Tn),Tn._owningPathSegList=this,this._writeListToPath(),Tn},window.SVGPathSegList._pathSegArrayAsString=function(Tn){var Un="",Qn=!0;return Tn.forEach((function(Tn){Qn?(Qn=!1,Un+=Tn._asPathString()):Un+=" "+Tn._asPathString()})),Un},window.SVGPathSegList.prototype._parsePath=function(Tn){if(!Tn||0==Tn.length)return[];var Un=this,Qn=function Builder(){this.pathSegList=[]};Qn.prototype.appendSegment=function(Tn){this.pathSegList.push(Tn)};var Dn=function Source(Tn){this._string=Tn,this._currentIndex=0,this._endIndex=this._string.length,this._previousCommand=window.SVGPathSeg.PATHSEG_UNKNOWN,this._skipOptionalSpaces()};Dn.prototype._isCurrentSpace=function(){var Tn=this._string[this._currentIndex];return Tn<=" "&&(" "==Tn||"\n"==Tn||"\t"==Tn||"\r"==Tn||"\f"==Tn)},Dn.prototype._skipOptionalSpaces=function(){for(;this._currentIndex="0"&&Tn<="9")&&Un!=window.SVGPathSeg.PATHSEG_CLOSEPATH?Un==window.SVGPathSeg.PATHSEG_MOVETO_ABS?window.SVGPathSeg.PATHSEG_LINETO_ABS:Un==window.SVGPathSeg.PATHSEG_MOVETO_REL?window.SVGPathSeg.PATHSEG_LINETO_REL:Un:window.SVGPathSeg.PATHSEG_UNKNOWN},Dn.prototype.initialCommandIsMoveTo=function(){if(!this.hasMoreData())return!0;var Tn=this.peekSegmentType();return Tn==window.SVGPathSeg.PATHSEG_MOVETO_ABS||Tn==window.SVGPathSeg.PATHSEG_MOVETO_REL},Dn.prototype._parseNumber=function(){var Tn=0,Un=0,Qn=1,Dn=0,Hn=1,Gn=1,Vn=this._currentIndex;if(this._skipOptionalSpaces(),this._currentIndex"9")&&"."!=this._string.charAt(this._currentIndex))){for(var zn=this._currentIndex;this._currentIndex="0"&&this._string.charAt(this._currentIndex)<="9";)this._currentIndex++;if(this._currentIndex!=zn)for(var Kn=this._currentIndex-1,Wn=1;Kn>=zn;)Un+=Wn*(this._string.charAt(Kn--)-"0"),Wn*=10;if(this._currentIndex=this._endIndex||this._string.charAt(this._currentIndex)<"0"||this._string.charAt(this._currentIndex)>"9")return;for(;this._currentIndex="0"&&this._string.charAt(this._currentIndex)<="9";)Qn*=10,Dn+=(this._string.charAt(this._currentIndex)-"0")/Qn,this._currentIndex+=1}if(this._currentIndex!=Vn&&this._currentIndex+1=this._endIndex||this._string.charAt(this._currentIndex)<"0"||this._string.charAt(this._currentIndex)>"9")return;for(;this._currentIndex="0"&&this._string.charAt(this._currentIndex)<="9";)Tn*=10,Tn+=this._string.charAt(this._currentIndex)-"0",this._currentIndex++}var Xn=Un+Dn;if(Xn*=Hn,Tn&&(Xn*=Math.pow(10,Gn*Tn)),Vn!=this._currentIndex)return this._skipOptionalSpacesOrDelimiter(),Xn}},Dn.prototype._parseArcFlag=function(){if(!(this._currentIndex>=this._endIndex)){var Tn=!1,Un=this._string.charAt(this._currentIndex++);if("0"==Un)Tn=!1;else{if("1"!=Un)return;Tn=!0}return this._skipOptionalSpacesOrDelimiter(),Tn}},Dn.prototype.parseSegment=function(){var Tn=this._string[this._currentIndex],Qn=this._pathSegTypeFromChar(Tn);if(Qn==window.SVGPathSeg.PATHSEG_UNKNOWN){if(this._previousCommand==window.SVGPathSeg.PATHSEG_UNKNOWN)return null;if((Qn=this._nextCommandHelper(Tn,this._previousCommand))==window.SVGPathSeg.PATHSEG_UNKNOWN)return null}else this._currentIndex++;switch(this._previousCommand=Qn,Qn){case window.SVGPathSeg.PATHSEG_MOVETO_REL:return new window.SVGPathSegMovetoRel(Un,this._parseNumber(),this._parseNumber());case window.SVGPathSeg.PATHSEG_MOVETO_ABS:return new window.SVGPathSegMovetoAbs(Un,this._parseNumber(),this._parseNumber());case window.SVGPathSeg.PATHSEG_LINETO_REL:return new window.SVGPathSegLinetoRel(Un,this._parseNumber(),this._parseNumber());case window.SVGPathSeg.PATHSEG_LINETO_ABS:return new window.SVGPathSegLinetoAbs(Un,this._parseNumber(),this._parseNumber());case window.SVGPathSeg.PATHSEG_LINETO_HORIZONTAL_REL:return new window.SVGPathSegLinetoHorizontalRel(Un,this._parseNumber());case window.SVGPathSeg.PATHSEG_LINETO_HORIZONTAL_ABS:return new window.SVGPathSegLinetoHorizontalAbs(Un,this._parseNumber());case window.SVGPathSeg.PATHSEG_LINETO_VERTICAL_REL:return new window.SVGPathSegLinetoVerticalRel(Un,this._parseNumber());case window.SVGPathSeg.PATHSEG_LINETO_VERTICAL_ABS:return new window.SVGPathSegLinetoVerticalAbs(Un,this._parseNumber());case window.SVGPathSeg.PATHSEG_CLOSEPATH:return this._skipOptionalSpaces(),new window.SVGPathSegClosePath(Un);case window.SVGPathSeg.PATHSEG_CURVETO_CUBIC_REL:var Dn={x1:this._parseNumber(),y1:this._parseNumber(),x2:this._parseNumber(),y2:this._parseNumber(),x:this._parseNumber(),y:this._parseNumber()};return new window.SVGPathSegCurvetoCubicRel(Un,Dn.x,Dn.y,Dn.x1,Dn.y1,Dn.x2,Dn.y2);case window.SVGPathSeg.PATHSEG_CURVETO_CUBIC_ABS:return Dn={x1:this._parseNumber(),y1:this._parseNumber(),x2:this._parseNumber(),y2:this._parseNumber(),x:this._parseNumber(),y:this._parseNumber()},new window.SVGPathSegCurvetoCubicAbs(Un,Dn.x,Dn.y,Dn.x1,Dn.y1,Dn.x2,Dn.y2);case window.SVGPathSeg.PATHSEG_CURVETO_CUBIC_SMOOTH_REL:return Dn={x2:this._parseNumber(),y2:this._parseNumber(),x:this._parseNumber(),y:this._parseNumber()},new window.SVGPathSegCurvetoCubicSmoothRel(Un,Dn.x,Dn.y,Dn.x2,Dn.y2);case window.SVGPathSeg.PATHSEG_CURVETO_CUBIC_SMOOTH_ABS:return Dn={x2:this._parseNumber(),y2:this._parseNumber(),x:this._parseNumber(),y:this._parseNumber()},new window.SVGPathSegCurvetoCubicSmoothAbs(Un,Dn.x,Dn.y,Dn.x2,Dn.y2);case window.SVGPathSeg.PATHSEG_CURVETO_QUADRATIC_REL:return Dn={x1:this._parseNumber(),y1:this._parseNumber(),x:this._parseNumber(),y:this._parseNumber()},new window.SVGPathSegCurvetoQuadraticRel(Un,Dn.x,Dn.y,Dn.x1,Dn.y1);case window.SVGPathSeg.PATHSEG_CURVETO_QUADRATIC_ABS:return Dn={x1:this._parseNumber(),y1:this._parseNumber(),x:this._parseNumber(),y:this._parseNumber()},new window.SVGPathSegCurvetoQuadraticAbs(Un,Dn.x,Dn.y,Dn.x1,Dn.y1);case window.SVGPathSeg.PATHSEG_CURVETO_QUADRATIC_SMOOTH_REL:return new window.SVGPathSegCurvetoQuadraticSmoothRel(Un,this._parseNumber(),this._parseNumber());case window.SVGPathSeg.PATHSEG_CURVETO_QUADRATIC_SMOOTH_ABS:return new window.SVGPathSegCurvetoQuadraticSmoothAbs(Un,this._parseNumber(),this._parseNumber());case window.SVGPathSeg.PATHSEG_ARC_REL:return Dn={x1:this._parseNumber(),y1:this._parseNumber(),arcAngle:this._parseNumber(),arcLarge:this._parseArcFlag(),arcSweep:this._parseArcFlag(),x:this._parseNumber(),y:this._parseNumber()},new window.SVGPathSegArcRel(Un,Dn.x,Dn.y,Dn.x1,Dn.y1,Dn.arcAngle,Dn.arcLarge,Dn.arcSweep);case window.SVGPathSeg.PATHSEG_ARC_ABS:return Dn={x1:this._parseNumber(),y1:this._parseNumber(),arcAngle:this._parseNumber(),arcLarge:this._parseArcFlag(),arcSweep:this._parseArcFlag(),x:this._parseNumber(),y:this._parseNumber()},new window.SVGPathSegArcAbs(Un,Dn.x,Dn.y,Dn.x1,Dn.y1,Dn.arcAngle,Dn.arcLarge,Dn.arcSweep);default:throw"Unknown path seg type."}};var Hn=new Qn,Gn=new Dn(Tn);if(!Gn.initialCommandIsMoveTo())return[];for(;Gn.hasMoreData();){var Vn=Gn.parseSegment();if(!Vn)return[];Hn.appendSegment(Vn)}return Hn.pathSegList});Boolean(document.createElementNS&&document.createElementNS(xd.SVG,"svg").createSVGRect);var kd,Bd=navigator.userAgent,Ed=document.createElementNS(xd.SVG,"svg"),Nd=Boolean(window.opera),Ld=Bd.includes("AppleWebKit"),Td=Bd.includes("Gecko/"),Pd=Bd.includes("MSIE"),Fd=Bd.includes("Chrome/"),Ud=(Bd.includes("Windows"),Bd.includes("Macintosh")),Id="ontouchstart"in window,Rd=Boolean(Ed.querySelector),Md=Boolean(document.evaluate),Od=function(){var Tn=document.createElementNS(xd.SVG,"path");Tn.setAttribute("d","M0,0 10,10");var Un=Tn.pathSegList,Qn=Tn.createSVGPathSegLinetoAbs(5,5);try{return Un.replaceItem(Qn,1),!0}catch(Tn){}return!1}(),Qd=function(){var Tn=document.createElementNS(xd.SVG,"path");Tn.setAttribute("d","M0,0 10,10");var Un=Tn.pathSegList,Qn=Tn.createSVGPathSegLinetoAbs(5,5);try{return Un.insertItemBefore(Qn,1),!0}catch(Tn){}return!1}(),Dd=function(){var Tn=document.createElementNS(xd.SVG,"svg"),Un=document.createElementNS(xd.SVG,"svg");document.documentElement.append(Tn),Un.setAttribute("x",5),Tn.append(Un);var Qn=document.createElementNS(xd.SVG,"text");Qn.textContent="a",Un.append(Qn);try{return 0===Qn.getStartPositionOfChar(0).x}catch(Tn){return!1}finally{Tn.remove()}}(),jd=function(){var Tn=document.createElementNS(xd.SVG,"svg");document.documentElement.append(Tn);var Un=document.createElementNS(xd.SVG,"path");Un.setAttribute("d","M0,0 C0,0 10,10 10,0"),Tn.append(Un);var Qn=Un.getBBox();return Tn.remove(),Qn.height>4&&Qn.height<5}(),Hd=function(){var Tn=document.createElementNS(xd.SVG,"svg");document.documentElement.append(Tn);var Un=document.createElementNS(xd.SVG,"path");Un.setAttribute("d","M0,0 10,0");var Qn=document.createElementNS(xd.SVG,"path");Qn.setAttribute("d","M5,0 15,0");var Dn=document.createElementNS(xd.SVG,"g");Dn.append(Un,Qn),Tn.append(Dn);var Hn=Dn.getBBox();return Tn.remove(),15===Hn.width}(),Gd=((kd=document.createElementNS(xd.SVG,"rect")).setAttribute("style","vector-effect:non-scaling-stroke"),"non-scaling-stroke"===kd.style.vectorEffect),Vd=function(){var Tn=document.createElementNS(xd.SVG,"rect").transform.baseVal,Un=Ed.createSVGTransform();Tn.appendItem(Un);var Qn=Tn.getItem(0),Dn=function isSVGTransform(Tn){return Tn&&"object"===_typeof(Tn)&&"function"==typeof Tn.setMatrix&&"angle"in Tn};return Dn(Qn)&&Dn(Un)&&Qn.type===Un.type&&Qn.angle===Un.angle&&Qn.matrix.a===Un.matrix.a&&Qn.matrix.b===Un.matrix.b&&Qn.matrix.c===Un.matrix.c&&Qn.matrix.d===Un.matrix.d&&Qn.matrix.e===Un.matrix.e&&Qn.matrix.f===Un.matrix.f}(),zd=function isWebkit(){return Ld},Kd=function isGecko(){return Td},qd=function isIE(){return Pd},Wd=function isChrome(){return Fd},Xd=function isMac(){return Ud},Yd=function isTouch(){return Id},Jd=function supportsGoodTextCharPos(){return Dd},$d=function supportsNonScalingStroke(){return Gd},Zd="undefined"!=typeof ArrayBuffer&&"undefined"!=typeof DataView,toIndex=function(Tn){if(void 0===Tn)return 0;var Un=toInteger(Tn),Qn=toLength(Un);if(Un!==Qn)throw RangeError("Wrong length or index");return Qn},eh=Math.abs,th=Math.pow,nh=Math.floor,rh=Math.log,ih=Math.LN2,ieee754_pack=function(Tn,Un,Qn){var Dn,Hn,Gn,Vn=new Array(Qn),zn=8*Qn-Un-1,Kn=(1<>1,Xn=23===Un?th(2,-24)-th(2,-77):0,Yn=Tn<0||0===Tn&&1/Tn<0?1:0,Jn=0;for((Tn=eh(Tn))!=Tn||Infinity===Tn?(Hn=Tn!=Tn?1:0,Dn=Kn):(Dn=nh(rh(Tn)/ih),Tn*(Gn=th(2,-Dn))<1&&(Dn--,Gn*=2),(Tn+=Dn+Wn>=1?Xn/Gn:Xn*th(2,1-Wn))*Gn>=2&&(Dn++,Gn/=2),Dn+Wn>=Kn?(Hn=0,Dn=Kn):Dn+Wn>=1?(Hn=(Tn*Gn-1)*th(2,Un),Dn+=Wn):(Hn=Tn*th(2,Wn-1)*th(2,Un),Dn=0));Un>=8;Vn[Jn++]=255&Hn,Hn/=256,Un-=8);for(Dn=Dn<0;Vn[Jn++]=255&Dn,Dn/=256,zn-=8);return Vn[--Jn]|=128*Yn,Vn},ieee754_unpack=function(Tn,Un){var Qn,Dn=Tn.length,Hn=8*Dn-Un-1,Gn=(1<>1,zn=Hn-7,Kn=Dn-1,Wn=Tn[Kn--],Xn=127&Wn;for(Wn>>=7;zn>0;Xn=256*Xn+Tn[Kn],Kn--,zn-=8);for(Qn=Xn&(1<<-zn)-1,Xn>>=-zn,zn+=Un;zn>0;Qn=256*Qn+Tn[Kn],Kn--,zn-=8);if(0===Xn)Xn=1-Vn;else{if(Xn===Gn)return Qn?NaN:Wn?-Infinity:Infinity;Qn+=th(2,Un),Xn-=Vn}return(Wn?-1:1)*Qn*th(2,Xn-Un)},oh=Rr.f,ah=tr.f,sh=xr.get,lh=xr.set,ch=Un.ArrayBuffer,uh=ch,dh=Un.DataView,hh=dh&&dh.prototype,ph=Object.prototype,Ah=Un.RangeError,gh=ieee754_pack,fh=ieee754_unpack,packInt8=function(Tn){return[255&Tn]},packInt16=function(Tn){return[255&Tn,Tn>>8&255]},packInt32=function(Tn){return[255&Tn,Tn>>8&255,Tn>>16&255,Tn>>24&255]},unpackInt32=function(Tn){return Tn[3]<<24|Tn[2]<<16|Tn[1]<<8|Tn[0]},packFloat32=function(Tn){return gh(Tn,23,4)},packFloat64=function(Tn){return gh(Tn,52,8)},addGetter=function(Tn,Un){ah(Tn.prototype,Un,{get:function(){return sh(this)[Un]}})},get$1=function(Tn,Un,Qn,Dn){var Hn=toIndex(Qn),Gn=sh(Tn);if(Hn+Un>Gn.byteLength)throw Ah("Wrong index");var Vn=sh(Gn.buffer).bytes,zn=Hn+Gn.byteOffset,Kn=Vn.slice(zn,zn+Un);return Dn?Kn:Kn.reverse()},set$2=function(Tn,Un,Qn,Dn,Hn,Gn){var Vn=toIndex(Qn),zn=sh(Tn);if(Vn+Un>zn.byteLength)throw Ah("Wrong index");for(var Kn=sh(zn.buffer).bytes,Wn=Vn+zn.byteOffset,Xn=Dn(+Hn),Yn=0;Ynyh;)(mh=vh[yh++])in uh||nr(uh,mh,ch[mh]);_h.constructor=uh}No&&La(hh)!==ph&&No(hh,ph);var bh=new dh(new uh(2)),wh=hh.setInt8;bh.setInt8(0,2147483648),bh.setInt8(1,2147483649),!bh.getInt8(0)&&bh.getInt8(1)||redefineAll(hh,{setInt8:function setInt8(Tn,Un){wh.call(this,Tn,Un<<24>>24)},setUint8:function setUint8(Tn,Un){wh.call(this,Tn,Un<<24>>24)}},{unsafe:!0})}else uh=function ArrayBuffer(Tn){anInstance(this,uh,"ArrayBuffer");var Un=toIndex(Tn);lh(this,{bytes:us.call(new Array(Un),0),byteLength:Un}),Qn||(this.byteLength=Un)},dh=function DataView(Tn,Un,Dn){anInstance(this,dh,"DataView"),anInstance(Tn,uh,"DataView");var Hn=sh(Tn).byteLength,Gn=toInteger(Un);if(Gn<0||Gn>Hn)throw Ah("Wrong offset");if(Gn+(Dn=void 0===Dn?Hn-Gn:toLength(Dn))>Hn)throw Ah("Wrong length");lh(this,{buffer:Tn,byteLength:Dn,byteOffset:Gn}),Qn||(this.buffer=Tn,this.byteLength=Dn,this.byteOffset=Gn)},Qn&&(addGetter(uh,"byteLength"),addGetter(dh,"buffer"),addGetter(dh,"byteLength"),addGetter(dh,"byteOffset")),redefineAll(dh.prototype,{getInt8:function getInt8(Tn){return get$1(this,1,Tn)[0]<<24>>24},getUint8:function getUint8(Tn){return get$1(this,1,Tn)[0]},getInt16:function getInt16(Tn){var Un=get$1(this,2,Tn,arguments.length>1?arguments[1]:void 0);return(Un[1]<<8|Un[0])<<16>>16},getUint16:function getUint16(Tn){var Un=get$1(this,2,Tn,arguments.length>1?arguments[1]:void 0);return Un[1]<<8|Un[0]},getInt32:function getInt32(Tn){return unpackInt32(get$1(this,4,Tn,arguments.length>1?arguments[1]:void 0))},getUint32:function getUint32(Tn){return unpackInt32(get$1(this,4,Tn,arguments.length>1?arguments[1]:void 0))>>>0},getFloat32:function getFloat32(Tn){return fh(get$1(this,4,Tn,arguments.length>1?arguments[1]:void 0),23)},getFloat64:function getFloat64(Tn){return fh(get$1(this,8,Tn,arguments.length>1?arguments[1]:void 0),52)},setInt8:function setInt8(Tn,Un){set$2(this,1,Tn,packInt8,Un)},setUint8:function setUint8(Tn,Un){set$2(this,1,Tn,packInt8,Un)},setInt16:function setInt16(Tn,Un){set$2(this,2,Tn,packInt16,Un,arguments.length>2?arguments[2]:void 0)},setUint16:function setUint16(Tn,Un){set$2(this,2,Tn,packInt16,Un,arguments.length>2?arguments[2]:void 0)},setInt32:function setInt32(Tn,Un){set$2(this,4,Tn,packInt32,Un,arguments.length>2?arguments[2]:void 0)},setUint32:function setUint32(Tn,Un){set$2(this,4,Tn,packInt32,Un,arguments.length>2?arguments[2]:void 0)},setFloat32:function setFloat32(Tn,Un){set$2(this,4,Tn,packFloat32,Un,arguments.length>2?arguments[2]:void 0)},setFloat64:function setFloat64(Tn,Un){set$2(this,8,Tn,packFloat64,Un,arguments.length>2?arguments[2]:void 0)}});setToStringTag(uh,"ArrayBuffer"),setToStringTag(dh,"DataView");var Sh={ArrayBuffer:uh,DataView:dh},xh=Sh.ArrayBuffer,Ch=Sh.DataView,kh=xh.prototype.slice,Bh=fails((function(){return!new xh(2).slice(1,void 0).byteLength}));_export({target:"ArrayBuffer",proto:!0,unsafe:!0,forced:Bh},{slice:function slice(Tn,Un){if(void 0!==kh&&void 0===Un)return kh.call(anObject(this),Tn);for(var Qn=anObject(this).byteLength,Dn=toAbsoluteIndex(Tn,Qn),Hn=toAbsoluteIndex(void 0===Un?Qn:Un,Qn),Gn=new(speciesConstructor(this,xh))(toLength(Hn-Dn)),Vn=new Ch(this),zn=new Ch(Gn),Kn=0;Dn1?arguments[1]:void 0,Xn=void 0!==Wn,Yn=getIteratorMethod(zn);if(null!=Yn&&!isArrayIteratorMethod(Yn))for(Vn=(Gn=Yn.call(zn)).next,zn=[];!(Hn=Vn.call(Gn)).done;)zn.push(Hn.value);for(Xn&&Kn>2&&(Wn=functionBindContext(Wn,arguments[2],2)),Qn=toLength(zn.length),Dn=new(Wh(this))(Qn),Un=0;Qn>Un;Un++)Dn[Un]=Xn?Wn(zn[Un],Un):zn[Un];return Dn},Yh=createCommonjsModule((function(Tn){var Dn=Rr.f,Hn=ui.forEach,Gn=xr.get,Vn=xr.set,zn=tr.f,Kn=Zn.f,Wn=Math.round,Xn=Un.RangeError,Yn=Sh.ArrayBuffer,Jn=Sh.DataView,$n=Gh.NATIVE_ARRAY_BUFFER_VIEWS,er=Gh.TYPED_ARRAY_TAG,rr=Gh.TypedArray,ir=Gh.TypedArrayPrototype,or=Gh.aTypedArrayConstructor,ar=Gh.isTypedArray,sr="BYTES_PER_ELEMENT",lr="Wrong length",fromList=function(Tn,Un){for(var Qn=0,Dn=Un.length,Hn=new(or(Tn))(Dn);Dn>Qn;)Hn[Qn]=Un[Qn++];return Hn},addGetter=function(Tn,Un){zn(Tn,Un,{get:function(){return Gn(this)[Un]}})},isArrayBuffer=function(Tn){var Un;return Tn instanceof Yn||"ArrayBuffer"==(Un=Ao(Tn))||"SharedArrayBuffer"==Un},isTypedArrayIndex=function(Tn,Un){return ar(Tn)&&"symbol"!=typeof Un&&Un in Tn&&String(+Un)==String(Un)},cr=function getOwnPropertyDescriptor(Tn,Un){return isTypedArrayIndex(Tn,Un=toPrimitive(Un,!0))?createPropertyDescriptor(2,Tn[Un]):Kn(Tn,Un)},ur=function defineProperty(Tn,Un,Qn){return!(isTypedArrayIndex(Tn,Un=toPrimitive(Un,!0))&&isObject(Qn)&&has(Qn,"value"))||has(Qn,"get")||has(Qn,"set")||Qn.configurable||has(Qn,"writable")&&!Qn.writable||has(Qn,"enumerable")&&!Qn.enumerable?zn(Tn,Un,Qn):(Tn[Un]=Qn.value,Tn)};Qn?($n||(Zn.f=cr,tr.f=ur,addGetter(ir,"buffer"),addGetter(ir,"byteOffset"),addGetter(ir,"byteLength"),addGetter(ir,"length")),_export({target:"Object",stat:!0,forced:!$n},{getOwnPropertyDescriptor:cr,defineProperty:ur}),Tn.exports=function(Tn,Qn,Kn){var Zn=Tn.match(/\d+$/)[0]/8,tr=Tn+(Kn?"Clamped":"")+"Array",or="get"+Tn,cr="set"+Tn,ur=Un[tr],dr=ur,hr=dr&&dr.prototype,pr={},addElement=function(Tn,Un){zn(Tn,Un,{get:function(){return function(Tn,Un){var Qn=Gn(Tn);return Qn.view[or](Un*Zn+Qn.byteOffset,!0)}(this,Un)},set:function(Tn){return function(Tn,Un,Qn){var Dn=Gn(Tn);Kn&&(Qn=(Qn=Wn(Qn))<0?0:Qn>255?255:255&Qn),Dn.view[cr](Un*Zn+Dn.byteOffset,Qn,!0)}(this,Un,Tn)},enumerable:!0})};$n?qh&&(dr=Qn((function(Tn,Un,Qn,Dn){return anInstance(Tn,dr,tr),inheritIfRequired(isObject(Un)?isArrayBuffer(Un)?void 0!==Dn?new ur(Un,toOffset(Qn,Zn),Dn):void 0!==Qn?new ur(Un,toOffset(Qn,Zn)):new ur(Un):ar(Un)?fromList(dr,Un):Xh.call(dr,Un):new ur(toIndex(Un)),Tn,dr)})),No&&No(dr,rr),Hn(Dn(ur),(function(Tn){Tn in dr||nr(dr,Tn,ur[Tn])})),dr.prototype=hr):(dr=Qn((function(Tn,Un,Qn,Dn){anInstance(Tn,dr,tr);var Hn,Gn,zn,Kn=0,Wn=0;if(isObject(Un)){if(!isArrayBuffer(Un))return ar(Un)?fromList(dr,Un):Xh.call(dr,Un);Hn=Un,Wn=toOffset(Qn,Zn);var $n=Un.byteLength;if(void 0===Dn){if($n%Zn)throw Xn(lr);if((Gn=$n-Wn)<0)throw Xn(lr)}else if((Gn=toLength(Dn)*Zn)+Wn>$n)throw Xn(lr);zn=Gn/Zn}else zn=toIndex(Un),Hn=new Yn(Gn=zn*Zn);for(Vn(Tn,{buffer:Hn,byteOffset:Wn,byteLength:Gn,length:zn,view:new Jn(Hn)});Kn2?arguments[2]:void 0,zn=Jh((void 0===Vn?Dn:toAbsoluteIndex(Vn,Dn))-Gn,Dn-Hn),Kn=1;for(Gn0;)Gn in Qn?Qn[Hn]=Qn[Gn]:delete Qn[Hn],Hn+=Kn,Gn+=Kn;return Qn},Zh=Gh.aTypedArray;(0,Gh.exportTypedArrayMethod)("copyWithin",(function copyWithin(Tn,Un){return $h.call(Zh(this),Tn,Un,arguments.length>2?arguments[2]:void 0)}));var ep=ui.every,tp=Gh.aTypedArray;(0,Gh.exportTypedArrayMethod)("every",(function every(Tn){return ep(tp(this),Tn,arguments.length>1?arguments[1]:void 0)}));var np=Gh.aTypedArray;(0,Gh.exportTypedArrayMethod)("fill",(function fill(Tn){return us.apply(np(this),arguments)}));var rp=ui.filter,ip=Gh.aTypedArray,op=Gh.aTypedArrayConstructor;(0,Gh.exportTypedArrayMethod)("filter",(function filter(Tn){for(var Un=rp(ip(this),Tn,arguments.length>1?arguments[1]:void 0),Qn=speciesConstructor(this,this.constructor),Dn=0,Hn=Un.length,Gn=new(op(Qn))(Hn);Hn>Dn;)Gn[Dn]=Un[Dn++];return Gn}));var ap=ui.find,sp=Gh.aTypedArray;(0,Gh.exportTypedArrayMethod)("find",(function find(Tn){return ap(sp(this),Tn,arguments.length>1?arguments[1]:void 0)}));var lp=ui.findIndex,cp=Gh.aTypedArray;(0,Gh.exportTypedArrayMethod)("findIndex",(function findIndex(Tn){return lp(cp(this),Tn,arguments.length>1?arguments[1]:void 0)}));var up=ui.forEach,dp=Gh.aTypedArray;(0,Gh.exportTypedArrayMethod)("forEach",(function forEach(Tn){up(dp(this),Tn,arguments.length>1?arguments[1]:void 0)}));var hp=Pr.includes,pp=Gh.aTypedArray;(0,Gh.exportTypedArrayMethod)("includes",(function includes(Tn){return hp(pp(this),Tn,arguments.length>1?arguments[1]:void 0)}));var Ap=Pr.indexOf,gp=Gh.aTypedArray;(0,Gh.exportTypedArrayMethod)("indexOf",(function indexOf(Tn){return Ap(gp(this),Tn,arguments.length>1?arguments[1]:void 0)}));var fp=wellKnownSymbol("iterator"),mp=Un.Uint8Array,_p=Ha.values,vp=Ha.keys,yp=Ha.entries,wp=Gh.aTypedArray,Sp=Gh.exportTypedArrayMethod,xp=mp&&mp.prototype[fp],Cp=!!xp&&("values"==xp.name||null==xp.name),kp=function values(){return _p.call(wp(this))};Sp("entries",(function entries(){return yp.call(wp(this))})),Sp("keys",(function keys(){return vp.call(wp(this))})),Sp("values",kp,!Cp),Sp(fp,kp,!Cp);var Bp=Gh.aTypedArray,Ep=[].join;(0,Gh.exportTypedArrayMethod)("join",(function join(Tn){return Ep.apply(Bp(this),arguments)}));var Np=Math.min,Lp=[].lastIndexOf,Tp=!!Lp&&1/[1].lastIndexOf(1,-0)<0,Pp=arrayMethodIsStrict("lastIndexOf"),Fp=arrayMethodUsesToLength("indexOf",{ACCESSORS:!0,1:0}),Up=Tp||!Pp||!Fp?function lastIndexOf(Tn){if(Tp)return Lp.apply(this,arguments)||0;var Un=toIndexedObject(this),Qn=toLength(Un.length),Dn=Qn-1;for(arguments.length>1&&(Dn=Np(Dn,toInteger(arguments[1]))),Dn<0&&(Dn=Qn+Dn);Dn>=0;Dn--)if(Dn in Un&&Un[Dn]===Tn)return Dn||0;return-1}:Lp,Ip=Gh.aTypedArray;(0,Gh.exportTypedArrayMethod)("lastIndexOf",(function lastIndexOf(Tn){return Up.apply(Ip(this),arguments)}));var Rp=ui.map,Mp=Gh.aTypedArray,Op=Gh.aTypedArrayConstructor;(0,Gh.exportTypedArrayMethod)("map",(function map(Tn){return Rp(Mp(this),Tn,arguments.length>1?arguments[1]:void 0,(function(Tn,Un){return new(Op(speciesConstructor(Tn,Tn.constructor)))(Un)}))}));var Qp=Lc.left,Dp=Gh.aTypedArray;(0,Gh.exportTypedArrayMethod)("reduce",(function reduce(Tn){return Qp(Dp(this),Tn,arguments.length,arguments.length>1?arguments[1]:void 0)}));var jp=Lc.right,Hp=Gh.aTypedArray;(0,Gh.exportTypedArrayMethod)("reduceRight",(function reduceRight(Tn){return jp(Hp(this),Tn,arguments.length,arguments.length>1?arguments[1]:void 0)}));var Gp=Gh.aTypedArray,Vp=Gh.exportTypedArrayMethod,zp=Math.floor;Vp("reverse",(function reverse(){for(var Tn,Un=this,Qn=Gp(Un).length,Dn=zp(Qn/2),Hn=0;Hn1?arguments[1]:void 0,1),Qn=this.length,Dn=toObject(Tn),Hn=toLength(Dn.length),Gn=0;if(Hn+Un>Qn)throw RangeError("Wrong length");for(;GnHn;)Vn[Hn]=Qn[Hn++];return Vn}),fails((function(){new Int8Array(1).slice()})));var Yp=ui.some,Jp=Gh.aTypedArray;(0,Gh.exportTypedArrayMethod)("some",(function some(Tn){return Yp(Jp(this),Tn,arguments.length>1?arguments[1]:void 0)}));var $p=Gh.aTypedArray,Zp=[].sort;(0,Gh.exportTypedArrayMethod)("sort",(function sort(Tn){return Zp.call($p(this),Tn)}));var eA=Gh.aTypedArray;(0,Gh.exportTypedArrayMethod)("subarray",(function subarray(Tn,Un){var Qn=eA(this),Dn=Qn.length,Hn=toAbsoluteIndex(Tn,Dn);return new(speciesConstructor(Qn,Qn.constructor))(Qn.buffer,Qn.byteOffset+Hn*Qn.BYTES_PER_ELEMENT,toLength((void 0===Un?Dn:toAbsoluteIndex(Un,Dn))-Hn))}));var tA=Un.Int8Array,nA=Gh.aTypedArray,rA=Gh.exportTypedArrayMethod,iA=[].toLocaleString,oA=[].slice,aA=!!tA&&fails((function(){iA.call(new tA(1))}));rA("toLocaleString",(function toLocaleString(){return iA.apply(aA?oA.call(nA(this)):nA(this),arguments)}),fails((function(){return[1,2].toLocaleString()!=new tA([1,2]).toLocaleString()}))||!fails((function(){tA.prototype.toLocaleString.call([1,2])})));var sA=Gh.exportTypedArrayMethod,lA=Un.Uint8Array,cA=lA&&lA.prototype||{},uA=[].toString,dA=[].join;fails((function(){uA.call({})}))&&(uA=function toString(){return dA.call(this)});var hA=cA.toString!=uA; /** * A jQuery module to work with SVG attributes. * @module jQueryAttr * @license MIT */ -function jQueryPluginSVG(Tn){var Un=Tn.fn.attr;return Tn.fn.attr=function(Tn,Qn){var Dn=this.length;if(!Dn)return Un.call(this,Tn,Qn);for(var Hn=0;Hn1?arguments[1]:void 0)}});var gA=document.createElementNS(Sd.SVG,"svg");function transformToString(Tn){var Un=Tn.matrix,Qn="";switch(Tn.type){case 1:Qn="matrix("+[Un.a,Un.b,Un.c,Un.d,Un.e,Un.f].join(",")+")";break;case 2:Qn="translate("+Un.e+","+Un.f+")";break;case 3:Qn=Un.a===Un.d?"scale(".concat(Un.a,")"):"scale(".concat(Un.a,",").concat(Un.d,")");break;case 4:var Dn=0,Hn=0;if(0!==Tn.angle){var Gn=1-Un.a;Hn=(Gn*Un.f+Un.b*Un.e)/(Gn*Gn+Un.b*Un.b),Dn=(Un.e-Un.b*Hn)/Gn}Qn="rotate("+Tn.angle+" "+Dn+","+Hn+")"}return Qn}var mA,_A={},vA=function(){function SVGTransformList(Tn){_classCallCheck(this,SVGTransformList),this._elem=Tn||null,this._xforms=[],this._update=function(){for(var Tn="",Un=0;Un=0)return this._xforms[Tn];var Un=new Error("DOMException with code=INDEX_SIZE_ERR");throw Un.code=1,Un}},{key:"insertItemBefore",value:function insertItemBefore(Tn,Un){var Qn=null;if(Un>=0)if(Un=0&&(this._removeFromOtherLists(Tn),this._xforms[Un]=Tn,Qn=Tn,this._list._update()),Qn}},{key:"removeItem",value:function removeItem(Tn){if(Tn=0){var Un,Qn=this._xforms[Tn],Dn=new Array(this.numberOfItems-1);for(Un=0;Un1?arguments[1]:void 0)}});var RA=document.createElementNS(Sd.SVG,"svg"),MA=function transformPoint(Tn,Un,Qn){return{x:Qn.a*Tn+Qn.c*Un+Qn.e,y:Qn.b*Tn+Qn.d*Un+Qn.f}},OA=function isIdentity(Tn){return 1===Tn.a&&0===Tn.b&&0===Tn.c&&1===Tn.d&&0===Tn.e&&0===Tn.f},QA=function matrixMultiply(){for(var Tn=arguments.length,Un=new Array(Tn),Qn=0;Qn(Qn=Number.parseInt(Qn))){var Dn=Qn;Qn=Un,Un=Dn}for(var Hn=RA.createSVGMatrix(),Gn=Un;Gn<=Qn;++Gn){var Vn=Gn>=0&&GnTn.x&&Un.yTn.y},KA=jQueryPluginSVG(jQuery),qA="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",WA="a,circle,ellipse,foreignObject,g,image,line,path,polygon,polyline,rect,svg,text,tspan,use,clipPath".split(","),XA=null,YA=null,JA=null,$A=null,ZA=function dropXMLInternalSubset(Tn){return Tn.replace(/()/,"$1$2")},ef=function toXml(Tn){return Tn.replace(/&/g,"&").replace(//g,">").replace(/"/g,""").replace(/'/g,"'")};function encode64(Tn){if(Tn=tf(Tn),window.btoa)return window.btoa(Tn);var Un=new Array(4*Math.floor((Tn.length+2)/3)),Qn=0,Dn=0;do{var Hn=Tn.charCodeAt(Qn++),Gn=Tn.charCodeAt(Qn++),Vn=Tn.charCodeAt(Qn++),zn=Hn>>2,Kn=(3&Hn)<<4|Gn>>4,Wn=(15&Gn)<<2|Vn>>6,Xn=63&Vn;Number.isNaN(Gn)?(Wn=64,Xn=64):Number.isNaN(Vn)&&(Xn=64),Un[Dn++]=qA.charAt(zn),Un[Dn++]=qA.charAt(Kn),Un[Dn++]=qA.charAt(Wn),Un[Dn++]=qA.charAt(Xn)}while(Qn>4,Kn=(15&Hn)<<4|Gn>>2,Wn=(3&Gn)<<6|Vn;Un+=String.fromCharCode(zn),64!==Gn&&(Un+=String.fromCharCode(Kn)),64!==Vn&&(Un+=String.fromCharCode(Wn))}while(QnSVG-edit "],{type:"text/html"});return rf(Tn)}(),af=function text2xml(Tn){var Un,Qn;Tn.includes("0?Un=Un[0]:(Un=Tn.ownerDocument.createElementNS(Sd.SVG,"defs"),Tn.firstChild?Tn.insertBefore(Un,Tn.firstChild.nextSibling):Tn.append(Un)),Un},hf=function getPathBBox(Tn){for(var Un=Tn.pathSegList,Qn=Un.numberOfItems,Dn=[[],[]],Hn=Un.getItem(0),Gn=[Hn.x,Hn.y],Vn=function getCalc(Tn,Un,Qn,Dn){return function(Hn){return 1-Math.pow(Hn,3)*Gn[Tn]+3-Math.pow(Hn,2)*Hn*Un[Tn]+3*(1-Hn)*Math.pow(Hn,2)*Qn[Tn]+Math.pow(Hn,3)*Dn[Tn]}},zn=0;zn0&&rr<1&&Dn[Jn].push($n(rr));var ir=(-Zn-Math.sqrt(nr))/(2*er);ir>0&&ir<1&&Dn[Jn].push($n(ir))}}else{if(0===Zn)continue;var or=-tr/Zn;or>0&&or<1&&Dn[Jn].push($n(or))}}Gn=Yn}else Dn[0].push(Kn.x),Dn[1].push(Kn.y)}var ar=Math.min.apply(null,Dn[0]),sr=Math.max.apply(null,Dn[0])-ar,lr=Math.min.apply(null,Dn[1]);return{x:ar,y:lr,width:sr,height:Math.max.apply(null,Dn[1])-lr}};function groupBBFix(Tn){if(function supportsHVLineContainerBBox(){return Hd}())try{return Tn.getBBox()}catch(Tn){}var Un,Qn,Dn=KA.data(Tn,"ref"),Hn=null;Dn?(Qn=KA(Dn).children().clone().attr("visibility","hidden"),KA($A).append(Qn),Hn=Qn.filter("line, path")):Hn=KA(Tn).find("line, path");var Gn=!1;if(Hn.length)if(Hn.each((function(){var Tn=this.getBBox();Tn.width&&Tn.height||(Gn=!0)})),Gn){var Vn=Dn?Qn:KA(Tn).children();Un=vf(Vn)}else Un=Tn.getBBox();else Un=Tn.getBBox();return Dn&&Qn.remove(),Un}var pf=function getBBox(Tn){var Un=Tn||XA.geSelectedElements()[0];if(1!==Tn.nodeType)return null;var Qn=Un.nodeName,Dn=null;switch(Qn){case"text":""===Un.textContent?(Un.textContent="a",Dn=Un.getBBox(),Un.textContent=""):Un.getBBox&&(Dn=Un.getBBox());break;case"path":!function supportsPathBBox(){return jd}()?Dn=hf(Un):Un.getBBox&&(Dn=Un.getBBox());break;case"g":case"a":Dn=groupBBFix(Un);break;default:if("use"===Qn&&(Dn=groupBBFix(Un)),"use"===Qn||"foreignObject"===Qn&&zd()){if(Dn||(Dn=Un.getBBox()),!zd()){var Hn=Dn,Gn=Hn.x,Vn=Hn.y;Dn={width:Hn.width,height:Hn.height,x:Gn+Number.parseFloat(Un.getAttribute("x")||0),y:Vn+Number.parseFloat(Un.getAttribute("y")||0)}}}else if(WA.includes(Qn))if(Un)try{Dn=Un.getBBox()}catch(Tn){var zn=Un.getExtentOfChar(0),Kn=Un.getComputedTextLength();Dn={x:zn.x,y:zn.y,width:Kn,height:zn.height}}else{var Wn=KA(Un).closest("foreignObject");Wn.length&&Wn[0].getBBox&&(Dn=Wn[0].getBBox())}}return Dn&&(Dn=function bboxToObj(Tn){return{x:Tn.x,y:Tn.y,width:Tn.width,height:Tn.height}}(Dn)),Dn},Af=function getPathDFromSegments(Tn){var Un="";return KA.each(Tn,(function(Tn,Qn){var Dn=_slicedToArray(Qn,2),Hn=Dn[0],Gn=Dn[1];Un+=Hn;for(var Vn=0;Vn-.001&&Qn<.001||Qn<-89.99||Qn>89.99)}(Gn,Vn)){if(["ellipse","path","line","polyline","polygon"].includes(Tn.tagName))Dn=zn=mf(Tn,Un,Qn);else if("rect"===Tn.tagName){var Kn=Tn.getAttribute("rx"),Wn=Tn.getAttribute("ry");(Kn||Wn)&&(Dn=zn=mf(Tn,Un,Qn))}}if(!zn){var Xn=HA(Hn).matrix;Dn=jA(Dn.x,Dn.y,Dn.width,Dn.height,Xn).aabox}}return Dn};function getStrokeOffsetForBBox(Tn){var Un=Tn.getAttribute("stroke-width");return isNaN(Un)||"none"===Tn.getAttribute("stroke")?0:Un/2}var vf=function getStrokedBBox(Tn,Un,Qn){if(!Tn||!Tn.length)return!1;var Dn;if(KA.each(Tn,(function(){Dn||this.parentNode&&(Dn=_f(this,Un,Qn))})),void 0===Dn)return null;var Hn=Dn.x+Dn.width,Gn=Dn.y+Dn.height,Vn=Dn.x,zn=Dn.y;if(1===Tn.length){var Kn=getStrokeOffsetForBBox(Tn[0]);Vn-=Kn,zn-=Kn,Hn+=Kn,Gn+=Kn}else KA.each(Tn,(function(Tn,Dn){var Kn=_f(Dn,Un,Qn);if(Kn){var Wn=getStrokeOffsetForBBox(Dn);Vn=Math.min(Vn,Kn.x-Wn),zn=Math.min(zn,Kn.y-Wn),1===Dn.nodeType&&(Hn=Math.max(Hn,Kn.x+Kn.width+Wn),Gn=Math.max(Gn,Kn.y+Kn.height+Wn))}}));return Dn.x=Vn,Dn.y=zn,Dn.width=Hn-Vn,Dn.height=Gn-zn,Dn},yf=function getVisibleElements(Tn){Tn||(Tn=KA(XA.getSVGContent()).children());var Un=[];return KA(Tn).children().each((function(Tn,Qn){Qn.getBBox&&Un.push(Qn)})),Un.reverse()},bf=function getStrokedBBoxDefaultVisible(Tn){return Tn||(Tn=yf()),vf(Tn,XA.addSVGElementFromJson,XA.pathActions)},wf=function getRotationAngleFromTransformList(Tn,Un){if(!Tn)return 0;for(var Qn=Tn.numberOfItems,Dn=0;Dn");var Un=Tn.shortcut||"";document.getElementById("cmenu_canvas").appendChild("\n
  • ").concat(Tn.label,"").concat(Un,"
  • "))}(Tn)}))};_export({target:"Object",stat:!0,forced:Object.assign!==ou},{assign:ou});var Ff="undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{},Uf=xh.ArrayBuffer,If=Un.ArrayBuffer;_export({global:!0,forced:If!==Uf},{ArrayBuffer:Uf}),setSpecies("ArrayBuffer"),_export({global:!0,forced:!Zd},{DataView:xh.DataView});var Rf=Math.floor;_export({target:"Number",stat:!0},{isInteger:function isInteger(Tn){return!isObject(Tn)&&isFinite(Tn)&&Rf(Tn)===Tn}}),_export({target:"Number",stat:!0},{MAX_SAFE_INTEGER:9007199254740991});var Mf=Zn.f,Of=fails((function(){Mf(1)}));_export({target:"Object",stat:!0,forced:!Qn||Of,sham:!Qn},{getOwnPropertyDescriptor:function getOwnPropertyDescriptor(Tn,Un){return Mf(toIndexedObject(Tn),Un)}});var Qf=Pl.f,Df=fails((function(){return!Object.getOwnPropertyNames(1)}));_export({target:"Object",stat:!0,forced:Df},{getOwnPropertyNames:Qf}),Qn&&("g"!=/./g.flags||To.UNSUPPORTED_Y)&&tr.f(RegExp.prototype,"flags",{configurable:!0,get:regexpFlags}),_export({target:"String",proto:!0,forced:stringHtmlForced("link")},{link:function link(Tn){return createHtml(this,"a","href",Tn)}}),Yh("Float32",(function(Tn){return function Float32Array(Un,Qn,Dn){return Tn(this,Un,Qn,Dn)}})),Yh("Float64",(function(Tn){return function Float64Array(Un,Qn,Dn){return Tn(this,Un,Qn,Dn)}})),Yh("Int8",(function(Tn){return function Int8Array(Un,Qn,Dn){return Tn(this,Un,Qn,Dn)}})),Yh("Int16",(function(Tn){return function Int16Array(Un,Qn,Dn){return Tn(this,Un,Qn,Dn)}})),Yh("Int32",(function(Tn){return function Int32Array(Un,Qn,Dn){return Tn(this,Un,Qn,Dn)}})),Yh("Uint8",(function(Tn){return function Uint8ClampedArray(Un,Qn,Dn){return Tn(this,Un,Qn,Dn)}}),!0),Yh("Uint16",(function(Tn){return function Uint16Array(Un,Qn,Dn){return Tn(this,Un,Qn,Dn)}})),Yh("Uint32",(function(Tn){return function Uint32Array(Un,Qn,Dn){return Tn(this,Un,Qn,Dn)}})); +function jQueryPluginSVG(Tn){var Un=Tn.fn.attr;return Tn.fn.attr=function(Tn,Qn){var Dn=this.length;if(!Dn)return Un.call(this,Tn,Qn);for(var Hn=0;Hn1?arguments[1]:void 0)}});var fA=document.createElementNS(xd.SVG,"svg");function transformToString(Tn){var Un=Tn.matrix,Qn="";switch(Tn.type){case 1:Qn="matrix("+[Un.a,Un.b,Un.c,Un.d,Un.e,Un.f].join(",")+")";break;case 2:Qn="translate("+Un.e+","+Un.f+")";break;case 3:Qn=Un.a===Un.d?"scale(".concat(Un.a,")"):"scale(".concat(Un.a,",").concat(Un.d,")");break;case 4:var Dn=0,Hn=0;if(0!==Tn.angle){var Gn=1-Un.a;Hn=(Gn*Un.f+Un.b*Un.e)/(Gn*Gn+Un.b*Un.b),Dn=(Un.e-Un.b*Hn)/Gn}Qn="rotate("+Tn.angle+" "+Dn+","+Hn+")"}return Qn}var mA,_A={},vA=function(){function SVGTransformList(Tn){_classCallCheck(this,SVGTransformList),this._elem=Tn||null,this._xforms=[],this._update=function(){for(var Tn="",Un=0;Un=0)return this._xforms[Tn];var Un=new Error("DOMException with code=INDEX_SIZE_ERR");throw Un.code=1,Un}},{key:"insertItemBefore",value:function insertItemBefore(Tn,Un){var Qn=null;if(Un>=0)if(Un=0&&(this._removeFromOtherLists(Tn),this._xforms[Un]=Tn,Qn=Tn,this._list._update()),Qn}},{key:"removeItem",value:function removeItem(Tn){if(Tn=0){var Un,Qn=this._xforms[Tn],Dn=new Array(this.numberOfItems-1);for(Un=0;Un1?arguments[1]:void 0)}});var RA=document.createElementNS(xd.SVG,"svg"),MA=function transformPoint(Tn,Un,Qn){return{x:Qn.a*Tn+Qn.c*Un+Qn.e,y:Qn.b*Tn+Qn.d*Un+Qn.f}},OA=function isIdentity(Tn){return 1===Tn.a&&0===Tn.b&&0===Tn.c&&1===Tn.d&&0===Tn.e&&0===Tn.f},QA=function matrixMultiply(){for(var Tn=arguments.length,Un=new Array(Tn),Qn=0;Qn(Qn=Number.parseInt(Qn))){var Dn=Qn;Qn=Un,Un=Dn}for(var Hn=RA.createSVGMatrix(),Gn=Un;Gn<=Qn;++Gn){var Vn=Gn>=0&&GnTn.x&&Un.yTn.y},KA=jQueryPluginSVG(jQuery),qA="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",WA="a,circle,ellipse,foreignObject,g,image,line,path,polygon,polyline,rect,svg,text,tspan,use,clipPath".split(","),XA=null,YA=null,JA=null,$A=null,ZA=function dropXMLInternalSubset(Tn){return Tn.replace(/()/,"$1$2")},eg=function toXml(Tn){return Tn.replace(/&/g,"&").replace(//g,">").replace(/"/g,""").replace(/'/g,"'")};function encode64(Tn){if(Tn=tg(Tn),window.btoa)return window.btoa(Tn);var Un=new Array(4*Math.floor((Tn.length+2)/3)),Qn=0,Dn=0;do{var Hn=Tn.charCodeAt(Qn++),Gn=Tn.charCodeAt(Qn++),Vn=Tn.charCodeAt(Qn++),zn=Hn>>2,Kn=(3&Hn)<<4|Gn>>4,Wn=(15&Gn)<<2|Vn>>6,Xn=63&Vn;Number.isNaN(Gn)?(Wn=64,Xn=64):Number.isNaN(Vn)&&(Xn=64),Un[Dn++]=qA.charAt(zn),Un[Dn++]=qA.charAt(Kn),Un[Dn++]=qA.charAt(Wn),Un[Dn++]=qA.charAt(Xn)}while(Qn>4,Kn=(15&Hn)<<4|Gn>>2,Wn=(3&Gn)<<6|Vn;Un+=String.fromCharCode(zn),64!==Gn&&(Un+=String.fromCharCode(Kn)),64!==Vn&&(Un+=String.fromCharCode(Wn))}while(QnSVG-edit "],{type:"text/html"});return rg(Tn)}(),og=function text2xml(Tn){var Un,Qn;Tn.includes("0?Un=Un[0]:(Un=Tn.ownerDocument.createElementNS(xd.SVG,"defs"),Tn.firstChild?Tn.insertBefore(Un,Tn.firstChild.nextSibling):Tn.append(Un)),Un},dg=function getPathBBox(Tn){for(var Un=Tn.pathSegList,Qn=Un.numberOfItems,Dn=[[],[]],Hn=Un.getItem(0),Gn=[Hn.x,Hn.y],Vn=function getCalc(Tn,Un,Qn,Dn){return function(Hn){return 1-Math.pow(Hn,3)*Gn[Tn]+3-Math.pow(Hn,2)*Hn*Un[Tn]+3*(1-Hn)*Math.pow(Hn,2)*Qn[Tn]+Math.pow(Hn,3)*Dn[Tn]}},zn=0;zn0&&rr<1&&Dn[Jn].push($n(rr));var ir=(-Zn-Math.sqrt(nr))/(2*er);ir>0&&ir<1&&Dn[Jn].push($n(ir))}}else{if(0===Zn)continue;var or=-tr/Zn;or>0&&or<1&&Dn[Jn].push($n(or))}}Gn=Yn}else Dn[0].push(Kn.x),Dn[1].push(Kn.y)}var ar=Math.min.apply(null,Dn[0]),sr=Math.max.apply(null,Dn[0])-ar,lr=Math.min.apply(null,Dn[1]);return{x:ar,y:lr,width:sr,height:Math.max.apply(null,Dn[1])-lr}};function groupBBFix(Tn){if(function supportsHVLineContainerBBox(){return Hd}())try{return Tn.getBBox()}catch(Tn){}var Un,Qn,Dn=KA.data(Tn,"ref"),Hn=null;Dn?(Qn=KA(Dn).children().clone().attr("visibility","hidden"),KA($A).append(Qn),Hn=Qn.filter("line, path")):Hn=KA(Tn).find("line, path");var Gn=!1;if(Hn.length)if(Hn.each((function(){var Tn=this.getBBox();Tn.width&&Tn.height||(Gn=!0)})),Gn){var Vn=Dn?Qn:KA(Tn).children();Un=_g(Vn)}else Un=Tn.getBBox();else Un=Tn.getBBox();return Dn&&Qn.remove(),Un}var hg=function getBBox(Tn){var Un=Tn||XA.geSelectedElements()[0];if(1!==Tn.nodeType)return null;var Qn=Un.nodeName,Dn=null;switch(Qn){case"text":""===Un.textContent?(Un.textContent="a",Dn=Un.getBBox(),Un.textContent=""):Un.getBBox&&(Dn=Un.getBBox());break;case"path":!function supportsPathBBox(){return jd}()?Dn=dg(Un):Un.getBBox&&(Dn=Un.getBBox());break;case"g":case"a":Dn=groupBBFix(Un);break;default:if("use"===Qn&&(Dn=groupBBFix(Un)),"use"===Qn||"foreignObject"===Qn&&zd()){if(Dn||(Dn=Un.getBBox()),!zd()){var Hn=Dn,Gn=Hn.x,Vn=Hn.y;Dn={width:Hn.width,height:Hn.height,x:Gn+Number.parseFloat(Un.getAttribute("x")||0),y:Vn+Number.parseFloat(Un.getAttribute("y")||0)}}}else if(WA.includes(Qn))if(Un)try{Dn=Un.getBBox()}catch(Tn){var zn=Un.getExtentOfChar(0),Kn=Un.getComputedTextLength();Dn={x:zn.x,y:zn.y,width:Kn,height:zn.height}}else{var Wn=KA(Un).closest("foreignObject");Wn.length&&Wn[0].getBBox&&(Dn=Wn[0].getBBox())}}return Dn&&(Dn=function bboxToObj(Tn){return{x:Tn.x,y:Tn.y,width:Tn.width,height:Tn.height}}(Dn)),Dn},pg=function getPathDFromSegments(Tn){var Un="";return KA.each(Tn,(function(Tn,Qn){var Dn=_slicedToArray(Qn,2),Hn=Dn[0],Gn=Dn[1];Un+=Hn;for(var Vn=0;Vn-.001&&Qn<.001||Qn<-89.99||Qn>89.99)}(Gn,Vn)){if(["ellipse","path","line","polyline","polygon"].includes(Tn.tagName))Dn=zn=fg(Tn,Un,Qn);else if("rect"===Tn.tagName){var Kn=Tn.getAttribute("rx"),Wn=Tn.getAttribute("ry");(Kn||Wn)&&(Dn=zn=fg(Tn,Un,Qn))}}if(!zn){var Xn=HA(Hn).matrix;Dn=jA(Dn.x,Dn.y,Dn.width,Dn.height,Xn).aabox}}return Dn};function getStrokeOffsetForBBox(Tn){var Un=Tn.getAttribute("stroke-width");return isNaN(Un)||"none"===Tn.getAttribute("stroke")?0:Un/2}var _g=function getStrokedBBox(Tn,Un,Qn){if(!Tn||!Tn.length)return!1;var Dn;if(KA.each(Tn,(function(){Dn||this.parentNode&&(Dn=mg(this,Un,Qn))})),void 0===Dn)return null;var Hn=Dn.x+Dn.width,Gn=Dn.y+Dn.height,Vn=Dn.x,zn=Dn.y;if(1===Tn.length){var Kn=getStrokeOffsetForBBox(Tn[0]);Vn-=Kn,zn-=Kn,Hn+=Kn,Gn+=Kn}else KA.each(Tn,(function(Tn,Dn){var Kn=mg(Dn,Un,Qn);if(Kn){var Wn=getStrokeOffsetForBBox(Dn);Vn=Math.min(Vn,Kn.x-Wn),zn=Math.min(zn,Kn.y-Wn),1===Dn.nodeType&&(Hn=Math.max(Hn,Kn.x+Kn.width+Wn),Gn=Math.max(Gn,Kn.y+Kn.height+Wn))}}));return Dn.x=Vn,Dn.y=zn,Dn.width=Hn-Vn,Dn.height=Gn-zn,Dn},vg=function getVisibleElements(Tn){Tn||(Tn=KA(XA.getSVGContent()).children());var Un=[];return KA(Tn).children().each((function(Tn,Qn){Qn.getBBox&&Un.push(Qn)})),Un.reverse()},yg=function getStrokedBBoxDefaultVisible(Tn){return Tn||(Tn=vg()),_g(Tn,XA.addSVGElementFromJson,XA.pathActions)},bg=function getRotationAngleFromTransformList(Tn,Un){if(!Tn)return 0;for(var Qn=Tn.numberOfItems,Dn=0;Dn");var Un=Tn.shortcut||"";document.getElementById("cmenu_canvas").appendChild("\n
  • ").concat(Tn.label,"").concat(Un,"
  • "))}(Tn)}))};_export({target:"Object",stat:!0,forced:Object.assign!==ou},{assign:ou});var Pg="undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{};function defaultSetTimout(){throw new Error("setTimeout has not been defined")}function defaultClearTimeout(){throw new Error("clearTimeout has not been defined")}var Fg=defaultSetTimout,Ug=defaultClearTimeout;function runTimeout(Tn){if(Fg===setTimeout)return setTimeout(Tn,0);if((Fg===defaultSetTimout||!Fg)&&setTimeout)return Fg=setTimeout,setTimeout(Tn,0);try{return Fg(Tn,0)}catch(Un){try{return Fg.call(null,Tn,0)}catch(Un){return Fg.call(this,Tn,0)}}}"function"==typeof Pg.setTimeout&&(Fg=setTimeout),"function"==typeof Pg.clearTimeout&&(Ug=clearTimeout);var Ig,Rg=[],Mg=!1,Og=-1;function cleanUpNextTick(){Mg&&Ig&&(Mg=!1,Ig.length?Rg=Ig.concat(Rg):Og=-1,Rg.length&&drainQueue())}function drainQueue(){if(!Mg){var Tn=runTimeout(cleanUpNextTick);Mg=!0;for(var Un=Rg.length;Un;){for(Ig=Rg,Rg=[];++Og1)for(var Qn=1;Qn1?arguments[1]:void 0,3);Un=Un?Un.next:Qn.first;)for(Dn(Un.value,Un.key,this);Un&&Un.removed;)Un=Un.previous},has:function has(Tn){return!!getEntry(this,Tn)}}),redefineAll(Gn.prototype,Dn?{get:function get(Tn){var Un=getEntry(this,Tn);return Un&&Un.value},set:function set(Tn,Un){return define(this,0===Tn?0:Tn,Un)}}:{add:function add(Tn){return define(this,Tn=0===Tn?0:Tn,Tn)}}),Qn&&Zg(Gn.prototype,"size",{get:function(){return Vn(this).size}}),Gn},setStrong:function(Tn,Un,Qn){var Dn=Un+" Iterator",Hn=nf(Un),Gn=nf(Dn);defineIterator(Tn,Un,(function(Tn,Un){tf(this,{type:Dn,target:Tn,state:Hn(Tn),kind:Un,last:void 0})}),(function(){for(var Tn=Gn(this),Un=Tn.kind,Qn=Tn.last;Qn&&Qn.removed;)Qn=Qn.previous;return Tn.target&&(Tn.last=Qn=Qn?Qn.next:Tn.state.first)?"keys"==Un?{value:Qn.key,done:!1}:"values"==Un?{value:Qn.value,done:!1}:{value:[Qn.key,Qn.value],done:!1}:(Tn.target=void 0,{value:void 0,done:!0})}),Qn?"entries":"values",!Qn,!0),setSpecies(Un)}});_export({target:"Object",stat:!0,forced:!Qn,sham:!Qn},{defineProperties:_i});var rf=$g.onFreeze,of=Object.freeze,af=fails((function(){of(1)}));_export({target:"Object",stat:!0,forced:af,sham:!Jg},{freeze:function freeze(Tn){return of&&isObject(Tn)?of(rf(Tn)):Tn}});var sf=Zn.f,lf=fails((function(){sf(1)}));_export({target:"Object",stat:!0,forced:!Qn||lf,sham:!Qn},{getOwnPropertyDescriptor:function getOwnPropertyDescriptor(Tn,Un){return sf(toIndexedObject(Tn),Un)}}),_export({target:"Object",stat:!0,sham:!Qn},{getOwnPropertyDescriptors:function getOwnPropertyDescriptors(Tn){for(var Un,Qn,Dn=toIndexedObject(Tn),Hn=Zn.f,Gn=Or(Dn),Vn={},zn=0;Gn.length>zn;)void 0!==(Qn=Hn(Dn,Un=Gn[zn++]))&&createProperty(Vn,Un,Qn);return Vn}});var cf=getBuiltIn("Reflect","apply"),uf=Function.apply,df=!fails((function(){cf((function(){}))}));_export({target:"Reflect",stat:!0,forced:df},{apply:function apply(Tn,Un,Qn){return aFunction$1(Tn),anObject(Qn),cf?cf(Tn,Un,Qn):uf.call(Tn,Un,Qn)}});var hf=getBuiltIn("Reflect","construct"),pf=fails((function(){function F(){}return!(hf((function(){}),[],F)instanceof F)})),Af=!fails((function(){hf((function(){}))})),gf=pf||Af;_export({target:"Reflect",stat:!0,forced:gf,sham:gf},{construct:function construct(Tn,Un){aFunction$1(Tn),anObject(Un);var Qn=arguments.length<3?Tn:aFunction$1(arguments[2]);if(Af&&!pf)return hf(Tn,Un,Qn);if(Tn==Qn){switch(Un.length){case 0:return new Tn;case 1:return new Tn(Un[0]);case 2:return new Tn(Un[0],Un[1]);case 3:return new Tn(Un[0],Un[1],Un[2]);case 4:return new Tn(Un[0],Un[1],Un[2],Un[3])}var Dn=[null];return Dn.push.apply(Dn,Un),new(za.apply(Tn,Dn))}var Hn=Qn.prototype,Gn=wi(isObject(Hn)?Hn:Object.prototype),Vn=Function.apply.call(Tn,Gn,Un);return isObject(Vn)?Vn:Gn}});var ff=Zn.f;_export({target:"Reflect",stat:!0},{deleteProperty:function deleteProperty(Tn,Un){var Qn=ff(anObject(Tn),Un);return!(Qn&&!Qn.configurable)&&delete Tn[Un]}}),_export({target:"Reflect",stat:!0,sham:!Ba},{getPrototypeOf:function getPrototypeOf(Tn){return La(anObject(Tn))}});var mf=function _arrayWithHoles$1(Tn){if(Array.isArray(Tn))return Tn};var _f=function _iterableToArrayLimit$1(Tn,Un){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(Tn)){var Qn=[],Dn=!0,Hn=!1,Gn=void 0;try{for(var Vn,zn=Tn[Symbol.iterator]();!(Dn=(Vn=zn.next()).done)&&(Qn.push(Vn.value),!Un||Qn.length!==Un);Dn=!0);}catch(Tn){Hn=!0,Gn=Tn}finally{try{Dn||null==zn.return||zn.return()}finally{if(Hn)throw Gn}}return Qn}};var vf=function _arrayLikeToArray$1(Tn,Un){(null==Un||Un>Tn.length)&&(Un=Tn.length);for(var Qn=0,Dn=new Array(Un);Qn3&&(this.alpha=zn[3]),this.ok=!0}}this.r=this.r<0||isNaN(this.r)?0:this.r>255?255:this.r,this.g=this.g<0||isNaN(this.g)?0:this.g>255?255:this.g,this.b=this.b<0||isNaN(this.b)?0:this.b>255?255:this.b,this.alpha=this.alpha<0?0:this.alpha>1||isNaN(this.alpha)?1:this.alpha,this.toRGB=function(){return"rgb("+this.r+", "+this.g+", "+this.b+")"},this.toRGBA=function(){return"rgba("+this.r+", "+this.g+", "+this.b+", "+this.alpha+")"},this.toHex=function(){var Tn=this.r.toString(16),Un=this.g.toString(16),Qn=this.b.toString(16);return 1==Tn.length&&(Tn="0"+Tn),1==Un.length&&(Un="0"+Un),1==Qn.length&&(Qn="0"+Qn),"#"+Tn+Un+Qn},this.getHelpXML=function(){for(var Tn=new Array,Dn=0;Dn "+Wn.toRGB()+" -> "+Wn.toHex());Kn.appendChild(Xn),Kn.appendChild(Yn),zn.appendChild(Kn)}catch(Tn){}return zn}},Df=createCommonjsModule((function(Tn){function _typeof(Un){return"function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?Tn.exports=_typeof=function _typeof(Tn){return typeof Tn}:Tn.exports=_typeof=function _typeof(Tn){return Tn&&"function"==typeof Symbol&&Tn.constructor===Symbol&&Tn!==Symbol.prototype?"symbol":typeof Tn},_typeof(Un)}Tn.exports=_typeof}));var jf=function _assertThisInitialized$1(Tn){if(void 0===Tn)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return Tn};var Hf=function _possibleConstructorReturn$1(Tn,Un){return!Un||"object"!==Df(Un)&&"function"!=typeof Un?jf(Tn):Un},Gf=createCommonjsModule((function(Tn){function _getPrototypeOf(Un){return Tn.exports=_getPrototypeOf=Object.setPrototypeOf?Object.getPrototypeOf:function _getPrototypeOf(Tn){return Tn.__proto__||Object.getPrototypeOf(Tn)},_getPrototypeOf(Un)}Tn.exports=_getPrototypeOf})),Vf=createCommonjsModule((function(Tn){function _setPrototypeOf(Un,Qn){return Tn.exports=_setPrototypeOf=Object.setPrototypeOf||function _setPrototypeOf(Tn,Un){return Tn.__proto__=Un,Tn},_setPrototypeOf(Un,Qn)}Tn.exports=_setPrototypeOf}));var zf=function _inherits$1(Tn,Un){if("function"!=typeof Un&&null!==Un)throw new TypeError("Super expression must either be null or a function");Tn.prototype=Object.create(Un&&Un.prototype,{constructor:{value:Tn,writable:!0,configurable:!0}}),Un&&Vf(Tn,Un)};var Kf=function _arrayWithoutHoles$1(Tn){if(Array.isArray(Tn))return vf(Tn)};var qf=function _iterableToArray$1(Tn){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(Tn))return Array.from(Tn)};var Wf=function _nonIterableSpread$1(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")};var Xf=function _toConsumableArray$1(Tn){return Kf(Tn)||qf(Tn)||yf(Tn)||Wf()};_export({target:"Reflect",stat:!0},{get:function get$2(Tn,Un){var Qn,Dn,Hn=arguments.length<3?Tn:arguments[2];return anObject(Tn)===Hn?Tn[Un]:(Qn=Zn.f(Tn,Un))?has(Qn,"value")?Qn.value:void 0===Qn.get?void 0:Qn.get.call(Hn):isObject(Dn=La(Tn))?get$2(Dn,Un,Hn):void 0}});var Yf=function _superPropBase$1(Tn,Un){for(;!Object.prototype.hasOwnProperty.call(Tn,Un)&&null!==(Tn=Gf(Tn)););return Tn},Jf=createCommonjsModule((function(Tn){function _get(Un,Qn,Dn){return"undefined"!=typeof Reflect&&Reflect.get?Tn.exports=_get=Reflect.get:Tn.exports=_get=function _get(Tn,Un,Qn){var Dn=Yf(Tn,Un);if(Dn){var Hn=Object.getOwnPropertyDescriptor(Dn,Un);return Hn.get?Hn.get.call(Qn):Hn.value}},_get(Un,Qn,Dn||Un)}Tn.exports=_get}));function _typeof$1(Tn){return(_typeof$1="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function _typeof(Tn){return typeof Tn}:function _typeof(Tn){return Tn&&"function"==typeof Symbol&&Tn.constructor===Symbol&&Tn!==Symbol.prototype?"symbol":typeof Tn})(Tn)}var $f=[512,512,456,512,328,456,335,512,405,328,271,456,388,335,292,512,454,405,364,328,298,271,496,456,420,388,360,335,312,292,273,512,482,454,428,405,383,364,345,328,312,298,284,271,259,496,475,456,437,420,404,388,374,360,347,335,323,312,302,292,282,273,265,512,497,482,468,454,441,428,417,405,394,383,373,364,354,345,337,328,320,312,305,298,291,284,278,271,265,259,507,496,485,475,465,456,446,437,428,420,412,404,396,388,381,374,367,360,354,347,341,335,329,323,318,312,307,302,297,292,287,282,278,273,269,265,261,512,505,497,489,482,475,468,461,454,447,441,435,428,422,417,411,405,399,394,389,383,378,373,368,364,359,354,350,345,341,337,332,328,324,320,316,312,309,305,301,298,294,291,287,284,281,278,274,271,268,265,262,259,257,507,501,496,491,485,480,475,470,465,460,456,451,446,442,437,433,428,424,420,416,412,408,404,400,396,392,388,385,381,377,374,370,367,363,360,357,354,350,347,344,341,338,335,332,329,326,323,320,318,315,312,310,307,304,302,299,297,294,292,289,287,285,282,280,278,275,273,271,269,267,265,263,261,259],Zf=[9,11,12,13,13,14,14,15,15,15,15,16,16,16,16,17,17,17,17,17,17,17,18,18,18,18,18,18,18,18,18,19,19,19,19,19,19,19,19,19,19,19,19,19,19,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24];function processCanvasRGBA(Tn,Un,Qn,Dn,Hn,Gn){if(!(isNaN(Gn)||Gn<1)){Gn|=0;var Vn=function getImageDataFromCanvas(Tn,Un,Qn,Dn,Hn){if("string"==typeof Tn&&(Tn=document.getElementById(Tn)),!Tn||"object"!==_typeof$1(Tn)||!("getContext"in Tn))throw new TypeError("Expecting canvas with `getContext` method in processCanvasRGB(A) calls!");var Gn=Tn.getContext("2d");try{return Gn.getImageData(Un,Qn,Dn,Hn)}catch(Tn){throw new Error("unable to access image data: "+Tn)}}(Tn,Un,Qn,Dn,Hn);Vn=function processImageDataRGBA(Tn,Un,Qn,Dn,Hn,Gn){for(var Vn,zn=Tn.data,Kn=2*Gn+1,Wn=Dn-1,Xn=Hn-1,Yn=Gn+1,Jn=Yn*(Yn+1)/2,$n=new em,Zn=$n,er=1;er>ar;if(zn[ir+3]=Fr,0!==Fr){var Ur=255/Fr;zn[ir]=(br*or>>ar)*Ur,zn[ir+1]=(wr*or>>ar)*Ur,zn[ir+2]=(Sr*or>>ar)*Ur}else zn[ir]=zn[ir+1]=zn[ir+2]=0;br-=mr,wr-=_r,Sr-=vr,xr-=yr,mr-=tr.r,_r-=tr.g,vr-=tr.b,yr-=tr.a;var Ir=Pr+Gn+1;Ir=rr+(Ir>ar,zr>0?(zr=255/zr,zn[ui]=(Yr*or>>ar)*zr,zn[ui+1]=(Jr*or>>ar)*zr,zn[ui+2]=($r*or>>ar)*zr):zn[ui]=zn[ui+1]=zn[ui+2]=0,Yr-=Kr,Jr-=qr,$r-=Wr,Zr-=Xr,Kr-=tr.r,qr-=tr.g,Wr-=tr.b,Xr-=tr.a,ui=jr+((ui=li+Yn)~\.\[:]+)/g,im=/(\.[^\s\+>~\.\[:]+)/g,om=/(::[^\s\+>~\.\[:]+|:first-line|:first-letter|:before|:after)/gi,am=/(:[\w-]+\([^\)]*\))/gi,sm=/(:[^\s\+>~\.\[:]+)/g,lm=/([^\s\+>~\.\[:]+)/g;function findSelectorMatch(Tn,Un){var Qn=Tn.match(Un);return Qn?[Tn.replace(Un," "),Qn.length]:[Tn,0]}function getSelectorSpecificity(Tn){var Un=[0,0,0],Qn=Tn.replace(/:not\(([^\)]*)\)/g," $1 ").replace(/{[\s\S]*/gm," "),Dn=0,Hn=findSelectorMatch(Qn,nm),Gn=wf(Hn,2);Qn=Gn[0],Dn=Gn[1],Un[1]+=Dn;var Vn=findSelectorMatch(Qn,rm),zn=wf(Vn,2);Qn=zn[0],Dn=zn[1],Un[0]+=Dn;var Kn=findSelectorMatch(Qn,im),Wn=wf(Kn,2);Qn=Wn[0],Dn=Wn[1],Un[1]+=Dn;var Xn=findSelectorMatch(Qn,om),Yn=wf(Xn,2);Qn=Yn[0],Dn=Yn[1],Un[2]+=Dn;var Jn=findSelectorMatch(Qn,am),$n=wf(Jn,2);Qn=$n[0],Dn=$n[1],Un[1]+=Dn;var Zn=findSelectorMatch(Qn,sm),er=wf(Zn,2);Qn=er[0],Dn=er[1],Un[1]+=Dn;var tr=findSelectorMatch(Qn=Qn.replace(/[\*\s\+>~]/g," ").replace(/[#\.]/g," "),lm),nr=wf(tr,2);return Qn=nr[0],Dn=nr[1],Un[2]+=Dn,Un.join("")}function vectorMagnitude(Tn){return Math.sqrt(Math.pow(Tn[0],2)+Math.pow(Tn[1],2))}function vectorsRatio(Tn,Un){return(Tn[0]*Un[0]+Tn[1]*Un[1])/(vectorMagnitude(Tn)*vectorMagnitude(Un))}function vectorsAngle(Tn,Un){return(Tn[0]*Un[1]=0;--Hn){var Gn=this.tryEntries[Hn],Vn=Gn.completion;if("root"===Gn.tryLoc)return handle("end");if(Gn.tryLoc<=this.prev){var zn=Dn.call(Gn,"catchLoc"),Kn=Dn.call(Gn,"finallyLoc");if(zn&&Kn){if(this.prev=0;--Qn){var Hn=this.tryEntries[Qn];if(Hn.tryLoc<=this.prev&&Dn.call(Hn,"finallyLoc")&&this.prev=0;--Un){var Qn=this.tryEntries[Un];if(Qn.finallyLoc===Tn)return this.complete(Qn.completion,Qn.afterLoc),resetTryEntry(Qn),Jn}},catch:function _catch(Tn){for(var Un=this.tryEntries.length-1;Un>=0;--Un){var Qn=this.tryEntries[Un];if(Qn.tryLoc===Tn){var Dn=Qn.completion;if("throw"===Dn.type){var Hn=Dn.arg;resetTryEntry(Qn)}return Hn}}throw new Error("illegal catch attempt")},delegateYield:function delegateYield(Tn,Qn,Dn){return this.delegate={iterator:values(Tn),resultName:Qn,nextLoc:Dn},"next"===this.method&&(this.arg=Un),Jn}},Tn}(Tn.exports);try{regeneratorRuntime=Un}catch(Tn){Function("r","regeneratorRuntime = r")(Un)}}));var cm=function(){function Property(Tn,Un,Qn){kf(this,Property),this.document=Tn,this.name=Un,this.value=Qn,this.isNormalizedColor=!1}return Bf(Property,[{key:"hasValue",value:function hasValue(){var Tn=this.value;return null!==Tn&&""!==Tn&&0!==Tn&&void 0!==Tn}},{key:"isString",value:function isString(Tn){var Un=this.value,Qn="string"==typeof Un;return Qn&&Tn?Tn.test(Un):Qn}},{key:"isUrlDefinition",value:function isUrlDefinition(){return this.isString(/^url\(/)}},{key:"isPixels",value:function isPixels(){if(!this.hasValue())return!1;var Tn=this.getString();switch(!0){case/px$/.test(Tn):case/^[0-9]+$/.test(Tn):return!0;default:return!1}}},{key:"setValue",value:function setValue(Tn){return this.value=Tn,this}},{key:"getValue",value:function getValue(Tn){return void 0===Tn||this.hasValue()?this.value:Tn}},{key:"getNumber",value:function getNumber(Tn){if(!this.hasValue())return void 0===Tn?0:parseFloat(Tn);var Un=this.value,Qn=parseFloat(Un);return this.isString(/%$/)&&(Qn/=100),Qn}},{key:"getString",value:function getString(Tn){return void 0===Tn||this.hasValue()?void 0===this.value?"":String(this.value):String(Tn)}},{key:"getColor",value:function getColor(Tn){var Un=this.getString(Tn);return this.isNormalizedColor||(this.isNormalizedColor=!0,Un=normalizeColor(Un),this.value=Un),Un}},{key:"getDpi",value:function getDpi(){return 96}},{key:"getRem",value:function getRem(){return this.document.rootEmSize}},{key:"getEm",value:function getEm(){return this.document.emSize}},{key:"getUnits",value:function getUnits(){return this.getString().replace(/[0-9\.\-]/g,"")}},{key:"getPixels",value:function getPixels(Tn){var Un=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(!this.hasValue())return 0;var Qn="boolean"==typeof Tn?[void 0,Tn]:[Tn],Dn=wf(Qn,2),Hn=Dn[0],Gn=Dn[1],Vn=this.document.screen.viewPort;switch(!0){case this.isString(/vmin$/):return this.getNumber()/100*Math.min(Vn.computeSize("x"),Vn.computeSize("y"));case this.isString(/vmax$/):return this.getNumber()/100*Math.max(Vn.computeSize("x"),Vn.computeSize("y"));case this.isString(/vw$/):return this.getNumber()/100*Vn.computeSize("x");case this.isString(/vh$/):return this.getNumber()/100*Vn.computeSize("y");case this.isString(/rem$/):return this.getNumber()*this.getRem();case this.isString(/em$/):return this.getNumber()*this.getEm();case this.isString(/ex$/):return this.getNumber()*this.getEm()/2;case this.isString(/px$/):return this.getNumber();case this.isString(/pt$/):return this.getNumber()*this.getDpi()*(1/72);case this.isString(/pc$/):return 15*this.getNumber();case this.isString(/cm$/):return this.getNumber()*this.getDpi()/2.54;case this.isString(/mm$/):return this.getNumber()*this.getDpi()/25.4;case this.isString(/in$/):return this.getNumber()*this.getDpi();case this.isString(/%$/)&&Gn:return this.getNumber()*this.getEm();case this.isString(/%$/):return this.getNumber()*Vn.computeSize(Hn);default:var zn=this.getNumber();return Un&&zn<1?zn*Vn.computeSize(Hn):zn}}},{key:"getMilliseconds",value:function getMilliseconds(){return this.hasValue()?this.isString(/ms$/)?this.getNumber():1e3*this.getNumber():0}},{key:"getRadians",value:function getRadians(){if(!this.hasValue())return 0;switch(!0){case this.isString(/deg$/):return this.getNumber()*(Math.PI/180);case this.isString(/grad$/):return this.getNumber()*(Math.PI/200);case this.isString(/rad$/):return this.getNumber();default:return this.getNumber()*(Math.PI/180)}}},{key:"getDefinition",value:function getDefinition(){var Tn=this.getString(),Un=Tn.match(/#([^\)'"]+)/);return Un&&(Un=Un[1]),Un||(Un=Tn),this.document.definitions[Un]}},{key:"getFillStyleDefinition",value:function getFillStyleDefinition(Tn,Un){var Qn=this.getDefinition();if(!Qn)return null;if("function"==typeof Qn.createGradient)return Qn.createGradient(this.document.ctx,Tn,Un);if("function"==typeof Qn.createPattern){if(Qn.getHrefAttribute().hasValue()){var Dn=Qn.getAttribute("patternTransform");Qn=Qn.getHrefAttribute().getDefinition(),Dn.hasValue()&&Qn.getAttribute("patternTransform",!0).setValue(Dn.value)}return Qn.createPattern(this.document.ctx,Tn,Un)}return null}},{key:"getTextBaseline",value:function getTextBaseline(){return this.hasValue()?Property.textBaselineMapping[this.getString()]:null}},{key:"addOpacity",value:function addOpacity(Tn){for(var Un=this.getColor(),Qn=Un.length,Dn=0,Hn=0;Hn1&&void 0!==arguments[1]?arguments[1]:0,Qn=toNumbers(Tn),Dn=wf(Qn,2),Hn=Dn[0],Gn=void 0===Hn?Un:Hn,Vn=Dn[1],zn=void 0===Vn?Un:Vn;return new Point(Gn,zn)}},{key:"parseScale",value:function parseScale(Tn){var Un=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1,Qn=toNumbers(Tn),Dn=wf(Qn,2),Hn=Dn[0],Gn=void 0===Hn?Un:Hn,Vn=Dn[1],zn=void 0===Vn?Gn:Vn;return new Point(Gn,zn)}},{key:"parsePath",value:function parsePath(Tn){for(var Un=toNumbers(Tn),Qn=Un.length,Dn=[],Hn=0;Hn0}},{key:"runEvents",value:function runEvents(){if(this.working){var Tn=this.screen,Un=this.events,Qn=this.eventElements,Dn=Tn.ctx.canvas.style;Dn&&(Dn.cursor=""),Un.forEach((function(Tn,Un){for(var Dn=Tn.run,Hn=Qn[Un];Hn;)Dn(Hn),Hn=Hn.parent})),this.events=[],this.eventElements=[]}}},{key:"checkPath",value:function checkPath(Tn,Un){if(this.working&&Un){var Qn=this.events,Dn=this.eventElements;Qn.forEach((function(Qn,Hn){var Gn=Qn.x,Vn=Qn.y;!Dn[Hn]&&Un.isPointInPath&&Un.isPointInPath(Gn,Vn)&&(Dn[Hn]=Tn)}))}}},{key:"checkBoundingBox",value:function checkBoundingBox(Tn,Un){if(this.working&&Un){var Qn=this.events,Dn=this.eventElements;Qn.forEach((function(Qn,Hn){var Gn=Qn.x,Vn=Qn.y;!Dn[Hn]&&Un.isPointInBox(Gn,Vn)&&(Dn[Hn]=Tn)}))}}},{key:"mapXY",value:function mapXY(Tn,Un){for(var Qn=this.screen,Dn=Qn.window,Hn=Qn.ctx,Gn=new dm(Tn,Un),Vn=Hn.canvas;Vn;)Gn.x-=Vn.offsetLeft,Gn.y-=Vn.offsetTop,Vn=Vn.offsetParent;return Dn.scrollX&&(Gn.x+=Dn.scrollX),Dn.scrollY&&(Gn.y+=Dn.scrollY),Gn}},{key:"onClick",value:function onClick(Tn){var Un=this.mapXY((Tn||event).clientX,(Tn||event).clientY),Qn=Un.x,Dn=Un.y;this.events.push({type:"onclick",x:Qn,y:Dn,run:function run(Tn){Tn.onClick&&Tn.onClick()}})}},{key:"onMouseMove",value:function onMouseMove(Tn){var Un=this.mapXY((Tn||event).clientX,(Tn||event).clientY),Qn=Un.x,Dn=Un.y;this.events.push({type:"onmousemove",x:Qn,y:Dn,run:function run(Tn){Tn.onMouseMove&&Tn.onMouseMove()}})}}]),Mouse}(),pm="undefined"!=typeof window?window:null,Am="undefined"!=typeof fetch?fetch.bind(void 0):null,gm=function(){function Screen(Tn){var Un=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},Qn=Un.fetch,Dn=void 0===Qn?Am:Qn,Hn=Un.window,Gn=void 0===Hn?pm:Hn;kf(this,Screen),this.ctx=Tn,this.FRAMERATE=30,this.MAX_VIRTUAL_PIXELS=3e4,this.CLIENT_WIDTH=800,this.CLIENT_HEIGHT=600,this.viewPort=new um,this.mouse=new hm(this),this.animations=[],this.waits=[],this.frameDuration=0,this.isReadyLock=!1,this.isFirstRender=!0,this.intervalId=null,this.window=Gn,this.fetch=Dn}return Bf(Screen,[{key:"wait",value:function wait(Tn){this.waits.push(Tn)}},{key:"ready",value:function ready(){return this.readyPromise?this.readyPromise:Promise.resolve()}},{key:"isReady",value:function isReady(){if(this.isReadyLock)return!0;var Tn=this.waits.every((function(Tn){return Tn()}));return Tn&&(this.waits=[],this.resolveReady&&this.resolveReady()),this.isReadyLock=Tn,Tn}},{key:"setDefaults",value:function setDefaults(Tn){Tn.strokeStyle="rgba(0,0,0,0)",Tn.lineCap="butt",Tn.lineJoin="miter",Tn.miterLimit=4}},{key:"setViewBox",value:function setViewBox(Tn){var Un=Tn.document,Qn=Tn.ctx,Dn=Tn.aspectRatio,Hn=Tn.width,Gn=Tn.desiredWidth,Vn=Tn.height,zn=Tn.desiredHeight,Kn=Tn.minX,Wn=void 0===Kn?0:Kn,Xn=Tn.minY,Yn=void 0===Xn?0:Xn,Jn=Tn.refX,$n=Tn.refY,Zn=Tn.clip,er=void 0!==Zn&&Zn,tr=Tn.clipX,nr=void 0===tr?0:tr,rr=Tn.clipY,ir=void 0===rr?0:rr,or=compressSpaces(Dn).replace(/^defer\s/,"").split(" "),ar=wf(or,2),sr=ar[0]||"xMidYMid",lr=ar[1]||"meet",cr=Hn/Gn,ur=Vn/zn,dr=Math.min(cr,ur),hr=Math.max(cr,ur),pr=Gn,Ar=zn;"meet"===lr&&(pr*=dr,Ar*=dr),"slice"===lr&&(pr*=hr,Ar*=hr);var gr=new cm(Un,"refX",Jn),fr=new cm(Un,"refY",$n),mr=gr.hasValue()&&fr.hasValue();if(mr&&Qn.translate(-dr*gr.getPixels("x"),-dr*fr.getPixels("y")),er){var _r=dr*nr,vr=dr*ir;Qn.beginPath(),Qn.moveTo(_r,vr),Qn.lineTo(Hn,vr),Qn.lineTo(Hn,Vn),Qn.lineTo(_r,Vn),Qn.closePath(),Qn.clip()}if(!mr){var yr="meet"===lr&&dr===ur,br="slice"===lr&&hr===ur,wr="meet"===lr&&dr===cr,Sr="slice"===lr&&hr===cr;/^xMid/.test(sr)&&(yr||br)&&Qn.translate(Hn/2-pr/2,0),/YMid$/.test(sr)&&(wr||Sr)&&Qn.translate(0,Vn/2-Ar/2),/^xMax/.test(sr)&&(yr||br)&&Qn.translate(Hn-pr,0),/YMax$/.test(sr)&&(wr||Sr)&&Qn.translate(0,Vn-Ar)}switch(!0){case"none"===sr:Qn.scale(cr,ur);break;case"meet"===lr:Qn.scale(dr,dr);break;case"slice"===lr:Qn.scale(hr,hr)}Qn.translate(-Wn,-Yn)}},{key:"start",value:function start(Tn){var Un=this,Qn=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},Dn=Qn.enableRedraw,Hn=void 0!==Dn&&Dn,Gn=Qn.ignoreMouse,Vn=void 0!==Gn&&Gn,zn=Qn.ignoreAnimation,Kn=void 0!==zn&&zn,Wn=Qn.ignoreDimensions,Xn=void 0!==Wn&&Wn,Yn=Qn.ignoreClear,Jn=void 0!==Yn&&Yn,$n=Qn.forceRedraw,Zn=Qn.scaleWidth,er=Qn.scaleHeight,tr=Qn.offsetX,nr=Qn.offsetY,rr=this.FRAMERATE,ir=this.mouse,or=1e3/rr;if(this.frameDuration=or,this.readyPromise=new Promise((function(Tn){Un.resolveReady=Tn})),this.isReady()&&this.render(Tn,Xn,Jn,Zn,er,tr,nr),Hn){var ar=Date.now(),sr=ar,lr=0,cr=function tick(){ar=Date.now(),(lr=ar-sr)>=or&&(sr=ar-lr%or,Un.shouldUpdate(Kn,$n)&&(Un.render(Tn,Xn,Jn,Zn,er,tr,nr),ir.runEvents())),Un.intervalId=Of(tick)};Vn||ir.start(),this.intervalId=Of(cr)}}},{key:"stop",value:function stop(){this.intervalId&&(Of.cancel(this.intervalId),this.intervalId=null),this.mouse.stop()}},{key:"shouldUpdate",value:function shouldUpdate(Tn,Un){if(!Tn){var Qn=this.frameDuration,shouldUpdate=this.animations.reduce((function(Tn,Un){return Un.update(Qn)||Tn}),!1);if(shouldUpdate)return!0}return!("function"!=typeof Un||!Un())||(!(this.isReadyLock||!this.isReady())||!!this.mouse.hasEvents())}},{key:"render",value:function render(Tn,Un,Qn,Dn,Hn,Gn,Vn){var zn=this.CLIENT_WIDTH,Kn=this.CLIENT_HEIGHT,Wn=this.viewPort,Xn=this.ctx,Yn=this.isFirstRender,Jn=Xn.canvas;Wn.clear(),Jn.width&&Jn.height?Wn.setCurrent(Jn.width,Jn.height):Wn.setCurrent(zn,Kn);var $n=Tn.getStyle("width"),Zn=Tn.getStyle("height");!Un&&(Yn||"number"!=typeof Dn&&"number"!=typeof Hn)&&($n.hasValue()&&(Jn.width=$n.getPixels("x"),Jn.style&&(Jn.style.width="".concat(Jn.width,"px"))),Zn.hasValue()&&(Jn.height=Zn.getPixels("y"),Jn.style&&(Jn.style.height="".concat(Jn.height,"px"))));var er=Jn.clientWidth||Jn.width,tr=Jn.clientHeight||Jn.height;if(Un&&$n.hasValue()&&Zn.hasValue()&&(er=$n.getPixels("x"),tr=Zn.getPixels("y")),Wn.setCurrent(er,tr),"number"==typeof Gn&&Tn.getAttribute("x",!0).setValue(Gn),"number"==typeof Vn&&Tn.getAttribute("y",!0).setValue(Vn),"number"==typeof Dn||"number"==typeof Hn){var nr=toNumbers(Tn.getAttribute("viewBox").getString()),rr=0,ir=0;if("number"==typeof Dn){var or=Tn.getStyle("width");or.hasValue()?rr=or.getPixels("x")/Dn:isNaN(nr[2])||(rr=nr[2]/Dn)}if("number"==typeof Hn){var ar=Tn.getStyle("height");ar.hasValue()?ir=ar.getPixels("y")/Hn:isNaN(nr[3])||(ir=nr[3]/Hn)}rr||(rr=ir),ir||(ir=rr),Tn.getAttribute("width",!0).setValue(Dn),Tn.getAttribute("height",!0).setValue(Hn);var sr=Tn.getStyle("transform",!0,!0);sr.setValue("".concat(sr.getString()," scale(").concat(1/rr,", ").concat(1/ir,")"))}Qn||Xn.clearRect(0,0,er,tr),Tn.render(Xn),Yn&&(this.isFirstRender=!1)}}]),Screen}();gm.defaultWindow=pm,gm.defaultFetch=Am;var fm=gm.defaultFetch,mm="undefined"!=typeof DOMParser?DOMParser:null,vm=function(){function Parser(){var Tn=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},Un=Tn.fetch,Qn=void 0===Un?fm:Un,Dn=Tn.DOMParser,Hn=void 0===Dn?mm:Dn;kf(this,Parser),this.fetch=Qn,this.DOMParser=Hn}var Tn,Un;return Bf(Parser,[{key:"parse",value:(Un=xf(Sf.mark((function _callee(Tn){return Sf.wrap((function _callee$(Un){for(;;)switch(Un.prev=Un.next){case 0:if(!/^2&&void 0!==arguments[2]?arguments[2]:[];kf(this,Rotate),this.type="rotate",this.angle=null,this.cx=0,this.cy=0;var Dn=toNumbers(Un);this.angle=new cm(Tn,"angle",Dn[0]),this.cx=(Dn[1]||0)+(Qn[0]||0),this.cy=(Dn[2]||0)+(Qn[1]||0)}return Bf(Rotate,[{key:"apply",value:function apply(Tn){var Un=this.cx,Qn=this.cy,Dn=this.angle;Tn.translate(Un,Qn),Tn.rotate(Dn.getRadians()),Tn.translate(-Un,-Qn)}},{key:"unapply",value:function unapply(Tn){var Un=this.cx,Qn=this.cy,Dn=this.angle;Tn.translate(Un,Qn),Tn.rotate(-1*Dn.getRadians()),Tn.translate(-Un,-Qn)}},{key:"applyToPoint",value:function applyToPoint(Tn){var Un=this.cx,Qn=this.cy,Dn=this.angle.getRadians();Tn.applyTransform([1,0,0,1,Un||0,Qn||0]),Tn.applyTransform([Math.cos(Dn),Math.sin(Dn),-Math.sin(Dn),Math.cos(Dn),0,0]),Tn.applyTransform([1,0,0,1,-Un||0,-Qn||0])}}]),Rotate}(),Sm=function(){function Scale(Tn,Un){kf(this,Scale),this.type="scale",this.scale=null;var Qn=dm.parseScale(Un);0!==Qn.x&&0!==Qn.y||(Qn.x=1e-8,Qn.y=1e-8),this.scale=Qn}return Bf(Scale,[{key:"apply",value:function apply(Tn){var Un=this.scale,Qn=Un.x,Dn=Un.y;Tn.scale(Qn,Dn||Qn)}},{key:"unapply",value:function unapply(Tn){var Un=this.scale,Qn=Un.x,Dn=Un.y;Tn.scale(1/Qn,1/Dn||Qn)}},{key:"applyToPoint",value:function applyToPoint(Tn){var Un=this.scale,Qn=Un.x,Dn=Un.y;Tn.applyTransform([Qn||0,0,0,Dn||0,0,0])}}]),Scale}(),xm=function(){function Matrix(Tn,Un){kf(this,Matrix),this.type="matrix",this.matrix=[],this.matrix=toNumbers(Un)}return Bf(Matrix,[{key:"apply",value:function apply(Tn){var Un=this.matrix;Tn.transform(Un[0],Un[1],Un[2],Un[3],Un[4],Un[5])}},{key:"unapply",value:function unapply(Tn){var Un=this.matrix,Qn=Un[0],Dn=Un[2],Hn=Un[4],Gn=Un[1],Vn=Un[3],zn=Un[5],Kn=1/(Qn*(1*Vn-0*zn)-Dn*(1*Gn-0*zn)+Hn*(0*Gn-0*Vn));Tn.transform(Kn*(1*Vn-0*zn),Kn*(0*zn-1*Gn),Kn*(0*Hn-1*Dn),Kn*(1*Qn-0*Hn),Kn*(Dn*zn-Hn*Vn),Kn*(Hn*Gn-Qn*zn))}},{key:"applyToPoint",value:function applyToPoint(Tn){Tn.applyTransform(this.matrix)}}]),Matrix}();function _isNativeReflectConstruct$1(){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(Tn){return!1}}var Cm=function(Tn){zf(Skew,xm);var Un=function _createSuper$1(Tn){return function(){var Un,Qn=Gf(Tn);if(_isNativeReflectConstruct$1()){var Dn=Gf(this).constructor;Un=Reflect.construct(Qn,arguments,Dn)}else Un=Qn.apply(this,arguments);return Hf(this,Un)}}(Skew);function Skew(Tn,Qn){var Dn;return kf(this,Skew),(Dn=Un.call(this,Tn,Qn)).type="skew",Dn.angle=null,Dn.angle=new cm(Tn,"angle",Qn),Dn}return Skew}();function _isNativeReflectConstruct$1$1(){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(Tn){return!1}}var km=function(Tn){zf(SkewX,Cm);var Un=function _createSuper$1$1(Tn){return function(){var Un,Qn=Gf(Tn);if(_isNativeReflectConstruct$1$1()){var Dn=Gf(this).constructor;Un=Reflect.construct(Qn,arguments,Dn)}else Un=Qn.apply(this,arguments);return Hf(this,Un)}}(SkewX);function SkewX(Tn,Qn){var Dn;return kf(this,SkewX),(Dn=Un.call(this,Tn,Qn)).type="skewX",Dn.matrix=[1,0,Math.tan(Dn.angle.getRadians()),1,0,0],Dn}return SkewX}();function _isNativeReflectConstruct$2(){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(Tn){return!1}}var Bm=function(Tn){zf(SkewY,Cm);var Un=function _createSuper$2(Tn){return function(){var Un,Qn=Gf(Tn);if(_isNativeReflectConstruct$2()){var Dn=Gf(this).constructor;Un=Reflect.construct(Qn,arguments,Dn)}else Un=Qn.apply(this,arguments);return Hf(this,Un)}}(SkewY);function SkewY(Tn,Qn){var Dn;return kf(this,SkewY),(Dn=Un.call(this,Tn,Qn)).type="skewY",Dn.matrix=[1,Math.tan(Dn.angle.getRadians()),0,1,0,0],Dn}return SkewY}();var Em=function(){function Transform(Tn,Un,Qn){var Dn=this;kf(this,Transform),this.document=Tn,this.transforms=[];var Hn=function parseTransforms(Tn){return compressSpaces(Tn).trim().replace(/\)([a-zA-Z])/g,") $1").replace(/\)(\s?,\s?)/g,") ").split(/\s(?=[a-z])/)}(Un),Gn=Qn?toNumbers(Qn):[];Hn.forEach((function(Tn){if("none"!==Tn){var Un=function parseTransform(Tn){var Un=Tn.split("("),Qn=wf(Un,2),Dn=Qn[0],Hn=Qn[1];return[Dn.trim(),Hn.trim().replace(")","")]}(Tn),Qn=wf(Un,2),Hn=Qn[0],Vn=Qn[1],zn=Transform.transformTypes[Hn];void 0!==zn&&Dn.transforms.push(new zn(Dn.document,Vn,Gn))}}))}return Bf(Transform,[{key:"apply",value:function apply(Tn){for(var Un=this.transforms,Qn=Un.length,Dn=0;Dn=0;Qn--)Un[Qn].unapply(Tn)}},{key:"applyToPoint",value:function applyToPoint(Tn){for(var Un=this.transforms,Qn=Un.length,Dn=0;Dn2&&void 0!==arguments[2]&&arguments[2];if(kf(this,Element),this.document=Tn,this.node=Un,this.captureTextNodes=Dn,this.attributes={},this.styles={},this.stylesSpecificity={},this.animationFrozen=!1,this.animationFrozenValue="",this.parent=null,this.children=[],Un&&1===Un.nodeType){if(Array.from(Un.attributes).forEach((function(Un){var Dn=normalizeAttributeName(Un.nodeName);Qn.attributes[Dn]=new cm(Tn,Dn,Un.value)})),this.addStylesFromStyleDefinition(),this.getAttribute("style").hasValue()){var Hn=this.getAttribute("style").getString().split(";").map((function(Tn){return Tn.trim()}));Hn.forEach((function(Un){if(Un){var Dn=Un.split(":").map((function(Tn){return Tn.trim()})),Hn=wf(Dn,2),Gn=Hn[0],Vn=Hn[1];Qn.styles[Gn]=new cm(Tn,Gn,Vn)}}))}var Gn=Tn.definitions,Vn=this.getAttribute("id");Vn.hasValue()&&(Gn[Vn.getValue()]||(Gn[Vn.getValue()]=this)),Array.from(Un.childNodes).forEach((function(Un){if(1===Un.nodeType)Qn.addChild(Un);else if(Dn&&(3===Un.nodeType||4===Un.nodeType)){var Hn=Tn.createTextNode(Un);Hn.getText().length>0&&Qn.addChild(Hn)}}))}}return Bf(Element,[{key:"getAttribute",value:function getAttribute(Tn){var Un=arguments.length>1&&void 0!==arguments[1]&&arguments[1],Qn=this.attributes[Tn];if(!Qn&&Un){var Dn=new cm(this.document,Tn,"");return this.attributes[Tn]=Dn,Dn}return Qn||cm.empty(this.document)}},{key:"getHrefAttribute",value:function getHrefAttribute(){for(var Tn in this.attributes)if("href"===Tn||/:href$/.test(Tn))return this.attributes[Tn];return cm.empty(this.document)}},{key:"getStyle",value:function getStyle(Tn){var Un=arguments.length>1&&void 0!==arguments[1]&&arguments[1],Qn=arguments.length>2&&void 0!==arguments[2]&&arguments[2],Dn=this.styles[Tn];if(Dn)return Dn;var Hn=this.getAttribute(Tn);if(Hn&&Hn.hasValue())return this.styles[Tn]=Hn,Hn;if(!Qn){var Gn=this.parent;if(Gn){var Vn=Gn.getStyle(Tn);if(Vn&&Vn.hasValue())return Vn}}if(Un){var zn=new cm(this.document,Tn,"");return this.styles[Tn]=zn,zn}return Dn||cm.empty(this.document)}},{key:"render",value:function render(Tn){if("none"!==this.getStyle("display").getString()&&"hidden"!==this.getStyle("visibility").getString()){if(Tn.save(),this.getStyle("mask").hasValue()){var Un=this.getStyle("mask").getDefinition();Un&&(this.applyEffects(Tn),Un.apply(Tn,this))}else if("none"!==this.getStyle("filter").getValue("none")){var Qn=this.getStyle("filter").getDefinition();Qn&&(this.applyEffects(Tn),Qn.apply(Tn,this))}else this.setContext(Tn),this.renderChildren(Tn),this.clearContext(Tn);Tn.restore()}}},{key:"setContext",value:function setContext(Tn){}},{key:"applyEffects",value:function applyEffects(Tn){var Un=Em.fromElement(this.document,this);Un&&Un.apply(Tn);var Qn=this.getStyle("clip-path",!1,!0);if(Qn.hasValue()){var Dn=Qn.getDefinition();Dn&&Dn.apply(Tn)}}},{key:"clearContext",value:function clearContext(Tn){}},{key:"renderChildren",value:function renderChildren(Tn){this.children.forEach((function(Un){Un.render(Tn)}))}},{key:"addChild",value:function addChild(Tn){var Un=Tn instanceof Element?Tn:this.document.createElement(Tn);Un.parent=this,Element.ignoreChildTypes.includes(Un.type)||this.children.push(Un)}},{key:"matchesSelector",value:function matchesSelector(Tn){var Un=this.node;if("function"==typeof Un.matches)return Un.matches(Tn);var Qn=Un.getAttribute("class");return!(!Qn||""===Qn)&&Qn.split(" ").some((function(Un){if(".".concat(Un)===Tn)return!0}))}},{key:"addStylesFromStyleDefinition",value:function addStylesFromStyleDefinition(){var Tn=this.document,Un=Tn.styles,Qn=Tn.stylesSpecificity;for(var Dn in Un)if("@"!==Dn[0]&&this.matchesSelector(Dn)){var Hn=Un[Dn],Gn=Qn[Dn];if(Hn)for(var Vn in Hn){var zn=this.stylesSpecificity[Vn];void 0===zn&&(zn="000"),Gn>=zn&&(this.styles[Vn]=Hn[Vn],this.stylesSpecificity[Vn]=Gn)}}}},{key:"removeStyles",value:function removeStyles(Tn,Un){return Un.reduce((function(Un,Qn){var Dn=Tn.getStyle(Qn);if(!Dn.hasValue())return Un;var Hn=Dn.getString();return Dn.setValue(""),[].concat(Xf(Un),[[Qn,Hn]])}),[])}},{key:"restoreStyles",value:function restoreStyles(Tn,Un){Un.forEach((function(Un){var Qn=wf(Un,2),Dn=Qn[0],Hn=Qn[1];Tn.getStyle(Dn,!0).setValue(Hn)}))}}]),Element}();function _isNativeReflectConstruct$3(){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(Tn){return!1}}Nm.ignoreChildTypes=["title"];var Lm=function(Tn){zf(UnknownElement,Nm);var Un=function _createSuper$3(Tn){return function(){var Un,Qn=Gf(Tn);if(_isNativeReflectConstruct$3()){var Dn=Gf(this).constructor;Un=Reflect.construct(Qn,arguments,Dn)}else Un=Qn.apply(this,arguments);return Hf(this,Un)}}(UnknownElement);function UnknownElement(Tn,Qn,Dn){return kf(this,UnknownElement),Un.call(this,Tn,Qn,Dn)}return UnknownElement}();function wrapFontFamily(Tn){var Un=Tn.trim();return/^('|")/.test(Un)?Un:'"'.concat(Un,'"')}function prepareFontStyle(Tn){if(!Tn)return"";var Un=Tn.trim().toLowerCase();switch(Un){case"normal":case"italic":case"oblique":case"inherit":case"initial":case"unset":return Un;default:return/^oblique\s+(-|)\d+deg$/.test(Un)?Un:""}}function prepareFontWeight(Tn){if(!Tn)return"";var Un=Tn.trim().toLowerCase();switch(Un){case"normal":case"bold":case"lighter":case"bolder":case"inherit":case"initial":case"unset":return Un;default:return/^[\d.]+$/.test(Un)?Un:""}}var Tm=function(){function Font(Tn,Un,Qn,Dn,Hn,Gn){kf(this,Font);var Vn=Gn?"string"==typeof Gn?Font.parse(Gn):Gn:{};this.fontFamily=Hn||Vn.fontFamily,this.fontSize=Dn||Vn.fontSize,this.fontStyle=Tn||Vn.fontStyle,this.fontWeight=Qn||Vn.fontWeight,this.fontVariant=Un||Vn.fontVariant}return Bf(Font,[{key:"toString",value:function toString(){return[prepareFontStyle(this.fontStyle),this.fontVariant,prepareFontWeight(this.fontWeight),this.fontSize,(Tn=this.fontFamily,void 0===Xg?Tn:Tn.trim().split(",").map(wrapFontFamily).join(","))].join(" ").trim();var Tn}}],[{key:"parse",value:function parse(){var Tn=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",Un=arguments.length>1?arguments[1]:void 0,Qn="",Dn="",Hn="",Gn="",Vn="",zn=compressSpaces(Tn).trim().split(" "),Kn={fontSize:!1,fontStyle:!1,fontWeight:!1,fontVariant:!1};return zn.forEach((function(Tn){switch(!0){case!Kn.fontStyle&&Font.styles.includes(Tn):"inherit"!==Tn&&(Qn=Tn),Kn.fontStyle=!0;break;case!Kn.fontVariant&&Font.variants.includes(Tn):"inherit"!==Tn&&(Dn=Tn),Kn.fontStyle=!0,Kn.fontVariant=!0;break;case!Kn.fontWeight&&Font.weights.includes(Tn):"inherit"!==Tn&&(Hn=Tn),Kn.fontStyle=!0,Kn.fontVariant=!0,Kn.fontWeight=!0;break;case!Kn.fontSize:if("inherit"!==Tn){var Un=Tn.split("/"),zn=wf(Un,1);Gn=zn[0]}Kn.fontStyle=!0,Kn.fontVariant=!0,Kn.fontWeight=!0,Kn.fontSize=!0;break;default:"inherit"!==Tn&&(Vn+=Tn)}})),new Font(Qn,Dn,Hn,Gn,Vn,Un)}}]),Font}();Tm.styles="normal|italic|oblique|inherit",Tm.variants="normal|small-caps|inherit",Tm.weights="normal|bold|bolder|lighter|100|200|300|400|500|600|700|800|900|inherit";var Pm=function(){function BoundingBox(){var Tn=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Number.NaN,Un=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Number.NaN,Qn=arguments.length>2&&void 0!==arguments[2]?arguments[2]:Number.NaN,Dn=arguments.length>3&&void 0!==arguments[3]?arguments[3]:Number.NaN;kf(this,BoundingBox),this.x1=Tn,this.y1=Un,this.x2=Qn,this.y2=Dn,this.addPoint(Tn,Un),this.addPoint(Qn,Dn)}return Bf(BoundingBox,[{key:"addPoint",value:function addPoint(Tn,Un){void 0!==Tn&&((isNaN(this.x1)||isNaN(this.x2))&&(this.x1=Tn,this.x2=Tn),Tnthis.x2&&(this.x2=Tn)),void 0!==Un&&((isNaN(this.y1)||isNaN(this.y2))&&(this.y1=Un,this.y2=Un),Unthis.y2&&(this.y2=Un))}},{key:"addX",value:function addX(Tn){this.addPoint(Tn,null)}},{key:"addY",value:function addY(Tn){this.addPoint(null,Tn)}},{key:"addBoundingBox",value:function addBoundingBox(Tn){if(Tn){var Un=Tn.x1,Qn=Tn.y1,Dn=Tn.x2,Hn=Tn.y2;this.addPoint(Un,Qn),this.addPoint(Dn,Hn)}}},{key:"sumCubic",value:function sumCubic(Tn,Un,Qn,Dn,Hn){return Math.pow(1-Tn,3)*Un+3*Math.pow(1-Tn,2)*Tn*Qn+3*(1-Tn)*Math.pow(Tn,2)*Dn+Math.pow(Tn,3)*Hn}},{key:"bezierCurveAdd",value:function bezierCurveAdd(Tn,Un,Qn,Dn,Hn){var Gn=6*Un-12*Qn+6*Dn,Vn=-3*Un+9*Qn-9*Dn+3*Hn,zn=3*Qn-3*Un;if(0!==Vn){var Kn=Math.pow(Gn,2)-4*zn*Vn;if(!(Kn<0)){var Wn=(-Gn+Math.sqrt(Kn))/(2*Vn);01&&void 0!==arguments[1]&&arguments[1];if(!Un){var Qn=this.getStyle("fill"),Dn=this.getStyle("fill-opacity"),Hn=this.getStyle("stroke"),Gn=this.getStyle("stroke-opacity");if(Qn.isUrlDefinition()){var Vn=Qn.getFillStyleDefinition(this,Dn);Vn&&(Tn.fillStyle=Vn)}else if(Qn.hasValue()){"currentColor"===Qn.getString()&&Qn.setValue(this.getStyle("color").getColor());var zn=Qn.getColor();"inherit"!==zn&&(Tn.fillStyle="none"===zn?"rgba(0,0,0,0)":zn)}if(Dn.hasValue()){var Kn=new cm(this.document,"fill",Tn.fillStyle).addOpacity(Dn).getColor();Tn.fillStyle=Kn}if(Hn.isUrlDefinition()){var Wn=Hn.getFillStyleDefinition(this,Gn);Wn&&(Tn.strokeStyle=Wn)}else if(Hn.hasValue()){"currentColor"===Hn.getString()&&Hn.setValue(this.getStyle("color").getColor());var Xn=Hn.getString();"inherit"!==Xn&&(Tn.strokeStyle="none"===Xn?"rgba(0,0,0,0)":Xn)}if(Gn.hasValue()){var Yn=new cm(this.document,"stroke",Tn.strokeStyle).addOpacity(Gn).getString();Tn.strokeStyle=Yn}var Jn=this.getStyle("stroke-width");if(Jn.hasValue()){var $n=Jn.getPixels();Tn.lineWidth=$n||1e-8}var Zn=this.getStyle("stroke-linecap"),er=this.getStyle("stroke-linejoin"),tr=this.getStyle("stroke-miterlimit"),nr=this.getStyle("paint-order"),rr=this.getStyle("stroke-dasharray"),ir=this.getStyle("stroke-dashoffset");if(Zn.hasValue()&&(Tn.lineCap=Zn.getString()),er.hasValue()&&(Tn.lineJoin=er.getString()),tr.hasValue()&&(Tn.miterLimit=tr.getNumber()),nr.hasValue()&&(Tn.paintOrder=nr.getValue()),rr.hasValue()&&"none"!==rr.getString()){var or=toNumbers(rr.getString());void 0!==Tn.setLineDash?Tn.setLineDash(or):void 0!==Tn.webkitLineDash?Tn.webkitLineDash=or:void 0===Tn.mozDash||1===or.length&&0===or[0]||(Tn.mozDash=or);var ar=ir.getPixels();void 0!==Tn.lineDashOffset?Tn.lineDashOffset=ar:void 0!==Tn.webkitLineDashOffset?Tn.webkitLineDashOffset=ar:void 0!==Tn.mozDashOffset&&(Tn.mozDashOffset=ar)}}if(this.modifiedEmSizeStack=!1,void 0!==Tn.font){var sr=this.getStyle("font"),lr=this.getStyle("font-style"),cr=this.getStyle("font-variant"),ur=this.getStyle("font-weight"),dr=this.getStyle("font-size"),hr=this.getStyle("font-family"),pr=new Tm(lr.getString(),cr.getString(),ur.getString(),dr.hasValue()?"".concat(dr.getPixels(!0),"px"):"",hr.getString(),Tm.parse(sr.getString(),Tn.font));lr.setValue(pr.fontStyle),cr.setValue(pr.fontVariant),ur.setValue(pr.fontWeight),dr.setValue(pr.fontSize),hr.setValue(pr.fontFamily),Tn.font=pr.toString(),dr.isPixels()&&(this.document.emSize=dr.getPixels(),this.modifiedEmSizeStack=!0)}Un||(this.applyEffects(Tn),Tn.globalAlpha=this.calculateOpacity())}},{key:"clearContext",value:function clearContext(Tn){Jf(Gf(RenderedElement.prototype),"clearContext",this).call(this,Tn),this.modifiedEmSizeStack&&this.document.popEmSize()}}]),RenderedElement}();function _isNativeReflectConstruct$5(){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(Tn){return!1}}var Um=function(Tn){zf(TextElement,Fm);var Un=function _createSuper$5(Tn){return function(){var Un,Qn=Gf(Tn);if(_isNativeReflectConstruct$5()){var Dn=Gf(this).constructor;Un=Reflect.construct(Qn,arguments,Dn)}else Un=Qn.apply(this,arguments);return Hf(this,Un)}}(TextElement);function TextElement(Tn,Qn,Dn){var Hn;return kf(this,TextElement),(Hn=Un.call(this,Tn,Qn,(this instanceof TextElement?this.constructor:void 0)===TextElement||Dn)).type="text",Hn.x=0,Hn.y=0,Hn.measureCache=-1,Hn}return Bf(TextElement,[{key:"setContext",value:function setContext(Tn){var Un=arguments.length>1&&void 0!==arguments[1]&&arguments[1];Jf(Gf(TextElement.prototype),"setContext",this).call(this,Tn,Un);var Qn=this.getStyle("dominant-baseline").getTextBaseline()||this.getStyle("alignment-baseline").getTextBaseline();Qn&&(Tn.textBaseline=Qn)}},{key:"initializeCoordinates",value:function initializeCoordinates(Tn){this.x=this.getAttribute("x").getPixels("x"),this.y=this.getAttribute("y").getPixels("y");var Un=this.getAttribute("dx"),Qn=this.getAttribute("dy");Un.hasValue()&&(this.x+=Un.getPixels("x")),Qn.hasValue()&&(this.y+=Qn.getPixels("y")),this.x+=this.getAnchorDelta(Tn,this,0)}},{key:"getBoundingBox",value:function getBoundingBox(Tn){var Un=this;if("text"!==this.type)return this.getTElementBoundingBox(Tn);this.initializeCoordinates(Tn);var Qn=null;return this.children.forEach((function(Dn,Hn){var Gn=Un.getChildBoundingBox(Tn,Un,Un,Hn);Qn?Qn.addBoundingBox(Gn):Qn=Gn})),Qn}},{key:"getFontSize",value:function getFontSize(){var Tn=this.document,Un=this.parent,Qn=Tm.parse(Tn.ctx.font).fontSize;return Un.getStyle("font-size").getNumber(Qn)}},{key:"getTElementBoundingBox",value:function getTElementBoundingBox(Tn){var Un=this.getFontSize();return new Pm(this.x,this.y-Un,this.x+this.measureText(Tn),this.y)}},{key:"getGlyph",value:function getGlyph(Tn,Un,Qn){var Dn=Un[Qn],Hn=null;if(Tn.isArabic){var Gn=Un.length,Vn=Un[Qn-1],zn=Un[Qn+1],Kn="isolated";(0===Qn||" "===Vn)&&Qn0&&" "!==Vn&&Qn0&&" "!==Vn&&(Qn===Gn-1||" "===zn)&&(Kn="initial"),void 0!==Tn.glyphs[Dn]&&((Hn=Tn.glyphs[Dn][Kn])||"glyph"!==Tn.glyphs[Dn].type||(Hn=Tn.glyphs[Dn]))}else Hn=Tn.glyphs[Dn];return Hn||(Hn=Tn.missingGlyph),Hn}},{key:"getText",value:function getText(){return""}},{key:"getTextFromNode",value:function getTextFromNode(Tn){var Un=Tn||this.node,Qn=Array.from(Un.parentNode.childNodes),Dn=Qn.indexOf(Un),Hn=Qn.length-1,Gn=compressSpaces(Un.value||Un.text||Un.textContent||"");return 0===Dn&&(Gn=trimLeft(Gn)),Dn===Hn&&(Gn=trimRight(Gn)),Gn}},{key:"renderChildren",value:function renderChildren(Tn){var Un=this;if("text"===this.type){this.initializeCoordinates(Tn),this.children.forEach((function(Qn,Dn){Un.renderChild(Tn,Un,Un,Dn)}));var Qn=this.document.screen.mouse;Qn.isWorking()&&Qn.checkBoundingBox(this,this.getBoundingBox(Tn))}else this.renderTElementChildren(Tn)}},{key:"renderTElementChildren",value:function renderTElementChildren(Tn){var Un=this.document,Qn=this.parent,Dn=this.getText(),Hn=Qn.getStyle("font-family").getDefinition();if(Hn)for(var Gn=Hn.fontFace.unitsPerEm,Vn=Tm.parse(Un.ctx.font),zn=Qn.getStyle("font-size").getNumber(Vn.fontSize),Kn=Qn.getStyle("font-style").getString(Vn.fontStyle),Wn=zn/Gn,Xn=Hn.isRTL?Dn.split("").reverse().join(""):Dn,Yn=toNumbers(Qn.getAttribute("dx").getString()),Jn=Xn.length,$n=0;$nQn&&Vn.getAttribute("x").hasValue()||Vn.getAttribute("text-anchor").hasValue()));Kn++)zn+=Vn.measureTextRecursive(Tn);return-1*("end"===Dn?zn:zn/2)}return 0}},{key:"adjustChildCoordinates",value:function adjustChildCoordinates(Tn,Un,Qn,Dn){var Hn=Qn.children[Dn];if("function"!=typeof Hn.measureText)return Hn;Tn.save(),Hn.setContext(Tn,!0);var Gn=Hn.getAttribute("x"),Vn=Hn.getAttribute("y"),zn=Hn.getAttribute("dx"),Kn=Hn.getAttribute("dy"),Wn=Hn.getAttribute("text-anchor").getString("start");if(0===Dn&&"textNode"!==Hn.type&&(Gn.hasValue()||Gn.setValue(Un.getAttribute("x").getValue("0")),Vn.hasValue()||Vn.setValue(Un.getAttribute("y").getValue("0")),zn.hasValue()||zn.setValue(Un.getAttribute("dx").getValue("0")),Kn.hasValue()||Kn.setValue(Un.getAttribute("dy").getValue("0"))),Gn.hasValue()){if(Hn.x=Gn.getPixels("x")+Un.getAnchorDelta(Tn,Qn,Dn),"start"!==Wn){var Xn=Hn.measureTextRecursive(Tn);Hn.x+=-1*("end"===Wn?Xn:Xn/2)}zn.hasValue()&&(Hn.x+=zn.getPixels("x"))}else{if("start"!==Wn){var Yn=Hn.measureTextRecursive(Tn);Un.x+=-1*("end"===Wn?Yn:Yn/2)}zn.hasValue()&&(Un.x+=zn.getPixels("x")),Hn.x=Un.x}return Un.x=Hn.x+Hn.measureText(Tn),Vn.hasValue()?(Hn.y=Vn.getPixels("y"),Kn.hasValue()&&(Hn.y+=Kn.getPixels("y"))):(Kn.hasValue()&&(Un.y+=Kn.getPixels("y")),Hn.y=Un.y),Un.y=Hn.y,Hn.clearContext(Tn),Tn.restore(),Hn}},{key:"getChildBoundingBox",value:function getChildBoundingBox(Tn,Un,Qn,Dn){var Hn=this.adjustChildCoordinates(Tn,Un,Qn,Dn),Gn=Hn.getBoundingBox(Tn);return Gn?(Hn.children.forEach((function(Qn,Dn){var Vn=Un.getChildBoundingBox(Tn,Un,Hn,Dn);Gn.addBoundingBox(Vn)})),Gn):null}},{key:"renderChild",value:function renderChild(Tn,Un,Qn,Dn){var Hn=this.adjustChildCoordinates(Tn,Un,Qn,Dn);Hn.render(Tn),Hn.children.forEach((function(Qn,Dn){Un.renderChild(Tn,Un,Hn,Dn)}))}},{key:"measureTextRecursive",value:function measureTextRecursive(Tn){return this.children.reduce((function(Un,Qn){return Un+Qn.measureTextRecursive(Tn)}),this.measureText(Tn))}},{key:"measureText",value:function measureText(Tn){var Un=this.measureCache;if(~Un)return Un;var Qn=this.getText(),Dn=this.measureTargetText(Tn,Qn);return this.measureCache=Dn,Dn}},{key:"measureTargetText",value:function measureTargetText(Tn,Un){if(!Un.length)return 0;var Qn=this.parent,Dn=Qn.getStyle("font-family").getDefinition();if(Dn){for(var Hn=this.getFontSize(),Gn=Dn.isRTL?Un.split("").reverse().join(""):Un,Vn=toNumbers(Qn.getAttribute("dx").getString()),zn=Gn.length,Kn=0,Wn=0;Wn0?"":Hn.getTextFromNode(),Hn}return Bf(TSpanElement,[{key:"getText",value:function getText(){return this.text}}]),TSpanElement}();function _isNativeReflectConstruct$7(){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(Tn){return!1}}var Rm=function(Tn){zf(TextNode,Im);var Un=function _createSuper$7(Tn){return function(){var Un,Qn=Gf(Tn);if(_isNativeReflectConstruct$7()){var Dn=Gf(this).constructor;Un=Reflect.construct(Qn,arguments,Dn)}else Un=Qn.apply(this,arguments);return Hf(this,Un)}}(TextNode);function TextNode(){var Tn;return kf(this,TextNode),(Tn=Un.apply(this,arguments)).type="textNode",Tn}return TextNode}();var Mm=function(){function PathParser(Tn){kf(this,PathParser),this.control=null,this.start=null,this.current=null,this.command="",this.tokens=[],this.i=-1,this.previousCommand="",this.points=[],this.angles=[],this.tokens=function preparePath(Tn){return compressSpaces(Tn.replace(/,/gm," ").replace(/([MmZzLlHhVvCcSsQqTtAa])([^\s])/gm,"$1 $2").replace(/([MmZzLlHhVvCcSsQqTtAa])([^\s])/gm,"$1 $2").replace(/([^\s])([MmZzLlHhVvCcSsQqTtAa])/gm,"$1 $2").replace(/([0-9])([+\-])/gm,"$1 $2").replace(/(\.[0-9]*)(\.)/gm,"$1 $2").replace(/(\.[0-9]*)(\.)/gm,"$1 $2").replace(/([Aa](?:\s+(?:[0-9]*\.)?[0-9]+){3})\s+([01])\s*([01])/gm,"$1 $2 $3 ")).trim()}(Tn).split(" ")}return Bf(PathParser,[{key:"reset",value:function reset(){this.i=-1,this.command="",this.previousCommand="",this.start=new dm(0,0),this.control=new dm(0,0),this.current=new dm(0,0),this.points=[],this.angles=[]}},{key:"isEnd",value:function isEnd(){return this.i>=this.tokens.length-1}},{key:"isCommandOrEnd",value:function isCommandOrEnd(){if(this.isEnd())return!0;var Tn=this.i,Un=this.tokens;return/^[A-Za-z]$/.test(Un[Tn+1])}},{key:"isRelativeCommand",value:function isRelativeCommand(){switch(this.command){case"m":case"l":case"h":case"v":case"c":case"s":case"q":case"t":case"a":case"z":return!0;default:return!1}}},{key:"getToken",value:function getToken(){return this.i++,this.tokens[this.i]}},{key:"getScalar",value:function getScalar(){return parseFloat(this.getToken())}},{key:"nextCommand",value:function nextCommand(){this.previousCommand=this.command,this.command=this.getToken()}},{key:"getPoint",value:function getPoint(){var Tn=new dm(this.getScalar(),this.getScalar());return this.makeAbsolute(Tn)}},{key:"getAsControlPoint",value:function getAsControlPoint(){var Tn=this.getPoint();return this.control=Tn,Tn}},{key:"getAsCurrentPoint",value:function getAsCurrentPoint(){var Tn=this.getPoint();return this.current=Tn,Tn}},{key:"getReflectedControlPoint",value:function getReflectedControlPoint(){var Tn=this.previousCommand.toLowerCase();if("c"!==Tn&&"s"!==Tn&&"q"!==Tn&&"t"!==Tn)return this.current;var Un=this.current,Qn=Un.x,Dn=Un.y,Hn=this.control,Gn=Hn.x,Vn=Hn.y;return new dm(2*Qn-Gn,2*Dn-Vn)}},{key:"makeAbsolute",value:function makeAbsolute(Tn){if(this.isRelativeCommand()){var Un=this.current,Qn=Un.x,Dn=Un.y;Tn.x+=Qn,Tn.y+=Dn}return Tn}},{key:"addMarker",value:function addMarker(Tn,Un,Qn){var Dn=this.points,Hn=this.angles;Qn&&Hn.length>0&&!Hn[Hn.length-1]&&(Hn[Hn.length-1]=Dn[Dn.length-1].angleTo(Qn)),this.addMarkerAngle(Tn,Un?Un.angleTo(Tn):null)}},{key:"addMarkerAngle",value:function addMarkerAngle(Tn,Un){this.points.push(Tn),this.angles.push(Un)}},{key:"getMarkerPoints",value:function getMarkerPoints(){return this.points}},{key:"getMarkerAngles",value:function getMarkerAngles(){for(var Tn=this.angles,Un=Tn.length,Qn=0;Qn1&&(Hn*=Math.sqrt(Yn),Gn*=Math.sqrt(Yn));var Jn=(zn===Kn?-1:1)*Math.sqrt((Math.pow(Hn,2)*Math.pow(Gn,2)-Math.pow(Hn,2)*Math.pow(Xn.y,2)-Math.pow(Gn,2)*Math.pow(Xn.x,2))/(Math.pow(Hn,2)*Math.pow(Xn.y,2)+Math.pow(Gn,2)*Math.pow(Xn.x,2)));isNaN(Jn)&&(Jn=0);var $n=new dm(Jn*Hn*Xn.y/Gn,Jn*-Gn*Xn.x/Hn),Zn=new dm((Dn.x+Wn.x)/2+Math.cos(Vn)*$n.x-Math.sin(Vn)*$n.y,(Dn.y+Wn.y)/2+Math.sin(Vn)*$n.x+Math.cos(Vn)*$n.y),er=vectorsAngle([1,0],[(Xn.x-$n.x)/Hn,(Xn.y-$n.y)/Gn]),tr=[(Xn.x-$n.x)/Hn,(Xn.y-$n.y)/Gn],nr=[(-Xn.x-$n.x)/Hn,(-Xn.y-$n.y)/Gn],rr=vectorsAngle(tr,nr);vectorsRatio(tr,nr)<=-1&&(rr=Math.PI),vectorsRatio(tr,nr)>=1&&(rr=0);var ir=1-Kn?1:-1,or=er+ir*(rr/2),ar=new dm(Zn.x+Hn*Math.cos(or),Zn.y+Gn*Math.sin(or));if(Qn.addMarkerAngle(ar,or-ir*Math.PI/2),Qn.addMarkerAngle(Wn,or-ir*Math.PI),Un.addPoint(Wn.x,Wn.y),Tn&&!isNaN(er)&&!isNaN(rr)){var sr=Hn>Gn?Hn:Gn,lr=Hn>Gn?1:Hn/Gn,cr=Hn>Gn?Gn/Hn:1;Tn.translate(Zn.x,Zn.y),Tn.rotate(Vn),Tn.scale(lr,cr),Tn.arc(0,0,sr,er,er+rr,Boolean(1-Kn)),Tn.scale(1/lr,1/cr),Tn.rotate(-Vn),Tn.translate(-Zn.x,-Zn.y)}}}},{key:"pathZ",value:function pathZ(Tn,Un){var Qn=this.pathParser;Tn&&Un.x1!==Un.x2&&Un.y1!==Un.y2&&Tn.closePath(),Qn.current=Qn.start}}]),PathElement}();function _isNativeReflectConstruct$9(){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(Tn){return!1}}var Qm=function(Tn){zf(SVGElement,Fm);var Un=function _createSuper$9(Tn){return function(){var Un,Qn=Gf(Tn);if(_isNativeReflectConstruct$9()){var Dn=Gf(this).constructor;Un=Reflect.construct(Qn,arguments,Dn)}else Un=Qn.apply(this,arguments);return Hf(this,Un)}}(SVGElement);function SVGElement(){var Tn;return kf(this,SVGElement),(Tn=Un.apply(this,arguments)).type="svg",Tn.root=!1,Tn}return Bf(SVGElement,[{key:"clearContext",value:function clearContext(Tn){Jf(Gf(SVGElement.prototype),"clearContext",this).call(this,Tn),this.document.screen.viewPort.removeCurrent()}},{key:"setContext",value:function setContext(Tn){var Un=this.document,Qn=Un.screen,Dn=Un.window,Hn=Tn.canvas;if(Qn.setDefaults(Tn),Hn.style&&void 0!==Tn.font&&Dn&&void 0!==Dn.getComputedStyle){Tn.font=Dn.getComputedStyle(Hn).getPropertyValue("font");var Gn=new cm(Un,"fontSize",Tm.parse(Tn.font).fontSize);Gn.hasValue()&&(Un.rootEmSize=Gn.getPixels("y"),Un.emSize=Un.rootEmSize)}Jf(Gf(SVGElement.prototype),"setContext",this).call(this,Tn),this.getAttribute("x").hasValue()||this.getAttribute("x",!0).setValue(0),this.getAttribute("y").hasValue()||this.getAttribute("y",!0).setValue(0),Tn.translate(this.getAttribute("x").getPixels("x"),this.getAttribute("y").getPixels("y"));var Vn=Qn.viewPort,zn=Vn.width,Kn=Vn.height;this.getStyle("width").hasValue()||this.getStyle("width",!0).setValue("100%"),this.getStyle("height").hasValue()||this.getStyle("height",!0).setValue("100%"),this.getStyle("color").hasValue()||this.getStyle("color",!0).setValue("black");var Wn=this.getAttribute("refX"),Xn=this.getAttribute("refY"),Yn=this.getAttribute("viewBox"),Jn=Yn.hasValue()?toNumbers(Yn.getString()):null,$n=!this.root&&"visible"!==this.getAttribute("overflow").getValue("hidden"),Zn=0,er=0,tr=0,nr=0;Jn&&(Zn=Jn[0],er=Jn[1]),this.root||(zn=this.getStyle("width").getPixels("x"),Kn=this.getStyle("height").getPixels("y"),"marker"===this.type&&(tr=Zn,nr=er,Zn=0,er=0)),Qn.viewPort.setCurrent(zn,Kn),Jn&&(zn=Jn[2],Kn=Jn[3]),Un.setViewBox({ctx:Tn,aspectRatio:this.getAttribute("preserveAspectRatio").getString(),width:Qn.viewPort.width,desiredWidth:zn,height:Qn.viewPort.height,desiredHeight:Kn,minX:Zn,minY:er,refX:Wn.getValue(),refY:Xn.getValue(),clip:$n,clipX:tr,clipY:nr}),Jn&&(Qn.viewPort.removeCurrent(),Qn.viewPort.setCurrent(zn,Kn))}},{key:"resize",value:function resize(Tn){var Un=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Tn,Qn=arguments.length>2&&void 0!==arguments[2]&&arguments[2],Dn=this.getAttribute("width",!0),Hn=this.getAttribute("height",!0),Gn=this.getAttribute("viewBox"),Vn=this.getAttribute("style"),zn=Dn.getNumber(0),Kn=Hn.getNumber(0);if(Qn)if("string"==typeof Qn)this.getAttribute("preserveAspectRatio",!0).setValue(Qn);else{var Wn=this.getAttribute("preserveAspectRatio");Wn.hasValue()&&Wn.setValue(Wn.getString().replace(/^\s*(\S.*\S)\s*$/,"$1"))}if(Dn.setValue(Tn),Hn.setValue(Un),Gn.hasValue()||Gn.setValue("0 0 ".concat(zn||Tn," ").concat(Kn||Un)),Vn.hasValue()){var Xn=this.getStyle("width"),Yn=this.getStyle("height");Xn.hasValue()&&Xn.setValue("".concat(Tn,"px")),Yn.hasValue()&&Yn.setValue("".concat(Un,"px"))}}}]),SVGElement}();function _isNativeReflectConstruct$a(){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(Tn){return!1}}var Dm=function(Tn){zf(RectElement,Om);var Un=function _createSuper$a(Tn){return function(){var Un,Qn=Gf(Tn);if(_isNativeReflectConstruct$a()){var Dn=Gf(this).constructor;Un=Reflect.construct(Qn,arguments,Dn)}else Un=Qn.apply(this,arguments);return Hf(this,Un)}}(RectElement);function RectElement(){var Tn;return kf(this,RectElement),(Tn=Un.apply(this,arguments)).type="rect",Tn}return Bf(RectElement,[{key:"path",value:function path(Tn){var Un=this.getAttribute("x").getPixels("x"),Qn=this.getAttribute("y").getPixels("y"),Dn=this.getStyle("width").getPixels("x"),Hn=this.getStyle("height").getPixels("y"),Gn=this.getAttribute("rx"),Vn=this.getAttribute("ry"),zn=Gn.getPixels("x"),Kn=Vn.getPixels("y");if(Gn.hasValue()&&!Vn.hasValue()&&(Kn=zn),Vn.hasValue()&&!Gn.hasValue()&&(zn=Kn),zn=Math.min(zn,Dn/2),Kn=Math.min(Kn,Hn/2),Tn){var Wn=(Math.sqrt(2)-1)/3*4;Tn.beginPath(),Hn>0&&Dn>0&&(Tn.moveTo(Un+zn,Qn),Tn.lineTo(Un+Dn-zn,Qn),Tn.bezierCurveTo(Un+Dn-zn+Wn*zn,Qn,Un+Dn,Qn+Kn-Wn*Kn,Un+Dn,Qn+Kn),Tn.lineTo(Un+Dn,Qn+Hn-Kn),Tn.bezierCurveTo(Un+Dn,Qn+Hn-Kn+Wn*Kn,Un+Dn-zn+Wn*zn,Qn+Hn,Un+Dn-zn,Qn+Hn),Tn.lineTo(Un+zn,Qn+Hn),Tn.bezierCurveTo(Un+zn-Wn*zn,Qn+Hn,Un,Qn+Hn-Kn+Wn*Kn,Un,Qn+Hn-Kn),Tn.lineTo(Un,Qn+Kn),Tn.bezierCurveTo(Un,Qn+Kn-Wn*Kn,Un+zn-Wn*zn,Qn,Un+zn,Qn),Tn.closePath())}return new Pm(Un,Qn,Un+Dn,Qn+Hn)}},{key:"getMarkers",value:function getMarkers(){return null}}]),RectElement}();function _isNativeReflectConstruct$b(){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(Tn){return!1}}var jm=function(Tn){zf(CircleElement,Om);var Un=function _createSuper$b(Tn){return function(){var Un,Qn=Gf(Tn);if(_isNativeReflectConstruct$b()){var Dn=Gf(this).constructor;Un=Reflect.construct(Qn,arguments,Dn)}else Un=Qn.apply(this,arguments);return Hf(this,Un)}}(CircleElement);function CircleElement(){var Tn;return kf(this,CircleElement),(Tn=Un.apply(this,arguments)).type="circle",Tn}return Bf(CircleElement,[{key:"path",value:function path(Tn){var Un=this.getAttribute("cx").getPixels("x"),Qn=this.getAttribute("cy").getPixels("y"),Dn=this.getAttribute("r").getPixels();return Tn&&Dn>0&&(Tn.beginPath(),Tn.arc(Un,Qn,Dn,0,2*Math.PI,!1),Tn.closePath()),new Pm(Un-Dn,Qn-Dn,Un+Dn,Qn+Dn)}},{key:"getMarkers",value:function getMarkers(){return null}}]),CircleElement}();function _isNativeReflectConstruct$c(){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(Tn){return!1}}var Hm=function(Tn){zf(EllipseElement,Om);var Un=function _createSuper$c(Tn){return function(){var Un,Qn=Gf(Tn);if(_isNativeReflectConstruct$c()){var Dn=Gf(this).constructor;Un=Reflect.construct(Qn,arguments,Dn)}else Un=Qn.apply(this,arguments);return Hf(this,Un)}}(EllipseElement);function EllipseElement(){var Tn;return kf(this,EllipseElement),(Tn=Un.apply(this,arguments)).type="ellipse",Tn}return Bf(EllipseElement,[{key:"path",value:function path(Tn){var Un=(Math.sqrt(2)-1)/3*4,Qn=this.getAttribute("rx").getPixels("x"),Dn=this.getAttribute("ry").getPixels("y"),Hn=this.getAttribute("cx").getPixels("x"),Gn=this.getAttribute("cy").getPixels("y");return Tn&&Qn>0&&Dn>0&&(Tn.beginPath(),Tn.moveTo(Hn+Qn,Gn),Tn.bezierCurveTo(Hn+Qn,Gn+Un*Dn,Hn+Un*Qn,Gn+Dn,Hn,Gn+Dn),Tn.bezierCurveTo(Hn-Un*Qn,Gn+Dn,Hn-Qn,Gn+Un*Dn,Hn-Qn,Gn),Tn.bezierCurveTo(Hn-Qn,Gn-Un*Dn,Hn-Un*Qn,Gn-Dn,Hn,Gn-Dn),Tn.bezierCurveTo(Hn+Un*Qn,Gn-Dn,Hn+Qn,Gn-Un*Dn,Hn+Qn,Gn),Tn.closePath()),new Pm(Hn-Qn,Gn-Dn,Hn+Qn,Gn+Dn)}},{key:"getMarkers",value:function getMarkers(){return null}}]),EllipseElement}();function _isNativeReflectConstruct$d(){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(Tn){return!1}}var Gm=function(Tn){zf(LineElement,Om);var Un=function _createSuper$d(Tn){return function(){var Un,Qn=Gf(Tn);if(_isNativeReflectConstruct$d()){var Dn=Gf(this).constructor;Un=Reflect.construct(Qn,arguments,Dn)}else Un=Qn.apply(this,arguments);return Hf(this,Un)}}(LineElement);function LineElement(){var Tn;return kf(this,LineElement),(Tn=Un.apply(this,arguments)).type="line",Tn}return Bf(LineElement,[{key:"getPoints",value:function getPoints(){return[new dm(this.getAttribute("x1").getPixels("x"),this.getAttribute("y1").getPixels("y")),new dm(this.getAttribute("x2").getPixels("x"),this.getAttribute("y2").getPixels("y"))]}},{key:"path",value:function path(Tn){var Un=this.getPoints(),Qn=wf(Un,2),Dn=Qn[0],Hn=Dn.x,Gn=Dn.y,Vn=Qn[1],zn=Vn.x,Kn=Vn.y;return Tn&&(Tn.beginPath(),Tn.moveTo(Hn,Gn),Tn.lineTo(zn,Kn)),new Pm(Hn,Gn,zn,Kn)}},{key:"getMarkers",value:function getMarkers(){var Tn=this.getPoints(),Un=wf(Tn,2),Qn=Un[0],Dn=Un[1],Hn=Qn.angleTo(Dn);return[[Qn,Hn],[Dn,Hn]]}}]),LineElement}();function _isNativeReflectConstruct$e(){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(Tn){return!1}}var Vm=function(Tn){zf(PolylineElement,Om);var Un=function _createSuper$e(Tn){return function(){var Un,Qn=Gf(Tn);if(_isNativeReflectConstruct$e()){var Dn=Gf(this).constructor;Un=Reflect.construct(Qn,arguments,Dn)}else Un=Qn.apply(this,arguments);return Hf(this,Un)}}(PolylineElement);function PolylineElement(Tn,Qn,Dn){var Hn;return kf(this,PolylineElement),(Hn=Un.call(this,Tn,Qn,Dn)).type="polyline",Hn.points=[],Hn.points=dm.parsePath(Hn.getAttribute("points").getString()),Hn}return Bf(PolylineElement,[{key:"path",value:function path(Tn){var Un=this.points,Qn=wf(Un,1)[0],Dn=Qn.x,Hn=Qn.y,Gn=new Pm(Dn,Hn);return Tn&&(Tn.beginPath(),Tn.moveTo(Dn,Hn)),Un.forEach((function(Un){var Qn=Un.x,Dn=Un.y;Gn.addPoint(Qn,Dn),Tn&&Tn.lineTo(Qn,Dn)})),Gn}},{key:"getMarkers",value:function getMarkers(){var Tn=this.points,Un=Tn.length-1,Qn=[];return Tn.forEach((function(Dn,Hn){Hn!==Un&&Qn.push([Dn,Dn.angleTo(Tn[Hn+1])])})),Qn.length>0&&Qn.push([Tn[Tn.length-1],Qn[Qn.length-1][1]]),Qn}}]),PolylineElement}();function _isNativeReflectConstruct$f(){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(Tn){return!1}}var zm=function(Tn){zf(PolygonElement,Vm);var Un=function _createSuper$f(Tn){return function(){var Un,Qn=Gf(Tn);if(_isNativeReflectConstruct$f()){var Dn=Gf(this).constructor;Un=Reflect.construct(Qn,arguments,Dn)}else Un=Qn.apply(this,arguments);return Hf(this,Un)}}(PolygonElement);function PolygonElement(){var Tn;return kf(this,PolygonElement),(Tn=Un.apply(this,arguments)).type="polygon",Tn}return Bf(PolygonElement,[{key:"path",value:function path(Tn){var Un=Jf(Gf(PolygonElement.prototype),"path",this).call(this,Tn),Qn=wf(this.points,1)[0],Dn=Qn.x,Hn=Qn.y;return Tn&&(Tn.lineTo(Dn,Hn),Tn.closePath()),Un}}]),PolygonElement}();function _isNativeReflectConstruct$g(){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(Tn){return!1}}var Km=function(Tn){zf(PatternElement,Nm);var Un=function _createSuper$g(Tn){return function(){var Un,Qn=Gf(Tn);if(_isNativeReflectConstruct$g()){var Dn=Gf(this).constructor;Un=Reflect.construct(Qn,arguments,Dn)}else Un=Qn.apply(this,arguments);return Hf(this,Un)}}(PatternElement);function PatternElement(){var Tn;return kf(this,PatternElement),(Tn=Un.apply(this,arguments)).type="pattern",Tn}return Bf(PatternElement,[{key:"createPattern",value:function createPattern(Tn,Un,Qn){var Dn=this.getStyle("width").getPixels("x",!0),Hn=this.getStyle("height").getPixels("y",!0),Gn=new Qm(this.document,null);Gn.attributes.viewBox=new cm(this.document,"viewBox",this.getAttribute("viewBox").getValue()),Gn.attributes.width=new cm(this.document,"width","".concat(Dn,"px")),Gn.attributes.height=new cm(this.document,"height","".concat(Hn,"px")),Gn.attributes.transform=new cm(this.document,"transform",this.getAttribute("patternTransform").getValue()),Gn.children=this.children;var Vn=this.document.createCanvas(Dn,Hn),zn=Vn.getContext("2d"),Kn=this.getAttribute("x"),Wn=this.getAttribute("y");Kn.hasValue()&&Wn.hasValue()&&zn.translate(Kn.getPixels("x",!0),Wn.getPixels("y",!0)),Qn.hasValue()?this.styles["fill-opacity"]=Qn:Reflect.deleteProperty(this.styles,"fill-opacity");for(var Xn=-1;Xn<=1;Xn++)for(var Yn=-1;Yn<=1;Yn++)zn.save(),Gn.attributes.x=new cm(this.document,"x",Xn*Vn.width),Gn.attributes.y=new cm(this.document,"y",Yn*Vn.height),Gn.render(zn),zn.restore();return Tn.createPattern(Vn,"repeat")}}]),PatternElement}();function _isNativeReflectConstruct$h(){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(Tn){return!1}}var qm=function(Tn){zf(MarkerElement,Nm);var Un=function _createSuper$h(Tn){return function(){var Un,Qn=Gf(Tn);if(_isNativeReflectConstruct$h()){var Dn=Gf(this).constructor;Un=Reflect.construct(Qn,arguments,Dn)}else Un=Qn.apply(this,arguments);return Hf(this,Un)}}(MarkerElement);function MarkerElement(){var Tn;return kf(this,MarkerElement),(Tn=Un.apply(this,arguments)).type="marker",Tn}return Bf(MarkerElement,[{key:"render",value:function render(Tn,Un,Qn){if(Un){var Dn=Un.x,Hn=Un.y,Gn=this.getAttribute("orient").getValue("auto"),Vn=this.getAttribute("markerUnits").getValue("strokeWidth");Tn.translate(Dn,Hn),"auto"===Gn&&Tn.rotate(Qn),"strokeWidth"===Vn&&Tn.scale(Tn.lineWidth,Tn.lineWidth),Tn.save();var zn=new Qm(this.document,null);zn.type=this.type,zn.attributes.viewBox=new cm(this.document,"viewBox",this.getAttribute("viewBox").getValue()),zn.attributes.refX=new cm(this.document,"refX",this.getAttribute("refX").getValue()),zn.attributes.refY=new cm(this.document,"refY",this.getAttribute("refY").getValue()),zn.attributes.width=new cm(this.document,"width",this.getAttribute("markerWidth").getValue()),zn.attributes.height=new cm(this.document,"height",this.getAttribute("markerHeight").getValue()),zn.attributes.overflow=new cm(this.document,"overflow",this.getAttribute("overflow").getValue()),zn.attributes.fill=new cm(this.document,"fill",this.getAttribute("fill").getColor("black")),zn.attributes.stroke=new cm(this.document,"stroke",this.getAttribute("stroke").getValue("none")),zn.children=this.children,zn.render(Tn),Tn.restore(),"strokeWidth"===Vn&&Tn.scale(1/Tn.lineWidth,1/Tn.lineWidth),"auto"===Gn&&Tn.rotate(-Qn),Tn.translate(-Dn,-Hn)}}}]),MarkerElement}();function _isNativeReflectConstruct$i(){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(Tn){return!1}}var Wm=function(Tn){zf(DefsElement,Nm);var Un=function _createSuper$i(Tn){return function(){var Un,Qn=Gf(Tn);if(_isNativeReflectConstruct$i()){var Dn=Gf(this).constructor;Un=Reflect.construct(Qn,arguments,Dn)}else Un=Qn.apply(this,arguments);return Hf(this,Un)}}(DefsElement);function DefsElement(){var Tn;return kf(this,DefsElement),(Tn=Un.apply(this,arguments)).type="defs",Tn}return Bf(DefsElement,[{key:"render",value:function render(){}}]),DefsElement}();function _isNativeReflectConstruct$j(){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(Tn){return!1}}var Xm=function(Tn){zf(GElement,Fm);var Un=function _createSuper$j(Tn){return function(){var Un,Qn=Gf(Tn);if(_isNativeReflectConstruct$j()){var Dn=Gf(this).constructor;Un=Reflect.construct(Qn,arguments,Dn)}else Un=Qn.apply(this,arguments);return Hf(this,Un)}}(GElement);function GElement(){var Tn;return kf(this,GElement),(Tn=Un.apply(this,arguments)).type="g",Tn}return Bf(GElement,[{key:"getBoundingBox",value:function getBoundingBox(Tn){var Un=new Pm;return this.children.forEach((function(Qn){Un.addBoundingBox(Qn.getBoundingBox(Tn))})),Un}}]),GElement}();function _isNativeReflectConstruct$k(){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(Tn){return!1}}var Ym=function(Tn){zf(GradientElement,Nm);var Un=function _createSuper$k(Tn){return function(){var Un,Qn=Gf(Tn);if(_isNativeReflectConstruct$k()){var Dn=Gf(this).constructor;Un=Reflect.construct(Qn,arguments,Dn)}else Un=Qn.apply(this,arguments);return Hf(this,Un)}}(GradientElement);function GradientElement(Tn,Qn,Dn){var Hn;kf(this,GradientElement),(Hn=Un.call(this,Tn,Qn,Dn)).attributesToInherit=["gradientUnits"],Hn.stops=[];var Gn=jf(Hn),Vn=Gn.stops;return Gn.children.forEach((function(Tn){"stop"===Tn.type&&Vn.push(Tn)})),Hn}return Bf(GradientElement,[{key:"getGradientUnits",value:function getGradientUnits(){return this.getAttribute("gradientUnits").getString("objectBoundingBox")}},{key:"createGradient",value:function createGradient(Tn,Un,Qn){var Dn=this,Hn=this;this.getHrefAttribute().hasValue()&&(Hn=this.getHrefAttribute().getDefinition(),this.inheritStopContainer(Hn));var Gn=Hn.stops,Vn=this.getGradient(Tn,Un);if(!Vn)return this.addParentOpacity(Qn,Gn[Gn.length-1].color);if(Gn.forEach((function(Tn){Vn.addColorStop(Tn.offset,Dn.addParentOpacity(Qn,Tn.color))})),this.getAttribute("gradientTransform").hasValue()){var zn=this.document,Kn=zn.screen,Wn=Kn.MAX_VIRTUAL_PIXELS,Xn=Kn.viewPort,Yn=wf(Xn.viewPorts,1)[0],Jn=new Dm(zn,null);Jn.attributes.x=new cm(zn,"x",-Wn/3),Jn.attributes.y=new cm(zn,"y",-Wn/3),Jn.attributes.width=new cm(zn,"width",Wn),Jn.attributes.height=new cm(zn,"height",Wn);var $n=new Xm(zn,null);$n.attributes.transform=new cm(zn,"transform",this.getAttribute("gradientTransform").getValue()),$n.children=[Jn];var Zn=new Qm(zn,null);Zn.attributes.x=new cm(zn,"x",0),Zn.attributes.y=new cm(zn,"y",0),Zn.attributes.width=new cm(zn,"width",Yn.width),Zn.attributes.height=new cm(zn,"height",Yn.height),Zn.children=[$n];var er=zn.createCanvas(Yn.width,Yn.height),tr=er.getContext("2d");return tr.fillStyle=Vn,Zn.render(tr),tr.createPattern(er,"no-repeat")}return Vn}},{key:"inheritStopContainer",value:function inheritStopContainer(Tn){var Un=this;this.attributesToInherit.forEach((function(Qn){!Un.getAttribute(Qn).hasValue()&&Tn.getAttribute(Qn).hasValue()&&Un.getAttribute(Qn,!0).setValue(Tn.getAttribute(Qn).getValue())}))}},{key:"addParentOpacity",value:function addParentOpacity(Tn,Un){return Tn.hasValue()?new cm(this.document,"color",Un).addOpacity(Tn).getColor():Un}}]),GradientElement}();function _isNativeReflectConstruct$l(){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(Tn){return!1}}var Jm=function(Tn){zf(LinearGradientElement,Ym);var Un=function _createSuper$l(Tn){return function(){var Un,Qn=Gf(Tn);if(_isNativeReflectConstruct$l()){var Dn=Gf(this).constructor;Un=Reflect.construct(Qn,arguments,Dn)}else Un=Qn.apply(this,arguments);return Hf(this,Un)}}(LinearGradientElement);function LinearGradientElement(Tn,Qn,Dn){var Hn;return kf(this,LinearGradientElement),(Hn=Un.call(this,Tn,Qn,Dn)).type="linearGradient",Hn.attributesToInherit.push("x1","y1","x2","y2"),Hn}return Bf(LinearGradientElement,[{key:"getGradient",value:function getGradient(Tn,Un){var Qn="objectBoundingBox"===this.getGradientUnits(),Dn=Qn?Un.getBoundingBox(Tn):null;if(Qn&&!Dn)return null;this.getAttribute("x1").hasValue()||this.getAttribute("y1").hasValue()||this.getAttribute("x2").hasValue()||this.getAttribute("y2").hasValue()||(this.getAttribute("x1",!0).setValue(0),this.getAttribute("y1",!0).setValue(0),this.getAttribute("x2",!0).setValue(1),this.getAttribute("y2",!0).setValue(0));var Hn=Qn?Dn.x+Dn.width*this.getAttribute("x1").getNumber():this.getAttribute("x1").getPixels("x"),Gn=Qn?Dn.y+Dn.height*this.getAttribute("y1").getNumber():this.getAttribute("y1").getPixels("y"),Vn=Qn?Dn.x+Dn.width*this.getAttribute("x2").getNumber():this.getAttribute("x2").getPixels("x"),zn=Qn?Dn.y+Dn.height*this.getAttribute("y2").getNumber():this.getAttribute("y2").getPixels("y");return Hn===Vn&&Gn===zn?null:Tn.createLinearGradient(Hn,Gn,Vn,zn)}}]),LinearGradientElement}();function _isNativeReflectConstruct$m(){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(Tn){return!1}}var $m=function(Tn){zf(RadialGradientElement,Ym);var Un=function _createSuper$m(Tn){return function(){var Un,Qn=Gf(Tn);if(_isNativeReflectConstruct$m()){var Dn=Gf(this).constructor;Un=Reflect.construct(Qn,arguments,Dn)}else Un=Qn.apply(this,arguments);return Hf(this,Un)}}(RadialGradientElement);function RadialGradientElement(Tn,Qn,Dn){var Hn;return kf(this,RadialGradientElement),(Hn=Un.call(this,Tn,Qn,Dn)).type="radialGradient",Hn.attributesToInherit.push("cx","cy","r","fx","fy","fr"),Hn}return Bf(RadialGradientElement,[{key:"getGradient",value:function getGradient(Tn,Un){var Qn="objectBoundingBox"===this.getGradientUnits(),Dn=Un.getBoundingBox(Tn);if(Qn&&!Dn)return null;this.getAttribute("cx").hasValue()||this.getAttribute("cx",!0).setValue("50%"),this.getAttribute("cy").hasValue()||this.getAttribute("cy",!0).setValue("50%"),this.getAttribute("r").hasValue()||this.getAttribute("r",!0).setValue("50%");var Hn=Qn?Dn.x+Dn.width*this.getAttribute("cx").getNumber():this.getAttribute("cx").getPixels("x"),Gn=Qn?Dn.y+Dn.height*this.getAttribute("cy").getNumber():this.getAttribute("cy").getPixels("y"),Vn=Hn,zn=Gn;this.getAttribute("fx").hasValue()&&(Vn=Qn?Dn.x+Dn.width*this.getAttribute("fx").getNumber():this.getAttribute("fx").getPixels("x")),this.getAttribute("fy").hasValue()&&(zn=Qn?Dn.y+Dn.height*this.getAttribute("fy").getNumber():this.getAttribute("fy").getPixels("y"));var Kn=Qn?(Dn.width+Dn.height)/2*this.getAttribute("r").getNumber():this.getAttribute("r").getPixels(),Wn=this.getAttribute("fr").getPixels();return Tn.createRadialGradient(Vn,zn,Wn,Hn,Gn,Kn)}}]),RadialGradientElement}();function _isNativeReflectConstruct$n(){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(Tn){return!1}}var Zm=function(Tn){zf(StopElement,Nm);var Un=function _createSuper$n(Tn){return function(){var Un,Qn=Gf(Tn);if(_isNativeReflectConstruct$n()){var Dn=Gf(this).constructor;Un=Reflect.construct(Qn,arguments,Dn)}else Un=Qn.apply(this,arguments);return Hf(this,Un)}}(StopElement);function StopElement(Tn,Qn,Dn){var Hn;kf(this,StopElement),(Hn=Un.call(this,Tn,Qn,Dn)).type="stop";var Gn=Math.max(0,Math.min(1,Hn.getAttribute("offset").getNumber())),Vn=Hn.getStyle("stop-opacity"),zn=Hn.getStyle("stop-color",!0);return""===zn.getString()&&zn.setValue("#000"),Vn.hasValue()&&(zn=zn.addOpacity(Vn)),Hn.offset=Gn,Hn.color=zn.getColor(),Hn}return StopElement}();function _isNativeReflectConstruct$o(){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(Tn){return!1}}var e_=function(Tn){zf(AnimateElement,Nm);var Un=function _createSuper$o(Tn){return function(){var Un,Qn=Gf(Tn);if(_isNativeReflectConstruct$o()){var Dn=Gf(this).constructor;Un=Reflect.construct(Qn,arguments,Dn)}else Un=Qn.apply(this,arguments);return Hf(this,Un)}}(AnimateElement);function AnimateElement(Tn,Qn,Dn){var Hn;return kf(this,AnimateElement),(Hn=Un.call(this,Tn,Qn,Dn)).type="animate",Hn.duration=0,Hn.initialValue=null,Hn.initialUnits="",Hn.removed=!1,Hn.frozen=!1,Tn.screen.animations.push(jf(Hn)),Hn.begin=Hn.getAttribute("begin").getMilliseconds(),Hn.maxDuration=Hn.begin+Hn.getAttribute("dur").getMilliseconds(),Hn.from=Hn.getAttribute("from"),Hn.to=Hn.getAttribute("to"),Hn.values=Hn.getAttribute("values"),Hn.values.hasValue()&&Hn.values.setValue(Hn.values.getString().split(";")),Hn}return Bf(AnimateElement,[{key:"getProperty",value:function getProperty(){var Tn=this.getAttribute("attributeType").getString(),Un=this.getAttribute("attributeName").getString();return"CSS"===Tn?this.parent.getStyle(Un,!0):this.parent.getAttribute(Un,!0)}},{key:"calcValue",value:function calcValue(){var Tn=this.initialUnits,Un=this.getProgress(),Qn=Un.progress,Dn=Un.from,Hn=Un.to,Gn=Dn.getNumber()+(Hn.getNumber()-Dn.getNumber())*Qn;return"%"===Tn&&(Gn*=100),"".concat(Gn).concat(Tn)}},{key:"update",value:function update(Tn){var Un=this.parent,Qn=this.getProperty();if(this.initialValue||(this.initialValue=Qn.getString(),this.initialUnits=Qn.getUnits()),this.duration>this.maxDuration){var Dn=this.getAttribute("fill").getString("remove");if("indefinite"===this.getAttribute("repeatCount").getString()||"indefinite"===this.getAttribute("repeatDur").getString())this.duration=0;else if("freeze"!==Dn||this.frozen){if("remove"===Dn&&!this.removed)return this.removed=!0,Qn.setValue(Un.animationFrozen?Un.animationFrozenValue:this.initialValue),!0}else this.frozen=!0,Un.animationFrozen=!0,Un.animationFrozenValue=Qn.getString();return!1}this.duration+=Tn;var Hn=!1;if(this.begin=Tn.length?{done:!0}:{done:!1,value:Tn[Un++]}},e:function e(Tn){throw Tn},f:Qn}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var Dn,Hn,Gn=!0,Vn=!1;return{s:function s(){Dn=Tn[Symbol.iterator]()},n:function n(){var Tn=Dn.next();return Gn=Tn.done,Tn},e:function e(Tn){Vn=!0,Hn=Tn},f:function f(){try{Gn||null==Dn.return||Dn.return()}finally{if(Vn)throw Hn}}}}function _arrayLikeToArray$2(Tn,Un){(null==Un||Un>Tn.length)&&(Un=Tn.length);for(var Qn=0,Dn=new Array(Un);Qn0&&Array.from(Gn).every((function(Tn){return 3===Tn.nodeType}));return Hn.hasText=zn,Hn.text=zn?Hn.getTextFromNode(Vn):"",Hn}return Bf(AElement,[{key:"getText",value:function getText(){return this.text}},{key:"renderChildren",value:function renderChildren(Tn){if(this.hasText){Jf(Gf(AElement.prototype),"renderChildren",this).call(this,Tn);var Un=this.document,Qn=this.x,Dn=this.y,Hn=Un.screen.mouse,Gn=new cm(Un,"fontSize",Tm.parse(Un.ctx.font).fontSize);Hn.isWorking()&&Hn.checkBoundingBox(this,new Pm(Qn,Dn-Gn.getPixels("y"),Qn+this.measureText(Tn),Dn))}else if(this.children.length>0){var Vn=new Xm(this.document,null);Vn.children=this.children,Vn.parent=this,Vn.render(Tn)}}},{key:"onClick",value:function onClick(){var Tn=this.document.window;Tn&&Tn.open(this.getHrefAttribute().getString())}},{key:"onMouseMove",value:function onMouseMove(){this.document.ctx.canvas.style.cursor="pointer"}}]),AElement}();function _createForOfIteratorHelper$1$1(Tn){if("undefined"==typeof Symbol||null==Tn[Symbol.iterator]){if(Array.isArray(Tn)||(Tn=function _unsupportedIterableToArray$1$1(Tn,Un){if(!Tn)return;if("string"==typeof Tn)return _arrayLikeToArray$1$1(Tn,Un);var Qn=Object.prototype.toString.call(Tn).slice(8,-1);"Object"===Qn&&Tn.constructor&&(Qn=Tn.constructor.name);if("Map"===Qn||"Set"===Qn)return Array.from(Qn);if("Arguments"===Qn||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(Qn))return _arrayLikeToArray$1$1(Tn,Un)}(Tn))){var Un=0,Qn=function F(){};return{s:Qn,n:function n(){return Un>=Tn.length?{done:!0}:{done:!1,value:Tn[Un++]}},e:function e(Tn){throw Tn},f:Qn}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var Dn,Hn,Gn=!0,Vn=!1;return{s:function s(){Dn=Tn[Symbol.iterator]()},n:function n(){var Tn=Dn.next();return Gn=Tn.done,Tn},e:function e(Tn){Vn=!0,Hn=Tn},f:function f(){try{Gn||null==Dn.return||Dn.return()}finally{if(Vn)throw Hn}}}}function _arrayLikeToArray$1$1(Tn,Un){(null==Un||Un>Tn.length)&&(Un=Tn.length);for(var Qn=0,Dn=new Array(Un);Qnzn?Vn:zn,$n=Vn>zn?1:Vn/zn,Zn=Vn>zn?zn/Vn:1;Tn&&(Tn.translate(Hn,Gn),Tn.rotate(Xn),Tn.scale($n,Zn),Tn.arc(0,0,Jn,Kn,Kn+Wn,Boolean(1-Yn)),Tn.scale(1/$n,1/Zn),Tn.rotate(-Xn),Tn.translate(-Hn,-Gn));break;case"z":Tn&&Tn.closePath()}}))}},{key:"renderChildren",value:function renderChildren(Tn){this.setTextData(Tn),Tn.save();var Un=this.parent.getStyle("text-decoration").getString(),Qn=this.getFontSize(),Dn=this.glyphInfo,Hn=Tn.fillStyle;"underline"===Un&&Tn.beginPath(),Dn.forEach((function(Hn,Gn){var Vn=Hn.p0,zn=Hn.p1,Kn=Hn.text;Tn.save(),Tn.translate(Vn.x,Vn.y),Tn.rotate(Dn[Gn].rotation),Tn.fillStyle&&Tn.fillText(Kn,0,0),Tn.strokeStyle&&Tn.strokeText(Kn,0,0),Tn.restore(),"underline"===Un&&(0===Gn&&Tn.moveTo(Vn.x,Vn.y+Qn/8),Tn.lineTo(zn.x,zn.y+Qn/5))})),"underline"===Un&&(Tn.lineWidth=Qn/20,Tn.strokeStyle=Hn,Tn.stroke(),Tn.closePath()),Tn.restore()}},{key:"getLetterSpacingAt",value:function getLetterSpacingAt(){var Tn=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;return this.letterSpacingCache[Tn]||0}},{key:"findSegmentToFitChar",value:function findSegmentToFitChar(Tn,Un,Qn,Dn,Hn,Gn,Vn,zn){var Kn=Gn,Wn=this.measureText(Tn,Vn);" "===Vn&&"justify"===Un&&Qn-1&&(Kn+=this.getLetterSpacingAt(zn));var Xn=this.textHeight/20,Yn={p0:this.getEquidistantPointOnPath(Kn,Xn),p1:this.getEquidistantPointOnPath(Kn+Wn,Xn)};return{offset:Kn+=Wn,segment:Yn}}},{key:"measureText",value:function measureText(Tn,Un){var Qn=this.measuresCache,Dn=Un||this.getText();if(Qn.has(Dn))return Qn.get(Dn);var Hn=this.measureTargetText(Tn,Dn);return Qn.set(Dn,Hn),Hn}},{key:"setTextData",value:function setTextData(Tn){var Un=this;if(!this.glyphInfo){var Qn=this.getText(),Dn=Qn.split(""),Hn=Qn.split(" ").length-1,Gn=toNumbers(this.parent.getAttribute("dx").getString("0")),Vn=this.parent.getStyle("text-anchor").getString("start"),zn=this.getStyle("letter-spacing"),Kn=this.parent.getStyle("letter-spacing"),Wn=0;zn.hasValue()&&"inherit"!==zn.getValue()?zn.hasValue()&&"initial"!==zn.getValue()&&"unset"!==zn.getValue()&&(Wn=zn.getPixels()):Wn=Kn.getPixels();var Xn=[],Yn=Qn.length;this.letterSpacingCache=Xn;for(var Jn=0;Jn1&&(Qn*=Math.sqrt(Wn),Dn*=Math.sqrt(Wn));var Xn=(Gn===Vn?-1:1)*Math.sqrt((Math.pow(Qn,2)*Math.pow(Dn,2)-Math.pow(Qn,2)*Math.pow(Kn.y,2)-Math.pow(Dn,2)*Math.pow(Kn.x,2))/(Math.pow(Qn,2)*Math.pow(Kn.y,2)+Math.pow(Dn,2)*Math.pow(Kn.x,2)));isNaN(Xn)&&(Xn=0);var Yn=new dm(Xn*Qn*Kn.y/Dn,Xn*-Dn*Kn.x/Qn),Jn=new dm((Un.x+zn.x)/2+Math.cos(Hn)*Yn.x-Math.sin(Hn)*Yn.y,(Un.y+zn.y)/2+Math.sin(Hn)*Yn.x+Math.cos(Hn)*Yn.y),$n=vectorsAngle([1,0],[(Kn.x-Yn.x)/Qn,(Kn.y-Yn.y)/Dn]),Zn=[(Kn.x-Yn.x)/Qn,(Kn.y-Yn.y)/Dn],er=[(-Kn.x-Yn.x)/Qn,(-Kn.y-Yn.y)/Dn],tr=vectorsAngle(Zn,er);return vectorsRatio(Zn,er)<=-1&&(tr=Math.PI),vectorsRatio(Zn,er)>=1&&(tr=0),0===Vn&&tr>0&&(tr-=2*Math.PI),1===Vn&&tr<0&&(tr+=2*Math.PI),[Jn.x,Jn.y,Qn,Dn,$n,tr,Hn,Vn]}}},{key:"calcLength",value:function calcLength(Tn,Un,Qn,Dn){var Hn=0,Gn=null,Vn=null,zn=0;switch(Qn){case"L":return this.getLineLength(Tn,Un,Dn[0],Dn[1]);case"C":for(Hn=0,Gn=this.getPointOnCubicBezier(0,Tn,Un,Dn[0],Dn[1],Dn[2],Dn[3],Dn[4],Dn[5]),zn=.01;zn<=1;zn+=.01)Vn=this.getPointOnCubicBezier(zn,Tn,Un,Dn[0],Dn[1],Dn[2],Dn[3],Dn[4],Dn[5]),Hn+=this.getLineLength(Gn.x,Gn.y,Vn.x,Vn.y),Gn=Vn;return Hn;case"Q":for(Hn=0,Gn=this.getPointOnQuadraticBezier(0,Tn,Un,Dn[0],Dn[1],Dn[2],Dn[3]),zn=.01;zn<=1;zn+=.01)Vn=this.getPointOnQuadraticBezier(zn,Tn,Un,Dn[0],Dn[1],Dn[2],Dn[3]),Hn+=this.getLineLength(Gn.x,Gn.y,Vn.x,Vn.y),Gn=Vn;return Hn;case"A":Hn=0;var Kn=Dn[4],Wn=Dn[5],Xn=Dn[4]+Wn,Yn=Math.PI/180;if(Math.abs(Kn-Xn)Xn;zn-=Yn)Vn=this.getPointOnEllipticalArc(Dn[0],Dn[1],Dn[2],Dn[3],zn,0),Hn+=this.getLineLength(Gn.x,Gn.y,Vn.x,Vn.y),Gn=Vn;else for(zn=Kn+Yn;zn5&&void 0!==arguments[5]?arguments[5]:Un,Vn=arguments.length>6&&void 0!==arguments[6]?arguments[6]:Qn,zn=(Hn-Qn)/(Dn-Un+1e-8),Kn=Math.sqrt(Tn*Tn/(1+zn*zn));DnUn)return null;var Hn,Gn=_createForOfIteratorHelper$1$1(this.dataArray);try{for(Gn.s();!(Hn=Gn.n()).done;){var Vn=Hn.value;if(!Vn||!(Vn.pathLength<5e-5||Qn+Vn.pathLength+5e-5=0&&Kn>Yn)break;Dn=this.getPointOnEllipticalArc(Vn.points[0],Vn.points[1],Vn.points[2],Vn.points[3],Kn,Vn.points[6]);break;case"C":(Kn=zn/Vn.pathLength)>1&&(Kn=1),Dn=this.getPointOnCubicBezier(Kn,Vn.start.x,Vn.start.y,Vn.points[0],Vn.points[1],Vn.points[2],Vn.points[3],Vn.points[4],Vn.points[5]);break;case"Q":(Kn=zn/Vn.pathLength)>1&&(Kn=1),Dn=this.getPointOnQuadraticBezier(Kn,Vn.start.x,Vn.start.y,Vn.points[0],Vn.points[1],Vn.points[2],Vn.points[3])}if(Dn)return Dn;break}Qn+=Vn.pathLength}}catch(Tn){Gn.e(Tn)}finally{Gn.f()}return null}},{key:"getLineLength",value:function getLineLength(Tn,Un,Qn,Dn){return Math.sqrt((Qn-Tn)*(Qn-Tn)+(Dn-Un)*(Dn-Un))}},{key:"getPathLength",value:function getPathLength(){return-1===this.pathLength&&(this.pathLength=this.dataArray.reduce((function(Tn,Un){return Un.pathLength>0?Tn+Un.pathLength:Tn}),0)),this.pathLength}},{key:"getPointOnCubicBezier",value:function getPointOnCubicBezier(Tn,Un,Qn,Dn,Hn,Gn,Vn,zn,Kn){return{x:zn*CB1(Tn)+Gn*CB2(Tn)+Dn*CB3(Tn)+Un*CB4(Tn),y:Kn*CB1(Tn)+Vn*CB2(Tn)+Hn*CB3(Tn)+Qn*CB4(Tn)}}},{key:"getPointOnQuadraticBezier",value:function getPointOnQuadraticBezier(Tn,Un,Qn,Dn,Hn,Gn,Vn){return{x:Gn*QB1(Tn)+Dn*QB2(Tn)+Un*QB3(Tn),y:Vn*QB1(Tn)+Hn*QB2(Tn)+Qn*QB3(Tn)}}},{key:"getPointOnEllipticalArc",value:function getPointOnEllipticalArc(Tn,Un,Qn,Dn,Hn,Gn){var Vn=Math.cos(Gn),zn=Math.sin(Gn),Kn=Qn*Math.cos(Hn),Wn=Dn*Math.sin(Hn);return{x:Tn+(Kn*Vn-Wn*zn),y:Un+(Kn*zn+Wn*Vn)}}},{key:"buildEquidistantCache",value:function buildEquidistantCache(Tn,Un){var Qn=this.getPathLength(),Dn=Un||.25,Hn=Tn||Qn/100;if(!this.equidistantCache||this.equidistantCache.step!==Hn||this.equidistantCache.precision!==Dn){this.equidistantCache={step:Hn,precision:Dn,points:[]};for(var Gn=0,Vn=0;Vn<=Qn;Vn+=Dn){var zn=this.getPointOnPath(Vn),Kn=this.getPointOnPath(Vn+Dn);zn&&Kn&&((Gn+=this.getLineLength(zn.x,zn.y,Kn.x,Kn.y))>=Hn&&(this.equidistantCache.points.push({x:zn.x,y:zn.y,distance:Vn}),Gn-=Hn))}}}},{key:"getEquidistantPointOnPath",value:function getEquidistantPointOnPath(Tn,Un,Qn){if(this.buildEquidistantCache(Un,Qn),Tn<0||Tn-this.getPathLength()>5e-5)return null;var Dn=Math.round(Tn/this.getPathLength()*(this.equidistantCache.points.length-1));return this.equidistantCache.points[Dn]||null}}]),TextPathElement}();function _isNativeReflectConstruct$y(){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(Tn){return!1}}var u_=function(Tn){zf(ImageElement,Fm);var Un,Qn,Dn=function _createSuper$y(Tn){return function(){var Un,Qn=Gf(Tn);if(_isNativeReflectConstruct$y()){var Dn=Gf(this).constructor;Un=Reflect.construct(Qn,arguments,Dn)}else Un=Qn.apply(this,arguments);return Hf(this,Un)}}(ImageElement);function ImageElement(Tn,Un,Qn){var Hn;kf(this,ImageElement),(Hn=Dn.call(this,Tn,Un,Qn)).type="image",Hn.loaded=!1;var Gn=Hn.getHrefAttribute().getString();if(!Gn)return Hf(Hn);var Vn=/\.svg$/.test(Gn);return Tn.images.push(jf(Hn)),Vn?Hn.loadSvg(Gn):Hn.loadImage(Gn),Hn.isSvg=Vn,Hn}return Bf(ImageElement,[{key:"loadImage",value:(Qn=xf(Sf.mark((function _callee(Tn){var Un;return Sf.wrap((function _callee$(Qn){for(;;)switch(Qn.prev=Qn.next){case 0:return Qn.prev=0,Qn.next=3,this.document.createImage(Tn);case 3:Un=Qn.sent,this.image=Un,Qn.next=10;break;case 7:Qn.prev=7,Qn.t0=Qn.catch(0),console.error('Error while loading image "'.concat(Tn,'":'),Qn.t0);case 10:this.loaded=!0;case 11:case"end":return Qn.stop()}}),_callee,this,[[0,7]])}))),function loadImage(Tn){return Qn.apply(this,arguments)})},{key:"loadSvg",value:(Un=xf(Sf.mark((function _callee2(Tn){var Un,Qn;return Sf.wrap((function _callee2$(Dn){for(;;)switch(Dn.prev=Dn.next){case 0:return Dn.prev=0,Dn.next=3,this.document.fetch(Tn);case 3:return Un=Dn.sent,Dn.next=6,Un.text();case 6:Qn=Dn.sent,this.image=Qn,Dn.next=13;break;case 10:Dn.prev=10,Dn.t0=Dn.catch(0),console.error('Error while loading image "'.concat(Tn,'":'),Dn.t0);case 13:this.loaded=!0;case 14:case"end":return Dn.stop()}}),_callee2,this,[[0,10]])}))),function loadSvg(Tn){return Un.apply(this,arguments)})},{key:"renderChildren",value:function renderChildren(Tn){var Un=this.document,Qn=this.image,Dn=this.loaded,Hn=this.getAttribute("x").getPixels("x"),Gn=this.getAttribute("y").getPixels("y"),Vn=this.getStyle("width").getPixels("x"),zn=this.getStyle("height").getPixels("y");if(Dn&&Qn&&Vn&&zn){if(Tn.save(),this.isSvg)Un.canvg.forkString(Tn,this.image,{ignoreMouse:!0,ignoreAnimation:!0,ignoreDimensions:!0,ignoreClear:!0,offsetX:Hn,offsetY:Gn,scaleWidth:Vn,scaleHeight:zn}).render();else{var Kn=this.image;Tn.translate(Hn,Gn),Un.setViewBox({ctx:Tn,aspectRatio:this.getAttribute("preserveAspectRatio").getString(),width:Vn,desiredWidth:Kn.width,height:zn,desiredHeight:Kn.height}),this.loaded&&(void 0===Kn.complete||Kn.complete)&&Tn.drawImage(Kn,0,0)}Tn.restore()}}},{key:"getBoundingBox",value:function getBoundingBox(){var Tn=this.getAttribute("x").getPixels("x"),Un=this.getAttribute("y").getPixels("y"),Qn=this.getStyle("width").getPixels("x"),Dn=this.getStyle("height").getPixels("y");return new Pm(Tn,Un,Tn+Qn,Un+Dn)}}]),ImageElement}();function _isNativeReflectConstruct$z(){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(Tn){return!1}}var d_=function(Tn){zf(SymbolElement,Fm);var Un=function _createSuper$z(Tn){return function(){var Un,Qn=Gf(Tn);if(_isNativeReflectConstruct$z()){var Dn=Gf(this).constructor;Un=Reflect.construct(Qn,arguments,Dn)}else Un=Qn.apply(this,arguments);return Hf(this,Un)}}(SymbolElement);function SymbolElement(){var Tn;return kf(this,SymbolElement),(Tn=Un.apply(this,arguments)).type="symbol",Tn}return Bf(SymbolElement,[{key:"render",value:function render(Tn){}}]),SymbolElement}(),h_=function(){function SVGFontLoader(Tn){kf(this,SVGFontLoader),this.document=Tn,this.loaded=!1,Tn.fonts.push(this)}var Tn;return Bf(SVGFontLoader,[{key:"load",value:(Tn=xf(Sf.mark((function _callee(Tn,Un){var Qn,Dn,Hn;return Sf.wrap((function _callee$(Gn){for(;;)switch(Gn.prev=Gn.next){case 0:return Gn.prev=0,Qn=this.document,Gn.next=4,Qn.canvg.parser.load(Un);case 4:Dn=Gn.sent,Hn=Dn.getElementsByTagName("font"),Array.from(Hn).forEach((function(Un){var Dn=Qn.createElement(Un);Qn.definitions[Tn]=Dn})),Gn.next=12;break;case 9:Gn.prev=9,Gn.t0=Gn.catch(0),console.error('Error while loading font "'.concat(Un,'":'),Gn.t0);case 12:this.loaded=!0;case 13:case"end":return Gn.stop()}}),_callee,this,[[0,9]])}))),function load(Un,Qn){return Tn.apply(this,arguments)})}]),SVGFontLoader}();function _isNativeReflectConstruct$A(){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(Tn){return!1}}var p_=function(Tn){zf(StyleElement,Nm);var Un=function _createSuper$A(Tn){return function(){var Un,Qn=Gf(Tn);if(_isNativeReflectConstruct$A()){var Dn=Gf(this).constructor;Un=Reflect.construct(Qn,arguments,Dn)}else Un=Qn.apply(this,arguments);return Hf(this,Un)}}(StyleElement);function StyleElement(Tn,Qn,Dn){var Hn;return kf(this,StyleElement),(Hn=Un.call(this,Tn,Qn,Dn)).type="style",compressSpaces(Array.from(Qn.childNodes).map((function(Tn){return Tn.data})).join("").replace(/(\/\*([^*]|[\r\n]|(\*+([^*\/]|[\r\n])))*\*+\/)|(^[\s]*\/\/.*)/gm,"").replace(/@import.*;/g,"")).split("}").forEach((function(Un){var Qn=Un.trim();if(Qn){var Dn=Qn.split("{"),Hn=Dn[0].split(","),Gn=Dn[1].split(";");Hn.forEach((function(Un){var Qn=Un.trim();if(Qn){var Dn=Tn.styles[Qn]||{};if(Gn.forEach((function(Un){var Qn=Un.indexOf(":"),Hn=Un.substr(0,Qn).trim(),Gn=Un.substr(Qn+1,Un.length-Qn).trim();Hn&&Gn&&(Dn[Hn]=new cm(Tn,Hn,Gn))})),Tn.styles[Qn]=Dn,Tn.stylesSpecificity[Qn]=getSelectorSpecificity(Qn),"@font-face"===Qn){var Hn=Dn["font-family"].getString().replace(/"|'/g,"");Dn.src.getString().split(",").forEach((function(Un){if(Un.indexOf('format("svg")')>0){var Qn=parseExternalUrl(Un);Qn&&new h_(Tn).load(Hn,Qn)}}))}}}))}})),Hn}return StyleElement}();function _isNativeReflectConstruct$B(){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(Tn){return!1}}p_.parseExternalUrl=parseExternalUrl;var A_=function(Tn){zf(UseElement,Fm);var Un=function _createSuper$B(Tn){return function(){var Un,Qn=Gf(Tn);if(_isNativeReflectConstruct$B()){var Dn=Gf(this).constructor;Un=Reflect.construct(Qn,arguments,Dn)}else Un=Qn.apply(this,arguments);return Hf(this,Un)}}(UseElement);function UseElement(){var Tn;return kf(this,UseElement),(Tn=Un.apply(this,arguments)).type="use",Tn}return Bf(UseElement,[{key:"setContext",value:function setContext(Tn){Jf(Gf(UseElement.prototype),"setContext",this).call(this,Tn);var Un=this.getAttribute("x"),Qn=this.getAttribute("y");Un.hasValue()&&Tn.translate(Un.getPixels("x"),0),Qn.hasValue()&&Tn.translate(0,Qn.getPixels("y"))}},{key:"path",value:function path(Tn){var Un=this.element;Un&&Un.path(Tn)}},{key:"renderChildren",value:function renderChildren(Tn){var Un=this.document,Qn=this.element;if(Qn){var Dn=Qn;if("symbol"===Qn.type&&((Dn=new Qm(Un,null)).attributes.viewBox=new cm(Un,"viewBox",Qn.getAttribute("viewBox").getString()),Dn.attributes.preserveAspectRatio=new cm(Un,"preserveAspectRatio",Qn.getAttribute("preserveAspectRatio").getString()),Dn.attributes.overflow=new cm(Un,"overflow",Qn.getAttribute("overflow").getString()),Dn.children=Qn.children),"svg"===Dn.type){var Hn=this.getStyle("width",!1,!0),Gn=this.getStyle("height",!1,!0);Hn.hasValue()&&(Dn.attributes.width=new cm(Un,"width",Hn.getString())),Gn.hasValue()&&(Dn.attributes.height=new cm(Un,"height",Gn.getString()))}var Vn=Dn.parent;Dn.parent=this,Dn.render(Tn),Dn.parent=Vn}}},{key:"getBoundingBox",value:function getBoundingBox(Tn){var Un=this.element;return Un?Un.getBoundingBox(Tn):null}},{key:"elementTransform",value:function elementTransform(){var Tn=this.document,Un=this.element;return Em.fromElement(Tn,Un)}},{key:"element",get:function get(){return this._element||(this._element=this.getHrefAttribute().getDefinition()),this._element}}]),UseElement}();function _isNativeReflectConstruct$C(){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(Tn){return!1}}function imGet(Tn,Un,Qn,Dn,Hn,Gn){return Tn[Qn*Dn*4+4*Un+Gn]}function imSet(Tn,Un,Qn,Dn,Hn,Gn,Vn){Tn[Qn*Dn*4+4*Un+Gn]=Vn}function m(Tn,Un,Qn){var Dn=Tn[Un];return Dn*(Dn<0?Qn-255:Qn)}function c(Tn,Un,Qn,Dn){return Un+Math.cos(Tn)*Qn+Math.sin(Tn)*Dn}var g_=function(Tn){zf(FeColorMatrixElement,Nm);var Un=function _createSuper$C(Tn){return function(){var Un,Qn=Gf(Tn);if(_isNativeReflectConstruct$C()){var Dn=Gf(this).constructor;Un=Reflect.construct(Qn,arguments,Dn)}else Un=Qn.apply(this,arguments);return Hf(this,Un)}}(FeColorMatrixElement);function FeColorMatrixElement(Tn,Qn,Dn){var Hn;kf(this,FeColorMatrixElement),(Hn=Un.call(this,Tn,Qn,Dn)).type="feColorMatrix";var Gn=toNumbers(Hn.getAttribute("values").getString());switch(Hn.getAttribute("type").getString("matrix")){case"saturate":var Vn=Gn[0];Gn=[.213+.787*Vn,.715-.715*Vn,.072-.072*Vn,0,0,.213-.213*Vn,.715+.285*Vn,.072-.072*Vn,0,0,.213-.213*Vn,.715-.715*Vn,.072+.928*Vn,0,0,0,0,0,1,0,0,0,0,0,1];break;case"hueRotate":var zn=Gn[0]*Math.PI/180;Gn=[c(zn,.213,.787,-.213),c(zn,.715,-.715,-.715),c(zn,.072,-.072,.928),0,0,c(zn,.213,-.213,.143),c(zn,.715,.285,.14),c(zn,.072,-.072,-.283),0,0,c(zn,.213,-.213,-.787),c(zn,.715,-.715,.715),c(zn,.072,.928,.072),0,0,0,0,0,1,0,0,0,0,0,1];break;case"luminanceToAlpha":Gn=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,.2125,.7154,.0721,0,0,0,0,0,0,1]}return Hn.matrix=Gn,Hn.includeOpacity=Hn.getAttribute("includeOpacity").hasValue(),Hn}return Bf(FeColorMatrixElement,[{key:"apply",value:function apply(Tn,Un,Qn,Dn,Hn){for(var Gn=this.includeOpacity,Vn=this.matrix,zn=Tn.getImageData(0,0,Dn,Hn),Kn=0;Kn1&&void 0!==Dn[1]&&Dn[1],Qn=document.createElement("img"),Un&&(Qn.crossOrigin="Anonymous"),Hn.abrupt("return",new Promise((function(Un,Dn){Qn.onload=function(){Un(Qn)},Qn.onerror=function(){Dn()},Qn.src=Tn})));case 4:case"end":return Hn.stop()}}),_callee)})))).apply(this,arguments)}var N_=function(){function Document(Tn){var Un=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},Qn=Un.rootEmSize,Dn=void 0===Qn?12:Qn,Hn=Un.emSize,Gn=void 0===Hn?12:Hn,Vn=Un.createCanvas,zn=void 0===Vn?Document.createCanvas:Vn,Kn=Un.createImage,Wn=void 0===Kn?Document.createImage:Kn,Xn=Un.anonymousCrossOrigin;kf(this,Document),this.canvg=Tn,this.definitions={},this.styles={},this.stylesSpecificity={},this.images=[],this.fonts=[],this.emSizeStack=[],this.uniqueId=0,this.screen=Tn.screen,this.rootEmSize=Dn,this.emSize=Gn,this.createCanvas=zn,this.createImage=this.bindCreateImage(Wn,Xn),this.screen.wait(this.isImagesLoaded.bind(this)),this.screen.wait(this.isFontsLoaded.bind(this))}return Bf(Document,[{key:"bindCreateImage",value:function bindCreateImage(Tn,Un){return"boolean"==typeof Un?function(Qn,Dn){return Tn(Qn,"boolean"==typeof Dn?Dn:Un)}:Tn}},{key:"popEmSize",value:function popEmSize(){this.emSizeStack.pop()}},{key:"getUniqueId",value:function getUniqueId(){return"canvg".concat(++this.uniqueId)}},{key:"isImagesLoaded",value:function isImagesLoaded(){return this.images.every((function(Tn){return Tn.loaded}))}},{key:"isFontsLoaded",value:function isFontsLoaded(){return this.fonts.every((function(Tn){return Tn.loaded}))}},{key:"createDocumentElement",value:function createDocumentElement(Tn){var Un=this.createElement(Tn.documentElement);return Un.root=!0,Un.addStylesFromStyleDefinition(),this.documentElement=Un,Un}},{key:"createElement",value:function createElement(Tn){var Un=Tn.nodeName.replace(/^[^:]+:/,""),Qn=Document.elementTypes[Un];return void 0!==Qn?new Qn(this,Tn):new Lm(this,Tn)}},{key:"createTextNode",value:function createTextNode(Tn){return new Rm(this,Tn)}},{key:"setViewBox",value:function setViewBox(Tn){this.screen.setViewBox(function _objectSpread(Tn){for(var Un=1;Un2&&void 0!==arguments[2]?arguments[2]:{};kf(this,Canvg),this.parser=new vm(Qn),this.screen=new gm(Tn,Qn),this.options=Qn;var Dn=new N_(this,Qn),Hn=Dn.createDocumentElement(Un);this.document=Dn,this.documentElement=Hn}var Tn,Un;return Bf(Canvg,[{key:"fork",value:function fork(Tn,Un){var Qn=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return Canvg.from(Tn,Un,_objectSpread$1({},this.options,{},Qn))}},{key:"forkString",value:function forkString(Tn,Un){var Qn=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return Canvg.fromString(Tn,Un,_objectSpread$1({},this.options,{},Qn))}},{key:"ready",value:function ready(){return this.screen.ready()}},{key:"isReady",value:function isReady(){return this.screen.isReady()}},{key:"render",value:(Un=xf(Sf.mark((function _callee(){var Tn,Un=arguments;return Sf.wrap((function _callee$(Qn){for(;;)switch(Qn.prev=Qn.next){case 0:return Tn=Un.length>0&&void 0!==Un[0]?Un[0]:{},this.start(_objectSpread$1({enableRedraw:!0,ignoreAnimation:!0,ignoreMouse:!0},Tn)),Qn.next=4,this.ready();case 4:this.stop();case 5:case"end":return Qn.stop()}}),_callee,this)}))),function render(){return Un.apply(this,arguments)})},{key:"start",value:function start(){var Tn=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},Un=this.documentElement,Qn=this.screen,Dn=this.options;Qn.start(Un,_objectSpread$1({enableRedraw:!0},Dn,{},Tn))}},{key:"stop",value:function stop(){this.screen.stop()}},{key:"resize",value:function resize(Tn){var Un=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Tn,Qn=arguments.length>2&&void 0!==arguments[2]&&arguments[2];this.documentElement.resize(Tn,Un,Qn)}}],[{key:"from",value:(Tn=xf(Sf.mark((function _callee2(Tn,Un){var Qn,Dn,Hn,Gn=arguments;return Sf.wrap((function _callee2$(Vn){for(;;)switch(Vn.prev=Vn.next){case 0:return Qn=Gn.length>2&&void 0!==Gn[2]?Gn[2]:{},Dn=new vm(Qn),Vn.next=4,Dn.parse(Un);case 4:return Hn=Vn.sent,Vn.abrupt("return",new Canvg(Tn,Hn,Qn));case 6:case"end":return Vn.stop()}}),_callee2)}))),function from(Un,Qn){return Tn.apply(this,arguments)})},{key:"fromString",value:function fromString(Tn,Un){var Qn=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},Dn=new vm(Qn),Hn=Dn.parseFromString(Un);return new Canvg(Tn,Hn,Qn)}}]),Canvg}();var T_=Object.freeze({__proto__:null,offscreen:function offscreen(){var Tn=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},Un=Tn.DOMParser,Qn={window:null,ignoreAnimation:!0,ignoreMouse:!0,DOMParser:Un,createCanvas:function createCanvas(Tn,Un){return new OffscreenCanvas(Tn,Un)},createImage:function createImage(Tn){return xf(Sf.mark((function _callee(){var Un,Qn,Dn;return Sf.wrap((function _callee$(Hn){for(;;)switch(Hn.prev=Hn.next){case 0:return Hn.next=2,fetch(Tn);case 2:return Un=Hn.sent,Hn.next=5,Un.blob();case 5:return Qn=Hn.sent,Hn.next=8,createImageBitmap(Qn);case 8:return Dn=Hn.sent,Hn.abrupt("return",Dn);case 10:case"end":return Hn.stop()}}),_callee)})))()}};return"undefined"==typeof DOMParser&&void 0!==Un||Reflect.deleteProperty(Qn,"DOMParser"),Qn},node:function node$1(Tn){var Un=Tn.DOMParser,Qn=Tn.canvas;return{window:null,ignoreAnimation:!0,ignoreMouse:!0,DOMParser:Un,fetch:Tn.fetch,createCanvas:Qn.createCanvas,createImage:Qn.loadImage}}}),P_=Object.freeze({__proto__:null,default:L_,AElement:l_,AnimateColorElement:t_,AnimateElement:e_,AnimateTransformElement:n_,BoundingBox:Pm,CB1:CB1,CB2:CB2,CB3:CB3,CB4:CB4,Canvg:L_,CircleElement:jm,ClipPathElement:v_,DefsElement:Wm,DescElement:B_,Document:N_,Element:Nm,EllipseElement:Hm,FeColorMatrixElement:g_,FeCompositeElement:x_,FeDropShadowElement:w_,FeGaussianBlurElement:C_,FeMorphologyElement:S_,FilterElement:y_,Font:Tm,FontElement:r_,FontFaceElement:i_,GElement:Xm,GlyphElement:a_,GradientElement:Ym,ImageElement:u_,LineElement:Gm,LinearGradientElement:Jm,MarkerElement:qm,MaskElement:f_,Matrix:xm,MissingGlyphElement:o_,Mouse:hm,PSEUDO_ZERO:1e-8,Parser:vm,PathElement:Om,PathParser:Mm,PatternElement:Km,Point:dm,PolygonElement:zm,PolylineElement:Vm,Property:cm,QB1:QB1,QB2:QB2,QB3:QB3,RadialGradientElement:$m,RectElement:Dm,RenderedElement:Fm,Rotate:wm,SVGElement:Qm,SVGFontLoader:h_,Scale:Sm,Screen:gm,Skew:Cm,SkewX:km,SkewY:Bm,StopElement:Zm,StyleElement:p_,SymbolElement:d_,TRefElement:s_,TSpanElement:Im,TextElement:Um,TextPathElement:c_,TitleElement:k_,Transform:Em,Translate:ym,UnknownElement:Lm,UseElement:A_,ViewPort:um,compressSpaces:compressSpaces,getSelectorSpecificity:getSelectorSpecificity,normalizeAttributeName:normalizeAttributeName,normalizeColor:normalizeColor,parseExternalUrl:parseExternalUrl,presets:T_,toNumbers:toNumbers,trimLeft:trimLeft,trimRight:trimRight,vectorMagnitude:vectorMagnitude,vectorsAngle:vectorsAngle,vectorsRatio:vectorsRatio});function jQueryPluginDBox(Tn){var Un=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},Qn=Un.ok,Dn=void 0===Qn?"Ok":Qn,Hn=Un.cancel,Gn=void 0===Hn?"Cancel":Hn;Tn("#dialog_container").draggable({cancel:"#dialog_content, #dialog_buttons *",containment:"window"}).css("position","absolute");var Vn=Tn("#dialog_box"),zn=Tn("#dialog_buttons"),Kn=Tn("#dialog_content");function dbox(Un,Qn,Hn,Wn,Xn,Yn){Kn.html("

    "+Qn.replace(/\n/g,"

    ")+"

    ").toggleClass("prompt","prompt"===Un),zn.empty();var Jn=Tn('').appendTo(zn);return new Promise((function(Dn,$n){var Zn,er;if("alert"!==Un&&Tn('').appendTo(zn).click((function(){Vn.hide(),Dn(!1)})),"prompt"===Un)(Zn=Tn('').prependTo(zn)).val(Hn||""),Zn.bind("keydown","return",(function(){Jn.click()}));else if("select"===Un){var tr=Tn('
    ');if(Zn=Tn('').appendTo(nr)).val(Yn.value),Yn.tooltip&&nr.attr("title",Yn.tooltip),er.prop("checked",Boolean(Yn.checked)),tr.append(Tn("
    ").append(nr))}Tn.each(Wn||[],(function(Un,Qn){"object"===_typeof(Qn)?Zn.append(Tn("